1function m8(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)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(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Kv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Da(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function v8(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var kS={exports:{}},Av={};var $w;function aI(){if($w)return Av;$w=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var l=null;if(s!==void 0&&(l=""+s),o.key!==void 0&&(l=""+o.key),"key"in o){s={};for(var f in o)f!=="key"&&(s[f]=o[f])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:l,ref:o!==void 0?o:null,props:s}}return Av.Fragment=t,Av.jsx=n,Av.jsxs=n,Av}var Qw;function sI(){return Qw||(Qw=1,kS.exports=aI()),kS.exports}var C=sI(),NS={exports:{}},kv={},IS={exports:{}},MS={};var Ww;function lI(){return Ww||(Ww=1,(function(e){function t(V,B){var ee=V.length;V.push(B);e:for(;0<ee;){var ge=ee-1>>>1,ve=V[ge];if(0<o(ve,B))V[ge]=B,V[ee]=ve,ee=ge;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var B=V[0],ee=V.pop();if(ee!==B){V[0]=ee;e:for(var ge=0,ve=V.length,Y=ve>>>1;ge<Y;){var oe=2*(ge+1)-1,de=V[oe],me=oe+1,ke=V[me];if(0>o(de,ee))me<ve&&0>o(ke,de)?(V[ge]=ke,V[me]=ee,ge=me):(V[ge]=de,V[oe]=ee,ge=oe);else if(me<ve&&0>o(ke,ee))V[ge]=ke,V[me]=ee,ge=me;else break e}}return B}function o(V,B){var ee=V.sortIndex-B.sortIndex;return ee!==0?ee:V.id-B.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,f=l.now();e.unstable_now=function(){return l.now()-f}}var m=[],p=[],v=1,g=null,y=3,S=!1,x=!1,w=!1,R=!1,T=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function L(V){for(var B=n(p);B!==null;){if(B.callback===null)r(p);else if(B.startTime<=V)r(p),B.sortIndex=B.expirationTime,t(m,B);else break;B=n(p)}}function H(V){if(w=!1,L(V),!x)if(n(m)!==null)x=!0,M||(M=!0,$());else{var B=n(p);B!==null&&J(H,B.startTime-V)}}var M=!1,j=-1,K=5,P=-1;function q(){return R?!0:!(e.unstable_now()-P<K)}function Q(){if(R=!1,M){var V=e.unstable_now();P=V;var B=!0;try{e:{x=!1,w&&(w=!1,I(j),j=-1),S=!0;var ee=y;try{t:{for(L(V),g=n(m);g!==null&&!(g.expirationTime>V&&q());){var ge=g.callback;if(typeof ge=="function"){g.callback=null,y=g.priorityLevel;var ve=ge(g.expirationTime<=V);if(V=e.unstable_now(),typeof ve=="function"){g.callback=ve,L(V),B=!0;break t}g===n(m)&&r(m),L(V)}else r(m);g=n(m)}if(g!==null)B=!0;else{var Y=n(p);
1Y!==null&&J(H,Y.startTime-V),B=!1}}break e}finally{g=null,y=ee,S=!1}B=void 0}}finally{B?$():M=!1}}}var $;if(typeof k=="function")$=function(){k(Q)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,G=W.port2;W.port1.onmessage=Q,$=function(){G.postMessage(null)}}else $=function(){T(Q,0)};function J(V,B){j=T(function(){V(e.unstable_now())},B)}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(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(V){switch(y){case 1:case 2:case 3:var B=3;break;default:B=y}var ee=y;y=B;try{return V()}finally{y=ee}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(V,B){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var ee=y;y=V;try{return B()}finally{y=ee}},e.unstable_scheduleCallback=function(V,B,ee){var ge=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ge+ee:ge):ee=ge,V){case 1:var ve=-1;break;case 2:ve=250;break;case 5:ve=1073741823;break;case 4:ve=1e4;break;default:ve=5e3}return ve=ee+ve,V={id:v++,callback:B,priorityLevel:V,startTime:ee,expirationTime:ve,sortIndex:-1},ee>ge?(V.sortIndex=ee,t(p,V),n(m)===null&&V===n(p)&&(w?(I(j),j=-1):w=!0,J(H,ee-ge))):(V.sortIndex=ve,t(m,V),x||S||(x=!0,M||(M=!0,$()))),V},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(V){var B=y;return function(){var ee=y;y=B;try{return V.apply(this,arguments)}finally{y=ee}}}})(MS)),MS}var Yw;function uI(){return Yw||(Yw=1,IS.exports=lI()),IS.exports}var DS={exports:{}},xt={};var Kw;function cI(){if(Kw)return xt;Kw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),y=Symbol.iterator;function S(Y){return Y===null||typeof Y!="object"?null:(Y=y&&Y[y]||Y["@@iterator"],typeof Y=="function"?Y:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,R={};function T(Y,oe,de){this.props=Y,this.context=oe,this.refs=R,this.updater=de||x}T.prototype.isReactComponent={},T.prototype.setState=function(Y,oe){if(typeof Y!="object"&&typeof Y!="function"&&Y!=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,Y,oe,"setState")},T.prototype.forceUpdate=function(Y){this.updater.enqueueForceUpdate(this,Y,"forceUpdate")};function I(){}I.prototype=T.prototype;function k(Y,oe,de){this.props=Y,this.context=oe,this.refs=R,this.updater=de||x}var L=k.prototype=new I;L.constructor=k,w(L,T.prototype),L.isPureReactComponent=!0;var H=Array.isArray;function M(){}var j={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function P(Y,oe,de){var me=de.ref;return{$$typeof:e,type:Y,key:oe,ref:me!==void 0?me:null,props:de}}function q(Y,oe){return P(Y.type,oe,Y.props)}function Q(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===e}function $(Y){var oe={"=":"=0",":":"=2"};return"$"+Y.replace(/[=:]/g,function(de){return oe[de]})}var W=/\/+/g;function G(Y,oe){return typeof Y=="object"&&Y!==null&&Y.key!=null?$(""+Y.key):oe.toString(36)}function J(Y){switch(Y.status){case"fulfilled":return Y.value;case"rejected":throw Y.reason;default:switch(typeof Y.status=="string"?Y.then(M,M):(Y.status="pending",Y.then(function(oe){Y.status==="pending"&&(Y.status="fulfilled",Y.value=oe)},function(oe){Y.status==="pending"&&(Y.status="rejected",Y.reason=oe)})),Y.status){case"fulfilled":return Y.value;case"rejected":throw Y.reason}}throw Y}function V(Y,oe,de,me,ke){var Me=typeof Y;(Me==="undefined"||Me==="boolean")&&(Y=null);var We=!1;if(Y===null)We=!0;else switch(Me){case"bigint":case"string":case"number":We=!0;break;case"object":switch(Y.$$typeof){case e:case t:We=!0;break;case v:return We=Y._init,V(We(Y._payload),oe,de,me,ke)}}if(We)return ke=ke(Y),We=me===""?"."+G(Y,0):me,H(ke)?(de="",We!=null&&(de=We.replace(W,"$&/")+"/"),V(ke,oe,de,"",function(an){return an})):ke!=null&&(Q(ke)&&(ke=q(ke,de+(ke.key==null||Y&&Y.key===ke.key?"":(""+ke.ke
1y).replace(W,"$&/")+"/")+We)),oe.push(ke)),1;We=0;var Le=me===""?".":me+":";if(H(Y))for(var $e=0;$e<Y.length;$e++)me=Y[$e],Me=Le+G(me,$e),We+=V(me,oe,de,Me,ke);else if($e=S(Y),typeof $e=="function")for(Y=$e.call(Y),$e=0;!(me=Y.next()).done;)me=me.value,Me=Le+G(me,$e++),We+=V(me,oe,de,Me,ke);else if(Me==="object"){if(typeof Y.then=="function")return V(J(Y),oe,de,me,ke);throw oe=String(Y),Error("Objects are not valid as a React child (found: "+(oe==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":oe)+"). If you meant to render a collection of children, use an array instead.")}return We}function B(Y,oe,de){if(Y==null)return Y;var me=[],ke=0;return V(Y,me,"","",function(Me){return oe.call(de,Me,ke++)}),me}function ee(Y){if(Y._status===-1){var oe=Y._result;oe=oe(),oe.then(function(de){(Y._status===0||Y._status===-1)&&(Y._status=1,Y._result=de)},function(de){(Y._status===0||Y._status===-1)&&(Y._status=2,Y._result=de)}),Y._status===-1&&(Y._status=0,Y._result=oe)}if(Y._status===1)return Y._result.default;throw Y._result}var ge=typeof reportError=="function"?reportError:function(Y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var oe=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Y=="object"&&Y!==null&&typeof Y.message=="string"?String(Y.message):String(Y),error:Y});if(!window.dispatchEvent(oe))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Y);return}console.error(Y)},ve={map:B,forEach:function(Y,oe,de){B(Y,function(){oe.apply(this,arguments)},de)},count:function(Y){var oe=0;return B(Y,function(){oe++}),oe},toArray:function(Y){return B(Y,function(oe){return oe})||[]},only:function(Y){if(!Q(Y))throw Error("React.Children.only expected to receive a single React element child.");return Y}};return xt.Activity=g,xt.Children=ve,xt.Component=T,xt.Fragment=n,xt.Profiler=o,xt.PureComponent=k,xt.StrictMode=r,xt.Suspense=m,xt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,xt.__COMPILER_RUNTIME={__proto__:null,c:function(Y){return j.H.useMemoCache(Y)}},xt.cache=function(Y){return function(){return Y.apply(null,arguments)}},xt.cacheSignal=function(){return null},xt.cloneElement=function(Y,oe,de){if(Y==null)throw Error("The argument must be a React element, but you passed "+Y+".");var me=w({},Y.props),ke=Y.key;if(oe!=null)for(Me in oe.key!==void 0&&(ke=""+oe.key),oe)!K.call(oe,Me)||Me==="key"||Me==="__self"||Me==="__source"||Me==="ref"&&oe.ref===void 0||(me[Me]=oe[Me]);var Me=arguments.length-2;if(Me===1)me.children=de;else if(1<Me){for(var We=Array(Me),Le=0;Le<Me;Le++)We[Le]=arguments[Le+2];me.children=We}return P(Y.type,ke,me)},xt.createContext=function(Y){return Y={$$typeof:l,_currentValue:Y,_currentValue2:Y,_threadCount:0,Provider:null,Consumer:null},Y.Provider=Y,Y.Consumer={$$typeof:s,_context:Y},Y},xt.createElement=function(Y,oe,de){var me,ke={},Me=null;if(oe!=null)for(me in oe.key!==void 0&&(Me=""+oe.key),oe)K.call(oe,me)&&me!=="key"&&me!=="__self"&&me!=="__source"&&(ke[me]=oe[me]);var We=arguments.length-2;if(We===1)ke.children=de;else if(1<We){for(var Le=Array(We),$e=0;$e<We;$e++)Le[$e]=arguments[$e+2];ke.children=Le}if(Y&&Y.defaultProps)for(me in We=Y.defaultProps,We)ke[me]===void 0&&(ke[me]=We[me]);return P(Y,Me,ke)},xt.createRef=function(){return{current:null}},xt.forwardRef=function(Y){return{$$typeof:f,render:Y}},xt.isValidElement=Q,xt.lazy=function(Y){return{$$typeof:v,_payload:{_status:-1,_result:Y},_init:ee}},xt.memo=function(Y,oe){return{$$typeof:p,type:Y,compare:oe===void 0?null:oe}},xt.startTransition=function(Y){var oe=j.T,de={};j.T=de;try{var me=Y(),ke=j.S;ke!==null&&ke(de,me),typeof me=="object"&&me!==null&&typeof me.then=="function"&&me.then(M,ge)}catch(Me){ge(Me)}finally{oe!==null&&de.types!==null&&(oe.types=de.types),j.T=oe}},xt.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},xt.use=function(Y){return j.H.use(Y)},xt.useActionState=function(Y,oe,de){return j.H.useActionState(Y,oe,de)},xt.useCallback=function(Y,oe){return j.H.useCallback(Y,oe)},xt.useContext=function(Y){return j.H.useContext(Y)},xt.useDebugValue=function(){},xt.useDeferredValue=function(Y,oe){return j.H.useDeferredValue(Y,oe)},xt.useEffect=function(Y,oe){return j.H.useEffect(Y,oe)},xt.useEffectEvent=function(Y){return j.H.useEffectEvent(Y)},xt.useId=function(){return j.H.useId()},xt.useImperativeHandle=function(Y,oe,de){return j.H.useImperativeHandle(Y,oe,de)},xt.useInsertionEffect=function(Y,oe){return j.H.useInsertionEffect(Y,oe)},xt.useLayoutEffect=function(Y,oe){return j.H.useLayoutEffect(Y,oe)},xt.useMemo=function(Y,oe){return j.H.useMemo(Y,oe)},xt.useOptimistic=function(Y,oe){return j.H.useOptimistic(Y,oe)},xt.useReducer=function(Y,oe,de){return j.H.useReducer(Y,oe,de)},xt.useRef=function(Y){return j.H.useRef(Y)},xt.useState=function(Y){return j.H.useState(Y)},xt.useSyncExternalStore=function(Y,oe,de){return j.H.useSyncExternalStore(Y,oe,de)},xt.useTransition=function(){return j.H.useTransition()},xt.version="19.2.7",xt}var Xw;function Qc(){return Xw||(Xw=1,DS.exports=cI()),DS.exports}var LS={exports:{}},Ai={};var Zw;function fI(){if(Zw)return Ai;Zw=1;var e=Qc();function t(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+p+" 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},o=Symbol.for("react.portal");function s(m,p,v){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:m,containerInfo:p,implementation:v}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ai.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ai.createPortal=function(m,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return s(m,p,null,v)},Ai.flushSync=function(m){var p=l.T,v=r.p;try{if(l.T=null,r.p=2,m)return m()}finally{l.T=p,r.p=v,r.d.f()}},Ai.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(m,p))},Ai.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},Ai.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var v=p.as,g=f(v,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?r.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:S}):v==="script"&&r.d.X(m,{crossOrigin:g,integrity:y,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ai.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=f(p.as,p.crossOrigin);r.d.M(m,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(m)},Ai.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,g=f(v,p.crossOrigin);r.d.L(m,v,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.t
vendor: 12,600 bytes, lines 1-8
1ype=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ai.preloadModule=function(m,p){if(typeof m=="string")if(p){var v=f(p.as,p.crossOrigin);r.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(m)},Ai.requestFormReset=function(m){r.d.r(m)},Ai.unstable_batchedUpdates=function(m,p){return m(p)},Ai.useFormState=function(m,p,v){return l.H.useFormState(m,p,v)},Ai.useFormStatus=function(){return l.H.useHostTransitionStatus()},Ai.version="19.2.7",Ai}var Jw;function j6(){if(Jw)return LS.exports;Jw=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(),LS.exports=fI(),LS.exports}var eC;function dI(){if(eC)return kv;eC=1;var e=uI(),t=Qc(),n=j6();function r(i){var a="https://react.dev/errors/"+i;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var a=i,u=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(u=a.return),i=a.return;while(i)}return a.tag===3?u:null}function l(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function f(i){if(i.tag===31){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function m(i){if(s(i)!==i)throw Error(r(188))}function p(i){var a=i.alternate;if(!a){if(a=s(i),a===null)throw Error(r(188));return a!==i?null:i}for(var u=i,d=a;;){var b=u.return;if(b===null)break;var E=b.alternate;if(E===null){if(d=b.return,d!==null){u=d;continue}break}if(b.child===E.child){for(E=b.child;E;){if(E===u)return m(b),i;if(E===d)return m(b),a;E=E.sibling}throw Error(r(188))}if(u.return!==d.return)u=b,d=E;else{for(var N=!1,F=b.child;F;){if(F===u){N=!0,u=b,d=E;break}if(F===d){N=!0,d=b,u=E;break}F=F.sibling}if(!N){for(F=E.child;F;){if(F===u){N=!0,u=E,d=b;break}if(F===d){N=!0,d=E,u=b;break}F=F.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==d)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:a}function v(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i;for(i=i.child;i!==null;){if(a=v(i),a!==null)return a;i=i.sibling}return null}var g=Object.assign,y=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),k=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),Q=Symbol.iterator;function $(i){return i===null||typeof i!="object"?null:(i=Q&&i[Q]||i["@@iterator"],typeof i=="function"?i:null)}var W=Symbol.for("react.client.reference");function G(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===W?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case w:return"Fragment";case T:return"Profiler";case R:return"StrictMode";case H:return"Suspense";case M:return"SuspenseList";case P:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case x:return"Portal";case k:return i.displayName||"Context";case I:return(i._context.displayName||"Context")+".Consumer";case L:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case j:return a=i.displayName||null,a!==null?a:G(i.type)||"Memo";case K:a=i._payload,i=i._init;try{return G(i(a))}catch{}}return null}var J=Array.isArray,V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ge=[],ve=-1;function Y(i){return{current:i}}function oe(i){0>ve||(i.current=ge[ve],ge[ve]=null,ve--)}function de(i,a){ve++,ge[ve]=i.current,i.current=a}var me=Y(null),ke=Y(null),Me=Y(null),We=Y(null);function Le(i,a){switch(de(Me,a),de(ke,i),de(me,null),a.nodeType){case 9:case 11:i=(i=a.documentElement)&&(i=i.namespaceURI)?dv(i):0;break;default:if(i=a.tagName,a=a.namespaceURI)a=dv(a),i=Kf(a,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}oe(me),de(me,i)}function $e(){oe(me),oe(ke),oe(Me)}function an(i){i.memoizedState!==null&&de(We,i);var a=me.current,u=Kf(a,i.type);a!==u&&(de(ke,i),de(me,u))}function dr(i){ke.current===i&&(oe(me),oe(ke)),We.current===i&&(oe(We),yc._currentValue=ee)}var ze,ct;function _t(i){if(ze===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);ze=a&&a[1]||"",ct=-1<u.stack.indexOf(` 2 at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return` 3`+ze+i+ct}var et=!1;function Je(i,a){if(!i||et)return"";et=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(a){var Ee=function(){throw Error()};if(Object.defineProperty(Ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ee,[])}catch(pe){var fe=pe}Reflect.construct(i,[],Ee)}else{try{Ee.call()}catch(pe){fe=pe}i.call(Ee.prototype)}}else{try{throw Error()}catch(pe){fe=pe}(Ee=i())&&typeof Ee.catch=="function"&&Ee.catch(function(){})}}catch(pe){if(pe&&fe&&typeof pe.stack=="string")return[pe.stack,fe.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=d.DetermineComponentFrameRoot(),N=E[0],F=E[1];if(N&&F){var Z=N.split(` 4`),ce=F.split(` 5`);for(b=d=0;d<Z.length&&!Z[d].includes("DetermineComponentFrameRoot");)d++;for(;b<ce.length&&!ce[b].includes("DetermineComponentFrameRoot");)b++;if(d===Z.length||b===ce.length)for(d=Z.length-1,b=ce.length-1;1<=d&&0<=b&&Z[d]!==ce[b];)b--;for(;1<=d&&0<=b;d--,b--)if(Z[d]!==ce[b]){if(d!==1||b!==1)do if(d--,b--,0>b||Z[d]!==ce[b]){var be=` 6`+Z[d].replace(" at new "," at ");return i.displayName&&be.includes("<anonymous>")&&(be=be.replace("<anonymous>",i.displayName)),be}while(1<=d&&0<=b);break}}}finally{et=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?_t(u):""}function Ke(i,a){switch(i.tag){case 26:case 27:case 5:return _t(i.type);case 16:return _t("Lazy");case 13:return i.child!==a&&a!==null?_t("Suspense Fallback"):_t("Suspense");case 19:return _t("SuspenseList");case 0:case 15:return Je(i.type,!1);case 11:return Je(i.type.render,!1);case 1:return Je(i.type,!0);case 31:return _t("Activity");default:return""}}function Ze(i){try{var a="",u=null;do a+=Ke(i,u),u=i,i=i.return;while(i);return a}catch(d){return` 7Error generating stack: `+d.message+` 8`+d.stack}}var Ye=Object.prototype.hasOwnProperty,Mt=e.unstable_scheduleCallback,Gt=e.unstable_cancelCallback,Ut=e.unstable_shouldYield,Bt=e.unstable_requestPaint,Oe=e.unstable_now,le=e.unstable_getCurrentPriorityLevel,we=e.unstable_ImmediatePriority,Re=e.unstable_UserBlockingPriority,Pe=e.unstable_NormalPriority,At=e.unstable_LowPriority,mn=e.unstable_IdlePriority,kt=e.log,yt=e.unstable_setDisableYieldValue,at=null,Wt=null;function kn(i){if(typeof kt=="function"&&yt(i),Wt&&typeof Wt.setStrictMode=="function")try{Wt.setStrictMode(at,i)}catch{}}var Qn=Math.clz32?Math.clz32:pt,jr=Math.log,Ar=Math.LN2;function pt(i){return i>>>=0,i===0?32:31-(jr(i)/Ar|0)|0}var en=256,jn=262144,Cn=4194304;function Jn(i){var a=i&42;if(a!==0)return a;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function sn(i,a,u){var d=i.pendingLanes;if(d===0)return 0;var b=0,E=i.suspendedLanes,N=i.pingedLanes;i=i.warmLanes;var F=d&134217727;return F!==0?(d=F&~E,d!==0?b=Jn(d):(N&=F,N!==0?b=Jn(N):u||(u=F&~i,u!==0&&(b=Jn(u))))):(F=d&~E,F!==0?b=Jn(F):N!==0?b=Jn(N):u||(u=d&~i,u!==0&&(b=Jn(u)))),b===0?0:a!==0&&a!==b&&(a&E)===0&&(E=b&-b,u=a&-a,E>=u||E===32&&(u&4194048)!==0)?a:b}function tt(i,a){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&a)===0}function ea(i,a){switch(i){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 uo(){var i=Cn;return Cn<<=1,(Cn&62914560)===0&&(Cn=4194304),i}function Ao(i){for(var a=[],u=0;31>u;u++)a.push(i);return a}function Un(i,a){i.pendingLanes|=a,a!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function wl(i,a,u,d,b,E){var N=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var F=i.entanglements,Z=i.expirationTimes,ce=i.hiddenUpdates;for(u=N&~u;0<u;){var be=31-Qn(u),Ee=1<<be;F[be]=0,Z[be]=-1;var fe=ce[be];if(fe!==null)for(ce[be]=null,be=0;be<fe.length;be++){var pe=fe[be];pe!==null&&(pe.lane&=-536870913)}u&=~Ee}d!==0&&Bn(i,d,0),E!==0&&b===0&&i.tag!==0&&(i.suspendedLanes|=E&~(N&~a))}function Bn(i,a,u){i.pendingLanes|=a,i.suspendedLanes&=~a;var d=31-Qn(a);i.entangledLanes|=a,i.entanglements[d]=i.entanglements[d]|1073741824|u&261930}function ta(i,a){var u=i.entangledLanes|=a;for(i=i.entanglements;u;){var d=31-Qn(u),b=1<<d;b&a|i[d]&a&&(i[d]|=a),u&=~b}}function ai(i,a){var u=a&-a;return u=(u&42)!==0?1:er(u),(u&(i.suspendedLanes|a))!==0?0:u}function er(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Pa(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function ko(){var i=B.p;return i!==0?i:(i=window.event,i===void 0?32:By(i.type))}function na(i,a){var u=B.p;try{return B.p=i,a()}finally{B.p=u}}var Bi=Math.random().toString(36).slice(2),Nn="__reactFiber$"+Bi,lr="__reactProps$"+Bi,kr="__reactContainer$"+Bi,Ct="__reactEvents$"+Bi,Fa="__reactListeners$"+Bi,wm="__reactHandles$"+Bi,Ou="__reactResources$"+Bi,ja="__reactMarker$"+Bi;function xs(i){delete i[Nn],delete i[lr],delete i[Ct],delete i[Fa],delete i[wm]}function ws(i){var a=i[Nn];if(a)return a;for(var u=i.parentNode;u;){if(a=u[kr]||u[Nn]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(i=Ry(i);i!==null;){if(u=i[Nn])return u;i=Ry(i)}return a}i=u,u=i.parentNode}return null}function No(i){if(i=i[Nn]||i[kr]){var a=i.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return i}return null}function Io(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i.stateNode;throw Error(r(33))}function co(i){var a=i[Ou];return a||(a=i[Ou]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function In(i){i[ja]=!0}var Vd=new Set,Yr={};function Nr(i,a){Ua(i,a),Ua(i+"Capture",a)}function Ua(i,a){for(Yr[i]=a,i=0;i<a.length;i++)Vd.add(a[i])}var Hd=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
8037D\\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]*$"),Au={},zd={};function of(i){return Ye.call(zd,i)?!0:Ye.call(Au,i)?!1:Hd.test(i)?zd[i]=!0:(Au[i]=!0,!1)}function Cl(i,a,u){if(of(a))if(u===null)i.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(a);return;case"boolean":var d=a.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){i.removeAttribute(a);return}}i.setAttribute(a,""+u)}}function Cs(i,a,u){if(u===null)i.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(a);return}i.setAttribute(a,""+u)}}function fo(i,a,u,d){if(d===null)i.removeAttribute(u);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(a,u,""+d)}}function Ir(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function af(i){var a=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function si(i,a,u){var d=Object.getOwnPropertyDescriptor(i.constructor.prototype,a);if(!i.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var b=d.get,E=d.set;return Object.defineProperty(i,a,{configurable:!0,get:function(){return b.call(this)},set:function(N){u=""+N,E.call(this,N)}}),Object.defineProperty(i,a,{enumerable:d.enumerable}),{getValue:function(){return u},setValue:function(N){u=""+N},stopTracking:function(){i._valueTracker=null,delete i[a]}}}}function li(i){if(!i._valueTracker){var a=af(i)?"checked":"value";i._valueTracker=si(i,a,""+i[a])}}function Ba(i){if(!i)return!1;var a=i._valueTracker;if(!a)return!0;var u=a.getValue(),d="";return i&&(d=af(i)?i.checked?"true":"false":i.value),i=d,i!==u?(a.setValue(i),!0):!1}function ho(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var qd=/[\n"\\]/g;function Kr(i){return i.replace(qd,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Ts(i,a,u,d,b,E,N,F){i.name="",N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?i.type=N:i.removeAttribute("type"),a!=null?N==="number"?(a===0&&i.value===""||i.value!=a)&&(i.value=""+Ir(a)):i.value!==""+Ir(a)&&(i.value=""+Ir(a)):N!=="submit"&&N!=="reset"||i.removeAttribute("value"),a!=null?ra(i,N,Ir(a)):u!=null?ra(i,N,Ir(u)):d!=null&&i.removeAttribute("value"),b==null&&E!=null&&(i.defaultChecked=!!E),b!=null&&(i.checked=b&&typeof b!="function"&&typeof b!="symbol"),F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?i.name=""+Ir(F):i.removeAttribute("name")}function sf(i,a,u,d,b,E,N,F){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(i.type=E),a!=null||u!=null){if(!(E!=="submit"&&E!=="reset"||a!=null)){li(i);return}u=u!=null?""+Ir(u):"",a=a!=null?""+Ir(a):u,F||a===i.value||(i.value=a),i.defaultValue=a}d=d??b,d=typeof d!="function"&&typeof d!="symbol"&&!!d,i.checked=F?i.checked:!!d,i.defaultChecked=!!d,N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(i.name=N),li(i)}function ra(i,a,u){a==="number"&&ho(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function ia(i,a,u,d){if(i=i.options,a){a={};for(var b=0;b<u.length;b++)a["$"+u[b]]=!0;for(u=0;u<i.length;u++)b=a.hasOwnProperty("$"+i[u].value),i[u].selected!==b&&(i[u].selected=b),b&&d&&(i[u].defaultSelected=!0)}else{for(u=""+Ir(u),a=null,b=0;b<i.length;b++){if(i[b].value===u){i[b].selected=!0,d&&(i[b].defaultSelected=!0);return}a!==null||i[b].disabled||(a=i[b])}a!==null&&(a.selected=!0)}}function Tl(i,a,u){if(a!=null&&(a=""+Ir(a),a!==i.value&&(i.value=a),u==null)){i.defaultValue!==a&&(i.defaultValue=a);return}i.defaultValue=u!=null?""+Ir(u):""}function Va(i,a,u,d){if(a==null){if(d!=null){if(u!=null)throw Error(r(92));if(J(d)){if(1<d.length)throw Error(r(93));d=d[0]}u=d}u==null&&(u=""),a=u}u=Ir(a),i.defaultValue=u,d=i.textContent,d===u&&d!==""&&d!==null&&(i.value=d),li(i)}function Mo(i,a){if(a){var u=i.firstChild;
vendor: 4,140 bytes, line 8
8if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=a;return}}i.textContent=a}var Do=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 oa(i,a,u){var d=a.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?d?i.setProperty(a,""):a==="float"?i.cssFloat="":i[a]="":d?i.setProperty(a,u):typeof u!="number"||u===0||Do.has(a)?a==="float"?i.cssFloat=u:i[a]=(""+u).trim():i[a]=u+"px"}function Rl(i,a,u){if(a!=null&&typeof a!="object")throw Error(r(62));if(i=i.style,u!=null){for(var d in u)!u.hasOwnProperty(d)||a!=null&&a.hasOwnProperty(d)||(d.indexOf("--")===0?i.setProperty(d,""):d==="float"?i.cssFloat="":i[d]="");for(var b in a)d=a[b],a.hasOwnProperty(b)&&u[b]!==d&&oa(i,b,d)}else for(var E in a)a.hasOwnProperty(E)&&oa(i,E,a[E])}function Ol(i){if(i.indexOf("-")===-1)return!1;switch(i){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 ku=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"],["colorRendering","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"],["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
8-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"]]),Gd=/^[\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 Al(i){return Gd.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function po(){}var lf=null;function kl(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Rs=null,Ha=null;function Ie(i){var a=No(i);if(a&&(i=a.stateNode)){var u=i[lr]||null;e:switch(i=a.stateNode,a.type){case"input":if(Ts(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Kr(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var d=u[a];if(d!==i&&d.form===i.form){var b=d[lr]||null;if(!b)throw Error(r(90));Ts(d,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(a=0;a<u.length;a++)d=u[a],d.form===i.form&&Ba(d)}break e;case"textarea":Tl(i,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&ia(i,!!u.multiple,a,!1)}}}var qe=!1;function Vt(i,a,u){if(qe)return i(a,u);qe=!0;try{var d=i(a);return d}finally{if(qe=!1,(Rs!==null||Ha!==null)&&(Vf(),Rs&&(a=Rs,i=Ha,Ha=Rs=null,Ie(a),i)))for(a=0;a<i.length;a++)Ie(i[a])}}function Yt(i,a){var u=i.stateNode;if(u===null)return null;var d=u[lr]||null;if(d===null)return null;u=d[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(i=i.type,d=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!d;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,a,typeof u));return u}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wn=!1;if(hn)try{var Vi={};Object.defineProperty(Vi,"passive",{get:function(){Wn=!0}}),window.addEventListener("test",Vi,Vi),window.removeEventListener("test",Vi,Vi)}catch{Wn=!1}var Ur=null,Os=null,Nu=null;function Tn(){if(Nu)return Nu;var i,a=Os,u=a.length,d,b="value"in Ur?Ur.value:Ur.textContent,E=b.length;for(i=0;i<u&&a[i]===b[i];i++);var N=u-i;for(d=1;d<=N&&a[u-d]===b[E-d];d++);return Nu=b.slice(i,1<d?1-d:void 0)}function vn(i){var a=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&a===13&&(i=13)):i=a,i===10&&(i=13),32<=i||i===13?i:0}function $d(){return!0}function Z1(){return!1}function yi(i){function a(u,d,b,E,N){this._reactName=u,this._targetInst=b,this.type=d,this.nativeEvent=E,this.target=N,this.currentTarget=null;for(var F in i)i.hasOwnProperty(F)&&(u=i[F],this[F]=u?u(E):E[F]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?$d:Z1,this.isPropagationStopped=Z1,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=$d)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=$d)},persist:function(){},isPersistent:$d}),a}var Nl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qd=yi(Nl),uf=g({},Nl,{view:0,detail:0}),J1=yi(uf),Cm,Er,Il,aa=g({},uf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Iu,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Il&&(Il&&i.type==="mousemove"?(Cm=i.screenX-Il.screenX,Er=i.screenY-Il.screenY):Er=Cm=0,Il=i),Cm)},movementY:function(i){return"movementY"in i?i.movementY:Er}}),Tm=yi(aa),Rm=g({},aa,{dataTransfer:0}),mo=yi(Rm),eg=g({},uf,{relatedTarget:0}),Wd=yi(eg),tg=g({},Nl,{animationName:0,elapsedTime:0,pseudoElement:0}),ng=yi(tg),rg=g({},Nl,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),ig=yi(rg),Hi=g({},Nl,{data:0}),og=yi(Hi),zi={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},A2={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"},ag={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function As(i){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(i):(i=ag[i])?!!a[i]:!1}function Iu(){return As}var Om=g({},uf,{key:function(i){if(i.key){var a=zi[i.key]||i.key;if(a!=="Unidentified")return a}
vendor: 152,673 bytes, lines 8-9
8return i.type==="keypress"?(i=vn(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?A2[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Iu,charCode:function(i){return i.type==="keypress"?vn(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?vn(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Vn=yi(Om),ks=g({},aa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yd=yi(ks),k2=g({},uf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Iu}),Am=yi(k2),N2=g({},Nl,{propertyName:0,elapsedTime:0,pseudoElement:0}),I2=yi(N2),M2=g({},aa,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),sg=yi(M2),Kd=g({},Nl,{newState:0,oldState:0}),Mu=yi(Kd),D2=[9,13,27,32],Xd=hn&&"CompositionEvent"in window,Du=null;hn&&"documentMode"in document&&(Du=document.documentMode);var km=hn&&"TextEvent"in window&&!Du,Zd=hn&&(!Xd||Du&&8<Du&&11>=Du),Nm=" ",lg=!1;function Jd(i,a){switch(i){case"keyup":return D2.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eh(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Lu=!1;function ug(i,a){switch(i){case"compositionend":return eh(a);case"keypress":return a.which!==32?null:(lg=!0,Nm);case"textInput":return i=a.data,i===Nm&&lg?null:i;default:return null}}function qi(i,a){if(Lu)return i==="compositionend"||!Xd&&Jd(i,a)?(i=Tn(),Nu=Os=Ur=null,Lu=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Zd&&a.locale!=="ko"?null:a.data;default:return null}}var Im={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 Pu(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!Im[i.type]:a==="textarea"}function Mm(i,a,u,d){Rs?Ha?Ha.push(d):Ha=[d]:Rs=d,a=xo(a,"onChange"),0<a.length&&(u=new Qd("onChange","change",null,u,d),i.push({event:u,listeners:a}))}var Fu=null,cf=null;function L2(i){us(i,0)}function th(i){var a=Io(i);if(Ba(a))return i}function cg(i,a){if(i==="change")return a}var fg=!1;if(hn){var Ns;if(hn){var Dm="oninput"in document;if(!Dm){var dg=document.createElement("div");dg.setAttribute("oninput","return;"),Dm=typeof dg.oninput=="function"}Ns=Dm}else Ns=!1;fg=Ns&&(!document.documentMode||9<document.documentMode)}function nh(){Fu&&(Fu.detachEvent("onpropertychange",Lm),cf=Fu=null)}function Lm(i){if(i.propertyName==="value"&&th(cf)){var a=[];Mm(a,cf,i,kl(i)),Vt(L2,a)}}function Is(i,a,u){i==="focusin"?(nh(),Fu=a,cf=u,Fu.attachEvent("onpropertychange",Lm)):i==="focusout"&&nh()}function rh(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return th(cf)}function P2(i,a){if(i==="click")return th(a)}function F2(i,a){if(i==="input"||i==="change")return th(a)}function j2(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var Mr=typeof Object.is=="function"?Object.is:j2;function ui(i,a){if(Mr(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var u=Object.keys(i),d=Object.keys(a);if(u.length!==d.length)return!1;for(d=0;d<u.length;d++){var b=u[d];if(!Ye.call(a,b)||!Mr(i[b],a[b]))return!1}return!0}function Pm(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function hg(i,a){var u=Pm(i);i=0;for(var d;u;){if(u.nodeType===3){if(d=i+u.textContent.length,i<=a&&d>=a)return{node:u,offset:a-i};i=d}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=Pm(u)}}function pg(i,a){return i&&a?i===a?!0:i&&i.nodeType===3?!1:a&&a.nodeType===3?pg(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1:!1}function mg(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var a=ho(i.document);a instanceof i.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)i=a.contentWindow;else break;a=ho(i.document)}return a}function Fm(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}var U2=hn&&"documentMode"in document&&11>=document.documentMode,Lo=null,ie=null,ye=null,he=!1;function Ue(i,a,u){var d=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;he||Lo==null||Lo!==ho(d)||(d=Lo,"selectionStart"in d&&Fm(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),ye&&ui(ye,d)||(ye=d,d=xo(ie,"onSelect"),0<d.length&&(a=new Qd("onSelect","select",null,a,u),i.push({event:a,listeners:d}),a.target=Lo)))}function rt(i,a){var u={};return u[i.toLowerCase()]=a.toLowerCase(),u["Webkit"+i]="webkit"+a,u["Moz"+i]="moz"+a,u}var Ht={animationend:rt("Animation","AnimationEnd"),animationiteration:rt("Animation","AnimationIteration"),animationstart:rt("Animation","AnimationStart"),transitionrun:rt("Transition","TransitionRun"),transitionstart:rt("Transition","TransitionStart"),transitioncancel:rt("Transition","TransitionCancel"),transitionend:rt("Transition","TransitionEnd")},ur={},bn={};hn&&(bn=document.createElement("div").style,"AnimationEvent"in window||(delete Ht.animationend.animation,delete Ht.animationiteration.animation,delete Ht.animationstart.animation),"TransitionEvent"in window||delete Ht.transitionend.transition);function za(i){if(ur[i])return ur[i];if(!Ht[i])return i;var a=Ht[i],u;for(u in a)if(a.hasOwnProperty(u)&&u in bn)return ur[i]=a[u];return i}var vg=za("animationend"),Gi=za("animationiteration"),ff=za("animationstart"),B2=za("transitionrun"),ju=za("transitionstart"),ih=za("transitioncancel"),df=za("transitionend"),ln=new Map,jm="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error 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(" ");jm.push("scrollEnd");function vo(i,a){ln.set(i,a),Nr(a,[i])}var Ml=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},go=[],Uu=0,Um=0;function Dl(){for(var i=Uu,a=Um=Uu=0;a<i;){var u=go[a];go[a++]=null;var d=go[a];go[a++]=null;var b=go[a];go[a++]=null;var E=go[a];if(go[a++]=null,d!==null&&b!==null){var N=d.pending;N===null?b.next=b:(b.next=N.next,N.next=b),d.pending=b}E!==0&&hf(u,b,E)}}function Po(i,a,u,d){go[Uu++]=i,go[Uu++]=a,go[Uu++]=u,go[Uu++]=d,Um|=d,i.lanes|=d,i=i.alternate,i!==null&&(i.lanes|=d)}function Bu(i,a,u,d){return Po(i,a,u,d),pf(i)}function Ms(i,a){return Po(i,null,null,a),pf(i)}function hf(i,a,u){i.lanes|=u;var d=i.alternate;d!==null&&(d.lanes|=u);for(var b=!1,E=i.return;E!==null;)E.childLanes|=u,d=E.alternate,d!==null&&(d.childLanes|=u),E.tag===22&&(i=E.stateNode,i===null||i._visibility&1||(b=!0)),i=E,E=E.return;return i.tag===3?(E=i.stateNode,b&&a!==null&&(b=31-Qn(u),i=E.hiddenUpdates,d=i[b],d===null?i[b]=[a]:d.push(a),a.lane=u|536870912),E):null}function pf(i){if(50<Bf)throw Bf=0,Z0=null,Error(r(185));for(var a=i.return;a!==null;)i=a,a=i.return;return i.tag===3?i.stateNode:null}var Ll={};function oh(i,a,u,d){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bi(i,a,u,d){return new oh(i,a,u,d)}function Pl(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ci(i,a){var u=i.alternate;return u===null?(u=bi(i.tag,a,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=a,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,a=i.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function mf(i,a){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=a,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,a=u.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),i}function ah(i,a,u,d,b,E){var N=0;if(d=i,typeof i=="function")Pl(i)&&(N=1);else if(typeof i=="string")N=_S(i,u,me.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case P:return i=bi(31,u,a,b),i.elementType=P,i.lanes=E,i;case w:return Fl(u.children,b,E,a);case R:N=8,b|=24;break;case T:return i=bi(12,u,a,b|2),i.elementType=T,i.lanes=E,i;case H:return i=bi(13,u,a,b),i.elementType=H,i.lanes=E,i;case M:return i=bi(19,u,a,b),i.elementType=M,i.lanes=E,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case k:N=10;break e;case I:N=9;break e;case L:N=11;break e;case j:N=14;break e;case K:N=16,d=null;break e}N=29,u=Error(r(130,i===null?"null":typeof i,"")),d=null}return a=bi(N,u,a,b),a.elementType=i,a.type=d,a.lanes=E,a}function Fl(i,a,u,d){return i=bi(7,i,d,a),i.lanes=u,i}function Bm(i,a,u){return i=bi(6,i,null,a),i.lanes=u,i}function vf(i){var a=bi(18,null,null,0);return a.stateNode=i,a}function Vu(i,a,u){return a=bi(4,i.children!==null?i.children:[],i.key,a),a.lanes=u,a.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},a}var sh=new WeakMap;function yo(i,a){if(typeof i=="object"&&i!==null){var u=sh.get(i);return u!==void 0?u:(a={value:i,source:a,stack:Ze(a)},sh.set(i,a),a)}return{value:i,source:a,stack:Ze(a)}}var jl=[],Hu=0,lh=null,Yn=0,Rn=[],bo=0,Ds=null,Fo=1,sa="";function jo(i,a){jl[Hu++]=Yn,jl[Hu++]=lh,lh=i,Yn=a}function zu(i,a,u){Rn[bo++]=Fo,Rn[bo++]=sa,Rn[bo++]=Ds,Ds=i;var d=Fo;i=sa;var b=32-Qn(d)-1;d&=~(1<<b),u+=1;var E=32-Qn(a)+b;if(30<E){var N=b-b%5;E=(d&(1<<N)-1).toString(32),d>>=N,b-=N,Fo=1<<32-Qn(a)+b|u<<b|d,sa=E+i}else Fo=1<<E|u<<b|d,sa=i}function gf(i){i.return!==null&&(jo(i,1),zu(i,1,0))}function Ls(i){for(;i===lh;)lh=jl[--Hu],jl[Hu]=null,Yn=jl[--Hu],jl[Hu]=null;for(;i===Ds;)Ds=Rn[--bo],Rn[bo]=null,sa=Rn[--bo],Rn[bo]=null,Fo=Rn[--bo],Rn[bo]=null}function qu(i,a){Rn[bo++]=Fo,Rn[bo++]=sa,Rn[bo++]=Ds,Fo=a.id,sa=a.overflow,Ds=i}var cr=null,_n=null,Ot=!1,Ps=null,_o=!1,Vm=Error(r(519));function Fs(i){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ua(yo(a,i)),Vm}function gg(i){var a=i.stateNode,u=i.type,d=i.memoizedProps;switch(a[Nn]=i,a[lr]=d,u){case"dialog":Lt("cancel",a),Lt("close",a);break;case"iframe":case"object":case"embed":Lt("load",a);break;case"video":case"audio":for(u=0;u<Pn.length;u++)Lt(Pn[u],a);break;case"source":Lt("error",a);break;case"img":case"image":case"link":Lt("error",a),Lt("load",a);break;case"details":Lt("toggle",a);break;case"input":Lt("invalid",a),sf(a,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":Lt("invalid",a);break;case"textarea":Lt("invalid",a),Va(a,d.value,d.defaultValue,d.children)}u=d.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||d.suppressHydrationWarning===!0||yy(a.textContent,u)?(d.popover!=null&&(Lt("beforetoggle",a),Lt("toggle",a)),d.onScroll!=null&&Lt("scroll",a),d.onScrollEnd!=null&&Lt("scrollend",a),d.onClick!=null&&(a.onclick=po),a=!0):a=!1,a||Fs(i,!0)}function yf(i){for(cr=i.return;cr;)switch(cr.tag){case 5:case 31:case 13:_o=!1;return;case 27:case 3:_o=!0;return;default:cr=cr.return}}function la(i){if(i!==cr)return!1;if(!Ot)return yf(i),Ot=!0,!1;var a=i.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||pi(i.type,i.memoizedProps)),u=!u),u&&_n&&Fs(i),yf(i),a===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));_n=Ty(i)}else if(a===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));_n=Ty(i)}else a===27?(a=_n,Jr(i.type)?(i=mv,mv=null,_n=i):_n=a):_n=cr?Ri(i.stateNode.nextSibling):null;return!0}function js(){_n=cr=null,Ot=!1}function U(){var i=Ps;return i!==null&&(xi===null?xi=i:xi.push.apply(xi,i),Ps=null),i}function ua(i){Ps===null?Ps=[i]:Ps.push(i)}var Gu=Y(null),Dr=null,bt=null;function Us(i,a,u){de(Gu,a._currentValue),a._currentValue=u}function qa(i){i._currentValue=Gu.current,oe(Gu)}function Hm(i,a,u){for(;i!==null;){var d=i.alternate;if((i.childLanes&a)!==a?(i.childLanes|=a,d!==null&&(d.childLanes|=a)):d!==null&&(d.childLanes&a)!==a&&(d.childLanes|=a),i===u)break;i=i.return}}function Ga(i,a,u,d){var b=i.child;for(b!==null&&(b.return=i);b!==null;){var E=b.dependencies;if(E!==null){var N=b.child;E=E.firstContext;e:for(;E!==null;){var F=E;E=b;for(var Z=0;Z<a.length;Z++)if(F.context===a[Z]){E.lanes|=u,F=E.alternate,F!==null&&(F.lanes|=u),Hm(E.return,u,i),d||(N=null);break e}E=F.next}}else if(b.tag===18){if(N=b.return,N===null)throw Error(r(341));N.lanes|=u,E=N.alternate,E!==null&&(E.lanes|=u),Hm(N,u,i),N=null}else N=b.child;if(N!==null)N.return=b;else for(N=b;N!==null;){if(N===i){N=null;break}if(b=N.sibling,b!==null){b.return=N.return,N=b;break}N=N.return}b=N}}function $u(i,a,u,d){i=null;for(var b=a,E=!1;b!==null;){if(!E){if((b.flags&524288)!==0)E=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var N=b.alternate;if(N===null)throw Error(r(387));if(N=N.memoizedProps,N!==null){var F=b.type;Mr(b.pendingProps.value,N.value)||(i!==null?i.push(F):i=[F])}}else if(b===We.current){if(N=b.alternate,N===null)throw Error(r(387));N.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(i!==null?i.push(yc):i=[yc])}b=b.return}i!==null&&Ga(a,i,u,d),a.flags|=262144}function uh(i){for(i=i.firstContext;i!==null;){if(!Mr(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ul(i){Dr=i,bt=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function Br(i){return ca(Dr,i)}function ch(i,a){return Dr===null&&Ul(i),ca(i,a)}function ca(i,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},bt===null){if(i===null)throw Error(r(308));bt=a,i.dependencies={lanes:0,firstContext:a},i.flags|=524288}else bt=bt.next=a;return u}var V2=typeof AbortController<"u"?AbortController:function(){var i=[],a=this.signal={aborted:!1,addEventListener:function(u,d){i.push(d)}};this.abort=function(){a.aborted=!0,i.forEach(function(u){return u()})}},H2=e.unstable_scheduleCallback,z2=e.unstable_NormalPriority,hr={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zm(){return{controller:new V2,data:new Map,refCount:0}}function $i(i){i.refCount--,i.refCount===0&&H2(z2,function(){i.controller.abort()})}var bf=null,qm=0,Qu=0,Wu=null;function q2(i,a){if(bf===null){var u=bf=[];qm=0,Qu=sv(),Wu={status:"pending",value:void 0,then:function(d){u.push(d)}}}return qm++,a.then(Bs,Bs),a}function Bs(){if(--qm===0&&bf!==null){Wu!==null&&(Wu.status="fulfilled");var i=bf;bf=null,Qu=0,Wu=null;for(var a=0;a<i.length;a++)(0,i[a])()}}function G2(i,a){var u=[],d={status:"pending",value:null,reason:null,then:function(b){u.push(b)}};return i.then(function(){d.status="fulfilled",d.value=a;for(var b=0;b<u.length;b++)(0,u[b])(a)},function(b){for(d.status="rejected",d.reason=b,b=0;b<u.length;b++)(0,u[b])(void 0)}),d}var yg=V.S;V.S=function(i,a){Y0=Oe(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&q2(i,a),yg!==null&&yg(i,a)};var Vr=Y(null);function Gm(){var i=Vr.current;return i!==null?i:On.pooledCache}function fh(i,a){a===null?de(Vr,Vr.current):de(Vr,a.pool)}function bg(){var i=Gm();return i===null?null:{parent:hr._currentValue,pool:i}}var Yu=Error(r(460)),$m=Error(r(474)),_f=Error(r(542)),Sf={then:function(){}};function _g(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Sg(i,a,u){switch(u=i[u],u===void 0?i.push(a):u!==a&&(a.then(po,po),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,Eg(i),i;default:if(typeof a.status=="string")a.then(po,po);else{if(i=On,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=a,i.status="pending",i.then(function(d){if(a.status==="pending"){var b=a;b.status="fulfilled",b.value=d}},function(d){if(a.status==="pending"){var b=a;b.status="rejected",b.reason=d}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw i=a.reason,Eg(i),i}throw Uo=a,Yu}}function $a(i){try{var a=i._init;return a(i._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Uo=u,Yu):u}}var Uo=null;function Ef(){if(Uo===null)throw Error(r(459));var i=Uo;return Uo=null,i}function Eg(i){if(i===Yu||i===_f)throw Error(r(483))}var Bl=null,xf=0;function Qi(i){var a=xf;return xf+=1,Bl===null&&(Bl=[]),Sg(Bl,i,a)}function Vl(i,a){a=a.props.ref,i.ref=a!==void 0?a:null}function fa(i,a){throw a.$$typeof===y?Error(r(525)):(i=Object.prototype.toString.call(a),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":i)))}function Wi(i){function a(ae,re){if(i){var ue=ae.deletions;ue===null?(ae.deletions=[re],ae.flags|=16):ue.push(re)}}function u(ae,re){if(!i)return null;for(;re!==null;)a(ae,re),re=re.sibling;return null}function d(ae){for(var re=new Map;ae!==null;)ae.key!==null?re.set(ae.key,ae):re.set(ae.index,ae),ae=ae.sibling;return re}function b(ae,re){return ae=ci(ae,re),ae.index=0,ae.sibling=null,ae}function E(ae,re,ue){return ae.index=ue,i?(ue=ae.alternate,ue!==null?(ue=ue.index,ue<re?(ae.flags|=67108866,re):ue):(ae.flags|=67108866,re)):(ae.flags|=1048576,re)}function N(ae){return i&&ae.alternate===null&&(ae.flags|=67108866),ae}function F(ae,re,ue,_e){return re===null||re.tag!==6?(re=Bm(ue,ae.mode,_e),re.return=ae,re):(re=b(re,ue),re.return=ae,re)}function Z(ae,re,ue,_e){var Xe=ue.type;return Xe===w?be(ae,re,ue.props.children,_e,ue.key):re!==null&&(re.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===K&&$a(Xe)===re.type)?(re=b(re,ue.props),Vl(re,ue),re.return=ae,re):(re=ah(ue.type,ue.key,ue.props,null,ae.mode,_e),Vl(re,ue),re.return=ae,re)}function ce(ae,re,ue,_e){return re===null||re.tag!==4||re.stateNode.containerInfo!==ue.containerInfo||re.stateNode.implementation!==ue.implementation?(re=Vu(ue,ae.mode,_e),re.return=ae,re):(re=b(re,ue.children||[]),re.return=ae,re)}function be(ae,re,ue,_e,Xe){return re===null||re.tag!==7?(re=Fl(ue,ae.mode,_e,Xe),re.return=ae,re):(re=b(re,ue),re.return=ae,re)}function Ee(ae,re,ue){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=Bm(""+re,ae.mode,ue),re.return=ae,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case S:return ue=ah(re.type,re.key,re.props,null,ae.mode,ue),Vl(ue,re),ue.return=ae,ue;case x:return re=Vu(re,ae.mode,ue),re.return=ae,re;case K:return re=$a(re),Ee(ae,re,ue)}if(J(re)||$(re))return re=Fl(re,ae.mode,ue,null),re.return=ae,re;if(typeof re.then=="function")return Ee(ae,Qi(re),ue);if(re.$$typeof===k)return Ee(ae,ch(ae,re),ue);fa(ae,re)}return null}function fe(ae,re,ue,_e){var Xe=re!==null?re.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Xe!==null?null:F(ae,re,""+ue,_e);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case S:return ue.key===Xe?Z(ae,re,ue,_e):null;case x:return ue.key===Xe?ce(ae,re,ue,_e):null;case K:return ue=$a(ue),fe(ae,re,ue,_e)}if(J(ue)||$(ue))return Xe!==null?null:be(ae,re,ue,_e,null);if(typeof ue.then=="function")return fe(ae,re,Qi(ue),_e);if(ue.$$typeof===k)return fe(ae,re,ch(ae,ue),_e);fa(ae,ue)}return null}function pe(ae,re,ue,_e,Xe){if(typeof _e=="string"&&_e!==""||typeof _e=="number"||typeof _e=="bigint")return ae=ae.get(ue)||null,F(re,ae,""+_e,Xe);if(typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case S:return ae=ae.get(_e.key===null?ue:_e.key)||null,Z(re,ae,_e,Xe);case x:return ae=ae.get(_e.key===null?ue:_e.key)||null,ce(re,ae,_e,Xe);case K:return _e=$a(_e),pe(ae,re,ue,_e,Xe)}if(J(_e)||$(_e))return ae=ae.get(ue)||null,be(re,ae,_e,Xe,null);if(typeof _e.then=="function")return pe(ae,re,ue,Qi(_e),Xe);if(_e.$$typeof===k)return pe(ae,re,ue,ch(re,_e),Xe);fa(re,_e)}return null}function He(ae,re,ue,_e){for(var Xe=null,tn=null,Ge=re,Rt=re=0,qt=null;Ge!==null&&Rt<ue.length;Rt++){Ge.index>Rt?(qt=Ge,Ge=null):qt=Ge.sibling;var nn=fe(ae,Ge,ue[Rt],_e);if(nn===null){Ge===null&&(Ge=qt);break}i&&Ge&&nn.alternate===null&&a(ae,Ge),re=E(nn,re,Rt),tn===null?Xe=nn:tn.sibling=nn,tn=nn,Ge=qt}if(Rt===ue.length)return u(ae,Ge),Ot&&jo(ae,Rt),Xe;if(Ge===null){for(;Rt<ue.length;Rt++)Ge=Ee(ae,ue[Rt],_e),Ge!==null&&(re=E(Ge,re,Rt),tn===null?Xe=Ge:tn.sibling=Ge,tn=Ge);return Ot&&jo(ae,Rt),Xe}for(Ge=d(Ge);Rt<ue.length;Rt++)qt=pe(Ge,ae,Rt,ue[Rt],_e),qt!==null&&(i&&qt.alternate!==null&&Ge.delete(qt.key===null?Rt:qt.key),re=E(qt,re,Rt),tn===null?Xe=qt:tn.sibling=qt,tn=qt);return i&&Ge.forEach(function(sl){return a(ae,sl)}),Ot&&jo(ae,Rt),Xe}function it(ae,re,ue,_e){if(ue==null)throw Error(r(151));for(var Xe=null,tn=null,Ge=re,Rt=re=0,qt=null,nn=ue.next();Ge!==null&&!nn.done;Rt++,nn=ue.next()){Ge.index>Rt?(qt=Ge,Ge=null):qt=Ge.sibling;var sl=fe(ae,Ge,nn.value,_e);if(sl===null){Ge===null&&(Ge=qt);break}i&&Ge&&sl.alternate===null&&a(ae,Ge),re=E(sl,re,Rt),tn===null?Xe=sl:tn.sibling=sl,tn=sl,Ge=qt}if(nn.done)return u(ae,Ge),Ot&&jo(ae,Rt),Xe;if(Ge===null){for(;!nn.done;Rt++,nn=ue.next())nn=Ee(ae,nn.value,_e),nn!==null&&(re=E(nn,re,Rt),tn===null?Xe=nn:tn.sibling=nn,tn=nn);return Ot&&jo(ae,Rt),Xe}for(Ge=d(Ge);!nn.done;Rt++,nn=ue.next())nn=pe(Ge,ae,Rt,nn.value,_e),nn!==null&&(i&&nn.alternate!==null&&Ge.delete(nn.key===null?Rt:nn.key),re=E(nn,re,Rt),tn===null?Xe=nn:tn.sibling=nn,tn=nn);return i&&Ge.forEach(function(AS){return a(ae,AS)}),Ot&&jo(ae,Rt),Xe}function xn(ae,re,ue,_e){if(typeof ue=="object"&&ue!==null&&ue.type===w&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case S:e:{for(var Xe=ue.key;re!==null;){if(re.key===Xe){if(Xe=ue.type,Xe===w){if(re.tag===7){u(ae,re.sibling),_e=b(re,ue.props.children),_e.return=ae,ae=_e;break e}}else if(re.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===K&&$a(Xe)===re.type){u(ae,re.sibling),_e=b(re,ue.props),Vl(_e,ue),_e.return=ae,ae=_e;break e}u(ae,re);break}else a(ae,re);re=re.sibling}ue.type===w?(_e=Fl(ue.props.children,ae.mode,_e,ue.key),_e.return=ae,ae=_e):(_e=ah(ue.type,ue.key,ue.props,null,ae.mode,_e),Vl(_e,ue),_e.return=ae,ae=_e)}return N(ae);case x:e:{for(Xe=ue.key;re!==null;){if(re.key===Xe)if(re.tag===4&&re.stateNode.containerInfo===ue.containerInfo&&re.stateNode.implementation===ue.implementation){u(ae,re.sibling),_e=b(re,ue.children||[]),_e.return=ae,ae=_e;break e}else{u(ae,re);break}else a(ae,re);re=re.sibling}_e=Vu(ue,ae.mode,_e),_e.return=ae,ae=_e}return N(ae);case K:return ue=$a(ue),xn(ae,re,ue,_e)}if(J(ue))return He(ae,re,ue,_e);if($(ue)){if(Xe=$(ue),typeof Xe!="function")throw Error(r(150));return ue=Xe.call(ue),it(ae,re,ue,_e)}if(typeof ue.then=="function")return xn(ae,re,Qi(ue),_e);if(ue.$$typeof===k)return xn(ae,re,ch(ae,ue),_e);fa(ae,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint"?(ue=""+ue,re!==null&&re.tag===6?(u(ae,re.sibling),_e=b(re,ue),_e.return=ae,ae=_e):(u(ae,re),_e=Bm(ue,ae.mode,_e),_e.return=ae,ae=_e),N(ae)):u(ae,re)}return function(ae,re,ue,_e){try{xf=0;var Xe=xn(ae,re,ue,_e);return Bl=null,Xe}catch(Ge){if(Ge===Yu||Ge===_f)throw Ge;var tn=bi(29,Ge,null,ae.mode);return tn.lanes=_e,tn.return=ae,tn}}}var Hl=Wi(!0),Qm=Wi(!1),Qa=!1;function zl(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function da(i,a){i=i.updateQueue,a.updateQueue===i&&(a.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Wa(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Vs(i,a,u){var d=i.updateQueue;if(d===null)return null;if(d=d.shared,(un&2)!==0){var b=d.pending;return b===null?a.next=a:(a.next=b.next,b.next=a),d.pending=a,a=pf(i),hf(i,null,u),a}return Po(i,d,a,u),pf(i)}function Hs(i,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var d=a.lanes;d&=i.pendingLanes,u|=d,a.lanes=u,ta(i,u)}}function Wm(i,a){var u=i.updateQueue,d=i.alternate;if(d!==null&&(d=d.updateQueue,u===d)){var b=null,E=null;if(u=u.firstBaseUpdate,u!==null){do{var N={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};E===null?b=E=N:E=E.next=N,u=u.next}while(u!==null);E===null?b=E=a:E=E.next=a}else b=E=a;u={baseState:d.baseState,firstBaseUpdate:b,lastBaseUpdate:E,shared:d.shared,callbacks:d.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=a:i.next=a,u.lastBaseUpdate=a}var dh=!1;function fr(){if(dh){var i=Wu;if(i!==null)throw i}}function ql(i,a,u,d){dh=!1;var b=i.updateQueue;Qa=!1;var E=b.firstBaseUpdate,N=b.lastBaseUpdate,F=b.shared.pending;if(F!==null){b.shared.pending=null;var Z=F,ce=Z.next;Z.next=null,N===null?E=ce:N.next=ce,N=Z;var be=i.alternate;be!==null&&(be=be.updateQueue,F=be.lastBaseUpdate,F!==N&&(F===null?be.firstBaseUpdate=ce:F.next=ce,be.lastBaseUpdate=Z))}if(E!==null){var Ee=b.baseState;N=0,be=ce=Z=null,F=E;do{var fe=F.lane&-536870913,pe=fe!==F.lane;if(pe?(zt&fe)===fe:(d&fe)===fe){fe!==0&&fe===Qu&&(dh=!0),be!==null&&(be=be.next={lane:0,tag:F.tag,payload:F.payload,callback:null,next:null});e:{var He=i,it=F;fe=a;var xn=u;switch(it.tag){case 1:if(He=it.payload,typeof He=="function"){Ee=He.call(xn,Ee,fe);break e}Ee=He;break e;case 3:He.flags=He.flags&-65537|128;case 0:if(He=it.payload,fe=typeof He=="function"?He.call(xn,Ee,fe):He,fe==null)break e;Ee=g({},Ee,fe);break e;case 2:Qa=!0}}fe=F.callback,fe!==null&&(i.flags|=64,pe&&(i.flags|=8192),pe=b.callbacks,pe===null?b.callbacks=[fe]:pe.push(fe))}else pe={lane:fe,tag:F.tag,payload:F.payload,callback:F.callback,next:null},be===null?(ce=be=pe,Z=Ee):be=be.next=pe,N|=fe;if(F=F.next,F===null){if(F=b.shared.pending,F===null)break;pe=F,F=pe.next,pe.next=null,b.lastBaseUpdate=pe,b.shared.pending=null}}while(!0);be===null&&(Z=Ee),b.baseState=Z,b.firstBaseUpdate=ce,b.lastBaseUpdate=be,E===null&&(b.shared.lanes=0),os|=N,i.lanes=N,i.memoizedState=Ee}}function Ym(i,a){if(typeof i!="function")throw Error(r(191,i));i.call(a)}function Bo(i,a){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)Ym(u[i],a)}var zs=Y(null),Gl=Y(0);function qs(i,a){i=is,de(Gl,i),de(zs,a),is=i|a.baseLanes}function hh(){de(Gl,is),de(zs,zs.current)}function Hr(){is=Gl.current,oe(zs),oe(Gl)}var fi=Y(null),So=null;function Gs(i){var a=i.alternate;de(tr,tr.current&1),de(fi,i),So===null&&(a===null||zs.current!==null||a.memoizedState!==null)&&(So=i)}function Km(i){de(tr,tr.current),de(fi,i),So===null&&(So=i)}function ph(i){i.tag===22?(de(tr,tr.current),de(fi,i),So===null&&(So=i)):$s()}function $s(){de(tr,tr.current),de(fi,fi.current)}function zr(i){oe(fi),So===i&&(So=null),oe(tr)}var tr=Y(0);function mh(i){for(var a=i;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||pv(u)||Zh(u)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Ya=0,ft=null,Sn=null,pr=null,Ku=!1,$l=!1,Ql=!1,vh=0,wf=0,Wl=null,Xm=0;function nr(){throw Error(r(321))}function Cf(i,a){if(a===null)return!1;for(var u=0;u<a.length&&u<i.length;u++)if(!Mr(i[u],a[u]))return!1;return!0}function gh(i,a,u,d,b,E){return Ya=E,ft=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,V.H=i===null||i.memoizedState===null?If:b0,Ql=!1,E=u(d,b),Ql=!1,$l&&(E=Jm(a,u,d,b)),Zm(i),E}function Zm(i){V.H=Zl;var a=Sn!==null&&Sn.next!==null;if(Ya=0,pr=Sn=ft=null,Ku=!1,wf=0,Wl=null,a)throw Error(r(300));i===null||ir||(i=i.dependencies,i!==null&&uh(i)&&(ir=!0))}function Jm(i,a,u,d){ft=i;var b=0;do{if($l&&(Wl=null),wf=0,$l=!1,25<=b)throw Error(r(301));if(b+=1,pr=Sn=null,i.updateQueue!=null){var E=i.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}V.H=_0,E=a(u,d)}while($l);return E}function yh(){var i=V.H,a=i.useState()[0];return a=typeof a.then=="function"?Yl(a):a,i=i.useState()[0],(Sn!==null?Sn.memoizedState:null)!==i&&(ft.flags|=1024),a}function e0(){var i=vh!==0;return vh=0,i}function bh(i,a,u){a.updateQueue=i.updateQueue,a.flags&=-2053,i.lanes&=~u}function _h(i){if(Ku){for(i=i.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Ku=!1}Ya=0,pr=Sn=ft=null,$l=!1,wf=vh=0,Wl=null}function di(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pr===null?ft.memoizedState=pr=i:pr=pr.next=i,pr}function rr(){if(Sn===null){var i=ft.alternate;i=i!==null?i.memoizedState:null}else i=Sn.next;var a=pr===null?ft.memoizedState:pr.next;if(a!==null)pr=a,Sn=i;else{if(i===null)throw ft.alternate===null?Error(r(467)):Error(r(310));Sn=i,i={memoizedState:Sn.memoizedState,baseState:Sn.baseState,baseQueue:Sn.baseQueue,queue:Sn.queue,next:null},pr===null?ft.memoizedState=pr=i:pr=pr.next=i}return pr}function Sh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yl(i){var a=wf;return wf+=1,Wl===null&&(Wl=[]),i=Sg(Wl,i,a),a=ft,(pr===null?a.memoizedState:pr.next)===null&&(a=a.alternate,V.H=a===null||a.memoizedState===null?If:b0),i}function Tf(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Yl(i);if(i.$$typeof===k)return Br(i)}throw Error(r(438,String(i)))}function Rf(i){var a=null,u=ft.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var d=ft.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(a={data:d.data.map(function(b){return b.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=Sh(),ft.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(i),d=0;d<i;d++)u[d]=q;return a.index++,u}function Ka(i,a){return typeof a=="function"?a(i):a}function Xu(i){var a=rr();return Tt(a,Sn,i)}function Tt(i,a,u){var d=i.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=u;var b=i.baseQueue,E=d.pending;if(E!==null){if(b!==null){var N=b.next;b.next=E.next,E.next=N}a.baseQueue=b=E,d.pending=null}if(E=i.baseState,b===null)i.memoizedState=E;else{a=b.next;var F=N=null,Z=null,ce=a,be=!1;do{var Ee=ce.lane&-536870913;if(Ee!==ce.lane?(zt&Ee)===Ee:(Ya&Ee)===Ee){var fe=ce.revertLane;if(fe===0)Z!==null&&(Z=Z.next={lane:0,revertLane:0,gesture:null,action:ce.action,hasEagerState:ce.hasEagerState,eagerState:ce.eagerState,next:null}),Ee===Qu&&(be=!0);else if((Ya&fe)===fe){ce=ce.next,fe===Qu&&(be=!0);continue}else Ee={lane:0,revertLane:ce.revertLane,gesture:null,action:ce.action,hasEagerState:ce.hasEagerState,eagerState:ce.eagerState,next:null},Z===null?(F=Z=Ee,N=E):Z=Z.next=Ee,ft.lanes|=fe,os|=fe;Ee=ce.action,Ql&&u(E,Ee),E=ce.hasEagerState?ce.eagerState:u(E,Ee)}else fe={lane:Ee,revertLane:ce.revertLane,gesture:ce.gesture,action:ce.action,hasEagerState:ce.hasEagerState,eagerState:ce.eagerState,next:null},Z===null?(F=Z=fe,N=E):Z=Z.next=fe,ft.lanes|=Ee,os|=Ee;ce=ce.next}while(ce!==null&&ce!==a);if(Z===null?N=E:Z.next=F,!Mr(E,i.memoizedState)&&(ir=!0,be&&(u=Wu,u!==null)))throw u;i.memoizedState=E,i.baseState=N,i.baseQueue=Z,d.lastRenderedState=E}return b===null&&(d.lanes=0),[i.memoizedState,d.dispatch]}function t0(i){var a=rr(),u=a.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var d=u.dispatch,b=u.pending,E=a.memoizedState;if(b!==null){u.pending=null;var N=b=b.next;do E=i(E,N.action),N=N.next;while(N!==b);Mr(E,a.memoizedState)||(ir=!0),a.memoizedState=E,a.baseQueue===null&&(a.baseState=E),u.lastRenderedState=E}return[E,d]}function xg(i,a,u){var d=ft,b=rr(),E=Ot;if(E){if(u===void 0)throw Error(r(407));u=u()}else u=a();var N=!Mr((Sn||b).memoizedState,u);if(N&&(b.memoizedState=u,ir=!0),b=b.queue,Th(wg.bind(null,d,b,i),[i]),b.getSnapshot!==a||N||pr!==null&&pr.memoizedState.tag&1){if(d.flags|=2048,Qs(9,{destroy:void 0},n0.bind(null,d,b,u,a),null),On===null)throw Error(r(349));E||(Ya&127)!==0||Zu(d,a,u)}return u}function Zu(i,a,u){i.flags|=16384,i={getSnapshot:a,value:u},a=ft.updateQueue,a===null?(a=Sh(),ft.updateQueue=a,a.stores=[i]):(u=a.stores,u===null?a.stores=[i]:u.push(i))}function n0(i,a,u,d){a.value=u,a.getSnapshot=d,Cg(a)&&Yi(i)}function wg(i,a,u){return u(function(){Cg(a)&&Yi(i)})}function Cg(i){var a=i.getSnapshot;i=i.value;try{var u=a();return!Mr(i,u)}catch{return!0}}function Yi(i){var a=Ms(i,2);a!==null&&wi(a,i,2)}function r0(i){var a=di();if(typeof i=="function"){var u=i;if(i=u(),Ql){kn(!0);try{u()}finally{kn(!1)}}}return a.memoizedState=a.baseState=i,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:i},a}function Of(i,a,u,d){return i.baseState=u,Tt(i,Sn,typeof d=="function"?d:Ka)}function i0(i,a,u,d,b){if(Xl(i))throw Error(r(485));if(i=a.action,i!==null){var E={payload:b,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(N){E.listeners.push(N)}};V.T!==null?u(!0):E.isTransition=!1,d(E),u=a.pending,u===null?(E.next=a.pending=E,o0(a,E)):(E.next=u.next,a.pending=u.next=E)}}function o0(i,a){var u=a.action,d=a.payload,b=i.state;if(a.isTransition){var E=V.T,N={};V.T=N;try{var F=u(b,d),Z=V.S;Z!==null&&Z(N,F),a0(i,a,F)}catch(ce){ha(i,a,ce)}finally{E!==null&&N.types!==null&&(E.types=N.types),V.T=E}}else try{E=u(b,d),a0(i,a,E)}catch(ce){ha(i,a,ce)}}function a0(i,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(d){_i(i,a,d)},function(d){return ha(i,a,d)}):_i(i,a,u)}function _i(i,a,u){a.status="fulfilled",a.value=u,Eh(a),i.state=u,a=i.pending,a!==null&&(u=a.next,u===a?i.pending=null:(u=u.next,a.next=u,o0(i,u)))}function ha(i,a,u){var d=i.pending;if(i.pending=null,d!==null){d=d.next;do a.status="rejected",a.reason=u,Eh(a),a=a.next;while(a!==d)}i.action=null}function Eh(i){i=i.listeners;for(var a=0;a<i.length;a++)(0,i[a])()}function s0(i,a){return a}function Af(i,a){if(Ot){var u=On.formState;if(u!==null){e:{var d=ft;if(Ot){if(_n){t:{for(var b=_n,E=_o;b.nodeType!==8;){if(!E){b=null;break t}if(b=Ri(b.nextSibling),b===null){b=null;break t}}E=b.data,b=E==="F!"||E==="F"?b:null}if(b){_n=Ri(b.nextSibling),d=b.data==="F!";break e}}Fs(d)}d=!1}d&&(a=u[0])}}return u=di(),u.memoizedState=u.baseState=a,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s0,lastRenderedState:a},u.queue=d,u=Ig.bind(null,ft,d),d.dispatch=u,d=r0(!1),E=Oh.bind(null,ft,!1,d.queue),d=di(),b={state:a,dispatch:null,action:i,pending:null},d.queue=b,u=i0.bind(null,ft,b,E,u),b.dispatch=u,d.memoizedState=i,[a,u,!1]}function l0(i){var a=rr();return xh(a,Sn,i)}function xh(i,a,u){if(a=Tt(i,a,s0)[0],i=Xu(Ka)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var d=Yl(a)}catch(N){throw N===Yu?_f:N}else d=a;a=rr();var b=a.queue,E=b.dispatch;return u!==a.memoizedState&&(ft.flags|=2048,Qs(9,{destroy:void 0},Tg.bind(null,b,u),null)),[d,E,i]}function Tg(i,a){i.action=a}function wh(i){var a=rr(),u=Sn;if(u!==null)return xh(a,u,i);rr(),a=a.memoizedState,u=rr();var d=u.queue.dispatch;return u.memoizedState=i,[a,d,!1]}function Qs(i,a,u,d){return i={tag:i,create:u,deps:d,inst:a,next:null},a=ft.updateQueue,a===null&&(a=Sh(),ft.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=i.next=i:(d=u.next,u.next=i,i.next=d,a.lastEffect=i),i}function Xa(){return rr().memoizedState}function Ch(i,a,u,d){var b=di();ft.flags|=i,b.memoizedState=Qs(1|a,{destroy:void 0},u,d===void 0?null:d)}function Vo(i,a,u,d){var b=rr();d=d===void 0?null:d;var E=b.memoizedState.inst;Sn!==null&&d!==null&&Cf(d,Sn.memoizedState.deps)?b.memoizedState=Qs(a,E,u,d):(ft.flags|=i,b.memoizedState=Qs(1|a,E,u,d))}function u0(i,a){Ch(8390656,8,i,a)}function Th(i,a){Vo(2048,8,i,a)}function c0(i){ft.flags|=4;var a=ft.updateQueue;if(a===null)a=Sh(),ft.updateQueue=a,a.events=[i];else{var u=a.events;u===null?a.events=[i]:u.push(i)}}function Rg(i){var a=rr().memoizedState;return c0({ref:a,nextImpl:i}),function(){if((un&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function Og(i,a){return Vo(4,2,i,a)}function Ag(i,a){return Vo(4,4,i,a)}function f0(i,a){if(typeof a=="function"){i=i();var u=a(i);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return i=i(),a.current=i,function(){a.current=null}}function d0(i,a,u){u=u!=null?u.concat([i]):null,Vo(4,4,f0.bind(null,a,i),u)}function h0(){}function p0(i,a){var u=rr();a=a===void 0?null:a;var d=u.memoizedState;return a!==null&&Cf(a,d[1])?d[0]:(u.memoizedState=[i,a],i)}function m0(i,a){var u=rr();a=a===void 0?null:a;var d=u.memoizedState;if(a!==null&&Cf(a,d[1]))return d[0];if(d=i(),Ql){kn(!0);try{i()}finally{kn(!1)}}return u.memoizedState=[d,a],d}function Xr(i,a,u){return u===void 0||(Ya&1073741824)!==0&&(zt&261930)===0?i.memoizedState=a:(i.memoizedState=u,i=ey(),ft.lanes|=i,os|=i,u)}function Ho(i,a,u,d){return Mr(u,a)?u:zs.current!==null?(i=Xr(i,u,d),Mr(i,a)||(ir=!0),i):(Ya&42)===0||(Ya&1073741824)!==0&&(zt&261930)===0?(ir=!0,i.memoizedState=u):(i=ey(),ft.lanes|=i,os|=i,a)}function kg(i,a,u,d,b){var E=B.p;B.p=E!==0&&8>E?E:8;var N=V.T,F={};V.T=F,Oh(i,!1,a,u);try{var Z=b(),ce=V.S;if(ce!==null&&ce(F,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var be=G2(Z,d);tc(i,a,be,eo(i))}else tc(i,a,d,eo(i))}catch(Ee){tc(i,a,{then:function(){},status:"rejected",reason:Ee},eo())}finally{B.p=E,N!==null&&F.types!==null&&(N.types=F.types),V.T=N}}function $2(){}function Ju(i,a,u,d){if(i.tag!==5)throw Error(r(476));var b=Kl(i).queue;kg(i,b,a,ee,u===null?$2:function(){return v0(i),u(d)})}function Kl(i){var a=i.memoizedState;if(a!==null)return a;a={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:ee},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ka,lastRenderedState:u},next:null},i.memoizedState=a,i=i.alternate,i!==null&&(i.memoizedState=a),a}function v0(i){var a=Kl(i);a.next===null&&(a=i.alternate.memoizedState),tc(i,a.next.queue,{},eo())}function Rh(){return Br(yc)}function Ng(){return rr().memoizedState}function g0(){return rr().memoizedState}function ec(i){for(var a=i.return;a!==null;){switch(a.tag){case 24:case 3:var u=eo();i=Wa(u);var d=Vs(a,i,u);d!==null&&(wi(d,a,u),Hs(d,a,u)),a={cache:zm()},i.payload=a;return}a=a.return}}function kf(i,a,u){var d=eo();u={lane:d,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Xl(i)?y0(a,u):(u=Bu(i,a,u,d),u!==null&&(wi(u,i,d),Nf(u,a,d)))}function Ig(i,a,u){var d=eo();tc(i,a,u,d)}function tc(i,a,u,d){var b={lane:d,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Xl(i))y0(a,b);else{var E=i.alternate;if(i.lanes===0&&(E===null||E.lanes===0)&&(E=a.lastRenderedReducer,E!==null))try{var N=a.lastRenderedState,F=E(N,u);if(b.hasEagerState=!0,b.eagerState=F,Mr(F,N))return Po(i,a,b,0),On===null&&Dl(),!1}catch{}if(u=Bu(i,a,b,d),u!==null)return wi(u,i,d),Nf(u,a,d),!0}return!1}function Oh(i,a,u,d){if(d={lane:2,revertLane:sv(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Xl(i)){if(a)throw Error(r(479))}else a=Bu(i,u,d,2),a!==null&&wi(a,i,2)}function Xl(i){var a=i.alternate;return i===ft||a!==null&&a===ft}function y0(i,a){$l=Ku=!0;var u=i.pending;u===null?a.next=a:(a.next=u.next,u.next=a),i.pending=a}function Nf(i,a,u){if((u&4194048)!==0){var d=a.lanes;d&=i.pendingLanes,u|=d,a.lanes=u,ta(i,u)}}var Zl={readContext:Br,use:Tf,useCallback:nr,useContext:nr,useEffect:nr,useImperativeHandle:nr,useLayoutEffect:nr,useInsertionEffect:nr,useMemo:nr,useReducer:nr,useRef:nr,useState:nr,useDebugValue:nr,useDeferredValue:nr,useTransition:nr,useSyncExternalStore:nr,useId:nr,useHostTransitionStatus:nr,useFormState:nr,useActionState:nr,useOptimistic:nr,useMemoCache:nr,useCacheRefresh:nr};Zl.useEffectEvent=nr;var If={readContext:Br,use:Tf,useCallback:function(i,a){return di().memoizedState=[i,a===void 0?null:a],i},useContext:Br,useEffect:u0,useImperativeHandle:function(i,a,u){u=u!=null?u.concat([i]):null,Ch(4194308,4,f0.bind(null,a,i),u)},useLayoutEffect:function(i,a){return Ch(4194308,4,i,a)},useInsertionEffect:function(i,a){Ch(4,2,i,a)},useMemo:function(i,a){var u=di();a=a===void 0?null:a;var d=i();if(Ql){kn(!0);try{i()}finally{kn(!1)}}return u.memoizedState=[d,a],d},useReducer:function(i,a,u){var d=di();if(u!==void 0){var b=u(a);if(Ql){kn(!0);try{u(a)}finally{kn(!1)}}}else b=a;return d.memoizedState=d.baseState=b,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:b},d.queue=i,i=i.dispatch=kf.bind(null,ft,i),[d.memoizedState,i]},useRef:function(i){var a=di();return i={current:i},a.memoizedState=i},useState:function(i){i=r0(i);var a=i.queue,u=Ig.bind(null,ft,a);return a.dispatch=u,[i.memoizedState,u]},useDebugValue:h0,useDeferredValue:function(i,a){var u=di();return Xr(u,i,a)},useTransition:function(){var i=r0(!1);return i=kg.bind(null,ft,i.queue,!0,!1),di().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,a,u){var d=ft,b=di();if(Ot){if(u===void 0)throw Error(r(407));u=u()}else{if(u=a(),On===null)throw Error(r(349));(zt&127)!==0||Zu(d,a,u)}b.memoizedState=u;var E={value:u,getSnapshot:a};return b.queue=E,u0(wg.bind(null,d,E,i),[i]),d.flags|=2048,Qs(9,{destroy:void 0},n0.bind(null,d,E,u,a),null),u},useId:function(){var i=di(),a=On.identifierPrefix;if(Ot){var u=sa,d=Fo;u=(d&~(1<<32-Qn(d)-1)).toString(32)+u,a="_"+a+"R_"+u,u=vh++,0<u&&(a+="H"+u.toString(32)),a+="_"}else u=Xm++,a="_"+a+"r_"+u.toString(32)+"_";return i.memoizedState=a},useHostTransitionStatus:Rh,useFormState:Af,useActionState:Af,useOptimistic:function(i){var a=di();a.memoizedState=a.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=Oh.bind(null,ft,!0,u),u.dispatch=a,[i,a]},useMemoCache:Rf,useCacheRefresh:function(){return di().memoizedState=ec.bind(null,ft)},useEffectEvent:function(i){var a=di(),u={impl:i};return a.memoizedState=u,function(){if((un&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},b0={readContext:Br,use:Tf,useCallback:p0,useContext:Br,useEffect:Th,useImperativeHandle:d0,useInsertionEffect:Og,useLayoutEffect:Ag,useMemo:m0,useReducer:Xu,useRef:Xa,useState:function(){return Xu(Ka)},useDebugValue:h0,useDeferredValue:function(i,a){var u=rr();return Ho(u,Sn.memoizedState,i,a)},useTransition:function(){var i=Xu(Ka)[0],a=rr().memoizedState;return[typeof i=="boolean"?i:Yl(i),a]},useSyncExternalStore:xg,useId:Ng,useHostTransitionStatus:Rh,useFormState:l0,useActionState:l0,useOptimistic:function(i,a){var u=rr();return Of(u,Sn,i,a)},useMemoCache:Rf,useCacheRefresh:g0};b0.useEffectEvent=Rg;var _0={readContext:Br,use:Tf,useCallback:p0,useContext:Br,useEffect:Th,useImperativeHandle:d0,useInsertionEffect:Og,useLayoutEffect:Ag,useMemo:m0,useReducer:t0,useRef:Xa,useState:function(){return t0(Ka)},useDebugValue:h0,useDeferredValue:function(i,a){var u=rr();return Sn===null?Xr(u,i,a):Ho(u,Sn.memoizedState,i,a)},useTransition:function(){var i=t0(Ka)[0],a=rr().memoizedState;return[typeof i=="boolean"?i:Yl(i),a]},useSyncExternalStore:xg,useId:Ng,useHostTransitionStatus:Rh,useFormState:wh,useActionState:wh,useOptimistic:function(i,a){var u=rr();return Sn!==null?Of(u,Sn,i,a):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:Rf,useCacheRefresh:g0};_0.useEffectEvent=Rg;function nc(i,a,u,d){a=i.memoizedState,u=u(d,a),u=u==null?a:g({},a,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var Ah={enqueueSetState:function(i,a,u){i=i._reactInternals;var d=eo(),b=Wa(d);b.payload=a,u!=null&&(b.callback=u),a=Vs(i,b,d),a!==null&&(wi(a,i,d),Hs(a,i,d))},enqueueReplaceState:function(i,a,u){i=i._reactInternals;var d=eo(),b=Wa(d);b.tag=1,b.payload=a,u!=null&&(b.callback=u),a=Vs(i,b,d),a!==null&&(wi(a,i,d),Hs(a,i,d))},enqueueForceUpdate:function(i,a){i=i._reactInternals;var u=eo(),d=Wa(u);d.tag=2,a!=null&&(d.callback=a),a=Vs(i,d,u),a!==null&&(wi(a,i,u),Hs(a,i,u))}};function kh(i,a,u,d,b,E,N){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(d,E,N):a.prototype&&a.prototype.isPureReactComponent?!ui(u,d)||!ui(b,E):!0}function Mg(i,a,u,d){i=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,d),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,d),a.state!==i&&Ah.enqueueReplaceState(a,a.state,null)}function Ws(i,a){var u=a;if("ref"in a){u={};for(var d in a)d!=="ref"&&(u[d]=a[d])}if(i=i.defaultProps){u===a&&(u=g({},u));for(var b in i)u[b]===void 0&&(u[b]=i[b])}return u}function pa(i){Ml(i)}function S0(i){console.error(i)}function E0(i){Ml(i)}function Nh(i,a){try{var u=i.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(d){setTimeout(function(){throw d})}}function x0(i,a,u){try{var d=i.onCaughtError;d(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function w0(i,a,u){return u=Wa(u),u.tag=3,u.payload={element:null},u.callback=function(){Nh(i,a)},u}function Dg(i){return i=Wa(i),i.tag=3,i}function ma(i,a,u,d){var b=u.type.getDerivedStateFromError;if(typeof b=="function"){var E=d.value;i.payload=function(){return b(E)},i.callback=function(){x0(a,u,d)}}var N=u.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(i.callback=function(){x0(a,u,d),typeof b!="function"&&(Xs===null?Xs=new Set([this]):Xs.add(this));var F=d.stack;this.componentDidCatch(d.value,{componentStack:F!==null?F:""})})}function C0(i,a,u,d,b){if(u.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(a=u.alternate,a!==null&&$u(a,u,b,!0),u=fi.current,u!==null){switch(u.tag){case 31:case 13:return So===null?Hh():u.alternate===null&&Hn===0&&(Hn=3),u.flags&=-257,u.flags|=65536,u.lanes=b,d===Sf?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([d]):a.add(d),ov(i,d,b)),!1;case 22:return u.flags|=65536,d===Sf?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([d])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([d]):u.add(d)),ov(i,d,b)),!1}throw Error(r(435,u.tag))}return ov(i,d,b),Hh(),!1}if(Ot)return a=fi.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=b,d!==Vm&&(i=Error(r(422),{cause:d}),ua(yo(i,u)))):(d!==Vm&&(a=Error(r(423),{cause:d}),ua(yo(a,u))),i=i.current.alternate,i.flags|=65536,b&=-b,i.lanes|=b,d=yo(d,u),b=w0(i.stateNode,d,b),Wm(i,b),Hn!==4&&(Hn=2)),!1;var E=Error(r(520),{cause:d});if(E=yo(E,u),Uf===null?Uf=[E]:Uf.push(E),Hn!==4&&(Hn=2),a===null)return!0;d=yo(d,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,i=b&-b,u.lanes|=i,i=w0(u.stateNode,d,i),Wm(u,i),!1;case 1:if(a=u.type,E=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(Xs===null||!Xs.has(E))))return u.flags|=65536,b&=-b,u.lanes|=b,b=Dg(b),ma(b,i,u,d),Wm(u,b),!1}u=u.return}while(u!==null);return!1}var Mf=Error(r(461)),ir=!1;function mr(i,a,u,d){a.child=i===null?Qm(a,null,u,d):Hl(a,i.child,u,d)}function Jl(i,a,u,d,b){u=u.render;var E=a.ref;if("ref"in d){var N={};for(var F in d)F!=="ref"&&(N[F]=d[F])}else N=d;return Ul(a),d=gh(i,a,u,N,E,b),F=e0(),i!==null&&!ir?(bh(i,a,b),Ki(i,a,b)):(Ot&&F&&gf(a),a.flags|=1,mr(i,a,d,b),a.child)}function nt(i,a,u,d,b){if(i===null){var E=u.type;return typeof E=="function"&&!Pl(E)&&E.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=E,Df(i,a,E,d,b)):(i=ah(u.type,null,d,a,a.mode,b),i.ref=a.ref,i.return=a,a.child=i)}if(E=i.child,!Lh(i,b)){var N=E.memoizedProps;if(u=u.compare,u=u!==null?u:ui,u(N,d)&&i.ref===a.ref)return Ki(i,a,b)}return a.flags|=1,i=ci(E,d),i.ref=a.ref,i.return=a,a.child=i}function Df(i,a,u,d,b){if(i!==null){var E=i.memoizedProps;if(ui(E,d)&&i.ref===a.ref)if(ir=!1,a.pendingProps=d=E,Lh(i,b))(i.flags&131072)!==0&&(ir=!0);else return a.lanes=i.lanes,Ki(i,a,b)}return R0(i,a,u,d,b)}function Ih(i,a,u,d){var b=d.children,E=i!==null?i.memoizedState:null;if(i===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((a.flags&128)!==0){if(E=E!==null?E.baseLanes|u:u,i!==null){for(d=a.child=i.child,b=0;d!==null;)b=b|d.lanes|d.childLanes,d=d.sibling;d=b&~E}else d=0,a.child=null;return Lg(i,a,E,u,d)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},i!==null&&fh(a,E!==null?E.cachePool:null),E!==null?qs(a,E):hh(),ph(a);else return d=a.lanes=536870912,Lg(i,a,E!==null?E.baseLanes|u:u,u,d)}else E!==null?(fh(a,E.cachePool),qs(a,E),$s(),a.memoizedState=null):(i!==null&&fh(a,null),hh(),$s());return mr(i,a,b,u),a.child}function zo(i,a){return i!==null&&i.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Lg(i,a,u,d,b){var E=Gm();return E=E===null?null:{parent:hr._currentValue,pool:E},a.memoizedState={baseLanes:u,cachePool:E},i!==null&&fh(a,null),hh(),ph(a),i!==null&&$u(i,a,d,!0),a.childLanes=b,null}function rc(i,a){return a=ic({mode:a.mode,children:a.children},i.mode),a.ref=i.ref,i.child=a,a.return=i,a}function T0(i,a,u){return Hl(a,i.child,null,u),i=rc(a,a.pendingProps),i.flags|=2,zr(a),a.memoizedState=null,i}function Zr(i,a,u){var d=a.pendingProps,b=(a.flags&128)!==0;if(a.flags&=-129,i===null){if(Ot){if(d.mode==="hidden")return i=rc(a,d),a.lanes=536870912,zo(null,i);if(Km(a),(i=_n)?(i=cn(i,_o),i=i!==null&&i.data==="&"?i:null,i!==null&&(a.memoizedState={dehydrated:i,treeContext:Ds!==null?{id:Fo,overflow:sa}:null,retryLane:536870912,hydrationErrors:null},u=vf(i),u.return=a,a.child=u,cr=a,_n=null)):i=null,i===null)throw Fs(a);return a.lanes=536870912,null}return rc(a,d)}var E=i.memoizedState;if(E!==null){var N=E.dehydrated;if(Km(a),b)if(a.flags&256)a.flags&=-257,a=T0(i,a,u);else if(a.memoizedState!==null)a.child=i.child,a.flags|=128,a=null;else throw Error(r(558));else if(ir||$u(i,a,u,!1),b=(u&i.childLanes)!==0,ir||b){if(d=On,d!==null&&(N=ai(d,u),N!==0&&N!==E.retryLane))throw E.retryLane=N,Ms(i,N),wi(d,i,N),Mf;Hh(),a=T0(i,a,u)}else i=E.treeContext,_n=Ri(N.nextSibling),cr=a,Ot=!0,Ps=null,_o=!1,i!==null&&qu(a,i),a=rc(a,d),a.flags|=4096;return a}return i=ci(i.child,{mode:d.mode,children:d.children}),i.ref=a.ref,a.child=i,i.return=a,i}function Mh(i,a){var u=a.ref;if(u===null)i!==null&&i.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(a.flags|=4194816)}}function R0(i,a,u,d,b){return Ul(a),u=gh(i,a,u,d,void 0,b),d=e0(),i!==null&&!ir?(bh(i,a,b),Ki(i,a,b)):(Ot&&d&&gf(a),a.flags|=1,mr(i,a,u,b),a.child)}function O0(i,a,u,d,b,E){return Ul(a),a.updateQueue=null,u=Jm(a,d,u,b),Zm(i),d=e0(),i!==null&&!ir?(bh(i,a,E),Ki(i,a,E)):(Ot&&d&&gf(a),a.flags|=1,mr(i,a,u,E),a.child)}function Pg(i,a,u,d,b){if(Ul(a),a.stateNode===null){var E=Ll,N=u.contextType;typeof N=="object"&&N!==null&&(E=Br(N)),E=new u(d,E),a.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=Ah,a.stateNode=E,E._reactInternals=a,E=a.stateNode,E.props=d,E.state=a.memoizedState,E.refs={},zl(a),N=u.contextType,E.context=typeof N=="object"&&N!==null?Br(N):Ll,E.state=a.memoizedState,N=u.getDerivedStateFromProps,typeof N=="function"&&(nc(a,u,N,d),E.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(N=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),N!==E.state&&Ah.enqueueReplaceState(E,E.state,null),ql(a,d,E,b),fr(),E.state=a.memoizedState),typeof E.componentDidMount=="function"&&(a.flags|=4194308),d=!0}else if(i===null){E=a.stateNode;var F=a.memoizedProps,Z=Ws(u,F);E.props=Z;var ce=E.context,be=u.contextType;N=Ll,typeof be=="object"&&be!==null&&(N=Br(be));var Ee=u.getDerivedStateFromProps;be=typeof Ee=="function"||typeof E.getSnapshotBeforeUpdate=="function",F=a.pendingProps!==F,be||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(F||ce!==N)&&Mg(a,E,d,N),Qa=!1;var fe=a.memoizedState;E.state=fe,ql(a,d,E,b),fr(),ce=a.memoizedState,F||fe!==ce||Qa?(typeof Ee=="function"&&(nc(a,u,Ee,d),ce=a.memoizedState),(Z=Qa||kh(a,u,Z,d,fe,ce,N))?(be||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(a.flags|=4194308)):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=d,a.memoizedState=ce),E.props=d,E.state=ce,E.context=N,d=Z):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),d=!1)}else{E=a.stateNode,da(i,a),N=a.memoizedProps,be=Ws(u,N),E.props=be,Ee=a.pendingProps,fe=E.context,ce=u.contextType,Z=Ll,typeof ce=="object"&&ce!==null&&(Z=Br(ce)),F=u.getDerivedStateFromProps,(ce=typeof F=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(N!==Ee||fe!==Z)&&Mg(a,E,d,Z),Qa=!1,fe=a.memoizedState,E.state=fe,ql(a,d,E,b),fr();var pe=a.memoizedState;N!==Ee||fe!==pe||Qa||i!==null&&i.dependencies!==null&&uh(i.dependencies)?(typeof F=="function"&&(nc(a,u,F,d),pe=a.memoizedState),(be=Qa||kh(a,u,be,d,fe,pe,Z)||i!==null&&i.dependencies!==null&&uh(i.dependencies))?(ce||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(d,pe,Z),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(d,pe,Z)),typeof E.componentDidUpdate=="function"&&(a.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof E.componentDidUpdate!="function"||N===i.memoizedProps&&fe===i.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&fe===i.memoizedState||(a.flags|=1024),a.memoizedProps=d,a.memoizedState=pe),E.props=d,E.state=pe,E.context=Z,d=be):(typeof E.componentDidUpdate!="function"||N===i.memoizedProps&&fe===i.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&fe===i.memoizedState||(a.flags|=1024),d=!1)}return E=d,Mh(i,a),d=(a.flags&128)!==0,E||d?(E=a.stateNode,u=d&&typeof u.getDerivedStateFromError!="function"?null:E.render(),a.flags|=1,i!==null&&d?(a.child=Hl(a,i.child,null,b),a.child=Hl(a,null,u,b)):mr(i,a,u,b),a.memoizedState=E.state,i=a.child):i=Ki(i,a,b),i}function A0(i,a,u,d){return js(),a.flags|=256,mr(i,a,u,d),a.child}var k0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function N0(i){return{baseLanes:i,cachePool:bg()}}function I0(i,a,u){return i=i!==null?i.childLanes&~u:0,a&&(i|=Ji),i}function va(i,a,u){var d=a.pendingProps,b=!1,E=(a.flags&128)!==0,N;if((N=E)||(N=i!==null&&i.memoizedState===null?!1:(tr.current&2)!==0),N&&(b=!0,a.flags&=-129),N=(a.flags&32)!==0,a.flags&=-33,i===null){if(Ot){if(b?Gs(a):$s(),(i=_n)?(i=cn(i,_o),i=i!==null&&i.data!=="&"?i:null,i!==null&&(a.memoizedState={dehydrated:i,treeContext:Ds!==null?{id:Fo,overflow:sa}:null,retryLane:536870912,hydrationErrors:null},u=vf(i),u.return=a,a.child=u,cr=a,_n=null)):i=null,i===null)throw Fs(a);return Zh(i)?a.lanes=32:a.lanes=536870912,null}var F=d.children;return d=d.fallback,b?($s(),b=a.mode,F=ic({mode:"hidden",children:F},b),d=Fl(d,b,u,null),F.return=a,d.return=a,F.sibling=d,a.child=F,d=a.child,d.memoizedState=N0(u),d.childLanes=I0(i,N,u),a.memoizedState=k0,zo(null,d)):(Gs(a),qr(a,F))}var Z=i.memoizedState;if(Z!==null&&(F=Z.dehydrated,F!==null)){if(E)a.flags&256?(Gs(a),a.flags&=-257,a=M0(i,a,u)):a.memoizedState!==null?($s(),a.child=i.child,a.flags|=128,a=null):($s(),F=d.fallback,b=a.mode,d=ic({mode:"visible",children:d.children},b),F=Fl(F,b,u,null),F.flags|=2,d.return=a,F.return=a,d.sibling=F,a.child=d,Hl(a,i.child,null,u),d=a.child,d.memoizedState=N0(u),d.childLanes=I0(i,N,u),a.memoizedState=k0,a=zo(null,d));else if(Gs(a),Zh(F)){if(N=F.nextSibling&&F.nextSibling.dataset,N)var ce=N.dgst;N=ce,d=Error(r(419)),d.stack="",d.digest=N,ua({value:d,source:null,stack:null}),a=M0(i,a,u)}else if(ir||$u(i,a,u,!1),N=(u&i.childLanes)!==0,ir||N){if(N=On,N!==null&&(d=ai(N,u),d!==0&&d!==Z.retryLane))throw Z.retryLane=d,Ms(i,d),wi(N,i,d),Mf;pv(F)||Hh(),a=M0(i,a,u)}else pv(F)?(a.flags|=192,a.child=i.child,a=null):(i=Z.treeContext,_n=Ri(F.nextSibling),cr=a,Ot=!0,Ps=null,_o=!1,i!==null&&qu(a,i),a=qr(a,d.children),a.flags|=4096);return a}return b?($s(),F=d.fallback,b=a.mode,Z=i.child,ce=Z.sibling,d=ci(Z,{mode:"hidden",children:d.children}),d.subtreeFlags=Z.subtreeFlags&65011712,ce!==null?F=ci(ce,F):(F=Fl(F,b,u,null),F.flags|=2),F.return=a,d.return=a,d.sibling=F,a.child=d,zo(null,d),d=a.child,F=i.child.memoizedState,F===null?F=N0(u):(b=F.cachePool,b!==null?(Z=hr._currentValue,b=b.parent!==Z?{parent:Z,pool:Z}:b):b=bg(),F={baseLanes:F.baseLanes|u,cachePool:b}),d.memoizedState=F,d.childLanes=I0(i,N,u),a.memoizedState=k0,zo(i.child,d)):(Gs(a),u=i.child,i=u.sibling,u=ci(u,{mode:"visible",children:d.children}),u.return=a,u.sibling=null,i!==null&&(N=a.deletions,N===null?(a.deletions=[i],a.flags|=16):N.push(i)),a.child=u,a.memoizedState=null,u)}function qr(i,a){return a=ic({mode:"visible",children:a},i.mode),a.return=i,i.child=a}function ic(i,a){return i=bi(22,i,null,a),i.lanes=0,i}function M0(i,a,u){return Hl(a,i.child,null,u),i=qr(a,a.pendingProps.children),i.flags|=2,a.memoizedState=null,i}function Dh(i,a,u){i.lanes|=a;var d=i.alternate;d!==null&&(d.lanes|=a),Hm(i.return,a,u)}function D0(i,a,u,d,b,E){var N=i.memoizedState;N===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:d,tail:u,tailMode:b,treeForkCount:E}:(N.isBackwards=a,N.rendering=null,N.renderingStartTime=0,N.last=d,N.tail=u,N.tailMode=b,N.treeForkCount=E)}function Fg(i,a,u){var d=a.pendingProps,b=d.revealOrder,E=d.tail;d=d.children;var N=tr.current,F=(N&2)!==0;if(F?(N=N&1|2,a.flags|=128):N&=1,de(tr,N),mr(i,a,d,u),d=Ot?Yn:0,!F&&i!==null&&(i.flags&128)!==0)e:for(i=a.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&Dh(i,u,a);else if(i.tag===19)Dh(i,u,a);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(b){case"forwards":for(u=a.child,b=null;u!==null;)i=u.alternate,i!==null&&mh(i)===null&&(b=u),u=u.sibling;u=b,u===null?(b=a.child,a.child=null):(b=u.sibling,u.sibling=null),D0(a,!1,b,u,E,d);break;case"backwards":case"unstable_legacy-backwards":for(u=null,b=a.child,a.child=null;b!==null;){if(i=b.alternate,i!==null&&mh(i)===null){a.child=b;break}i=b.sibling,b.sibling=u,u=b,b=i}D0(a,!0,u,null,E,d);break;case"together":D0(a,!1,null,null,void 0,d);break;default:a.memoizedState=null}return a.child}function Ki(i,a,u){if(i!==null&&(a.dependencies=i.dependencies),os|=a.lanes,(u&a.childLanes)===0)if(i!==null){if($u(i,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(i!==null&&a.child!==i.child)throw Error(r(153));if(a.child!==null){for(i=a.child,u=ci(i,i.pendingProps),a.child=u,u.return=a;i.sibling!==null;)i=i.sibling,u=u.sibling=ci(i,i.pendingProps),u.return=a;u.sibling=null}return a.child}function Lh(i,a){return(i.lanes&a)!==0?!0:(i=i.dependencies,!!(i!==null&&uh(i)))}function jg(i,a,u){switch(a.tag){case 3:Le(a,a.stateNode.containerInfo),Us(a,hr,i.memoizedState.cache),js();break;case 27:case 5:an(a);break;case 4:Le(a,a.stateNode.containerInfo);break;case 10:Us(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Km(a),null;break;case 13:var d=a.memoizedState;if(d!==null)return d.dehydrated!==null?(Gs(a),a.flags|=128,null):(u&a.child.childLanes)!==0?va(i,a,u):(Gs(a),i=Ki(i,a,u),i!==null?i.sibling:null);Gs(a);break;case 19:var b=(i.flags&128)!==0;if(d=(u&a.childLanes)!==0,d||($u(i,a,u,!1),d=(u&a.childLanes)!==0),b){if(d)return Fg(i,a,u);a.flags|=128}if(b=a.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),de(tr,tr.current),d)break;return null;case 22:return a.lanes=0,Ih(i,a,u,a.pendingProps);case 24:Us(a,hr,i.memoizedState.cache)}return Ki(i,a,u)}function Ug(i,a,u){if(i!==null)if(i.memoizedProps!==a.pendingProps)ir=!0;else{if(!Lh(i,u)&&(a.flags&128)===0)return ir=!1,jg(i,a,u);ir=(i.flags&131072)!==0}else ir=!1,Ot&&(a.flags&1048576)!==0&&zu(a,Yn,a.index);switch(a.lanes=0,a.tag){case 16:e:{var d=a.pendingProps;if(i=$a(a.elementType),a.type=i,typeof i=="function")Pl(i)?(d=Ws(i,d),a.tag=1,a=Pg(null,a,i,d,u)):(a.tag=0,a=R0(null,a,i,d,u));else{if(i!=null){var b=i.$$typeof;if(b===L){a.tag=11,a=Jl(null,a,i,d,u);break e}else if(b===j){a.tag=14,a=nt(null,a,i,d,u);break e}}throw a=G(i)||i,Error(r(306,a,""))}}return a;case 0:return R0(i,a,a.type,a.pendingProps,u);case 1:return d=a.type,b=Ws(d,a.pendingProps),Pg(i,a,d,b,u);case 3:e:{if(Le(a,a.stateNode.containerInfo),i===null)throw Error(r(387));d=a.pendingProps;var E=a.memoizedState;b=E.element,da(i,a),ql(a,d,null,u);var N=a.memoizedState;if(d=N.cache,Us(a,hr,d),d!==E.cache&&Ga(a,[hr],u,!0),fr(),d=N.element,E.isDehydrated)if(E={element:d,isDehydrated:!1,cache:N.cache},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){a=A0(i,a,d,u);break e}else if(d!==b){b=yo(Error(r(424)),a),ua(b),a=A0(i,a,d,u);break e}else for(i=a.stateNode.containerInfo,i.nodeType===9?i=i.body:i=i.nodeName==="HTML"?i.ownerDocument.body:i,_n=Ri(i.firstChild),cr=a,Ot=!0,Ps=null,_o=!0,u=Qm(a,null,d,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(js(),d===b){a=Ki(i,a,u);break e}mr(i,a,d,u)}a=a.child}return a;case 26:return Mh(i,a),i===null?(u=ky(a.type,null,a.pendingProps,null))?a.memoizedState=u:Ot||(u=a.type,i=a.pendingProps,d=Xh(Me.current).createElement(u),d[Nn]=a,d[lr]=i,Gr(d,u,i),In(d),a.stateNode=d):a.memoizedState=ky(a.type,i.memoizedProps,a.pendingProps,i.memoizedState),null;case 27:return an(a),i===null&&Ot&&(d=a.stateNode=Oy(a.type,a.pendingProps,Me.current),cr=a,_o=!0,b=_n,Jr(a.type)?(mv=b,_n=Ri(d.firstChild)):_n=b),mr(i,a,a.pendingProps.children,u),Mh(i,a),i===null&&(a.flags|=4194304),a.child;case 5:return i===null&&Ot&&((b=d=_n)&&(d=wy(d,a.type,a.pendingProps,_o),d!==null?(a.stateNode=d,cr=a,_n=Ri(d.firstChild),_o=!1,b=!0):b=!1),b||Fs(a)),an(a),b=a.type,E=a.pendingProps,N=i!==null?i.memoizedProps:null,d=E.children,pi(b,E)?d=null:N!==null&&pi(b,N)&&(a.flags|=32),a.memoizedState!==null&&(b=gh(i,a,yh,null,null,u),yc._currentValue=b),Mh(i,a),mr(i,a,d,u),a.child;case 6:return i===null&&Ot&&((i=u=_n)&&(u=dS(u,a.pendingProps,_o),u!==null?(a.stateNode=u,cr=a,_n=null,i=!0):i=!1),i||Fs(a)),null;case 13:return va(i,a,u);case 4:return Le(a,a.stateNode.containerInfo),d=a.pendingProps,i===null?a.child=Hl(a,null,d,u):mr(i,a,d,u),a.child;case 11:return Jl(i,a,a.type,a.pendingProps,u);case 7:return mr(i,a,a.pendingProps,u),a.child;case 8:return mr(i,a,a.pendingProps.children,u),a.child;case 12:return mr(i,a,a.pendingProps.children,u),a.child;case 10:return d=a.pendingProps,Us(a,a.type,d.value),mr(i,a,d.children,u),a.child;case 9:return b=a.type._context,d=a.pendingProps.children,Ul(a),b=Br(b),d=d(b),a.flags|=1,mr(i,a,d,u),a.child;case 14:return nt(i,a,a.type,a.pendingProps,u);case 15:return Df(i,a,a.type,a.pendingProps,u);case 19:return Fg(i,a,u);case 31:return Zr(i,a,u);case 22:return Ih(i,a,u,a.pendingProps);case 24:return Ul(a),d=Br(hr),i===null?(b=Gm(),b===null&&(b=On,E=zm(),b.pooledCache=E,E.refCount++,E!==null&&(b.pooledCacheLanes|=u),b=E),a.memoizedState={parent:d,cache:b},zl(a),Us(a,hr,b)):((i.lanes&u)!==0&&(da(i,a),ql(a,null,null,u),fr()),b=i.memoizedState,E=a.memoizedState,b.parent!==d?(b={parent:d,cache:d},a.memoizedState=b,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=b),Us(a,hr,d)):(d=E.cache,Us(a,hr,d),d!==b.cache&&Ga(a,[hr],u,!0))),mr(i,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function Za(i){i.flags|=4}function L0(i,a,u,d,b){if((a=(i.mode&32)!==0)&&(a=!1),a){if(i.flags|=16777216,(b&335544128)===b)if(i.stateNode.complete)i.flags|=8192;else if(iy())i.flags|=8192;else throw Uo=Sf,$m}else i.flags&=-16777217}function Bg(i,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Iy(a))if(iy())i.flags|=8192;else throw Uo=Sf,$m}function Lf(i,a){a!==null&&(i.flags|=4),i.flags&16384&&(a=i.tag!==22?uo():536870912,i.lanes|=a,fc|=a)}function oc(i,a){if(!Ot)switch(i.tailMode){case"hidden":a=i.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var d=null;u!==null;)u.alternate!==null&&(d=u),u=u.sibling;d===null?a||i.tail===null?i.tail=null:i.tail.sibling=null:d.sibling=null}}function Dn(i){var a=i.alternate!==null&&i.alternate.child===i.child,u=0,d=0;if(a)for(var b=i.child;b!==null;)u|=b.lanes|b.childLanes,d|=b.subtreeFlags&65011712,d|=b.flags&65011712,b.return=i,b=b.sibling;else for(b=i.child;b!==null;)u|=b.lanes|b.childLanes,d|=b.subtreeFlags,d|=b.flags,b.return=i,b=b.sibling;return i.subtreeFlags|=d,i.childLanes=u,a}function P0(i,a,u){var d=a.pendingProps;switch(Ls(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dn(a),null;case 1:return Dn(a),null;case 3:return u=a.stateNode,d=null,i!==null&&(d=i.memoizedState.cache),a.memoizedState.cache!==d&&(a.flags|=2048),qa(hr),$e(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(la(a)?Za(a):i===null||i.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,U())),Dn(a),null;case 26:var b=a.type,E=a.memoizedState;return i===null?(Za(a),E!==null?(Dn(a),Bg(a,E)):(Dn(a),L0(a,b,null,d,u))):E?E!==i.memoizedState?(Za(a),Dn(a),Bg(a,E)):(Dn(a),a.flags&=-16777217):(i=i.memoizedProps,i!==d&&Za(a),Dn(a),L0(a,b,i,d,u)),null;case 27:if(dr(a),u=Me.current,b=a.type,i!==null&&a.stateNode!=null)i.memoizedProps!==d&&Za(a);else{if(!d){if(a.stateNode===null)throw Error(r(166));return Dn(a),null}i=me.current,la(a)?gg(a):(i=Oy(b,d,u),a.stateNode=i,Za(a))}return Dn(a),null;case 5:if(dr(a),b=a.type,i!==null&&a.stateNode!=null)i.memoizedProps!==d&&Za(a);else{if(!d){if(a.stateNode===null)throw Error(r(166));return Dn(a),null}if(E=me.current,la(a))gg(a);else{var N=Xh(Me.current);switch(E){case 1:E=N.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:E=N.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":E=N.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":E=N.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":E=N.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof d.is=="string"?N.createElement("select",{is:d.is}):N.createElement("select"),d.multiple?E.multiple=!0:d.size&&(E.size=d.size);break;default:E=typeof d.is=="string"?N.createElement(b,{is:d.is}):N.createElement(b)}}E[Nn]=a,E[lr]=d;e:for(N=a.child;N!==null;){if(N.tag===5||N.tag===6)E.appendChild(N.stateNode);else if(N.tag!==4&&N.tag!==27&&N.child!==null){N.child.return=N,N=N.child;continue}if(N===a)break e;for(;N.sibling===null;){if(N.return===null||N.return===a)break e;N=N.return}N.sibling.return=N.return,N=N.sibling}a.stateNode=E;e:switch(Gr(E,b,d),b){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Za(a)}}return Dn(a),L0(a,a.type,i===null?null:i.memoizedProps,a.pendingProps,u),null;case 6:if(i&&a.stateNode!=null)i.memoizedProps!==d&&Za(a);else{if(typeof d!="string"&&a.stateNode===null)throw Error(r(166));if(i=Me.current,la(a)){if(i=a.stateNode,u=a.memoizedProps,d=null,b=cr,b!==null)switch(b.tag){case 27:case 5:d=b.memoizedProps}i[Nn]=a,i=!!(i.nodeValue===u||d!==null&&d.suppressHydrationWarning===!0||yy(i.nodeValue,u)),i||Fs(a,!0)}else i=Xh(i).createTextNode(d),i[Nn]=a,a.stateNode=i}return Dn(a),null;case 31:if(u=a.memoizedState,i===null||i.memoizedState!==null){if(d=la(a),u!==null){if(i===null){if(!d)throw Error(r(318));if(i=a.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[Nn]=a}else js(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Dn(a),i=!1}else u=U(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i)return a.flags&256?(zr(a),a):(zr(a),null);if((a.flags&128)!==0)throw Error(r(558))}return Dn(a),null;case 13:if(d=a.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(b=la(a),d!==null&&d.dehydrated!==null){if(i===null){if(!b)throw Error(r(318));if(b=a.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[Nn]=a}else js(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Dn(a),b=!1}else b=U(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=b),b=!0;if(!b)return a.flags&256?(zr(a),a):(zr(a),null)}return zr(a),(a.flags&128)!==0?(a.lanes=u,a):(u=d!==null,i=i!==null&&i.memoizedState!==null,u&&(d=a.child,b=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(b=d.alternate.memoizedState.cachePool.pool),E=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(E=d.memoizedState.cachePool.pool),E!==b&&(d.flags|=2048)),u!==i&&u&&(a.child.flags|=8192),Lf(a,a.updateQueue),Dn(a),null);case 4:return $e(),i===null&&uv(a.stateNode.containerInfo),Dn(a),null;case 10:return qa(a.type),Dn(a),null;case 19:if(oe(tr),d=a.memoizedState,d===null)return Dn(a),null;if(b=(a.flags&128)!==0,E=d.rendering,E===null)if(b)oc(d,!1);else{if(Hn!==0||i!==null&&(i.flags&128)!==0)for(i=a.child;i!==null;){if(E=mh(i),E!==null){for(a.flags|=128,oc(d,!1),i=E.updateQueue,a.updateQueue=i,Lf(a,i),a.subtreeFlags=0,i=u,u=a.child;u!==null;)mf(u,i),u=u.sibling;return de(tr,tr.current&1|2),Ot&&jo(a,d.treeForkCount),a.child}i=i.sibling}d.tail!==null&&Oe()>Vh&&(a.flags|=128,b=!0,oc(d,!1),a.lanes=4194304)}else{if(!b)if(i=mh(E),i!==null){if(a.flags|=128,b=!0,i=i.updateQueue,a.updateQueue=i,Lf(a,i),oc(d,!0),d.tail===null&&d.tailMode==="hidden"&&!E.alternate&&!Ot)return Dn(a),null}else 2*Oe()-d.renderingStartTime>Vh&&u!==536870912&&(a.flags|=128,b=!0,oc(d,!1),a.lanes=4194304);d.isBackwards?(E.sibling=a.child,a.child=E):(i=d.last,i!==null?i.sibling=E:a.child=E,d.last=E)}return d.tail!==null?(i=d.tail,d.rendering=i,d.tail=i.sibling,d.renderingStartTime=Oe(),i.sibling=null,u=tr.current,de(tr,b?u&1|2:u&1),Ot&&jo(a,d.treeForkCount),i):(Dn(a),null);case 22:case 23:return zr(a),Hr(),d=a.memoizedState!==null,i!==null?i.memoizedState!==null!==d&&(a.flags|=8192):d&&(a.flags|=8192),d?(u&536870912)!==0&&(a.flags&128)===0&&(Dn(a),a.subtreeFlags&6&&(a.flags|=8192)):Dn(a),u=a.updateQueue,u!==null&&Lf(a,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),d=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),d!==u&&(a.flags|=2048),i!==null&&oe(Vr),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),qa(hr),Dn(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function Vg(i,a){switch(Ls(a),a.tag){case 1:return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 3:return qa(hr),$e(),i=a.flags,(i&65536)!==0&&(i&128)===0?(a.flags=i&-65537|128,a):null;case 26:case 27:case 5:return dr(a),null;case 31:if(a.memoizedState!==null){if(zr(a),a.alternate===null)throw Error(r(340));js()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 13:if(zr(a),i=a.memoizedState,i!==null&&i.dehydrated!==null){if(a.alternate===null)throw Error(r(340));js()}return i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 19:return oe(tr),null;case 4:return $e(),null;case 10:return qa(a.type),null;case 22:case 23:return zr(a),Hr(),i!==null&&oe(Vr),i=a.flags,i&65536?(a.flags=i&-65537|128,a):null;case 24:return qa(hr),null;case 25:return null;default:return null}}function ac(i,a){switch(Ls(a),a.tag){case 3:qa(hr),$e();break;case 26:case 27:case 5:dr(a);break;case 4:$e();break;case 31:a.memoizedState!==null&&zr(a);break;case 13:zr(a);break;case 19:oe(tr);break;case 10:qa(a.type);break;case 22:case 23:zr(a),Hr(),i!==null&&oe(Vr);break;case 24:qa(hr)}}function eu(i,a){try{var u=a.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var b=d.next;u=b;do{if((u.tag&i)===i){d=void 0;var E=u.create,N=u.inst;d=E(),N.destroy=d}u=u.next}while(u!==b)}}catch(F){pn(a,a.return,F)}}function Ja(i,a,u){try{var d=a.updateQueue,b=d!==null?d.lastEffect:null;if(b!==null){var E=b.next;d=E;do{if((d.tag&i)===i){var N=d.inst,F=N.destroy;if(F!==void 0){N.destroy=void 0,b=a;var Z=u,ce=F;try{ce()}catch(be){pn(b,Z,be)}}}d=d.next}while(d!==E)}}catch(be){pn(a,a.return,be)}}function F0(i){var a=i.updateQueue;if(a!==null){var u=i.stateNode;try{Bo(a,u)}catch(d){pn(i,i.return,d)}}}function Pf(i,a,u){u.props=Ws(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(d){pn(i,a,d)}}function sc(i,a){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var d=i.stateNode;break;case 30:d=i.stateNode;break;default:d=i.stateNode}typeof u=="function"?i.refCleanup=u(d):u.current=d}}catch(b){pn(i,a,b)}}function vr(i,a){var u=i.ref,d=i.refCleanup;if(u!==null)if(typeof d=="function")try{d()}catch(b){pn(i,a,b)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(b){pn(i,a,b)}else u.current=null}function Ys(i){var a=i.type,u=i.memoizedProps,d=i.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&d.focus();break e;case"img":u.src?d.src=u.src:u.srcSet&&(d.srcset=u.srcSet)}}catch(b){pn(i,i.return,b)}}function j0(i,a,u){try{var d=i.stateNode;lS(d,i.type,u,a),d[lr]=a}catch(b){pn(i,i.return,b)}}function U0(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Jr(i.type)||i.tag===4}function B0(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||U0(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Jr(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function V0(i,a,u){var d=i.tag;if(d===5||d===6)i=i.stateNode,a?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,a):(a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(i),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=po));else if(d!==4&&(d===27&&Jr(i.type)&&(u=i.stateNode,a=null),i=i.child,i!==null))for(V0(i,a,u),i=i.sibling;i!==null;)V0(i,a,u),i=i.sibling}function Ph(i,a,u){var d=i.tag;if(d===5||d===6)i=i.stateNode,a?u.insertBefore(i,a):u.appendChild(i);else if(d!==4&&(d===27&&Jr(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Ph(i,a,u),i=i.sibling;i!==null;)Ph(i,a,u),i=i.sibling}function Hg(i){var a=i.stateNode,u=i.memoizedProps;try{for(var d=i.type,b=a.attributes;b.length;)a.removeAttributeNode(b[0]);Gr(a,d,u),a[Nn]=i,a[lr]=u}catch(E){pn(i,i.return,E)}}var es=!1,gr=!1,H0=!1,zg=typeof WeakSet=="function"?WeakSet:Set,Lr=null;function Q2(i,a){if(i=i.containerInfo,ou=op,i=mg(i),Fm(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var d=u.getSelection&&u.getSelection();if(d&&d.rangeCount!==0){u=d.anchorNode;var b=d.anchorOffset,E=d.focusNode;d=d.focusOffset;try{u.nodeType,E.nodeType}catch{u=null;break e}var N=0,F=-1,Z=-1,ce=0,be=0,Ee=i,fe=null;t:for(;;){for(var pe;Ee!==u||b!==0&&Ee.nodeType!==3||(F=N+b),Ee!==E||d!==0&&Ee.nodeType!==3||(Z=N+d),Ee.nodeType===3&&(N+=Ee.nodeValue.length),(pe=Ee.firstChild)!==null;)fe=Ee,Ee=pe;for(;;){if(Ee===i)break t;if(fe===u&&++ce===b&&(F=N),fe===E&&++be===d&&(Z=N),(pe=Ee.nextSibling)!==null)break;Ee=fe,fe=Ee.parentNode}Ee=pe}u=F===-1||Z===-1?null:{start:F,end:Z}}else u=null}u=u||{start:0,end:0}}else u=null;for(Yf={focusedElem:i,selectionRange:u},op=!1,Lr=a;Lr!==null;)if(a=Lr,i=a.child,(a.subtreeFlags&1028)!==0&&i!==null)i.return=a,Lr=i;else for(;Lr!==null;){switch(a=Lr,E=a.alternate,i=a.flags,a.tag){case 0:if((i&4)!==0&&(i=a.updateQueue,i=i!==null?i.events:null,i!==null))for(u=0;u<i.length;u++)b=i[u],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&E!==null){i=void 0,u=a,b=E.memoizedProps,E=E.memoizedState,d=u.stateNode;try{var He=Ws(u.type,b);i=d.getSnapshotBeforeUpdate(He,E),d.__reactInternalSnapshotBeforeUpdate=i}catch(it){pn(u,u.return,it)}}break;case 3:if((i&1024)!==0){if(i=a.stateNode.containerInfo,u=i.nodeType,u===9)Ti(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Ti(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=a.sibling,i!==null){i.return=a.return,Lr=i;break}Lr=a.return}}function qg(i,a,u){var d=u.flags;switch(u.tag){case 0:case 11:case 15:ns(i,u),d&4&&eu(5,u);break;case 1:if(ns(i,u),d&4)if(i=u.stateNode,a===null)try{i.componentDidMount()}catch(N){pn(u,u.return,N)}else{var b=Ws(u.type,a.memoizedProps);a=a.memoizedState;try{i.componentDidUpdate(b,a,i.__reactInternalSnapshotBeforeUpdate)}catch(N){pn(u,u.return,N)}}d&64&&F0(u),d&512&&sc(u,u.return);break;case 3:if(ns(i,u),d&64&&(i=u.updateQueue,i!==null)){if(a=null,u.child!==null)switch(u.child.tag){case 27:case 5:a=u.child.stateNode;break;case 1:a=u.child.stateNode}try{Bo(i,a)}catch(N){pn(u,u.return,N)}}break;case 27:a===null&&d&4&&Hg(u);case 26:case 5:ns(i,u),a===null&&d&4&&Ys(u),d&512&&sc(u,u.return);break;case 12:ns(i,u);break;case 31:ns(i,u),d&4&&$g(i,u);break;case 13:ns(i,u),d&4&&q0(i,u),d&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=Gh.bind(null,u),Cy(i,u))));break;case 22:if(d=u.memoizedState!==null||es,!d){a=a!==null&&a.memoizedState!==null||gr,b=es;var E=gr;es=d,(gr=a)&&!E?rs(i,u,(u.subtreeFlags&8772)!==0):ns(i,u),es=b,gr=E}break;case 30:break;default:ns(i,u)}}function z0(i){var a=i.alternate;a!==null&&(i.alternate=null,z0(a)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(a=i.stateNode,a!==null&&xs(a)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Ln=null,hi=!1;function ts(i,a,u){for(u=u.child;u!==null;)Gg(i,a,u),u=u.sibling}function Gg(i,a,u){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(at,u)}catch{}switch(u.tag){case 26:gr||vr(u,a),ts(i,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:gr||vr(u,a);var d=Ln,b=hi;Jr(u.type)&&(Ln=u.stateNode,hi=!1),ts(i,a,u),Xf(u.stateNode),Ln=d,hi=b;break;case 5:gr||vr(u,a);case 6:if(d=Ln,b=hi,Ln=null,ts(i,a,u),Ln=d,hi=b,Ln!==null)if(hi)try{(Ln.nodeType===9?Ln.body:Ln.nodeName==="HTML"?Ln.ownerDocument.body:Ln).removeChild(u.stateNode)}catch(E){pn(u,a,E)}else try{Ln.removeChild(u.stateNode)}catch(E){pn(u,a,E)}break;case 18:Ln!==null&&(hi?(i=Ln,Et(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),_c(i)):Et(Ln,u.stateNode));break;case 4:d=Ln,b=hi,Ln=u.stateNode.containerInfo,hi=!0,ts(i,a,u),Ln=d,hi=b;break;case 0:case 11:case 14:case 15:Ja(2,u,a),gr||Ja(4,u,a),ts(i,a,u);break;case 1:gr||(vr(u,a),d=u.stateNode,typeof d.componentWillUnmount=="function"&&Pf(u,a,d)),ts(i,a,u);break;case 21:ts(i,a,u);break;case 22:gr=(d=gr)||u.memoizedState!==null,ts(i,a,u),gr=d;break;default:ts(i,a,u)}}function $g(i,a){if(a.memoizedState===null&&(i=a.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{_c(i)}catch(u){pn(a,a.return,u)}}}function q0(i,a){if(a.memoizedState===null&&(i=a.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{_c(i)}catch(u){pn(a,a.return,u)}}function W2(i){switch(i.tag){case 31:case 13:case 19:var a=i.stateNode;return a===null&&(a=i.stateNode=new zg),a;case 22:return i=i.stateNode,a=i._retryCache,a===null&&(a=i._retryCache=new zg),a;default:throw Error(r(435,i.tag))}}function Fh(i,a){var u=W2(i);a.forEach(function(d){if(!u.has(d)){u.add(d);var b=$h.bind(null,i,d);d.then(b,b)}})}function Si(i,a){var u=a.deletions;if(u!==null)for(var d=0;d<u.length;d++){var b=u[d],E=i,N=a,F=N;e:for(;F!==null;){switch(F.tag){case 27:if(Jr(F.type)){Ln=F.stateNode,hi=!1;break e}break;case 5:Ln=F.stateNode,hi=!1;break e;case 3:case 4:Ln=F.stateNode.containerInfo,hi=!0;break e}F=F.return}if(Ln===null)throw Error(r(160));Gg(E,N,b),Ln=null,hi=!1,E=b.alternate,E!==null&&(E.return=null),b.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Qg(a,i),a=a.sibling}var qo=null;function Qg(i,a){var u=i.alternate,d=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Si(a,i),Ei(i),d&4&&(Ja(3,i,i.return),eu(3,i),Ja(5,i,i.return));break;case 1:Si(a,i),Ei(i),d&512&&(gr||u===null||vr(u,u.return)),d&64&&es&&(i=i.updateQueue,i!==null&&(d=i.callbacks,d!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?d:u.concat(d))));break;case 26:var b=qo;if(Si(a,i),Ei(i),d&512&&(gr||u===null||vr(u,u.return)),d&4){var E=u!==null?u.memoizedState:null;if(d=i.memoizedState,u===null)if(d===null)if(i.stateNode===null){e:{d=i.type,u=i.memoizedProps,b=b.ownerDocument||b;t:switch(d){case"title":E=b.getElementsByTagName("title")[0],(!E||E[ja]||E[Nn]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=b.createElement(d),b.head.insertBefore(E,b.querySelector("head > title"))),Gr(E,d,u),E[Nn]=i,In(E),d=E;break e;case"link":var N=Sv("link","href",b).get(d+(u.href||""));if(N){for(var F=0;F<N.length;F++)if(E=N[F],E.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&E.getAttribute("rel")===(u.rel==null?null:u.rel)&&E.getAttribute("title")===(u.title==null?null:u.title)&&E.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){N.splice(F,1);break t}}E=b.createElement(d),Gr(E,d,u),b.head.appendChild(E);break;case"meta":if(N=Sv("meta","content",b).get(d+(u.content||""))){for(F=0;F<N.length;F++)if(E=N[F],E.getAttribute("content")===(u.content==null?null:""+u.content)&&E.getAttribute("name")===(u.name==null?null:u.name)&&E.getAttribute("property")===(u.property==null?null:u.property)&&E.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&E.getAttribute("charset")===(u.charSet==null?null:u.charSet)){N.splice(F,1);break t}}E=b.createElement(d),Gr(E,d,u),b.head.appendChild(E);break;default:throw Error(r(468,d))}E[Nn]=i,In(E),d=E}i.stateNode=d}else Ny(b,i.type,i.stateNode);else i.stateNode=yv(b,d,i.memoizedProps);else E!==d?(E===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):E.count--,d===null?Ny(b,i.type,i.stateNode):yv(b,d,i.memoizedProps)):d===null&&i.stateNode!==null&&j0(i,i.memoizedProps,u.memoizedProps)}break;case 27:Si(a,i),Ei(i),d&512&&(gr||u===null||vr(u,u.return)),u!==null&&d&4&&j0(i,i.memoizedProps,u.memoizedProps);break;case 5:if(Si(a,i),Ei(i),d&512&&(gr||u===null||vr(u,u.return)),i.flags&32){b=i.stateNode;try{Mo(b,"")}catch(He){pn(i,i.return,He)}}d&4&&i.stateNode!=null&&(b=i.memoizedProps,j0(i,b,u!==null?u.memoizedProps:b)),d&1024&&(H0=!0);break;case 6:if(Si(a,i),Ei(i),d&4){if(i.stateNode===null)throw Error(r(162));d=i.memoizedProps,u=i.stateNode;try{u.nodeValue=d}catch(He){pn(i,i.return,He)}}break;case 3:if(ed=null,b=qo,qo=Jh(a.containerInfo),Si(a,i),qo=b,Ei(i),d&4&&u!==null&&u.memoizedState.isDehydrated)try{_c(a.containerInfo)}catch(He){pn(i,i.return,He)}H0&&(H0=!1,Xi(i));break;case 4:d=qo,qo=Jh(i.stateNode.containerInfo),Si(a,i),Ei(i),qo=d;break;case 12:Si(a,i),Ei(i);break;case 31:Si(a,i),Ei(i),d&4&&(d=i.updateQueue,d!==null&&(i.updateQueue=null,Fh(i,d)));break;case 13:Si(a,i),Ei(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(Bh=Oe()),d&4&&(d=i.updateQueue,d!==null&&(i.updateQueue=null,Fh(i,d)));break;case 22:b=i.memoizedState!==null;var Z=u!==null&&u.memoizedState!==null,ce=es,be=gr;if(es=ce||b,gr=be||Z,Si(a,i),gr=be,es=ce,Ei(i),d&8192)e:for(a=i.stateNode,a._visibility=b?a._visibility&-2:a._visibility|1,b&&(u===null||Z||es||gr||tu(i)),u=null,a=i;;){if(a.tag===5||a.tag===26){if(u===null){Z=u=a;try{if(E=Z.stateNode,b)N=E.style,typeof N.setProperty=="function"?N.setProperty("display","none","important"):N.display="none";else{F=Z.stateNode;var Ee=Z.memoizedProps.style,fe=Ee!=null&&Ee.hasOwnProperty("display")?Ee.display:null;F.style.display=fe==null||typeof fe=="boolean"?"":(""+fe).trim()}}catch(He){pn(Z,Z.return,He)}}}else if(a.tag===6){if(u===null){Z=a;try{Z.stateNode.nodeValue=b?"":Z.memoizedProps}catch(He){pn(Z,Z.return,He)}}}else if(a.tag===18){if(u===null){Z=a;try{var pe=Z.stateNode;b?hv(pe,!0):hv(Z.stateNode,!1)}catch(He){pn(Z,Z.return,He)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===i)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;u===a&&(u=null),a=a.return}u===a&&(u=null),a.sibling.return=a.return,a=a.sibling}d&4&&(d=i.updateQueue,d!==null&&(u=d.retryQueue,u!==null&&(d.retryQueue=null,Fh(i,u))));break;case 19:Si(a,i),Ei(i),d&4&&(d=i.updateQueue,d!==null&&(i.updateQueue=null,Fh(i,d)));break;case 30:break;case 21:break;default:Si(a,i),Ei(i)}}function Ei(i){var a=i.flags;if(a&2){try{for(var u,d=i.return;d!==null;){if(U0(d)){u=d;break}d=d.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var b=u.stateNode,E=B0(i);Ph(i,E,b);break;case 5:var N=u.stateNode;u.flags&32&&(Mo(N,""),u.flags&=-33);var F=B0(i);Ph(i,F,N);break;case 3:case 4:var Z=u.stateNode.containerInfo,ce=B0(i);V0(i,ce,Z);break;default:throw Error(r(161))}}catch(be){pn(i,i.return,be)}i.flags&=-3}a&4096&&(i.flags&=-4097)}function Xi(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var a=i;Xi(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),i=i.sibling}}function ns(i,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)qg(i,a.alternate,a),a=a.sibling}function tu(i){for(i=i.child;i!==null;){var a=i;switch(a.tag){case 0:case 11:case 14:case 15:Ja(4,a,a.return),tu(a);break;case 1:vr(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&Pf(a,a.return,u),tu(a);break;case 27:Xf(a.stateNode);case 26:case 5:vr(a,a.return),tu(a);break;case 22:a.memoizedState===null&&tu(a);break;case 30:tu(a);break;default:tu(a)}i=i.sibling}}function rs(i,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var d=a.alternate,b=i,E=a,N=E.flags;switch(E.tag){case 0:case 11:case 15:rs(b,E,u),eu(4,E);break;case 1:if(rs(b,E,u),d=E,b=d.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(ce){pn(d,d.return,ce)}if(d=E,b=d.updateQueue,b!==null){var F=d.stateNode;try{var Z=b.shared.hiddenCallbacks;if(Z!==null)for(b.shared.hiddenCallbacks=null,b=0;b<Z.length;b++)Ym(Z[b],F)}catch(ce){pn(d,d.return,ce)}}u&&N&64&&F0(E),sc(E,E.return);break;case 27:Hg(E);case 26:case 5:rs(b,E,u),u&&d===null&&N&4&&Ys(E),sc(E,E.return);break;case 12:rs(b,E,u);break;case 31:rs(b,E,u),u&&N&4&&$g(b,E);break;case 13:rs(b,E,u),u&&N&4&&q0(b,E);break;case 22:E.memoizedState===null&&rs(b,E,u),sc(E,E.return);break;case 30:break;default:rs(b,E,u)}a=a.sibling}}function jh(i,a){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&$i(u))}function G0(i,a){i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&$i(i))}function Go(i,a,u,d){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Wg(i,a,u,d),a=a.sibling}function Wg(i,a,u,d){var b=a.flags;switch(a.tag){case 0:case 11:case 15:Go(i,a,u,d),b&2048&&eu(9,a);break;case 1:Go(i,a,u,d);break;case 3:Go(i,a,u,d),b&2048&&(i=null,a.alternate!==null&&(i=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==i&&(a.refCount++,i!=null&&$i(i)));break;case 12:if(b&2048){Go(i,a,u,d),i=a.stateNode;try{var E=a.memoizedProps,N=E.id,F=E.onPostCommit;typeof F=="function"&&F(N,a.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(Z){pn(a,a.return,Z)}}else Go(i,a,u,d);break;case 31:Go(i,a,u,d);break;case 13:Go(i,a,u,d);break;case 23:break;case 22:E=a.stateNode,N=a.alternate,a.memoizedState!==null?E._visibility&2?Go(i,a,u,d):nu(i,a):E._visibility&2?Go(i,a,u,d):(E._visibility|=2,lc(i,a,u,d,(a.subtreeFlags&10256)!==0||!1)),b&2048&&jh(N,a);break;case 24:Go(i,a,u,d),b&2048&&G0(a.alternate,a);break;default:Go(i,a,u,d)}}function lc(i,a,u,d,b){for(b=b&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var E=i,N=a,F=u,Z=d,ce=N.flags;switch(N.tag){case 0:case 11:case 15:lc(E,N,F,Z,b),eu(8,N);break;case 23:break;case 22:var be=N.stateNode;N.memoizedState!==null?be._visibility&2?lc(E,N,F,Z,b):nu(E,N):(be._visibility|=2,lc(E,N,F,Z,b)),b&&ce&2048&&jh(N.alternate,N);break;case 24:lc(E,N,F,Z,b),b&&ce&2048&&G0(N.alternate,N);break;default:lc(E,N,F,Z,b)}a=a.sibling}}function nu(i,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var u=i,d=a,b=d.flags;switch(d.tag){case 22:nu(u,d),b&2048&&jh(d.alternate,d);break;case 24:nu(u,d),b&2048&&G0(d.alternate,d);break;default:nu(u,d)}a=a.sibling}}var Ff=8192;function uc(i,a,u){if(i.subtreeFlags&Ff)for(i=i.child;i!==null;)Yg(i,a,u),i=i.sibling}function Yg(i,a,u){switch(i.tag){case 26:uc(i,a,u),i.flags&Ff&&i.memoizedState!==null&&SS(u,qo,i.memoizedState,i.memoizedProps);break;case 5:uc(i,a,u);break;case 3:case 4:var d=qo;qo=Jh(i.stateNode.containerInfo),uc(i,a,u),qo=d;break;case 22:i.memoizedState===null&&(d=i.alternate,d!==null&&d.memoizedState!==null?(d=Ff,Ff=16777216,uc(i,a,u),Ff=d):uc(i,a,u));break;default:uc(i,a,u)}}function Kg(i){var a=i.alternate;if(a!==null&&(i=a.child,i!==null)){a.child=null;do a=i.sibling,i.sibling=null,i=a;while(i!==null)}}function jf(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var d=a[u];Lr=d,Zg(d,i)}Kg(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Xg(i),i=i.sibling}function Xg(i){switch(i.tag){case 0:case 11:case 15:jf(i),i.flags&2048&&Ja(9,i,i.return);break;case 3:jf(i);break;case 12:jf(i);break;case 22:var a=i.stateNode;i.memoizedState!==null&&a._visibility&2&&(i.return===null||i.return.tag!==13)?(a._visibility&=-3,Uh(i)):jf(i);break;default:jf(i)}}function Uh(i){var a=i.deletions;if((i.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var d=a[u];Lr=d,Zg(d,i)}Kg(i)}for(i=i.child;i!==null;){switch(a=i,a.tag){case 0:case 11:case 15:Ja(8,a,a.return),Uh(a);break;case 22:u=a.stateNode,u._visibility&2&&(u._visibility&=-3,Uh(a));break;default:Uh(a)}i=i.sibling}}function Zg(i,a){for(;Lr!==null;){var u=Lr;switch(u.tag){case 0:case 11:case 15:Ja(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var d=u.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:$i(u.memoizedState.cache)}if(d=u.child,d!==null)d.return=u,Lr=d;else e:for(u=i;Lr!==null;){d=Lr;var b=d.sibling,E=d.return;if(z0(d),d===u){Lr=null;break e}if(b!==null){b.return=E,Lr=b;break e}Lr=E}}}var Y2={getCacheForType:function(i){var a=Br(hr),u=a.data.get(i);return u===void 0&&(u=i(),a.data.set(i,u)),u},cacheSignal:function(){return Br(hr).controller.signal}},K2=typeof WeakMap=="function"?WeakMap:Map,un=0,On=null,Dt=null,zt=0,gn=0,Zi=null,Ks=!1,cc=!1,$0=!1,is=0,Hn=0,os=0,ru=0,Q0=0,Ji=0,fc=0,Uf=null,xi=null,W0=!1,Bh=0,Y0=0,Vh=1/0,iu=null,Xs=null,xr=0,Zs=null,dc=null,as=0,K0=0,X0=null,Jg=null,Bf=0,Z0=null;function eo(){return(un&2)!==0&&zt!==0?zt&-zt:V.T!==null?sv():ko()}function ey(){if(Ji===0)if((zt&536870912)===0||Ot){var i=jn;jn<<=1,(jn&3932160)===0&&(jn=262144),Ji=i}else Ji=536870912;return i=fi.current,i!==null&&(i.flags|=32),Ji}function wi(i,a,u){(i===On&&(gn===2||gn===9)||i.cancelPendingCommit!==null)&&(hc(i,0),ss(i,zt,Ji,!1)),Un(i,u),((un&2)===0||i!==On)&&(i===On&&((un&2)===0&&(ru|=u),Hn===4&&ss(i,zt,Ji,!1)),ga(i))}function ty(i,a,u){if((un&6)!==0)throw Error(r(327));var d=!u&&(a&127)===0&&(a&i.expiredLanes)===0||tt(i,a),b=d?J2(i,a):ev(i,a,!0),E=d;do{if(b===0){cc&&!d&&ss(i,a,0,!1);break}else{if(u=i.current.alternate,E&&!X2(u)){b=ev(i,a,!1),E=!1;continue}if(b===2){if(E=a,i.errorRecoveryDisabledLanes&E)var N=0;else N=i.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){a=N;e:{var F=i;b=Uf;var Z=F.current.memoizedState.isDehydrated;if(Z&&(hc(F,N).flags|=256),N=ev(F,N,!1),N!==2){if($0&&!Z){F.errorRecoveryDisabledLanes|=E,ru|=E,b=4;break e}E=xi,xi=b,E!==null&&(xi===null?xi=E:xi.push.apply(xi,E))}b=N}if(E=!1,b!==2)continue}}if(b===1){hc(i,0),ss(i,a,0,!0);break}e:{switch(d=i,E=b,E){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:ss(d,a,Ji,!Ks);break e;case 2:xi=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(b=Bh+300-Oe(),10<b)){if(ss(d,a,Ji,!Ks),sn(d,0,!0)!==0)break e;as=a,d.timeoutHandle=Sy(ny.bind(null,d,u,xi,iu,W0,a,Ji,ru,fc,Ks,E,"Throttled",-0,0),b);break e}ny(d,u,xi,iu,W0,a,Ji,ru,fc,Ks,E,null,-0,0)}}break}while(!0);ga(i)}function ny(i,a,u,d,b,E,N,F,Z,ce,be,Ee,fe,pe){if(i.timeoutHandle=-1,Ee=a.subtreeFlags,Ee&8192||(Ee&16785408)===16785408){Ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:po},Yg(a,E,Ee);var He=(E&62914560)===E?Bh-Oe():(E&4194048)===E?Y0-Oe():0;if(He=ES(Ee,He),He!==null){as=E,i.cancelPendingCommit=He(zf.bind(null,i,a,E,u,d,b,N,F,Z,be,Ee,null,fe,pe)),ss(i,E,N,!ce);return}}zf(i,a,E,u,d,b,N,F,Z)}function X2(i){for(var a=i;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var d=0;d<u.length;d++){var b=u[d],E=b.getSnapshot;b=b.value;try{if(!Mr(E(),b))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ss(i,a,u,d){a&=~Q0,a&=~ru,i.suspendedLanes|=a,i.pingedLanes&=~a,d&&(i.warmLanes|=a),d=i.expirationTimes;for(var b=a;0<b;){var E=31-Qn(b),N=1<<E;d[E]=-1,b&=~N}u!==0&&Bn(i,u,a)}function Vf(){return(un&6)===0?(Gf(0),!1):!0}function J0(){if(Dt!==null){if(gn===0)var i=Dt.return;else i=Dt,bt=Dr=null,_h(i),Bl=null,xf=0,i=Dt;for(;i!==null;)ac(i.alternate,i),i=i.return;Dt=null}}function hc(i,a){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,cS(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),as=0,J0(),On=i,Dt=u=ci(i.current,null),zt=a,gn=0,Zi=null,Ks=!1,cc=tt(i,a),$0=!1,fc=Ji=Q0=ru=os=Hn=0,xi=Uf=null,W0=!1,(a&8)!==0&&(a|=a&32);var d=i.entangledLanes;if(d!==0)for(i=i.entanglements,d&=a;0<d;){var b=31-Qn(d),E=1<<b;a|=i[b],d&=~E}return is=a,Dl(),u}function ry(i,a){ft=null,V.H=Zl,a===Yu||a===_f?(a=Ef(),gn=3):a===$m?(a=Ef(),gn=4):gn=a===Mf?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Zi=a,Dt===null&&(Hn=1,Nh(i,yo(a,i.current)))}function iy(){var i=fi.current;return i===null?!0:(zt&4194048)===zt?So===null:(zt&62914560)===zt||(zt&536870912)!==0?i===So:!1}function Hf(){var i=V.H;return V.H=Zl,i===null?Zl:i}function oy(){var i=V.A;return V.A=Y2,i}function Hh(){Hn=4,Ks||(zt&4194048)!==zt&&fi.current!==null||(cc=!0),(os&134217727)===0&&(ru&134217727)===0||On===null||ss(On,zt,Ji,!1)}function ev(i,a,u){var d=un;un|=2;var b=Hf(),E=oy();(On!==i||zt!==a)&&(iu=null,hc(i,a)),a=!1;var N=Hn;e:do try{if(gn!==0&&Dt!==null){var F=Dt,Z=Zi;switch(gn){case 8:J0(),N=6;break e;case 3:case 2:case 9:case 6:fi.current===null&&(a=!0);var ce=gn;if(gn=0,Zi=null,pc(i,F,Z,ce),u&&cc){N=0;break e}break;default:ce=gn,gn=0,Zi=null,pc(i,F,Z,ce)}}Z2(),N=Hn;break}catch(be){ry(i,be)}while(!0);return a&&i.shellSuspendCounter++,bt=Dr=null,un=d,V.H=b,V.A=E,Dt===null&&(On=null,zt=0,Dl()),N}function Z2(){for(;Dt!==null;)ay(Dt)}function J2(i,a){var u=un;un|=2;var d=Hf(),b=oy();On!==i||zt!==a?(iu=null,Vh=Oe()+500,hc(i,a)):cc=tt(i,a);e:do try{if(gn!==0&&Dt!==null){a=Dt;var E=Zi;t:switch(gn){case 1:gn=0,Zi=null,pc(i,a,E,1);break;case 2:case 9:if(_g(E)){gn=0,Zi=null,sy(a);break}a=function(){gn!==2&&gn!==9||On!==i||(gn=7),ga(i)},E.then(a,a);break e;case 3:gn=7;break e;case 4:gn=5;break e;case 7:_g(E)?(gn=0,Zi=null,sy(a)):(gn=0,Zi=null,pc(i,a,E,7));break;case 5:var N=null;switch(Dt.tag){case 26:N=Dt.memoizedState;case 5:case 27:var F=Dt;if(N?Iy(N):F.stateNode.complete){gn=0,Zi=null;var Z=F.sibling;if(Z!==null)Dt=Z;else{var ce=F.return;ce!==null?(Dt=ce,zh(ce)):Dt=null}break t}}gn=0,Zi=null,pc(i,a,E,5);break;case 6:gn=0,Zi=null,pc(i,a,E,6);break;case 8:J0(),Hn=6;break e;default:throw Error(r(462))}}eS();break}catch(be){ry(i,be)}while(!0);return bt=Dr=null,V.H=d,V.A=b,un=u,Dt!==null?0:(On=null,zt=0,Dl(),Hn)}function eS(){for(;Dt!==null&&!Ut();)ay(Dt)}function ay(i){var a=Ug(i.alternate,i,is);i.memoizedProps=i.pendingProps,a===null?zh(i):Dt=a}function sy(i){var a=i,u=a.alternate;switch(a.tag){case 15:case 0:a=O0(u,a,a.pendingProps,a.type,void 0,zt);break;case 11:a=O0(u,a,a.pendingProps,a.type.render,a.ref,zt);break;case 5:_h(a);default:ac(u,a),a=Dt=mf(a,is),a=Ug(u,a,is)}i.memoizedProps=i.pendingProps,a===null?zh(i):Dt=a}function pc(i,a,u,d){bt=Dr=null,_h(a),Bl=null,xf=0;var b=a.return;try{if(C0(i,b,a,u,zt)){Hn=1,Nh(i,yo(u,i.current)),Dt=null;return}}catch(E){if(b!==null)throw Dt=b,E;Hn=1,Nh(i,yo(u,i.current)),Dt=null;return}a.flags&32768?(Ot||d===1?i=!0:cc||(zt&536870912)!==0?i=!1:(Ks=i=!0,(d===2||d===9||d===3||d===6)&&(d=fi.current,d!==null&&d.tag===13&&(d.flags|=16384))),ly(a,i)):zh(a)}function zh(i){var a=i;do{if((a.flags&32768)!==0){ly(a,Ks);return}i=a.return;var u=P0(a.alternate,a,is);if(u!==null){Dt=u;return}if(a=a.sibling,a!==null){Dt=a;return}Dt=a=i}while(a!==null);Hn===0&&(Hn=5)}function ly(i,a){do{var u=Vg(i.alternate,i);if(u!==null){u.flags&=32767,Dt=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(i=i.sibling,i!==null)){Dt=i;return}Dt=i=u}while(i!==null);Hn=6,Dt=null}function zf(i,a,u,d,b,E,N,F,Z){i.cancelPendingCommit=null;do qf();while(xr!==0);if((un&6)!==0)throw Error(r(327));if(a!==null){if(a===i.current)throw Error(r(177));if(E=a.lanes|a.childLanes,E|=Um,wl(i,u,E,N,F,Z),i===On&&(Dt=On=null,zt=0),dc=a,Zs=i,as=u,K0=E,X0=b,Jg=d,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,nS(Pe,function(){return rv(),null})):(i.callbackNode=null,i.callbackPriority=0),d=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||d){d=V.T,V.T=null,b=B.p,B.p=2,N=un,un|=4;try{Q2(i,a,u)}finally{un=N,B.p=b,V.T=d}}xr=1,uy(),tv(),nv()}}function uy(){if(xr===1){xr=0;var i=Zs,a=dc,u=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||u){u=V.T,V.T=null;var d=B.p;B.p=2;var b=un;un|=4;try{Qg(a,i);var E=Yf,N=mg(i.containerInfo),F=E.focusedElem,Z=E.selectionRange;if(N!==F&&F&&F.ownerDocument&&pg(F.ownerDocument.documentElement,F)){if(Z!==null&&Fm(F)){var ce=Z.start,be=Z.end;if(be===void 0&&(be=ce),"selectionStart"in F)F.selectionStart=ce,F.selectionEnd=Math.min(be,F.value.length);else{var Ee=F.ownerDocument||document,fe=Ee&&Ee.defaultView||window;if(fe.getSelection){var pe=fe.getSelection(),He=F.textContent.length,it=Math.min(Z.start,He),xn=Z.end===void 0?it:Math.min(Z.end,He);!pe.extend&&it>xn&&(N=xn,xn=it,it=N);var ae=hg(F,it),re=hg(F,xn);if(ae&&re&&(pe.rangeCount!==1||pe.anchorNode!==ae.node||pe.anchorOffset!==ae.offset||pe.focusNode!==re.node||pe.focusOffset!==re.offset)){var ue=Ee.createRange();ue.setStart(ae.node,ae.offset),pe.removeAllRanges(),it>xn?(pe.addRange(ue),pe.extend(re.node,re.offset)):(ue.setEnd(re.node,re.offset),pe.addRange(ue))}}}}for(Ee=[],pe=F;pe=pe.parentNode;)pe.nodeType===1&&Ee.push({element:pe,left:pe.scrollLeft,top:pe.scrollTop});for(typeof F.focus=="function"&&F.focus(),F=0;F<Ee.length;F++){var _e=Ee[F];_e.element.scrollLeft=_e.left,_e.element.scrollTop=_e.top}}op=!!ou,Yf=ou=null}finally{un=b,B.p=d,V.T=u}}i.current=a,xr=2}}function tv(){if(xr===2){xr=0;var i=Zs,a=dc,u=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||u){u=V.T,V.T=null;var d=B.p;B.p=2;var b=un;un|=4;try{qg(i,a.alternate,a)}finally{un=b,B.p=d,V.T=u}}xr=3}}function nv(){if(xr===4||xr===3){xr=0,Bt();var i=Zs,a=dc,u=as,d=Jg;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?xr=5:(xr=0,dc=Zs=null,qh(i,i.pendingLanes));var b=i.pendingLanes;if(b===0&&(Xs=null),Pa(u),a=a.stateNode,Wt&&typeof Wt.onCommitFiberRoot=="function")try{Wt.onCommitFiberRoot(at,a,void 0,(a.current.flags&128)===128)}catch{}if(d!==null){a=V.T,b=B.p,B.p=2,V.T=null;try{for(var E=i.onRecoverableError,N=0;N<d.length;N++){var F=d[N];E(F.value,{componentStack:F.stack})}}finally{V.T=a,B.p=b}}(as&3)!==0&&qf(),ga(i),b=i.pendingLanes,(u&261930)!==0&&(b&42)!==0?i===Z0?Bf++:(Bf=0,Z0=i):Bf=0,Gf(0)}}function qh(i,a){(i.pooledCacheLanes&=a)===0&&(a=i.pooledCache,a!=null&&(i.pooledCache=null,$i(a)))}function qf(){return uy(),tv(),nv(),rv()}function rv(){if(xr!==5)return!1;var i=Zs,a=K0;K0=0;var u=Pa(as),d=V.T,b=B.p;try{B.p=32>u?32:u,V.T=null,u=X0,X0=null;var E=Zs,N=as;if(xr=0,dc=Zs=null,as=0,(un&6)!==0)throw Error(r(331));var F=un;if(un|=4,Xg(E.current),Wg(E,E.current,N,u),un=F,Gf(0,!1),Wt&&typeof Wt.onPostCommitFiberRoot=="function")try{Wt.onPostCommitFiberRoot(at,E)}catch{}return!0}finally{B.p=b,V.T=d,qh(i,a)}}function iv(i,a,u){a=yo(u,a),a=w0(i.stateNode,a,2),i=Vs(i,a,2),i!==null&&(Un(i,2),ga(i))}function pn(i,a,u){if(i.tag===3)iv(i,i,u);else for(;a!==null;){if(a.tag===3){iv(a,i,u);break}else if(a.tag===1){var d=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Xs===null||!Xs.has(d))){i=yo(u,i),u=Dg(2),d=Vs(a,u,2),d!==null&&(ma(u,d,a,i),Un(d,2),ga(d));break}}a=a.return}}function ov(i,a,u){var d=i.pingCache;if(d===null){d=i.pingCache=new K2;var b=new Set;d.set(a,b)}else b=d.get(a),b===void 0&&(b=new Set,d.set(a,b));b.has(u)||($0=!0,b.add(u),i=tS.bind(null,i,a,u),a.then(i,i))}function tS(i,a,u){var d=i.pingCache;d!==null&&d.delete(a),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,On===i&&(zt&u)===u&&(Hn===4||Hn===3&&(zt&62914560)===zt&&300>Oe()-Bh?(un&2)===0&&hc(i,0):Q0|=u,fc===zt&&(fc=0)),ga(i)}function cy(i,a){a===0&&(a=uo()),i=Ms(i,a),i!==null&&(Un(i,a),ga(i))}function Gh(i){var a=i.memoizedState,u=0;a!==null&&(u=a.retryLane),cy(i,u)}function $h(i,a){var u=0;switch(i.tag){case 31:case 13:var d=i.stateNode,b=i.memoizedState;b!==null&&(u=b.retryLane);break;case 19:d=i.stateNode;break;case 22:d=i.stateNode._retryCache;break;default:throw Error(r(314))}d!==null&&d.delete(a),cy(i,u)}function nS(i,a){return Mt(i,a)}var Qh=null,Js=null,Wh=!1,Yh=!1,av=!1,el=0;function ga(i){i!==Js&&i.next===null&&(Js===null?Qh=Js=i:Js=Js.next=i),Yh=!0,Wh||(Wh=!0,iS())}function Gf(i,a){if(!av&&Yh){av=!0;do for(var u=!1,d=Qh;d!==null;){if(i!==0){var b=d.pendingLanes;if(b===0)var E=0;else{var N=d.suspendedLanes,F=d.pingedLanes;E=(1<<31-Qn(42|i)+1)-1,E&=b&~(N&~F),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(u=!0,py(d,E))}else E=zt,E=sn(d,d===On?E:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(E&3)===0||tt(d,E)||(u=!0,py(d,E));d=d.next}while(u);av=!1}}function rS(){fy()}function fy(){Yh=Wh=!1;var i=0;el!==0&&uS()&&(i=el);for(var a=Oe(),u=null,d=Qh;d!==null;){var b=d.next,E=dy(d,a);E===0?(d.next=null,u===null?Qh=b:u.next=b,b===null&&(Js=u)):(u=d,(i!==0||(E&3)!==0)&&(Yh=!0)),d=b}xr!==0&&xr!==5||Gf(i),el!==0&&(el=0)}function dy(i,a){for(var u=i.suspendedLanes,d=i.pingedLanes,b=i.expirationTimes,E=i.pendingLanes&-62914561;0<E;){var N=31-Qn(E),F=1<<N,Z=b[N];Z===-1?((F&u)===0||(F&d)!==0)&&(b[N]=ea(F,a)):Z<=a&&(i.expiredLanes|=F),E&=~F}if(a=On,u=zt,u=sn(i,i===a?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),d=i.callbackNode,u===0||i===a&&(gn===2||gn===9)||i.cancelPendingCommit!==null)return d!==null&&d!==null&&Gt(d),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||tt(i,u)){if(a=u&-u,a===i.callbackPriority)return a;switch(d!==null&&Gt(d),Pa(u)){case 2:case 8:u=Re;break;case 32:u=Pe;break;case 268435456:u=mn;break;default:u=Pe}return d=hy.bind(null,i),u=Mt(u,d),i.callbackPriority=a,i.callbackNode=u,a}return d!==null&&d!==null&&Gt(d),i.callbackPriority=2,i.callbackNode=null,2}function hy(i,a){if(xr!==0&&xr!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(qf()&&i.callbackNode!==u)return null;var d=zt;return d=sn(i,i===On?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),d===0?null:(ty(i,d,a),dy(i,Oe()),i.callbackNode!=null&&i.callbackNode===u?hy.bind(null,i):null)}function py(i,a){if(qf())return null;ty(i,a,!0)}function iS(){fS(function(){(un&6)!==0?Mt(we,rS):fy()})}function sv(){if(el===0){var i=Qu;i===0&&(i=en,en<<=1,(en&261888)===0&&(en=256)),el=i}return el}function Eo(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Al(""+i)}function my(i,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,i.id&&u.setAttribute("form",i.id),a.parentNode.insertBefore(u,a),i=new FormData(i),u.parentNode.removeChild(u),i}function oS(i,a,u,d,b){if(a==="submit"&&u&&u.stateNode===b){var E=Eo((b[lr]||null).action),N=d.submitter;N&&(a=(a=N[lr]||null)?Eo(a.formAction):N.getAttribute("formAction"),a!==null&&(E=a,N=null));var F=new Qd("action","action",null,d,b);i.push({event:F,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(el!==0){var Z=N?my(b,N):new FormData(b);Ju(u,{pending:!0,data:Z,method:b.method,action:E},null,Z)}}else typeof E=="function"&&(F.preventDefault(),Z=N?my(b,N):new FormData(b),Ju(u,{pending:!0,data:Z,method:b.method,action:E},E,Z))},currentTarget:b}]})}}for(var ls=0;ls<jm.length;ls++){var mt=jm[ls],aS=mt.toLowerCase(),Ci=mt[0].toUpperCase()+mt.slice(1);vo(aS,"on"+Ci)}vo(vg,"onAnimationEnd"),vo(Gi,"onAnimationIteration"),vo(ff,"onAnimationStart"),vo("dblclick","onDoubleClick"),vo("focusin","onFocus"),vo("focusout","onBlur"),vo(B2,"onTransitionRun"),vo(ju,"onTransitionStart"),vo(ih,"onTransitionCancel"),vo(df,"onTransitionEnd"),Ua("onMouseEnter",["mouseout","mouseover"]),Ua("onMouseLeave",["mouseout","mouseover"]),Ua("onPointerEnter",["pointerout","pointerover"]),Ua("onPointerLeave",["pointerout","pointerover"]),Nr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Nr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Nr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Nr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Nr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Nr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pn="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(" "),sS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pn));function us(i,a){a=(a&4)!==0;for(var u=0;u<i.length;u++){var d=i[u],b=d.event;d=d.listeners;e:{var E=void 0;if(a)for(var N=d.length-1;0<=N;N--){var F=d[N],Z=F.instance,ce=F.currentTarget;if(F=F.listener,Z!==E&&b.isPropagationStopped())break e;E=F,b.currentTarget=ce;try{E(b)}catch(be){Ml(be)}b.currentTarget=null,E=Z}else for(N=0;N<d.length;N++){if(F=d[N],Z=F.instance,ce=F.currentTarget,F=F.listener,Z!==E&&b.isPropagationStopped())break e;E=F,b.currentTarget=ce;try{E(b)}catch(be){Ml(be)}b.currentTarget=null,E=Z}}}}function Lt(i,a){var u=a[Ct];u===void 0&&(u=a[Ct]=new Set);var d=i+"__bubble";u.has(d)||(vy(a,i,2,!1),u.add(d))}function lv(i,a,u){var d=0;a&&(d|=4),vy(u,i,d,a)}var Kh="_reactListening"+Math.random().toString(36).slice(2);function uv(i){if(!i[Kh]){i[Kh]=!0,Vd.forEach(function(u){u!=="selectionchange"&&(sS.has(u)||lv(u,!1,i),lv(u,!0,i))});var a=i.nodeType===9?i:i.ownerDocument;a===null||a[Kh]||(a[Kh]=!0,lv("selectionchange",!1,a))}}function vy(i,a,u,d){switch(By(a)){case 2:var b=wS;break;case 8:b=CS;break;default:b=xv}u=b.bind(null,a,u,i),b=void 0,!Wn||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(b=!0),d?b!==void 0?i.addEventListener(a,u,{capture:!0,passive:b}):i.addEventListener(a,u,!0):b!==void 0?i.addEventListener(a,u,{passive:b}):i.addEventListener(a,u,!1)}function $f(i,a,u,d,b){var E=d;if((a&1)===0&&(a&2)===0&&d!==null)e:for(;;){if(d===null)return;var N=d.tag;if(N===3||N===4){var F=d.stateNode.containerInfo;if(F===b)break;if(N===4)for(N=d.return;N!==null;){var Z=N.tag;if((Z===3||Z===4)&&N.stateNode.containerInfo===b)return;N=N.return}for(;F!==null;){if(N=ws(F),N===null)return;if(Z=N.tag,Z===5||Z===6||Z===26||Z===27){d=E=N;continue e}F=F.parentNode}}d=d.return}Vt(function(){var ce=E,be=kl(u),Ee=[];e:{var fe=ln.get(i);if(fe!==void 0){var pe=Qd,He=i;switch(i){case"keypress":if(vn(u)===0)break e;case"keydown":case"keyup":pe=Vn;break;case"focusin":He="focus",pe=Wd;break;case"focusout":He="blur",pe=Wd;break;case"beforeblur":case"afterblur":pe=Wd;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=Tm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=mo;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=Am;break;case vg:case Gi:case ff:pe=ng;break;case df:pe=I2;break;case"scroll":case"scrollend":pe=J1;break;case"wheel":pe=sg;break;case"copy":case"cut":case"paste":pe=ig;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=Yd;break;case"toggle":case"beforetoggle":pe=Mu}var it=(a&4)!==0,xn=!it&&(i==="scroll"||i==="scrollend"),ae=it?fe!==null?fe+"Capture":null:fe;it=[];for(var re=ce,ue;re!==null;){var _e=re;if(ue=_e.stateNode,_e=_e.tag,_e!==5&&_e!==26&&_e!==27||ue===null||ae===null||(_e=Yt(re,ae),_e!=null&&it.push(Qf(re,_e,ue))),xn)break;re=re.return}0<it.length&&(fe=new pe(fe,He,null,u,be),Ee.push({event:fe,listeners:it}))}}if((a&7)===0){e:{if(fe=i==="mouseover"||i==="pointerover",pe=i==="mouseout"||i==="pointerout",fe&&u!==lf&&(He=u.relatedTarget||u.fromElement)&&(ws(He)||He[kr]))break e;if((pe||fe)&&(fe=be.window===be?be:(fe=be.ownerDocument)?fe.defaultView||fe.parentWindow:window,pe?(He=u.relatedTarget||u.toElement,pe=ce,He=He?ws(He):null,He!==null&&(xn=s(He),it=He.tag,He!==xn||it!==5&&it!==27&&it!==6)&&(He=null)):(pe=null,He=ce),pe!==He)){if(it=Tm,_e="onMouseLeave",ae="onMouseEnter",re="mouse",(i==="pointerout"||i==="pointerover")&&(it=Yd,_e="onPointerLeave",ae="onPointerEnter",re="pointer"),xn=pe==null?fe:Io(pe),ue=He==null?fe:Io(He),fe=new it(_e,re+"leave",pe,u,be),fe.target=xn,fe.relatedTarget=ue,_e=null,ws(be)===ce&&(it=new it(ae,re+"enter",He,u,be),it.target=ue,it.relatedTarget=xn,_e=it),xn=_e,pe&&He)t:{for(it=gy,ae=pe,re=He,ue=0,_e=ae;_e;_e=it(_e))ue++;_e=0;for(var Xe=re;Xe;Xe=it(Xe))_e++;for(;0<ue-_e;)ae=it(ae),ue--;for(;0<_e-ue;)re=it(re),_e--;for(;ue--;){if(ae===re||re!==null&&ae===re.alternate){it=ae;break t}ae=it(ae),re=it(re)}it=null}else it=null;pe!==null&&Wf(Ee,fe,pe,it,!1),He!==null&&xn!==null&&Wf(Ee,xn,He,it,!0)}}e:{if(fe=ce?Io(ce):window,pe=fe.nodeName&&fe.nodeName.toLowerCase(),pe==="select"||pe==="input"&&fe.type==="file")var tn=cg;else if(Pu(fe))if(fg)tn=F2;else{tn=rh;var Ge=Is}else pe=fe.nodeName,!pe||pe.toLowerCase()!=="input"||fe.type!=="checkbox"&&fe.type!=="radio"?ce&&Ol(ce.elementType)&&(tn=cg):tn=P2;if(tn&&(tn=tn(i,ce))){Mm(Ee,tn,u,be);break e}Ge&&Ge(i,fe,ce),i==="focusout"&&ce&&fe.type==="number"&&ce.memoizedProps.value!=null&&ra(fe,"number",fe.value)}switch(Ge=ce?Io(ce):window,i){case"focusin":(Pu(Ge)||Ge.contentEditable==="true")&&(Lo=Ge,ie=ce,ye=null);break;case"focusout":ye=ie=Lo=null;break;case"mousedown":he=!0;break;case"contextmenu":case"mouseup":case"dragend":he=!1,Ue(Ee,u,be);break;case"selectionchange":if(U2)break;case"keydown":case"keyup":Ue(Ee,u,be)}var Rt;if(Xd)e:{switch(i){case"compositionstart":var qt="onCompositionStart";break e;case"compositionend":qt="onCompositionEnd";break e;case"compositionupdate":qt="onCompositionUpdate";break e}qt=void 0}else Lu?Jd(i,u)&&(qt="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(qt="onCompositionStart");qt&&(Zd&&u.locale!=="ko"&&(Lu||qt!=="onCompositionStart"?qt==="onCompositionEnd"&&Lu&&(Rt=Tn()):(Ur=be,Os="value"in Ur?Ur.value:Ur.textContent,Lu=!0)),Ge=xo(ce,qt),0<Ge.length&&(qt=new og(qt,i,null,u,be),Ee.push({event:qt,listeners:Ge}),Rt?qt.data=Rt:(Rt=eh(u),Rt!==null&&(qt.data=Rt)))),(Rt=km?ug(i,u):qi(i,u))&&(qt=xo(ce,"onBeforeInput"),0<qt.length&&(Ge=new og("onBeforeInput","beforeinput",null,u,be),Ee.push({event:Ge,listeners:qt}),Ge.data=Rt)),oS(Ee,i,ce,u,be)}us(Ee,a)})}function Qf(i,a,u){return{instance:i,listener:a,currentTarget:u}}function xo(i,a){for(var u=a+"Capture",d=[];i!==null;){var b=i,E=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||E===null||(b=Yt(i,u),b!=null&&d.unshift(Qf(i,b,E)),b=Yt(i,a),b!=null&&d.push(Qf(i,b,E))),i.tag===3)return d;i=i.return}return[]}function gy(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Wf(i,a,u,d,b){for(var E=a._reactName,N=[];u!==null&&u!==d;){var F=u,Z=F.alternate,ce=F.stateNode;if(F=F.tag,Z!==null&&Z===d)break;F!==5&&F!==26&&F!==27||ce===null||(Z=ce,b?(ce=Yt(u,E),ce!=null&&N.unshift(Qf(u,ce,Z))):b||(ce=Yt(u,E),ce!=null&&N.push(Qf(u,ce,Z)))),u=u.return}N.length!==0&&i.push({event:a,listeners:N})}var Kn=/\r\n?/g,or=/\u0000|\uFFFD/g;function cv(i){return(typeof i=="string"?i:""+i).replace(Kn,` 9`).replace(or,"")}function yy(i,a){return a=cv(a),cv(i)===a}function En(i,a,u,d,b,E){switch(u){case"children":typeof d=="string"?a==="body"||a==="textarea"&&d===""||Mo(i,d):(typeof d=="number"||typeof d=="bigint")&&a!=="body"&&Mo(i,""+d);break;case"className":Cs(i,"class",d);break;case"tabIndex":Cs(i,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Cs(i,u,d);break;case"style":Rl(i,d,E);break;case"data":if(a!=="object"){Cs(i,"data",d);break}case"src":case"href":if(d===""&&(a!=="a"||u!=="href")){i.removeAttribute(u);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){i.removeAttribute(u);break}d=Al(""+d),i.setAttribute(u,d);break;case"action":case"formAction":if(typeof d=="function"){i.setAttribute(u,"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 E=="function"&&(u==="formAction"?(a!=="input"&&En(i,a,"name",b.name,b,null),En(i,a,"formEncType",b.formEncType,b,null),En(i,a,"formMethod",b.formMethod,b,null),En(i,a,"formTarget",b.formTarget,b,null)):(En(i,a,"encType",b.encType,b,null),En(i,a,"method",b.method,b,null),En(i,a,"target",b.target,b,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){i.removeAttribute(u);break}d=Al(""+d),i.setAttribute(u,d);break;case"onClick":d!=null&&(i.onclick=po);break;case"onScroll":d!=null&&Lt("scroll",i);break;case"onScrollEnd":d!=null&&Lt("scrollend",i);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(r(61));if(u=d.__html,u!=null){if(b.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":i.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){i.removeAttribute("xlink:href");break}u=Al(""+d),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?i.setAttribute(u,""+d):i.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":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":d&&typeof d!="function"&&typeof d!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":d===!0?i.setAttribute(u,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?i.setAttribute(u,d):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?i.setAttribute(u,d):i.removeAttribute(u);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?i.removeAttribute(u):i.setAttribute(u,d);break;case"popover":Lt("beforetoggle",i),Lt("toggle",i),Cl(i,"popover",d);break;case"xlinkActuate":fo(i,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":fo(i,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":fo(i,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":fo(i,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":fo(i,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":fo(i,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":fo(i,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":fo(i,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":fo(i,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Cl(i,"is",d);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=ku.get(u)||u,Cl(i,u,d))}}function fv(i,a,u,d,b,E){switch(u){case"style":Rl(i,d,E);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(r(61));if(u=d.__html,u!=null){if(b.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof d=="string"?Mo(i,d):(typeof d=="number"||typeof d=="bigint")&&Mo(i,""+d);break;case"onScroll":d!=null&&Lt("scroll",i);break;case"onScrollEnd":d!=null&&Lt("scrollend",i);break;case"onClick":d!=null&&(i.onclick=po);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yr.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(b=u.endsWith("Capture"),a=u.slice(2,b?u.length-7:void 0),E=i[lr]||null,E=E!=null?E[u]:null,typeof E=="function"&&i.removeEventListener(a,E,b),typeof d=="function")){typeof E!="function"&&E!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(a,d,b);break e}u in i?i[u]=d:d===!0?i.setAttribute(u,""):Cl(i,u,d)}}}function Gr(i,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Lt("error",i),Lt("load",i);var d=!1,b=!1,E;for(E in u)if(u.hasOwnProperty(E)){var N=u[E];if(N!=null)switch(E){case"src":d=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:En(i,a,E,N,u,null)}}b&&En(i,a,"srcSet",u.srcSet,u,null),d&&En(i,a,"src",u.src,u,null);return;case"input":Lt("invalid",i);var F=E=N=b=null,Z=null,ce=null;for(d in u)if(u.hasOwnProperty(d)){var be=u[d];if(be!=null)switch(d){case"name":b=be;break;case"type":N=be;break;case"checked":Z=be;break;case"defaultChecked":ce=be;break;case"value":E=be;break;case"defaultValue":F=be;break;case"children":case"dangerouslySetInnerHTML":if(be!=null)throw Error(r(137,a));break;default:En(i,a,d,be,u,null)}}sf(i,E,F,Z,ce,N,b,!1);return;case"select":Lt("invalid",i),d=N=E=null;for(b in u)if(u.hasOwnProperty(b)&&(F=u[b],F!=null))switch(b){case"value":E=F;break;case"defaultValue":N=F;break;case"multiple":d=F;default:En(i,a,b,F,u,null)}a=E,u=N,i.multiple=!!d,a!=null?ia(i,!!d,a,!1):u!=null&&ia(i,!!d,u,!0);return;case"textarea":Lt("invalid",i),E=b=d=null;for(N in u)if(u.hasOwnProperty(N)&&(F=u[N],F!=null))switch(N){case"value":d=F;break;case"defaultValue":b=F;break;case"children":E=F;break;case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(91));break;default:En(i,a,N,F,u,null)}Va(i,d,b,E);return;case"option":for(Z in u)u.hasOwnProperty(Z)&&(d=u[Z],d!=null)&&(Z==="selected"?i.selected=d&&typeof d!="function"&&typeof d!="symbol":En(i,a,Z,d,u,null));return;case"dialog":Lt("beforetoggle",i),Lt("toggle",i),Lt("cancel",i),Lt("close",i);break;case"iframe":case"object":Lt("load",i);break;case"video":case"audio":for(d=0;d<Pn.length;d++)Lt(Pn[d],i);break;case"image":Lt("error",i),Lt("load",i);break;case"details":Lt("toggle",i);break;case"embed":case"source":case"link":Lt("error",i),Lt("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ce in u)if(u.hasOwnProperty(ce)&&(d=u[ce],d!=null))switch(ce){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:En(i,a,ce,d,u,null)}return;default:if(Ol(a)){for(be in u)u.hasOwnProperty(be)&&(d=u[be],d!==void 0&&fv(i,a,be,d,u,void 0));return}}for(F in u)u.hasOwnProperty(F)&&(d=u[F],d!=null&&En(i,a,F,d,u,null))}function lS(i,a,u,d){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,E=null,N=null,F=null,Z=null,ce=null,be=null;for(pe in u){var Ee=u[pe];if(u.hasOwnProperty(pe)&&Ee!=null)switch(pe){case"checked":break;case"value":break;case"defaultValue":Z=Ee;default:d.hasOwnProperty(pe)||En(i,a,pe,null,d,Ee)}}for(var fe in d){var pe=d[fe];if(Ee=u[fe],d.hasOwnProperty(fe)&&(pe!=null||Ee!=null))switch(fe){case"type":E=pe;break;case"name":b=pe;break;case"checked":ce=pe;break;case"defaultChecked":be=pe;break;case"value":N=pe;break;case"defaultValue":F=pe;break;case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(r(137,a));break;default:pe!==Ee&&En(i,a,fe,pe,d,Ee)}}Ts(i,N,F,Z,ce,be,E,b);return;case"select":pe=N=F=fe=null;for(E in u)if(Z=u[E],u.hasOwnProperty(E)&&Z!=null)switch(E){case"value":break;case"multiple":pe=Z;default:d.hasOwnProperty(E)||En(i,a,E,null,d,Z)}for(b in d)if(E=d[b],Z=u[b],d.hasOwnProperty(b)&&(E!=null||Z!=null))switch(b){case"value":fe=E;break;case"defaultValue":F=E;break;case"multiple":N=E;default:E!==Z&&En(i,a,b,E,d,Z)}a=F,u=N,d=pe,fe!=null?ia(i,!!u,fe,!1):!!d!=!!u&&(a!=null?ia(i,!!u,a,!0):ia(i,!!u,u?[]:"",!1));return;case"textarea":pe=fe=null;for(F in u)if(b=u[F],u.hasOwnProperty(F)&&b!=null&&!d.hasOwnProperty(F))switch(F){case"value":break;case"children":break;default:En(i,a,F,null,d,b)}for(N in d)if(b=d[N],E=u[N],d.hasOwnProperty(N)&&(b!=null||E!=null))switch(N){case"value":fe=b;break;case"defaultValue":pe=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:b!==E&&En(i,a,N,b,d,E)}Tl(i,fe,pe);return;case"option":for(var He in u)fe=u[He],u.hasOwnProperty(He)&&fe!=null&&!d.hasOwnProperty(He)&&(He==="selected"?i.selected=!1:En(i,a,He,null,d,fe));for(Z in d)fe=d[Z],pe=u[Z],d.hasOwnProperty(Z)&&fe!==pe&&(fe!=null||pe!=null)&&(Z==="selected"?i.selected=fe&&typeof fe!="function"&&typeof fe!="symbol":En(i,a,Z,fe,d,pe));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 it in u)fe=u[it],u.hasOwnProperty(it)&&fe!=null&&!d.hasOwnProperty(it)&&En(i,a,it,null,d,fe);for(ce in d)if(fe=d[ce],pe=u[ce],d.hasOwnProperty(ce)&&fe!==pe&&(fe!=null||pe!=null))switch(ce){case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(r(137,a));break;default:En(i,a,ce,fe,d,pe)}return;default:if(Ol(a)){for(var xn in u)fe=u[xn],u.hasOwnProperty(xn)&&fe!==void 0&&!d.hasOwnProperty(xn)&&fv(i,a,xn,void 0,d,fe);for(be in d)fe=d[be],pe=u[be],!d.hasOwnProperty(be)||fe===pe||fe===void 0&&pe===void 0||fv(i,a,be,fe,d,pe);return}}for(var ae in u)fe=u[ae],u.hasOwnProperty(ae)&&fe!=null&&!d.hasOwnProperty(ae)&&En(i,a,ae,null,d,fe);for(Ee in d)fe=d[Ee],pe=u[Ee],!d.hasOwnProperty(Ee)||fe===pe||fe==null&&pe==null||En(i,a,Ee,fe,d,pe)}function by(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _y(){if(typeof performance.getEntriesByType=="function"){for(var i=0,a=0,u=performance.getEntriesByType("resource"),d=0;d<u.length;d++){var b=u[d],E=b.transferSize,N=b.initiatorType,F=b.duration;if(E&&F&&by(N)){for(N=0,F=b.responseEnd,d+=1;d<u.length;d++){var Z=u[d],ce=Z.startTime;if(ce>F)break;var be=Z.transferSize,Ee=Z.initiatorType;be&&by(Ee)&&(Z=Z.responseEnd,N+=be*(Z<F?1:(F-ce)/(Z-ce)))}if(--d,a+=8*(E+N)/(b.duration/1e3),i++,10<i)break}}if(0<i)return a/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var ou=null,Yf=null;function Xh(i){return i.nodeType===9?i:i.ownerDocument}function dv(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Kf(i,a){if(i===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&a==="foreignObject"?0:i}function pi(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var tl=null;function uS(){var i=window.event;return i&&i.type==="popstate"?i===tl?!1:(tl=i,!0):(tl=null,!1)}var Sy=typeof setTimeout=="function"?setTimeout:void 0,cS=typeof clearTimeout=="function"?clearTimeout:void 0,Ey=typeof Promise=="function"?Promise:void 0,fS=typeof queueMicrotask=="function"?queueMicrotask:typeof Ey<"u"?function(i){return Ey.resolve(null).then(i).catch(xy)}:Sy;function xy(i){setTimeout(function(){throw i})}function Jr(i){return i==="head"}function Et(i,a){var u=a,d=0;do{var b=u.nextSibling;if(i.removeChild(u),b&&b.nodeType===8)if(u=b.data,u==="/$"||u==="/&"){if(d===0){i.removeChild(b),_c(a);return}d--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")d++;else if(u==="html")Xf(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,Xf(u);for(var E=u.firstChild;E;){var N=E.nextSibling,F=E.nodeName;E[ja]||F==="SCRIPT"||F==="STYLE"||F==="LINK"&&E.rel.toLowerCase()==="stylesheet"||u.removeChild(E),E=N}}else u==="body"&&Xf(i.ownerDocument.body);u=b}while(u);_c(a)}function hv(i,a){var u=i;i=0;do{var d=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),d&&d.nodeType===8)if(u=d.data,u==="/$"){if(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=d}while(u)}function Ti(i){var a=i.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Ti(u),xs(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function wy(i,a,u,d){for(;i.nodeType===1;){var b=u;if(i.nodeName.toLowerCase()!==a.toLowerCase()){if(!d&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(d){if(!i[ja])switch(a){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(E=i.getAttribute("rel"),E==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(E!==b.rel||i.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||i.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||i.getAttribute("title")!==(b.title==null?null:b.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(E=i.getAttribute("src"),(E!==(b.src==null?null:b.src)||i.getAttribute("type")!==(b.type==null?null:b.type)||i.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&E&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(a==="input"&&i.type==="hidden"){var E=b.name==null?null:""+b.name;if(b.type==="hidden"&&i.getAttribute("name")===E)return i}else return i;if(i=Ri(i.nextSibling),i===null)break}return null}function dS(i,a,u){if(a==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Ri(i.nextSibling),i===null))return null;return i}function cn(i,a){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!a||(i=Ri(i.nextSibling),i===null))return null;return i}function pv(i){return i.data==="$?"||i.data==="$~"}function Zh(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function Cy(i,a){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=a;else if(i.data!=="$?"||u.readyState!=="loading")a();else{var d=function(){a(),u.removeEventListener("DOMContentLoaded",d)};u.addEventListener("DOMContentLoaded",d),i._reactRetry=d}}function Ri(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===1||a===3)break;if(a===8){if(a=i.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return i}var mv=null;function Ty(i){i=i.nextSibling;for(var a=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(a===0)return Ri(i.nextSibling);a--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||a++}i=i.nextSibling}return null}function Ry(i){i=i.previousSibling;for(var a=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(a===0)return i;a--}else u!=="/$"&&u!=="/&"||a++}i=i.previousSibling}return null}function Oy(i,a,u){switch(a=Xh(u),i){case"html":if(i=a.documentElement,!i)throw Error(r(452));return i;case"head":if(i=a.head,!i)throw Error(r(453));return i;case"body":if(i=a.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Xf(i){for(var a=i.attributes;a.length;)i.removeAttributeNode(a[0]);xs(i)}var wo=new Map,Ay=new Set;function Jh(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var cs=B.d;B.d={f:hS,r:pS,D:mS,C:vv,L:vS,m:gS,X:Pr,S:yS,M:Oi};function hS(){var i=cs.f(),a=Vf();return i||a}function pS(i){var a=No(i);a!==null&&a.tag===5&&a.type==="form"?v0(a):cs.r(i)}var mc=typeof document>"u"?null:document;function ep(i,a,u){var d=mc;if(d&&typeof a=="string"&&a){var b=Kr(a);b='link[rel="'+i+'"][href="'+b+'"]',typeof u=="string"&&(b+='[crossorigin="'+u+'"]'),Ay.has(b)||(Ay.add(b),i={rel:i,crossOrigin:u,href:a},d.querySelector(b)===null&&(a=d.createElement("link"),Gr(a,"link",i),In(a),d.head.appendChild(a)))}}function mS(i){cs.D(i),ep("dns-prefetch",i,null)}function vv(i,a){cs.C(i,a),ep("preconnect",i,a)}function vS(i,a,u){cs.L(i,a,u);var d=mc;if(d&&i&&a){var b='link[rel="preload"][as="'+Kr(a)+'"]';a==="image"&&u&&u.imageSrcSet?(b+='[imagesrcset="'+Kr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(b+='[imagesizes="'+Kr(u.imageSizes)+'"]')):b+='[href="'+Kr(i)+'"]';var E=b;switch(a){case"style":E=vc(i);break;case"script":E=gc(i)}wo.has(E)||(i=g({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:i,as:a},u),wo.set(E,i),d.querySelector(b)!==null||a==="style"&&d.querySelector(Zf(E))||a==="script"&&d.querySelector(Jf(E))||(a=d.createElement("link"),Gr(a,"link",i),In(a),d.head.appendChild(a)))}}function gS(i,a){cs.m(i,a);var u=mc;if(u&&i){var d=a&&typeof a.as=="string"?a.as:"script",b='link[rel="modulepreload"][as="'+Kr(d)+'"][href="'+Kr(i)+'"]',E=b;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=gc(i)}if(!wo.has(E)&&(i=g({rel:"modulepreload",href:i},a),wo.set(E,i),u.querySelector(b)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Jf(E)))return}d=u.createElement("link"),Gr(d,"link",i),In(d),u.head.appendChild(d)}}}function yS(i,a,u){cs.S(i,a,u);var d=mc;if(d&&i){var b=co(d).hoistableStyles,E=vc(i);a=a||"default";var N=b.get(E);if(!N){var F={loading:0,preload:null};if(N=d.querySelector(Zf(E)))F.loading=5;else{i=g({rel:"stylesheet",href:i,"data-precedence":a},u),(u=wo.get(E))&&bv(i,u);var Z=N=d.createElement("link");In(Z),Gr(Z,"link",i),Z._p=new Promise(function(ce,be){Z.onload=ce,Z.onerror=be}),Z.addEventListener("load",function(){F.loading|=1}),Z.addEventListener("error",function(){F.loading|=2}),F.loading|=4,tp(N,a,d)}N={type:"stylesheet",instance:N,count:1,state:F},b.set(E,N)}}}function Pr(i,a){cs.X(i,a);var u=mc;if(u&&i){var d=co(u).hoistableScripts,b=gc(i),E=d.get(b);E||(E=u.querySelector(Jf(b)),E||(i=g({src:i,async:!0},a),(a=wo.get(b))&&_v(i,a),E=u.createElement("script"),In(E),Gr(E,"link",i),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},d.set(b,E))}}function Oi(i,a){cs.M(i,a);var u=mc;if(u&&i){var d=co(u).hoistableScripts,b=gc(i),E=d.get(b);E||(E=u.querySelector(Jf(b)),E||(i=g({src:i,async:!0,type:"module"},a),(a=wo.get(b))&&_v(i,a),E=u.createElement("script"),In(E),Gr(E,"link",i),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},d.set(b,E))}}function ky(i,a,u,d){var b=(b=Me.current)?Jh(b):null;if(!b)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=vc(u.href),u=co(b).hoistableStyles,d=u.get(a),d||(d={type:"style",instance:null,count:0,state:null},u.set(a,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=vc(u.href);var E=co(b).hoistableStyles,N=E.get(i);if(N||(b=b.ownerDocument||b,N={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(i,N),(E=b.querySelector(Zf(i)))&&!E._p&&(N.instance=E,N.state.loading=5),wo.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},wo.set(i,u),E||bS(b,i,u,N.state))),a&&d===null)throw Error(r(528,""));return N}if(a&&d!==null)throw Error(r(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=gc(u),u=co(b).hoistableScripts,d=u.get(a),d||(d={type:"script",instance:null,count:0,state:null},u.set(a,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function vc(i){return'href="'+Kr(i)+'"'}function Zf(i){return'link[rel="stylesheet"]['+i+"]"}function gv(i){return g({},i,{"data-precedence":i.precedence,precedence:null})}function bS(i,a,u,d){i.querySelector('link[rel="preload"][as="style"]['+a+"]")?d.loading=1:(a=i.createElement("link"),d.preload=a,a.addEventListener("load",function(){return d.loading|=1}),a.addEventListener("error",function(){return d.loading|=2}),Gr(a,"link",u),In(a),i.head.appendChild(a))}function gc(i){return'[src="'+Kr(i)+'"]'}function Jf(i){return"script[async]"+i}function yv(i,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var d=i.querySelector('style[data-href~="'+Kr(u.href)+'"]');if(d)return a.instance=d,In(d),d;var b=g({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return d=(i.ownerDocument||i).createElement("style"),In(d),Gr(d,"style",b),tp(d,u.precedence,i),a.instance=d;case"stylesheet":b=vc(u.href);var E=i.querySelector(Zf(b));if(E)return a.state.loading|=4,a.instance=E,In(E),E;d=gv(u),(b=wo.get(b))&&bv(d,b),E=(i.ownerDocument||i).createElement("link"),In(E);var N=E;return N._p=new Promise(function(F,Z){N.onload=F,N.onerror=Z}),Gr(E,"link",d),a.state.loading|=4,tp(E,u.precedence,i),a.instance=E;case"script":return E=gc(u.src),(b=i.querySelector(Jf(E)))?(a.instance=b,In(b),b):(d=u,(b=wo.get(E))&&(d=g({},u),_v(d,b)),i=i.ownerDocument||i,b=i.createElement("script"),In(b),Gr(b,"link",d),i.head.appendChild(b),a.instance=b);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(d=a.instance,a.state.loading|=4,tp(d,u.precedence,i));return a.instance}function tp(i,a,u){for(var d=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=d.length?d[d.length-1]:null,E=b,N=0;N<d.length;N++){var F=d[N];if(F.dataset.precedence===a)E=F;else if(E!==b)break}E?E.parentNode.insertBefore(i,E.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(i,a.firstChild))}function bv(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.title==null&&(i.title=a.title)}function _v(i,a){i.crossOrigin==null&&(i.crossOrigin=a.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=a.referrerPolicy),i.integrity==null&&(i.integrity=a.integrity)}var ed=null;function Sv(i,a,u){if(ed===null){var d=new Map,b=ed=new Map;b.set(u,d)}else b=ed,d=b.get(u),d||(d=new Map,b.set(u,d));if(d.has(i))return d;for(d.set(i,null),u=u.getElementsByTagName(i),b=0;b<u.length;b++){var E=u[b];if(!(E[ja]||E[Nn]||i==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var N=E.getAttribute(a)||"";N=i+N;var F=d.get(N);F?F.push(E):d.set(N,[E])}}return d}function Ny(i,a,u){i=i.ownerDocument||i,i.head.insertBefore(u,a==="title"?i.querySelector("head > title"):null)}function _S(i,a,u){if(u===1||a.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(i=a.disabled,typeof a.precedence=="string"&&i==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Iy(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function SS(i,a,u,d){if(u.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var b=vc(d.href),E=a.querySelector(Zf(b));if(E){a=E._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(i.count++,i=np.bind(i),a.then(i,i)),u.state.loading|=4,u.instance=E,In(E);return}E=a.ownerDocument||a,d=gv(d),(b=wo.get(b))&&bv(d,b),E=E.createElement("link"),In(E);var N=E;N._p=new Promise(function(F,Z){N.onload=F,N.onerror=Z}),Gr(E,"link",d),u.instance=E}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=np.bind(i),a.addEventListener("load",u),a.addEventListener("error",u))}}var nl=0;function ES(i,a){return i.stylesheets&&i.count===0&&ip(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var d=setTimeout(function(){if(i.stylesheets&&ip(i,i.stylesheets),i.unsuspend){var E=i.unsuspend;i.unsuspend=null,E()}},6e4+a);0<i.imgBytes&&nl===0&&(nl=62500*_y());var b=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&ip(i,i.stylesheets),i.unsuspend)){var E=i.unsuspend;i.unsuspend=null,E()}},(i.imgBytes>nl?50:800)+a);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(d),clearTimeout(b)}}:null}function np(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ip(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var rp=null;function ip(i,a){i.stylesheets=null,i.unsuspend!==null&&(i.count++,rp=new Map,a.forEach(xS,i),rp=null,np.call(i))}function xS(i,a){if(!(a.state.loading&4)){var u=rp.get(i);if(u)var d=u.get(null);else{u=new Map,rp.set(i,u);for(var b=i.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<b.length;E++){var N=b[E];(N.nodeName==="LINK"||N.getAttribute("media")!=="not all")&&(u.set(N.dataset.precedence,N),d=N)}d&&u.set(null,d)}b=a.instance,N=b.getAttribute("data-precedence"),E=u.get(N)||d,E===d&&u.set(null,b),u.set(N,b),this.count++,d=np.bind(this),b.addEventListener("load",d),b.addEventListener("error",d),E?E.parentNode.insertBefore(b,E.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(b,i.firstChild)),a.state.loading|=4}}var yc={$$typeof:k,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function My(i,a,u,d,b,E,N,F,Z){this.tag=1,this.containerInfo=i,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=Ao(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ao(0),this.hiddenUpdates=Ao(null),this.identifierPrefix=d,this.onUncaughtError=b,this.onCaughtError=E,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Z,this.incompleteTransitions=new Map}function Dy(i,a,u,d,b,E,N,F,Z,ce,be,Ee){return i=new My(i,a,u,N,Z,ce,be,Ee,F),a=1,E===!0&&(a|=24),E=bi(3,null,null,a),i.current=E,E.stateNode=i,a=zm(),a.refCount++,i.pooledCache=a,a.refCount++,E.memoizedState={element:d,isDehydrated:u,cache:a},zl(E),i}function Ly(i){return i?(i=Ll,i):Ll}function Py(i,a,u,d,b,E){b=Ly(b),d.context===null?d.context=b:d.pendingContext=b,d=Wa(a),d.payload={element:u},E=E===void 0?null:E,E!==null&&(d.callback=E),u=Vs(i,d,a),u!==null&&(wi(u,i,a),Hs(u,i,a))}function Fy(i,a){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<a?u:a}}function Ev(i,a){Fy(i,a),(i=i.alternate)&&Fy(i,a)}function jy(i){if(i.tag===13||i.tag===31){var a=Ms(i,67108864);a!==null&&wi(a,i,67108864),Ev(i,67108864)}}function Uy(i){if(i.tag===13||i.tag===31){var a=eo();a=er(a);var u=Ms(i,a);u!==null&&wi(u,i,a),Ev(i,a)}}var op=!0;function wS(i,a,u,d){var b=V.T;V.T=null;var E=B.p;try{B.p=2,xv(i,a,u,d)}finally{B.p=E,V.T=b}}function CS(i,a,u,d){var b=V.T;V.T=null;var E=B.p;try{B.p=8,xv(i,a,u,d)}finally{B.p=E,V.T=b}}function xv(i,a,u,d){if(op){var b=wv(d);if(b===null)$f(i,a,d,ap,u),Vy(i,d);else if(Rv(b,i,a,u,d))d.stopPropagation();else if(Vy(i,d),a&4&&-1<TS.indexOf(i)){for(;b!==null;){var E=No(b);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var N=Jn(E.pendingLanes);if(N!==0){var F=E;for(F.pendingLanes|=2,F.entangledLanes|=2;N;){var Z=1<<31-Qn(N);F.entanglements[1]|=Z,N&=~Z}ga(E),(un&6)===0&&(Vh=Oe()+500,Gf(0))}}break;case 31:case 13:F=Ms(E,2),F!==null&&wi(F,E,2),Vf(),Ev(E,2)}if(E=wv(d),E===null&&$f(i,a,d,ap,u),E===b)break;b=E}b!==null&&d.stopPropagation()}else $f(i,a,d,null,u)}}function wv(i){return i=kl(i),Cv(i)}var ap=null;function Cv(i){if(ap=null,i=ws(i),i!==null){var a=s(i);if(a===null)i=null;else{var u=a.tag;if(u===13){if(i=l(a),i!==null)return i;i=null}else if(u===31){if(i=f(a),i!==null)return i;i=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return ap=i,null}function By(i){switch(i){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"resize":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"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"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(le()){case we:return 2;case Re:return 8;case Pe:case At:return 32;case mn:return 268435456;default:return 32}default:return 32}}var Tv=!1,rl=null,il=null,ol=null,td=new Map,nd=new Map,al=[],TS="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 Vy(i,a){switch(i){case"focusin":case"focusout":rl=null;break;case"dragenter":case"dragleave":il=null;break;case"mouseover":case"mouseout":ol=null;break;case"pointerover":case"pointerout":td.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":nd.delete(a.pointerId)}}function rd(i,a,u,d,b,E){return i===null||i.nativeEvent!==E?(i={blockedOn:a,domEventName:u,eventSystemFlags:d,nativeEvent:E,targetContainers:[b]},a!==null&&(a=No(a),a!==null&&jy(a)),i):(i.eventSystemFlags|=d,a=i.targetContainers,b!==null&&a.indexOf(b)===-1&&a.push(b),i)}function Rv(i,a,u,d,b){switch(a){case"focusin":return rl=rd(rl,i,a,u,d,b),!0;case"dragenter":return il=rd(il,i,a,u,d,b),!0;case"mouseover":return ol=rd(ol,i,a,u,d,b),!0;case"pointerover":var E=b.pointerId;return td.set(E,rd(td.get(E)||null,i,a,u,d,b)),!0;case"gotpointercapture":return E=b.pointerId,nd.set(E,rd(nd.get(E)||null,i,a,u,d,b)),!0}return!1}function Ov(i){var a=ws(i.target);if(a!==null){var u=s(a);if(u!==null){if(a=u.tag,a===13){if(a=l(u),a!==null){i.blockedOn=a,na(i.priority,function(){Uy(u)});return}}else if(a===31){if(a=f(u),a!==null){i.blockedOn=a,na(i.priority,function(){Uy(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function id(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;0<a.length;){var u=wv(i.nativeEvent);if(u===null){u=i.nativeEvent;var d=new u.constructor(u.type,u);lf=d,u.target.dispatchEvent(d),lf=null}else return a=No(u),a!==null&&jy(a),i.blockedOn=u,!1;a.shift()}return!0}function Hy(i,a,u){id(i)&&u.delete(a)}function RS(){Tv=!1,rl!==null&&id(rl)&&(rl=null),il!==null&&id(il)&&(il=null),ol!==null&&id(ol)&&(ol=null),td.forEach(Hy),nd.forEach(Hy)}function sp(i,a){i.blockedOn===a&&(i.blockedOn=null,Tv||(Tv=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,RS)))}var bc=null;function zy(i){bc!==i&&(bc=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){bc===i&&(bc=null);for(var a=0;a<i.length;a+=3){var u=i[a],d=i[a+1],b=i[a+2];if(typeof d!="function"){if(Cv(d||u)===null)continue;break}var E=No(u);E!==null&&(i.splice(a,3),a-=3,Ju(E,{pending:!0,data:b,method:u.method,action:d},d,b))}}))}function _c(i){function a(Z){return sp(Z,i)}rl!==null&&sp(rl,i),il!==null&&sp(il,i),ol!==null&&sp(ol,i),td.forEach(a),nd.forEach(a);for(var u=0;u<al.length;u++){var d=al[u];d.blockedOn===i&&(d.blockedOn=null)}for(;0<al.length&&(u=al[0],u.blockedOn===null);)Ov(u),u.blockedOn===null&&al.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(d=0;d<u.length;d+=3){var b=u[d],E=u[d+1],N=b[lr]||null;if(typeof E=="function")N||zy(u);else if(N){var F=null;if(E&&E.hasAttribute("formAction")){if(b=E,N=E[lr]||null)F=N.formAction;else if(Cv(b)!==null)continue}else F=N.action;typeof F=="function"?u[d+1]=F:(u.splice(d,3),d-=3),zy(u)}}}function qy(){function i(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(N){return b=N})},focusReset:"manual",scroll:"manual"})}function a(){b!==null&&(b(),b=null),d||setTimeout(u,20)}function u(){if(!d&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,b=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){d=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),b!==null&&(b(),b=null)}}}function ei(i){this._internalRoot=i}Sc.prototype.render=ei.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw Error(r(409));var u=a.current,d=eo();Py(u,d,i,a,null,null)},Sc.prototype.unmount=ei.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;Py(i.current,2,null,i,null,null),Vf(),a[kr]=null}};function Sc(i){this._internalRoot=i}Sc.prototype.unstable_scheduleHydration=function(i){if(i){var a=ko();i={blockedOn:null,target:i,priority:a};for(var u=0;u<al.length&&a!==0&&a<al[u].priority;u++);al.splice(u,0,i),u===0&&Ov(i)}};var Gy=t.version;if(Gy!=="19.2.7")throw Error(r(527,Gy,"19.2.7"));B.findDOMNode=function(i){var a=i._reactInternals;if(a===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=p(a),i=i!==null?v(i):null,i=i===null?null:i.stateNode,i};var OS={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lp.isDisabled&&lp.supportsFiber)try{at=lp.inject(OS),Wt=lp}catch{}}return kv.createRoot=function(i,a){if(!o(i))throw Error(r(299));var u=!1,d="",b=pa,E=S0,N=E0;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(b=a.onUncaughtError),a.onCaughtError!==void 0&&(E=a.onCaughtError),a.onRecoverableError!==void 0&&(N=a.onRecoverableError)),a=Dy(i,1,!1,null,null,u,d,null,b,E,N,qy),i[kr]=a.current,uv(i),new ei(a)},kv.hydrateRoot=function(i,a,u){if(!o(i))throw Error(r(299));var d=!1,b="",E=pa,N=S0,F=E0,Z=null;return u!=null&&(u.unstable_strictMode===!0&&(d=!0),u.identifierPrefix!==void 0&&(b=u.identifierPrefix),u.onUncaughtError!==void 0&&(E=u.onUncaughtError),u.onCaughtError!==void 0&&(N=u.onCaughtError),u.onRecoverableError!==void 0&&(F=u.onRecoverableError),u.formState!==void 0&&(Z=u.formState)),a=Dy(i,1,!0,a,u??null,d,b,Z,E,N,F,qy),a.context=Ly(null),u=a.current,d=eo(),d=er(d),b=Wa(d),b.callback=null,Vs(u,b,d),u=d,a.current.lanes=u,Un(a,u),ga(a),i[kr]=a.current,uv(i),new Sc(a)}
9,kv.version="19.2.7",kv}var tC;function hI(){if(tC)return NS.exports;tC=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(),NS.exports=dI(),NS.exports}var nC=hI(),PS={exports:{}},FS,rC;function pI(){if(rC)return FS;rC=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return FS=e,FS}var jS,iC;function mI(){if(iC)return jS;iC=1;var e=pI();function t(){}function n(){}return n.resetWarningCache=t,jS=function(){function r(l,f,m,p,v,g){if(g!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},jS}var oC;function U6(){return oC||(oC=1,PS.exports=mI()()),PS.exports}var vI=U6();const It=Da(vI),g8=It.exact({id:It.string.isRequired,cta:It.exact({text:It.string.isRequired,href:It.string.isRequired}),headline:It.string,message:It.node.isRequired,onClose:It.func,variant:It.oneOf(["error-dark","info-dark","promo-dark","citrus","grapefruit"]).isRequired}),y8=It.exact({id:It.string.isRequired,cta:It.oneOfType([It.exact({text:It.string,url:It.string.isRequired}),It.exact({text:It.string,onClick:It.func.isRequired})]),icon:It.node,location:It.oneOf(["top","bottom"]),text:It.string.isRequired,onClose:It.func,variant:It.oneOf(["info-light","promo-dark","dark","error-dark","citrus","grapefruit","forest","navy-white","navy-citrus"])}),gI=["US","UK"],B6=It.oneOf(gI);var A=Qc();const bl=Da(A),A_=m8({__proto__:null,default:bl},[A]),k_={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},fu=console,_p={};Object.keys(k_).forEach(e=>{_p[e]=fu[e]});const Nv="Datadog Browser SDK:",ut={debug:_p.debug.bind(fu,Nv),log:_p.log.bind(fu,Nv),info:_p.info.bind(fu,Nv),warn:_p.warn.bind(fu,Nv),error:_p.error.bind(fu,Nv)},N_="https://docs.datadoghq.com",yI=`${N_}/real_user_monitoring/browser/troubleshooting`,V6="More details:";function b8(e,t){return(...n)=>{try{return e(...n)}catch(r){ut.error(t,r)}}}function vd(e){return e!==0&&Math.random()*100<=e}function Cp(e,t){return+e.toFixed(t)}function bI(e){return I1(e)&&e>=0&&e<=100}function I1(e){return typeof e=="number"}function I_(e){try{return JSON.parse(e)}catch{}}function Ad(e){return{...e}}function n_(e,t){return Object.keys(e).some(n=>e[n]===t)}function Wc(e){return Object.keys(e).length===0}function _8(e,t){const n={};for(const r of Object.keys(e))n[r]=t(e[r]);return n}function Li(){if(typeof globalThis=="object")return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let e=_dd_temp_;return delete Object.prototype._dd_temp_,typeof e!="object"&&(typeof self=="object"?e=self:typeof window=="object"?e=window:e={}),e}const ys=Li(),M1="WorkerGlobalScope"in ys;function gu(e,t){const n=Li();let r;return n.Zone&&typeof n.Zone.__symbol__=="function"&&(r=e[n.Zone.__symbol__(t)]),r||(r=e[t]),r}let vE,S8=!1;function _I(e){vE=e}function SI(e){S8=e}function jt(e){return function(...t){return xa(e,this,t)}}function xa(e,t,n){try{return e.apply(t,n)}catch(r){sm(r)}}function sm(e){if(gE(e),vE)try{vE(e)}catch(t){gE(t)}}function gE(...e){S8&&ut.error("[MONITOR]",...e)}function Ii(e,t){return gu(Li(),"setTimeout")(jt(e),t)}function Ca(e){gu(Li(),"clearTimeout")(e)}function lm(e,t){return gu(Li(),"setInterval")(jt(e),t)}function M_(e){gu(Li(),"clearInterval")(e)}function aC(e){const t=ys.queueMicrotask;typeof t=="function"?t(jt(e)):Promise.resolve().then(jt(e))}let Jt=class{constructor(t){this.onFirstSubscribe=t,this.observers=[]}subscribe(t){return this.addObserver(t),{unsubscribe:()=>this.removeObserver(t)}}notify(t){this.observers.forEach(n=>n(t))}addObserver(t){this.observers.push(t),this.observers.length===1&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(t){this.observers=this.observers.filter(n=>t!==n),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}};function E8(...e){return new Jt(t=>{const n=e.map(r=>r.subscribe(o=>t.notify(o)));return()=>n.forEach(r=>r.unsubscribe())})}class x8 extends Jt{constructor(t){super(),this.maxBufferSize=t,this.buffer=[]}notify(t){this.buffer.push(t),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(t)}
9subscribe(t){let n=!1;const r={unsubscribe:()=>{n=!0,this.removeObserver(t)}};return aC(()=>{for(const o of this.buffer){if(n)return;t(o)}n||this.addObserver(t)}),r}unbuffer(){aC(()=>{this.maxBufferSize=this.buffer.length=0})}}const Pi=1e3,Oo=60*Pi,w8=60*Oo,EI=24*w8,C8=365*EI;function D1(e){return{relative:e,timeStamp:xI(e)}}function T8(e){return{relative:O8(e),timeStamp:e}}function xI(e){const t=Na()-performance.now();return t>L1()?Math.round(Fd(t,e)):CI(e)}function wI(){return Math.round(Na()-Fd(L1(),performance.now()))}function vt(e){return I1(e)?Cp(e*1e6,0):e}function Na(){return new Date().getTime()}function Tr(){return Na()}function Zo(){return performance.now()}function Gn(){return{relative:Zo(),timeStamp:Tr()}}function R8(){return{relative:0,timeStamp:L1()}}function $n(e,t){return t-e}function Fd(e,t){return e+t}function O8(e){return e-L1()}function CI(e){return Math.round(Fd(L1(),e))}function TI(e){return e<C8}let US;function L1(){var e,t;return US===void 0&&(US=(t=(e=performance.timing)===null||e===void 0?void 0:e.navigationStart)!==null&&t!==void 0?t:performance.timeOrigin),US}function D_(e,t,n){const r=n&&n.leading!==void 0?n.leading:!0,o=n&&n.trailing!==void 0?n.trailing:!0;let s=!1,l,f;return{throttled:(...m)=>{if(s){l=m;return}r?e(...m):l=m,s=!0,f=Ii(()=>{o&&l&&e(...l),s=!1,l=void 0},t)},cancel:()=>{Ca(f),s=!1,l=void 0}}}function Mn(){}function Rr(e){return e?(parseInt(e,10)^Math.random()*16>>parseInt(e,10)/4).toString(16):`10000000-1000-4000-8000-${1e11}`.replace(/[018]/g,Rr)}const Wp=/(\S+?)\s*=\s*(.+?)(?:;|$)/g;function v1(e,t){for(Wp.lastIndex=0;;){const n=Wp.exec(e);if(n){if(n[1]===t)return n[2]}else break}}function RI(e){const t=new Map;for(Wp.lastIndex=0;;){const n=Wp.exec(e);if(n){const r=n[1],o=n[2];t.has(r)?t.get(r).push(o):t.set(r,[o])}else break}return t}function OI(e){const t=new Map;for(Wp.lastIndex=0;;){const n=Wp.exec(e);if(n)t.set(n[1],n[2]);else break}return t}function P1(e,t,n=""){const r=e.charCodeAt(t-1),s=r>=55296&&r<=56319?t+1:t;return e.length<=s?e:`${e.slice(0,s)}${n}`}function AI(){return A8()===0}function Ile(){return A8()===1}let $y;function A8(){return $y??($y=kI())}function kI(e=window){var t;const n=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(n)?0:((t=e.navigator.vendor)===null||t===void 0?void 0:t.indexOf("Apple"))===0||/safari/i.test(n)&&!/chrome|android/i.test(n)?1:2}function H6(e){return um(e,location.href).href}function NI(e){try{return!!um(e)}catch{return!1}}function II(e){const t=um(e).pathname;return t[0]==="/"?t:`/${t}`}function um(e,t){const{URL:n}=MI();try{return t!==void 0?new n(e,t):new n(e)}catch(r){throw new Error(`Failed to construct URL: ${String(r)}`)}}let BS;function MI(){var e;if(!BS){let t,n;try{t=document.createElement("iframe"),t.style.display="none",document.body.appendChild(t),n=(e=t.contentWindow)!==null&&e!==void 0?e:ys}catch{n=ys}BS={URL:n.URL},t?.remove()}return BS}function L_(e,t,n=0,r){const o=new Date;o.setTime(o.getTime()+n);const s=`expires=${o.toUTCString()}`,l=r&&r.crossSite?"none":"strict",f=r&&r.domain?`;domain=${r.domain}`:"",m=r&&r.secure?";secure":"",p=r&&r.partitioned?";partitioned":"";document.cookie=`${e}=${t};${s};path=/;samesite=${l}${f}${m}${p}`}function P_(e){return v1(document.cookie,e)}function DI(e){return RI(document.cookie).get(e)||[]}let VS;function hu(e){return VS||(VS=OI(document.cookie)),VS.get(e)}function k8(e,t){L_(e,"",0,t)}function LI(e){if(document.cookie===void 0||document.cookie===null)return!1;try{const t=`dd_cookie_test_${Rr()}`,n="test";L_(t,n,Oo,e);const r=P_(t)===n;return k8(t,e),r}catch(t){return ut.error(t),!1}}let HS;function N8(e=location.hostname,t=document.referrer){if(HS===void 0){const n=PI(e,t);if(n){const r=`dd_site_test_${Rr()}`,o="test",s=n.split(".");let l=s.pop();for(;s.length&&!P_(r);)l=`${s.pop()}.${l}`,L_(r,o,Pi,{domain:l});k8(r,{domain:l}),HS=l}}return HS}function PI(e,t){try{return e||um(t).hostname}catch{}}const Pc="_dd_s";function I8(e,t){for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(t(r,n,e))return r}}function M8(e){return Object.values(e)}function F_(e){return Object.entries(e)}const jd=4*w8,D8=15*Oo,FI=C8,L8="0",Oa={COOKIE:"cookie",MEMORY:"memory",LOCAL_STORAGE:"local-storage"},P8=/^([a-zA-Z]+)=([a-z0-9-]+)$/,z6="&";function jI(e){return!!e&&(e.indexOf(z6)!==-1||P8.test(e))}const UI="1";function Oc(e,t){const n={isExpired:UI};
9return t.trackAnonymousUser&&e?.anonymousId&&(n.anonymousId=e?.anonymousId),n}function kb(e){return Wc(e)}function F8(e){return!kb(e)}function o1(e){return e.isExpired!==void 0||!BI(e)}function BI(e){return(e.created===void 0||Na()-Number(e.created)<jd)&&(e.expire===void 0||Na()<Number(e.expire))}function j8(e){e.expire=String(Na()+D8)}function yE(e){return F_(e).map(([t,n])=>t==="anonymousId"?`aid=${n}`:`${t}=${n}`).join(z6)}function q6(e){const t={};return jI(e)&&e.split(z6).forEach(n=>{const r=P8.exec(n);if(r!==null){const[,o,s]=r;o==="aid"?t.anonymousId=s:t[o]=s}}),t}const VI="_dd",HI="_dd_r",zI="_dd_l",qI="rum",GI="logs";function $I(e){if(!hu(Pc)){const n=hu(VI),r=hu(HI),o=hu(zI),s={};n&&(s.id=n),o&&/^[01]$/.test(o)&&(s[GI]=o),r&&/^[012]$/.test(r)&&(s[qI]=r),F8(s)&&(j8(s),e.persistSession(s))}}const QI=0;function WI(e){const t=KI(e);return t&&LI(t)?{type:Oa.COOKIE,cookieOptions:t}:void 0}function YI(e,t){const n={isLockEnabled:AI(),persistSession:r=>sC(t,e,r,D8),retrieveSession:()=>U8(t,e),expireSession:r=>sC(t,e,Oc(r,e),jd)};return $I(n),n}function sC(e,t,n,r){let o=yE(n);t.betaEncodeCookieOptions&&(o=yE({...n,...Wc(n)?{}:{c:B8(e)}}
9)),L_(Pc,o,t.trackAnonymousUser?FI:r,e)}function U8(e,t){if(t.betaEncodeCookieOptions)return XI(e);const n=P_(Pc);return q6(n)}function KI(e){const t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){const n=N8();if(!n)return;t.domain=n}return t}function B8(e){const t=e.domain?e.domain.split(".").length-1:0;let n=0;return n|=QI<<5,n|=t<<1,n|=e.crossSite?1:0,n.toString(16)}function XI(e){const t=DI(Pc),n=B8(e);let r;for(const o of t.reverse())if(r=q6(o),r.c===n)break;return r==null||delete r.c,r??{}}const ZI="_dd_test_";function JI(){try{const e=Rr(),t=`${ZI}${e}`;localStorage.setItem(t,e);const n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:Oa.LOCAL_STORAGE}:void 0}catch{return}}function eM(e){return{isLockEnabled:!1,persistSession:V8,retrieveSession:H8,expireSession:t=>tM(t,e)}}function V8(e){localStorage.setItem(Pc,yE(e))}function H8(){const e=localStorage.getItem(Pc);return q6(e)}function tM(e,t){V8(Oc(e,t))}const nM=10,rM=100,iM=Pi,z8="--",q8=[];let Nb;function dd(e,t,n=0){var r;const{isLockEnabled:o,persistSession:s,expireSession:l}=t,f=y=>s({...y,lock:p}),m=()=>{const{lock:y,...S}=t.retrieveSession();return{session:S,lock:y&&!aM(y)?y:void 0}};if(Nb||(Nb=e),e!==Nb){q8.push(e);return}if(o&&n>=rM){lC(t);return}let p,v=m();if(o){if(v.lock){Qy(e,t,n);return}if(p=oM(),f(v.session),v=m(),v.lock!==p){Qy(e,t,n);return}}let g=e.process(v.session);if(o&&(v=m(),v.lock!==p)){Qy(e,t,n);return}if(g&&(o1(g)?l(g):(j8(g),o?f(g):s(g))),o&&!(g&&o1(g))){if(v=m(),v.lock!==p){Qy(e,t,n);return}s(v.session),g=v.session}(r=e.after)===null||r===void 0||r.call(e,g||v.session),lC(t)}function Qy(e,t,n){Ii(()=>{dd(e,t,n+1)},nM)}function lC(e){Nb=void 0;const t=q8.shift();t&&dd(t,e)}function oM(){return Rr()+z8+Tr()}function aM(e){const[,t]=e.split(z8);return!t||$n(Number(t),Tr())>iM}const Ib="_DD_SESSION";function sM(){return{type:Oa.MEMORY}}function lM(e){return{expireSession:t=>cM(t,e),isLockEnabled:!1,persistSession:G8,retrieveSession:uM}}function uM(){const e=Li();return e[Ib]||(e[Ib]={}),Ad(e[Ib])}function G8(e){const t=Li();t[Ib]=Ad(e)}function cM(e,t){G8(Oc(e,t))}const uC=Pi;function fM(e){const{sessionPersistence:t}=e,n=dM(t,e);for(const r of n){const o=hM(r,e);if(o!==void 0)return o}}function dM(e,t){return Array.isArray(e)?e:e!==void 0?[e]:t.allowFallbackToLocalStorage?[Oa.COOKIE,Oa.LOCAL_STORAGE]:[Oa.COOKIE]}function hM(e,t){switch(e){case Oa.COOKIE:return WI(t);case Oa.LOCAL_STORAGE:return JI();case Oa.MEMORY:return sM();default:ut.error(`Invalid session persistence '${String(e)}'`);return}}function pM(e,t){return e.type===Oa.COOKIE?YI(t,e.cookieOptions):e.type===Oa.LOCAL_STORAGE?eM(t):lM(t)}function mM(e,t,n,r,o=pM(e,t)){const s=new Jt,l=new Jt,f=new Jt,m=lm(S,uC);let p;w();const{throttled:v,cancel:g}=D_(()=>{dd({process:M=>{if(kb(M))return;const j=x(M);return R(j),j},after:M=>{F8(M)&&!T()&&L(M),p=M}},o)},uC);function y(){dd({process:M=>T()?x(M):void 0},o)}function S(){const M=o.retrieveSession();o1(M)?dd({process:j=>o1(j)?Oc(j,t):void 0,after:x},o):x(M)}function x(M){return o1(M)&&(M=Oc(M,t)),T()&&(I(M)?k():(f.notify({previousState:p,newState:M}),p=M)),M}function w(){dd({process:M=>{if(kb(M))return M.anonymousId=Rr(),Oc(M,t)},after:M=>{p=M}},o)}function R(M){if(kb(M))return!1;const j=r(M[n]);M[n]=j,delete M.isExpired,j!==L8&&!M.id&&(M.id=Rr(),M.created=String(Na())),t.trackAnonymousUser&&!M.anonymousId&&(M.anonymousId=Rr())}function T(){return p?.[n]!==void 0}function I(M){return p.id!==M.id||p[n]!==M[n]}function k(){p=Oc(p,t),l.notify()}function L(M){p=M,s.notify()}function H(M){dd({process:j=>({...j,...M}),after:x},o)}return{expandOrRenewSession:v,expandSession:y,getSession:()=>p,renewObservable:s,expireObservable:l,sessionStateUpdateObservable:f,restartSession:w,expire:M=>{g(),M===!1&&p&&delete p.anonymousId,o.expireSession(p),x(Oc(p,t))},stop:()=>{M_(m)},updateSessionState:H}}const bE={GRANTED:"granted",NOT_GRANTED:"not-granted"};function vM(e){const t=new Jt;return{tryToInit(n){e||(e=n)},update(n){e=n,t.notify()},isGranted(){return e===bE.GRANTED},observable:t}}function cm(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Yc(e){return cm(e)==="object"}function Yp(e){const t=cm(e);return t==="string"||t==="function"||e instanceof RegExp}function fm(e,t,n=!1){return e.some(r=>{try{if(typeof r=="function")return r(t);if(r instanceof RegExp)return r.lastIndex=0,r.test(t);if(typeof r=="string")return n?t.startsWith(r):r===t}catch(o){ut.error(o)}return!1})}function Mle(e){return e}const gM=["chrome-extension://","moz-extension://"];function cC(e){return gM.some(t=>e.includes(t))}function yM(e,t=""){if(cC(e))return!1;const r=t.split(` 10`).filter(o=>{const s=o.trim();return s.length&&/^at\s+|@/.test(s)})[1]||"";return cC(r)}const bM="Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided.",_M="SDK initialized on a non-allowed domain.";function SM(e,t){const n=Li().location,r=n?n.origin:"",o=e.allowedTrackingOrigins;if(!o)return yM(r,t)?(ut.error(bM),!1):!0;const s=fm(o,r);return s||ut.error(_M),s}const $8="datad0g.com",EM="dd0g-gov.com",gd="datadoghq.com",xM="datadoghq.eu",wM="ddog-gov.com",CM="us2.ddog-gov.com",TM="pci.browser-intake-datadoghq.com",RM=["ddsource","dd-api-key","dd-request-id"];function Tc(e,t,n){const r=OM(e,t);return{build(o,s){const l=AM(e,t,o,s,n);return r(l)},trackType:t}}function OM(e,t){const n=`/api/v2/${t}`,r=e.proxy;if(typeof r=="string"){const s=H6(r);return l=>`${s}?ddforward=${encodeURIComponent(`${n}?${l}`)}`}if(typeof r=="function")return s=>r({path:n,parameters:s});const o=Q8(t,e);return s=>`https://${o}${n}?${s}`}function Q8(e,t){const{site:n=gd,internalAnalyticsSubdomain:r}=t;if(e==="logs"&&t.usePciIntake&&n===gd)return TM;
10if(r&&n===gd)return`${r}.${gd}`;if(n===EM)return`http-intake.logs.${n}`;const o=n.split("."),s=o.pop();return`browser-intake-${o.join("-")}.${s}`}function AM({clientToken:e,internalAnalyticsSubdomain:t,source:n="browser"},r,o,{retry:s,encoding:l},f=[]){const m=[`ddsource=${n}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.33.0")}`,"dd-evp-origin=browser",`dd-request-id=${Rr()}`].concat(f);return l&&m.push(`dd-evp-encoding=${l}`),r==="rum"&&(m.push(`batch_time=${Tr()}`,`_dd.api=${o}`),s&&m.push(`_dd.retry_count=${s.count}`,`_dd.retry_after=${s.lastFailureStatus}`)),t&&m.reverse(),m.join("&")}function kM(e){const t=e.site||gd,n=NM(e.source),r=IM({...e,site:t,source:n});return{replica:MM({...e,site:t,source:n}),site:t,source:n,...r}}function NM(e){return e==="flutter"||e==="unity"?e:"browser"}function IM(e){return{logsEndpointBuilder:Tc(e,"logs"),rumEndpointBuilder:Tc(e,"rum"),profilingEndpointBuilder:Tc(e,"profile"),sessionReplayEndpointBuilder:Tc(e,"replay"),exposuresEndpointBuilder:Tc(e,"exposures"),flagEvaluationEndpointBuilder:Tc(e,"flagevaluation")}}function MM(e){if(!e.replica)return;const t={...e,site:gd,clientToken:e.replica.clientToken};return{logsEndpointBuilder:Tc(t,"logs"),rumEndpointBuilder:Tc(t,"rum",[`application.id=${e.replica.applicationId}`])}}function DM(e){return RM.every(t=>e.includes(t))}const Tp={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},_E={ALL:"all",SAMPLED:"sampled"};function zS(e,t){return e!=null&&typeof e!="string"?(ut.error(`${t} must be defined as a string`),!1):!0}function LM(e){return e&&typeof e=="string"&&!/(datadog|ddog|datad0g|dd0g)/.test(e)?(ut.error(`Site should be a valid Datadog site. ${V6} ${N_}/getting_started/site/.`),!1):!0}function Rp(e,t){return e!==void 0&&!bI(e)?(ut.error(`${t} Sample Rate should be a number between 0 and 100`),!1):!0}function PM(e,t){var n,r,o,s,l,f,m,p,v,g;if(!e||!e.clientToken){ut.error("Client Token is not configured, we will not send any data.");return}if(e.allowedTrackingOrigins!==void 0&&!Array.isArray(e.allowedTrackingOrigins)){ut.error("Allowed Tracking Origins must be an array");return}if(!(!LM(e.site)||!Rp(e.sessionSampleRate,"Session")||!Rp(e.telemetrySampleRate,"Telemetry")||!Rp(e.telemetryConfigurationSampleRate,"Telemetry Configuration")||!Rp(e.telemetryUsageSampleRate,"Telemetry Usage")||!zS(e.version,"Version")||!zS(e.env,"Env")||!zS(e.service,"Service")||!SM(e,t??""))){if(e.trackingConsent!==void 0&&!n_(bE,e.trackingConsent)){ut.error('Tracking Consent should be either "granted" or "not-granted"');return}return{beforeSend:e.beforeSend&&b8(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:M1?void 0:fM(e),sessionSampleRate:(n=e.sessionSampleRate)!==null&&n!==void 0?n:100,telemetrySampleRate:(r=e.telemetrySampleRate)!==null&&r!==void 0?r:20,telemetryConfigurationSampleRate:(o=e.telemetryConfigurationSampleRate)!==null&&o!==void 0?o:5,telemetryUsageSampleRate:(s=e.telemetryUsageSampleRate)!==null&&s!==void 0?s:5,service:(l=e.service)!==null&&l!==void 0?l:void 0,env:(f=e.env)!==null&&f!==void 0?f:void 0,version:(m=e.version)!==null&&m!==void 0?m:void 0,datacenter:(p=e.datacenter)!==null&&p!==void 0?p:void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:(v=e.trackingConsent)!==null&&v!==void 0?v:bE.GRANTED,trackAnonymousUser:(g=e.trackAnonymousUser)!==null&&g!==void 0?g:!0,storeContextsAcrossPages:!!e.storeContextsAcrossPages,betaEncodeCookieOptions:!!e.betaEncodeCookieOptions,variant:e.variant,sdkVersion:e.sdkVersion,...kM(e)}}}function FM(e){return{session_sample_rate:e.sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:e.telemetryUsageSampleRate,use_before_send:!!e.beforeSend,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,track_anonymous_user:e.trackA
10nonymousUser,session_persistence:Array.isArray(e.sessionPersistence)?e.sessionPersistence[0]:e.sessionPersistence,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents,tracking_consent:e.trackingConsent,use_allowed_tracking_origins:Array.isArray(e.allowedTrackingOrigins),beta_encode_cookie_options:e.betaEncodeCookieOptions,source:e.source,sdk_version:e.sdkVersion,variant:e.variant}}var Ta;(function(e){e.TRACK_INTAKE_REQUESTS="track_intake_requests",e.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",e.FEATURE_OPERATION_VITAL="feature_operation_vital",e.START_STOP_ACTION="start_stop_action",e.START_STOP_RESOURCE="start_stop_resource",e.USE_CHANGE_RECORDS="use_change_records",e.USE_INCREMENTAL_CHANGE_RECORDS="use_incremental_change_records",e.TOO_MANY_REQUESTS_INVESTIGATION="too_many_requests_investigation",e.TRACK_RESOURCE_HEADERS="track_resource_headers"})(Ta||(Ta={}));const G6=new Set;function jM(e){Array.isArray(e)&&UM(e.filter(t=>n_(Ta,t)))}function UM(e){e.forEach(t=>{G6.add(t)})}function pu(e){return G6.has(e)}function BM(){return G6}const Kp="?";function dm(e){var t,n;const r=[];let o=qS(e,"stack");const s=String(e);if(o&&o.startsWith(s)&&(o=o.slice(s.length)),o&&o.split(` 11`).forEach(l=>{const f=zM(l)||$M(l)||WM(l)||XM(l);f&&(!f.func&&f.line&&(f.func=Kp),r.push(f))}),r.length>0&&tD()&&e instanceof Error){const l=[];let f=e;for(;(f=Object.getPrototypeOf(f))&&Y8(f);){const m=((t=f.constructor)===null||t===void 0?void 0:t.name)||Kp;l.push(m)}for(let m=l.length-1;m>=0&&((n=r[0])===null||n===void 0?void 0:n.func)===l[m];m--)r.shift()}return{message:qS(e,"message"),name:qS(e,"name"),stack:r}}const W8="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",Xp="(?::(\\d+))",VM=new RegExp(`^\\s*at (.*?) ?\\(${W8}${Xp}?${Xp}?\\)?\\s*$`,"i"),HM=new RegExp(`\\((\\S*)${Xp}${Xp}\\)`);function zM(e){const t=VM.exec(e);if(!t)return;const n=t[2]&&t[2].indexOf("native")===0,r=t[2]&&t[2].indexOf("eval")===0,o=HM.exec(t[2]);return r&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||Kp,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}const qM="(?:(.*)?(?: @))",GM=new RegExp(`^\\s*at\\s*${qM}?\\s*${W8}${Xp}?${Xp}??\\s*$`,"i");function $M(e){const t=GM.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||Kp,line:t[3]?+t[3]:void 0,url:t[2]}}const QM=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function WM(e){const t=QM.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||Kp,line:+t[3],url:t[2]}}const YM=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,KM=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function XM(e){const t=YM.exec(e);if(!t)return;const n=t[3]&&t[3].indexOf(" > eval")>-1,r=KM.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||Kp,line:t[4]?+t[4]:void 0,url:t[3]}}function qS(e,t){return Yc(e)&&typeof e[t]=="string"?e[t]:void 0}function ZM(e,t,n,r){if(t===void 0)return;const{name:o,message:s}=eD(e);return{name:o,message:s,stack:[{url:t,column:r,line:n}]}}const JM=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function eD(e){let t,n;return{}.toString.call(e)==="[object String]"&&([,t,n]=JM.exec(e)),{name:t,message:n}}function Y8(e){return String(e.constructor).startsWith("class ")}let Wy;function tD(){if(Wy!==void 0)return Wy;class e extends Error{constructor(){super(),this.name="Error"}}const[t,n]=[e,Error].map(r=>new r);return Wy=Y8(Object.getPrototypeOf(t))&&n.stack!==t.stack,Wy}function cu(e){const n=new Error(e);n.name="HandlingStack";let r;return xa(()=>{const o=dm(n);o.stack=o.stack.slice(2),r=j_(o)}),r}function j_(e){let t=K8(e);return e.stack.forEach(n=>{const r=n.func==="?"?"<anonymous>":n.func,o=n.args&&n.args.length>0?`(${n.args.join(", ")})`:"",s=n.line?`:${n.line}`:"",l=n.line&&n.column?`:${n.column}`:"";t+=` 12 at ${r}${o} @ ${n.url}${s}${l}`}),t}function K8(e){return`${e.name||"Error"}: ${e.message}`}function pl(e,t,n,{computeHandlingStack:r}={}){let o=e[t];if(typeof o!="function")if(t in e&&typeof t=="string"&&t.startsWith("on"))o=Mn;else return{stop:Mn};let s=!1;const l=function(){if(s)return o.apply(this,arguments);const f=Array.from(arguments);let m;xa(n,null,[{target:this,parameters:f,onPostCall:v=>{m=v},handlingStack:r?cu("instrumented method"):void 0}]);const p=o.apply(this,f);return m&&xa(m,null,[p]),p};return e[t]=l,{stop:()=>{s=!0,e[t]===l&&(e[t]=o)}}}function Dle(e,t,n){const r=Object.getOwnPropertyDescriptor(e,t);if(!r||!r.set||!r.configurable)return{stop:Mn};const o=Mn;let s=(f,m)=>{Ii(()=>{s!==o&&n(f,m)}
12,0)};const l=function(f){r.set.call(this,f),s(this,f)};return Object.defineProperty(e,t,{set:l}),{stop:()=>{var f;((f=Object.getOwnPropertyDescriptor(e,t))===null||f===void 0?void 0:f.set)===l&&Object.defineProperty(e,t,r),s=o}}}const Kc=1024,X8=1024*Kc,nD=/[^\u0000-\u007F]/;function Z8(e){return nD.test(e)?window.TextEncoder!==void 0?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function J8(e){if(e.length===1)return e[0];const t=e.reduce((o,s)=>o+s.length,0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}function Zp(e,t,n){if(typeof e!="object"||e===null)return JSON.stringify(e);const r=Op(Object.prototype),o=Op(Array.prototype),s=Op(Object.getPrototypeOf(e)),l=Op(e);try{return JSON.stringify(e,t,n)}catch{return"<error: unable to serialize object>"}finally{r(),o(),s(),l()}}function Op(e){const t=e,n=t.toJSON;return n?(delete t.toJSON,()=>{t.toJSON=n}):Mn}const rD=220*Kc,iD="$",oD=3;function Pt(e,t=rD){const n=Op(Object.prototype),r=Op(Array.prototype),o=[],s=new WeakMap,l=GS(e,iD,void 0,o,s),f=JSON.stringify(l);let m=f?f.length:0;if(m>t){$S(t,"discarded",e);return}for(;o.length>0&&m<t;){const p=o.shift();let v=0;if(Array.isArray(p.source))for(let g=0;g<p.source.length;g++){const y=GS(p.source[g],p.path,g,o,s);if(y!==void 0?m+=JSON.stringify(y).length:m+=4,m+=v,v=1,m>t){$S(t,"truncated",e);break}p.target[g]=y}else for(const g in p.source)if(Object.prototype.hasOwnProperty.call(p.source,g)){const y=GS(p.source[g],p.path,g,o,s);if(y!==void 0&&(m+=JSON.stringify(y).length+v+g.length+oD,v=1),m>t){$S(t,"truncated",e);break}p.target[g]=y}}return n(),r(),l}function GS(e,t,n,r,o){const s=lD(e);if(!s||typeof s!="object")return aD(s);const l=SE(s);if(l!=="[Object]"&&l!=="[Array]"&&l!=="[Error]")return l;const f=e;if(o.has(f))return`[Reference seen at ${o.get(f)}]`;const m=n!==void 0?`${t}.${n}`:t,p=Array.isArray(s)?[]:{};return o.set(f,m),r.push({source:s,target:p,path:m}),p}function aD(e){return typeof e=="bigint"?`[BigInt] ${e.toString()}`:typeof e=="function"?`[Function] ${e.name||"unknown"}`:typeof e=="symbol"?`[Symbol] ${e.description||e.toString()}`:e}function SE(e){try{if(e instanceof Event)return sD(e);if(e instanceof RegExp)return`[RegExp] ${e.toString()}`;const n=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(n&&n[1])return`[${n[1]}]`}catch{}return"[Unserializable]"}function sD(e){return{type:e.type,isTrusted:e.isTrusted,currentTarget:e.currentTarget?SE(e.currentTarget):null,target:e.target?SE(e.target):null}}function lD(e){const t=e;if(t&&typeof t.toJSON=="function")try{return t.toJSON()}catch{}return e}function $S(e,t,n){ut.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,n)}const e7="No stack, consider using an instance of Error";function t7({originalError:e,stackTrace:t,source:n,useFallbackStack:r=!0,nonErrorPrefix:o}){const s=Xc(e);return!t&&s&&(t=dm(e)),{source:n,type:t?t.name:void 0,message:uD(t,s,o,e),stack:t?j_(t):r?e7:void 0}}function $6({stackTrace:e,originalError:t,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:s,useFallbackStack:l=!0,source:f,handling:m}){const p=t7({originalError:t,stackTrace:e,source:f,useFallbackStack:l,nonErrorPrefix:s});return{startClocks:o,handling:m,handlingStack:n,componentStack:r,originalError:t,...p,causes:Xc(t)?dD(t,f):void 0,fingerprint:cD(t),context:fD(t)}}function uD(e,t,n,r){return e?.message&&e?.name?e.message:t?"Empty message":n?`${n} ${Zp(Pt(r))}`:Zp(Pt(r))}function cD(e){return Xc(e)&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function fD(e){if(Yc(e))return e.dd_context}function Xc(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}function dD(e,t){const n=[];let r=e.cause;for(;r!=null&&n.length<10;){const o=t7({originalError:r,source:t,useFallbackStack:!1});n.push(o),r=Xc(r)?r.cause:void 0}return n.length?n:void 0}const hm={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"};function hD(){return new Jt(e=>{const t=(o,s)=>{const l=$6({stackTrace:s,originalError:o,startClocks:Gn(),nonErrorPrefix:"Uncaught",source:hm.SOURCE,handling:"unhandled"});e.notify(l)},{stop:n}=pD(t),{stop:r}=mD(t);return()=>{n(),r()}})}function pD(e){return pl(Li(),"onerror",({parameters:[t,n,r,o,s]})=>{let l;Xc(s)||(l=ZM(t,n,r,o)),e(s??t,l)})}function mD(e){return pl(Li(),"onunhandledrejection",({parameters:[t]})=>{e(t.reason||"Empty reason")})}function vD(e){const t={version:"6.33.0",onReady(n){n()},...e};return Object.defineProperty(t,"_setDebug",{get(){return SI},enumerable:!1}),t}function gD(e,t,n){const r=e[t];r&&!r.q&&r.version&&ut.warn("SDK is loaded more than once. This is unsupported and might have unex
12pected behavior."),e[t]=n,r&&r.q&&r.q.forEach(o=>b8(o,"onReady callback threw an error:")())}function n7(e,t){t.silentMultipleInit||ut.error(`${e} is already initialized.`)}function yr(e,t,n,r,o){return Fc(e,t,[n],r,o)}function Fc(e,t,n,r,{once:o,capture:s,passive:l}={}){const f=jt(y=>{!y.isTrusted&&!y.__ddIsTrusted&&!e.allowUntrustedEvents||(o&&g(),r(y))}),m=l?{capture:s,passive:l}:s,p=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,v=gu(p,"addEventListener");n.forEach(y=>v.call(t,y,f,m));function g(){const y=gu(p,"removeEventListener");n.forEach(S=>y.call(t,S,f,m))}return{stop:g}}const g1={intervention:"intervention",cspViolation:"csp_violation"};function yD(e,t){const n=[];t.includes(g1.cspViolation)&&n.push(_D(e));const r=t.filter(o=>o!==g1.cspViolation);return r.length&&n.push(bD(r)),E8(...n)}function bD(e){return new Jt(t=>{if(!window.ReportingObserver)return;const n=jt((o,s)=>o.forEach(l=>t.notify(SD(l)))),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),()=>{r.disconnect()}})}function _D(e){return new Jt(t=>{const{stop:n}=yr(e,document,"securitypolicyviolation",r=>{t.notify(ED(r))});return n})}function SD(e){const{type:t,body:n}=e;return r7({type:n.id,message:`${t}: ${n.message}`,originalError:e,stack:i7(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)})}function ED(e){const t=`'${e.blockedURI}' blocked by '${e.effectiveDirective}' directive`;return r7({type:e.effectiveDirective,message:`${g1.cspViolation}: ${t}`,originalError:e,csp:{disposition:e.disposition},stack:i7(e.effectiveDirective,e.originalPolicy?`${t} of the policy "${P1(e.originalPolicy,100,"...")}"`:"no policy",e.sourceFile,e.lineNumber,e.columnNumber)})}function r7(e){return{startClocks:Gn(),source:hm.REPORT,handling:"unhandled",...e}}function i7(e,t,n,r,o){return n?j_({name:e,message:t,stack:[{func:"?",url:n,line:r??void 0,column:o??void 0}]}):void 0}const xD=200;function o7(e){const{env:t,service:n,version:r,datacenter:o,sdkVersion:s,variant:l}=e,f=[up("sdk_version",s??"6.33.0")];return t&&f.push(up("env",t)),n&&f.push(up("service",n)),r&&f.push(up("version",r)),o&&f.push(up("datacenter",o)),l&&f.push(up("variant",l)),f}function up(e,t){const n=t?`${e}:${t}`:e;return(n.length>xD||CD(n))&&ut.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${V6} ${N_}/getting_started/tagging/#defining-tags`),wD(n)}function wD(e){return e.replace(/,/g,"_")}function CD(e){return TD()?new RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(e):!1}function TD(){try{return new RegExp("[\\p{Ll}]","u"),!0}catch{return!1}}function a7(e,t){const n=ys.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}function r_(e,t,n=RD()){if(t===void 0)return e;if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){const o=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,o)}if(n.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){const o=Array.isArray(e)?e:[];for(let s=0;s<t.length;++s)o[s]=r_(o[s],t[s],n);return o}const r=cm(e)==="object"?e:{};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=r_(r[o],t[o],n));return r}function Q6(e){return r_(void 0,e)}function yu(...e){let t;for(const n of e)n!=null&&(t=r_(t,n));return t}function RD(){if(typeof WeakSet<"u"){const t=new WeakSet;return{hasAlreadyBeenSeen(n){const r=t.has(n);return r||t.add(n),r}}}const e=[];return{hasAlreadyBeenSeen(t){const n=e.indexOf(t)>=0;return n||e.push(t),n}}}function s7(){var e;const t=ys.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:(e=t.connection)===null||e===void 0?void 0:e.effectiveType}}function l7(e,t){return gu(Li(),"fetch")(e,t)}function OD(e){return e>=500}function AD(e){try{return e.clone()}catch{return}}const kD=80*Kc,ND=32,u7=20*X8,ID=Oo,c7=Pi;function f7(e,t,n,r,o,s){t.transportStatus===0&&t.queuedPayloads.size()===0&&t.bandwidthMonitor.canHandle(e)?h7(e,t,n,s,{onSuccess:()=>p7(0,t,n,r,o,s),onFailure:()=>{t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),d7(t,n,r,o,s)}}):t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function d7(e,t,n,r,o){e.transportStatus===2&&Ii(()=>{const s=e.queuedPayloads.first();h7(s,e,t,o,{onSuccess:()=>{e.queuedPayloads.dequeue(),e.currentBackoffTime=c7,p7(1,e,t,n,r,o)},onFailure:()=>{e.currentBackoffTime=Math.min(ID,e.currentBackoffTime*2),d7(e,t,n,r,o)}})},e.currentBackoffTime)}function h7(e,t,n,r,{onSuccess:o,onFailure:s}){t.bandwidthMonitor.add(e),n(e,l=>{t.bandwidthMonitor.remove(e),MD(l)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:l.status}
12,r.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),s()):(t.transportStatus=0,r.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),o())})}function p7(e,t,n,r,o,s){e===0&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:`Reached max ${r} events size queued for upload: ${u7/X8}MiB`,source:hm.AGENT,startClocks:Gn()}),t.queueFullReported=!0);const l=t.queuedPayloads;for(t.queuedPayloads=m7();l.size()>0;)f7(l.dequeue(),t,n,r,o,s)}function MD(e){return e.type!=="opaque"&&(e.status===0&&!navigator.onLine||e.status===408||e.status===429||OD(e.status))}function DD(){return{transportStatus:0,currentBackoffTime:c7,bandwidthMonitor:LD(),queuedPayloads:m7(),queueFullReported:!1}}function m7(){const e=[];return{bytesCount:0,enqueue(t){return this.isFull()?!1:(e.push(t),this.bytesCount+=t.bytesCount,!0)},first(){return e[0]},dequeue(){const t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size(){return e.length},isFull(){return this.bytesCount>=u7}}}function LD(){return{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return this.ongoingRequestCount===0||this.ongoingByteCount+e.bytesCount<=kD&&this.ongoingRequestCount<ND},add(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}}}const EE=16*Kc;function v7(e,t,n=EE){const r=new Jt,o=DD();return{observable:r,send:s=>{for(const l of e)f7(s,o,(f,m)=>{g7(l,f,m)},l.trackType,t,r)},sendOnExit:s=>{for(const l of e)PD(l,n,s)}}}function PD(e,t,n){if(!!navigator.sendBeacon&&n.bytesCount<t)try{const o=e.build("beacon",n);if(navigator.sendBeacon(o,n.data))return}catch(o){FD(o)}g7(e,n)}let fC=!1;function FD(e){fC||(fC=!0,sm(e))}function g7(e,t,n){const r=e.build("fetch",t);l7(r,{method:"POST",body:t.data,mode:"cors"}).then(jt(o=>n?.({status:o.status,type:o.type}))).catch(jt(()=>n?.({status:0})))}function F1(){const e=jD();if(e)return{getCapabilities(){var t;return JSON.parse(((t=e.getCapabilities)===null||t===void 0?void 0:t.call(e))||"[]")},getPrivacyLevel(){var t;return(t=e.getPrivacyLevel)===null||t===void 0?void 0:t.call(e)},getAllowedWebViewHosts(){return JSON.parse(e.getAllowedWebViewHosts())},send(t,n,r){const o=r?{id:r}:void 0;e.send(JSON.stringify({eventType:t,event:n,view:o}))}}}function y7(e){const t=F1();return!!t&&t.getCapabilities().includes(e)}function Jp(e){var t;e===void 0&&(e=(t=Li().location)===null||t===void 0?void 0:t.hostname);const n=F1();return!!n&&n.getAllowedWebViewHosts().some(r=>e===r||e.endsWith(`.${r}`))}function jD(){return Li().DatadogEventBridge}const a1={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function b7(e){return new Jt(t=>{if(M1)return;const{stop:n}=Fc(e,window,["visibilitychange","freeze"],o=>{o.type==="visibilitychange"&&document.visibilityState==="hidden"?t.notify({reason:a1.HIDDEN}):o.type==="freeze"&&t.notify({reason:a1.FROZEN})},{capture:!0}),r=yr(e,window,"beforeunload",()=>{t.notify({reason:a1.UNLOADING})}).stop;return()=>{n(),r()}})}function UD(e){return M8(a1).includes(e)}const dC=256*Kc;function _7({encoder:e,request:t,flushController:n}){let r={};const o=n.flushObservable.subscribe(v=>p(v));function s(v,g,y){n.notifyBeforeAddMessage(g),y!==void 0?(r[y]=v,n.notifyAfterAddMessage()):e.write(e.isEmpty?v:` 13${v}`,S=>{n.notifyAfterAddMessage(S-g)})}function l(v){return v!==void 0&&r[v]!==void 0}function f(v){const g=r[v];delete r[v];const y=e.estimateEncodedBytesCount(g);n.notifyAfterRemoveMessage(y)}function m(v,g){const y=Zp(v),S=e.estimateEncodedBytesCount(y);if(S>=dC){ut.warn(`Discarded a message whose size was bigger than the maximum allowed size ${dC/Kc}KiB. ${V6} ${yI}/#technical-limitations`);return}l(g)&&f(g),s(y,S,g)}function p(v){const g=M8(r).join(` 14`);r={};const y=UD(v.reason),S=y?t.sendOnExit:t.send;if(y&&e.isAsync){const x=e.finishSync();x.outputBytesCount&&S(hC(x));const w=[x.pendingData,g].filter(Boolean).join(` 15`);w&&S({data:w,bytesCount:Z8(w)})}else g&&e.write(e.isEmpty?g:` 16${g}`),e.finish(x=>{S(hC(x))})}return{flushController:n,add:m,upsert:m,stop:o.unsubscribe}}function hC(e){let t;return typeof e.output=="string"?t=e.output:t=new Blob([e.output],{type:"text/plain"}),{data:t,bytesCount:e.outputBytesCount,encoding:e.encoding}}const BD=30*Pi,VD=M1?1:50;
16function S7({pageMayExitObservable:e,sessionExpireObservable:t}){let n;const r=new Jt,o=e.subscribe(S=>{n=S.reason;try{r.notify(S.reason)}finally{n=void 0}p(S.reason)}),s=t.subscribe(()=>p("session_expire")),l=new Jt(()=>()=>{o.unsubscribe(),s.unsubscribe()});let f=0,m=0;function p(S){if(m===0)return;const x=m,w=f;m=0,f=0,y(),l.notify({reason:S,messagesCount:x,bytesCount:w})}let v;function g(){v===void 0&&(v=Ii(()=>{p("duration_limit")},BD))}function y(){Ca(v),v=void 0}return{flushObservable:l,preparePageExitFlushObservable:r,get messagesCount(){return m},notifyBeforeAddMessage(S){f+S>=EE&&p(n??"bytes_limit"),m+=1,f+=S,g()},notifyAfterAddMessage(S=0){f+=S,m>=VD?p(n??"messages_limit"):f>=EE&&p(n??"bytes_limit")},notifyAfterRemoveMessage(S){f-=S,m-=1,m===0&&y()}}}function E7(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(n,r){const o=Z8(n);t+=o,e+=n,r&&r(o)},finish(n){n(this.finishSync())},finishSync(){const n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount(n){return n.length}}}const jc="DISCARDED",so="SKIPPED";function HD(){const e={};return{register(t,n){return e[t]||(e[t]=[]),e[t].push(n),{unregister:()=>{e[t]=e[t].filter(r=>r!==n)}}},triggerHook(t,n){const r=e[t]||[],o=[];for(const s of r){const l=s(n);if(l===jc)return jc;l!==so&&o.push(l)}return yu(...o)}}}const Ic={LOG:"log",CONFIGURATION:"configuration",USAGE:"usage"},zD=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],qD=1,GD=[wM,CM],$D=15;let QS;function pm(){return QS||(QS=new x8(100)),QS}function QD(e,t,n){const r=new Jt,{enabled:o,metricsEnabled:s}=WD(e,t,n,r),{stop:l}=YD(t,r);return{stop:l,enabled:o,metricsEnabled:s}}function WD(e,t,n,r,o=qD,s=$D){const l={},f=!GD.includes(t.site)&&vd(t.telemetrySampleRate),m={[Ic.LOG]:f,[Ic.CONFIGURATION]:f&&vd(t.telemetryConfigurationSampleRate),[Ic.USAGE]:f&&vd(t.telemetryUsageSampleRate),metric:f&&vd(o)},p=KD(),v=pm();return v.subscribe(({rawEvent:y,metricName:S})=>{if(S&&!m.metric||!m[y.type])return;const x=S||y.status||y.type;let w=l[x];if(w||(w=l[x]=new Set),w.size>=s)return;const R=Zp(y);if(w.has(R))return;const T=n.triggerHook(1,{startTime:Gn().relative});if(T===jc)return;const I=g(T,e,y,p);r.notify(I),a7("telemetry",I),w.add(R)}),v.unbuffer(),_I(U_),{enabled:f,metricsEnabled:m.metric};function g(y,S,x,w){const T={type:"telemetry",date:Gn().timeStamp,service:S,version:"6.33.0",source:"browser",_dd:{format_version:2},telemetry:yu(x,{runtime_env:w,connectivity:s7(),sdk_setup:"npm"}),ddtags:o7(t).join(","),experimental_features:Array.from(BM())};return yu(T,y)}}function YD(e,t){const n=[];if(Jp()){const r=F1(),o=t.subscribe(s=>r.send("internal_telemetry",s));n.push(o.unsubscribe)}else{const r=[e.rumEndpointBuilder];e.replica&&XD(e)&&r.push(e.replica.rumEndpointBuilder);const o=_7({encoder:E7(),request:v7(r,Mn),flushController:S7({pageMayExitObservable:b7(e),sessionExpireObservable:new Jt})});n.push(o.stop);const s=t.subscribe(o.add);n.push(s.unsubscribe)}return{stop:()=>n.forEach(r=>r())}}function KD(){var e;return{is_local_file:((e=ys.location)===null||e===void 0?void 0:e.protocol)==="file:",is_worker:M1}}function XD(e){return e.site===$8}function y1(e,t){gE(k_.debug,e,t),pm().notify({rawEvent:{type:Ic.LOG,message:e,status:"debug",...t}})}function U_(e,t){pm().notify({rawEvent:{type:Ic.LOG,status:"error",...JD(e),...t}})}function ZD(e){pm().notify({rawEvent:{type:Ic.CONFIGURATION,configuration:e}})}function B_(e,t){pm().notify({rawEvent:{type:Ic.LOG,message:e,status:"debug",...t},metricName:e})}function Qr(e){pm().notify({rawEvent:{type:Ic.USAGE,usage:e}})}function JD(e){if(Xc(e)){const t=dm(e);return{error:{kind:t.name,stack:j_(eL(t))},message:t.message}}return{error:{stack:e7},message:`Uncaught ${Zp(e)}`}}function eL(e){return e.stack=e.stack.filter(t=>!t.url||zD.some(n=>t.url.startsWith(n))),e}function x7(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function Ed(e){return Array.isArray(e)&&e.length>0}const Yy=1/0,tL=Oo;let Iv;const Mb=new Set;
16function nL(){Mb.forEach(e=>e())}function mm({expireDelay:e,maxEntries:t}){let n=[];Iv||(Iv=lm(()=>nL(),tL));const r=()=>{const g=Zo()-e;for(;n.length>0&&n[n.length-1].endTime<g;)n.pop()};Mb.add(r);function o(g,y){const S={value:g,startTime:y,endTime:Yy,remove:()=>{x7(n,S)},close:x=>{S.endTime=x}};return t&&n.length>=t&&n.pop(),n.unshift(S),S}function s(g=Yy,y={returnInactive:!1}){for(const S of n)if(S.startTime<=g){if(y.returnInactive||g<=S.endTime)return S.value;break}}function l(g){const y=n[0];y&&y.endTime===Yy&&y.close(g)}function f(g=Yy,y=0){const S=Fd(g,y);return n.filter(x=>x.startTime<=S&&g<=x.endTime).map(x=>x.value)}function m(g){return n.filter(y=>y.startTime===g)}function p(){n=[]}function v(){Mb.delete(r),Mb.size===0&&Iv&&(M_(Iv),Iv=void 0)}return{add:o,find:s,closeActive:l,findAll:f,getEntries:m,reset:p,stop:v}}const V_="datadog-synthetics-",rL=`${V_}public-id`,iL=`${V_}result-id`,oL=`${V_}injects-rum`,aL=`${V_}rum-context`;function w7(){return M1?!1:!!(ys._DATADOG_SYNTHETICS_INJECTS_RUM||hu(oL))}function C7(){const e=sL();return lL(e)?e:void 0}function T7(){return!!C7()}function sL(){const e=ys._DATADOG_SYNTHETICS_RUM_CONTEXT;if(e)return e;const t=hu(aL);return t?I_(decodeURIComponent(t)):{test_id:window._DATADOG_SYNTHETICS_PUBLIC_ID||hu(rL),result_id:window._DATADOG_SYNTHETICS_RESULT_ID||hu(iL)}}function lL(e){return typeof e=="object"&&e!==null&&typeof e.test_id=="string"&&typeof e.result_id=="string"}const uL=Oo,cL=jd;function fL(e,t,n,r){const o=new Jt,s=new Jt,l=mM(e.sessionStoreStrategyType,e,t,n),f=mm({expireDelay:cL});l.renewObservable.subscribe(()=>{f.add(m(),Zo()),o.notify()}),l.expireObservable.subscribe(()=>{s.notify(),f.closeActive(Zo())}),l.expandOrRenewSession(),f.add(m(),R8().relative),r.observable.subscribe(()=>{r.isGranted()?l.expandOrRenewSession():l.expire(!1)}),dL(e,()=>{r.isGranted()&&l.expandOrRenewSession()}),hL(e,()=>l.expandSession()),pL(e,()=>l.restartSession());function m(){const p=l.getSession();return p?{id:p.id,trackingType:p[t],isReplayForced:!!p.forcedReplay,anonymousId:p.anonymousId}:(mL(e).catch(()=>{}),{id:"invalid",trackingType:L8,isReplayForced:!1,anonymousId:void 0})}return{findSession:(p,v)=>f.find(p,v),renewObservable:o,expireObservable:s,sessionStateUpdateObservable:l.sessionStateUpdateObservable,expire:l.expire,updateSessionState:l.updateSessionState}}function dL(e,t){const{stop:n}=Fc(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0})}function hL(e,t){const n=()=>{document.visibilityState==="visible"&&t()},{stop:r}=yr(e,document,"visibilitychange",n);lm(n,uL)}function pL(e,t){const{stop:n}=yr(e,window,"resume",t,{capture:!0})}async function mL(e){const t=e.sessionStoreStrategyType;if(!t)return;let n,r;t.type===Oa.COOKIE?(n=U8(t.cookieOptions,e),r={cookie:await vL(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):n=H8(),y1("Unexpected session state",{sessionStoreStrategyType:t.type,session:n,isSyntheticsTest:T7(),createdTimestamp:n?.created,expireTimestamp:n?.expire,...r})}async function vL(){let e;return"cookieStore"in window?e=await window.cookieStore.getAll(Pc):e=document.cookie.split(/\s*;\s*/).filter(t=>t.startsWith(Pc)),{count:e.length,domain:N8()||"undefined",...e}}class gL{constructor(){this.callbacks={}}notify(t,n){const r=this.callbacks[t];r&&r.forEach(o=>o(n))}subscribe(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),{unsubscribe:()=>{this.callbacks[t]=this.callbacks[t].filter(r=>n!==r)}}}}const yL=3e3;function WS(e,t,n=yL){let r=0,o=!1;return{isLimitReached(){if(r===0&&Ii(()=>{r=0},Oo),r+=1,r<=n||o)return o=!1,!1;if(r===n+1){o=!0;try{t({message:`Reached max number of ${e}s by minute: ${n}`,source:hm.AGENT,startClocks:Gn()})}finally{o=!1}}return!0}}}function W6(e,t,n){return document.readyState===t||document.readyState==="complete"?(n(),{stop:Mn}):yr(e,window,t==="complete"?"load":"DOMContentLoaded",n,{once:!0})}function bL(e,t){return new Promise(n=>{W6(e,t,n)})}let YS;const Y6=new WeakMap;function _L(e){return YS||(YS=SL(e)),YS}function SL(e){return new Jt(t=>{const{stop:n}=pl(XMLHttpRequest.prototype,"open",EL),{stop:r}=pl(XMLHttpRequest.prototype,"send",s=>{xL(s,e,t)},{computeHandlingStack:!0}),{stop:o}=pl(XMLHttpRequest.prototype,"abort",wL);return()=>{n(),r(),o()}})}function EL({target:e,parameters:[t,n]}){Y6.set(e,{state:"open",method:String(t).toUpperCase(),url:H6(String(n))})}function xL({target:e,parameters:[t],handlingStack:n},r,o){const s=Y6.get(e);if(!s)return;const l=s;l.state="start",l.startClocks=Gn(),l.isAborted=!1,l.xhr=e,l.handlingStack=n,l.requestBody=t;let f=!1;const{stop:m}=pl(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&p()}),p=()=>
16{if(v(),m(),f)return;f=!0;const g=s;g.state="complete",g.duration=$n(l.startClocks.timeStamp,Tr()),g.status=e.status,typeof e.response=="string"&&(g.responseBody=e.response),o.notify(Ad(g))},{stop:v}=yr(r,e,"loadend",p);o.notify(l)}function wL({target:e}){const t=Y6.get(e);t&&(t.isAborted=!0)}async function CL(e,t){const n=e.getReader(),r=[];for(;;){const o=await n.read();if(o.done)break;t.collectStreamBody&&r.push(o.value)}return n.cancel().catch(Mn),t.collectStreamBody?J8(r):void 0}let KS;const R7=[];function O7({responseBodyAction:e}={}){return e&&R7.push(e),KS||(KS=TL()),KS}function TL(){return new Jt(e=>{if(!ys.fetch)return;const{stop:t}=pl(ys,"fetch",n=>RL(n,e),{computeHandlingStack:!0});return t})}function RL({parameters:e,onPostCall:t,handlingStack:n},r){var o,s;const[l,f]=e;let m=f&&f.method;m===void 0&&l instanceof Request&&(m=l.method);const p=m!==void 0?String(m).toUpperCase():"GET",v=l instanceof Request?l.url:H6(String(l)),g=Gn(),y={state:"start",init:f,input:l,method:p,startClocks:g,url:v,handlingStack:n,isAbortedOnStart:l instanceof Request&&((o=l.signal)===null||o===void 0?void 0:o.aborted)||((s=f?.signal)===null||s===void 0?void 0:s.aborted)||!1};r.notify(y),e[0]=y.input,e[1]=y.init,t(S=>{OL(r,S,y).catch(sm)})}async function OL(e,t,n){var r,o;const s=n;s.state="resolve";let l;try{l=await t}catch(m){s.status=0,s.isAborted=((o=(r=s.init)===null||r===void 0?void 0:r.signal)===null||o===void 0?void 0:o.aborted)||m instanceof DOMException&&m.code===DOMException.ABORT_ERR,s.error=m,e.notify(s);return}s.response=l,s.status=l.status,s.responseType=l.type,s.isAborted=!1;const f=R7.reduce((m,p)=>Math.max(m,p(s)),0);if(f!==0){const m=AD(l);if(m&&m.body)try{const p=await CL(m.body,{collectStreamBody:f===2});s.responseBody=p&&new TextDecoder().decode(p)}catch{}}e.notify(s)}function AL(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){const n=window.requestIdleCallback(jt(e),t);return()=>window.cancelIdleCallback(n)}return NL(e)}const kL=50;function NL(e){const t=Na(),n=Ii(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,kL-(Na()-t))})},0);return()=>Ca(n)}const IL=Pi,ML=30;function DL(){const e=[];function t(r){let o;if(!r||r.didTimeout){const s=performance.now();o=()=>ML-(performance.now()-s)}else o=r.timeRemaining.bind(r);for(;o()>0&&e.length;)e.shift()();e.length&&n()}function n(){AL(t,{timeout:IL})}return{push(r){e.push(r)===1&&n()},stop(){e.length=0}}}let XS={};function LL(e){const t=e.map(n=>(XS[n]||(XS[n]=PL(n)),XS[n]));return E8(...t)}function PL(e){return new Jt(t=>{const n=fu[e];return fu[e]=(...r)=>{n.apply(console,r);const o=cu("console error");xa(()=>{t.notify(FL(r,e,o))})},()=>{fu[e]=n}})}function FL(e,t,n){const r=e.map(o=>jL(o)).join(" ");if(t===k_.error){const o=e.find(Xc),s=$6({originalError:o,handlingStack:n,startClocks:Gn(),source:hm.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return s.message=r,{api:t,message:r,handlingStack:n,error:s}}return{api:t,message:r,error:void 0,handlingStack:n}}function jL(e){return typeof e=="string"?Pt(e):Xc(e)?K8(dm(e)):Zp(Pt(e),void 0,2)}const UL=500;function BL(){const e=[];return{add:o=>{e.push(o)>UL&&e.splice(0,1)},remove:o=>{x7(e,o)},drain:o=>{e.forEach(s=>s(o)),e.length=0}}}function VL(e){const t=cm(e)==="object";return t||ut.error("Unsupported context:",e),t}function ZS(e,t,n){const r={...e};for(const[o,{required:s,type:l}]of Object.entries(t))l==="string"&&!pC(r[o])&&(r[o]=String(r[o])),s&&pC(r[o])&&ut.warn(`The property ${o} of ${n} is required; context will not be sent to the intake.`);return r}function pC(e){return e==null||e===""}function H_(e="",{propertiesConfig:t={}}={}){let n={};const r=new Jt,o={getContext:()=>Q6(n),setContext:s=>{VL(s)?n=Pt(ZS(s,t,e)):o.clearContext(),r.notify()},setContextProperty:(s,l)=>{n=Pt(ZS({...n,[s]:l},t,e)),r.notify()},removeContextProperty:s=>{delete n[s],ZS(n,t,e),r.notify()},clearContext:()=>{n={},r.notify()},changeObservable:r};return o}function no(e,t,n,r){return jt((...o)=>(r&&Qr({feature:r}),e()[t][n](...o)))}const HL="_dd_c",zL=[];function K6(e,t,n,r){const o=qL(n,r);zL.push(yr(e,window,"storage",({key:p})=>{o===p&&l()})),t.changeObservable.subscribe(f);const s=yu(m(),t.getContext());Wc(s)||t.setContext(s);function l(){t.setContext(m())}function f(){localStorage.setItem(o,JSON.stringify(t.getContext()))}function m(){const p=localStorage.getItem(o);return p?JSON.parse(p):{}}}function qL(e,t){return`${HL}_${e}_${t}`}function GL(e,t,n){const r=A7();return t.storeContextsAcrossPages&&K6(t,r,n,4),e.register(0,()=>{const o=r.getContext();return Wc(o)||!o.id?so:{account:o}}),r}function A7(){return H_("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}const mC="_dd_tab_id";let JS;function $L(e){const t=QL();e.register(0,()=>({tab:{id:t}}))}function QL(){var e;return JS||(JS=(e=WL())!==null&&e!==void 0?e:Rr()),JS}function WL(){try{const e=sessionStorage.getItem(mC);if(e)return e;const t=Rr();return sessionStorage.setItem(mC,t),t}catch{return}}function YL(e,t,n,r){const o=k7();return t.storeContextsAcrossPages&&K6(t,o,n,2),e.register(0,()=>({context:o.getContext()})),o}function k7(){return H_("global context")}function KL(e,t,n,r){const o=N7();return t.storeContextsAcrossPages&&K6(t,o,r,1),e.register(0,({eventType:s,startTime:l})=>{const f=o.getContext(),m=n.findTrackedSession(l);
16return m&&m.anonymousId&&!f.anonymous_id&&t.trackAnonymousUser&&(f.anonymous_id=m.anonymousId),Wc(f)?so:{type:s,usr:f}}),e.register(1,({startTime:s})=>{var l;return{anonymous_id:(l=n.findTrackedSession(s))===null||l===void 0?void 0:l.anonymousId}}),o}function N7(){return H_("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}const ni={userContext:"userContext",globalContext:"globalContext",accountContext:"accountContext"},ro={getContext:"getContext",setContext:"setContext",setContextProperty:"setContextProperty",removeContextProperty:"removeContextProperty",clearContext:"clearContext"},Ni={DOCUMENT:"document",XHR:"xhr",BEACON:"beacon",FETCH:"fetch",CSS:"css",JS:"js",IMAGE:"image",FONT:"font",MEDIA:"media",OTHER:"other"},Uc={FETCH:Ni.FETCH,XHR:Ni.XHR},XL=500;function ZL(){const e=new x8(XL),t=hD().subscribe(n=>{e.notify({type:0,error:n})});return{observable:e,stop:()=>{t.unsubscribe()}}}function JL(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function eP(e,t){cu("react error"),Gn()}const vC={didCatch:!1,error:null};function tP(e,t="ErrorBoundary"){const n=class extends bl.Component{constructor(o){super(o),this.resetError=()=>{this.setState(vC)},this.state=vC}static getDerivedStateFromError(o){return{didCatch:!0,error:o}}componentDidCatch(o,s){e(o,s)}render(){return this.state.didCatch?bl.createElement(this.props.fallback,{error:this.state.error,resetError:this.resetError}):this.props.children}};return n.displayName=t,n}const nP=tP(eP),rP=()=>C.jsx("div",{}),iP=e=>()=>C.jsx(C.Fragment,{children:e}),X6=({children:e,fallback:t})=>{const n=bl.useMemo(()=>t?typeof t=="function"?t:iP(t):rP,[t]);return C.jsx(nP,{fallback:n,children:e})};var Ky={exports:{}},gC;function oP(){return gC||(gC=1,(function(e,t){t=e.exports=function(n){return String(n).replace(t.expr,"")},t.expr=/\/+$/})(Ky,Ky.exports)),Ky.exports}var aP=oP();const _l=Da(aP);var yC=function(e,t){for(var n in e)t(n)};function xE(e,t){if(e===t)return!0;var n=typeof e;if(n==="string"||n==="number"||n==="boolean"||n==="undefined"||e===null)return!1;var r=typeof t;if(n==="function"||r==="function")throw{RE_EXN_ID:"Invalid_argument",_1:"equal: functional value",Error:new Error};if(r==="number"||r==="undefined"||t===null)return!1;var o=e.TAG|0,s=t.TAG|0;if(o===248)return e[1]===t[1];if(o===251)throw{RE_EXN_ID:"Invalid_argument",_1:"equal: abstract value",Error:new Error};if(o!==s)return!1;var l=e.length|0,f=t.length|0;if(l===f)if(Array.isArray(e))for(var m=0;;){var p=m;if(p===l)return!0;if(!xE(e[p],t[p]))return!1;m=p+1|0}else{if(e instanceof Date&&t instanceof Date)return!(e>t||e<t);var v={contents:!0},g=function(S){if(!Object.prototype.hasOwnProperty.call(t,S)){v.contents=!1;return}},y=function(S){if(!Object.prototype.hasOwnProperty.call(e,S)||!xE(t[S],e[S])){v.contents=!1;return}};return yC(e,g),v.contents&&yC(t,y),v.contents}else return!1}function sP(e,t){for(var n=e.length,r=0;;){var o=r;if(o===n)return!1;if(t(e[o]))return!0;r=o+1|0}}function lP(e){return e.length===0}function uP(e){return e.length!==0}function bC(e,t){return sP(e,function(n){return xE(n,t)})}function cP(){if(arguments.length===1){const e=arguments;return function(n){return bC(n,e[0])}}return bC(arguments[0],arguments[1])}function wE(e){return typeof e=="string"}function I7(e){return typeof e=="number"?!Number.isNaN(e):!1}function mu(e){return e&&!Array.isArray(e)?typeof e=="object":!1}var fP=e=>e===void 0;function dP(e){return e.length>0}function hP(e){return Object.keys(e)}const Fn=()=>typeof window=="object"?window:void 0,i_=()=>typeof document=="object"?document:void 0,Mv=()=>Fn()?.sfixMobile,pP=()=>({isiOS:Mv()?.isiOS?.()??!1,isAndroid:Mv()?.isAndroid?.()??!1,isMobileApp:Mv()?.isMobileApp?.()??!1,showHeader:Mv()?.showHeader?.()??!0,showFooter:Mv()?.showFooter?.()??!0});function mP(e){return e&&typeof e.then=="function"}Promise.resolve(!1);Promise.resolve(!0);var xd=Promise.resolve();function M7(e,t){return e||(e=0),new Promise(function(n){return setTimeout(function(){return n(t)},e)})}function vP(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Z6(){return Math.random().toString(36).substring(2)}var e3=0;
16function j1(){var e=Date.now()*1e3;return e<=e3&&(e=e3+1),e3=e,e}var gP=j1,yP="native";function bP(e){var t={time:j1(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(n){t.messagesCallback&&t.messagesCallback(n.data)},t}function _P(e){e.bc.close(),e.subFns=[]}function SP(e,t){try{return e.bc.postMessage(t,!1),xd}catch(n){return Promise.reject(n)}}function EP(e,t){e.messagesCallback=t}function xP(){if(typeof globalThis<"u"&&globalThis.Deno&&globalThis.Deno.args)return!0;if((typeof window<"u"||typeof self<"u")&&typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function wP(){return 150}var CP={create:bP,close:_P,onMessage:EP,postMessage:SP,canBeUsed:xP,type:yP,averageResponseTime:wP,microSeconds:gP};class D7{ttl;map=new Map;_to=!1;constructor(t){this.ttl=t}has(t){const n=this.map.get(t);return typeof n>"u"?!1:n<CE()-this.ttl?(this.map.delete(t),!1):!0}add(t){this.map.delete(t),this.map.set(t,CE()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,TP(this)},0))}clear(){this.map.clear()}}function TP(e){const t=CE()-e.ttl,n=e.map[Symbol.iterator]();for(;;){const r=n.next().value;if(!r)break;const o=r[0];if(r[1]<t)e.map.delete(o);else break}}function CE(){return Date.now()}function J6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return typeof t.webWorkerSupport>"u"&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=1e3*45),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&typeof e.idb.onclose=="function"&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=1e3*60),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=1e3*60*2),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),typeof t.node.useFastPath>"u"&&(t.node.useFastPath=!0),t}var RP=j1,OP="pubkey.broadcast-channel-0-",bu="messages",z_={durability:"relaxed"},AP="idb";function L7(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function ex(e){e.commit&&e.commit()}function kP(e){var t=L7(),n=OP+e,r=t.open(n);return r.onupgradeneeded=function(o){var s=o.target.result;s.createObjectStore(bu,{keyPath:"id",autoIncrement:!0})},new Promise(function(o,s){r.onerror=function(l){return s(l)},r.onsuccess=function(){o(r.result)}})}function NP(e,t,n){var r=Date.now(),o={uuid:t,time:r,data:n},s=e.transaction([bu],"readwrite",z_);return new Promise(function(l,f){s.oncomplete=function(){return l()},s.onerror=function(p){return f(p)};var m=s.objectStore(bu);m.add(o),ex(s)})}function IP(e,t){var n=e.transaction(bu,"readonly",z_),r=n.objectStore(bu),o=[],s=IDBKeyRange.bound(t+1,1/0);if(r.getAll){var l=r.getAll(s);return new Promise(function(m,p){l.onerror=function(v){return p(v)},l.onsuccess=function(v){m(v.target.result)}})}function f(){try{return s=IDBKeyRange.bound(t+1,1/0),r.openCursor(s)}catch{return r.openCursor()}}return new Promise(function(m,p){var v=f();v.onerror=function(g){return p(g)},v.onsuccess=function(g){var y=g.target.result;y?y.value.id<t+1?y.continue(t+1):(o.push(y.value),y.continue()):(ex(n),m(o))}})}function MP(e,t){if(e.closed)return Promise.resolve([]);var n=e.db.transaction(bu,"readwrite",z_),r=n.objectStore(bu);return Promise.all(t.map(function(o){var s=r.delete(o);return new Promise(function(l){s.onsuccess=function(){return l()}})}))}function DP(e,t){var n=Date.now()-t,r=e.transaction(bu,"readonly",z_),o=r.objectStore(bu),s=[];return new Promise(function(l){o.openCursor().onsuccess=function(f){var m=f.target.result;if(m){var p=m.value;p.time<n?(s.push(p),m.continue()):(ex(r),l(s))}else l(s)}})}function LP(e){return DP(e.db,e.options.idb.ttl).then(function(t){return MP(e,t.map(function(n){return n.id}))})}function PP(e,t){return t=J6(t),kP(e).then(function(n){var r={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:Z6(),eMIs:new D7(t.idb.ttl*2),writeBlockPromise:xd,messagesCallback:null,readQueuePromises:[],db:n};
16return n.onclose=function(){r.closed=!0,t.idb.onclose&&t.idb.onclose()},P7(r),r})}function P7(e){e.closed||F7(e).then(function(){return M7(e.options.idb.fallbackInterval)}).then(function(){return P7(e)})}function FP(e,t){return!(e.uuid===t.uuid||t.eMIs.has(e.id)||e.data.time<t.messagesCallbackTime)}function F7(e){return e.closed||!e.messagesCallback?xd:IP(e.db,e.lastCursorId).then(function(t){var n=t.filter(function(r){return!!r}).map(function(r){return r.id>e.lastCursorId&&(e.lastCursorId=r.id),r}).filter(function(r){return FP(r,e)}).sort(function(r,o){return r.time-o.time});return n.forEach(function(r){e.messagesCallback&&(e.eMIs.add(r.id),e.messagesCallback(r.data))}),xd})}function jP(e){e.closed=!0,e.db.close()}function UP(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){return NP(e.db,e.uuid,t)}).then(function(){vP(0,10)===0&&LP(e)}),e.writeBlockPromise}function BP(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,F7(e)}function VP(){return!!L7()}function HP(e){return e.idb.fallbackInterval*2}var zP={create:PP,close:jP,onMessage:BP,postMessage:UP,canBeUsed:VP,type:AP,averageResponseTime:HP,microSeconds:RP},qP=j1,GP="pubkey.broadcastChannel-",$P="localstorage";function j7(){var e;if(typeof window>"u")return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return e}function U7(e){return GP+e}function QP(e,t){return new Promise(function(n){M7().then(function(){var r=U7(e.channelName),o={token:Z6(),time:Date.now(),data:t,uuid:e.uuid},s=JSON.stringify(o);j7().setItem(r,s);var l=document.createEvent("Event");l.initEvent("storage",!0,!0),l.key=r,l.newValue=s,window.dispatchEvent(l),n()})})}function WP(e,t){var n=U7(e),r=function(s){s.key===n&&t(JSON.parse(s.newValue))};return window.addEventListener("storage",r),r}function YP(e){window.removeEventListener("storage",e)}function KP(e,t){if(t=J6(t),!B7())throw new Error("BroadcastChannel: localstorage cannot be used");var n=Z6(),r=new D7(t.localstorage.removeTimeout),o={channelName:e,uuid:n,eMIs:r};return o.listener=WP(e,function(s){o.messagesCallback&&s.uuid!==n&&(!s.token||r.has(s.token)||s.data.time&&s.data.time<o.messagesCallbackTime||(r.add(s.token),o.messagesCallback(s.data)))}),o}function XP(e){YP(e.listener)}function ZP(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t}function B7(){var e=j7();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch{return!1}return!0}function JP(){var e=120,t=navigator.userAgent.toLowerCase();return t.includes("safari")&&!t.includes("chrome")?e*2:e}var eF={create:KP,close:XP,onMessage:ZP,postMessage:QP,canBeUsed:B7,type:$P,averageResponseTime:JP,microSeconds:qP},V7=j1,tF="simulate",tx=new Set;function nF(e){var t={time:V7(),name:e,messagesCallback:null};return tx.add(t),t}function rF(e){tx.delete(e)}var H7=5;function iF(e,t){return new Promise(function(n){return setTimeout(function(){var r=Array.from(tx);r.forEach(function(o){o.name===e.name&&o!==e&&o.messagesCallback&&o.time<t.time&&o.messagesCallback(t)}),n()},H7)})}function oF(e,t){e.messagesCallback=t}function aF(){return!0}function sF(){return H7}var lF={create:nF,close:rF,onMessage:oF,postMessage:iF,canBeUsed:aF,type:tF,averageResponseTime:sF,microSeconds:V7},_C=[CP,zP,eF];function uF(e){var t=[].concat(e.methods,_C).filter(Boolean);if(e.type){if(e.type==="simulate")return lF;var n=t.find(function(o){return o.type===e.type});if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(o){return o.type!=="idb"}));var r=t.find(function(o){return o.canBeUsed()});if(r)return r;throw new Error("No usable method found in "+JSON.stringify(_C.map(function(o){return o.type})))}var z7=new Set,cF=0,nx=function(t,n){this.id=cF++,z7.add(this),this.name=t,this.options=J6(n),this.method=uF(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,fF(this)};nx._pubkey=!0;nx.prototype={postMessage:function(t){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(t));return SC(this,"message",t)},postInternal:function(t){return SC(this,"internal",t)},set onmessage(e){var t=this.method.microSeconds(),n={time:t,fn:e};xC(this,"message",this._onML),e&&typeof e=="function"?(this._onML=n,EC(this,"message",n)):this._onML=null},addEventListener:function(t,n){var r=this.method.microSeconds(),o={time:r,fn:n};EC(this,t,o)},removeEventListener:function(t,n){var r=this._addEL[t].find(function(o){return o.fn===n});xC(this,t,r)},close:function(){var t=this;if(!this.closed){z7.delete(this),this.closed=!0;var n=this._prepP?this._prepP:xd;return this._onML=null,this._addEL.message=[],n.then(function(){return Promise.all(Array.from(t._uMP))}).then(function(){return Promise.all(t._befC.map(function(r){return r()}))}).then(function(){return t.method.close(t._state)})}}
16,get type(){return this.method.type},get isClosed(){return this.closed}};function SC(e,t,n){var r=e.method.microSeconds(),o={time:r,type:t,data:n},s=e._prepP?e._prepP:xd;return s.then(function(){var l=e.method.postMessage(e._state,o);return e._uMP.add(l),l.catch().then(function(){return e._uMP.delete(l)}),l})}function fF(e){var t=e.method.create(e.name,e.options);mP(t)?(e._prepP=t,t.then(function(n){e._state=n})):e._state=t}function q7(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function EC(e,t,n){e._addEL[t].push(n),dF(e)}function xC(e,t,n){e._addEL[t]=e._addEL[t].filter(function(r){return r!==n}),hF(e)}function dF(e){if(!e._iL&&q7(e)){var t=function(o){e._addEL[o.type].forEach(function(s){o.time>=s.time&&s.fn(o.data)})},n=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,n)}):(e._iL=!0,e.method.onMessage(e._state,t,n))}}function hF(e){if(e._iL&&!q7(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}var t3,wC;function pF(){return wC||(wC=1,t3=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[o]))return!1;for(o=r;o--!==0;){var l=s[o];if(!e(t[l],n[l]))return!1}return!0}return t!==t&&n!==n}),t3}var mF=pF();const vF=Da(mF),gF="sf_knit_v2",Co={lastPublishedMessage:null,latestNavData:null,onUpdateCallbacks:[],channel:null,listenerRegistered:!1};class yF{oldNavData;newNavData;constructor(t,n){this.oldNavData=t,this.newNavData=n}clientHasLoggedInOrOut(){return this.oldNavData&&!!this.oldNavData.client!=!!this.newNavData.client}clientIdChanged(){return this.oldNavData?.client?.id!==this.newNavData.client?.id}dataChanged(){return!vF(this.oldNavData,this.newNavData)}processable(){return this.oldNavData&&this.newNavData}}const G7={navDataUpdate:e=>{const t=new yF(Co.latestNavData,e);if(!t.processable())return;if(t.clientHasLoggedInOrOut()||t.clientIdChanged())Fn()?.location.reload();else if(t.dataChanged()){Co.latestNavData=e,Co.lastPublishedMessage=null;for(const r of Co.onUpdateCallbacks)r(e)}}},bF=e=>cP(hP(G7),e),$7=()=>(Co.channel||(Co.channel=new nx(gF)),Co.channel),_F=()=>{Co.listenerRegistered||($7().onmessage=e=>{const{handlerName:t,data:n}=JSON.parse(e);bF(t)&&G7[t](n)},Co.listenerRegistered=!0)},SF=(e,t)=>{const n=JSON.stringify({handlerName:e,data:t});Co.lastPublishedMessage!==n&&(Co.lastPublishedMessage=n,$7().postMessage(n))},EF=(e,{updateSelf:t=!1}={})=>{if(Co.latestNavData=e,SF("navDataUpdate",e),t)for(const n of Co.onUpdateCallbacks)n(e);_F()},xF=e=>({getAllocation:(n,r)=>{const o=n.find(f=>f.name===r),s=e.find(f=>f.name===r),l=o?.value||s?.fallbackValue;return l&&s?.expectedValues.includes(l)?l:null},configParamInputs:e}),{getAllocation:wF,configParamInputs:CF}=xF([{name:"algos.discovery_freestyle_shop",expectedValues:["control","treatment"],fallbackValue:"control"}]);var TE=function(e,t){return TE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},TE(e,t)};function La(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");TE(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ne=function(){return ne=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ne.apply(this,arguments)};function Ko(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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function fl(e,t,n,r){function o(s){return s instanceof n?s:new n(function(l){l(s)})}
16return new(n||(n=Promise))(function(s,l){function f(v){try{p(r.next(v))}catch(g){l(g)}}function m(v){try{p(r.throw(v))}catch(g){l(g)}}function p(v){v.done?s(v.value):o(v.value).then(f,m)}p((r=r.apply(e,t||[])).next())})}function dl(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=f(0),l.throw=f(1),l.return=f(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(p){return function(v){return m([p,v])}}function m(p){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,p[0]&&(n=0)),n;)try{if(r=1,o&&(s=p[0]&2?o.return:p[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,p[1])).done)return s;switch(o=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,o=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){n.label=p[1];break}if(p[0]===6&&n.label<s[1]){n.label=s[1],s=p;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(p);break}s[2]&&n.ops.pop(),n.trys.pop();continue}p=t.call(e,n)}catch(v){p=[6,v],o=0}finally{r=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}function gi(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var n3="Invariant Violation",CC=Object.setPrototypeOf,TF=CC===void 0?function(e,t){return e.__proto__=t,e}:CC,Q7=(function(e){La(t,e);function t(n){n===void 0&&(n=n3);var r=e.call(this,typeof n=="number"?n3+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=n3,TF(r,t.prototype),r}return t})(Error);function hd(e,t){if(!e)throw new Q7(t)}var W7=["debug","log","warn","error","silent"],RF=W7.indexOf("log");function Xy(e){return function(){if(W7.indexOf(e)>=RF){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=Xy("debug"),e.log=Xy("log"),e.warn=Xy("warn"),e.error=Xy("error")})(hd||(hd={}));var rx="3.13.8";function ms(e){try{return e()}catch{}}const RE=ms(function(){return globalThis})||ms(function(){return window})||ms(function(){return self})||ms(function(){return global})||ms(function(){return ms.constructor("return this")()});var TC=new Map;function OE(e){var t=TC.get(e)||1;return TC.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function Y7(e,t){t===void 0&&(t=0);var n=OE("stringifyForDisplay");return JSON.stringify(e,function(r,o){return o===void 0?n:o},t).split(JSON.stringify(n)).join("<undefined>")}function Zy(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(typeof t=="number"){var o=t;t=ix(o),t||(t=ox(o,n),n=[])}e.apply(void 0,[t].concat(n))}}var Fe=Object.assign(function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];t||hd(t,ix(n,r)||ox(n,r))},{debug:Zy(hd.debug),log:Zy(hd.log),warn:Zy(hd.warn),error:Zy(hd.error)});function lo(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Q7(ix(e,t)||ox(e,t))}var RC=Symbol.for("ApolloErrorMessageHandler_"+rx);function K7(e){if(typeof e=="string")return e;try{return Y7(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function ix(e,t){if(t===void 0&&(t=[]),!!e)return RE[RC]&&RE[RC](e,t.map(K7))}function ox(e,t){if(t===void 0&&(t=[]),!!e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:rx,message:e,args:t.map(K7)})))}function Db(e,t){if(!!!e)throw new Error(t)}function OF(e){return typeof e=="object"&&e!==null}function AF(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const kF=/\r\n|[\n\r]/g;function AE(e,t){let n=0,r=1;for(const o of e.body.matchAll(kF)){if(typeof o.index=="number"||AF(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}function NF(e){return X7(e.source,AE(e.source,e.start))}function X7(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,o=t.line-1,s=e.locationOffset.line-1,l=t.line+s,f=t.line===1?n:0,m=t.column+f,p=`${e.name}:${l}:${m} 17`,v=r.split(/\r\n|[\n\r]/g),g=v[o];if(g.length>120){const y=Math.floor(m/80),S=m%80,x=[];for(let w=0;w<g.length;w+=80)x.push(g.slice(w,w+80));return p+OC([[`${l} |`,x[0]],...x.slice(1,y+1).map(w=>["|",w]),["|","^".padStart(S)],["|",x[y+1]]])}return p+OC([[`${l-1} |`,v[o-1]],[`${l} |`,g],["|","^".padStart(m)],[`${l+1} |`,v[o+1]]])}function OC(e){const t=e.filter(([r,o])=>o!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,o])=>r.padStart(n)+(o?" "+o:"")).join(` 18`)}function IF(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}
18class ax extends Error{constructor(t,...n){var r,o,s;const{nodes:l,source:f,positions:m,path:p,originalError:v,extensions:g}=IF(n);super(t),this.name="GraphQLError",this.path=p??void 0,this.originalError=v??void 0,this.nodes=AC(Array.isArray(l)?l:l?[l]:void 0);const y=AC((r=this.nodes)===null||r===void 0?void 0:r.map(x=>x.loc).filter(x=>x!=null));this.source=f??(y==null||(o=y[0])===null||o===void 0?void 0:o.source),this.positions=m??y?.map(x=>x.start),this.locations=m&&f?m.map(x=>AE(f,x)):y?.map(x=>AE(x.source,x.start));const S=OF(v?.extensions)?v?.extensions:void 0;this.extensions=(s=g??S)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),v!=null&&v.stack?Object.defineProperty(this,"stack",{value:v.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,ax):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=` 19 20`+NF(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=` 21 22`+X7(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function AC(e){return e===void 0||e.length===0?void 0:e}function Wr(e,t,n){return new ax(`Syntax Error: ${n}`,{source:e,positions:[t]})}class MF{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Z7{constructor(t,n,r,o,s,l){this.kind=t,this.start=n,this.end=r,this.line=o,this.column=s,this.value=l,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const J7={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},DF=new Set(Object.keys(J7));function kC(e){const t=e?.kind;return typeof t=="string"&&DF.has(t)}var Ap;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Ap||(Ap={}));var kE;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"})(kE||(kE={}));var Ne;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="Str
22ingValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.DIRECTIVE_EXTENSION="DirectiveExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(Ne||(Ne={}));function NE(e){return e===9||e===32}function b1(e){return e>=48&&e<=57}function eT(e){return e>=97&&e<=122||e>=65&&e<=90}function tT(e){return eT(e)||e===95}function LF(e){return eT(e)||b1(e)||e===95}function PF(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let l=0;l<e.length;++l){var s;const f=e[l],m=FF(f);m!==f.length&&(r=(s=r)!==null&&s!==void 0?s:l,o=l,l!==0&&m<n&&(n=m))}return e.map((l,f)=>f===0?l:l.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,o+1)}function FF(e){let t=0;for(;t<e.length&&NE(e.charCodeAt(t));)++t;return t}function jF(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),o=r.length===1,s=r.length>1&&r.slice(1).every(S=>S.length===0||NE(S.charCodeAt(0))),l=n.endsWith('\\"""'),f=e.endsWith('"')&&!l,m=e.endsWith("\\"),p=f||m,v=!o||e.length>70||p||s||l;let g="";const y=o&&NE(e.charCodeAt(0));return(v&&!y||s)&&(g+=` 23`),g+=n,(v||p)&&(g+=` 24`),'"""'+g+'"""'}var Se;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(Se||(Se={}));class UF{constructor(t){const n=new Z7(Se.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==Se.EOF)do if(t.next)t=t.next;else{const n=VF(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===Se.COMMENT);return t}}function BF(e){return e===Se.BANG||e===Se.DOLLAR||e===Se.AMP||e===Se.PAREN_L||e===Se.PAREN_R||e===Se.DOT||e===Se.SPREAD||e===Se.COLON||e===Se.EQUALS||e===Se.AT||e===Se.BRACKET_L||e===Se.BRACKET_R||e===Se.BRACE_L||e===Se.PIPE||e===Se.BRACE_R}function vm(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function q_(e,t){return nT(e.charCodeAt(t))&&rT(e.charCodeAt(t+1))}function nT(e){return e>=55296&&e<=56319}function rT(e){return e>=56320&&e<=57343}function kd(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return Se.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Fr(e,t,n,r,o){const s=e.line,l=1+n-e.lineStart;return new Z7(t,n,r,s,l,o)}function VF(e,t){const n=e.source.body,r=n.length;let o=t;for(;o<r;){const s=n.charCodeAt(o);switch(s){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:n.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return HF(e,o);case 33:return Fr(e,Se.BANG,o,o+1);case 36:return Fr(e,Se.DOLLAR,o,o+1);case 38:return Fr(e,Se.AMP,o,o+1);case 40:return Fr(e,Se.PAREN_L,o,o+1);case 41:return Fr(e,Se.PAREN_R,o,o+1);
24case 46:if(n.charCodeAt(o+1)===46&&n.charCodeAt(o+2)===46)return Fr(e,Se.SPREAD,o,o+3);break;case 58:return Fr(e,Se.COLON,o,o+1);case 61:return Fr(e,Se.EQUALS,o,o+1);case 64:return Fr(e,Se.AT,o,o+1);case 91:return Fr(e,Se.BRACKET_L,o,o+1);case 93:return Fr(e,Se.BRACKET_R,o,o+1);case 123:return Fr(e,Se.BRACE_L,o,o+1);case 124:return Fr(e,Se.PIPE,o,o+1);case 125:return Fr(e,Se.BRACE_R,o,o+1);case 34:return n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34?WF(e,o):qF(e,o)}if(b1(s)||s===45)return zF(e,o,s);if(tT(s))return YF(e,o);throw Wr(e.source,o,s===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:vm(s)||q_(n,o)?`Unexpected character: ${kd(e,o)}.`:`Invalid character: ${kd(e,o)}.`)}return Fr(e,Se.EOF,r,r)}function HF(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){const s=n.charCodeAt(o);if(s===10||s===13)break;if(vm(s))++o;else if(q_(n,o))o+=2;else break}return Fr(e,Se.COMMENT,t,o,n.slice(t+1,o))}function zF(e,t,n){const r=e.source.body;let o=t,s=n,l=!1;if(s===45&&(s=r.charCodeAt(++o)),s===48){if(s=r.charCodeAt(++o),b1(s))throw Wr(e.source,o,`Invalid number, unexpected digit after 0: ${kd(e,o)}.`)}else o=r3(e,o,s),s=r.charCodeAt(o);if(s===46&&(l=!0,s=r.charCodeAt(++o),o=r3(e,o,s),s=r.charCodeAt(o)),(s===69||s===101)&&(l=!0,s=r.charCodeAt(++o),(s===43||s===45)&&(s=r.charCodeAt(++o)),o=r3(e,o,s),s=r.charCodeAt(o)),s===46||tT(s))throw Wr(e.source,o,`Invalid number, expected digit but got: ${kd(e,o)}.`);return Fr(e,l?Se.FLOAT:Se.INT,t,o,r.slice(t,o))}function r3(e,t,n){if(!b1(n))throw Wr(e.source,t,`Invalid number, expected digit but got: ${kd(e,t)}.`);const r=e.source.body;let o=t+1;for(;b1(r.charCodeAt(o));)++o;return o}function qF(e,t){const n=e.source.body,r=n.length;let o=t+1,s=o,l="";for(;o<r;){const f=n.charCodeAt(o);if(f===34)return l+=n.slice(s,o),Fr(e,Se.STRING,t,o+1,l);if(f===92){l+=n.slice(s,o);const m=n.charCodeAt(o+1)===117?n.charCodeAt(o+2)===123?GF(e,o):$F(e,o):QF(e,o);l+=m.value,o+=m.size,s=o;continue}if(f===10||f===13)break;if(vm(f))++o;else if(q_(n,o))o+=2;else throw Wr(e.source,o,`Invalid character within String: ${kd(e,o)}.`)}throw Wr(e.source,o,"Unterminated string.")}function GF(e,t){const n=e.source.body;let r=0,o=3;for(;o<12;){const s=n.charCodeAt(t+o++);if(s===125){if(o<5||!vm(r))break;return{value:String.fromCodePoint(r),size:o}}if(r=r<<4|Xv(s),r<0)break}throw Wr(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+o)}".`)}function $F(e,t){const n=e.source.body,r=NC(n,t+2);if(vm(r))return{value:String.fromCodePoint(r),size:6};if(nT(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const o=NC(n,t+8);if(rT(o))return{value:String.fromCodePoint(r,o),size:12}}throw Wr(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function NC(e,t){return Xv(e.charCodeAt(t))<<12|Xv(e.charCodeAt(t+1))<<8|Xv(e.charCodeAt(t+2))<<4|Xv(e.charCodeAt(t+3))}function Xv(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function QF(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` 25`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Wr(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function WF(e,t){const n=e.source.body,r=n.length;let o=e.lineStart,s=t+3,l=s,f="";const m=[];for(;s<r;){const p=n.charCodeAt(s);if(p===34&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34){f+=n.slice(l,s),m.push(f);const v=Fr(e,Se.BLOCK_STRING,t,s+3,PF(m).join(` 26`));return e.line+=m.length-1,e.lineStart=o,v}if(p===92&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34&&n.charCodeAt(s+3)===34){f+=n.slice(l,s),l=s+1,s+=4;continue}if(p===10||p===13){f+=n.slice(l,s),m.push(f),p===13&&n.charCodeAt(s+1)===10?s+=2:++s,f="",l=s,o=s;continue}if(vm(p))++s;else if(q_(n,s))s+=2;else throw Wr(e.source,s,`Invalid character within String: ${kd(e,s)}.`)}throw Wr(e.source,s,"Unterminated string.")}function YF(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){const s=n.charCodeAt(o);if(LF(s))++o;else break}return Fr(e,Se.NAME,t,o,n.slice(t,o))}const KF=10,iT=2;function sx(e){return G_(e,[])}function G_(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return XF(e,t);default:return String(e)}}function XF(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(ZF(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:G_(r,n)}else if(Array.isArray(e))return ej(e,n);return JF(e,n)}function ZF(e){return typeof e.toJSON=="function"}function JF(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>iT?"["+tj(e)+"]":"{ "+n.map(([o,s])=>o+": "+G_(s,t)).join(", ")+" }"}function ej(e,t){if(e.length===0)return"[]";if(t.length>iT)return"[Array]";const n=Math.min(KF,e.length),r=e.length-n,o=[];for(let s=0;s<n;++s)o.push(G_(e[s],t));return r===1?o.push("... 1 more item"):r>1&&o.push(`... ${r} more items`),"["+o.join(", ")+"]"}function tj(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const nj=globalThis.process&&!0,rj=nj?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;
26if(typeof t=="object"&&t!==null){var r;const o=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(o===s){const l=sx(t);throw new Error(`Cannot use ${o} "${l}" from another module or realm. 27 28Ensure that there is only one instance of "graphql" in the node_modules 29directory. If different versions of "graphql" are the dependencies of other 30relied on modules, use "resolutions" to ensure only one version is installed. 31 32https://yarnpkg.com/en/docs/selective-version-resolutions 33 34Duplicate "graphql" modules cannot be used at the same time since different 35versions may have different capabilities and behavior. The data from one 36version used in the function from another could produce confusing and 37spurious results.`)}}return!1};class oT{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||Db(!1,`Body must be a string. Received: ${sx(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Db(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Db(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function ij(e){return rj(e,oT)}function oj(e,t){const n=new aj(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}class aj{constructor(t,n={}){const{lexer:r,...o}=n;if(r)this._lexer=r;else{const s=ij(t)?t:new oT(t);this._lexer=new UF(s)}this._options=o,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(Se.NAME);return this.node(t,{kind:Ne.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:Ne.DOCUMENT,definitions:this.many(Se.SOF,this.parseDefinition,Se.EOF)})}parseDefinition(){if(this.peek(Se.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(t&&n.kind===Se.BRACE_L)throw Wr(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(n.kind===Se.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw Wr(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(n.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(Se.BRACE_L))return this.node(t,{kind:Ne.OPERATION_DEFINITION,operation:Ap.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseDescription(),r=this.parseOperationType();let o;return this.peek(Se.NAME)&&(o=this.parseName()),this.node(t,{kind:Ne.OPERATION_DEFINITION,operation:r,description:n,name:o,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(Se.NAME);switch(t.value){case"query":return Ap.QUERY;case"mutation":return Ap.MUTATION;case"subscription":return Ap.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Se.PAREN_L,this.parseVariableDefinition,Se.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Ne.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(Se.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Se.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(Se.DOLLAR),this.node(t,{kind:Ne.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Ne.
37SELECTION_SET,selections:this.many(Se.BRACE_L,this.parseSelection,Se.BRACE_R)})}parseSelection(){return this.peek(Se.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,o;return this.expectOptionalToken(Se.COLON)?(r=n,o=this.parseName()):o=n,this.node(t,{kind:Ne.FIELD,alias:r,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Se.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Se.PAREN_L,n,Se.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(Se.COLON),this.node(n,{kind:Ne.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(Se.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(Se.NAME)?this.node(t,{kind:Ne.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:Ne.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token,n=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:Ne.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Ne.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case Se.BRACKET_L:return this.parseList(t);case Se.BRACE_L:return this.parseObject(t);case Se.INT:return this.advanceLexer(),this.node(n,{kind:Ne.INT,value:n.value});case Se.FLOAT:return this.advanceLexer(),this.node(n,{kind:Ne.FLOAT,value:n.value});case Se.STRING:case Se.BLOCK_STRING:return this.parseStringLiteral();case Se.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:Ne.BOOLEAN,value:!0});case"false":return this.node(n,{kind:Ne.BOOLEAN,value:!1});case"null":return this.node(n,{kind:Ne.NULL});default:return this.node(n,{kind:Ne.ENUM,value:n.value})}case Se.DOLLAR:if(t)if(this.expectToken(Se.DOLLAR),this._lexer.token.kind===Se.NAME){const r=this._lexer.token.value;throw Wr(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:Ne.STRING,value:t.value,block:t.kind===Se.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:Ne.LIST,values:this.any(Se.BRACKET_L,n,Se.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:Ne.OBJECT,fields:this.any(Se.BRACE_L,n,Se.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(Se.COLON),this.node(n,{kind:Ne.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(Se.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(Se.AT),this.node(n,{kind:Ne.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(Se.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(Se.BRACKET_R),n=this.node(t,{kind:Ne.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Se.BANG)?this.node(t,{kind:Ne.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:Ne.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Se.STRING)||this.peek(Se.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),o=this.many(Se.BRACE_L,this.parseOperationTypeDefinition,Se.BRACE_R);
37return this.node(t,{kind:Ne.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:o})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(Se.COLON);const r=this.parseNamedType();return this.node(t,{kind:Ne.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:Ne.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:o})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(t,{kind:Ne.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:s,fields:l})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Se.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Se.BRACE_L,this.parseFieldDefinition,Se.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),o=this.parseArgumentDefs();this.expectToken(Se.COLON);const s=this.parseTypeReference(),l=this.parseConstDirectives();return this.node(t,{kind:Ne.FIELD_DEFINITION,description:n,name:r,arguments:o,type:s,directives:l})}parseArgumentDefs(){return this.optionalMany(Se.PAREN_L,this.parseInputValueDef,Se.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(Se.COLON);const o=this.parseTypeReference();let s;this.expectOptionalToken(Se.EQUALS)&&(s=this.parseConstValueLiteral());const l=this.parseConstDirectives();return this.node(t,{kind:Ne.INPUT_VALUE_DEFINITION,description:n,name:r,type:o,defaultValue:s,directives:l})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(t,{kind:Ne.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:o,directives:s,fields:l})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),o=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:Ne.UNION_TYPE_DEFINITION,description:n,name:r,directives:o,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(Se.EQUALS)?this.delimitedMany(Se.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),o=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:Ne.ENUM_TYPE_DEFINITION,description:n,name:r,directives:o,values:s})}parseEnumValuesDefinition(){return this.optionalMany(Se.BRACE_L,this.parseEnumValueDefinition,Se.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:Ne.ENUM_VALUE_DEFINITION,description:n,name:r,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Wr(this._lexer.source,this._lexer.token.start,`${Jy(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),o=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:Ne.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:o,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(Se.BRACE_L,this.parseInputValueDef,Se.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===Se.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.optionalMany(Se.BRACE_L,this.parseOperationTypeDefinition,Se.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();
37return this.node(t,{kind:Ne.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:Ne.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:Ne.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:s})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&o.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:Ne.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:o,fields:s})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Ne.UNION_TYPE_EXTENSION,name:n,directives:r,types:o})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Ne.ENUM_TYPE_EXTENSION,name:n,directives:r,values:o})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(r.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Ne.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:o})}parseDirectiveDefinitionExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(Se.AT);const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:Ne.DIRECTIVE_EXTENSION,name:n,directives:r})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Se.AT);const r=this.parseName(),o=this.parseArgumentDefs(),s=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],l=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const f=this.parseDirectiveLocations();return this.node(t,{kind:Ne.DIRECTIVE_DEFINITION,description:n,name:r,arguments:o,directives:s,repeatable:l,locations:f})}parseDirectiveLocations(){return this.delimitedMany(Se.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(kE,n.value))return n;throw this.unexpected(t)}parseSchemaCoordinate(){const t=this._lexer.token,n=this.expectOptionalToken(Se.AT),r=this.parseName();let o;!n&&this.expectOptionalToken(Se.DOT)&&(o=this.parseName());let s;return(n||o)&&this.expectOptionalToken(Se.PAREN_L)&&(s=this.parseName(),this.expectToken(Se.COLON),this.expectToken(Se.PAREN_R)),n?s?this.node(t,{kind:Ne.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:s}):this.node(t,{kind:Ne.DIRECTIVE_COORDINATE,name:r}):o?s?this.node(t,{kind:Ne.ARGUMENT_COORDINATE,name:r,fieldName:o,argumentName:s}):this.node(t,{kind:Ne.MEMBER_COORDINATE,name:r,memberName:o}):this.node(t,{kind:Ne.TYPE_COORDINATE,name:r})}node(t,n){return this._options.noLocation!==!0&&(n.loc=new MF(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Wr(this._lexer.source,n.start,`Expected ${aT(t)}, found ${Jy(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===Se.NAME&&n.value===t)this.advanceLexer();else throw Wr(this._lexer.source,n.start,`Expected "${t}", found ${Jy(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===Se.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return Wr(this._lexer.source,n.start,`Unexpected ${Jy(n)}.`)}any(t,n,r){this.expectToken(t);const o=[];for(;!this.expectOptionalToken(r);)o.push(n.call(this));return o}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}return[]}many(t,n,r){this.expectToken(t);const o=[];do o.push(n.call(this));while(!this.expectOptionalToken(r));return o}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==Se.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw Wr(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Jy(e){const t=e.value;return aT(e.kind)+(t!=null?` "${t}"`:"")}function aT(e){return BF(e)?`"${e}"`:e}function sj(e){return`"${e.replace(lj,uj)}"`}const lj=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function uj(e){return cj[e.charCodeAt(0)]}const cj=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],$_=Object.freeze({});function bs(e,t,n=J7){const r=new Map;for(const T of Object.values(Ne))r.set(T,fj(t,T));let o,s=Array.isArray(e),l=[e],f=-1,m=[],p=e,v,g;const y=[],S=[];do{f++;const T=f===l.length,I=T&&m.length!==0;if(T){if(v=S.length===0?void 0:y[y.length-1],p=g,g=S.pop(),I)if(s){p=p.slice();let L=0;for(const[H,M]of m){const j=H-L;M===null?(p.splice(j,1),L++):p[j]=M}}else{p={...p};for(const[L,H]of m)p[L]=H}f=o.index,l=o.keys,m=o.edits,s=o.inArray,o=o.prev}else if(g){if(v=s?f:l[f],p=g[v],p==null)continue;y.push(v)}let k;if(!Array.isArray(p)){var x,w;
37kC(p)||Db(!1,`Invalid AST Node: ${sx(p)}.`);const L=T?(x=r.get(p.kind))===null||x===void 0?void 0:x.leave:(w=r.get(p.kind))===null||w===void 0?void 0:w.enter;if(k=L?.call(t,p,v,g,y,S),k===$_)break;if(k===!1){if(!T){y.pop();continue}}else if(k!==void 0&&(m.push([v,k]),!T))if(kC(k))p=k;else{y.pop();continue}}if(k===void 0&&I&&m.push([v,p]),T)y.pop();else{var R;o={inArray:s,index:f,keys:l,edits:m,prev:o},s=Array.isArray(p),l=s?p:(R=n[p.kind])!==null&&R!==void 0?R:[],f=-1,m=[],g&&S.push(g),g=p}}while(o!==void 0);return m.length!==0?m[m.length-1][1]:e}function fj(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function dj(e){return bs(e,pj)}const hj=80,pj={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>je(e.definitions,` 38 39`)},OperationDefinition:{leave(e){const t=i3(e.variableDefinitions)?St(`( 40`,je(e.variableDefinitions,` 41`),` 42)`):St("(",je(e.variableDefinitions,", "),")"),n=St("",e.description,` 43`)+je([e.operation,je([e.name,t]),je(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:o})=>St("",o,` 44`)+e+": "+t+St(" = ",n)+St(" ",je(r," "))},SelectionSet:{leave:({selections:e})=>ds(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){const s=St("",e,": ")+t;let l=s+St("(",je(n,", "),")");return l.length>hj&&(l=s+St(`( 45`,Lb(je(n,` 46`)),` 47)`)),je([l,je(r," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+St(" ",je(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>je(["...",St("on ",e),je(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o,description:s})=>St("",s,` 48`)+`fragment ${e}${St("(",je(n,", "),")")} on ${t} ${St("",je(r," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?jF(e):sj(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+je(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+je(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+St("(",je(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>St("",e,` 49`)+je(["schema",je(t," "),ds(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>St("",e,` 50`)+je(["scalar",t,je(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>St("",e,` 51`)+je(["type",t,St("implements ",je(n," & ")),je(r," "),ds(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>St("",e,` 52`)+t+(i3(n)?St(`( 53`,Lb(je(n,` 54`)),` 55)`):St("(",je(n,", "),")"))+": "+r+St(" ",je(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>St("",e,` 56`)+je([t+": "+n,St("= ",r),je(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>St("",e,` 57`)+je(["interface",t,St("implements ",je(n," & ")),je(r," "),ds(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>St("",e,` 58`)+je(["union",t,je(n," "),St("= ",je(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>St("",e,` 59`)+je(["enum",t,je(n," "),ds(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>St("",e,` 60`)+je([t,je(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>St("",e,` 61`)+je(["input",t,je(n," "),ds(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,directives:r,repeatable:o,locations:s})=>St("",e,` 62`)+"directive @"+t+(i3(n)?St(`( 63`,Lb(je(n,` 64`)),` 65)`):St("(",je(n,", "),")"))+St(" ",je(r," "))+(o?" repeatable":"")+" on "+je(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>je(["extend schema",je(e," "),ds(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>je(["extend scalar",e,je(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>je(["extend type",e,St("implements ",je(t," & ")),je(n," "),ds(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>je(["extend interface",e,St("implements ",je(t," & ")),je(n," "),ds(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>je(["extend union",e,je(t," "),St("= ",je(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>je(["extend enum",e,je(t," "),ds(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>je(["extend input",e,je(t," "),ds(n)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>je(["extend directive @"+e,je(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>je([e,St(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>je([e,St(".",t),St("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>je(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>je(["@",e,St("(",t,":)")])}};function je(e,t=""){var n;return(n=e?.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function ds(e){return St(`{ 66`,Lb(je(e,` 67`)),` 68}`)}function St(e,t,n=""){return t!=null&&t!==""?e+t+n:""}
68function Lb(e){return St(" ",e.replace(/\n/g,` 69 `))}function i3(e){var t;return(t=e?.some(n=>n.includes(` 70`)))!==null&&t!==void 0?t:!1}function IC(e){return e.kind===Ne.FIELD||e.kind===Ne.FRAGMENT_SPREAD||e.kind===Ne.INLINE_FRAGMENT}function U1(e,t){var n=e.directives;return!n||!n.length?!0:gj(n).every(function(r){var o=r.directive,s=r.ifArgument,l=!1;return s.value.kind==="Variable"?(l=t&&t[s.value.name.value],Fe(l!==void 0,78,o.name.value)):l=s.value.value,o.name.value==="skip"?!l:l})}function _1(e,t,n){var r=new Set(e),o=r.size;return bs(t,{Directive:function(s){if(r.delete(s.name.value)&&(!n||!r.size))return $_}}),n?!r.size:r.size<o}function mj(e){return e&&_1(["client","export"],e,!0)}function vj(e){var t=e.name.value;return t==="skip"||t==="include"}function gj(e){var t=[];return e&&e.length&&e.forEach(function(n){if(vj(n)){var r=n.arguments,o=n.name.value;Fe(r&&r.length===1,79,o);var s=r[0];Fe(s.name&&s.name.value==="if",80,o);var l=s.value;Fe(l&&(l.kind==="Variable"||l.kind==="BooleanValue"),81,o),t.push({directive:n,ifArgument:s})}}),t}function yj(e){var t,n,r=(t=e.directives)===null||t===void 0?void 0:t.find(function(s){var l=s.name;return l.value==="unmask"});if(!r)return"mask";var o=(n=r.arguments)===null||n===void 0?void 0:n.find(function(s){var l=s.name;return l.value==="mode"});return globalThis.__DEV__!==!1&&o&&(o.value.kind===Ne.VARIABLE?globalThis.__DEV__!==!1&&Fe.warn(82):o.value.kind!==Ne.STRING?globalThis.__DEV__!==!1&&Fe.warn(83):o.value.value!=="migrate"&&globalThis.__DEV__!==!1&&Fe.warn(84,o.value.value)),o&&"value"in o.value&&o.value.value==="migrate"?"migrate":"unmask"}const bj=()=>Object.create(null),{forEach:_j,slice:MC}=Array.prototype,{hasOwnProperty:Sj}=Object.prototype;class wu{constructor(t=!0,n=bj){this.weakness=t,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(t){let n=this;return _j.call(t,r=>n=n.getChildTrie(r)),Sj.call(n,"data")?n.data:n.data=this.makeData(MC.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let n=this;for(let r=0,o=t.length;n&&r<o;++r){const s=n.mapFor(t[r],!1);n=s&&s.get(t[r])}return n&&n.data}remove(){return this.removeArray(arguments)}removeArray(t){let n;if(t.length){const r=t[0],o=this.mapFor(r,!1),s=o&&o.get(r);s&&(n=s.removeArray(MC.call(t,1)),!s.data&&!s.weak&&!(s.strong&&s.strong.size)&&o.delete(r))}else n=this.data,delete this.data;return n}getChildTrie(t){const n=this.mapFor(t,!0);let r=n.get(t);return r||n.set(t,r=new wu(this.weakness,this.makeData)),r}mapFor(t,n){return this.weakness&&Ej(t)?this.weak||(n?this.weak=new WeakMap:void 0):this.strong||(n?this.strong=new Map:void 0)}}function Ej(e){switch(typeof e){case"object":if(e===null)break;case"function":return!0}return!1}var sT=ms(function(){return navigator.product})=="ReactNative",Ud=typeof WeakMap=="function"&&!(sT&&!global.HermesInternal),lx=typeof WeakSet=="function",ux=typeof Symbol=="function"&&typeof Symbol.for=="function",Q_=ux&&Symbol.asyncIterator,lT=typeof ms(function(){return window.document.createElement})=="function",xj=ms(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,wj=(lT||sT)&&!xj;function _r(e){return e!==null&&typeof e=="object"}function Cj(e,t){var n=t,r=[];e.definitions.forEach(function(s){if(s.kind==="OperationDefinition")throw lo(85,s.operation,s.name?" named '".concat(s.name.value,"'"):"");s.kind==="FragmentDefinition"&&r.push(s)}),typeof n>"u"&&(Fe(r.length===1,86,r.length),n=r[0].name.value);var o=ne(ne({},e),{definitions:gi([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)});return o}function gm(e){e===void 0&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function W_(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var n=e.name.value;if(typeof t=="function")return t(n);var r=t&&t[n];return Fe(r,87,n),r||null}default:return null}}function Tj(e){var t=!0;return bs(e,{FragmentSpread:function(n){if(t=!!n.directives&&n.directives.some(function(r){return r.name.value==="unmask"}),!t)return $_}}),t}function Rj(){}class IE{constructor(t=1/0,n=Rj){this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}get size(){return this.map.size}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:o}=n;o&&(o.older=r),r&&(r.newer=o),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=o)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const n=this.map.get(t);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0):!1}}function ME(){}const Oj=ME,Aj=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}}
70,kj=typeof WeakMap<"u"?WeakMap:Map,Nj=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:ME,unregister:ME}},Ij=10024;class o_{constructor(t=1/0,n=Oj){this.max=t,this.dispose=n,this.map=new kj,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const r=this.unfinalizedNodes.values();for(let o=0;o<Ij;o++){const s=r.next().value;if(!s)break;this.unfinalizedNodes.delete(s);const l=s.key;delete s.key,s.keyRef=new Aj(l),this.registry.register(l,s,s)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Nj(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:o}=n;o&&(o.older=r),r&&(r.newer=o),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=o)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(t,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(t){t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.size--;const n=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,n),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),n&&this.map.delete(n)}delete(t){const n=this.map.get(t);return n?(this.deleteNode(n),!0):!1}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var o3=new WeakSet;function uT(e){e.size<=(e.max||-1)||o3.has(e)||(o3.add(e),setTimeout(function(){e.clean(),o3.delete(e)},100))}var Y_=function(e,t){var n=new o_(e,t);return n.set=function(r,o){var s=o_.prototype.set.call(this,r,o);return uT(this),s},n},Mj=function(e,t){var n=new IE(e,t);return n.set=function(r,o){var s=IE.prototype.set.call(this,r,o);return uT(this),s},n},Dj=Symbol.for("apollo.cacheSize"),_s=ne({},RE[Dj]),cd={};function cx(e,t){cd[e]=t}var Lj=globalThis.__DEV__!==!1?Uj:void 0,Pj=globalThis.__DEV__!==!1?Bj:void 0,Fj=globalThis.__DEV__!==!1?cT:void 0;function jj(){var e={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(e).map(function(t){var n=t[0],r=t[1];return[n,_s[n]||r]}))}function Uj(){var e,t,n,r,o;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:jj(),sizes:ne({print:(e=cd.print)===null||e===void 0?void 0:e.call(cd),parser:(t=cd.parser)===null||t===void 0?void 0:t.call(cd),canonicalStringify:(n=cd.canonicalStringify)===null||n===void 0?void 0:n.call(cd),links:LE(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:dT(this.queryManager.documentTransform)}},(o=(r=this.cache).getMemoryInternals)===null||o===void 0?void 0:o.call(r))}}function cT(){return{cache:{fragmentQueryDocuments:Rc(this.getFragmentDoc)}}}function Bj(){var e=this.config.fragments;return ne(ne({},cT.apply(this)),{addTypenameDocumentTransform:dT(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Rc(this.storeReader.executeSelectionSet),executeSubSelectedArray:Rc(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Rc(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Rc(e?.findFragmentSpreads),lookup:Rc(e?.lookup),transform:Rc(e?.transform)}})}function Vj(e){return!!e&&"dirtyKey"in e}function Rc(e){return Vj(e)?e.size:void 0}function fT(e){return e!=null}function dT(e){return DE(e).map(function(t){return{cache:t}})}function DE(e){return e?gi(gi([Rc(e?.performWork)],DE(e?.left),!0),DE(e?.right),!0).filter(fT):[]}function LE(e){var t;return e?gi(gi([(t=e?.getMemoryInternals)===null||t===void 0?void 0:t.call(e)],LE(e?.left),!0),LE(e?.right),!0).filter(fT):[]}var Mc=Object.assign(function(t){return JSON.stringify(t,Hj)},{reset:function(){kp=new Mj(_s.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&cx("canonicalStringify",function(){return kp.size});var kp;Mc.reset();function Hj(e,t){if(t&&typeof t=="object"){var n=Object.getPrototypeOf(t);if(n===Object.prototype||n===null){var r=Object.keys(t);if(r.every(zj))return t;var o=JSON.stringify(r),s=kp.get(o);if(!s){r.sort();var l=JSON.stringify(r);s=kp.get(l)||r,kp.set(o,s),kp.set(l,s)}var f=Object.create(n);
70return s.forEach(function(m){f[m]=t[m]}),f}}return t}function zj(e,t,n){return t===0||n[t-1]<=e}function Fp(e){return{__ref:String(e)}}function wn(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function qj(e){return _r(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function Gj(e){return e.kind==="StringValue"}function $j(e){return e.kind==="BooleanValue"}function Qj(e){return e.kind==="IntValue"}function Wj(e){return e.kind==="FloatValue"}function Yj(e){return e.kind==="Variable"}function Kj(e){return e.kind==="ObjectValue"}function Xj(e){return e.kind==="ListValue"}function Zj(e){return e.kind==="EnumValue"}function Jj(e){return e.kind==="NullValue"}function em(e,t,n,r){if(Qj(n)||Wj(n))e[t.value]=Number(n.value);else if($j(n)||Gj(n))e[t.value]=n.value;else if(Kj(n)){var o={};n.fields.map(function(l){return em(o,l.name,l.value,r)}),e[t.value]=o}else if(Yj(n)){var s=(r||{})[n.name.value];e[t.value]=s}else if(Xj(n))e[t.value]=n.values.map(function(l){var f={};return em(f,t,l,r),f[t.value]});else if(Zj(n))e[t.value]=n.value;else if(Jj(n))e[t.value]=null;else throw lo(96,t.value,n.kind)}function eU(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(o){n[o.name.value]={},o.arguments&&o.arguments.forEach(function(s){var l=s.name,f=s.value;return em(n[o.name.value],l,f,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(o){var s=o.name,l=o.value;return em(r,s,l,t)})),hT(e.name.value,r,n)}var tU=["connection","include","skip","client","rest","export","nonreactive"],Dv=Mc,hT=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o={};return r.forEach(function(f){o[f]=t[f]}),"".concat(n.connection.key,"(").concat(Dv(o),")")}else return n.connection.key;var s=e;if(t){var l=Dv(t);s+="(".concat(l,")")}return n&&Object.keys(n).forEach(function(f){tU.indexOf(f)===-1&&(n[f]&&Object.keys(n[f]).length?s+="@".concat(f,"(").concat(Dv(n[f]),")"):s+="@".concat(f))}),s},{setStringify:function(e){var t=Dv;return Dv=e,t}});function K_(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){var o=r.name,s=r.value;return em(n,o,s,t)}),n}return null}function _u(e){return e.alias?e.alias.value:e.name.value}function PE(e,t,n){for(var r,o=0,s=t.selections;o<s.length;o++){var l=s[o];if(Bc(l)){if(l.name.value==="__typename")return e[_u(l)]}else r?r.push(l):r=[l]}if(typeof e.__typename=="string")return e.__typename;if(r)for(var f=0,m=r;f<m.length;f++){var l=m[f],p=PE(e,W_(l,n).selectionSet,n);if(typeof p=="string")return p}}function Bc(e){return e.kind==="Field"}function nU(e){return e.kind==="InlineFragment"}function ym(e){Fe(e&&e.kind==="Document",88);var t=e.definitions.filter(function(n){return n.kind!=="FragmentDefinition"}).map(function(n){if(n.kind!=="OperationDefinition")throw lo(89,n.kind);return n});return Fe(t.length<=1,90,t.length),e}function Nd(e){return ym(e),e.definitions.filter(function(t){return t.kind==="OperationDefinition"})[0]}function Zv(e){return e.definitions.filter(function(t){return t.kind==="OperationDefinition"&&!!t.name}).map(function(t){return t.name.value})[0]||null}function bm(e){return e.definitions.filter(function(t){return t.kind==="FragmentDefinition"})}function pT(e){var t=Nd(e);return Fe(t&&t.operation==="query",91),t}function mT(e){Fe(e.kind==="Document",92),Fe(e.definitions.length<=1,93);var t=e.definitions[0];return Fe(t.kind==="FragmentDefinition",94),t}function B1(e){ym(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var o=r[n];if(o.kind==="OperationDefinition"){var s=o.operation;if(s==="query"||s==="mutation"||s==="subscription")return o}o.kind==="FragmentDefinition"&&!t&&(t=o)}if(t)return t;throw lo(95)}function fx(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(r){r.defaultValue&&em(t,r.variable.name,r.defaultValue)}),t}let mi=null;const DC={};let rU=1;const iU=()=>class{constructor(){this.id=["slot",rU++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=mi;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===DC)break;return t!==mi&&(mi.slots[this.id]=n),!0}return mi&&(mi.slots[this.id]=DC),!1}getValue(){if(this.hasValue())return mi.slots[this.id]}withValue(t,n,r,o){const s={__proto__:null,[this.id]:t},l=mi;mi={parent:l,slots:s};try{return n.apply(o,r)}finally{mi=l}}static bind(t){const n=mi;return function(){const r=mi;try{return mi=n,t.apply(this,arguments)}finally{mi=r}}}static noContext(t,n,r){if(mi){const o=mi;try{return mi=null,t.apply(r,n)}finally{mi=o}}else return t.apply(r,n)}};function LC(e){try{return e()}catch{}}const a3="@wry/context:Slot",oU=LC(()=>globalThis)||LC(()=>global)||Object.create(null),PC=oU,V1=PC[a3]||Array[a3]||(function(e){try{Object.defineProperty(PC,a3,{value:e,enumerable:!1,writable:!1,
70configurable:!0})}finally{return e}})(iU()),{bind:Fle,noContext:jle}=V1,X_=new V1,{hasOwnProperty:aU}=Object.prototype,dx=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function hx(e){const{unsubscribe:t}=e;typeof t=="function"&&(e.unsubscribe=void 0,t())}const S1=[],sU=100;function tm(e,t){if(!e)throw new Error(t||"assertion failure")}function vT(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function gT(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function yT(e){return e.slice(0)}class Z_{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Z_.count}peek(){if(this.value.length===1&&!Vc(this))return FC(this),this.value[0]}recompute(t){return tm(!this.recomputing,"already recomputing"),FC(this),Vc(this)?lU(this,t):gT(this.value)}setDirty(){this.dirty||(this.dirty=!0,bT(this),hx(this))}dispose(){this.setDirty(),wT(this),px(this,(t,n)=>{t.setDirty(),CT(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=S1.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(dx(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),S1.push(this.deps),this.deps=null)}}Z_.count=0;function FC(e){const t=X_.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Vc(e)?ST(t,e):ET(t,e),t}function lU(e,t){return wT(e),X_.withValue(e,uU,[e,t]),fU(e,t)&&cU(e),gT(e.value)}function uU(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&e.value.length===1&&(r=yT(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!vT(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(o){e.value[1]=o}e.recomputing=!1}function Vc(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function cU(e){e.dirty=!1,!Vc(e)&&_T(e)}function bT(e){px(e,ST)}function _T(e){px(e,ET)}function px(e,t){const n=e.parents.size;if(n){const r=dx(e.parents);for(let o=0;o<n;++o)t(r[o],e)}}function ST(e,t){tm(e.childValues.has(t)),tm(Vc(t));const n=!Vc(e);if(!e.dirtyChildren)e.dirtyChildren=S1.pop()||new Set;else if(e.dirtyChildren.has(t))return;e.dirtyChildren.add(t),n&&bT(e)}function ET(e,t){tm(e.childValues.has(t)),tm(!Vc(t));const n=e.childValues.get(t);n.length===0?e.childValues.set(t,yT(t.value)):vT(n,t.value)||e.setDirty(),xT(e,t),!Vc(e)&&_T(e)}function xT(e,t){const n=e.dirtyChildren;n&&(n.delete(t),n.size===0&&(S1.length<sU&&S1.push(n),e.dirtyChildren=null))}function wT(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{CT(e,n)}),e.forgetDeps(),tm(e.dirtyChildren===null)}function CT(e,t){t.parents.delete(e),e.childValues.delete(t),xT(e,t)}function fU(e,t){if(typeof e.subscribe=="function")try{hx(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}const dU={setDirty:!0,dispose:!0,forget:!0};function TT(e){const t=new Map;function n(r){const o=X_.getValue();if(o){let s=t.get(r);s||t.set(r,s=new Set),o.dependOn(s)}}return n.dirty=function(o,s){const l=t.get(o);if(l){const f=s&&aU.call(dU,s)?s:"setDirty";dx(l).forEach(m=>m[f]()),t.delete(o),hx(l)}},n}let jC;function hU(...e){return(jC||(jC=new wu(typeof WeakMap=="function"))).lookupArray(e)}const s3=new Set;function E1(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=hU,normalizeResult:o,subscribe:s,cache:l=IE}=Object.create(null)){const f=typeof l=="function"?new l(t,y=>y.dispose()):l,m=function(){const y=r.apply(null,n?n.apply(null,arguments):arguments);if(y===void 0)return e.apply(null,arguments);let S=f.get(y);S||(f.set(y,S=new Z_(e)),S.normalizeResult=o,S.subscribe=s,S.forget=()=>f.delete(y));const x=S.recompute(Array.prototype.slice.call(arguments));return f.set(y,S),s3.add(f),X_.hasValue()||(s3.forEach(w=>w.clean()),s3.clear()),x};Object.defineProperty(m,"size",{get:()=>f.size,configurable:!1,enumerable:!1}),Object.freeze(m.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:o,subscribe:s,cache:f});function p(y){const S=y&&f.get(y);S&&S.setDirty()}m.dirtyKey=p,m.dirty=function(){p(r.apply(null,arguments))};function v(y){const S=y&&f.get(y);if(S)return S.peek()}m.peekKey=v,m.peek=function(){return v(r.apply(null,arguments))};function g(y){return y?f.delete(y):!1}return m.forgetKey=g,m.forget=function(){return g(r.apply(null,arguments))},m.makeCacheKey=r,m.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(m)}function pU(e){return e}var RT=(function(){function e(t,n){n===void 0&&(n=Object.create(null)),this.resultCache=lx?new WeakSet:new Set,this.transform=t,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=n.cache!==!1,this.resetCache()}return e.prototype.getCacheKey=function(t){return[t]},e.identity=function(){return new e(pU,{cache:!1})},e.split=function(t,n,r){return r===void 0&&(r=e.identity()),Object.assign(new e(function(o){var s=t(o)?n:r;return s.transformDocument(o)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new wu(Ud);this.performWork=E1(e.prototype.performWork.bind(this),{makeCacheKey:function(r){var o=t.getCacheKey(r);if(o)return Fe(Array.isArray(o),77),n.lookupArray(o)},max:_s["documentTransform.cache"],cache:o_})}},e.prototype.performWork=function(t){return ym(t),this.transform(t)},e.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var n=this.performWork(t);return this.resultCache.add(n),n},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(r){return t.transformDocument(n.transformDocument(r))},{cache:!1}),{left:this,right:t})},e})(),s1,Ac=Object.assign(function(e){var t=s1.get(e);return t||(t=dj(e),s1.set(e,t)),t},{reset:function(){s1=new Y_(_s.print||2e3)}});Ac.reset();globalThis.__DEV__!==!1&&cx("print",function(){return s1?s1.size:0});var Sr=Array.isArray;function Mi(e){return Array.isArray(e)&&e.length>0}var UC={kind:Ne.FIELD,name:{kind:Ne.NAME,value:"__typename"}};function OT(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===Ne.FRAGMENT_SPREAD&&OT(t[n.name.value],t)})}
70function mU(e){return OT(Nd(e)||mT(e),gm(bm(e)))?null:e}function vU(e){var t=new Map,n=new Map;return e.forEach(function(r){r&&(r.name?t.set(r.name,r):r.test&&n.set(r.test,r))}),function(r){var o=t.get(r.name.value);return!o&&n.size&&n.forEach(function(s,l){l(r)&&(o=s)}),o}}function BC(e){var t=new Map;return function(r){r===void 0&&(r=e);var o=t.get(r);return o||t.set(r,o={variables:new Set,fragmentSpreads:new Set}),o}}function AT(e,t){ym(t);for(var n=BC(""),r=BC(""),o=function(T){for(var I=0,k=void 0;I<T.length&&(k=T[I]);++I)if(!Sr(k)){if(k.kind===Ne.OPERATION_DEFINITION)return n(k.name&&k.name.value);if(k.kind===Ne.FRAGMENT_DEFINITION)return r(k.name.value)}return globalThis.__DEV__!==!1&&Fe.error(97),null},s=0,l=t.definitions.length-1;l>=0;--l)t.definitions[l].kind===Ne.OPERATION_DEFINITION&&++s;var f=vU(e),m=function(T){return Mi(T)&&T.map(f).some(function(I){return I&&I.remove})},p=new Map,v=!1,g={enter:function(T){if(m(T.directives))return v=!0,null}},y=bs(t,{Field:g,InlineFragment:g,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(T,I,k,L,H){var M=o(H);M&&M.variables.add(T.name.value)}},FragmentSpread:{enter:function(T,I,k,L,H){if(m(T.directives))return v=!0,null;var M=o(H);M&&M.fragmentSpreads.add(T.name.value)}},FragmentDefinition:{enter:function(T,I,k,L){p.set(JSON.stringify(L),T)},leave:function(T,I,k,L){var H=p.get(JSON.stringify(L));if(T===H)return T;if(s>0&&T.selectionSet.selections.every(function(M){return M.kind===Ne.FIELD&&M.name.value==="__typename"}))return r(T.name.value).removed=!0,v=!0,null}},Directive:{leave:function(T){if(f(T))return v=!0,null}}});if(!v)return t;var S=function(T){return T.transitiveVars||(T.transitiveVars=new Set(T.variables),T.removed||T.fragmentSpreads.forEach(function(I){S(r(I)).transitiveVars.forEach(function(k){T.transitiveVars.add(k)})})),T},x=new Set;y.definitions.forEach(function(T){T.kind===Ne.OPERATION_DEFINITION?S(n(T.name&&T.name.value)).fragmentSpreads.forEach(function(I){x.add(I)}):T.kind===Ne.FRAGMENT_DEFINITION&&s===0&&!r(T.name.value).removed&&x.add(T.name.value)}),x.forEach(function(T){S(r(T)).fragmentSpreads.forEach(function(I){x.add(I)})});var w=function(T){return!!(!x.has(T)||r(T).removed)},R={enter:function(T){if(w(T.name.value))return null}};return mU(bs(y,{FragmentSpread:R,FragmentDefinition:R,OperationDefinition:{leave:function(T){if(T.variableDefinitions){var I=S(n(T.name&&T.name.value)).transitiveVars;if(I.size<T.variableDefinitions.length)return ne(ne({},T),{variableDefinitions:T.variableDefinitions.filter(function(k){return I.has(k.variable.name.value)})})}}}}))}var mx=Object.assign(function(e){return bs(e,{SelectionSet:{enter:function(t,n,r){if(!(r&&r.kind===Ne.OPERATION_DEFINITION)){var o=t.selections;if(o){var s=o.some(function(f){return Bc(f)&&(f.name.value==="__typename"||f.name.value.lastIndexOf("__",0)===0)});if(!s){var l=r;if(!(Bc(l)&&l.directives&&l.directives.some(function(f){return f.name.value==="export"})))return ne(ne({},t),{selections:gi(gi([],o,!0),[UC],!1)})}}}}}})},{added:function(e){return e===UC}});function gU(e){var t=B1(e),n=t.operation;if(n==="query")return e;var r=bs(e,{OperationDefinition:{enter:function(o){return ne(ne({},o),{operation:"query"})}}});return r}function kT(e){ym(e);var t=AT([{test:function(n){return n.name.value==="client"},remove:!0}],e);return t}function yU(e){return ym(e),bs(e,{FragmentSpread:function(t){var n;if(!(!((n=t.directives)===null||n===void 0)&&n.some(function(r){return r.name.value==="unmask"})))return ne(ne({},t),{directives:gi(gi([],t.directives||[],!0),[{kind:Ne.DIRECTIVE,name:{kind:Ne.NAME,value:"nonreactive"}}
70],!1)})}})}var bU=Object.prototype.hasOwnProperty;function VC(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return J_(e)}function J_(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Hc,o=1;o<n;++o)t=r.merge(t,e[o]);return t}var _U=function(e,t,n){return this.merge(e[n],t[n])},Hc=(function(){function e(t){t===void 0&&(t=_U),this.reconciler=t,this.isObject=_r,this.pastCopies=new Set}return e.prototype.merge=function(t,n){for(var r=this,o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];return _r(n)&&_r(t)?(Object.keys(n).forEach(function(l){if(bU.call(t,l)){var f=t[l];if(n[l]!==f){var m=r.reconciler.apply(r,gi([t,n,l],o,!1));m!==f&&(t=r.shallowCopyForMerge(t),t[l]=m)}}else t=r.shallowCopyForMerge(t),t[l]=n[l]}),t):n},e.prototype.shallowCopyForMerge=function(t){return _r(t)&&(this.pastCopies.has(t)||(Array.isArray(t)?t=t.slice(0):t=ne({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},e})();function SU(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=EU(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 71In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EU(e,t){if(e){if(typeof e=="string")return HC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HC(e,t)}}function HC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vx(e,t,n){return t&&zC(e.prototype,t),n&&zC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var gx=function(){return typeof Symbol=="function"},yx=function(e){return gx()&&!!Symbol[e]},bx=function(e){return yx(e)?Symbol[e]:"@@"+e};gx()&&!yx("observable")&&(Symbol.observable=Symbol("observable"));var xU=bx("iterator"),FE=bx("observable"),NT=bx("species");function a_(e,t){var n=e[t];if(n!=null){if(typeof n!="function")throw new TypeError(n+" is not a function");return n}}function Lv(e){var t=e.constructor;return t!==void 0&&(t=t[NT],t===null&&(t=void 0)),t!==void 0?t:An}function wU(e){return e instanceof An}function nm(e){nm.log?nm.log(e):setTimeout(function(){throw e})}function Pb(e){Promise.resolve().then(function(){try{e()}catch(t){nm(t)}})}function IT(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,!!t))try{if(typeof t=="function")t();else{var n=a_(t,"unsubscribe");n&&n.call(t)}}catch(r){nm(r)}}function jE(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function CU(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(MT(e,t[n].type,t[n].value),e._state!=="closed");++n);}}function MT(e,t,n){e._state="running";var r=e._observer;try{var o=a_(r,t);switch(t){case"next":o&&o.call(r,n);break;case"error":if(jE(e),o)o.call(r,n);else throw n;break;case"complete":jE(e),o&&o.call(r);break}}catch(s){nm(s)}e._state==="closed"?IT(e):e._state==="running"&&(e._state="ready")}function l3(e,t,n){if(e._state!=="closed"){if(e._state==="buffering"){e._queue.push({type:t,value:n});return}if(e._state!=="ready"){e._state="buffering",e._queue=[{type:t,value:n}],Pb(function(){return CU(e)});return}MT(e,t,n)}}var TU=(function(){function e(n,r){this._cleanup=void 0,this._observer=n,this._queue=void 0,this._state="initializing";var o=new RU(this);try{this._cleanup=r.call(void 0,o)}catch(s){o.error(s)}this._state==="initializing"&&(this._state="ready")}var t=e.prototype;return t.unsubscribe=function(){this._state!=="closed"&&(jE(this),IT(this))},vx(e,[{key:"closed",get:function(){return this._state==="closed"}}]),e})(),RU=(function(){function e(n){this._subscription=n}var t=e.prototype;return t.next=function(r){l3(this._subscription,"next",r)},t.error=function(r){l3(this._subscription,"error",r)},t.complete=function(){l3(this._subscription,"complete")},vx(e,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),e})(),An=(function(){function e(n){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if(typeof n!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=n}var t=e.prototype;return t.subscribe=function(r){return(typeof r!="object"||r===null)&&(r={next:r,error:arguments[1],complete:arguments[2]}),new TU(r,this._subscriber)},t.forEach=function(r){var o=this;return new Promise(function(s,l){if(typeof r!="function"){l(new TypeError(r+" is not a function"));return}function f(){m.unsubscribe(),s()}var m=o.subscribe({next:function(p){try{r(p,f)}catch(v){l(v),m.unsubscribe()}},error:l,complete:s})})},t.map=function(r){var o=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Lv(this);return new s(function(l){return o.subscribe({next:function(f){try{f=r(f)}catch(m){return l.error(m)}l.next(f)},error:function(f){l.error(f)},complete:function(){l.complete()}})})},t.filter=function(r){var o=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Lv(this);return new s(function(l){return o.subscribe({next:function(f){try{if(!r(f))return}catch(m){return l.error(m)}l.next(f)},error:function(f){l.error(f)},complete:function(){l.complete()}})})},t.reduce=function(r){var o=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Lv(this),l=arguments.length>1,f=!1,m=arguments[1],p=m;return new s(function(v){return o.subscribe({next:function(g){var y=!f;if(f=!0,!y||l)try{p=r(p,g)}catch(S){return v.error(S)}else p=g},error:function(g){v.error(g)},complete:function(){if(!f&&!l)return v.error(new TypeError("Cannot reduce an empty sequence"));v.next(p),v.complete()}})})},t.concat=function(){for(var r=this,o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];var f=Lv(this);return new f(function(m){var p,v=0;function g(y){p=y.subscribe({next:function(S){m.next(S)},error:function(S){m.error(S)},complete:function(){v===s.length?(p=void 0,m.complete()):g(f.from(s[v++]))}})}return g(r),function(){p&&(p.unsubscribe(),p=void 0)}})},t.flatMap=function(r){var o=this;if(typeof r!="function")throw new TypeError(r+" is not a function");var s=Lv(this);return new s(function(l){var f=[],m=o.subscribe({next:function(v){if(r)try{v=r(v)}catch(y){return l.error(y)}var g=s.from(v).subscribe({next:function(y){l.next(y)},error:function(y){l.error(y)},complete:function(){var y=f.indexOf(g);y>=0&&f.splice(y,1),p()}});f.push(g)},error:function(v){l.error(v)},complete:function(){p()}});function p(){m.closed&&f.length===0&&l.complete()}return function(){f.forEach(function(v){return v.unsubscribe()}),m.unsubscribe()}})},t[FE]=function(){return this},e.from=function(r){var o=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var s=a_(r,FE);if(s){var l=s.call(r);if(Object(l)!==l)throw new TypeError(l+" is not an object");return wU(l)&&l.constructor===o?l:new o(function(f){return l.subscribe(f)})}
71if(yx("iterator")&&(s=a_(r,xU),s))return new o(function(f){Pb(function(){if(!f.closed){for(var m=SU(s.call(r)),p;!(p=m()).done;){var v=p.value;if(f.next(v),f.closed)return}f.complete()}})});if(Array.isArray(r))return new o(function(f){Pb(function(){if(!f.closed){for(var m=0;m<r.length;++m)if(f.next(r[m]),f.closed)return;f.complete()}})});throw new TypeError(r+" is not observable")},e.of=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var l=typeof this=="function"?this:e;return new l(function(f){Pb(function(){if(!f.closed){for(var m=0;m<o.length;++m)if(f.next(o[m]),f.closed)return;f.complete()}})})},vx(e,null,[{key:NT,get:function(){return this}}]),e})();gx()&&Object.defineProperty(An,Symbol("extensions"),{value:{symbol:FE,hostReportError:nm},configurable:!0});function OU(e){var t,n=e.Symbol;if(typeof n=="function")if(n.observable)t=n.observable;else{typeof n.for=="function"?t=n.for("https://github.com/benlesh/symbol-observable"):t=n("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch{}}else t="@@observable";return t}var Sp;typeof self<"u"?Sp=self:typeof window<"u"?Sp=window:typeof global<"u"?Sp=global:typeof module<"u"?Sp=module:Sp=Function("return this")();OU(Sp);var qC=An.prototype,GC="@@observable";qC[GC]||(qC[GC]=function(){return this});function AU(e){return e.catch(function(){}),e}var kU=Object.prototype.toString;function DT(e){return UE(e)}function UE(e,t){switch(kU.call(e)){case"[object Array]":{if(t=t||new Map,t.has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(o,s){n[s]=UE(o,t)}),n}case"[object Object]":{if(t=t||new Map,t.has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(o){r[o]=UE(e[o],t)}),r}default:return e}}function NU(e){var t=new Set([e]);return t.forEach(function(n){_r(n)&&IU(n)===n&&Object.getOwnPropertyNames(n).forEach(function(r){_r(n[r])&&t.add(n[r])})}),e}function IU(e){if(globalThis.__DEV__!==!1&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}function rm(e){return globalThis.__DEV__!==!1&&NU(e),e}function l1(e,t,n){var r=[];e.forEach(function(o){return o[t]&&r.push(o)}),r.forEach(function(o){return o[t](n)})}function u3(e,t,n){return new An(function(r){var o={then:function(m){return new Promise(function(p){return p(m())})}};function s(m,p){return function(v){if(m){var g=function(){return r.closed?0:m(v)};o=o.then(g,g).then(function(y){return r.next(y)},function(y){return r.error(y)})}else r[p](v)}}var l={next:s(t,"next"),error:s(n,"error"),complete:function(){o.then(function(){return r.complete()})}},f=e.subscribe(l);return function(){return f.unsubscribe()}})}function LT(e){function t(n){Object.defineProperty(e,n,{value:An})}return ux&&Symbol.species&&t(Symbol.species),t("@@species"),e}function $C(e){return e&&typeof e.then=="function"}var Ep=(function(e){La(t,e);function t(n){var r=e.call(this,function(o){return r.addObserver(o),function(){return r.removeObserver(o)}})||this;return r.observers=new Set,r.promise=new Promise(function(o,s){r.resolve=o,r.reject=s}),r.handlers={next:function(o){r.sub!==null&&(r.latest=["next",o],r.notify("next",o),l1(r.observers,"next",o))},error:function(o){var s=r.sub;s!==null&&(s&&setTimeout(function(){return s.unsubscribe()}),r.sub=null,r.latest=["error",o],r.reject(o),r.notify("error",o),l1(r.observers,"error",o))},complete:function(){var o=r,s=o.sub,l=o.sources,f=l===void 0?[]:l;if(s!==null){var m=f.shift();m?$C(m)?m.then(function(p){return r.sub=p.subscribe(r.handlers)},r.handlers.error):r.sub=m.subscribe(r.handlers):(s&&setTimeout(function(){return s.unsubscribe()}),r.sub=null,r.latest&&r.latest[0]==="next"?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),l1(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(o){r.reject(o),r.sources=[],r.handlers.error(o)},r.promise.catch(function(o){}),typeof n=="function"&&(n=[new An(n)]),$C(n)?n.then(function(o){return r.start(o)},r.handlers.error):r.start(n),r}return t.prototype.start=function(n){this.sub===void 0&&(this.sources=Array.from(n),this.handlers.complete())},t.prototype.deliverLastMessage=function(n){if(this.latest){var r=this.latest[0],o=n[r];o&&o.call(n,this.latest[1]),this.sub===null&&r==="next"&&n.complete&&n.complete()}},t.prototype.addObserver=function(n){this.observers.has(n)||(this.deliverLastMessage(n),this.observers.add(n))},t.prototype.removeObserver=function(n){this.observers.delete(n)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(n,r){var o=this.nextResultListeners;o.size&&(this.nextResultListeners=new Set,o.forEach(function(s){return s(n,r)}))},t.prototype.beforeNext=function(n){var r=!1;this.nextResultListeners.add(function(o,s){r||(r=!0,n(o,s))})},t})(An);LT(Ep);function jp(e){return"incremental"in e}function MU(e){return"hasNext"in e&&"data"in e}function DU(e){return jp(e)||MU(e)}function LU(e){return _r(e)&&"payload"in e}function PT(e,t){var n=e,r=new Hc;return jp(t)&&Mi(t.incremental)&&t.incremental.forEach(function(o){for(var s=o.data,l=o.path,f=l.length-1;f>=0;--f){var m=l[f],p=!isNaN(+m),v=p?[]:{};v[m]=s,s=v}n=r.merge(n,s)}),n}function Fb(e){var t=BE(e);return Mi(t)}function BE(e){var t=Mi(e.errors)?e.errors.slice(0):[];return jp(e)&&Mi(e.incremental)&&e.incremental.forEach(function(n){n.errors&&t.push.apply(t,n.errors)}),t}function zc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(r){r&&Object.keys(r).forEach(function(o){var s=r[o];s!==void 0&&(n[o]=s)})}),n}function wd(e,t){return zc(e,t,t.variables&&{variables:zc(ne(ne({},e&&e.variables),t.variables))})}function c3(e){return new An(function(t){t.error(e)})}var FT=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function PU(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];if(t.indexOf(o)<0)throw lo(46,o)}return e}function FU(e,t){var n=ne({},e),r=function(s){typeof s=="function"?n=ne(ne({},n),s(n)):n=ne(ne({},n),s)},o=function(){return ne({},n)};return Object.defineProperty(t,"setContext",{enumerable:!1,value:r}),Object.defineProperty(t,"getContext",{enumerable:!1,value:o}),t}function jU(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName=typeof t.query!="string"?Zv(t.query)||void 0:""),t}function UU(e,t){var n=ne({},e),r=new Set(Object.keys(e));return bs(t,{Variable:function(o,s,l){l&&l.kind!=="VariableDefinition"&&r.delete(o.name.value)}}),r.forEach(function(o){delete n[o]}),n}function QC(e,t){return t?t(e):An.of()}function Pv(e){return typeof e=="function"?new Jo(e):e}function eb(e){return e.request.length<=1}var Jo=(function(){function e(t){t&&(this.request=t)}return e.empty=function(){return new e(function(){return An.of()})},e.from=function(t){return t.length===0?e.empty():t.map(Pv).reduce(function(n,r){return n.concat(r)})},e.split=function(t,n,r){var o=Pv(n),s=Pv(r||new e(QC)),l;return eb(o)&&eb(s)?l=new e(function(f){return t(f)?o.request(f)||An.of():s.request(f)||An.of()}):l=new e(function(f,m){return t(f)?o.request(f,m)||An.of():s.request(f,m)||An.of()}),Object.assign(l,{left:o,right:s})}
71,e.execute=function(t,n){return t.request(FU(n.context,jU(PU(n))))||An.of()},e.concat=function(t,n){var r=Pv(t);if(eb(r))return globalThis.__DEV__!==!1&&Fe.warn(38,r),r;var o=Pv(n),s;return eb(o)?s=new e(function(l){return r.request(l,function(f){return o.request(f)||An.of()})||An.of()}):s=new e(function(l,f){return r.request(l,function(m){return o.request(m,f)||An.of()})||An.of()}),Object.assign(s,{left:r,right:o})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(QC)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(t,n){throw lo(39)},e.prototype.onError=function(t,n){if(n&&n.error)return n.error(t),!1;throw t},e.prototype.setOnError=function(t){return this.onError=t,this},e})(),BU=Jo.from,VE=Jo.execute;function VU(e){var t,n=e[Symbol.asyncIterator]();return t={next:function(){return n.next()}},t[Symbol.asyncIterator]=function(){return this},t}function HU(e){var t=null,n=null,r=!1,o=[],s=[];function l(g){if(!n){if(s.length){var y=s.shift();if(Array.isArray(y)&&y[0])return y[0]({value:g,done:!1})}o.push(g)}}function f(g){n=g;var y=s.slice();y.forEach(function(S){S[1](g)}),!t||t()}function m(){r=!0;var g=s.slice();g.forEach(function(y){y[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",l),e.removeListener("error",f),e.removeListener("end",m),e.removeListener("finish",m),e.removeListener("close",m)},e.on("data",l),e.on("error",f),e.on("end",m),e.on("finish",m),e.on("close",m);function p(){return new Promise(function(g,y){if(n)return y(n);if(o.length)return g({value:o.shift(),done:!1});if(r)return g({value:void 0,done:!0});s.push([g,y])})}var v={next:function(){return p()}};return Q_&&(v[Symbol.asyncIterator]=function(){return this}),v}function zU(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(r,o){e.then(function(s){r({value:s,done:!1})}).catch(o)}))}};return Q_&&(n[Symbol.asyncIterator]=function(){return this}),n}function WC(e){var t={next:function(){return e.read()}};return Q_&&(t[Symbol.asyncIterator]=function(){return this}),t}function qU(e){return!!e.body}function GU(e){return!!e.getReader}function $U(e){return!!(Q_&&e[Symbol.asyncIterator])}function QU(e){return!!e.stream}function WU(e){return!!e.arrayBuffer}function YU(e){return!!e.pipe}function KU(e){var t=e;if(qU(e)&&(t=e.body),$U(t))return VU(t);if(GU(t))return WC(t.getReader());if(QU(t))return WC(t.stream().getReader());if(WU(t))return zU(t.arrayBuffer());if(YU(t))return HU(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var H1=Symbol();function _x(e){return e.extensions?Array.isArray(e.extensions[H1]):!1}function jT(e){return e.hasOwnProperty("graphQLErrors")}var XU=function(e){var t=gi(gi(gi([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(n){return _r(n)&&n.message||"Error message not found."}).join(` 72`)},vs=(function(e){La(t,e);function t(n){var r=n.graphQLErrors,o=n.protocolErrors,s=n.clientErrors,l=n.networkError,f=n.errorMessage,m=n.extraInfo,p=e.call(this,f)||this;return p.name="ApolloError",p.graphQLErrors=r||[],p.protocolErrors=o||[],p.clientErrors=s||[],p.networkError=l||null,p.message=f||XU(p),p.extraInfo=m,p.cause=gi(gi(gi([l],r||[],!0),o||[],!0),s||[],!0).find(function(v){return!!v})||null,p.__proto__=t.prototype,p}return t})(Error),YC=Object.prototype.hasOwnProperty;function ZU(e,t){return fl(this,void 0,void 0,function(){var n,r,o,s,l,f,m,p,v,g,y,S,x,w,R,T,I,k,L,H,M,j,K,P;return dl(this,function(q){switch(q.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),r=(P=e.headers)===null||P===void 0?void 0:P.get("content-type"),o="boundary=",s=r?.includes(o)?r?.substring(r?.indexOf(o)+o.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",l=`\r 73--`.concat(s),f="",m=KU(e),p=!0,q.label=1;case 1:return p?[4,m.next()]:[3,3];case 2:for(v=q.sent(),g=v.value,y=v.done,S=typeof g=="string"?g:n.decode(g),x=f.length-l.length+1,p=!y,f+=S,w=f.indexOf(l,x);w>-1;){if(R=void 0,j=[f.slice(0,w),f.slice(w+l.length)],R=j[0],f=j[1],T=R.indexOf(`\r 74\r 75`),I=JU(R.slice(0,T)),k=I["content-type"],k&&k.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");
75if(L=R.slice(T),L){if(H=UT(e,L),Object.keys(H).length>1||"data"in H||"incremental"in H||"errors"in H||"payload"in H)if(LU(H)){if(M={},"payload"in H){if(Object.keys(H).length===1&&H.payload===null)return[2];M=ne({},H.payload)}"errors"in H&&(M=ne(ne({},M),{extensions:ne(ne({},"extensions"in M?M.extensions:null),(K={},K[H1]=H.errors,K))})),t(M)}else t(H);else if(Object.keys(H).length===1&&"hasNext"in H&&!H.hasNext)return[2]}w=f.indexOf(l)}return[3,1];case 3:return[2]}})})}function JU(e){var t={};return e.split(` 76`).forEach(function(n){var r=n.indexOf(":");if(r>-1){var o=n.slice(0,r).trim().toLowerCase(),s=n.slice(r+1).trim();t[o]=s}}),t}function UT(e,t){if(e.status>=300){var n=function(){try{return JSON.parse(t)}catch{return t}};FT(e,n(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(o){var r=o;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function eB(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function tB(e){return function(t){return t.text().then(function(n){return UT(t,n)}).then(function(n){return!Array.isArray(n)&&!YC.call(n,"data")&&!YC.call(n,"errors")&&FT(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}var HE=function(e,t){var n;try{n=JSON.stringify(e)}catch(o){var r=lo(42,t,o.message);throw r.parseError=o,r}return n},nB={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},rB={accept:"*/*","content-type":"application/json"},iB={method:"POST"},oB={http:nB,headers:rB,options:iB},aB=function(e,t){return t(e)};function sB(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o={},s={};n.forEach(function(g){o=ne(ne(ne({},o),g.options),{headers:ne(ne({},o.headers),g.headers)}),g.credentials&&(o.credentials=g.credentials),s=ne(ne({},s),g.http)}),o.headers&&(o.headers=lB(o.headers,s.preserveHeaderCase));var l=e.operationName,f=e.extensions,m=e.variables,p=e.query,v={operationName:l,variables:m};return s.includeExtensions&&(v.extensions=f),s.includeQuery&&(v.query=t(p,Ac)),{options:o,body:v}}function lB(e,t){if(!t){var n={};
76return Object.keys(Object(e)).forEach(function(s){n[s.toLowerCase()]=e[s]}),n}var r={};Object.keys(Object(e)).forEach(function(s){r[s.toLowerCase()]={originalName:s,value:e[s]}});var o={};return Object.keys(r).forEach(function(s){o[r[s].originalName]=r[s].value}),o}var uB=function(e){if(!e&&typeof fetch>"u")throw lo(40)},cB=function(e,t){var n=e.getContext(),r=n.uri;return r||(typeof t=="function"?t(e):t||"/graphql")};function fB(e,t){var n=[],r=function(g,y){n.push("".concat(g,"=").concat(encodeURIComponent(y)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var o=void 0;try{o=HE(t.variables,"Variables map")}catch(g){return{parseError:g}}r("variables",o)}if(t.extensions){var s=void 0;try{s=HE(t.extensions,"Extensions map")}catch(g){return{parseError:g}}r("extensions",s)}var l="",f=e,m=e.indexOf("#");m!==-1&&(l=e.substr(m),f=e.substr(0,m));var p=f.indexOf("?")===-1?"?":"&",v=f+p+n.join("&")+l;return{newURI:v}}var KC=ms(function(){return fetch}),BT=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?"/graphql":t,r=e.fetch,o=e.print,s=o===void 0?aB:o,l=e.includeExtensions,f=e.preserveHeaderCase,m=e.useGETForQueries,p=e.includeUnusedVariables,v=p===void 0?!1:p,g=Ko(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&uB(r||KC);var y={http:{includeExtensions:l,preserveHeaderCase:f},options:g.fetchOptions,credentials:g.credentials,headers:g.headers};return new Jo(function(S){var x=cB(S,n),w=S.getContext(),R={};if(w.clientAwareness){var T=w.clientAwareness,I=T.name,k=T.version;I&&(R["apollographql-client-name"]=I),k&&(R["apollographql-client-version"]=k)}var L=ne(ne({},R),w.headers),H={http:w.http,options:w.fetchOptions,credentials:w.credentials,headers:L};if(_1(["client"],S.query)){var M=kT(S.query);if(!M)return c3(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));S.query=M}var j=sB(S,s,oB,y,H),K=j.options,P=j.body;P.variables&&!v&&(P.variables=UU(P.variables,S.query));var q;!K.signal&&typeof AbortController<"u"&&(q=new AbortController,K.signal=q.signal);var Q=function(ge){return ge.kind==="OperationDefinition"&&ge.operation==="mutation"},$=function(ge){return ge.kind==="OperationDefinition"&&ge.operation==="subscription"},W=$(B1(S.query)),G=_1(["defer"],S.query);if(m&&!S.query.definitions.some(Q)&&(K.method="GET"),G||W){K.headers=K.headers||{};var J="multipart/mixed;";W&&G&&globalThis.__DEV__!==!1&&Fe.warn(41),W?J+="boundary=graphql;subscriptionSpec=1.0,application/json":G&&(J+="deferSpec=20220824,application/json"),K.headers.accept=J}if(K.method==="GET"){var V=fB(x,P),B=V.newURI,ee=V.parseError;if(ee)return c3(ee);x=B}else try{K.body=HE(P,"Payload")}catch(ge){return c3(ge)}return new An(function(ge){var ve=r||ms(function(){return fetch})||KC,Y=ge.next.bind(ge);return ve(x,K).then(function(oe){var de;S.setContext({response:oe});var me=(de=oe.headers)===null||de===void 0?void 0:de.get("content-type");return me!==null&&/^multipart\/mixed/i.test(me)?ZU(oe,Y):tB(S)(oe).then(Y)}).then(function(){q=void 0,ge.complete()}).catch(function(oe){q=void 0,eB(oe,ge)}),function(){q&&q.abort()}})})},dB=(function(e){La(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,BT(n).request)||this;return r.options=n,r}return t})(Jo);const{toString:XC,hasOwnProperty:hB}=Object.prototype,ZC=Function.prototype.toString,zE=new Map;function yn(e,t){try{return qE(e,t)}finally{zE.clear()}}function qE(e,t){if(e===t)return!0;const n=XC.call(e),r=XC.call(t);if(n!==r)return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(e5(e,t))return!0;const o=JC(e),s=JC(t),l=o.length;if(l!==s.length)return!1;for(let f=0;f<l;++f)if(!hB.call(t,o[f]))return!1;for(let f=0;f<l;++f){const m=o[f];if(!qE(e[m],t[m]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(e5(e,t))return!0;const o=e.entries(),s=n==="[object Map]";for(;;){const l=o.next();if(l.done)break;const[f,m]=l.value;if(!t.has(f)||s&&!qE(m,t.get(f)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let o=e.byteLength;if(o===t.byteLength)for(;o--&&e[o]===t[o];);return o===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const o=ZC.call(e);return o!==ZC.call(t)?!1:!vB(o,mB)}}return!1}function JC(e){return Object.keys(e).filter(pB,e)}function pB(e){return this[e]!==void 0}const mB="{ [native code] }";function vB(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function e5(e,t){let n=zE.get(e);if(n){if(n.has(t))return!0}else zE.set(e,n=new Set);return n.add(t),!1}function VT(e,t,n,r){var o=t.data,s=Ko(t,["data"]),l=n.data,f=Ko(n,["data"]);return yn(s,f)&&jb(B1(e).selectionSet,o,l,{fragmentMap:gm(bm(e)),variables:r})}function jb(e,t,n,r){if(t===n)return!0;var o=new Set;return e.selections.every(function(s){if(o.has(s)||(o.add(s),!U1(s,r.variables))||t5(s))return!0;
76if(Bc(s)){var l=_u(s),f=t&&t[l],m=n&&n[l],p=s.selectionSet;if(!p)return yn(f,m);var v=Array.isArray(f),g=Array.isArray(m);if(v!==g)return!1;if(v&&g){var y=f.length;if(m.length!==y)return!1;for(var S=0;S<y;++S)if(!jb(p,f[S],m[S],r))return!1;return!0}return jb(p,f,m,r)}else{var x=W_(s,r.fragmentMap);if(x)return t5(x)?!0:jb(x.selectionSet,t,n,r)}})}function t5(e){return!!e.directives&&e.directives.some(gB)}function gB(e){return e.name.value==="nonreactive"}var HT=Ud?WeakMap:Map,zT=lx?WeakSet:Set,Sx=new V1,n5=!1;function qT(){n5||(n5=!0,globalThis.__DEV__!==!1&&Fe.warn(52))}function GT(e,t,n){return Sx.withValue(!0,function(){var r=Jv(e,t,n,!1);return Object.isFrozen(e)&&rm(r),r})}function yB(e,t){if(t.has(e))return t.get(e);var n=Array.isArray(e)?[]:Object.create(null);return t.set(e,n),n}function Jv(e,t,n,r,o){var s,l=n.knownChanged,f=yB(e,n.mutableTargets);if(Array.isArray(e)){for(var m=0,p=Array.from(e.entries());m<p.length;m++){var v=p[m],g=v[0],y=v[1];if(y===null){f[g]=null;continue}var S=Jv(y,t,n,r,globalThis.__DEV__!==!1?"".concat(o||"","[").concat(g,"]"):void 0);l.has(S)&&l.add(f),f[g]=S}return l.has(f)?f:e}for(var x=0,w=t.selections;x<w.length;x++){var R=w[x],T=void 0;if(r&&l.add(f),R.kind===Ne.FIELD){var I=_u(R),k=R.selectionSet;if(T=f[I]||e[I],T===void 0)continue;if(k&&T!==null){var S=Jv(e[I],k,n,r,globalThis.__DEV__!==!1?"".concat(o||"",".").concat(I):void 0);l.has(S)&&(T=S)}globalThis.__DEV__===!1&&(f[I]=T),globalThis.__DEV__!==!1&&(r&&I!=="__typename"&&!(!((s=Object.getOwnPropertyDescriptor(f,I))===null||s===void 0)&&s.value)?Object.defineProperty(f,I,bB(I,T,o||"",n.operationName,n.operationType)):(delete f[I],f[I]=T))}if(R.kind===Ne.INLINE_FRAGMENT&&(!R.typeCondition||n.cache.fragmentMatches(R,e.__typename))&&(T=Jv(e,R.selectionSet,n,r,o)),R.kind===Ne.FRAGMENT_SPREAD){var L=R.name.value,H=n.fragmentMap[L]||(n.fragmentMap[L]=n.cache.lookupFragment(L));Fe(H,47,L);var M=yj(R);M!=="mask"&&(T=Jv(e,H.selectionSet,n,M==="migrate",o))}l.has(T)&&l.add(f)}return"__typename"in e&&!("__typename"in f)&&(f.__typename=e.__typename),Object.keys(f).length!==Object.keys(e).length&&l.add(f),l.has(f)?f:e}function bB(e,t,n,r,o){var s=function(){return Sx.getValue()||(globalThis.__DEV__!==!1&&Fe.warn(48,r?"".concat(o," '").concat(r,"'"):"anonymous ".concat(o),"".concat(n,".").concat(e).replace(/^\./,"")),s=function(){return t}),t};return{get:function(){return s()},set:function(l){s=function(){return l}},enumerable:!0,configurable:!0}}function $T(e,t,n,r){if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&qT(),e;var o=t.definitions.filter(function(l){return l.kind===Ne.FRAGMENT_DEFINITION});typeof r>"u"&&(Fe(o.length===1,49,o.length),r=o[0].name.value);var s=o.find(function(l){return l.name.value===r});return Fe(!!s,50,r),e==null||yn(e,{})?e:GT(e,s.selectionSet,{operationType:"fragment",operationName:s.name.value,fragmentMap:gm(bm(t)),cache:n,mutableTargets:new HT,knownChanged:new zT})}function _B(e,t,n){var r;if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&qT(),e;var o=Nd(t);return Fe(o,51),e==null?e:GT(e,o.selectionSet,{operationType:o.operation,operationName:(r=o.name)===null||r===void 0?void 0:r.value,fragmentMap:gm(bm(t)),cache:n,mutableTargets:new HT,knownChanged:new zT})}var QT=(function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=E1(Cj,{max:_s["cache.fragmentQueryDocuments"]||1e3,cache:o_})}return e.prototype.lookupFragment=function(t){return null},e.prototype.batch=function(t){var n=this,r=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0,o;return this.performTransaction(function(){return o=t.update(n)},r),o},e.prototype.recordOptimisticTransaction=function(t,n){this.performTransaction(t,n)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(ne(ne({},t),{rootId:t.id||"ROOT_QUERY",optimistic:n}))},e.prototype.watchFragment=function(t){var n=this,r=t.fragment,o=t.fragmentName,s=t.from,l=t.optimistic,f=l===void 0?!0:l,m=Ko(t,["fragment","fragmentName","from","optimistic"]),p=this.getFragmentDoc(r,o),v=typeof s>"u"||typeof s=="string"?s:this.identify(s),g=!!t[Symbol.for("apollo.dataMasking")];if(globalThis.__DEV__!==!1){var y=o||mT(r).name.value;v||globalThis.__DEV__!==!1&&Fe.warn(1,y)}var S=ne(ne({},m),{returnPartialData:!0,id:v,query:p,optimistic:f}),x;return new An(function(w){return n.watch(ne(ne({},S),{immediate:!0,callback:function(R){var T=g?$T(R.result,r,n,o):R.result;if(!(x&&VT(p,{data:x.result},{data:T},t.variables))){var I={data:T,complete:!!R.complete};R.missing&&(I.missing=J_(R.missing.map(function(k){return k.missing}))),x=ne(ne({},R),{result:T}),w.next(I)}}}))})},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!!t.optimistic),this.read(ne(ne({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:n}))},e.prototype.writeQuery=function(t){var n=t.id,r=t.data,o=Ko(t,["id","data"]);return this.write(Object.assign(o,{dataId:n||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(t){var n=t.id,r=t.data,o=t.fragment,s=t.fragmentName,l=Ko(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(l,{query:this.getFragmentDoc(o,s),dataId:n,result:r}))},e.prototype.updateQuery=function(t,n){return this.batch({update:function(r){var o=r.readQuery(t),s=n(o);return s==null?o:(r.writeQuery(ne(ne({},t),{data:s})),s)}})},e.prototype.updateFragment=function(t,n){return this.batch({update:function(r){var o=r.readFragment(t),s=n(o);return s==null?o:(r.writeFragment(ne(ne({},t),{data:s})),s)}})},e})();globalThis.__DEV__!==!1&&(QT.prototype.getMemoryInternals=Fj);var WT=(function(e){La(t,e);function t(n,r,o,s){var l,f=e.call(this,n)||this;if(f.message=n,f.path=r,f.query=o,f.variables=s,Array.isArray(f.path)){f.missing=f.message;for(var m=f.path.length-1;m>=0;--m)f.missing=(l={},l[f.path[m]]=f.missing,l)}else f.missing=f.path;return f.__proto__=t.prototype,f}return t})(Error),ri=Object.prototype.hasOwnProperty;function Fv(e){return e==null}function YT(e,t){var n=e.__typename,r=e.id,o=e._id;if(typeof n=="string"&&(t&&(t.keyObject=Fv(r)?Fv(o)?void 0:{_id:o}:{id:r}),Fv(r)&&!Fv(o)&&(r=o),!Fv(r)))return"".concat(n,":").concat(typeof r=="number"||typeof r=="string"?r:JSON.stringify(r))}var KT={dataIdFromObject:YT,addTypename:!0,resultCaching:!0,canonizeResults:!1};function SB(e){return zc(KT,e)}function XT(e){var t=e.canonizeResults;return t===void 0?KT.canonizeResults:t}function EB(e,t){return wn(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var ZT=/^[_a-z][_0-9a-z]*/i;function qc(e){var t=e.match(ZT);return t?t[0]:e}function GE(e,t,n){return _r(t)?Sr(t)?t.every(function(r){return GE(e,r,n)}):e.selections.every(function(r){if(Bc(r)&&U1(r,n)){var o=_u(r);return ri.call(t,o)&&(!r.selectionSet||GE(r.selectionSet,t[o],n))}return!0}):!1}function Np(e){return _r(e)&&!wn(e)&&!Sr(e)}function xB(){return new Hc}function JT(e,t){var n=gm(bm(e));return{fragmentMap:n,lookupFragment:function(r){var o=n[r];return!o&&t&&(o=t.lookup(r)),o||null}}}var Ub=Object.create(null),f3=function(){return Ub},r5=Object.create(null),x1=(function(){function e(t,n){var r=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(o,s){return rm(wn(o)?r.get(o.__ref,s):o&&o[s])},this.canRead=function(o){return wn(o)?r.has(o.__ref):typeof o=="object"}
76,this.toReference=function(o,s){if(typeof o=="string")return Fp(o);if(wn(o))return o;var l=r.policies.identify(o)[0];if(l){var f=Fp(l);return s&&r.merge(l,o),f}}}return e.prototype.toObject=function(){return ne({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,n){if(this.group.depend(t,n),ri.call(this.data,t)){var r=this.data[t];if(r&&ri.call(r,n))return r[n]}if(n==="__typename"&&ri.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof wc)return this.parent.get(t,n)},e.prototype.lookup=function(t,n){if(n&&this.group.depend(t,"__exists"),ri.call(this.data,t))return this.data[t];if(this instanceof wc)return this.parent.lookup(t,n);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,n){var r=this,o;wn(t)&&(t=t.__ref),wn(n)&&(n=n.__ref);var s=typeof t=="string"?this.lookup(o=t):t,l=typeof n=="string"?this.lookup(o=n):n;if(l){Fe(typeof o=="string",2);var f=new Hc(CB).merge(s,l);if(this.data[o]=f,f!==s&&(delete this.refs[o],this.group.caching)){var m=Object.create(null);s||(m.__exists=1),Object.keys(l).forEach(function(p){if(!s||s[p]!==f[p]){m[p]=1;var v=qc(p);v!==p&&!r.policies.hasKeyArgs(f.__typename,v)&&(m[v]=1),f[p]===void 0&&!(r instanceof wc)&&delete f[p]}}),m.__typename&&!(s&&s.__typename)&&this.policies.rootTypenamesById[o]===f.__typename&&delete m.__typename,Object.keys(m).forEach(function(p){return r.group.dirty(o,p)})}}},e.prototype.modify=function(t,n){var r=this,o=this.lookup(t);if(o){var s=Object.create(null),l=!1,f=!0,m={DELETE:Ub,INVALIDATE:r5,isReference:wn,toReference:this.toReference,canRead:this.canRead,readField:function(p,v){return r.policies.readField(typeof p=="string"?{fieldName:p,from:v||Fp(t)}:p,{store:r})}};if(Object.keys(o).forEach(function(p){var v=qc(p),g=o[p];if(g!==void 0){var y=typeof n=="function"?n:n[p]||n[v];if(y){var S=y===f3?Ub:y(rm(g),ne(ne({},m),{fieldName:v,storeFieldName:p,storage:r.getStorage(t,p)}));if(S===r5)r.group.dirty(t,p);else if(S===Ub&&(S=void 0),S!==g&&(s[p]=S,l=!0,g=S,globalThis.__DEV__!==!1)){var x=function(H){if(r.lookup(H.__ref)===void 0)return globalThis.__DEV__!==!1&&Fe.warn(3,H),!0};if(wn(S))x(S);else if(Array.isArray(S))for(var w=!1,R=void 0,T=0,I=S;T<I.length;T++){var k=I[T];if(wn(k)){if(w=!0,x(k))break}else if(typeof k=="object"&&k){var L=r.policies.identify(k)[0];L&&(R=k)}if(w&&R!==void 0){globalThis.__DEV__!==!1&&Fe.warn(4,R);break}}}}g!==void 0&&(f=!1)}}),l)return this.merge(t,s),f&&(this instanceof wc?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},e.prototype.delete=function(t,n,r){var o,s=this.lookup(t);if(s){var l=this.getFieldValue(s,"__typename"),f=n&&r?this.policies.getStoreFieldName({typename:l,fieldName:n,args:r}):n;return this.modify(t,f?(o={},o[f]=f3,o):f3)}return!1},e.prototype.evict=function(t,n){var r=!1;return t.id&&(ri.call(this.data,t.id)&&(r=this.delete(t.id,t.fieldName,t.args)),this instanceof wc&&this!==n&&(r=this.parent.evict(t,n)||r),(t.fieldName||r)&&this.group.dirty(t.id,t.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var t=this,n=this.toObject(),r=[];return this.getRootIdSet().forEach(function(o){ri.call(t.policies.rootTypenamesById,o)||r.push(o)}),r.length&&(n.__META={extraRootIds:r.sort()}),n},e.prototype.replace=function(t){var n=this;if(Object.keys(this.data).forEach(function(s){t&&ri.call(t,s)||n.delete(s)}),t){var r=t.__META,o=Ko(t,["__META"]);Object.keys(o).forEach(function(s){n.merge(s,o[s])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},e.prototype.release=function(t){if(this.rootIds[t]>0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof wc?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject();
76n.forEach(function(l){ri.call(r,l)&&(Object.keys(t.findChildRefIds(l)).forEach(n.add,n),delete r[l])});var o=Object.keys(r);if(o.length){for(var s=this;s instanceof wc;)s=s.parent;o.forEach(function(l){return s.delete(l)})}return o},e.prototype.findChildRefIds=function(t){if(!ri.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var o=new Set([r]);o.forEach(function(s){wn(s)&&(n[s.__ref]=!0),_r(s)&&Object.keys(s).forEach(function(l){var f=s[l];_r(f)&&o.add(f)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e})(),eR=(function(){function e(t,n){n===void 0&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?TT():null,this.keyMaker=new wu(Ud)},e.prototype.depend=function(t,n){if(this.d){this.d(d3(t,n));var r=qc(n);r!==n&&this.d(d3(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(d3(t,n),n==="__exists"?"forget":"setDirty")},e})();function d3(e,t){return t+"#"+e}function i5(e,t){u1(e)&&e.group.depend(t,"__exists")}(function(e){var t=(function(n){La(r,n);function r(o){var s=o.policies,l=o.resultCaching,f=l===void 0?!0:l,m=o.seed,p=n.call(this,s,new eR(f))||this;return p.stump=new wB(p),p.storageTrie=new wu(Ud),m&&p.replace(m),p}return r.prototype.addLayer=function(o,s){return this.stump.addLayer(o,s)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r})(e);e.Root=t})(x1||(x1={}));var wc=(function(e){La(t,e);function t(n,r,o,s){var l=e.call(this,r.policies,s)||this;return l.id=n,l.parent=r,l.replay=o,l.group=s,o(l),l}return t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,o=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(s){var l=r.data[s],f=o.lookup(s);f?l?l!==f&&Object.keys(l).forEach(function(m){yn(l[m],f[m])||r.group.dirty(s,m)}):(r.group.dirty(s,"__exists"),Object.keys(f).forEach(function(m){r.group.dirty(s,m)})):r.delete(s)}),o):o===this.parent?this:o.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return ne(ne({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return ri.call(this.data,n)?ne(ne({},r),e.prototype.findChildRefIds.call(this,n)):r},t.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},t})(x1),wB=(function(e){La(t,e);function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new eR(n.group.caching,n.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(n,r){return this.parent.merge(n,r)},t})(wc);function CB(e,t,n){var r=e[n],o=t[n];return yn(r,o)?r:o}function u1(e){return!!(e instanceof x1&&e.group.caching)}function TB(e){return _r(e)?Sr(e)?e.slice(0):ne({__proto__:Object.getPrototypeOf(e)},e):e}var o5=(function(){function e(){this.known=new(lx?WeakSet:Set),this.pool=new wu(Ud),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return _r(t)&&this.known.has(t)},e.prototype.pass=function(t){if(_r(t)){var n=TB(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(_r(t)){var r=this.passes.get(t);if(r)return r;var o=Object.getPrototypeOf(t);switch(o){case Array.prototype:{if(this.known.has(t))return t;var s=t.map(this.admit,this),l=this.pool.lookupArray(s);return l.array||(this.known.add(l.array=s),globalThis.__DEV__!==!1&&Object.freeze(s)),l.array}case null:case Object.prototype:{if(this.known.has(t))return t;var f=Object.getPrototypeOf(t),m=[f],p=this.sortedKeys(t);m.push(p.json);var v=m.length;p.sorted.forEach(function(S){m.push(n.admit(t[S]))});var l=this.pool.lookupArray(m);if(!l.object){var g=l.object=Object.create(f);this.known.add(g),p.sorted.forEach(function(S,x){g[S]=m[v+x]}),globalThis.__DEV__!==!1&&Object.freeze(g)}return l.object}}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var o=JSON.stringify(n);
76(r.keys=this.keysByJSON.get(o))||this.keysByJSON.set(o,r.keys={sorted:n,json:o})}return r.keys},e})();function a5(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var RB=(function(){function e(t){var n=this;this.knownResults=new(Ud?WeakMap:Map),this.config=zc(t,{addTypename:t.addTypename!==!1,canonizeResults:XT(t)}),this.canon=t.canon||new o5,this.executeSelectionSet=E1(function(r){var o,s=r.context.canonizeResults,l=a5(r);l[3]=!s;var f=(o=n.executeSelectionSet).peek.apply(o,l);return f?s?ne(ne({},f),{result:n.canon.admit(f.result)}):f:(i5(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||_s["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:a5,makeCacheKey:function(r,o,s,l){if(u1(s.store))return s.store.makeCacheKey(r,wn(o)?o.__ref:o,s.varString,l)}}),this.executeSubSelectedArray=E1(function(r){return i5(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize||_s["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(r){var o=r.field,s=r.array,l=r.context;if(u1(l.store))return l.store.makeCacheKey(o,s,l.varString)}})}return e.prototype.resetCanon=function(){this.canon=new o5},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,o=t.rootId,s=o===void 0?"ROOT_QUERY":o,l=t.variables,f=t.returnPartialData,m=f===void 0?!0:f,p=t.canonizeResults,v=p===void 0?this.config.canonizeResults:p,g=this.config.cache.policies;l=ne(ne({},fx(pT(r))),l);var y=Fp(s),S=this.executeSelectionSet({selectionSet:B1(r).selectionSet,objectOrReference:y,enclosingRef:y,context:ne({store:n,query:r,policies:g,variables:l,varString:Mc(l),canonizeResults:v},JT(r,this.config.fragments))}),x;if(S.missing&&(x=[new WT(OB(S.missing),S.missing,r,l)],!m))throw x[0];return{result:S.result,complete:!x,missing:x}},e.prototype.isFresh=function(t,n,r,o){if(u1(o.store)&&this.knownResults.get(t)===r){var s=this.executeSelectionSet.peek(r,n,o,this.canon.isKnown(t));if(s&&t===s.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,o=t.objectOrReference,s=t.enclosingRef,l=t.context;if(wn(o)&&!l.policies.rootTypenamesById[o.__ref]&&!l.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var f=l.variables,m=l.policies,p=l.store,v=p.getFieldValue(o,"__typename"),g=[],y,S=new Hc;this.config.addTypename&&typeof v=="string"&&!m.rootIdsByTypename[v]&&g.push({__typename:v});function x(k,L){var H;return k.missing&&(y=S.merge(y,(H={},H[L]=k.missing,H))),k.result}var w=new Set(r.selections);w.forEach(function(k){var L,H;if(U1(k,f))if(Bc(k)){var M=m.readField({fieldName:k.name.value,field:k,variables:l.variables,from:o},l),j=_u(k);M===void 0?mx.added(k)||(y=S.merge(y,(L={},L[j]="Can't find field '".concat(k.name.value,"' on ").concat(wn(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),L))):Sr(M)?M.length>0&&(M=x(n.executeSubSelectedArray({field:k,array:M,enclosingRef:s,context:l}),j)):k.selectionSet?M!=null&&(M=x(n.executeSelectionSet({selectionSet:k.selectionSet,objectOrReference:M,enclosingRef:wn(M)?M:s,context:l}),j)):l.canonizeResults&&(M=n.canon.pass(M)),M!==void 0&&g.push((H={},H[j]=M,H))}else{var K=W_(k,l.lookupFragment);if(!K&&k.kind===Ne.FRAGMENT_SPREAD)throw lo(10,k.name.value);K&&m.fragmentMatches(K,v)&&K.selectionSet.selections.forEach(w.add,w)}});var R=J_(g),T={result:R,missing:y},I=l.canonizeResults?this.canon.admit(T):rm(T);return I.result&&this.knownResults.set(I.result,r),I},e.prototype.execSubSelectedArrayImpl=function(t){var n=this,r=t.field,o=t.array,s=t.enclosingRef,l=t.context,f,m=new Hc;function p(v,g){var y;return v.missing&&(f=m.merge(f,(y={},y[g]=v.missing,y))),v.result}return r.selectionSet&&(o=o.filter(l.store.canRead)),o=o.map(function(v,g){return v===null?null:Sr(v)?p(n.executeSubSelectedArray({field:r,array:v,enclosingRef:s,context:l}),g):r.selectionSet?p(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:v,enclosingRef:wn(v)?v:s,context:l}),g):(globalThis.__DEV__!==!1&&AB(l.store,r,v),v)}),{result:l.canonizeResults?this.canon.admit(o):o,missing:f}},e})();function OB(e){try{JSON.stringify(e,function(t,n){if(typeof n=="string")throw n;return n})}catch(t){return t}}function AB(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(o){_r(o)&&(Fe(!wn(o),11,EB(e,o),t.name.value),Object.values(o).forEac
76h(r.add,r))})}}var Ex=new V1,s5=new WeakMap;function c1(e){var t=s5.get(e);return t||s5.set(e,t={vars:new Set,dep:TT()}),t}function l5(e){c1(e).vars.forEach(function(t){return t.forgetCache(e)})}function kB(e){c1(e).vars.forEach(function(t){return t.attachCache(e)})}function NB(e){var t=new Set,n=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(m){c1(m).dep.dirty(r),IB(m)});var l=Array.from(n);n.clear(),l.forEach(function(m){return m(e)})}}else{var f=Ex.getValue();f&&(o(f),c1(f).dep(r))}return e};r.onNextChange=function(s){return n.add(s),function(){n.delete(s)}};var o=r.attachCache=function(s){return t.add(s),c1(s).vars.add(r),r};return r.forgetCache=function(s){return t.delete(s)},r}function IB(e){e.broadcastWatches&&e.broadcastWatches()}var u5=Object.create(null);function xx(e){var t=JSON.stringify(e);return u5[t]||(u5[t]=Object.create(null))}function c5(e){var t=xx(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var o=function(l,f){return r.readField(f,l)},s=r.keyObject=wx(e,function(l){var f=Up(r.storeObject,l,o);return f===void 0&&n!==r.storeObject&&ri.call(n,l[0])&&(f=Up(n,l,nR)),Fe(f!==void 0,5,l.join("."),n),f});return"".concat(r.typename,":").concat(JSON.stringify(s))})}function f5(e){var t=xx(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var o=r.field,s=r.variables,l=r.fieldName,f=wx(e,function(p){var v=p[0],g=v.charAt(0);if(g==="@"){if(o&&Mi(o.directives)){var y=v.slice(1),S=o.directives.find(function(T){return T.name.value===y}),x=S&&K_(S,s);return x&&Up(x,p.slice(1))}return}if(g==="$"){var w=v.slice(1);if(s&&ri.call(s,w)){var R=p.slice(0);return R[0]=w,Up(s,R)}return}if(n)return Up(n,p)}),m=JSON.stringify(f);return(n||m!=="{}")&&(l+=":"+m),l})}function wx(e,t){var n=new Hc;return tR(e).reduce(function(r,o){var s,l=t(o);if(l!==void 0){for(var f=o.length-1;f>=0;--f)l=(s={},s[o[f]]=l,s);r=n.merge(r,l)}return r},Object.create(null))}function tR(e){var t=xx(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(o,s){Sr(o)?(tR(o).forEach(function(l){return n.push(r.concat(l))}),r.length=0):(r.push(o),Sr(e[s+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function nR(e,t){return e[t]}function Up(e,t,n){return n=n||nR,rR(t.reduce(function r(o,s){return Sr(o)?o.map(function(l){return r(l,s)}):o&&n(o,s)},e))}function rR(e){return _r(e)?Sr(e)?e.map(rR):wx(Object.keys(e).sort(),function(t){return Up(e,t)}):e}function $E(e){return e.args!==void 0?e.args:e.field?K_(e.field,e.variables):null}var MB=function(){},d5=function(e,t){return t.fieldName},h5=function(e,t,n){var r=n.mergeObjects;return r(e,t)},p5=function(e,t){return t},DB=(function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=ne({dataIdFromObject:YT},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,n){var r,o=this,s=n&&(n.typename||((r=n.storeObject)===null||r===void 0?void 0:r.__typename))||t.__typename;if(s===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var l=n&&n.storeObject||t,f=ne(ne({},n),{typename:s,storeObject:l,readField:n&&n.readField||function(){var g=Cx(arguments,l);return o.readField(g,{store:o.cache.data,variables:g.variables})}}),m,p=s&&this.getTypePolicy(s),v=p&&p.keyFn||this.config.dataIdFromObject;return Sx.withValue(!0,function(){for(;v;){var g=v(ne(ne({},t),l),f);if(Sr(g))v=c5(g);else{m=g;break}}}),m=m?String(m):void 0,f.keyObject?[m,f.keyObject]:[m]},e.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(r){var o=t[r],s=o.queryType,l=o.mutationType,f=o.subscriptionType,m=Ko(o,["queryType","mutationType","subscriptionType"]);s&&n.setRootTypename("Query",r),l&&n.setRootTypename("Mutation",r),f&&n.setRootTypename("Subscription",r),ri.call(n.toBeAdded,r)?n.toBeAdded[r].push(m):n.toBeAdded[r]=[m]})},e.prototype.updateTypePolicy=function(t,n){var r=this,o=this.getTypePolicy(t),s=n.keyFields,l=n.fields;
76function f(m,p){m.merge=typeof p=="function"?p:p===!0?h5:p===!1?p5:m.merge}f(o,n.merge),o.keyFn=s===!1?MB:Sr(s)?c5(s):typeof s=="function"?s:o.keyFn,l&&Object.keys(l).forEach(function(m){var p=r.getFieldPolicy(t,m,!0),v=l[m];if(typeof v=="function")p.read=v;else{var g=v.keyArgs,y=v.read,S=v.merge;p.keyFn=g===!1?d5:Sr(g)?f5(g):typeof g=="function"?g:p.keyFn,typeof y=="function"&&(p.read=y),f(p,S)}p.read&&p.merge&&(p.keyFn=p.keyFn||d5)})},e.prototype.setRootTypename=function(t,n){n===void 0&&(n=t);var r="ROOT_"+t.toUpperCase(),o=this.rootTypenamesById[r];n!==o&&(Fe(!o||o===t,6,t),o&&delete this.rootIdsByTypename[o],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)},e.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){n.getSupertypeSet(r,!0),t[r].forEach(function(o){n.getSupertypeSet(o,!0).add(r);var s=o.match(ZT);(!s||s[0]!==o)&&n.fuzzySubtypes.set(o,new RegExp(o))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!ri.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var o=this.supertypeMap.get(t);!o&&this.fuzzySubtypes.size&&(o=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(l,f){if(l.test(t)){var m=n.supertypeMap.get(f);m&&m.forEach(function(p){return o.add(p)})}})),o&&o.size&&o.forEach(function(l){var f=n.getTypePolicy(l),m=f.fields,p=Ko(f,["fields"]);Object.assign(r,p),Object.assign(r.fields,m)})}var s=this.toBeAdded[t];return s&&s.length&&s.splice(0).forEach(function(l){n.updateTypePolicy(t,l)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n,r){if(t){var o=this.getTypePolicy(t).fields;return o[n]||r&&(o[n]=Object.create(null))}},e.prototype.getSupertypeSet=function(t,n){var r=this.supertypeMap.get(t);return!r&&n&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,n,r,o){var s=this;if(!t.typeCondition)return!0;if(!n)return!1;var l=t.typeCondition.name.value;if(n===l)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(l))for(var f=this.getSupertypeSet(n,!0),m=[f],p=function(x){var w=s.getSupertypeSet(x,!1);w&&w.size&&m.indexOf(w)<0&&m.push(w)},v=!!(r&&this.fuzzySubtypes.size),g=!1,y=0;y<m.length;++y){var S=m[y];if(S.has(l))return f.has(l)||(g&&globalThis.__DEV__!==!1&&Fe.warn(7,n,l),f.add(l)),!0;S.forEach(p),v&&y===m.length-1&&GE(t.selectionSet,r,o)&&(v=!1,g=!0,this.fuzzySubtypes.forEach(function(x,w){var R=n.match(x);R&&R[0]===n&&p(w)}))}return!1},e.prototype.hasKeyArgs=function(t,n){var r=this.getFieldPolicy(t,n,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(t){var n=t.typename,r=t.fieldName,o=this.getFieldPolicy(n,r,!1),s,l=o&&o.keyFn;if(l&&n)for(var f={typename:n,fieldName:r,field:t.field||null,variables:t.variables},m=$E(t);l;){var p=l(m,f);if(Sr(p))l=f5(p);else{s=p||r;break}}return s===void 0&&(s=t.field?eU(t.field,t.variables):hT(r,$E(t))),s===!1?r:r===qc(s)?s:r+":"+s},e.prototype.readField=function(t,n){var r=t.from;if(r){var o=t.field||t.fieldName;if(o){if(t.typename===void 0){var s=n.store.getFieldValue(r,"__typename");s&&(t.typename=s)}var l=this.getStoreFieldName(t),f=qc(l),m=n.store.getFieldValue(r,l),p=this.getFieldPolicy(t.typename,f,!1),v=p&&p.read;if(v){var g=m5(this,r,t,n,n.store.getStorage(wn(r)?r.__ref:r,l));return Ex.withValue(this.cache,v,[m,g])}return m}}},e.prototype.getReadFunction=function(t,n){var r=this.getFieldPolicy(t,n,!1);return r&&r.read},e.prototype.getMergeFunction=function(t,n,r){var o=this.getFieldPolicy(t,n,!1),s=o&&o.merge;return!s&&r&&(o=this.getTypePolicy(r),s=o&&o.merge),s},e.prototype.runMergeFunction=function(t,n,r,o,s){var l=r.field,f=r.typename,m=r.merge;
76return m===h5?iR(o.store)(t,n):m===p5?n:(o.overwrite&&(t=void 0),m(t,n,m5(this,void 0,{typename:f,fieldName:l.name.value,field:l,variables:o.variables},o,s||Object.create(null))))},e})();function m5(e,t,n,r,o){var s=e.getStoreFieldName(n),l=qc(s),f=n.variables||r.variables,m=r.store,p=m.toReference,v=m.canRead;return{args:$E(n),field:n.field||null,fieldName:l,storeFieldName:s,variables:f,isReference:wn,toReference:p,storage:o,cache:e.cache,canRead:v,readField:function(){return e.readField(Cx(arguments,t,f),r)},mergeObjects:iR(r.store)}}function Cx(e,t,n){var r=e[0],o=e[1],s=e.length,l;return typeof r=="string"?l={fieldName:r,from:s>1?o:t}:(l=ne({},r),ri.call(l,"from")||(l.from=t)),globalThis.__DEV__!==!1&&l.from===void 0&&globalThis.__DEV__!==!1&&Fe.warn(8,Y7(Array.from(e))),l.variables===void 0&&(l.variables=n),l}function iR(e){return function(n,r){if(Sr(n)||Sr(r))throw lo(9);if(_r(n)&&_r(r)){var o=e.getFieldValue(n,"__typename"),s=e.getFieldValue(r,"__typename"),l=o&&s&&o!==s;if(l)return r;if(wn(n)&&Np(r))return e.merge(n.__ref,r),n;if(Np(n)&&wn(r))return e.merge(n,r.__ref),r;if(Np(n)&&Np(r))return ne(ne({},n),r)}return r}}function h3(e,t,n){var r="".concat(t).concat(n),o=e.flavors.get(r);return o||e.flavors.set(r,o=e.clientOnly===t&&e.deferred===n?e:ne(ne({},e),{clientOnly:t,deferred:n})),o}var LB=(function(){function e(t,n,r){this.cache=t,this.reader=n,this.fragments=r}return e.prototype.writeToStore=function(t,n){var r=this,o=n.query,s=n.result,l=n.dataId,f=n.variables,m=n.overwrite,p=Nd(o),v=xB();f=ne(ne({},fx(p)),f);var g=ne(ne({store:t,written:Object.create(null),merge:function(S,x){return v.merge(S,x)},variables:f,varString:Mc(f)},JT(o,this.fragments)),{overwrite:!!m,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:s||Object.create(null),dataId:l,selectionSet:p.selectionSet,mergeTree:{map:new Map},context:g});if(!wn(y))throw lo(12,s);return g.incomingById.forEach(function(S,x){var w=S.storeObject,R=S.mergeTree,T=S.fieldNodeSet,I=Fp(x);if(R&&R.map.size){var k=r.applyMerges(R,I,w,g);if(wn(k))return;w=k}if(globalThis.__DEV__!==!1&&!g.overwrite){var L=Object.create(null);T.forEach(function(j){j.selectionSet&&(L[j.name.value]=!0)});var H=function(j){return L[qc(j)]===!0},M=function(j){var K=R&&R.map.get(j);return!!(K&&K.info&&K.info.merge)};
76Object.keys(w).forEach(function(j){H(j)&&!M(j)&&PB(I,w,j,g.store)})}t.merge(x,w)}),t.retain(y.__ref),y},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,o=t.result,s=t.selectionSet,l=t.context,f=t.mergeTree,m=this.cache.policies,p=Object.create(null),v=r&&m.rootTypenamesById[r]||PE(o,s,l.fragmentMap)||r&&l.store.get(r,"__typename");typeof v=="string"&&(p.__typename=v);var g=function(){var k=Cx(arguments,p,l.variables);if(wn(k.from)){var L=l.incomingById.get(k.from.__ref);if(L){var H=m.readField(ne(ne({},k),{from:L.storeObject}),l);if(H!==void 0)return H}}return m.readField(k,l)},y=new Set;this.flattenFields(s,o,l,v).forEach(function(k,L){var H,M=_u(L),j=o[M];if(y.add(L),j!==void 0){var K=m.getStoreFieldName({typename:v,fieldName:L.name.value,field:L,variables:k.variables}),P=v5(f,K),q=n.processFieldValue(j,L,L.selectionSet?h3(k,!1,!1):k,P),Q=void 0;L.selectionSet&&(wn(q)||Np(q))&&(Q=g("__typename",q));var $=m.getMergeFunction(v,L.name.value,Q);$?P.info={field:L,typename:v,merge:$}:g5(f,K),p=k.merge(p,(H={},H[K]=q,H))}else globalThis.__DEV__!==!1&&!k.clientOnly&&!k.deferred&&!mx.added(L)&&!m.getReadFunction(v,L.name.value)&&globalThis.__DEV__!==!1&&Fe.error(13,_u(L),o)});try{var S=m.identify(o,{typename:v,selectionSet:s,fragmentMap:l.fragmentMap,storeObject:p,readField:g}),x=S[0],w=S[1];r=r||x,w&&(p=l.merge(p,w))}catch(k){if(!r)throw k}if(typeof r=="string"){var R=Fp(r),T=l.written[r]||(l.written[r]=[]);if(T.indexOf(s)>=0||(T.push(s),this.reader&&this.reader.isFresh(o,R,s,l)))return R;var I=l.incomingById.get(r);return I?(I.storeObject=l.merge(I.storeObject,p),I.mergeTree=QE(I.mergeTree,f),y.forEach(function(k){return I.fieldNodeSet.add(k)})):l.incomingById.set(r,{storeObject:p,mergeTree:s_(f)?void 0:f,fieldNodeSet:y}),R}return p},e.prototype.processFieldValue=function(t,n,r,o){var s=this;return!n.selectionSet||t===null?globalThis.__DEV__!==!1?DT(t):t:Sr(t)?t.map(function(l,f){var m=s.processFieldValue(l,n,r,v5(o,f));return g5(o,f),m}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:o})},e.prototype.flattenFields=function(t,n,r,o){o===void 0&&(o=PE(n,t,r.fragmentMap));var s=new Map,l=this.cache.policies,f=new wu(!1);return(function m(p,v){var g=f.lookup(p,v.clientOnly,v.deferred);g.visited||(g.visited=!0,p.selections.forEach(function(y){if(U1(y,r.variables)){var S=v.clientOnly,x=v.deferred;if(!(S&&x)&&Mi(y.directives)&&y.directives.forEach(function(T){var I=T.name.value;if(I==="client"&&(S=!0),I==="defer"){var k=K_(T,r.variables);(!k||k.if!==!1)&&(x=!0)}}),Bc(y)){var w=s.get(y);w&&(S=S&&w.clientOnly,x=x&&w.deferred),s.set(y,h3(r,S,x))}else{var R=W_(y,r.lookupFragment);if(!R&&y.kind===Ne.FRAGMENT_SPREAD)throw lo(14,y.name.value);R&&l.fragmentMatches(R,o,n,r.variables)&&m(R.selectionSet,h3(r,S,x))}}}))})(t,r),s},e.prototype.applyMerges=function(t,n,r,o,s){var l,f=this;if(t.map.size&&!wn(r)){var m=!Sr(r)&&(wn(n)||Np(n))?n:void 0,p=r;m&&!s&&(s=[wn(m)?m.__ref:m]);var v,g=function(y,S){return Sr(y)?typeof S=="number"?y[S]:void 0:o.store.getFieldValue(y,String(S))};t.map.forEach(function(y,S){var x=g(m,S),w=g(p,S);if(w!==void 0){s&&s.push(S);var R=f.applyMerges(y,x,w,o,s);R!==w&&(v=v||new Map,v.set(S,R)),s&&Fe(s.pop()===S)}}),v&&(r=Sr(p)?p.slice(0):ne({},p),v.forEach(function(y,S){r[S]=y}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,o,s&&(l=o.store).getStorage.apply(l,s)):r},e})(),oR=[];function v5(e,t){var n=e.map;return n.has(t)||n.set(t,oR.pop()||{map:new Map}),n.get(t)}function QE(e,t){if(e===t||!t||s_(t))return e;if(!e||s_(e))return t;var n=e.info&&t.info?ne(ne({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,o=r?new Map:e.map.size?e.map:t.map,s={info:n,map:o};if(r){var l=new Set(t.map.keys());e.map.forEach(function(f,m){s.map.set(m,QE(f,t.map.get(m))),l.delete(m)}),l.forEach(function(f){s.map.set(f,QE(t.map.get(f),e.map.get(f)))})}return s}function s_(e){return!e||!(e.info||e.map.size)}function g5(e,t){var n=e.map,r=n.get(t);r&&s_(r)&&(oR.push(r),n.delete(t))}var y5=new Set;function PB(e,t,n,r){var o=function(g){var y=r.getFieldValue(g,n);return typeof y=="object"&&y},s=o(e);if(s){var l=o(t);if(l&&!wn(s)&&!yn(s,l)&&!Object.keys(s).every(function(g){return r.getFieldValue(l,g)!==void 0})){var f=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),m=qc(n),p="".concat(f,".").concat(m);if(!y5.has(p)){y5.add(p);var v=[];
76!Sr(s)&&!Sr(l)&&[s,l].forEach(function(g){var y=r.getFieldValue(g,"__typename");typeof y=="string"&&!v.includes(y)&&v.push(y)}),globalThis.__DEV__!==!1&&Fe.warn(15,m,f,v.length?"either ensure all objects of type "+v.join(" and ")+" have an ID or a custom merge function, or ":"",p,ne({},s),ne({},l))}}}}var aR=(function(e){La(t,e);function t(n){n===void 0&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new RT(mx),r.assumeImmutableResults=!0,r.makeVar=NB,r.txCount=0,r.config=SB(n),r.addTypename=!!r.config.addTypename,r.policies=new DB({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return t.prototype.init=function(){var n=this.data=new x1.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,o=this.storeReader,s=this.config.fragments;this.storeWriter=new LB(this,this.storeReader=new RB({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:XT(this.config),canon:n?void 0:o&&o.canon,fragments:s}),s),this.maybeBroadcastWatch=E1(function(l,f){return r.broadcastWatch(l,f)},{max:this.config.resultCacheMaxSize||_s["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(l){var f=l.optimistic?r.optimisticData:r.data;if(u1(f)){var m=l.optimistic,p=l.id,v=l.variables;return f.makeCacheKey(l.query,l.callback,Mc({optimistic:m,id:p,variables:v}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(l){return l.resetCaching()})},t.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},t.prototype.extract=function(n){return n===void 0&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){var r=n.returnPartialData,o=r===void 0?!1:r;try{return this.storeReader.diffQueryAgainstStore(ne(ne({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:o})).result||null}catch(s){if(s instanceof WT)return null;throw s}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(n){if(ri.call(n,"id")&&!n.id)return!1;var r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(n){return this.storeReader.diffQueryAgainstStore(ne(ne({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(n){var r=this;return this.watches.size||kB(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&!r.watches.size&&l5(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){var r;Mc.reset(),Ac.reset(),this.addTypenameTransform.resetCache(),(r=this.config.fragments)===null||r===void 0||r.resetCaches();var o=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),o},t.prototype.retain=function(n,r){return(r?this.optimisticData:this.data).retain(n)},t.prototype.release=function(n,r){return(r?this.optimisticData:this.data).release(n)},t.prototype.identify=function(n){if(wn(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){globalThis.__DEV__!==!1&&Fe.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(ri.call(n,"id"))return!1;n=ne(ne({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(n){var r=this;return this.init(),Mc.reset(),n&&n.discardWatches?(this.watches.forEach(function(o){return r.maybeBroadcastWatch.forget(o)}),this.watches.clear(),l5(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(n){var r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(n){var r=this,o=n.update,s=n.optimistic,l=s===void 0?!0:s,f=n.removeOptimistic,m=n.onWatchUpdated,p,v=function(y){var S=r,x=S.data,w=S.optimisticData;++r.txCount,y&&(r.data=r.optimisticData=y);try{return p=o(r)}finally{--r.txCount,r.data=x,r.optimisticData=w}},g=new Set;return m&&!this.txCount&&this.broadcastWatches(ne(ne({},n),{onWatchUpdated:function(y){return g.add(y),!1}})),typeof l=="string"?this.optimisticData=this.optimisticData.addLayer(l,v):l===!1?v(this.data):v(),typeof f=="string"&&(this.optimisticData=this.optimisticData.removeLayer(f)),m&&g.size?(this.broadcastWatches(ne(ne({},n),{onWatchUpdated:function(y,S){var x=m.call(this,y,S);return x!==!1&&g.delete(y),x}})),g.size&&g.forEach(function(y){return r.maybeBroadcastWatch.dirty(y)})):this.broadcastWatches(n),p},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||r!==null})},t.prototype.transformDocument=function(n){return this.addTypenameToDocument(this.addFragmentsToDocument(n))},t.prototype.fragmentMatches=function(n,r){return this.policies.fragmentMatches(n,r)},t.prototype.lookupFragment=function(n){var r;return((r=this.config.fragments)===null||r===void 0?void 0:r.lookup(n))||null},t.prototype.broadcastWatches=function(n){var r=this;
76this.txCount||this.watches.forEach(function(o){return r.maybeBroadcastWatch(o,n)})},t.prototype.addFragmentsToDocument=function(n){var r=this.config.fragments;return r?r.transform(n):n},t.prototype.addTypenameToDocument=function(n){return this.addTypename?this.addTypenameTransform.transformDocument(n):n},t.prototype.broadcastWatch=function(n,r){var o=n.lastDiff,s=this.diff(n);r&&(n.optimistic&&typeof r.optimistic=="string"&&(s.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,n,s,o)===!1)||(!o||!yn(o.result,s.result))&&n.callback(n.lastDiff=s,o)},t})(QT);globalThis.__DEV__!==!1&&(aR.prototype.getMemoryInternals=Pj);var Zt;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(Zt||(Zt={}));function Ip(e){return e?e<7:!1}var b5=Object.assign,FB=Object.hasOwnProperty,f1=(function(e){La(t,e);function t(n){var r=n.queryManager,o=n.queryInfo,s=n.options,l=this,f=t.inactiveOnCreation.getValue();l=e.call(this,function(T){f&&(r.queries.set(l.queryId,o),f=!1);try{var I=T._subscription._observer;I&&!I.error&&(I.error=jB)}catch{}var k=!l.observers.size;l.observers.add(T);var L=l.last;return L&&L.error?T.error&&T.error(L.error):L&&L.result&&T.next&&T.next(l.maskResult(L.result)),k&&l.reobserve().catch(function(){}),function(){l.observers.delete(T)&&!l.observers.size&&l.tearDownQuery()}})||this,l.observers=new Set,l.subscriptions=new Set,l.dirty=!1,l.queryInfo=o,l.queryManager=r,l.waitForOwnResult=p3(s.fetchPolicy),l.isTornDown=!1,l.subscribeToMore=l.subscribeToMore.bind(l),l.maskResult=l.maskResult.bind(l);var m=r.defaultOptions.watchQuery,p=m===void 0?{}:m,v=p.fetchPolicy,g=v===void 0?"cache-first":v,y=s.fetchPolicy,S=y===void 0?g:y,x=s.initialFetchPolicy,w=x===void 0?S==="standby"?g:S:x;l.options=ne(ne({},s),{initialFetchPolicy:w,fetchPolicy:S}),l.queryId=o.queryId||r.generateQueryId();var R=Nd(l.query);return l.queryName=R&&R.name&&R.name.value,l}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var n=this;return new Promise(function(r,o){var s={next:function(f){r(f),n.observers.delete(s),n.observers.size||n.queryManager.removeQuery(n.queryId),setTimeout(function(){l.unsubscribe()},0)},error:o},l=n.subscribe(s)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(n){n===void 0&&(n=!0);var r=this.getLastResult(!0),o=this.queryInfo.networkStatus||r&&r.networkStatus||Zt.ready,s=ne(ne({},r),{loading:Ip(o),networkStatus:o}),l=this.options.fetchPolicy,f=l===void 0?"cache-first":l;if(!(p3(f)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var m=this.queryInfo.getDiff();(m.complete||this.options.returnPartialData)&&(s.data=m.result),yn(s.data,{})&&(s.data=void 0),m.complete?(delete s.partial,m.complete&&s.networkStatus===Zt.loading&&(f==="cache-first"||f==="cache-only")&&(s.networkStatus=Zt.ready,s.loading=!1)):s.partial=!0,s.networkStatus===Zt.ready&&(s.error||s.errors)&&(s.networkStatus=Zt.error),globalThis.__DEV__!==!1&&!m.complete&&!this.options.partialRefetch&&!s.loading&&!s.data&&!s.error&&sR(m.missing)}return n&&this.updateLastResult(s),s},t.prototype.getCurrentResult=function(n){return n===void 0&&(n=!0),this.maskResult(this.getCurrentFullResult(n))},t.prototype.isDifferentFromLastResult=function(n,r){if(!this.last)return!0;var o=this.queryManager.getDocumentInfo(this.query),s=this.queryManager.dataMasking,l=s?o.nonReactiveQuery:this.query,f=s||o.hasNonreactiveDirective?!VT(l,this.last.result,n,this.variables):!yn(this.last.result,n);return f||r&&!yn(this.last.variables,r)},t.prototype.getLast=function(n,r){var o=this.last;if(o&&o[n]&&(!r||yn(o.variables,this.variables)))return o[n]},t.prototype.getLastResult=function(n){return this.getLast("result",n)},t.prototype.getLastError=function(n){return this.getLast("error",n)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(n){var r,o={pollInterval:0},s=this.options.fetchPolicy;if(s==="no-cache"?o.fetchPolicy="no-cache":o.fetchPolicy="network-only",globalThis.__DEV__!==!1&&n&&FB.call(n,"variables")){var l=pT(this.query),f=l.variableDefinitions;(!f||!f.some(function(m){return m.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&Fe.warn(21,n,((r=l.name)===null||r===void 0?void 0:r.value)||l)}return n&&!yn(this.options.variables,n)&&(o.variables=this.options.variables=ne(ne({},this.options.variables),n)),this.queryInfo.resetLastWrite(),this.reobserve(o,Zt.refetch)},t.prototype.fetchMore=function(n){var r=this,o=ne(ne({},n.query?n:ne(ne(ne(ne({},this.options),{query:this.options.query}),n),{variables:ne(ne({},this.options.variables),n.variables)})),{fetchPolicy:"no-cache"});
76o.query=this.transformDocument(o.query);var s=this.queryManager.generateQueryId();this.lastQuery=n.query?this.transformDocument(this.options.query):o.query;var l=this.queryInfo,f=l.networkStatus;l.networkStatus=Zt.fetchMore,o.notifyOnNetworkStatusChange&&this.observe();var m=new Set,p=n?.updateQuery,v=this.options.fetchPolicy!=="no-cache";return v||Fe(p,22),this.queryManager.fetchQuery(s,o,Zt.fetchMore).then(function(g){if(r.queryManager.removeQuery(s),l.networkStatus===Zt.fetchMore&&(l.networkStatus=f),v)r.queryManager.cache.batch({update:function(x){var w=n.updateQuery;w?x.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(R){return w(R,{fetchMoreResult:g.data,variables:o.variables})}):x.writeQuery({query:o.query,variables:o.variables,data:g.data})},onWatchUpdated:function(x){m.add(x.query)}});else{var y=r.getLast("result"),S=p(y.data,{fetchMoreResult:g.data,variables:o.variables});r.reportResult(ne(ne({},y),{networkStatus:f,loading:Ip(f),data:S}),r.variables)}return r.maskResult(g)}).finally(function(){v&&!m.has(r.query)&&r.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(n){var r=this,o=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:function(s){var l=n.updateQuery;l&&r.updateQuery(function(f,m){return l(f,ne({subscriptionData:s},m))})},error:function(s){if(n.onError){n.onError(s);return}globalThis.__DEV__!==!1&&Fe.error(23,s)}});return this.subscriptions.add(o),function(){r.subscriptions.delete(o)&&o.unsubscribe()}},t.prototype.setOptions=function(n){return this.reobserve(n)},t.prototype.silentSetOptions=function(n){var r=zc(this.options,n||{});b5(this.options,r)},t.prototype.setVariables=function(n){return yn(this.variables,n)?this.observers.size?this.result():Promise.resolve():(this.options.variables=n,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},Zt.setVariables):Promise.resolve())},t.prototype.updateQuery=function(n){var r=this.queryManager,o=r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),s=o.result,l=o.complete,f=n(s,{variables:this.variables,complete:!!l,previousData:s});f&&(r.cache.writeQuery({query:this.options.query,data:f,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(n){this.options.pollInterval=n,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(n,r){if(r.nextFetchPolicy){var o=r.fetchPolicy,s=o===void 0?"cache-first":o,l=r.initialFetchPolicy,f=l===void 0?s:l;s==="standby"||(typeof r.nextFetchPolicy=="function"?r.fetchPolicy=r.nextFetchPolicy(s,{reason:n,options:r,observable:this,initialFetchPolicy:f}):n==="variables-changed"?r.fetchPolicy=f:r.fetchPolicy=r.nextFetchPolicy)}return r.fetchPolicy},t.prototype.fetch=function(n,r,o){var s=this.queryManager.getOrCreateQuery(this.queryId);return s.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(s,n,r,o)},t.prototype.updatePolling=function(){var n=this;if(!this.queryManager.ssrMode){var r=this,o=r.pollingInfo,s=r.options.pollInterval;if(!s||!this.hasObservers()){o&&(clearTimeout(o.timeout),delete this.pollingInfo);return}if(!(o&&o.interval===s)){Fe(s,24);var l=o||(this.pollingInfo={});l.interval=s;var f=function(){var p,v;n.pollingInfo&&(!Ip(n.queryInfo.networkStatus)&&!(!((v=(p=n.options).skipPollAttempt)===null||v===void 0)&&v.call(p))?n.reobserve({fetchPolicy:n.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},Zt.poll).then(m,m):m())},m=function(){var p=n.pollingInfo;p&&(clearTimeout(p.timeout),p.timeout=setTimeout(f,p.interval))};m()}}},t.prototype.updateLastResult=function(n,r){r===void 0&&(r=this.variables);var o=this.getLastError();return o&&this.last&&!yn(r,this.last.variables)&&(o=void 0),this.last=ne({result:this.queryManager.assumeImmutableResults?n:DT(n),variables:r},o?{error:o}:null)},t.prototype.reobserveAsConcast=function(n,r){var o=this;this.isTornDown=!1;var s=r===Zt.refetch||r===Zt.fetchMore||r===Zt.poll,l=this.options.variables,f=this.options.fetchPolicy,m=zc(this.options,n||{}),p=s?m:b5(this.options,m),v=this.transformDocument(p.query);this.lastQuery=v,s||(this.updatePolling(),n&&n.variables&&!yn(n.variables,l)&&p.fetchPolicy!=="standby"&&(p.fetchPolicy===f||typeof p.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",p),r===void 0&&(r=Zt.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=p3(p.fetchPolicy));var g=function(){o.concast===x&&(o.waitForOwnResult=!1)},y=p.variables&&ne({},p.variables),S=this.fetch(p,r,v),x=S.concast,w=S.fromLink,R={next:function(T){yn(o.variables,y)&&(g
76(),o.reportResult(T,y))},error:function(T){yn(o.variables,y)&&(jT(T)||(T=new vs({networkError:T})),g(),o.reportError(T,y))}};return!s&&(w||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=x,this.observer=R),x.addObserver(R),x},t.prototype.reobserve=function(n,r){return AU(this.reobserveAsConcast(n,r).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=this.last;this.resetLastResults();var s=this.subscribe.apply(this,n);return this.last=o,s},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(n,r){var o=this.getLastError(),s=this.isDifferentFromLastResult(n,r);(o||!n.partial||this.options.returnPartialData)&&this.updateLastResult(n,r),(o||s)&&l1(this.observers,"next",this.maskResult(n))},t.prototype.reportError=function(n,r){var o=ne(ne({},this.getLastResult()),{error:n,errors:n.graphQLErrors,networkStatus:Zt.error,loading:!1});this.updateLastResult(o,r),l1(this.observers,"error",this.last.error=n)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(n){return this.queryManager.transform(n)},t.prototype.maskResult=function(n){return n&&"data"in n?ne(ne({},n),{data:this.queryManager.maskOperation({document:this.query,data:n.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):n},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var n=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0)))},t.prototype.notify=function(){if(this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy=="cache-only"||this.options.fetchPolicy=="cache-and-network"||!Ip(this.queryInfo.networkStatus))){var n=this.queryInfo.getDiff();n.fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()}this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var n=this.options,r=n.fetchPolicy,o=n.nextFetchPolicy;return r==="cache-and-network"||r==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(s,l){return this.nextFetchPolicy=o,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(s,l):r}}):this.reobserve()},t.inactiveOnCreation=new V1,t})(An);LT(f1);function jB(e){globalThis.__DEV__!==!1&&Fe.error(25,e.message,e.stack)}function sR(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&Fe.debug(26,e)}function p3(e){return e==="network-only"||e==="no-cache"||e==="standby"}var Mp=new(Ud?WeakMap:Map);function m3(e,t){var n=e[t];typeof n=="function"&&(e[t]=function(){return Mp.set(e,(Mp.get(e)+1)%1e15),n.apply(this,arguments)})}var v3=(function(){function e(t,n){n===void 0&&(n=t.generateQueryId()),this.queryId=n,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=t.cache;Mp.has(r)||(Mp.set(r,0),m3(r,"evict"),m3(r,"modify"),m3(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||Zt.loading;return this.variables&&this.networkStatus!==Zt.loading&&!yn(this.variables,t.variables)&&(n=Zt.setVariables),yn(t.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this.getDiffOptions();if(this.lastDiff&&yn(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&n.options.fetchPolicy==="no-cache")return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var n;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(n=this.observableQuery)===null||n===void 0?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var n,r,o=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&(!((n=this.observableQuery)===null||n===void 0)&&n.getLastError())||(this.updateLastDiff(t),yn(o&&o.result,t&&t.result)||(r=this.observableQuery)===null||r===void 0||r.sc
76heduleNotify())},e.prototype.setObservableQuery=function(t){t!==this.observableQuery&&(this.observableQuery=t,t&&(t.queryInfo=this))},e.prototype.stop=function(){var t;if(!this.stopped){this.stopped=!0,(t=this.observableQuery)===null||t===void 0||t.resetNotifications(),this.cancel();var n=this.observableQuery;n&&n.stopPolling()}},e.prototype.cancel=function(){var t;(t=this.cancelWatch)===null||t===void 0||t.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(t){var n=this;t===void 0&&(t=this.variables);var r=this.observableQuery;if(!(r&&r.options.fetchPolicy==="no-cache")){var o=ne(ne({},this.getDiffOptions(t)),{watcher:this,callback:function(s){return n.setDiff(s)}});(!this.lastWatch||!yn(o,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=o))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===Mp.get(this.cache)&&yn(n,r.variables)&&yn(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,o){var s=this,l,f=new Hc,m=Mi(t.errors)?t.errors.slice(0):[];if((l=this.observableQuery)===null||l===void 0||l.resetNotifications(),"incremental"in t&&Mi(t.incremental)){var p=PT(this.getDiff().result,t);t.data=p}else if("hasNext"in t&&t.hasNext){var v=this.getDiff();t.data=f.merge(v.result,t.data)}this.graphQLErrors=m,r.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):o!==0&&(WE(t,r.errorPolicy)?this.cache.performTransaction(function(g){if(s.shouldWrite(t,r.variables))g.writeQuery({query:n,data:t.data,variables:r.variables,overwrite:o===1}),s.lastWrite={result:t,variables:r.variables,dmCount:Mp.get(s.cache)};else if(s.lastDiff&&s.lastDiff.diff.complete){t.data=s.lastDiff.diff.result;return}var y=s.getDiffOptions(r.variables),S=g.diff(y);!s.stopped&&yn(s.variables,r.variables)&&s.updateWatch(r.variables),s.updateLastDiff(S,y),S.complete&&(t.data=S.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Zt.ready},e.prototype.markError=function(t){var n;return this.networkStatus=Zt.error,this.lastWrite=void 0,(n=this.observableQuery)===null||n===void 0||n.resetNotifications(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e})();function WE(e,t){t===void 0&&(t="none");var n=t==="ignore"||t==="all",r=!Fb(e);return!r&&n&&e.data&&(r=!0),r}var UB=Object.prototype.hasOwnProperty,_5=Object.create(null),BB=(function(){function e(t){var n=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Y_(_s["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new wu(!1),this.noCacheWarningsByQueryId=new Set;var r=new RT(function(s){return n.cache.transformDocument(s)},{cache:!1});this.cache=t.cache,this.link=t.link,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientAwareness=t.clientAwareness,this.localState=t.localState,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults,this.dataMasking=t.dataMasking;var o=t.documentTransform;this.documentTransform=o?r.concat(o).concat(r):r,this.defaultContext=t.defaultContext||Object.create(null),(this.onBroadcast=t.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(lo(27))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return fl(this,arguments,void 0,function(n){var r,o,s,l,f,m,p,v=n.mutation,g=n.variables,y=n.optimisticResponse,S=n.updateQueries,x=n.refetchQueries,w=x===void 0?[]:x,R=n.awaitRefetchQueries,T=R===void 0?!1:R,I=n.update,k=n.onQueryUpdated,L=n.fetchPolicy,H=L===void 0?((m=this.defaultOptions.mutate)===null||m===void 0?void 0:m.fetchPolicy)||"network-only":L,M=n.errorPolicy,j=M===void 0?((p=this.defaultOptions.mutate)===null||p===void 0?void 0:p.errorPolicy)||"none":M,K=n.keepRootFields,P=n.context;return dl(this,function(q){switch(q.label){case 0:return Fe(v,28),Fe(H==="network-only"||H==="no-cache",29),r=this.generateMutationId(),v=this.cache.transformForLink(this.transform(v)),o=this.getDocumentInfo(v).hasClientExports,g=this.getVariables(v,g),o?[4,this.localState.addExportedVariables(v,g,P)]:[3,2];case 1:g=q.sent(),q.label=2;case 2:return s=this.mutationStore&&(this.mutationStore[r]={mutation:v,variables:g,loading:!0,error:null}),l=y&&this.markMutationOptimistic(y,{mutationId:r,document:v,variables:g,fetchPolicy:H,errorPolicy:j,context:P,updateQueries:S,update:
76I,keepRootFields:K}),this.broadcastQueries(),f=this,[2,new Promise(function(Q,$){return u3(f.getObservableFromLink(v,ne(ne({},P),{optimisticResponse:l?y:void 0}),g,{},!1),function(W){if(Fb(W)&&j==="none")throw new vs({graphQLErrors:BE(W)});s&&(s.loading=!1,s.error=null);var G=ne({},W);return typeof w=="function"&&(w=w(G)),j==="ignore"&&Fb(G)&&delete G.errors,f.markMutationResult({mutationId:r,result:G,document:v,variables:g,fetchPolicy:H,errorPolicy:j,context:P,update:I,updateQueries:S,awaitRefetchQueries:T,refetchQueries:w,removeOptimistic:l?r:void 0,onQueryUpdated:k,keepRootFields:K})}).subscribe({next:function(W){f.broadcastQueries(),(!("hasNext"in W)||W.hasNext===!1)&&Q(ne(ne({},W),{data:f.maskOperation({document:v,data:W.data,fetchPolicy:H,id:r})}))},error:function(W){s&&(s.loading=!1,s.error=W),l&&f.cache.removeOptimistic(r),f.broadcastQueries(),$(W instanceof vs?W:new vs({networkError:W}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;n===void 0&&(n=this.cache);var o=t.result,s=[],l=t.fetchPolicy==="no-cache";if(!l&&WE(o,t.errorPolicy)){if(jp(o)||s.push({result:o.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),jp(o)&&Mi(o.incremental)){var f=n.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),m=void 0;f.result&&(m=PT(f.result,o)),typeof m<"u"&&(o.data=m,s.push({result:m,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var p=t.updateQueries;p&&this.queries.forEach(function(g,y){var S=g.observableQuery,x=S&&S.queryName;if(!(!x||!UB.call(p,x))){var w=p[x],R=r.queries.get(y),T=R.document,I=R.variables,k=n.diff({query:T,variables:I,returnPartialData:!0,optimistic:!1}),L=k.result,H=k.complete;if(H&&L){var M=w(L,{mutationResult:o,queryName:T&&Zv(T)||void 0,queryVariables:I});M&&s.push({result:M,dataId:"ROOT_QUERY",query:T,variables:I})}}})}if(s.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var v=[];if(this.refetchQueries({updateCache:function(g){l||s.forEach(function(w){return g.write(w)});var y=t.update,S=!DU(o)||jp(o)&&!o.hasNext;if(y){if(!l){var x=g.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});x.complete&&(o=ne(ne({},o),{data:x.result}),"incremental"in o&&delete o.incremental,"hasNext"in o&&delete o.hasNext)}S&&y(g,o,{context:t.context,variables:t.variables})}!l&&!t.keepRootFields&&S&&g.modify({id:"ROOT_MUTATION",fields:function(w,R){var T=R.fieldName,I=R.DELETE;return T==="__typename"?w:I}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(g){return v.push(g)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(v).then(function(){return o})}return Promise.resolve(o)},e.prototype.markMutationOptimistic=function(t,n){var r=this,o=typeof t=="function"?t(n.variables,{IGNORE:_5}):t;return o===_5?!1:(this.cache.recordOptimisticTransaction(function(s){try{r.markMutationResult(ne(ne({},n),{result:{data:o}}),s)}catch(l){globalThis.__DEV__!==!1&&Fe.error(l)}},n.mutationId),!0)},e.prototype.fetchQuery=function(t,n,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(t),n,r).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,r){t[r]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var n=this.transformCache;if(!n.has(t)){var r={hasClientExports:mj(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:_1(["nonreactive"],t),nonReactiveQuery:yU(t),clientQuery:this.localState.clientQuery(t),serverQuery:AT([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],t),defaultVars:fx(Nd(t)),asQuery:ne(ne({},t),{definitions:t.definitions.map(function(o){return o.kind==="OperationDefinition"&&o.operation!=="query"?ne(ne({},o),{operation:"query"}):o})})};n.set(t,r)}return n.get(t)},e.prototype.getVariables=function(t,n){return ne(ne({},this.getDocumentInfo(t).defaultVars),n)},e.prototype.watchQuery=function(t){var n=this.transform(t.query);t=ne(ne({},t),{variables:this.getVariables(n,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new v3(this),o=new f1({queryManager:this,queryInfo:r,options:t});return o.lastQuery=n,f1.inactiveOnCreation.getValue()||this.queries.set(o.queryId,r),r.init({document:n,observableQuery:o,variables:o.variables}),o},e.prototype.query=function(t,n){var r=this;n===void 0&&(n=this.generateQueryId()),Fe(t.query,30),Fe(t.query.kind==="Document",31),Fe(!t.returnPartialData,32),Fe(!t.pollInterval,33);var o=this.transform(t.query);return this.fetchQuery(n,ne(ne({},t),{query:o})).then(function(s){return s&&ne(ne({},s),{data:r.maskOperation({document:o,data:s.data,fetchPolicy:t.fetchPolicy,id:n})})}).finally(function(){return r.stopQuery(n)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}
76),this.cancelPendingFetches(lo(34)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=Zt.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;t===void 0&&(t="active");var r=new Map,o=new Map,s=new Map,l=new Set;return Array.isArray(t)&&t.forEach(function(f){if(typeof f=="string")o.set(f,f),s.set(f,!1);else if(qj(f)){var m=Ac(n.transform(f));o.set(m,Zv(f)),s.set(m,!1)}else _r(f)&&f.query&&l.add(f)}),this.queries.forEach(function(f,m){var p=f.observableQuery,v=f.document;if(p){if(t==="all"){r.set(m,p);return}var g=p.queryName,y=p.options.fetchPolicy;if(y==="standby"||t==="active"&&!p.hasObservers())return;(t==="active"||g&&s.has(g)||v&&s.has(Ac(v)))&&(r.set(m,p),g&&s.set(g,!0),v&&s.set(Ac(v),!0))}}),l.size&&l.forEach(function(f){var m=OE("legacyOneTimeQuery"),p=n.getOrCreateQuery(m).init({document:f.query,variables:f.variables}),v=new f1({queryManager:n,queryInfo:p,options:ne(ne({},f),{fetchPolicy:"network-only"})});Fe(v.queryId===m),p.setObservableQuery(v),r.set(m,v)}),globalThis.__DEV__!==!1&&s.size&&s.forEach(function(f,m){if(!f){var p=o.get(m);p?globalThis.__DEV__!==!1&&Fe.warn(35,p):globalThis.__DEV__!==!1&&Fe.warn(36)}}),r},e.prototype.reFetchObservableQueries=function(t){var n=this;t===void 0&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(o,s){var l=o.options.fetchPolicy;o.resetLastResults(),(t||l!=="standby"&&l!=="cache-only")&&r.push(o.refetch()),(n.queries.get(s)||o.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(t){var n=this,r=t.query,o=t.variables,s=t.fetchPolicy,l=t.errorPolicy,f=l===void 0?"none":l,m=t.context,p=m===void 0?{}:m,v=t.extensions,g=v===void 0?{}:v;r=this.transform(r),o=this.getVariables(r,o);var y=function(x){return n.getObservableFromLink(r,p,x,g).map(function(w){s!=="no-cache"&&(WE(w,f)&&n.cache.write({query:r,result:w.data,dataId:"ROOT_SUBSCRIPTION",variables:x}),n.broadcastQueries());var R=Fb(w),T=_x(w);if(R||T){var I={};if(R&&(I.graphQLErrors=w.errors),T&&(I.protocolErrors=w.extensions[H1]),f==="none"||T)throw new vs(I)}return f==="ignore"&&delete w.errors,w})};if(this.getDocumentInfo(r).hasClientExports){var S=this.localState.addExportedVariables(r,o,p).then(y);return new An(function(x){var w=null;return S.then(function(R){return w=R.subscribe(x)},x.error),function(){return w&&w.unsubscribe()}})}return y(o)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){var n;this.fetchCancelFns.delete(t),this.queries.has(t)&&((n=this.queries.get(t))===null||n===void 0||n.stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){var n;return(n=t.observableQuery)===null||n===void 0?void 0:n.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,n,r,o,s){var l=this,f;s===void 0&&(s=(f=n?.queryDeduplication)!==null&&f!==void 0?f:this.queryDeduplication);var m,p=this.getDocumentInfo(t),v=p.serverQuery,g=p.clientQuery;if(v){var y=this,S=y.inFlightLinkObservables,x=y.link,w={query:v,variables:r,operationName:Zv(v)||void 0,context:this.prepareContext(ne(ne({},n),{forceFetch:!s})),extensions:o};if(n=w.context,s){var R=Ac(v),T=Mc(r),I=S.lookup(R,T);if(m=I.observable,!m){var k=new Ep([VE(x,w)]);m=I.observable=k,k.beforeNext(function L(H,M){H==="next"&&"hasNext"in M&&M.hasNext?k.beforeNext(L):S.remove(R,T)})}}else m=new Ep([VE(x,w)])}else m=new Ep([An.of({data:{}})]),n=this.prepareContext(n);return g&&(m=u3(m,function(L){return l.localState.runResolvers({document:g,remoteResult:L,context:n,variables:r})})),m},e.prototype.getResultsFromLink=function(t,n,r){var o=t.lastRequestId=this.generateRequestId(),s=this.cache.transformForLink(r.query);return u3(this.getObservableFromLink(s,r.context,r.variables),function(l){var f=BE(l),m=f.length>0,p=r.errorPolicy;if(o>
76=t.lastRequestId){if(m&&p==="none")throw t.markError(new vs({graphQLErrors:f}));t.markResult(l,s,r,n),t.markReady()}var v={data:l.data,loading:!1,networkStatus:Zt.ready};return m&&p==="none"&&(v.data=void 0),m&&p!=="ignore"&&(v.errors=f,v.networkStatus=Zt.error),v},function(l){var f=jT(l)?l:new vs({networkError:l});throw o>=t.lastRequestId&&t.markError(f),f})},e.prototype.fetchConcastWithInfo=function(t,n,r,o){var s=this;r===void 0&&(r=Zt.loading),o===void 0&&(o=n.query);var l=this.getVariables(o,n.variables),f=this.defaultOptions.watchQuery,m=n.fetchPolicy,p=m===void 0?f&&f.fetchPolicy||"cache-first":m,v=n.errorPolicy,g=v===void 0?f&&f.errorPolicy||"none":v,y=n.returnPartialData,S=y===void 0?!1:y,x=n.notifyOnNetworkStatusChange,w=x===void 0?!1:x,R=n.context,T=R===void 0?{}:R,I=Object.assign({},n,{query:o,variables:l,fetchPolicy:p,errorPolicy:g,returnPartialData:S,notifyOnNetworkStatusChange:w,context:T}),k=function(K){I.variables=K;var P=s.fetchQueryByPolicy(t,I,r);return I.fetchPolicy!=="standby"&&P.sources.length>0&&t.observableQuery&&t.observableQuery.applyNextFetchPolicy("after-fetch",n),P},L=function(){return s.fetchCancelFns.delete(t.queryId)};this.fetchCancelFns.set(t.queryId,function(K){L(),setTimeout(function(){return H.cancel(K)})});var H,M;if(this.getDocumentInfo(I.query).hasClientExports)H=new Ep(this.localState.addExportedVariables(I.query,I.variables,I.context).then(k).then(function(K){return K.sources})),M=!0;else{var j=k(I.variables);M=j.fromLink,H=new Ep(j.sources)}return H.promise.then(L,L),{concast:H,fromLink:M}},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,o=t.include,s=t.optimistic,l=s===void 0?!1:s,f=t.removeOptimistic,m=f===void 0?l?OE("refetchQueries"):void 0:f,p=t.onQueryUpdated,v=new Map;o&&this.getObservableQueries(o).forEach(function(y,S){v.set(S,{oq:y,lastDiff:(n.queries.get(S)||y.queryInfo).getDiff()})});var g=new Map;return r&&this.cache.batch({update:r,optimistic:l&&m||!1,removeOptimistic:m,onWatchUpdated:function(y,S,x){var w=y.watcher instanceof v3&&y.watcher.observableQuery;if(w){if(p){v.delete(w.queryId);var R=p(w,S,x);return R===!0&&(R=w.refetch()),R!==!1&&g.set(w,R),R}p!==null&&v.set(w.queryId,{oq:w,lastDiff:x,diff:S})}}}),v.size&&v.forEach(function(y,S){var x=y.oq,w=y.lastDiff,R=y.diff,T;p&&(R||(R=n.cache.diff(x.queryInfo.getDiffOptions())),T=p(x,R,w)),(!p||T===!0)&&(T=x.refetch()),T!==!1&&g.set(x,T),S.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(S)}),m&&this.cache.removeOptimistic(m),g},e.prototype.maskOperation=function(t){var n,r,o,s=t.document,l=t.data;if(globalThis.__DEV__!==!1){var f=t.fetchPolicy,m=t.id,p=(n=Nd(s))===null||n===void 0?void 0:n.operation,v=((r=p?.[0])!==null&&r!==void 0?r:"o")+m;this.dataMasking&&f==="no-cache"&&!Tj(s)&&!this.noCacheWarningsByQueryId.has(v)&&(this.noCacheWarningsByQueryId.add(v),globalThis.__DEV__!==!1&&Fe.warn(37,(o=Zv(s))!==null&&o!==void 0?o:"Unnamed ".concat(p??"operation")))}return this.dataMasking?_B(l,s,this.cache):l},e.prototype.maskFragment=function(t){var n=t.data,r=t.fragment,o=t.fragmentName;return this.dataMasking?$T(n,r,this.cache,o):n},e.prototype.fetchQueryByPolicy=function(t,n,r){var o=this,s=n.query,l=n.variables,f=n.fetchPolicy,m=n.refetchWritePolicy,p=n.errorPolicy,v=n.returnPartialData,g=n.context,y=n.notifyOnNetworkStatusChange,S=t.networkStatus;t.init({document:s,variables:l,networkStatus:r});var x=function(){return t.getDiff()},w=function(L,H){H===void 0&&(H=t.networkStatus||Zt.loading);var M=L.result;globalThis.__DEV__!==!1&&!v&&!yn(M,{})&&sR(L.missing);var j=function(K){return An.of(ne({data:K,loading:Ip(H),networkStatus:H},L.complete?null:{partial:!0}))};return M&&o.getDocumentInfo(s).hasForcedResolvers?o.localState.runResolvers({document:s,remoteResult:{data:M},context:g,variables:l,onlyRunForcedResolvers:!0}).then(function(K){return j(K.data||void 0)}):p==="none"&&H===Zt.refetch&&Array.isArray(L.missing)?j(void 0):j(M)},R=f==="no-cache"?0:r===Zt.refetch&&m!=="merge"?1:2,T=function(){return o.getResultsFromLink(t,R,{query:s,variables:l,context:g,fetchPolicy:f,errorPolicy:p})},I=y&&typeof S=="number"&&S!==r&&Ip(r);switch(f){default:case"cache-first":{var k=x();return k.complete?{fromLink:!1,sources:[w(k,t.markReady())]}:v||I?{fromLink:!0,sources:[w(k),T()]}:{fromLink:!0,sources:[T()]}}case"cache-and-network":{var k=x();return k.complete||v||I?{fromLink:!0,sources:[w(k),T()]}:{fromLink:!0,sources:[T()]}}case"cache-only":return{fromLink:!1,sources:[w(x(),t.markReady())]};
76case"network-only":return I?{fromLink:!0,sources:[w(x()),T()]}:{fromLink:!0,sources:[T()]};case"no-cache":return I?{fromLink:!0,sources:[w(t.getDiff()),T()]}:{fromLink:!0,sources:[T()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new v3(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var n=this.localState.prepareContext(t);return ne(ne(ne({},this.defaultContext),n),{clientAwareness:this.clientAwareness})},e})(),VB=(function(){function e(t){var n=t.cache,r=t.client,o=t.resolvers,s=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),o&&this.addResolvers(o),s&&this.setFragmentMatcher(s)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=VC(n.resolvers,r)}):this.resolvers=VC(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){return fl(this,arguments,void 0,function(n){var r=n.document,o=n.remoteResult,s=n.context,l=n.variables,f=n.onlyRunForcedResolvers,m=f===void 0?!1:f;return dl(this,function(p){return r?[2,this.resolveDocument(r,o.data,s,l,this.fragmentMatcher,m).then(function(v){return ne(ne({},o),{data:v.result})})]:[2,o]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return _1(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return kT(t)},e.prototype.prepareContext=function(t){var n=this.cache;return ne(ne({},t),{cache:n,getCacheKey:function(r){return n.identify(r)}})},e.prototype.addExportedVariables=function(t){return fl(this,arguments,void 0,function(n,r,o){return r===void 0&&(r={}),o===void 0&&(o={}),dl(this,function(s){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,r)||{},this.prepareContext(o),r).then(function(l){return ne(ne({},r),l.exportedVariables)})]:[2,ne({},r)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return bs(t,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(n=r.arguments.some(function(o){return o.name.value==="always"&&o.value.kind==="BooleanValue"&&o.value.value===!0}),n))return $_}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:gU(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n){return fl(this,arguments,void 0,function(r,o,s,l,f,m){var p,v,g,y,S,x,w,R,T,I,k;return s===void 0&&(s={}),l===void 0&&(l={}),f===void 0&&(f=function(){return!0}),m===void 0&&(m=!1),dl(this,function(L){return p=B1(r),v=bm(r),g=gm(v),y=this.collectSelectionsToResolve(p,g),S=p.operation,x=S?S.charAt(0).toUpperCase()+S.slice(1):"Query",w=this,R=w.cache,T=w.client,I={fragmentMap:g,context:ne(ne({},s),{cache:R,client:T}),variables:l,fragmentMatcher:f,defaultOperationType:x,exportedVariables:{},selectionsToResolve:y,onlyRunForcedResolvers:m},k=!1,[2,this.resolveSelectionSet(p.selectionSet,k,o,I).then(function(H){return{result:H,exportedVariables:I.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,o){return fl(this,void 0,void 0,function(){var s,l,f,m,p,v=this;return dl(this,function(g){return s=o.fragmentMap,l=o.context,f=o.variables,m=[r],p=function(y){return fl(v,void 0,void 0,function(){var S,x;return dl(this,function(w){return!n&&!o.selectionsToResolve.has(y)?[2]:U1(y,f)?Bc(y)?[2,this.resolveField(y,n,r,o).then(function(R){var T;typeof R<"u"&&m.push((T={},T[_u(y)]=R,T))})]:(nU(y)?S=y:(S=s[y.name.value],Fe(S,19,y.name.value)),S&&S.typeCondition&&(x=S.typeCondition.name.value,o.fragmentMatcher(r,x,l))?[2,this.resolveSelectionSet(S.selectionSet,n,r,o).then(function(R){m.push(R)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(p)).then(function(){return J_(m)})]})})},e.prototype.resolveField=function(t,n,r,o){return fl(this,void 0,void 0,function(){var s,l,f,m,p,v,g,y,S,x=this;return dl(this,function(w){return r?(s=o.variables,l=t.name.value,f=_u(t),m=l!==f,p=r[f]||r[l],v=Promise.resolve(p),(!o.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(g=r.__typename||o.defaultOperationType,y=this.resolvers&&this.resolvers[g],y&&(S=y[m?l:f],S&&(v=Promise.resolve(Ex.withValue(this.cache,S,[r,K_(t,s),o.context,{field:t,fragmentMap:o.fragmentMap}]))))),[2,v.then(function(R){var T,I;
76if(R===void 0&&(R=p),t.directives&&t.directives.forEach(function(L){L.name.value==="export"&&L.arguments&&L.arguments.forEach(function(H){H.name.value==="as"&&H.value.kind==="StringValue"&&(o.exportedVariables[H.value.value]=R)})}),!t.selectionSet||R==null)return R;var k=(I=(T=t.directives)===null||T===void 0?void 0:T.some(function(L){return L.name.value==="client"}))!==null&&I!==void 0?I:!1;if(Array.isArray(R))return x.resolveSubSelectedArray(t,n||k,R,o);if(t.selectionSet)return x.resolveSelectionSet(t.selectionSet,n||k,R,o)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,o){var s=this;return Promise.all(r.map(function(l){if(l===null)return null;if(Array.isArray(l))return s.resolveSubSelectedArray(t,n,l,o);if(t.selectionSet)return s.resolveSelectionSet(t.selectionSet,n,l,o)}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(l){return!Array.isArray(l)},o=this.selectionsToResolveCache;function s(l){if(!o.has(l)){var f=new Set;o.set(l,f),bs(l,{Directive:function(m,p,v,g,y){m.name.value==="client"&&y.forEach(function(S){r(S)&&IC(S)&&f.add(S)})},FragmentSpread:function(m,p,v,g,y){var S=n[m.name.value];Fe(S,20,m.name.value);var x=s(S);x.size>0&&(y.forEach(function(w){r(w)&&IC(w)&&f.add(w)}),f.add(m),x.forEach(function(w){f.add(w)}))}})}return o.get(l)}return s(t)},e})(),S5=!1,lR=(function(){function e(t){var n=this,r;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw lo(16);var o=t.uri,s=t.credentials,l=t.headers,f=t.cache,m=t.documentTransform,p=t.ssrMode,v=p===void 0?!1:p,g=t.ssrForceFetchDelay,y=g===void 0?0:g,S=t.connectToDevTools,x=t.queryDeduplication,w=x===void 0?!0:x,R=t.defaultOptions,T=t.defaultContext,I=t.assumeImmutableResults,k=I===void 0?f.assumeImmutableResults:I,L=t.resolvers,H=t.typeDefs,M=t.fragmentMatcher,j=t.name,K=t.version,P=t.devtools,q=t.dataMasking,Q=t.link;Q||(Q=o?new dB({uri:o,credentials:s,headers:l}):Jo.empty()),this.link=Q,this.cache=f,this.disableNetworkFetches=v||y>0,this.queryDeduplication=w,this.defaultOptions=R||Object.create(null),this.typeDefs=H,this.devtoolsConfig=ne(ne({},P),{enabled:(r=P?.enabled)!==null&&r!==void 0?r:S}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),y&&setTimeout(function(){return n.disableNetworkFetches=!1},y),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=rx,this.localState=new VB({cache:f,client:this,resolvers:L,fragmentMatcher:M}),this.queryManager=new BB({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:T,documentTransform:m,queryDeduplication:w,ssrMode:v,dataMasking:!!q,clientAwareness:{name:j,version:K},localState:this.localState,assumeImmutableResults:k,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this,!S5&&globalThis.__DEV__!==!1&&(S5=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,o=r&&r.userAgent,s=void 0;typeof o=="string"&&(o.indexOf("Chrome/")>-1?s="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":o.indexOf("Firefox/")>-1&&(s="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),s&&globalThis.__DEV__!==!1&&Fe.log("Download the Apollo DevTools for a better development experience: %s",s)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform}
76,enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=wd(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=ne(ne({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=wd(this.defaultOptions.query,t)),Fe(t.fetchPolicy!=="cache-and-network",17),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=ne(ne({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=wd(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){var n=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(t).map(function(o){return ne(ne({},o),{data:n.queryManager.maskOperation({document:t.query,data:o.data,fetchPolicy:t.fetchPolicy,id:r})})})},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!1),this.cache.readQuery(t,n)},e.prototype.watchFragment=function(t){var n;return this.cache.watchFragment(ne(ne({},t),(n={},n[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,n)))},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return VE(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(n){return n()}))})},e.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),r=[],o=[];n.forEach(function(l,f){r.push(f),o.push(l)});var s=Promise.all(o);return s.queries=r,s.results=o,s.catch(function(l){globalThis.__DEV__!==!1&&Fe.debug(18,l)}),s},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e})();globalThis.__DEV__!==!1&&(lR.prototype.getMemoryInternals=Lj);var Bb=new Map,YE=new Map,uR=!0,l_=!1;function cR(e){return e.replace(/[\s,]+/g," ").trim()}function HB(e){return cR(e.source.body.substring(e.start,e.end))}function zB(e){var t=new Set,n=[];return e.definitions.forEach(function(r){if(r.kind==="FragmentDefinition"){var o=r.name.value,s=HB(r.loc),l=YE.get(o);l&&!l.has(s)?uR&&console.warn("Warning: fragment with name "+o+` already exists. 77graphql-tag enforces all fragment names across your application to be unique; read more about 78this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):l||YE.set(o,l=new Set),l.add(s),t.has(s)||(t.add(s),n.push(r))}else n.push(r)}),ne(ne({},e),{definitions:n})}function qB(e){var t=new Set(e.definitions);t.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(o){var s=r[o];s&&typeof s=="object"&&t.add(s)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function GB(e){var t=cR(e);if(!Bb.has(t)){var n=oj(e,{experimentalFragmentVariables:l_,allowLegacyFragmentVariables:l_});if(!n||n.kind!=="Document")throw new Error("Not a valid GraphQL document.");Bb.set(t,qB(zB(n)))}return Bb.get(t)}function Id(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];typeof e=="string"&&(e=[e]);var r=e[0];return t.forEach(function(o,s){o&&o.kind==="Document"?r+=o.loc.source.body:r+=o,r+=e[s+1]}),GB(r)}function $B(){Bb.clear(),YE.clear()}function QB(){uR=!1}function WB(){l_=!0}function YB(){l_=!1}var jv={gql:Id,resetCaches:$B,disableFragmentWarnings:QB,enableExperimentalFragmentVariables:WB,disableExperimentalFragmentVariables:YB};(function(e){e.gql=jv.gql,e.resetCaches=jv.resetCaches,e.disableFragmentWarnings=jv.disableFragmentWarnings,e.enableExperimentalFragmentVariables=jv.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=jv.disableExperimentalFragmentVariables})(Id||(Id={}));Id.default=Id;var g3={exports:{}},E5;function KB(){return E5||(E5=1,(function(e){e.exports.__SECRET_INT
78ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,Qc())})(g3)),g3.exports}var Kt=KB();const XB=Da(Kt),fR=m8({__proto__:null,default:XB},[Kt]);var x5=ux?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function Tx(){Fe("createContext"in fR,54);var e=Kt.createContext[x5];return e||(Object.defineProperty(Kt.createContext,x5,{value:e=Kt.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var ZB=function(e){var t=e.client,n=e.children,r=Tx(),o=Kt.useContext(r),s=Kt.useMemo(function(){return ne(ne({},o),{client:t||o.client})},[o,t]);return Fe(s.client,55),Kt.createElement(r.Provider,{value:s},n)};function Rx(e){var t=Kt.useContext(Tx()),n=e||t.client;return Fe(!!n,58),n}var w5=!1,JB="useSyncExternalStore",eV=fR[JB],tV=eV||(function(e,t,n){var r=t();globalThis.__DEV__!==!1&&!w5&&r!==t()&&(w5=!0,globalThis.__DEV__!==!1&&Fe.error(68));var o=Kt.useState({inst:{value:r,getSnapshot:t}}),s=o[0].inst,l=o[1];return wj?Kt.useLayoutEffect(function(){Object.assign(s,{value:r,getSnapshot:t}),y3(s)&&l({inst:s})},[e,r,t]):Object.assign(s,{value:r,getSnapshot:t}),Kt.useEffect(function(){return y3(s)&&l({inst:s}),e(function(){y3(s)&&l({inst:s})})},[e]),r});function y3(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch{return!0}}var ml;(function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"})(ml||(ml={}));var yd;function C5(e){var t;switch(e){case ml.Query:t="Query";break;case ml.Mutation:t="Mutation";break;case ml.Subscription:t="Subscription";break}return t}function dR(e){yd||(yd=new Y_(_s.parser||1e3));var t=yd.get(e);if(t)return t;var n,r,o;Fe(!!e&&!!e.kind,70,e);for(var s=[],l=[],f=[],m=[],p=0,v=e.definitions;p<v.length;p++){var g=v[p];if(g.kind==="FragmentDefinition"){s.push(g);continue}if(g.kind==="OperationDefinition")switch(g.operation){case"query":l.push(g);break;case"mutation":f.push(g);break;case"subscription":m.push(g);break}}Fe(!s.length||l.length||f.length||m.length,71),Fe(l.length+f.length+m.length<=1,72,e,l.length,m.length,f.length),r=l.length?ml.Query:ml.Mutation,!l.length&&!f.length&&(r=ml.Subscription);var y=l.length?l:f.length?f:m;Fe(y.length===1,73,e,y.length);var S=y[0];n=S.variableDefinitions||[],S.name&&S.name.kind==="Name"?o=S.name.value:o="data";var x={name:o,type:r,variables:n};return yd.set(e,x),x}dR.resetCache=function(){yd=void 0};globalThis.__DEV__!==!1&&cx("parser",function(){return yd?yd.size:0});function hR(e,t){var n=dR(e),r=C5(t),o=C5(n.type);Fe(n.type===t,74,r,r,o)}var pR=lT?Kt.useLayoutEffect:Kt.useEffect,nV=Symbol.for("apollo.hook.wrappers");function rV(e,t,n){var r=n.queryManager,o=r&&r[nV],s=o&&o[e];return s?s(t):t}var iV=Object.prototype.hasOwnProperty;function T5(){}var Vb=Symbol();function mR(e,t){return t===void 0&&(t=Object.create(null)),rV("useQuery",oV,Rx(t&&t.client))(e,t)}function oV(e,t){var n=vR(e,t),r=n.result,o=n.obsQueryFields;return Kt.useMemo(function(){return ne(ne({},r),o)},[r,o])}function aV(e,t,n,r,o){function s(g){var y;hR(t,ml.Query);var S={client:e,query:t,observable:r&&r.getSSRObservable(o())||f1.inactiveOnCreation.withValue(!r,function(){return e.watchQuery(Ox(void 0,e,n,o()))}),resultData:{previousData:(y=g?.resultData.current)===null||y===void 0?void 0:y.data}};return S}var l=Kt.useState(s),f=l[0],m=l[1];function p(g){var y,S;Object.assign(f.observable,(y={},y[Vb]=g,y));var x=f.resultData;m(ne(ne({},f),{query:g.query,resultData:Object.assign(x,{previousData:((S=x.current)===null||S===void 0?void 0:S.data)||x.previousData,current:void 0})}))}if(e!==f.client||t!==f.query){var v=s(f);return m(v),[v,p]}return[f,p]}function vR(e,t){var n=Rx(t.client),r=Kt.useContext(Tx()).renderPromises,o=!!r,s=n.disableNetworkFetches,l=t.ssr!==!1&&!t.skip,f=t.partialRefetch,m=gR(n,e,t,o),p=aV(n,e,t,r,m),v=p[0],g=v.observable,y=v.resultData,S=p[1],x=m(g);uV(y,g,n,t,x);var w=Kt.useMemo(function(){return hV(g)},[g]);lV(g,r,l);var R=sV(y,g,n,t,x,s,f,o,{onCompleted:t.onCompleted||T5,onError:t.onError||T5});return{result:R,obsQueryFields:w,observable:g,resultData:y,client:n,onQueryExecuted:S}}function sV(e,t,n,r,o,s,l,f,m){var p=Kt.useRef(m);Kt.useEffect(function(){p.current=m});
78var v=(f||s)&&r.ssr===!1&&!r.skip?yR:r.skip||o.fetchPolicy==="standby"?bR:void 0,g=e.previousData,y=Kt.useMemo(function(){return v&&u_(v,g,t,n)},[n,t,v,g]);return tV(Kt.useCallback(function(S){if(f)return function(){};var x=function(){var T=e.current,I=t.getCurrentResult();T&&T.loading===I.loading&&T.networkStatus===I.networkStatus&&yn(T.data,I.data)||KE(I,e,t,n,l,S,p.current)},w=function(T){if(R.current.unsubscribe(),R.current=t.resubscribeAfterError(x,w),!iV.call(T,"graphQLErrors"))throw T;var I=e.current;(!I||I&&I.loading||!yn(T,I.error))&&KE({data:I&&I.data,error:T,loading:!1,networkStatus:Zt.error},e,t,n,l,S,p.current)},R={current:t.subscribe(x,w)};return function(){setTimeout(function(){return R.current.unsubscribe()})}},[s,f,t,e,l,n]),function(){return y||R5(e,t,p.current,l,n)},function(){return y||R5(e,t,p.current,l,n)})}function lV(e,t,n){t&&n&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}function uV(e,t,n,r,o){var s;t[Vb]&&!yn(t[Vb],o)&&(t.reobserve(Ox(t,n,r,o)),e.previousData=((s=e.current)===null||s===void 0?void 0:s.data)||e.previousData,e.current=void 0),t[Vb]=o}function gR(e,t,n,r){n===void 0&&(n={});var o=n.skip;n.ssr,n.onCompleted,n.onError;var s=n.defaultOptions,l=Ko(n,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(f){var m=Object.assign(l,{query:t});return r&&(m.fetchPolicy==="network-only"||m.fetchPolicy==="cache-and-network")&&(m.fetchPolicy="cache-first"),m.variables||(m.variables={}),o?(m.initialFetchPolicy=m.initialFetchPolicy||m.fetchPolicy||XE(s,e.defaultOptions),m.fetchPolicy="standby"):m.fetchPolicy||(m.fetchPolicy=f?.options.initialFetchPolicy||XE(s,e.defaultOptions)),m}}function Ox(e,t,n,r){var o=[],s=t.defaultOptions.watchQuery;return s&&o.push(s),n.defaultOptions&&o.push(n.defaultOptions),o.push(zc(e&&e.options,r)),o.reduce(wd)}function KE(e,t,n,r,o,s,l){var f=t.current;f&&f.data&&(t.previousData=f.data),!e.error&&Mi(e.errors)&&(e.error=new vs({graphQLErrors:e.errors})),t.current=u_(dV(e,n,o),t.previousData,n,r),s(),cV(e,f?.networkStatus,l)}function cV(e,t,n){if(!e.loading){var r=fV(e);Promise.resolve().then(function(){r?n.onError(r):e.data&&t!==e.networkStatus&&e.networkStatus===Zt.ready&&n.onCompleted(e.data)}).catch(function(o){globalThis.__DEV__!==!1&&Fe.warn(o)})}}function R5(e,t,n,r,o){return e.current||KE(t.getCurrentResult(),e,t,o,r,function(){},n),e.current}function XE(e,t){var n;return e?.fetchPolicy||((n=t?.watchQuery)===null||n===void 0?void 0:n.fetchPolicy)||"cache-first"}function fV(e){return Mi(e.errors)?new vs({graphQLErrors:e.errors}):e.error}function u_(e,t,n,r){var o=e.data;e.partial;var s=Ko(e,["data","partial"]),l=ne(ne({data:o},s),{client:r,observable:n,variables:n.variables,called:e!==yR&&e!==bR,previousData:t});return l}function dV(e,t,n){return e.partial&&n&&!e.loading&&(!e.data||Object.keys(e.data).length===0)&&t.options.fetchPolicy!=="cache-only"?(t.refetch(),ne(ne({},e),{loading:!0,networkStatus:Zt.refetch})):e}var yR=rm({loading:!0,data:void 0,error:void 0,networkStatus:Zt.loading}),bR=rm({loading:!1,data:void 0,error:void 0,networkStatus:Zt.ready});function hV(e){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}var pV=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function mV(e,t){var n,r=Kt.useRef(void 0),o=Kt.useRef(void 0),s=Kt.useRef(void 0),l=wd(t,r.current||{}),f=(n=l?.query)!==null&&n!==void 0?n:e;o.current=t,s.current=f;var m=ne(ne({},l),{skip:!r.current}),p=vR(f,m),v=p.obsQueryFields,g=p.result,y=p.client,S=p.resultData,x=p.observable,w=p.onQueryExecuted,R=x.options.initialFetchPolicy||XE(m.defaultOptions,y.defaultOptions),T=Kt.useReducer(function(K){return K+1},0)[1],I=Kt.useMemo(function(){for(var K={},P=function(W){var G=v[W];K[W]=function(){return r.current||(r.current=Object.create(null),T()),G.apply(this,arguments)}},q=0,Q=pV;q<Q.length;q++){var $=Q[q];P($)}return K},[T,v]),k=!!r.current,L=Kt.useMemo(function(){return ne(ne(ne({},g),I),{called:k})},[g,I,k]),H=Kt.useCallback(function(K){r.current=K?ne(ne({},K),{fetchPolicy:K.fetchPolicy||R}):{fetchPolicy:R};var P=wd(o.current,ne({query:s.current},r.current)),q=vV(S,x,y,f,ne(ne({},P),{skip:!1}),w).then(function(Q){return Object.assign(Q,I)});return q.catch(function(){}),q},[y,f,I,R,x,S,w]),M=Kt.useRef(H);pR(function(){M.current=H});var j=Kt.useCallback(function(){for(var K=[],P=0;P<arguments.length;P++)K[P]=arguments[P];return M.current.apply(M,K)},[]);return[j,L]}function vV(e,t,n,r,o,s){var l=o.query||r,f=gR(n,l,o,!1)(t),m=t.reobserveAsConcast(Ox(t,n,o,f));return s(f),new Promise(function(p){var v;m.subscribe({next:function(g){v=g},error:function(){p(u_(t.getCurrentResult(),e.previousData,t,n))},complete:function(){p(u_(t.maskResult(v),e.previousData,t,n))}})})}function gV(e,t){var n=Rx(void 0);hR(e,ml.Mutation);var r=Kt.useState({called:!1,loading:!1,client:n}),o=r[0],s=r[1],l=Kt.useRef({result:o,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});pR(function(){Object.assign(l.current,{client:n,options:t,mutation:e})});var f=Kt.useCallback(function(p){p===void 0&&(p={});var v=l.current,g=v.options,y=v.mutation,S=ne(ne({},g),{mutation:y}),x=p.client||l.current.client;!l.current.result.loading&&!S.ignoreResults&&l.current.isMounted&&s(l.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:x});var w=++l.current.mutationId,R=wd(S,p);return x.mutate(R).then(function(T){var I,k,L=T.data,H=T.errors,M=H&&H.length>0?new vs({graphQLErrors:H}):void 0,j=p.onError||((I=l.current.options)===null||I===void 0?void 0:I.onError);if(M&&j&&j(M,R),w===l.current.mutationId&&!R.ignoreResults){var K={called:!0,loading:!1,data:L,error:M,client:x};l.current.isMounted&&!yn(l.current.result,K)&&s(l.current.result=K)}var P=p.onCompleted||((k=l.current.options)===null||k===void 0?void 0:k.onCompleted);return M||P?.(T.data,R),T},function(T){var I;if(w===l.current.mutationId&&l.current.isMounted){var k={loading:!1,error:T,data:void 0,called:!0,client:x};yn(l.current.result,k)||s(l.current.result=k)}var L=p.onError||((I=l.current.options)===null||I===void 0?void 0:I.onError);if(L)return L(T,R),{data:void 0,errors:T};throw T})},[]),m=Kt.useCallback(function(){if(l.current.isMounted){var p={called:!1,loading:!1,client:l.current.client};Object.assign(l.current,{mutationId:0,result:p}),s(p)}},[]);return Kt.useEffect(function(){var p=l.current;return p.isMounted=!0,function(){p.isMounted=!1}},[]),[f,ne({reset:m},o)]}const yV=e=>new TextEncoder().encode(e);var bV=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:yV;function w1(e){return e instanceof Uint8Array?e:typeof e=="string"?bV(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function ZE(e){return typeof e=="string"?e.length===0:e.byteLength===0}var _R={name:"SHA-256"},O5={name:"HMAC",hash:_R},_V=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]);const SV={};function Hb(){return typeof window<"u"?window:typeof self<"u"?self:SV}var EV=(function(){function e(t){this.toHash=new Uint8Array(0),this.secret=t,this.reset()}return e.prototype.update=function(t){if(!ZE(t)){var n=w1(t),r=new Uint8Array(this.toHash.byteLength+n.byteLength);r.set(this.toHash,0),r.set(n,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(n){return Hb().crypto.subtle.sign(O5,n,t.toHash).then(function(r){return new Uint8Array(r)})}):ZE(this.toHash)?Promise.resolve(_V):Promise.resolve().then(function(){return Hb().crypto.subtle.digest(_R,t.toHash)}).then(function(n){return Promise.resolve(new Uint8Array(n))})},e.prototype.reset=function(){var t=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(n,r){Hb().crypto.subtle.importKey("raw",w1(t.secret),O5,!1,["sign"]).then(n,r)}),this.key.catch(function(){}))},e})(),Sa=64,xV=32,wV=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
78734187,3204031479,3329325298]),CV=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],TV=Math.pow(2,53)-1,zb=(function(){function e(){this.state=Int32Array.from(CV),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=t.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>TV)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===Sa&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%Sa>=Sa-8){for(var o=this.bufferLength;o<Sa;o++)n.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(var o=this.bufferLength;o<Sa-8;o++)n.setUint8(o,0);n.setUint32(Sa-8,Math.floor(t/4294967296),!0),n.setUint32(Sa-4,t),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(xV),o=0;o<8;o++)s[o*4]=this.state[o]>>>24&255,s[o*4+1]=this.state[o]>>>16&255,s[o*4+2]=this.state[o]>>>8&255,s[o*4+3]=this.state[o]>>>0&255;return s},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,o=r[0],s=r[1],l=r[2],f=r[3],m=r[4],p=r[5],v=r[6],g=r[7],y=0;y<Sa;y++){if(y<16)this.temp[y]=(n[y*4]&255)<<24|(n[y*4+1]&255)<<16|(n[y*4+2]&255)<<8|n[y*4+3]&255;else{var S=this.temp[y-2],x=(S>>>17|S<<15)^(S>>>19|S<<13)^S>>>10;S=this.temp[y-15];var w=(S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3;this.temp[y]=(x+this.temp[y-7]|0)+(w+this.temp[y-16]|0)}var R=(((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&p^~m&v)|0)+(g+(wV[y]+this.temp[y]|0)|0)|0,T=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&s^o&l^s&l)|0;g=v,v=p,p=m,m=f+R|0,f=l,l=s,s=o,o=R+T|0}r[0]+=o,r[1]+=s,r[2]+=l,r[3]+=f,r[4]+=m,r[5]+=p,r[6]+=v,r[7]+=g},e})(),RV=(function(){function e(t){this.secret=t,this.hash=new zb,this.reset()}return e.prototype.update=function(t){if(!(ZE(t)||this.error))try{this.hash.update(w1(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return fl(this,void 0,void 0,function(){return dl(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new zb,this.secret){this.outer=new zb;var t=OV(this.secret),n=new Uint8Array(Sa);n.set(t);for(var r=0;r<Sa;r++)t[r]^=54,n[r]^=92;this.hash.update(t),this.outer.update(n);for(var r=0;r<t.byteLength;r++)t[r]=0}},e})();function OV(e){var t=w1(e);if(t.byteLength>Sa){var n=new zb;n.update(t),t=n.digest()}var r=new Uint8Array(Sa);return r.set(t),r}var AV=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function kV(e){if(NV(e)&&typeof e.crypto.subtle=="object"){var t=e.crypto.subtle;return IV(t)}return!1}function NV(e){if(typeof e=="object"&&typeof e.crypto=="object"){var t=e.crypto.getRandomValues;return typeof t=="function"}return!1}function IV(e){return e&&AV.every(function(t){return typeof e[t]=="function"})}var MV=(function(){function e(t){kV(Hb())?this.hash=new EV(t):this.hash=new RV(t)}return e.prototype.update=function(t,n){this.hash.update(w1(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e})();const wt={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",VITAL:"vital"},A5={LONG_TASK:"long-task",LONG_ANIMATION_FRAME:"long-animation-frame"},du={INITIAL_LOAD:"initial_load",ROUTE_CHANGE:"route_change",BF_CACHE:"bf_cache"},Ax={CLICK:"click",CUSTOM:"custom"},xp={RAGE_CLICK:"rage_click",ERROR_CLICK:"error_click",DEAD_CLICK:"dead_click"},Bp={DURATION:"duration",OPERATION_STEP:"operation_step"};function DV(){return{vitalsByName:new Map,vitalsByReference:new WeakMap}}function LV(e,t,n){function r(l){return!t.wasInPageStateDuringPeriod("frozen",l.startClocks.relative,l.duration)}function o(l){r(l)&&e.notify(12,k5(l))}function s(l,f,m,p){if(!pu(Ta.FEATURE_OPERATION_VITAL))return;const{operationKey:v,context:g,description:y,handlingStack:S}=m||{}
78,x={name:l,type:Bp.OPERATION_STEP,operationKey:v,failureReason:p,stepType:f,startClocks:Gn(),context:Pt(g),description:y,handlingStack:S};e.notify(12,k5(x))}return{addOperationStepVital:s,addDurationVital:o,startDurationVital:(l,f={})=>{const m=SR(n,l,f),p=n.vitalsByReference.get(m);return p&&e.notify(16,p),m},stopDurationVital:(l,f={})=>{ER(o,n,l,f)}}}function SR({vitalsByName:e,vitalsByReference:t},n,r={}){const o={id:Rr(),name:n,startClocks:Gn(),...r},s={__dd_vital_reference:!0};return e.set(n,o),t.set(s,o),s}function ER(e,{vitalsByName:t,vitalsByReference:n},r,o={}){const s=typeof r=="string"?t.get(r):n.get(r);s&&(e(PV(s,s.startClocks,o,Gn())),typeof r=="string"?t.delete(r):n.delete(r))}function PV(e,t,n,r){var o;return{id:e.id,name:e.name,type:Bp.DURATION,startClocks:t,duration:$n(t.timeStamp,r.timeStamp),context:yu(e.context,n.context),description:(o=n.description)!==null&&o!==void 0?o:e.description,handlingStack:e.handlingStack}}function k5(e){const{startClocks:t,type:n,name:r,description:o,context:s,handlingStack:l}=e,f=e.type===Bp.DURATION?e.id:void 0,m={id:f??Rr(),type:n,name:r,description:o,...n===Bp.DURATION?{duration:vt(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason}};return{rawRumEvent:{date:t.timeStamp,vital:m,type:wt.VITAL,context:s},startClocks:t,duration:n===Bp.DURATION?e.duration:void 0,domainContext:l?{handlingStack:l}:{}}}function xR(e,t,n){if(e)for(const r of e){const o=r[t];o&&o(n)}}const FV=HD,N5=["tracecontext","datadog"],jV=["cache-control","etag","age","expires","content-type","content-encoding","vary","content-length","server-timing","x-cache"];function UV(e,t){var n,r,o,s,l,f,m;if(e.trackFeatureFlagsForEvents!==void 0&&!Array.isArray(e.trackFeatureFlagsForEvents)&&ut.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId){ut.error("Application ID is not configured, no RUM data will be collected.");return}if(!Rp(e.sessionReplaySampleRate,"Session Replay")||!Rp(e.traceSampleRate,"Trace"))return;if(e.excludedActivityUrls!==void 0&&!Array.isArray(e.excludedActivityUrls)){ut.error("Excluded Activity Urls should be an array");return}const p=BV(e);if(!p)return;const v=PM(e,t),g=HV(e);if(!v)return;const y=(n=e.sessionReplaySampleRate)!==null&&n!==void 0?n:0;return{applicationId:e.applicationId,actionNameAttribute:e.actionNameAttribute,betaTrackActionsInShadowDom:!!e.betaTrackActionsInShadowDom,sessionReplaySampleRate:y,startSessionReplayRecordingManually:e.startSessionReplayRecordingManually!==void 0?!!e.startSessionReplayRecordingManually:y===0,traceSampleRate:(r=e.traceSampleRate)!==null&&r!==void 0?r:100,rulePsr:I1(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:p,excludedActivityUrls:(o=e.excludedActivityUrls)!==null&&o!==void 0?o:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(!((s=e.trackUserInteractions)!==null&&s!==void 0)||s),trackViewsManually:!!e.trackViewsManually,trackResources:!!(!((l=e.trackResources)!==null&&l!==void 0)||l),trackResourceHeaders:qV(e),trackLongTasks:!!(!((f=e.trackLongTasks)!==null&&f!==void 0)||f),trackBfcacheViews:!!e.trackBfcacheViews,trackEarlyRequests:!!e.trackEarlyRequests,subdomain:e.subdomain,defaultPrivacyLevel:n_(Tp,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:Tp.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,traceContextInjection:n_(_E,e.traceContextInjection)?e.traceContextInjection:_E.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:(m=e.profilingSampleRate)!==null&&m!==void 0?m:0,propagateTraceBaggage:!!e.propagateTraceBaggage,allowedGraphQlUrls:g,...v}}function BV(e){if(e.allowedTracingUrls===void 0)return[];if(!Array.isArray(e.allowedTracingUrls)){ut.error("Allowed Tracing URLs should be an array");return}if(e.allowedTracingUrls.length!==0&&e.service===void 0){ut.error("Service needs to be configured when tracing is enabled");return}const t=[];return e.allowedTracingUrls.forEach(n=>{const r=wR(n);r?t.push(r):ut.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",n)}),t}function VV(e){const t=new Set;
78return Ed(e.allowedTracingUrls)&&e.allowedTracingUrls.forEach(n=>{var r;(r=wR(n))===null||r===void 0||r.propagatorTypes.forEach(o=>t.add(o))}),Array.from(t)}function wR(e){if(Yp(e))return{match:e,propagatorTypes:N5};if(Yc(e)&&Yp(e.match)&&(e.propagatorTypes===null||e.propagatorTypes===void 0||Array.isArray(e.propagatorTypes)))return{match:e.match,propagatorTypes:e.propagatorTypes||N5}}function HV(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return ut.warn("allowedGraphQlUrls should be an array"),[];const t=[];return e.allowedGraphQlUrls.forEach(n=>{Yp(n)?t.push({match:n,trackPayload:!1,trackResponseErrors:!1}):Yc(n)&&Yp(n.match)&&t.push({match:n.match,trackPayload:!!n.trackPayload,trackResponseErrors:!!n.trackResponseErrors})}),t}const zV=["request","response","any"];function qV(e){const t=e.trackResourceHeaders;if(t===void 0||t===!1)return[];if(t===!0)return jV.map(r=>({name:r}));if(!Array.isArray(t))return ut.warn("trackResourceHeaders should be true or an array of MatchHeader"),[];if(t.length===0)return ut.warn("trackResourceHeaders is an empty array, no headers will be captured"),[];const n=[];return t.forEach((r,o)=>{if(!Yc(r)||!Yp(r.name)){ut.warn(`trackResourceHeaders[${o}] should be a MatchHeader object with a 'name' property`);return}if(r.url!==void 0&&!Yp(r.url)){ut.warn(`trackResourceHeaders[${o}].url should be a MatchOption`);return}if(r.extractor!==void 0&&!(r.extractor instanceof RegExp)){ut.warn(`trackResourceHeaders[${o}].extractor should be a RegExp`);return}if(r.location!==void 0&&!zV.includes(r.location)){ut.warn(`trackResourceHeaders[${o}].location should be 'request', 'response', or 'any'`);return}n.push({...r,name:typeof r.name=="string"?r.name.toLowerCase():r.name})}),n}function GV(e){return Ed(e)&&e.some(t=>Yc(t)&&t.trackPayload)}function $V(e){return Ed(e)&&e.some(t=>Yc(t)&&t.trackResponseErrors)}function QV(e){if(e===!0)return"default_headers";if(Array.isArray(e))return"custom"}function WV(e){var t;const n=FM(e);return{session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,trace_context_injection:e.traceContextInjection,propagate_trace_baggage:e.propagateTraceBaggage,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:Ed(e.allowedTracingUrls),use_allowed_graph_ql_urls:Ed(e.allowedGraphQlUrls),use_track_graph_ql_payload:GV(e.allowedGraphQlUrls),use_track_graph_ql_response_errors:$V(e.allowedGraphQlUrls),selected_tracing_propagators:VV(e),default_privacy_level:e.defaultPrivacyLevel,enable_privacy_for_action_name:e.enablePrivacyForActionName,use_excluded_activity_urls:Ed(e.excludedActivityUrls),use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks,track_bfcache_views:e.trackBfcacheViews,track_early_requests:e.trackEarlyRequests,plugins:(t=e.plugins)===null||t===void 0?void 0:t.map(r=>{var o;return{name:r.name,...(o=r.getConfigurationTelemetry)===null||o===void 0?void 0:o.call(r)}}),track_feature_flags_for_events:e.trackFeatureFlagsForEvents,remote_configuration_id:e.remoteConfigurationId,profiling_sample_rate:e.profilingSampleRate,use_remote_configuration_proxy:!!e.remoteConfigurationProxy,track_resource_headers:QV(e.trackResourceHeaders),...n}}function CR(e,t){t.lastIndex=0;const n=t.exec(e);if(!n)return;const[r,o]=n;return o||r}function YV(e){const t=[];let n=0,r;const o={quote:void 0,escapeSequence:void 0};let s="";for(const l of e){if(r=I5[n].find(f=>tH[f](l,o)),!r)return[];if(o.escapeSequence!==void 0&&r!==12){if(!iH(o.escapeSequence))return[];s+=aH(o.escapeSequence),o.escapeSequence=void 0}nH.includes(r)?s+=l:rH.includes(r)&&s!==""?(t.push(s),s=""):r===12?o.escapeSequence=o.escapeSequence?`${o.escapeSequence}${l}`:l:r===8?o.quote=l:r===9&&(o.quote=void 0),n=r}return I5[n].includes(1)?(s!==""&&t.push(s),t):[]}const KV=/[a-zA-Z_$]/,XV=/[a-zA-Z0-9_$]/,ZV=/[0-9]/,JV=/[a-fA-F0-9]/,eH=`'"`,tH={0:()=>
78!1,1:()=>!1,2:e=>KV.test(e),3:e=>XV.test(e),4:e=>e===".",5:e=>e==="[",6:e=>e==="]",7:e=>ZV.test(e),8:e=>eH.includes(e),9:(e,t)=>e===t.quote,10:()=>!0,11:e=>e==="\\",12:(e,t)=>t.escapeSequence===void 0?`${t.quote}/\\bfnrtu`.includes(e):t.escapeSequence.startsWith("u")&&t.escapeSequence.length<5?JV.test(e):!1},I5={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},nH=[2,3,7,10],rH=[4,5,6];function iH(e){return`"'/\\bfnrt`.includes(e)||e.startsWith("u")&&e.length===5}const oH={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:` 79`,r:"\r",t:" "};function aH(e){return e.startsWith("u")?String.fromCharCode(parseInt(e.slice(1),16)):oH[e]}const sH="v1",lH=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function uH(e,t){let n;const r=fH(),o=await pH(e);return o.ok?(r.increment("fetch","success"),n=cH(e,o.value,t,r)):(r.increment("fetch","failure"),ut.error(o.error)),B_("remote configuration metrics",{metrics:r.get()}),n}function cH(e,t,n,r){const o={...e};return lH.forEach(S=>{S in t&&(o[S]=s(t[S]))}),Object.keys(n).forEach(S=>{t[S]!==void 0&&l(n[S],t[S])}),o;function s(S){if(Array.isArray(S))return S.map(s);if(Yc(S)){if(dH(S)){const x=S.rcSerializedType;switch(x){case"string":return S.value;case"regex":return TR(S.value);case"dynamic":return f(S);default:ut.error(`Unsupported remote configuration: "rcSerializedType": "${x}"`);return}}return _8(S,s)}return S}function l(S,x){x.forEach(({key:w,value:R})=>{S.setContextProperty(w,s(R))})}function f(S){const x=S.strategy;let w;switch(x){case"cookie":w=m(S);break;case"dom":w=v(S);break;case"js":w=y(S);break;case"localStorage":w=p(S);break;default:ut.error(`Unsupported remote configuration: "strategy": "${x}"`);return}const R=S.extractor;return R!==void 0&&typeof w=="string"?hH(R,w):w}function m({name:S}){const x=P_(S);return r.increment("cookie",x!==void 0?"success":"missing"),x}function p({key:S}){let x;try{x=localStorage.getItem(S)}catch{r.increment("localStorage","failure");return}return r.increment("localStorage",x!==null?"success":"missing"),x??void 0}function v({selector:S,attribute:x}){let w;try{w=document.querySelector(S)}catch{ut.error(`Invalid selector in the remote configuration: '${S}'`),r.increment("dom","failure");return}if(!w){r.increment("dom","missing");return}if(g(w,x)){ut.error(`Forbidden element selected by the remote configuration: '${S}'`),r.increment("dom","failure");return}const R=x!==void 0?w.getAttribute(x):w.textContent;if(R===null){r.increment("dom","missing");return}return r.increment("dom","success"),R}function g(S,x){return S.getAttribute("type")==="password"&&x==="value"}function y({path:S}){let x=window;const w=YV(S);if(w.length===0){ut.error(`Invalid JSON path in the remote configuration: '${S}'`),r.increment("js","failure");return}for(const R of w){if(!(R in x)){r.increment("js","missing");return}try{x=x[R]}catch(T){ut.error(`Error accessing: '${S}'`,T),r.increment("js","failure");return}}return r.increment("js","success"),x}}function fH(){const e={fetch:{}};return{get:()=>e,increment:(t,n)=>{e[t]||(e[t]={}),e[t][n]||(e[t][n]=0),e[t][n]=e[t][n]+1}}}function dH(e){return"rcSerializedType"in e}function TR(e){try{return new RegExp(e)}catch{ut.error(`Invalid regex in the remote configuration: '${e}'`)}}function hH(e,t){const n=TR(e.value);if(n!==void 0)return CR(t,n)}async function pH(e){let t;try{t=await l7(mH(e))}catch{t=void 0}if(!t||!t.ok)return{ok:!1,error:new Error("Error fetching the remote configuration.")};const n=await t.json();return n.rum?{ok:!0,value:n.rum}:{ok:!1,error:new Error("No remote configuration for RUM.")}}function mH(e){return e.remoteConfigurationProxy?e.remoteConfigurationProxy:`https://sdk-configuration.${Q8("rum",e)}/${sH}/${encodeURIComponent(e.remoteConfigurationId)}.json`}function vH({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t},n,r,o){const s=BL(),l=k7();b3(l,ni.globalContext,s);const f=N7();b3(f,ni.userContext,s);const m=A7();b3(m,ni.accountContext,s);let p,v,g,y,S;const x=FV(),w=n.observable.subscribe(T),R={};function T(){if(!g||!y||!n.isGranted())return;S||(S=QD("browser-rum-sdk",y,x)),w.unsubscribe();let M;if(y.trackViewsManually){if(!p)return;s.remove(p.callback),M=p.options}const j=o(y,v,M,S,x);s.drain(j)}function I(M,j){const K=Jp();if(K&&(M=gH(M)),g=M,ZD(WV(M)),y){n7("DD_RUM",M);return}const P=UV(M,j);if(P){if(!K&&!P.sessionStoreStrategyType){ut.warn("No storage available for session. We will not send any data.");return}P.compressIntakeRequests&&!K&&t&&(v=t(P,"Datadog RUM",Mn),!v)||(y=P,O7().subscribe(Mn),n.tryToInit(P.trackingConsent),T())}}const k=M=>{s.add(j=>j.addDurationVital(M))};
79return{init(M,j,K){if(!M){ut.error("Missing configuration");return}jM(M.enableExperimentalFeatures),g=M,!(e&&w7())&&(xR(M.plugins,"onInit",{initConfiguration:M,publicApi:j}),M.remoteConfigurationId?uH(M,{user:f,context:l}).then(P=>{P&&I(P,K)}).catch(sm):I(M,K))},get initConfiguration(){return g},getInternalContext:Mn,stopSession:Mn,addTiming(M,j=Tr()){s.add(K=>K.addTiming(M,j))},setLoadingTime:(M=>{s.add(j=>j.setLoadingTime(M))}),startView(M,j=Gn()){const K=P=>{P.startView(M,j)};s.add(K),p||(p={options:M,callback:K},T())},setViewName(M){s.add(j=>j.setViewName(M))},setViewContext(M){s.add(j=>j.setViewContext(M))},setViewContextProperty(M,j){s.add(K=>K.setViewContextProperty(M,j))},getViewContext:()=>R,globalContext:l,userContext:f,accountContext:m,addAction(M){s.add(j=>j.addAction(M))},startAction(M,j){const K=Gn();s.add(P=>P.startAction(M,j,K))},stopAction(M,j){const K=Gn();s.add(P=>P.stopAction(M,j,K))},startResource(M,j){const K=Gn();s.add(P=>P.startResource(M,j,K))},stopResource(M,j){const K=Gn();s.add(P=>P.stopResource(M,j,K))},addError(M){s.add(j=>j.addError(M))},addFeatureFlagEvaluation(M,j){s.add(K=>K.addFeatureFlagEvaluation(M,j))},startDurationVital(M,j){return SR(r,M,j)},stopDurationVital(M,j){ER(k,r,M,j)},addDurationVital:k,addOperationStepVital:(M,j,K,P)=>{s.add(q=>q.addOperationStepVital(Pt(M),j,Pt(K),Pt(P)))}}}function gH(e){var t,n;return{...e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:(t=e.defaultPrivacyLevel)!==null&&t!==void 0?t:(n=F1())===null||n===void 0?void 0:n.getPrivacyLevel()}}function b3(e,t,n){e.changeObservable.subscribe(()=>{const r=e.getContext();n.add(o=>o[t].setContext(r))})}function yH(){const e=bH();return new Jt(t=>{if(!e)return;const n=new e(jt(r=>t.notify(r)));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>n.disconnect()})}function bH(){let e;const t=window;if(t.Zone&&(e=gu(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){const n=new t.MutationObserver(Mn),r=gu(n,"originalInstance");e=r&&r.constructor}return e||(e=t.MutationObserver),e}function _H(){const e=new Jt,{stop:t}=pl(window,"open",()=>e.notify());return{observable:e,stop:t}}function SH(e,t,n,r,o){return{get:s=>{const l=n.findView(s),f=o.findUrl(s),m=t.findTrackedSession(s);if(m&&l&&f){const p=r.findActionId(s);return{application_id:e,session_id:m.id,user_action:p?{id:p}:void 0,view:{id:l.id,name:l.name,referrer:f.referrer,url:f.url}}}}}}const EH=gL,xH=jd;function wH(e){const t=mm({expireDelay:xH});e.subscribe(1,r=>{t.add(n(r),r.startClocks.relative)}),e.subscribe(6,({endClocks:r})=>{t.closeActive(r.relative)}),e.subscribe(3,r=>{const o=t.find(r.startClocks.relative);o&&(r.name&&(o.name=r.name),r.context&&(o.context=r.context),o.sessionIsActive=r.sessionIsActive)}),e.subscribe(10,()=>{t.reset()});function n(r){return{service:r.service,version:r.version,context:r.context,id:r.id,name:r.name,startClocks:r.startClocks}}return{findView:r=>t.find(r),stop:()=>{t.stop()}}}const RR="initial_document",CH=[[Ni.DOCUMENT,e=>RR===e],[Ni.XHR,e=>e==="xmlhttprequest"],[Ni.FETCH,e=>e==="fetch"],[Ni.BEACON,e=>e==="beacon"],[Ni.CSS,(e,t)=>/\.css$/i.test(t)],[Ni.JS,(e,t)=>/\.js$/i.test(t)],[Ni.IMAGE,(e,t)=>["image","img","icon"].includes(e)||/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)!==null],[Ni.FONT,(e,t)=>/\.(woff|eot|woff2|ttf)$/i.exec(t)!==null],[Ni.MEDIA,(e,t)=>["audio","video"].includes(e)||/\.(mp3|mp4)$/i.exec(t)!==null]];function TH(e){const t=e.name;if(!NI(t))return Ni.OTHER;const n=II(t);for(const[r,o]of CH)if(o(e.initiatorType,n))return r;return Ni.OTHER}function M5(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function OR(e){return e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch"}function RH(e){const{duration:t,startTime:n,responseEnd:r}=e;return t===0&&n<r?$n(n,r):t}function OH(e){if(!kR(e))return;const{startTime:t,fetchStart:n,workerStart:r,redirectStart:o,redirectEnd:s,domainLookupStart:l,domainLookupEnd:f,connectStart:m,secureConnectionStart:p,connectEnd:v,requestStart:g,responseStart:y,responseEnd:S}=e,x={download:od(t,y,S),first_byte:od(t,g,y)};return 0<r&&r<n&&(x.worker=od(t,r,n)),n<v&&(x.connect=od(t,m,v),m<=p&&p<=v&&(x.ssl=od(t,p,v))),n<f&&(x.dns=od(t,l,f)),t<s&&(x.redirect=od(t,o,s)),x}function AR(e){return e.duration>=0}function kR(e){const t=M5(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),n=AH(e)?M5(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart):!0;return t&&n}function AH(e){return e.redirectEnd>e.startTime}
79function od(e,t,n){if(e<=t&&t<=n)return{duration:vt($n(t,n)),start:vt($n(e,t))}}function kH(e){return e.nextHopProtocol===""?void 0:e.nextHopProtocol}function NH(e){return e.deliveryType===""?"other":e.deliveryType}function IH(e){if(e.startTime<e.responseStart){const{encodedBodySize:t,decodedBodySize:n,transferSize:r}=e;return{size:n,encoded_body_size:t,decoded_body_size:n,transfer_size:r}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}function kx(e){return e&&(!DM(e)||pu(Ta.TRACK_INTAKE_REQUESTS))}const MH=/data:(.+)?(;base64)?,/g,DH=24e3;function NR(e,t=DH){if(e.length<=t||!e.startsWith("data:"))return e;const n=e.substring(0,100).match(MH);return n?`${n[0]}[...]`:e}const D5=new Map;function IR(e,t){if(t===100)return!0;if(t===0)return!1;const n=D5.get(t);if(n&&e===n.sessionId)return n.decision;let r;return window.BigInt?r=LH(BigInt(`0x${e.split("-")[4]}`),t):r=vd(t),D5.set(t,{sessionId:e,decision:r}),r}function LH(e,t){const n=BigInt("1111111111111111111"),r=BigInt("0x10000000000000000"),o=e*n%r;return Number(o)<=t/100*Number(r)}function PH(){return DR(64)}function MR(){return DR(63)}function DR(e){const t=crypto.getRandomValues(new Uint32Array(2));return e===63&&(t[t.length-1]>>>=1),{toString(n=10){let r=t[1],o=t[0],s="";do{const l=r%n*4294967296+o;r=Math.floor(r/n),o=Math.floor(l/n),s=(l%n).toString(n)+s}while(r||o);return s}}}function cp(e){return e.toString(16).padStart(16,"0")}function FH(e){e.status===0&&!e.isAborted&&(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function jH(e,t,n,r){return{clearTracingIfNeeded:FH,traceFetch:o=>L5(e,o,t,n,r,s=>{var l;if(o.input instanceof Request&&!(!((l=o.init)===null||l===void 0)&&l.headers))o.input=new Request(o.input),Object.keys(s).forEach(f=>{o.input.headers.append(f,s[f])});else{o.init=Ad(o.init);const f=[];o.init.headers instanceof Headers?o.init.headers.forEach((m,p)=>{f.push([p,m])}):Array.isArray(o.init.headers)?o.init.headers.forEach(m=>{f.push(m)}):o.init.headers&&Object.keys(o.init.headers).forEach(m=>{f.push([m,o.init.headers[m]])}),o.init.headers=f.concat(F_(s))}}),traceXhr:(o,s)=>L5(e,o,t,n,r,l=>{Object.keys(l).forEach(f=>{s.setRequestHeader(f,l[f])})})}}function L5(e,t,n,r,o,s){const l=n.findTrackedSession();if(!l)return;const f=e.allowedTracingUrls.find(v=>fm([v.match],t.url,!0));if(!f)return;const m=IR(l.id,e.traceSampleRate);(m||e.traceContextInjection===_E.ALL)&&(t.traceSampled=m,t.traceId=PH(),t.spanId=MR(),s(UH(t.traceId,t.spanId,t.traceSampled,l.id,f.propagatorTypes,r,o,e)))}function UH(e,t,n,r,o,s,l,f){const m={};if(o.forEach(p=>{switch(p){case"datadog":{Object.assign(m,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":n?"1":"0","x-datadog-trace-id":e.toString()});break}case"tracecontext":{Object.assign(m,{traceparent:`00-0000000000000000${cp(e)}-${cp(t)}-0${n?"1":"0"}`,tracestate:`dd=s:${n?"1":"0"};o:rum`});break}case"b3":{Object.assign(m,{b3:`${cp(e)}-${cp(t)}-${n?"1":"0"}`});break}case"b3multi":{Object.assign(m,{"X-B3-TraceId":cp(e),"X-B3-SpanId":cp(t),"X-B3-Sampled":n?"1":"0"});break}}}),f.propagateTraceBaggage){const p={"session.id":r},v=s.getContext().id;typeof v=="string"&&(p["user.id"]=v);const g=l.getContext().id;typeof g=="string"&&(p["account.id"]=g);const y=Object.entries(p).map(([S,x])=>`${S}=${encodeURIComponent(x)}`).join(",");y&&(m.baggage=y)}return m}const BH=32*Kc;function VH(e,t){const n=zH(e,t.trackPayload);if(n){if(t.trackResponseErrors&&e.responseBody){const r=HH(e.responseBody);r&&(n.error_count=r.length,n.errors=r)}return n}}function HH(e){const t=I_(e);if(!t||typeof t!="object")return;const n=t;return Ed(n.errors)?n.errors.map(o=>{var s;return{message:o.message,path:o.path,locations:o.locations,code:(s=o.extensions)===null||s===void 0?void 0:s.code}}):void 0}function LR(e,t){return t.allowedGraphQlUrls.find(n=>fm([n.match],e))}function zH(e,t=!1){let n;if(e.method==="POST"?n=qH(e.requestBody):e.method==="GET"&&(n=GH(e.url)),!!n)return $H(n,t)}function qH(e){if(!e||typeof e!="string")return;const t=I_(e);if(t)return{query:t.query,operationName:t.operationName,variables:t.variables?JSON.stringify(t.variables):void 0}}function GH(e){const t=um(e).searchParams,n=t.get("variables"),r=n&&I_(n)!==void 0?n:void 0;return{query:t.get("query")||void 0,operationName:t.get("operationName")||void 0,variables:r}}function $H(e,t){let n,r,o;
79if(e.query){const s=e.query.trim();n=QH(s),t&&(r=P1(s,BH,"..."))}return e.variables&&(o=e.variables),{operationType:n,operationName:e.operationName,variables:o,payload:r}}function QH(e){var t;return(t=e.match(/^\s*(query|mutation|subscription)\b/i))===null||t===void 0?void 0:t[1]}let P5=1;function WH(e,t,n,r,o){const s=jH(t,n,r,o);YH(e,t,s),KH(e,t,s)}function YH(e,t,n){const r=_L(t).subscribe(o=>{const s=o;if(kx(s.url))switch(s.state){case"start":n.traceXhr(s,s.xhr),s.requestIndex=PR(),e.notify(7,{requestIndex:s.requestIndex,url:s.url});break;case"complete":n.clearTracingIfNeeded(s),e.notify(8,{...s,type:Uc.XHR,isAbortedOnStart:!1});break}});return{stop:()=>r.unsubscribe()}}function KH(e,t,n){const r=O7({responseBodyAction:o=>{var s;return!((s=LR(o.url,t))===null||s===void 0)&&s.trackResponseErrors?2:1}}).subscribe(o=>{var s;const l=o;if(kx(l.url))switch(l.state){case"start":n.traceFetch(l),l.requestIndex=PR(),e.notify(7,{requestIndex:l.requestIndex,url:l.url});break;case"resolve":n.clearTracingIfNeeded(l),e.notify(8,{...l,duration:$n(l.startClocks.timeStamp,Tr()),type:Uc.FETCH,requestBody:(s=l.init)===null||s===void 0?void 0:s.body});break}});return{stop:()=>r.unsubscribe()}}function PR(){const e=P5;return P5+=1,e}function FR(e){return I1(e)&&e<0?void 0:e}function JE(e){return e.nodeType===Node.TEXT_NODE}function XH(e){return e.nodeType===Node.COMMENT_NODE}function Su(e){return e.nodeType===Node.ELEMENT_NODE}function Nx(e){return Su(e)&&!!e.shadowRoot}function Ix(e){const t=e;return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Su(t.host)}function Ule(e){return e.childNodes.length>0||Nx(e)}function Ble(e,t){let n=e.firstChild;for(;n;)t(n),n=n.nextSibling;Nx(e)&&t(e.shadowRoot)}function ZH(e){return Ix(e)?e.host:e.parentNode}function jR(e){if(e.parentElement)return e.parentElement;const t=e.parentNode;return t&&Ix(t)?t.host:null}function JH(e,t){const n=Na();let r=!1;const{stop:o}=Fc(e,window,["click","mousedown","keydown","touchstart","pointerdown"],f=>{if(!f.cancelable)return;const m={entryType:"first-input",processingStart:Zo(),processingEnd:Zo(),startTime:f.timeStamp,duration:0,name:"",cancelable:!1,target:null,interactionId:0,toJSON:()=>({})};f.type==="pointerdown"?s(e,m):l(m)},{passive:!0,capture:!0});return{stop:o};function s(f,m){Fc(f,window,["pointerup","pointercancel"],p=>{p.type==="pointerup"&&l(m)},{once:!0})}function l(f){if(!r){r=!0,o();const m=f.processingStart-f.startTime;m>=0&&m<Na()-n&&t(f)}}}var on;(function(e){e.EVENT="event",e.FIRST_INPUT="first-input",e.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",e.LAYOUT_SHIFT="layout-shift",e.LONG_TASK="longtask",e.LONG_ANIMATION_FRAME="long-animation-frame",e.NAVIGATION="navigation",e.PAINT="paint",e.RESOURCE="resource",e.VISIBILITY_STATE="visibility-state"})(on||(on={}));function Eu(e,t){return new Jt(n=>{if(!window.PerformanceObserver)return;const r=m=>{const p=nz(m);p.length>0&&n.notify(p)};let o,s=!0;const l=new PerformanceObserver(jt(m=>{s?o=Ii(()=>r(m.getEntries())):r(m.getEntries())}));try{l.observe(t)}catch{if([on.RESOURCE,on.NAVIGATION,on.LONG_TASK,on.PAINT].includes(t.type)){t.buffered&&(o=Ii(()=>r(performance.getEntriesByType(t.type))));try{l.observe({entryTypes:[t.type]})}catch{return}}}s=!1,ez(e);let f;return!Zc(on.FIRST_INPUT)&&t.type===on.FIRST_INPUT&&({stop:f}=JH(e,m=>{r([m])})),()=>{l.disconnect(),f&&f(),Ca(o)}})}let F5;function ez(e){!F5&&tz()&&"addEventListener"in performance&&(F5=yr(e,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()}))}function tz(){return window.performance!==void 0&&"getEntries"in performance}function Zc(e){return window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes!==void 0&&PerformanceObserver.supportedEntryTypes.includes(e)}function nz(e){return e.filter(t=>!rz(t))}function rz(e){return e.entryType===on.RESOURCE&&(!kx(e.name)||!AR(e))}const UR=100,iz=100,j5="data-dd-excluded-activity-mutations";function Mx(e,t,n,r,o,s){const l=oz(e,t,n,r);let f,m=!1;const p=Ii(jt(()=>S({hadActivity:!1})),UR),v=s!==void 0?Ii(jt(()=>S({hadActivity:!0,end:Tr()})),s):void 0,g=l.subscribe(({isBusy:x})=>{Ca(p),Ca(f);const w=Tr();x||(f=Ii(jt(()=>S({hadActivity:!0,end:w})),iz))}),y=()=>{m=!0,Ca(p),Ca(f),Ca(v),g.unsubscribe()};function S(x){m||(y(),o(x))}return{stop:y}}function oz(e,t,n,r){return new Jt(o=>{const s=[];let l,f=0;return s.push(t.subscribe(p=>{p.every(az)||m()}),n.subscribe(m),Eu(r,{type:on.RESOURCE}).subscribe(p=>{p.some(v=>!_3(r,v.name))&&m()}),e.subscribe(7,p=>{_3(r,p.url)||(l===void 0&&(l=p.requestIndex),f+=1,m())}),e.subscribe(8,p=>{_3(r,p.url)||l===void 0||p.requestIndex<l||(f-=1,m())})),()=>
79{s.forEach(p=>p.unsubscribe())};function m(){o.notify({isBusy:f>0})}})}function _3(e,t){return fm(e.excludedActivityUrls,t)}function az(e){const t=e.type==="characterData"?e.target.parentElement:e.target;return!!(t&&Su(t)&&t.matches(`[${j5}], [${j5}] *`))}const e2="data-dd-action-name",BR="Masked Element",sz="::shadow ",Dx=[e2,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],lz=[zR,VR],uz=[zR,dz,HR];function z1(e,t){if(!e.isConnected)return;const n=cz(e),r=[];for(const{rootNode:o,target:s}of n){const l=fz(s,o,t);if(!l)return;r.push(l)}return r.join(sz)}function cz(e){const t=[];let n=e;for(;n;){const r=n.getRootNode();if(t.push({rootNode:r,target:n}),Ix(r))n=r.host;else break}return t.reverse()}function fz(e,t,n){let r,o=e;for(;o&&o.nodeName!=="HTML";){const s=U5(o,t,lz,pz,n,r);if(s)return c_(s,r);const f=U5(o,t,uz,mz,n,r)||hz(o);r=c_(f,r),o=o.parentElement}return r}function Lx(e){return/[0-9]/.test(e)}function VR(e){if(e.id&&!Lx(e.id))return`#${CSS.escape(e.id)}`}function dz(e){if(e.tagName==="BODY")return;const t=e.classList;for(let n=0;n<t.length;n+=1){const r=t[n];if(!Lx(r))return`${CSS.escape(e.tagName)}.${CSS.escape(r)}`}}function HR(e){return CSS.escape(e.tagName)}function zR(e,t){if(t){const r=n(t);if(r)return r}for(const r of Dx){const o=n(r);if(o)return o}function n(r){if(e.hasAttribute(r))return`${CSS.escape(e.tagName)}${qR(r,e.getAttribute(r))}`}}function qR(e,t){return`[${e}="${CSS.escape(t)}"]`}function hz(e){const t=GR(e);return`${CSS.escape(e.tagName)}:nth-of-type(${t})`}function GR(e){let n=e.parentNode.firstElementChild,r=1;for(;n&&n!==e;)n.tagName===e.tagName&&(r+=1),n=n.nextElementSibling;return r}function U5(e,t,n,r,o,s){for(const l of n){const f=l(e,o);if(f&&r(e,t,f,s))return f}}function pz(e,t,n,r){return t.querySelectorAll(c_(n,r)).length===1}function mz(e,t,n,r){let o;if(r===void 0)o=l=>l.matches(n);else{const l=c_(`${n}:scope`,r);o=f=>f.querySelector(l)!==null}let s=e.previousElementSibling;for(;s;){if(o(s))return!1;s=s.previousElementSibling}for(s=e.nextElementSibling;s;){if(o(s))return!1;s=s.nextElementSibling}return!0}function c_(e,t){return t?`${e}>${t}`:e}const Qt={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Tp.ALLOW,MASK:Tp.MASK,MASK_USER_INPUT:Tp.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:Tp.MASK_UNLESS_ALLOWLISTED},$R="data-dd-privacy",Vle="hidden",vz="dd-privacy-",S3="***",Hle="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",gz={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0},yz="x";function pd(e){return`[${$R}="${e}"], .${vz}${e}`}function t2(e,t,n){if(n&&n.has(e))return n.get(e);const r=ZH(e),o=r?t2(r,t,n):t,s=_z(e),l=bz(s,o);return n&&n.set(e,l),l}function bz(e,t){switch(t){case Qt.HIDDEN:case Qt.IGNORE:return t}switch(e){case Qt.ALLOW:case Qt.MASK:case Qt.MASK_USER_INPUT:case Qt.MASK_UNLESS_ALLOWLISTED:case Qt.HIDDEN:case Qt.IGNORE:return e;default:return t}}function _z(e){if(Su(e)){if(e.tagName==="BASE")return Qt.ALLOW;if(e.tagName==="INPUT"){const t=e;if(t.type==="password"||t.type==="email"||t.type==="tel"||t.type==="hidden")return Qt.MASK;const n=t.getAttribute("autocomplete");if(n&&(n.startsWith("cc-")||n.endsWith("-password")))return Qt.MASK}if(e.matches(pd(Qt.HIDDEN)))return Qt.HIDDEN;if(e.matches(pd(Qt.MASK)))return Qt.MASK;if(e.matches(pd(Qt.MASK_UNLESS_ALLOWLISTED)))return Qt.MASK_UNLESS_ALLOWLISTED;if(e.matches(pd(Qt.MASK_USER_INPUT)))return Qt.MASK_USER_INPUT;if(e.matches(pd(Qt.ALLOW)))return Qt.ALLOW;if(Ez(e))return Qt.IGNORE}}function QR(e,t){switch(t){case Qt.MASK:case Qt.HIDDEN:case Qt.IGNORE:return!0;case Qt.MASK_UNLESS_ALLOWLISTED:return JE(e)?tb(e.parentNode)?!0:!YR(e.textContent||""):tb(e);case Qt.MASK_USER_INPUT:return JE(e)?tb(e.parentNode):tb(e);default:return!1}}function Sz(e,t,n,r,o){if(r!==Qt.MASK&&r!==Qt.MASK_UNLESS_ALLOWLISTED||t===$R||Dx.includes(t)||t===o.actionNameAttribute)return!1;switch(t){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!(e==="A"&&t==="href"||e==="IFRAME"&&t==="srcdoc"||n&&t.startsWith("data-")||(e==="IMG"||e==="SOURCE")&&(t==="src"||t==="srcset"))}function tb(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;const t=e;if(t.tagName==="INPUT")switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!gz[t.tagName]}function WR(e){return e.replace(/\S/g,yz)}function zle(e,t){var n;const r=(n=e.parentElement)===null||n===void 0?void 0:n.tagName;let o=e.textContent||"";if(r==="HEAD"&&!o.trim())return;const l=t;if(r==="SCRIPT")o=S3;else if(l===Qt.HIDDEN)o=S3;else if(QR(e,l))if(r==="DATALIST"||r==="SELECT"||r==="OPTGROUP"){if(!o.trim())return}else r==="OPTION"?o=S3:o=WR(o);return o}function Ez(e){if(e.nodeName==="SCRIPT")return!0;
79if(e.nodeName==="LINK"){const n=t("rel");return/preload|prefetch/i.test(n)&&t("as")==="script"||n==="shortcut icon"||n==="icon"}if(e.nodeName==="META"){const n=t("name"),r=t("rel"),o=t("property");return/^msapplication-tile(image|color)$/.test(n)||n==="application-name"||r==="icon"||r==="apple-touch-icon"||r==="shortcut icon"||n==="keywords"||n==="description"||/^(og|twitter|fb):/.test(o)||/^(og|twitter):/.test(n)||n==="pinterest"||n==="robots"||n==="googlebot"||n==="bingbot"||e.hasAttribute("http-equiv")||n==="author"||n==="generator"||n==="framework"||n==="publisher"||n==="progid"||/^article:/.test(o)||/^product:/.test(o)||n==="google-site-verification"||n==="yandex-verification"||n==="csrf-token"||n==="p:domain_verify"||n==="verify-v1"||n==="verification"||n==="shopify-checkout-api-token"}function t(n){return(e.getAttribute(n)||"").toLowerCase()}return!1}function YR(e){var t;return!e||!e.trim()?!0:((t=window.$DD_ALLOW)===null||t===void 0?void 0:t.has(e.toLocaleLowerCase()))||!1}function xz(e,t){return YR(e)?e:t||WR(e)}function KR({lifeCycle:e,isChildEvent:t,onChange:n=Mn}){const r={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},o=e.subscribe(13,s=>{var l;if(!(s.type==="view"||s.type==="vital"||!t(s)))switch(s.type){case wt.ERROR:r.errorCount+=1,n();break;case wt.ACTION:r.actionCount+=1,s.action.frustration&&(r.frustrationCount+=s.action.frustration.type.length),n();break;case wt.LONG_TASK:r.longTaskCount+=1,n();break;case wt.RESOURCE:!((l=s._dd)===null||l===void 0)&&l.discarded||(r.resourceCount+=1,n());break}});return{stop:()=>{o.unsubscribe()},eventCounts:r}}const wz=5*Oo;function Px(e){const t=mm({expireDelay:wz}),n=new Map;function r(y){var S;n.delete(y.key),(S=y.eventCounts)===null||S===void 0||S.stop()}function o(){n.forEach(y=>{r(y)}),t.reset()}const s=e.subscribe(10,o);function l(y,S,x,w){const R=Rr(),T=t.add(R,S.relative),I=n.get(y);I&&r(I);const k=w?.isChildEvent?KR({lifeCycle:e,isChildEvent:w.isChildEvent(R)}):void 0,L={id:R,key:y,startClocks:S,data:x,historyEntry:T,eventCounts:k};return n.set(y,L),L}function f(y,S,x){var w;const R=n.get(y);if(!R)return;const T=x?yu(R.data,x):R.data;R.historyEntry.close(S.relative);const I=$n(R.startClocks.timeStamp,S.timeStamp),k=(w=R.eventCounts)===null||w===void 0?void 0:w.eventCounts;return r(R),{...T,id:R.id,startClocks:R.startClocks,duration:I,counts:k}}function m(y){var S;const x=n.get(y);if(!x)return;const w=(S=x.eventCounts)===null||S===void 0?void 0:S.eventCounts;return r(x),x.historyEntry.remove(),{...x.data,id:x.id,startClocks:x.startClocks,counts:w}}function p(y){return t.findAll(y)}function v(y){var S,x;return(x=(S=n.get(y))===null||S===void 0?void 0:S.eventCounts)===null||x===void 0?void 0:x.eventCounts}function g(){s.unsubscribe(),o(),t.stop()}return{start:l,stop:f,discard:m,getCounts:v,findId:p,stopAll:g}}const Cz=["HTML","BODY"],B5=2*Kc,V5=Dx.concat(["role","type","disabled","readonly","tabindex","draggable","target","rel","download","method","action","enctype","autocomplete"]);function Tz(e,t){const n=e.filter(s=>s instanceof Element&&!Cz.includes(s.tagName));if(n.length===0)return"";const r=t?[t].concat(V5):V5;let o="";for(const s of n){const l=Rz(s,r);if(o+=l,o.length>=B5)return P1(o,B5)}return o}function Rz(e,t){const n=HR(e),r=VR(e),o=Oz(e),s=kz(e,t),l=Az(e);return`${n}${r||""}${s}${o}${l};`}function Oz(e){return Array.from(e.classList).filter(t=>!Lx(t)).sort().map(t=>`.${CSS.escape(t)}`).join("")}function Az(e){const t=Array.from(e.parentNode.children);if(t.length<=1)return"";const n=t.filter(s=>s.tagName===e.tagName),r=t.indexOf(e),o=GR(e);return`:nth-child(${r+1})${n.length>1?`:nth-of-type(${o})`:""}`}function kz(e,t){const n=[],r=Array.from(e.attributes);for(const o of r)t.includes(o.name)&&n.push(qR(o.name,o.value));return n.sort().join("")}const XR=Pi,Nz=100;function Iz(e,t){const n=[];let r=0,o;s(e);function s(m){m.stopObservable.subscribe(l),n.push(m),Ca(o),o=Ii(f,XR)}function l(){r===1&&n.every(m=>m.isStopped())&&(r=2,t(n))}function f(){Ca(o),r===0&&(r=1,l())}return{tryAppend:m=>r!==0?!1:n.length>0&&!Mz(n[n.length-1].event,m.event)?(f(),!1):(s(m),!0),stop:()=>{f()}}}function Mz(e,t){return e.target===t.target&&Dz(e,t)<=Nz&&e.timeStamp-t.timeStamp<=XR}function Dz(e,t){return Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2))}function Lz(e,t,n=Qt.ALLOW){const r=new Map,{actionNameAttribute:o}=t,s=H5(e,e2)||o&&H5(e,o);return s?{name:s,nameSource:"custom_attribute"}:n===Qt.MASK?{name:BR,nameSource:"mask_placeholder"}:z5(e,Fz,t,r)||z5(e,jz,t,r)||{name:"",nameSource:"blank"}}function H5(e,t){const n=Pz(e,`[${t}]`);
79if(!n)return;const r=n.getAttribute(t);return JR(ZR(r.trim()))}function Pz(e,t){let n=e;for(;n;){if(n.matches(t))return n;n=jR(n)}return null}const Fz=[(e,t,n)=>{if("labels"in e&&e.labels&&e.labels.length>0)return qb(e.labels[0],t,n)},e=>{if(e.nodeName==="INPUT"){const t=e,n=t.getAttribute("type");if(n==="button"||n==="submit"||n==="reset")return{name:t.value,nameSource:"text_content"}}},(e,t,n)=>{if(e.nodeName==="BUTTON"||e.nodeName==="LABEL"||e.getAttribute("role")==="button")return qb(e,t,n)},(e,t,n)=>Uv(e,"aria-label",t,n),(e,t,n)=>{const r=e.getAttribute("aria-labelledby");if(r)return{name:r.split(/\s+/).map(o=>Bz(e,o)).filter(o=>!!o).map(o=>eO(o,t,n)).join(" "),nameSource:"text_content"}},(e,t,n)=>Uv(e,"alt",t,n),(e,t,n)=>Uv(e,"name",t,n),(e,t,n)=>Uv(e,"title",t,n),(e,t,n)=>Uv(e,"placeholder",t,n),(e,t,n)=>{if("options"in e&&e.options.length>0)return qb(e.options[0],t,n)}],jz=[(e,t,n)=>qb(e,t,n)],Uz=10;function z5(e,t,n,r){let o=e,s=0;for(;s<=Uz&&o&&o.nodeName!=="BODY"&&o.nodeName!=="HTML"&&o.nodeName!=="HEAD";){for(const l of t){const f=l(o,n,r);if(f){const{name:m,nameSource:p}=f,v=m&&m.trim();if(v)return{name:JR(ZR(v)),nameSource:p}}}if(o.nodeName==="FORM")break;o=jR(o),s+=1}}function ZR(e){return e.replace(/\s+/g," ")}function JR(e){return e.length>100?`${P1(e,100)} [...]`:e}function Bz(e,t){const n=e.getRootNode();if(n instanceof ShadowRoot){const r=n.getElementById(t);if(r)return r}return e.ownerDocument?e.ownerDocument.getElementById(t):null}function Uv(e,t,n,r){const{enablePrivacyForActionName:o,defaultPrivacyLevel:s}=n;let l=e.getAttribute(t);if(l&&o){const f=t2(e,s,r);Sz(e.tagName,t,l,f,n)&&(l=xz(l,BR))}else l||(l="");return{name:l,nameSource:"standard_attribute"}}function qb(e,t,n){return{name:eO(e,t,n)||"",nameSource:"text_content"}}function eO(e,t,n){if(e.isContentEditable)return;const{enablePrivacyForActionName:r,actionNameAttribute:o,defaultPrivacyLevel:s}=t;if(pu(Ta.USE_TREE_WALKER_FOR_ACTION_NAME))return Vz(e,o,r,s,n);if("innerText"in e){let l=e.innerText;const f=m=>{const p=e.querySelectorAll(m);for(let v=0;v<p.length;v+=1){const g=p[v];if("innerText"in g){const y=g.innerText;y&&y.trim().length>0&&(l=l.replace(y,""))}}};return f(`[${e2}]`),o&&f(`[${o}]`),r&&f(`${pd(Qt.HIDDEN)}, ${pd(Qt.MASK)}`),l}return e.textContent}function Vz(e,t,n,r,o){const s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,f);let l="";for(;s.nextNode();){const m=s.currentNode;if(Su(m)){(m.nodeName==="BR"||m.nodeName==="P"||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(m).display))&&(l+=" ");continue}l+=m.textContent||""}return l.replace(/\s+/g," ").trim();function f(m){const p=t2(m,r,o);if(n&&p&&QR(m,p))return NodeFilter.FILTER_REJECT;if(Su(m)){if(m.hasAttribute(e2)||t&&m.hasAttribute(t))return NodeFilter.FILTER_REJECT;const v=getComputedStyle(m);if(v.visibility!=="visible"||v.display==="none"||v.contentVisibility&&v.contentVisibility!=="visible")return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}}function Hz(e,{onPointerDown:t,onPointerUp:n}){let r,o={selection:!1,input:!1,scroll:!1},s;const l=[yr(e,window,"pointerdown",f=>{G5(f)&&(r=q5(),o={selection:!1,input:!1,scroll:!1},s=t(f))},{capture:!0}),yr(e,window,"selectionchange",()=>{(!r||!q5())&&(o.selection=!0)},{capture:!0}),yr(e,window,"scroll",()=>{o.scroll=!0},{capture:!0,passive:!0}),yr(e,window,"pointerup",f=>{if(G5(f)&&s){const m=o;n(s,f,()=>m),s=void 0}},{capture:!0}),yr(e,window,"input",()=>{o.input=!0},{capture:!0})];return{stop:()=>{l.forEach(f=>f.stop())}}}function q5(){const e=window.getSelection();return!e||e.isCollapsed}function G5(e){return e.target instanceof Element&&e.isPrimary!==!1}const $5=3;function zz(e,t){if(qz(e))return t.addFrustration(xp.RAGE_CLICK),e.some(Q5)&&t.addFrustration(xp.DEAD_CLICK),t.hasError&&t.addFrustration(xp.ERROR_CLICK),{isRage:!0};const n=e.some(r=>r.getUserActivity().selection);return e.forEach(r=>{r.hasError&&r.addFrustration(xp.ERROR_CLICK),Q5(r)&&!n&&r.addFrustration(xp.DEAD_CLICK)}),{isRage:!1}}function qz(e){if(e.some(t=>t.getUserActivity().selection||t.getUserActivity().scroll))return!1;for(let t=0;t<e.length-($5-1);t+=1)if(e[t+$5-1].event.timeStamp-e[t].event.timeStamp<=Pi)return!0;return!1}const Gz='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function Q5(e){if(e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll)return!1;let t=e.event.target;return t.tagName==="LABEL"&&t.hasAttribute("for")&&(t=document.getElementById(t.getAttribute("for"))),!t||!t.matches(Gz)}const tO=10*Pi,d1=new Map;function $z(e){const t=d1.get(e);return d1.delete(e),t}function nO(e,t){d1.set(e,t),d1.forEach((n,r)=>{$n(r,Zo())>tO&&d1.delete(r)})}function rO(e){return t=>t.action!==void 0&&t.action.id!==void 0&&t.action.id.includes(e)}function Qz(e,t,n,r){const o=Px(e),s=new Jt;let l;e.subscribe(5,p),e.subscribe(11,p);const{stop:f}
79=Hz(r,{onPointerDown:v=>Wz(r,e,t,v,n),onPointerUp:({clickActionBase:v,hadActivityOnPointerDown:g},y,S)=>{Yz(r,e,t,n,o,s,m,v,y,S,g)}});return{stop:()=>{p(),s.notify(),f(),o.stopAll()},findActionId:o.findId};function m(v){if(!l||!l.tryAppend(v)){const g=v.clone();l=Iz(v,y=>{Xz(y,g),l=void 0})}}function p(){l&&l.stop()}}function Wz(e,t,n,r,o){const s=e.betaTrackActionsInShadowDom?iO(r):r.target;let l;if(e.enablePrivacyForActionName?l=t2(s,e.defaultPrivacyLevel):l=Qt.ALLOW,l===Qt.HIDDEN)return;const f=Kz(r,l,e);let m=!1;return Mx(t,n,o,e,p=>{m=p.hadActivity},UR),{clickActionBase:f,hadActivityOnPointerDown:()=>m}}function Yz(e,t,n,r,o,s,l,f,m,p,v){var g;const y=oO(t,o,p,f,m);l(y);const S=(g=f?.target)===null||g===void 0?void 0:g.selector;S&&nO(m.timeStamp,S);const{stop:x}=Mx(t,n,r,e,I=>{I.hadActivity&&I.end<y.startClocks.timeStamp?y.discard():I.hadActivity?y.stop(I.end):v()?y.stop(y.startClocks.timeStamp):y.stop()},tO),w=t.subscribe(5,({endClocks:I})=>{y.stop(I.timeStamp)}),R=t.subscribe(11,()=>{y.stop(Tr())}),T=s.subscribe(()=>{y.stop()});y.stopObservable.subscribe(()=>{R.unsubscribe(),w.unsubscribe(),x(),T.unsubscribe()})}function Kz(e,t,n){const r=n.betaTrackActionsInShadowDom?iO(e):e.target,o=r.getBoundingClientRect(),s=z1(r,n.actionNameAttribute),l=Tz(e.composedPath(),n.actionNameAttribute);s&&nO(e.timeStamp,s);const{name:f,nameSource:m}=Lz(r,n,t);return{type:Ax.CLICK,target:{width:Math.round(o.width),height:Math.round(o.height),selector:s,composedPathSelector:l||void 0},position:{x:Math.round(e.clientX-o.left),y:Math.round(e.clientY-o.top)},name:f,nameSource:m}}function iO(e){if(e.composed&&Nx(e.target)&&typeof e.composedPath=="function"){const t=e.composedPath();if(t.length>0&&t[0]instanceof Element)return t[0]}return e.target}function oO(e,t,n,r,o){const s=Rr(),l=D1(o.timeStamp),f=t.start(s,l,r,{isChildEvent:rO});e.notify(15,f);let m=0,p;const v=[],g=new Jt;function y(S){m===0&&(m=1,p=S?t.stop(s,T8(S)):t.discard(s),g.notify())}return{event:o,stop:y,stopObservable:g,get hasError(){var S;
79const x=(S=p?.counts)!==null&&S!==void 0?S:t.getCounts(s);return x?x.errorCount>0:!1},get hasPageActivity(){return p&&"duration"in p},getUserActivity:n,addFrustration:S=>{v.push(S)},get startClocks(){return l},isStopped:()=>m===1||m===2,clone:()=>oO(e,t,n,r,o),validate:S=>{if(y(),m!==1||!p)return;const x={frustrationTypes:v,events:S??[o],event:o,...p,counts:p.counts};e.notify(0,x),m=2},discard:()=>{y(),m=2}}}function Xz(e,t){const{isRage:n}=zz(e,t);n?(e.forEach(r=>r.discard()),t.stop(Tr()),t.validate(e.map(r=>r.event))):(t.discard(),e.forEach(r=>r.validate()))}function Zz(e,t){const n=Px(e);function r(l,f={},m=Gn()){var p;const v=(p=f.actionKey)!==null&&p!==void 0?p:l,g=n.start(v,m,{name:l,...f},{isChildEvent:rO});e.notify(15,g)}function o(l,f={},m=Gn()){var p;const v=(p=f.actionKey)!==null&&p!==void 0?p:l,g=n.stop(v,m,f);if(!g)return;const y=[];g.counts&&g.counts.errorCount>0&&y.push(xp.ERROR_CLICK);const S={...g,type:g.type||Ax.CUSTOM,frustrationTypes:y};t(S)}function s(l){t({id:Rr(),frustrationTypes:[],...l})}return{addAction:s,startAction:r,stopAction:o,findActionId:n.findId,stop:n.stopAll}}const Jz=1;function eq(e,t,n,r,o){const{unsubscribe:s}=e.subscribe(0,p=>{e.notify(12,W5(p))});let l;o.trackUserInteractions&&(l=Qz(e,n,r,o));const f=Zz(e,p=>{e.notify(12,W5(p))}),m={findActionId:p=>{var v;const g=f.findActionId(p),y=(v=l?.findActionId(p))!==null&&v!==void 0?v:[];return g.concat(y)}};return t.register(0,({startTime:p,eventType:v})=>{if(v!==wt.ERROR&&v!==wt.RESOURCE&&v!==wt.LONG_TASK)return so;const g=v===wt.LONG_TASK?Fd(p,Jz):p,y=m.findActionId(g);return y.length?{type:v,action:{id:y}}:so}),t.register(1,({startTime:p})=>({action:{id:m.findActionId(p)}})),{addAction:f.addAction,startAction:f.startAction,stopAction:f.stopAction,actionContexts:m,stop:()=>{s(),f.stop(),l?.stop()}}}function W5(e){var t,n,r,o;const s=tq(e),l=FR(vt(e.duration));return{rawRumEvent:{type:wt.ACTION,date:e.startClocks.timeStamp,action:{id:e.id,target:{name:e.name},type:e.type,...l!==void 0&&{loading_time:l},...e.counts&&{error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},frustration:{type:e.frustrationTypes}},...s?{_dd:{action:{target:{selector:((t=e.target)===null||t===void 0?void 0:t.selector)||void 0,width:((n=e.target)===null||n===void 0?void 0:n.width)||void 0,height:((r=e.target)===null||r===void 0?void 0:r.height)||void 0,composed_path_selector:(o=e.target)===null||o===void 0?void 0:o.composedPathSelector},position:e.position,name_source:e.nameSource}}}:{context:e.context}},duration:e.duration,startClocks:e.startClocks,domainContext:s?{events:e.events}:{handlingStack:e.handlingStack}}}function tq(e){return"events"in e}function nq(e){const t=LL([k_.error]).subscribe(n=>e.notify(n.error));return{stop:()=>{t.unsubscribe()}}}function rq(e,t){const n=yD(e,[g1.cspViolation,g1.intervention]).subscribe(r=>t.notify(r));return{stop:()=>{n.unsubscribe()}}}function iq(e,t,n){const r=new Jt;return n.subscribe(o=>{o.type===0&&r.notify(o.error)}),nq(r),rq(t,r),r.subscribe(o=>e.notify(14,{error:o})),oq(e)}function oq(e){return e.subscribe(14,({error:t})=>{e.notify(12,aq(t))}),{addError:({error:t,handlingStack:n,componentStack:r,startClocks:o,context:s})=>{const l=$6({originalError:t,handlingStack:n,componentStack:r,startClocks:o,nonErrorPrefix:"Provided",source:hm.CUSTOM,handling:"handled"});l.context=yu(l.context,s),e.notify(14,{error:l})}}}function aq(e){const t={date:e.startClocks.timeStamp,error:{id:Rr(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,component_stack:e.componentStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint,csp:e.csp},type:wt.ERROR,context:e.context},n={error:e.originalError,handlingStack:e.handlingStack};return{rawRumEvent:t,startClocks:e.startClocks,domainContext:n}}const Y5=new WeakSet;function sq(e){if(!performance||!("getEntriesByName"in performance))return;const t=performance.getEntriesByName(e.url,"resource");if(!t.length||!("toJSON"in t[0]))return;const n=t.filter(r=>!Y5.has(r)).filter(r=>AR(r)&&kR(r)).filter(r=>lq(r,e.startClocks.relative,aO({startTime:e.startClocks.relative,duration:e.duration})));if(n.length===1)return Y5.add(n[0]),n[0].toJSON()}function aO(e){return Fd(e.startTime,e.duration)}function lq(e,t,n){return e.startTime>=t-1&&aO(e)<=Fd(n,1)}const uq=2*Oo;function cq(e){const t=fq(e)||dq(e);if(!(!t||t.traceTime<=Na()-uq))return t.traceId}function fq(e){const t=e.querySelector("meta[name=dd-trace-id]"),n=e.querySelector("meta[name=dd-trace-time]");return sO(t&&t.content,n&&n.content)}function dq(e){const t=hq(e);if(t)return sO(v1(t,"trace-id"),v1(t,"trace-time"))}function sO(e,t){const n=t&&Number(t);if(!(!e||!n))return{traceId:e,traceTime:n}}function hq(e){for(let t=0;t<e.childNodes.length;t+=1){const n=K5(e.childNodes[t]);if(n)return n}if(e.body)for(let t=e.body.childNodes.length-1;t>=0;t-=1){const n=e.body.childNodes[t],r=K5(n);if(r)return r;if(!JE(n))break}}function K5(e){if(e&&XH(e)){const t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function Fx(){if(Zc(on.NAVIGATION)){const n=performance.getEntriesByType(on.NAVIGATION)[0];if(n)return n}const e=pq(),t={entryType:on.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...t,toJSON:void 0}),...e};return t}function pq(){const e={},t=performance.timing;for(const n in t)if(I1(t[n])){const r=n,o=t[r];e[r]=o===0?0:O8(o)}return e}function lO(e){return e.responseStart>=0&&e.responseStart<=Zo()?e.responseStart:void 0}function mq(){if(Zc(on.RESOURCE))return performance.getEntriesByType(on.RESOURCE)}function vq(e,t){const n=mq();if(n)return I8(n,r=>r.name===e&&r.startTime<=t)}function gq(e,t){W6(e,"interactive",()=>{const n=Fx(),r=Object.assign(n.toJSON(),{entryType:on.RESOURCE,initiatorType:RR,duration:n.responseEnd,traceId:cq(document),toJSON:()=>({...r,toJSON:void 0})});t(r)})}const yq=1e3;function bq(e){const t=new Set;let n=!1;const r=e.subscribe(8,o=>{if(t.add(o),t.size>yq){const s=t.values().next().value;if(!n){n=!0;let l;if(pu(Ta.TOO_MANY_REQUESTS_INVESTIGATION)){let f=0,m=0,p=0,v=0;for(const y of t)y.isAborted&&f++,y.isAbortedOnStart&&m++,y.type===Uc.XHR&&p++,performance.getEntriesByName(y.url,"resource").some(w=>w.startTime>=y.startClocks.relative)||v++;const g=Tr()-s.startClocks.timeStamp;l={abortedCount:f,abortedOnStartCount:m,xhrCount:p,fetchCount:t.size-p,oldestRequestAge:g,oldestRequestEndAge:g-s.duration,withoutMatchingEntryCount:v}}y1("Too many requests",l)}t.delete(s)}});return{getMatchingRequest(o){let s=1/0,l;for(const f of t){const m=o.startTime-f.startClocks.relative;0<=m&&m<s&&f.url===o.name&&(s=Math.abs(m),l=f)}return l&&t.delete(l),l},stop(){r.unsubscribe()}}}function _q(e,t){function n(o,s={},l=Gn()){var f;const m=(f=s.resourceKey)!==null&&f!==void 0?f:o;t.start(m,l,{url:o,...s})}function r(o,s={},l=Gn()){var f;const m=(f=s.resourceKey)!==null&&f!==void 0?f:o,p=t.stop(m,l,{context:s.context,type:s.type});if(!p)return;const v=$n(p.startClocks.relative,l.relative),g={date:p.startClocks.timeStamp,type:wt.RESOURCE,resource:{id:p.id,type:p.type||Ni.OTHER,url:NR(p.url),duration:vt(v),method:p.method,status_code:s.statusCode,size:s.size},_dd:{},context:p.context};e.notify(12,{rawRumEvent:g,startClocks:p.startClocks,duration:v,domainContext:{isManual:!0}})}return{startResource:n,stopResource:r}}function Sq(e,t,n){const r=DL();let o;const s=t.trackEarlyRequests;s?o=bq(e):e.subscribe(8,v=>{f(()=>Eq(v,t,n))});const l=Eu(t,{type:on.RESOURCE,buffered:!0}).subscribe(v=>{for(const g of v)(s||!OR(g))&&f(()=>X5(g,t,n,o))});gq(t,v=>{f(()=>X5(v,t,n,o))});
79function f(v){r.push(()=>{const g=v();g&&e.notify(12,g)})}const m=Px(e),p=_q(e,m);return{startResource:p.startResource,stopResource:p.stopResource,stop:()=>{r.stop(),l.unsubscribe(),m.stopAll()}}}function Eq(e,t,n){const r=sq(e);return uO(r,e,n,t)}function X5(e,t,n,r){const o=OR(e)&&r?r.getMatchingRequest(e):void 0;return uO(e,o,n,t)}function uO(e,t,n,r){if(!e&&!t)return;const o=t?Rq(t,r):Oq(e,r);if(!r.trackResources&&!o)return;const s=e?D1(e.startTime):t.startClocks,l=e?RH(e):Aq(n,s,t.duration),f=pu(Ta.TRACK_RESOURCE_HEADERS)?Nq(t,r):void 0,m=t&&xq(t,r),p=e&&wq(e),v=yu({date:s.timeStamp,resource:{id:Rr(),duration:vt(l),type:t?t.type===Uc.XHR?Ni.XHR:Ni.FETCH:TH(e),method:t?t.method:void 0,status_code:t?t.status:kq(e.responseStatus),url:t?NR(t.url):e.name,protocol:e&&kH(e),delivery_type:e&&NH(e),graphql:m},type:wt.RESOURCE,_dd:{discarded:!r.trackResources}},o,e&&Tq(e),p,f);return{startClocks:s,duration:l,rawRumEvent:v,domainContext:Cq(e,t)}}function xq(e,t){const n=LR(e.url,t);if(n)return VH(e,n)}function wq(e){const t=e.contentType;if(t)return{resource:{response:{headers:{"content-type":t}}}}}function Cq(e,t){if(t){const n={performanceEntry:e,isAborted:t.isAborted,handlingStack:t.handlingStack};return t.type===Uc.XHR?{xhr:t.xhr,...n}:{requestInput:t.input,requestInit:t.init,response:t.response,error:t.error,...n}}return{performanceEntry:e}}function Tq(e){const{renderBlockingStatus:t}=e;return{resource:{render_blocking_status:t,...IH(e),...OH(e)}}}function Rq(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}function Oq(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:MR().toString(),rule_psr:t.rulePsr}}}function Aq(e,t,n){return e.wasInPageStateDuringPeriod("frozen",t.relative,n)?void 0:n}function kq(e){return e===0?void 0:e}function Nq(e,t){const n=t.trackResourceHeaders;if(n.length===0||!e)return;const r=n.filter(m=>m.url!==void 0?fm([m.url],e.url,!0):!0);if(r.length===0)return;const o=r.filter(m=>m.location===void 0||m.location==="any"||m.location==="response"),s=r.filter(m=>m.location===void 0||m.location==="any"||m.location==="request"),l=o.length>0?Iq(e,o):void 0,f=s.length>0?Mq(e,s):void 0;if(!(!l&&!f))return{resource:{request:f?{headers:f}:void 0,response:l?{headers:l}:void 0}}}function Iq(e,t){if(e.type===Uc.FETCH&&e.response)return e6(e.response.headers,t);if(e.type===Uc.XHR&&e.xhr){const n=e.xhr.getAllResponseHeaders();if(n)try{return e6(new Headers(Lq(n)),t)}catch{}}}function Mq(e,t){var n;if(e.type!==Uc.FETCH)return;let r;return!((n=e.init)===null||n===void 0)&&n.headers?r=new Headers(e.init.headers):e.input instanceof Request&&(r=e.input.headers),r?e6(r,t):void 0}const Dq=/(token|cookie|secret|authorization|(api|secret|access|app).?key|(client|connecting|real).?ip|forwarded)/,Z5=100,nb=128;function e6(e,t){const n={};let r=0,o=0,s=!1;return e.forEach((l,f)=>{if(o++,r>=Z5){s||(ut.warn(`Maximum number of headers (${Z5}) has been reached. Further headers are dropped.`),s=!0);return}const m=f.toLowerCase();if(Dq.test(m))return;const p=t.find(y=>fm([y.name],m));if(!p)return;const{extractor:v}=p,g=v?CR(l,v):l;g!==void 0&&(g.length>nb&&(ut.warn(`Header "${m}" value was truncated from ${g.length} to ${nb} characters.`),y1("Resource header value was truncated",{header_name:m,original_length:g.length,limit:nb})),n[m]=P1(g,nb),r++)}),s&&y1("Maximum number of resource headers reached",{collectedHeaderCount:r,totalHeaderCount:o}),r>0?n:void 0}function Lq(e){const t=[],n=e.trim().split(/\r\n/);for(const r of n){const o=r.indexOf(":");o>0&&t.push([r.substring(0,o).trim(),r.substring(o+1).trim()])}return t}function Pq(e,t,n){const{stop:r,eventCounts:o}=KR({lifeCycle:e,isChildEvent:s=>s.view.id===t,onChange:n});return{stop:r,eventCounts:o}}const Fq=10*Oo;function jq(e,t,n){return{stop:Eu(e,{type:on.PAINT,buffered:!0}).subscribe(o=>{const s=o.find(l=>l.name==="first-contentful-paint"&&l.startTime<t.timeStamp&&l.startTime<Fq);s&&n(s.startTime)}).unsubscribe}}function Uq(e,t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t($n(e,Zo()))})})}function Bq(e,t,n){const r=Eu(e,{type:on.FIRST_INPUT,buffered:!0}).subscribe(o=>{const s=o.find(l=>l.startTime<t.timeStamp);if(s){const l=$n(s.startTime,s.processingStart);let f;s.target&&Su(s.target)&&(f=z1(s.target,e.actionNameAttribute)),n({delay:l>=0?l:0,time:s.startTime,targetSelector:f})}});return{stop:()=>{r.unsubscribe()}}}function Vq(e,t){return qq(e,()=>{const n=Fx();zq(n)||t(Hq(n))})}function Hq(e){return{domComplete:e.domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:lO(e)}}function zq(e){return e.loadEventEnd<=0}function qq(e,t){let n;const{stop:r}=W6(e,"complete",()=>{n=Ii(()=>t())});return{stop:()=>{r(),Ca(n)}}}const Gq=10*Oo;function $q(e,t,n,r){let o=1/0;const{stop:s}=Fc(e,n,["pointerdown","keydown"],m=>{o=m.timeStamp},{capture:!0,once:!0});let l=0;const f=Eu(e,{type:on.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(m=>{const p=I8(m,v=>v.entryType===on.LARGEST_CONTENTFUL_PAINT&&v.startTime<o&&v.startTime<t.timeStamp&&v.startTime<Gq&&v.size>l);if(p){let v;p.element&&(v=z1(p.element,e.actionNameAttribute));const g=Qq(p),y=p.startTime,S=Wq(g,y);r({value:y,targetSelector:v,resourceUrl:g,subParts:S}),l=p.size}}
79);return{stop:()=>{s(),f.unsubscribe()}}}function Qq(e){return e.url===""?void 0:e.url}function Wq(e,t){const n=lO(Fx());if(n===void 0)return;const r=e?vq(e,t):void 0,o=r?Math.max(n,r.requestStart||r.startTime):n,s=Math.min(t,Math.max(o,r?.responseEnd||0));return{loadDelay:o-n,loadTime:s-o,renderDelay:t-s}}function cO(e,t,n=window){if(document.visibilityState==="hidden")return{timeStamp:0,stop:Mn};if(Zc(on.VISIBILITY_STATE)){const s=performance.getEntriesByType(on.VISIBILITY_STATE).filter(l=>l.name==="hidden").find(l=>l.startTime>=t.relative);if(s)return{timeStamp:s.startTime,stop:Mn}}let r=1/0;const{stop:o}=Fc(e,n,["pagehide","visibilitychange"],s=>{(s.type==="pagehide"||document.visibilityState==="hidden")&&(r=s.timeStamp,o())},{capture:!0});return{get timeStamp(){return r},stop:o}}function Yq(e,t,n,r){const o={},{stop:s}=Vq(e,g=>{n(g.loadEvent),o.navigationTimings=g,r()}),l=cO(e,t),{stop:f}=jq(e,l,g=>{o.firstContentfulPaint=g,r()}),{stop:m}=$q(e,l,window,g=>{o.largestContentfulPaint=g,r()}),{stop:p}=Bq(e,l,g=>{o.firstInput=g,r()});function v(){s(),f(),m(),p(),l.stop()}return{stop:v,initialViewMetrics:o}}const t6=(e,t)=>e*t,Kq=(e,t)=>{const n=Math.max(e.left,t.left),r=Math.max(e.top,t.top),o=Math.min(e.right,t.right),s=Math.min(e.bottom,t.bottom);return n>=o||r>=s?0:t6(o-n,s-r)},J5=e=>{const t=t6(e.previousRect.width,e.previousRect.height),n=t6(e.currentRect.width,e.currentRect.height),r=Kq(e.previousRect,e.currentRect);return t+n-r};function Xq(e,t,n){if(!nG())return{stop:Mn};let r=0,o;n({value:0});const s=tG(),l=Eu(e,{type:on.LAYOUT_SHIFT,buffered:!0}).subscribe(f=>{var m;for(const p of f){if(p.hadRecentInput||p.startTime<t)continue;const{cumulatedValue:v,isMaxValue:g}=s.update(p);if(g){const y=Zq(p.sources);o={target:y?.node?new WeakRef(y.node):void 0,time:$n(t,p.startTime),previousRect:y?.previousRect,currentRect:y?.currentRect,devicePixelRatio:window.devicePixelRatio}}if(v>r){r=v;const y=(m=o?.target)===null||m===void 0?void 0:m.deref();n({value:Cp(r,4),targetSelector:y&&z1(y,e.actionNameAttribute),time:o?.time,previousRect:o?.previousRect?e4(o.previousRect):void 0,currentRect:o?.currentRect?e4(o.currentRect):void 0,devicePixelRatio:o?.devicePixelRatio})}}});return{stop:()=>{l.unsubscribe()}}}function Zq(e){let t;for(const n of e)if(n.node&&Su(n.node)){const r=J5(n);(!t||J5(t)<r)&&(t=n)}return t}function e4({x:e,y:t,width:n,height:r}){return{x:e,y:t,width:n,height:r}}const Jq=5*Pi,eG=Pi;function tG(){let e=0,t,n,r=0;return{update:o=>{const s=t===void 0||o.startTime-n>=eG||o.startTime-t>=Jq;let l;return s?(t=n=o.startTime,r=e=o.value,l=!0):(e+=o.value,n=o.startTime,l=o.value>r,l&&(r=o.value)),{cumulatedValue:e,isMaxValue:l}}}}function nG(){return Zc(on.LAYOUT_SHIFT)&&"WeakRef"in window}let Gb,fO=0,E3=1/0,x3=0;function rG(){"interactionCount"in performance||Gb||(Gb=new window.PerformanceObserver(jt(e=>{e.getEntries().forEach(t=>{const n=t;n.interactionId&&(E3=Math.min(E3,n.interactionId),x3=Math.max(x3,n.interactionId),fO=(x3-E3)/7+1)})})),Gb.observe({type:"event",buffered:!0,durationThreshold:0}))}const t4=()=>Gb?fO:window.performance.interactionCount||0,n4=10,iG=1*Oo,oG=8;function aG(e,t,n){if(!cG())return{getInteractionToNextPaint:()=>{},setViewEnd:Mn,stop:Mn};let r=1/0,o;const{getViewInteractionCount:s,stopViewInteractionCount:l}=lG(n),f=sG(s),m=uG(f),p=Eu(e,{type:on.FIRST_INPUT,buffered:!0}).subscribe(g),v=Eu(e,{type:on.EVENT,durationThreshold:40,buffered:!0}).subscribe(g);function g(S){for(const w of S)w.interactionId&&w.startTime>=t&&w.startTime<=r&&(f.process(w),m.process(w));m.pruneUntracked();const x=f.estimateP98Interaction();x&&y(x)}function y(S){const x=$n(t,S.startTime);if(!o||S.duration!==o.duration||x!==o.startTime){let w=$z(S.startTime);!w&&S.target&&Su(S.target)&&(w=z1(S.target,e.actionNameAttribute)),o={duration:S.duration,startTime:x,targetSelector:w}}o.subParts=m.computeSubParts(S,r4(o.duration))}return{getInteractionToNextPaint:()=>{if(o)return{value:r4(o.duration),targetSelector:o.targetSelector,time:o.startTime,subParts:o.subParts};if(s())return{value:0}}
79,setViewEnd:S=>{r=S,l()},stop:()=>{v.unsubscribe(),p.unsubscribe(),m.stop()}}}function sG(e){const t=[];function n(){t.sort((r,o)=>o.duration-r.duration).splice(n4)}return{process(r){const o=t.findIndex(l=>r.interactionId===l.interactionId),s=t[t.length-1];o!==-1?r.duration>t[o].duration&&(t[o]=r,n()):(t.length<n4||r.duration>s.duration)&&(t.push(r),n())},estimateP98Interaction(){const r=Math.min(t.length-1,Math.floor(e()/50));return t[r]},isTracked(r){return t.some(o=>o.interactionId===r)}}}function lG(e){rG();const t=e===du.INITIAL_LOAD?0:t4();let n={stopped:!1};function r(){return t4()-t}return{getViewInteractionCount:()=>n.stopped?n.interactionCount:r(),stopViewInteractionCount:()=>{n={stopped:!0,interactionCount:r()}}}}function uG(e){const t=new Map;function n(r,o){r.startTime=Math.min(o.startTime,r.startTime),r.processingStart=Math.min(o.processingStart,r.processingStart),r.processingEnd=Math.max(o.processingEnd,r.processingEnd)}return{process(r){if(r.interactionId===void 0||!r.processingStart||!r.processingEnd)return;const o=r.startTime+r.duration,s=t.get(r.interactionId);if(s){n(s,r);return}for(const[,l]of t.entries())if(Math.abs(o-l.referenceRenderTime)<=oG){n(l,r),t.set(r.interactionId,l);return}t.set(r.interactionId,{startTime:r.startTime,processingStart:r.processingStart,processingEnd:r.processingEnd,referenceRenderTime:o})},pruneUntracked(){for(const[r]of t)e.isTracked(r)||t.delete(r)},computeSubParts(r,o){if(!r.processingStart||!r.processingEnd||r.interactionId===void 0)return;const s=t.get(r.interactionId);if(!s)return;const l=Math.max(s.startTime+o,s.processingStart),f=Math.min(s.processingEnd,l);return{inputDelay:$n(s.startTime,s.processingStart),processingDuration:$n(s.processingStart,f),presentationDelay:$n(f,l)}},stop(){t.clear()}}}function cG(){return Zc(on.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype}function r4(e){return Math.min(e,iG)}function fG(e,t,n,r,o,s,l){let f=o===du.INITIAL_LOAD,m=!0;const p=[],v=cO(r,s);function g(){if(!m&&!f&&p.length>0){const S=Math.max(...p);S<v.timeStamp-s.relative&&l(S)}}const{stop:y}=Mx(e,t,n,r,S=>{m&&(m=!1,S.hadActivity&&p.push($n(s.timeStamp,S.end)),g())});return{stop:()=>{y(),v.stop()},setLoadEvent:S=>{f&&(f=!1,p.push(S),g())}}}function qle(){let e;const t=window.visualViewport;return t?e=t.pageLeft-t.offsetLeft:window.scrollX!==void 0?e=window.scrollX:e=window.pageXOffset||0,Math.round(e)}function dG(){let e;const t=window.visualViewport;return t?e=t.pageTop-t.offsetTop:window.scrollY!==void 0?e=window.scrollY:e=window.pageYOffset||0,Math.round(e)}let w3;function hG(e){return w3||(w3=pG(e)),w3}function pG(e){return new Jt(t=>{const{throttled:n}=D_(()=>{t.notify(jx())},200);return yr(e,window,"resize",n,{capture:!0,passive:!0}).stop})}function jx(){const e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}const mG=Pi;function vG(e,t,n,r=yG(e)){let o=0,s=0,l=0;const f=r.subscribe(({scrollDepth:m,scrollTop:p,scrollHeight:v})=>{let g=!1;if(m>o&&(o=m,g=!0),v>s){s=v;const y=Zo();l=$n(t.relative,y),g=!0}g&&n({maxDepth:Math.min(o,s),maxDepthScrollTop:p,maxScrollHeight:s,maxScrollHeightTime:l})});return{stop:()=>f.unsubscribe()}}function gG(){const e=dG(),{height:t}=jx(),n=Math.round((document.scrollingElement||document.documentElement).scrollHeight),r=Math.round(t+e);return{scrollHeight:n,scrollDepth:r,scrollTop:e}}function yG(e,t=mG){return new Jt(n=>{function r(){n.notify(gG())}if(window.ResizeObserver){const o=D_(r,t,{leading:!1,trailing:!0}),s=document.scrollingElement||document.documentElement,l=new ResizeObserver(jt(o.throttled));s&&l.observe(s);const f=yr(e,window,"scroll",o.throttled,{passive:!0});return()=>{o.cancel(),l.disconnect(),f.stop()}}})}function bG(e,t,n,r,o,s,l){const f={};let m=!1,p=!1;const{stop:v,setLoadEvent:g}=fG(e,t,n,r,s,l,T=>{m||(f.loadingTime=T,o())}),{stop:y}=vG(r,l,T=>{f.scroll=T}),{stop:S}=Xq(r,l.relative,T=>{f.cumulativeLayoutShift=T,o()}),{stop:x,getInteractionToNextPaint:w,setViewEnd:R}=aG(r,l.relative,s);return{stop:()=>{v(),S(),y()}
79,stopINPTracking:x,setLoadEvent:g,setViewEnd:T=>{p=!0,R(T)},getCommonViewMetrics:()=>(f.interactionToNextPaint=w(),f),setLoadingTime:T=>{if(p)return;const I=$n(l.timeStamp,T??Tr());m||v(),m=!0,f.loadingTime=I,o()}}}function _G(e,t){const{stop:n}=yr(e,window,"pageshow",r=>{r.persisted&&t(r)},{capture:!0});return n}function SG(e,t,n){Uq(e.relative,r=>{t.firstContentfulPaint=r,t.largestContentfulPaint={value:r},n()})}const EG=3e3,xG=5*Oo,wG=5*Oo;function CG(e,t,n,r,o,s,l){const f=new Set;let m=g(du.INITIAL_LOAD,R8(),l),p;y();let v;s&&(v=S(o),r.trackBfcacheViews&&(p=_G(r,x=>{m.end();const w=D1(x.timeStamp);m=g(du.BF_CACHE,w,void 0)})));function g(x,w,R){const T=TG(e,t,n,r,x,w,R);return f.add(T),T.stopObservable.subscribe(()=>{f.delete(T)}),T}function y(){e.subscribe(10,()=>{m=g(du.ROUTE_CHANGE,void 0,{name:m.name,service:m.service,version:m.version,context:m.contextManager.getContext()})}),e.subscribe(9,()=>{m.end({sessionIsActive:!1})})}function S(x){return x.subscribe(({oldLocation:w,newLocation:R})=>{OG(w,R)&&(m.end(),m=g(du.ROUTE_CHANGE))})}return{addTiming:(x,w=Tr())=>{m.addTiming(x,w)},setLoadingTime:x=>m.setLoadingTime(x),startView:(x,w)=>{m.end({endClocks:w}),m=g(du.ROUTE_CHANGE,w,x)},setViewContext:x=>{m.contextManager.setContext(x)},setViewContextProperty:(x,w)=>{m.contextManager.setContextProperty(x,w)}
79,setViewName:x=>{m.setViewName(x)},getViewContext:()=>m.contextManager.getContext(),stop:()=>{v&&v.unsubscribe(),p&&p(),m.end(),f.forEach(x=>x.stop())}}}function TG(e,t,n,r,o,s=Gn(),l){const f=Rr(),m=new Jt,p={};let v=0,g;const y=Ad(window.location),S=H_();let x=!0,w=l?.name;const R=l?.service||r.service,T=l?.version||r.version,I=l?.context,k=l?.handlingStack;I&&S.setContext(I);const L={id:f,name:w,startClocks:s,service:R,version:T,context:I,url:l?.url};e.notify(1,L),e.notify(2,L);const{throttled:H,cancel:M}=D_(Y,EG,{leading:!1}),{setLoadEvent:j,setViewEnd:K,stop:P,stopINPTracking:q,getCommonViewMetrics:Q,setLoadingTime:$}=bG(e,t,n,r,ve,o,s),{stop:W,initialViewMetrics:G}=o===du.INITIAL_LOAD?Yq(r,s,j,ve):{stop:Mn,initialViewMetrics:{}};o===du.BF_CACHE&&SG(s,G,ve);const{stop:J,eventCounts:V}=Pq(e,f,ve),B=lm(Y,xG),ee=e.subscribe(11,oe=>{oe.reason===a1.UNLOADING&&Y()});Y(),S.changeObservable.subscribe(ve);function ge(){e.notify(3,{id:f,name:w,context:S.getContext(),startClocks:s,sessionIsActive:x})}function ve(){ge(),H()}function Y(){M(),ge(),v+=1;const oe=g===void 0?Tr():g.timeStamp;e.notify(4,{customTimings:p,documentVersion:v,id:f,name:w,service:R,version:T,context:S.getContext(),loadingType:o,location:y,handlingStack:k,startClocks:s,commonViewMetrics:Q(),initialViewMetrics:G,duration:$n(s.timeStamp,oe),isActive:g===void 0,sessionIsActive:x,eventCounts:V})}return{get name(){return w},service:R,version:T,contextManager:S,stopObservable:m,end(oe={}){var de,me;g||(g=(de=oe.endClocks)!==null&&de!==void 0?de:Gn(),x=(me=oe.sessionIsActive)!==null&&me!==void 0?me:!0,e.notify(5,{endClocks:g}),e.notify(6,{endClocks:g}),M_(B),K(g.relative),P(),ee.unsubscribe(),Y(),Ii(()=>{this.stop()},wG))},stop(){W(),J(),q(),m.notify()},addTiming(oe,de){if(g)return;const me=TI(de)?de:$n(s.timeStamp,de);p[RG(oe)]=me,ve()},setLoadingTime:$,setViewName(oe){w=oe,Y()}}}function RG(e){const t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&ut.warn(`Invalid timing name: ${e}, sanitized to: ${t}`),t}function OG(e,t){return e.pathname!==t.pathname||!AG(t.hash)&&i4(t.hash)!==i4(e.hash)}function AG(e){const t=e.substring(1);return t!==""&&!!document.getElementById(t)}function i4(e){const t=e.indexOf("?");return t<0?e:e.slice(0,t)}function kG(e,t,n,r,o,s,l,f,m){return e.subscribe(4,p=>e.notify(12,NG(p,n,l))),t.register(0,({startTime:p,eventType:v})=>{const g=f.findView(p);return g?{type:v,service:g.service,version:g.version,context:g.context,view:{id:g.id,name:g.name}}:jc}),t.register(1,({startTime:p})=>{var v;return{view:{id:(v=f.findView(p))===null||v===void 0?void 0:v.id}}}),CG(e,r,o,n,s,!n.trackViewsManually,m)}function NG(e,t,n){var r,o,s,l,f,m,p,v,g,y,S,x,w,R,T,I,k,L;const H=n.getReplayStats(e.id),M=(o=(r=e.commonViewMetrics)===null||r===void 0?void 0:r.cumulativeLayoutShift)===null||o===void 0?void 0:o.devicePixelRatio,j={_dd:{document_version:e.documentVersion,replay_stats:H,cls:M?{device_pixel_ratio:M}:void 0,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:wt.VIEW,view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:(s=e.commonViewMetrics.cumulativeLayoutShift)===null||s===void 0?void 0:s.value,cumulative_layout_shift_time:vt((l=e.commonViewMetrics.cumulativeLayoutShift)===null||l===void 0?void 0:l.time),cumulative_layout_shift_target_selector:(f=e.commonViewMetrics.cumulativeLayoutShift)===null||f===void 0?void 0:f.targetSelector,first_byte:vt((m=e.initialViewMetrics.navigationTimings)===null||m===void 0?void 0:m.firstByte),dom_complete:vt((p=e.initialViewMetrics.navigationTimings)===null||p===void 0?void 0:p.domComplete),dom_content_loaded:vt((v=e.initialViewMetrics.navigationTimings)===null||v===void 0?void 0:v.domContentLoaded),dom_interactive:vt((g=e.initialViewMetrics.navigationTimings)===null||g===void 0?void 0:g.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:vt(e.initialViewMetrics.firstContentfulPaint),first_input_delay:vt((y=e.initialViewMetrics.firstInput)===null||y===void 0?void 0:y.delay),first_input_time:vt((S=e.initialViewMetrics.firstInput)===null||S===void 0?void 0:S.time),first_input_target_selector:(x=e.initialViewMetrics.firstInput)===null||x===void 0?void 0:x.targetSelector,interaction_to_next_paint:vt((w=e.commonViewMetrics.interactionToNextPaint)===null||w===void 0?void 0:w.value),interaction_to_next_paint_time:vt((R=e.commonViewMetrics.interactionToNextPaint)===null||R===void 0?void 0:R.time),interaction_to_next_paint_target_selector:(T=e.commonViewMetrics.interactionToNextPaint)===null||T===void 0?void 0:T.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:vt((I=e.initialViewMetrics.largestContentfulPaint)===null||I===void 0?void 0:I.value),largest_contentful_paint_target_selector:(k=e.initialViewMetrics.largestContentfulPaint)===null||k===void 0?void 0:k.targetSelector,load_event:vt((L=e.initialViewMetrics.navigationTimings)===null||L===void 0?void 0:L.loadEvent),loading_time:FR(vt(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},performance:IG(e.commonViewMetrics,e.initialViewMetrics),resource:{count:e.eventCounts.resourceCount},time_spent:vt(e.duration)},display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:vt(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:t.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:JL()}};return Wc(e.customTimings)||(j.view.custom_timings=_8(e.customTimings,vt)),{rawRumEvent:j,startClocks:e.startClocks,duration:e.duration,domainContext:{location:e.location,handlingStack:e.handlingStack}}}function IG({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:n,firstInput:r,largestContentfulPaint:o}){return{cls:e&&{score:e.value,timestamp:vt(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:n&&{timestamp:vt(n)},fid:r&&{duration:vt(r.delay),timestamp:vt(r.time),target_selector:r.targetSelector},inp:t&&{duration:vt(t.value),timestamp:vt(t.time),target_selector:t.targetSelector,sub_parts:t.subParts?{input_delay:vt(t.subParts.inputDelay),processing_duration:vt(t.subParts.processingDuration),presentation_delay:vt(t.subParts.presentationDelay)}:void 0},lcp:o&&{timestamp:vt(o.value),target_selector:o.targetSelector,resource_url:o.resourceUrl,sub_parts:o.subParts?{load_delay:vt(o.subParts.loadDelay),load_time:vt(o.subParts.loadTime),render_delay:vt(o.subParts.renderDelay)}:void 0}}}const MG="rum";function DG(e,t,n){const r=fL(e,MG,o=>PG(e,o),n);return r.expireObservable.subscribe(()=>{t.notify(9)}
79),r.renewObservable.subscribe(()=>{t.notify(10)}),r.sessionStateUpdateObservable.subscribe(({previousState:o,newState:s})=>{if(!o.forcedReplay&&s.forcedReplay){const l=r.findSession();l&&(l.isReplayForced=!0)}}),{findTrackedSession:o=>{const s=r.findSession(o);if(!(!s||s.trackingType==="0"))return{id:s.id,sessionReplay:s.trackingType==="1"?1:s.isReplayForced?2:0,anonymousId:s.anonymousId}},expire:r.expire,expireObservable:r.expireObservable,setForcedReplay:()=>r.updateSessionState({forcedReplay:"1"})}}function LG(){const e={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:y7("records")?1:0};return{findTrackedSession:()=>e,expire:Mn,expireObservable:new Jt,setForcedReplay:Mn}}function PG(e,t){return FG(t)?t:vd(e.sessionSampleRate)?vd(e.sessionReplaySampleRate)?"1":"2":"0"}function FG(e){return e==="0"||e==="1"||e==="2"}function jG(e,t,n,r,o,s){const l=[e.rumEndpointBuilder];e.replica&&l.push(e.replica.rumEndpointBuilder);const f=_7({encoder:s(2),request:v7(l,n),flushController:S7({pageMayExitObservable:r,sessionExpireObservable:o})});return t.subscribe(13,m=>{m.type===wt.VIEW?f.upsert(m,m.view.id):f.add(m)}),f}function UG(e){const t=F1();e.subscribe(13,n=>{t.send("rum",n)})}const BG=jd;function VG(e,t,n){const r=mm({expireDelay:BG});let o;e.subscribe(1,({startClocks:f,url:m})=>{const p=location.href,v=m!==void 0?um(m,p).href:p;r.add(l({url:v,referrer:o||document.referrer}),f.relative),o=v}),e.subscribe(6,({endClocks:f})=>{r.closeActive(f.relative)});const s=n.subscribe(({newLocation:f})=>{const m=r.find();if(m){const p=Zo();r.closeActive(p),r.add(l({url:f.href,referrer:m.referrer}),p)}});function l({url:f,referrer:m}){return{url:f,referrer:m}}return t.register(0,({startTime:f,eventType:m})=>{const p=r.find(f);return p?{type:m,view:{url:p.url,referrer:p.referrer}}:jc}),{findUrl:f=>r.find(f),stop:()=>{s.unsubscribe(),r.stop()}}}function HG(e){let t=Ad(location);return new Jt(n=>{const{stop:r}=zG(e,s),{stop:o}=qG(e,s);function s(){if(t.href===location.href)return;const l=Ad(location);n.notify({newLocation:l,oldLocation:t}),t=l}return()=>{r(),o()}})}function zG(e,t){const{stop:n}=pl(o4("pushState"),"pushState",({onPostCall:s})=>{s(t)}),{stop:r}=pl(o4("replaceState"),"replaceState",({onPostCall:s})=>{s(t)}),{stop:o}=yr(e,window,"popstate",t);return{stop:()=>{n(),r(),o()}}}function qG(e,t){return yr(e,window,"hashchange",t)}function o4(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}const GG=jd;function $G(e,t,n){const r=mm({expireDelay:GG});return e.subscribe(1,({startClocks:o})=>{r.add({},o.relative)}),e.subscribe(6,({endClocks:o})=>{r.closeActive(o.relative)}),t.register(0,({startTime:o,eventType:s})=>{if(!n.trackFeatureFlagsForEvents.concat([wt.VIEW,wt.ERROR]).includes(s))return so;const f=r.find(o);return!f||Wc(f)?so:{type:s,feature_flags:f}}),{addFeatureFlagEvaluation:(o,s)=>{const l=r.find();l&&(l[o]=s)}}}const QG=10*Pi;let Vp,rb;function WG(e,t,n){e.metricsEnabled&&(dO(),rb=!1,t.subscribe(13,()=>{rb=!0}),n.subscribe(({bytesCount:r,messagesCount:o})=>{rb&&(rb=!1,Vp.batchCount+=1,s4(Vp.batchBytesCount,r),s4(Vp.batchMessagesCount,o))}),lm(YG,QG))}function YG(){Vp.batchCount!==0&&(B_("Customer data measures",Vp),dO())}function a4(){return{min:1/0,max:0,sum:0}}function s4(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function dO(){Vp={batchCount:0,batchBytesCount:a4(),batchMessagesCount:a4()}}const KG=4e3,XG=500,ZG=jd;function JG(e,t,n=XG){const r=mm({expireDelay:ZG,maxEntries:KG});let o;Zc(on.VISIBILITY_STATE)&&performance.getEntriesByType(on.VISIBILITY_STATE).forEach(p=>{const v=p.name==="hidden"?"hidden":"active";l(v,p.startTime)}),l(hO(),Zo());const{stop:s}=Fc(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],m=>{l(t$(m),m.timeStamp)},{capture:!0});function l(m,p=Zo()){m!==o&&(o=m,r.closeActive(p),r.add({state:o,startTime:p},p))}function f(m,p,v){return r.findAll(p,v).some(g=>g.state===m)}return e.register(0,({startTime:m,duration:p=0,eventType:v})=>{if(v===wt.VIEW){const g=r.findAll(m,p);return{type:v,_dd:{page_states:e$(g,m,n)}}}return v===wt.ACTION||v===wt.ERROR?{type:v,view:{in_foreground:f("active",m,0)}}:so}),{wasInPageStateDuringPeriod:f,addPageState:l,stop:()=>{s(),r.stop()}}}function e$(e,t,n){if(e.length!==0)return e.slice(-n).reverse().map(({state:r,startTime:o})=>({state:r,start:vt($n(t,o))}))}function t$(e){return e.type==="freeze"?"frozen":e.type==="pagehide"?e.persisted?"frozen":"terminated":hO()}function hO(){return document.visibilityState==="hidden"?"hidden":document.hasFocus()?"active":"passive"}function n$(e,t){let n;const r=requestAnimationFrame(jt(()=>{n=jx()})),o=hG(t).subscribe(s=>{n=s}).unsubscribe;return e.register(0,({eventType:s})=>({type:s,display:n?{viewport:n}:void 0})),{stop:()=>{o(),r&&cancelAnimationFrame(r)}}}function r$(e,t){const n=window.cookieStore?i$(e):a$;return new Jt(r=>n(t,o=>r.notify(o)))}function i$(e){return(t,n)=>yr(e,window.cookieStore,"change",o=>{const s=o.changed.find(l=>
79l.name===t)||o.deleted.find(l=>l.name===t);s&&n(s.value)}).stop}const o$=Pi;function a$(e,t){let n=v1(document.cookie,e);const r=lm(()=>{const o=v1(document.cookie,e);o!==n&&(n=o,t(o))},o$);return()=>{M_(r)}}const l4="datadog-ci-visibility-test-execution-id";function s$(e,t,n=r$(e,l4)){var r;let o=hu(l4)||((r=window.Cypress)===null||r===void 0?void 0:r.env("traceId"));const s=n.subscribe(l=>{o=l});return t.register(0,({eventType:l})=>typeof o!="string"?so:{type:l,session:{type:"ci_test"},ci_test:{test_execution_id:o}}),{stop:()=>{s.unsubscribe()}}}function l$(e,t){const n=Zc(on.LONG_ANIMATION_FRAME)?on.LONG_ANIMATION_FRAME:on.LONG_TASK,r=Eu(t,{type:n,buffered:!0}).subscribe(o=>{for(const s of o){if(!t.trackLongTasks)break;const l=D1(s.startTime),f=u$(s,l);e.notify(12,{rawRumEvent:f,startClocks:l,duration:s.duration,domainContext:{performanceEntry:s}})}});return{stop:()=>r.unsubscribe()}}function u$(e,t){const n=Rr(),r=vt(e.duration),o={date:t.timeStamp,type:wt.LONG_TASK,_dd:{discarded:!1}};return e.entryType===on.LONG_TASK?{...o,long_task:{id:n,entry_type:A5.LONG_TASK,duration:r}}:{...o,long_task:{id:n,entry_type:A5.LONG_ANIMATION_FRAME,duration:r,blocking_duration:vt(e.blockingDuration),first_ui_event_timestamp:vt(e.firstUIEventTimestamp),render_start:vt(e.renderStart),style_and_layout_start:vt(e.styleAndLayoutStart),start_time:vt(e.startTime),scripts:e.scripts.map(s=>({duration:vt(s.duration),pause_duration:vt(s.pauseDuration),forced_style_and_layout_duration:vt(s.forcedStyleAndLayoutDuration),start_time:vt(s.startTime),execution_start:vt(s.executionStart),source_url:s.sourceURL,source_function_name:s.sourceFunctionName,source_char_position:s.sourceCharPosition,invoker:s.invoker,invoker_type:s.invokerType,window_attribution:s.windowAttribution}))}}}function c$(e){e.register(0,({eventType:t})=>T7()?{type:t,session:{type:"synthetics"},synthetics:{...C7(),injected:w7()}}:so)}function f$(e,t,n){const r=Q6(e),o=n(r);return F_(t).forEach(([s,l])=>n6(e,r,s.split(/\.|(?=\[\])/),l)),o}function n6(e,t,n,r){const[o,...s]=n;if(o==="[]"){Array.isArray(e)&&Array.isArray(t)&&e.forEach((l,f)=>n6(l,t[f],s,r));return}if(!(!u4(e)||!u4(t))){if(s.length>0)return n6(e[o],t[o],s,r);d$(e,o,t[o],r)}}function d$(e,t,n,r){if(e[t]===n)return;const o=cm(n);o===r?e[t]=Pt(n):r==="object"&&(o==="undefined"||o==="null")&&(e[t]={})}function u4(e){return cm(e)==="object"}const fp={"view.name":"string","view.url":"string","view.referrer":"string"},dp={context:"object"},hp={service:"string",version:"string"};let pO;function h$(e,t,n,r,o){pO={[wt.VIEW]:{"view.performance.lcp.resource_url":"string",...dp,...fp,...hp},[wt.ERROR]:{"error.message":"string","error.stack":"string","error.handling_stack":"string","error.resource.url":"string","error.fingerprint":"string",...dp,...fp,...hp},[wt.RESOURCE]:{"resource.url":"string","resource.graphql.variables":"string","resource.request.headers":"object","resource.response.headers":"object",...dp,...fp,...hp},[wt.ACTION]:{"action.target.name":"string",...dp,...fp,...hp},[wt.LONG_TASK]:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...dp,...fp,...hp},[wt.VITAL]:{...dp,...fp,...hp}};const s={[wt.ERROR]:WS(wt.ERROR,r,o),[wt.ACTION]:WS(wt.ACTION,r,o),[wt.VITAL]:WS(wt.VITAL,r,o)};t.subscribe(12,({startClocks:l,duration:f,rawRumEvent:m,domainContext:p})=>{const v=n.triggerHook(0,{eventType:m.type,rawRumEvent:m,domainContext:p,startTime:l.relative,duration:f});if(v===jc)return;const g=yu(v,m,{ddtags:o7(e).join(",")});p$(g,e.beforeSend,p,s)&&(Wc(g.context)&&delete g.context,t.notify(13,g))})}function p$(e,t,n,r){var o;if(t){const l=f$(e,pO[e.type],f=>t(f,n));if(l===!1&&e.type!==wt.VIEW)return!1;l===!1&&ut.warn("Can't dismiss view events using beforeSend!")}return!((o=r[e.type])===null||o===void 0?void 0:o.isLimitReached())}function m$(e,t,n,r){e.register(0,({eventType:o,startTime:s})=>{const l=t.findTrackedSession(s),f=r.findView(s);if(!l||!f)return jc;let m,p,v;return o===wt.VIEW?(m=n.getReplayStats(f.id)?!0:void 0,p=l.sessionReplay===1,v=f.sessionIsActive?void 0:!1):m=n.isRecording()?!0:void 0,{type:o,session:{id:l.id,type:"user",has_replay:m,sampled_for_replay:p,is_active:v}}}),e.register(1,({startTime:o})=>{const s=t.findTrackedSession(o);return s?{session:{id:s.id}}:so})}function v$(e){e.register(0,({eventType:t})=>({type:t,connectivity:s7()}))}function g$(e,t,n){e.register(0,({eventType:r})=>{const o=t.source;return{type:r,_dd:{format_version:2,drift:wI(),configuration:{session_sample_rate:Cp(t.sessionSampleRate,3),session_replay_sample_rate:Cp(t.sessionReplaySampleRate,3),profiling_sample_rate:Cp(t.profilingSampleRate,3),trace_sample_rate:Cp(t.traceSampleRate,3),beta_encode_cookie_options:t.betaEncodeCookieOptions},browser_sdk_version:Jp()?"6.33.0":void 0,sdk_name:n},application:{id:t.applicationId},date:Tr(),source:o}}),e.register(1,()=>({application:{id:t.applicationId}}))}function y$(e,t){e.register(1,()=>t.isGranted()?so:jc)}
79const b$=[wt.ACTION,wt.ERROR,wt.LONG_TASK,wt.RESOURCE,wt.VITAL];function _$(e){return{addEvent:(t,n,r,o)=>{b$.includes(n.type)&&e.notify(12,{startClocks:D1(t),rawRumEvent:n,domainContext:r,duration:o})}}}function S$(e,t){if(!t.metricsEnabled)return{stop:Mn};const{unsubscribe:n}=e.subscribe(4,({initialViewMetrics:r})=>{!r.largestContentfulPaint||!r.navigationTimings||(B_("Initial view metrics",{metrics:E$(r.largestContentfulPaint,r.navigationTimings)}),n())});return{stop:n}}function E$(e,t){return{lcp:{value:e.value},navigation:{domComplete:t.domComplete,domContentLoaded:t.domContentLoaded,domInteractive:t.domInteractive,firstByte:t.firstByte,loadEvent:t.loadEvent}}}function x$(e){const t=window,n=new Map;function r(){t.DD_SOURCE_CODE_CONTEXT&&(F_(t.DD_SOURCE_CODE_CONTEXT).forEach(([o,s])=>{const f=dm({stack:o}).stack[0];if(!f.url){U_("Source code context: missing frame url",{stack:o});return}n.has(f.url)||n.set(f.url,s)}),t.DD_SOURCE_CODE_CONTEXT={})}r(),e.register(0,({domainContext:o,rawRumEvent:s})=>{if(r(),n.size===0)return so;const l=w$(o,s),f=l&&n.get(l);return f?{type:s.type,service:f.service,version:f.version}:so})}function w$(e,t){var n,r;if(t.type==="long_task"&&t.long_task.entry_type==="long-animation-frame")return(n=t.long_task.scripts[0])===null||n===void 0?void 0:n.source_url;let o;return"handlingStack"in e&&(o=e.handlingStack),t.type==="error"&&t.error.stack&&(o=t.error.stack),(r=dm({stack:o}).stack[0])===null||r===void 0?void 0:r.url}function C$(e,t,n,r,o,s,l,f,m,p,v){const g=[],y=new EH;y.subscribe(13,k=>a7("rum",k));const S=k=>{y.notify(14,{error:k}),y1("Error reported to customer",{"error.message":k.message})},x=b7(e),w=Jp()?LG():DG(e,y,s);if(Jp()){UG(y);const k=x.subscribe(L=>{y.notify(11,L)});g.push(()=>k.unsubscribe())}else{const k=jG(e,y,S,x,w.expireObservable,o),L=k.flushController.preparePageExitFlushObservable.subscribe(H=>{y.notify(11,{reason:H})});g.push(()=>L.unsubscribe()),g.push(()=>k.stop()),WG(m,y,k.flushController.flushObservable)}y$(p,s);const{stop:R}=S$(y,m);g.push(R);const{stop:T,...I}=T$(y,p,e,w,t,r,l,f,v,S);return g.push(T),f.unbuffer(),g.push(()=>n.stop()),{...I,lifeCycle:y,session:w,stopSession:()=>w.expire(),telemetry:m,stop:()=>{g.forEach(k=>k())},hooks:p}}function T$(e,t,n,r,o,s,l,f,m,p){const v=[],g=yH(),y=HG(n),{observable:S,stop:x}=_H();v.push(x),g$(t,n,m);const w=JG(t,n);v.push(()=>w.stop());const R=wH(e);v.push(()=>R.stop());const T=VG(e,t,y);v.push(()=>T.stop());const I=$G(e,t,n);m$(t,r,o,R),v$(t),$L(t);const k=YL(t,n,"rum"),L=KL(t,n,r,"rum"),H=GL(t,n,"rum"),M=eq(e,t,g,S,n);v.push(M.stop);const j=_$(e),K=n$(t,n);v.push(K.stop);const P=s$(n,t);v.push(P.stop),c$(t),h$(n,e,t,p);const{addTiming:q,setLoadingTime:Q,startView:$,setViewName:W,setViewContext:G,setViewContextProperty:J,getViewContext:V,stop:B}=kG(e,t,n,g,S,y,o,R,s);x$(t),v.push(B);const ee=Sq(e,n,w);v.push(ee.stop);const{stop:ge}=l$(e,n);v.push(ge);const{addError:ve}=iq(e,n,f);WH(e,n,r,L,H);const Y=LV(e,w,l),oe=SH(n.applicationId,r,R,M.actionContexts,T);return{addAction:M.addAction,startAction:M.startAction,stopAction:M.stopAction,startResource:ee.startResource,stopResource:ee.stopResource,addEvent:j.addEvent,addError:ve,addTiming:q,setLoadingTime:Q,addFeatureFlagEvaluation:I.addFeatureFlagEvaluation,startView:$,setViewContext:G,setViewContextProperty:J,getViewContext:V,setViewName:W,viewHistory:R,getInternalContext:oe.get,startDurationVital:Y.startDurationVital,stopDurationVital:Y.stopDurationVital,addDurationVital:Y.addDurationVital,addOperationStepVital:Y.addOperationStepVital,globalContext:k,userContext:L,accountContext:H,stop:()=>v.forEach(de=>de())}}function R$(e,t,n={}){const r=vM(),o=DV(),s=ZL().observable;let l=vH(n,r,o,(v,g,y,S,x)=>{const w=g&&n.createDeflateEncoder?T=>n.createDeflateEncoder(v,g,T):E7,R=C$(v,e,t,y,w,r,o,s,S,x,n.sdkName);return e.onRumStart(R.lifeCycle,v,R.session,R.viewHistory,g,R.telemetry),t.onRumStart(R.lifeCycle,R.hooks,v,R.session,R.viewHistory,w),l=O$(l,R),xR(v.plugins,"onRumStart",{strategy:l,addEvent:R.addEvent,addError:R.addError}),R});const f=()=>l,m=v=>{const g=cu("view");xa(()=>{const y=typeof v=="object"?v:{name:v};
79l.startView({...y,handlingStack:g}),Qr({feature:"start-view"})})},p=vD({init:v=>{const g=new Error().stack;xa(()=>l.init(v,p,g))},setTrackingConsent:jt(v=>{r.update(v),Qr({feature:"set-tracking-consent",tracking_consent:v})}),setViewName:jt(v=>{l.setViewName(v),Qr({feature:"set-view-name"})}),setViewContext:jt(v=>{l.setViewContext(v),Qr({feature:"set-view-context"})}),setViewContextProperty:jt((v,g)=>{l.setViewContextProperty(v,g),Qr({feature:"set-view-context-property"})}),getViewContext:jt(()=>(Qr({feature:"set-view-context-property"}),l.getViewContext())),getInternalContext:jt(v=>l.getInternalContext(v)),getInitConfiguration:jt(()=>Q6(l.initConfiguration)),addAction:(v,g)=>{const y=cu("action");xa(()=>{l.addAction({name:Pt(v),context:Pt(g),startClocks:Gn(),type:Ax.CUSTOM,handlingStack:y}),Qr({feature:"add-action"})})},startAction:jt((v,g)=>{l.initConfiguration&&!pu(Ta.START_STOP_ACTION)||l.startAction(Pt(v),{type:Pt(g&&g.type),context:Pt(g&&g.context),actionKey:g&&g.actionKey})}),stopAction:jt((v,g)=>{l.initConfiguration&&!pu(Ta.START_STOP_ACTION)||l.stopAction(Pt(v),{type:Pt(g&&g.type),context:Pt(g&&g.context),actionKey:g&&g.actionKey})}),startResource:jt((v,g)=>{l.initConfiguration&&!pu(Ta.START_STOP_RESOURCE)||l.startResource(Pt(v),{type:Pt(g&&g.type),method:Pt(g&&g.method),context:Pt(g&&g.context),resourceKey:g&&g.resourceKey})}),stopResource:jt((v,g)=>{l.initConfiguration&&!pu(Ta.START_STOP_RESOURCE)||l.stopResource(Pt(v),{type:Pt(g&&g.type),statusCode:g&&g.statusCode,size:g&&g.size,context:Pt(g&&g.context),resourceKey:g&&g.resourceKey})}),addError:(v,g)=>{const y=cu("error");xa(()=>{l.addError({error:v,handlingStack:y,context:Pt(g),startClocks:Gn()}),Qr({feature:"add-error"})})},addTiming:jt((v,g)=>{l.addTiming(Pt(v),g)}),setViewLoadingTime:jt(()=>{const v=Tr();l.setLoadingTime(v),Qr({feature:"addViewLoadingTime"})}),setGlobalContext:no(f,ni.globalContext,ro.setContext,"set-global-context"),getGlobalContext:no(f,ni.globalContext,ro.getContext,"get-global-context"),setGlobalContextProperty:no(f,ni.globalContext,ro.setContextProperty,"set-global-context-property"),removeGlobalContextProperty:no(f,ni.globalContext,ro.removeContextProperty,"remove-global-context-property"),clearGlobalContext:no(f,ni.globalContext,ro.clearContext,"clear-global-context"),setUser:no(f,ni.userContext,ro.setContext,"set-user"),getUser:no(f,ni.userContext,ro.getContext,"get-user"),setUserProperty:no(f,ni.userContext,ro.setContextProperty,"set-user-property"),removeUserProperty:no(f,ni.userContext,ro.removeContextProperty,"remove-user-property"),clearUser:no(f,ni.userContext,ro.clearContext,"clear-user"),setAccount:no(f,ni.accountContext,ro.setContext,"set-account"),getAccount:no(f,ni.accountContext,ro.getContext,"get-account"),setAccountProperty:no(f,ni.accountContext,ro.setContextProperty,"set-account-property"),removeAccountProperty:no(f,ni.accountContext,ro.removeContextProperty,"remove-account-property"),clearAccount:no(f,ni.accountContext,ro.clearContext,"clear-account"),startView:m,stopSession:jt(()=>{l.stopSession(),Qr({feature:"stop-session"})}),addFeatureFlagEvaluation:jt((v,g)=>{l.addFeatureFlagEvaluation(Pt(v),Pt(g)),Qr({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:jt(()=>e.getSessionReplayLink()),startSessionReplayRecording:jt(v=>{e.start(v),Qr({feature:"start-session-replay-recording",force:v&&v.force})}),stopSessionReplayRecording:jt(()=>e.stop()),addDurationVital:(v,g)=>{const y=cu("vital");xa(()=>{Qr({feature:"add-duration-vital"}),l.addDurationVital({id:Rr(),name:Pt(v),type:Bp.DURATION,startClocks:T8(g.startTime),duration:g.duration,context:Pt(g&&g.context),description:Pt(g&&g.description),handlingStack:y})})},startDurationVital:(v,g)=>{const y=cu("vital");return xa(()=>(Qr({feature:"start-duration-vital"}),l.startDurationVital(Pt(v),{context:Pt(g&&g.context),description:Pt(g&&g.description),handlingStack:y})))},stopDurationVital:jt((v,g)=>{Qr({feature:"stop-duration-vital"}),l.stopDurationVital(typeof v=="string"?Pt(v):v,{context:Pt(g&&g.context),description:Pt(g&&g.description)})}),startFeatureOperation:(v,g)=>{const y=cu("vital");xa(()=>{Qr({feature:"add-operation-step-vital",action_type:"start"}),l.addOperationStepVital(v,"start",{...g,handlingStack:y})})},succeedFeatureOperation:jt((v,g)=>{Qr({feature:"add-operation-step-vital",action_type:"succeed"}),l.addOperationStepVital(v,"end",g)}),failFeatureOperation:jt((v,g,y)=>{Qr({feature:"add-operation-step-vital",action_type:"fail"}),l.addOperationStepVital(v,"end",y,g)})});return p}function O$(e,t){return{init:n=>{n7("DD_RUM",n)}
79,initConfiguration:e.initConfiguration,...t}}function A$(e,{session:t,viewContext:n,errorType:r}){const o=t?t.id:"no-session-id",s=[];r!==void 0&&s.push(`error-type=${r}`),n&&(s.push(`seed=${n.id}`),s.push(`from=${n.startClocks.timeStamp}`));const l=k$(e),f=`/rum/replay/sessions/${o}`;return`${l}${f}?${s.join("&")}`}function k$(e){const t=e.site,n=e.subdomain||N$(e);return`https://${n?`${n}.`:""}${t}`}function N$(e){switch(e.site){case gd:case xM:return"app";case $8:return"dd";default:return}}const I$=1e3;let wa;function Gle(e){return n2(e).segments_count}function $le(e){n2(e).segments_count+=1}function Qle(e){n2(e).records_count+=1}function Wle(e,t){n2(e).segments_total_raw_size+=t}function M$(e){return wa?.get(e)}function n2(e){wa||(wa=new Map);let t;return wa.has(e)?t=wa.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},wa.set(e,t),wa.size>I$&&D$()),t}function D$(){if(!wa)return;const e=wa.keys().next().value;e&&wa.delete(e)}function mO(e,t,n){let r=0,o=[],s,l=!0,f=0;const m=[],{stop:p}=yr(e,t,"message",({data:y})=>{if(y.type!=="wrote"||y.streamId!==n)return;const S=m[0];S&&(S.id===y.id?(m.shift(),r+=y.additionalBytesCount,o.push(y.result),s=y.trailer,S.writeCallback?S.writeCallback(y.result.byteLength):S.finishCallback&&S.finishCallback()):S.id<y.id&&p())});function v(){const y=o.length===0?new Uint8Array(0):J8(o.concat(s)),S={rawBytesCount:r,output:y,outputBytesCount:y.byteLength,encoding:"deflate"};return r=0,o=[],S}function g(){l||(t.postMessage({action:"reset",streamId:n}),l=!0)}return{isAsync:!0,get isEmpty(){return l},write(y,S){t.postMessage({action:"write",id:f,data:y,streamId:n}),m.push({id:f,writeCallback:S,data:y}),l=!1,f+=1},finish(y){g(),m.length?(m.forEach(S=>{delete S.writeCallback}),m[m.length-1].finishCallback=()=>y(v())):y(v())},finishSync(){g();const y=m.map(S=>S.data).join("");return m.length=0,{...v(),pendingData:y}},estimateEncodedBytesCount(y){return y.length/8},stop(){p()}}}function Ux({configuredUrl:e,error:t,source:n,scriptType:r}){if(ut.error(`${n} failed to start: an error occurred while initializing the ${r}:`,t),t instanceof Event||t instanceof Error&&L$(t.message)){let o;e?o=`Please make sure the ${r} URL ${e} is correct and CSP is correctly configured.`:o="Please make sure CSP is correctly configured.",ut.error(`${o} See documentation at ${N_}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else r==="worker"&&U_(t)}function L$(e){return e.includes("Content Security Policy")||e.includes("requires 'TrustedScriptURL'")}const P$=30*Pi;function F$(e){return new Worker(e.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function p(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]}
79,U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},C=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},D=!1,M=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},j=M,L=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},S=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),T=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},O={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},q=j,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=O[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;
vendor: 8,978 bytes, line 79
79for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?M(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r<n;r++)m(t,t.bl_tree[2*i[r]+1],3);C(t,t.dyn_ltree,e-1),C(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=T(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=H-(u-i),i=u-H,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=F(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t||!t.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){D||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),D=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},_t=function(t,e){var a,n;if(!t||!t.state||e>5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=T(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>
79=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=H-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t||!t.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(O[n]);if(t.header&&(e=this.strm,a=t.header,e&&e.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ct.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t||!t.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(V(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
79i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(O[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"6.33.0"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}let Cr={status:0};function vO(e,t,n){switch(Cr.status===0&&j$(e,t),Cr.status){case 1:return Cr.initializationFailureCallbacks.push(n),Cr.worker;case 3:return Cr.worker}}function c4(){return Cr.status}function j$(e,t){try{const n=F$(e),{stop:r}=yr(e,n,"error",l=>{C3(e,t,l)}),{stop:o}=yr(e,n,"message",({data:l})=>{l.type==="errored"?C3(e,t,l.error,l.streamId):l.type==="initialized"&&B$(l.version)});n.postMessage({action:"init"}),Ii(()=>U$(t),P$),Cr={status:1,worker:n,stop:()=>{r(),o()},initializationFailureCallbacks:[]}}catch(n){C3(e,t,n)}}function U$(e){Cr.status===1&&(ut.error(`${e} failed to start: a timeout occurred while initializing the Worker`),Cr.initializationFailureCallbacks.forEach(t=>t()),Cr={status:2})}function B$(e){Cr.status===1&&(Cr={status:3,worker:Cr.worker,stop:Cr.stop,version:e})}function C3(e,t,n,r){Cr.status===1||Cr.status===0?(Ux({configuredUrl:e.workerUrl,error:n,source:t,scriptType:"worker"}),Cr.status===1&&Cr.initializationFailureCallbacks.forEach(o=>o()),Cr={status:2}):U_(n,{worker_version:Cr.status===3&&Cr.version,stream_id:r})}function gO(){return typeof Array.from=="function"&&typeof CSSSupportsRule=="function"&&typeof URL.createObjectURL=="function"&&"forEach"in NodeList.prototype}function V$(e,t,n,r){const o=t.findTrackedSession(),s=H$(o,r),l=n.findView();return A$(e,{viewContext:l,errorType:s,session:o})}function H$(e,t){if(!gO())return"browser-not-supported";if(!e)return"rum-not-tracked";if(e.sessionReplay===0)return"incorrect-session-plan";if(!t)return"replay-not-started"}function z$(e,t){if(!e.metricsEnabled)return{stop:Mn};let n,r,o;const{unsubscribe:s}=t.subscribe(l=>{switch(l.type){case"start":n={forced:l.forced,timestamp:Tr()},r=void 0,o=void 0;break;case"document-ready":n&&(r=$n(n.timestamp,Tr()));break;
79case"recorder-settled":n&&(o=$n(n.timestamp,Tr()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":s(),n&&B_("Recorder init metrics",{metrics:q$(n.forced,o,$n(n.timestamp,Tr()),l.type,r)});break}});return{stop:s}}function q$(e,t,n,r,o){return{forced:e,loadRecorderModuleDuration:t,recorderInitDuration:n,result:r,waitForDocReadyDuration:o}}const G$="modulepreload",$$=function(e,t){return new URL(e,t).href},f4={},yO=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let p=function(v){return Promise.all(v.map(g=>Promise.resolve(g).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const l=document.getElementsByTagName("link"),f=document.querySelector("meta[property=csp-nonce]"),m=f?.nonce||f?.getAttribute("nonce");o=p(n.map(v=>{if(v=$$(v,r),v in f4)return;f4[v]=!0;const g=v.endsWith(".css"),y=g?'[rel="stylesheet"]':"";if(r)for(let x=l.length-1;x>=0;x--){const w=l[x];if(w.href===v&&(!g||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${v}"]${y}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":G$,g||(S.as="script"),S.crossOrigin="",S.href=v,m&&S.setAttribute("nonce",m),document.head.appendChild(S),g)return new Promise((x,w)=>{S.addEventListener("load",x),S.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${v}`)))})}))}function s(l){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=l,window.dispatchEvent(f),!f.defaultPrevented)throw l}return o.then(l=>{for(const f of l||[])f.status==="rejected"&&s(f.reason);return t().catch(s)})};async function Q$(){try{return await W$()}catch(e){Ux({error:e,source:"Recorder",scriptType:"module"})}}async function W$(){return(await yO(()=>import("./startRecording-XE3iFcHg.js"),[],import.meta.url)).startRecording}function Y$(e,t,n,r,o,s){let l=0,f;t.subscribe(9,()=>{(l===2||l===3)&&(g(),l=1)}),t.subscribe(10,()=>{l===1&&v()});const m=new Jt;z$(s,m);const p=async y=>{m.notify({type:"start",forced:y});const[S]=await Promise.all([d4(m,{type:"recorder-settled"},Q$()),d4(m,{type:"document-ready"},bL(e,"interactive"))]);if(l!==2){m.notify({type:"aborted"});return}if(!S){l=0,m.notify({type:"recorder-load-failed"});return}const x=o();if(!x){l=0,m.notify({type:"deflate-encoder-load-failed"});return}({stop:f}=S(t,e,n,r,x,s)),l=3,m.notify({type:"succeeded"})};function v(y){const S=n.findTrackedSession();if(K$(S,y)){l=1;return}if(X$(l))return;l=2;const x=Z$(S,y)||!1;p(x).catch(sm),x&&n.setForcedReplay()}function g(){l===3&&f?.(),l=0}return{start:v,stop:g,getSessionReplayLink(){return V$(e,n,r,l!==0)},isRecording:()=>l===3}}function K$(e,t){return!e||e.sessionReplay===0&&(!t||!t.force)}function X$(e){return e===2||e===3}function Z$(e,t){return t&&t.force&&e.sessionReplay===0}async function d4(e,t,n){try{return await n}finally{e.notify(t)}}function J$(){let e=0;return{strategy:{start(){e=1},stop(){e=2},isRecording:()=>!1,getSessionReplayLink:Mn},shouldStartImmediately(t){return e===1||e===0&&!t.startSessionReplayRecordingManually}}}function eQ(){if(Jp()&&!y7("records")||!gO())return{start:Mn,stop:Mn,getReplayStats:()=>{},onRumStart:Mn,isRecording:()=>!1,getSessionReplayLink:()=>{}};let{strategy:e,shouldStartImmediately:t}=J$();return{start:r=>e.start(r),stop:()=>e.stop(),getSessionReplayLink:()=>e.getSessionReplayLink(),onRumStart:n,isRecording:()=>c4()===3&&e.isRecording(),getReplayStats:r=>c4()===3?M$(r):void 0};function n(r,o,s,l,f,m){let p;function v(){return p||(f??(f=vO(o,"Datadog Session Replay",()=>e.stop())),f&&(p=mO(o,f,1))),p}e=Y$(o,r,s,l,v,m),t(o)&&e.start()}}function tQ(){return Li().Profiler!==void 0}function nQ(e){let t={status:"starting"};return e.register(0,({eventType:n})=>n!==wt.VIEW&&n!==wt.LONG_TASK&&n!==wt.ACTION&&n!==wt.VITAL?so:{type:n,_dd:{profiling:t}}),{get:()=>t,set:n=>{t=n}}}async function rQ(){try{return await iQ()}catch(e){Ux({error:e,source:"Profiler",scriptType:"module"})}}async function iQ(){return(await yO(()=>import("./profiler-k-r1POBi.js"),[],import.meta.url)).createRumProfiler}function oQ(){let e;function t(n,r,o,s,l,f){const m=s.findTrackedSession();if(!m||!IR(m.id,o.profilingSampleRate))return;const p=nQ(r);if(!tQ()){p.set({status:"error",error_reason:"not-supported-by-browser"});return}rQ().then(v=>{if(!v){p.set({status:"error",error_reason:"failed-to-lazy-load"});return}e=v(o,n,s,p,f,l,void 0),e.start()}).catch(sm)}return{onRumStart:t,stop:()=>{e?.stop()}}}const aQ=eQ(),sQ=oQ(),_m=R$(aQ,sQ,{startDeflateWorker:vO,createDeflateEncoder:mO,sdkName:"rum"});gD(Li(),"DD_RUM",_m);const bO={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),bO[e]=t}function lQ(e){let t="";for(let n=0;n<e.byteLength;n++)t+=bO[e[n]];return t}function ib(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)r!=="__proto__"&&(e[r]=n[r])}return e}var uQ={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
79URIComponent)}};function r6(e,t){function n(o,s,l){if(!(typeof document>"u")){l=ib({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var f="";for(var m in l)l[m]&&(f+="; "+m,l[m]!==!0&&(f+="="+l[m].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+f}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],l={},f=0;f<s.length;f++){var m=s[f].split("="),p=m.slice(1).join("=");try{var v=decodeURIComponent(m[0]);if(v in l||(l[v]=e.read(p,v)),o===v)break}catch{}}return o?l[o]:l}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",ib({},s,{expires:-1}))},withAttributes:function(o){return r6(this.converter,ib({},this.attributes,o))},withConverter:function(o){return r6(ib({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Md=r6(uQ,{path:"/"});const cQ=5,fQ=()=>Object.keys(Md.get()).filter(e=>e.startsWith("algo-tracking-id")),dQ=e=>{for(const t of e){const n=Md.get(t)??"";decodeURIComponent(n)!==window.location.pathname&&Md.remove(t)}},hQ=new Jo((e,t)=>t(e).map(n=>{const o=e.getContext().response.headers.get("X-Algo-Request-Ids")||"",s=fQ();s.length>cQ&&dQ(s);for(const l of o.split(","))l&&Md.set(l,window.location.pathname);return n})),pQ={},mQ=e=>typeof e=="object"&&e!==null,vQ=e=>{mQ(e)&&Object.assign(pQ,e)},gQ=new Jo((e,t)=>t(e).map(n=>(vQ(n?.extensions?.cost),n))),yQ=()=>typeof window>"u"?!1:window.INCLUDE_FIELD_COSTS?!0:new URLSearchParams(window.location?.search??"").get("graphql-cost-include-fields")==="true";var bQ=1;function _Q(e){var t=Object.create(null),n=Object.create(null);return Mi(e)&&e.forEach(function(r){var o;t[r.message]=r,typeof((o=r.extensions)===null||o===void 0?void 0:o.code)=="string"&&(n[r.extensions.code]=r)}),{persistedQueryNotSupported:!!(t.PersistedQueryNotSupported||n.PERSISTED_QUERY_NOT_SUPPORTED),persistedQueryNotFound:!!(t.PersistedQueryNotFound||n.PERSISTED_QUERY_NOT_FOUND)}}var SQ={disable:function(e){var t=e.meta;return t.persistedQueryNotSupported},retry:function(e){var t=e.meta;return t.persistedQueryNotSupported||t.persistedQueryNotFound},useGETForHashedQueries:!1};function EQ(e){return e.query.definitions.some(function(t){return t.kind==="OperationDefinition"&&t.operation==="mutation"})}var xQ=function(e){var t;function n(){t=void 0}Fe(e&&(typeof e.sha256=="function"||typeof e.generateHash=="function"),43);var r=zc(SQ,e),o=r.sha256,s=r.generateHash,l=s===void 0?function(S){return Promise.resolve(o(Ac(S)))}:s,f=r.disable,m=r.retry,p=r.useGETForHashedQueries,v=!0,g=function(S){return new Promise(function(x){return x(l(S))})};function y(S){if(!S||typeof S!="object")return g(S);t||(t=new Y_(_s["PersistedQueryLink.persistedQueryHashes"]||2e3));var x=t.get(S);return x||t.set(S,x=g(S)),x}return Object.assign(new Jo(function(S,x){Fe(x,44);var w=S.query;return new An(function(R){var T,I=!1,k,L=!1,H=function(j,K){var P=j.response,q=j.networkError;if(!I&&(P&&P.errors||q)){I=!0;var Q=[],$=P&&P.errors;Mi($)&&Q.push.apply(Q,$);var W=void 0;typeof q?.result!="string"&&(W=q&&q.result&&q.result.errors),Mi(W)&&Q.push.apply(Q,W);var G={response:P,networkError:q,operation:S,graphQLErrors:Mi(Q)?Q:void 0,meta:_Q(Q)};if(v=!f(G),v||n(),m(G)){T&&T.unsubscribe(),S.setContext({http:{includeQuery:!0,includeExtensions:v},fetchOptions:{method:"POST"}}),L&&S.setContext({fetchOptions:k}),T=x(S).subscribe(M);return}}K()},M={next:function(j){H({response:j},function(){return R.next(j)})},error:function(j){H({networkError:j},function(){return R.error(j)})},complete:R.complete.bind(R)};return S.setContext({http:{includeQuery:!v,includeExtensions:v}}),p&&v&&!EQ(S)&&(S.setContext(function(j){var K=j.fetchOptions,P=K===void 0?{}:K;return k=P,{fetchOptions:ne(ne({},P),{method:"GET"})}}),L=!0),v?y(w).then(function(j){S.extensions.persistedQuery={version:bQ,sha256Hash:j},T=x(S).subscribe(M)}).catch(R.error.bind(R)):T=x(S).subscribe(M),function(){T&&T.unsubscribe()}})}),{resetHashCache:n},globalThis.__DEV__!==!1?{getMemoryInternals:function(){var S;return{PersistedQueryLink:{persistedQueryHashes:(S=t?.size)!==null&&S!==void 0?S:0}}}}:{})};function wQ(e){var t=e||{},n=t.initial,r=n===void 0?300:n,o=t.jitter,s=o===void 0?!0:o,l=t.max,f=l===void 0?1/0:l,m=s?r:r/2;return function(v){var g=Math.min(f,m*Math.pow(2,v));return s&&(g=Math.random()*g),g}}
79function CQ(e){var t=e||{},n=t.retryIf,r=t.max,o=r===void 0?5:r;return function(l,f,m){return l>=o?!1:n?n(m,f):!!m}}var TQ=(function(){function e(t,n,r,o,s){var l=this;this.observer=t,this.operation=n,this.forward=r,this.delayFor=o,this.retryIf=s,this.retryCount=0,this.currentSubscription=null,this.onError=function(f){return fl(l,void 0,void 0,function(){var m;return dl(this,function(p){switch(p.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,f)];case 1:return m=p.sent(),m?(this.scheduleRetry(this.delayFor(this.retryCount,this.operation,f)),[2]):(this.observer.error(f),[2])}})})},this.try()}return e.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null},e.prototype.try=function(){var t=this;this.currentSubscription=this.forward(this.operation).subscribe({next:function(n){var r;if(_x(n)){t.onError(new vs({protocolErrors:n.extensions[H1]})),(r=t.currentSubscription)===null||r===void 0||r.unsubscribe();return}t.observer.next(n)},error:this.onError,complete:this.observer.complete.bind(this.observer)})},e.prototype.scheduleRetry=function(t){var n=this;if(this.timerId)throw new Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout(function(){n.timerId=void 0,n.try()},t)},e})(),RQ=(function(e){La(t,e);function t(n){var r=e.call(this)||this,o=n||{},s=o.attempts,l=o.delay;return r.delayFor=typeof l=="function"?l:wQ(l),r.retryIf=typeof s=="function"?s:CQ(s),r}return t.prototype.request=function(n,r){var o=this;return new An(function(s){var l=new TQ(s,n,r,o.delayFor,o.retryIf);return function(){l.cancel()}})},t})(Jo);function i6(e){return new Jo(function(t,n){return new An(function(r){var o,s,l;try{o=n(t).subscribe({next:function(f){if(f.errors?l=e({graphQLErrors:f.errors,response:f,operation:t,forward:n}):_x(f)&&(l=e({protocolErrors:f.extensions[H1],response:f,operation:t,forward:n})),l){s=l.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(f)},error:function(f){if(l=e({operation:t,networkError:f,graphQLErrors:f&&f.result&&f.result.errors||void 0,forward:n}),l){s=l.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(f)},complete:function(){l||r.complete.bind(r)()}})}catch(f){e({networkError:f,operation:t,forward:n}),r.error(f)}return function(){o&&o.unsubscribe(),s&&o.unsubscribe()}})})}(function(e){La(t,e);function t(n){var r=e.call(this)||this;return r.link=i6(n),r}return t.prototype.request=function(n,r){return this.link.request(n,r)},t})(Jo);function OQ(e){return e.toLowerCase()}var AQ=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],kQ=/[^A-Z0-9]+/gi;
79function NQ(e,t){t===void 0&&(t={});for(var n=t.splitRegexp,r=n===void 0?AQ:n,o=t.stripRegexp,s=o===void 0?kQ:o,l=t.transform,f=l===void 0?OQ:l,m=t.delimiter,p=m===void 0?" ":m,v=h4(h4(e,r,"$1\0$2"),s,"\0"),g=0,y=v.length;v.charAt(g)==="\0";)g++;for(;v.charAt(y-1)==="\0";)y--;return v.slice(g,y).split("\0").map(f).join(p)}function h4(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce(function(r,o){return r.replace(o,n)},e)}function IQ(e){return e.toUpperCase()}function MQ(e,t){return t===void 0&&(t={}),NQ(e,ne({delimiter:"_",transform:IQ},t))}const _O="0123456789ABCDEFGHJKMNPQRSTVWXYZ",f_=32,DQ=16,SO=10,p4=0xffffffffffff;var bd;(function(e){e.Base32IncorrectEncoding="B32_ENC_INVALID",e.DecodeTimeInvalidCharacter="DEC_TIME_CHAR",e.DecodeTimeValueMalformed="DEC_TIME_MALFORMED",e.EncodeTimeNegative="ENC_TIME_NEG",e.EncodeTimeSizeExceeded="ENC_TIME_SIZE_EXCEED",e.EncodeTimeValueMalformed="ENC_TIME_MALFORMED",e.PRNGDetectFailure="PRNG_DETECT",e.ULIDInvalid="ULID_INVALID",e.Unexpected="UNEXPECTED",e.UUIDInvalid="UUID_INVALID"})(bd||(bd={}));class e1 extends Error{constructor(t,n){super(`${n} (${t})`),this.name="ULIDError",this.code=t}}function LQ(e){const t=Math.floor(e()*f_)%f_;return _O.charAt(t)}function PQ(e){const t=FQ(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof n?.getRandomValues=="function")return()=>{const r=new Uint8Array(1);return n.getRandomValues(r),r[0]/256};if(typeof n?.randomBytes=="function")return()=>n.randomBytes(1).readUInt8()/256;throw new e1(bd.PRNGDetectFailure,"Failed to find a reliable PRNG")}function FQ(){return BQ()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function jQ(e,t){let n="";for(;e>0;e--)n=LQ(t)+n;return n}function UQ(e,t=SO){if(isNaN(e))throw new e1(bd.EncodeTimeValueMalformed,`Time must be a number: ${e}`);if(e>p4)throw new e1(bd.EncodeTimeSizeExceeded,`Cannot encode a time larger than ${p4}: ${e}`);if(e<0)throw new e1(bd.EncodeTimeNegative,`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new e1(bd.EncodeTimeValueMalformed,`Time must be an integer: ${e}`);let n,r="";for(let o=t;o>0;o--)n=e%f_,r=_O.charAt(n)+r,e=(e-n)/f_;return r}function BQ(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function VQ(e,t){const n=PQ(),r=Date.now();return UQ(r,SO)+jQ(DQ,n)}const Bx=e=>{if(typeof e>"u")throw new TypeError("LogWeasel generateID requires a key argument");return`${VQ()}-${MQ(e)}-JS`},HQ=new Jo((e,t)=>{const r=e.getContext().clientAwareness.name.replace(":","-");return e.setContext(({headers:o})=>({headers:{"X-Request-Id":Bx(r),...o}})),t(e)}),zQ=()=>"https://www.stitchfix.com/graphql-api/api/graphql",qQ=({bearerToken:e,csrfToken:t,includeFieldCosts:n=!1})=>{const r={Accept:"application/json"};return e&&(r.Authorization=`Bearer ${e}`),t&&!e&&(r["X-CSRF-Token"]=t),n&&(r["X-GraphQL-Cost-Include-Fields"]="true"),r},GQ=({graphqlURI:e=zQ(),shadowGraphqlURI:t=null,retry:n={attempts:{max:2}},useGETForQueries:r=!1,useGETForHashedQueries:o=!1,credentials:s,fetchOptions:l,headers:f,onError:m,responseLinks:p=[],sha256:v,trailingLinks:g=[]})=>{const S=BT({useGETForQueries:r,uri:I=>!o&&I.operationName?`${e}?o=${I.operationName}`:e,credentials:s,headers:f,fetch:(I,k)=>(t&&fetch(t,k),fetch(I,k)),fetchOptions:l}),x=i6(({graphQLErrors:I,operation:k})=>{if(I)for(const L of I){const H=new Error(`GraphQL error occurred: ${JSON.stringify(L)}`);k.operationName&&(H.name=`${k.operationName}Error`),m(H,{metadata:{query:k.query,operationName:k.operationName}})}}),w=i6(({networkError:I,operation:k})=>{I&&m(I,{metadata:{operationName:k.operationName}})}),T=[new RQ(n),w,x,...p,HQ,...g];if(o){const I=xQ({sha256:v,useGETForHashedQueries:!0});T.push(I)}return T.push(S),BU(T)},$Q=async e=>{const t=new MV;return t.update(e),lQ(await t.digest())},QQ=({csrfToken:e=null,bearerToken:t=null,onError:n=(o,{metadata:s})=>{_m.addError(o,s)},...r}={})=>GQ({...r,credentials:"include",headers:qQ({bearerToken:t,csrfToken:e,includeFieldCosts:yQ()}),onError:n,responseLinks:[hQ],sha256:$Q,trailingLinks:[gQ]}),WQ=()=>typeof window=="object"?window:void 0,YQ=()=>WQ()?void 0:{watchQuery:{fetchPolicy:"no-cache"}},KQ=({cache:e,defaultOptions:t=YQ(),clientAwareness:n,typeDefs:r,...o}
79)=>{if(!(n?.name||n?.version))throw new Error(`Either \`name\` or \`version\` is required for graphql provider initialization (received name: ${n?.name}, version: ${n?.version}).`);const s=e??new aR,l=new lR({cache:s,name:n?.name,version:n?.version,typeDefs:r,link:QQ(o),defaultOptions:t}),f=({children:m})=>C.jsx(ZB,{client:l,children:m});return f.propTypes={children:It.node.isRequired},{client:l,GraphQLApiProvider:f}},m4=()=>KQ({clientAwareness:{name:"knit:web"}}).GraphQLApiProvider;let v4;const XQ=()=>Fn()?(v4||=m4(),v4):m4(),ZQ={},EO={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getNavData"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"configParams"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConfigParamInput"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"exposureDetails"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConfigParamExposureDetailsInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"banners"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ModeBannerSitewide"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cta"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"text"}}]}},{kind:"Field",name:{kind:"Name",value:"url"}}]}},{kind:"Field",name:{kind:"Name",value:"headline"}},{kind:"Field",name:{kind:"Name",value:"icon"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"secondaryCta"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"label"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"text"}}]}},{kind:"Field",name:{kind:"Name",value:"url"}}]}},{kind:"Field",alias:{kind:"Name",value:"sitewideVariant"},name:{kind:"Name",value:"variant"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ModeBannerSlim"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cta"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"actionType"}},{kind:"Field",name:{kind:"Name",value:"label"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"text"}}]}},{kind:"Field",name:{kind:"Name",value:"url"}}]}},{kind:"Field",name:{kind:"Name",value:"icon"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",alias:{kind:"Name",value:"slimVariant"},name:{kind:"Name",value:"variant"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"client"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"businessLine"}},{kind:"Field",name:{kind:"Name",value:"region"}},{kind:"Field",name:{kind:"Name",value:"firstName"}},{kind:"Field",name:{kind:"Name",value:"capabilities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canShop"}},{kind:"Field",name:{kind:"Name",value:"canScheduleFix"}},{kind:"Field",name:{kind:"Name",value:"needsOnboarding"}}]}},{kind:"Field",name:{kind:"Name",value:"configParams"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"params"},value:{kind:"Variable",name:{kind:"Name",value:"configParams"}}},{kind:"ObjectField",name:{kind:"Name",value:"offlineLookupOnly"},value:{kind:"BooleanValue",value:!1}},{kind:"ObjectField",name:{kind:"Name",value:"exposureDetails"},value:{kind:"Variable",name:{kind:"Name",value:"exposureDetails"}}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}},{kind:"Field",name:{kind:"Name",value:"featureFlags"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"}
79,value:{kind:"ListValue",values:[{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"client.global.kids_categories",block:!1}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"client.web.stylist_connect",block:!1}}]}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"enabled"}}]}},{kind:"Field",name:{kind:"Name",value:"referrals"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"incentive"},arguments:[{kind:"Argument",name:{kind:"Name",value:"supportedIncentives"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"SINGLE_SIDED"},{kind:"EnumValue",value:"DUAL_SIDED"},{kind:"EnumValue",value:"PROMO_BONUS"}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"senderCredit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"currency"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"shoppingBag"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"count"}}]}},{kind:"Field",name:{kind:"Name",value:"household"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"members"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"businessLine"}},{kind:"Field",name:{kind:"Name",value:"firstName"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"stylefileStatus"}},{kind:"Field",name:{kind:"Name",value:"vision"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"canAccessVision"}}]}},{kind:"Field",name:{kind:"Name",value:"stylistConnect"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"channelId"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"visitor"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"countryCode"}},{kind:"Field",name:{kind:"Name",value:"id"}}]}}]}}]};function JQ(e){const t={...ZQ,...e};return mR(EO,t)}var T3={exports:{}};const eW={},tW=Object.freeze(Object.defineProperty({__proto__:null,default:eW},Symbol.toStringTag,{value:"Module"})),g4=v8(tW);var y4;function nW(){return y4||(y4=1,(function(e){(function(){var t="input is invalid type",n="finalize already called",r=typeof window=="object",o=r?window:{};o.JS_SHA1_NO_WINDOW&&(r=!1);var s=!r&&typeof self=="object",l=!o.JS_SHA1_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;l?o=Kv:s&&(o=self);var f=!o.JS_SHA1_NO_COMMON_JS&&!0&&e.exports,m=!o.JS_SHA1_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",p="0123456789abcdef".split(""),v=[-2147483648,8388608,32768,128],g=[24,16,8,0],y=["hex","array","digest","arrayBuffer"],S=[],x=Array.isArray;(o.JS_SHA1_NO_NODE_JS||!x)&&(x=function(P){return Object.prototype.toString.call(P)==="[object Array]"});var w=ArrayBuffer.isView;m&&(o.JS_SHA1_NO_ARRAY_BUFFER_IS_VIEW||!w)&&(w=function(P){return typeof P=="object"&&P.buffer&&P.buffer.constructor===ArrayBuffer});var R=function(P){var q=typeof P;if(q==="string")return[P,!0];if(q!=="object"||P===null)throw new Error(t);if(m&&P.constructor===ArrayBuffer)return[new Uint8Array(P),!1];if(!x(P)&&!w(P))throw new Error(t);return[P,!1]},T=function(P){return function(q){return new M(!0).update(q)[P]()}},I=function(){var P=T("hex");l&&(P=k(P)),P.create=function(){return new M},P.update=function($){return P.create().update($)};for(var q=0;q<y.length;++q){var Q=y[q];P[Q]=T(Q)}return P},k=function(P){var q=g4,Q=g4.Buffer,$;Q.from&&!o.JS_SHA1_NO_BUFFER_FROM?$=Q.from:$=function(G){return new Q(G)};var W=function(G){if(typeof G=="string")return q.createHash("sha1").update(G,"utf8").digest("hex");if(G==null)throw new Error(t);return G.constructor===ArrayBuffer&&(G=new Uint8Array(G)),x(G)||w(G)||G.constructor===Q?q.createHash("sha1").update($(G)).digest("hex"):P(G)};return W},L=function(P){return function(q,Q){return new j(q,!0).update(Q)[P]()}},H=function(){var P=L("hex");P.create=function($){return new j($)},P.update=function($,W){return P.create($).update(W)};for(var q=0;q<y.length;++q){var Q=y[q];P[Q]=L(Q)}return P};function M(P){P?(S[0]=S[16]=S[1]=S[2]=S[3]=S[4]=S[5]=S[6]=S[7]=S[8]=S[9]=S[10]=S[11]=S[12]=S[13]=S[14]=S[15]=0,this.blocks=S):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}M.prototype.update=function(P){if(this.finalized)throw new Error(n);var q=R(P);P=q[0];for(var Q=q[1],$,W=0,G,J=P.length||0,V=this.blocks;W<J;){if(this.hashed&&(this.hashed=!1,V[0]=this.block,this.block=V[16]=V[1]=V[2]=V[3]=V[4]=V[5]=V[6]=V[7]=V[8]=V[9]=V[10]=V[11]=V[12]=V[13]=V[14]=V[15]=0),Q)for(G=this.start;W<J&&G<64;++W)$=P.charCodeAt(W),$<128?V[G>>>
792]|=$<<g[G++&3]:$<2048?(V[G>>>2]|=(192|$>>>6)<<g[G++&3],V[G>>>2]|=(128|$&63)<<g[G++&3]):$<55296||$>=57344?(V[G>>>2]|=(224|$>>>12)<<g[G++&3],V[G>>>2]|=(128|$>>>6&63)<<g[G++&3],V[G>>>2]|=(128|$&63)<<g[G++&3]):($=65536+(($&1023)<<10|P.charCodeAt(++W)&1023),V[G>>>2]|=(240|$>>>18)<<g[G++&3],V[G>>>2]|=(128|$>>>12&63)<<g[G++&3],V[G>>>2]|=(128|$>>>6&63)<<g[G++&3],V[G>>>2]|=(128|$&63)<<g[G++&3]);else for(G=this.start;W<J&&G<64;++W)V[G>>>2]|=P[W]<<g[G++&3];this.lastByteIndex=G,this.bytes+=G-this.start,G>=64?(this.block=V[16],this.start=G-64,this.hash(),this.hashed=!0):this.start=G}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},M.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var P=this.blocks,q=this.lastByteIndex;P[16]=this.block,P[q>>>2]|=v[q&3],this.block=P[16],q>=56&&(this.hashed||this.hash(),P[0]=this.block,P[16]=P[1]=P[2]=P[3]=P[4]=P[5]=P[6]=P[7]=P[8]=P[9]=P[10]=P[11]=P[12]=P[13]=P[14]=P[15]=0),P[14]=this.hBytes<<3|this.bytes>>>29,P[15]=this.bytes<<3,this.hash()}},M.prototype.hash=function(){var P=this.h0,q=this.h1,Q=this.h2,$=this.h3,W=this.h4,G,J,V,B=this.blocks;for(J=16;J<80;++J)V=B[J-3]^B[J-8]^B[J-14]^B[J-16],B[J]=V<<1|V>>>31;for(J=0;J<20;J+=5)G=q&Q|~q&$,V=P<<5|P>>>27,W=V+G+W+1518500249+B[J]<<0,q=q<<30|q>>>2,G=P&q|~P&Q,V=W<<5|W>>>27,$=V+G+$+1518500249+B[J+1]<<0,P=P<<30|P>>>2,G=W&P|~W&q,V=$<<5|$>>>27,Q=V+G+Q+1518500249+B[J+2]<<0,W=W<<30|W>>>2,G=$&W|~$&P,V=Q<<5|Q>>>27,q=V+G+q+1518500249+B[J+3]<<0,$=$<<30|$>>>2,G=Q&$|~Q&W,V=q<<5|q>>>27,P=V+G+P+1518500249+B[J+4]<<0,Q=Q<<30|Q>>>2;for(;J<40;J+=5)G=q^Q^$,V=P<<5|P>>>27,W=V+G+W+1859775393+B[J]<<0,q=q<<30|q>>>2,G=P^q^Q,V=W<<5|W>>>27,$=V+G+$+1859775393+B[J+1]<<0,P=P<<30|P>>>2,G=W^P^q,V=$<<5|$>>>27,Q=V+G+Q+1859775393+B[J+2]<<0,W=W<<30|W>>>2,G=$^W^P,V=Q<<5|Q>>>27,q=V+G+q+1859775393+B[J+3]<<0,$=$<<30|$>>>2,G=Q^$^W,V=q<<5|q>>>27,P=V+G+P+1859775393+B[J+4]<<0,Q=Q<<30|Q>>>2;for(;J<60;J+=5)G=q&Q|q&$|Q&$,V=P<<5|P>>>27,W=V+G+W-1894007588+B[J]<<0,q=q<<30|q>>>2,G=P&q|P&Q|q&Q,V=W<<5|W>>>27,$=V+G+$-1894007588+B[J+1]<<0,P=P<<30|P>>>2,G=W&P|W&q|P&q,V=$<<5|$>>>27,Q=V+G+Q-1894007588+B[J+2]<<0,W=W<<30|W>>>2,G=$&W|$&P|W&P,V=Q<<5|Q>>>27,q=V+G+q-1894007588+B[J+3]<<0,$=$<<30|$>>>2,G=Q&$|Q&W|$&W,V=q<<5|q>>>27,P=V+G+P-1894007588+B[J+4]<<0,Q=Q<<30|Q>>>2;for(;J<80;J+=5)G=q^Q^$,V=P<<5|P>>>27,W=V+G+W-899497514+B[J]<<0,q=q<<30|q>>>2,G=P^q^Q,V=W<<5|W>>>27,$=V+G+$-899497514+B[J+1]<<0,P=P<<30|P>>>2,G=W^P^q,V=$<<5|$>>>27,Q=V+G+Q-899497514+B[J+2]<<0,W=W<<30|W>>>2,G=$^W^P,V=Q<<5|Q>>>27,q=V+G+q-899497514+B[J+3]<<0,$=$<<30|$>>>2,G=Q^$^W,V=q<<5|q>>>27,P=V+G+P-899497514+B[J+4]<<0,Q=Q<<30|Q>>>2;this.h0=this.h0+P<<0,this.h1=this.h1+q<<0,this.h2=this.h2+Q<<0,this.h3=this.h3+$<<0,this.h4=this.h4+W<<0},M.prototype.hex=function(){this.finalize();var P=this.h0,q=this.h1,Q=this.h2,$=this.h3,W=this.h4;return p[P>>>28&15]+p[P>>>24&15]+p[P>>>20&15]+p[P>>>16&15]+p[P>>>12&15]+p[P>>>8&15]+p[P>>>4&15]+p[P&15]+p[q>>>28&15]+p[q>>>24&15]+p[q>>>20&15]+p[q>>>16&15]+p[q>>>12&15]+p[q>>>8&15]+p[q>>>4&15]+p[q&15]+p[Q>>>28&15]+p[Q>>>24&15]+p[Q>>>20&15]+p[Q>>>16&15]+p[Q>>>12&15]+p[Q>>>8&15]+p[Q>>>4&15]+p[Q&15]+p[$>>>28&15]+p[$>>>24&15]+p[$>>>20&15]+p[$>>>16&15]+p[$>>>12&15]+p[$>>>8&15]+p[$>>>4&15]+p[$&15]+p[W>>>28&15]+p[W>>>24&15]+p[W>>>20&15]+p[W>>>16&15]+p[W>>>12&15]+p[W>>>8&15]+p[W>>>4&15]+p[W&15]},M.prototype.toString=M.prototype.hex,M.prototype.digest=function(){this.finalize();var P=this.h0,q=this.h1,Q=this.h2,$=this.h3,W=this.h4;return[P>>>24&255,P>>>16&255,P>>>8&255,P&255,q>>>24&255,q>>>16&255,q>>>8&255,q&255,Q>>>24&255,Q>>>16&255,Q>>>8&255,Q&255,$>>>24&255,$>>>16&255,$>>>8&255,$&255,W>>>24&255,W>>>16&255,W>>>8&255,W&255]},M.prototype.array=M.prototype.digest,M.prototype.arrayBuffer=function(){this.finalize();var P=new ArrayBuffer(20),q=new DataView(P);return q.setUint32(0,this.h0),q.setUint32(4,this.h1),q.setUint32(8,this.h2),q.setUint32(12,this.h3),q.setUint32(16,this.h4),P};function j(P,q){var Q,$=R(P);if(P=$[0],$[1]){var W=[],G=P.length,J=0,V;for(Q=0;Q<G;++Q)V=P.charCodeAt(Q),V<128?W[J++]=V:V<2048?(W[J++]=192|V>>>6,W[J++]=128|V&63):V<55296||V>=57344?(W[J++]=224|V>>>12,W[J++]=128|V>>>6&63,W[J++]=128|V&63):(V=65536+((V&1023)<<10|P.charCodeAt(++Q)&1023),W[J++]=240|V>>>18,W[J++]=128|V>>>12&63,W[J++]=128|V>>>6&63,W[J++]=128|V&63);P=W}P.length>64&&(P=new M(!0).update(P).array());var B=[],ee=[];for(Q=0;Q<64;++Q){var ge=P[Q]||0;B[Q]=92^ge,ee[Q]=54^ge}M.call(this,q),this.update(ee),this.oKeyPad=B,this.inner=!0,this.sharedMemory=q}j.prototype=new M,j.prototype.finalize=function(){if(M.prototype.finalize.call(this),this.inner){this.inner=!1;var P=this.array();M.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(P),M.prototype.finalize.call(this)}};var K=I();K.sha1=K,K.sha1.hmac=H(),f?e.exports=K:o.sha1=K})()})(T3)),T3.exports}var rW=nW();const iW=e=>{const t=Fn()?.localStorage?.getItem(e);return t&&JSON.parse(t)},b4=e=>
79rW.sha1(JSON.stringify(e)),oW=(e,t,n)=>{const[r,o]=A.useState();return A.useEffect(()=>{const s=iW(e);if(!s)return;const{data:l,querySha:f}=s;l&&f&&b4(n)===f&&o(l)},[e,n]),A.useEffect(()=>{t&&Fn()?.localStorage?.setItem(e,JSON.stringify({data:t,querySha:b4(n)}))},[t,e,n]),t||r},aW=["ModeBannerSitewide","ModeBannerSlim"],sW=e=>aW.some(t=>t===e.__typename),lW=()=>typeof window=="object"?window:void 0;class t1 extends Error{}t1.prototype.name="InvalidTokenError";function uW(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function cW(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return uW(t)}catch{return atob(t)}}function fW(e,t){if(typeof e!="string")throw new t1("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new t1(`Invalid token specified: missing part #${n+1}`);let o;try{o=cW(r)}catch(s){throw new t1(`Invalid token specified: invalid base64 for part #${n+1} (${s.message})`)}try{return JSON.parse(o)}catch(s){throw new t1(`Invalid token specified: invalid json for part #${n+1} (${s.message})`)}}var Bv={},_4;function dW(){if(_4)return Bv;_4=1;var e=e||(function(t,n){var r={},o=r.lib={},s=function(){},l=o.Base={extend:function(x){s.prototype=this;var w=new s;return x&&w.mixIn(x),w.hasOwnProperty("init")||(w.init=function(){w.$super.init.apply(this,arguments)}),w.init.prototype=w,w.$super=this,w},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var w in x)x.hasOwnProperty(w)&&(this[w]=x[w]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}},f=o.WordArray=l.extend({init:function(x,w){x=this.words=x||[],this.sigBytes=w!=n?w:4*x.length},toString:function(x){return(x||p).stringify(this)},concat:function(x){var w=this.words,R=x.words,T=this.sigBytes;if(x=x.sigBytes,this.clamp(),T%4)for(var I=0;I<x;I++)w[T+I>>>2]|=(R[I>>>2]>>>24-8*(I%4)&255)<<24-8*((T+I)%4);else if(65535<R.length)for(I=0;I<x;I+=4)w[T+I>>>2]=R[I>>>2];else w.push.apply(w,R);return this.sigBytes+=x,this},clamp:function(){var x=this.words,w=this.sigBytes;x[w>>>2]&=4294967295<<32-8*(w%4),x.length=t.ceil(w/4)},clone:function(){var x=l.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var w=[],R=0;R<x;R+=4)w.push(4294967296*t.random()|0);return new f.init(w,x)}}),m=r.enc={},p=m.Hex={stringify:function(x){var w=x.words;x=x.sigBytes;for(var R=[],T=0;T<x;T++){var I=w[T>>>2]>>>24-8*(T%4)&255;R.push((I>>>4).toString(16)),R.push((I&15).toString(16))}return R.join("")},parse:function(x){for(var w=x.length,R=[],T=0;T<w;T+=2)R[T>>>3]|=parseInt(x.substr(T,2),16)<<24-4*(T%8);return new f.init(R,w/2)}},v=m.Latin1={stringify:function(x){var w=x.words;x=x.sigBytes;for(var R=[],T=0;T<x;T++)R.push(String.fromCharCode(w[T>>>2]>>>24-8*(T%4)&255));return R.join("")},parse:function(x){for(var w=x.length,R=[],T=0;T<w;T++)R[T>>>2]|=(x.charCodeAt(T)&255)<<24-8*(T%4);return new f.init(R,w)}},g=m.Utf8={stringify:function(x){try{return decodeURIComponent(escape(v.stringify(x)))}catch{throw Error("Malformed UTF-8 data")}},parse:function(x){return v.parse(unescape(encodeURIComponent(x)))}},y=o.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=g.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var w=this._data,R=w.words,T=w.sigBytes,I=this.blockSize,k=T/(4*I),k=x?t.ceil(k):t.max((k|0)-this._minBufferSize,0);if(x=k*I,T=t.min(4*x,T),x){for(var L=0;L<x;L+=I)this._doProcessBlock(R,L);L=R.splice(0,x),w.sigBytes-=T}return new f.init(L,T)},clone:function(){var x=l.clone.call(this);return x._data=this._data.clone(),x},_minBufferSize:0});o.Hasher=y.extend({cfg:l.extend(),init:function(x){this.cfg=this.cfg.extend(x),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(x){return this._append(x),this._process(),this},finalize:function(x){return x&&this._append(x),this._doFinalize()},blockSize:16,_createHelper:function(x){return function(w,R){return new x.init(R).finalize(w)}},_createHmacHelper:function(x){return function(w,R){return new S.HMAC.init(x,R).finalize(w)}}});var S=r.algo={};return r})(Math);return(function(t){for(var n=e,x=n.lib,r=x.WordArray,o=x.Hasher,x=n.algo,s=[],l=[],f=function(R){return 4294967296*(R-(R|0))|0},m=2,p=0;64>p;){var v;e:{v=m;for(var g=t.sqrt(v),y=2;y<=g;y++)if(!(v%y)){v=!1;break e}v=!0}v&&(8>p&&(s[p]=f(t.pow(m,.5))),l[p]=f(t.pow(m,1/3)),p++),m++}var S=[],x=x.SHA256=o.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(w,R){for(var T=this._hash.words,I=T[0],k=T[1],L=T[2],H=T[3],M=T[4],j=T[5],K=T[6],P=T[7],q=0;64>q;q++){if(16>q)S[q]=w[R+q]|0;else{var Q=S[q-15],$=S[q-2];S[q]=((Q<<25|Q>>>7)^(Q<<14|Q>>>18)^Q>>>3)+S[q-7]+(($<<15|$>>>17)^($<<13|$>>>19)^$>>>10)+S[q-16]}Q=P+((M<<26|M>>>6)^(M<<21|M>
79>>11)^(M<<7|M>>>25))+(M&j^~M&K)+l[q]+S[q],$=((I<<30|I>>>2)^(I<<19|I>>>13)^(I<<10|I>>>22))+(I&k^I&L^k&L),P=K,K=j,j=M,M=H+Q|0,H=L,L=k,k=I,I=Q+$|0}T[0]=T[0]+I|0,T[1]=T[1]+k|0,T[2]=T[2]+L|0,T[3]=T[3]+H|0,T[4]=T[4]+M|0,T[5]=T[5]+j|0,T[6]=T[6]+K|0,T[7]=T[7]+P|0},_doFinalize:function(){var w=this._data,R=w.words,T=8*this._nDataBytes,I=8*w.sigBytes;return R[I>>>5]|=128<<24-I%32,R[(I+64>>>9<<4)+14]=t.floor(T/4294967296),R[(I+64>>>9<<4)+15]=T,w.sigBytes=4*R.length,this._process(),this._hash},clone:function(){var w=o.clone.call(this);return w._hash=this._hash.clone(),w}});n.SHA256=o._createHelper(x),n.HmacSHA256=o._createHmacHelper(x)})(Math),(function(){var t=e,n=t.enc.Utf8;t.algo.HMAC=t.lib.Base.extend({init:function(r,o){r=this._hasher=new r.init,typeof o=="string"&&(o=n.parse(o));var s=r.blockSize,l=4*s;o.sigBytes>l&&(o=r.finalize(o)),o.clamp();for(var f=this._oKey=o.clone(),m=this._iKey=o.clone(),p=f.words,v=m.words,g=0;g<s;g++)p[g]^=1549556828,v[g]^=909522486;f.sigBytes=m.sigBytes=l,this.reset()},reset:function(){var r=this._hasher;r.reset(),r.update(this._iKey)},update:function(r){return this._hasher.update(r),this},finalize:function(r){var o=this._hasher;return r=o.finalize(r),o.reset(),o.finalize(this._oKey.clone().concat(r))}})})(),(function(){var t=e,n=t.lib.WordArray;t.enc.Base64={stringify:function(r){var o=r.words,s=r.sigBytes,l=this._map;r.clamp(),r=[];for(var f=0;f<s;f+=3)for(var m=(o[f>>>2]>>>24-8*(f%4)&255)<<16|(o[f+1>>>2]>>>24-8*((f+1)%4)&255)<<8|o[f+2>>>2]>>>24-8*((f+2)%4)&255,p=0;4>p&&f+.75*p<s;p++)r.push(l.charAt(m>>>6*(3-p)&63));if(o=l.charAt(64))for(;r.length%4;)r.push(o);return r.join("")},parse:function(r){var o=r.length,s=this._map,l=s.charAt(64);l&&(l=r.indexOf(l),l!=-1&&(o=l));for(var l=[],f=0,m=0;m<o;m++)if(m%4){var p=s.indexOf(r.charAt(m-1))<<2*(m%4),v=s.indexOf(r.charAt(m))>>>6-2*(m%4);l[f>>>2]|=(p|v)<<24-8*(f%4),f++}return n.create(l,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})(),(function(t){for(var n=e,x=n.lib,r=x.WordArray,o=x.Hasher,x=n.algo,s=[],l=[],f=function(R){return 4294967296*(R-(R|0))|0},m=2,p=0;64>p;){var v;e:{v=m;for(var g=t.sqrt(v),y=2;y<=g;y++)if(!(v%y)){v=!1;break e}v=!0}v&&(8>p&&(s[p]=f(t.pow(m,.5))),l[p]=f(t.pow(m,1/3)),p++),m++}var S=[],x=x.SHA256=o.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(w,R){for(var T=this._hash.words,I=T[0],k=T[1],L=T[2],H=T[3],M=T[4],j=T[5],K=T[6],P=T[7],q=0;64>q;q++){if(16>q)S[q]=w[R+q]|0;else{var Q=S[q-15],$=S[q-2];S[q]=((Q<<25|Q>>>7)^(Q<<14|Q>>>18)^Q>>>3)+S[q-7]+(($<<15|$>>>17)^($<<13|$>>>19)^$>>>10)+S[q-16]}Q=P+((M<<26|M>>>6)^(M<<21|M>>>11)^(M<<7|M>>>25))+(M&j^~M&K)+l[q]+S[q],$=((I<<30|I>>>2)^(I<<19|I>>>13)^(I<<10|I>>>22))+(I&k^I&L^k&L),P=K,K=j,j=M,M=H+Q|0,H=L,L=k,k=I,I=Q+$|0}T[0]=T[0]+I|0,T[1]=T[1]+k|0,T[2]=T[2]+L|0,T[3]=T[3]+H|0,T[4]=T[4]+M|0,T[5]=T[5]+j|0,T[6]=T[6]+K|0,T[7]=T[7]+P|0},_doFinalize:function(){var w=this._data,R=w.words,T=8*this._nDataBytes,I=8*w.sigBytes;return R[I>>>5]|=128<<24-I%32,R[(I+64>>>9<<4)+14]=t.floor(T/4294967296),R[(I+64>>>9<<4)+15]=T,w.sigBytes=4*R.length,this._process(),this._hash},clone:function(){var w=o.clone.call(this);return w._hash=this._hash.clone(),w}});n.SHA256=o._createHelper(x),n.HmacSHA256=o._createHmacHelper(x)})(Math),Bv.enc={Base64:e.enc.Base64,Utf8:e.enc.Utf8,Latin1:e.enc.Latin1},Bv.SHA256=e.SHA256,Bv.HmacSHA256=e.HmacSHA256,Bv}var R3,S4;function hW(){if(S4)return R3;S4=1;const e=dW(),t={alg:"HS256",typ:"JWT"};function n(s){return e.enc.Base64.stringify(s).replace(/=+$/,"").replace(/\+/g,"-").replace(/\//g,"_")}function r(s,l,f={}){const m=Object.assign(t,f);if(m.alg!=="HS256"&&m.typ!=="JWT")throw new Error("jwt-encode only support the HS256 algorithm and the JWT type of hash");const p=o(m),v=o(s);let g=`${p}.${v}`;return g=e.HmacSHA256(g,l),g=n(g),`${p}.${v}.${g}`}function o(s){const l=e.enc.Utf8.parse(JSON.stringify(s));return n(l)}return R3=r,R3}hW();const pW=e=>{const{prn:t,data:n}=e,r=n.household.map(({client_id:s,external_id:l,business_line:f})=>({clientId:s,externalId:l,businessLine:f})),o=r.find(s=>s.clientId===t);
79return{adminEmail:n.admin_email,adminId:n.admin_id,authedClientId:n.authed_client_id,businessLine:o.businessLine,clientId:t,email:n.email,externalId:o.externalId,firstName:n.first_name,household:r,lastName:n.last_name,locale:n.locale,region:n.region}},mW=e=>{if(!e)return{client:void 0,expired:!1,expiresAt:void 0,error:void 0};try{const t=fW(e),n=pW(t),r=t.exp?new Date(t.exp*1e3):void 0,o=r?r<new Date:!1;return{client:n,expired:o,expiresAt:r,error:void 0}}catch(t){return{client:void 0,expired:!1,expiresAt:void 0,error:t}}},vW="client_auth_v2",gW=e=>{const t=Md.get(vW)||e,n=mW(t);return n.error&&lW()&&_m.addError(n.error),n};let o6,ob,ab=0;const xO=()=>{const{client:e}=gW();return e?String(e.clientId):null},E4=e=>{e.persisted&&xO()!==o6&&Fn()?.location.reload()},yW=()=>{const e=Fn();if(!e)return()=>{};o6===void 0&&(o6=xO()),ab+=1,ab===1&&(ob=e,ob.addEventListener("pageshow",E4));let t=!0;return()=>{t&&(t=!1,ab-=1,ab===0&&(ob?.removeEventListener("pageshow",E4),ob=void 0))}},Sm=A.createContext({client:null,rootUrl:"",banners:[],visitor:null,dataLoaded:!1,navDataLoaded:!1}),Vx=()=>A.useContext(Sm),bW="knit:getNavDataQueryCache",_W=({children:e,rootUrl:t,mobileConfigKey:n,skipHideBeforeLoaded:r,showBeforeLoaded:o})=>{const[s,l]=A.useState(""),f=!!(!n||pP()[n]);A.useEffect(()=>yW(),[]);const{refetch:m,data:p,loading:v}=JQ({errorPolicy:"all",fetchPolicy:void 0,skip:!f,variables:{configParams:CF,exposureDetails:{referrer:i_()?.referrer||"",uri:Fn()?.location.href||""}}}),g=oW(bW,p,EO);A.useEffect(()=>{const w=Fn();mu(w)&&l(_l(w.location.pathname))},[]),A.useEffect(()=>{const w=Fn();mu(w)&&fP(w.stitchfix)&&(w.stitchfix={}),mu(w)&&mu(w.stitchfix)&&(w.stitchfix.refreshNavData=()=>{m().then(({data:R})=>{EF(R,{updateSelf:!0})})})},[m]);const y=!!g||!v,S=r||o||y,x={banners:(g?.banners||[]).filter(sW),client:g?.client||null,currentPath:s,rootUrl:t,visitor:g?.visitor||null,dataLoaded:S,navDataLoaded:y};return C.jsx(Sm.Provider,{value:x,children:f&&C.jsx("div",{style:{visibility:S?"visible":"hidden"},children:e})})},SW=e=>t=>{const n=XQ();return C.jsx(n,{children:C.jsx(e,{...t})})},wO=SW(_W);var O3={exports:{}};var x4;function EW(){return x4||(x4=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",l=0;l<arguments.length;l++){var f=arguments[l];f&&(s=o(s,r.call(this,f)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return this&&this[s]||s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(this,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var f in s)t.call(s,f)&&s[f]&&(l=o(l,this&&this[f]||f));return l}function o(s,l){return l?s?s+" "+l:s+l:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(O3)),O3.exports}var xW=EW();const Fi=Da(xW);let sb;const wW=new Uint8Array(16);function CW(){if(!sb&&(sb=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!sb))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return sb(wW)}const vi=[];for(let e=0;e<256;++e)vi.push((e+256).toString(16).slice(1));function TW(e,t=0){return vi[e[t+0]]+vi[e[t+1]]+vi[e[t+2]]+vi[e[t+3]]+"-"+vi[e[t+4]]+vi[e[t+5]]+"-"+vi[e[t+6]]+vi[e[t+7]]+"-"+vi[e[t+8]]+vi[e[t+9]]+"-"+vi[e[t+10]]+vi[e[t+11]]+vi[e[t+12]]+vi[e[t+13]]+vi[e[t+14]]+vi[e[t+15]]}const RW=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),w4={randomUUID:RW};function Hx(e,t,n){if(w4.randomUUID&&!e)return w4.randomUUID();e=e||{};const r=e.random||(e.rng||CW)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,TW(r)}var A3,C4;function OW(){return C4||(C4=1,A3=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[o]))return!1;for(o=r;o--!==0;){var l=s[o];if(!(l==="_owner"&&t.$$typeof)&&!e(t[l],n[l]))return!1}return!0}return t!==t&&n!==n}),A3}var AW=OW();const kW=Da(AW);var n1={exports:{}};var NW=n1.exports,T4;function IW(){return T4||(T4=1,(function(e,t){(function(){var n,r="4.18.1",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",f="Invalid `variable` option passed into `_.template`",m="Invalid `imports` option passed into `_.template`",p="__lodash_hash_undefined__",v=500,g="__lodash_placeholder__",y=1,S=2,x=4,w=1,R=2,T=1,I=2,k=4,L=8,H=16,M=32,j=64,K=128,P=256,q=512,Q=30,$="...",W=800,G=16,J=1,V=2,B=3,ee=1/0,ge=9007199254740991,ve=17976931348623157e292,Y=NaN,oe=4294967295,de=oe-1,me=oe>>>1,ke=[["ary",K],["bind",T],["bindKey",I],["curry",L],["curryRight",H],["flip",q],["partial",M],["partialRight",j],["rearg",P]],Me="[object Arguments]",We="[object Array]",Le="[object AsyncFunction]",$e="[object Boolean]",an="[object Date]",dr="[object DOMException]",ze="[object Error]",ct="[object Function]",_t="[object GeneratorFunction]",et="[object Map]",Je="[object Number]",Ke="[object Null]",Ze="[object Object]",Ye="[object Promise]",Mt="[object Proxy]",Gt="[object RegExp]",Ut="[object Set]",Bt="[object String]",Oe="[object Symbol]",le="[object Undef
79ined]",we="[object WeakMap]",Re="[object WeakSet]",Pe="[object ArrayBuffer]",At="[object DataView]",mn="[object Float32Array]",kt="[object Float64Array]",yt="[object Int8Array]",at="[object Int16Array]",Wt="[object Int32Array]",kn="[object Uint8Array]",Qn="[object Uint8ClampedArray]",jr="[object Uint16Array]",Ar="[object Uint32Array]",pt=/\b__p \+= '';/g,en=/\b(__p \+=) '' \+/g,jn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Cn=/&(?:amp|lt|gt|quot|#39);/g,Jn=/[&<>"']/g,sn=RegExp(Cn.source),tt=RegExp(Jn.source),ea=/<%-([\s\S]+?)%>/g,uo=/<%([\s\S]+?)%>/g,Ao=/<%=([\s\S]+?)%>/g,Un=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wl=/^\w*$/,Bn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ta=/[\\^$.*+?()[\]{}|]/g,ai=RegExp(ta.source),er=/^\s+/,Pa=/\s/,ko=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,na=/\{\n\/\* \[wrapped with (.+)\] \*/,Bi=/,? & /,Nn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lr=/[()=,{}\[\]\/\s]/,kr=/\\(\\)?/g,Ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fa=/\w*$/,wm=/^[-+]0x[0-9a-f]+$/i,Ou=/^0b[01]+$/i,ja=/^\[object .+?Constructor\]$/,xs=/^0o[0-7]+$/i,ws=/^(?:0|[1-9]\d*)$/,No=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 71,721 bytes, lines 79-98
797f]/g,Io=/($^)/,co=/['\n\r\u2028\u2029\\]/g,In="\\ud800-\\udfff",Vd="\\u0300-\\u036f",Yr="\\ufe20-\\ufe2f",Nr="\\u20d0-\\u20ff",Ua=Vd+Yr+Nr,Hd="\\u2700-\\u27bf",Au="a-z\\xdf-\\xf6\\xf8-\\xff",zd="\\xac\\xb1\\xd7\\xf7",of="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Cl="\\u2000-\\u206f",Cs=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fo="A-Z\\xc0-\\xd6\\xd8-\\xde",Ir="\\ufe0e\\ufe0f",af=zd+of+Cl+Cs,si="['â]",li="["+In+"]",Ba="["+af+"]",ho="["+Ua+"]",qd="\\d+",Kr="["+Hd+"]",Ts="["+Au+"]",sf="[^"+In+af+qd+Hd+Au+fo+"]",ra="\\ud83c[\\udffb-\\udfff]",ia="(?:"+ho+"|"+ra+")",Tl="[^"+In+"]",Va="(?:\\ud83c[\\udde6-\\uddff]){2}",Mo="[\\ud800-\\udbff][\\udc00-\\udfff]",Do="["+fo+"]",oa="\\u200d",Rl="(?:"+Ts+"|"+sf+")",Ol="(?:"+Do+"|"+sf+")",ku="(?:"+si+"(?:d|ll|m|re|s|t|ve))?",Gd="(?:"+si+"(?:D|LL|M|RE|S|T|VE))?",Al=ia+"?",po="["+Ir+"]?",lf="(?:"+oa+"(?:"+[Tl,Va,Mo].join("|")+")"+po+Al+")*",kl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ha=po+Al+lf,Ie="(?:"+[Kr,Va,Mo].join("|")+")"+Ha,qe="(?:"+[Tl+ho+"?",ho,Va,Mo,li].join("|")+")",Vt=RegExp(si,"g"),Yt=RegExp(ho,"g"),hn=RegExp(ra+"(?="+ra+")|"+qe+Ha,"g"),Wn=RegExp([Do+"?"+Ts+"+"+ku+"(?="+[Ba,Do,"$"].join("|")+")",Ol+"+"+Gd+"(?="+[Ba,Do+Rl,"$"].join("|")+")",Do+"?"+Rl+"+"+ku,Do+"+"+Gd,Rs,kl,qd,Ie].join("|"),"g"),Vi=RegExp("["+oa+In+Ua+Ir+"]"),Ur=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Os=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Nu=-1,Tn={};Tn[mn]=Tn[kt]=Tn[yt]=Tn[at]=Tn[Wt]=Tn[kn]=Tn[Qn]=Tn[jr]=Tn[Ar]=!0,Tn[Me]=Tn[We]=Tn[Pe]=Tn[$e]=Tn[At]=Tn[an]=Tn[ze]=Tn[ct]=Tn[et]=Tn[Je]=Tn[Ze]=Tn[Gt]=Tn[Ut]=Tn[Bt]=Tn[we]=!1;var vn={};vn[Me]=vn[We]=vn[Pe]=vn[At]=vn[$e]=vn[an]=vn[mn]=vn[kt]=vn[yt]=vn[at]=vn[Wt]=vn[et]=vn[Je]=vn[Ze]=vn[Gt]=vn[Ut]=vn[Bt]=vn[Oe]=vn[kn]=vn[Qn]=vn[jr]=vn[Ar]=!0,vn[ze]=vn[ct]=vn[we]=!1;var $d={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",à :"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä :"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å :"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"},Z1={"&":"&","<":"<",">":">",'"':""","'":"'"},yi={"&":"&","<":"<",">":">",""":'"',"'":"'"},Nl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qd=parseFloat,uf=parseInt,J1=typeof Kv=="object"&&Kv&&Kv.Object===Object&&Kv,Cm=typeof self=="object"&&self&&self.Object===Object&&self,Er=J1||Cm||Function("return this")(),Il=t&&!t.nodeType&&t,aa=Il&&!0&&e&&!e.nodeType&&e,Tm=aa&&aa.exports===Il,Rm=Tm&&J1.process,mo=(function(){try{var ie=aa&&aa.require&&aa.require("util").types;return ie||Rm&&Rm.binding&&Rm.binding("util")}catch{}})(),eg=mo&&mo.isArrayBuffer,Wd=mo&&mo.isDate,tg=mo&&mo.isMap,ng=mo&&mo.isRegExp,rg=mo&&mo.isSet,ig=mo&&mo.isTypedArray;function Hi(ie,ye,he){switch(he.length){case 0:return ie.call(ye);case 1:return ie.call(ye,he[0]);case 2:return ie.call(ye,he[0],he[1]);case 3:return ie.call(ye,he[0],he[1],he[2])}return ie.apply(ye,he)}function og(ie,ye,he,Ue){for(var rt=-1,Ht=ie==null?0:ie.length;++rt<Ht;){var ur=ie[rt];ye(Ue,ur,he(ur),ie)}return Ue}function zi(ie,ye){for(var he=-1,Ue=ie==null?0:ie.length;++he<Ue&&ye(ie[he],he,ie)!==!1;);return ie}function A2(ie,ye){for(var he=ie==null?0:ie.length;he--&&ye(ie[he],he,ie)!==!1;);return ie}function ag(ie,ye){for(var he=-1,Ue=ie==null?0:ie.length;++he<Ue;)if(!ye(ie[he],he,ie))return!1;return!0}function As(ie,ye){for(var he=-1,Ue=ie==null?0:ie.length,rt=0,Ht=[];++he<Ue;){var ur=ie[he];ye(ur,he,ie)&&(Ht[rt++]=ur)}return Ht}function Iu(ie,ye){var he=ie==null?0:ie.length;return!!he&&Mu(ie,ye,0)>-1}function Om(ie,ye,he){for(var Ue=-1,rt=ie==null?0:ie.length;++Ue<rt;)if(he(ye,ie[Ue]))return!0;return!1}function Vn(ie,ye){for(var he=-1,Ue=ie==null?0:ie.length,rt=Array(Ue);++he<Ue;)rt[he]=ye(ie[he],he,ie);return rt}function ks(ie,ye){for(var he=-1,Ue=ye.length,rt=ie.length;++he<Ue;)ie[rt+he]=ye[he];return ie}function Yd(ie,ye,he,Ue){var rt=-1,Ht=ie==null?0:ie.length;for(Ue&&Ht&&(he=ie[++rt]);++rt<Ht;)he=ye(he,ie[rt],rt,ie);return he}function k2(ie,ye,he,Ue){var rt=ie==null?0:ie.length;for(Ue&&rt&&(he=ie[--rt]);rt--;)he=ye(he,ie[rt],rt,ie);return he}function Am(ie,ye){for(var he=-1,Ue=ie==null?0:ie.length;++he<Ue;)if(ye(ie[he],he,ie))return!0;return!1}var N2=km("length");function I2(ie){return ie.split("")}function M2(ie){return ie.match(Nn)||[]}function sg(ie,ye,he){var Ue;return he(ie,function(rt,Ht,ur){if(ye(rt,Ht,ur))return Ue=Ht,!1}),Ue}function Kd(ie,ye,he,Ue){for(var rt=ie.length,Ht=he+(Ue?1:-1);Ue?Ht--:++Ht<rt;)if(ye(ie[Ht],Ht,ie))return Ht;return-1}function Mu(ie,ye,he){return ye===ye?F2(ie,ye,he):Kd(ie,Xd,he)}function D2(ie,ye,he,Ue){for(var rt=he-1,Ht=ie.length;++rt<Ht;)if(Ue(ie[rt],ye))return rt;return-1}function Xd(ie){return ie!==ie}function Du(ie,ye){var he=ie==null?0:ie.length;return he?Jd(ie,ye)/he:Y}function km(ie){return function(ye){return ye==null?n:ye[ie]}}function Zd(ie){return function(ye){return ie==null?n:ie[ye]}}function Nm(ie,ye,he,Ue,rt){return rt(ie,function(Ht,ur,bn){he=Ue?(Ue=!1,Ht):ye(he,Ht,ur,bn)}),he}function lg(ie,ye){var he=ie.length;for(ie.sort(ye);he--;)ie[he]=ie[he].value;return ie}function Jd(ie,ye){for(var he,Ue=-1,rt=ie.length;++Ue<rt;){var Ht=ye(ie[Ue]);Ht!==n&&(he=he===n?Ht:he+Ht)}return he}function eh(ie,ye){for(var he=-1,Ue=Array(ie);++he<ie;)Ue[he]=ye(he);return Ue}function Lu(ie,ye){return Vn(ye,function(he){return[he,ie[he]]})}function ug(ie){return ie&&ie.slice(0,Pm(ie)+1).replace(er,"")}function qi(ie){return function(ye){return ie(ye)}}function Im(ie,ye){return Vn(ye,function(he){return ie[he]})}function Pu(ie,ye){return ie.has(ye)}function Mm(ie,ye){for(var he=-1,Ue=ie.length;++he<Ue&&Mu(ye,ie[he],0)>-1;);return he}function Fu(ie,ye){for(var he=ie.length;he--&&Mu(ye,ie[he],0)>-1;);return he}function cf(ie,ye){for(var he=ie.length,Ue=0;he--;)ie[he]===ye&&++Ue;return Ue}var L2=Zd($d),th=Zd(Z1);function cg(ie){return"\\"+Nl[ie]}function fg(ie,ye){return ie==null?n:ie[ye]}function Ns(ie){return Vi.test(ie)}function Dm(ie){return Ur.test(ie)}function dg(ie){for(var ye,he=[];!(ye=ie.next()).done;)he.push(ye.value);return he}function nh(ie){var ye=-1,he=Array(ie.size);return ie.forEach(function(Ue,rt){he[++ye]=[rt,Ue]}),he}function Lm(ie,ye){return function(he){return ie(ye(he))}}function Is(ie,ye){for(var he=-1,Ue=ie.length,rt=0,Ht=[];++he<Ue;){var ur=ie[he];(ur===ye||ur===g)&&(ie[he]=g,Ht[rt++]=he)}return Ht}function rh(ie){var ye=-1,he=Array(ie.size);return ie.forEach(function(Ue){he[++ye]=Ue}),he}function P2(ie){var ye=-1,he=Array(ie.size);return ie.forEach(function(Ue){he[++ye]=[Ue,Ue]}),he}function F2(ie,ye,he){for(var Ue=he-1,rt=ie.length;++Ue<rt;)if(ie[Ue]===ye)return Ue;return-1}function j2(ie,ye,he){for(var Ue=he+1;Ue--;)if(ie[Ue]===ye)return Ue;return Ue}function Mr(ie){return Ns(ie)?pg(ie):N2(ie)}function ui(ie){return Ns(ie)?mg(ie):I2(ie)}function Pm(ie){for(var ye=ie.length;ye--&&Pa.test(ie.charAt(ye)););return ye}var hg=Zd(yi);function pg(ie){for(var ye=hn.lastIndex=0;hn.test(ie);)++ye;return ye}function mg(ie){return ie.match(hn)||[]}function Fm(ie){return ie.match(Wn)||[]}var U2=(function ie(ye){ye=ye==null?Er:Lo.defaults(Er.Object(),ye,Lo.pick(Er,Os));var he=ye.Array,Ue=ye.Date,rt=ye.Error,Ht=ye.Function,ur=ye.Math,bn=ye.Object,za=ye.RegExp,vg=ye.String,Gi=ye.TypeError,ff=he.prototype,B2=Ht.prototype,ju=bn.prototype,ih=ye["__core-js_shared__"],df=B2.toString,ln=ju.hasOwnProperty,jm=0,vo=(function(){var c=/[^.]+$/.exec(ih&&ih.keys&&ih.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),Ml=ju.toString,go=df.call(bn),Uu=Er._,Um=za("^"+df.call(ln).replace(ta,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dl=Tm?ye.Buffer:n,Po=ye.Symbol,Bu=ye.Uint8Array,Ms=Dl?Dl.allocUnsafe:n,hf=Lm(bn.getPrototypeOf,bn),pf=bn.create,Ll=ju.propertyIsEnumerable,oh=ff.splice,bi=Po?Po.isConcatSpreadable:n,Pl=Po?Po.iterator:n,ci=Po?Po.toStringTag:n,mf=(function(){try{var c=zo(bn,"defineProperty");return c({},"",{}),c}catch{}})(),ah=ye.clearTimeout!==Er.clearTimeout&&ye.clearTimeout,Fl=Ue&&Ue.now!==Er.Date.now&&Ue.now,Bm=ye.setTimeout!==Er.setTimeout&&ye.setTimeout,vf=ur.ceil,Vu=ur.floor,sh=bn.getOwnPropertySymbols,yo=Dl?Dl.isBuffer:n,jl=ye.isFinite,Hu=ff.join,lh=Lm(bn.keys,bn),Yn=ur.max,Rn=ur.min,bo=Ue.now,Ds=ye.parseInt,Fo=ur.random,sa=ff.reverse,jo=zo(ye,"DataView"),zu=zo(ye,"Map"),gf=zo(ye,"Promise"),Ls=zo(ye,"Set"),qu=zo(ye,"WeakMap"),cr=zo(bn,"create"),_n=qu&&new qu,Ot={},Ps=Ys(jo),_o=Ys(zu),Vm=Ys(gf),Fs=Ys(Ls),gg=Ys(qu),yf=Po?Po.prototype:n,la=yf?yf.valueOf:n,js=yf?yf.toString:n;function U(c){if(or(c)&&!mt(c)&&!(c instanceof bt)){if(c instanceof Dr)return c;if(ln.call(c,"__wrapped__"))return U0(c)}return new Dr(c)}var ua=(function(){function c(){}return function(h){if(!Kn(h))return{};if(pf)return pf(h);c.prototype=h;var _=new c;return c.prototype=n,_}})();function Gu(){}function Dr(c,h){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}U.templateSettings={escape:ea,evaluate:uo,interpolate:Ao,variable:"",imports:{_:U}},U.prototype=Gu.prototype,U.prototype.constructor=U,Dr.prototype=ua(Gu.prototype),Dr.prototype.constructor=Dr;function bt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=oe,this.__views__=[]}function Us(){var c=new bt(this.__wrapped__);return c.__actions__=Xr(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Xr(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Xr(this.__views__),c}function qa(){if(this.__filtered__){var c=new bt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function Hm(){var c=this.__wrapped__.value(),h=this.__dir__,_=mt(c),O=h<0,D=_?c.length:0,z=Mh(0,D,this.__views__),X=z.start,te=z.end,se=te-X,xe=O?te:X-1,Ce=this.__iteratees__,Te=Ce.length,De=0,Qe=Rn(se,this.__takeCount__);if(!_||!O&&D==se&&Qe==se)return l0(c,this.__actions__);var lt=[];e:for(;se--&&De<Qe;){xe+=h;for(var Nt=-1,ot=c[xe];++Nt<Te;){var $t=Ce[Nt],Xt=$t.iteratee,$o=$t.type,to=Xt(ot);if($o==V)ot=to;else if(!to){if($o==J)continue e;break e}}lt[De++]=ot}return lt}bt.prototype=ua(Gu.prototype),bt.prototype.constructor=bt;function Ga(c){var h=-1,_=c==null?0:c.length;for(this.clear();++h<_;){var O=c[h];this.set(O[0],O[1])}}function $u(){this.__data__=cr?cr(null):{},this.size=0}function uh(c){var h=this.has(c)&&delete this.__data__[c];return this.size-=h?1:0,h}function Ul(c){var h=this.__data__;if(cr){var _=h[c];return _===p?n:_}return ln.call(h,c)?h[c]:n}function Br(c){var h=this.__data__;return cr?h[c]!==n:ln.call(h,c)}function ch(c,h){var _=this.__data__;return this.size+=this.has(c)?0:1,_[c]=cr&&h===n?p:h,this}Ga.prototype.clear=$u,Ga.prototype.delete=uh,Ga.prototype.get=Ul,Ga.prototype.has=Br,Ga.prototype.set=ch;function ca(c){var h=-1,_=c==null?0:c.length;for(this.clear();++h<_;){var O=c[h];this.set(O[0],O[1])}}function V2(){this.__data__=[],this.size=0}function H2(c){var h=this.__data__,_=Ef(h,c);if(_<0)return!1;var O=h.length-1;return _==O?h.pop():oh.call(h,_,1),--this.size,!0}function z2(c){var h=this.__data__,_=Ef(h,c);return _<0?n:h[_][1]}function hr(c){return Ef(this.__data__,c)>-1}function zm(c,h){var _=this.__data__,O=Ef(_,c);return O<0?(++this.size,_.push([c,h])):_[O][1]=h,this}ca.prototype.clear=V2,ca.prototype.delete=H2,ca.prototype.get=z2,ca.prototype.has=hr,ca.prototype.set=zm;function $i(c){var h=-1,_=c==null?0:c.length;for(this.clear();++h<_;){var O=c[h];this.set(O[0],O[1])}}function bf(){this.size=0,this.__data__={hash:new Ga,map:new(zu||ca),string:new Ga}}function qm(c){var h=Df(this,c).delete(c);return this.size-=h?1:0,h}function Qu(c){return Df(this,c).get(c)}function Wu(c){return Df(this,c).has(c)}function q2(c,h){var _=Df(this,c),O=_.size;return _.set(c,h),this.size+=_.size==O?0:1,this}$i.prototype.clear=bf,$i.prototype.delete=qm,$i.prototype.get=Qu,$i.prototype.has=Wu,$i.prototype.set=q2;function Bs(c){var h=-1,_=c==null?0:c.length;for(this.__data__=new $i;++h<_;)this.add(c[h])}function G2(c){return this.__data__.set(c,p),this}function yg(c){return this.__data__.has(c)}Bs.prototype.add=Bs.prototype.push=G2,Bs.prototype.has=yg;function Vr(c){var h=this.__data__=new ca(c);this.size=h.size}function Gm(){this.__data__=new ca,this.size=0}function fh(c){var h=this.__data__,_=h.delete(c);return this.size=h.size,_}function bg(c){return this.__data__.get(c)}function Yu(c){return this.__data__.has(c)}function $m(c,h){var _=this.__data__;if(_ instanceof ca){var O=_.__data__;if(!zu||O.length<o-1)return O.push([c,h]),this.size=++_.size,this;_=this.__data__=new $i(O)}return _.set(c,h),this.size=_.size,this}Vr.prototype.clear=Gm,Vr.prototype.delete=fh,Vr.prototype.get=bg,Vr.prototype.has=Yu,Vr.prototype.set=$m;function _f(c,h){var _=mt(c),O=!_&&ls(c),D=!_&&!O&&us(c),z=!_&&!O&&!D&&tl(c),X=_||O||D||z,te=X?eh(c.length,vg):[],se=te.length;for(var xe in c)(h||ln.call(c,xe))&&!(X&&(xe=="length"||D&&(xe=="offset"||xe=="parent")||z&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||va(xe,se)))&&te.push(xe);return te}function Sf(c){var h=c.length;return h?c[Rf(0,h-1)]:n}function _g(c,h){return Pf(Xr(c),fa(h,0,c.length))}function Sg(c){return Pf(Xr(c))}function $a(c,h,_){(_!==n&&!Eo(c[h],_)||_===n&&!(h in c))&&Qi(c,h,_)}function Uo(c,h,_){var O=c[h];(!(ln.call(c,h)&&Eo(O,_))||_===n&&!(h in c))&&Qi(c,h,_)}function Ef(c,h){for(var _=c.length;_--;)if(Eo(c[_][0],h))return _;return-1}function Eg(c,h,_,O){return da(c,function(D,z,X){h(O,D,_(D),X)}),O}function Bl(c,h){return c&&Ho(h,Pr(h),c)}function xf(c,h){return c&&Ho(h,Oi(h),c)}function Qi(c,h,_){h=="__proto__"&&mf?mf(c,h,{configurable:!0,enumerable:!0,value:_,writable:!0}):c[h]=_}function Vl(c,h){for(var _=-1,O=h.length,D=he(O),z=c==null;++_<O;)D[_]=z?n:ep(c,h[_]);return D}function fa(c,h,_){return c===c&&(_!==n&&(c=c<=_?c:_),h!==n&&(c=c>=h?c:h)),c}function Wi(c,h,_,O,D,z){var X,te=h&y,se=h&S,xe=h&x;if(_&&(X=D?_(c,O,D,z):_(c)),X!==n)return X;if(!Kn(c))return c;var Ce=mt(c);if(Ce){if(X=Pg(c),!te)return Xr(c,X)}else{var Te=Zr(c),De=Te==ct||Te==_t;if(us(c))return Th(c,te);if(Te==Ze||Te==Me||De&&!D){if(X=se||De?{}:A0(c),!te)return se?$2(c,xf(X,c)):kg(c,Bl(X,c))}else{if(!vn[Te])return D?c:{};X=k0(c,Te,te)}}z||(z=new Vr);var Qe=z.get(c);if(Qe)return Qe;z.set(c,X),dv(c)?c.forEach(function(ot){X.add(Wi(ot,h,_,ot,c,z))}):cv(c)&&c.forEach(function(ot,$t){X.set($t,Wi(ot,h,_,$t,c,z))});var lt=xe?se?Mf:C0:se?Oi:Pr,Nt=Ce?n:lt(c);return zi(Nt||c,function(ot,$t){Nt&&($t=ot,ot=c[$t]),Uo(X,$t,Wi(ot,h,_,$t,c,z))}),X}function Hl(c){var h=Pr(c);return function(_){return Qm(_,c,h)}}function Qm(c,h,_){var O=_.length;if(c==null)return!O;for(c=bn(c);O--;){var D=_[O],z=h[D],X=c[D];if(X===n&&!(D in c)||!z(X))return!1}return!0}function Qa(c,h,_){if(typeof c!="function")throw new Gi(l);return ac(function(){c.apply(n,_)},h)}function zl(c,h,_,O){var D=-1,z=Iu,X=!0,te=c.length,se=[],xe=h.length;if(!te)return se;_&&(h=Vn(h,qi(_))),O?(z=Om,X=!1):h.length>=o&&(z=Pu,X=!1,h=new Bs(h));e:for(;++D<te;){var Ce=c[D],Te=_==null?Ce:_(Ce);if(Ce=O||Ce!==0?Ce:0,X&&Te===Te){for(var De=xe;De--;)if(h[De]===Te)continue e;se.push(Ce)}else z(h,Te,O)||se.push(Ce)}return se}var da=v0(Bo),Wa=v0(zs,!0);function Vs(c,h){var _=!0;return da(c,function(O,D,z){return _=!!h(O,D,z),_}),_}function Hs(c,h,_){for(var O=-1,D=c.length;++O<D;){var z=c[O],X=h(z);if(X!=null&&(te===n?X===X&&!pi(X):_(X,te)))var te=X,se=z}return se}function Wm(c,h,_,O){var D=c.length;for(_=Et(_),_<0&&(_=-_>D?0:D+_),O=O===n||O>D?D:Et(O),O<0&&(O+=D),O=_>O?0:hv(O);_<O;)c[_++]=h;return c}function dh(c,h){var _=[];return da(c,function(O,D,z){h(O,D,z)&&_.push(O)}),_}function fr(c,h,_,O,D){var z=-1,X=c.length;for(_||(_=I0),D||(D=[]);++z<X;){var te=c[z];h>0&&_(te)?h>1?fr(te,h-1,_,O,D):ks(D,te):O||(D[D.length]=te)}return D}var ql=Rh(),Ym=Rh(!0);function Bo(c,h){return c&&ql(c,h,Pr)}function zs(c,h){return c&&Ym(c,h,Pr)}function Gl(c,h){return As(h,function(_){return xo(c[_])})}function qs(c,h){h=Xa(h,c);for(var _=0,O=h.length;c!=null&&_<O;)c=c[vr(h[_++])];return _&&_==O?c:n}function hh(c,h,_){var O=h(c);return mt(c)?O:ks(O,_(c))}function Hr(c){return c==null?c===n?le:Ke:ci&&ci in bn(c)?Lg(c):Bg(c)}function fi(c,h){return c>h}function So(c,h){return c!=null&&ln.call(c,h)}function Gs(c,h){return c!=null&&h in bn(c)}function Km(c,h,_){return c>=Rn(h,_)&&c<Yn(h,_)}function ph(c,h,_){for(var O=_?Om:Iu,D=c[0].length,z=c.length,X=z,te=he(z),se=1/0,xe=[];X--;){var Ce=c[X];X&&h&&(Ce=Vn(Ce,qi(h))),se=Rn(Ce.length,se),te[X]=!_&&(h||D>=120&&Ce.length>=120)?new Bs(X&&Ce):n}Ce=c[0];var Te=-1,De=te[0];e:for(;++Te<D&&xe.length<se;){var Qe=Ce[Te],lt=h?h(Qe):Qe;if(Qe=_||Qe!==0?Qe:0,!(De?Pu(De,lt):O(xe,lt,_))){for(X=z;--X;){var Nt=te[X];if(!(Nt?Pu(Nt,lt):O(c[X],lt,_)))continue e}De&&De.push(lt),xe.push(Qe)}}return xe}function $s(c,h,_,O){return Bo(c,function(D,z,X){h(O,_(D),z,X)}),O}function zr(c,h,_){h=Xa(h,c),c=oc(c,h);var O=c==null?c:c[vr(Xi(h))];return O==null?n:Hi(O,c,_)}function tr(c){return or(c)&&Hr(c)==Me}function mh(c){return or(c)&&Hr(c)==Pe}function Ya(c){return or(c)&&Hr(c)==an}function ft(c,h,_,O,D){return c===h?!0:c==null||h==null||!or(c)&&!or(h)?c!==c&&h!==h:Sn(c,h,_,O,ft,D)}function Sn(c,h,_,O,D,z){var X=mt(c),te=mt(h),se=X?We:Zr(c),xe=te?We:Zr(h);se=se==Me?Ze:se,xe=xe==Me?Ze:xe;var Ce=se==Ze,Te=xe==Ze,De=se==xe;if(De&&us(c)){if(!us(h))return!1;X=!0,Ce=!1}if(De&&!Ce)return z||(z=new Vr),X||tl(c)?x0(c,h,_,O,D,z):w0(c,h,se,_,O,D,z);if(!(_&w)){var Qe=Ce&&ln.call(c,"__wrapped__"),lt=Te&&ln.call(h,"__wrapped__");if(Qe||lt){var Nt=Qe?c.value():c,ot=lt?h.value():h;return z||(z=new Vr),D(Nt,ot,_,O,z)}}return De?(z||(z=new Vr),Dg(c,h,_,O,D,z)):!1}function pr(c){return or(c)&&Zr(c)==et}function Ku(c,h,_,O){var D=_.length,z=D,X=!O;if(c==null)return!z;for(c=bn(c);D--;){var te=_[D];if(X&&te[2]?te[1]!==c[te[0]]:!(te[0]in c))return!1}for(;++D<z;){te=_[D];var se=te[0],xe=c[se],Ce=te[1];if(X&&te[2]){if(xe===n&&!(se in c))return!1}else{var Te=new Vr;if(O)var De=O(xe,Ce,se,c,h,Te);if(!(De===n?ft(Ce,xe,w|R,O,Te):De))return!1}}return!0}function $l(c){if(!Kn(c)||D0(c))return!1;var h=xo(c)?Um:ja;return h.test(Ys(c))}function Ql(c){return or(c)&&Hr(c)==Gt}function vh(c){return or(c)&&Zr(c)==Ut}function wf(c){return or(c)&&Wf(c.length)&&!!Tn[Hr(c)]}function Wl(c){return typeof c=="function"?c:c==null?ei:typeof c=="object"?mt(c)?Jm(c[0],c[1]):Zm(c):Z(c)}function Xm(c){if(!Ki(c))return lh(c);var h=[];for(var _ in bn(c))ln.call(c,_)&&_!="constructor"&&h.push(_);return h}function nr(c){if(!Kn(c))return L0(c);var h=Ki(c),_=[];for(var O in c)O=="constructor"&&(h||!ln.call(c,O))||_.push(O);return _}function Cf(c,h){return c<h}function gh(c,h){var _=-1,O=Ci(c)?he(c.length):[];return da(c,function(D,z,X){O[++_]=h(D,z,X)}),O}function Zm(c){var h=Ih(c);return h.length==1&&h[0][2]?jg(h[0][0],h[0][1]):function(_){return _===c||Ku(_,c,h)}}function Jm(c,h){return ic(c)&&Lh(h)?jg(vr(c),h):function(_){var O=ep(_,c);return O===n&&O===h?vv(_,c):ft(h,O,w|R)}}function yh(c,h,_,O,D){c!==h&&ql(h,function(z,X){if(D||(D=new Vr),Kn(z))e0(c,h,X,_,yh,O,D);else{var te=O?O(P0(c,X),z,X+"",c,h,D):n;te===n&&(te=z),$a(c,X,te)}},Oi)}function e0(c,h,_,O,D,z,X){var te=P0(c,_),se=P0(h,_),xe=X.get(se);if(xe){$a(c,_,xe);return}var Ce=z?z(te,se,_+"",c,h,X):n,Te=Ce===n;if(Te){var De=mt(se),Qe=!De&&us(se),lt=!De&&!Qe&&tl(se);Ce=se,De||Qe||lt?mt(te)?Ce=te:Pn(te)?Ce=Xr(te):Qe?(Te=!1,Ce=Th(se,!0)):lt?(Te=!1,Ce=f0(se,!0)):Ce=[]:ou(se)||ls(se)?(Ce=te,ls(te)?Ce=wy(te):(!Kn(te)||xo(te))&&(Ce=A0(se))):Te=!1}Te&&(X.set(se,Ce),D(Ce,se,O,z,X),X.delete(se)),$a(c,_,Ce)}function bh(c,h){var _=c.length;if(_)return h+=h<0?_:0,va(h,_)?c[h]:n}function _h(c,h,_){h.length?h=Vn(h,function(z){return mt(z)?function(X){return qs(X,z.length===1?z[0]:z)}:z}):h=[ei];var O=-1;h=Vn(h,qi(nt()));var D=gh(c,function(z,X,te){var se=Vn(h,function(xe){return xe(z)});return{criteria:se,index:++O,value:z}});return lg(D,function(z,X){return h0(z,X,_)})}function di(c,h){return rr(c,h,function(_,O){return vv(c,O)})}function rr(c,h,_){for(var O=-1,D=h.length,z={};++O<D;){var X=h[O],te=qs(c,X);_(te,X)&&Zu(z,Xa(X,c),te)}return z}function Sh(c){return function(h){return qs(h,c)}}function Yl(c,h,_,O){var D=O?D2:Mu,z=-1,X=h.length,te=c;for(c===h&&(h=Xr(h)),_&&(te=Vn(c,qi(_)));++z<X;)for(var se=0,xe=h[z],Ce=_?_(xe):xe;(se=D(te,Ce,se,O))>-1;)te!==c&&oh.call(te,se,1),oh.call(c,se,1);return c}function Tf(c,h){for(var _=c?h.length:0,O=_-1;_--;){var D=h[_];if(_==O||D!==z){var z=D;va(D)?oh.call(c,D,1):Eh(c,D)}}return c}function Rf(c,h){return c+Vu(Fo()*(h-c+1))}function Ka(c,h,_,O){for(var D=-1,z=Yn(vf((h-c)/(_||1)),0),X=he(z);z--;)X[O?z:++D]=c,c+=_;return X}function Xu(c,h){var _="";if(!c||h<1||h>ge)return _;do h%2&&(_+=c),h=Vu(h/2),h&&(c+=c);while(h);return _}function Tt(c,h){return eu(Lf(c,h,ei),c+"")}function t0(c){return Sf(nl(c))}function xg(c,h){var _=nl(c);return Pf(_,fa(h,0,_.length))}function Zu(c,h,_,O){if(!Kn(c))return c;h=Xa(h,c);for(var D=-1,z=h.length,X=z-1,te=c;te!=null&&++D<z;){var se=vr(h[D]),xe=_;if(se==="__proto__"||se==="constructor"||se==="prototype")return c;if(D!=X){var Ce=te[se];xe=O?O(Ce,se,te):n,xe===n&&(xe=Kn(Ce)?Ce:va(h[D+1])?[]:{})}Uo(te,se,xe),te=te[se]}return c}var n0=_n?function(c,h){return _n.set(c,h),c}:ei,wg=mf?function(c,h){return mf(c,"toString",{configurable:!0,enumerable:!1,value:bc(h),writable:!0})}:ei;function Cg(c){return Pf(nl(c))}function Yi(c,h,_){var O=-1,D=c.length;h<0&&(h=-h>D?0:D+h),_=_>D?D:_,_<0&&(_+=D),D=h>_?0:_-h>>>0,h>>>=0;for(var z=he(D);++O<D;)z[O]=c[O+h];return z}function r0(c,h){var _;return da(c,function(O,D,z){return _=h(O,D,z),!_}),!!_}function Of(c,h,_){var O=0,D=c==null?O:c.length;if(typeof h=="number"&&h===h&&D<=me){for(;O<D;){var z=O+D>>>1,X=c[z];X!==null&&!pi(X)&&(_?X<=h:X<h)?O=z+1:D=z}return D}return i0(c,h,ei,_)}function i0(c,h,_,O){var D=0,z=c==null?0:c.length;if(z===0)return 0;h=_(h);for(var X=h!==h,te=h===null,se=pi(h),xe=h===n;D<z;){var Ce=Vu((D+z)/2),Te=_(c[Ce]),De=Te!==n,Qe=Te===null,lt=Te===Te,Nt=pi(Te);if(X)var ot=O||lt;else xe?ot=lt&&(O||De):te?ot=lt&&De&&(O||!Qe):se?ot=lt&&De&&!Qe&&(O||!Nt):Qe||Nt?ot=!1:ot=O?Te<=h:Te<h;ot?D=Ce+1:z=Ce}return Rn(z,de)}function o0(c,h){for(var _=-1,O=c.length,D=0,z=[];++_<O;){var X=c[_],te=h?h(X):X;if(!_||!Eo(te,se)){var se=te;z[D++]=X===0?0:X}}return z}function a0(c){return typeof c=="number"?c:pi(c)?Y:+c}function _i(c){if(typeof c=="string")return c;if(mt(c))return Vn(c,_i)+"";if(pi(c))return js?js.call(c):"";var h=c+"";return h=="0"&&1/c==-ee?"-0":h}function ha(c,h,_){var O=-1,D=Iu,z=c.length,X=!0,te=[],se=te;if(_)X=!1,D=Om;else if(z>=o){var xe=h?null:Mg(c);if(xe)return rh(xe);X=!1,D=Pu,se=new Bs}else se=h?[]:te;e:for(;++O<z;){var Ce=c[O],Te=h?h(Ce):Ce;if(Ce=_||Ce!==0?Ce:0,X&&Te===Te){for(var De=se.length;De--;)if(se[De]===Te)continue e;h&&se.push(Te),te.push(Ce)}else D(se,Te,_)||(se!==te&&se.push(Te),te.push(Ce))}return te}function Eh(c,h){h=Xa(h,c);var _=-1,O=h.length;if(!O)return!0;for(;++_<O;){var D=vr(h[_]);if(D==="__proto__"&&!ln.call(c,"__proto__")||(D==="constructor"||D==="prototype")&&_<O-1)return!1}var z=oc(c,h);return z==null||delete z[vr(Xi(h))]}function s0(c,h,_,O){return Zu(c,h,_(qs(c,h)),O)}function Af(c,h,_,O){for(var D=c.length,z=O?D:-1;(O?z--:++z<D)&&h(c[z],z,c););return _?Yi(c,O?0:z,O?z+1:D):Yi(c,O?z+1:0,O?D:z)}function l0(c,h){var _=c;return _ instanceof bt&&(_=_.value()),Yd(h,function(O,D){return D.func.apply(D.thisArg,ks([O],D.args))},_)}function xh(c,h,_){var O=c.length;if(O<2)return O?ha(c[0]):[];for(var D=-1,z=he(O);++D<O;)for(var X=c[D],te=-1;++te<O;)te!=D&&(z[D]=zl(z[D]||X,c[te],h,_));return ha(fr(z,1),h,_)}function Tg(c,h,_){for(var O=-1,D=c.length,z=h.length,X={};++O<D;){var te=O<z?h[O]:n;_(X,c[O],te)}return X}function wh(c){return Pn(c)?c:[]}function Qs(c){return typeof c=="function"?c:ei}function Xa(c,h){return mt(c)?c:ic(c,h)?[c]:sc(cn(c))}var Ch=Tt;function Vo(c,h,_){var O=c.length;return _=_===n?O:_,!h&&_>=O?c:Yi(c,h,_)}var u0=ah||function(c){return Er.clearTimeout(c)};function Th(c,h){if(h)return c.slice();var _=c.length,O=Ms?Ms(_):new c.constructor(_);return c.copy(O),O}function c0(c){var h=new c.constructor(c.byteLength);return new Bu(h).set(new Bu(c)),h}function Rg(c,h){var _=h?c0(c.buffer):c.buffer;return new c.constructor(_,c.byteOffset,c.byteLength)}function Og(c){var h=new c.constructor(c.source,Fa.exec(c));return h.lastIndex=c.lastIndex,h}function Ag(c){return la?bn(la.call(c)):{}}function f0(c,h){var _=h?c0(c.buffer):c.buffer;return new c.constructor(_,c.byteOffset,c.length)}function d0(c,h){if(c!==h){var _=c!==n,O=c===null,D=c===c,z=pi(c),X=h!==n,te=h===null,se=h===h,xe=pi(h);if(!te&&!xe&&!z&&c>h||z&&X&&se&&!te&&!xe||O&&X&&se||!_&&se||!D)return 1;if(!O&&!z&&!xe&&c<h||xe&&_&&D&&!O&&!z||te&&_&&D||!X&&D||!se)return-1}return 0}function h0(c,h,_){for(var O=-1,D=c.criteria,z=h.criteria,X=D.length,te=_.length;++O<X;){var se=d0(D[O],z[O]);if(se){if(O>=te)return se;var xe=_[O];return se*(xe=="desc"?-1:1)}}return c.index-h.index}function p0(c,h,_,O){for(var D=-1,z=c.length,X=_.length,te=-1,se=h.length,xe=Yn(z-X,0),Ce=he(se+xe),Te=!O;++te<se;)Ce[te]=h[te];for(;++D<X;)(Te||D<z)&&(Ce[_[D]]=c[D]);for(;xe--;)Ce[te++]=c[D++];return Ce}function m0(c,h,_,O){for(var D=-1,z=c.length,X=-1,te=_.length,se=-1,xe=h.length,Ce=Yn(z-te,0),Te=he(Ce+xe),De=!O;++D<Ce;)Te[D]=c[D];for(var Qe=D;++se<xe;)Te[Qe+se]=h[se];for(;++X<te;)(De||D<z)&&(Te[Qe+_[X]]=c[D++]);return Te}function Xr(c,h){var _=-1,O=c.length;for(h||(h=he(O));++_<O;)h[_]=c[_];return h}function Ho(c,h,_,O){var D=!_;_||(_={});for(var z=-1,X=h.length;++z<X;){var te=h[z],se=O?O(_[te],c[te],te,_,c):n;se===n&&(se=c[te]),D?Qi(_,te,se):Uo(_,te,se)}return _}function kg(c,h){return Ho(c,rc(c),h)}function $2(c,h){return Ho(c,T0(c),h)}function Ju(c,h){return function(_,O){var D=mt(_)?og:Eg,z=h?h():{};return D(_,c,nt(O,2),z)}}function Kl(c){return Tt(function(h,_){var O=-1,D=_.length,z=D>1?_[D-1]:n,X=D>2?_[2]:n;for(z=c.length>3&&typeof z=="function"?(D--,z):n,X&&qr(_[0],_[1],X)&&(z=D<3?n:z,D=1),h=bn(h);++O<D;){var te=_[O];te&&c(h,te,O,z)}return h})}function v0(c,h){return function(_,O){if(_==null)return _;if(!Ci(_))return c(_,O);for(var D=_.length,z=h?D:-1,X=bn(_);(h?z--:++z<D)&&O(X[z],z,X)!==!1;);return _}}function Rh(c){return function(h,_,O){for(var D=-1,z=bn(h),X=O(h),te=X.length;te--;){var se=X[c?te:++D];if(_(z[se],se,z)===!1)break}return h}}function Ng(c,h,_){var O=h&T,D=kf(c);function z(){var X=this&&this!==Er&&this instanceof z?D:c;return X.apply(O?_:this,arguments)}return z}function g0(c){return function(h){h=cn(h);var _=Ns(h)?ui(h):n,O=_?_[0]:h.charAt(0),D=_?Vo(_,1).join(""):h.slice(1);return O[c]()+D}}function ec(c){return function(h){return Yd(Ov(My(h).replace(Vt,"")),c,"")}}function kf(c){return function(){var h=arguments;switch(h.length){case 0:return new c;case 1:return new c(h[0]);case 2:return new c(h[0],h[1]);case 3:return new c(h[0],h[1],h[2]);case 4:return new c(h[0],h[1],h[2],h[3]);case 5:return new c(h[0],h[1],h[2],h[3],h[4]);case 6:return new c(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new c(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var _=ua(c.prototype),O=c.apply(_,h);return Kn(O)?O:_}}function Ig(c,h,_){var O=kf(c);function D(){for(var z=arguments.length,X=he(z),te=z,se=Jl(D);te--;)X[te]=arguments[te];var xe=z<3&&X[0]!==se&&X[z-1]!==se?[]:Is(X,se);if(z-=xe.length,z<_)return Ah(c,h,Xl,D.placeholder,n,X,xe,n,n,_-z);var Ce=this&&this!==Er&&this instanceof D?O:c;return Hi(Ce,this,X)}return D}function tc(c){return function(h,_,O){var D=bn(h);if(!Ci(h)){var z=nt(_,3);h=Pr(h),_=function(te){return z(D[te],te,D)}}var X=c(h,_,O);return X>-1?D[z?h[X]:X]:n}}function Oh(c){return ma(function(h){var _=h.length,O=_,D=Dr.prototype.thru;for(c&&h.reverse();O--;){var z=h[O];if(typeof z!="function")throw new Gi(l);if(D&&!X&&mr(z)=="wrapper")var X=new Dr([],!0)}for(O=X?O:_;++O<_;){z=h[O];var te=mr(z),se=te=="wrapper"?ir(z):n;se&&Dh(se[0])&&se[1]==(K|L|M|P)&&!se[4].length&&se[9]==1?X=X[mr(se[0])].apply(X,se[3]):X=z.length==1&&Dh(z)?X[te]():X.thru(z)}return function(){var xe=arguments,Ce=xe[0];if(X&&xe.length==1&&mt(Ce))return X.plant(Ce).value();for(var Te=0,De=_?h[Te].apply(this,xe):Ce;++Te<_;)De=h[Te].call(this,De);return De}})}function Xl(c,h,_,O,D,z,X,te,se,xe){var Ce=h&K,Te=h&T,De=h&I,Qe=h&(L|H),lt=h&q,Nt=De?n:kf(c);function ot(){for(var $t=arguments.length,Xt=he($t),$o=$t;$o--;)Xt[$o]=arguments[$o];if(Qe)var to=Jl(ot),Qo=cf(Xt,to);if(O&&(Xt=p0(Xt,O,D,Qe)),z&&(Xt=m0(Xt,z,X,Qe)),$t-=Qo,Qe&&$t<xe){var wr=Is(Xt,to);return Ah(c,h,Xl,ot.placeholder,_,Xt,wr,te,se,xe-$t)}var fs=Te?_:this,au=De?fs[c]:c;return $t=Xt.length,te?Xt=Dn(Xt,te):lt&&$t>1&&Xt.reverse(),Ce&&se<$t&&(Xt.length=se),this&&this!==Er&&this instanceof ot&&(au=Nt||kf(au)),au.apply(fs,Xt)}return ot}function y0(c,h){return function(_,O){return $s(_,c,h(O),{})}}function Nf(c,h){return function(_,O){var D;if(_===n&&O===n)return h;if(_!==n&&(D=_),O!==n){if(D===n)return O;typeof _=="string"||typeof O=="string"?(_=_i(_),O=_i(O)):(_=a0(_),O=a0(O)),D=c(_,O)}return D}}function Zl(c){return ma(function(h){return h=Vn(h,qi(nt())),Tt(function(_){var O=this;return c(h,function(D){return Hi(D,O,_)})})})}function If(c,h){h=h===n?" ":_i(h);var _=h.length;if(_<2)return _?Xu(h,c):h;var O=Xu(h,vf(c/Mr(h)));return Ns(h)?Vo(ui(O),0,c).join(""):O.slice(0,c)}function b0(c,h,_,O){var D=h&T,z=kf(c);function X(){for(var te=-1,se=arguments.length,xe=-1,Ce=O.length,Te=he(Ce+se),De=this&&this!==Er&&this instanceof X?z:c;++xe<Ce;)Te[xe]=O[xe];for(;se--;)Te[xe++]=arguments[++te];return Hi(De,D?_:this,Te)}return X}function _0(c){return function(h,_,O){return O&&typeof O!="number"&&qr(h,_,O)&&(_=O=n),h=Jr(h),_===n?(_=h,h=0):_=Jr(_),O=O===n?h<_?1:-1:Jr(O),Ka(h,_,O,c)}}function nc(c){return function(h,_){return typeof h=="string"&&typeof _=="string"||(h=Ti(h),_=Ti(_)),c(h,_)}}function Ah(c,h,_,O,D,z,X,te,se,xe){var Ce=h&L,Te=Ce?X:n,De=Ce?n:X,Qe=Ce?z:n,lt=Ce?n:z;h|=Ce?M:j,h&=~(Ce?j:M),h&k||(h&=-4);var Nt=[c,h,D,Qe,Te,lt,De,te,se,xe],ot=_.apply(n,Nt);return Dh(c)&&Vg(ot,Nt),ot.placeholder=O,Ja(ot,c,h)}function kh(c){var h=ur[c];return function(_,O){if(_=Ti(_),O=O==null?0:Rn(Et(O),292),O&&jl(_)){var D=(cn(_)+"e").split("e"),z=h(D[0]+"e"+(+D[1]+O));return D=(cn(z)+"e").split("e"),+(D[0]+"e"+(+D[1]-O))}return h(_)}}var Mg=Ls&&1/rh(new Ls([,-0]))[1]==ee?function(c){return new Ls(c)}:d;function Ws(c){return function(h){var _=Zr(h);return _==et?nh(h):_==Ut?P2(h):Lu(h,c(h))}}function pa(c,h,_,O,D,z,X,te){var se=h&I;if(!se&&typeof c!="function")throw new Gi(l);var xe=O?O.length:0;if(xe||(h&=-97,O=D=n),X=X===n?X:Yn(Et(X),0),te=te===n?te:Et(te),xe-=D?D.length:0,h&j){var Ce=O,Te=D;O=D=n}var De=se?n:ir(c),Qe=[c,h,_,O,D,Ce,Te,z,X,te];if(De&&Za(Qe,De),c=Qe[0],h=Qe[1],_=Qe[2],O=Qe[3],D=Qe[4],te=Qe[9]=Qe[9]===n?se?0:c.length:Yn(Qe[9]-xe,0),!te&&h&(L|H)&&(h&=-25),!h||h==T)var lt=Ng(c,h,_);else h==L||h==H?lt=Ig(c,h,te):(h==M||h==(T|M))&&!D.length?lt=b0(c,h,_,O):lt=Xl.apply(n,Qe);var Nt=De?n0:Vg;return Ja(Nt(lt,Qe),c,h)}function S0(c,h,_,O){return c===n||Eo(c,ju[_])&&!ln.call(O,_)?h:c}function E0(c,h,_,O,D,z){return Kn(c)&&Kn(h)&&(z.set(h,c),yh(c,h,n,E0,z),z.delete(h)),c}function Nh(c){return ou(c)?n:c}function x0(c,h,_,O,D,z){var X=_&w,te=c.length,se=h.length;if(te!=se&&!(X&&se>te))return!1;var xe=z.get(c),Ce=z.get(h);if(xe&&Ce)return xe==h&&Ce==c;var Te=-1,De=!0,Qe=_&R?new Bs:n;for(z.set(c,h),z.set(h,c);++Te<te;){var lt=c[Te],Nt=h[Te];if(O)var ot=X?O(Nt,lt,Te,h,c,z):O(lt,Nt,Te,c,h,z);if(ot!==n){if(ot)continue;De=!1;break}if(Qe){if(!Am(h,function($t,Xt){if(!Pu(Qe,Xt)&&(lt===$t||D(lt,$t,_,O,z)))return Qe.push(Xt)})){De=!1;break}}else if(!(lt===Nt||D(lt,Nt,_,O,z))){De=!1;break}}return z.delete(c),z.delete(h),De}function w0(c,h,_,O,D,z,X){switch(_){case At:if(c.byteLength!=h.byteLength||c.byteOffset!=h.byteOffset)return!1;c=c.buffer,h=h.buffer;case Pe:return!(c.byteLength!=h.byteLength||!z(new Bu(c),new Bu(h)));case $e:case an:case Je:return Eo(+c,+h);case ze:return c.name==h.name&&c.message==h.message;case Gt:case Bt:return c==h+"";case et:var te=nh;case Ut:var se=O&w;if(te||(te=rh),c.size!=h.size&&!se)return!1;var xe=X.get(c);if(xe)return xe==h;O|=R,X.set(c,h);var Ce=x0(te(c),te(h),O,D,z,X);return X.delete(c),Ce;case Oe:if(la)return la.call(c)==la.call(h)}return!1}function Dg(c,h,_,O,D,z){var X=_&w,te=C0(c),se=te.length,xe=C0(h),Ce=xe.length;if(se!=Ce&&!X)return!1;for(var Te=se;Te--;){var De=te[Te];if(!(X?De in h:ln.call(h,De)))return!1}var Qe=z.get(c),lt=z.get(h);if(Qe&<)return Qe==h&<==c;var Nt=!0;z.set(c,h),z.set(h,c);for(var ot=X;++Te<se;){De=te[Te];var $t=c[De],Xt=h[De];if(O)var $o=X?O(Xt,$t,De,h,c,z):O($t,Xt,De,c,h,z);if(!($o===n?$t===Xt||D($t,Xt,_,O,z):$o)){Nt=!1;break}ot||(ot=De=="constructor")}if(Nt&&!ot){var to=c.constructor,Qo=h.constructor;to!=Qo&&"constructor"in c&&"constructor"in h&&!(typeof to=="function"&&to instanceof to&&typeof Qo=="function"&&Qo instanceof Qo)&&(Nt=!1)}return z.delete(c),z.delete(h),Nt}function ma(c){return eu(Lf(c,n,hi),c+"")}function C0(c){return hh(c,Pr,rc)}function Mf(c){return hh(c,Oi,T0)}var ir=_n?function(c){return _n.get(c)}:d;function mr(c){for(var h=c.name+"",_=Ot[h],O=ln.call(Ot,h)?_.length:0;O--;){var D=_[O],z=D.func;if(z==null||z==c)return D.name}return h}function Jl(c){var h=ln.call(U,"placeholder")?U:c;return h.placeholder}function nt(){var c=U.iteratee||Sc;return c=c===Sc?Wl:c,arguments.length?c(arguments[0],arguments[1]):c}function Df(c,h){var _=c.__data__;return M0(h)?_[typeof h=="string"?"string":"hash"]:_.map}function Ih(c){for(var h=Pr(c),_=h.length;_--;){var O=h[_],D=c[O];h[_]=[O,D,Lh(D)]}return h}function zo(c,h){var _=fg(c,h);return $l(_)?_:n}function Lg(c){var h=ln.call(c,ci),_=c[ci];try{c[ci]=n;var O=!0}catch{}var D=Ml.call(c);return O&&(h?c[ci]=_:delete c[ci]),D}var rc=sh?function(c){return c==null?[]:(c=bn(c),As(sh(c),function(h){return Ll.call(c,h)}))}:fe,T0=sh?function(c){for(var h=[];c;)ks(h,rc(c)),c=hf(c);return h}:fe,Zr=Hr;(jo&&Zr(new jo(new ArrayBuffer(1)))!=At||zu&&Zr(new zu)!=et||gf&&Zr(gf.resolve())!=Ye||Ls&&Zr(new Ls)!=Ut||qu&&Zr(new qu)!=we)&&(Zr=function(c){var h=Hr(c),_=h==Ze?c.constructor:n,O=_?Ys(_):"";if(O)switch(O){case Ps:return At;case _o:return et;case Vm:return Ye;case Fs:return Ut;case gg:return we}return h});function Mh(c,h,_){for(var O=-1,D=_.length;++O<D;){var z=_[O],X=z.size;switch(z.type){case"drop":c+=X;break;case"dropRight":h-=X;break;case"take":h=Rn(h,c+X);break;case"takeRight":c=Yn(c,h-X);break}}return{start:c,end:h}}function R0(c){var h=c.match(na);return h?h[1].split(Bi):[]}function O0(c,h,_){h=Xa(h,c);for(var O=-1,D=h.length,z=!1;++O<D;){var X=vr(h[O]);if(!(z=c!=null&&_(c,X)))break;c=c[X]}return z||++O!=D?z:(D=c==null?0:c.length,!!D&&Wf(D)&&va(X,D)&&(mt(c)||ls(c)))}function Pg(c){var h=c.length,_=new c.constructor(h);return h&&typeof c[0]=="string"&&ln.call(c,"index")&&(_.index=c.index,_.input=c.input),_}function A0(c){return typeof c.constructor=="function"&&!Ki(c)?ua(hf(c)):{}}function k0(c,h,_){var O=c.constructor;switch(h){case Pe:return c0(c);case $e:case an:return new O(+c);case At:return Rg(c,_);case mn:case kt:case yt:case at:case Wt:case kn:case Qn:case jr:case Ar:return f0(c,_);case et:return new O;case Je:case Bt:return new O(c);case Gt:return Og(c);case Ut:return new O;case Oe:return Ag(c)}}function N0(c,h){var _=h.length;if(!_)return c;var O=_-1;return h[O]=(_>1?"& ":"")+h[O],h=h.join(_>2?", ":" "),c.replace(ko,`{ 80/* [wrapped with `+h+`] */ 81`)}function I0(c){return mt(c)||ls(c)||!!(bi&&c&&c[bi])}function va(c,h){var _=typeof c;return h=h??ge,!!h&&(_=="number"||_!="symbol"&&ws.test(c))&&c>-1&&c%1==0&&c<h}function qr(c,h,_){if(!Kn(_))return!1;var O=typeof h;return(O=="number"?Ci(_)&&va(h,_.length):O=="string"&&h in _)?Eo(_[h],c):!1}function ic(c,h){if(mt(c))return!1;var _=typeof c;return _=="number"||_=="symbol"||_=="boolean"||c==null||pi(c)?!0:wl.test(c)||!Un.test(c)||h!=null&&c in bn(h)}function M0(c){var h=typeof c;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?c!=="__proto__":c===null}function Dh(c){var h=mr(c),_=U[h];if(typeof _!="function"||!(h in bt.prototype))return!1;if(c===_)return!0;var O=ir(_);return!!O&&c===O[0]}function D0(c){return!!vo&&vo in c}var Fg=ih?xo:pe;function Ki(c){var h=c&&c.constructor,_=typeof h=="function"&&h.prototype||ju;return c===_}function Lh(c){return c===c&&!Kn(c)}function jg(c,h){return function(_){return _==null?!1:_[c]===h&&(h!==n||c in bn(_))}}function Ug(c){var h=Gh(c,function(O){return _.size===v&&_.clear(),O}),_=h.cache;return h}function Za(c,h){var _=c[1],O=h[1],D=_|O,z=D<(T|I|K),X=O==K&&_==L||O==K&&_==P&&c[7].length<=h[8]||O==(K|P)&&h[7].length<=h[8]&&_==L;if(!(z||X))return c;O&T&&(c[2]=h[2],D|=_&T?0:k);var te=h[3];if(te){var se=c[3];c[3]=se?p0(se,te,h[4]):te,c[4]=se?Is(c[3],g):h[4]}return te=h[5],te&&(se=c[5],c[5]=se?m0(se,te,h[6]):te,c[6]=se?Is(c[5],g):h[6]),te=h[7],te&&(c[7]=te),O&K&&(c[8]=c[8]==null?h[8]:Rn(c[8],h[8])),c[9]==null&&(c[9]=h[9]),c[0]=h[0],c[1]=D,c}function L0(c){var h=[];if(c!=null)for(var _ in bn(c))h.push(_);return h}function Bg(c){return Ml.call(c)}function Lf(c,h,_){return h=Yn(h===n?c.length-1:h,0),function(){for(var O=arguments,D=-1,z=Yn(O.length-h,0),X=he(z);++D<z;)X[D]=O[h+D];D=-1;for(var te=he(h+1);++D<h;)te[D]=O[D];return te[h]=_(X),Hi(c,this,te)}}function oc(c,h){return h.length<2?c:qs(c,Yi(h,0,-1))}function Dn(c,h){for(var _=c.length,O=Rn(h.length,_),D=Xr(c);O--;){var z=h[O];c[O]=va(z,_)?D[z]:n}return c}function P0(c,h){if(!(h==="constructor"&&typeof c[h]=="function")&&h!="__proto__")return c[h]}var Vg=F0(n0),ac=Bm||function(c,h){return Er.setTimeout(c,h)},eu=F0(wg);function Ja(c,h,_){var O=h+"";return eu(c,N0(O,j0(R0(O),_)))}function F0(c){var h=0,_=0;return function(){var O=bo(),D=G-(O-_);if(_=O,D>0){if(++h>=W)return arguments[0]}else h=0;return c.apply(n,arguments)}}function Pf(c,h){var _=-1,O=c.length,D=O-1;for(h=h===n?O:h;++_<h;){var z=Rf(_,D),X=c[z];c[z]=c[_],c[_]=X}return c.length=h,c}var sc=Ug(function(c){var h=[];return c.charCodeAt(0)===46&&h.push(""),c.replace(Bn,function(_,O,D,z){h.push(D?z.replace(kr,"$1"):O||_)}),h});function vr(c){if(typeof c=="string"||pi(c))return c;var h=c+"";return h=="0"&&1/c==-ee?"-0":h}function Ys(c){if(c!=null){try{return df.call(c)}catch{}try{return c+""}catch{}}return""}function j0(c,h){return zi(ke,function(_){var O="_."+_[0];h&_[1]&&!Iu(c,O)&&c.push(O)}),c.sort()}function U0(c){if(c instanceof bt)return c.clone();var h=new Dr(c.__wrapped__,c.__chain__);return h.__actions__=Xr(c.__actions__),h.__index__=c.__index__,h.__values__=c.__values__,h}function B0(c,h,_){(_?qr(c,h,_):h===n)?h=1:h=Yn(Et(h),0);var O=c==null?0:c.length;if(!O||h<1)return[];for(var D=0,z=0,X=he(vf(O/h));D<O;)X[z++]=Yi(c,D,D+=h);return X}function V0(c){for(var h=-1,_=c==null?0:c.length,O=0,D=[];++h<_;){var z=c[h];z&&(D[O++]=z)}return D}function Ph(){var c=arguments.length;if(!c)return[];for(var h=he(c-1),_=arguments[0],O=c;O--;)h[O-1]=arguments[O];return ks(mt(_)?Xr(_):[_],fr(h,1))}var Hg=Tt(function(c,h){return Pn(c)?zl(c,fr(h,1,Pn,!0)):[]}),es=Tt(function(c,h){var _=Xi(h);return Pn(_)&&(_=n),Pn(c)?zl(c,fr(h,1,Pn,!0),nt(_,2)):[]}),gr=Tt(function(c,h){var _=Xi(h);return Pn(_)&&(_=n),Pn(c)?zl(c,fr(h,1,Pn,!0),n,_):[]});function H0(c,h,_){var O=c==null?0:c.length;return O?(h=_||h===n?1:Et(h),Yi(c,h<0?0:h,O)):[]}function zg(c,h,_){var O=c==null?0:c.length;return O?(h=_||h===n?1:Et(h),h=O-h,Yi(c,0,h<0?0:h)):[]}function Lr(c,h){return c&&c.length?Af(c,nt(h,3),!0,!0):[]}function Q2(c,h){return c&&c.length?Af(c,nt(h,3),!0):[]}function qg(c,h,_,O){var D=c==null?0:c.length;return D?(_&&typeof _!="number"&&qr(c,h,_)&&(_=0,O=D),Wm(c,h,_,O)):[]}function z0(c,h,_){var O=c==null?0:c.length;if(!O)return-1;var D=_==null?0:Et(_);return D<0&&(D=Yn(O+D,0)),Kd(c,nt(h,3),D)}function Ln(c,h,_){var O=c==null?0:c.length;if(!O)return-1;var D=O-1;return _!==n&&(D=Et(_),D=_<0?Yn(O+D,0):Rn(D,O-1)),Kd(c,nt(h,3),D,!0)}function hi(c){var h=c==null?0:c.length;return h?fr(c,1):[]}function ts(c){var h=c==null?0:c.length;return h?fr(c,ee):[]}function Gg(c,h){var _=c==null?0:c.length;return _?(h=h===n?1:Et(h),fr(c,h)):[]}function $g(c){for(var h=-1,_=c==null?0:c.length,O={};++h<_;){var D=c[h];Qi(O,D[0],D[1])}return O}function q0(c){return c&&c.length?c[0]:n}function W2(c,h,_){var O=c==null?0:c.length;if(!O)return-1;var D=_==null?0:Et(_);return D<0&&(D=Yn(O+D,0)),Mu(c,h,D)}function Fh(c){var h=c==null?0:c.length;return h?Yi(c,0,-1):[]}var Si=Tt(function(c){var h=Vn(c,wh);return h.length&&h[0]===c[0]?ph(h):[]}),qo=Tt(function(c){var h=Xi(c),_=Vn(c,wh);return h===Xi(_)?h=n:_.pop(),_.length&&_[0]===c[0]?ph(_,nt(h,2)):[]}),Qg=Tt(function(c){var h=Xi(c),_=Vn(c,wh);return h=typeof h=="function"?h:n,h&&_.pop(),_.length&&_[0]===c[0]?ph(_,n,h):[]});function Ei(c,h){return c==null?"":Hu.call(c,h)}function Xi(c){var h=c==null?0:c.length;return h?c[h-1]:n}function ns(c,h,_){var O=c==null?0:c.length;if(!O)return-1;var D=O;return _!==n&&(D=Et(_),D=D<0?Yn(O+D,0):Rn(D,O-1)),h===h?j2(c,h,D):Kd(c,Xd,D,!0)}function tu(c,h){return c&&c.length?bh(c,Et(h)):n}var rs=Tt(jh);function jh(c,h){return c&&c.length&&h&&h.length?Yl(c,h):c}function G0(c,h,_){return c&&c.length&&h&&h.length?Yl(c,h,nt(_,2)):c}function Go(c,h,_){return c&&c.length&&h&&h.length?Yl(c,h,n,_):c}var Wg=ma(function(c,h){var _=c==null?0:c.length,O=Vl(c,h);return Tf(c,Vn(h,function(D){return va(D,_)?+D:D}).sort(d0)),O});function lc(c,h){var _=[];if(!(c&&c.length))return _;var O=-1,D=[],z=c.length;for(h=nt(h,3);++O<z;){var X=c[O];h(X,O,c)&&(_.push(X),D.push(O))}return Tf(c,D),_}function nu(c){return c==null?c:sa.call(c)}function Ff(c,h,_){var O=c==null?0:c.length;return O?(_&&typeof _!="number"&&qr(c,h,_)?(h=0,_=O):(h=h==null?0:Et(h),_=_===n?O:Et(_)),Yi(c,h,_)):[]}function uc(c,h){return Of(c,h)}function Yg(c,h,_){return i0(c,h,nt(_,2))}function Kg(c,h){var _=c==null?0:c.length;if(_){var O=Of(c,h);if(O<_&&Eo(c[O],h))return O}return-1}function jf(c,h){return Of(c,h,!0)}function Xg(c,h,_){return i0(c,h,nt(_,2),!0)}function Uh(c,h){var _=c==null?0:c.length;if(_){var O=Of(c,h,!0)-1;if(Eo(c[O],h))return O}return-1}function Zg(c){return c&&c.length?o0(c):[]}function Y2(c,h){return c&&c.length?o0(c,nt(h,2)):[]}function K2(c){var h=c==null?0:c.length;return h?Yi(c,1,h):[]}function un(c,h,_){return c&&c.length?(h=_||h===n?1:Et(h),Yi(c,0,h<0?0:h)):[]}function On(c,h,_){var O=c==null?0:c.length;return O?(h=_||h===n?1:Et(h),h=O-h,Yi(c,h<0?0:h,O)):[]}function Dt(c,h){return c&&c.length?Af(c,nt(h,3),!1,!0):[]}function zt(c,h){return c&&c.length?Af(c,nt(h,3)):[]}var gn=Tt(function(c){return ha(fr(c,1,Pn,!0))}),Zi=Tt(function(c){var h=Xi(c);return Pn(h)&&(h=n),ha(fr(c,1,Pn,!0),nt(h,2))}),Ks=Tt(function(c){var h=Xi(c);return h=typeof h=="function"?h:n,ha(fr(c,1,Pn,!0),n,h)});function cc(c){return c&&c.length?ha(c):[]}function $0(c,h){return c&&c.length?ha(c,nt(h,2)):[]}function is(c,h){return h=typeof h=="function"?h:n,c&&c.length?ha(c,n,h):[]}function Hn(c){if(!(c&&c.length))return[];var h=0;return c=As(c,function(_){if(Pn(_))return h=Yn(_.length,h),!0}),eh(h,function(_){return Vn(c,km(_))})}function os(c,h){if(!(c&&c.length))return[];var _=Hn(c);return h==null?_:Vn(_,function(O){return Hi(h,n,O)})}var ru=Tt(function(c,h){return Pn(c)?zl(c,h):[]}),Q0=Tt(function(c){return xh(As(c,Pn))}),Ji=Tt(function(c){var h=Xi(c);return Pn(h)&&(h=n),xh(As(c,Pn),nt(h,2))}),fc=Tt(function(c){var h=Xi(c);return h=typeof h=="function"?h:n,xh(As(c,Pn),n,h)}),Uf=Tt(Hn);function xi(c,h){return Tg(c||[],h||[],Uo)}function W0(c,h){return Tg(c||[],h||[],Zu)}var Bh=Tt(function(c){var h=c.length,_=h>1?c[h-1]:n;return _=typeof _=="function"?(c.pop(),_):n,os(c,_)});function Y0(c){var h=U(c);return h.__chain__=!0,h}function Vh(c,h){return h(c),c}function iu(c,h){return h(c)}var Xs=ma(function(c){var h=c.length,_=h?c[0]:0,O=this.__wrapped__,D=function(z){return Vl(z,c)};return h>1||this.__actions__.length||!(O instanceof bt)||!va(_)?this.thru(D):(O=O.slice(_,+_+(h?1:0)),O.__actions__.push({func:iu,args:[D],thisArg:n}),new Dr(O,this.__chain__).thru(function(z){return h&&!z.length&&z.push(n),z}))});function xr(){return Y0(this)}function Zs(){return new Dr(this.value(),this.__chain__)}function dc(){this.__values__===n&&(this.__values__=xy(this.value()));var c=this.__index__>=this.__values__.length,h=c?n:this.__values__[this.__index__++];return{done:c,value:h}}function as(){return this}function K0(c){for(var h,_=this;_ instanceof Gu;){var O=U0(_);O.__index__=0,O.__values__=n,h?D.__wrapped__=O:h=O;var D=O;_=_.__wrapped__}return D.__wrapped__=c,h}function X0(){var c=this.__wrapped__;if(c instanceof bt){var h=c;return this.__actions__.length&&(h=new bt(this)),h=h.reverse(),h.__actions__.push({func:iu,args:[nu],thisArg:n}),new Dr(h,this.__chain__)}return this.thru(nu)}function Jg(){return l0(this.__wrapped__,this.__actions__)}var Bf=Ju(function(c,h,_){ln.call(c,_)?++c[_]:Qi(c,_,1)});function Z0(c,h,_){var O=mt(c)?ag:Vs;return _&&qr(c,h,_)&&(h=n),O(c,nt(h,3))}function eo(c,h){var _=mt(c)?As:dh;return _(c,nt(h,3))}var ey=tc(z0),wi=tc(Ln);function ty(c,h){return fr(Hf(c,h),1)}function ny(c,h){return fr(Hf(c,h),ee)}function X2(c,h,_){return _=_===n?1:Et(_),fr(Hf(c,h),_)}function ss(c,h){var _=mt(c)?zi:da;return _(c,nt(h,3))}function Vf(c,h){var _=mt(c)?A2:Wa;return _(c,nt(h,3))}var J0=Ju(function(c,h,_){ln.call(c,_)?c[_].push(h):Qi(c,_,[h])});function hc(c,h,_,O){c=Ci(c)?c:nl(c),_=_&&!O?Et(_):0;var D=c.length;return _<0&&(_=Yn(D+_,0)),Kf(c)?_<=D&&c.indexOf(h,_)>-1:!!D&&Mu(c,h,_)>-1}var ry=Tt(function(c,h,_){var O=-1,D=typeof h=="function",z=Ci(c)?he(c.length):[];return da(c,function(X){z[++O]=D?Hi(h,X,_):zr(X,h,_)}),z}),iy=Ju(function(c,h,_){Qi(c,_,h)});function Hf(c,h){var _=mt(c)?Vn:gh;return _(c,nt(h,3))}function oy(c,h,_,O){return c==null?[]:(mt(h)||(h=h==null?[]:[h]),_=O?n:_,mt(_)||(_=_==null?[]:[_]),_h(c,h,_))}var Hh=Ju(function(c,h,_){c[_?0:1].push(h)},function(){return[[],[]]});function ev(c,h,_){var O=mt(c)?Yd:Nm,D=arguments.length<3;return O(c,nt(h,4),_,D,da)}function Z2(c,h,_){var O=mt(c)?k2:Nm,D=arguments.length<3;return O(c,nt(h,4),_,D,Wa)}function J2(c,h){var _=mt(c)?As:dh;return _(c,$h(nt(h,3)))}function eS(c){var h=mt(c)?Sf:t0;return h(c)}function ay(c,h,_){(_?qr(c,h,_):h===n)?h=1:h=Et(h);var O=mt(c)?_g:xg;return O(c,h)}function sy(c){var h=mt(c)?Sg:Cg;return h(c)}function pc(c){if(c==null)return 0;if(Ci(c))return Kf(c)?Mr(c):c.length;var h=Zr(c);return h==et||h==Ut?c.size:Xm(c).length}function zh(c,h,_){var O=mt(c)?Am:r0;return _&&qr(c,h,_)&&(h=n),O(c,nt(h,3))}var ly=Tt(function(c,h){if(c==null)return[];var _=h.length;return _>1&&qr(c,h[0],h[1])?h=[]:_>2&&qr(h[0],h[1],h[2])&&(h=[h[0]]),_h(c,fr(h,1),[])}),zf=Fl||function(){return Er.Date.now()};function uy(c,h){if(typeof h!="function")throw new Gi(l);return c=Et(c),function(){if(--c<1)return h.apply(this,arguments)}}function tv(c,h,_){return h=_?n:h,h=c&&h==null?c.length:h,pa(c,K,n,n,n,n,h)}function nv(c,h){var _;if(typeof h!="function")throw new Gi(l);return c=Et(c),function(){return--c>0&&(_=h.apply(this,arguments)),c<=1&&(h=n),_}}var qh=Tt(function(c,h,_){var O=T;if(_.length){var D=Is(_,Jl(qh));O|=M}return pa(c,O,h,_,D)}),qf=Tt(function(c,h,_){var O=T|I;if(_.length){var D=Is(_,Jl(qf));O|=M}return pa(h,O,c,_,D)});function rv(c,h,_){h=_?n:h;var O=pa(c,L,n,n,n,n,n,h);return O.placeholder=rv.placeholder,O}function iv(c,h,_){h=_?n:h;var O=pa(c,H,n,n,n,n,n,h);return O.placeholder=iv.placeholder,O}function pn(c,h,_){var O,D,z,X,te,se,xe=0,Ce=!1,Te=!1,De=!0;if(typeof c!="function")throw new Gi(l);h=Ti(h)||0,Kn(_)&&(Ce=!!_.leading,Te="maxWait"in _,z=Te?Yn(Ti(_.maxWait)||0,h):z,De="trailing"in _?!!_.trailing:De);function Qe(wr){var fs=O,au=D;return O=D=n,xe=wr,X=c.apply(au,fs),X}function lt(wr){return xe=wr,te=ac($t,h),Ce?Qe(wr):X}function Nt(wr){var fs=wr-se,au=wr-xe,Gw=h-fs;return Te?Rn(Gw,z-au):Gw}function ot(wr){var fs=wr-se,au=wr-xe;return se===n||fs>=h||fs<0||Te&&au>=z}function $t(){var wr=zf();if(ot(wr))return Xt(wr);te=ac($t,Nt(wr))}function Xt(wr){return te=n,De&&O?Qe(wr):(O=D=n,X)}function $o(){te!==n&&u0(te),xe=0,O=se=D=te=n}function to(){return te===n?X:Xt(zf())}function Qo(){var wr=zf(),fs=ot(wr);if(O=arguments,D=this,se=wr,fs){if(te===n)return lt(se);if(Te)return u0(te),te=ac($t,h),Qe(se)}return te===n&&(te=ac($t,h)),X}return Qo.cancel=$o,Qo.flush=to,Qo}var ov=Tt(function(c,h){return Qa(c,1,h)}),tS=Tt(function(c,h,_){return Qa(c,Ti(h)||0,_)});function cy(c){return pa(c,q)}function Gh(c,h){if(typeof c!="function"||h!=null&&typeof h!="function")throw new Gi(l);var _=function(){var O=arguments,D=h?h.apply(this,O):O[0],z=_.cache;if(z.has(D))return z.get(D);var X=c.apply(this,O);return _.cache=z.set(D,X)||z,X};return _.cache=new(Gh.Cache||$i),_}Gh.Cache=$i;function $h(c){if(typeof c!="function")throw new Gi(l);return function(){var h=arguments;switch(h.length){case 0:return!c.call(this);case 1:return!c.call(this,h[0]);case 2:return!c.call(this,h[0],h[1]);case 3:return!c.call(this,h[0],h[1],h[2])}return!c.apply(this,h)}}function nS(c){return nv(2,c)}var Qh=Ch(function(c,h){h=h.length==1&&mt(h[0])?Vn(h[0],qi(nt())):Vn(fr(h,1),qi(nt()));var _=h.length;return Tt(function(O){for(var D=-1,z=Rn(O.length,_);++D<z;)O[D]=h[D].call(this,O[D]);return Hi(c,this,O)})}),Js=Tt(function(c,h){var _=Is(h,Jl(Js));return pa(c,M,n,h,_)}),Wh=Tt(function(c,h){var _=Is(h,Jl(Wh));return pa(c,j,n,h,_)}),Yh=ma(function(c,h){return pa(c,P,n,n,n,h)});function av(c,h){if(typeof c!="function")throw new Gi(l);return h=h===n?h:Et(h),Tt(c,h)}function el(c,h){if(typeof c!="function")throw new Gi(l);return h=h==null?0:Yn(Et(h),0),Tt(function(_){var O=_[h],D=Vo(_,0,h);return O&&ks(D,O),Hi(c,this,D)})}function ga(c,h,_){var O=!0,D=!0;if(typeof c!="function")throw new Gi(l);return Kn(_)&&(O="leading"in _?!!_.leading:O,D="trailing"in _?!!_.trailing:D),pn(c,h,{leading:O,maxWait:h,trailing:D})}function Gf(c){return tv(c,1)}function rS(c,h){return Js(Qs(h),c)}function fy(){if(!arguments.length)return[];var c=arguments[0];return mt(c)?c:[c]}function dy(c){return Wi(c,x)}function hy(c,h){return h=typeof h=="function"?h:n,Wi(c,x,h)}function py(c){return Wi(c,y|x)}function iS(c,h){return h=typeof h=="function"?h:n,Wi(c,y|x,h)}function sv(c,h){return h==null||Qm(c,h,Pr(h))}function Eo(c,h){return c===h||c!==c&&h!==h}var my=nc(fi),oS=nc(function(c,h){return c>=h}),ls=tr((function(){return arguments})())?tr:function(c){return or(c)&&ln.call(c,"callee")&&!Ll.call(c,"callee")},mt=he.isArray,aS=eg?qi(eg):mh;function Ci(c){return c!=null&&Wf(c.length)&&!xo(c)}function Pn(c){return or(c)&&Ci(c)}function sS(c){return c===!0||c===!1||or(c)&&Hr(c)==$e}var us=yo||pe,Lt=Wd?qi(Wd):Ya;function lv(c){return or(c)&&c.nodeType===1&&!ou(c)}function Kh(c){if(c==null)return!0;if(Ci(c)&&(mt(c)||typeof c=="string"||typeof c.splice=="function"||us(c)||tl(c)||ls(c)))return!c.length;var h=Zr(c);if(h==et||h==Ut)return!c.size;if(Ki(c))return!Xm(c).length;for(var _ in c)if(ln.call(c,_))return!1;return!0}function uv(c,h){return ft(c,h)}function vy(c,h,_){_=typeof _=="function"?_:n;var O=_?_(c,h):n;return O===n?ft(c,h,n,_):!!O}function $f(c){if(!or(c))return!1;var h=Hr(c);return h==ze||h==dr||typeof c.message=="string"&&typeof c.name=="string"&&!ou(c)}function Qf(c){return typeof c=="number"&&jl(c)}function xo(c){if(!Kn(c))return!1;var h=Hr(c);return h==ct||h==_t||h==Le||h==Mt}function gy(c){return typeof c=="number"&&c==Et(c)}function Wf(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=ge}function Kn(c){var h=typeof c;return c!=null&&(h=="object"||h=="function")}function or(c){return c!=null&&typeof c=="object"}var cv=tg?qi(tg):pr;function yy(c,h){return c===h||Ku(c,h,Ih(h))}function En(c,h,_){return _=typeof _=="function"?_:n,Ku(c,h,Ih(h),_)}function fv(c){return _y(c)&&c!=+c}function Gr(c){if(Fg(c))throw new rt(s);return $l(c)}function lS(c){return c===null}function by(c){return c==null}function _y(c){return typeof c=="number"||or(c)&&Hr(c)==Je}function ou(c){if(!or(c)||Hr(c)!=Ze)return!1;var h=hf(c);if(h===null)return!0;var _=ln.call(h,"constructor")&&h.constructor;return typeof _=="function"&&_ instanceof _&&df.call(_)==go}var Yf=ng?qi(ng):Ql;function Xh(c){return gy(c)&&c>=-ge&&c<=ge}var dv=rg?qi(rg):vh;function Kf(c){return typeof c=="string"||!mt(c)&&or(c)&&Hr(c)==Bt}function pi(c){return typeof c=="symbol"||or(c)&&Hr(c)==Oe}var tl=ig?qi(ig):wf;function uS(c){return c===n}function Sy(c){return or(c)&&Zr(c)==we}function cS(c){return or(c)&&Hr(c)==Re}var Ey=nc(Cf),fS=nc(function(c,h){return c<=h});function xy(c){if(!c)return[];if(Ci(c))return Kf(c)?ui(c):Xr(c);if(Pl&&c[Pl])return dg(c[Pl]());var h=Zr(c),_=h==et?nh:h==Ut?rh:nl;return _(c)}function Jr(c){if(!c)return c===0?c:0;if(c=Ti(c),c===ee||c===-ee){var h=c<0?-1:1;return h*ve}return c===c?c:0}function Et(c){var h=Jr(c),_=h%1;return h===h?_?h-_:h:0}function hv(c){return c?fa(Et(c),0,oe):0}function Ti(c){if(typeof c=="number")return c;if(pi(c))return Y;if(Kn(c)){var h=typeof c.valueOf=="function"?c.valueOf():c;c=Kn(h)?h+"":h}if(typeof c!="string")return c===0?c:+c;c=ug(c);var _=Ou.test(c);return _||xs.test(c)?uf(c.slice(2),_?2:8):wm.test(c)?Y:+c}function wy(c){return Ho(c,Oi(c))}function dS(c){return c?fa(Et(c),-ge,ge):c===0?c:0}function cn(c){return c==null?"":_i(c)}var pv=Kl(function(c,h){if(Ki(h)||Ci(h)){Ho(h,Pr(h),c);return}for(var _ in h)ln.call(h,_)&&Uo(c,_,h[_])}),Zh=Kl(function(c,h){Ho(h,Oi(h),c)}),Cy=Kl(function(c,h,_,O){Ho(h,Oi(h),c,O)}),Ri=Kl(function(c,h,_,O){Ho(h,Pr(h),c,O)}),mv=ma(Vl);function Ty(c,h){var _=ua(c);return h==null?_:Bl(_,h)}var Ry=Tt(function(c,h){c=bn(c);var _=-1,O=h.length,D=O>2?h[2]:n;for(D&&qr(h[0],h[1],D)&&(O=1);++_<O;)for(var z=h[_],X=Oi(z),te=-1,se=X.length;++te<se;){var xe=X[te],Ce=c[xe];(Ce===n||Eo(Ce,ju[xe])&&!ln.call(c,xe))&&(c[xe]=z[xe])}return c}),Oy=Tt(function(c){return c.push(n,E0),Hi(gv,n,c)});function Xf(c,h){return sg(c,nt(h,3),Bo)}function wo(c,h){return sg(c,nt(h,3),zs)}function Ay(c,h){return c==null?c:ql(c,nt(h,3),Oi)}function Jh(c,h){return c==null?c:Ym(c,nt(h,3),Oi)}function cs(c,h){return c&&Bo(c,nt(h,3))}function hS(c,h){return c&&zs(c,nt(h,3))}function pS(c){return c==null?[]:Gl(c,Pr(c))}function mc(c){return c==null?[]:Gl(c,Oi(c))}function ep(c,h,_){var O=c==null?n:qs(c,h);return O===n?_:O}function mS(c,h){return c!=null&&O0(c,h,So)}function vv(c,h){return c!=null&&O0(c,h,Gs)}var vS=y0(function(c,h,_){h!=null&&typeof h.toString!="function"&&(h=Ml.call(h)),c[h]=_},bc(ei)),gS=y0(function(c,h,_){h!=null&&typeof h.toString!="function"&&(h=Ml.call(h)),ln.call(c,h)?c[h].push(_):c[h]=[_]},nt),yS=Tt(zr);function Pr(c){return Ci(c)?_f(c):Xm(c)}function Oi(c){return Ci(c)?_f(c,!0):nr(c)}function ky(c,h){var _={};return h=nt(h,3),Bo(c,function(O,D,z){Qi(_,h(O,D,z),O)}),_}function vc(c,h){var _={};return h=nt(h,3),Bo(c,function(O,D,z){Qi(_,D,h(O,D,z))}),_}var Zf=Kl(function(c,h,_){yh(c,h,_)}),gv=Kl(function(c,h,_,O){yh(c,h,_,O)}),bS=ma(function(c,h){var _={};if(c==null)return _;var O=!1;h=Vn(h,function(z){return z=Xa(z,c),O||(O=z.length>1),z}),Ho(c,Mf(c),_),O&&(_=Wi(_,y|S|x,Nh));for(var D=h.length;D--;)Eh(_,h[D]);return _});function gc(c,h){return yv(c,$h(nt(h)))}var Jf=ma(function(c,h){return c==null?{}:di(c,h)});function yv(c,h){if(c==null)return{};var _=Vn(Mf(c),function(O){return[O]});return h=nt(h),rr(c,_,function(O,D){return h(O,D[0])})}function tp(c,h,_){h=Xa(h,c);var O=-1,D=h.length;for(D||(D=1,c=n);++O<D;){var z=c==null?n:c[vr(h[O])];z===n&&(O=D,z=_),c=xo(z)?z.call(c):z}return c}function bv(c,h,_){return c==null?c:Zu(c,h,_)}function _v(c,h,_,O){return O=typeof O=="function"?O:n,c==null?c:Zu(c,h,_,O)}var ed=Ws(Pr),Sv=Ws(Oi);function Ny(c,h,_){var O=mt(c),D=O||us(c)||tl(c);if(h=nt(h,4),_==null){var z=c&&c.constructor;D?_=O?new z:[]:Kn(c)?_=xo(z)?ua(hf(c)):{}:_={}}return(D?zi:Bo)(c,function(X,te,se){return h(_,X,te,se)}),_}function _S(c,h){return c==null?!0:Eh(c,h)}function Iy(c,h,_){return c==null?c:s0(c,h,Qs(_))}function SS(c,h,_,O){return O=typeof O=="function"?O:n,c==null?c:s0(c,h,Qs(_),O)}function nl(c){return c==null?[]:Im(c,Pr(c))}function ES(c){return c==null?[]:Im(c,Oi(c))}function np(c,h,_){return _===n&&(_=h,h=n),_!==n&&(_=Ti(_),_=_===_?_:0),h!==n&&(h=Ti(h),h=h===h?h:0),fa(Ti(c),h,_)}function rp(c,h,_){return h=Jr(h),_===n?(_=h,h=0):_=Jr(_),c=Ti(c),Km(c,h,_)}function ip(c,h,_){if(_&&typeof _!="boolean"&&qr(c,h,_)&&(h=_=n),_===n&&(typeof h=="boolean"?(_=h,h=n):typeof c=="boolean"&&(_=c,c=n)),c===n&&h===n?(c=0,h=1):(c=Jr(c),h===n?(h=c,c=0):h=Jr(h)),c>h){var O=c;c=h,h=O}if(_||c%1||h%1){var D=Fo();return Rn(c+D*(h-c+Qd("1e-"+((D+"").length-1))),h)}return Rf(c,h)}var xS=ec(function(c,h,_){return h=h.toLowerCase(),c+(_?yc(h):h)});function yc(c){return Rv(cn(c).toLowerCase())}function My(c){return c=cn(c),c&&c.replace(No,L2).replace(Yt,"")}function Dy(c,h,_){c=cn(c),h=_i(h);var O=c.length;_=_===n?O:fa(Et(_),0,O);var D=_;return _-=h.length,_>=0&&c.slice(_,D)==h}function Ly(c){return c=cn(c),c&&tt.test(c)?c.replace(Jn,th):c}function Py(c){return c=cn(c),c&&ai.test(c)?c.replace(ta,"\\$&"):c}var Fy=ec(function(c,h,_){return c+(_?"-":"")+h.toLowerCase()}),Ev=ec(function(c,h,_){return c+(_?" ":"")+h.toLowerCase()}),jy=g0("toLowerCase");function Uy(c,h,_){c=cn(c),h=Et(h);var O=h?Mr(c):0;if(!h||O>=h)return c;var D=(h-O)/2;return If(Vu(D),_)+c+If(vf(D),_)}function op(c,h,_){c=cn(c),h=Et(h);var O=h?Mr(c):0;return h&&O<h?c+If(h-O,_):c}function wS(c,h,_){c=cn(c),h=Et(h);var O=h?Mr(c):0;return h&&O<h?If(h-O,_)+c:c}function CS(c,h,_){return _||h==null?h=0:h&&(h=+h),Ds(cn(c).replace(er,""),h||0)}function xv(c,h,_){return(_?qr(c,h,_):h===n)?h=1:h=Et(h),Xu(cn(c),h)}function wv(){var c=arguments,h=cn(c[0]);return c.length<3?h:h.replace(c[1],c[2])}var ap=ec(function(c,h,_){return c+(_?"_":"")+h.toLowerCase()});function Cv(c,h,_){return _&&typeof _!="number"&&qr(c,h,_)&&(h=_=n),_=_===n?oe:_>>>0,_?(c=cn(c),c&&(typeof h=="string"||h!=null&&!Yf(h))&&(h=_i(h),!h&&Ns(c))?Vo(ui(c),0,_):c.split(h,_)):[]}var By=ec(function(c,h,_){return c+(_?" ":"")+Rv(h)});function Tv(c,h,_){return c=cn(c),_=_==null?0:fa(Et(_),0,c.length),h=_i(h),c.slice(_,_+h.length)==h}function rl(c,h,_){var O=U.templateSettings;_&&qr(c,h,_)&&(h=n),c=cn(c),h=Ri({},h,O,S0);var D=Ri({},h.imports,O.imports,S0),z=Pr(D),X=Im(D,z);zi(z,function(ot){if(lr.test(ot))throw new rt(m)});var te,se,xe=0,Ce=h.interpolate||Io,Te="__p += '",De=za((h.escape||Io).source+"|"+Ce.source+"|"+(Ce===Ao?Ct:Io).source+"|"+(h.evaluate||Io).source+"|$","g"),Qe="//# sourceURL="+(ln.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Nu+"]")+` 82`;c.replace(De,function(ot,$t,Xt,$o,to,Qo){return Xt||(Xt=$o),Te+=c.slice(xe,Qo).replace(co,cg),$t&&(te=!0,Te+=`' + 83__e(`+$t+`) + 84'`),to&&(se=!0,Te+=`'; 85`+to+`; 86__p += '`),Xt&&(Te+=`' + 87((__t = (`+Xt+`)) == null ? '' : __t) + 88'`),xe=Qo+ot.length,ot}),Te+=`'; 89`;var lt=ln.call(h,"variable")&&h.variable;if(!lt)Te=`with (obj) { 90`+Te+` 91} 92`;else if(lr.test(lt))throw new rt(f);Te=(se?Te.replace(pt,""):Te).replace(en,"$1").replace(jn,"$1;"),Te="function("+(lt||"obj")+`) { 93`+(lt?"":`obj || (obj = {}); 94`)+"var __t, __p = ''"+(te?", __e = _.escape":"")+(se?`, __j = Array.prototype.join; 95function print() { __p += __j.call(arguments, '') } 96`:`; 97`)+Te+`return __p 98}`;var Nt=id(function(){return Ht(z,Qe+"return "+Te).apply(n,X)});if(Nt.source=Te,$f(Nt))throw Nt;return Nt}function il(c){return cn(c).toLowerCase()}function ol(c){return cn(c).toUpperCase()}function td(c,h,_){if(c=cn(c),c&&(_||h===n))return ug(c);if(!c||!(h=_i(h)))return c;var O=ui(c),D=ui(h),z=Mm(O,D),X=Fu(O,D)+1;return Vo(O,z,X).join("")}function nd(c,h,_){if(c=cn(c),c&&(_||h===n))return c.slice(0,Pm(c)+1);if(!c||!(h=_i(h)))return c;var O=ui(c),D=Fu(O,ui(h))+1;return Vo(O,0,D).join("")}function al(c,h,_){if(c=cn(c),c&&(_||h===n))return c.replace(er,"");if(!c||!(h=_i(h)))return c;var O=ui(c),D=Mm(O,ui(h));return Vo(O,D).join("")}function TS(c,h){var _=Q,O=$;if(Kn(h)){var D="separator"in h?h.separator:D;_="length"in h?Et(h.length):_,O="omission"in h?_i(h.omission):O}c=cn(c);var z=c.length;if(Ns(c)){var X=ui(c);z=X.length}if(_>=z)return c;var te=_-Mr(O);if(te<1)return O;var se=X?Vo(X,0,te).join(""):c.slice(0,te);if(D===n)return se+O;if(X&&(te+=se.length-te),Yf(D)){if(c.slice(te).search(D)){var xe,Ce=se;for(D.global||(D=za(D.source,cn(Fa.exec(D))+"g")),D.lastIndex=0;xe=D.exec(Ce);)var Te=xe.index;se=se.slice(0,Te===n?te:Te)}}else if(c.indexOf(_i(D),te)!=te){var De=se.lastIndexOf(D);De>-1&&(se=se.slice(0,De))}return se+O}function Vy(c){return c=cn(c),c&&sn.test(c)?c.replace(Cn,hg):c}var rd=ec(function(c,h,_){return c+(_?" ":"")+h.toUpperCase()}),Rv=g0("toUpperCase");function Ov(c,h,_){return c=cn(c),h=_?n:h,h===n?Dm(c)?Fm(c):M2(c):c.match(h)||[]}var id=Tt(function(c,h){try{return Hi(c,n,h)}catch(_){return $f(_)?_:new rt(_)}}),Hy=ma(function(c,h){return zi(h,function(_){_=vr(_),Qi(c,_,qh(c[_],c))}),c});function RS(c){var h=c==null?0:c.length,_=nt();return c=h?Vn(c,function(O){if(typeof O[1]!="function")throw new Gi(l);return[_(O[0]),O[1]]}):[],Tt(function(O){for(var D=-1;++D<h;){var z=c[D];if(Hi(z[0],this,O))return Hi(z[1],this,O)}})}function sp(c){return Hl(Wi(c,y))}function bc(c){return function(){return c}}function zy(c,h){return c==null||c!==c?h:c}var _c=Oh(),qy=Oh(!0);function ei(c){return c}function Sc(c){return Wl(typeof c=="function"?c:Wi(c,y))}function Gy(c){return Zm(Wi(c,y))}function OS(c,h){return Jm(c,Wi(h,y))}var lp=Tt(function(c,h){return function(_){return zr(_,c,h)}}),i=Tt(function(c,h){return function(_){return zr(c,_,h)}});function a(c,h,_){var O=Pr(h),D=Gl(h,O);_==null&&!(Kn(h)&&(D.length||!O.length))&&(_=h,h=c,c=this,D=Gl(h,Pr(h)));var z=!(Kn(_)&&"chain"in _)||!!_.chain,X=xo(c);return zi(D,function(te){var se=h[te];c[te]=se,X&&(c.prototype[te]=function(){var xe=this.__chain__;if(z||xe){var Ce=c(this.__wrapped__),Te=Ce.__actions__=Xr(this.__actions__);return Te.push({func:se,args:arguments,thisArg:c}),Ce.__chain__=xe,Ce}return se.apply(c,ks([this.value()],arguments))})}),c}function u(){return Er._===this&&(Er._=Uu),this}function d(){}function b(c){return c=Et(c),Tt(function(h){return bh(h,c)})}var E=Zl(Vn),N=Zl(ag),F=Zl(Am);function Z(c){return ic(c)?km(vr(c)):Sh(c)}function ce(c){return function(h){return c==null?n:qs(c,h)}}var be=_0(),Ee=_0(!0);function fe(){return[]}function pe(){return!1}function He(){return{}}function it(){return""}function xn(){return!0}function ae(c,h){if(c=Et(c),c<1||c>ge)return[];var _=oe,O=Rn(c,oe);h=nt(h),c-=oe;for(var D=eh(O,h);++_<c;)h(_);return D}function re(c){return mt(c)?Vn(c,vr):pi(c)?[c]:Xr(sc(cn(c)))}function ue(c){var h=++jm;return cn(c)+h}var _e=Nf(function(c,h){return c+h},0),Xe=kh("ceil"),tn=Nf(function(c,h){return c/h},1),Ge=kh("floor");function Rt(c){return c&&c.length?Hs(c,ei,fi):n}function qt(c,h){return c&&c.length?Hs(c,nt(h,2),fi):n}function nn(c){return Du(c,ei)}function sl(c,h){return Du(c,nt(h,2))}function AS(c){return c&&c.length?Hs(c,ei,Cf):n}function eI(c,h){return c&&c.length?Hs(c,nt(h,2),Cf):n}var tI=Nf(function(c,h){return c*h},1),nI=kh("round"),rI=Nf(function(c,h){return c-h},0);function iI(c){return c&&c.length?Jd(c,ei):0}function oI(c,h){return c&&c.length?Jd(c,nt(h,2)):0}return U.after=uy,U.ary=tv,U.assign=pv,U.assignIn=Zh,U.assignInWith=Cy,U.assignWith=Ri,U.at=mv,U.before=nv,U.bind=qh,U.bindAll=Hy,U.bindKey=qf,U.castArray=fy,U.chain=Y0,U.chunk=B0,U.compact=V0,U.concat=Ph,U.cond=RS,U.conforms=sp,U.constant=bc,U.countBy=Bf,U.create=Ty,U.curry=rv,U.curryRight=iv,U.debounce=pn,U.defaults=Ry,U.defaultsDeep=Oy,U.defer=ov,U.delay=tS,U.difference=Hg,U.differenceBy=es,U.differenceWith=gr,U.drop=H0,U.dropRight=zg,U.dropRightWhile=Lr,U.dropWhile=Q2,U.fill=qg,U.filter=eo,U.flatMap=ty,U.flatMapDeep=ny,U.flatMapDepth=X2,U.flatten=hi,U.flattenDeep=ts,U.flattenDepth=Gg,U.flip=cy,U.flow=_c,U.flowRight=qy,U.fromPairs=$g,U.functions=pS,U.functionsIn=mc,U.groupBy=J0,U.initial=Fh,U.intersection=Si,U.intersectionBy=qo,U.intersectionWith=Qg,U.invert=vS,U.invertBy=gS,U.invokeMap=ry,U.iteratee=Sc,U.keyBy=iy,U.keys=Pr,U.keysIn=Oi,U.map=Hf,U.mapKeys=ky,U.mapValues=vc,U.matches=Gy,U.matchesProperty=OS,U.memoize=Gh,U.merge=Zf,U.mergeWith=gv,U.method=lp,U.methodOf=i,U.mixin=a,U.negate=$h,U.nthArg=b,U.omit=bS,U.omitBy=gc,U.once=nS,U.orderBy=oy,U.over=E,U.overArgs=Qh,U.overEvery=N,U.overSome=F,U.partial=Js,U.partialRight=Wh,U.partition=Hh,U.pick=Jf,U.pickBy=yv,U.property=Z,U.propertyOf=ce,U.pull=rs,U.pullAll=jh,U.pullAllBy=G0,U.pullAllWith=Go,U.pullAt=Wg,U.range=be,U.rangeRight=Ee,U.rearg=Yh,U.reject=J2,U.remove=lc,U.rest=av,U.reverse=nu,U.sampleSize=ay,U.set=bv,U.setWith=_v,U.shuffle=sy,U.slice=Ff,U.sortBy=ly,U.sortedUniq=Zg,U.sortedUniqBy=Y2,U.split=Cv,U.spread=el,U.tail=K2,U.take=un,U.takeRight=On,U.takeRightWhile=Dt,U.takeWhile=zt,U.tap=Vh,U.throttle=ga,U.thru=iu,U.toArray=xy,U.toPairs=ed,U.toPairsIn=Sv,U.toPath=re,U.toPlainObject=wy,U.transform=Ny,U.unary=Gf,U.union=gn,U.unionBy=Zi,U.unionWith=Ks,U.uniq=cc,U.uniqBy=$0,U.uniqWith=is,U.unset=_S,U.unzip=Hn,U.unzipWith=os,U.update=Iy,U.updateWith=SS,U.values=nl,U.valuesIn=ES,U.without=ru,U.words=Ov,U.wrap=rS,U.xor=Q0,U.xorBy=Ji,U.xorWith=fc,U.zip=Uf,U.zipObject=xi,U.zipObjectDeep=W0,U.zipWith=Bh,U.entries=ed,U.entriesIn=Sv,U.extend=Zh,U.extendWith=Cy,a(U,U),U.add=_e,U.attempt=id,U.camelCase=xS,U.capitalize=yc,U.ceil=Xe,U.clamp=np,U.clone=dy,U.cloneDeep=py,U.cloneDeepWith=iS,U.cloneWith=hy,U.conformsTo=sv,U.deburr=My,U.defaultTo=zy,U.divide=tn,U.endsWith=Dy,U.eq=Eo,U.escape=Ly,U.escapeRegExp=Py,U.every=Z0,U.find=ey,U.findIndex=z0,U.findKey=Xf,U.findLast=wi,U.findLastIndex=Ln,U.findLastKey=wo,U.floor=Ge,U.forEach=ss,U.forEachRight=Vf,U.forIn=Ay,U.forInRight=Jh,U.forOwn=cs,U.forOwnRight=hS,U.get=ep,U.gt=my,U.gte=oS,U.has=mS,U.hasIn=vv,U.head=q0,U.identity=ei,U.includes=hc,U.indexOf=W2,U.inRange=rp,U.invoke=yS,U.isArguments=ls,U.isArray=mt,U.isArrayBuffer=aS,U.isArrayLike=Ci,U.isArrayLikeObject=Pn,U.isBoolean=sS,U.isBuffer=us,U.isDate=Lt,U.isElement=lv,U.isEmpty=Kh,U.isEqual=uv,U.isEqualWith=vy,U.isError=$f,U.isFinite=Qf,U.isFunction=xo,U.isInteger=gy,U.isLength=Wf,U.isMap=cv,U.isMatch=yy,U.isMatchWith=En,U.isNaN=fv,U.isNative=Gr,U.isNil=by,U.isNull=lS,U.isNumber=_y,U.isObject=Kn,U.isObjectLike=or,U.isPlainObject=ou,U.isRegExp=Yf,U.isSafeInteger=Xh,U.isSet=dv,U.isString=Kf,U.isSymbol=pi,U.isTypedArray=tl,U.isUndefined=uS,U.isWeakMap=Sy,U.isWeakSet=cS,U.join=Ei,U.kebabCase=Fy,U.last=Xi,U.lastIndexOf=ns,U.lowerCase=Ev,U.lowerFirst=jy,U.lt=Ey,U.lte=fS,U.max=Rt,U.maxBy=qt,U.mean=nn,U.meanBy=sl,U.min=AS,U.minBy=eI,U.stubArray=fe,U.stubFalse=pe,U.stubObject=He,U.stubString=it,U.stubTrue=xn,U.multiply=tI,U.nth=tu,U.noConflict=u,U.noop=d,U.now=zf,U.pad=Uy,U.padEnd=op,U.padStart=wS,U.parseInt=CS,U.random=ip,U.reduce=ev,U.reduceRight=Z2,U.repeat=xv,U.replace=wv,U.result=tp,U.round=nI,U.runInContext=ie,U.sample=eS,U.size=pc,U.snakeCase=ap,U.some=zh,U.sortedIndex=uc,U.sortedIndexBy=Yg,U.sortedIndexOf=Kg,U.sortedLastIndex=jf,U.sortedLastIndexBy=Xg,U.sortedLastIndexOf=Uh,U.startCase=By,U.startsWith=Tv,U.subtract=rI,U.sum=iI,U.sumBy=oI,U.template=rl,U.times=ae,U.toFinite=Jr,U.toInteger=Et,U.toLength=hv,U.toLower=il,U.toNumber=Ti,U.toSafeInteger=dS,U.toString=cn,U.toUpper=ol,U.trim=td,U.trimEnd=nd,U.trimStart=al,U.truncate=TS,U.unescape=Vy,U.uniqueId=ue,U.upperCase=rd,U.upperFirst=Rv,U.each=ss,U.eachRight=Vf,U.first=q0,a(U,(function(){var c={};return Bo(U,function(h,_){ln.call(U.prototype,_)||(c[_]=h)}),c})(),{chain:!1}),U.VERSION=r,zi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){U[c].placeholder=U}),zi(["drop","take"],function(c,h){bt.prototype[c]=function(_){_=_===n?1:Yn(Et(_),0);var O=this.__filtered__&&!h?new bt(this):this.clone();return O.__filtered__?O.__takeCount__=Rn(_,O.__takeCount__):O.__views__.push({size:Rn(_,oe),type:c+(O.__dir__<0?"Right":"")}),O},bt.prototype[c+"Right"]=function(_){return this.reverse()[c](_).reverse()}}),zi(["filter","map","takeWhile"],function(c,h){var _=h+1,O=_==J||_==B;bt.prototype[c]=function(D){var z=this.clone();return z.__iteratees__.push({iteratee:nt(D,3),type:_}),z.__filtered__=z.__filtered__||O,z}}),zi(["head","last"],function(c,h){var _="take"+(h?"Right":"");bt.prototype[c]=function(){return this[_](1).value()[0]}}),zi(["initial","tail"],function(c,h){var _="drop"+(h?"":"Right");bt.prototype[c]=function(){return this.__filtered__?new bt(this):this[_](1)}}),bt.prototype.compact=function(){return this.filter(ei)},bt.prototype.find=function(c){return this.filter(c).head()},bt.prototype.findLast=function(c){return this.reverse().find(c)},bt.prototype.invokeMap=Tt(function(c,h){return typeof c=="function"?new bt(this):this.map(function(_){return zr(_,c,h)})}),bt.prototype.reject=function(c){return this.filter($h(nt(c)))},bt.prototype.slice=function(c,h){c=Et(c);var _=this;return _.__filtered__&&(c>0||h<0)?new bt(_):(c<0?_=_.takeRight(-c):c&&(_=_.drop(c)),h!==n&&(h=Et(h),_=h<0?_.dropRight(-h):_.take(h-c)),_)},bt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},bt.prototype.toArray=function(){return this.take(oe)},Bo(bt.prototype,function(c,h){var _=/^(?:filter|find|map|reject)|While$/.test(h),O=/^(?:head|last)$/.test(h),D=U[O?"take"+(h=="last"?"Right":""):h],z=O||/^find/.test(h);D&&(U.prototype[h]=function(){var X=this.__wrapped__,te=O?[1]:arguments,se=X instanceof bt,xe=te[0],Ce=se||mt(X),Te=function($t){var Xt=D.apply(U,ks([$t],te));return O&&De?Xt[0]:Xt};Ce&&_&&typeof xe=="function"&&xe.length!=1&&(se=Ce=!1);var De=this.__chain__,Qe=!!this.__actions__.length,lt=z&&!De,Nt=se&&!Qe;if(!z&&Ce){X=Nt?X:new bt(this);var ot=c.apply(X,te);return ot.__actions__.push({func:iu,args:[Te],thisArg:n}),new Dr(ot,De)}return lt&&Nt?c.apply(this,te):(ot=this.thru(Te),lt?O?ot.value()[0]:ot.value():ot)})}),zi(["pop","push","shift","sort","splice","unshift"],function(c){var h=ff[c],_=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",O=/^(?:pop|shift)$/.test(c);U.prototype[c]=function(){var D=arguments;if(O&&!this.__chain__){var z=this.value();return h.apply(mt(z)?z:[],D)}return this[_](function(X){return h.apply(mt(X)?X:[],D)})}}),Bo(bt.prototype,function(c,h){var _=U[h];if(_){var O=_.name+"";ln.call(Ot,O)||(Ot[O]=[]),Ot[O].push({name:h,func:_})}}),Ot[Xl(n,I).name]=[{name:"wrapper",func:n}],bt.prototype.clone=Us,bt.prototype.reverse=qa,bt.prototype.value=Hm,U.prototype.at=Xs,U.prototype.chain=xr,U.prototype.commit=Zs,U.prototype.next=dc,U.prototype.plant=K0,U.prototype.reverse=X0,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=Jg,U.prototype.first=U.prototype.head,Pl&&(U.prototype[Pl]=as),U}),Lo=U2();aa?((aa.exports=Lo)._=Lo,Il._=Lo):Er._=Lo}).call(NW)}
98)(n1,n1.exports)),n1.exports}var CO=IW();const TO="active_session",RO=()=>Md.get(TO),OO=e=>{const t=new Date(Date.now()+18e5);Md.set(TO,e,{expires:t})},MW=CO.throttle(()=>{const e=RO();e&&OO(e)},6e4,{leading:!0}),AO=()=>{const e=RO();if(e)return MW(),e;const t=Hx();return OO(t),t},kO=()=>new Date(Date.now()).toISOString(),DW=({error:e,metadata:t})=>{_m.addError(e,t)},LW=20,PW=200,FW=1e3;let d_=[];const jW=e=>{const t=e.filter(n=>n.type==="select");for(const n of t)_m.addAction("pte_select",n)},NO=({events:e,keepalive:t})=>{if(e.length===0)return;jW(e);const n=e[0].screen_view.source_app,r=Bx(n),o=JSON.stringify({events:e}),s=({error:l,errorName:f,metadata:m={}})=>{l.name=f,DW({error:l,metadata:{...m,body:o,requestId:r}})};window.fetch("/api/v2/events_collector",{body:o,credentials:"same-origin",headers:{"X-Request-Id":r,"Content-Type":"application/json"},keepalive:t,method:"POST",mode:"same-origin"}).then(async l=>{if(!l.ok){const f=await l.text();let m;try{m=JSON.parse(f)}catch{}const p=m?.invalid_events;s(p?{error:new Error("Invalid event schema"),errorName:"EventReporterSchemaError",metadata:{invalidEvents:p}}:{error:new Error(`Server responded with a ${l.status} status`),errorName:"EventReporterAPIError",metadata:{responseBody:f,responseStatus:l.status}})}}).catch(l=>{s({error:l,errorName:"EventReporterNetworkError"})})},IO=()=>{NO({events:d_,keepalive:!1}),d_=[]},R4=CO.debounce(IO,PW,{maxWait:FW}),UW=e=>{d_.push(e),d_.length>=LW?(IO(),R4.cancel()):R4()},MO=e=>{e.screen_view&&(e.type==="select"?NO({events:[e],keepalive:!0}):UW(e))};var a6=new Map,lb=new WeakMap,O4=0,BW;function VW(e){return e?(lb.has(e)||(O4+=1,lb.set(e,O4.toString())),lb.get(e)):"0"}function HW(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?VW(e.root):e[t]}`).toString()}function zW(e){const t=HW(e);let n=a6.get(t);if(!n){const r=new Map;let o;const s=new IntersectionObserver(l=>{l.forEach(f=>{var m;const p=f.isIntersecting&&o.some(v=>f.intersectionRatio>=v);e.trackVisibility&&typeof f.isVisible>"u"&&(f.isVisible=p),[...(m=r.get(f.target))!=null?m:[]].forEach(v=>{v(p,f)})})},e);o=s.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:s,elements:r},a6.set(t,n)}return n}function qW(e,t,n={},r=BW){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const m=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:m,intersectionRect:m,rootBounds:m}),()=>{}}const{id:o,observer:s,elements:l}=zW(n),f=l.get(e)||[];return l.has(e)||l.set(e,f),f.push(t),s.observe(e),function(){f.splice(f.indexOf(t),1),f.length===0&&(l.delete(e),s.unobserve(e)),l.size===0&&(s.disconnect(),a6.delete(o))}}const s6=.6,GW=[{threshold:s6},{threshold:0,rootMargin:"-30% 0%"}],$W=e=>{const t=A.useRef([]),n=A.useCallback(()=>{for(const o of t.current)o();t.current=[]},[]);return{ref:A.useCallback(o=>{n();let s=!1;if(o)for(const l of GW){const f=qW(o,(m,{intersectionRatio:p,intersectionRect:v,boundingClientRect:g,rootBounds:y})=>{if(!m||s)return;const S=p>=s6,x=y&&g.height>=.5*y.height,w=v.width/g.width>s6;(S||x&&w)&&(n(),e(),s=!0)},l);t.current.push(f)}},[e,n])}},DO=A.createContext({screenView:null}),l6=A.createContext({parentViews:[]}),LO=e=>{const{screenView:t}=A.useContext(DO);return r=>{MO({...r,active_session_id:AO(),parent_views:e,pte_id:Hx(),screen_view:t,timestamp:kO(),type:"select"})}},ji=()=>{const{parentViews:e}=A.useContext(l6);return{reportSelectEvent:LO(e)}},PO=e=>{const{screenView:t}=A.useContext(DO),{parentViews:n}=A.useContext(l6),r=A.useRef(e),o=A.useRef(n),s=A.useRef(void 0),l=!kW(e,r.current);if(!o.current||!s.current||l){r.current=e;const g=e.order?{order:{index:e.order.index+1}}:{},y={...e,...g,type:"view",pte_id:Hx()};o.current=[y,...n],s.current=()=>{MO({...y,active_session_id:AO(),parent_views:n,screen_view:t,timestamp:kO()})}}const{ref:f}=$W(s.current),m=o.current,p=LO(m),v=A.useCallback(({children:g})=>C.jsx(l6.Provider,{value:{parentViews:m},children:g}),[m]);return v.displayName="EventProvider",{EventProvider:v,ref:f,reportSelectEvent:p,viewContext:{parentViews:m}}},QW=e=>{const t=e.filter(([,n])=>!n);if(t.length!==1)throw new Error(`Mode React: Exactly one screen size (the largest one) should have no corresponding value. Found ${t.length}: ${t}`)},WW=([,e],[,t])=>e?t?e-t:-1:1,YW=[["sm",560],["md",900],["lg",1140],["xl",1730],["xxl"]];let zx;const KW=e=>{QW(e),zx=[...e].sort(WW)},q1=()=>zx.map(([e])=>e),qx=()=>{const e=zx.filter(([,t])=>t);return Object.fromEntries(e)};KW(YW);const XW={white:"#ffffff",black:"#000000","white-a10":"#ffffff1a","white-a20":"#ffffff33","white-a75":"#ffffffbf","gray-99":"#fafafa","gray-95":"#f0f1f3","gray-92":"#e7e8e9","gray-85":"#d9d9d9","gray-75":"#bfbfbf","gray-55":"#8c8c8c","gray-45":"#7071
9877","gray-35":"#515762","gray-16":"#25282d","gray-16-a025":"#25282d06","gray-16-a5":"#25282d0d","gray-16-a10":"#25282d1a","gray-16-a20":"#25282d33","gray-16-a30":"#25282d4d","gray-16-a67":"#25282dab","gray-16-a75":"#25282dbf","gray-16-a85":"#25282dd9"},ZW={"mint-95":"#f1f9f7","mint-85":"#c3e4de","mint-70":"#aad9d0","mint-60":"#86c8bc","mint-60-a10":"#86c8bc1a","mint-60-a20":"#86c8bc33","mint-50":"#79b4a9","mint-50-a10":"#79b4a91a","mint-50-a20":"#79b4a933","mint-45":"#5e8c84","mint-40":"#507871"},JW={"lime-95":"#d5fcc6","lime-85":"#6ced9e","lime-70":"#00c380","lime-60":"#00a56c","lime-50":"#008656","lime-45":"#007b4a","lime-40":"#006c45"},eY={"violet-95":"#f2efff","violet-85":"#dacdff","violet-70":"#a7a0fe","violet-60":"#8b80fe","violet-50":"#6c5afd","violet-45":"#594dfd","violet-40":"#543deb"},tY={"orange-95":"#ffede2","orange-85":"#ffc9ae","orange-70":"#ff8b5a","orange-60":"#ea6b00","orange-50":"#c94c00","orange-45":"#c83100","orange-40":"#af3000"},nY={"blue-95":"#f2f4f7","blue-85":"#b2bbcf","blue-70":"#8997b6","blue-60":"#6678a0","blue-50":"#334b80","blue-45":"#001e60","blue-40":"#001b56"},rY={"red-95":"#ffeced","red-85":"#ffc6c9","red-70":"#ff888d","red-60":"#ff525e","red-50":"#dd2e3e","red-50-a10":"#dd2e3e1a","red-50-a20":"#dd2e3e33","red-50-a50":"#dd2e3e80","red-45":"#cd243b","red-40":"#bf0029"},iY={"aqua-95":"#befcff","aqua-85":"#65e5f8","aqua-70":"#00bbda","aqua-60":"#009ebe","aqua-50":"#007ea1","aqua-45":"#007395","aqua-40":"#00677e"},oY={"pink-95":"#ffecf3","pink-85":"#ffc4dc","pink-70":"#ff81bb","pink-60":"#ff43a8","pink-50":"#df008c","pink-45":"#cd0080","pink-40":"#b70072"},aY={"gold-95":"#fef399","gold-95-a40":"#fef39966","gold-85":"#fdd37e","gold-70":"#e29e00","gold-60":"#c08500","gold-50":"#ad6200","gold-45":"#a75400","gold-40":"#8f4e00"},sY={"citrus-50":"#bdcb32","citrus-60":"#d2e137","citrus-70":"#d7e44b","grapefruit-50":"#e6504d","grapefruit-60":"#ff5955","grapefruit-70":"#ff6a66"},lY={"forest-70":"#397268","forest-60":"#246358","forest-50":"#20594f"},uY={"denim-70":"#98aee0","denim-60":"#8da6dd","denim-50":"#7e95c6"},cY={"cerulean-70":"#4279f3","cerulean-60":"#2e6bf2","cerulean-50":"#2960d9"},fY={"khaki-70":"#f5efdb","khaki-60":"#f3ecd3","khaki-50":"#dad4bd"},dY={"butter-70":"#e5ebb5","butter-60":"#dfe6a3","butter-50":"#c8cf92"},hY={"cargo-70":"#696e42","cargo-60":"#595e2d","cargo-50":"#505428"},pY={"blush-70":"#dfbdbc","blush-60":"#dcb6b5","blush-50":"#c6a3a2"},mY={...ZW,...JW,...eY,...tY,...nY,...rY,...iY,...oY,...aY,...sY,...lY,...uY,...cY,...fY,...dY,...hY,...pY},vY={"afterpay-teal":"#b2fce4","apple-black":"#000","facebook-blue":"#1877f2","google-blue":"#4885ed","imessage-green":"#53d769","linkedin-blue":"#0077b5","messenger-blue":"#007fff","paypal-blue-dark":"#003087","paypal-blue-light":"#009cde","paypal-yellow":"#ffc439","pinterest-red":"#bd081c","twitter-blue":"#1b95e0","venmo-blue":"#3d95ce","whatsapp-teal":"#128c7e"},gY={},FO={...gY,...XW,...mY,...vY},r2=()=>typeof window=="object"?window:void 0,u6=()=>typeof document=="object"?document:void 0,jO=()=>{const e=r2();return e?!!e?.stitchfix?.wasServerSideRendered:!0},G1=e=>e===void 0||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||bl.isValidElement(e)||Array.isArray(e)&&e.every(G1);function vl(e,t,n){let r;if(!t||G1(t))r=t;else{const o=q1(),s=t.below?o:[...o].reverse(),f=s.slice(s.indexOf(e)).find(m=>m in t);r=f?t[f]:void 0}return r??n}const $b=(e,t)=>!t||G1(t)?e(t):q1().reduce((r,o)=>o in t?{...r,[o]:e(t[o])}:r,{}),yY=e=>e===void 0?e:typeof e=="number"?`${e}rem`:e,A4=new Set,bY=(e,t,n,{stylingProps:r,dangerousStylingProps:o})=>{const s=r==="makeDangerous",l=o==="rewrite",f=o==="remove",m=r==="warn",p=r!=="remove",v=e[t],g=e[n];let y=!1;const S={};return v?(p&&(y=!0),s?S[n]=v:m&&(S[t]=v)):l&&g?S[t]=g:g&&!f&&(S[n]=g),{sawDeprecatedProps:y,processedStylingProps:S}},Ss=(e,t,n)=>{const r=_Y(e),o=[{stylingPropName:"className",dangerousPropName:"dangerouslySetClassName"},{stylingPropName:"style",dangerousPropName:"dangerouslySetStyle"}];let s=!1;const l=o.reduce((f,{stylingPropName:m,dangerousPropName:p})=>{const v=bY(e,m,p,n);return s=s||v.sawDeprecatedProps,{...f,...v.processedStylingProps}},r);return s&&!A4.has(t)&&A4.add(t),l},_Y=e=>{const{className:t,dangerouslySetClassName:n,dangerouslySetStyleName:r,style:o,dangerouslySetStyle:s,...l}=e;return l};let k3={};const k4=e=>{const t=r2();
98return!(e in k3)&&typeof t?.matchMedia=="function"&&(k3[e]=t.matchMedia(e)),k3[e]},UO=e=>{const[t,n]=A.useState(()=>!jO()&&!!k4(e)?.matches);return A.useEffect(()=>{const r=k4(e);if(r){let o=!0;const s=()=>{o&&n(r.matches)};return r.addListener(s),n(r.matches),()=>{o=!1,r.removeListener(s)}}},[e]),t},SY=e=>UO(`screen and (min-width: ${e}px)`),EY=e=>UO(`screen and (max-width: ${e-1}px)`),Jc=()=>{const e=[...q1()].reverse(),t=qx();return e.map((o,s)=>s+1<e.length?{size:o,matches:SY(t[e[s+1]])}:{size:o,matches:!0}).find(({matches:o})=>o)?.size||"sm"},BO=(e="id")=>{const t=A.useId().replace(/[^A-Za-z0-9-_]/g,"_");return`${e}${t}`},Gx=bl.createContext(void 0),h_=({children:e,defaultColor:t})=>C.jsx(Gx.Provider,{value:{defaultPurpose:"decorative",defaultColor:t},children:e}),xY=({children:e,...t})=>C.jsx(Gx.Provider,{value:t,children:e}),wY=e=>`${e}_icon_title`,Zn=({children:e,purpose:t,title:n,titleId:r,color:o,...s})=>{const l=BO("icon"),f=A.useContext(Gx),m=t||f?.defaultPurpose||"standalone",p=f?.overrideColor||o||f?.defaultColor||"default",v={};m==="decorative"?v["aria-hidden"]=!0:v.role="img",n&&(v.titleId=r||wY(l));const g={};return p!=="default"&&(g.color=p==="inherit"?"currentColor":FO[p]),C.jsx(C.Fragment,{children:e({...s,...v,...g,title:n})})},CY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:298,height:48,viewBox:"0 0 298 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{d:"M22.1118 23.7953L17.6531 22.4076C14.1953 21.3157 11.1469 20.0872 11.1469 17.6303C11.1469 15.8332 12.8303 14.3318 15.7649 14.3318C18.8133 14.3318 20.6559 15.9697 21.7934 18.7678L30.3014 15.3782C29.2095 11.0104 24.1137 6.11945 15.8104 6.11945C7.46161 6.11945 1.36493 11.0559 1.36493 18.3811C1.36493 26.0929 8.18957 28.7773 12.1706 29.9602L15.7877 31.0521C19.0408 32.0303 22.0436 33.1678 22.0436 35.8294C22.0436 38.2408 19.6322 39.6967 16.3791 39.6967C13.5355 39.6967 10.237 38.6048 8.6673 33.1678L0 36.0569C1.77441 43.3138 7.82559 48 16.5384 48C26.3659 48 31.9166 42.0853 31.9166 34.7602C31.9393 26.9801 25.4787 24.819 22.1118 23.7953Z",fill:"#001E60"}),C.jsx("path",{d:"M32.9175 15.3554H44.5876V47.0673H53.8691V15.3554H65.5165V6.89288H32.9175V15.3554Z",fill:"#001E60"}),C.jsx("path",{d:"M79.3251 6.89288H70.0436V47.0445H79.3251V6.89288Z",fill:"#001E60"}),C.jsx("path",{d:"M83.8522 15.3554H95.4996V47.0673H104.804V15.3554H116.451V6.89288H83.8522V15.3554Z",fill:"#001E60"}),C.jsx("path",{d:"M215.477 47.0673H224.758V31.2114H242.207V22.7488H224.758V15.3554H242.207V6.89288H215.477V47.0673Z",fill:"#001E60"}),C.jsx("path",{d:"M257.198 6.89288H247.917V47.0445H257.198V6.89288Z",fill:"#001E60"}),C.jsx("path",{d:"M297.85 47.1128L283.405 24.6825L281.699 22.0208L271.962 6.89288H260.997L275.784 30.1877L277.49 32.8493L286.544 47.1128H297.85Z",fill:"#001E60"}),C.jsx("path",{d:"M259.655 0H245.46V3.02559H259.655V0Z",fill:"#001E60"}),C.jsx("path",{d:"M81.7819 0H67.5867V3.02559H81.7819V0Z",fill:"#001E60"}),C.jsx("path",{d:"M186.517 22.7488H170.07V6.89288H160.789V47.0673H170.07V31.2114H186.517V47.0673H195.799V6.89288H186.517V22.7488Z",fill:"#001E60"}),C.jsx("path",{d:"M138.904 39.3327C133.718 39.3327 127.189 36.3526 127.189 27.2304C127.189 19.6095 131.761 14.673 138.313 14.673C142.817 14.673 145.774 17.0161 147.708 20.1555L156.557 16.8114C153.259 10.419 146.798 6.05121 138.472 6.05121C127.871 6.05121 117.475 13.0578 117.475 26.7526C117.475 39.583 126.552 47.909 138.904 47.909C146.525 47.909 153.805 44.7242 157.763 36.1706L149.027 33.2133C146.684 37.4901 142.976 39.3327 138.904 39.3327Z",fill:"#001E60"}),C.jsx("path",{d:"M296.258 6.89288H292.641L263.545 47.1128H267.162L296.258 6.89288Z",fill:"#001E60"})]})}),$x=A.forwardRef((e,t)=>CY(e,t)),TY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:175,height:160,viewBox:"0 0 175 160",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{d:"M149.725 75.064H96.8523L116.985 47.3081H150.409C163.408 47.3081 174.647 36.6553 174.647 23.657C174.647 10.4632 163.799 -0.287338 150.507 0.00585824C143.08 0.10359 136.238 4.01287 131.938 9.97451L112.001 37.6326H24.1398C11.2392 37.6326 0.684123 47.9922 0.48866 60.8928C0.293196 74.0867 11.4346 84.9349 24.7262 84.9349H77.7946L57.6618 112.691H24.2375C11.2392 112.691 0 123.344 0 136.342C0 149.145 10.1641 159.602 22.967 159.993C30.8833 160.188 38.3109 156.279 42.9043 149.927L62.7439 122.464H150.409C163.31 122.464 173.865 112.104 174.061 99.2038C174.158 85.9122 163.017 75.064 149.725 75.064ZM14
980.148 15.252C142.689 11.8314 146.696 9.77905 150.898 9.77905C158.619 9.77905 164.776 16.0339 164.776 23.657C164.776 31.3778 158.521 37.5349 150.898 37.5349H124.022L140.148 15.252ZM34.7926 144.258C32.1538 147.972 27.8536 150.318 23.2602 150.22C15.7348 150.024 9.67546 143.867 9.67546 136.342C9.67546 128.719 15.9303 122.464 23.5534 122.464H50.5274L34.7926 144.258ZM24.1398 75.064C16.5167 75.064 10.2619 68.8091 10.2619 61.186C10.2619 53.5629 16.5167 47.3081 24.1398 47.3081H104.964L84.8313 75.064H24.1398ZM150.312 112.691H69.6829L89.8156 84.9349H150.312C157.935 84.9349 164.19 91.1897 164.19 98.8128C164.19 106.436 157.935 112.691 150.312 112.691Z",fill:"#86C8BC"})]})}),RY=A.forwardRef((e,t)=>TY(e,t)),OY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:175,height:160,viewBox:"0 0 175 160",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{d:"M149.725 75.064H96.8523L116.985 47.3081H150.409C163.408 47.3081 174.647 36.6553 174.647 23.657C174.647 10.4632 163.799 -0.287338 150.507 0.00585824C143.08 0.10359 136.238 4.01287 131.938 9.97451L112.001 37.6326H24.1398C11.2392 37.6326 0.684123 47.9922 0.48866 60.8928C0.293196 74.0867 11.4346 84.9349 24.7262 84.9349H77.7946L57.6618 112.691H24.2375C11.2392 112.691 0 123.344 0 136.342C0 149.145 10.1641 159.602 22.967 159.993C30.8833 160.188 38.3109 156.279 42.9043 149.927L62.7439 122.464H150.409C163.31 122.464 173.865 112.104 174.061 99.2038C174.158 85.9122 163.017 75.064 149.725 75.064ZM140.148 15.252C142.689 11.8314 146.696 9.77905 150.898 9.77905C158.619 9.77905 164.776 16.0339 164.776 23.657C164.776 31.3778 158.521 37.5349 150.898 37.5349H124.022L140.148 15.252ZM34.7926 144.258C32.1538 147.972 27.8536 150.318 23.2602 150.22C15.7348 150.024 9.67546 143.867 9.67546 136.342C9.67546 128.719 15.9303 122.464 23.5534 122.464H50.5274L34.7926 144.258ZM24.1398 75.064C16.5167 75.064 10.2619 68.8091 10.2619 61.186C10.2619 53.5629 16.5167 47.3081 24.1398 47.3081H104.964L84.8313 75.064H24.1398ZM150.312 112.691H69.6829L89.8156 84.9349H150.312C157.935 84.9349 164.19 91.1897 164.19 98.8128C164.19 106.436 157.935 112.691 150.312 112.691Z",fill:"#001E60"})]})}),VO=A.forwardRef((e,t)=>OY(e,t)),AY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.0001 2.89998C8.76517 2.89998 2.9001 8.76505 2.9001 16C2.9001 23.2349 8.76517 29.1 16.0001 29.1C23.235 29.1 29.1001 23.2349 29.1001 16C29.1001 8.76505 23.235 2.89998 16.0001 2.89998ZM1.1001 16C1.1001 7.77093 7.77105 1.09998 16.0001 1.09998C24.2291 1.09998 30.9001 7.77093 30.9001 16C30.9001 24.229 24.2291 30.9 16.0001 30.9C7.77106 30.9 1.1001 24.229 1.1001 16ZM16.5601 9.09998V9.99998V14.92H22.0001H22.9001V16.72H22.0001H16.5601V22V22.9H14.7601V22V16.72H10.0001H9.1001V14.92H10.0001H14.7601V9.99998V9.09998H16.5601Z",fill:"currentColor"})]})}),kY=A.forwardRef((e,t)=>AY(e,t)),NY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7699 8.69226L6.90066 12.5011L7.88278 13.4988L12.9699 8.49111L13.4767 7.99225L12.9699 7.49339L7.89818 2.5011L6.91608 3.49883L10.7699 7.29226H2.52036V8.69226H10.7699Z",fill:"currentColor"})]})}),IY=A.forwardRef((e,t)=>NY(e,t)),MY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.1184 16.8846L14.5099 25.3587L15.7727 26.6414L25.9469 16.626L26.5985 15.9846L25.9469 15.3432L15.8035 5.35864L14.5408 6.64144L23.1183 15.0846H5.39856V16.8846H23.1184Z",fill:"currentColor"})]})}),DY=A.forwardRef((e,t)=>
98MY(e,t)),LY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.43989 0.590027H0.639893V1.39003V17.95V18.75H1.43989H11.3091L18.0402 23.1783L19.2799 23.9939V22.51V18.75H22.5599H23.3599V17.95V1.39003V0.590027H22.5599H1.43989ZM2.23989 17.15V2.19003H21.7599V17.15H18.4799H17.6799V17.95V21.0261L11.9884 17.2817L11.7883 17.15H11.5487H2.23989ZM6.42112 8.27003C5.56507 8.27003 4.87112 8.96399 4.87112 9.82003C4.87112 10.676 5.56507 11.37 6.42112 11.37C7.27716 11.37 7.97112 10.676 7.97112 9.82003C7.97112 8.96399 7.27716 8.27003 6.42112 8.27003ZM12.0011 8.27003C11.1451 8.27003 10.4511 8.96398 10.4511 9.82003C10.4511 10.676 11.1451 11.37 12.0011 11.37C12.8572 11.37 13.5511 10.676 13.5511 9.82003C13.5511 8.96399 12.8572 8.27003 12.0011 8.27003ZM17.5811 8.27003C16.7251 8.27003 16.0311 8.96399 16.0311 9.82003C16.0311 10.676 16.7251 11.37 17.5811 11.37C18.4372 11.37 19.1311 10.676 19.1311 9.82003C19.1311 8.96399 18.4372 8.27003 17.5811 8.27003Z",fill:"currentColor"})]})}),PY=A.forwardRef((e,t)=>LY(e,t)),FY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00003 7.00996L13.0102 1.99976L14.0002 2.98971L8.98998 7.99991L14.0003 13.0102L13.0104 14.0002L8.00003 8.98986L2.98971 14.0002L1.99976 13.0102L7.01008 7.99991L1.99987 2.98971L2.98982 1.99976L8.00003 7.00996Z",fill:"currentColor"})]})}),i2=A.forwardRef((e,t)=>FY(e,t)),jY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{fill:"none",height:24,viewBox:"0 0 24 24",width:24,xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{clipRule:"evenodd",d:"m10.8688 12-6.86709-6.86956 1.13157-1.13117 6.86672 6.86913 6.8668-6.86913 1.1315 1.13117-6.8671 6.86956 6.867 6.8695-1.1315 1.1312-6.8667-6.8691-6.86664 6.8691-1.13157-1.1312z",fill:"currentColor",fillRule:"evenodd"})]})}),HO=A.forwardRef((e,t)=>jY(e,t)),UY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99995 0.911865L8.60561 1.95706L15.391 14.0371L16 15.088H14.7853H1.21466H0L0.609002 14.0371L7.39429 1.95706L7.99995 0.911865ZM2.42932
9813.688H13.5707L7.99995 3.70419L2.42932 13.688ZM8.69995 6.56803V7.26803V9.82803V10.528H7.29995V9.82803V7.26803V6.56802L8.69995 6.56803ZM7.29995 11.368H7.99995H8.03195H8.73195V12.768H8.03195H7.99995H7.29995V11.368Z",fill:"currentColor"})]})}),Qx=A.forwardRef((e,t)=>UY(e,t)),BY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.09447 2.29945L2.92947 3.91796L6.70811 5.38634C7.30854 5.61967 7.51025 5.69376 7.70949 5.72352C7.90209 5.75228 8.0979 5.75228 8.2905 5.72352C8.48974 5.69376 8.69145 5.61967 9.29188 5.38634L13.0705 3.91796L8.90552 2.29945C8.44793 2.12163 8.31765 2.07529 8.19202 2.05653C8.06471 2.03752 7.93528 2.03752 7.80797 2.05653C7.68234 2.07529 7.55206 2.12163 7.09447 2.29945ZM13.896 2.73675C13.9253 2.74815 13.9545 2.75942 13.9834 2.7706C14.3866 2.92656 14.7483 3.06648 15.0267 3.31603L14.8961 3.46186L15.0267 3.31603C15.2702 3.53423 15.4575 3.80793 15.5727 4.11391C15.7044 4.46387 15.7038 4.8517 15.7032 5.28401C15.7031 5.315 15.7031 5.34623 15.7031 5.37769V10.6224C15.7031 10.6538 15.7031 10.6851 15.7032 10.7161C15.7038 11.1484 15.7044 11.5362 15.5727 11.8862C15.4575 12.1921 15.2702 12.4658 15.0267 12.684C14.7483 12.9336 14.3866 13.0735 13.9834 13.2295C13.9544 13.2407 13.9253 13.2519 13.896 13.2633L9.41262 15.0056C9.39203 15.0136 9.3717 15.0215 9.35163 15.0293C9.31194 15.0447 9.27324 15.0598 9.2354 15.0744L9.02626 15.1557C9.00962 15.1622 8.9931 15.1686 8.9767 15.175C8.74015 15.2672 8.52709 15.3502 8.30034 15.3841C8.10121 15.4138 7.89877 15.4138 7.69965 15.3841C7.4729 15.3502 7.25983 15.2672 7.02329 15.175C7.00688 15.1686 6.99037 15.1622 6.97373 15.1557L6.76375 15.0741C6.72619 15.0596 6.68777 15.0446 6.64839 15.0293C6.62992 15.0221 6.61123 15.0148 6.59232 15.0075C6.59067 15.0068 6.58902 15.0062 6.58737 15.0056L2.10398 13.2633C2.07466 13.2519 2.04554 13.2407 2.01663 13.2295C1.61343 13.0735 1.25172 12.9336 0.973243 12.684C0.729761 12.4658 0.542485 12.1921 0.427296 11.8862C0.295551 11.5362 0.296153 11.1484 0.296823 10.7161C0.296871 10.6851 0.296919 10.6538 0.296919 10.6224V5.37769C0.296919 5.34623 0.296871 5.315 0.296823 5.284C0.296153 4.85169 0.295551 4.46387 0.427296 4.11391C0.542485 3.80793 0.729761 3.53423 0.973243 3.31603C1.25172 3.06648 1.61343 2.92656 2.01662 2.7706C2.04553 2.75942 2.07466 2.74815 2.10398 2.73676L6.58737 0.994516C6.60797 0.98651 6.62831 0.978596 6.64839 0.970782C6.68782 0.955437 6.72627 0.940472 6.76388 0.925925L6.97373 0.844377C6.99037 0.837909 7.00689 0.831472 7.0233 0.825078C7.25984 0.732899 7.47291 0.649871 7.69964 0.616007C7.89877 0.586267 8.10122 0.586267 8.30034 0.616007C8.52708 0.649871 8.74014 0.732899 8.97669 0.825078C8.9931 0.831472 9.00961 0.837909 9.02626 0.844376L9.23616 0.925946C9.27375 0.940486 9.31219 0.955444 9.3516 0.970781C9.37168 0.978596 9.39201 0.986509 9.41262 0.994516L13.896 2.73675ZM1.70067 4.94245C1.69807 5.04715 1.69692 5.18704 1.69692 5.37769V10.6224C1.69692 11.2056 1.70773 11.3138 1.73753 11.3929C1.77341 11.4882 1.83174 11.5735 1.90758 11.6414C1.97055 11.6979 2.06745 11.7471 2.61108 11.9584L7.09447 13.7006C7.1718 13.7307 7.23978 13.757 7.29998 13.78V7.06975C6.99564 7.00033 6.68302 6.87874 6.26953 6.71791C6.24699 6.70915 6.22416 6.70027 6.20101 6.69127L1.70067 4.94245ZM8.69998 7.06975V13.78C8.76018 13.757 8.82817 13.7307 8.90552 13.7006L13.3889 11.9584C13.9325 11.7471 14.0294 11.6979 14.0924 11.6414C14.1682 11.5735 14.2266 11.4882 14.2625 11.3929C14.2923 11.3138 14.3031 11.2056 14.3031 10.6224V5.37769C14.3031 5.18704 14.3019 5.04715 14.2993 4.94245L9.79898 6.69127C9.77583 6.70027 9.753 6.70915 9.73046 6.71791C9.31696 6.87874 9.00433 7.00034 8.69998 7.06975ZM11.9861 10.6336C12.1261 10.9939 11.9474 11.3995 11.5871 11.5395L10.2225 12.0696C9.86213 12.2096 9.45651 12.031 9.31651 11.6706C9.17652 11.3103 9.35516 10.9047 9.71552 10.7647L11.0801 10.2345C11.4405 10.0945 11.8461 10.2732 11.9861 10.6336Z",fill:"currentColor"})]})}),VY=A.forwardRef((e,t)=>
98BY(e,t)),HY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.300049 8.00005C0.300049 3.74746 3.74746 0.300049 8.00005 0.300049C12.2526 0.300049 15.7 3.74746 15.7 8.00005C15.7 12.2526 12.2526 15.7 8.00005 15.7C3.74746 15.7 0.300049 12.2526 0.300049 8.00005ZM8.00005 1.70005C4.52065 1.70005 1.70005 4.52065 1.70005 8.00005C1.70005 11.4794 4.52065 14.3 8.00005 14.3C11.4794 14.3 14.3 11.4794 14.3 8.00005C14.3 4.52065 11.4794 1.70005 8.00005 1.70005ZM7.28405 3.30005H7.98405H8.01604H8.71604V4.70005H8.01604H7.98405H7.28405V3.30005ZM8.70005 5.54805V6.24805V12.008V12.708H7.30005V12.008V6.24805V5.54805H8.70005Z",fill:"currentColor"})]})}),zY=A.forwardRef((e,t)=>HY(e,t)),qY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.99289 2.86829C3.21638 2.86829 0.0767766 5.81914 0.0654551 9.61596C-0.0639 11.9384 1.1672 14.2119 3.04377 15.5455L10.6503 21.0537L10.7168 21.102C10.9844 21.2968 11.2593 21.497 11.5775 21.5785C11.8542 21.6494 12.1443 21.6494 12.421 21.5785C12.7392 21.497 13.0142 21.2968 13.2818 21.102L13.3483 21.0537L20.9548 15.5455C22.8298 14.2131 24.067 12.0569 23.9325 9.60456C23.7934 5.83459 20.6788 2.86829 17.0057 2.86829C14.9864 2.86829 13.3022 3.78699 12.0357 5.04368C10.7871 3.6768 8.9837 2.86829 6.99289 2.86829Z",fill:"currentColor"})]})}),GY=A.forwardRef((e,t)=>qY(e,t)),$Y=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:26,height:24,viewBox:"0 0 26 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.966196 9.61303C0.979123 5.75928 4.16603 2.76829 7.99362 2.76829C9.97497 2.76829 11.7752 3.55846 13.0398 4.90031C14.3121 3.66672 15.9937 2.76829 18.0065 2.76829C21.7333 2.76829 24.8916 5.77691 25.0331 9.59998C25.1694 12.0906 23.9126 14.2773 22.0139 15.6267L14.4076 21.1347C14.3849 21.1512 14.362 21.1679 14.3388 21.1847C14.0752 21.3769 13.7844 21.5889 13.4466 21.6754C13.1536 21.7504 12.8464 21.7504 12.5535 21.6754C12.2156 21.5889 11.9248 21.3769 11.6612 21.1847C11.638 21.1679 11.6151 21.1512 11.5924 21.1347L3.98615 15.6267C2.08573 14.276 0.835803 11.9724 0.966196 9.61303ZM7.99362 4.36829C4.99097 4.36829 2.56616 6.7052 2.56616 9.63657V9.66022L2.56476 9.68383C2.46075 11.4413 3.40515 13.252 4.91558 14.3244L4.9217 14.3287L4.92168 14.3287L12.5308 19.8388C12.7083 19.9673 12.809 20.0397 12.8875 20.0887C12.9271 20.1134 12.9475 20.1233 12.9547 20.1264C12.9845 20.1334 13.0155 20.1334 13.0453 20.1264C13.0525 20.1233 13.073 20.1134 13.1125 20.0887C13.191 20.0397 13.2917 19.9673 13.4692 19.8388L21.0783 14.3287L21.0844 14.3243L21.0844 14.3244C22.6009 13.2477 23.5399 11.5551 23.4352 9.68122L23.4347 9.67326L23.4345 9.6653C23.3277 6.69562 20.8709 4.36829 18.0065 4.36829C16.2335 4.36829 14.7306 5.29802 13.613 6.63092L12.9412 7.43222L12.3436 6.57418C11.3982 5.21692 9.81483 4.36829 7.99362 4.36829ZM12.9577 20.1277C12.9578 20.1277 12.9573 20.1276 12.9564 20.1272Z",fill:"currentColor"})]})}),QY=A.forwardRef((e,t)=>$Y(e,t)),WY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.29995H1.5V3.69995H12H22.5V5.29995H12ZM12 12.8H1.50004V11.2H12H22.5V12.8H12ZM1.5 18.7H12H22.5V20.3H12H1.5V18.7Z",fill:"currentColor"})]})}),YY=A.forwardRef((e,t)=>WY(e,t)),KY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.64744 1.80253C7.13454 1.80253 5.09744 3.83963 5.09744 6.35253C5.09744 8.86542 7.13454 10.9025 9.64744 10.9025C12.1603 10.9025 14.1974 8.86542 14.1974 6.35253C14.1974 3.83963 12.1603 1.80253 9.64744 1.80253ZM3.69744 6.35253C3.69744 3.06643 6.36135 0.402527 9.64744 0.402527C12.9335 0.402527 15.5974 3.06643 15.5974 6.35253C15.5974 9.63862 12.9335 12.3025 9.64744 12.3025C8.25663 12.3025 6.97728 11.8253 5.96417 11.0257L1.39242 15.5975L0.402466 14.6076L4.97422 10.0358C4.17463 9.02269 3.69744 7.74334 3.69744 6.35253Z",fill:"currentColor"})]})}),XY=A.forwardRef((e,t)=>
98KY(e,t)),ZY=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5078 2.41714C10.6004 2.41714 7.43282 5.58472 7.43282 9.49214C7.43282 13.3996 10.6004 16.5671 14.5078 16.5671C18.4152 16.5671 21.5828 13.3996 21.5828 9.49214C21.5828 5.58472 18.4152 2.41714 14.5078 2.41714ZM5.83282 9.49214C5.83282 4.70107 9.71675 0.817139 14.5078 0.817139C19.2989 0.817139 23.1828 4.70107 23.1828 9.49214C23.1828 14.2832 19.2989 18.1671 14.5078 18.1671C12.4004 18.1671 10.4684 17.4156 8.96534 16.166L1.94851 23.1828L0.817139 22.0515L7.83397 15.0346C6.58433 13.5316 5.83282 11.5996 5.83282 9.49214Z",fill:"currentColor"})]})}),JY=A.forwardRef((e,t)=>ZY(e,t)),eK=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.73434 5.45376L9.87987 7.13151H14.0918L14.2488 5.45129C14.2301 4.21895 13.2111 3.21179 11.9916 3.21179C10.7714 3.21179 9.75173 4.22032 9.73434 5.45376ZM15.6987 7.13151L15.8456 5.56024L15.8491 5.52309V5.48579C15.8491 3.3623 14.1142 1.61179 11.9916 1.61179C9.86908 1.61179 8.13412 3.36228 8.13412 5.48579V5.52042L8.13711 5.55492L8.27386 7.13151H4.86217L4.83289 7.13151C4.47892 7.13149 4.16714 7.13148 3.90852 7.15228C3.63321 7.17442 3.35147 7.22382 3.07617 7.36023C2.66993 7.56153 2.3358 7.88342 2.11949 8.28187C1.9729 8.55188 1.91302 8.83159 1.88062 9.10588C1.85018 9.36354 1.83856 9.67509 1.82537 10.0288L1.82428 10.0581L1.48167 19.2343L1.48052 19.2649C1.46636 19.6439 1.45394 19.9761 1.46643 20.251C1.47967 20.5423 1.52234 20.8423 1.66197 21.135C1.86684 21.5645 2.20542 21.9159 2.62694 22.1367C2.91423 22.2871 3.21239 22.3409 3.50303 22.365C3.77727 22.3878 4.10964 22.3878 4.48887 22.3878H4.51956H19.4794H19.5101C19.8899 22.3878 20.2228 22.3878 20.4974 22.365C20.7883 22.3409 21.0869 22.2869 21.3744 22.1362C21.7962 21.915 22.1349 21.5629 22.3395 21.1327C22.479 20.8395 22.5212 20.5392 22.534 20.2475C22.5461 19.9722 22.5331 19.6396 22.5183 19.2601L22.5171 19.2294L22.1597 10.0532L22.1586 10.0239C22.1448 9.67075 22.1327 9.35966 22.1019 9.10239C22.0691 8.82847 22.0089 8.54921 21.8622 8.27968C21.6457 7.8819 21.3116 7.56064 20.9057 7.35976C20.6307 7.22365 20.3493 7.17433 20.0743 7.15223C19.816 7.13148 19.5047 7.13149 19.1512 7.13151L19.122 7.13151H15.6987ZM13.9422 8.73151H10.0186L10.2892 11.8502L10.2921 11.8847V11.9194V13.975H8.69214V11.954L8.41264 8.73151H4.86217C4.4702 8.73151 4.22352 8.73211 4.03679 8.74713C3.85964 8.76137 3.805 8.78474 3.78655 8.79389C3.67576 8.84878 3.58463 8.93657 3.52564 9.04524C3.51581 9.06334 3.49042 9.11707 3.46957 9.29356C3.4476 9.4796 3.43779 9.72609 3.42317 10.1178L3.08055 19.294C3.06492 19.7126 3.05567 19.9777 3.06478 20.1783C3.07349 20.3699 3.09741 20.4279 3.10607 20.4461C3.16194 20.5632 3.25428 20.6591 3.36924 20.7193C3.38705 20.7286 3.44417 20.7547 3.63526 20.7705C3.83538 20.7871 4.10065 20.7878 4.51956 20.7878H19.4794C19.8989 20.7878 20.1646 20.7871 20.3651 20.7705C20.5565 20.7546 20.6136 20.7285 20.6314 20.7191C20.7465 20.6588 20.8388 20.5628 20.8946 20.4455C20.9033 20.4273 20.9271 20.3692 20.9356 20.1773C20.9444 19.9764 20.9347 19.7109 20.9184 19.2917L20.5609 10.1155C20.5457 9.72435 20.5355 9.47827 20.5133 9.29255C20.4922 9.11638 20.4667 9.06274 20.4569 9.04465C20.3978 8.93616 20.3067 8.84854 20.196 8.79376C20.1776 8.78462 20.123 8.76131 19.9461 8.74709C19.7597 8.73211 19.5134 8.73151 19.122 8.73151H15.5492L15.2477 11.9567V13.975H13.6477V11.9194V11.8821L13.6512 11.8449L13.9422 8.73151Z",fill:"currentColor"})]})}),tK=A.forwardRef((e,t)=>eK(e,t)),nK=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"#1877F2",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{d:"M12 0.387085C5.37273 0.387085 0 5.61322 0 12.0597C0 17.9119 4.43182 22.7438 10.2065 23.588V15.1534H7.23764V12.0851H10.2065V10.0435C10.2065 6.66323 11.8996 5.17921 14.7878 5.17921C16.1711 5.17921 16.9025 5.27896 17.2489 5.32459V8.00292H15.2787C14.0525 8.00292 13.6244 9.13357 13.6244 10.408V12.0851H17.2178L16.7302 15.1534H13.6244V23.6129C19.4815 22.8398 24 17.9687 24 12.0597C24 5.61322 18.6273 0.387085 12 0.387085Z",fill:"currentColor"})]})}),rK=A.forwardRef((e,t)=>
98nK(e,t)),iK=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"#25282D",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{d:"M12.0027 5.8467C8.59743 5.8467 5.85075 8.594 5.85075 12C5.85075 15.406 8.59743 18.1533 12.0027 18.1533C15.4079 18.1533 18.1546 15.406 18.1546 12C18.1546 8.594 15.4079 5.8467 12.0027 5.8467ZM12.0027 16.0004C9.80212 16.0004 8.00312 14.2064 8.00312 12C8.00312 9.7936 9.79677 7.99955 12.0027 7.99955C14.2086 7.99955 16.0022 9.7936 16.0022 12C16.0022 14.2064 14.2032 16.0004 12.0027 16.0004ZM19.8412 5.595C19.8412 6.39295 19.1987 7.03024 18.4062 7.03024C17.6085 7.03024 16.9713 6.38759 16.9713 5.595C16.9713 4.80241 17.6138 4.15977 18.4062 4.15977C19.1987 4.15977 19.8412 4.80241 19.8412 5.595ZM23.9157 7.05166C23.8247 5.12909 23.3856 3.42608 21.9775 2.02298C20.5747 0.619882 18.8721 0.180743 16.9499 0.0843468C14.9689 -0.0281156 9.03112 -0.0281156 7.05008 0.0843468C5.1333 0.175388 3.43068 0.614526 2.02253 2.01763C0.614389 3.42073 0.180703 5.12373 0.0843279 7.0463C-0.0281093 9.02778 -0.0281093 14.9669 0.0843279 16.9483C0.175349 18.8709 0.614389 20.5739 2.02253 21.977C3.43068 23.3801 5.12794 23.8193 7.05008 23.9157C9.03112 24.0281 14.9689 24.0281 16.9499 23.9157C18.8721 23.8246 20.5747 23.3855 21.9775 21.977C23.3803 20.5739 23.8193 18.8709 23.9157 16.9483C24.0281 14.9669 24.0281 9.03314 23.9157 7.05166ZM21.3564 19.0744C20.9388 20.1241 20.1303 20.9327 19.0755 21.3558C17.496 21.9824 13.7481 21.8378 12.0027 21.8378C10.2572 21.8378 6.50396 21.977 4.92984 21.3558C3.88042 20.9381 3.07195 20.1294 2.64897 19.0744C2.02253 17.4946 2.16709 13.7458 2.16709 12C2.16709 10.2542 2.02789 6.50006 2.64897 4.92558C3.06659 3.87593 3.87507 3.06728 4.92984 2.6442C6.50931 2.01763 10.2572 2.16222 12.0027 2.16222C13.7481 2.16222 17.5014 2.02298 19.0755 2.6442C20.1249 3.06192 20.9334 3.87058 21.3564 4.92558C21.9828 6.50541 21.8383 10.2542 21.8383 12C21.8383 13.7458 21.9828 17.4999 21.3564 19.0744Z",fill:"currentColor"})]})}),oK=A.forwardRef((e,t)=>iK(e,t)),aK=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"#25282D",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{d:"M24 12C24 18.629 18.629 24 12 24C10.7613 24 9.57097 23.8113 8.44839 23.4629C8.9371 22.6645 9.66774 21.3581 9.93871 20.3177C10.0839 19.7565 10.6839 17.4629 10.6839 17.4629C11.0758 18.2081 12.2177 18.8419 13.4323 18.8419C17.0516 18.8419 19.6597 15.5129 19.6597 11.3758C19.6597 7.4129 16.4226 4.44677 12.2613 4.44677C7.08387 4.44677 4.33065 7.92097 4.33065 11.7097C4.33065 13.471 5.26935 15.6629 6.76452 16.3597C6.99194 16.4661 7.1129 16.4177 7.16613 16.2C7.20484 16.0355 7.40806 15.2177 7.5 14.8403C7.52903 14.7194 7.51452 14.6129 7.41774 14.4968C6.92903 13.8919 6.53226 12.7887 6.53226 11.7581C6.53226 9.11129 8.53548 6.55161 11.9516 6.55161C14.8984 6.55161 16.9645 8.55968 16.9645 11.4339C16.9645 14.6806 15.3242 16.9306 13.1903 16.9306C12.0145 16.9306 11.129 15.9581 11.4145 14.7629C11.7532 13.3355 12.4065 11.7968 12.4065 10.7661C12.4065 9.84677 11.9129 9.07742 10.8871 9.07742C9.68226 9.07742 8.71452 10.321 8.71452 11.9903C8.71452 13.0548 9.07258 13.771 9.07258 13.771C9.07258 13.771 7.8871 18.7935 7.66935 19.7323C7.42742 20.7677 7.52419 22.229 7.62581 23.1774C3.16452 21.4306 0 17.0855 0 12C0 5.37097 5.37097 0 12 0C18.629 0 24 5.37097 24 12Z",fill:"currentColor"})]})}),sK=A.forwardRef((e,t)=>aK(e,t)),lK=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.6895 0C17.0856 3.40571 18.9867 5.43618 22.2921 5.65218V9.48271C20.3765 9.66991 18.6986 9.04349 16.7471 7.86266V15.0269C16.7471 24.128 6.82382 26.9721 2.83434 20.4487C0.270704 16.2509 1.84057 8.88509 10.0644 8.58988V12.6292C9.43787 12.73 8.76815 12.8884 8.15605 13.0972C6.32694 13.7164 5.28996 14.8757 5.57801 16.9206C6.1325 20.8375 13.3193 21.9967 12.7216 14.3429V0.00720023H16.6895V0Z",fill:"currentColor"})]})}),uK=A.forwardRef((e,t)=>
98lK(e,t)),cK=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{d:"M14.2396 10.1624L23.0035 0H20.9267L13.3171 8.82384L7.23928 0H0.229248L9.42009 13.3432L0.229248 24H2.30612L10.3421 14.6817L16.7607 24H23.7707L14.2391 10.1624H14.2396ZM11.3951 13.4608L10.4639 12.1321L3.05444 1.55962H6.2444L12.2239 10.0919L13.1551 11.4206L20.9277 22.5113H17.7378L11.3951 13.4613V13.4608Z",fill:"currentColor"})]})}),fK=A.forwardRef((e,t)=>cK(e,t)),dK=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.8007 4.81577C23.5234 5.54239 23.7578 7.19681 23.7578 7.19681L23.7558 7.19486C23.9055 8.48538 23.987 9.78286 24 11.0819V12.9102C23.9897 14.2092 23.9101 15.5067 23.7617 16.7972C23.7617 16.7972 23.5273 18.4536 22.8065 19.1802C21.9825 20.0412 21.0712 20.1308 20.5547 20.1816C20.4983 20.1872 20.4465 20.1923 20.4001 20.1979C17.0463 20.446 12.001 20.446 12.001 20.446C12.001 20.446 5.76023 20.3913 3.84016 20.2077C3.74765 20.1902 3.63549 20.1766 3.50852 20.1613C2.89831 20.0875 1.94623 19.9725 1.18954 19.1802C0.472703 18.4438 0.238295 16.7894 0.238295 16.7894C0.0900342 15.4989 0.0104913 14.2014 0 12.9024V11.0839C0.0103244 9.78487 0.0898673 8.48733 0.238295 7.19681C0.238295 7.19681 0.468793 5.54239 1.19541 4.81577C2.01823 3.95429 2.92809 3.86507 3.44354 3.81457C3.50075 3.80894 3.55308 3.80379 3.59991 3.79812C6.95955 3.55396 11.999 3.55396 11.999 3.55396C11.999 3.55396 17.0404 3.55396 20.3962 3.79812C20.4426 3.80374 20.4944 3.80885 20.5511 3.81442C21.0665 3.86521 21.9788 3.95515 22.8007 4.81577ZM9.51444 8.36487V15.1096L15.9974 11.748L9.51444 8.36487Z",fill:"currentColor"})]})}),hK=A.forwardRef((e,t)=>dK(e,t)),pK=(e,t)=>C.jsx(Zn,{...e,children:({title:n,titleId:r,...o})=>C.jsxs("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r,...o,children:[n?C.jsx("title",{id:r,children:n}):null,C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99995 1.69996C4.52056 1.69996 1.69995 4.52057 1.69995 7.99996C1.69995 11.4794 4.52056 14.3 7.99995 14.3C11.4793 14.3 14.3 11.4794 14.3 7.99996C14.3 4.52057 11.4793 1.69996 7.99995 1.69996ZM0.299952 7.99996C0.299952 3.74737 3.74736 0.299961 7.99995 0.299961C12.2525 0.299961 15.7 3.74737 15.7 7.99996C15.7 12.2526 12.2525 15.7 7.99995 15.7C3.74736 15.7 0.299952 12.2526 0.299952 7.99996ZM7.26085 9.68188L10.1253 5.07059L11.3146 5.80933L7.93529 11.2493L7.4205 12.078L6.80032 11.325L4.4196 8.43402L5.50031 7.54404L7.26085 9.68188Z",fill:"currentColor"})]})}),zO=A.forwardRef((e,t)=>pK(e,t));var N3={exports:{}};var N4;function mK(){return N4||(N4=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",l=0;l<arguments.length;l++){var f=arguments[l];f&&(s=o(s,r(f)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var f in s)t.call(s,f)&&s[f]&&(l=o(l,f));return l}function o(s,l){return l?s?s+" "+l:s+l:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(N3)),N3.exports}var vK=mK();const Or=Da(vK),qO=(e,{all:t,top:n,bottom:r,y:o,left:s,right:l,x:f})=>{const m={[`${e}Top`]:o??n,[`${e}Right`]:f??l,[`${e}Bottom`]:o??r,[`${e}Left`]:f??s,[e]:t};return Object.fromEntries(Object.entries(m).filter(([,p])=>p!==void 0).map(([p,v])=>[p,{responsiveValue:v}]))},gK=({m:e,mt:t,mb:n,my:r,ml:o,mr:s,mx:l})=>qO("margin",{all:e,top:t,bottom:n,y:r,left:o,right:s,x:l}),yK=({p:e,pt:t,pb:n,py:r,pl:o,pr:s,px:l})=>qO("padding",{all:e,top:t,bottom:n,y:r,left:o,right:s,x:l});var bK=/[A-Z]/g,_K=/^ms-/,I3={};function SK(e){return"-"+e.toLowerCase()}function EK(e){if(I3.hasOwnProperty(e))return I3[e];var t=e.replace(bK,SK);return I3[e]=_K.test(t)?"-"+t:t}const Qb="base",GO=e=>({breakpoint:Qb,value:e}),xK=({responsiveValue:e,defaultValue:t,mapCssValue:n=r=>typeof r=="number"?yY(r):r?.toString()})=>{const r=p=>p!==void 0?n(p):void 0;if(G1(e))return r(e??t);const o=q1(),s=qx(),l=e.below?[...o].reverse():o;let f=l.map((p,v)=>{const g=e.below?s[p]:s[l[v-1]],y=e&&p in e?r(e[p]??t):null;return{breakpoint:v===0?Qb:g,value:y!==void 0?y:"unset"}}).filter(p=>p.value!==null);const m=r(t);return f.length===0?m:(m!==void 0&&f[0].breakpoint!==Qb&&(f=[GO(m),...f]),f[0].breakpoint===Qb&&f[0].value==="unset"&&f.shift(),f)},wK=(e,t,{responsiveValue:n,defaultValue:r,mapCssValue:o})=>{const s=xK({responsiveValue:n,defaultValue:r,mapCssValue:o});if(s===void 0)return;const l=Array.isArray(s)?s:[GO(s)];return l.length===1&&l[0].breakpoint==="base"?{inline:{name:t,value:l[0].value}}:{css:l.map(({breakpoint:m,value:p})=>{const v=EK(t),g=`.${e} { ${v}: ${p}; }`;if(m==="base")return g;const y=!G1(n)&&n.below,S=y?"max-width":"min-width",x=y?`${m-1}px`:`${m}px`;return`@media screen and (${S}: ${x}) { ${g} }`}).join(` 99`)}},CK=(e,t)=>{const n=Object.entries(t).map(([s,l])=>{if(l)return wK(e,s,l)}).filter(s=>!!s),r=n.map(s=>"css"in s?s.css:void 0).filter(s=>!!s),o=n.map(s=>"inline"in s?s.inline:void 0).filter(s=>!!s).reduce((s,{name:l,value:f})=>({...s,[l]:f}),{});return{cssStyles:r,inlineStyles:o}},TK="mrrp-",o2=({children:e,properties:t,variables:n={}})=>{const r=BO(TK),{cssStyles:o,inlineStyles:s}=CK(r,{...t,...n}),l=o.length>0;return C.jsxs(C.Fragment,{children:[o.map(f=>C.jsx("style",{"data-testid":"responsive-base-style","data-test-for":r,children:f},f)),C.jsx(A.Fragment,{children:e({className:l?r:"",style:s})},r)]})},RK="box-module_dark__L19UP",OK="box-module_citrus__AvZft",AK="box-module_grapefruit__ELOUQ",kK="box-module_forest__CRQw7",NK={"error-light":"box-module_error-light__-Q-tt","error-dark":"box-module_error-dark__j1X-A","error-border":"box-module_error-border__T6pjM","success-light":"box-module_success-light__VbnT6","success-border":"box-module_success-border__SBXcj","info-light":"box-module_info-light__wjfxD","info-dark":"box-module_info-dark__oz1Rb","info-border":"box-module_info-border__csc2i","promo-light":"box-module_promo-light__gmhX7","promo-dark":"box-module_promo-dark__zYbrG","promo-border":"box-module_promo-border__SgIjv",dark:RK,citrus:OK,grapefruit:AK,forest:kK,"navy-white":"box-module_navy-white__qZwso","navy-citrus":"box-module_navy-citrus__-4EW8","card-1":"box-module_card-1__pD3UN","card-2":"box-module_card-2__4H67U"},ht=A.forwardRef((({as:e,color:t,bgColor:n,display:r,height:o,maxHeight:s,maxWidth:l,minHeight:f,minWidth:m,width:p,variant:v,m:g,mt:y,mb:S,my:x,ml:w,mr:R,mx:T,p:I,pt:k,pb:L,py:H,pl:M,pr:j,px:K,style:P,...q},Q)=>{const $=e||"div",W=J=>!v&&J?FO[J]:void 0,G={...gK({m:g,mt:y,mb:S,my:x,ml:w,mr:R,mx:T}),...yK({p:I,pt:k,pb:L,py:H,pl:M,pr:j,px:K}),backgroundColor:{responsiveValue:n,mapCssValue:W},color:{responsiveValue:t,mapCssValue:W},display:{responsiveValue:r},height:{responsiveValue:o},maxHeight:{responsiveValue:s},maxWidth:{responsiveValue:l},minHeight:{responsiveValue:f},minWidth:{responsiveValue:m},width:{responsiveValue:p}};return C.jsx(o2,{properties:G,children:({className:J,style:V})=>C.jsx($,{style:{...V,...P},ref:Q,...q,className:Or(J,q.className,v?NK[v]:void 0)})})}));ht.displayName="Box";const $O=A.forwardRef((({as:e,onClick:t,disabled:n,m:r,mt:o,mb:s,my:l,ml:f,mr:m,mx:p,style:v,...g},y)=>{const S=e||"button",x=S==="button",w=S==="label",R="href"in g,T=!x&&!w&&!R&&(n||t),I={m:r,mt:o,mb:s,my:l,ml:f,mr:m,mx:p},k={};x&&(k.type="button"),T&&(k.role="button",k.tabIndex=0),n&&(k["aria-disabled"]=n,k.tabIndex=-1);const L=M=>{if(n){M.preventDefault();return}t?.(M)},H={as:S,...k,...I,...g};return C.jsx(ht,{onClick:L,style:v,ref:y,...H})}
99)),IK="text-module_knockout__cNC4J",Vv={"title-xxlarge":"text-module_title-xxlarge__pNQPt","title-xlarge":"text-module_title-xlarge__w52uI","title-large":"text-module_title-large__CDbyy","title-medium":"text-module_title-medium__IDF2s","title-small":"text-module_title-small__jUR8R","title-xsmall":"text-module_title-xsmall__dhevl","title-xxsmall":"text-module_title-xxsmall__F60CM","subtitle-medium":"text-module_subtitle-medium__zS-8R","subtitle-small":"text-module_subtitle-small__qVaL9","eyebrow-medium":"text-module_eyebrow-medium__zAD2h","eyebrow-small":"text-module_eyebrow-small__uiMWo","display-xlarge":"text-module_display-xlarge__If7PU","display-large":"text-module_display-large__HYy4X","display-medium":"text-module_display-medium__KC9g1","body-large":"text-module_body-large__Cs4QL","body-large-fixed":"text-module_body-large-fixed__tQ-0L","body-medium":"text-module_body-medium__jnngv","body-medium-fixed":"text-module_body-medium-fixed__pDSk5","body-small":"text-module_body-small__Rv233","body-small-fixed":"text-module_body-small-fixed__xY2Gw","body-xsmall-fixed":"text-module_body-xsmall-fixed__I5gCv","body-xsmall":"text-module_body-xsmall__bTg0T","short-regular-1":"text-module_short-regular-1__eTUgE","short-regular-2":"text-module_short-regular-2__-LzqE","short-regular-3":"text-module_short-regular-3__62b2V","short-regular-4":"text-module_short-regular-4__27DUV","short-medium-1":"text-module_short-medium-1__v9GF4","short-medium-2":"text-module_short-medium-2__6vz18","short-medium-3":"text-module_short-medium-3__glbqf","short-medium-4":"text-module_short-medium-4__Yhqcn","standard-regular-1":"text-module_standard-regular-1__x6v-q","standard-regular-2":"text-module_standard-regular-2__qka6h","standard-regular-3":"text-module_standard-regular-3__wSZ4v","standard-regular-4":"text-module_standard-regular-4__iftd7","standard-regular-5":"text-module_standard-regular-5__Eqfnt","standard-regular-6":"text-module_standard-regular-6__diUPV","standard-regular-7":"text-module_standard-regular-7__gxxBS","standard-regular-8":"text-module_standard-regular-8__DS7Mg","standard-regular-9":"text-module_standard-regular-9__0Z4V9","standard-regular-10":"text-module_standard-regular-10__7p3mq","standard-regular-11":"text-module_standard-regular-11__ucvd6","standard-regular-12":"text-module_standard-regular-12__-ox-q","standard-medium-1":"text-module_standard-medium-1__YZFyW","standard-medium-2":"text-module_standard-medium-2__PSMXI","standard-medium-3":"text-module_standard-medium-3__q0Jp9","standard-medium-4":"text-module_standard-medium-4__zR-nU","standard-medium-5":"text-module_standard-medium-5__lmlMv","standard-medium-6":"text-module_standard-medium-6__30BUQ","standard-medium-7":"text-module_standard-medium-7__Hz3Da","standard-medium-8":"text-module_standard-medium-8__uFit0","standard-medium-9":"text-module_standard-medium-9__QN31t","standard-medium-10":"text-module_standard-medium-10__rO25R","standard-medium-11":"text-module_standard-medium-11__SZr7H","standard-medium-12":"text-module_standard-medium-12__PMfKr","tall-regular-2":"text-module_tall-regular-2__3ToVM","tall-regular-3":"text-module_tall-regular-3__mec2B","tall-regular-4":"text-module_tall-regular-4__yw6dT","tall-medium-2":"text-module_tall-medium-2__ICxiu","tall-medium-3":"text-module_tall-medium-3__8FrZ8","tall-medium-4":"text-module_tall-medium-4__ymmGO","tall-italic-2":"text-module_tall-italic-2__L04-v","tall-italic-3":"text-module_tall-italic-3__AtyMz","tall-italic-4":"text-module_tall-italic-4__5l5bm","has-bottom-spacing":"text-module_has-bottom-spacing__sWUa9","max-lines-1":"text-module_max-lines-1__XKPzm","max-lines-2":"text-module_max-lines-2__tiFue","max-lines-3":"text-module_max-lines-3__MZT2J","knockout-wrapper":"text-module_knockout-wrapper__xPt7Z",knockout:IK,"knockout-inverse":"text-module_knockout-inverse__cn-ig"},MK={"title-xxlarge":"h1","title-xlarge":"h1","title-large":"h2","title-medium":"h2","title-small":"h3","title-xsmall":"h3","title-xxsmall":"h3","subtitle-medium":"h4","subtitle-small":"h4","display-xlarge":"h2","display-large":"h2","display-medium":"h2","eyebrow-medium":"h2","eyebrow-small":"h2","body-large":"p","body-large-fixed":"p","body-medium":"p","body-medium-fixed":"p","body-small":"p","body-small-fixed":"p","body-xsmall":"p","body-xsmall-fixed":"p"},dn=A.forwardRef((({setting:e,as:t,align:n,height:r,family:o,maxLines:s,scale:l,color:f,variant:m="default",spacingBottom:p,m:v,mt:g,mb:y,my:S,ml:x,mr:w,mx:R,style:T,children:I,...k},L)=>{const H=t||(e?MK[e]:"span"),M={m:v,mt:g,mb:y,my:S,ml:x,mr:w,mx:R};let j;e?j=e:(r||o||l)&&(j=`${r||"standard"}-${o||"regular"}-${l||"2"}`);
99const K=Or(j?Vv[j]:void 0,{[Vv["has-bottom-spacing"]]:p,[Vv[`max-lines-${s}`]]:s,[Vv[m]]:m!=="default"}),P=m==="knockout"||m==="knockout-inverse";let q=f;return!q&&P&&(q=m==="knockout"?"gray-16":"white"),C.jsx(o2,{properties:{textAlign:{responsiveValue:n}},children:({className:Q,style:$})=>{const W=P?C.jsx("span",{className:Vv["knockout-wrapper"],children:I}):I;return C.jsx(ht,{ref:L,as:H,color:q,style:{...$,...T},...M,...k,className:Or(K,k.className,Q),children:W})}})}));dn.displayName="Text";var ef=j6();const DK="iconButton-module_root__-KxKp",LK="iconButton-module_knockout__AXptQ",PK="iconButton-module_inherited__RZdTP",FK="iconButton-module_overlay__E48Z0",M3={root:DK,default:"iconButton-module_default__SF7hH",knockout:LK,inherited:PK,overlay:FK},jK=({"aria-label":e,children:t,inheritsColor:n=!1,variant:r,disabled:o,...s},l)=>{const f=Jc(),m=Ss(s,"IconButton",{stylingProps:"warn",dangerousStylingProps:"rewrite"});let p;r?p=vl(f,r):n&&(p="inherited");const v=Or(M3.root,m.className,p?M3[p]:M3.default);return C.jsx($O,{"aria-label":e,disabled:o,ref:l,...m,className:v,children:C.jsx(xY,{defaultPurpose:"decorative",children:t})})},$1=A.forwardRef(jK);$1.displayName="IconButton";const UK="interactableContainer-module_root__RF1kf",BK="interactableContainer-module_icon__asdem",ub={root:UK,icon:BK,"position-left":"interactableContainer-module_position-left__YEmhH","position-right":"interactableContainer-module_position-right__Z-3wM","align-top":"interactableContainer-module_align-top__BP2ZT","align-middle":"interactableContainer-module_align-middle__Rt-8l"},I4=C.jsx(i2,{}),M4="right",D4="top",Wx=({children:e,icon:t=I4,iconPosition:n=M4,iconVAlign:r=D4,iconLabel:o,iconTitle:s,iconInheritsColor:l,iconVariant:f,onClickIcon:m,...p})=>{const v=Jc(),g=vl(v,t,I4),y=vl(v,n,M4),S=vl(v,r,D4),x=Ss(p,"InteractableContainer",{stylingProps:"warn",dangerousStylingProps:"rewrite"}),w=Or(ub.root,x.className),R=m?C.jsx(ht,{className:Or(ub.icon,ub[`position-${y}`],ub[`align-${S}`]),children:C.jsx($1,{"aria-label":o,title:s,onClick:m,inheritsColor:l,variant:f,children:g})}):null,T=m&&y==="left",I=m&&y==="right";return C.jsxs(ht,{...x,className:w,children:[T&&R,e,I&&R]})},VK="banner-module_content__9qvSs",HK="banner-module_copy__ET8Mf",zK="banner-module_headline__wAd0-",qK="banner-module_links__2xgtC",GK="banner-module_left__jvtBJ",$K="banner-module_center__Tnngc",QK="banner-module_message__-UiNE",ps={content:VK,"has-close":"banner-module_has-close__E-h6N",copy:HK,headline:zK,"headline-icon":"banner-module_headline-icon__5hNl7",links:qK,"secondary-link":"banner-module_secondary-link__YD-Fn",left:GK,center:$K,message:QK},L4=C.jsx(Qx,{className:ps["headline-icon"],title:"error icon",color:"inherit"}),WK={"error-dark":L4,"error-border":L4,"success-border":C.jsx(zO,{className:ps["headline-icon"],title:"success icon",color:"inherit"})},QO=({children:e,hAlign:t="left",headline:n,icon:r,onClose:o,primaryLink:s,secondaryLink:l,variant:f="info-light",...m})=>{const p=Jc(),v=vl(p,t,"left"),g=s||l,y=r&&C.jsx(ht,{className:ps["headline-icon"],children:r})||WK[f],S=`${f}-message`,x=`${f}-label`;let w="status",R="polite";(f==="error-dark"||f==="error-border")&&(w=g?"alertdialog":"alert",R="assertive");const T=Ss(m,"Banner",{stylingProps:"makeDangerous",dangerousStylingProps:"keep"});return C.jsx(Wx,{variant:f,role:w,"aria-live":R,"aria-describedby":S,...T,onClickIcon:o,icon:{sm:C.jsx(i2,{}),lg:C.jsx(HO,{})},iconVAlign:{sm:"top",lg:"middle"},iconLabel:"close banner",iconVariant:"inherited",...n&&{"aria-labelledby":x},children:C.jsxs(ht,{className:Or(ps.content,ps[v],{[ps["has-close"]]:o}),...w==="alertdialog"&&{role:"document",tabIndex:0},"data-testid":"content",children:[C.jsxs(ht,{className:ps.copy,children:[n&&C.jsxs(dn,{id:x,height:"standard",family:"medium",scale:"3",className:ps.headline,children:[y,n," "]}),C.jsx(dn,{as:"p",id:S,height:"tall",family:"regular",scale:"3",className:ps.message,children:e})]}),g&&C.jsxs(ht,{className:ps.links,children:[l&&C.jsx(ht,{as:"span",className:ps["secondary-link"],children:l}),s]})]})})},YK="button-module_root__4aN5b",KK="button-module_slim__tejZZ",XK="button-module_primary__wFcnL",ZK="button-module_secondary__-HdwP",JK="button-module_tertiary__6JWVt",eX="button-module_outline__4tMM9",tX="button-module_text__9laS6",
99nX="button-module_apple__oVLJt",rX="button-module_facebook__Av3VW",iX="button-module_google__u2m0B",oX="button-module_iMessage__XcsD7",aX="button-module_linkedin__7Hu2Q",sX="button-module_messenger__ay6dR",lX="button-module_pinterest__ZgPx7",uX="button-module_twitter__uY4rF",cX="button-module_whatsapp__ipo3l",fX="button-module_social__75pAR",dX="button-module_paypal__Ewmyd",ad={root:YK,"is-full-width":"button-module_is-full-width__39OpZ","is-fixed-width":"button-module_is-fixed-width__A-djg",slim:KK,"slim-inverse":"button-module_slim-inverse__vOHhS","filled-statement":"button-module_filled-statement__AhBHg","filled-statement-large":"button-module_filled-statement-large__Z-ihl","filled-statement-slim":"button-module_filled-statement-slim__HHdtl",primary:XK,"filled-staple":"button-module_filled-staple__MauXo","filled-staple-large":"button-module_filled-staple-large__BoyxZ","filled-staple-slim":"button-module_filled-staple-slim__oRVjI",secondary:ZK,tertiary:JK,"filled-accent":"button-module_filled-accent__NLXxj","filled-accent-large":"button-module_filled-accent-large__2hKGu","filled-accent-slim":"button-module_filled-accent-slim__RaRM5","filled-holiday-forest":"button-module_filled-holiday-forest__UD5nW","filled-holiday-grapefruit":"button-module_filled-holiday-grapefruit__ezn2S","filled-holiday-snow":"button-module_filled-holiday-snow__-fgwR","filled-overlay":"button-module_filled-overlay__cIVsH","filled-overlay-large":"button-module_filled-overlay-large__oxzNu","filled-overlay-slim":"button-module_filled-overlay-slim__eSPr8",outline:eX,"outline-large":"button-module_outline-large__BSh0Y","secondary-alt":"button-module_secondary-alt__FIHvk","tertiary-alt":"button-module_tertiary-alt__pNW2o","outline-holiday-forest":"button-module_outline-holiday-forest__fgj84","outline-inverse":"button-module_outline-inverse__j58-G","outline-inverse-large":"button-module_outline-inverse-large__yYXt8","secondary-inverse":"button-module_secondary-inverse__bPKIV",text:tX,"text-holiday-forest":"button-module_text-holiday-forest__jNFE2","text-inverse":"button-module_text-inverse__C2Q7k","start-icon":"button-module_start-icon__c82v-","end-icon":"button-module_end-icon__jiHLZ",apple:nX,facebook:rX,google:iX,iMessage:oX,linkedin:aX,messenger:sX,pinterest:lX,twitter:uX,whatsapp:cX,social:fX,paypal:dX,"is-inline":"button-module_is-inline__si5n2"},hX=({children:e,endIcon:t,size:n,startIcon:r,variant:o,width:s,"aria-label":l,isFullWidth:f,isInline:m,...p},v)=>{const g=Jc(),y=s!==void 0,S=vl(g,s,"fixed"),x=vl(g,o,"filled-statement"),w=vl(g,n),T=w==="xsmall"||w==="small"?"slim":x,I=Ss(p,"Button",{stylingProps:"warn",dangerousStylingProps:"rewrite"}),k=Or(ad.root,I.className,ad[T],{[ad["is-inline"]]:!y&&m||S==="fit",[ad["is-full-width"]]:!y&&f||S==="fill",[ad["is-fixed-width"]]:S==="fixed",[ad["start-icon"]]:r,[ad["end-icon"]]:t});return C.jsxs($O,{"aria-label":l,ref:v,...I,className:k,children:[C.jsx(h_,{children:r}),e,C.jsx(h_,{children:t})]})},Gc=A.forwardRef(hX);Gc.displayName="Button";const pX={stretch:"stretch",top:"flex-start",center:"center",bottom:"flex-end"},mX={start:"flex-start",center:"center",end:"flex-end"},WO=A.forwardRef((({children:e,spacing:t=0,hAlign:n="start",vAlign:r="stretch",wrap:o=!1,as:s,...l},f)=>{const m=s==="ol"||s==="ul",p=A.Children.toArray(e).map((w,R)=>{let T,I;return o?(T=t,I=t):R>0&&(I=t),C.jsx(ht,{"data-testid":"inline-item",as:m?"li":void 0,mt:T,ml:I,children:w},R)});if(!p.length)return null;const v=$b(w=>typeof w=="string"?`-${w}`:typeof w=="number"?-w:w,t),{className:g,style:y,...S}=Ss(l,"Inline",{stylingProps:"warn",dangerousStylingProps:"rewrite"}),x={justifyContent:{responsiveValue:n,defaultValue:"start",mapCssValue:w=>mX[w]},alignItems:{responsiveValue:r,defaultValue:"stretch",mapCssValue:w=>pX[w]},flexWrap:{responsiveValue:o,mapCssValue:w=>w?"wrap":void 0}};return C.jsx(o2,{properties:x,children:({className:w,style:R})=>{if(!o)return C.jsx(ht,{as:s,"data-testid":"inline",ref:f,className:Or(w,g),style:{...R,...y},display:"flex",...S,children:p});const T={as:s,...o?{mt:v,ml:v}:{}};return C.jsx(ht,{"data-testid":"inline",...S,children:C.jsx(ht,{"data-testid":"inline-wrap",...T,ref:f,className:Or(w,g),style:{...R,...y},display:"flex",children:p})})}})}));
99WO.displayName="Inline";const vX="divider-module_section__eTjaU",gX="divider-module_navy__KHi-F",yX="divider-module_statement__QxpHK",bX="divider-module_item__seURr",_X="divider-module_subtle__nr98t",D3={section:vX,"with-text":"divider-module_with-text__azGuu","light-gray":"divider-module_light-gray__fh4AM",navy:gX,statement:yX,item:bX,subtle:_X},SX=({variant:e="section",color:t="gray",children:n,...r})=>{const o=n?"div":"hr",s=o!=="hr"?"separator":void 0,l=Or(D3[e],D3[t],{[D3["with-text"]]:n}),f=Ss(r,"Divider",{stylingProps:"warn",dangerousStylingProps:"rewrite"});return C.jsx(ht,{as:o,role:s,className:l,...f,children:n})},EX={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"},c6=A.forwardRef((({children:e,divider:t,hAlign:n="stretch",spacing:r=0,...o},s)=>{const{style:l,className:f,...m}=Ss(o,"Stack",{stylingProps:"warn",dangerousStylingProps:"rewrite"}),p=o.as==="ol"||o.as==="ul",v=A.Children.toArray(e).map((y,S)=>{let x;return t&&S>0&&(x=C.jsx(ht,{mb:r,children:C.jsx(SX,{variant:t,"data-testid":"stack-divider"})})),C.jsxs(ht,{"data-testid":"stack-item",as:p?"li":void 0,mt:S>0?r:void 0,children:[x,y]},S)});if(!v.length)return null;const g={alignItems:{responsiveValue:n,defaultValue:"stretch",mapCssValue:y=>EX[y]}};return C.jsx(o2,{properties:g,children:({className:y,style:S})=>C.jsx(ht,{"data-testid":"stack",ref:s,className:Or(y,f),display:"flex",style:{flexDirection:"column",...S,...l},...m,children:v})})}));c6.displayName="Stack";const xX="link-module_cta__jYj0P",wX="link-module_tertiary__2iVfG",CX="link-module_root__FdQcb",TX="link-module_contents__Uj8HB",su={cta:xX,tertiary:wX,root:CX,"has-start-icon":"link-module_has-start-icon__WHTCz","has-end-icon":"link-module_has-end-icon__BYSNk","underline-inverse":"link-module_underline-inverse__gvrVd","underline-initial":"link-module_underline-initial__i6pQz",contents:TX,default:"link-module_default__2b1AQ","on-dark":"link-module_on-dark__x3QZ4"},P4=.25,RX=e=>{if(!e||typeof e!="object")return!1;const t=e;return"start"in t||"end"in t},OX=e=>{let t,n;return e&&(RX(e)?(t=e.start,n=e.end):(t=e,n=e)),{start:t,end:n}},Q1=A.forwardRef((({as:e,children:t,endIcon:n,size:r="inherit",iconSpacing:o,startIcon:s,variant:l="default",underline:f,...m},p)=>{const v=s||n,g=Or(su.root,m.className,m.dangerouslySetClassName,{[su.default]:l==="default",[su["on-dark"]]:l==="on-dark",[su.cta]:r==="cta",[su.tertiary]:r==="tertiary",[su["has-start-icon"]]:s,[su["has-end-icon"]]:n,[su[`underline-${f}`]]:f});let y=t;const S=Ss(m,"Link",{stylingProps:"warn",dangerousStylingProps:"rewrite"});if(v){const{start:x=P4,end:w=P4}=OX(o);y=C.jsxs(C.Fragment,{children:[C.jsx(h_,{defaultColor:"inherit",children:s}),C.jsx(dn,{className:su.contents,ml:s?x:void 0,mr:n?w:void 0,children:t}),C.jsx(h_,{defaultColor:"inherit",children:n})]})}return C.jsx(dn,{ref:p,as:e||"a",...S,className:g,children:y})}));Q1.displayName="Link";const AX=(e,t,n)=>{const r=/^\//,o=/\/$/,s=e.replace(o,""),l=t.replace(r,""),f=Object.entries(n).filter(([p])=>p!=="e").map(([p,v])=>`${p}_${v}`).join(",");let m="";return"e"in n&&(m=Array.isArray(n.e)?n.e.map(p=>`e_${p}`).join("/"):`e_${n.e}`),[s,m,f,l].filter(Boolean).join("/")},kX=()=>{const e=[...q1()].reverse(),t=qx(),n=e.map((r,o)=>o+1<e.length?[r,t[e[o+1]]]:[r,1]);return Object.fromEntries(n)},NX="cloudinary-image-module_image__6EJZA",IX={image:NX},YO=A.createContext(void 0);YO.Provider;const MX=()=>A.useContext(YO),DX="https://d3n78nkjl8tizo.cloudfront.net",LX={q:"auto",c:"fit",f:"auto"},PX=e=>{const t=kX(),n=Object.entries(e).map(([r,o])=>[t[r],o]).sort(([r],[o])=>o-r);return n.map(([r,o],s)=>s===n.length-1?`${o}px`:`(min-width: ${r}px) ${o}px`).join(", ")},FX=({sizes:e,upscale:t})=>{const n=Object.values(e),r=t?n.map(o=>o*2):[];return[...new Set([...n,...r])].sort((o,s)=>o-s)},jX=({baseUrl:e,mediaPath:t,sizes:n,transforms:r})=>{const o=e.startsWith("https://res.cloudinary.com/stitch-fix/image")?e.replace("https://res.cloudinary.com",DX):e,l=t.split(".").pop()==="gif",m=FX({sizes:n,upscale:!l}).map(p=>{const v={...LX,...l?{fl:"awebp"}:{},...r,w:p};return{url:AX(o,t,v),width:p}});return{srcSet:m.map(({url:p,width:v})=>`${p} ${v}w`).join(", "),fallback:m[0].url}},UX=()=>!jO(),KO=({alt:e,baseUrl:t,lazy:n,mediaPath:r,sizes:o,transforms:s,onLoad:l,objectFit:f="contain",objectPosition:m,fetchPriority:p,width:v,height:g})=>{const y=MX(),S=n??y?.lazy??UX(),{srcSet:x,fallback:w}=jX({baseUrl:t,mediaPath:r,sizes:o,transforms:s});return C.jsx("img",{"data-testid":"responsive-image",alt:e,srcSet:x,src:w,sizes:PX(o),loading:S?"lazy":void 0,onLoad:l,width:v,height:g,fetchPriority:p??y?.fetchPriority,style:{objectPosition:m,objectFit:f},className:IX.image})};function ii(e,t,{checkForDefaultPrevented:n=!0}={}
99){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function F4(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function BX(...e){return t=>{let n=!1;const r=e.map(o=>{const s=F4(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():F4(e[o],null)}}}}function Ia(...e){return A.useCallback(BX(...e),e)}function a2(e,t=[]){let n=[];function r(s,l){const f=A.createContext(l);f.displayName=s+"Context";const m=n.length;n=[...n,l];const p=g=>{const{scope:y,children:S,...x}=g,w=y?.[e]?.[m]||f,R=A.useMemo(()=>x,Object.values(x));return C.jsx(w.Provider,{value:R,children:S})};p.displayName=s+"Provider";function v(g,y){const S=y?.[e]?.[m]||f,x=A.useContext(S);if(x)return x;if(l!==void 0)return l;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[p,v]}const o=()=>{const s=n.map(l=>A.createContext(l));return function(f){const m=f?.[e]||s;return A.useMemo(()=>({[`__scope${e}`]:{...f,[e]:m}}),[f,m])}};return o.scopeName=e,[r,VX(o,...t)]}function VX(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const l=r.reduce((f,{useScope:m,scopeName:p})=>{const g=m(s)[`__scope${p}`];return{...f,...g}},{});return A.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function p_(e){const t=A.forwardRef((n,r)=>{let{children:o,...s}=n,l=null,f=!1;const m=[];j4(o)&&typeof cb=="function"&&(o=cb(o._payload)),A.Children.forEach(o,y=>{if($X(y)){f=!0;const S=y;let x="child"in S.props?S.props.child:S.props.children;j4(x)&&typeof cb=="function"&&(x=cb(x._payload)),l=zX(S,x),m.push(l?.props?.children)}else m.push(y)}),l?l=A.cloneElement(l,void 0,m):!f&&A.Children.count(o)===1&&A.isValidElement(o)&&(l=o);const p=l?GX(l):void 0,v=Ia(r,p);if(!l){if(o||o===0)throw new Error(f?KX(e):YX(e));return o}const g=qX(s,l.props??{});return l.type!==A.Fragment&&(g.ref=r?v:p),A.cloneElement(l,g)});return t.displayName=`${e}.Slot`,t}var HX=Symbol.for("radix.slottable"),zX=(e,t)=>{if("child"in e.props){const n=e.props.child;return A.isValidElement(n)?A.cloneElement(n,void 0,e.props.children(n.props.children)):null}return A.isValidElement(t)?t:null};function qX(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...f)=>{const m=s(...f);return o(...f),m}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function GX(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function $X(e){return A.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===HX}var QX=Symbol.for("react.lazy");function j4(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===QX&&"_payload"in e&&WX(e._payload)}function WX(e){return typeof e=="object"&&e!==null&&"then"in e}var YX=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,KX=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,cb=A_[" use ".trim().toString()],XX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ui=XX.reduce((e,t)=>{const n=p_(`Primitive.${t}`),r=A.forwardRef((o,s)=>{const{asChild:l,...f}=o,m=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(m,{...f,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function XO(e,t){e&&ef.flushSync(()=>e.dispatchEvent(t))}function Sl(e){const t=A.useRef(e);return A.useEffect(()=>{t.current=e}),A.useMemo(()=>((...n)=>t.current?.(...n)),[])}function ZX(e,t=globalThis?.document){const n=Sl(e);A.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}
99var JX="DismissableLayer",f6="dismissableLayer.update",eZ="dismissableLayer.pointerDownOutside",tZ="dismissableLayer.focusOutside",U4,ZO=A.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yx=A.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:l,onDismiss:f,...m}=e,p=A.useContext(ZO),[v,g]=A.useState(null),y=v?.ownerDocument??globalThis?.document,[,S]=A.useState({}),x=Ia(t,j=>g(j)),w=Array.from(p.layers),[R]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),T=w.indexOf(R),I=v?w.indexOf(v):-1,k=p.layersWithOutsidePointerEventsDisabled.size>0,L=I>=T,H=rZ(j=>{const K=j.target,P=[...p.branches].some(q=>q.contains(K));!L||P||(o?.(j),l?.(j),j.defaultPrevented||f?.())},y),M=iZ(j=>{const K=j.target;[...p.branches].some(q=>q.contains(K))||(s?.(j),l?.(j),j.defaultPrevented||f?.())},y);return ZX(j=>{I===p.layers.size-1&&(r?.(j),!j.defaultPrevented&&f&&(j.preventDefault(),f()))},y),A.useEffect(()=>{if(v)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(U4=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(v)),p.layers.add(v),B4(),()=>{n&&(p.layersWithOutsidePointerEventsDisabled.delete(v),p.layersWithOutsidePointerEventsDisabled.size===0&&(y.body.style.pointerEvents=U4))}},[v,y,n,p]),A.useEffect(()=>()=>{v&&(p.layers.delete(v),p.layersWithOutsidePointerEventsDisabled.delete(v),B4())},[v,p]),A.useEffect(()=>{const j=()=>S({});return document.addEventListener(f6,j),()=>document.removeEventListener(f6,j)},[]),C.jsx(Ui.div,{...m,ref:x,style:{pointerEvents:k?L?"auto":"none":void 0,...e.style},onFocusCapture:ii(e.onFocusCapture,M.onFocusCapture),onBlurCapture:ii(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:ii(e.onPointerDownCapture,H.onPointerDownCapture)})});Yx.displayName=JX;var nZ="DismissableLayerBranch",JO=A.forwardRef((e,t)=>{const n=A.useContext(ZO),r=A.useRef(null),o=Ia(t,r);return A.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),C.jsx(Ui.div,{...e,ref:o})});JO.displayName=nZ;function rZ(e,t=globalThis?.document){const n=Sl(e),r=A.useRef(!1),o=A.useRef(()=>{});return A.useEffect(()=>{const s=f=>{if(f.target&&!r.current){let m=function(){eA(eZ,n,p,{discrete:!0})};const p={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=m,t.addEventListener("click",o.current,{once:!0})):m()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function iZ(e,t=globalThis?.document){const n=Sl(e),r=A.useRef(!1);return A.useEffect(()=>{const o=s=>{s.target&&!r.current&&eA(tZ,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function B4(){const e=new CustomEvent(f6);document.dispatchEvent(e)}function eA(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?XO(o,s):o.dispatchEvent(s)}var oZ=Yx,aZ=JO,gl=globalThis?.document?A.useLayoutEffect:()=>{},sZ=A_[" useId ".trim().toString()]||(()=>{}),lZ=0;function uZ(e){const[t,n]=A.useState(sZ());return gl(()=>{n(r=>r??String(lZ++))},[e]),e||(t?`radix-${t}`:"")}const cZ=["top","right","bottom","left"],$c=Math.min,Wo=Math.max,m_=Math.round,_d=Math.floor,yl=e=>({x:e,y:e}),fZ={left:"right",right:"left",bottom:"top",top:"bottom"};function v_(e,t,n){return Wo(e,$c(t,n))}function El(e,t){return typeof e=="function"?e(t):e}function Xo(e){return e.split("-")[0]}function Cu(e){return e.split("-")[1]}function Kx(e){return e==="x"?"y":"x"}function s2(e){return e==="y"?"height":"width"}function Ra(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function l2(e){return Kx(Ra(e))}function dZ(e,t,n){n===void 0&&(n=!1);const r=Cu(e),o=l2(e),s=s2(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=g_(l)),[l,g_(l)]}function hZ(e){const t=g_(e);return[d6(e),t,d6(t)]}function d6(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const V4=["left","right"],H4=["right","left"],pZ=["top","bottom"],mZ=["bottom","top"];function vZ(e,t,n){switch(e){case"top":case"bottom":return n?t?H4:V4:t?V4:H4;case"left":case"right":return t?pZ:mZ;default:return[]}}function gZ(e,t,n,r){const o=Cu(e);let s=vZ(Xo(e),n==="start",r);return o&&(s=s.map(l=>
99l+"-"+o),t&&(s=s.concat(s.map(d6)))),s}function g_(e){const t=Xo(e);return fZ[t]+e.slice(t.length)}function yZ(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xx(e){return typeof e!="number"?yZ(e):{top:e,right:e,bottom:e,left:e}}function y_(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function z4(e,t,n){let{reference:r,floating:o}=e;const s=Ra(t),l=l2(t),f=s2(l),m=Xo(t),p=s==="y",v=r.x+r.width/2-o.width/2,g=r.y+r.height/2-o.height/2,y=r[f]/2-o[f]/2;let S;switch(m){case"top":S={x:v,y:r.y-o.height};break;case"bottom":S={x:v,y:r.y+r.height};break;case"right":S={x:r.x+r.width,y:g};break;case"left":S={x:r.x-o.width,y:g};break;default:S={x:r.x,y:r.y}}switch(Cu(t)){case"start":S[l]-=y*(n&&p?-1:1);break;case"end":S[l]+=y*(n&&p?-1:1);break}return S}async function bZ(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:l,elements:f,strategy:m}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:g="floating",altBoundary:y=!1,padding:S=0}=El(t,e),x=Xx(S),R=f[y?g==="floating"?"reference":"floating":g],T=y_(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(R)))==null||n?R:R.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:p,rootBoundary:v,strategy:m})),I=g==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),L=await(s.isElement==null?void 0:s.isElement(k))?await(s.getScale==null?void 0:s.getScale(k))||{x:1,y:1}:{x:1,y:1},H=y_(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:I,offsetParent:k,strategy:m}):I);return{top:(T.top-H.top+x.top)/L.y,bottom:(H.bottom-T.bottom+x.bottom)/L.y,left:(T.left-H.left+x.left)/L.x,right:(H.right-T.right+x.right)/L.x}}const _Z=50,SZ=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:l}=n,f=l.detectOverflow?l:{...l,detectOverflow:bZ},m=await(l.isRTL==null?void 0:l.isRTL(t));let p=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y:g}=z4(p,r,m),y=r,S=0;const x={};for(let w=0;w<s.length;w++){const R=s[w];if(!R)continue;const{name:T,fn:I}=R,{x:k,y:L,data:H,reset:M}=await I({x:v,y:g,initialPlacement:r,placement:y,strategy:o,middlewareData:x,rects:p,platform:f,elements:{reference:e,floating:t}});v=k??v,g=L??g,x[T]={...x[T],...H},M&&S<_Z&&(S++,typeof M=="object"&&(M.placement&&(y=M.placement),M.rects&&(p=M.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):M.rects),{x:v,y:g}=z4(p,y,m)),w=-1)}return{x:v,y:g,placement:y,strategy:o,middlewareData:x}},EZ=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:l,elements:f,middlewareData:m}=t,{element:p,padding:v=0}=El(e,t)||{};if(p==null)return{};const g=Xx(v),y={x:n,y:r},S=l2(o),x=s2(S),w=await l.getDimensions(p),R=S==="y",T=R?"top":"left",I=R?"bottom":"right",k=R?"clientHeight":"clientWidth",L=s.reference[x]+s.reference[S]-y[S]-s.floating[x],H=y[S]-s.reference[S],M=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p));let j=M?M[k]:0;(!j||!await(l.isElement==null?void 0:l.isElement(M)))&&(j=f.floating[k]||s.floating[x]);const K=L/2-H/2,P=j/2-w[x]/2-1,q=$c(g[T],P),Q=$c(g[I],P),$=q,W=j-w[x]-Q,G=j/2-w[x]/2+K,J=v_($,G,W),V=!m.arrow&&Cu(o)!=null&&G!==J&&s.reference[x]/2-(G<$?q:Q)-w[x]/2<0,B=V?G<$?G-$:G-W:0;return{[S]:y[S]+B,data:{[S]:J,centerOffset:G-J-B,...V&&{alignmentOffset:B}},reset:V}}}),xZ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:l,initialPlacement:f,platform:m,elements:p}=t,{mainAxis:v=!0,crossAxis:g=!0,fallbackPlacements:y,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:w=!0,...R}=El(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const T=Xo(o),I=Ra(f),k=Xo(f)===f,L=await(m.isRTL==null?void 0:m.isRTL(p.floating)),H=y||(k||!w?[g_(f)]:hZ(f)),M=x!=="none";!y&&M&&H.push(...gZ(f,w,x,L));const j=[f,...H],K=await m.detectOverflow(t,R),P=[];let q=((r=s.flip)==null?void 0:r.overflows)||[];if(v&&P.push(K[T]),g){const G=dZ(o,l,L);P.push(K[G[0]],K[G[1]])}if(q=[...q,{placement:o,overflows:P}],!P.every(G=>G<=0)){var Q,$;const G=(((Q=s.flip)==null?void 0:Q.index)||0)+1,J=j[G];if(J&&(!(g==="alignment"?I!==Ra(J):!1)||q.every(ee=>Ra(ee.placement)===I?ee.overflows[0]>0:!0)))return{data:{index:G,overflows:q},reset:{placement:J}};let V=($=q.filter(B=>B.overflows[0]<=0).sort((B,ee)=>B.overflows[1]-ee.overflows[1])[0])==null?void 0:$.placement;if(!V)switch(S){case"bestFit":{var W;const B=(W=q.filter(ee=>
99{if(M){const ge=Ra(ee.placement);return ge===I||ge==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(ge=>ge>0).reduce((ge,ve)=>ge+ve,0)]).sort((ee,ge)=>ee[1]-ge[1])[0])==null?void 0:W[0];B&&(V=B);break}case"initialPlacement":V=f;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function q4(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function G4(e){return cZ.some(t=>e[t]>=0)}const wZ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=El(e,t);switch(o){case"referenceHidden":{const l=await r.detectOverflow(t,{...s,elementContext:"reference"}),f=q4(l,n.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:G4(f)}}}case"escaped":{const l=await r.detectOverflow(t,{...s,altBoundary:!0}),f=q4(l,n.floating);return{data:{escapedOffsets:f,escaped:G4(f)}}}default:return{}}}}},tA=new Set(["left","top"]);async function CZ(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=Xo(n),f=Cu(n),m=Ra(n)==="y",p=tA.has(l)?-1:1,v=s&&m?-1:1,g=El(t,e);let{mainAxis:y,crossAxis:S,alignmentAxis:x}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof x=="number"&&(S=f==="end"?x*-1:x),m?{x:S*v,y:y*p}:{x:y*p,y:S*v}}const TZ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:l,middlewareData:f}=t,m=await CZ(t,e);return l===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:o+m.x,y:s+m.y,data:{...m,placement:l}}}}},RZ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:l=!0,crossAxis:f=!1,limiter:m={fn:T=>{let{x:I,y:k}=T;return{x:I,y:k}}},...p}=El(e,t),v={x:n,y:r},g=await s.detectOverflow(t,p),y=Ra(Xo(o)),S=Kx(y);let x=v[S],w=v[y];if(l){const T=S==="y"?"top":"left",I=S==="y"?"bottom":"right",k=x+g[T],L=x-g[I];x=v_(k,x,L)}if(f){const T=y==="y"?"top":"left",I=y==="y"?"bottom":"right",k=w+g[T],L=w-g[I];w=v_(k,w,L)}const R=m.fn({...t,[S]:x,[y]:w});return{...R,data:{x:R.x-n,y:R.y-r,enabled:{[S]:l,[y]:f}}}}}},OZ=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:l}=t,{offset:f=0,mainAxis:m=!0,crossAxis:p=!0}=El(e,t),v={x:n,y:r},g=Ra(o),y=Kx(g);let S=v[y],x=v[g];const w=El(f,t),R=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(m){const k=y==="y"?"height":"width",L=s.reference[y]-s.floating[k]+R.mainAxis,H=s.reference[y]+s.reference[k]-R.mainAxis;S<L?S=L:S>H&&(S=H)}if(p){var T,I;const k=y==="y"?"width":"height",L=tA.has(Xo(o)),H=s.reference[g]-s.floating[k]+(L&&((T=l.offset)==null?void 0:T[g])||0)+(L?0:R.crossAxis),M=s.reference[g]+s.reference[k]+(L?0:((I=l.offset)==null?void 0:I[g])||0)-(L?R.crossAxis:0);x<H?x=H:x>M&&(x=M)}return{[y]:S,[g]:x}}}},AZ=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:l,elements:f}=t,{apply:m=()=>{},...p}=El(e,t),v=await l.detectOverflow(t,p),g=Xo(o),y=Cu(o),S=Ra(o)==="y",{width:x,height:w}=s.floating;let R,T;g==="top"||g==="bottom"?(R=g,T=y===(await(l.isRTL==null?void 0:l.isRTL(f.floating))?"start":"end")?"left":"right"):(T=g,R=y==="end"?"top":"bottom");const I=w-v.top-v.bottom,k=x-v.left-v.right,L=$c(w-v[R],I),H=$c(x-v[T],k),M=!t.middlewareData.shift;let j=L,K=H;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(K=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=I),M&&!y){const q=Wo(v.left,0),Q=Wo(v.right,0),$=Wo(v.top,0),W=Wo(v.bottom,0);S?K=x-2*(q!==0||Q!==0?q+Q:Wo(v.left,v.right)):j=w-2*($!==0||W!==0?$+W:Wo(v.top,v.bottom))}await m({...t,availableWidth:K,availableHeight:j});const P=await l.getDimensions(f.floating);return x!==P.width||w!==P.height?{reset:{rects:!0}}:{}}}};function u2(){return typeof window<"u"}function Di(e){return Zx(e)?(e.nodeName||"").toLowerCase():"#document"}function oi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xl(e){var t;return(t=(Zx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Zx(e){return u2()?e instanceof Node||e instanceof oi(e).Node:!1}function br(e){return u2()?e instanceof Element||e instanceof oi(e).Element:!1}function sr(e){return u2()?e instanceof HTMLElement||e instanceof oi(e).HTMLElement:!1}function im(e){return!u2()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof oi(e).ShadowRoot}function tf(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ro(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function kZ(e){return/^(table|td|th)$/.test(Di(e))}function c2(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const NZ=/transform|translate|scale|rotate|perspective|filter/,IZ=/paint|layout|strict|content/,sd=e=>!!e&&e!=="none";let L3;function Jx(e){const t=br(e)?Ro(e):e;return sd(t.transform)||sd(t.translate)||sd(t.scale)||sd(t.rotate)||sd(t.perspective)||!f2()&&(sd(t.backdropFilter)||sd(t.filter))||NZ.test(t.willChange||"")||IZ.test(t.contain||"")}function MZ(e){let t=xu(e);for(;sr(t)&&!vu(t);){if(Jx(t))return t;if(c2(t))return null;t=xu(t)}return null}function f2(){return L3==null&&(L3=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),L3}function vu(e){return/^(html|body|#document)$/.test(Di(e))}function Ro(e){return oi(e).getComputedStyle(e)}function d2(e){return br(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xu(e){if(Di(e)==="html")return e;const t=e.assignedSlot||e.parentNode||im(e)&&e.host||xl(e);return im(t)?t.host:t}function nA(e){const t=xu(e);return vu(t)?e.ownerDocument?e.ownerDocument.body:e.body:sr(t)&&tf(t)?t:nA(t)}function C1(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=nA(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),l=oi(o);if(s){const f=h6(l);
99return t.concat(l,l.visualViewport||[],tf(o)?o:[],f&&n?C1(f):[])}else return t.concat(o,C1(o,[],n))}function h6(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rA(e){const t=Ro(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=sr(e),s=o?e.offsetWidth:n,l=o?e.offsetHeight:r,f=m_(n)!==s||m_(r)!==l;return f&&(n=s,r=l),{width:n,height:r,$:f}}function ew(e){return br(e)?e:e.contextElement}function Hp(e){const t=ew(e);if(!sr(t))return yl(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=rA(t);let l=(s?m_(n.width):n.width)/r,f=(s?m_(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!f||!Number.isFinite(f))&&(f=1),{x:l,y:f}}const DZ=yl(0);function iA(e){const t=oi(e);return!f2()||!t.visualViewport?DZ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function LZ(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==oi(e)?!1:t}function Dd(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ew(e);let l=yl(1);t&&(r?br(r)&&(l=Hp(r)):l=Hp(e));const f=LZ(s,n,r)?iA(s):yl(0);let m=(o.left+f.x)/l.x,p=(o.top+f.y)/l.y,v=o.width/l.x,g=o.height/l.y;if(s){const y=oi(s),S=r&&br(r)?oi(r):r;let x=y,w=h6(x);for(;w&&r&&S!==x;){const R=Hp(w),T=w.getBoundingClientRect(),I=Ro(w),k=T.left+(w.clientLeft+parseFloat(I.paddingLeft))*R.x,L=T.top+(w.clientTop+parseFloat(I.paddingTop))*R.y;m*=R.x,p*=R.y,v*=R.x,g*=R.y,m+=k,p+=L,x=oi(w),w=h6(x)}}return y_({width:v,height:g,x:m,y:p})}function h2(e,t){const n=d2(e).scrollLeft;return t?t.left+n:Dd(xl(e)).left+n}function oA(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-h2(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function PZ(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",l=xl(r),f=t?c2(t.floating):!1;if(r===l||f&&s)return n;let m={scrollLeft:0,scrollTop:0},p=yl(1);const v=yl(0),g=sr(r);if((g||!g&&!s)&&((Di(r)!=="body"||tf(l))&&(m=d2(r)),g)){const S=Dd(r);p=Hp(r),v.x=S.x+r.clientLeft,v.y=S.y+r.clientTop}const y=l&&!g&&!s?oA(l,m):yl(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-m.scrollLeft*p.x+v.x+y.x,y:n.y*p.y-m.scrollTop*p.y+v.y+y.y}}function FZ(e){return Array.from(e.getClientRects())}function jZ(e){const t=xl(e),n=d2(e),r=e.ownerDocument.body,o=Wo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Wo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+h2(e);const f=-n.scrollTop;return Ro(r).direction==="rtl"&&(l+=Wo(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:l,y:f}}const $4=25;function UZ(e,t){const n=oi(e),r=xl(e),o=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,f=0,m=0;if(o){s=o.width,l=o.height;const v=f2();(!v||v&&t==="fixed")&&(f=o.offsetLeft,m=o.offsetTop)}const p=h2(r);if(p<=0){const v=r.ownerDocument,g=v.body,y=getComputedStyle(g),S=v.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,x=Math.abs(r.clientWidth-g.clientWidth-S);x<=$4&&(s-=x)}else p<=$4&&(s+=p);return{width:s,height:l,x:f,y:m}}function BZ(e,t){const n=Dd(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=sr(e)?Hp(e):yl(1),l=e.clientWidth*s.x,f=e.clientHeight*s.y,m=o*s.x,p=r*s.y;return{width:l,height:f,x:m,y:p}}function Q4(e,t,n){let r;if(t==="viewport")r=UZ(e,n);else if(t==="document")r=jZ(xl(e));else if(br(t))r=BZ(t,n);else{const o=iA(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return y_(r)}function aA(e,t){const n=xu(e);return n===t||!br(n)||vu(n)?!1:Ro(n).position==="fixed"||aA(n,t)}function VZ(e,t){const n=t.get(e);if(n)return n;let r=C1(e,[],!1).filter(f=>br(f)&&Di(f)!=="body"),o=null;const s=Ro(e).position==="fixed";let l=s?xu(e):e;for(;br(l)&&!vu(l);){const f=Ro(l),m=Jx(l);!m&&f.position==="fixed"&&(o=null),(s?!m&&!o:!m&&f.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||tf(l)&&!m&&aA(e,l))?r=r.filter(v=>v!==l):o=f,l=xu(l)}return t.set(e,r),r}function HZ(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const l=[...n==="clippingAncestors"?c2(t)?[]:VZ(t,this._c):[].concat(n),r],f=Q4(t,l[0],o);let m=f.top,p=f.right,v=f.bottom,g=f.left;for(let y=1;y<l.length;y++){const S=Q4(t,l[y],o);m=Wo(S.top,m),p=$c(S.right,p),v=$c(S.bottom,v),g=Wo(S.left,g)}return{width:p-g,height:v-m,x:g,y:m}}function zZ(e){const{width:t,height:n}=rA(e);return{width:t,height:n}}function qZ(e,t,n){const r=sr(t),o=xl(t),s=n==="fixed",l=Dd(e,!0,s,t);let f={scrollLeft:0,scrollTop:0};const m=yl(0);function p(){m.x=h2(o)}
99if(r||!r&&!s)if((Di(t)!=="body"||tf(o))&&(f=d2(t)),r){const S=Dd(t,!0,s,t);m.x=S.x+t.clientLeft,m.y=S.y+t.clientTop}else o&&p();s&&!r&&o&&p();const v=o&&!r&&!s?oA(o,f):yl(0),g=l.left+f.scrollLeft-m.x-v.x,y=l.top+f.scrollTop-m.y-v.y;return{x:g,y,width:l.width,height:l.height}}function P3(e){return Ro(e).position==="static"}function W4(e,t){if(!sr(e)||Ro(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return xl(e)===n&&(n=n.ownerDocument.body),n}function sA(e,t){const n=oi(e);if(c2(e))return n;if(!sr(e)){let o=xu(e);for(;o&&!vu(o);){if(br(o)&&!P3(o))return o;o=xu(o)}return n}let r=W4(e,t);for(;r&&kZ(r)&&P3(r);)r=W4(r,t);return r&&vu(r)&&P3(r)&&!Jx(r)?n:r||MZ(e)||n}const GZ=async function(e){const t=this.getOffsetParent||sA,n=this.getDimensions,r=await n(e.floating);return{reference:qZ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $Z(e){return Ro(e).direction==="rtl"}const QZ={convertOffsetParentRelativeRectToViewportRelativeRect:PZ,getDocumentElement:xl,getClippingRect:HZ,getOffsetParent:sA,getElementRects:GZ,getClientRects:FZ,getDimensions:zZ,getScale:Hp,isElement:br,isRTL:$Z};function lA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function WZ(e,t){let n=null,r;const o=xl(e);function s(){var f;clearTimeout(r),(f=n)==null||f.disconnect(),n=null}function l(f,m){f===void 0&&(f=!1),m===void 0&&(m=1),s();const p=e.getBoundingClientRect(),{left:v,top:g,width:y,height:S}=p;if(f||t(),!y||!S)return;const x=_d(g),w=_d(o.clientWidth-(v+y)),R=_d(o.clientHeight-(g+S)),T=_d(v),k={rootMargin:-x+"px "+-w+"px "+-R+"px "+-T+"px",threshold:Wo(0,$c(1,m))||1};let L=!0;function H(M){const j=M[0].intersectionRatio;if(j!==m){if(!L)return l();j?l(!1,j):r=setTimeout(()=>{l(!1,1e-7)},1e3)}j===1&&!lA(p,e.getBoundingClientRect())&&l(),L=!1}try{n=new IntersectionObserver(H,{...k,root:o.ownerDocument})}catch{n=new IntersectionObserver(H,k)}n.observe(e)}return l(!0),s}function p6(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:m=!1}=r,p=ew(e),v=o||s?[...p?C1(p):[],...t?C1(t):[]]:[];v.forEach(T=>{o&&T.addEventListener("scroll",n,{passive:!0}),s&&T.addEventListener("resize",n)});const g=p&&f?WZ(p,n):null;let y=-1,S=null;l&&(S=new ResizeObserver(T=>{let[I]=T;I&&I.target===p&&S&&t&&(S.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var k;(k=S)==null||k.observe(t)})),n()}),p&&!m&&S.observe(p),t&&S.observe(t));let x,w=m?Dd(e):null;m&&R();function R(){const T=Dd(e);w&&!lA(w,T)&&n(),w=T,x=requestAnimationFrame(R)}return n(),()=>{var T;v.forEach(I=>{o&&I.removeEventListener("scroll",n),s&&I.removeEventListener("resize",n)}),g?.(),(T=S)==null||T.disconnect(),S=null,m&&cancelAnimationFrame(x)}}const YZ=TZ,KZ=RZ,XZ=xZ,ZZ=AZ,JZ=wZ,Y4=EZ,eJ=OZ,tJ=(e,t,n)=>{const r=new Map,o={platform:QZ,...n},s={...o.platform,_c:r};return SZ(e,t,{...o,platform:s})};var nJ=typeof document<"u",rJ=function(){},Wb=nJ?A.useLayoutEffect:rJ;function b_(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!b_(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!b_(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function uA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function K4(e,t){const n=uA(e);return Math.round(t*n)/n}function F3(e){const t=A.useRef(e);return Wb(()=>{t.current=e}),t}function cA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:l}={},transform:f=!0,whileElementsMounted:m,open:p}=e,[v,g]=A.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,S]=A.useState(r);b_(y,r)||S(r);const[x,w]=A.useState(null),[R,T]=A.useState(null),I=A.useCallback(ee=>{ee!==M.current&&(M.current=ee,w(ee))},[]),k=A.useCallback(ee=>{ee!==j.current&&(j.current=ee,T(ee))},[]),L=s||x,H=l||R,M=A.useRef(null),j=A.useRef(null),K=A.useRef(v),P=m!=null,q=F3(m),Q=F3(o),$=F3(p),W=A.useCallback(()=>
99{if(!M.current||!j.current)return;const ee={placement:t,strategy:n,middleware:y};Q.current&&(ee.platform=Q.current),tJ(M.current,j.current,ee).then(ge=>{const ve={...ge,isPositioned:$.current!==!1};G.current&&!b_(K.current,ve)&&(K.current=ve,ef.flushSync(()=>{g(ve)}))})},[y,t,n,Q,$]);Wb(()=>{p===!1&&K.current.isPositioned&&(K.current.isPositioned=!1,g(ee=>({...ee,isPositioned:!1})))},[p]);const G=A.useRef(!1);Wb(()=>(G.current=!0,()=>{G.current=!1}),[]),Wb(()=>{if(L&&(M.current=L),H&&(j.current=H),L&&H){if(q.current)return q.current(L,H,W);W()}},[L,H,W,q,P]);const J=A.useMemo(()=>({reference:M,floating:j,setReference:I,setFloating:k}),[I,k]),V=A.useMemo(()=>({reference:L,floating:H}),[L,H]),B=A.useMemo(()=>{const ee={position:n,left:0,top:0};if(!V.floating)return ee;const ge=K4(V.floating,v.x),ve=K4(V.floating,v.y);return f?{...ee,transform:"translate("+ge+"px, "+ve+"px)",...uA(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ge,top:ve}},[n,f,V.floating,v.x,v.y]);return A.useMemo(()=>({...v,update:W,refs:J,elements:V,floatingStyles:B}),[v,W,J,V,B])}const iJ=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Y4({element:r.current,padding:o}).fn(n):{}:r?Y4({element:r,padding:o}).fn(n):{}}}},fA=(e,t)=>{const n=YZ(e);return{name:n.name,fn:n.fn,options:[e,t]}},dA=(e,t)=>{const n=KZ(e);return{name:n.name,fn:n.fn,options:[e,t]}},hA=(e,t)=>({fn:eJ(e).fn,options:[e,t]}),pA=(e,t)=>{const n=XZ(e);return{name:n.name,fn:n.fn,options:[e,t]}},mA=(e,t)=>{const n=ZZ(e);return{name:n.name,fn:n.fn,options:[e,t]}},vA=(e,t)=>{const n=JZ(e);return{name:n.name,fn:n.fn,options:[e,t]}},oJ=(e,t)=>{const n=iJ(e);return{name:n.name,fn:n.fn,options:[e,t]}};var aJ="Arrow",gA=A.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return C.jsx(Ui.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:C.jsx("polygon",{points:"0,0 30,0 15,10"})})});gA.displayName=aJ;var sJ=gA;function lJ(e){const[t,n]=A.useState(void 0);return gl(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let l,f;if("borderBoxSize"in s){const m=s.borderBoxSize,p=Array.isArray(m)?m[0]:m;l=p.inlineSize,f=p.blockSize}else l=e.offsetWidth,f=e.offsetHeight;n({width:l,height:f})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var tw="Popper",[yA,bA]=a2(tw),[uJ,_A]=yA(tw),SA=e=>{const{__scopePopper:t,children:n}=e,[r,o]=A.useState(null),[s,l]=A.useState(void 0);return C.jsx(uJ,{scope:t,anchor:r,onAnchorChange:o,placementState:s,setPlacementState:l,children:n})};SA.displayName=tw;var EA="PopperAnchor",xA=A.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=_A(EA,n),l=A.useRef(null),f=s.onAnchorChange,m=A.useCallback(x=>{l.current=x,x&&f(x)},[f]),p=Ia(t,m),v=A.useRef(null);A.useEffect(()=>{if(!r)return;const x=v.current;v.current=r.current,x!==v.current&&f(v.current)});const g=s.placementState&&rw(s.placementState),y=g?.[0],S=g?.[1];return r?null:C.jsx(Ui.div,{"data-radix-popper-side":y,"data-radix-popper-align":S,...o,ref:p})});xA.displayName=EA;var nw="PopperContent",[cJ,fJ]=yA(nw),wA=A.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:l=0,arrowPadding:f=0,avoidCollisions:m=!0,collisionBoundary:p,collisionPadding:v=0,sticky:g="partial",hideWhenDetached:y=!1,updatePositionStrategy:S="optimized",onPlaced:x,...w}=e,R=_A(nw,n),[T,I]=A.useState(null),k=Ia(t,Le=>I(Le)),[L,H]=A.useState(null),M=lJ(L),j=M?.width??0,K=M?.height??0,P=r+(s!=="center"?"-"+s:""),q=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},Q=p?Array.isArray(p)?p:[p]:void 0,$=Q!==void 0&&Q.length>0,W={padding:q,boundary:Q?.filter(hJ),altBoundary:$},{refs:G,floatingStyles:J,placement:V,isPositioned:B,middlewareData:ee}=cA({strategy:"fixed",placement:P,whileElementsMounted:(...Le)=>p6(...Le,{animationFrame:S==="always"}),elements:{reference:R.anchor},middleware:[fA({mainAxis:o+K,alignmentAxis:l}),m&&dA({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?hA():void 0,...W}),m&&pA({...W}),mA({...W,apply:({elements:Le,rects:$e,availableWidth:an,availableHeight:dr})=>{const{width:ze,height:ct}=$e.reference,_t=Le.floating.style;_t.setProperty("--radix-popper-available-width",`${an}px`),_t.setProperty("--radix-popper-available-height",`${dr}px`),_t.setProperty("--radix-popper-anchor-width",`${ze}px`),_t.setProperty("--radix-popper-anchor-height",`${ct}px`)}}),L&&oJ({element:L,padding:f}),pJ({arrowWidth:j,arrowHeight:K}),y&&vA({strategy:"referenceHidden",...W})]}),ge=R.setPlacementState;gl(()=>(ge(V),()=>
99{ge(void 0)}),[V,ge]);const[ve,Y]=rw(V),oe=Sl(x);gl(()=>{B&&oe?.()},[B,oe]);const de=ee.arrow?.x,me=ee.arrow?.y,ke=ee.arrow?.centerOffset!==0,[Me,We]=A.useState();return gl(()=>{T&&We(window.getComputedStyle(T).zIndex)},[T]),C.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:B?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Me,"--radix-popper-transform-origin":[ee.transformOrigin?.x,ee.transformOrigin?.y].join(" "),...ee.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:C.jsx(cJ,{scope:n,placedSide:ve,placedAlign:Y,onArrowChange:H,arrowX:de,arrowY:me,shouldHideArrow:ke,children:C.jsx(Ui.div,{"data-side":ve,"data-align":Y,...w,ref:k,style:{...w.style,animation:B?void 0:"none"}})})})});wA.displayName=nw;var CA="PopperArrow",dJ={top:"bottom",right:"left",bottom:"top",left:"right"},TA=A.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=fJ(CA,r),l=dJ[s.placedSide];return C.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:C.jsx(sJ,{...o,ref:n,style:{...o.style,display:"block"}})})});TA.displayName=CA;function hJ(e){return e!==null}var pJ=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,l=o.arrow?.centerOffset!==0,f=l?0:e.arrowWidth,m=l?0:e.arrowHeight,[p,v]=rw(n),g={start:"0%",center:"50%",end:"100%"}[v],y=(o.arrow?.x??0)+f/2,S=(o.arrow?.y??0)+m/2;let x="",w="";return p==="bottom"?(x=l?g:`${y}px`,w=`${-m}px`):p==="top"?(x=l?g:`${y}px`,w=`${r.floating.height+m}px`):p==="right"?(x=`${-m}px`,w=l?g:`${S}px`):p==="left"&&(x=`${r.floating.width+m}px`,w=l?g:`${S}px`),{data:{x,y:w}}}});function rw(e){const[t,n="center"]=e.split("-");return[t,n]}var mJ=SA,RA=xA,vJ=wA,gJ=TA,yJ="Portal",iw=A.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=A.useState(!1);gl(()=>s(!0),[]);const l=n||o&&globalThis?.document?.body;return l?ef.createPortal(C.jsx(Ui.div,{...r,ref:t}),l):null});iw.displayName=yJ;function bJ(e,t){return A.useReducer((n,r)=>t[n][r]??n,e)}var p2=e=>{const{present:t,children:n}=e,r=_J(t),o=typeof n=="function"?n({present:r.isPresent}):A.Children.only(n),s=SJ(r.ref,EJ(o));return typeof n=="function"||r.isPresent?A.cloneElement(o,{ref:s}):null};p2.displayName="Presence";function _J(e){const[t,n]=A.useState(),r=A.useRef(null),o=A.useRef(e),s=A.useRef("none"),l=e?"mounted":"unmounted",[f,m]=bJ(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return A.useEffect(()=>{const p=fb(r.current);s.current=f==="mounted"?p:"none"},[f]),gl(()=>{const p=r.current,v=o.current;if(v!==e){const y=s.current,S=fb(p);e?m("MOUNT"):S==="none"||p?.display==="none"?m("UNMOUNT"):m(v&&y!==S?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,m]),gl(()=>{if(t){let p;const v=t.ownerDocument.defaultView??window,g=S=>{const w=fb(r.current).includes(CSS.escape(S.animationName));if(S.target===t&&w&&(m("ANIMATION_END"),!o.current)){const R=t.style.animationFillMode;t.style.animationFillMode="forwards",p=v.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=R)})}},y=S=>{S.target===t&&(s.current=fb(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{v.clearTimeout(p),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:A.useCallback(p=>{r.current=p?getComputedStyle(p):null,n(p)},[])}}function X4(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function SJ(...e){const t=A.useRef(e);return t.current=e,A.useCallback(n=>{const r=t.current;let o=!1;const s=r.map(l=>{const f=X4(l,n);return!o&&typeof f=="function"&&(o=!0),f});if(o)return()=>{for(let l=0;l<s.length;l++){const f=s[l];typeof f=="function"?f():X4(r[l],null)}}},[])}function fb(e){return e?.animationName||"none"}function EJ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var xJ=A_[" useInsertionEffect ".trim().toString()]||gl;function OA({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,l]=wJ({defaultProp:t,onChange:n}),f=e!==void 0,m=f?e:o;{const v=A.useRef(e!==void 0);A.useEffect(()=>{const g=v.current;g!==f&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=f},[f,r])}const p=A.useCallback(v=>{if(f){const g=CJ(v)?v(e):v;g!==e&&l.current?.(g)}else s(v)},[f,e,s,l]);return[m,p]}function wJ({defaultProp:e,onChange:t}){const[n,r]=A.useState(e),o=A.useRef(n),s=A.useRef(t);return xJ(()=>{s.current=t},[t]),A.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function CJ(e){return typeof e=="function"}var TJ=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),RJ="VisuallyHidden",ow=A.forwardRef((e,t)=>
99C.jsx(Ui.span,{...e,ref:t,style:{...TJ,...e.style}}));ow.displayName=RJ;const OJ="stickerLabel-module_inverse__3w2xl",AJ="stickerLabel-module_accent__i-auT",kJ="stickerLabel-module_error__7r803",NJ="stickerLabel-module_warn__KIGtX",IJ="stickerLabel-module_white__iZVAL",MJ="stickerLabel-module_navy__mzsh7",DJ="stickerLabel-module_mint__aY7we",LJ="stickerLabel-module_citrus__OlSPr",PJ="stickerLabel-module_red__dNBMR",Z4={"sticker-label":"stickerLabel-module_sticker-label__I-VyK",default:"stickerLabel-module_default__v-JpZ",inverse:OJ,accent:AJ,"accent-inverse":"stickerLabel-module_accent-inverse__bI7sC",error:kJ,"error-light":"stickerLabel-module_error-light__9Zcd8",warn:NJ,white:IJ,navy:MJ,mint:DJ,citrus:LJ,red:PJ},FJ=({as:e,children:t,variant:n="white",...r})=>{const o=Ss(r,"StickerLabel",{stylingProps:"warn",dangerousStylingProps:"rewrite"}),{className:s}=o,l=Or(Z4["sticker-label"],Z4[n],s);return C.jsx(ht,{as:e||"span",...o,className:l,children:t})},jJ=({children:e})=>C.jsx(C.Fragment,{children:e});var db={exports:{}},Ec={},hb={exports:{}},ya={},pb={exports:{}},J4;function AA(){return J4||(J4=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var n="none",r="contents",o=/^(input|select|textarea|button|object|iframe)$/;function s(g,y){return y.getPropertyValue("overflow")!=="visible"||g.scrollWidth<=0&&g.scrollHeight<=0}function l(g){var y=g.offsetWidth<=0&&g.offsetHeight<=0;if(y&&!g.innerHTML)return!0;try{var S=window.getComputedStyle(g),x=S.getPropertyValue("display");return y?x!==r&&s(g,S):x===n}catch{return console.warn("Failed to inspect element style"),!1}}function f(g){for(var y=g,S=g.getRootNode&&g.getRootNode();y&&y!==document.body;){if(S&&y===S&&(y=S.host.parentNode),l(y))return!1;y=y.parentNode}return!0}function m(g,y){var S=g.nodeName.toLowerCase(),x=o.test(S)&&!g.disabled||S==="a"&&g.href||y;return x&&f(g)}function p(g){var y=g.getAttribute("tabindex");y===null&&(y=void 0);var S=isNaN(y);return(S||y>=0)&&m(g,!S)}function v(g){var y=[].slice.call(g.querySelectorAll("*"),0).reduce(function(S,x){return S.concat(x.shadowRoot?v(x.shadowRoot):[x])},[]);return y.filter(p)}e.exports=t.default})(pb,pb.exports)),pb.exports}var e9;function UJ(){if(e9)return ya;e9=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.resetState=l,ya.log=f,ya.handleBlur=m,ya.handleFocus=p,ya.markForFocusLater=v,ya.returnFocus=g,ya.popWithoutFocus=y,ya.setupScopedFocus=S,ya.teardownScopedFocus=x;var e=AA(),t=n(e);function n(w){return w&&w.__esModule?w:{default:w}}var r=[],o=null,s=!1;function l(){r=[]}function f(){}function m(){s=!0}function p(){if(s){if(s=!1,!o)return;setTimeout(function(){if(!o.contains(document.activeElement)){var w=(0,t.default)(o)[0]||o;w.focus()}},0)}}function v(){r.push(document.activeElement)}function g(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,R=null;try{r.length!==0&&(R=r.pop(),R.focus({preventScroll:w}));return}catch{console.warn(["You tried to return focus to",R,"but it is not in the DOM anymore"].join(" "))}}function y(){r.length>0&&r.pop()}function S(w){o=w,window.addEventListener?(window.addEventListener("blur",m,!1),document.addEventListener("focus",p,!0)):(window.attachEvent("onBlur",m),document.attachEvent("onFocus",p))}function x(){o=null,window.addEventListener?(window.removeEventListener("blur",m),document.removeEventListener("focus",p)):(window.detachEvent("onBlur",m),document.detachEvent("onFocus",p))}return ya}var mb={exports:{}},t9;function BJ(){return t9||(t9=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=AA(),r=o(n);function o(f){return f&&f.__esModule?f:{default:f}}function s(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return f.activeElement.shadowRoot?s(f.activeElement.shadowRoot):f.activeElement}function l(f,m){var p=(0,r.default)(f);if(!p.length){m.preventDefault();return}var v=void 0,g=m.shiftKey,y=p[0],S=p[p.length-1],x=s();if(f===x){if(!g)return;v=S}if(S===x&&!g&&(v=y),y===x&&g&&(v=S),v){m.preventDefault(),v.focus();return}var w=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),R=w!=null&&w[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(R){var T=p.indexOf(x);if(T>-1&&(T+=g?-1:1),v=p[T],typeof v>"u"){m.preventDefault(),v=g?S:y,v.focus();return}m.preventDefault(),v.focus()}}e.exports=t.default})(mb,mb.exports)),mb.exports}var hs={},j3,n9;function VJ(){if(n9)return j3;n9=1;var e=function(){};return j3=e,j3}var ll={},U3={exports:{}};var r9;function HJ(){return r9||(r9=1,(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseVie
vendor: 18,106 bytes, lines 99-107
99wport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(U3)),U3.exports}var i9;function aw(){if(i9)return ll;i9=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.canUseDOM=ll.SafeNodeList=ll.SafeHTMLCollection=void 0;var e=HJ(),t=n(e);function n(s){return s&&s.__esModule?s:{default:s}}var r=t.default,o=r.canUseDOM?window.HTMLElement:{};return ll.SafeHTMLCollection=r.canUseDOM?window.HTMLCollection:{},ll.SafeNodeList=r.canUseDOM?window.NodeList:{},ll.canUseDOM=r.canUseDOM,ll.default=o,ll}var o9;function kA(){if(o9)return hs;o9=1,Object.defineProperty(hs,"__esModule",{value:!0}),hs.resetState=s,hs.log=l,hs.assertNodeList=f,hs.setElement=m,hs.validateElement=p,hs.hide=v,hs.show=g,hs.documentNotReadyOrSSRTesting=y;var e=VJ(),t=r(e),n=aw();function r(S){return S&&S.__esModule?S:{default:S}}var o=null;function s(){o&&(o.removeAttribute?o.removeAttribute("aria-hidden"):o.length!=null?o.forEach(function(S){return S.removeAttribute("aria-hidden")}):document.querySelectorAll(o).forEach(function(S){return S.removeAttribute("aria-hidden")})),o=null}function l(){}function f(S,x){if(!S||!S.length)throw new Error("react-modal: No elements were found for selector "+x+".")}function m(S){var x=S;if(typeof x=="string"&&n.canUseDOM){var w=document.querySelectorAll(x);f(w,x),x=w}return o=x||o,o}function p(S){var x=S||o;return x?Array.isArray(x)||x instanceof HTMLCollection||x instanceof NodeList?x:[x]:((0,t.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function v(S){var x=!0,w=!1,R=void 0;try{for(var T=p(S)[Symbol.iterator](),I;!(x=(I=T.next()).done);x=!0){var k=I.value;k.setAttribute("aria-hidden","true")}}catch(L){w=!0,R=L}finally{try{!x&&T.return&&T.return()}finally{if(w)throw R}}}function g(S){var x=!0,w=!1,R=void 0;try{for(var T=p(S)[Symbol.iterator](),I;!(x=(I=T.next()).done);x=!0){var k=I.value;k.removeAttribute("aria-hidden")}}catch(L){w=!0,R=L}finally{try{!x&&T.return&&T.return()}finally{if(w)throw R}}}function y(){o=null}return hs}var ld={},a9;function zJ(){if(a9)return ld;a9=1,Object.defineProperty(ld,"__esModule",{value:!0}),ld.resetState=r,ld.log=o;var e={},t={};function n(p,v){p.classList.remove(v)}function r(){var p=document.getElementsByTagName("html")[0];for(var v in e)n(p,e[v]);var g=document.body;for(var y in t)n(g,t[y]);e={},t={}}function o(){}var s=function(v,g){return v[g]||(v[g]=0),v[g]+=1,g},l=function(v,g){return v[g]&&(v[g]-=1),g},f=function(v,g,y){y.forEach(function(S){s(g,S),v.add(S)})},m=function(v,g,y){y.forEach(function(S){l(g,S),g[S]===0&&v.remove(S)})};return ld.add=function(v,g){return f(v.classList,v.nodeName.toLowerCase()=="html"?e:t,g.split(" "))},ld.remove=function(v,g){return m(v.classList,v.nodeName.toLowerCase()=="html"?e:t,g.split(" "))},ld}var pp={},s9;function NA(){if(s9)return pp;s9=1,Object.defineProperty(pp,"__esModule",{value:!0}),pp.log=r,pp.resetState=o;function e(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}var t=function s(){var l=this;e(this,s),this.register=function(f){l.openInstances.indexOf(f)===-1&&(l.openInstances.push(f),l.emit("register"))},this.deregister=function(f){var m=l.openInstances.indexOf(f);m!==-1&&(l.openInstances.splice(m,1),l.emit("deregister"))},this.subscribe=function(f){l.subscribers.push(f)},this.emit=function(f){l.subscribers.forEach(function(m){return m(f,l.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},n=new t;function r(){console.log("portalOpenInstances ----------"),console.log(n.openInstances.length),n.openInstances.forEach(function(s){return console.log(s)}),console.log("end portalOpenInstances ----------")}function o(){n=new t}return pp.default=n,pp}var Hv={},l9;function qJ(){if(l9)return Hv;l9=1,Object.defineProperty(Hv,"__esModule",{value:!0}),Hv.resetState=l,Hv.log=f;var e=NA(),t=n(e);function n(v){return v&&v.__esModule?v:{default:v}}var r=void 0,o=void 0,s=[];function l(){for(var v=[r,o],g=0;g<v.length;g++){var y=v[g];y&&y.parentNode&&y.parentNode.removeChild(y)}r=o=null,s=[]}function f(){console.log("bodyTrap ----------"),console.log(s.length);for(var v=[r,o],g=0;g<v.length;g++){var y=v[g],S=y||{};console.log(S.nodeName,S.className,S.id)}console.log("edn bodyTrap ----------")}function m(){s.length!==0&&s[s.length-1].focusContent()}function p(v,g){!r&&!o&&(r=document.createElement("div"),r.setAttribute("data-react-modal-body-trap",""),r.style.position="absolute",r.style.opacity="0",r.setAttribute("tabindex","0"),r.addEventListener("focus",m),o=r.cloneNode(),o.addEventListener("focus",m)),s=g,s.length>0?(document.body.firstChild!==r&&document.body.insertBefore(r,document.body.firstChild),document.body.lastChild!==o&&document.body.appendChild(o)):(r.parentElement&&r.parentElement.removeChild(r),o.parentElement&&o.parentElement.removeChild(o))}return t.default.subscribe(p),Hv}var u9;function GJ(){return u9||(u9=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(G){for(var J=1;J<arguments.length;J++){var V=arguments[J];for(var B in V)Object.prototype.hasOwnProperty.call(V,B)&&(G[B]=V[B])}return G},r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},o=(function(){function G(J,V){for(var B=0;B<V.length;B++){var ee=V[B];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(J,ee.key,ee)}}return function(J,V,B){return V&&G(J.prototype,V),B&&G(J,B),J}})(),s=Qc(),l=U6(),f=H(l),m=UJ(),p=L(m),v=BJ(),g=H(v),y=kA(),S=L(y),x=zJ(),w=L(x),R=aw(),T=H(R),I=NA(),k=H(I);qJ();function L(G){if(G&&G.__esModule)return G;var J={};if(G!=null)for(var V in G)Object.prototype.hasOwnProperty.call(G,V)&&(J[V]=G[V]);return J.default=G,J}function H(G){return G&&G.__esModule?G:{default:G}}function M(G,J){if(!(G instanceof J))throw new TypeError("Cannot call a class as a function")}function j(G,J){if(!G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J&&(typeof J=="object"||typeof J=="function")?J:G}function K(G,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof J);G.prototype=Object.create(J&&J.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),J&&(Object.setPrototypeOf?Object.setPrototypeOf(G,J):G.__proto__=J)}var P={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},q=function(J){return J.code==="Tab"||J.keyCode===9},Q=function(J){return J.code==="Escape"||J.keyCode===27},$=0,W=(function(G){K(J,G);function J(V){M(this,J);var B=j(this,(J.__proto__||Object.getPrototypeOf(J)).call(this,V));return B.setOverlayRef=function(ee){B.overlay=ee,B.props.overlayRef&&B.props.overlayRef(ee)},B.setContentRef=function(ee){B.content=ee,B.props.contentRef&&B.props.contentRef(ee)},B.afterClose=function(){var ee=B.props,ge=ee.appElement,ve=ee.ariaHideApp,Y=ee.htmlOpenClassName,oe=ee.bodyOpenClassName,de=ee.parentSelector,me=de&&de().ownerDocument||document;oe&&w.remove(me.body,oe),Y&&w.remove(me.getElementsByTagName("html")[0],Y),ve&&$>0&&($-=1,$===0&&S.show(ge)),B.props.shouldFocusAfterRender&&(B.props.shouldReturnFocusAfterClose?(p.returnFocus(B.props.preventScroll),p.teardownScopedFocus()):p.popWithoutFocus()),B.props.onAfterClose&&B.props.onAfterClose(),k.default.deregister(B)},B.open=function(){B.beforeOpen(),B.state.afterOpen&&B.state.beforeClose?(clearTimeout(B.closeTimer),B.setState({beforeClose:!1})):(B.props.shouldFocusAfterRender&&(p.setupScopedFocus(B.node),p.markForFocusLater()),B.setState({isOpen:!0},function(){B.openAnimationFrame=requestAnimationFrame(function(){B.setState({afterOpen:!0}),B.props.isOpen&&B.props.onAfterOpen&&B.props.onAfterOpen({overlayEl:B.overlay,contentEl:B.content})})}))},B.close=function(){B.props.closeTimeoutMS>0?B.closeWithTimeout():B.closeWithoutTimeout()},B.focusContent=function(){return B.content&&!B.contentHasFocus()&&B.content.focus({preventScroll:!0})},B.closeWithTimeout=function(){var ee=Date.now()+B.props.closeTimeoutMS;B.setState({beforeClose:!0,closesAt:ee},function(){B.closeTimer=setTimeout(B.closeWithoutTimeout,B.state.closesAt-Date.now())})},B.closeWithoutTimeout=function(){B.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},B.afterClose)},B.handleKeyDown=function(ee){q(ee)&&(0,g.default)(B.content,ee),B.props.shouldCloseOnEsc&&Q(ee)&&(ee.stopPropagation(),B.requestClose(ee))},B.handleOverlayOnClick=function(ee){B.shouldClose===null&&(B.shouldClose=!0),B.shouldClose&&B.props.shouldCloseOnOverlayClick&&(B.ownerHandlesClose()?B.requestClose(ee):B.focusContent()),B.shouldClose=null},B.handleContentOnMouseUp=function(){B.shouldClose=!1},B.handleOverlayOnMouseDown=function(ee){!B.props.shouldCloseOnOverlayClick&&ee.target==B.overlay&&ee.preventDefault()},B.handleContentOnClick=function(){B.shouldClose=!1},B.handleContentOnMouseDown=function(){B.shouldClose=!1},B.requestClose=function(ee){return B.ownerHandlesClose()&&B.props.onRequestClose(ee)},B.ownerHandlesClose=function(){return B.props.onRequestClose},B.shouldBeClosed=function(){return!B.state.isOpen&&!B.state.beforeClose},B.contentHasFocus=function(){return document.activeElement===B.content||B.content.contains(document.activeElement)},B.buildClassName=function(ee,ge){var ve=(typeof ge>"u"?"undefined":r(ge))==="object"?ge:{base:P[ee],afterOpen:P[ee]+"--after-open",beforeClose:P[ee]+"--before-close"},Y=ve.base;return B.state.afterOpen&&(Y=Y+" "+ve.afterOpen),B.state.beforeClose&&(Y=Y+" "+ve.beforeClose),typeof ge=="string"&&ge?Y+" "+ge:Y},B.attributesFromObject=function(ee,ge){return Object.keys(ge).reduce(function(ve,Y){return ve[ee+"-"+Y]=ge[Y],ve},{})},B.state={afterOpen:!1,beforeClose:!1},B.shouldClose=null,B.moveFromContentToOverlay=null,B}return o(J,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(B,ee){this.props.isOpen&&!B.isOpen?this.open():!this.props.isOpen&&B.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!ee.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var B=this.props,ee=B.appElement,ge=B.ariaHideApp,ve=B.htmlOpenClassName,Y=B.bodyOpenClassName,oe=B.parentSelector,de=oe&&oe().ownerDocument||document;Y&&w.add(de.body,Y),ve&&w.add(de.getElementsByTagName("html")[0],ve),ge&&($+=1,S.hide(ee)),k.default.register(this)}},{key:"render",value:function(){var B=this.props,ee=B.id,ge=B.className,ve=B.overlayClassName,Y=B.defaultStyles,oe=B.children,de=ge?{}:Y.content,me=ve?{}:Y.overlay;if(this.shouldBeClosed())return null;var ke={ref:this.setOverlayRef,className:this.buildClassName("overlay",ve),style:n({},me,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},Me=n({id:ee,ref:this.setContentRef,style:n({},de,this.props.style.content),className:this.buildClassName("content",ge),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),We=this.props.contentElement(Me,oe);return this.props.overlayElement(ke,We)}}]),J})(s.Component);W.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},W.propTypes={isOpen:f.default.bool.isRequired,defaultStyles:f.default.shape({content:f.default.object,overlay:f.default.object}),style:f.default.shape({content:f.default.object,overlay:f.default.object}),className:f.default.oneOfType([f.default.string,f.default.object]),overlayClassName:f.default.oneOfType([f.default.string,f.default.object]),parentSelector:f.default.func,bodyOpenClassName:f.default.string,htmlOpenClassName:f.default.string,ariaHideApp:f.default.bool,appElement:f.default.oneOfType([f.default.instanceOf(T.default),f.default.instanceOf(R.SafeHTMLCollection),f.default.instanceOf(R.SafeNodeList),f.default.arrayOf(f.default.instanceOf(T.default))]),onAfterOpen:f.default.func,onAfterClose:f.default.func,onRequestClose:f.default.func,closeTimeoutMS:f.default.number,shouldFocusAfterRender:f.default.bool,shouldCloseOnOverlayClick:f.default.bool,shouldReturnFocusAfterClose:f.default.bool,preventScroll:f.default.bool,role:f.default.string,contentLabel:f.default.string,aria:f.default.object,data:f.default.object,children:f.default.node,shouldCloseOnEsc:f.default.bool,overlayRef:f.default.func,contentRef:f.default.func,id:f.default.string,overlayElement:f.default.func,contentElement:f.default.func,testId:f.default.string},t.default=W,e.exports=t.default})(hb,hb.exports)),hb.exports}function IA(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function MA(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function DA(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}IA.__suppressDeprecationWarning=!0;MA.__suppressDeprecationWarning=!0;DA.__suppressDeprecationWarning=!0;function $J(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,o=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),n!==null||r!==null||o!==null){var s=e.displayName||e.name,l=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. 100 101`+s+" uses "+l+" but also contains the following legacy lifecycles:"+(n!==null?` 102 `+n:"")+(r!==null?` 103 `+r:"")+(o!==null?` 104 `+o:"")+` 105 106The above lifecycles should be removed. Learn more about this warning here: 107https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=IA,t.componentWillReceiveProps=MA),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=DA;var f=t.componentDidUpdate;t.componentDidUpdate=function(p,v,g){var y=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:g;f.call(this,p,v,y)}}return e}const QJ=Object.freeze(Object.defineProperty({__proto__:null,polyfill:$J},Symbol.toStringTag,{value:"Module"})),WJ=v8(QJ);var c9;function YJ(){if(c9)return Ec;c9=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.bodyOpenClassName=Ec.portalClassName=void 0;var e=Object.assign||function(Q){for(var $=1;$<arguments.length;$++){var W=arguments[$];for(var G in W)Object.prototype.hasOwnProperty.call(W,G)&&(Q[G]=W[G])}return Q},t=(function(){function Q($,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty($,J.key,J)}}return function($,W,G){return W&&Q($.prototype,W),G&&Q($,G),$}})(),n=Qc(),r=R(n),o=j6(),s=R(o),l=U6(),f=R(l),m=GJ(),p=R(m),v=kA(),g=w(v),y=aw(),S=R(y),x=WJ;function w(Q){if(Q&&Q.__esModule)return Q;var $={};if(Q!=null)for(var W in Q)Object.prototype.hasOwnProperty.call(Q,W)&&($[W]=Q[W]);return $.default=Q,$}function R(Q){return Q&&Q.__esModule?Q:{default:Q}}function T(Q,$){if(!(Q instanceof $))throw new TypeError("Cannot call a class as a function")}function I(Q,$){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $&&(typeof $=="object"||typeof $=="function")?$:Q}function k(Q,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof $);Q.prototype=Object.create($&&$.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),$&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,$):Q.__proto__=$)}var L=Ec.portalClassName="ReactModalPortal",H=Ec.bodyOpenClassName="ReactModal__Body--open",M=y.canUseDOM&&s.default.createPortal!==void 0,j=function($){return document.createElement($)},K=function(){return M?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function P(Q){return Q()}var q=(function(Q){k($,Q);function $(){var W,G,J,V;T(this,$);for(var B=arguments.length,ee=Array(B),ge=0;ge<B;ge++)ee[ge]=arguments[ge];return V=(G=(J=I(this,(W=$.__proto__||Object.getPrototypeOf($)).call.apply(W,[this].concat(ee))),J),J.removePortal=function(){!M&&s.default.unmountComponentAtNode(J.node);var ve=P(J.props.parentSelector);ve&&ve.contains(J.node)?ve.removeChild(J.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},J.portalRef=function(ve){J.portal=ve},J.renderPortal=function(ve){var Y=K(),oe=Y(J,r.default.createElement(p.default,e({defaultStyles:$.defaultStyles},ve)),J.node);J.portalRef(oe)},G),I(J,V)}
107return t($,[{key:"componentDidMount",value:function(){if(y.canUseDOM){M||(this.node=j("div")),this.node.className=this.props.portalClassName;var G=P(this.props.parentSelector);G.appendChild(this.node),!M&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(G){var J=P(G.parentSelector),V=P(this.props.parentSelector);return{prevParent:J,nextParent:V}}},{key:"componentDidUpdate",value:function(G,J,V){if(y.canUseDOM){var B=this.props,ee=B.isOpen,ge=B.portalClassName;G.portalClassName!==ge&&(this.node.className=ge);var ve=V.prevParent,Y=V.nextParent;Y!==ve&&(ve.removeChild(this.node),Y.appendChild(this.node)),!(!G.isOpen&&!ee)&&!M&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!y.canUseDOM||!this.node||!this.portal)){var G=this.portal.state,J=Date.now(),V=G.isOpen&&this.props.closeTimeoutMS&&(G.closesAt||J+this.props.closeTimeoutMS);V?(G.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,V-J)):this.removePortal()}}},{key:"render",value:function(){if(!y.canUseDOM||!M)return null;!this.node&&M&&(this.node=j("div"));var G=K();return G(r.default.createElement(p.default,e({ref:this.portalRef,defaultStyles:$.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(G){g.setElement(G)}}]),$})(n.Component);return q.propTypes={isOpen:f.default.bool.isRequired,style:f.default.shape({content:f.default.object,overlay:f.default.object}),portalClassName:f.default.string,bodyOpenClassName:f.default.string,htmlOpenClassName:f.default.string,className:f.default.oneOfType([f.default.string,f.default.shape({base:f.default.string.isRequired,afterOpen:f.default.string.isRequired,beforeClose:f.default.string.isRequired})]),overlayClassName:f.default.oneOfType([f.default.string,f.default.shape({base:f.default.string.isRequired,afterOpen:f.default.string.isRequired,beforeClose:f.default.string.isRequired})]),appElement:f.default.oneOfType([f.default.instanceOf(S.default),f.default.instanceOf(y.SafeHTMLCollection),f.default.instanceOf(y.SafeNodeList),f.default.arrayOf(f.default.instanceOf(S.default))]),onAfterOpen:f.default.func,onRequestClose:f.default.func,closeTimeoutMS:f.default.number,ariaHideApp:f.default.bool,shouldFocusAfterRender:f.default.bool,shouldCloseOnOverlayClick:f.default.bool,shouldReturnFocusAfterClose:f.default.bool,preventScroll:f.default.bool,parentSelector:f.default.func,aria:f.default.object,data:f.default.object,role:f.default.string,contentLabel:f.default.string,shouldCloseOnEsc:f.default.bool,overlayRef:f.default.func,contentRef:f.default.func,id:f.default.string,overlayElement:f.default.func,contentElement:f.default.func},q.defaultProps={isOpen:!1,portalClassName:L,bodyOpenClassName:H,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function($,W){return r.default.createElement("div",$,W)},contentElement:function($,W){return r.default.createElement("div",$,W)}},q.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,x.polyfill)(q),Ec.default=q,Ec}var f9;function KJ(){return f9||(f9=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=YJ(),r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}t.default=r.default,e.exports=t.default})(db,db.exports)),db.exports}var XJ=KJ();const ZJ=Da(XJ);function JJ(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var sw=!1;if(typeof window<"u"){var d9={get passive(){sw=!0}};window.addEventListener("testPassive",null,d9),window.removeEventListener("testPassive",null,d9)}var LA=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),zp=[],__=!1,lw=-1,h1=void 0,p1=void 0,PA=function(t){return zp.some(function(n){return!!(n.options.allowTouchMove&&n.options.allowTouchMove(t))})},S_=function(t){var n=t||window.event;return PA(n.target)||n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)},eee=function(t){if(p1===void 0){var n=!!t&&t.reserveScrollBarGap===!0,r=window.innerWidth-document.documentElement.clientWidth;n&&r>0&&(p1=document.body.style.paddingRight,document.body.style.paddingRight=r+"px")}h1===void 0&&(h1=document.body.style.overflow,document.body.style.overflow="hidden")},tee=function(){p1!==void 0&&(document.body.style.paddingRight=p1,p1=void 0),h1!==void 0&&(document.body.style.overflow=h1,h1=void 0)},nee=function(t){return t?t.scrollHeight-t.scrollTop<=t.clientHeight:!1},ree=function(t,n){var r=t.targetTouches[0].clientY-lw;return PA(t.target)?!1:n&&n.scrollTop===0&&r>0||nee(n)&&r<0?S_(t):(t.stopPropagation(),!0)},iee=function(t,n){if(!t){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!zp.some(function(o){return o.targetElement===t}
107)){var r={targetElement:t,options:n||{}};zp=[].concat(JJ(zp),[r]),LA?(t.ontouchstart=function(o){o.targetTouches.length===1&&(lw=o.targetTouches[0].clientY)},t.ontouchmove=function(o){o.targetTouches.length===1&&ree(o,t)},__||(document.addEventListener("touchmove",S_,sw?{passive:!1}:void 0),__=!0)):eee(n)}},oee=function(){LA?(zp.forEach(function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null}),__&&(document.removeEventListener("touchmove",S_,sw?{passive:!1}:void 0),__=!1),lw=-1):tee(),zp=[]};const aee="modal-module_overlay__-6bEj",see="modal-module_container__DRdN2",lee="modal-module_scrollableContent__rk8FO",uee="modal-module_hero__YYgur",cee="modal-module_header__vNrJN",fee="modal-module_heading__z7BtL",dee="modal-module_body__P9qsT",hee="modal-module_footer__aM2Ih",ti={overlay:aee,container:see,"size-small":"modal-module_size-small__kuN-p","size-medium":"modal-module_size-medium__MZkN2","size-large":"modal-module_size-large__niim3","is-inset":"modal-module_is-inset__t1Ih7","is-slide-up":"modal-module_is-slide-up__6c1K6","container--after-open":"modal-module_container--after-open__Q7J06","container--before-close":"modal-module_container--before-close__kdRxZ","background-color-mint":"modal-module_background-color-mint__q3uOT","background-color-navy":"modal-module_background-color-navy__WVCBX","background-color-citrus":"modal-module_background-color-citrus__mRb6u","background-color-white":"modal-module_background-color-white__u9kcn",scrollableContent:lee,"no-hero":"modal-module_no-hero__hsWVe","has-close":"modal-module_has-close__XF3QV","h-center":"modal-module_h-center__Da8b6",hero:uee,header:cee,heading:fee,body:dee,"no-heading":"modal-module_no-heading__Nrbwo",footer:hee},Ae=e=>{e.stopPropagation()},pee={onAbort:Ae,onAnimationEnd:Ae,onAnimationIteration:Ae,onAnimationStart:Ae,onAuxClick:Ae,onBeforeInput:Ae,onBeforeToggle:Ae,onBlur:Ae,onCanPlay:Ae,onCanPlayThrough:Ae,onChange:Ae,onClick:Ae,onCompositionEnd:Ae,onCompositionStart:Ae,onCompositionUpdate:Ae,onContextMenu:Ae,onCopy:Ae,onCut:Ae,onDoubleClick:Ae,onDrag:Ae,onDragEnd:Ae,onDragEnter:Ae,onDragExit:Ae,onDragLeave:Ae,onDragOver:Ae,onDragStart:Ae,onDurationChange:Ae,onDrop:Ae,onEmptied:Ae,onEncrypted:Ae,onEnded:Ae,onError:Ae,onFocus:Ae,onInput:Ae,onInvalid:Ae,onKeyDown:Ae,onKeyPress:Ae,onKeyUp:Ae,onLoad:Ae,onLoadedData:Ae,onLoadedMetadata:Ae,onLoadStart:Ae,onMouseDown:Ae,onMouseEnter:Ae,onMouseLeave:Ae,onMouseMove:Ae,onMouseOut:Ae,onMouseOver:Ae,onMouseUp:Ae,onPaste:Ae,onPause:Ae,onPlay:Ae,onPlaying:Ae,onPointerCancel:Ae,onPointerDown:Ae,onPointerEnter:Ae,onPointerLeave:Ae,onPointerMove:Ae,onPointerOut:Ae,onPointerOver:Ae,onPointerUp:Ae,onProgress:Ae,onRateChange:Ae,onReset:Ae,onScroll:Ae,onScrollEnd:Ae,onSeeked:Ae,onSeeking:Ae,onSelect:Ae,onStalled:Ae,onSubmit:Ae,onSuspend:Ae,onTimeUpdate:Ae,onTouchCancel:Ae,onTouchEnd:Ae,onTouchMove:Ae,onTouchStart:Ae,onToggle:Ae,onTransitionCancel:Ae,onTransitionEnd:Ae,onTransitionRun:Ae,onTransitionStart:Ae,onVolumeChange:Ae,onWaiting:Ae,onWheel:Ae},mee=e=>A.useCallback(n=>{n&&e!=="never"&&u6()?iee(n,e==="allow-touch"?{allowTouchMove:s=>{let l=s;for(;l&&l!==n&&l!==u6()?.body;){if(l.getAttribute("data-allow-touch-scroll")!==null)return!0;l=l.parentElement}return!1}}:{}):oee()},[e]),uw=({children:e,variant:t="default",size:n="medium",isOpen:r,onClose:o,hAlign:s="left",heading:l,hero:f,footer:m,bodyLock:p="always",background:v="white",ariaLabel:g})=>{const y=Jc(),S=mee(p),x=A.useId(),w=vl(y,s,"left"),R=Or(ti.container,ti[`size-${n}`],v&&typeof v=="string"&&ti[`background-color-${v}`],{[ti["is-inset"]]:t==="inset-small",[ti["is-slide-up"]]:t==="slide-up-small",[ti["h-center"]]:w==="center",[ti["has-close"]]:o,[ti["no-hero"]]:!f,[ti["no-heading"]]:!l}),T=y==="sm"&&t==="slide-up-small";return C.jsx(ZJ,{aria:l?{labelledby:x}:void 0,contentLabel:l?void 0:g,isOpen:r,onRequestClose:o,className:{base:R,afterOpen:ti["container--after-open"],beforeClose:ti["container--before-close"]},overlayClassName:ti.overlay,closeTimeoutMS:T?400:void 0,children:C.jsx(Wx,{iconLabel:"close modal",iconTitle:"Close modal",onClickIcon:o,width:"100%",iconVariant:f?"overlay":"default",...pee,children:C.jsxs(ht,{className:Or(ti.scrollableContent),style:v&&typeof v=="object"?{backgroundImage:`url(${v.imageUrl})`,backgroundSize:"cover",backgroundPosition:"center"}:void 0,children:[f&&C.jsx(ht,{className:ti.hero,children:f}),l&&C.jsx(ht,{as:"header",className:ti.header,children:C.jsx(dn,{as:"h1",i
107d:x,setting:"title-small",className:ti.heading,children:l})}),C.jsx(ht,{className:ti.body,ref:S,children:e}),m&&C.jsx(ht,{as:"footer",className:ti.footer,children:m})]})})})};function vee(e){const t=e+"CollectionProvider",[n,r]=a2(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=w=>{const{scope:R,children:T}=w,I=A.useRef(null),k=A.useRef(new Map).current;return C.jsx(o,{scope:R,itemMap:k,collectionRef:I,children:T})};l.displayName=t;const f=e+"CollectionSlot",m=p_(f),p=A.forwardRef((w,R)=>{const{scope:T,children:I}=w,k=s(f,T),L=Ia(R,k.collectionRef);return C.jsx(m,{ref:L,children:I})});p.displayName=f;const v=e+"CollectionItemSlot",g="data-radix-collection-item",y=p_(v),S=A.forwardRef((w,R)=>{const{scope:T,children:I,...k}=w,L=A.useRef(null),H=Ia(R,L),M=s(v,T);return A.useEffect(()=>(M.itemMap.set(L,{ref:L,...k}),()=>{M.itemMap.delete(L)})),C.jsx(y,{[g]:"",ref:H,children:I})});S.displayName=v;function x(w){const R=s(e+"CollectionConsumer",w);return A.useCallback(()=>{const I=R.collectionRef.current;if(!I)return[];const k=Array.from(I.querySelectorAll(`[${g}]`));return Array.from(R.itemMap.values()).sort((M,j)=>k.indexOf(M.ref.current)-k.indexOf(j.ref.current))},[R.collectionRef,R.itemMap])}return[{Provider:l,Slot:p,ItemSlot:S}
107,x,r]}var vb=0,mp=null;function gee(){A.useEffect(()=>{mp||(mp={start:h9(),end:h9()});const{start:e,end:t}=mp;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),vb++,()=>{vb===1&&(mp?.start.remove(),mp?.end.remove(),mp=null),vb=Math.max(0,vb-1)}},[])}function h9(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var B3="focusScope.autoFocusOnMount",V3="focusScope.autoFocusOnUnmount",p9={bubbles:!1,cancelable:!0},yee="FocusScope",FA=A.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...l}=e,[f,m]=A.useState(null),p=Sl(o),v=Sl(s),g=A.useRef(null),y=Ia(t,w=>m(w)),S=A.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;A.useEffect(()=>{if(r){let w=function(k){if(S.paused||!f)return;const L=k.target;f.contains(L)?g.current=L:Cc(g.current,{select:!0})},R=function(k){if(S.paused||!f)return;const L=k.relatedTarget;L!==null&&(f.contains(L)||Cc(g.current,{select:!0}))},T=function(k){if(document.activeElement===document.body)for(const H of k)H.removedNodes.length>0&&Cc(f)};document.addEventListener("focusin",w),document.addEventListener("focusout",R);const I=new MutationObserver(T);return f&&I.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",R),I.disconnect()}}},[r,f,S.paused]),A.useEffect(()=>{if(f){v9.add(S);const w=document.activeElement;if(!f.contains(w)){const T=new CustomEvent(B3,p9);f.addEventListener(B3,p),f.dispatchEvent(T),T.defaultPrevented||(bee(wee(jA(f)),{select:!0}),document.activeElement===w&&Cc(f))}return()=>{f.removeEventListener(B3,p),setTimeout(()=>{const T=new CustomEvent(V3,p9);f.addEventListener(V3,v),f.dispatchEvent(T),T.defaultPrevented||Cc(w??document.body,{select:!0}),f.removeEventListener(V3,v),v9.remove(S)},0)}}},[f,p,v,S]);const x=A.useCallback(w=>{if(!n&&!r||S.paused)return;const R=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,T=document.activeElement;if(R&&T){const I=w.currentTarget,[k,L]=_ee(I);k&&L?!w.shiftKey&&T===L?(w.preventDefault(),n&&Cc(k,{select:!0})):w.shiftKey&&T===k&&(w.preventDefault(),n&&Cc(L,{select:!0})):T===I&&w.preventDefault()}},[n,r,S.paused]);return C.jsx(Ui.div,{tabIndex:-1,...l,ref:y,onKeyDown:x})});FA.displayName=yee;function bee(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Cc(r,{select:t}),document.activeElement!==n)return}function _ee(e){const t=jA(e),n=m9(t,e),r=m9(t.reverse(),e);return[n,r]}function jA(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function m9(e,t){for(const n of e)if(!See(n,{upTo:t}))return n}function See(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Eee(e){return e instanceof HTMLInputElement&&"select"in e}function Cc(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Eee(e)&&t&&e.select()}}var v9=xee();function xee(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=g9(e,t),e.unshift(t)},remove(t){e=g9(e,t),e[0]?.resume()}}}function g9(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function wee(e){return e.filter(t=>t.tagName!=="A")}var Cee=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},vp=new WeakMap,gb=new WeakMap,yb={},H3=0,UA=function(e){return e&&(e.host||UA(e.parentNode))},Tee=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=UA(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ree=function(e,t,n,r){var o=Tee(t,Array.isArray(e)?e:[e]);yb[n]||(yb[n]=new WeakMap);var s=yb[n],l=[],f=new Set,m=new Set(o),p=function(g){!g||f.has(g)||(f.add(g),p(g.parentNode))};o.forEach(p);var v=function(g){!g||m.has(g)||Array.prototype.forEach.call(g.children,function(y){if(f.has(y))v(y);else try{var S=y.getAttribute(r),x=S!==null&&S!=="false",w=(vp.get(y)||0)+1,R=(s.get(y)||0)+1;vp.set(y,w),s.set(y,R),l.push(y),w===1&&x&&gb.set(y,!0),R===1&&y.setAttribute(n,"true"),x||y.setAttribute(r,"true")}catch(T){console.error("aria-hidden: cannot operate on ",y,T)}})};return v(t),f.clear(),H3++,function(){l.forEach(function(g){var y=vp.get(g)-1,S=s.get(g)-1;vp.set(g,y),s.set(g,S),y||(gb.has(g)||g.removeAttribute(r),gb.delete(g)),S||g.removeAttribute(n)}),H3--,H3||(vp=new WeakMap,vp=new WeakMap,gb=new WeakMap,yb={})}},Oee=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Cee(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ree(r,o,n,"aria-hidden")):function(){return null}},Yb="right-scroll-bar-position",Kb="width-before-scroll-bar",Aee="with-scroll-bars-hidden",kee="--removed-body-scroll-bar-size";function z3(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Nee(e,t){var n=A.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Iee=typeof window<"u"?A.useLayoutEffect:A.useEffect,y9=new WeakMap;function Mee(e,t){var n=Nee(null,function(r){return e.forEach(function(o){return z3(o,r)})});return Iee(function(){var r=y9.get(n);if(r){var o=new Set(r),s=new Set(e),l=n.current;o.forEach(function(f){s.has(f)||z3(f,null)}
vendor: 4,181 bytes, lines 107-122
107),s.forEach(function(f){o.has(f)||z3(f,l)})}y9.set(n,e)},[e]),n}function Dee(e){return e}function Lee(e,t){t===void 0&&(t=Dee);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(f){return f!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(f){return s(f)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var f=n;n=[],f.forEach(s),l=n}var m=function(){var v=l;l=[],v.forEach(s)},p=function(){return Promise.resolve().then(m)};p(),n={push:function(v){l.push(v),p()},filter:function(v){return l=l.filter(v),n}}}};return o}function Pee(e){e===void 0&&(e={});var t=Lee(null);return t.options=ne({async:!0,ssr:!1},e),t}var BA=function(e){var t=e.sideCar,n=Ko(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return A.createElement(r,ne({},n))};BA.isSideCarExport=!0;function Fee(e,t){return e.useMedium(t),BA}var VA=Pee(),q3=function(){},m2=A.forwardRef(function(e,t){var n=A.useRef(null),r=A.useState({onScrollCapture:q3,onWheelCapture:q3,onTouchMoveCapture:q3}),o=r[0],s=r[1],l=e.forwardProps,f=e.children,m=e.className,p=e.removeScrollBar,v=e.enabled,g=e.shards,y=e.sideCar,S=e.noRelative,x=e.noIsolation,w=e.inert,R=e.allowPinchZoom,T=e.as,I=T===void 0?"div":T,k=e.gapMode,L=Ko(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),H=y,M=Mee([n,t]),j=ne(ne({},L),o);return A.createElement(A.Fragment,null,v&&A.createElement(H,{sideCar:VA,removeScrollBar:p,shards:g,noRelative:S,noIsolation:x,inert:w,setCallbacks:s,allowPinchZoom:!!R,lockRef:n,gapMode:k}),l?A.cloneElement(A.Children.only(f),ne(ne({},j),{ref:M})):A.createElement(I,ne({},j,{className:m,ref:M}),f))});m2.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};m2.classNames={fullWidth:Kb,zeroRight:Yb};var jee=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Uee(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=jee();return t&&e.setAttribute("nonce",t),e}function Bee(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Vee(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Hee=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Uee())&&(Bee(t,n),Vee(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},zee=function(){var e=Hee();return function(t,n){A.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},HA=function(){var e=zee(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},qee={left:0,top:0,right:0,gap:0},G3=function(e){return parseInt(e||"",10)||0},Gee=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[G3(n),G3(r),G3(o)]},$ee=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return qee;var t=Gee(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Qee=HA(),qp="data-scroll-locked",Wee=function(e,t,n,r){var o=e.left,s=e.top,l=e.right,f=e.gap;return n===void 0&&(n="margin"),` 108 .`.concat(Aee,` { 109 overflow: hidden `).concat(r,`; 110 padding-right: `).concat(f,"px ").concat(r,`; 111 } 112 body[`).concat(qp,`] { 113 overflow: hidden `).concat(r,`; 114 overscroll-behavior: contain; 115 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 116 padding-left: `.concat(o,`px; 117 padding-top: `).concat(s,`px; 118 padding-right: `).concat(l,`px; 119 margin-left:0; 120 margin-top:0; 121 margin-right: `).concat(f,"px ").concat(r,`; 122 `),n==="padding"&&"padding-right: ".concat(f,"px ").concat(r,";
122")].filter(Boolean).join(""),` 123 } 124 125 .`).concat(Yb,` { 126 right: `).concat(f,"px ").concat(r,`; 127 } 128 129 .`).concat(Kb,` { 130 margin-right: `).concat(f,"px ").concat(r,`; 131 } 132 133 .`).concat(Yb," .").concat(Yb,` { 134 right: 0 `).concat(r,`; 135 } 136 137 .`).concat(Kb," .").concat(Kb,` { 138 margin-right: 0 `).concat(r,`; 139 } 140 141 body[`).concat(qp,`] { 142 `).concat(kee,": ").concat(f,`px; 143 } 144`)},b9=function(){var e=parseInt(document.body.getAttribute(qp)||"0",10);return isFinite(e)?e:0},Yee=function(){A.useEffect(function(){return document.body.setAttribute(qp,(b9()+1).toString()),function(){var e=b9()-1;e<=0?document.body.removeAttribute(qp):document.body.setAttribute(qp,e.toString())}},[])},Kee=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Yee();var s=A.useMemo(function(){return $ee(o)},[o]);return A.createElement(Qee,{styles:Wee(s,!t,o,n?"":"!important")})},m6=!1;if(typeof window<"u")try{var bb=Object.defineProperty({},"passive",{get:function(){return m6=!0,!0}});window.addEventListener("test",bb,bb),window.removeEventListener("test",bb,bb)}catch{m6=!1}var gp=m6?{passive:!1}:!1,Xee=function(e){return e.tagName==="TEXTAREA"},zA=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Xee(e)&&n[t]==="visible")},Zee=function(e){return zA(e,"overflowY")},Jee=function(e){return zA(e,"overflowX")},_9=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=qA(e,r);if(o){var s=GA(e,r),l=s[1],f=s[2];if(l>f)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ete=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},tte=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},qA=function(e,t){return e==="v"?Zee(t):Jee(t)},GA=function(e,t){return e==="v"?ete(t):tte(t)},nte=function(e,t){return e==="h"&&t==="rtl"?-1:1},rte=function(e,t,n,r,o){var s=nte(e,window.getComputedStyle(t).direction),l=s*r,f=n.target,m=t.contains(f),p=!1,v=l>0,g=0,y=0;do{if(!f)break;var S=GA(e,f),x=S[0],w=S[1],R=S[2],T=w-R-s*x;(x||T)&&qA(e,f)&&(g+=T,y+=x);var I=f.parentNode;f=I&&I.nodeType===Node.DOCUMENT_FRAGMENT_NODE?I.host:I}while(!m&&f!==document.body||m&&(t.contains(f)||t===f));return(v&&Math.abs(g)<1||!v&&Math.abs(y)<1)&&(p=!0),p},_b=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},S9=function(e){return[e.deltaX,e.deltaY]},E9=function(e){return e&&"current"in e?e.current:e},ite=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ote=function(e){return` 145 .block-interactivity-`.concat(e,` {pointer-events: none;} 146 .allow-interactivity-`).concat(e,` {pointer-events: all;} 147`)},ate=0,yp=[];function ste(e){var t=A.useRef([]),n=A.useRef([0,0]),r=A.useRef(),o=A.useState(ate++)[0],s=A.useState(HA)[0],l=A.useRef(e);A.useEffect(function(){l.current=e},[e]),A.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var w=gi([e.lockRef.current],(e.shards||[]).map(E9),!0).filter(Boolean);return w.forEach(function(R){return R.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),w.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var f=A.useCallback(function(w,R){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!l.current.allowPinchZoom;var T=_b(w),I=n.current,k="deltaX"in w?w.deltaX:I[0]-T[0],L="deltaY"in w?w.deltaY:I[1]-T[1],H,M=w.target,j=Math.abs(k)>Math.abs(L)?"h":"v";if("touches"in w&&j==="h"&&M.type==="range")return!1;var K=window.getSelection(),P=K&&K.anchorNode,q=P?P===M||P.contains(M):!1;if(q)return!1;var Q=_9(j,M);if(!Q)return!0;if(Q?H=j:(H=j==="v"?"h":"v",Q=_9(j,M)),!Q)return!1;if(!r.current&&"changedTouches"in w&&(k||L)&&(r.current=H),!H)return!0;var $=r.current||H;return rte($,R,w,$==="h"?k:L)},[]),m=A.useCallback(function(w){var R=w;if(!(!yp.length||yp[yp.length-1]!==s)){var T="deltaY"in R?S9(R):_b(R),I=t.current.filter(function(H){return H.name===R.type&&(H.target===R.target||R.target===H.shadowParent)&&ite(H.delta,T)})[0];if(I&&I.should){R.cancelable&&R.preventDefault();return}
147if(!I){var k=(l.current.shards||[]).map(E9).filter(Boolean).filter(function(H){return H.contains(R.target)}),L=k.length>0?f(R,k[0]):!l.current.noIsolation;L&&R.cancelable&&R.preventDefault()}}},[]),p=A.useCallback(function(w,R,T,I){var k={name:w,delta:R,target:T,should:I,shadowParent:lte(T)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(L){return L!==k})},1)},[]),v=A.useCallback(function(w){n.current=_b(w),r.current=void 0},[]),g=A.useCallback(function(w){p(w.type,S9(w),w.target,f(w,e.lockRef.current))},[]),y=A.useCallback(function(w){p(w.type,_b(w),w.target,f(w,e.lockRef.current))},[]);A.useEffect(function(){return yp.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:y}),document.addEventListener("wheel",m,gp),document.addEventListener("touchmove",m,gp),document.addEventListener("touchstart",v,gp),function(){yp=yp.filter(function(w){return w!==s}),document.removeEventListener("wheel",m,gp),document.removeEventListener("touchmove",m,gp),document.removeEventListener("touchstart",v,gp)}},[]);var S=e.removeScrollBar,x=e.inert;return A.createElement(A.Fragment,null,x?A.createElement(s,{styles:ote(o)}):null,S?A.createElement(Kee,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function lte(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ute=Fee(VA,ste);var $A=A.forwardRef(function(e,t){return A.createElement(m2,ne({},e,{ref:t,sideCar:ute}))});$A.classNames=m2.classNames;const cte={small:424,"small-fixed":320,medium:644,"medium-fixed":560,large:864,"large-fixed":900,xlarge:1084,"xlarge-fixed":1140,xxlarge:1368,"full-bleed":void 0},fte={none:void 0,tight:.5,standard:1},x9=e=>{if(!e||e==="full-bleed")return{width:"100%"};const t=cte[e];if(t){const n=`${t}px`;return e.endsWith("-fixed")?{width:n}:{maxWidth:n}}return{width:e}},dte=({children:e,disableGutters:t=!1,gutter:n,width:r="xlarge",...o})=>{const s=$b(p=>{const v=x9(p);return"width"in v?v.width:"100%"},r),l=$b(p=>{const v=x9(p);return"maxWidth"in v?v.maxWidth:void 0},r),f=$b(p=>fte[p??(t?"none":"standard")],n),m=Ss(o,"ResponsiveSection",{stylingProps:"warn",dangerousStylingProps:"rewrite"});return C.jsx(ht,{width:s,maxWidth:l,px:f,mx:"auto",...m,children:e})};var $3,w9;function hte(){if(w9)return $3;w9=1;var e=function(s){return s instanceof RegExp},t=function(l){var f=/[\\^$.*+?()[\]{}|]/g,m=RegExp(f.source);return l&&m.test(l)?l.replace(f,"\\$&"):l},n=function(s){return typeof s=="string"},r=function(s){var l=[];return s.forEach(function(f){Array.isArray(f)?l=l.concat(f):l.push(f)}),l};function o(s,l,f){var m=0,p=0;if(s==="")return s;if(!s||!n(s))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var v=l;e(v)||(v=new RegExp("("+t(v)+")","gi"));for(var g=s.split(v),y=1,S=g.length;y<S;y+=2){if(g[y]===void 0||g[y-1]===void 0){console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");continue}p=g[y].length,m+=g[y-1].length,g[y]=f(g[y],y,m),m+=p}return g}return $3=function(l,f,m){return Array.isArray(l)||(l=[l]),r(l.map(function(p){return n(p)?o(p,f,m):p}))},$3}var pte=hte();const v2=Da(pte);let C9=0;const g2=()=>(C9+=1,C9),mte=e=>v2(e,/\*(.*?)\*/g,t=>C.jsx("strong",{children:y2(t)},g2())),vte=e=>v2(e,/_(.*?)_/g,t=>C.jsx("em",{children:y2(t)},g2())),gte=e=>v2(e,/~~(.*?)~~/g,t=>C.jsx("s",{children:y2(t)},g2())),yte=e=>v2(e,` 148`,()=>C.jsx("br",{},g2())),y2=e=>gte(mte(vte(yte(e)))),bte=({children:e})=>{const t=A.useMemo(()=>y2(e),[e]);return C.jsx(C.Fragment,{children:t})},_te="slimBanner-module_icon__SBpmN",Ste="slimBanner-module_content__d7p9M",Ete="slimBanner-module_dark__BOfAu",xte="slimBanner-module_citrus__KMiYj",wte="slimBanner-module_grapefruit__LvSRG",Cte="slimBanner-module_forest__niHtZ",xc={"content-icon":"slimBanner-module_content-icon__IBfQX",icon:_te,content:Ste,"error-dark":"slimBanner-module_error-dark__OQ8yG","is-interactive":"slimBanner-module_is-interactive__qpQHm","info-light":"slimBanner-module_info-light__7qEqL","promo-dark":"slimBanner-module_promo-dark__xjiRc",dark:Ete,"navy-white":"slimBanner-module_navy-white__1vN5Y","navy-citrus":"slimBanner-module_navy-citrus__UvIGZ",citrus:xte,grapefruit:wte,forest:Cte,"content-wrapper":"slimBanner-module_content-wrapper__7o7so","has-close":"slimBanner-module_has-close__jKBla"},QA=({text:e,onClose:t,cta:n,icon:r,variant:o="info-light"})=>{const s=Jc(),l=vl(s,e),f=n?"url"in n&&n.url?{as:"a",href:n.url,onClick:n.onClick}:{as:"button",type:"button",onClick:n.onClick}:{},m=!!n,p=o==="info-light"||o==="citrus"||o==="grapefruit"||o==="promo-dark"?"text":"text-inverse";return C.jsx(Wx,{variant:o,onClickIcon:t,icon:{sm:C.jsx(i2,{})},iconVAlign:"middle",iconLabel:"close banner",iconVariant:"inherited","data-testid":"slim-banner",children:C.jsx(ht,{className:Or(xc.content,xc[o],{[xc["is-interactive"]]:m}),"data-testid":"content",...f,children:C.jsxs(ht,{className:Or(xc["content-wrapper"],{[xc["has-close"]]:t}),children:[C.jsxs(dn,{height:"standard",family:"medium",scale:"3",children:[r&&C.jsx(ht,{className:`${xc.icon} ${xc["content-icon"]}`,children:r}),l,n?.text&&s!=="sm"&&C.jsx(Gc,{as:"span",ml:1,variant:p,children:n.text})]}),!t&&s==="sm"&&C.jsx(ht,{className:xc.icon,children:C.jsx(IY,{purpose:"decorative",color:"inherit",title:"icon arrow right"})})]})})})};var Tte="ToastProvider",[WA,Rte,Ote]=vee("Toast"),[YA]=a2("Toast",[Ote]),[Yle,b2]=YA(Tte),KA="ToastViewport",Ate=["F8"],v6="toast.viewportPause",g6="toast.viewportResume",kte=A.forwardRef((e,t)=>
148{const{__scopeToast:n,hotkey:r=Ate,label:o="Notifications ({hotkey})",...s}=e,l=b2(KA,n),f=Rte(n),m=A.useRef(null),p=A.useRef(null),v=A.useRef(null),g=A.useRef(null),y=Ia(t,g,l.onViewportChange),S=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=l.toastCount>0;A.useEffect(()=>{const R=T=>{r.length!==0&&r.every(k=>T[k]||T.code===k)&&g.current?.focus()};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[r]),A.useEffect(()=>{const R=m.current,T=g.current;if(x&&R&&T){const I=()=>{if(!l.isClosePausedRef.current){const M=new CustomEvent(v6);T.dispatchEvent(M),l.isClosePausedRef.current=!0}},k=()=>{if(l.isClosePausedRef.current){const M=new CustomEvent(g6);T.dispatchEvent(M),l.isClosePausedRef.current=!1}},L=M=>{!R.contains(M.relatedTarget)&&k()},H=()=>{R.contains(document.activeElement)||k()};return R.addEventListener("focusin",I),R.addEventListener("focusout",L),R.addEventListener("pointermove",I),R.addEventListener("pointerleave",H),window.addEventListener("blur",I),window.addEventListener("focus",k),()=>{R.removeEventListener("focusin",I),R.removeEventListener("focusout",L),R.removeEventListener("pointermove",I),R.removeEventListener("pointerleave",H),window.removeEventListener("blur",I),window.removeEventListener("focus",k)}}},[x,l.isClosePausedRef]);const w=A.useCallback(({tabbingDirection:R})=>{const I=f().map(k=>{const L=k.ref.current,H=[L,...Gte(L)];return R==="forwards"?H:H.reverse()});return(R==="forwards"?I.reverse():I).flat()},[f]);return A.useEffect(()=>{const R=g.current;if(R){const T=I=>{const k=I.altKey||I.ctrlKey||I.metaKey;if(I.key==="Tab"&&!k){const H=document.activeElement,M=I.shiftKey;if(I.target===R&&M){p.current?.focus();return}const P=w({tabbingDirection:M?"backwards":"forwards"}),q=P.findIndex(Q=>Q===H);Q3(P.slice(q+1))?I.preventDefault():M?p.current?.focus():v.current?.focus()}};return R.addEventListener("keydown",T),()=>R.removeEventListener("keydown",T)}},[f,w]),C.jsxs(aZ,{ref:m,role:"region","aria-label":o.replace("{hotkey}",S),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&C.jsx(y6,{ref:p,onFocusFromOutsideViewport:()=>{const R=w({tabbingDirection:"forwards"});Q3(R)}}),C.jsx(WA.Slot,{scope:n,children:C.jsx(Ui.ol,{tabIndex:-1,...s,ref:y})}),x&&C.jsx(y6,{ref:v,onFocusFromOutsideViewport:()=>{const R=w({tabbingDirection:"backwards"});Q3(R)}})]})});kte.displayName=KA;var XA="ToastFocusProxy",y6=A.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=b2(XA,n);return C.jsx(ow,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:l=>{const f=l.relatedTarget;!s.viewport?.contains(f)&&r()}})});y6.displayName=XA;var W1="Toast",Nte="toast.swipeStart",Ite="toast.swipeMove",Mte="toast.swipeCancel",Dte="toast.swipeEnd",ZA=A.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...l}=e,[f,m]=OA({prop:r,defaultProp:o??!0,onChange:s,caller:W1});return C.jsx(p2,{present:n||f,children:C.jsx(Fte,{open:f,...l,ref:t,onClose:()=>m(!1),onPause:Sl(e.onPause),onResume:Sl(e.onResume),onSwipeStart:ii(e.onSwipeStart,p=>{p.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ii(e.onSwipeMove,p=>{const{x:v,y:g}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","move"),p.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${v}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:ii(e.onSwipeCancel,p=>{p.currentTarget.setAttribute("data-swipe","cancel"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ii(e.onSwipeEnd,p=>{const{x:v,y:g}=p.detail.delta;p.currentTarget.setAttribute("data-swipe","end"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),p.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),p.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${v}px`),p.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),m(!1)})})})});ZA.displayName=W1;var[Lte,Pte]=YA(W1,{onClose(){}}),Fte=A.forwardRef((e,t)=>
148{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:l,onEscapeKeyDown:f,onPause:m,onResume:p,onSwipeStart:v,onSwipeMove:g,onSwipeCancel:y,onSwipeEnd:S,...x}=e,w=b2(W1,n),[R,T]=A.useState(null),I=Ia(t,G=>T(G)),k=A.useRef(null),L=A.useRef(null),H=o||w.duration,M=A.useRef(0),j=A.useRef(H),K=A.useRef(0),{onToastAdd:P,onToastRemove:q}=w,Q=Sl(()=>{R?.contains(document.activeElement)&&w.viewport?.focus(),l()}),$=A.useCallback(G=>{!G||G===1/0||(window.clearTimeout(K.current),M.current=new Date().getTime(),K.current=window.setTimeout(Q,G))},[Q]);A.useEffect(()=>{const G=w.viewport;if(G){const J=()=>{$(j.current),p?.()},V=()=>{const B=new Date().getTime()-M.current;j.current=j.current-B,window.clearTimeout(K.current),m?.()};return G.addEventListener(v6,V),G.addEventListener(g6,J),()=>{G.removeEventListener(v6,V),G.removeEventListener(g6,J)}}},[w.viewport,H,m,p,$]),A.useEffect(()=>{s&&!w.isClosePausedRef.current&&$(H)},[s,H,w.isClosePausedRef,$]),A.useEffect(()=>(P(),()=>q()),[P,q]);const W=A.useMemo(()=>R?ik(R):null,[R]);return w.viewport?C.jsxs(C.Fragment,{children:[W&&C.jsx(jte,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:W}),C.jsx(Lte,{scope:n,onClose:Q,children:ef.createPortal(C.jsx(WA.ItemSlot,{scope:n,children:C.jsx(oZ,{asChild:!0,onEscapeKeyDown:ii(f,()=>{w.isFocusedToastEscapeKeyDownRef.current||Q(),w.isFocusedToastEscapeKeyDownRef.current=!1}),children:C.jsx(Ui.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":w.swipeDirection,...x,ref:I,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ii(e.onKeyDown,G=>{G.key==="Escape"&&(f?.(G.nativeEvent),G.nativeEvent.defaultPrevented||(w.isFocusedToastEscapeKeyDownRef.current=!0,Q()))}),onPointerDown:ii(e.onPointerDown,G=>{G.button===0&&(k.current={x:G.clientX,y:G.clientY})}),onPointerMove:ii(e.onPointerMove,G=>{if(!k.current)return;const J=G.clientX-k.current.x,V=G.clientY-k.current.y,B=!!L.current,ee=["left","right"].includes(w.swipeDirection),ge=["left","up"].includes(w.swipeDirection)?Math.min:Math.max,ve=ee?ge(0,J):0,Y=ee?0:ge(0,V),oe=G.pointerType==="touch"?10:2,de={x:ve,y:Y},me={originalEvent:G,delta:de};B?(L.current=de,Sb(Ite,g,me,{discrete:!1})):T9(de,w.swipeDirection,oe)?(L.current=de,Sb(Nte,v,me,{discrete:!1}),G.target.setPointerCapture(G.pointerId)):(Math.abs(J)>oe||Math.abs(V)>oe)&&(k.current=null)}),onPointerUp:ii(e.onPointerUp,G=>{const J=L.current,V=G.target;if(V.hasPointerCapture(G.pointerId)&&V.releasePointerCapture(G.pointerId),L.current=null,k.current=null,J){const B=G.currentTarget,ee={originalEvent:G,delta:J};T9(J,w.swipeDirection,w.swipeThreshold)?Sb(Dte,S,ee,{discrete:!0}):Sb(Mte,y,ee,{discrete:!0}),B.addEventListener("click",ge=>ge.preventDefault(),{once:!0})}})})})}),w.viewport)})]}):null}),jte=e=>{const{__scopeToast:t,children:n,...r}=e,o=b2(W1,t),[s,l]=A.useState(!1),[f,m]=A.useState(!1);return zte(()=>l(!0)),A.useEffect(()=>{const p=window.setTimeout(()=>m(!0),1e3);return()=>window.clearTimeout(p)},[]),f?null:C.jsx(iw,{asChild:!0,container:o.announcerContainer||void 0,children:C.jsx(ow,{...r,children:s&&C.jsxs(C.Fragment,{children:[o.label," ",n]})})})},Ute="ToastTitle",Bte=A.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return C.jsx(Ui.div,{...r,ref:t})});Bte.displayName=Ute;var Vte="ToastDescription",JA=A.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return C.jsx(Ui.div,{...r,ref:t})});JA.displayName=Vte;var ek="ToastAction",Hte=A.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?C.jsx(rk,{altText:n,asChild:!0,children:C.jsx(nk,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ek}\`. Expected non-empty \`string\`.`),null)});Hte.displayName=ek;var tk="ToastClose",nk=A.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Pte(tk,n);return C.jsx(rk,{asChild:!0,children:C.jsx(Ui.button,{type:"button",...r,ref:t,onClick:ii(e.onClick,o.onClose)})})});nk.displayName=tk;var rk=A.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return C.jsx(Ui.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function ik(e){const t=[];
148return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),qte(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...ik(r))}}),t}function Sb(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?XO(o,s):o.dispatchEvent(s)}var T9=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function zte(e=()=>{}){const t=Sl(e);gl(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function qte(e){return e.nodeType===e.ELEMENT_NODE}function Gte(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Q3(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var $te=ZA,Qte=JA;const Wte="toast-module_root__3IV3b",Yte="toast-module_toast__AYp8E",zv={root:Wte,toast:Yte,"content-container":"toast-module_content-container__71UTR","start-content":"toast-module_start-content__Y0wsO","end-content":"toast-module_end-content__0dCq0"},R9={EnterAutoDismiss:4e3,EnterManagedDismiss:0},Kte=({children:e,delay:t,endContent:n,isOpen:r,onClose:o,role:s="status",startContent:l,...f})=>{const m=Ss(f,"Toast",{stylingProps:"warn",dangerousStylingProps:"rewrite"}),p=t??(o?R9.EnterAutoDismiss:R9.EnterManagedDismiss),v=s==="alert"?"foreground":"background",g=y=>{!y&&o&&o()};return C.jsx($te,{className:zv.root,open:r,onOpenChange:g,duration:p===0?1/0:p,type:v,children:C.jsxs(ht,{className:zv.toast,...m,"data-testid":"toast",children:[C.jsxs(ht,{className:zv["content-container"],children:[l&&C.jsx("div",{className:zv["start-content"],children:l}),C.jsx(Qte,{asChild:!0,children:C.jsx("span",{children:e})})]}),n&&C.jsx("div",{className:zv["end-content"],children:n})]})})},Xte="style-module_wordmark__LRMOq",bp={"home-link":"style-module_home-link__IRoDZ","home-disabled-link":"style-module_home-disabled-link__-b4Rz","logo-circle":"style-module_logo-circle__l2SFh",wordmark:Xte},Zte="style-module_link__EGoZI",Jte="style-module_active__m5-2v",ene="style-module_clicked__sb6R5",W3={link:Zte,active:Jte,clicked:ene};var Y3,O9;function tne(){return O9||(O9=1,Y3=e=>{if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return/^[a-zA-Z]:\\/.test(e)?!1:/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e)}),Y3}var nne=tne();const rne=Da(nne),ine=(e,t)=>rne(t)?t:`${e}${t}`,cw=()=>{const{rootUrl:e}=A.useContext(Sm);return t=>ine(e,t)},ki=({to:e,children:t,...n})=>{const r=cw();return C.jsx("a",{href:r(e),...n,children:t})},Ft=({to:e,children:t,underline:n="inverse",...r})=>{const o=cw();return C.jsx(Q1,{href:o(e),variant:"inherit",underline:n,...r,children:t})},Aa=({active:e=!1,children:t,onClick:n,...r})=>{const[o,s]=A.useState(!1),l=f=>{n?.(f),s(!0)};return C.jsx("div",{className:Or(W3.link,{[W3.active]:e,[W3.clicked]:o}),children:C.jsx(ki,{...r,onClick:l,"aria-current":e?"page":void 0,children:t})})},ok=({href:e,active:t=!1,disabled:n=!1})=>{const{reportSelectEvent:r}=ji(),o=C.jsx(VO,{title:"Stitch Fix","data-testid":"logo-mark"}),s=C.jsx($x,{title:"Stitch Fix","data-testid":"logo"});return n?C.jsxs("div",{className:bp["home-disabled-link"],children:[C.jsx("span",{className:bp["logo-circle"],children:o}),C.jsx("span",{className:bp.wordmark,children:s})]}):C.jsxs(Aa,{active:t,className:bp["home-link"],to:e,"data-ga":"meganav-primary-brand-link","data-testid":"brand-link",onClick:()=>{r({schema:"select",name:"navbar",content_id:"stitchfix_logo",action_name:"navigate_to_homepage"})},children:[C.jsx("span",{className:bp["logo-circle"],children:o}),C.jsx("span",{className:bp.wordmark,children:s})]})},A9={"primary-nav-links":"style-module_primary-nav-links__p66RT","primary-nav-link":"style-module_primary-nav-link__VCyj7"},one=({links:e,onClick:t})=>C.jsx("ul",{className:A9["primary-nav-links"],"data-testid":"primary-nav-links",children:e.map(n=>C.jsx(A.Fragment,{children:C.jsx("li",{className:A9["primary-nav-link"],"data-testid":n.active?"primary-active-link":"",children:C.jsx(Aa,{active:n.active,"data-ga":`meganav-primary-${n.name}`,to:n.location,onClick:t?()=>t(n):void 0,children:n.text})})},n.text))}),fw=(e,t={})=>{const{inCents:n=!1,precision:r=2}=t,o=n?e/100:e;return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:r,maximumFractionDigits:r}
148).format(o)};var _2="Popover",[ak]=a2(_2,[bA]),Y1=bA(),[ane,nf]=ak(_2),sk=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:l=!1}=e,f=Y1(t),m=A.useRef(null),[p,v]=A.useState(!1),[g,y]=OA({prop:r,defaultProp:o??!1,onChange:s,caller:_2});return C.jsx(mJ,{...f,children:C.jsx(ane,{scope:t,contentId:uZ(),triggerRef:m,open:g,onOpenChange:y,onOpenToggle:A.useCallback(()=>y(S=>!S),[y]),hasCustomAnchor:p,onCustomAnchorAdd:A.useCallback(()=>v(!0),[]),onCustomAnchorRemove:A.useCallback(()=>v(!1),[]),modal:l,children:n})})};sk.displayName=_2;var lk="PopoverAnchor",sne=A.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=nf(lk,n),s=Y1(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:f}=o;return A.useEffect(()=>(l(),()=>f()),[l,f]),C.jsx(RA,{...s,...r,ref:t})});sne.displayName=lk;var uk="PopoverTrigger",ck=A.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=nf(uk,n),s=Y1(n),l=Ia(t,o.triggerRef),f=C.jsx(Ui.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":mk(o.open),...r,ref:l,onClick:ii(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?f:C.jsx(RA,{asChild:!0,...s,children:f})});ck.displayName=uk;var dw="PopoverPortal",[lne,une]=ak(dw,{forceMount:void 0}),fk=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=nf(dw,t);return C.jsx(lne,{scope:t,forceMount:n,children:C.jsx(p2,{present:n||s.open,children:C.jsx(iw,{asChild:!0,container:o,children:r})})})};fk.displayName=dw;var om="PopoverContent",dk=A.forwardRef((e,t)=>{const n=une(om,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=nf(om,e.__scopePopover);return C.jsx(p2,{present:r||s.open,children:s.modal?C.jsx(fne,{...o,ref:t}):C.jsx(dne,{...o,ref:t})})});dk.displayName=om;var cne=p_("PopoverContent.RemoveScroll"),fne=A.forwardRef((e,t)=>{const n=nf(om,e.__scopePopover),r=A.useRef(null),o=Ia(t,r),s=A.useRef(!1);return A.useEffect(()=>{const l=r.current;if(l)return Oee(l)},[]),C.jsx($A,{as:cne,allowPinchZoom:!0,children:C.jsx(hk,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ii(e.onCloseAutoFocus,l=>{l.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:ii(e.onPointerDownOutside,l=>{const f=l.detail.originalEvent,m=f.button===0&&f.ctrlKey===!0,p=f.button===2||m;s.current=p},{checkForDefaultPrevented:!1}),onFocusOutside:ii(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),dne=A.forwardRef((e,t)=>{const n=nf(om,e.__scopePopover),r=A.useRef(!1),o=A.useRef(!1);return C.jsx(hk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const l=s.target;n.triggerRef.current?.contains(l)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),hk=A.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:v,...g}=e,y=nf(om,n),S=Y1(n);return gee(),C.jsx(FA,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:C.jsx(Yx,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:v,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:p,onDismiss:()=>y.onOpenChange(!1),children:C.jsx(vJ,{"data-state":mk(y.open),role:"dialog",id:y.contentId,...S,...g,ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),pk="PopoverClose",hne=A.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=nf(pk,n);return C.jsx(Ui.button,{type:"button",...r,ref:t,onClick:ii(e.onClick,()=>o.onOpenChange(!1))})});hne.displayName=pk;var pne="PopoverArrow",mne=A.forwardRef((e,t)=>
148{const{__scopePopover:n,...r}=e,o=Y1(n);return C.jsx(gJ,{...o,...r,ref:t})});mne.displayName=pne;function mk(e){return e?"open":"closed"}var vne=sk,gne=ck,yne=fk,bne=dk;const _ne={"account-dropdown-button":"style-module_account-dropdown-button__18KBl","account-name":"style-module_account-name__K97zl","dark-account-name":"style-module_dark-account-name__xGyaI","light-theme":"style-module_light-theme__oe80l","notification-container":"style-module_notification-container__jGWAg","notification-circle":"style-module_notification-circle__i2zji","stroke-light":"style-module_stroke-light__KOPsq","stroke-dark":"style-module_stroke-dark__Wu-1g","full-height":"style-module_full-height__8aQnb"},Sne={"account-badge":"style-module_account-badge__fNoHf","circle-color-0":"style-module_circle-color-0__GYZsW","circle-color-1":"style-module_circle-color-1__ieFLA","circle-color-2":"style-module_circle-color-2__jr07m","circle-color-3":"style-module_circle-color-3__rvKnb","circle-color-4":"style-module_circle-color-4__AG-Zt","circle-color-5":"style-module_circle-color-5__F-eMx","circle-color-6":"style-module_circle-color-6__4V79D","circle-color-7":"style-module_circle-color-7__9VZMs"},Ene=Fi.bind(Sne),vk=({circleColor:e,text:t})=>C.jsx(ht,{className:Ene("account-badge",`circle-color-${e}`),children:C.jsx(dn,{family:"medium",scale:"3",children:t})}),K3=Fi.bind(_ne),k9=A.forwardRef(({firstName:e,firstNameColor:t="light",theme:n="",circleColor:r=0,isNameVisible:o=!0,isOpen:s=!1,...l},f)=>{const{reportSelectEvent:m}=ji(),p=n==="light"?"light-theme":"",{onClick:v,...g}=l;return C.jsx("div",{className:K3("full-height",p),children:C.jsxs("button",{...g,ref:f,type:"button",className:K3("account-dropdown-button"),"aria-haspopup":"menu","aria-label":`${e||"User"}'s profile menu`,"aria-expanded":s,onClick:y=>{m({schema:"select",name:"navbar",action_name:"toggle_navbar_dropdown"}),v?.(y)},children:[C.jsx(vk,{circleColor:r,text:e.charAt(0)}),C.jsx(ht,{as:"span",className:K3(t==="dark"?"dark-account-name":"account-name"),children:o&&e})]})})}),K1=()=>Fn()?.StitchFixAndroidApp,xne=()=>!!K1()?.navigateToStylistConnect,wne=e=>{const t=K1();if(!t?.beginStylistConnectUnreadCountPolling)return!1;try{return t.beginStylistConnectUnreadCountPolling(e),!0}catch{return!1}},Cne=()=>{const e=K1();if(!e?.navigateToStylistConnect)return!1;try{return e.navigateToStylistConnect(),!0}catch{return!1}},Tne=(e,t)=>{const n=K1();if(!n?.changeClient)return!1;try{return n.changeClient(e,t),!0}catch{return!1}},Rne=()=>{const e=K1();if(!e?.notifySignOut)return!1;try{return e.notifySignOut(),!0}catch{return!1}},One="style-module_section__7835b",Dp={"dropdown-wrapper":"style-module_dropdown-wrapper__AUC6I","section-row-link":"style-module_section-row-link__RfNMn","dropdown-wrapper--simplified":"style-module_dropdown-wrapper--simplified__GXUQL","dropdown-control-wrapper":"style-module_dropdown-control-wrapper__XZxk8","dropdown-menu":"style-module_dropdown-menu__Iico8","dropdown-menu--open":"style-module_dropdown-menu--open__-y38D","name-wrapper":"style-module_name-wrapper__k9jOK",section:One,"section-row":"style-module_section-row__nYqmG","dropdown-incentive-pill":"style-module_dropdown-incentive-pill__JyoXY"},Ane=Fi.bind(Dp),kne=({onClick:e})=>{const{reportSelectEvent:t}=ji(),n=r=>{t({schema:"select",name:"navbar_dropdown",content_id:"sign_out_link",action_name:"sign_out"}),Rne(),e(r)};return C.jsx(ki,{"data-ga":"meganav-primary-dropdown-logout",onClick:n,className:Ane("section-row","section-row-link"),to:"#",children:"Sign out"})},Nne="style-module_image__Mt8u7",Ine={image:Nne},Mne=Fi.bind(Ine),Dne={mediaPath:"v1701378813/onboarding/womens-onboarding-modal.jpg",alt:"A woman wearing Stitch Fix clothing, including a yellow sweater, olive pants, and a striped coat."},Lne={mediaPath:"v1701380172/onboarding/mens-onboarding-modal.jpg",alt:"Menâs fall clothing from Stitch Fix, including pants, outerwear, shirts, sweaters, and shoes."},Pne={mediaPath:"v1701379993/onboarding/kids-onboarding-modal.jpg",alt:"Two children smiling at the camera and wearing Stitch Fix clothing in shades of blue, khaki, and peach."},Fne={men:Lne,women:Dne,kids:Pne},jne=({client:e,isOpen:t,onClose:n,onConfirmLogout:r})=>{const o=e?e.businessLine:"WOMENS",s=Jc()==="sm",l=A.useMemo(()=>{switch(o){case"WOMENS":return"women";case"MENS":return"men";case"KIDS":case"SHELL":return"kids";default:return"women"}},[o]),f=o==="KIDS"||o==="SHELL"?"Youâre so close to super-easy shopping for the whole family! Just a few more questions, and weâll take care of the rest.":"Youâre so close to getting personalized style straight to your door! Just a few more questions, and weâll start styling.",m=Fne[l];
148return C.jsx(uw,{isOpen:t,onClose:n,hero:C.jsx("div",{className:Mne("image"),children:C.jsx(KO,{baseUrl:"https://d3n78nkjl8tizo.cloudfront.net/stitch-fix/image/upload/",mediaPath:m.mediaPath,sizes:{sm:560},objectFit:"cover",alt:m.alt})}),variant:"slide-up-small",hAlign:"center",bodyLock:"never","data-testid":"sign-out-modal",ariaLabel:"Continue onboarding",children:C.jsxs(ht,{children:[C.jsx(dn,{color:"blue-45",setting:"display-medium",mb:.5,mt:.75,children:"Keep it going"}),C.jsx(dn,{setting:"body-large",children:f}),C.jsx(ht,{style:{display:"flex",justifyContent:"center",width:"100%"},children:C.jsx(ht,{style:{width:s?"100%":"18.5rem",maxWidth:"100%"},children:C.jsx(Gc,{variant:"filled-statement",mt:2,"data-testid":"modal-cta",onClick:n,width:"fill",children:"Continue quiz"})})}),C.jsx(ht,{style:{display:"flex",justifyContent:"center",width:"100%"},mb:{sm:.25,md:.75},children:C.jsx(ht,{style:{width:s?"100%":"18.5rem",maxWidth:"100%"},children:C.jsx(Gc,{variant:"text",mt:1,"data-testid":"signout-modal-link",onClick:r,width:"fill",children:"Save progress and exit"})})})]})})};class Une extends Error{constructor(t){super(t),this.name="ChangeClientError"}}const Bne=(e,t)=>fetch(`${e}/client-auth-api/api/session`,{method:"PUT",credentials:"include",body:JSON.stringify({active_client_id:t,scope:"default"}),headers:{"Content-Type":"application/json",Accept:"application/json;version=1"}}).then(n=>{if(!n.ok)throw new Une("Switch account response was not ok");return n.json()}),b6={"section-row":"style-module_section-row__w-vYC","section-row-link":"style-module_section-row-link__xKLaE","section-row-button":"style-module_section-row-button__9sr-q","section-row-icon":"style-module_section-row-icon__U3CmG"},gk=e=>{const t=e.household?.members||[],n=t.map(m=>m.id),r=m=>{const p=n.indexOf(m.id);return p>=0?p:0},o=t.filter(m=>m.id!==e.id),l=!e.capabilities.needsOnboarding&&e.businessLine!=="SHELL",f=o.length>0||l;return{getCircleColorForUser:r,householdMembers:t,householdMembersBesidesSelf:o,canAddProfiles:l,showHouseholdSection:f}},Vne="style-module_list__6OibS",Hne={list:Vne},zne={},qne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getAddProfileIngressModal"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"client"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addProfileIngressModal"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"media"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"baseUrl"}},{kind:"Field",name:{kind:"Name",value:"mediaPath"}},{kind:"Field",name:{kind:"Name",value:"altText"}},{kind:"Field",name:{kind:"Name",value:"height"}},{kind:"Field",name:{kind:"Name",value:"width"}}]}},{kind:"Field",name:{kind:"Name",value:"title"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"}},{kind:"Field",name:{kind:"Name",value:"plain"}}]}},{kind:"Field",name:{kind:"Name",value:"buttonCta"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"actionType"}},{kind:"Field",name:{kind:"Name",value:"label"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"text"}}]}},{kind:"Field",name:{kind:"Name",value:"url"}}]}},{kind:"Field",name:{kind:"Name",value:"body"}}]}}]}}]}}]};function Gne(e){const t={...zne,...e};return mR(qne,t)}const N9=Fi.bind(Hne),_6=({isModalOpen:e,onClose:t})=>{const{data:n,loading:r,error:o}=Gne({skip:!e}),s=n?.client?.addProfileIngressModal,l=w=>{const T=Fn()?.location?.href||"/home",I=new URL(w);return I.searchParams.set("ret",T),I.toString()},{reportSelectEvent:f}=ji(),{EventProvider:m,ref:p}=PO({schema:"view",name:"household_ingress"}),v=()=>{f({schema:"select",name:"household_ingress",action_name:"navigate_to_profile_business_line"}),t()},g=()=>C.jsxs(ht,{my:2,children:[C.jsx(dn,{color:"blue-45",setting:"body-medium",mb:.5,children:"Oops! Something went wrong."}),C.jsx(dn,{color:"blue-45",setting:"body-medium",children:"Please try again."})]}),y=()=>!r&&!o&&s&&s?.buttonCta?.url?C.jsx(Gc,{as:"a",variant:"filled-statement",mt:.25,onClick:v,href:l(s.buttonCta.url),width:"fill",children:s?.buttonCta?.label?.text}):null,S=()=>r?null:o?g():s?C.jsx(m,{children:C.jsxs(ht,{ref:p,children:[C.jsx(dn,{color:"blue-45",setting:"display-medium",mb:{sm:1.5,lg:.75},mt:{sm:.75,lg:0},style:{textWrap:"pretty"},children:C.jsx(bte,{children:String(s?.title?.formatted)})}),C.jsx(ht,{bgColor:"gray-99",pt:1,pb:.5,px:1,children:C.jsx("ul",{className:N9("list"),children:s?.body.map(w=>C.jsx("li",{children:C.jsx(dn,{color:"blue-45",setting:"body-medium",mb:.5,children:w})},w.substring(0,15).replace(/\s+/g,"-")))})})]})}):null,x=()=>r||o||!s?null:C.jsx(ht,{className:N9("image"),children:C.jsx(KO,{baseUrl:"https://d3n78nkjl8tizo.cloudfront.net/stitch-fix
148/image/upload/",mediaPath:s?.media?.mediaPath,sizes:{sm:560},alt:s?.media?.altText})});return C.jsx(uw,{isOpen:e,onClose:t,hero:x(),variant:"slide-up-small",hAlign:"center",bodyLock:"never",footer:y(),ariaLabel:"Add a profile",children:S()})},I9=Fi.bind(b6),$ne=({client:e})=>{const[t,n]=A.useState(!1),{rootUrl:r}=A.useContext(Sm),{reportSelectEvent:o}=ji(),{getCircleColorForUser:s,householdMembersBesidesSelf:l,canAddProfiles:f}=gk(e),m=(g,y)=>{o({schema:"select",name:"navbar_dropdown",action_name:"switch_profile"}),p(g,y)},p=(g,y)=>{Tne(g,y)||Bne(r,g).then(S=>{if(S.auth_token)y.toLowerCase()==="kids"?window.location.assign(`${r}/fix-home`):window.location.assign(`${r}/home`);else throw Error(S.error)})},v=()=>{o({schema:"select",name:"navbar_dropdown",action_name:"open_household_ingress",content_id:"add_profile_button"}),n(!0)};return C.jsxs(C.Fragment,{children:[C.jsx(dn,{setting:"eyebrow-small",ml:.375,my:.5,children:"Switch Profiles"}),l.map(g=>C.jsxs("button",{"data-ga":"meganav-primary-dropdown-switch-account",className:I9("section-row","section-row-button"),onClick:()=>m(g.id,g.businessLine),type:"button",children:[C.jsx("div",{className:b6["section-row-icon"],children:C.jsx(vk,{circleColor:s(g),text:g.firstName.charAt(0)})}),C.jsx(dn,{height:"standard",family:"regular",scale:"3",children:g.firstName})]},g.id)),f&&C.jsxs(C.Fragment,{children:[C.jsxs("button",{className:I9("section-row","section-row-button"),"data-ga":"meganav-primary-dropdown-add-profile",onClick:v,type:"button",children:[C.jsx("div",{className:b6["section-row-icon"],children:C.jsx(kY,{purpose:"decorative"})}),"Add a profile"," ",C.jsx(FJ,{ml:.5,variant:"citrus",children:"New"})]}),C.jsx(_6,{isModalOpen:t,onClose:()=>n(!1)})]})]})},T1=(e,t)=>{const n=t.findIndex(r=>r.name===e);return t[n]?.enabled===!0};var X3={},M9;function Qne(){return M9||(M9=1,(function(e){e.defaults={},e.set=function(t,n,r){var o=r||{},s=e.defaults,l=o.expires||s.expires,f=o.domain||s.domain,m=o.path!==void 0?o.path:s.path!==void 0?s.path:"/",p=o.secure!==void 0?o.secure:s.secure,v=o.httponly!==void 0?o.httponly:s.httponly,g=o.samesite!==void 0?o.samesite:s.samesite,y=l?new Date(typeof l=="number"?new Date().getTime()+l*864e5:l):0;document.cookie=t.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+n.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(y&&y.getTime()>=0?";expires="+y.toUTCString():"")+(f?";domain="+f:"")+(m?";path="+m:"")+(p?";secure":"")+(v?";httponly":"")+(g?";samesite="+g:"")},e.get=function(t){for(var n=document.cookie.split(";");n.length;){var r=n.pop(),o=r.indexOf("=");o=o<0?r.length:o;var s=decodeURIComponent(r.slice(0,o).replace(/^\s+/,""));if(s===t)return decodeURIComponent(r.slice(o+1))}return null},e.erase=function(t,n){e.set(t,"",{expires:-1,domain:n&&n.domain,path:n&&n.path,secure:0,httponly:0})},e.all=function(){for(var t={},n=document.cookie.split(";");n.length;){var r=n.pop(),o=r.indexOf("=");o=o<0?r.length:o;var s=decodeURIComponent(r.slice(0,o).replace(/^\s+/,""));t[s]=decodeURIComponent(r.slice(o+1))}return t}})(X3)),X3}var Wne=Qne();const Yne=Da(Wne),Kne=e=>fetch(`${e}/client-auth-api/api/session`,{credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/json;version=1"},method:"DELETE"}).then(t=>{if(!t.ok)throw new Error("Logout response was not ok");return t}),Xne="__attentive_client_user_id",Zne=async e=>{await Kne(e),Fn()&&Yne.erase(Xne);const t=new URLSearchParams(Fn()?.location.search);let n=e;e===""&&t.has("email_validation")&&(t.delete("email_validation"),n=`?${t.toString()}`),Fn()?.location.assign(n)},Jne=({client:e,onPopoverClose:t})=>{const{rootUrl:n}=A.useContext(Sm),[r,o]=A.useState({status:"idle"}),s=e?.capabilities?.needsOnboarding,l=async g=>{g.preventDefault();try{await Zne(n),o({status:"idle"})}catch{o({status:"error",message:"We couldn't sign you out. Please try again."})}},m={onClick:g=>{g.preventDefault(),s?(o({status:"modal_open"}),t()):(t(),l(g))}},p={client:e,isOpen:r.status==="modal_open",onClose:()=>o({status:"idle"}),onConfirmLogout:l},v={isOpen:r.status==="error",onClose:()=>o({status:"idle"})};return{logoutButtonProps:m,signOutModalProps:p,errorToastProps:v}},Cd={help:"https://support.stitchfix.com/support/home",support:"https://support.stitchfix.com",returns:"https://support.stitchfix.com/support/solutions/articles/153000173841-returns"},ba=Fi.bind(Dp),yk=({client:e,isPrimaryNavVisible:t,suppressKeptItemAndOrderLinks:n=!1,isReferralShown:r=!1,isNameVisible:o,variant:s="default"})=>{const{getCircleColorForUser:l,showHouseholdSection:f}=gk(e),{reportSelectEvent:m}=ji(),[p,v]=A.useState(!1),{logoutButtonProps:g,signOutModalProps:y,errorToastProps:S}=Jne({client:e,onPopoverClose:()=>v(!1)}),x=!e.capabilities.needsOnboarding,w=s==="simplified",R=e.businessLine!=="KIDS"||T1("client.global.kids_categories",e?.featureFlags),T=e.referrals.incentive?.senderCredit,I=x&&R&&!n,k=x||R,L=e.stylefileStatus&&e.stylefileStatus!=="INELIGIBLE",H=e.vision.canAccessVision,M=e.capabilities.canScheduleFix,j=C.jsxs(C.Fragment,{children:[!w&&I&&C.jsx(ki,{"data-ga":"meganav-primary-dropdown-style-kept-items",to:"/wardrobe/bought-items",className:ba("section-row","section-row-link"),onClick:()=>{m({schema:"select",name:"navbar_dropdown",content_id:"kept_items_link",action_name:"navigate_to_kept_items"})},children:"Kept items"}),C.jsx(ki,{"data-ga":"meganav-primary-dropdown-style-profile",to:"/style/profile",className:ba("section-row","section-row-link"),onClick:()=>{m({schema:"select",name:"navbar_dropdown",content_id:"style_profile_link",action_name:"navigate_to_style_profile"})},children:"Style profile"}
148),(e.businessLine==="MENS"||e.businessLine==="WOMENS")&&C.jsx(ki,{"data-ga":"meganav-primary-dropdown-style-profile-photos",to:"/profile/photos",className:ba("section-row","section-row-link"),onClick:()=>{m({schema:"select",name:"navbar_dropdown",content_id:"profile_photos_link",action_name:"navigate_to_profile_photos"})},children:"Profile photos"}),!w&&H&&C.jsx(ki,{"data-ga":"meganav-primary-dropdown-vision",to:"/gallery",className:ba("section-row","section-row-link"),onClick:()=>{m({schema:"select",name:"navbar_dropdown",content_id:"vision_gallery_link",action_name:"navigate_to_vision_gallery"})},children:"Vision image gallery"}),!w&&L&&C.jsx(ki,{"data-ga":"meganav-primary-dropdown-stylefile",to:"/client/stylefile",className:ba("section-row","section-row-link"),onClick:()=>{m({schema:"select",name:"navbar_dropdown",content_id:"style_file_link",action_name:"navigate_to_style_file"})},children:"StyleFile"})]}),K=C.jsxs(C.Fragment,{children:[!w&&k&&C.jsx(ki,{"data-testid":"dropdown-menu-orders-link","data-ga":"meganav-primary-dropdown-order-history",to:"/orders",className:ba("section-row","section-row-link"),onClick:()=>{m({schema:"select",name:"navbar_dropdown",content_id:"order_history_link",action_name:"navigate_to_order_history"})},children:"Order & returns"}),C.jsx(ki,{"data-ga":"meganav-primary-dropdown-account-settings",to:"/settings",className:ba("section-row","section-row-link"),onClick:()=>{m({schema:"select",name:"navbar_dropdown",content_id:"account_info_link",action_name:"navigate_to_account_info"})},children:"Account info"}),!w&&M&&C.jsx(ki,{"data-ga":"meganav-primary-dropdown-fix-frequency",to:"/fix-frequency",className:ba("section-row","section-row-link"),onClick:()=>{m({schema:"select",name:"navbar_dropdown",content_id:"fix_frequency_link",action_name:"navigate_to_fix_frequency"})},children:"Fix frequency"})]}),P=C.jsxs(C.Fragment,{children:[!w&&C.jsxs(ki,{"data-ga":"meganav-primary-dropdown-client-referrals",to:"/client/referrals",className:ba("section-row","section-row-link","referral-link",{hide:!r}),"data-testid":"meganav-dropdown-referral-link",onClick:()=>{m({schema:"select",name:"navbar_dropdown",content_id:"referrals_page_link",action_name:"navigate_to_referral"})},children:["Refer"," ",T&&T.value>0&&C.jsxs(C.Fragment,{children:["& get"," ",fw(T.value,{precision:0,inCents:!0})]})]}),C.jsx(ki,{"data-ga":"meganav-primary-dropdown-help",className:ba("section-row","section-row-link"),to:w?Cd.support:Cd.help,target:w?"_blank":void 0,rel:w?"noopener noreferrer":void 0,onClick:()=>{m({schema:"select",name:"navbar_dropdown",content_id:"help_center_link",action_name:"navigate_to_help_center"})},children:"Help"}),C.jsx(kne,{...g})]}),q=[{id:"account",heading:"Your Account",links:C.jsxs(C.Fragment,{children:[j,K,P]})}];return A.useEffect(()=>{t||v(!1)},[t]),C.jsxs("div",{className:Dp["dropdown-control-wrapper"],children:[C.jsxs(vne,{open:p,onOpenChange:v,children:[C.jsx(gne,{asChild:!0,children:C.jsx(k9,{firstName:e.firstName||"",circleColor:l(e),firstNameColor:w?"dark":void 0,isOpen:p,isNameVisible:o})}),C.jsx(yne,{children:C.jsx(bne,{className:ba("dropdown-wrapper",{"dropdown-wrapper--simplified":w}),side:"bottom",align:"end",sideOffset:8,avoidCollisions:!1,children:C.jsxs("div",{className:ba({"dropdown-menu":!0,"dropdown-menu--open":p}),"data-testid":w?"simplified-dropdown":"dropdown",role:"menu",children:[C.jsx("div",{className:Dp["name-wrapper"],children:C.jsx(k9,{firstName:e.firstName||"",theme:"light",circleColor:l(e),onClick:()=>v(!1),isOpen:p})}),(!w||f)&&C.jsx("div",{className:Dp.section,"data-testid":"dropdown-menu-household-section",children:C.jsx($ne,{client:e})}),q.map(Q=>C.jsx("div",{children:C.jsxs("div",{className:Dp.section,"data-testid":`dropdown-menu-${Q.id}-section`,children:[Q.heading&&C.jsx(dn,{setting:"eyebrow-small",ml:.375,my:.5,children:Q.heading}),Q.links]})},Q.id))]})})})]}),C.jsx(jne,{...y}),C.jsx(Kte,{...S,startContent:C.jsx(Qx,{purpose:"decorative"}),children:"We couldn't sign you out. Please try again."})]})},ere=(e,t,n)=>Number.isFinite(e)?Math.abs(Math.round(e))===1?t:n||`${t}s`:(console.warn(`pluralize: Invalid count provided: ${e}`),n||`${t}s`),tre=(e,t,n,r)=>{const o=Number.isFinite(e)?Math.round(e):0;return`${o} ${ere(o,t,n)}`},nre=(e,t)=>
148_l(e)===_l(t),rre=e=>nre("",_l(e)),bk=e=>_l(e).includes("/women"),_k=e=>_l(e).includes("/men"),Sk=e=>_l(e).includes("/kids"),ire=e=>e==="support.stitchfix.com",Ek=e=>_l(e).includes("/gifts"),ore=e=>_l(e).includes("/shopping_bag"),are=e=>_l(e).includes("/referrals"),Xb={"shopping-bag":"style-module_shopping-bag__WVBaC","shopping-bag-dark":"style-module_shopping-bag-dark__Fa7Zk","bag-icon-container":"style-module_bag-icon-container__1V4DW","bag-label":"style-module_bag-label__0ZowP","bag-count":"style-module_bag-count__sDgom","bag-count-text":"style-module_bag-count-text__ymHBm","bag-count-animate-in":"style-module_bag-count-animate-in__ZAu0B","bag-count-animation":"style-module_bag-count-animation__vjeif","bag-count-animate-reset":"style-module_bag-count-animate-reset__dll7t","bag-count-animate-out":"style-module_bag-count-animate-out__VoquF","shopping-bag-light":"style-module_shopping-bag-light__9qgAh"},Em=()=>{const[e,t]=bl.useState("/");return bl.useEffect(()=>{const n=Fn()?.location.pathname;n!==void 0&&t(n)},[]),e},D9=Fi.bind(Xb),xk=({activePageCanonical:e,count:t,gated:n=!1,hideIf:r=()=>!1})=>{const{reportSelectEvent:o}=ji(),s=A.useRef(null),[l,f]=A.useState(t),[m,p]=A.useState(""),v=e?`?ic=${e}`:"?ic=other",g=`/product/shopping_bag${v}`,y=`/my-items/shopping_bag${v}`,S=Em();A.useEffect(()=>{f(t)},[t]);const x=A.useCallback(()=>{m==="bag-count-animate-in"?(p("bag-count-animate-reset"),setTimeout(()=>{f(l),p("bag-count-animate-out")},10)):m==="bag-count-animate-out"&&p("")},[l,m]);return A.useEffect(()=>{const w=Fn(),R=()=>{f(k=>k+1),p("bag-count-animate-in")},T=()=>{f(k=>Math.max(k-1,0)),p("bag-count-animate-in")};w&&(w.stitchfix=w.stitchfix||{},w.stitchfix.incrementBagCount=R,w.stitchfix.decrementBagCount=T)},[]),A.useEffect(()=>{const w=s.current;return w?.addEventListener("webkitAnimationEnd",x,!1),w?.addEventListener("animationend",x,!1),()=>{w?.removeEventListener("webkitAnimationEnd",x,!1),w?.removeEventListener("animationend",x,!1)}},[x]),r(l)?null:C.jsx("div",{"data-testid":"shopping-bag",className:D9("shopping-bag",n?"shopping-bag-light":"shopping-bag-dark"),children:C.jsxs(Aa,{"data-ga":"nav-primary-shopping-bag",to:n?y:g,active:ore(S),"aria-label":`Shopping bag${l>0?` (${tre(l,"item")})`:""}`,onClick:()=>{o({schema:"select",name:"navbar",content_id:"shopping_bag_link",action_name:"navigate_to_shopping_bag"})},children:[C.jsxs("span",{className:Xb["bag-icon-container"],children:[C.jsx("span",{className:D9("bag-count",m),ref:s,onAnimationEnd:x,children:C.jsx("span",{className:Xb["bag-count-text"],"data-testid":"bag-count-text",children:(!!l||!!m)&&l})}),C.jsx(tK,{purpose:"decorative"})]}),C.jsx("span",{className:Xb["bag-label"],children:"Bag"})]})})},L9={"saved-items":"style-module_saved-items__JnmbZ","saved-label":"style-module_saved-label__qCQQ0"},sre=({activePageCanonical:e})=>{const{reportSelectEvent:t}=ji(),n=e==="saved_items",r=e?`?ic=${e}`:"?ic=other";return C.jsx("div",{className:L9["saved-items"],"data-testid":"saved-items",children:C.jsxs(Aa,{to:`/wardrobe/saved-items${r}&showAvailableItems=true&page=1`,active:n,"aria-label":"Saved Items",onClick:()=>{t({schema:"select",name:"navbar",content_id:"saved_items_link",action_name:"navigate_to_saved_items"})},children:[n?C.jsx(GY,{purpose:"decorative"}):C.jsx(QY,{purpose:"decorative"}),C.jsx(ht,{className:L9["saved-label"],children:C.jsx(dn,{as:"span",children:"Saved"})})]})})},qv={"stylist-connect":"style-module_stylist-connect__d88m5","chat-icon-container":"style-module_chat-icon-container__qostH","chat-badge":"style-module_chat-badge__g-AcM","chat-label":"style-module_chat-label__gghPY","visually-hidden":"style-module_visually-hidden__stj0Q"},wk=e=>e>99?"99+":String(e),lre=e=>e>0?`Stylist Connect (${wk(e)} unread message${e===1?"":"s"})`:"Stylist Connect",ure=({stylistConnectUnreadCount:e=0})=>{const t=lre(e),n=A.useRef(null),r=A.useRef(e);return A.useEffect(()=>{const o=e-r.current;if(o>0&&n.current){const s=o===1?"New message in Stylist Connect.":`${o} new messages in Stylist Connect.`;n.current.textContent=s}r.current=e},[e]),C.jsxs("div",{className:qv["stylist-connect"],"data-testid":"stylist-connect",children:[C.jsxs(Aa,{to:"#",onClick:o=>{o.preventDefault(),Cne()},"aria-label":t,children:[C.jsxs("span",{className:qv["chat-icon-container"],children:[C.jsx(PY,{purpose:"decorative"}),e>0&&C.jsx("span",{className:qv["chat-badge"],"data-testid":"stylist-connect-badge","aria-hidden":!0,
148children:wk(e)})]}),C.jsx(ht,{className:qv["chat-label"],children:C.jsx(dn,{as:"span",children:"Stylist Connect"})})]}),C.jsx("div",{role:"status",ref:n,"aria-live":"polite",className:qv["visually-hidden"]})]})},cre={"search-button":"style-module_search-button__kDNid"},fre=({onClick:e})=>C.jsx("button",{"aria-label":"Toggle search input",type:"button",onClick:e,className:cre["search-button"],children:C.jsx(JY,{color:"inherit",purpose:"decorative"})});function Z3({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=A.useRef(e!==void 0),[s,l]=A.useState(t),f=o?e:s,m=A.useCallback(p=>{o||l(p)},[]);return[f,m]}const dre=()=>{},st=typeof document<"u"?A.useLayoutEffect:dre;function hre(e){const t=A.useRef(!0);t.current&&(t.current=!1,e())}const hw={...A_},P9={};function Ma(e,t){const n=A.useRef(P9);return n.current===P9&&(n.current=e(t)),n}const J3=hw.useInsertionEffect,pre=J3&&J3!==hw.useLayoutEffect?J3:e=>e();function gt(e){const t=Ma(mre).current;return t.next=e,pre(t.effect),t.trampoline}function mre(){const e={next:void 0,callback:vre,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function vre(){}function am(e,t,n,r){const o=Ma(Ck).current;return yre(o,e,t,n,r)&&Tk(o,[e,t,n,r]),o.callback}function gre(e){const t=Ma(Ck).current;return bre(t,e)&&Tk(t,e),t.callback}function Ck(){return{callback:null,cleanup:null,refs:[]}}function yre(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}function bre(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function Tk(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let o=0;o<t.length;o+=1){const s=t[o];if(s!=null)switch(typeof s){case"function":{const l=s(n);typeof l=="function"&&(r[o]=l);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let o=0;o<t.length;o+=1){const s=t[o];if(s!=null)switch(typeof s){case"function":{const l=r[o];typeof l=="function"?l():s(null);break}case"object":{s.current=null;break}}}}}}}function Yo(e){const t=Ma(_re,e).current;return t.next=e,st(t.effect),t}function _re(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const Rk={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},Ok={...Rk,position:"fixed",top:0,left:0},Ak={...Rk,position:"absolute"};function Sre(e,t){return function(r,...o){const s=new URL(e);return s.searchParams.set("code",r.toString()),o.forEach(l=>s.searchParams.append("args[]",l)),`${t} error #${r}; visit ${s} for the full message.`}}const Tu=Sre("https://base-ui.com/production-error","Base UI"),dt=(e,t,n,r,o,s,...l)=>{if(l.length>0)throw new Error(Tu(1));let f;if(e)f=e;else throw new Error("Missing arguments");return f};var eE={exports:{}},tE={};var F9;function Ere(){if(F9)return tE;F9=1;var e=Qc();function t(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function f(g,y){var S=y(),x=r({inst:{value:S,getSnapshot:y}}),w=x[0].inst,R=x[1];return s(function(){w.value=S,w.getSnapshot=y,m(w)&&R({inst:w})},[g,S,y]),o(function(){return m(w)&&R({inst:w}),g(function(){m(w)&&R({inst:w})})},[g]),l(S),S}function m(g){var y=g.getSnapshot;g=g.value;try{var S=y();return!n(g,S)}catch{return!0}}function p(g,y){return y()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:f;return tE.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v,tE}var j9;function kk(){return j9||(j9=1,eE.exports=Ere()),eE.exports}var xre=kk(),nE={exports:{}},rE={};var U9;function wre(){if(U9)return rE;U9=1;var e=Qc(),t=kk();function n(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,f=e.useMemo,m=e.useDebugValue;return rE.useSyncExternalStoreWithSelector=function(p,v,g,y,S){var x=s(null);if(x.current===null){var w={hasValue:!1,value:null};x.current=w}else w=x.current;x=f(function(){function T(M){if(!I){if(I=!0,k=M,M=y(M),S!==void 0&&w.hasValue){var j=w.value;if(S(j,M))return L=j}return L=M}if(j=L,r(k,M))return j;var K=y(M);return S!==void 0&&S(j,K)?(k=M,j):(k=M,L=K)}var I=!1,k,L,H=g===void 0?null:g;return[function(){return T(v())},H===null?void 0:function(){return T(H())}]},[v,g,y,S]);var R=o(p,x[0],x[1]);return l(function(){w.hasValue=!0,w.value=R},[R]),m(R),R},rE}var B9;function Cre(){return B9||(B9=1,nE.exports=wre()),nE.exports}var Tre=Cre();const Rre=parseInt(A.version,10);function pw(e){return Rre>=e}const Ore=pw(19),Are=Ore?Nre:Ire;function Be(e,t,n,r,o){return Are(e,t,n,r,o)}function kre(e,t,n,r,o){const s=A.useCallback(()=>t(e.getSnapshot(),n,r,o),[e,t,n,r,o]);return xre.useSyncExternalStore(e.subscribe,s,s)}function Nre(e,t,n,r,o){return kre(e,t,n,r,o)}function Ire(e,t,n,r,o){return Tre.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,r,o))}class Nk{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}
148subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){this.setState({...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||this.setState({...this.state,[t]:n})}notifyAll(){const t={...this.state};this.setState(t)}use(t,n,r,o){return Be(this,t,n,r,o)}}function Xn(){}const Eb=Object.freeze([]),To=Object.freeze({});class Mre extends Nk{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}useSyncedValue(t,n){A.useDebugValue(t);const r=this;st(()=>{r.state[t]!==n&&r.set(t,n)},[r,t,n])}useSyncedValueWithCleanup(t,n){const r=this;st(()=>(r.state[t]!==n&&r.set(t,n),()=>{r.set(t,void 0)}),[r,t,n])}useSyncedValues(t){const n=this,r=Object.values(t);st(()=>{n.update(t)},[n,...r])}useControlledProp(t,n){A.useDebugValue(t);const r=this,o=n!==void 0;st(()=>{o&&!Object.is(r.state[t],n)&&r.setState({...r.state,[t]:n})},[r,t,n,o])}select(t,n,r,o){const s=this.selectors[t];return s(this.state,n,r,o)}useState(t,n,r,o){return A.useDebugValue(t),Be(this,this.selectors[t],n,r,o)}useContextCallback(t,n){A.useDebugValue(t);const r=gt(n??Xn);this.context[t]=r}useStateSetter(t){const n=A.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];
148let o=r(this.state);return n(o,o,this),this.subscribe(s=>{const l=r(s);if(!Object.is(o,l)){const f=o;o=l,n(l,f,this)}})}}function Gp(...e){return()=>{for(let t=0;t<e.length;t+=1){const n=e[t];n&&n()}}}function ar(e){return e?.ownerDocument||document}function qn(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}const Dre=[];function Ik(e){A.useEffect(e,Dre)}const xb=null;class Lre{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let o=0;o<n.length;o+=1)n[o]?.(t)};request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const wb=new Lre;class hl{static create(){return new hl}static request(t){return wb.request(t)}static cancel(t){return wb.cancel(t)}currentId=xb;request(t){this.cancel(),this.currentId=wb.request(()=>{this.currentId=xb,t()})}cancel=()=>{this.currentId!==xb&&(wb.cancel(this.currentId),this.currentId=xb)};disposeEffect=()=>this.cancel}function R1(){const e=Ma(hl.create).current;return Ik(e.disposeEffect),e}const Gv=0;class Ld{static create(){return new Ld}currentId=Gv;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Gv,n()},t)}isStarted(){return this.currentId!==Gv}clear=()=>{this.currentId!==Gv&&(clearTimeout(this.currentId),this.currentId=Gv)};disposeEffect=()=>this.clear}function O1(){const e=Ma(Ld.create).current;return Ik(e.disposeEffect),e}const Bd=typeof navigator<"u",iE=jre(),Mk=Bre(),mw=Ure(),Dk=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),Lk=iE.platform==="MacIntel"&&iE.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(iE.platform),V9=Bd&&/firefox/i.test(mw),Pre=Bd&&/apple/i.test(navigator.vendor),E_=Bd&&/android/i.test(Mk)||/android/i.test(mw);Bd&&Mk.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const Fre=mw.includes("jsdom/");function jre(){if(!Bd)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function Ure(){if(!Bd)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function Bre(){if(!Bd)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}function ao(e){e.preventDefault(),e.stopPropagation()}function Vre(e){return"nativeEvent"in e}function Pk(e){return e.pointerType===""&&e.isTrusted?!0:E_&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Fk(e){return Fre?!1:!E_&&e.width===0&&e.height===0||E_&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function H9(e,t){return["mouse","pen"].includes(e)}function Hre(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const S6="data-base-ui-focusable",zre="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Dc="ArrowLeft",Lc="ArrowRight",vw="ArrowUp",X1="ArrowDown";function Ea(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function rn(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&im(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function ka(e){return"composedPath"in e?e.composedPath()[0]:e.target}function oE(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function qre(e){return e.matches("html,body")}function gw(e){return sr(e)&&e.matches(zre)}function E6(e){return e?e.getAttribute("role")==="combobox"&&gw(e):!1}function x6(e){return e?e.hasAttribute(S6)?e:e.querySelector(`[${S6}]`)||e:null}const cl="none",jk="trigger-press",Gre="trigger-hover",yw="outside-press",$re="item-press",Qre="close-press",z9="clear-press",Lp="input-change",uu="input-clear",Wre="input-press",S2="focus-out",Uk="escape-key",q9="list-navigation",Yre="pointer";function fn(e,t,n,r){let o=!1,s=!1;const l=To;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){s=!0},get isCanceled(){return o},get isPropagationAllowed(){return s},trigger:n,...l}}function $v(e,t,n){const r=n??To;return{reason:e,event:t??new Event("base-ui"),...r}}const x_=A.forwardRef(function(t,n){const[r,o]=A.useState();st(()=>{Pre&&o("button")},[]);const s={tabIndex:0,role:r};return C.jsx("span",{...t,ref:n,style:Ok,"aria-hidden":r?void 0:!0,...s,"data-base-ui-focus-guard":""})});function Cb(e,t,n){return Math.floor(e/t)!==n}function w_(e,t){return t<0||t>=e.length}function aE(e,t){return io(e.current,{disabledIndices:t})}function G9(e,t){return io(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function io(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:o=1}={}){let s=t;do s+=n?-o:o;while(s>=0&&s<=e.length-1&&$p(e,s,r));return s}function Kre(e,{event:t,orientation:n,loopFocus:r,onLoop:o,rtl:s,cols:l,disabledIndices:f,minIndex:m,maxIndex:
148p,prevIndex:v,stopEvent:g=!1}){let y=v,S;if(t.key===vw?S="up":t.key===X1&&(S="down"),S){const x=[],w=[];let R=!1,T=0;{let P=null,q=-1;e.forEach((Q,$)=>{if(Q==null)return;T+=1;const W=Q.closest('[role="row"]');W&&(R=!0),(W!==P||q===-1)&&(P=W,q+=1,x[q]=[]),x[q].push($),w[$]=q})}let I=!1,k=0;if(R)for(const P of x){const q=P.length;q>k&&(k=q),q!==l&&(I=!0)}const L=I&&T<e.length,H=k||l,M=P=>{if(!I||v===-1)return;const q=w[v];if(q==null)return;const Q=x[q].indexOf(v),$=P==="up"?-1:1;for(let W=q+$,G=0;G<x.length;G+=1,W+=$){if(W<0||W>=x.length){if(!r||L)return;if(W=W<0?x.length-1:0,o){const V=Math.min(Q,x[W].length-1),B=x[W][V]??x[W][0],ee=o(t,v,B);W=w[ee]??W}}const J=x[W];for(let V=Math.min(Q,J.length-1);V>=0;V-=1){const B=J[V];if(!$p(e,B,f))return B}}},j=P=>{if(!L||v===-1)return;const q=v%H,Q=P==="up"?-H:H,$=p-p%H,W=_d(p/H)+1;for(let G=v-q+Q,J=0;J<W;J+=1,G+=Q){if(G<0||G>p){if(!r)return;G=G<0?$:0}const V=Math.min(G+H-1,p);for(let B=Math.min(G+q,V);B>=G;B-=1)if(!$p(e,B,f))return B}};g&&ao(t);const K=M(S)??j(S);if(K!==void 0)y=K;else if(v===-1)y=S==="up"?p:m;else if(y=io(e,{startingIndex:v,amount:H,decrement:S==="up",disabledIndices:f}),r){if(S==="up"&&(v-H<m||y<0)){const P=v%H,q=p%H,Q=p-(q-P);q===P?y=p:y=q>P?Q:Q-H,o&&(y=o(t,v,y))}S==="down"&&v+H>p&&(y=io(e,{startingIndex:v%H-H,amount:H,disabledIndices:f}),o&&(y=o(t,v,y)))}w_(e,y)&&(y=v)}if(n==="both"){const x=_d(v/l);t.key===(s?Dc:Lc)&&(g&&ao(t),v%l!==l-1?(y=io(e,{startingIndex:v,disabledIndices:f}),r&&Cb(y,l,x)&&(y=io(e,{startingIndex:v-v%l-1,disabledIndices:f}),o&&(y=o(t,v,y)))):r&&(y=io(e,{startingIndex:v-v%l-1,disabledIndices:f}),o&&(y=o(t,v,y))),Cb(y,l,x)&&(y=v)),t.key===(s?Lc:Dc)&&(g&&ao(t),v%l!==0?(y=io(e,{startingIndex:v,decrement:!0,disabledIndices:f}),r&&Cb(y,l,x)&&(y=io(e,{startingIndex:v+(l-v%l),decrement:!0,disabledIndices:f}),o&&(y=o(t,v,y)))):r&&(y=io(e,{startingIndex:v+(l-v%l),decrement:!0,disabledIndices:f}),o&&(y=o(t,v,y))),Cb(y,l,x)&&(y=v));const w=_d(p/l)===x;w_(e,y)&&(r&&w?(y=t.key===(s?Lc:Dc)?p:io(e,{startingIndex:v-v%l-1,disabledIndices:f}),o&&(y=o(t,v,y))):y=v)}return y}function Xre(e,t,n){const r=[];let o=0;return e.forEach(({width:s,height:l},f)=>{let m=!1;for(;!m;){const p=[];for(let v=0;v<s;v+=1)for(let g=0;g<l;g+=1)p.push(o+v+g*t);o%t+s<=t&&p.every(v=>
148r[v]==null)?(p.forEach(v=>{r[v]=f}),m=!0):o+=1}}),[...r]}function Zre(e,t,n,r,o){if(e===-1)return-1;const s=n.indexOf(e),l=t[e];switch(o){case"tl":return s;case"tr":return l?s+l.width-1:s;case"bl":return l?s+(l.height-1)*r:s;case"br":return n.lastIndexOf(e);default:return-1}}function Jre(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function $p(e,t,n){if(typeof n=="function"?n(t):n?.includes(t)??!1)return!0;const o=e[t];return o?bw(o)?!n&&(o.hasAttribute("disabled")||o.getAttribute("aria-disabled")==="true"):!0:!1}function eie(e){return e.visibility==="hidden"||e.visibility==="collapse"}function bw(e,t=e?Ro(e):null){return!e||!e.isConnected||!t||eie(t)?!1:typeof e.checkVisibility=="function"?e.checkVisibility():t.display!=="none"&&t.display!=="contents"}const tie='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function nie(e){const t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;const n=e.getRootNode();return im(n)?n.host:null}function w6(e){for(const t of Array.from(e.children))if(Di(t)==="summary")return t;return null}function rie(e,t){const n=w6(t);return!!n&&(e===n||rn(n,e))}function Bk(e){const t=e?Di(e):"";return e!=null&&e.matches(tie)&&(t!=="summary"||e.parentElement!=null&&Di(e.parentElement)==="details"&&w6(e.parentElement)===e)&&(t!=="details"||w6(e)==null)&&(t!=="input"||e.type!=="hidden")}function Vk(e){if(!Bk(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=nie(t)){const n=t!==e,r=Di(t)==="slot";if(t.hasAttribute("inert")||n&&Di(t)==="details"&&!t.open&&!rie(e,t)||t.hasAttribute("hidden")||!r&&!iie(t,n))return!1}return!0}function iie(e,t){const n=Ro(e);return t?n.display!=="none":bw(e,n)}function Hk(e){const t=e.tabIndex;if(t<0){const n=Di(e);if(n==="details"||n==="audio"||n==="video"||sr(e)&&e.isContentEditable)return 0}return t}function sE(e){if(Di(e)!=="input")return null;const t=e;return t.type==="radio"&&t.name!==""?t:null}function oie(e,t){const n=sE(e);if(!n)return!0;const r=t.find(o=>{const s=sE(o);return s?.name===n.name&&s.form===n.form&&s.checked});return r?r===n:t.find(o=>{const s=sE(o);return s?.name===n.name&&s.form===n.form})===n}function zk(e){if(sr(e)&&Di(e)==="slot"){const t=e.assignedElements({flatten:!0});if(t.length>0)return t}return sr(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function qk(e,t){zk(e).forEach(n=>{Bk(n)&&t.push(n),qk(n,t)})}function Gk(e,t,n){zk(e).forEach(r=>{sr(r)&&r.matches(t)&&n.push(r),Gk(r,t,n)})}function _w(e){return Vk(e)&&Hk(e)>=0}function $k(e){const t=[];return qk(e,t),t.filter(Vk)}function E2(e){const t=$k(e);return t.filter(n=>Hk(n)>=0&&oie(n,t))}function Qk(e,t){const n=E2(e),r=n.length;if(r===0)return;const o=Ea(ar(e)),s=n.indexOf(o),l=s===-1?t===1?0:r-1:s+t;return n[l]}function Wk(e){return Qk(ar(e).body,1)||e}function Yk(e){return Qk(ar(e).body,-1)||e}function m1(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!rn(n,r)}function aie(e){E2(e).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function $9(e){const t=[];Gk(e,"[data-tabindex]",t),t.forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function A1(e,t,n=!0){return e.filter(o=>o.parentId===t).flatMap(o=>[...!n||o.context?.open?[o]:[],...A1(e,o.id,n)])}function Q9(e,t){let n=[],r=e.find(o=>o.id===t)?.parentId;for(;r;){const o=e.find(s=>s.id===r);r=o?.parentId,o&&(n=n.concat(o))}return n}function C_(e){return`data-base-ui-${e}`}let Tb=0;function Zb(e,t={}){const{preventScroll:n=!1,sync:r=!1,shouldFocus:o}=t;cancelAnimationFrame(Tb);function s(){o&&!o()||e?.focus({preventScroll:n})}if(r)return s(),Xn;const l=requestAnimationFrame(s);return Tb=l,()=>{Tb===l&&(cancelAnimationFrame(l),Tb=0)}}const lE={inert:new WeakMap,"aria-hidden":new WeakMap},W9="data-base-ui-inert",C6={inert:new WeakSet,"aria-hidden":new WeakSet};let Qv=new WeakMap,uE=0;function sie(e){return C6[e]}function Kk(e){return e?im(e)?e.host:Kk(e.parentNode):null}const cE=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=Kk(n);return e.contains(r)?r:null}).filter(n=>n!=null),Y9=e=>{const t=new Set;return e.forEach(n=>{let r=n;for(;r&&!t.has(r);)t.add(r),r=r.parentNode}),t},K9=(e,t,n)=>{const r=[],o=s=>
148{!s||n.has(s)||Array.from(s.children).forEach(l=>{Di(l)!=="script"&&(t.has(l)?o(l):r.push(l))})};return o(e),r};function lie(e,t,n,r,{mark:o=!0,markerIgnoreElements:s=[]}){const l=r?"inert":n?"aria-hidden":null;let f=null,m=null;const p=cE(t,e),v=o?cE(t,s):[],g=new Set(v),y=o?K9(t,Y9(p),new Set(p)).filter(w=>!g.has(w)):[],S=[],x=[];if(l){const w=lE[l],R=sie(l);m=R,f=w;const T=cE(t,Array.from(t.querySelectorAll("[aria-live]"))),I=p.concat(T);K9(t,Y9(I),new Set(I)).forEach(L=>{const H=L.getAttribute(l),M=H!==null&&H!=="false",j=(w.get(L)||0)+1;w.set(L,j),S.push(L),j===1&&M&&R.add(L),M||L.setAttribute(l,l==="inert"?"":"true")})}return o&&y.forEach(w=>{const R=(Qv.get(w)||0)+1;Qv.set(w,R),x.push(w),R===1&&w.setAttribute(W9,"")}),uE+=1,()=>{f&&S.forEach(w=>{const T=(f.get(w)||0)-1;f.set(w,T),T||(!m?.has(w)&&l&&w.removeAttribute(l),m?.delete(w))}),o&&x.forEach(w=>{const R=(Qv.get(w)||0)-1;Qv.set(w,R),R||w.removeAttribute(W9)}),uE-=1,uE||(lE.inert=new WeakMap,lE["aria-hidden"]=new WeakMap,C6.inert=new WeakSet,C6["aria-hidden"]=new WeakSet,Qv=new WeakMap)}}function X9(e,t={}){const{ariaHidden:n=!1,inert:r=!1,mark:o=!0,markerIgnoreElements:s=[]}=t,l=ar(e[0]).body;return lie(e,l,n,r,{mark:o,markerIgnoreElements:s})}let Z9=0;function uie(e,t="mui"){const[n,r]=A.useState(e),o=e||n;return A.useEffect(()=>{n==null&&(Z9+=1,r(`${t}-${Z9}`))},[n,t]),o}const J9=hw.useId;function Sw(e,t){if(J9!==void 0){const n=J9();return e??(t?`${t}-${n}`:n)}return uie(e,t)}function e8(e){if(!A.isValidElement(e))return null;const t=e,n=t.props;return(pw(19)?n?.ref:t.ref)??null}function T6(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function cie(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const s=t[r](o);s!=null&&Object.assign(n,s);continue}o===!0?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}function fie(e,t){return typeof e=="function"?e(t):e}function die(e,t){return typeof e=="function"?e(t):e}const Ew={};function k1(e,t,n,r,o){if(!n&&!r&&!e)return T_(t);let s=T_(e);return t&&(s=Jb(s,t)),n&&(s=Jb(s,n)),r&&(s=Jb(s,r)),s}function hie(e){if(e.length===0)return Ew;if(e.length===1)return T_(e[0]);let t=T_(e[0]);for(let n=1;n<e.length;n+=1)t=Jb(t,e[n]);return t}function T_(e){return xw(e)?{...Zk(e,Ew)}:pie(e)}function Jb(e,t){return xw(t)?Zk(t,e):mie(e,t)}function pie(e){const t={...e};for(const n in t){const r=t[n];Xk(n,r)&&(t[n]=Jk(r))}return t}function mie(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=T6(e.style,r);break}case"className":{e[n]=eN(e.className,r);break}default:Xk(n,r)?e[n]=vie(e[n],r):e[n]=r}}return e}function Xk(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return n===111&&r===110&&o>=65&&o<=90&&(typeof t=="function"||typeof t>"u")}function xw(e){return typeof e=="function"}function Zk(e,t){return xw(e)?e(t):e??Ew}function vie(e,t){return t?e?(...n)=>{const r=n[0];if(tN(r)){const s=r;R_(s);const l=t(...n);return s.baseUIHandlerPrevented||e?.(...n),l}const o=t(...n);return e?.(...n),o}:Jk(t):e}function Jk(e){return e&&((...t)=>{const n=t[0];return tN(n)&&R_(n),e(...t)})}function R_(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function eN(e,t){return t?e?t+" "+e:t:e}function tN(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function rf(e,t,n={}){const r=t.render,o=gie(t,n);if(n.enabled===!1)return null;const s=n.state??To;return _ie(e,r,o,s)}function gie(e,t={}){const{className:n,style:r,render:o}=e,{state:s=To,ref:l,props:f,stateAttributesMapping:m,enabled:p=!0}=t,v=p?fie(n,s):void 0,g=p?die(r,s):void 0,y=p?cie(s,m):To,S=p&&f?yie(f):void 0,x=p?T6(y,S)??{}:To;return typeof document<"u"&&(p?Array.isArray(l)?x.ref=gre([x.ref,e8(o),...l]):x.ref=am(x.ref,e8(o),l):am(null,null)),p?(v!==void 0&&(x.className=eN(x.className,v)),g!==void 0&&(x.style=T6(x.style,g)),x):To}function yie(e){return Array.isArray(e)?hie(e):k1(void 0,e)}const bie=Symbol.for("react.lazy");function _ie(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const o=k1(n,t.props);o.ref=n.ref;let s=t;return s?.$$typeof===bie&&(s=A.Children.toArray(t)[0]),A.cloneElement(s,o)}if(e&&typeof e=="string")return Sie(e,n);throw new Error(Tu(8))}function Sie(e,t){return e==="button"?A.createElement("button",{type:"button",...t,key:t.key}):e==="img"?A.createElement("img",{alt:"",...t,key:t.key}):A.createElement(e,t)}const Eie={style:{transition:"none"}},xie="data-base-ui-click-trigger",wie={fallbackAxisSide:"none"},Cie={clipPath:"inset(50%)",position:"fixed",top:0,left:0},nN=A.createContext(null),rN=()=>A.useContext(nN),Tie=C_("portal");function Rie(e={}){const{ref:t,container:n,componentProps:r=To,elementProps:o}=e,s=Sw(),f=rN()?.portalNode,[m,p]=A.useState(null),[v,g]=A.useState(null),y=gt(R=>{R!==null&&g(R)}),S=A.useRef(null);st(()=>{if(n===null){S.current&&(S.current=null,g(null),p(null));return}if(s==null)return;const R=(n&&(Zx(n)?n:n.current))??f??document.body;if(R==null){S.current&&(S.current=null,g(null),p(null));return}S.current!==R&&(S.current=R,g(null),p(R))},[n,f,s]);const x=rf("div",r,{ref:[t,y],props:[{id:s,[Tie]:""},o]});return{portalNode:v,portalSubtree:m&&x?ef.createPortal(x,m):null}}const Oie=A.forwardRef(function(t,n){const{render:r,className:o,style:s,children:l,container:f,renderGuards:m,...p}=t,{portalNode:v,portalSubtree:g}=Rie({container:f,ref:n,componentProps:t,elementProps:p}),y=A.useRef(null),S=A.useRef(null),x=A.useRef(null),w=A.useRef(null),[R,T]=A.useState(null),I=A.useRef(!1),k=R?.modal,L=R?.open,H=typeof m=="boolean"?m:!!R&&
148!R.modal&&R.open&&!!v;A.useEffect(()=>{if(!v||k)return;function j(K){v&&K.relatedTarget&&m1(K)&&(K.type==="focusin"?I.current&&($9(v),I.current=!1):(aie(v),I.current=!0))}return Gp(qn(v,"focusin",j,!0),qn(v,"focusout",j,!0))},[v,k]),A.useEffect(()=>{!v||L!==!1||($9(v),I.current=!1)},[L,v]);const M=A.useMemo(()=>({beforeOutsideRef:y,afterOutsideRef:S,beforeInsideRef:x,afterInsideRef:w,portalNode:v,setFocusManagerState:T}),[v]);return C.jsxs(A.Fragment,{children:[g,C.jsxs(nN.Provider,{value:M,children:[H&&v&&C.jsx(x_,{"data-type":"outside",ref:y,onFocus:j=>{if(m1(j,v))x.current?.focus();else{const K=R?R.domReference:null;Yk(K)?.focus()}}}),H&&v&&C.jsx("span",{"aria-owns":v.id,style:Cie}),v&&ef.createPortal(l,v),H&&v&&C.jsx(x_,{"data-type":"outside",ref:S,onFocus:j=>{if(m1(j,v))w.current?.focus();else{const K=R?R.domReference:null;Wk(K)?.focus(),R?.closeOnFocusOut&&R?.onOpenChange(!1,fn(S2,j.nativeEvent))}}})]})]})});function Aie(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}const kie=A.createContext(null),Nie=A.createContext(null),iN=()=>A.useContext(kie)?.id||null,x2=e=>{const t=A.useContext(Nie);return e??t};function lu(e){return e==null?e:"current"in e?e.current:e}function Iie(e,t){const n=oi(ka(e));return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const t8=20;let kc=[];function ww(){kc=kc.filter(e=>e.deref()?.isConnected)}function Mie(e){ww(),e&&Di(e)!=="body"&&(kc.push(new WeakRef(e)),kc.length>t8&&(kc=kc.slice(-t8)))}function fE(){return ww(),kc[kc.length-1]?.deref()}function Die(e){return e?_w(e)?e:E2(e)[0]||e:null}function n8(e,t){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const r=$k(e).filter(s=>{const l=s.getAttribute("data-tabindex")||"";return _w(s)||s.hasAttribute("data-tabindex")&&!l.startsWith("-")}),o=e.getAttribute("tabindex");t.current.includes("floating")||r.length===0?o!=="0"&&e.setAttribute("tabindex","0"):(o!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function Lie(e){const{context:t,children:n,disabled:r=!1,initialFocus:o=!0,returnFocus:s=!0,restoreFocus:l=!1,modal:f=!0,closeOnFocusOut:m=!0,openInteractionType:p="",nextFocusableElement:v,previousFocusableElement:g,beforeContentFocusGuardRef:y,externalTree:S,getInsideElements:x}=e,w="rootStore"in t?t.rootStore:t,R=w.useState("open"),T=w.useState("domReferenceElement"),I=w.useState("floatingElement"),{events:k,dataRef:L}=w.context,H=gt(()=>L.current.floatingContext?.nodeId),M=o===!1,j=E6(T)&&M,K=A.useRef(["content"]),P=Yo(o),q=Yo(s),Q=Yo(p),$=x2(S),W=rN(),G=A.useRef(!1),J=A.useRef(!1),V=A.useRef(!1),B=A.useRef(null),ee=A.useRef(""),ge=A.useRef(""),ve=A.useRef(null),Y=A.useRef(null),oe=am(ve,y,W?.beforeInsideRef),de=am(Y,W?.afterInsideRef),me=O1(),ke=O1(),Me=R1(),We=W!=null,Le=x6(I),$e=gt((ze=Le)=>ze?E2(ze):[]),an=gt(()=>x?.().filter(ze=>ze!=null)??[]);A.useEffect(()=>{if(r||!f)return;function ze(_t){_t.key==="Tab"&&rn(Le,Ea(ar(Le)))&&$e().length===0&&!j&&ao(_t)}const ct=ar(Le);return qn(ct,"keydown",ze)},[r,Le,f,j,$e]),A.useEffect(()=>{if(r||!R)return;const ze=ar(Le);function ct(){V.current=!1}function _t(Je){const Ke=ka(Je),Ze=an(),Ye=rn(I,Ke)||rn(T,Ke)||rn(W?.portalNode,Ke)||Ze.some(Mt=>Mt===Ke||rn(Mt,Ke));V.current=!Ye,ge.current=Je.pointerType||"keyboard",Ke?.closest(`[${xie}]`)&&(J.current=!0)}function et(){ge.current="keyboard"}return Gp(qn(ze,"pointerdown",_t,!0),qn(ze,"pointerup",ct,!0),qn(ze,"pointercancel",ct,!0),qn(ze,"keydown",et,!0))},[r,I,T,Le,R,W,an]),A.useEffect(()=>{if(r||!m)return;const ze=ar(Le);function ct(){J.current=!0,ke.start(0,()=>{J.current=!1})}function _t(Ze){const Ye=ka(Ze);_w(Ye)&&(B.current=Ye)}function et(Ze){const Ye=Ze.relatedTarget,Mt=Ze.currentTarget,Gt=ka(Ze);queueMicrotask(()=>{const Ut=H(),Bt=w.context.triggerElements,Oe=an(),le=Ye?.hasAttribute(C_("focus-guard"))&&[ve.current,Y.current,W?.beforeInsideRef.current,W?.afterInsideRef.current,W?.beforeOutsideRef.current,W?.afterOutsideRef.current,lu(g),lu(v)].includes(Ye),we=!(rn(T,Ye)||rn(I,Ye)||rn(Ye,I)||rn(W?.portalNode,Ye)||Oe.
148some(Re=>Re===Ye||rn(Re,Ye))||Ye!=null&&Bt.hasElement(Ye)||Bt.hasMatchingElement(Re=>rn(Re,Ye))||le||$&&(A1($.nodesRef.current,Ut).find(Re=>rn(Re.context?.elements.floating,Ye)||rn(Re.context?.elements.domReference,Ye))||Q9($.nodesRef.current,Ut).find(Re=>[Re.context?.elements.floating,x6(Re.context?.elements.floating)].includes(Ye)||Re.context?.elements.domReference===Ye)));if(Mt===T&&Le&&n8(Le,K),l&&Mt!==T&&!bw(Gt)&&Ea(ze)===ze.body){if(sr(Le)&&(Le.focus(),l==="popup")){Me.request(()=>{Le.focus()});return}const Re=$e(),Pe=B.current,At=(Pe&&Re.includes(Pe)?Pe:null)||Re[Re.length-1]||Le;sr(At)&&At.focus()}if(L.current.insideReactTree){L.current.insideReactTree=!1;return}(j||!f)&&Ye&&we&&!J.current&&(j||Ye!==fE())&&(G.current=!0,w.setOpen(!1,fn(S2,Ze)))})}function Je(){V.current||(L.current.insideReactTree=!0,me.start(0,()=>{L.current.insideReactTree=!1}))}const Ke=sr(T)?T:null;if(!(!I&&!Ke))return Gp(Ke&&qn(Ke,"focusout",et),Ke&&qn(Ke,"pointerdown",ct),I&&qn(I,"focusin",_t),I&&qn(I,"focusout",et),I&&W&&qn(I,"focusout",Je,!0))},[r,T,I,Le,f,$,W,w,m,l,$e,j,H,K,L,me,ke,Me,v,g,an]),A.useEffect(()=>{if(r||!I||!R)return;const ze=Array.from(W?.portalNode?.querySelectorAll(`[${C_("portal")}]`)||[]),_t=($?Q9($.nodesRef.current,H()):[]).find(Mt=>E6(Mt.context?.elements.domReference||null))?.context?.elements.domReference,Je=[...[I,...ze,ve.current,Y.current,W?.beforeOutsideRef.current,W?.afterOutsideRef.current,...an()],_t,lu(g),lu(v),j?T:null].filter(Mt=>Mt!=null),Ke=X9(Je,{ariaHidden:f||j,mark:!1}),Ze=[I,...ze].filter(Mt=>Mt!=null),Ye=X9(Ze);return()=>{Ye(),Ke()}},[R,r,T,I,f,W,j,$,H,v,g,an]),st(()=>{if(!R||r||!sr(Le))return;const ze=ar(Le),ct=Ea(ze);queueMicrotask(()=>{const _t=P.current,et=typeof _t=="function"?_t(Q.current||""):_t;if(et===void 0||et===!1||rn(Le,ct))return;let Ke=null;const Ze=()=>(Ke==null&&(Ke=$e(Le)),Ke[0]||Le);let Ye;et===!0||et===null?Ye=Ze():Ye=lu(et),Ye=Ye||Ze();const Mt=rn(Le,Ea(ze));Zb(Ye,{preventScroll:Ye===Le,shouldFocus(){if(Mt)return!0;const Gt=Ea(ze);return!(Gt!==Ye&&rn(Le,Gt))}})})},[r,R,Le,$e,P,Q]),st(()=>{if(r||!Le)return;const ze=ar(Le),ct=Ea(ze);Mie(ct);function _t(Je){if(Je.open||(ee.current=Iie(Je.nativeEvent,ge.current)),Je.reason===Gre&&Je.nativeEvent.type==="mouseleave"&&(G.current=!0),Je.reason===yw)if(Je.nested)G.current=!1;else if(Pk(Je.nativeEvent)||Fk(Je.nativeEvent))G.current=!1;else{let Ke=!1;ar(Le).createElement("div").focus({get preventScroll(){return Ke=!0,!1}}),Ke?G.current=!1:G.current=!0}}k.on("openchange",_t);function et(){const Je=q.current;let Ke=typeof Je=="function"?Je(ee.current):Je;if(Ke===void 0||Ke===!1)return null;if(Ke===null&&(Ke=!0),typeof Ke=="boolean")return T?.isConnected?T:fE()||null;const Ze=T?.isConnected?T:fE();return lu(Ke)||Ze||null}return()=>{k.off("openchange",_t);const Je=Ea(ze),Ke=an(),Ze=rn(I,Je)||Ke.some(Gt=>Gt===Je||rn(Gt,Je))||$&&A1($.nodesRef.current,H(),!1).some(Gt=>rn(Gt.context?.elements.floating,Je)),Ye=q.current,Mt=et();queueMicrotask(()=>{const Gt=Die(Mt),Ut=typeof Ye!="boolean";Ye&&!G.current&&sr(Gt)&&(!(!Ut&&Gt!==Je&&Je!==ze.body)||Ze)&&Gt.focus({preventScroll:!0}),G.current=!1})}},[r,I,Le,q,k,$,T,H,an]),st(()=>{if(!Dk||R||!I)return;const ze=Ea(ar(I));!sr(ze)||!gw(ze)||rn(I,ze)&&ze.blur()},[R,I]),st(()=>{if(!(r||!W))return W.setFocusManagerState({modal:f,closeOnFocusOut:m,open:R,onOpenChange:w.setOpen,domReference:T}),()=>{W.setFocusManagerState(null)}},[r,W,f,R,w,m,T]),st(()=>{if(!(r||!Le))return n8(Le,K),()=>{queueMicrotask(ww)}},[r,Le,K]);const dr=!r&&(f?!j:!0)&&(We||f);return C.jsxs(A.Fragment,{children:[dr&&C.jsx(x_,{"data-type":"inside",ref:oe,onFocus:ze=>{if(f){const ct=$e();Zb(ct[ct.length-1])}else W?.portalNode&&(G.current=!1,m1(ze,W.portalNode)?Wk(T)?.focus():lu(g??W.beforeOutsideRef)?.focus())}}),n,dr&&C.jsx(x_,{"data-type":"inside",ref:de,onFocus:ze=>{f?Zb($e()[0]):W?.portalNode&&(m&&(G.current=!0),m1(ze,W.portalNode)?Yk(T)?.focus():lu(v??W.afterOutsideRef)?.focus())}})]})}function Pie(e,t={}){const{enabled:n=!0,event:r="click",toggle:o=!0,ignoreMouse:s=!1,stickIfOpen:l=!0,touchOpenDelay:f=0,reason:m=jk}=t,p="rootStore"in e?e.rootStore:e,v=p.context.dataRef,g=A.useRef(void 0),y=R1(),S=O1(),x=A.useMemo(()=>{function w(T,I,k,L){const H=fn(m,I,k);T&&L==="touch"&&f>0?S.start(f,()=>{p.setOpen(!0,H)}):p.setOpen(T,H)}function R(T,I,k){const L=v.current.openEvent,H=p.select("domReferenceElement")!==I;return T&&H||!T||!o?!0:L&&l?!k(L.type):!1}return{onPointerDown(T){g.current=T.pointerType},onMouseDown(T){const I=g.current,k=T.nativeEvent,L=p.select("open");if(T.button!==0||r==="click"||H9(I)&&s)return;const H=R(L,T.currentTarget,K=>K==="click"||K==="mousedown"),M=ka(k);if(gw(M)){w(H,k,M,I);return}const j=T.currentTarget;y.request(()=>{w(H,k,j,I)})},onClick(T){if(r==="mousedown-only")return;const I=g.current;if(r==="mousedown"&&I){g.current=void 0;return}if(H9(I)&&s)return;const k=p.select("open"),L=R(k,T.currentTarget,H=>H==="click"||H==="mousedown"||H==="keydown"||H==="keyup");w(L,T.nativeEvent,T.currentTarget,I)},onKeyDown(){g.current=void 0}}},[v,r,s,m,p,l,o,y,S,f]);return A.useMemo(()=>n?{reference:x}:To,[n,x])}const Fie={intentional:"onClick",sloppy:"onPointerDown"};function jie(){return!1}function Uie(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function Bie(e,t={}){const{enabled:n=!0,escapeKey:r=!0,outsidePress:o=!0,outsidePressEvent:s="sloppy",referencePress:l=jie,referencePressEvent:f="sloppy",bubbles:m,externalTree:p}=t,v="rootStore"in e?e.rootStore:e,g=v.useState("open"),y=v.useState("floatingElement"),{dataRef:S}=v.context,x=x2(p),w=gt(typeof o=="function"?o:()=>!1),R=typeof o=="function"?w:o,T=R!==!1,I=gt(()=>s),{escapeKey:k,outsidePress:L}=Uie(m),H=A.useRef(!1),M=A.useRef(!1),j=A.useRef(!1),K=A.useRef(!1),P=A.useRef(""),q=A.useRef(null),Q=O1(),$=O1(),W=gt(()=>{$.clear(),S.current.insideReactTree=!1}),G=gt(de=>{const me=S.current.floatingContext?.nodeId;return(x?A1(x.nodesRef.current,me):[]).some(Me=>Me.context?.open&&!Me.context.dataRef.current[de])}),J=gt(de=>oE(de,v.select("floatingElement"))||oE(de,v.select("domReferenceElement"))),V=gt(de=>{l()&&v.setOpen(!1,fn(jk,de.nativeEvent))}),B=gt(de=>{if(!g||!n||!r||de.key!=="Escape"||K.current||!k&&G("__escapeKeyBubbles"))return;const me=Vre(de)?de.nativeEvent:de,ke=fn(Uk,me);v.setOpen(!1,ke),ke.isCanceled||de.preventDefault(),!k&&!ke.isPropagationAllowed&&de.stopPropagation()}),ee=gt(()=>{S.current.insideReactTree=!0,$.start(0,W)}),ge=gt(de=>{if(!g||!n||de.button!==0)return;const me=ka(de.nativeEvent);rn(v.select("floatingElement"),me)&&(H.current||(H.current=!0,M.current=!1))}),ve=gt(de=>{!g||!n||(de.defaultPrevented||de.nativeEvent.defaultPrevented)&&H.current&&(M.current=!0)});A.useEffect(()=>{if(!g||!n)return;S.current.__escapeKeyBubbles=k,S.current.__outsidePressBubbles=L;const de=new Ld,me=new Ld;function ke(){de.clear(),K.current=!0}function Me(){de.start(f2()?5:0,()=>{K.current=!1})}function We(){j.current=!0,me.start(0,()=>{j.current=!1})}function Le(){H.current=!1,M.current=!1}function $e(){const le=P.current,we=le==="pen"||!le?"mouse":le,Re=I(),Pe=typeof Re=="function"?Re():Re;return typeof Pe=="string"?Pe:Pe[we]}function an(le){const we=$e();return we==="intentional"&&le.type!=="click"||we==="sloppy"&&le.type==="click"}function dr(le){const we=S.current.floatingContext?.nodeId,Re=x&&A1(x.nodesRef.current,we).some(Pe=>oE(le,Pe.context?.elements.floating));return J(le)||Re}function ze(le){if(an(le)){le.type!=="click"&&!J(le)&&(me.clear(),j.current=!1),W();return}if(S.current.insideReactTree){W();return}const we=ka(le),Re=`[${C_("inert")}]`,Pe=br(we)?we.getRootNode():null,At=Array.from((im(Pe)?Pe:ar(v.select("floatingElement"))).querySelectorAll(Re)),mn=v.context.triggerElements;if(we&&(mn.hasElement(we)||mn.hasMatchingElement(yt=>rn(yt,we))))return;let kt=br(we)?we:null;for(;kt&&!vu(kt);){const yt=xu(kt);if(vu(yt)||!br(yt))break;kt=yt}if(!(At.length&&br(we)&&!qre(we)&&!rn(we,v.select("floatingElement"))&&At.every(yt=>!rn(kt,yt)))){if(sr(we)&&!("touches"in le)){const yt=vu(we),at=Ro(we),Wt=/auto|scroll/,kn=yt||Wt.test(at.overflowX),Qn=yt||Wt.test(at.overflowY),jr=kn&&we.clientWidth>0&&we.scrollWidth>we.clientWidth,Ar=Qn&&we.clientHeight>0&&we.scrollHeight>we.clientHeight,pt=at.direction==="rtl",en=Ar&&(pt?le.offsetX<=we.offsetWidth-we.clientWidth:le.offsetX>we.clientWidth),jn=jr&&le.offsetY>we.clientHeight;if(en||jn)return}if(!dr(le)){if($e()==="intentional"&&j.current){me.clear(),j.current=!1;return}typeof R=="function"&&!R(le)||G("__outsidePressBubbles")||(v.setOpen(!1,fn(yw,le)),W())}}}function ct(le){$e()!=="sloppy"||le.pointerType==="touch"||!v.select("open")||!n||J(le)||ze(le)}function _t(le){if($e()!=="sloppy"||!v.select("open")||!n||J(le))return;const we=le.touches[0];we&&(q.current={startTime:Date.now(),startX:we.clientX,startY:we.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},Q.start(1e3,()=>{q.current&&(q.current.dismissOnTouchEnd=!1,q.current.dismissOnMouseDown=!1)}))}function et(le,we){const Re=ka(le);if(!Re)return;const Pe=qn(Re,le.type,()=>{we(le),Pe()})}function Je(le){P.current="touch",et(le,_t)}function Ke(le){Q.clear(),le.type==="pointerdown"&&(P.current=le.pointerType),!(le.type==="mousedown"&&q.current&&!q.current.dismissOnMouseDown)&&et(le,we=>{we.type==="pointerdown"?ct(we):ze(we)})}function Ze(le){if(!H.current)return;const we=M.current;if(Le(),$e()==="intentional"){if(le.type==="pointercancel"){we&&We();return}if(!dr(le)){if(we){We();return}typeof R=="function"&&!R(le)||(me.clear(),j.current=!0,W())}}}function Ye(le){if($e()!=="sloppy"||!q.current||J(le))return;const we=le.touches[0];if(!we)return;const Re=Math.abs(we.clientX-q.current.startX),Pe=Math.abs(we.clientY-q.current.startY),At=Math.sqrt(Re*Re+Pe*Pe);At>5&&(q.current.dismissOnTouchEnd=!0),At>10&&(ze(le),Q.clear(),q.current=null)}function Mt(le){et(le,Ye)}function Gt(le){$e()!=="sloppy"||!q.current||J(le)||(q.current.dismissOnTouchEnd&&ze(le),Q.clear(),q.current=null)}function Ut(le){et(le,Gt)}const Bt=ar(y),Oe=Gp(r&&Gp(qn(Bt,"keydown",B),qn(Bt,"compositionstart",ke),qn(Bt,"compositionend",Me)),T&&Gp(qn(Bt,"click",Ke,!0),qn(Bt,"pointerdown",Ke,!0),qn(Bt,"pointerup",Ze,!0),qn(Bt,"pointercancel",Ze,!0),qn(Bt,"mousedown",Ke,!0),qn(Bt,"mouseup",Ze,!0),qn(Bt,"touchstart",Je,!0),qn(Bt,"touchmove",Mt,!0),qn(Bt,"touchend",Ut,!0)));return()=>{Oe(),de.clear(),me.clear(),Le(),j.current=!1}},[S,y,r,T,R,g,n,k,L,B,W,I,G,J,x,v,Q]),A.useEffect(W,[R,W]);const Y=A.useMemo(()=>({onKeyDown:B,[Fie[f]]:V,...f!=="intentional"&&{onClick:V}}),[B,V,f]),oe=A.useMemo(()=>({onKeyDown:B,onPointerDown:ve,onMouseDown:ve,onClickCapture:ee,onMouseDownCapture(de){ee(
148),ge(de)},onPointerDownCapture(de){ee(),ge(de)},onMouseUpCapture:ee,onTouchEndCapture:ee,onTouchMoveCapture:ee}),[B,ee,ge,ve]);return A.useMemo(()=>n?{reference:Y,floating:oe,trigger:Y}:{},[n,Y,oe])}const Vie={open:dt(e=>e.open),transitionStatus:dt(e=>e.transitionStatus),domReferenceElement:dt(e=>e.domReferenceElement),referenceElement:dt(e=>e.positionReference??e.referenceElement),floatingElement:dt(e=>e.floatingElement),floatingId:dt(e=>e.floatingId)};class Hie extends Mre{constructor(t){const{syncOnly:n,nested:r,onOpenChange:o,triggerElements:s,...l}=t;super({...l,positionReference:l.referenceElement,domReferenceElement:l.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:Aie(),nested:r,triggerElements:s},Vie),this.syncOnly=n}syncOpenEvent=(t,n)=>{(!t||!this.state.open||n!=null&&Hre(n))&&(this.context.dataRef.current.openEvent=t?n:void 0)};dispatchOpenChange=(t,n)=>{this.syncOpenEvent(t,n.event);const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)};setOpen=(t,n)=>{if(this.syncOnly){this.context.onOpenChange?.(t,n);return}this.dispatchOpenChange(t,n),this.context.onOpenChange?.(t,n)}}function oN(e,t=!1,n=!1){const[r,o]=A.useState(e&&t?"idle":void 0),[s,l]=A.useState(e);return e&&!s&&(l(!0),o("starting")),!e&&s&&r!=="ending"&&!n&&o("ending"),!e&&!s&&r==="ending"&&o(void 0),st(()=>{if(!e&&s&&r!=="ending"&&n){const f=hl.request(()=>{o("ending")});return()=>{hl.cancel(f)}}},[e,s,r,n]),st(()=>{if(!e||t)return;const f=hl.request(()=>{o(void 0)});return()=>{hl.cancel(f)}},[t,e]),st(()=>{if(!e||!t)return;e&&s&&r!=="idle"&&o("starting");const f=hl.request(()=>{o("idle")});return()=>{hl.cancel(f)}},[t,e,s,r]),{mounted:s,setMounted:l,transitionStatus:r}}let N1=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const zie={[N1.startingStyle]:""},qie={[N1.endingStyle]:""},Cw={transitionStatus(e){return e==="starting"?zie:e==="ending"?qie:null}};function Gie(e,t=!1,n=!0){const r=R1();return gt((o,s=null)=>{r.cancel();const l=lu(e);if(l==null)return;const f=l,m=()=>{ef.flushSync(o)};if(typeof f.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){o();return}function p(){Promise.all(f.getAnimations().map(v=>v.finished)).then(()=>{s?.aborted||m()}).catch(()=>{if(n){s?.aborted||m();return}const v=f.getAnimations();!s?.aborted&&v.length>0&&v.some(g=>g.pending||g.playState!=="finished")&&p()})}if(t){const v=N1.startingStyle;if(!f.hasAttribute(v)){r.request(p);return}const g=new MutationObserver(()=>{f.hasAttribute(v)||(g.disconnect(),p())});g.observe(f,{attributes:!0,attributeFilter:[v]}),s?.addEventListener("abort",()=>g.disconnect(),{once:!0});return}r.request(p)})}function Tw(e){const{enabled:t=!0,open:n,ref:r,onComplete:o}=e,s=gt(o),l=Gie(r,n,!1);A.useEffect(()=>{if(!t)return;const f=new AbortController;return l(s,f.signal),()=>{f.abort()}},[t,n,s,l])}const $ie={tabIndex:-1,[S6]:""};class Qie{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elementsSet.delete(r),this.elementsSet.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elementsSet.delete(n),this.idMap.delete(t))}hasElement(t){return this.elementsSet.has(t)}hasMatchingElement(t){for(const n of this.elementsSet)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function aN(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,o=Sw(),s=iN()!=null,l=Ma(()=>
148new Hie({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Qie,floatingId:o,syncOnly:!1,nested:s})).current;return st(()=>{const f={open:t,floatingId:o};r.reference!==void 0&&(f.referenceElement=r.reference,f.domReferenceElement=br(r.reference)?r.reference:null),r.floating!==void 0&&(f.floatingElement=r.floating),l.update(f)},[t,o,r.reference,r.floating,l]),l.context.onOpenChange=n,l.context.nested=s,l}function Wie(e={}){const{nodeId:t,externalTree:n}=e,r=aN(e),o=e.rootContext||r,s=o.useState("referenceElement"),l=o.useState("floatingElement"),f=o.useState("domReferenceElement"),m=o.useState("open"),p=o.useState("floatingId"),[v,g]=A.useState(null),[y,S]=A.useState(void 0),[x,w]=A.useState(void 0),R=A.useRef(null),T=x2(n),I=A.useMemo(()=>({reference:s,floating:l,domReference:f}),[s,l,f]),k=cA({...e,elements:{...I,...v&&{reference:v}}}),L=br(y)?y:null,H=x===void 0?o.state.floatingElement:x;o.useSyncedValue("referenceElement",y??null),o.useSyncedValue("domReferenceElement",y===void 0?f:L),o.useSyncedValue("floatingElement",H);const M=A.useCallback($=>{const W=br($)?{getBoundingClientRect:()=>$.getBoundingClientRect(),getClientRects:()=>$.getClientRects(),contextElement:$}:$;g(W),k.refs.setReference(W)},[k.refs]),j=A.useCallback($=>{(br($)||$===null)&&(R.current=$,S($)),(br(k.refs.reference.current)||k.refs.reference.current===null||$!==null&&!br($))&&k.refs.setReference($)},[k.refs,S]),K=A.useCallback($=>{w($),k.refs.setFloating($)},[k.refs]),P=A.useMemo(()=>({...k.refs,setReference:j,setFloating:K,setPositionReference:M,domReference:R}),[k.refs,j,K,M]),q=A.useMemo(()=>({...k.elements,domReference:f}),[k.elements,f]),Q=A.useMemo(()=>({...k,dataRef:o.context.dataRef,open:m,onOpenChange:o.setOpen,events:o.context.events,floatingId:p,refs:P,elements:q,nodeId:t,rootStore:o}),[k,P,q,t,o,m,p]);return st(()=>{f&&(R.current=f)},[f]),st(()=>{o.context.dataRef.current.floatingContext=Q;const $=T?.nodesRef.current.find(W=>W.id===t);$&&($.context=Q)}),A.useMemo(()=>({...k,context:Q,refs:P,elements:q,rootStore:o}),[k,P,q,Q,o])}const Yie="Escape";function w2(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Rb(e,t){return w2(t,e===vw||e===X1,e===Dc||e===Lc)}function dE(e,t,n){return w2(t,e===X1,n?e===Dc:e===Lc)||e==="Enter"||e===" "||e===""}function Kie(e,t,n){return w2(t,n?e===Dc:e===Lc,e===X1)}function Xie(e,t,n,r){const o=n?e===Lc:e===Dc,s=e===vw;return t==="both"||t==="horizontal"&&r&&r>1?e===Yie:w2(t,o,s)}function Zie(e,t){const{listRef:n,activeIndex:r,onNavigate:o=()=>{},enabled:s=!0,selectedIndex:l=null,allowEscape:f=!1,loopFocus:m=!1,nested:p=!1,rtl:v=!1,virtual:g=!1,focusItemOnOpen:y="auto",focusItemOnHover:S=!0,openOnArrowKeyDown:x=!0,disabledIndices:w=void 0,orientation:R="vertical",parentOrientation:T,cols:I=1,id:k,resetOnPointerLeave:L=!0,externalTree:H}=t,M="rootStore"in e?e.rootStore:e,j=M.useState("open"),K=M.useState("floatingElement"),P=M.useState("domReferenceElement"),q=M.context.dataRef,Q=x6(K),$=E6(P),W=Yo(Q),G=iN(),J=x2(H),V=A.useRef(y),B=A.useRef(l??-1),ee=A.useRef(null),ge=A.useRef(!0),ve=gt(Oe=>{o(B.current===-1?null:B.current,Oe)}),Y=A.useRef(ve),oe=A.useRef(!!K),de=A.useRef(j),me=A.useRef(!1),ke=A.useRef(!1),Me=A.useRef(null),We=Yo(w),Le=Yo(j),$e=Yo(l),an=Yo(L),dr=R1(),ze=R1(),ct=gt(()=>{function Oe(Pe){g?J?.events.emit("virtualfocus",Pe):Me.current=Zb(Pe,{sync:me.current,preventScroll:!0})}const le=n.current[B.current],we=ke.current;le&&Oe(le),(me.current?Pe=>Pe():Pe=>dr.request(Pe))(()=>{const Pe=n.current[B.current]||le;if(!Pe)return;le||Oe(Pe),Ye&&(we||!ge.current)&&Pe.scrollIntoView?.({block:"nearest",inline:"nearest"})})});st(()=>{q.current.orientation=R},[q,R]),st(()=>{s&&(j&&K?(B.current=l??-1,V.current&&l!=null&&(ke.current=!0,ve())):oe.current&&(B.current=-1,Y.current()))},[s,j,K,l,ve]),st(()=>{if(s){if(!j){me.current=!1;return}if(K)if(r==null){if(me.current=!1,$e.current!=null)return;if(oe.current&&(B.current=-1,ct()),(!de.current||!oe.current)&&V.current&&(ee.current!=null||V.current===!0&&ee.current==null)){let Oe=0;const le=()=>{n.current[0]==null?(Oe<2&&(Oe?Re=>ze.request(Re):queueMicrotask)(le),Oe+=1):(B.current=ee.current==null||dE(ee.current,R,v)||p?aE(n):G9
148(n),ee.current=null,ve())};le()}}else w_(n.current,r)||(B.current=r,ct(),ke.current=!1)}},[s,j,K,r,$e,p,n,R,v,ve,ct,ze]),st(()=>{if(!s||K||!J||g||!oe.current)return;const Oe=J.nodesRef.current,le=Oe.find(Pe=>Pe.id===G)?.context?.elements.floating,we=Ea(ar(K)),Re=Oe.some(Pe=>Pe.context&&rn(Pe.context.elements.floating,we));le&&!Re&&ge.current&&le.focus({preventScroll:!0})},[s,K,J,G,g]),st(()=>{Y.current=ve,de.current=j,oe.current=!!K}),st(()=>{j||(ee.current=null,V.current=y)},[j,y]);const _t=r!=null,et=gt(Oe=>{if(!Le.current)return;const le=n.current.indexOf(Oe.currentTarget);le!==-1&&(B.current!==le||r!==le)&&(B.current=le,ve(Oe))}),Je=gt(()=>T??J?.nodesRef.current.find(Oe=>Oe.id===G)?.context?.dataRef?.current.orientation),Ke=gt(()=>aE(n,We.current)),Ze=gt(Oe=>{if(ge.current=!1,me.current=!0,Oe.which===229||!Le.current&&Oe.currentTarget===W.current)return;if(p&&Xie(Oe.key,R,v,I)){Rb(Oe.key,Je())||ao(Oe),M.setOpen(!1,fn(q9,Oe.nativeEvent)),sr(P)&&(g?J?.events.emit("virtualfocus",P):P.focus());return}const le=B.current,we=aE(n,w),Re=G9(n,w);if($||(Oe.key==="Home"&&(ao(Oe),B.current=we,ve(Oe)),Oe.key==="End"&&(ao(Oe),B.current=Re,ve(Oe))),I>1){const Pe=Array.from({length:n.current.length},()=>({width:1,height:1})),At=Xre(Pe,I),mn=At.findIndex(at=>at!=null&&!$p(n.current,at,w)),kt=At.reduce((at,Wt,kn)=>Wt!=null&&!$p(n.current,Wt,w)?kn:at,-1),yt=At[Kre(At.map(at=>at!=null?n.current[at]:null),{event:Oe,orientation:R,loopFocus:m,rtl:v,cols:I,disabledIndices:Jre([...(typeof w!="function"?w:null)||n.current.map((at,Wt)=>$p(n.current,Wt,w)?Wt:void 0),void 0],At),minIndex:mn,maxIndex:kt,prevIndex:Zre(B.current>Re?we:B.current,Pe,At,I,Oe.key===X1?"bl":Oe.key===(v?Dc:Lc)?"tr":"tl"),stopEvent:!0})];if(yt!=null&&(B.current=yt,ve(Oe)),R==="both")return}if(Rb(Oe.key,R)){if(ao(Oe),j&&!g&&Ea(Oe.currentTarget.ownerDocument)===Oe.currentTarget){B.current=dE(Oe.key,R,v)?we:Re,ve(Oe);return}dE(Oe.key,R,v)?m?le>=Re?f&&le!==n.current.length?B.current=-1:(me.current=!1,B.current=we):B.current=io(n.current,{startingIndex:le,disabledIndices:w}):B.current=Math.min(Re,io(n.current,{startingIndex:le,disabledIndices:w})):m?le<=we?f&&le!==-1?B.current=n.current.length:(me.current=!1,B.current=Re):B.current=io(n.current,{startingIndex:le,decrement:!0,disabledIndices:w}):B.current=Math.max(we,io(n.current,{startingIndex:le,decrement:!0,disabledIndices:w})),w_(n.current,B.current)&&(B.current=-1),ve(Oe)}}),Ye=A.useMemo(()=>({onFocus(le){me.current=!0,et(le)},onClick:({currentTarget:le})=>le.focus({preventScroll:!0}),onMouseMove(le){me.current=!0,ke.current=!1,S&&et(le)},onPointerLeave(le){if(!Le.current||!ge.current||le.pointerType==="touch")return;me.current=!0;const we=le.relatedTarget;if(!(!S||n.current.includes(we))&&an.current&&(Me.current?.(),Me.current=null,B.current=-1,ve(le),!g)){const Re=W.current,Pe=Ea(ar(Re));Re&&rn(Re,Pe)&&Re.focus({preventScroll:!0})}}}),[et,Le,W,S,n,ve,an,g]),Mt=A.useMemo(()=>g&&j&&_t&&{"aria-activedescendant":`${k}-${r}`},[g,j,_t,k,r]),Gt=A.useMemo(()=>({"aria-orientation":R==="both"?void 0:R,...$?{}:Mt,onKeyDown(Oe){if(Oe.key==="Tab"&&Oe.shiftKey&&j&&!g){const le=ka(Oe.nativeEvent);if(le&&!rn(W.current,le))return;ao(Oe),M.setOpen(!1,fn(S2,Oe.nativeEvent)),sr(P)&&P.focus();return}Ze(Oe)},onPointerMove(){ge.current=!0}}),[Mt,Ze,W,R,$,M,j,g,P]),Ut=A.useMemo(()=>{function Oe(Re){M.setOpen(!0,fn(q9,Re.nativeEvent,Re.currentTarget))}function le(Re){y==="auto"&&Pk(Re.nativeEvent)&&(V.current=!g)}function we(Re){V.current=y,y==="auto"&&Fk(Re.nativeEvent)&&(V.current=!0)}return{onKeyDown(Re){const Pe=M.select("open");ge.current=!1;const At=Re.key.startsWith("Arrow"),mn=Kie(Re.key,Je(),v),kt=Rb(Re.key,R),yt=(p?mn:kt)||Re.key==="Enter"||Re.key.trim()==="";if(g&&Pe)return Ze(Re);if(!(!Pe&&!x&&At)){if(yt){const at=Rb(Re.key,Je());ee.current=p&&at?null:Re.key}if(p){mn&&(ao(Re),Pe?(B.current=Ke(),ve(Re)):Oe(Re));return}kt&&($e.current!=null&&(B.current=$e.current),ao(Re),!Pe&&x?Oe(Re):Ze(Re),Pe&&ve(Re))}},onFocus(Re){M.select("open")&&!g&&(B.current=-1,ve(Re))},onPointerDown:we,onPointerEnter:we,onMouseDown:le,onClick:le}},[Ze,y,Ke,p,ve,M,x,R,Je,v,$e,g]),Bt=A.useMemo(()=>({...Mt,...Ut}),[Mt,Ut]);return A.useMemo(()=>s?{reference:Bt,floating:Gt,item:Ye,trigger:Ut}:{},[s,Bt,Gt,Ut,Ye])}const sN=A.createContext(void 0),lN=A.createContext(void 0),uN=A.createContext(void 0),cN=A.createContext("");function Ru(){const e=A.useContext(sN);if(!e)throw new Error(Tu(22));return e}function Rw(){const e=A.useContext(lN);if(!e)throw new Error(Tu(23));return e}function xm(){const e=A.useContext(uN);if(!e)throw new Error(Tu(24));return e}function fN(){return A.useContext(cN)}const Jie=(e,t)=>Object.is(e,t);
148function Pd(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function eoe(e,t,n){return!e||e.length===0?!1:e.some(r=>r===void 0?!1:Pd(t,r,n))}function R6(e,t,n){return!e||e.length===0?-1:e.findIndex(r=>r===void 0?!1:Pd(r,t,n))}function toe(e,t,n){return e.filter(r=>!Pd(t,r,n))}function O6(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function dN(e){return e!=null&&e.length>0&&typeof e[0]=="object"&&e[0]!=null&&"items"in e[0]}function noe(e){if(!Array.isArray(e))return e!=null&&"null"in e;const t=e;if(dN(t)){for(const n of t)for(const r of n.items)if(r&&r.value==null&&r.label!=null)return!0;return!1}for(const n of t)if(n&&n.value==null&&n.label!=null)return!0;return!1}function oo(e,t){if(t&&e!=null)return t(e)??"";if(e&&typeof e=="object"){if("label"in e&&e.label!=null)return String(e.label);if("value"in e)return String(e.value)}return O6(e)}function Wv(e,t){return t&&e!=null?t(e)??"":e&&typeof e=="object"&&"value"in e&&"label"in e?O6(e.value):O6(e)}const Ve={id:dt(e=>e.id),labelId:dt(e=>e.labelId),items:dt(e=>e.items),selectedValue:dt(e=>e.selectedValue),hasSelectionChips:dt(e=>{const t=e.selectedValue;return Array.isArray(t)&&t.length>0}),hasSelectedValue:dt(e=>{const{selectedValue:t,selectionMode:n}=e;return t==null?!1:n==="multiple"&&Array.isArray(t)?t.length>0:!0}),hasNullItemLabel:dt((e,t)=>t?noe(e.items):!1),open:dt(e=>e.open),mounted:dt(e=>e.mounted),forceMounted:dt(e=>e.forceMounted),inline:dt(e=>e.inline),activeIndex:dt(e=>e.activeIndex),selectedIndex:dt(e=>e.selectedIndex),isActive:dt((e,t)=>e.activeIndex===t),isSelected:dt((e,t)=>{const n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(o=>Pd(t,o,n)):Pd(t,r,n)}),transitionStatus:dt(e=>e.transitionStatus),popupProps:dt(e=>e.popupProps),inputProps:dt(e=>e.inputProps),triggerProps:dt(e=>e.triggerProps),itemProps:dt(e=>e.itemProps),positionerElement:dt(e=>e.positionerElement),listElement:dt(e=>e.listElement),triggerElement:dt(e=>e.triggerElement),inputElement:dt(e=>e.inputElement),inputGroupElement:dt(e=>e.inputGroupElement),popupSide:dt(e=>e.popupSide),openMethod:dt(e=>e.openMethod),inputInsidePopup:dt(e=>e.inputInsidePopup),inputOwnsFormValue:dt(e=>e.inputOwnsFormValue),selectionMode:dt(e=>e.selectionMode),name:dt(e=>e.name),form:dt(e=>e.form),disabled:dt(e=>e.disabled),readOnly:dt(e=>e.readOnly),required:dt(e=>e.required),grid:dt(e=>e.grid),virtualized:dt(e=>e.virtualized),itemToStringLabel:dt(e=>e.itemToStringLabel),isItemEqualToValue:dt(e=>e.isItemEqualToValue),modal:dt(e=>e.modal),autoHighlight:dt(e=>e.autoHighlight),submitOnItemClick:dt(e=>e.submitOnItemClick)};let r8=(function(e){return e.disabled="data-disabled",e.valid="data-valid",e.invalid="data-invalid",e.touched="data-touched",e.dirty="data-dirty",e.filled="data-filled",e.focused="data-focused",e})({});const roe={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Pp={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},ioe={disabled:!1,...Pp},ooe={valid(e){return e===null?null:e?{[r8.valid]:""}:{[r8.invalid]:""}}},hN={invalid:void 0,name:void 0,validityData:{state:roe,errors:[],error:"",value:"",initialValue:null},setValidityData:Xn,disabled:void 0,touched:Pp.touched,setTouched:Xn,dirty:Pp.dirty,setDirty:Xn,filled:Pp.filled,setFilled:Xn,focused:Pp.focused,setFocused:Xn,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:ioe,markedDirtyRef:{current:!1},registerFieldControl:Xn,validation:{getValidationProps:(e=To)=>e,getInputValidationProps:(e=To)=>e,inputRef:{current:null},commit:async()=>{}}},pN=A.createContext(hN);function C2(e=!0){const t=A.useContext(pN);if(t.setValidityData===Xn&&!e)throw new Error(Tu(28));return t}function aoe(e,t,n,r,o=!0){const{registerFieldControl:s}=C2(),l=A.useRef(null);l.current||(l.current=Symbol()),st(()=>{const f=l.current;return!f||!o?void 0:(s(f,{controlRef:e,getValue:r,id:t,value:n}),()=>{s(f,void 0)})},[e,o,r,t,s,n])}const soe=A.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:Xn,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function loe(){return A.useContext(soe)}function mN(e){return Sw(e,"base-ui")}const uoe=A.createContext({controlId:void 0,registerControlId:Xn,labelId:void 0,setLabelId:Xn,messageIds:[],setMessageIds:Xn,getDescriptionProps:e=>e});function vN(){return A.useContext(uoe)}function coe(e={}){const{id:t,implicit:n=!1,controlRef:r}=e,{controlId:o,registerControlId:s}=vN(),l=mN(t),f=n?o:void 0,m=Ma(()=>Symbol("labelable-control")),p=A.useRef(!1),v=A.useRef(t!=null),g=gt(()=>{!p.current||s===Xn||(p.current=!1,s(m.current,void 0))});return st(()=>{if(s===Xn)return;let y;if(n){const S=r?.current;br(S)&&S.closest("label")!=null?y=t??null:y=f??l}else if(t!=null)v.current=!0,y=t;else if(v.current)y=l;else{g();return}if(y===void 0){g();return}p.current=!0,s(m.current,y)},[t,r,f,s,n,l,m,g]),A.useEffect(()=>g,[g]),o??l}function foe(e,t){return(n,r)=>{if(n==null)return!1;const o=oo(n,t);return e.contains(o,r)}}function doe(e,t,n){return(r,o)=>{if(r==null)return!1;if(!o)return!0;const s=oo(r,t),l=n!=null?oo(n,t):"";return l&&e.contains(l,o)&&l.length===o.length?!0:e.contains(s,o)}}const i8=new Map;function hoe(e={}){const t={usage:"search",sensitivity:"base",ignorePunctuation:!0,...e},n=`${gN(e.locale)}|${JSON.stringify(t)}`,r=i8.get(n);if(r)return r;const o=new Intl.Collator(e.locale,t),s={contains(l,f,m){if(!f)return!0;const p=oo(l,m);for(let v=0;v<=p.length-f.length;v+=1)if(o.compare(p.slice(v,v+f.length),f)===0)return!0;return!1},startsWith(l,f,m){if(!f)return!0;const p=oo(l,m);return o.compare(p.slice(0,f.length),f)===0},endsWith(l,f,m){if(!f)return!0;const p=oo(l,m),v=f.length;return p.length>=v&&o.compare(p.slice(p.length-v),f)===0}};return i8.set(n,s),s}function gN(e){return Array.isArray(e)?e.map(t=>gN(t)).join(","):e==null?"":String(e)}const yN=hoe;function poe(e){const t=A.useRef(""),n=A.useCallback(o=>{o.defaultPrevented||(t.current=o.pointerType,e(o,o.pointerType))},[e]);return{onClick:A.useCallback(o=>
148{if(o.detail===0){e(o,"keyboard");return}"pointerType"in o?e(o,o.pointerType):e(o,t.current),t.current=""},[e]),onPointerDown:n}}function r1(e,t){const n=A.useRef(e),r=gt(t);st(()=>{n.current!==e&&r(n.current)},[e,r]),st(()=>{n.current=e},[e])}function moe(e,t){const n=gt((s,l)=>{(typeof e=="function"?e():e)||t(l||(Lk?"touch":""))}),{onClick:r,onPointerDown:o}=poe(n);return A.useMemo(()=>({onClick:r,onPointerDown:o}),[r,o])}function voe(e){const[t,n]=A.useState(null),r=moe(e,n);return r1(e,o=>{o&&!e&&n(null)}),A.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}const bN=Symbol("none"),ud={value:bN,index:-1},goe=A.createContext(void 0);function Ow(){return A.useContext(goe)?.direction??"ltr"}function yoe(e){const{id:t,onOpenChangeComplete:n,defaultSelectedValue:r=null,selectedValue:o,onSelectedValueChange:s,defaultInputValue:l,inputValue:f,open:m,defaultOpen:p=!1,selectionMode:v="none",onItemHighlighted:g,name:y,form:S,disabled:x=!1,readOnly:w=!1,required:R=!1,inputRef:T,grid:I=!1,items:k,filteredItems:L,filter:H,openOnInputClick:M=!0,autoHighlight:j=!1,keepHighlight:K=!1,highlightItemOnHover:P=!0,loopFocus:q=!0,itemToStringLabel:Q,itemToStringValue:$,isItemEqualToValue:W=Jie,virtualized:G=!1,inline:J=!1,fillInputOnItemPress:V=!0,modal:B=!1,limit:ee=-1,autoComplete:ge="list",formAutoComplete:ve,locale:Y,submitOnItemClick:oe=!1}=e,{clearErrors:de}=loe(),{setDirty:me,validityData:ke,shouldValidateOnChange:Me,setFilled:We,name:Le,disabled:$e,setTouched:an,setFocused:dr,validationMode:ze,validation:ct}=C2(),_t=Ow(),et=coe({id:t}),Je=yN({locale:Y}),[Ke,Ze]=A.useState(!1),[Ye,Mt]=A.useState(null),Gt=A.useRef([]),Ut=A.useRef([]),Bt=A.useRef(null),Oe=A.useRef(null),le=A.useRef(null),we=A.useRef(null),Re=A.useRef(null),Pe=A.useRef(!0),At=A.useRef(!1),mn=A.useRef(null),kt=A.useRef(null),yt=A.useRef(null),at=A.useRef(ud),Wt=A.useRef(null),kn=A.useRef([]),Qn=A.useRef([]),jr=$e||x,Ar=Le??y,pt=v==="multiple",en=v==="single",jn=f!==void 0||l!==void 0,Cn=k!==void 0,Jn=L!==void 0;let sn;j==="always"?sn="always":sn=j?"input-change":!1;const[tt,ea]=Z3({controlled:o,default:pt?r??Eb:r,name:"Combobox",state:"selectedValue"}),uo=A.useMemo(()=>H===null?()=>!0:H!==void 0?H:en&&!Ke?doe(Je,Q,tt):foe(Je,Q),[H,en,tt,Ke,Je,Q]),Ao=Ma(()=>jn?l??"":en?oo(tt,Q):"").current,[Un,wl]=Z3({controlled:f,default:Ao,name:"Combobox",state:"inputValue"}),[Bn,ta]=Z3({controlled:m,default:p,name:"Combobox",state:"open"}),ai=dN(k),er=Ye??(Un===""?"":String(Un).trim()),Pa=en?oo(tt,Q):"",ko=en&&!Ke&&er!==""&&Pa!==""&&Pa.length===er.length&&Je.contains(Pa,er),na=ko?"":er,Bi=Cn&&Jn&&ko,Nn=A.useMemo(()=>k?ai?k.flatMap(Ie=>Ie.items):k:Eb,[k,ai]),lr=A.useMemo(()=>{if(L&&!Bi)return L;if(!k)return Eb;if(ai){const qe=k,Vt=[];let Yt=0;for(const hn of qe){if(ee>-1&&Yt>=ee)break;const Wn=na===""?hn.items:hn.items.filter(Os=>uo(Os,na,Q));if(Wn.length===0)continue;const Vi=ee>-1?ee-Yt:1/0,Ur=Wn.slice(0,Vi);if(Ur.length>0){const Os={...hn,items:Ur};Vt.push(Os),Yt+=Ur.length}}return Vt}if(na==="")return ee>-1?Nn.slice(0,ee):Nn;const Ie=[];for(const qe of Nn){if(ee>-1&&Ie.length>=ee)break;uo(qe,na,Q)&&Ie.push(qe)}return Ie},[L,Bi,k,ai,na,ee,uo,Q,Nn]),kr=A.useMemo(()=>ai?lr.flatMap(qe=>qe.items):lr,[lr,ai]),Ct=Ma(()=>new Nk({id:et,labelId:void 0,selectedValue:tt,open:Bn,filter:uo,query:er,items:k,selectionMode:v,listRef:Gt,labelsRef:Ut,popupRef:Bt,emptyRef:Re,inputRef:Oe,startDismissRef:le,endDismissRef:we,keyboardActiveRef:Pe,chipsContainerRef:mn,clearRef:kt,valuesRef:kn,allValuesRef:Qn,selectionEventRef:yt,name:Ar,form:S,disabled:jr,readOnly:w,required:R,grid:I,isGrouped:ai,virtualized:G,openOnInputClick:M,itemToStringLabel:Q,isItemEqualToValue:W,modal:B,autoHighlight:sn,submitOnItemClick:oe,hasInputValue:jn,mounted:!1,forceMounted:!1,transitionStatus:"idle",inline:J,activeIndex:null,selectedIndex:null,popupProps:{},inputProps:{},triggerProps:{},itemProps:To,positionerElement:null,listElement:null,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:v==="none",onOpenChangeComplete:n||Xn,setOpen:Xn,setInputValue:Xn,setSelectedValue:Xn,setIndices:Xn,onItemHighlighted:Xn,handleSelection:Xn,forceMount:Xn,requestSubmit:Xn})).current,Fa=v==="none"?Un:tt,wm=A.useMemo(()=>v==="none"?Fa:Array.isArray(tt)?tt.map(Ie=>Wv(Ie,$)):Wv(tt,$),[Fa,$,v,tt]),Ou=gt(g),ja=gt(n),xs=Be(Ct,Ve.activeIndex),ws=Be(Ct,Ve.selectedIndex),No=Be(Ct,Ve.positionerElement),Io=Be(Ct,Ve.listElement),co=Be(Ct,Ve.triggerElement),In=Be(Ct,Ve.inputElement),Vd=Be(Ct,Ve.inputGroupElement),Yr=Be(Ct,Ve.inline),Nr=Be(Ct,Ve.inputInsidePopup),Ua=Be(Ct,Ve.inputOwnsFormValue),Hd=Yo(co),{mounted:Au,setMounted:zd,transitionStatus:of}=oN(Bn),{openMethod:Cl,triggerProps:Cs}=voe(Bn),fo=gt(()=>wm);aoe(Nr?Hd:Oe,et,Fa,fo);const Ir=gt(()=>{k?Ut.current=kr.map(Ie=>oo(Ie,Q)):Ct.set("forceMounted",!0)}),af=A.useRef(tt);st(()=>{tt!==af.current&&Ir()},[Ir,tt]);const si=gt(Ie=>{Ct.update(Ie);const qe=Ie.type||"none";if(Ie.activeIndex!==void 0)if(Ie.activeIndex===null)at.current!==ud&&(at.current=ud,Ou(void 0,$v(qe,void 0,{index:-1})));else{const Vt=kn.current[Ie.activeIndex];at.current={value:Vt,index:Ie.activeIndex},Ou(Vt,$v(qe,void 0,{index:Ie.activeIndex}))}}),li=gt((Ie,qe)=>{if(At.current=qe.reason===uu,e.onInputValueChange?.(Ie,qe),!qe.isCanceled){if(qe.reason===L
148p){const Vt=qe.event,Yt=Vt.inputType;if(Vt.type==="compositionend"||Yt!=null&&Yt!==""&&Yt!=="insertReplacementText"){const Wn=Ie.trim()!=="";Wn&&Ze(!0),Wt.current={hasQuery:Wn},Wn&&sn&&Ct.state.activeIndex==null&&Ct.set("activeIndex",0)}}wl(Ie)}}),Ba=gt((Ie,qe)=>{if(Bn!==Ie&&(qe.reason==="escape-key"&&Cn&&kr.length===0&&!Ct.state.emptyRef.current&&qe.allowPropagation(),e.onOpenChange?.(Ie,qe),!qe.isCanceled&&(Ie&&pt&&Nr&&!Yr&&Ye!==null&&(Ze(!1),Mt(null),Un!==""&&li("",fn(uu,qe.event))),!Ie&&Ke&&(en?(Yr||Mt(er),er===""&&Ze(!1)):pt&&(Yr||Mt(er),Nr&&si({activeIndex:null}),(!Nr||Yr)&&li("",fn(uu,qe.event)))),ta(Ie),!Ie&&Nr&&(qe.reason===S2||qe.reason===yw)&&(an(!0),dr(!1),ze==="onBlur")))){const Vt=v==="none"?Un:tt;ct.commit(Vt)}}),ho=gt((Ie,qe)=>{if(s?.(Ie,qe),qe.isCanceled)return;ea(Ie),(v==="none"&&Bt.current&&V||en&&!Ct.state.inputInsidePopup)&&li(oo(Ie,Q),fn(qe.reason,qe.event)),en&&Ie!=null&&qe.reason!==Lp&&Ke&&!Yr&&Mt(er)}),qd=gt((Ie,qe)=>{let Vt=qe;if(Vt===void 0){if(xs===null)return;Vt=kn.current[xs]}const Yt=ka(Ie),hn=yt.current??Ie;yt.current=null;const Wn=fn($re,hn),Vi=Yt?.closest("a")?.getAttribute("href");if(Vi){Vi.startsWith("#")&&Ba(!1,Wn);return}if(pt){const Ur=Array.isArray(tt)?tt:[],Nu=eoe(Ur,Vt,Ct.state.isItemEqualToValue)?toe(Ur,Vt,Ct.state.isItemEqualToValue):[...Ur,Vt];if(ho(Nu,Wn),!(Oe.current?Oe.current.value.trim()!=="":!1))return;Ct.state.inputInsidePopup?li("",fn(uu,Wn.event)):Ba(!1,Wn)}else ho(Vt,Wn),Ba(!1,Wn)}),Kr=gt(()=>{if(!Ct.state.submitOnItemClick)return;const Ie=ct.inputRef.current?.form??Ct.state.inputElement?.form;Ie&&typeof Ie.requestSubmit=="function"&&Ie.requestSubmit()}),Ts=gt(()=>{if(zd(!1),ja?.(!1),Ze(!1),Mt(null),si(v==="none"?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),pt&&Oe.current&&Oe.current.value!==""&&!At.current&&li("",fn(uu)),en)if(Ct.state.inputInsidePopup)Oe.current&&Oe.current.value!==""&&li("",fn(uu));else{const Ie=oo(tt,Q);Oe.current&&Oe.current.value!==Ie&&li(Ie,fn(Ie===""?uu:cl))}}),sf=A.useMemo(()=>Yr&&No?{current:No.closest('[role="dialog"]')}:Bt,[Yr,No]);Tw({enabled:!e.actionsRef,open:Bn,ref:sf,onComplete(){Bn||Ts()}}),A.useImperativeHandle(e.actionsRef,()=>({unmount:Ts}),[Ts]),st(function(){if(Bn||v==="none")return;const qe=k?Nn:Qn.current;if(pt){const Vt=Array.isArray(tt)?tt:[],Yt=Vt[Vt.length-1],hn=R6(qe,Yt,W);si({selectedIndex:hn===-1?null:hn})}else{const Vt=R6(qe,tt,W);si({selectedIndex:Vt===-1?null:Vt})}},[Bn,tt,k,v,Nn,pt,W,si]),st(()=>{k&&(kn.current=kr,Gt.current.length=kr.length)},[k,kr]),st(()=>{const Ie=Wt.current;if(Ie&&(Ie.hasQuery?sn&&Ct.set("activeIndex",0):sn==="always"&&Ct.set("activeIndex",0),Wt.current=null),!Bn&&!Yr)return;const Vt=Cn||Jn?kr:kn.current,Yt=Ct.state.activeIndex;if(Yt==null){if(sn==="always"&&Vt.length>0){Ct.set("activeIndex",0);return}at.current!==ud&&(at.current=ud,Ct.state.onItemHighlighted(void 0,$v(cl,void 0,{index:-1})));return}if(Yt>=Vt.length){at.current!==ud&&(at.current=ud,Ct.state.onItemHighlighted(void 0,$v(cl,void 0,{index:-1}))),Ct.set("activeIndex",null);return}const hn=Vt[Yt],Wn=at.current.value,Vi=Wn!==bN&&Pd(hn,Wn,Ct.state.isItemEqualToValue);(at.current.index!==Yt||!Vi)&&(at.current={value:hn,index:Yt},Ct.state.onItemHighlighted(hn,$v(cl,void 0,{index:Yt})))},[xs,sn,Jn,Cn,kr,Yr,Bn,Ct]),st(()=>{if(v==="none"){We(String(Un)!=="");return}We(pt?Array.isArray(tt)&&tt.length>0:tt!=null)},[We,v,Un,tt,pt]),A.useEffect(()=>{Cn&&sn&&kr.length===0&&si({activeIndex:null})},[Cn,sn,kr.length,si]),r1(er,()=>{!Bn||er===""||er===String(Ao)||Ze(!0)}),r1(tt,()=>{if(v!=="none"&&(de(Ar),me(tt!==ke.initialValue),Me()?ct.commit(tt):ct.commit(tt,!0),en&&!jn&&!Nr)){const Ie=oo(tt,Q);Un!==Ie&&li(Ie,fn(cl))}}),r1(Un,()=>{v==="none"&&(de(Ar),me(Un!==ke.initialValue),Me()?ct.commit(Un):ct.commit(Un,!0))}),r1(k,()=>{if(!en||jn||Nr||Ke)return;const Ie=oo(tt,Q);Un!==Ie&&li(Ie,fn(cl))});const ra=aN({open:Yr?!0:Bn,onOpenChange:Ba,elements:{reference:Nr?co:In,floating:No}});let ia,Tl;Yr||(ia=I?"grid":"listbox",Tl=Bn?"true":"false");const Va=A.useMemo(()=>{const Ie=In?.tagName==="INPUT",qe=In==null||Ie,Vt=qe||Bn,Yt=qe?{autoComplete:"off",spellCheck:"false",autoCorrect:"off",autoCapitalize:"none"}:{};return Vt&&(Yt.role="combobox",Yt["aria-expanded"]=Tl,Yt["aria-haspopup"]=ia,Yt["aria-controls"]=Bn?Io?.id:void 0,Yt["aria-autocomplete"]=ge),{reference:Yt,floating:{role:"presentation"}}},[In,Bn,Tl,ia,Io?.id,ge]),Mo=Pie(ra,{enabled:!w&&!jr&&M,event:"mou
148sedown-only",toggle:!1,touchOpenDelay:Nr?0:100,reason:Wre}),Do=Bie(ra,{enabled:!w&&!jr&&!Yr,outsidePressEvent:{mouse:"sloppy",touch:"intentional"},bubbles:Yr?!0:void 0,outsidePress(Ie){const qe=ka(Ie);return!rn(co,qe)&&!rn(kt.current,qe)&&!rn(mn.current,qe)&&!rn(Vd,qe)}}),oa=Zie(ra,{enabled:!w&&!jr,id:et,listRef:Gt,activeIndex:xs,selectedIndex:ws,virtual:!0,loopFocus:q,allowEscape:q&&!sn,focusItemOnOpen:Ke||v==="none"&&!sn?!1:"auto",focusItemOnHover:P,resetOnPointerLeave:!K,cols:I?2:1,orientation:I?"horizontal":void 0,rtl:_t==="rtl",disabledIndices:Eb,onNavigate(Ie,qe){!qe&&!Bn||of==="ending"||si(qe?{activeIndex:Ie,type:Pe.current?"keyboard":"pointer"}:{activeIndex:Ie})}}),Rl=A.useMemo(()=>k1(oa.reference,Do.reference,Mo.reference,Va.reference),[oa.reference,Do.reference,Mo.reference,Va.reference]),Ol=A.useMemo(()=>k1($ie,oa.floating,Do.floating,Va.floating),[oa.floating,Do.floating,Va.floating]),ku=A.useMemo(()=>{const Ie=oa.item;return Ie?{...Ie,onFocus:void 0}:To},[oa.item]);hre(()=>{Ct.update({inline:J,popupProps:Ol,inputProps:Rl,triggerProps:Cs,itemProps:ku,setOpen:Ba,setInputValue:li,setSelectedValue:ho,setIndices:si,onItemHighlighted:Ou,handleSelection:qd,forceMount:Ir,requestSubmit:Kr})}),st(()=>{Ct.update({id:et,selectedValue:tt,open:Bn,mounted:Au,transitionStatus:of,items:k,inline:J,popupProps:Ol,inputProps:Rl,triggerProps:Cs,openMethod:Cl,itemProps:ku,selectionMode:v,name:Ar,form:S,disabled:jr,readOnly:w,required:R,grid:I,isGrouped:ai,virtualized:G,onOpenChangeComplete:ja,openOnInputClick:M,itemToStringLabel:Q,modal:B,autoHighlight:sn,isItemEqualToValue:W,submitOnItemClick:oe,hasInputValue:jn,requestSubmit:Kr,inputOwnsFormValue:v==="none"&&(J||!Ct.state.inputInsidePopup)})},[Ct,et,tt,Bn,Au,of,k,Ol,Rl,ku,Cl,Cs,v,Ar,jr,w,R,ct,I,ai,G,ja,M,Q,B,W,oe,jn,J,Kr,sn,S]);const Gd=am(T,ct.inputRef),Al=A.useMemo(()=>({query:er,hasItems:Cn,filteredItems:lr,flatFilteredItems:kr}),[er,Cn,lr,kr]),po=A.useMemo(()=>Array.isArray(Fa)?"":Wv(Fa,$),[Fa,$]),lf=pt&&Array.isArray(tt)&&tt.length>0,kl=pt||v==="none"&&Ua?void 0:Ar,Rs=A.useMemo(()=>!pt||!Array.isArray(tt)||!Ar?null:tt.map(Ie=>{const qe=Wv(Ie,$);return C.jsx("input",{type:"hidden",form:S,name:Ar,value:qe},qe)}),[pt,tt,S,Ar,$]),Ha=C.jsxs(A.Fragment,{children:[e.children,C.jsx("input",{...ct.getInputValidationProps({onFocus(){if(Nr){co?.focus();return}(Oe.current||co)?.focus()},onChange(Ie){if(Ie.nativeEvent.defaultPrevented||jr||w){Ie.preventBaseUIHandler?.();return}const qe=Ie.currentTarget.value,Vt=fn(cl,Ie.nativeEvent);function Yt(){if(pt)return;if(v==="none"){me(qe!==ke.initialValue),li(qe,Vt),Me()&&ct.commit(qe);return}const hn=kn.current.find(Wn=>Wv(Wn,$).toLowerCase()===qe.toLowerCase()||oo(Wn,Q).toLowerCase()===qe.toLowerCase());hn!=null&&(me(hn!==ke.initialValue),ho?.(hn,Vt),Me()&&ct.commit(hn))}k?Yt():(Ir(),queueMicrotask(Yt))}}),id:et&&kl==null?`${et}-hidden-input`:void 0,form:S,name:kl,autoComplete:ve,disabled:jr,required:R&&!lf,readOnly:w,value:po,ref:Gd,style:kl?Ak:Ok,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Rs]});return C.jsx(sN.Provider,{value:Ct,children:C.jsx(lN.Provider,{value:ra,children:C.jsx(uN.Provider,{value:Al,children:C.jsx(cN.Provider,{value:Un,children:Ha})})})})}function boe(e){const{openOnInputClick:t=!1,value:n,defaultValue:r,onValueChange:o,mode:s="list",itemToStringValue:l,...f}=e,m=s==="inline"||s==="both",p=s==="inline"||s==="none",v=n!==void 0,[g,y]=A.useState(r??""),[S,x]=A.useState("");A.useEffect(()=>{v&&x("")},[n,v]);let w;m&&S!==""?w=S:v?w=n??"":w=g;const R=yN(),T=A.useMemo(()=>f.filter!==void 0?f.filter:R.contains,[f.filter,R]),I=String(v?n:g).trim(),k=A.useMemo(()=>s!=="both"?p?null:T:T===null?null:(M,j,K)=>T(M,I,K),[T,s,I,p]);function L(M,j){x(""),v||y(M),o?.(M,j)}function H(M,j){e.onItemHighlighted?.(M,j),j.reason!==Yre&&(m?M==null?x(""):x(oo(M,l)):x(""))}return C.jsx(yoe,{...f,itemToStringLabel:l,openOnInputClick:t,selectionMode:"none",fillInputOnItemPress:!0,filter:k,autoComplete:s,inputValue:w,defaultInputValue:r,onInputValueChange:L,onItemHighlighted:H})}const _oe=A.createContext(void 0);function Soe(e=!1){const t=A.useContext(_oe);if(t===void 0&&!e)throw new Error(Tu(16));return t}function Eoe(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:o=0,isNativeButton:s}=e,l=r&&t!==!1,f=r&&t===!1;return{props:A.useMemo(()=>{const p={onKeyDown(v){n&&t&&v.key!=="Tab"&&v.preventDefault()}};return r||(p.tabIndex=o,!s&&n&&(p.tabIndex=t?o:-1)),(s&&(t||l)||!s&&n)&&(p["aria-disabled"]=n),s&&(!t||f)&&(p.disabled=n),p},[r,n,t,l,f,s,o])}}function Aw(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0,composite:s}=e,l=A.useRef(null),f=Soe(!0),m=s??f!==void 0,{props:p}=Eoe({focusableWhenDisabled:n,disabled:t,composite:m,tabIndex:r,isNativeButton:o}),v=A.useCallback(()=>{const S=l.current;hE(S)&&m&&t&&p.disabled===void 0&&S.disabled&&(S.disabled=!1)},[t,p.disabled,m]);st(v,[v]);const g=A.useCallback((S={})=>{const{onClick:x,onMouseDown:w,onKeyUp:R,onKeyDown:T,onPointerDown:I,...k}=S;return k1({onClick(L){if(t){L.preventDefault();return}x?.(L)},onMouseDown(L){t||w?.(L)},onKeyDown(L){if(t||(R_(L),T?.(L),L.baseUIHandlerPrevented))return;const H=L.target===L.currentTarget,M=L.currentTarget,j=hE(M),K=!o&&xoe(M),P=H&&(o?j:!K),q=L.key==="Enter",Q=L.key===" ",$=M.getAttribute("role"),W=$?.startsWith("menuitem")||$==="option"||$==="gridcell";if(H&&m&&Q){if(L.defaultPrevented&&W)return;L.preventDefault(),K||o&&j?(M.click(),L.preventBaseUIHandler()):P&&(x?.(L),L.preventBaseUIHandler());return}P&&(!o&&(Q||q)&&L.preventDefault(),!o&&q&&x?.(L))},onKeyUp(L){if(!t){if(R_(L),R?.(L),L.target===L.currentTarget&&o&&m&&hE(L.currentTarget)&&L.key===" "){L.preventDefault();return}
148L.baseUIHandlerPrevented||L.target===L.currentTarget&&!o&&!m&&L.key===" "&&x?.(L)}},onPointerDown(L){if(t){L.preventDefault();return}I?.(L)}},o?{type:"button"}:{role:"button"},p,k)},[t,p,m,o]),y=gt(S=>{l.current=S,v()});return{getButtonProps:g,buttonRef:y}}function hE(e){return sr(e)&&e.tagName==="BUTTON"}function xoe(e){return!!(e?.tagName==="A"&&e?.href)}let kw=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=N1.startingStyle]="startingStyle",e[e.endingStyle=N1.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e.side="data-side",e.align="data-align",e})({}),A6=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const woe={[A6.popupOpen]:""},Coe={[A6.popupOpen]:"",[A6.pressed]:""},Toe={[kw.open]:""},Roe={[kw.closed]:""},Ooe={[kw.anchorHidden]:""},Aoe={open(e){return e?woe:null}},koe={open(e){return e?Coe:null}},Nw={open(e){return e?Toe:Roe},anchorHidden(e){return e?Ooe:null}},Noe={...koe,...ooe,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":""}:null};function Ioe(e,t){return e??t}const Moe=A.createContext(void 0);function Doe(){return A.useContext(Moe)}const _N=A.createContext(void 0);function Iw(e){const t=A.useContext(_N);if(t===void 0&&!e)throw new Error(Tu(21));return t}const SN=A.forwardRef(function(t,n){const r=Ru(),{buttonRef:o,getButtonProps:s}=Aw({native:!1}),l=am(n,o);function f(p){r.state.setOpen(!1,fn(Qre,p.nativeEvent,p.currentTarget))}const m=s({onClick:f});return C.jsx("span",{ref:l,...m,"aria-label":"Dismiss",tabIndex:void 0,style:Ak})}),Loe=A.forwardRef(function(t,n){const{render:r,className:o,disabled:s=!1,id:l,style:f,...m}=t,{state:p,disabled:v,setTouched:g,setFocused:y,validationMode:S,validation:x}=C2(),{labelId:w}=vN(),R=Doe(),I=!!Iw(!0),k=Ru(),{filteredItems:L}=xm(),H=fN(),M=Ow(),j=Be(k,Ve.required),K=Be(k,Ve.disabled),P=Be(k,Ve.readOnly),q=Be(k,Ve.name),Q=Be(k,Ve.form),$=Be(k,Ve.selectionMode),W=Be(k,Ve.autoHighlight),G=Be(k,Ve.inputProps),J=Be(k,Ve.triggerProps),V=Be(k,Ve.open),B=Be(k,Ve.mounted),ee=Be(k,Ve.selectedValue),ge=Be(k,Ve.popupSide),ve=Be(k,Ve.positionerElement),Y=Be(k,Ve.id),oe=Be(k,Ve.inline),de=Be(k,Ve.modal),me=!!W,ke=B&&ve?ge:null,Me=v||K||s,We=L.length===0,Le=I||oe,$e=!Le||de,an=mN(l??(Le?void 0:Y)),dr=Ioe(w,void 0),ze=I?Pp:p,[ct,_t]=A.useState(null),et=A.useRef(!1),Je=A.useRef(null),Ke=A.useRef(!1),Ze=$==="none"&&!I,Ye=gt(le=>{const we=I||k.state.inline;we&&!k.state.hasInputValue&&k.state.setInputValue("",fn(cl)),k.update({inputElement:le,inputInsidePopup:we,inputOwnsFormValue:Ze})}),Mt=I||!x?m:x.getValidationProps(m),Gt={...ze,open:V,disabled:Me,readOnly:P,popupSide:ke,listEmpty:We};function Ut(le){if(!R)return;let we;const{highlightedChipIndex:Re}=R,Pe=R.chipsRef.current.length,At=M==="rtl",mn=At?"ArrowRight":"ArrowLeft",kt=At?"ArrowLeft":"ArrowRight";if(Re!==void 0){if(le.key===mn)le.preventDefault(),Re>0?we=Re-1:we=void 0;else if(le.key===kt)le.preventDefault(),Re<Pe-1?we=Re+1:we=void 0;else if(le.key==="Backspace"||le.key==="Delete"){le.preventDefault();const yt=Re>=ee.length-1?ee.length-2:Re;we=yt>=0?yt:void 0,k.state.setIndices({activeIndex:null,selectedIndex:null,type:"keyboard"})}return we}return le.key===mn&&(le.currentTarget.selectionStart??0)===0&&ee.length>0?(le.preventDefault(),we=Pe>0?Pe-1:void 0):le.key==="Backspace"&&le.currentTarget.value===""&&ee.length>0&&(k.state.setIndices({activeIndex:null,selectedIndex:null,type:"keyboard"}),le.preventDefault()),we}const Bt=rf("input",t,{state:Gt,ref:[n,k.state.inputRef,Ye],props:[G,J,{type:"text",value:t.value??ct??H,"aria-readonly":P||void 0,"aria-required":j||void 0,"aria-labelledby":dr,disabled:Me,readOnly:P,required:$==="none"?j:void 0,form:Q,...Ze&&q&&{name:q},id:an,onFocus(){if(y(!0),!oe||!Ke.current)return;Ke.current=!1;const le=Je.current;le==null||!Object.hasOwn(k.state.valuesRef.current,le)||k.state.setIndices({activeIndex:le})},onBlur(){g(!0),y(!1);const le=k.state.activeIndex;if(oe&&le!==null&&W!=="always"&&(Je.current=le,Ke.current=!0,k.state.setIndices({activeIndex:null})),S==="onBlur"){const we=$==="none"?H:ee;x.commit(we)}},onCompositionStart(le){E_||(et.current=!0,_t(le.currentTarget.value))},onCompositionEnd(le){et.current=!1;const we=le.currentTarget.value;_t(null),k.state.setInputValue(we,fn(Lp,le.nativeEvent))},onChange(le){const we=le.nativeEvent.inputType,Re=!we||we==="insertReplacementText",Pe=et.current||!Re;if(et.current){const yt=le.currentTarget.value;
148_t(yt),yt===""&&!k.state.openOnInputClick&&!k.state.inputInsidePopup&&k.state.setOpen(!1,fn(uu,le.nativeEvent));const at=yt.trim(),Wt=me&&at!=="";!P&&!Me&&at&&Pe&&(k.state.setOpen(!0,fn(Lp,le.nativeEvent)),me||k.state.setIndices({activeIndex:null,selectedIndex:null,type:k.state.keyboardActiveRef.current?"keyboard":"pointer"})),V&&k.state.activeIndex!==null&&!Wt&&k.state.setIndices({activeIndex:null,selectedIndex:null,type:k.state.keyboardActiveRef.current?"keyboard":"pointer"});return}k.state.setInputValue(le.currentTarget.value,fn(Lp,le.nativeEvent));const At=le.currentTarget.value==="",mn=fn(uu,le.nativeEvent);At&&!k.state.inputInsidePopup&&($==="single"&&k.state.setSelectedValue(null,mn),k.state.openOnInputClick||k.state.setOpen(!1,mn));const kt=le.currentTarget.value.trim();!P&&!Me&&kt&&Pe&&(k.state.setOpen(!0,fn(Lp,le.nativeEvent)),me||k.state.setIndices({activeIndex:null,selectedIndex:null,type:k.state.keyboardActiveRef.current?"keyboard":"pointer"})),V&&k.state.activeIndex!==null&&!me&&k.state.setIndices({activeIndex:null,selectedIndex:null,type:k.state.keyboardActiveRef.current?"keyboard":"pointer"})},onKeyDown(le){if(Me||P||le.ctrlKey||le.shiftKey||le.altKey||le.metaKey)return;k.state.keyboardActiveRef.current=!0;const we=le.currentTarget,Re=we.scrollWidth-we.clientWidth,Pe=M==="rtl";if(le.key==="Home"){ao(le);const kt=V9&&Pe?we.value.length:0;we.setSelectionRange(kt,kt),we.scrollLeft=0;return}if(le.key==="End"){ao(le);const kt=V9&&Pe?0:we.value.length;we.setSelectionRange(kt,kt),we.scrollLeft=Pe?-Re:Re;return}if(!B&&le.key==="Escape"){const kt=$==="multiple"&&Array.isArray(ee)?ee.length===0:ee===null,yt=fn(Uk,le.nativeEvent),at=$==="multiple"?[]:null;k.state.setInputValue("",yt),k.state.setSelectedValue(at,yt),!kt&&!k.state.inline&&!yt.isPropagationAllowed&&le.stopPropagation();return}if(R&&le.key==="Backspace"&&we.value===""&&R.highlightedChipIndex===void 0&&Array.isArray(ee)&&ee.length>0){const kt=R.chipsRef.current.length,yt=kt>0?kt-1:ee.length-1,at=ee.filter((Wt,kn)=>kn!==yt);k.state.setIndices({activeIndex:null,selectedIndex:null,type:k.state.keyboardActiveRef.current?"keyboard":"pointer"}),k.state.setSelectedValue(at,fn(cl,le.nativeEvent));return}const At=R?.highlightedChipIndex!==void 0,mn=Ut(le);if(R?.setHighlightedChipIndex(mn),mn!==void 0?R?.chipsRef.current[mn]?.focus():At&&k.state.inputRef.current?.focus(),le.which!==229&&le.key==="Enter"&&V){const kt=k.state.activeIndex,yt=le.nativeEvent;if(kt===null){if(oe)return;k.state.setOpen(!1,fn(cl,yt));return}ao(le);const at=k.state.listRef.current[kt];at&&(k.state.selectionEventRef.current=yt,at.click(),k.state.selectionEventRef.current=null)}},onPointerMove(){k.state.keyboardActiveRef.current=!1},onPointerDown(){k.state.keyboardActiveRef.current=!1}},Mt],stateAttributesMapping:Noe}),Oe=I?C.jsx(pN.Provider,{value:hN,children:Bt}):Bt;return C.jsxs(A.Fragment,{children:[V&&$e&&C.jsx(SN,{ref:k.state.startDismissRef}),Oe]})}),Poe={...Cw,...Aoe},Foe=A.forwardRef(function(t,n){const{render:r,className:o,disabled:s=!1,nativeButton:l=!0,keepMounted:f=!1,style:m,...p}=t,{disabled:v}=C2(),g=Ru(),y=Be(g,Ve.selectionMode),S=Be(g,Ve.disabled),x=Be(g,Ve.readOnly),w=Be(g,Ve.open),R=Be(g,Ve.selectedValue),T=Be(g,Ve.hasSelectionChips),I=fN();let k=!1;y==="none"?k=I!=="":y==="single"?k=R!=null:k=T;const L=v||S||s,{buttonRef:H,getButtonProps:M}=Aw({native:l,disabled:L}),{mounted:j,transitionStatus:K,setMounted:P}=oN(k),q={disabled:L,visible:k,open:w,transitionStatus:K};Tw({open:k,ref:g.state.clearRef,onComplete(){k||P(!1)}});const Q=rf("button",t,{state:q,ref:[n,H,g.state.clearRef],props:[{tabIndex:-1,children:"x",onMouseDown(W){W.preventDefault()},onClick(W){if(L||x)return;const G=g.state.keyboardActiveRef;g.state.setInputValue("",fn(z9,W.nativeEvent)),y!=="none"?(g.state.setSelectedValue(Array.isArray(R)?[]:null,fn(z9,W.nativeEvent)),g.state.setIndices({activeIndex:null,selectedIndex:null,type:G.current?"keyboard":"pointer"})):g.state.setIndices({activeIndex:null,type:G.current?"keyboard":"pointer"}),g.state.inputRef.current?.focus()}},p,M],stateAttributesMapping:Poe});return f||j?Q:null}),joe=A.createContext(null);function Uoe(){return A.useContext(joe)}function Boe(e){const{children:t}=e,{filteredItems:n}=xm(),r=Uoe(),o=r?r.items:n;return o?C.jsx(A.Fragment,{children:o.map(t)}):null}const EN=A.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function Voe(){return A.useContext(EN)}function Hoe(e){const{children:t,elementsRef:n,labelsRef:r,onMapChange:o}=e,s=gt(o),l=A.useRef(0),f=Ma(qoe).current,m=Ma(zoe).current,[p,v]=A.useState(0),g=A.useRef(p),y=gt((T,I)=>{m.set(T,I??null),g.current+=1,v(g.current)}),S=gt(T=>{m.delete(T),g.current+=1,v(g.current)}),x=A.useMemo(()=>{const T=new Map;return Array.from(m.keys()).filter(k=>k.isConnected).sort(Goe).forEach((k,L)=>{const H=m.get(k)??{};T.set(k,{...H,index:L})}),T},[m,p]);st(()=>{if(typeof MutationObserver!="function"||x.size===0)return;const T=new MutationObserver(I=>{const k=new Set,L=H=>k.has(H)?k.delete(H):k.add(H);I.forEach(H=>
148{H.removedNodes.forEach(L),H.addedNodes.forEach(L)}),k.size===0&&(g.current+=1,v(g.current))});return x.forEach((I,k)=>{k.parentElement&&T.observe(k.parentElement,{childList:!0})}),()=>{T.disconnect()}},[x]),st(()=>{g.current===p&&(n.current.length!==x.size&&(n.current.length=x.size),r&&r.current.length!==x.size&&(r.current.length=x.size),l.current=x.size),s(x)},[s,x,n,r,p]),st(()=>()=>{n.current=[]},[n]),st(()=>()=>{r&&(r.current=[])},[r]);const w=gt(T=>(f.add(T),()=>{f.delete(T)}));st(()=>{f.forEach(T=>T(x))},[f,x]);const R=A.useMemo(()=>({register:y,unregister:S,subscribeMapChange:w,elementsRef:n,labelsRef:r,nextIndexRef:l}),[y,S,w,n,r,l]);return C.jsx(EN.Provider,{value:R,children:t})}function zoe(){return new Map}function qoe(){return new Set}function Goe(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const $oe=A.forwardRef(function(t,n){var r;const{render:o,className:s,style:l,children:f,...m}=t,p=Ru(),v=Rw(),g=!!Iw(!0),{filteredItems:y,hasItems:S}=xm(),x=Be(p,Ve.selectionMode),w=Be(p,Ve.grid),R=Be(p,Ve.popupProps),T=Be(p,Ve.virtualized),I=x==="multiple",k=y.length===0,L=gt(q=>{p.set("positionerElement",q)}),H=gt(q=>{p.set("listElement",q)}),M=A.useMemo(()=>typeof f=="function"?r||(r=C.jsx(Boe,{children:f})):f,[f]),j={empty:k},K=v.useState("floatingId"),P=rf("div",t,{state:j,ref:[n,H,g?null:L],props:[R,{children:M,tabIndex:-1,id:K,role:w?"grid":"listbox","aria-multiselectable":I?"true":void 0,onKeyDown(q){if(!(p.state.disabled||p.state.readOnly)&&q.key==="Enter"){const Q=p.state.activeIndex;if(Q==null)return;ao(q);const $=q.nativeEvent,W=p.state.listRef.current[Q];W&&(p.state.selectionEventRef.current=$,W.click(),p.state.selectionEventRef.current=null)}},onKeyDownCapture(){p.state.keyboardActiveRef.current=!0},onPointerMoveCapture(){p.state.keyboardActiveRef.current=!1}},m]});return T?P:C.jsx(Hoe,{elementsRef:p.state.listRef,labelsRef:S?void 0:p.state.labelsRef,children:P})}),xN=A.createContext(void 0);function Qoe(){const e=A.useContext(xN);if(e===void 0)throw new Error(Tu(20));return e}const Woe=A.forwardRef(function(t,n){const{keepMounted:r=!1,...o}=t,s=Ru(),l=Be(s,Ve.mounted),f=Be(s,Ve.forceMounted);return l||r||f?C.jsx(xN.Provider,{value:r,children:C.jsx(Oie,{ref:n,...o})}):null}),Yoe={...Nw,...Cw},Koe=A.forwardRef(function(t,n){const{render:r,className:o,style:s,...l}=t,f=Ru(),m=Be(f,Ve.open),p=Be(f,Ve.mounted),v=Be(f,Ve.transitionStatus);return rf("div",t,{state:{open:m,transitionStatus:v},ref:n,stateAttributesMapping:Yoe,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},l]})});function Xoe(e){return pw(19)?e:e?"true":void 0}const Zoe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:l,elements:f,middlewareData:m}=t,{element:p,padding:v=0,offsetParent:g="real"}=El(e,t)||{};if(p==null)return{};const y=Xx(v),S={x:n,y:r},x=l2(o),w=s2(x),R=await l.getDimensions(p),T=x==="y",I=T?"top":"left",k=T?"bottom":"right",L=T?"clientHeight":"clientWidth",H=s.reference[w]+s.reference[x]-S[x]-s.floating[w],M=S[x]-s.reference[x],j=g==="real"?await l.getOffsetParent?.(p):f.floating;let K=f.floating[L]||s.floating[w];(!K||!await l.isElement?.(j))&&(K=f.floating[L]||s.floating[w]);const P=H/2-M/2,q=K/2-R[w]/2-1,Q=Math.min(y[I],q),$=Math.min(y[k],q),W=Q,G=K-R[w]-$,J=K/2-R[w]/2+P,V=v_(W,J,G),B=!m.arrow&&Cu(o)!=null&&J!==V&&s.reference[w]/2-(J<W?Q:$)-R[w]/2<0,ee=B?J<W?J-W:J-G:0;return{[x]:S[x]+ee,data:{[x]:V,centerOffset:J-V-ee,...B&&{alignmentOffset:ee}},reset:B}}}),Joe=(e,t)=>({...Zoe(e),options:[e,t]}),eae={name:"hide",async fn(e){const{width:t,height:n,x:r,y:o}=e.rects.reference,s=t===0&&n===0&&r===0&&o===0;return{data:{referenceHidden:(await vA().fn(e)).data?.referenceHidden||s}}}},tae={sideX:"left",sideY:"top"};function wN(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function o8(e,t,n){const{rects:r,placement:o}=e;return{side:wN(t,Xo(o),n),align:Cu(o)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function nae(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:l=0,collisionBoundary:f,collisionPadding:m=5,sticky:p=!1,arrowPadding:v=5,disableAnchorTracking:g=!1,inline:y,keepMounted:S=!1,floatingRootContext:x,mounted:w,collisionAvoidance:R,shiftCrossAxis:T=!1,nodeId:I,adaptiveOrigin:k,lazyFlip:L=!1,externalTree:H}=e,[M,j]=A.useState(null);!w&&M!==null&&j(null);const K=R.side||"flip",P=R.align||"flip",q=R.fallbackAxisSide||"end",Q=typeof t=="function"?t:void 0,$=gt(Q),W=Q?$:t,G=Yo(t),J=Yo(w),B=Ow()==="rtl",ee=M||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":B?"left":"right","inline-start":B?"right":"left"}[r],ge=s==="center"?ee:`${ee}-${s}`;let ve=m;const Y=1,oe=r==="bottom"?Y:0,de=r==="top"?Y:0,me=r==="right"?Y:0,ke=r==="left"?Y:0;typeof ve=="number"?ve={top:ve+oe,right:ve+ke,bottom:ve+de,left:ve+me}:ve&&(ve={top:(ve.top||0)+oe,right:(ve.right||0)+ke,bottom:(ve.bottom||0)+de,left:(ve.left||0)+me});const Me={boundary:f==="clipping-ancestors"?"clippingAncestors":f,padding:ve},We=A.useRef(null),Le=Yo(o),$e=Yo(l),an=typeof o!="function"?o:0,dr=typeof l!="function"?l:0,ze=[];y&&ze.push(y),ze.push(fA(pt=>{const en=o8(pt,r,B),jn=typeof Le.current=="function"?Le.current(en):Le.current,Cn=typeof $e.current=="function"?$e.current(en):$e.current;return{mainAxis:jn,crossAxis:Cn,alignmentAxis:Cn}},[an,dr,B,r]));const ct=P==="none"&&K!=="shift",_t=!ct&&(p||T||K==="shift"),et=K==="none"?null:pA({...Me,padding:{top:ve.top+Y,right:ve.right+Y,bottom:ve.bottom+Y,left:ve.left+Y},mainAxis:!T&&K==="flip",crossAxis:P==="flip"?"alignment":!1,fallbackAxisSideDirection:q}),Je=ct?null:dA(pt=>{const en=ar(pt.elements.floating).documentElement;return{...Me,rootBoundary:T?{x:0,y:0,width:en.clientWidth,height:en.clientHeight}:void 0,mainAxis:P!=="none",crossAxis:_t,limiter:p||T?void 0:hA(jn=>{if(!We.current)return{};const{width:Cn,height:Jn}=We.current.getBoundingClientRect(),sn=Ra(Xo(jn.placement)),tt=sn==="y"?Cn:Jn,ea=sn==="y"?ve.left+ve.right:ve.top+ve.bottom;return{offset:tt/2+ea/2}})}},[Me,p,T,ve,P]);K==="shift"||P==="shift"||s==="center"?ze.push(Je,et):ze.push(et,Je),ze.push(mA({...Me,apply({elements:{floating:pt},availableWidth:en,availableHeight:jn,rects:Cn}
148){if(!J.current)return;const Jn=pt.style;Jn.setProperty("--available-width",`${en}px`),Jn.setProperty("--available-height",`${jn}px`);const sn=oi(pt).devicePixelRatio||1,{x:tt,y:ea,width:uo,height:Ao}=Cn.reference,Un=(Math.round((tt+uo)*sn)-Math.round(tt*sn))/sn,wl=(Math.round((ea+Ao)*sn)-Math.round(ea*sn))/sn;Jn.setProperty("--anchor-width",`${Un}px`),Jn.setProperty("--anchor-height",`${wl}px`)}}),Joe(pt=>({element:We.current||ar(pt.elements.floating).createElement("div"),padding:v,offsetParent:"floating"}),[v]),{name:"transformOrigin",fn(pt){const{elements:en,middlewareData:jn,placement:Cn,rects:Jn,y:sn}=pt,tt=Xo(Cn),ea=Ra(tt),uo=We.current,Ao=jn.arrow?.x||0,Un=jn.arrow?.y||0,wl=uo?.clientWidth||0,Bn=uo?.clientHeight||0,ta=Ao+wl/2,ai=Un+Bn/2,er=Math.abs(jn.shift?.y||0),Pa=Jn.reference.height/2,ko=typeof o=="function"?o(o8(pt,r,B)):o,na=er>ko,Bi={top:`${ta}px calc(100% + ${ko}px)`,bottom:`${ta}px ${-ko}px`,left:`calc(100% + ${ko}px) ${ai}px`,right:`${-ko}px ${ai}px`}[tt],Nn=`${ta}px ${Jn.reference.y+Pa-sn}px`;return en.floating.style.setProperty("--transform-origin",_t&&ea==="y"&&na?Nn:Bi),{}}},eae,k),st(()=>{!w&&x&&x.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[w,x]);const Ke=A.useMemo(()=>({elementResize:!g&&typeof ResizeObserver<"u",layoutShift:!g&&typeof IntersectionObserver<"u"}),[g]),{refs:Ze,elements:Ye,x:Mt,y:Gt,middlewareData:Ut,update:Bt,placement:Oe,context:le,isPositioned:we,floatingStyles:Re}=Wie({rootContext:x,open:S?w:void 0,placement:ge,middleware:ze,strategy:n,whileElementsMounted:S?void 0:(...pt)=>p6(...pt,Ke),nodeId:I,externalTree:H}),{sideX:Pe,sideY:At}=Ut.adaptiveOrigin||tae,mn=we?n:"fixed",kt=A.useMemo(()=>{const pt=k?{position:mn,[Pe]:Mt,[At]:Gt}:{position:mn,...Re};return we||(pt.opacity=0),pt},[k,mn,Pe,Mt,At,Gt,Re,we]),yt=A.useRef(null);st(()=>{if(!w)return;const pt=G.current,en=typeof pt=="function"?pt():pt,Cn=(a8(en)?en.current:en)||null||null;Cn!==yt.current&&(Ze.setPositionReference(Cn),yt.current=Cn)},[w,Ze,W,G]),A.useEffect(()=>{if(!w)return;const pt=G.current;typeof pt!="function"&&a8(pt)&&pt.current!==yt.current&&(Ze.setPositionReference(pt.current),yt.current=pt.current)},[w,Ze,W,G]),A.useEffect(()=>{if(S&&w&&Ye.domReference&&Ye.floating)return p6(Ye.domReference,Ye.floating,Bt,Ke)},[S,w,Ye,Bt,Ke]);const at=Xo(Oe),Wt=wN(r,at,B),kn=Cu(Oe)||"center",Qn=!!Ut.hide?.referenceHidden;st(()=>{L&&w&&we&&j(at)},[L,w,we,at]);const jr=A.useMemo(()=>({position:"absolute",top:Ut.arrow?.y,left:Ut.arrow?.x}),[Ut.arrow]),Ar=Ut.arrow?.centerOffset!==0;return A.useMemo(()=>({positionerStyles:kt,arrowStyles:jr,arrowRef:We,arrowUncentered:Ar,side:Wt,align:kn,physicalSide:at,anchorHidden:Qn,refs:Ze,context:le,isPositioned:we,update:Bt}),[kt,jr,We,Ar,Wt,kn,at,Qn,Ze,le,we,Bt])}function a8(e){return e!=null&&"current"in e}const rae=A.forwardRef(function(t,n){const{cutout:r,...o}=t;let s;if(r){const l=r.getBoundingClientRect();s=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${l.left}px ${l.top}px,${l.left}px ${l.bottom}px,${l.right}px ${l.bottom}px,${l.right}px ${l.top}px,${l.left}px ${l.top}px)`}return C.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:s}})});function CN(e){return e==="starting"?Eie:To}function iae(e,t,{styles:n,transitionStatus:r,props:o,refs:s,hidden:l,inert:f=!1}){const m={...n};return f&&(m.pointerEvents="none"),rf("div",e,{state:t,ref:s,props:[{role:"presentation",hidden:l,style:m},CN(r),o],stateAttributesMapping:Nw})}let s8={},l8={},u8="";function oae(e){if(typeof document>"u")return!1;const t=ar(e);return oi(t).innerWidth-t.documentElement.clientWidth>0}function aae(e){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const n=ar(e),r=n.documentElement,o=n.body,s=tf(r)?r:o,l=s.style.overflowY,f=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",s.style.overflowY="scroll";const m=s.offsetWidth;s.style.overflowY="hidden";const p=s.offsetWidth;return s.style.overflowY=l,r.style.scrollbarGutter=f,m===p}function sae(e){const t=ar(e),n=t.documentElement,r=t.body,o=tf(n)?n:r,s={overflowY:o.style.overflowY,overflowX:o.style.overflowX};return Object.assign(o.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(o.style,s)}}function lae(e){const t=ar(e),n=t.documentElement,r=t.body,o=oi(n);let s=0,l=0,f=!1;const m=hl.create();
148if(Dk&&(o.visualViewport?.scale??1)!==1)return()=>{};function p(){const S=o.getComputedStyle(n),x=o.getComputedStyle(r),T=(S.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";s=n.scrollTop,l=n.scrollLeft,s8={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},u8=n.style.scrollBehavior,l8={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const I=n.scrollHeight>n.clientHeight,k=n.scrollWidth>n.clientWidth,L=S.overflowY==="scroll"||x.overflowY==="scroll",H=S.overflowX==="scroll"||x.overflowX==="scroll",M=Math.max(0,o.innerWidth-r.clientWidth),j=Math.max(0,o.innerHeight-r.clientHeight),K=parseFloat(x.marginTop)+parseFloat(x.marginBottom),P=parseFloat(x.marginLeft)+parseFloat(x.marginRight),q=tf(n)?n:r;if(f=aae(e),f){n.style.scrollbarGutter=T,q.style.overflowY="hidden",q.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:T,overflowY:"hidden",overflowX:"hidden"}),(I||L)&&(n.style.overflowY="scroll"),(k||H)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:K||j?`calc(100dvh - ${K+j}px)`:"100dvh",width:P||M?`calc(100vw - ${P+M}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=s,r.scrollLeft=l,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function v(){Object.assign(n.style,s8),Object.assign(r.style,l8),f||(n.scrollTop=s,n.scrollLeft=l,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=u8)}function g(){v(),m.request(p)}p();const y=qn(o,"resize",g);return()=>{m.cancel(),v(),typeof o.removeEventListener=="function"&&y()}}class uae{lockCount=0;restore=null;timeoutLock=Ld.create();timeoutUnlock=Ld.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const r=ar(t).documentElement,o=oi(r).getComputedStyle(r).overflowY;if(o==="hidden"||o==="clip"){this.restore=Xn;return}const s=Lk||!oae(t);this.restore=s?sae(t):lae(t)}}const cae=new uae;function fae(e=!0,t=null){st(()=>{if(e)return cae.acquire(t)},[e,t])}const dae=20;function hae(e,t,n,r){const[o,s]=A.useState(!1);st(()=>{if(!e||!t||n==null){s(!1);return}const l=ar(n).documentElement.clientWidth,f=n.offsetWidth;s(l>0&&f>0&&f>=l-dae)},[e,t,n]),fae(e&&(!t||o),r)}const pae=A.forwardRef(function(t,n){const{render:r,className:o,anchor:s,positionMethod:l="absolute",side:f="bottom",align:m="center",sideOffset:p=0,alignOffset:v=0,collisionBoundary:g="clipping-ancestors",collisionPadding:y=5,arrowPadding:S=5,sticky:x=!1,disableAnchorTracking:w=!1,collisionAvoidance:R=wie,style:T,...I}=t,k=Ru(),{filteredItems:L}=xm(),H=Rw(),M=Qoe(),j=Be(k,Ve.modal),K=Be(k,Ve.open),P=Be(k,Ve.mounted),q=Be(k,Ve.openMethod),Q=Be(k,Ve.positionerElement),$=Be(k,Ve.triggerElement),W=Be(k,Ve.inputElement),G=Be(k,Ve.inputGroupElement),J=Be(k,Ve.inputInsidePopup),V=Be(k,Ve.transitionStatus),B=L.length===0,ge=nae({anchor:s??(J?$:G??W),floatingRootContext:H,positionMethod:l,mounted:P,side:f,sideOffset:p,align:m,alignOffset:v,arrowPadding:S,collisionBoundary:g,collisionPadding:y,sticky:x,disableAnchorTracking:w,keepMounted:M,collisionAvoidance:R,lazyFlip:!0});hae(K&&j,q==="touch",Q,$);const ve={open:K,side:ge.side,align:ge.align,anchorHidden:ge.anchorHidden,empty:B};st(()=>{k.set("popupSide",ge.side)},[k,ge.side]);const Y=gt(de=>{k.set("positionerElement",de)}),oe=iae(t,ve,{styles:ge.positionerStyles,transitionStatus:V,props:I,refs:[n,Y],hidden:!P,inert:!K});return C.jsxs(_N.Provider,{value:ge,children:[P&&j&&C.jsx(rae,{inert:Xoe(!K),cutout:G??W??$}),oe]})}),mae={...Nw,...Cw},vae=A.forwardRef(function(t,n){const{render:r,className:o,style:s,initialFocus:l,finalFocus:f,...m}=t,p=Ru(),v=Iw(),g=Rw(),{filteredItems:y}=xm(),S=Be(p,Ve.mounted),x=Be(p,Ve.open),w=Be(p,Ve.openMethod),R=Be(p,Ve.transitionStatus),T=Be(p,Ve.inputInsidePopup),I=Be(p,Ve.inputElement),k=Be(p,Ve.modal),L=y.length===0;Tw({open:x,ref:p.state.popupRef,onComplete(){x&&p.state.onOpenChangeComplete(!0)}});const H={open:x,side:v.side,align:v.align,anchorHidden:v.anchorHidden,transitionStatus:R,empty:L},M=rf("div",t,{state:H,ref:[n,p.state.popupRef],props:[{role:T?"dialog":"presentation",tabIndex:-1,onFocus(Q){const $=ka(Q.nativeEvent);w!=="touch"&&(rn(p.state.listElement,$)||$===Q.currentTarget)&&p.state.inputRef.current?.focus()}},CN(R),m],stateAttributesMapping:mae}),K=l===void 0?T?Q=>Q==="touch"?p.state.popupRef.current:I:!1:l;let P;f!=null?P=f:P=T?void 0:!1;const q=!T||k;return C.jsx(Lie,{context:g,disabled:!S,modal:q,openInteractionType:w,initialFocus:K,returnFocus:P,getInsideElements:()=>[p.state.startDismissRef.current,p.state.endDismissRef.current],children:C.jsxs(A.Fragment,{children:[M,q&&C.jsx(SN,{ref:p.state.endDismissRef})]})})});let TN=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function gae(e={}){const{label:t,metadata:n,textRef:r,indexGuessBehavior:o,index:s}=e,{register:l,unregister:f,subscribeMapChange:m,elementsRef:p,labelsRef:v,nextIndexRef:g}=Voe(),y=A.useRef(-1),[S,x]=A.useState(s??(o===TN.GuessFromOrder?()=>{if(y.current===-1){const T=g.current;g.current+=1,y.current=T}return y.current}:-1)),w=A.useRef(null),R=A.useCallback(T=>{if(w.current=T,S!==-1&&T!==null&&(p.current[S]=T,v)){const I=t!==void 0;v.current[S]=I?t:r?.current?.textContent??T.textContent}},[S,p,v,t,r]);return st(()=>{if(s!=null)return;const T=w.current;
148if(T)return l(T,n),()=>{f(T)}},[s,l,f,n]),st(()=>{if(s==null)return m(T=>{const I=w.current?T.get(w.current)?.index:null;I!=null&&x(I)})},[s,m,x]),A.useMemo(()=>({ref:R,index:S}),[S,R])}const yae=A.createContext(void 0),bae=A.createContext(!1);function _ae(){return A.useContext(bae)}const Sae=A.memo(A.forwardRef(function(t,n){const{render:r,className:o,style:s,value:l=null,index:f,disabled:m=!1,nativeButton:p=!1,...v}=t,g=A.useRef(!1),y=A.useRef(null),S=gae({index:f,textRef:y,indexGuessBehavior:TN.GuessFromOrder}),x=Ru(),w=_ae(),{flatFilteredItems:R,hasItems:T}=xm(),I=Be(x,Ve.open),k=Be(x,Ve.selectionMode),L=Be(x,Ve.readOnly),H=Be(x,Ve.virtualized),M=Be(x,Ve.isItemEqualToValue),j=k!=="none",K=f??(H?R6(R,l,M):S.index),P=S.index!==-1,q=Be(x,Ve.id),Q=Be(x,Ve.isActive,K),$=Be(x,Ve.isSelected,l),W=Be(x,Ve.itemProps),G=A.useRef(null),J=q!=null&&P?`${q}-${K}`:void 0,V=$&&j;st(()=>{if(!(P&&(H||f!=null)))return;const ke=x.state.listRef.current;return ke[K]=G.current,()=>{delete ke[K]}},[P,H,K,f,x]),st(()=>{if(!P||T)return;const me=x.state.valuesRef.current;return me[K]=l,k!=="none"&&x.state.allValuesRef.current.push(l),()=>{delete me[K]}},[P,T,K,l,x,k]),st(()=>{if(!I){g.current=!1;return}if(!P||T)return;const me=x.state.selectedValue,ke=Array.isArray(me)?me[me.length-1]:me;Pd(l,ke,M)&&x.set("selectedIndex",K)},[P,T,I,x,K,l,M]);const{getButtonProps:B,buttonRef:ee}=Aw({disabled:m,focusableWhenDisabled:!0,native:p,composite:!0}),ge={disabled:m,selected:V,highlighted:Q};function ve(me){function ke(){x.state.handleSelection(me,l)}x.state.submitOnItemClick?(ef.flushSync(ke),x.state.requestSubmit()):ke()}const Y={id:J,role:w?"gridcell":"option","aria-selected":j?V:void 0,tabIndex:void 0,onPointerDownCapture(me){g.current=!0,me.preventDefault()},onMouseDown(me){me.preventDefault()},onClick(me){m||L||ve(me.nativeEvent)},onMouseUp(me){const ke=g.current;g.current=!1,!(m||L||me.button!==0||ke||!Q)&&ve(me.nativeEvent)}},oe=rf("div",t,{ref:[ee,n,S.ref,G],state:ge,props:[W,Y,v,B]}),de=A.useMemo(()=>({selected:V,textRef:y}),[V,y]);return C.jsx(yae.Provider,{value:de,children:oe})})),Eae=Sae,xae=Id` 149 fragment recentSearches on ShopContent { 150 recentSearches { 151 id 152 label 153 } 154 } 155 156 mutation clearRecentSearches { 157 clearRecentSearches { 158 result { 159 ... on ClearRecentSearchesResultError { 160 code 161 } 162 ... on ShopContent { 163 id 164 ...recentSearches 165 } 166 } 167 } 168 } 169`,Nc={"search-combobox-positioner":"style-module_search-combobox-positioner__RtDiG","search-combobox-popup":"style-module_search-combobox-popup__ymks2","reach-combobox-list":"style-module_reach-combobox-list__Kvgkq","search-dropdown-content":"style-module_search-dropdown-content__Hi68-","recent-searches-list":"style-module_recent-searches-list__ENVTi","recent-searches-list-item":"style-module_recent-searches-list-item__C7Cje","reach-combobox-option":"style-module_reach-combobox-option__ulqE0","search-dropdown-overlay":"style-module_search-dropdown-overlay__Rg6Pc"},wae=({isSmallScreen:e,recentSearches:t,onSelect:n})=>e?C.jsx(ht,{className:Nc["recent-searches-list"],"data-allow-touch-scroll":!0,children:C.jsx(c6,{as:"ul",spacing:1,mb:20.5,children:t.map(({id:r,label:o})=>C.jsx(dn,{setting:"body-small-fixed",my:0,children:C.jsx(Q1,{variant:"inherit",underline:"inverse",as:"button",onClick:()=>n(o),children:o})},r))})}):C.jsx($oe,{className:Nc["reach-combobox-list"],children:C.jsx(c6,{spacing:1,children:t.map(({id:r,label:o})=>C.jsx(Eae,{className:`${Nc["reach-combobox-option"]} ${Nc["recent-searches-list-item"]}`,value:o,onClick:()=>n(o),children:o},r))})}),Cae=({isSmallScreen:e,onClearHistory:t,onSelect:n,recentSearches:r})=>{const[o,s]=A.useState(r),[l]=gV(xae);return A.useEffect(()=>{s(r)},[r]),lP(o)?null:C.jsxs(ht,{py:1,px:1,"data-testid":"recent-searches",children:[C.jsxs(WO,{spacing:"auto",vAlign:"center",mb:1,children:[C.jsx(dn,{as:"span",setting:"title-xsmall",my:0,children:"Recent searches"}),C.jsx(dn,{as:"span",setting:"body-small-fixed",color:"blue-45",my:0,children:C.jsx(Q1,{variant:"inherit",underline:"inverse",as:"button",onClick:async()=>{await l(),s([]),t()},children:"Clear history"})})]}),C.jsx(wae,{isSmallScreen:e,onSelect:n,recentSearches:o})]})},Tae=({children:e})=>C.jsxs(Woe,{children:[C.jsx(Koe,{className:Nc["search-dropdown-overlay"]}),C.jsx(pae,{className:Nc["search-combobox-positioner"],style:{width:"var(--anchor-width)"},children:C.jsx(vae,{className:Nc["search-combobox-popup"],children:e})})]}),Rae=({isSmallScreen:e,children:t})=>e?C.jsx(C.Fragment,{children:t}):C.jsx(Tae,{children:t}),Oae=({isSmallScreen:e,onSelect:t,onClearHistory:n,recentSearches:r})=>C.jsx(Rae,{isSmallScreen:e,children:C.jsx(ht,{className:Nc["search-dropdown-content"],"data-testid":"search-dropdown",children:C.jsx(X6,{children:C.jsx(Cae,{isSmallScreen:e,onSelect:t,onClearHistory:n,recentSearches:r})})})}),Aae=({children:e,isOpen:t,isSmallScreen:n})=>
169n?C.jsx(uw,{ariaLabel:"Search items, brands, or styles",isOpen:t,bodyLock:"allow-touch",children:e}):C.jsx(C.Fragment,{children:e}),kae=Id` 170 query getRecentSearches { 171 shopContent { 172 id 173 recentSearches { 174 id 175 label 176 } 177 } 178 } 179`,Nae=()=>{const[e,t]=A.useState(!1),[n,r]=A.useState([]),[o,{called:s}]=mV(kae);A.useEffect(()=>{(async()=>{if(e&&!s){const{data:m}=await o();r(m?.shopContent?.recentSearches||[])}})()},[e,s,o]);const l=A.useCallback(()=>t(!0),[]);return{recentSearches:n,hasRecentSearches:n.length>0,triggerLoad:l}},fd={"search-bar-container":"style-module_search-bar-container__JrVRH","search-input-group":"style-module_search-input-group__PowQ8","search-input":"style-module_search-input__vmm-G","has-value":"style-module_has-value__fAZPr","search-icon-button":"style-module_search-icon-button__7ulpo","search-clear-button":"style-module_search-clear-button__Eq-tm","search-close-button":"style-module_search-close-button__Cn56p","search-dropdown":"style-module_search-dropdown__SAZFI"},Iae=Fi.bind(fd),c8="Search items, brands, or styles",f8="search",Mae=e=>{const t=Fn()?.location,n=Fn()?.stitchfix?.onSearch,r=typeof n=="function",o=t?.pathname===`/${f8}`;r&&o?n(e):t?.assign(`/${f8}?q=${encodeURIComponent(e)}`)},Dae=()=>new URLSearchParams(Fn()?.location.search).get("q"),Lae=({isOpen:e,isBelowDesktop:t,onClose:n,onSubmit:r})=>{const o=A.useRef(null),[s,l]=A.useState(!1),[f,m]=A.useState(()=>Dae()||""),v=Jc()==="sm",g=t&&!e,{recentSearches:y,hasRecentSearches:S,triggerLoad:x}=Nae();A.useEffect(()=>{t&&(e?(x(),o.current?.focus(),l(!0)):l(!1))},[t,e,x]);const w=A.useCallback(k=>{r(),Mae(k),m(k),l(!1),n()},[r,n]),R=A.useCallback(()=>{o.current&&o.current.focus()},[o]),T=()=>{x(),l(!0)},I=k=>{t&&e&&!k||l(k)};return C.jsx(Aae,{isOpen:e,isSmallScreen:v,children:C.jsx(boe,{open:s,onOpenChange:I,value:f,onValueChange:k=>m(k),mode:"inline",keepHighlight:!0,items:y,children:C.jsxs("div",{className:fd["search-bar-container"],style:{display:g?"none":""},children:[C.jsxs("form",{className:fd["search-input-group"],action:"",onSubmit:k=>{k.preventDefault(),w(f)},role:"search",children:[C.jsx(Loe,{"aria-label":c8,className:Iae("search-input",{"has-value":!!f}),placeholder:c8,ref:o,type:"search",autoFocus:t&&e,onFocus:T,...S?{}:{"aria-expanded":!1}}),C.jsx("span",{className:fd["search-icon-button"],children:C.jsx($1,{"data-testid":"search-button","aria-label":"execute search",onClick:()=>{f&&w(f)},children:C.jsx(XY,{purpose:"decorative"})})}),C.jsx(Foe,{className:fd["search-clear-button"],"aria-label":"clear search input",onClick:()=>{m(""),o?.current?.focus()},children:C.jsx(i2,{purpose:"decorative"})})]}),t&&C.jsx("span",{className:fd["search-close-button"],children:C.jsx(dn,{height:"standard",family:"medium",scale:"3",children:C.jsx(Q1,{as:"button",type:"button","aria-label":"close search input",onClick:n,underline:"inverse",variant:"inherit",children:"Cancel"})})}),s&&S&&C.jsx("div",{className:fd["search-dropdown"],children:C.jsx(Oae,{isSmallScreen:v,onSelect:w,onClearHistory:R,recentSearches:y})})]})})})},k6=({error:e,metadata:t})=>{_m.addError(e,t)},N6=50*1024,Pae=500,Qp=[];let O_=0;const Fae=e=>{let r=50;for(const[o,s]of[...e.entries()]){const l=String(o).length,f=s instanceof Blob?s.size:s.length;r+=l+115+f}return r},Mw=e=>typeof e=="string"?e.length:e instanceof Blob?e.size:e instanceof FormData?Fae(e):e instanceof URLSearchParams?e.toString().length:e instanceof ReadableStream?0:e.byteLength,jae=()=>{const e=window.fetch;window.fetch=(t,n)=>{const r=n?.keepalive,o=n?.body;if(!r||!o)return e(t,n);const s=Mw(o);return O_+=s,e(t,n).finally(()=>{O_-=s,RN()})}},Uae=({body:e,requestId:t,url:n,keepalive:r})=>{if(!r){ON({body:e,requestId:t,url:n,keepalive:r});return}const o=Mw(e);if(o>N6){k6({error:new Error(`Event is larger than ${N6} byte limit, and has been discarded`),metadata:{body:e,bytes:o,requestId:t}});return}Qp.push({bytes:o,body:e,requestId:t,url:n}),Qp.length>Pae&&k6({error:new Error("Event queue is above a safe size"),metadata:{length:Qp.length}}),RN()},RN=()=>{if(!Qp.length)return;const{bytes:e,body:t,requestId:n,url:r}=Qp[0];e+O_>N6||(Qp.shift(),ON({body:t,requestId:n,url:r,keepalive:!0}))},ON=({body:e,requestId:t,url:n,keepalive:r})=>{window.fetch(n,{body:e,credentials:"same-origin",headers:{"X-Request-Id":t},keepalive:r,method:"POST",mode:"same-origin"}).catch(o=>{const l=o.message.includes("keepalive")?"EventReporterKeepaliveError":"EventReporterNetworkError";o.name=l,k6({error:o,metadata:{body:e,bytes:Mw(e),requestId:t,bytesInFlight:O_}})})};let d8=!1;const Bae=()=>{d8||(jae(),d8=!0)},AN=({event:e,requestId:t,url:n})=>{Bae();const r=n||"/api/events_collector",o=t||Bx(e.source_app),s=e.event_request?.referrer||window.document.referrer,l=JSON.stringify({event:{client_timestamp:new Date(Date.now()).toISOString(),routing_key:null,...e,event_request:{full_url:window.location.href,referer:s}}}),f=e.action_type==="click"||e.action_type==="submit"||e.action_type==="event";Uae({body:l,requestId:o,url:r,keepalive:f})},Vae=[{canonicalName:"shop_index",path:/^\/shop$/},{canonicalName:"pdp",path:/^\/my-items\/shop\/items\/(\d+)$/},{canonicalName:"search_results",path:/^\/search$/}],kN=e=>{if(e)return e;const n=(r2()?.location?.pathname??"").replace(/\/$/,"");return Vae.find(({path:o})=>
179n.match(o))?.canonicalName??"other"},NN={source_app:"knit"},Hae=e=>{const n={action_name:"search_icon_selected",action_type:"click",canonical_name:kN(e),event_name:"search_results"};AN({event:{...n,...NN}})},zae=e=>{const n={action_name:"search_submit",action_type:"click",canonical_name:kN(e),event_name:"search_results"};AN({event:{...n,...NN}})},qae={"search-icon-container":"style-module_search-icon-container__CSjnu"},Gae=({activePageCanonical:e,isPrimaryNavVisible:t})=>{const[n,r]=A.useState(!1),o=EY(768);A.useEffect(()=>r(!1),[t,o]);const{reportSelectEvent:s}=ji(),l=()=>{zae(e),s({schema:"select",name:"navbar",action_name:"submit_search_query"})};return C.jsxs(C.Fragment,{children:[o&&C.jsx("div",{className:qae["search-icon-container"],children:C.jsx(fre,{onClick:()=>{n||Hae(e),r(!n)}})}),C.jsx(Lae,{onClose:()=>r(!1),onSubmit:l,isOpen:n,isBelowDesktop:o})]})},$ae=(e,t)=>{const[n,r]=A.useState(0);return A.useEffect(()=>{const o=Fn(),s=l=>{r(Math.max(0,Math.floor(l)))};return o&&(o.stitchfix=o.stitchfix||{},o.stitchfix.AndroidAPI=o.stitchfix.AndroidAPI||{},o.stitchfix.AndroidAPI.updateStylistConnectUnreadCount=s),e&&t&&wne(t),()=>{const l=Fn();l?.stitchfix?.AndroidAPI&&delete l.stitchfix.AndroidAPI.updateStylistConnectUnreadCount}},[e,t]),n};function md(e){const t=A.useRef(e);return t.current=e,A.useMemo(()=>Object.freeze({get current(){return t.current}}),[])}const e_=()=>{},Td=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function IN(e,...t){e?.addEventListener?.(...t)}function MN(e,...t){e?.removeEventListener?.(...t)}function DN(){const e=A.useRef(!0);return A.useEffect(()=>{e.current=!1},[]),e.current}const LN=Td?A.useLayoutEffect:A.useEffect;function Qae(e,t){const n=DN();A.useEffect(n?e_:e,t)}function Wae(e){return typeof e=="function"&&(e=e()),e}function Yae(e,t){return typeof e=="function"?e(t):e}function Kae(...e){return e.length===1?Wae(e[0]):Yae(e[0],e[1])}function Xae(e){const t=A.useRef(void 0);return A.useEffect(()=>{t.current=e}),t.current}const Rd=new Map,t_=(e,t,n,r)=>{const o=Rd.get(e)?.get(t);if(!(o===void 0||o.size===0))for(const s of o)s!==r&&s(n)},PN=e=>{e.storageArea&&e.key&&e.newValue&&t_(e.storageArea,e.key,e.newValue)},Zae=(e,t,n)=>{Td&&Rd.size===0&&IN(globalThis,"storage",PN,{passive:!0});let r=Rd.get(e);r||(r=new Map,Rd.set(e,r));let o=r.get(t);o||(o=new Set,r.set(t,o)),o.add(n)},Jae=(e,t,n)=>{const r=Rd.get(e);if(!r)return;const o=r.get(t);o&&(o.delete(n),o.size===0&&r.delete(t),r.size===0&&Rd.delete(e),Td&&Rd.size===0&&MN(globalThis,"storage",PN))},ese={defaultValue:null,initializeWithValue:!0};function tse(e,t,n){const r=md({...ese,...n}),o=(x,w)=>(r.current.parse??rse)(x,w),s=x=>(r.current.stringify??nse)(x),l=md({fetchRaw:()=>e.getItem(t),fetch:()=>o(l.current.fetchRaw(),r.current.defaultValue),remove(){e.removeItem(t)},store(x){const w=s(x);return w!==null&&e.setItem(t,w),w}}),f=DN(),[m,p]=A.useState(r.current?.initializeWithValue&&f?l.current.fetch():void 0),v=md(m),g=md({fetch(){p(l.current.fetch())},setRawVal(x){p(o(x,r.current.defaultValue))}});Qae(()=>{g.current.fetch()},[t]),A.useEffect(()=>{r.current.initializeWithValue||g.current.fetch()},[]),LN(()=>{const x=g.current.setRawVal;return Zae(e,t,x),()=>{Jae(e,t,x)}},[e,t]);const y=md({set(x){if(!Td)return;const w=Kae(x,v.current),R=l.current.store(w);R!==null&&t_(e,t,R)},delete(){Td&&(l.current.remove(),t_(e,t,null))},fetch(){Td&&t_(e,t,l.current.fetchRaw())}}),S=A.useMemo(()=>({set:(x=>{y.current.set(x)}),remove(){y.current.delete()},fetch(){y.current.fetch()}}),[]);return A.useMemo(()=>({value:m,...S}),[m])}const nse=e=>{if(e===null)return null;try{return JSON.stringify(e)}catch(t){return console.warn(t),null}},rse=(e,t)=>{if(e===null)return t;try{return JSON.parse(e)}catch(n){return console.warn(n),t}};let I6;try{I6=Td&&!!globalThis.localStorage}catch{I6=!1}const FN=I6?(e,t)=>tse(localStorage,e,t):(e,t)=>({value:void 0,set:e_,remove:e_,fetch:e_}),ise=["mousedown","touchstart"];function ose(e,t,n=ise){const r=md(t),o=md(e);A.useEffect(()=>{function s(l){if(!o.current.current)return;const{target:f}=l,m=r.current;(!f||f&&!o.current.current.contains(f))&&m.call(this,l)}for(const l of n)IN(document,l,s,{passive:!0});return()=>{for(const l of n)MN(document,l,s,{passive:!0})}},[...n])}const ase=e=>mu(e)&&I7(e.totalQuantity),jN=()=>{const{value:e}=FN("ShoppingBag",{initializeWithValue:!1});return ase(e)?e:{totalQuantity:0}},Dw=()=>{const[e,t]=bl.useState("");return bl.useEffect(()=>{const n=Fn()?.location.hostname;n!==void 0&&t(n)},[]),e},pE={"my-account":"style-module_my-account__KlzAS","referral-link-container":"style-module_referral-link-container__LerNF","referral-link":"style-module_referral-link__aUSOv"},sse=({activePageCanonical:e,client:t,isPrimaryNavVisible:n,showSaveForLater:r=!1,suppressFreestyleFeatureNav:o=!1,suppressKeptItemAndOrderLinks:s=!1,suppressReferralLink:l=!1})=>{const{reportSelectEvent:f}=ji(),m=Dw(),p=jN(),v=Em(),g=!o&&t?.capabilities.canShop,y=!t?.capabilities.needsOnboarding,S=t?.shoppingBag?.count||0,x=g&&t.region==="US"&&(t.businessLine!=="KIDS"||T1("client.global.kids_categories",t?.featureFlags))&&m!=="support.stitchfix.com"&&y,w=y&&!l,R=y&&x&&!l,T=t?.referrals.incentive?.senderCredit,k=!g||e==="style_profile"&&!y,L=xne(),H=T1("client.web.stylist_connect",t?.featureFlags),M=$ae(L&&H&&y,t.stylistConnect?.channelId??null);return C.jsxs("div",{className:pE["my-account"],children:[x&&C.jsx(Gae,{activePageCanonical:e,isPrimaryNavVisible:n}),w&&C.jsx("div",{className:pE["referral-link-container"],children:C.jsxs(Aa,{className:pE["referral-link"],"data-ga":"meganav-primary-client-referrals",to:"/client/referrals",active:are(v),"data-testid":"meganav-primary-client-referrals",onClick:()=>{f({schema:"select",name:"navbar",content_id:"referrals_page_link",action_name:"navigate_to_referral"})},children:["Refer"," ",T&&T.value>0&&C.jsxs(C.Fragment,{children:["& get"," ",fw(T.value,{inCents:!0,precision:0})]})]})}),r&&C.jsx(sre,{activePageCanonical:e}),L&&t.stylistConnect!==null&&y&&H&&C.jsx(ure,{stylistConnectUnreadCount:M}),C.jsx(xk,{activePageCanonical:e,count:S+p.totalQuantity,gated:!0,hideIf:()=>k}),C.jsx(yk,{client:t,isPrimaryNavVisible:n,isReferralShown:R,suppressKeptItemAndOrderLinks:s})]})},lse="style-module_active__8nQt4",M6={"secondary-nav":"style-module_secondary-nav__bWMdJ","secondary-nav-links":"style-module_secondary-nav-links__-5-cH","secondary-nav-link":"style-module_secondary-nav-link__kD7zt",active:lse},use=Fi.bind(M6),cse=({links:e})=>{const t=A.useRef(null),n=A.useRef(null),r=A.useRef(null);return A.useEffect(()=>{r.current&&n.current&&t.current&&r.current.offsetLeft+r.current.offsetWidth>n.current.offsetWidth&&t.current.scroll({left:r.current.offsetLeft})},[e]),C.jsx("nav",{className:M6["secondary-nav"],"data-testid":"secondary-nav","aria-label":"secondary",ref:n,children:C.jsx("ul",{className:M6["secondary-nav-links"],ref:t,children:e.map(o=>C.jsx("li",{className:use("secondary-nav-link",{active:o.active}),"data-testid":o.active?"secondary-nav-active-link":"",ref:o.active?r:null,children:C.jsx(ki,{"data-ga":`meganav-secondary-${o.name}`,to:o.location,children:o.text})},o.text))})})},UN={SUCCESS:zO,ERROR:Qx,INFORMATION:zY,FIXDELIVERY:VY},fse=e=>
179e.charAt(0).toUpperCase()+e.slice(1).toLowerCase(),BN=e=>Object.keys(UN).includes(String(e)),dse=({icon:e})=>{if(!e||!BN(e))return null;const t=UN[e];return t?C.jsx(t,{purpose:"decorative","aria-label":`${fse(e)} icon`}):null},hse={DEFAULT:"info-light",INVERSE:"dark",PROMOTIONAL:"promo-dark",URGENT:"error-dark",CITRUS:"citrus",GRAPEFRUIT:"grapefruit",FOREST:"forest",NAVY_WHITE:"navy-white",NAVY_CITRUS:"navy-citrus"},pse={PROMOTIONAL:"promo-dark",ERROR:"error-dark",INFORMATIONAL:"info-dark",CITRUS:"citrus",GRAPEFRUIT:"grapefruit"},D6=({href:e,text:t,bannerVariant:n,isSecondary:r=!1,onClick:o})=>{const s=(()=>{const l=n==="promo-dark"||n==="citrus"||n==="grapefruit";return r?l?"text":"text-inverse":l?"outline":"outline-inverse"})();return C.jsx(Gc,{as:"a",href:e,variant:s,width:"fit",onClick:o,children:t})},mse=({source:e,onClose:t})=>{const{reportSelectEvent:n}=ji();return C.jsx(QO,{headline:e.headline,variant:e.variant,primaryLink:e.cta?C.jsx(D6,{href:e.cta.href,text:e.cta.text,bannerVariant:e.variant,onClick:()=>{n(Sd({bannerId:e.id}))}}):void 0,onClose:t,children:e.message})},vse=({source:e,onClose:t})=>{const{reportSelectEvent:n}=ji();return C.jsx(QA,{cta:e.cta?(()=>{if("onClick"in e.cta){const o=e.cta;return{...o,onClick:()=>{n(Sd({bannerId:e.id})),o.onClick?.()}}}return{...e.cta,onClick:()=>{n(Sd({bannerId:e.id}))}}})():void 0,icon:e.icon,text:e.text,variant:e.variant,onClose:t})},Sd=({bannerId:e,isSecondaryCta:t=!1})=>({schema:"select",content_id:e,name:t?"banner_secondary_action":"banner_primary_action",action_name:t?"open_banner_secondary_action":"open_banner_primary_action"}),gse=({source:e,onClose:t,onOpenModal:n})=>{const{reportSelectEvent:r}=ji(),o=e.icon&&BN(e.icon)?C.jsx(dse,{icon:e.icon}):null;if(e.__typename==="ModeBannerSitewide"){const s=pse[e.sitewideVariant];return C.jsx(QO,{icon:o,headline:e.headline,variant:s,primaryLink:e.cta?C.jsx(D6,{href:e.cta.url,text:"primary",bannerVariant:s,onClick:()=>{r(Sd({bannerId:e.id}))}}):void 0,secondaryLink:e.secondaryCta?C.jsx(D6,{href:e.secondaryCta.url,text:e.secondaryCta.label.text,bannerVariant:s,isSecondary:!0,onClick:()=>{r(Sd({bannerId:e.id,isSecondaryCta:!0}))}}):void 0,onClose:t,children:e.message})}return C.jsx(QA,{variant:hse[e.slimVariant],text:e.message,icon:o,cta:e.cta?(()=>{const s=e.cta;return s.actionType==="OPEN_ADD_PROFILE_MODAL"?{text:s.label.text,onClick:()=>{r(Sd({bannerId:e.id})),n(s.actionType)}}:{text:s.label.text,url:s.url,onClick:()=>{r(Sd({bannerId:e.id}))}}})():void 0,onClose:t})},yse=({legacySiteWideBanner:e,legacySlimBanner:t,graphQLBanners:n})=>{const[r,o]=A.useState(!1);A.useEffect(()=>{o(!0)},[]);const{value:s,set:l}=FN("Knit:Banners",{defaultValue:{}}),[f,m]=A.useState(null),p=L=>s?!!s[L]?.closed:!1,v=L=>()=>{l((H={})=>({...H,[L]:{closed:!0}}))},g=e&&!p(e.id)?e:null,y=t&&!p(t.id)?t:null,S=(n||[]).filter(L=>!p(L.id))[0]||null,x=g||y||S,{ref:w,EventProvider:R,reportSelectEvent:T}=PO({schema:"view",name:"banner",content_id:x?.id});if(!r)return null;if(!x)return f==="OPEN_ADD_PROFILE_MODAL"?C.jsx(_6,{isModalOpen:!0,onClose:()=>m(null)}):null;const I=()=>{v(x.id)(),T({schema:"select",name:"banner",action_name:"close_banner",content_id:x.id})},k=()=>g?C.jsx(mse,{source:g,onClose:I}):y?C.jsx(vse,{source:y,onClose:I}):S?C.jsx(gse,{source:S,onClose:I,onOpenModal:m}):null;return C.jsxs(R,{children:[C.jsx("div",{ref:w,children:k()}),f==="OPEN_ADD_PROFILE_MODAL"&&C.jsx(_6,{isModalOpen:!0,onClose:()=>m(null)})]})},bse="style-module_header__hN7f9",_se="style-module_fixed__In8MO",Sse="style-module_aboveHeaderComponent__RxyHt",Ese="style-module_simplified__wEIKu",VN={header:bse,fixed:_se,aboveHeaderComponent:Sse,"header-spacer":"style-module_header-spacer__h8zY1","logged-in":"style-module_logged-in__Nc4er","logged-in-with-secondary":"style-module_logged-in-with-secondary__VeJHb","logged-out":"style-module_logged-out__UZrp7",simplified:Ese},h8=Fi.bind(VN),T2=A.forwardRef(({banner:e,slimBanner:t,suppressBanners:n,aboveHeaderComponent:r,spacerVariant:o="logged-in",children:s},l)=>{const{banners:f}=Vx(),m=!!r;return C.jsxs(C.Fragment,{children:[C.jsx("div",{"data-hide-on-native-apps":!0,className:VN.aboveHeaderComponent,children:r}),C.jsx("div",{"data-hide-on-native-apps":!0,"data-testid":"header-space-manager",className:m?void 0:h8("header-spacer",o)}),C.jsx("header",{"data-hide-on-native-apps":!0,"data-stitchfix-header":!0,"data-testid":"sfix-header",className:h8("header",{fixed:!m}),ref:l,children:s}),!n&&C.jsx(yse,{legacySiteWideBanner:e,legacySlimBanner:t,graphQLBanners:f})]})}),HN=({stickyId:e,stickyOffset:t})=>{const r=A.useRef(null),o=()=>{const[m,p]=A.useState(0),v=A.useRef(null),g=A.useRef(null),y=A.useCallback(()=>
179{if(!e||(v.current=i_()?.getElementById(e),!v.current))return;const w=v.current,T=(g.current?.getBoundingClientRect()?.bottom||0)+t;w.style.position="sticky",w.style.top=`${T}px`;const I=w.getBoundingClientRect().top;w.classList.toggle("is-stuck",I<=T)},[]);LN(()=>{const w=Fn(),R=()=>{y(),mu(w)&&I7(w.pageYOffset)&&w.pageYOffset>=0&&p(w?.pageYOffset)};return w?.addEventListener("scroll",R),R(),()=>{w?.removeEventListener("scroll",R),v.current&&(v.current.style.position="",v.current.style.top="",v.current.classList.remove("is-stuck"))}},[y]);const S=Xae(m);return{isPrimaryNavVisible:m<288||m<(S||0),headerElRef:g,setStickiness:y}},{isPrimaryNavVisible:s,headerElRef:l,setStickiness:f}=o();return A.useEffect(()=>{const m=i_();return m?.body.classList.add("new-meganav-loaded"),()=>{m?.body.classList.remove("new-meganav-loaded")}},[]),{headerElRef:l,setStickiness:f,isPrimaryNavVisible:s,headerShellRef:r}},Lw="fixes",zN="shop",qN="style",Pw="fix-inspiration",Fw="kept-items",jw="new-colors",Uw="past-fixes",GN="saved-items",$N="style-profile",Bw="style-quizzes",Vw="style-shuffle-shop",QN="styled-fix",Hw="your-fix",zw="your-looks",xse=[Pw,Fw,jw,Uw,GN,$N,Bw,Vw,QN,Hw,zw],wse=[Lw,zN,qN],Cse=e=>wF(e.configParams,"algos.discovery_freestyle_shop"),Tse=e=>xse.includes(e),Rse=e=>wse.includes(e)||Tse(e),R2=e=>e.businessLine!=="KIDS",Ose=e=>{const t=!e.capabilities.needsOnboarding,n=e.capabilities.canShop;return t&&n&&(e.businessLine!=="KIDS"||T1("client.global.kids_categories",e?.featureFlags))},Ase=e=>{const t=!e.capabilities.needsOnboarding,n=e.capabilities.canShop;return t&&n&&(e.businessLine!=="KIDS"||T1("client.global.kids_categories",e?.featureFlags))},qw=e=>{const t=e.businessLine==="KIDS",s=[{name:zw,text:e.firstName?`${e.firstName}'s Looks`:"Your Looks",location:"/shop/looks",canonical:"your_looks"},{name:Vw,text:"Categories",location:"/shop/categories",canonical:"categories"},{name:jw,text:"Buy It Again",location:"/my-items/shop/new_colors",canonical:"new_colors"}];let l;t?l="Their Fix":l="Current Fix";let f="Freestyle";return Cse(e)==="treatment"&&(f="Shop"),[{name:Lw,text:"Fix",pteData:{content_id:"fix_link",action_name:"navigate_to_fix_home"},possibleSecondaryLinks:[{name:Hw,text:l,location:"/fixes",canonical:"fixes"},{name:Uw,text:"Past Fixes",location:"/fixes/past",canonical:"past_fixes"},{name:Pw,text:"Fix Inspiration",location:"/fixes/inspiration",canonical:"fix_inspiration_board"}]},{name:zN,text:f,location:"/shop",pteData:{content_id:"freestyle_link",action_name:"navigate_to_freestyle"},possibleSecondaryLinks:s},{name:qN,text:"Profile",possibleSecondaryLinks:[{name:Fw,text:"Your Items",location:"/my-items/gallery",canonical:"kept_items"},{name:$N,text:"Style Profile",location:"/style/profile",canonical:"style_profile"},{name:Bw,text:"Style Quizzes",location:"/profile/quizzes",canonical:"style_quizzes"}]}]},kse=(e,t)=>{if(!t)return null;if(t===QN)return Lw;const r=qw(e).find(o=>o.name===t||o.possibleSecondaryLinks.some(s=>s.name===t));return r?r.name:null},Nse=(e,t)=>{if(!t)return;if(t==="home")return"homepage";if(t===GN)return"saved_items";let n;const r=qw(e);for(const o of r)for(const s of o.possibleSecondaryLinks)s.name===t&&(n=s.canonical);return n},Ise=(e,t)=>{const n=R2(e),r=!e.capabilities.needsOnboarding,o=e.capabilities.canShop,s=r&&e.businessLine==="WOMENS",l=Ase(e),f=r&&(e.businessLine==="WOMENS"||e.businessLine==="MENS")&&!n,m=r&&o&&(e.businessLine==="WOMENS"||e.businessLine==="MENS"),p=r&&e.businessLine==="WOMENS"&&!n;switch(t){case Hw:return r;case Pw:return s;case zw:return m;case jw:return r&&o;case Uw:return r;case Fw:return f;case Vw:return l;case Bw:return p;default:return!1}},Mse=e=>{const t=[],n=R2(e);for(const r of qw(e)){const o=r.possibleSecondaryLinks.filter(l=>Ise(e,l.name));
179(n&&r.name==="home"||uP(o))&&t.push({name:r.name,text:r.text,location:r.location||o[0].location,pteData:r.pteData,actionableSecondaryLinks:o})}return t},Dse=(e,t)=>{const n=Mse(e),r=kse(e,t),o=n.map(f=>({name:f.name,text:f.text,location:f.location,active:f.name===r,pteData:f.pteData})),s=n.find(f=>f.name===r),l=s?s.actionableSecondaryLinks.map(f=>({name:f.name,text:f.text,location:f.location,active:t===f.name})):[];return{actionablePrimaryLinks:o,actionableSecondaryLinks:l}},WN=A.createContext(null),Lse="style-module_closed__gp89p",_a={"header-shell":"style-module_header-shell__zjgpD","primary-nav":"style-module_primary-nav__0vWQD",closed:Lse,"nav-section":"style-module_nav-section__2pbrb","nav-section--links":"style-module_nav-section--links__Ksjoq","loading-nav-links":"style-module_loading-nav-links__k-UQ9","loading-nav-link":"style-module_loading-nav-link__XOqbM"},mE=Fi.bind(_a),Pse=({client:e,activePage:t,banner:n,slimBanner:r,suppressBanners:o=!1,disableHomeLink:s=!1,stickyId:l,stickyOffset:f=0,suppressFreestyleFeatureNav:m=!1,suppressNavLinks:p=!1,suppressSecondaryNav:v=!1})=>{const g=Em(),{reportSelectEvent:y}=ji(),{actionablePrimaryLinks:S,actionableSecondaryLinks:x}=Dse(e,t),w=Nse(e,t),R=Ose(e),T=!p&&!v&&x.length>1,{headerElRef:I,setStickiness:k,isPrimaryNavVisible:L,headerShellRef:H}=HN({stickyId:l,stickyOffset:f}),M=R2(e)?"/home":"/",j=M==="/"?rre(g):w==="homepage",K=({pteData:P})=>{P&&y({schema:"select",name:"navbar",...P})};return C.jsx(WN.Provider,{value:H.current,children:C.jsx(T2,{ref:I,banner:n,slimBanner:r,suppressBanners:o,spacerVariant:T?"logged-in-with-secondary":"logged-in",children:C.jsxs("div",{className:_a["header-shell"],ref:H,"data-testid":"logged-in-header",children:[C.jsxs("nav",{className:mE("primary-nav",{closed:!L}),onTransitionEnd:k,"data-testid":"primary-nav","aria-label":"primary",children:[C.jsx("div",{className:_a["nav-section"],children:C.jsx(ok,{href:M,disabled:s,active:j})}),C.jsx("div",{className:mE("nav-section","nav-section--links"),children:!p&&C.jsx(one,{links:S,onClick:K})}),C.jsx("div",{className:mE("nav-section","nav-section--links"),children:C.jsx(sse,{activePageCanonical:w,client:e,isPrimaryNavVisible:L,showSaveForLater:!m&&R,suppressFreestyleFeatureNav:m,suppressKeptItemAndOrderLinks:m,suppressReferralLink:p})})]}),C.jsx("div",{id:"account-dropdown-portal"}),T&&C.jsx(cse,{links:x})]})})})},Fse=()=>C.jsx(T2,{suppressBanners:!0,children:C.jsx("div",{className:_a["header-shell"],"data-testid":"logged-in-header-loading","aria-hidden":!0,children:C.jsxs("nav",{className:_a["primary-nav"],"data-testid":"primary-nav-loading","aria-label":"Primary navigation",children:[C.jsx("div",{className:_a["nav-section"],children:C.jsx(ok,{href:"/home",disabled:!0})}),C.jsxs("div",{className:`${_a["nav-section"]} ${_a["nav-section--links"]} ${_a["loading-nav-links"]}`,children:[C.jsx("span",{className:_a["loading-nav-link"]}),C.jsx("span",{className:_a["loading-nav-link"]}),C.jsx("span",{className:_a["loading-nav-link"]})]})]})})}),jse=({client:e,isPrimaryNavVisible:t,isNameVisible:n})=>C.jsx(yk,{client:e,isPrimaryNavVisible:t,isNameVisible:n,variant:"simplified"}),Use="style-module_closed__SeGJk",Bse="style-module_wordmark__FyMSw",wp={"header-shell":"style-module_header-shell__tvo8G","primary-nav":"style-module_primary-nav__QJ-dz",closed:Use,"dropdown-menu":"style-module_dropdown-menu__aCuF0","home-link":"style-module_home-link__CMlFG","logo-circle":"style-module_logo-circle__lpPXq",wordmark:Bse},Vse=Fi.bind(wp),Hse=({client:e,banner:t,slimBanner:n,suppressBanners:r=!1,shouldReloadOnLogoClick:o,stickyId:s,stickyOffset:l=0,isNameVisible:f=!0})=>{const m=R2(e)?"/home":"/",p=x=>{o&&(x.preventDefault(),Fn()?.location?.reload())},{headerElRef:v,setStickiness:g,isPrimaryNavVisible:y,headerShellRef:S}=HN({stickyId:s,stickyOffset:l});return C.jsx(WN.Provider,{value:S.current,children:C.jsx(T2,{ref:v,banner:t,slimBanner:n,suppressBanners:r,spacerVariant:"simplified",children:C.jsxs("div",{className:wp["header-shell"],ref:S,"data-testid":"simplified-header",children:[C.jsxs("nav",{className:Vse("primary-nav",{closed:!y}),onTransitionEnd:g,"data-testid":"simplified-primary-nav","aria-label":"primary",children:[C.jsxs(Aa,{className:wp["home-link"],to:m,"data-ga":"meganav-primary-brand-link","data-testid":"brand-link",onClick:x=>{p(x)},children:[C.jsx("span",{className:wp["logo-circle"],children:C.jsx(VO,{title:"Stitch Fix","data-testid":"logo-mark"})}),C.jsx("span",{className:wp.wordmark,children:C.jsx($x,{title:"Stitch Fix","data-testid":"logo"})})]}),C.jsx("div",{className:wp["dropdown-menu"],children:C.jsx(jse,{client:e,isPrimaryNavVisible:y,isNameVisible:f})})]}),C.jsx("div",{id:"account-dropdown-portal"})]})})})},zse="style-module_items__jnaPE",qse="style-module_link__NQHBZ",Ob={items:zse,link:qse},Gse=()=>{const e=Em();return C.jsxs("ul",{className:Ob.items,children:[C.jsx("li",{children:C.jsx(Aa,{className:Ob.link,"data-ga":"nav-primary-businessline-women",to:"/women",active:bk(e),children:"Women"})}),C.jsx("li",{children:C.jsx(Aa,{className:Ob.link,"data-ga":"nav-primary-businessline-men",to:"/men",active:_k(e),children:"Men"})}),C.jsx("li",{children:C.jsx(Aa,{className:Ob.link,"data-ga":"nav-primary-businessline-kids",to:"/kids",active:Sk(e),children:"Kids"})})]})},$se="style-module_container__awkfV",Yv={container:$se,"business-line-link":"style-module_business-line-link__G-N-X","signup-link":"style-module_signup-link__S2vMo"},Qse=()=>{const e=Em(),n=Dw()!=="support.stitchfix.co.uk",{reportSelectEvent:r}=ji(),o=()=>{r({action_name:"navigate_to_signup",content_id:"mobile_knit_header",name:"take_style_quiz_button",schema:"select"})},s=n?C.jsx(Ft,{"data-ga":"nav-primary-faq",to:Cd.help,children:"Help"}):null,l=C.jsx(Ft,{"data-ga":"nav-primary-gifts",to:"/gifts",underline:Ek(e)?"initial":"inverse",children:"Gift cards"}),f=[C.jsx("div",{className:Yv["business-line-link"],children:C.jsx(Ft,{"data-ga":"nav-primary-businessline-women",to:"/women",underline:bk(e)?"initial":"inverse",children:"Women"})},"women"),C.jsx("div",{className:Yv["business-line-link"],children:C.jsx(Ft,{"data-ga":"nav-primary-businessline-men",to:"/men",underline:_k(e)?"initial":"inverse",children:"Men"})},"men"),C.jsx("div",{className:Yv["business-line-link"],children:C.jsx(Ft,{"data-ga":"nav-primary-businessline-kids",to:"/kids",underline:Sk(e)?"initial":"inverse",children:"Kids"})},"kids")],m=C.jsx("div",{className:Yv["signup-link"],children:C.jsx(Ft,{"data-ga":"nav-signup",to:"/signup",endIcon:C.jsx(DY,{}),onClick:o,children:"Take your style quiz"})});return C.jsxs(ht,{className:Yv.container,children:[f,s,l,m]})},Wse="style-module_container__6XMXT",Yse="style-module_flushRight__4SxdS",Kse="style-module_items__qqJzY",Xse="style-module_link__KZK8y",L6={container:Wse,flushRight:Yse,items:Kse,link:Xse},Zse=Fi.bind(L6),Jse=({flushRight:e})=>{const t=Em(),n=Dw(),r=n!=="support.stitchfix.co.uk";return C.jsx("div",{className:Zse(L6.container,{flushRight:e}),children:C.jsxs("ul",{className:L6.items,children:[r&&C.jsx("li",{children:C.jsx(Aa,{"data-ga":"nav-primary-faq",to:Cd.help,active:ire(n),children:"Help"})}),C.jsx("li",{children:C.jsx(Aa,{"data-ga":"nav-primary-gifts",to:"/gifts",active:Ek(t),children:"Gift cards"})})]})})},ele="style-module_icon__NbWyl",tle="style-module_logotype__ame0F",nle="style-module_open__Y6FHf",rle="style-module_nav__Dtdo4",i1={"nav-links":"style-module_nav-links__I6sjR",icon:ele,logotype:tle,"header-shell":"style-module_header-shell__GIIiq",open:nle,"home-toggle":"style-module_home-toggle__a93gZ","home-link":"style-module_home-link__NvqLv","site-nav-expanding":"style-module_site-nav-expanding__uQKOo","is-open":"style-module_is-open__MfPjs","is-closed":"style-module_is-closed__lFCQJ","signin-button":"style-module_signin-button__20lyp","business-line-container":"style-module_business-line-container__qgonQ","other-links-container":"style-module_other-links-container__B-KTm","bag-container":"style-module_bag-container__IxtPg","signin-button-container":"style-module_signin-button-container__XG60Z","signup-button-container":"style-module_signup-button-container__xD2lR","align-right":"style-module_align-right__NBPpU",nav:rle,"active-focus-animation":"style-module_active-focus-animation__4BJnb"},ul=Fi.bind(i1),ile=({banner:e,slimBanner:t,loginRedirectUrl:n,aboveHeaderComponent:r})=>{const o=cw(),[s,l]=A.useState(!1),f=jN(),{reportSelectEvent:m}=ji(),p=()=>{m({action_name:"navigate_to_signup",content_id:"knit_header",name:"take_style_quiz_button",schema:"select"})},v=s?C.jsx(HO,{purpose:"decorative","data-testid":"close-icon"}):C.jsx(YY,{purpose:"decorative","data-testid":"menu-icon"}),g=s?{}:{inert:!0};return C.jsx(T2,{banner:e,slimBanner:t,suppressBanners:!1,aboveHeaderComponent:r,spacerVariant:"logged-out",children:C.jsx("div",{className:ul("header-shell",{open:s}),"data-testid":"logged-out-header",children:C.jsx(dte,{width:"full-bleed",gutter:"none",height:"100%",children:C.jsxs("nav",{className:i1.nav,"aria-label":"primary",children:[C.jsxs("div",{className:i1["nav-links"],children:[C.jsx("button",{onClick:()=>{l(y=>!y)},className:ul("home-toggle"),"data-testid":"home-toggle",type:"button","aria-label":s?"close menu":"open menu",children:C.jsx("div",{className:i1.icon,children:v})}),C.jsx(ki,{"data-ga":"nav-primary-gateway",className:ul("home-link"),to:"/",children:C.jsx("div",{className:i1.logotype,children:C.jsx($x,{title:"Stitch Fix","data-testid":"logo"})})}),C.jsx("div",{className:ul("business-line-container"),children:C.jsx(Gse,{})}),C.jsx("div",{className:ul("bag-container"),children:C.jsx(xk,{count:f.totalQuantity,hideIf:y=>y===0})}),C.jsxs("div",{className:ul("align-right"),children:[C.jsx("div",{className:ul("other-links-container"),children:C.jsx(Jse,{flushRight:!1})}),C.jsx("div",{className:ul("signin-button-container"),children:C.jsx(Gc,{variant:"text","data-ga":"nav-primary-login","data-testid":"sign-in-button",as:"a",href:o(n?`/login?ret=${encodeURIComponent(n)}`:"/login"),width:"fit",children:"Sign In"})}),C.jsx("div",{className:ul("signup-button-container"),children:C.jsx(Gc,{variant:"filled-accent-slim","data-ga":"nav-signup","data-testid":"sign-up-button",as:"a",href:o("/signup"),width:"fit",onClick:p,children:"Take your style quiz"})})]})]}),C.jsx("div",{className:ul("site-nav-expanding",s?"is-open":"is-closed"),"data-testid":"site-nav-expanding","aria-hidden":!s,...g,children:C.jsx(Qse,{})})]})})})})},ole={"skip-link":"style-module_skip-link__W-Qqc"},ale=()=>{const[e,t]=A.useState(!1);return A.useEffect(()=>{i_()?.getElementById("knit-main-content")&&t(!0)},[]),e?C.jsx("a",{href:"#knit-main-content",className:ole["skip-link"],children:"Skip to page content"}):null},sle={"secondary-nav-reserved-wrapper":"style-module_secondary-nav-reserved-wrapper__wgQ5y"},lle=e=>({id:"unsupported-ie",variant:"error-dark",message:C.jsxs(C.Fragment,{children:[wE(e)&&dP(e)?`${e}, `:"","Internet Explorer is no longer a supported browser."]}
179),cta:{text:"Please switch to a supported browser",href:"https://support.stitchfix.com/hc/en-us/articles/360061784433"}}),ule=({aboveHeaderComponent:e,activePage:t,banner:n,slimBanner:r,loginRedirectUrl:o,stickyId:s,stickyOffset:l=0,suppressNavLinks:f=!1,suppressSecondaryNav:m=!1,disableHomeLink:p=!1,suppressFreestyleFeatureNav:v=!1,suppressBanners:g=!1,shouldReloadOnLogoClick:y=!1,loadingState:S})=>{const{client:x,dataLoaded:w,navDataLoaded:R}=A.useContext(Sm),[T,I]=A.useState(!1),k=x?.firstName||"",L=T?lle(k):n,H=R??w;A.useEffect(()=>{const{userAgent:j}=window.navigator||{};I(j.includes("MSIE ")||j.includes("Trident/"))},[]);let M=C.jsx(ile,{banner:L,slimBanner:r,loginRedirectUrl:o,aboveHeaderComponent:e});return!H&&S==="logged-in"&&(M=C.jsx(Fse,{})),x&&(x.capabilities?.needsOnboarding?M=C.jsx(Hse,{client:x,banner:L,slimBanner:r,suppressBanners:g,shouldReloadOnLogoClick:y,stickyId:s,stickyOffset:l}):M=C.jsx(Pse,{activePage:t,client:x,banner:L,slimBanner:r,suppressBanners:g,stickyId:s,stickyOffset:l,suppressNavLinks:f,suppressSecondaryNav:m,disableHomeLink:p,suppressFreestyleFeatureNav:v})),C.jsxs(C.Fragment,{children:[C.jsx(ale,{}),C.jsx("div",{className:t&&Rse(t)&&!f&&!m?sle["secondary-nav-reserved-wrapper"]:void 0,children:M})]})},YN=({aboveHeaderComponent:e,activePage:t,banner:n,disableHomeLink:r=!1,loginRedirectUrl:o,slimBanner:s,stickyId:l,rootUrl:f="",region:m="US",stickyOffset:p=0,suppressFreestyleFeatureNav:v=!1,suppressNavLinks:g=!1,suppressSecondaryNav:y=!1,suppressBanners:S=!1,shouldReloadOnLogoClick:x=!1,loadingState:w})=>C.jsx(X6,{children:C.jsx(wO,{rootUrl:f,mobileConfigKey:"showHeader",showBeforeLoaded:w==="logged-in",children:C.jsx(ule,{aboveHeaderComponent:e,activePage:t,banner:n,loginRedirectUrl:o,slimBanner:s,stickyId:l,stickyOffset:p,suppressNavLinks:g,suppressSecondaryNav:y,disableHomeLink:r,suppressFreestyleFeatureNav:v,suppressBanners:S,shouldReloadOnLogoClick:x,loadingState:w})})});YN.propTypes={activePage:It.string,banner:g8,slimBanner:y8,loginRedirectUrl:It.string,region:B6,rootUrl:It.string,stickyId:It.string,stickyOffset:It.number,suppressNavLinks:It.bool,suppressSecondaryNav:It.bool,suppressBanners:It.bool,disableHomeLink:It.bool,suppressFreestyleFeatureNav:It.bool,shouldReloadOnLogoClick:It.bool,loadingState:It.oneOf(["logged-in"])};It.string;const cle=C.jsxs("svg",{width:"143",height:"48",viewBox:"0 0 189 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("title",{children:"Apple App store badge"}),C.jsx("path",{d:"M182.276 56H6.6206C4.86499 55.9959 3.18253 55.2963 1.94165 54.0544C0.700766 52.8125 0.00258796 51.1294 0 49.3738L0 6.6164C0.00259455 4.86169 0.701087 3.17965 1.94225 1.93928C3.18341 0.698906 4.86589 0.00148104 6.6206 0L182.276 0C185.924 0 189 2.968 189 6.6164V49.3738C189 53.0208 185.924 56 182.276 56Z",fill:"#25282D"}),C.jsx("path",{d:"M187.645 49.3753C187.645 50.0799 187.506 50.7776 187.236 51.4285C186.966 52.0795 186.571 52.6708 186.072 53.1688C185.574 53.6668 184.982 54.0616 184.331 54.3307C183.68 54.5999 182.982 54.738 182.277 54.7373H6.62057C5.19687 54.7388 3.83086 54.1747 2.82297 53.1692C1.81508 52.1637 1.24783 50.799 1.24597 49.3753V6.61509C1.24783 5.19075 1.81485 3.82535 2.82254 2.81871C3.83024 1.81206 5.19622 1.24646 6.62057 1.24609H182.276C182.981 1.24609 183.679 1.38498 184.33 1.65481C184.982 1.92465 185.573 2.32015 186.072 2.81872C186.57 3.3173 186.966 3.90918 187.235 4.56057C187.505 5.21196 187.644 5.91009 187.643 6.61509L187.645 49.3753Z",fill:"#25282D"}),C.jsx("path",{d:"M42.1792 27.6977C42.1386 23.1855 45.8738 20.9903 46.0446 20.8881C43.9292 17.8039 40.6504 17.3825 39.4982 17.3489C36.7444 17.0591 34.0732 18.9967 32.6704 18.9967C31.2396 18.9967 29.0794 17.3769 26.7512 17.4245C23.7552 17.4707 20.9524 19.2053 19.4152 21.8989C16.2428 27.3911 18.6088 35.4621 21.6482 39.9015C23.1686 42.0757 24.9452 44.5033 27.2706 44.4179C29.5456 44.3241 30.3954 42.9675 33.1408 42.9675C35.861 42.9675 36.659 44.4179 39.0306 44.3633C41.4722 44.3241 43.0094 42.1793 44.4766 39.9855C46.2336 37.4935 46.9392 35.0393 46.9672 34.9133C46.9098 34.8937 42.2254 33.1059 42.1792 27.6977ZM37.6992 14.4285C38.9228 12.8983 39.76 10.8165 39.5276 8.70386C37.7566 8.78226 35.5418 9.92886 34.2664 11.4255C33.138 12.7443 32.13 14.9059 32.3904 16.9387C34.3798 17.0871 36.4224 15.9349 37.6992 14.4285Z",fill:"white"}),C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M67.1888 17.7339C68.1758 16.9009 68.67 15.6605 68.67 14.0127C68.67 12.5455 68.2122 11.4185 67.2994 10.6303C66.4846 9.93307 65.2764 9.58447 63.6734 9.58447C62.7662 9.58447 61.9262 9.64887 61.1464 9.77487V18.7783C61.7442 18.8511 62.4582 18.8875 63.2926 18.8875C64.9754 18.8875 66.2746 18.5025 67.1888 17.7339ZM66.2746 11.5949C66.8402 12.1661 67.123 12.9851 67.123 14.0533C67.123 15.2489 66.815 16.1589 66.2046 16.7833C65.5942 17.4077 64.7276 17.7199 63.6048 17.7199C63.1246 17.7199 62.7942 17.7073 62.6136 17.6793V10.8347C62.9398 10.7703 63.3332 10.7395 63.7952 10.7395C64.883 10.7395 65.709 11.0251 66.2746 11.5949Z",fill:"white"}),C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M76.0032 17.9509C76.5828 17.2985 76.8726 16.4669 76.8726 15.4519C76.8726 14.4663 76.5912 13.6599 76.0312 13.0355C75.4418 12.3929 74.6634 12.0723 73.6946 12.0723C72.6894 12.0723 71.8914 12.3985 71.2978 13.0495C70.7042 13.7005 70.4088 14.5391 70.4088 15.5611C70.4088 16.5383 70.6958 17.3489 71.2698 17.9915C71.8452 18.6355 72.6166 18.9561 73.5854 18.9561C74.5906 18.9561 75.3956 18.6215 76.0032 17.9509ZM74.9574 13.9329C75.2192 14.3683 75.3508 14.8905 7
1795.3508 15.4995C75.3508 16.1085 75.215 16.6349 74.9434 17.0787C74.627 17.6149 74.1874 17.8823 73.6274 17.8823C73.0562 17.8823 72.6138 17.6191 72.296 17.0927C72.0342 16.6573 71.9026 16.1351 71.9026 15.5261C71.9026 14.8989 72.0328 14.3683 72.296 13.9329C72.604 13.4065 73.052 13.1433 73.6414 13.1433C74.2112 13.1433 74.6494 13.4065 74.9574 13.9329Z",fill:"white"}),C.jsx("path",{d:"M85.806 18.8063L87.8706 12.2081H86.4304L85.6296 15.2909C85.4308 16.0609 85.281 16.7847 85.1816 17.4637H85.141C85.0052 16.7665 84.8288 16.0427 84.6118 15.2909L83.7144 12.2081H82.5188L81.5822 15.3581C81.3274 16.2079 81.1468 16.9107 81.0376 17.4623H81.011C80.892 16.7931 80.7436 16.0861 80.563 15.3441L79.8168 12.2067H78.309L80.2508 18.8063H81.6102L82.5188 15.9405C82.7456 15.2431 82.9229 14.5306 83.0494 13.8083H83.076C83.2164 14.5276 83.3935 15.2393 83.6066 15.9405L84.462 18.8063H85.806Z",fill:"white"}),C.jsx("path",{d:"M94.01 18.8063H95.4772V14.8527C95.4772 13.8839 95.2238 13.1545 94.717 12.6659C94.3096 12.2669 93.7972 12.0681 93.1812 12.0681C92.694 12.0681 92.2488 12.1927 91.8512 12.4391C91.5166 12.6505 91.2618 12.9151 91.091 13.2357H91.0504L90.9818 12.2039H89.6924C89.7274 12.8843 89.7456 13.5129 89.7456 14.0925V18.8049H91.2128V14.8905C91.2067 14.4764 91.3515 14.0743 91.6202 13.7593C91.7487 13.6038 91.9109 13.4798 92.0946 13.3966C92.2782 13.3133 92.4785 13.2732 92.68 13.2791C93.5676 13.2791 94.01 13.8615 94.01 15.0263V18.8063Z",fill:"white"}),C.jsx("path",{d:"M98.0574 18.8063H99.5232V9.17847H98.0574V18.8063Z",fill:"white"}),C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M107.292 17.9509C107.871 17.2985 108.161 16.4669 108.161 15.4519C108.161 14.4663 107.88 13.6599 107.32 13.0355C106.729 12.3929 105.952 12.0723 104.982 12.0723C103.978 12.0723 103.18 12.3985 102.586 13.0495C101.993 13.7005 101.697 14.5391 101.697 15.5611C101.697 16.5383 101.984 17.3489 102.558 17.9915C103.132 18.6355 103.904 18.9561 104.874 18.9561C105.878 18.9561 106.684 18.6215 107.292 17.9509ZM106.245 13.9329C106.506 14.3683 106.638 14.8905 106.638 15.4995C106.638 16.1085 106.504 16.6349 106.231 17.0787C105.914 17.6149 105.476 17.8823 104.916 17.8823C104.345 17.8823 103.902 17.6191 103.585 17.0927C103.323 16.6573 103.191 16.1351 103.191 15.5261C103.191 14.8989 103.321 14.3683 103.585 13.9329C103.891 13.4065 104.339 13.1433 104.93 13.1433C105.498 13.1433 105.938 13.4065 106.245 13.9329Z",fill:"white"}),C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M113.945 18.8063H115.262C115.199 18.4171 115.167 17.8921 115.167 17.2327V14.8023C115.167 12.9823 114.302 12.0723 112.577 12.0723C111.684 12.0723 110.926 12.2627 110.313 12.6421L110.611 13.6053C111.107 13.2805 111.681 13.1167 112.332 13.1167C113.246 13.1167 113.702 13.5507 113.702 14.4201V14.5433C112.48 14.5335 111.531 14.7421 110.856 15.1677C110.18 15.5933 109.844 16.2079 109.844 17.0143C109.837 17.2613 109.879 17.5072 109.968 17.7378C110.057 17.9685 110.19 18.1793 110.361 18.3583C110.74 18.7559 111.244 18.9561 111.867 18.9561C112.701 18.9561 113.344 18.6523 113.795 18.0461H113.835L113.945 18.8063ZM113.739 15.5205V16.5383C113.741 16.7416 113.694 16.9425 113.601 17.1236C113.509 17.3046 113.373 17.4602 113.207 17.5771C112.932 17.7801 112.631 17.8823 112.309 17.8823C112.046 17.8915 111.79 17.7993 111.593 17.6247C111.404 17.4525 111.311 17.1949 111.311 16.8505C111.311 15.9363 112.12 15.4925 113.739 15.5205Z",fill:"white"}),C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M122.297 18.8063H123.599C123.564 18.2631 123.547 17.6709 123.547 17.0283V9.17847H122.079V12.9669H122.051C121.698 12.3691 121.078 12.0709 120.191 12.0709C119.385 12.0709 118.707 12.3789 118.154 12.9949C117.583 13.6557 117.299 14.5209 117.299 15.5891C117.299 16.5845 117.561 17.3951 118.086 18.0195C118.611 18.6439 119.273 18.9561 120.068 18.9561C121.064 18.9561 121.772 18.5529 122.188 17.7465H122.228L122.297 18.8063ZM122.079 14.9227V16.0231C122.079 16.4935 121.94 16.8967 121.657 17.2313C121.365 17.5939 120.98 17.7745 120.498 17.7745C119.962 17.7745 119.533 17.5575 119.216 17.1235C118.915 16.7161 118.765 16.1869 118.765 15.5345C118.765 14.8555 118.923 14.2997 119.235 13.8643C119.55 13.4289 119.979 13.2119 120.526 13.2119C120.887 13.2048 121.237 13.3332 121.507 13.571
1797C121.699 13.7386 121.85 13.9471 121.949 14.1812C122.048 14.4153 122.092 14.6689 122.079 14.9227Z",fill:"white"}),C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M135.278 17.9509C135.857 17.2985 136.147 16.4669 136.147 15.4519C136.147 14.4663 135.866 13.6599 135.306 13.0355C134.718 12.3929 133.938 12.0723 132.971 12.0723C131.964 12.0723 131.166 12.3985 130.572 13.0495C129.979 13.7005 129.683 14.5391 129.683 15.5611C129.683 16.5383 129.97 17.3489 130.544 17.9915C131.121 18.6355 131.893 18.9561 132.86 18.9561C133.867 18.9561 134.67 18.6215 135.278 17.9509ZM134.233 13.9329C134.495 14.3683 134.627 14.8905 134.627 15.4995C134.627 16.1085 134.49 16.6349 134.219 17.0787C133.903 17.6149 133.462 17.8823 132.902 17.8823C132.331 17.8823 131.888 17.6191 131.571 17.0927C131.309 16.6573 131.177 16.1351 131.177 15.5261C131.177 14.8989 131.307 14.3683 131.571 13.9329C131.88 13.4065 132.328 13.1433 132.916 13.1433C133.487 13.1433 133.924 13.4065 134.233 13.9329Z",fill:"white"}),C.jsx("path",{d:"M142.57 18.8063H144.036V14.8527C144.036 13.8839 143.784 13.1545 143.276 12.6659C142.869 12.2669 142.356 12.0681 141.742 12.0681C141.253 12.0681 140.809 12.1927 140.41 12.4391C140.092 12.6338 139.83 12.9084 139.65 13.2357H139.609L139.541 12.2039H138.253C138.288 12.8843 138.305 13.5129 138.305 14.0925V18.8049H139.773V14.8905C139.773 14.4579 139.909 14.0799 140.181 13.7593C140.452 13.4387 140.804 13.2791 141.239 13.2791C142.128 13.2791 142.57 13.8615 142.57 15.0263V18.8063Z",fill:"white"}),C.jsx("path",{d:"M152.295 13.3057H153.909V12.2053H152.293V10.5631L150.856 10.9971V12.2067H149.891V13.3057H150.856V16.6335C150.856 17.4665 151.018 18.0601 151.346 18.4129C151.672 18.7657 152.123 18.9421 152.702 18.9421C153.171 18.9421 153.552 18.8875 153.842 18.7783L153.804 17.6653C153.632 17.7115 153.413 17.7339 153.15 17.7339C152.582 17.7339 152.295 17.3265 152.295 16.5117V13.3057Z",fill:"white"}),C.jsx("path",{d:"M160.209 18.8063H161.678V14.8821C161.678 13.9049 161.428 13.1657 160.931 12.6687C160.532 12.2697 160.03 12.0709 159.422 12.0709C158.564 12.0709 157.902 12.4321 157.44 13.1559H157.412V9.17847H155.946V18.8049H157.412V14.8359C157.409 14.6575 157.432 14.4798 157.48 14.3081C157.735 13.6221 158.2 13.2791 158.88 13.2791C159.767 13.2791 160.209 13.8713 160.209 15.0543V18.8063Z",fill:"white"}),C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M169.635 15.8593C169.67 15.6787 169.69 15.4575 169.69 15.1943C169.69 14.3711 169.495 13.6781 169.102 13.1181C168.615 12.4125 167.894 12.0597 166.944 12.0597C165.974 12.0597 165.206 12.4125 164.637 13.1181C164.093 13.7789 163.822 14.6077 163.822 15.6031C163.822 16.6167 164.112 17.4245 164.697 18.0265C165.28 18.6285 166.085 18.9295 167.107 18.9295C167.959 18.9295 168.696 18.7937 169.322 18.5221L169.092 17.5029C168.557 17.7115 167.964 17.8151 167.313 17.8151C166.725 17.8151 166.244 17.6611 165.872 17.3531C165.465 17.0087 165.255 16.5117 165.235 15.8593H169.635ZM168.006 13.6879C168.211 14.0265 168.31 14.4192 168.29 14.8149H165.235C165.271 14.4013 165.422 14.006 165.67 13.6739C165.801 13.486 165.976 13.3332 166.179 13.2289C166.383 13.1247 166.609 13.0722 166.838 13.0761C167.363 13.0761 167.751 13.2805 168.006 13.6879Z",fill:"white"}),C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M71.9236 44.1056H75.103L69.076 25.4744H65.3716L59.374 44.1056H62.4694L64.1284 38.633H70.182L71.9236 44.1056ZM68.082 31.472L69.657 36.337H64.6548L66.2018 31.472C66.5123 30.306 66.8073 29.136 67.0866 27.9622H67.1426C67.6032 29.8046 67.9154 30.975 68.082 31.472Z",fill:"white"}),C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M88.6746 42.6398C89.9094 41.314 90.5268 39.508 90.5268 37.2232C90.5268 35.1778 89.9976 33.5286 88.9364 32.2742C87.878 31.0212 86.555 30.3954 84.9702 30.3954C82.943 30.3954 81.4324 31.1962 80.437 32.8006H80.381L80.2144 30.6712H77.5894C77.6622 32.1832 77.7 33.6574 77.7 35.0938V49.5796H80.6848V42.5026H80.7408C81.515 43.7738 82.7862 44.4094 84.5558 44.4094C86.1952 44.4094 87.5686 43.82 88.6746 42.6398ZM86.6012 34.0984C87.192 34.9468 87.486 36.0248 87.486 37.3324C87.486 38.752 87.1724 39.8944 86.5452 40.761C85.9194 41.6262 85.0444 42.0602 83.9202 42.0602C82.9626 42.0602 82.1842 41.7242 81.585 41.0508C80.9858 40.3774 80.6862 39.5528 80.6862 38.5756V36.3356C80.6862 36.0976 80.7324 35.7952 80.8248 35.4256C81.0082 34.6332 81.4002 33.9934 81.9994 33.5034C82.5972 33.0176 83.2664 32.7712 84.0028 32.7712C85.0892 32.7712 85.9558 33.2136 86.6012 34.0984Z",fill:"white"}),C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.125 42.6398C105.361 41.314 105.979 39.508 105.979 37.2232C105.979 35.1778 105.448 33.5286 104.39
1791 32.2742C103.33 31.0212 102.007 30.3954 100.423 30.3954C98.3948 30.3954 96.8842 31.1962 95.8902 32.8006H95.8342L95.6676 30.6712H93.0426C93.1154 32.1832 93.1532 33.6574 93.1532 35.0938V49.5796H96.138V42.5026H96.194C96.9668 43.7738 98.238 44.4094 100.008 44.4094C101.647 44.4094 103.02 43.82 104.125 42.6398ZM102.052 34.0984C102.642 34.9468 102.938 36.0248 102.938 37.3324C102.938 38.752 102.624 39.8944 101.997 40.761C101.371 41.6262 100.496 42.0602 99.372 42.0602C98.4116 42.0602 97.6332 41.7228 97.034 41.0508C96.4376 40.3774 96.138 39.5528 96.138 38.5756V36.3356C96.138 36.0976 96.1856 35.7952 96.2766 35.4256C96.46 34.6332 96.8506 33.9934 97.4498 33.5034C98.0106 33.0303 98.7208 32.771 99.4546 32.7712C100.542 32.7712 101.406 33.2136 102.052 34.0984Z",fill:"white"}),C.jsx("path",{d:"M121.6 42.7504C122.704 41.755 123.255 40.4656 123.255 38.8808C123.255 37.5928 122.878 36.5134 122.123 35.651C121.366 34.7858 120.189 34.0312 118.586 33.3858C117.275 32.8692 116.372 32.3904 115.875 31.948C115.304 31.4692 115.02 30.8602 115.02 30.1238C115.015 29.8055 115.08 29.4899 115.209 29.1988C115.337 28.9076 115.528 28.6477 115.766 28.4368C116.354 27.9216 117.174 27.6626 118.224 27.6626C119.553 27.6626 120.74 27.9482 121.79 28.5194L122.536 26.0862C121.412 25.4968 120.004 25.2014 118.308 25.2014C116.407 25.2014 114.887 25.69 113.747 26.6686C112.603 27.6458 112.032 28.9016 112.032 30.4332C112.032 32.7768 113.662 34.559 116.924 35.7756C118.122 36.2194 118.98 36.6996 119.494 37.2162C120.011 37.7328 120.268 38.3698 120.268 39.1258C120.268 39.9742 119.956 40.6546 119.33 41.1614C118.702 41.6682 117.827 41.923 116.703 41.923C115.136 41.923 113.698 41.5254 112.388 40.733L111.696 43.2208C112.913 43.995 114.52 44.3814 116.525 44.3814C118.696 44.3814 120.386 43.8382 121.6 42.7504Z",fill:"white"}),C.jsx("path",{d:"M129.833 32.9112H133.123V30.6684H129.833V27.3238L126.902 28.2086V30.6684H124.942V32.9084H126.902V39.6802C126.902 41.3756 127.235 42.5824 127.897 43.302C128.562 44.0202 129.483 44.38 130.662 44.38C131.621 44.38 132.395 44.2694 132.983 44.0496L132.901 41.783C132.551 41.8754 132.108 41.9216 131.575 41.9216C130.413 41.9216 129.833 41.0928 129.833 39.4338V32.9112Z",fill:"white"}),C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M146.198 42.364C147.377 41.0382 147.967 39.3428 147.967 37.2778C147.967 35.2688 147.396 33.6294 146.251 32.3596C145.054 31.0506 143.468 30.3968 141.497 30.3968C139.451 30.3968 137.824 31.0604 136.619 32.3876C135.411 33.7134 134.809 35.4186 134.809 37.5004C134.809 39.4898 135.394 41.1404 136.564 42.448C137.735 43.7556 139.304 44.4094 141.275 44.4094C143.321 44.4094 144.962 43.729 146.198 42.364ZM144.07 34.1866C144.606 35.0728 144.871 36.1354 144.871 37.3744C144.871 38.612 144.593 39.6858 144.043 40.5888C143.398 41.678 142.503 42.224 141.364 42.224C140.2 42.224 139.299 41.6892 138.653 40.6168C138.117 39.732 137.852 38.6694 137.852 37.4304C137.852 36.1536 138.117 35.0742 138.653 34.1866C139.279 33.1156 140.19 32.5794 141.39 32.5794C142.549 32.5794 143.444 33.1142 144.07 34.1866Z",fill:"white"}),C.jsx("path",{d:"M156.729 33.2136C157.044 33.2124 157.359 33.2401 157.669 33.2962V30.45C157.448 30.415 157.199 30.3954 156.923 30.3954C156.145 30.3965 155.389 30.6489 154.766 31.115C154.085 31.6484 153.588 32.3596 153.273 33.243H153.191L153.082 30.6726H150.482C150.556 31.9438 150.594 33.3536 150.594 34.902L150.566 44.1056H153.549V37.0566C153.549 35.9884 153.798 35.1036 154.295 34.4036C154.867 33.6098 155.679 33.2136 156.729 33.2136Z",fill:"white"}),C.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M170.909 38.1066C170.989 37.6599 171.026 37.2065 171.018 36.7528C171.018 35.077 170.622 33.6658 169.834 32.5248C168.839 31.0884 167.373 30.3702 165.437 30.3702C163.465 30.3702 161.899 31.0884 160.74 32.5248C159.632 33.8702 159.079 35.5572 159.079 37.583C159.079 39.6466 159.674 41.2916 160.861 42.5166C162.051 43.7416 163.687 44.3548 165.77 44.3548C167.502 44.3548 169.002 44.079 170.274 43.5246L169.806 41.4526C168.718 41.8768 167.509 42.0882 166.183 42.0882C164.984 42.0882 164.009 41.7746 163.254 41.1488C162.422 40.4488 161.99 39.4338 161.955 38.1066H170.909ZM167.593 33.684C167.997 34.3294 168.192 35.0938 168.172 35.9786L161.955 35.9772C162.046 35.0756 162.341 34.3014 162.838 33.656C163.444 32.844 164.238 32.4394 165.214 32.4394C166.282 32.4394 16
1797.076 32.8538 167.593 33.684Z",fill:"white"})]}),fle=C.jsxs("svg",{width:"140",height:"48",viewBox:"0 0 180 53.333",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("title",{children:"Google Play store badge"}),C.jsx("path",{d:"m173.33 53.333h-166.66c-3.6666 0-6.6665-2.9999-6.6665-6.6665v-39.999c0-3.6666 2.9999-6.6665 6.6665-6.6665h166.66c3.6666 0 6.6665 2.9999 6.6665 6.6665v39.999c0 3.6666-2.9999 6.6665-6.6665 6.6665",fill:"#100f0d",strokeWidth:"0.13333"}),C.jsx("path",{d:"m173.33 1e-3h-166.66c-3.6666 0-6.6665 2.9999-6.6665 6.6665v39.999c0 3.6666 2.9999 6.6665 6.6665 6.6665h166.66c3.6666 0 6.6665-2.9999 6.6665-6.6665v-39.999c0-3.6666-2.9999-6.6665-6.6665-6.6665zm0 1.0661c3.0879 0 5.5999 2.5125 5.5999 5.6004v39.999c0 3.0879-2.5119 5.6004-5.5999 5.6004h-166.66c-3.0879 0-5.5993-2.5125-5.5993-5.6004v-39.999c0-3.0879 2.5114-5.6004 5.5993-5.6004h166.66",fill:"#a2a2a1",strokeWidth:"0.13333"}),C.jsx("path",{d:"m142.58 40h2.4879v-16.669h-2.4879zm22.409-10.664-2.8519 7.2264h-0.0853l-2.9599-7.2264h-2.6799l4.4399 10.1-2.5319 5.6185h2.5946l6.8412-15.718zm-14.11 8.7706c-0.81331 0-1.9506-0.40786-1.9506-1.4156 0-1.2865 1.416-1.7797 2.6373-1.7797 1.0933 0 1.6093 0.23546 2.2733 0.55732-0.19333 1.5442-1.5226 2.6379-2.9599 2.6379zm0.30133-9.1352c-1.8013 0-3.6666 0.79371-4.4386 2.5521l2.208 0.92184c0.47198-0.92184 1.3506-1.2218 2.2733-1.2218 1.2866 0 2.5946 0.77131 2.6159 2.1442v0.17133c-0.45066-0.25733-1.416-0.64318-2.5946-0.64318-2.3813 0-4.8039 1.3077-4.8039 3.7524 0 2.2302 1.952 3.6671 4.1386 3.6671 1.672 0 2.5959-0.75054 3.1732-1.6301h0.0867v1.2874h2.4026v-6.391c0-2.9593-2.2106-4.6103-5.0612-4.6103zm-15.376 2.3937h-3.5386v-5.7133h3.5386c1.86 0 2.9159 1.5396 2.9159 2.8566 0 1.2917-1.056 2.8567-2.9159 2.8567zm-0.064-8.0337h-5.9614v16.669h2.4869v-6.3149h3.4746c2.7573 0 5.4679-1.9958 5.4679-5.1765 0-3.1801-2.7106-5.1769-5.4679-5.1769zm-32.507 14.778c-1.7188 0-3.1573-1.4396-3.1573-3.415 0-1.9984 1.4385-3.4583 3.1573-3.4583 1.6969 0 3.0286 1.46 3.0286 3.4583 0 1.9754-1.3317 3.415-3.0286 3.415zm2.8567-7.8403h-0.086c-0.55826-0.66572-1.6328-1.2672-2.9853-1.2672-2.8359 0-5.4348 2.4921-5.4348 5.6925 0 3.1786 2.5989 5.6488 5.4348 5.6488 1.3525 0 2.427-0.6016 2.9853-1.2885h0.086v0.81558c0 2.1703-1.1598 3.3296-3.0286 3.3296-1.5245 0-2.4697-1.0953-2.8567-2.0188l-2.1691 0.90206c0.62238 1.503 2.2759 3.351 5.0259 3.351 2.9218 0 5.392-1.7188 5.392-5.9077v-10.181h-2.3634zm4.0822 9.7304h2.4906v-16.669h-2.4906zm6.164-5.4988c-0.0641-2.1911 1.6978-3.3078 2.9645-3.3078 0.98851 0 1.8254 0.49425 2.1057 1.2026zm7.7326-1.8906c-0.47238-1.2666-1.9114-3.6082-4.8541-3.6082-2.9218 0-5.3488 2.2983-5.3488 5.6707 0 3.1791 2.4062 5.6707 5.6275 5.6707 2.5989 0 4.1031-1.589 4.7264-2.513l-1.9333-1.289c-0.64465 0.94531-1.5249 1.5682-2.7931 1.5682-1.2666 0-2.1692-0.58012-2.7483-1.7186l7.5815-3.1359zm-60.409-1.8682v2.4057h5.7565c-0.17186 1.3532-0.62292 2.3411-1.3104 3.0286-0.83798 0.83745-2.1483 1.7614-4.4462 1.7614-3.5443 0-6.315-2.8567-6.315-6.4009s2.7707-6.4013 6.315-6.4013c1.9118 0 3.3077 0.75198 4.3388 1.7186l1.6974-1.6973c-1.4396-1.3745-3.351-2.427-6.0362-2.427-4.8552 0-8.9363 3.9524-8.9363 8.807 0 4.8541 4.0811 8.8066 8.9363 8.8066 2.6202 0 4.5967-0.85932 6.143-2.4702 1.5896-1.5896 2.0838-3.8234 2.0838-5.628 0-0.55785-0.04333-1.0734-0.1292-1.5032zm14.772 7.3675c-1.7188 0-3.201-1.4177-3.201-3.4368 0-2.0406 1.4822-3.4364 3.201-3.4364 1.7181 0 3.2003 1.3958 3.2003 3.4364 0 2.0191-1.4822 3.4368-3.2003 3.4368zm0-9.1075c-3.137 0-5.6927 2.3842-5.6927 5.6707 0 3.265 2.5557 5.6707 5.6927 5.6707 3.1358 0 5.692-2.4057 5.692-5.6707 0-3.2865-2.5562-5.6707-5.692-5.6707zm12.417 9.1075c-1.7176 0-3.2003-1.4177-3.2003-3.4368 0-2.0406 1.4828-3.4364 3.2003-3.4364 1.7188 0 3.2005 1.3958 3.2005 3.4364 0 2.0191-1.4817 3.4368-3.2005 3.4368zm0-9.1075c-3.1358 0-5.6915 2.3842-5.6915 5.6707 0 3.265 2.5557 5.6707 5.6915 5.6707 3.137 0 5.6927-2.4057 5.6927-5.6707 0-3.2865-2.5557-5.6707-5.6927-5.6707",fill:"#fff",strokeWidth:"0.13333"}),C.jsx("path",{d:"m27.622 25.899-14.194 15.066c5.34e-4 0.0031 0.0016 0.0057 0.0021 0.0089 0.43532 1.636 1.9296 2.8406 3.703 2.8406 0.70892 0 1.3745-0.19166 1.9453-0.52812l0.04533-0.02656 15.978-9.22-7.479-8.141",fill:"#eb3131",strokeWidth:"0.13333"}),C.jsx("path",{d:"m41.983 23.334-0.0136-0.0093-6.8982-3.999-7.7717 6.9156 7.7987 7.7977 6.8618-3.9592c1.203-0.64945 2.0197-1.9177 2.0197-3.3802 0-1.452-0.80571-2.7139-1.9968-3.3655",fill:"#f6b60b",strokeWidth:"0.13333"}),C.jsx("path",{d:"m13.426 12.37c-0.08533 0.31466-0.13018 0.64425-0.13018 0.98651v26.623c0 0.34162 0.04432 0.67233 0.13072 0.98587l14.684-14.681-14.684
179-13.914",fill:"#5778c5",strokeWidth:"0.13333"}),C.jsx("path",{d:"m27.727 26.668 7.3473-7.3451-15.96-9.2534c-0.58012-0.34746-1.2572-0.54799-1.9817-0.54799-1.7734 0-3.2697 1.2068-3.7051 2.8447-5.34e-4 0.0016-5.34e-4 0.0027-5.34e-4 0.0041l14.3 14.298",fill:"#3bad49",strokeWidth:"0.13333"}),C.jsx("path",{d:"m63.193 13.042h-3.8895v0.96251h2.9146c-0.0792 0.78545-0.39172 1.4021-0.91878 1.85-0.52705 0.44799-1.2 0.67292-1.9958 0.67292-0.87291 0-1.6125-0.30413-2.2186-0.90824-0.59385-0.61665-0.89584-1.3792-0.89584-2.2979 0-0.91864 0.30199-1.6812 0.89584-2.2978 0.60612-0.60412 1.3457-0.90624 2.2186-0.90624 0.44799 0 0.87504 0.07707 1.2666 0.24586 0.39172 0.16866 0.70625 0.40412 0.95211 0.70625l0.73958-0.73958c-0.33546-0.38132-0.76038-0.67292-1.2876-0.88544-0.52705-0.21253-1.077-0.31453-1.6708-0.31453-1.1645 0-2.1519 0.40412-2.9582 1.2104-0.80625 0.80825-1.2104 1.8041-1.2104 2.9811 0 1.177 0.40412 2.175 1.2104 2.9813 0.80625 0.80611 1.7937 1.2104 2.9582 1.2104 1.2229 0 2.1979-0.39172 2.9479-1.1876 0.66038-0.66238 0.99784-1.5582 0.99784-2.679 0-0.1896-0.02293-0.39172-0.05627-0.60425zm1.5068-3.7332v8.0249h4.6852v-0.98544h-3.654v-2.5457h3.2958v-0.96251h-3.2958v-2.5437h3.654v-0.98758zm11.255 0.98758v-0.98758h-5.5145v0.98758h2.2417v7.0373h1.0312v-7.0373zm4.9925-0.98758h-1.0312v8.0249h1.0312zm6.8066 0.98758v-0.98758h-5.5144v0.98758h2.2415v7.0373h1.0312v-7.0373zm10.406 0.05626c-0.79585-0.81877-1.7708-1.2229-2.9354-1.2229-1.1666 0-2.1415 0.40412-2.9374 1.2104-0.79585 0.79585-1.1874 1.7937-1.1874 2.9811s0.39159 2.1854 1.1874 2.9813c0.79585 0.80611 1.7708 1.2104 2.9374 1.2104 1.1541 0 2.1395-0.40426 2.9354-1.2104 0.79585-0.79585 1.1874-1.7938 1.1874-2.9813 0-1.177-0.39159-2.1729-1.1874-2.9686zm-5.1332 0.67078c0.59372-0.60412 1.3229-0.90624 2.1978-0.90624 0.87291 0 1.6021 0.30213 2.1854 0.90624 0.59372 0.59372 0.88531 1.3686 0.88531 2.2978 0 0.93131-0.29159 1.7041-0.88531 2.2979-0.58332 0.60412-1.3125 0.90824-2.1854 0.90824-0.87491 0-1.6041-0.30413-2.1978-0.90824-0.58132-0.60625-0.87291-1.3666-0.87291-2.2979 0-0.92918 0.29159-1.6916 0.87291-2.2978zm8.7706 1.3125-0.0437-1.548h0.0437l4.0791 6.5457h1.077v-8.0249h-1.0312v4.6957l0.0437 1.548h-0.0437l-3.8999-6.2437h-1.2562v8.0249h1.0312z",fill:"#fff",stroke:"#fff",strokeMiterlimit:10,strokeWidth:"0.26666"})]}),dle="style-module_items__S8GFs",Od={"social-container":"style-module_social-container__-e3Vb",items:dle,"items--active":"style-module_items--active__k4mIv","click-target--active":"style-module_click-target--active__dKBAA","multi-business-line-links":"style-module_multi-business-line-links__mKTwW","multi-business-line-link":"style-module_multi-business-line-link__MLZbg","account-name":"style-module_account-name__-5iER"},KN=({brand:e,children:t,className:n})=>C.jsx("li",{"data-testid":`social-button-${e}`,className:n,children:t}),hle=({multiBusinessLineSocial:{brand:e,icon:t},isActive:n,onClick:r})=>{const o=Or({[Od["click-target--active"]]:n});return C.jsx(KN,{brand:e,className:o,children:C.jsx($1,{"aria-label":`open ${e} social link menu`,onClick:r,children:C.jsx(C.Fragment,{children:t})})})},p8=()=>[{brand:"facebook",title:"The Stitch Fix Facebook Page",icon:C.jsx(rK,{title:"Facebook"}),businessLines:[{name:"Women",description:"/stitchfix"},{name:"Men",description:"/stitchfixmen"}]},{brand:"instagram",title:"Stitch Fix On Instagram",icon:C.jsx(oK,{title:"Instagram"}),businessLines:[{name:"Women",description:"@stitchfix"},{name:"Men",description:"@stitchfixmen"}]},{brand:"pinterest",title:"The Stitch Fix Pinterest Page",icon:C.jsx(sK,{title:"Pinterest"}),businessLines:[{name:"Women",description:"/stitchfix"},{name:"Men",description:"/stitchfixmen"}]},{brand:"twitter",title:"Stitch Fix on Twitter - @stitchfix",icon:C.jsx(fK,{title:"Twitter"}),businessLines:[{name:"Women",description:"@stitchfix"},{name:"Men",description:"@stitchfixmen"}]}],ple=()=>[{brand:"tiktok",title:"tiktok",icon:C.jsx(uK,{title:"TikTok"})},{brand:"youtube",title:"youtube",icon:C.jsx(hK,{title:"YouTube"})}],mle=({social:{brand:e,icon:t},socialLink:{linkHref:n}})=>C.jsx(KN,{brand:e,children:C.jsx($1,{"aria-label":`visit ${e}`,href:n,as:"a",children:C.jsx(C.Fragment,{children:t})})}),vle=({brand:e,businessLine:{name:t,description:n},multiBusinessLineLink:r})=>{const o=t==="Men"?"men":"women";return C.jsx("li",{children:C.jsxs("a",{href:r[o],className:Od["multi-business-line-link"],"aria-label":`visit ${e} for ${o}`,children:[C.jsx(dn,{height:"standard",family:"medium",scale:"2",children:t}),C.jsx(dn,{className:Od["account-name"],height:"standard",family:"regular",scale:"1",children:n})]})},t)},gle=({multiBusinessLineLink:e,multiBusinessLineSocial:{brand:t,businessLines:n},onClickAway:r})=>{const o=A.useRef(null);return ose(o,r),C.jsx("ul",{ref:o,className:Od["multi-business-line-links"],children:n.map(s=>C.jsx(vle,{brand:t,businessLine:s,multiBusinessLineLink:e},s.name))})},yle=({socialLinks:e})=>{const[t,n]=A.useState(null),r=Or(Od.items,{[Od["items--active"]]:wE(t)}),o=p8().find(({brand:f})=>f===t),s=p8(),l=ple();return C.jsxs("div",{className:Od["social-container"],children:[C.jsxs("ul",{className:r,children:[s.map(f=>C.jsx(hle,{multiBusinessLineSocial:f,isActive:t===f.brand,onClick:()=>n(f.brand)},f.brand)),l.map(f=>C.jsx(mle,{social:f,socialLink:e[f.brand]},f.brand))]}),wE(t)&&mu(o)&&C.jsx(gle,{multiBusinessLineLink:e[t],multiBusinessLineSocial:o,onClickAway:()=>n(null)})]})},$r={"content-grid":"style-module_content-grid__XPSFr","logo-region":"style-module_logo-region__GfN2p","footer__logo-svg":"style-module_footer__logo-svg__t8Krk","nav-links":"style-module_nav-links__vqj8h","nav-link-title":"style-module_nav-link-title__GVOpf","questions-list":"style-module_questions-list__aXqAo","list-group":"style-module_list-group__ZlgYT","returns-sm":"style-module_returns-sm__mqMj1","blog-desktop":"style-module_blog-desktop__9p-O-","social-buttons":"style-module_social-buttons__NInyS","social-app-region":"style-module_social-app-region__MgLtY","app-store":"style-module_app-store__0gxTx","app-store-link":"style-module_app-store-link__G4zsI"},O2={"legal-links-container":"style-module_legal-links-container__Uns8U","privacy-choices":"style-module_privacy-choices__Us47o","trademark-text":"style-module_trademark-text__3zlax","policy-links":"style-module_policy-links__-YpyR"},ble=()=>C.jsxs("span",{className:"For-CA-Users","data-testid":"ccpa-links",children:[" - ",C.jsx(Ft,{to:"/privacy#ca-notice",children:"CA Notice at Collection"})," - ",C.jsx("button",{type:"button",className:`${O2["privacy-choices"]} ot-sdk-show-settings`,children:"Your Privacy Choices"})]}),_le=()=>C.jsxs("div",{className:O2["legal-links-container"],"data-testid":"legal-links",children:[C.jsx(XN,{}),C.jsx(ZN,{})]}),XN=()=>C.jsxs(dn,{color:"blue-45",setting:"body-small-fixed",className:O2["policy-links"],as:"div","data-testid":"legal-footer-links",children:[C.jsx(Ft,{to:"/terms",children:"Terms of Use"})," - ",C.jsx(Ft,{to:"/accessibility",children:"Accessibility"})," - ",C.jsx(Ft,{to:"/privacy",children:"Privacy Policy"})," - ",C.jsx(Ft,{to:"https://www.stitchfix.com/supply-chain-information",children:"Supply Chain Information"})," - ",C.jsx(Ft,{to:"/privacy#marketing-companies",children:"Ad Choices"}),C.jsx(ble,{})," - ",C.jsx(Ft,{to:"/sitemap",children:"Sitemap"})]}),ZN=()=>C.jsx(dn,{className:O2["trademark-text"],color:"blue-45",setting:"body-small-fixed",children:"Stitch Fix and Fix are trademarks of Stitch Fix, Inc."}),zn=()=>{const e=Fn();e&&!e?.dataLayer&&(e.dataLayer=[]),e&&e.dataLayer?.push({event:"navigation",location:"footer"})},Sle={instagram:{women:"https://www.instagram.com/stitchfix",men:"https://www.instagram.com/stitchfixmen"},facebook:{women:"https://www.facebook.com/stitchfix",men:"https://www.facebook.com/stitchfixmen"},pinterest:{women:"https://www.pinterest.com/stitchfix",men:"https://www.pinterest.com/stitchfixmen"},twitter:{women:"https://www.twitter.com/stitchfix",men:"https://www.twitter.com/stitchfixmen"},tiktok:{linkHref:"https://www.tiktok.com/@stitchfix"},youtube:{linkHref:"https://www.youtube.com/stitchfix"}},Ele=()=>{const{client:e}=Vx(),t=!!e,n=e?.referrals.incentive?.senderCredit,[r,o]=A.useState(!1),[s,l]=A.useState(!1);A.useEffect(()=>{const m=Fn(),{userAgent:p=""}=m?.navigator||{};o(/Android/i.test(p)),l(/iPad|iPhone|iPod/i.test(p))},[]);const f=n&&n.value>0?`Refer & get ${fw(n.value,{inCents:!0,precision:0})}`:"Refer";return C.jsxs("div",{className:$r["content-grid"],children:[C.jsx("div",{className:$r["logo-region"],children:C.jsx("span",{className:$r["footer__logo-svg"],children:C.jsx(RY,{height:60,width:6
1795,title:"Stitch Fix"})})}),C.jsxs("ul",{className:$r["nav-links"],children:[C.jsxs("li",{children:[C.jsx(dn,{as:"h2",className:$r["nav-link-title"],color:"blue-45",setting:"title-xxsmall",children:"The Service"}),C.jsxs(dn,{as:"ul",setting:"body-medium-fixed",className:$r["list-group"],children:[!t&&C.jsxs(C.Fragment,{children:[C.jsx("li",{children:C.jsx(Ft,{to:"/gifts",onClick:zn,children:"Gift cards"})}),C.jsx("li",{children:C.jsx(Ft,{to:"/all/download",onClick:zn,children:"Download our App"})}),C.jsx("li",{children:C.jsx(Ft,{to:"/women/plus",onClick:zn,children:"Plus Sizes"})}),C.jsx("li",{children:C.jsx(Ft,{to:"/women/maternity",onClick:zn,children:"Maternity"})}),C.jsx("li",{children:C.jsx(Ft,{to:"/women/petite",onClick:zn,children:"Petite"})}),C.jsx("li",{children:C.jsx(Ft,{to:"/men/big-tall",onClick:zn,children:"Big & Tall"})}),C.jsx("li",{children:C.jsx(Ft,{to:"/women/jeans",onClick:zn,children:"Womenâs Jeans"})}),C.jsx("li",{children:C.jsx(Ft,{to:"/women/business-casual",onClick:zn,children:"Business Casual"})})]}),t&&C.jsxs(C.Fragment,{children:[C.jsx("li",{children:C.jsx(Ft,{to:"/women",onClick:zn,children:"Women"})}),C.jsx("li",{children:C.jsx(Ft,{to:"/kids",onClick:zn,children:"Kids"})}),C.jsx("li",{children:C.jsx(Ft,{to:"/men",onClick:zn,children:"Mens"})}),C.jsx("li",{children:C.jsx(Ft,{to:"/all/download",onClick:zn,children:"Download our App"})}),C.jsx("li",{children:C.jsx(Ft,{to:"/gifts",onClick:zn,children:"Gift cards"})}),C.jsx("li",{children:C.jsx(Ft,{to:"/client/referrals","data-ga":"footer-client-referrals",onClick:zn,children:f})})]})]})]}),C.jsxs("li",{children:[C.jsx(dn,{as:"h2",className:$r["nav-link-title"],color:"blue-45",setting:"title-xxsmall",children:"The Company"}),C.jsxs(dn,{as:"ul",setting:"body-medium-fixed",className:$r["list-group"],children:[C.jsx("li",{children:C.jsx(Ft,{to:"/about",onClick:zn,children:"About Us"})}),!t&&C.jsx("li",{className:$r["returns-sm"],children:C.jsx(Ft,{to:Cd.returns,onClick:zn,children:"Returns"})}),C.jsx("li",{children:C.jsx(Ft,{to:"/impact",onClick:zn,children:"Social Impact"})}),C.jsx("li",{className:$r["blog-desktop"],children:C.jsx(Ft,{to:"/women/blog/",onClick:zn,children:"Women's Blog"})}),C.jsx("li",{className:$r["blog-desktop"],children:C.jsx(Ft,{to:"/men/blog/",onClick:zn,children:"Men's Blog"})}),C.jsx("li",{children:C.jsx(Ft,{to:"https://newsroom.stitchfix.com/",onClick:zn,children:"Press"})}),C.jsx("li",{children:C.jsx(Ft,{to:"https://investors.stitchfix.com/",onClick:zn,children:"Investor Relations"})}),C.jsx("li",{children:C.jsx(Ft,{to:"/careers",onClick:zn,children:"Careers"})}),C.jsx("li",{children:C.jsx(Ft,{to:"https://multithreaded.stitchfix.com/blog/",onClick:zn,children:"Tech Blog"})}),C.jsx("li",{children:C.jsx(Ft,{to:"/all/affiliates",onClick:zn,children:"Affiliates"})})]})]}),C.jsxs("li",{className:$r["questions-list"],children:[C.jsx(dn,{as:"h2",className:$r["nav-link-title"],color:"blue-45",setting:"title-xxsmall",children:"Questions?"}),C.jsxs(dn,{as:"ul",setting:"body-medium-fixed",className:$r["list-group"],children:[C.jsx("li",{children:C.jsx(Ft,{to:Cd.help,onClick:zn,children:"Help"})}),C.jsx("li",{children:C.jsx(Ft,{to:Cd.returns,onClick:zn,children:"Returns"})})]})]})]}),C.jsxs("div",{className:$r["social-app-region"],children:[C.jsx("div",{className:$r["social-buttons"],children:C.jsx(yle,{socialLinks:Sle})}),C.jsxs("div",{className:$r["app-store"],children:[!r&&C.jsx(ki,{to:"https://itunes.apple.com/app/apple-store/id1022579925?pt=117196399&ct=global_footer&mt=8",className:$r["app-store-link"],title:"Download on the App Store",children:cle}),!s&&C.jsx(ki,{to:"https://play.google.com/store/apps/details?id=com.stitchfix.stitchfix&hl=en_US",className:$r["app-store-link"],title:"Get it on Google Play",children:fle})]})]}),C.jsx(XN,{}),C.jsx(ZN,{})]})},xle="style-module_footer__EqlsJ",wle="style-module_smallPage__DdHpi",Cle="style-module_footer__body__mkQ1X",P6={footer:xle,"sticky-footer":"style-module_sticky-footer__C3JxW","sticky-footer-page-wrap":"style-module_sticky-footer-page-wrap__zvF-6",smallPage:wle,footer__body:Cle,"sm-screen-header":"style-module_sm-screen-header__9R2lg","pre-footer":"style-module_pre-footer__Ky1zC","referral-incentive-pill":"style-module_referral-incentive-pill__CGQU9","sm-screen-help-link":"style-module_sm-screen-help-link__omD0w"},Tle=Fi.bind(P6),Rle=({legalContentOnly:e=!1})=>{const[t,n]=A.useState(!1);return A.useEffect(()=>{const r=u6(),o=r2();if(mu(r)&&mu(o)){const s=r.body.clientHeight,l=o.innerHeight,f=s-l;n(f<200)}},[]),C.jsx("div",{id:"sticky-footer","data-testid":"footer-content","data-hide-on-native-apps":!0,className:Tle("hidden-ios-webview",{smallPage:t}),children:C.jsx("footer",{className:P6.footer,"data-testid":"footer",children:C.jsx("div",{className:P6.footer__body,children:e?C.jsx(_le,{}):C.jsx(Ele,{})})})})},Ole=({legalContentOnly:e=!1,region:t="US"})=>{const{client:n}=Vx(),r=n?.capabilities?.needsOnboarding,o=e||t==="UK"||!!r;return C.jsx(Rle,{legalContentOnly:o})},JN=({region:e="US",rootUrl:t="",legalContentOnly:n=!1})=>C.jsx(X6,{children:C.jsx(wO,{rootUrl:t,mobileConfigKey:"showFooter",children:C.jsx(Ole,{region:e,legalContentOnly:n})})});JN.propTypes={region:B6,rootUrl:It.string,legalContentOnly:It.bool};const Ab=e=>{if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1},Ale=new Set(["__proto__","constructor","prototype","toString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
179ing"]),gs=(...e)=>e.reduce((t,n)=>{if(n===void 0)return t;if(Array.isArray(n))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(n).forEach(r=>{Ale.has(r)||(Array.isArray(t[r])&&Array.isArray(n[r])?t[r]=gs.options.mergeArrays?gs.options.uniqueArrayItems?Array.from(new Set(t[r].concat(n[r]))):[...t[r],...n[r]]:n[r]:Ab(t[r])&&Ab(n[r])?t[r]=gs(t[r],n[r]):!Ab(t[r])&&Ab(n[r])?t[r]=gs(n[r],void 0):t[r]=n[r]===void 0?gs.options.allowUndefinedOverrides?n[r]:t[r]:n[r])}),t},{}),F6={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};gs.options=F6;gs.withOptions=(e,...t)=>{gs.options=Object.assign(Object.assign({},F6),e);const n=gs(...t);return gs.options=F6,n};const kle={banners:[],client:{id:"8377233",businessLine:"WOMENS",region:"US",firstName:"Morris",capabilities:{canShop:!0,canScheduleFix:!0,needsOnboarding:!1},configParams:[{name:"algos.discovery_freestyle_shop",value:"treatment"}],featureFlags:[],referrals:{incentive:{senderCredit:{value:3e3,currency:"USD"}}},shoppingBag:{count:7},household:{members:[{id:"8377233",businessLine:"WOMENS",firstName:"Morris"},{id:"12345",businessLine:"KIDS",firstName:"Oscar"},{id:"23456",businessLine:"KIDS",firstName:"Skimbleshanks"},{id:"34567",businessLine:"KIDS",firstName:"Gus"},{id:"45678",businessLine:"KIDS",firstName:"Nermal"},{id:"56789",businessLine:"KIDS",firstName:"Grizabella"}]},stylefileStatus:"COMPLETE",vision:{canAccessVision:!0},stylistConnect:{channelId:null}},visitor:{countryCode:"US",id:"76ee0603-bc29-4da8-9559-ba164870df63"}},Es=e=>gs.withOptions({mergeArrays:!1},kle,e);Es({client:{shoppingBag:{count:0}}});Es({client:{capabilities:{canShop:!1}}});Es({banners:[{__typename:"ModeBannerSlim",id:"eligible-discount-promo-2",message:"Save 20% on all Freestyle purchases!",icon:"ERROR",slimVariant:"INVERSE",cta:{label:{key:"go-now",text:"Go now!"},url:"/categories"}}]});Es({client:{capabilities:{canShop:!0,needsOnboarding:!0},household:{members:[{id:"8377233",businessLine:"WOMENS",firstName:"Morris"},{id:"12345",businessLine:"KIDS",firstName:"Oscar"},{id:"8377238",businessLine:"KIDS",firstName:"Grizabella"}]}}});Es({client:{capabilities:{canShop:!1,needsOnboarding:!0},household:{members:[]}}});Es({client:{capabilities:{canShop:!0,needsOnboarding:!0},household:{members:[]},shoppingBag:{count:0}}});Es({client:{businessLine:"KIDS",firstName:"&Jeffery",household:{members:[{id:"8377236",businessLine:"MENS",firstName:" Chippo "},{id:"8377237",businessLine:"KIDS",firstName:"Ãlafur"},{id:"8377238",businessLine:"KIDS",firstName:"Jacqueline-Ashbury"},{id:"8377239",businessLine:"KIDS",firstName:"&Jeffery"},{id:"8377240",businessLine:"KIDS",firstName:"7 of 9"}]},referrals:{incentive:{senderCredit:null}}}});Es({client:{businessLine:"KIDS",firstName:"Oscar",id:"12345",shoppingBag:{count:0}}});Es({client:{businessLine:"KIDS",firstName:"Oscar",id:"12345",shoppingBag:{count:0},featureFlags:[{enabled:!0,name:"client.global.kids_categories"}]}});Es({client:{businessLine:"SHELL",capabilities:{needsOnboarding:!1},household:{members:[{id:"8377233",businessLine:"SHELL",firstName:"Morris"},{id:"12345",businessLine:"KIDS",firstName:"Oscar"}]}}});Es({client:{stylefileStatus:"INELIGIBLE"}});document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("knit-header"),t=document.getElementById("knit-footer");if(!e||!t)throw new Error("Knit header or footer element not found");const n=nC.createRoot(e),r=nC.createRoot(t);n.render(C.jsx(jJ,{children:C.jsx(YN,{rootUrl:"https://www.stitchfix.com",loginRedirectUrl:window.location.href})})),r.render(C.jsx(JN,{rootUrl:"https://www.stitchfix.com"}))});export{Dle as $,zle as A,bz as B,S3 as C,_z as D,Ta as E,$R as F,Ule as G,Ix as H,Ble as I,Tr as J,dG as K,qle as L,Su as M,Qt as N,t2 as O,Vle as P,ZH as Q,on as R,jd as S,Nx as T,jx as U,Jt as V,D_ as W,Fc as X,hG as Y,Mn as Z,pl as _,y1 as a,AL as a0,bH as a1,jt as a2,a7 as a3,Qle as a4,Gle as a5,$le as a6,Wle as a7,UD as a8,Pi as a9,B_ as aa,F1 as ab,Jp as ac,o7 as b,v7 as c,wI as d,mm as e,A5 as f,Fd as g,yr as h,Li as i,Zp as j,ut as k,Gn as l,Mle as m,Ca as n,F_ as o,$n as p,R8 as q,sm as r,Ii as s,pu as t,QR as u,um as v,Sz as w,Hle as x,NR as y,Ile 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.