(function(se){typeof define=="function"&&define.amd?define(se):se()})(function(){"use strict";var Q6=Object.defineProperty,Z6=Object.defineProperties;var J6=Object.getOwnPropertyDescriptors;var bu=Object.getOwnPropertySymbols;var $C=Object.prototype.hasOwnProperty,EC=Object.prototype.propertyIsEnumerable;var Km=(se,ie)=>(ie=Symbol[se])?ie:Symbol.for("Symbol."+se),e8=se=>{throw TypeError(se)},Wm=Math.pow,Hm=(se,ie,be)=>ie in se?Q6(se,ie,{enumerable:!0,configurable:!0,writable:!0,value:be}):se[ie]=be,k=(se,ie)=>{for(var be in ie||(ie={}))$C.call(ie,be)&&Hm(se,be,ie[be]);if(bu)for(var be of bu(ie))EC.call(ie,be)&&Hm(se,be,ie[be]);return se},B=(se,ie)=>Z6(se,J6(ie));var re=(se,ie)=>{var be={};for(var Oe in se)$C.call(se,Oe)&&ie.indexOf(Oe)<0&&(be[Oe]=se[Oe]);if(se!=null&&bu)for(var Oe of bu(se))ie.indexOf(Oe)<0&&EC.call(se,Oe)&&(be[Oe]=se[Oe]);return be};var Z=(se,ie,be)=>Hm(se,typeof ie!="symbol"?ie+"":ie,be);var t8=function(se,ie){this[0]=se,this[1]=ie};var js=se=>{var ie=se[Km("asyncIterator")],be=!1,Oe,ee={};return ie==null?(ie=se[Km("iterator")](),Oe=ft=>ee[ft]=Ii=>ie[ft](Ii)):(ie=ie.call(se),Oe=ft=>ee[ft]=Ii=>{if(be){if(be=!1,ft==="throw")throw Ii;return Ii}return be=!0,{done:!1,value:new t8(new Promise(xu=>{var ka=ie[ft](Ii);ka instanceof Object||e8("Object expected"),xu(ka)}),1)}}),ee[Km("iterator")]=()=>ee,Oe("next"),"throw"in ie?Oe("throw"):ee.throw=ft=>{throw ft},"return"in ie&&Oe("return"),ee};var pu,Fi;function se(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ie={exports:{}},be={},Oe={exports:{}},ee={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ft=Symbol.for("react.element"),Ii=Symbol.for("react.portal"),xu=Symbol.for("react.fragment"),ka=Symbol.for("react.strict_mode"),MC=Symbol.for("react.profiler"),DC=Symbol.for("react.provider"),AC=Symbol.for("react.context"),LC=Symbol.for("react.forward_ref"),jC=Symbol.for("react.suspense"),FC=Symbol.for("react.memo"),RC=Symbol.for("react.lazy"),Um=Symbol.iterator;function NC(t){return t===null||typeof t!="object"?null:(t=Um&&t[Um]||t["@@iterator"],typeof t=="function"?t:null)}var Ym={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gm=Object.assign,Xm={};function Tr(t,e,n){this.props=t,this.context=e,this.refs=Xm,this.updater=n||Ym}Tr.prototype.isReactComponent={},Tr.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},Tr.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function qm(){}qm.prototype=Tr.prototype;function _u(t,e,n){this.props=t,this.context=e,this.refs=Xm,this.updater=n||Ym}var wu=_u.prototype=new qm;wu.constructor=_u,Gm(wu,Tr.prototype),wu.isPureReactComponent=!0;var Qm=Array.isArray,Zm=Object.prototype.hasOwnProperty,Su={current:null},Jm={key:!0,ref:!0,__self:!0,__source:!0};function eg(t,e,n){var i,r={},s=null,o=null;if(e!=null)for(i in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)Zm.call(e,i)&&!Jm.hasOwnProperty(i)&&(r[i]=e[i]);var a=arguments.length-2;if(a===1)r.children=n;else if(1>>1,H=N[V];if(0>>1;Vr(ne,U))oer(st,ne)?(N[V]=st,N[oe]=U,V=oe):(N[V]=ne,N[Y]=U,V=Y);else if(oer(st,U))N[V]=st,N[oe]=U,V=oe;else break e}}return K}function r(N,K){var U=N.sortIndex-K.sortIndex;return U!==0?U:N.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,d=null,f=3,h=!1,v=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(N){for(var K=n(c);K!==null;){if(K.callback===null)i(c);else if(K.startTime<=N)i(c),K.sortIndex=K.expirationTime,e(l,K);else break;K=n(c)}}function w(N){if(y=!1,b(N),!v)if(n(l)!==null)v=!0,L(P);else{var K=n(c);K!==null&&F(w,K.startTime-N)}}function P(N,K){v=!1,y&&(y=!1,m(M),M=-1),h=!0;var U=f;try{for(b(K),d=n(l);d!==null&&(!(d.expirationTime>K)||N&&!R());){var V=d.callback;if(typeof V=="function"){d.callback=null,f=d.priorityLevel;var H=V(d.expirationTime<=K);K=t.unstable_now(),typeof H=="function"?d.callback=H:d===n(l)&&i(l),b(K)}else i(l);d=n(l)}if(d!==null)var J=!0;else{var Y=n(c);Y!==null&&F(w,Y.startTime-K),J=!1}return J}finally{d=null,f=U,h=!1}}var E=!1,A=null,M=-1,S=5,C=-1;function R(){return!(t.unstable_now()-CN||125V?(N.sortIndex=U,e(c,N),n(l)===null&&N===n(c)&&(y?(m(M),M=-1):y=!0,F(w,U-V))):(N.sortIndex=H,e(l,N),v||h||(v=!0,L(P))),N},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(N){var K=f;return function(){var U=f;f=K;try{return N.apply(this,arguments)}finally{f=U}}}})(og),sg.exports=og;var GC=sg.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var XC=_,Tt=GC;function W(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;ne}return!1}function lt(t,e,n,i,r,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){We[t]=new lt(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];We[e]=new lt(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){We[t]=new lt(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){We[t]=new lt(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){We[t]=new lt(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){We[t]=new lt(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){We[t]=new lt(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){We[t]=new lt(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){We[t]=new lt(t,5,!1,t.toLowerCase(),null,!1,!1)});var $u=/[\-:]([a-z])/g;function Eu(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace($u,Eu);We[e]=new lt(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace($u,Eu);We[e]=new lt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace($u,Eu);We[e]=new lt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){We[t]=new lt(t,1,!1,t.toLowerCase(),null,!1,!1)}),We.xlinkHref=new lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){We[t]=new lt(t,1,!1,t.toLowerCase(),null,!0,!0)});function Mu(t,e,n,i){var r=We.hasOwnProperty(e)?We[e]:null;(r!==null?r.type!==0:i||!(2a||r[o]!==s[a]){var l=` `+r[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{Iu=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Ns(t):""}function ek(t){switch(t.tag){case 5:return Ns(t.type);case 16:return Ns("Lazy");case 13:return Ns("Suspense");case 19:return Ns("SuspenseList");case 0:case 2:case 15:return t=Ou(t.type,!1),t;case 11:return t=Ou(t.type.render,!1),t;case 1:return t=Ou(t.type,!0),t;default:return""}}function Vu(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Mr:return"Fragment";case Er:return"Portal";case Au:return"Profiler";case Du:return"StrictMode";case ju:return"Suspense";case Fu:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case dg:return(t.displayName||"Context")+".Consumer";case ug:return(t._context.displayName||"Context")+".Provider";case Lu:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ru:return e=t.displayName||null,e!==null?e:Vu(t.type)||"Memo";case Zn:e=t._payload,t=t._init;try{return Vu(t(e))}catch(n){}}return null}function tk(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Vu(e);case 8:return e===Du?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Jn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function pg(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function nk(t){var e=pg(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(o){i=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Da(t){t._valueTracker||(t._valueTracker=nk(t))}function mg(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=pg(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function Aa(t){if(t=t||(typeof document!="undefined"?document:void 0),typeof t=="undefined")return null;try{return t.activeElement||t.body}catch(e){return t.body}}function zu(t,e){var n=e.checked;return Ce({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:t._wrapperState.initialChecked})}function gg(t,e){var n=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;n=Jn(e.value!=null?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function vg(t,e){e=e.checked,e!=null&&Mu(t,"checked",e,!1)}function Bu(t,e){vg(t,e);var n=Jn(e.value),i=e.type;if(n!=null)i==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(i==="submit"||i==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Ku(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ku(t,e.type,Jn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function yg(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Ku(t,e,n){(e!=="number"||Aa(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Is=Array.isArray;function Dr(t,e,n,i){if(t=t.options,e){e={};for(var r=0;r"+e.valueOf().toString()+"",e=La.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Os(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Vs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ik=["Webkit","ms","Moz","O"];Object.keys(Vs).forEach(function(t){ik.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Vs[e]=Vs[t]})});function Pg(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Vs.hasOwnProperty(t)&&Vs[t]?(""+e).trim():e+"px"}function Cg(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var i=n.indexOf("--")===0,r=Pg(n,e[n],i);n==="float"&&(n="cssFloat"),i?t.setProperty(n,r):t[n]=r}}var rk=Ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Uu(t,e){if(e){if(rk[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(W(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(W(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(W(61))}if(e.style!=null&&typeof e.style!="object")throw Error(W(62))}}function Yu(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 Gu=null;function Xu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var qu=null,Ar=null,Lr=null;function kg(t){if(t=lo(t)){if(typeof qu!="function")throw Error(W(280));var e=t.stateNode;e&&(e=nl(e),qu(t.stateNode,t.type,e))}}function Tg(t){Ar?Lr?Lr.push(t):Lr=[t]:Ar=t}function $g(){if(Ar){var t=Ar,e=Lr;if(Lr=Ar=null,kg(t),e)for(t=0;t>>=0,t===0?32:31-(mk(t)/gk|0)|0}var Ia=64,Oa=4194304;function Hs(t){switch(t&-t){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: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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Va(t,e){var n=t.pendingLanes;if(n===0)return 0;var i=0,r=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var a=o&~r;a!==0?i=Hs(a):(s&=o,s!==0&&(i=Hs(s)))}else o=n&~r,o!==0?i=Hs(o):s!==0&&(i=Hs(s));if(i===0)return 0;if(e!==0&&e!==i&&!(e&r)&&(r=i&-i,s=e&-e,r>=s||r===16&&(s&4194240)!==0))return e;if(i&4&&(i|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=i;0n;n++)e.push(t);return e}function Ws(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Qt(e),t[e]=n}function xk(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var i=t.eventTimes;for(t=t.expirationTimes;0=Js),nv=" ",iv=!1;function rv(t,e){switch(t){case"keyup":return Gk.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sv(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Rr=!1;function qk(t,e){switch(t){case"compositionend":return sv(e);case"keypress":return e.which!==32?null:(iv=!0,nv);case"textInput":return t=e.data,t===nv&&iv?null:t;default:return null}}function Qk(t,e){if(Rr)return t==="compositionend"||!pd&&rv(t,e)?(t=qg(),Wa=ld=ri=null,Rr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fv(n)}}function pv(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?pv(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function mv(){for(var t=window,e=Aa();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch(i){n=!1}if(n)t=e.contentWindow;else break;e=Aa(t.document)}return e}function vd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function oT(t){var e=mv(),n=t.focusedElem,i=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&pv(n.ownerDocument.documentElement,n)){if(i!==null&&vd(n)){if(e=i.start,t=i.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var r=n.textContent.length,s=Math.min(i.start,r);i=i.end===void 0?s:Math.min(i.end,r),!t.extend&&s>i&&(r=i,i=s,s=r),r=hv(n,s);var o=hv(n,i);r&&o&&(t.rangeCount!==1||t.anchorNode!==r.node||t.anchorOffset!==r.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(r.node,r.offset),t.removeAllRanges(),s>i?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Nr=null,yd=null,io=null,bd=!1;function gv(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bd||Nr==null||Nr!==Aa(i)||(i=Nr,"selectionStart"in i&&vd(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),io&&no(io,i)||(io=i,i=Ja(yd,"onSelect"),0Br||(t.current=Dd[Br],Dd[Br]=null,Br--)}function ye(t,e){Br++,Dd[Br]=t.current,t.current=e}var li={},Ze=ai(li),ht=ai(!1),Bi=li;function Kr(t,e){var n=t.type.contextTypes;if(!n)return li;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in n)r[s]=e[s];return i&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function pt(t){return t=t.childContextTypes,t!=null}function il(){_e(ht),_e(Ze)}function Dv(t,e,n){if(Ze.current!==li)throw Error(W(168));ye(Ze,e),ye(ht,n)}function Av(t,e,n){var i=t.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var r in i)if(!(r in e))throw Error(W(108,tk(t)||"Unknown",r));return Ce({},n,i)}function rl(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||li,Bi=Ze.current,ye(Ze,t),ye(ht,ht.current),!0}function Lv(t,e,n){var i=t.stateNode;if(!i)throw Error(W(169));n?(t=Av(t,e,Bi),i.__reactInternalMemoizedMergedChildContext=t,_e(ht),_e(Ze),ye(Ze,t)):_e(ht),ye(ht,n)}var kn=null,sl=!1,Ad=!1;function jv(t){kn===null?kn=[t]:kn.push(t)}function yT(t){sl=!0,jv(t)}function ci(){if(!Ad&&kn!==null){Ad=!0;var t=0,e=me;try{var n=kn;for(me=1;t>=o,r-=o,Tn=1<<32-Qt(e)+r|n<M?(S=A,A=null):S=A.sibling;var C=f(m,A,b[M],w);if(C===null){A===null&&(A=S);break}t&&A&&C.alternate===null&&e(m,A),g=s(C,g,M),E===null?P=C:E.sibling=C,E=C,A=S}if(M===b.length)return n(m,A),Se&&Hi(m,M),P;if(A===null){for(;MM?(S=A,A=null):S=A.sibling;var R=f(m,A,C.value,w);if(R===null){A===null&&(A=S);break}t&&A&&R.alternate===null&&e(m,A),g=s(R,g,M),E===null?P=R:E.sibling=R,E=R,A=S}if(C.done)return n(m,A),Se&&Hi(m,M),P;if(A===null){for(;!C.done;M++,C=b.next())C=d(m,C.value,w),C!==null&&(g=s(C,g,M),E===null?P=C:E.sibling=C,E=C);return Se&&Hi(m,M),P}for(A=i(m,A);!C.done;M++,C=b.next())C=h(A,m,M,C.value,w),C!==null&&(t&&C.alternate!==null&&A.delete(C.key===null?M:C.key),g=s(C,g,M),E===null?P=C:E.sibling=C,E=C);return t&&A.forEach(function($){return e(m,$)}),Se&&Hi(m,M),P}function x(m,g,b,w){if(typeof b=="object"&&b!==null&&b.type===Mr&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ma:e:{for(var P=b.key,E=g;E!==null;){if(E.key===P){if(P=b.type,P===Mr){if(E.tag===7){n(m,E.sibling),g=r(E,b.props.children),g.return=m,m=g;break e}}else if(E.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Zn&&Vv(P)===E.type){n(m,E.sibling),g=r(E,b.props),g.ref=co(m,E,b),g.return=m,m=g;break e}n(m,E);break}else e(m,E);E=E.sibling}b.type===Mr?(g=Zi(b.props.children,m.mode,w,b.key),g.return=m,m=g):(w=Ll(b.type,b.key,b.props,null,m.mode,w),w.ref=co(m,g,b),w.return=m,m=w)}return o(m);case Er:e:{for(E=b.key;g!==null;){if(g.key===E)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(m,g.sibling),g=r(g,b.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else e(m,g);g=g.sibling}g=Mf(b,m.mode,w),g.return=m,m=g}return o(m);case Zn:return E=b._init,x(m,g,E(b._payload),w)}if(Is(b))return v(m,g,b,w);if(Rs(b))return y(m,g,b,w);cl(m,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(n(m,g.sibling),g=r(g,b),g.return=m,m=g):(n(m,g),g=Ef(b,m.mode,w),g.return=m,m=g),o(m)):n(m,g)}return x}var Yr=zv(!0),Bv=zv(!1),ul=ai(null),dl=null,Gr=null,Id=null;function Od(){Id=Gr=dl=null}function Vd(t){var e=ul.current;_e(ul),t._currentValue=e}function zd(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function Xr(t,e){dl=t,Id=Gr=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(mt=!0),t.firstContext=null)}function Ot(t){var e=t._currentValue;if(Id!==t)if(t={context:t,memoizedValue:e,next:null},Gr===null){if(dl===null)throw Error(W(308));Gr=t,dl.dependencies={lanes:0,firstContext:t}}else Gr=Gr.next=t;return e}var Wi=null;function Bd(t){Wi===null?Wi=[t]:Wi.push(t)}function Kv(t,e,n,i){var r=e.interleaved;return r===null?(n.next=n,Bd(e)):(n.next=r.next,r.next=n),e.interleaved=n,En(t,i)}function En(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var ui=!1;function Kd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hv(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Mn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function di(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,ae&2){var r=i.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),i.pending=e,En(t,n)}return r=i.interleaved,r===null?(e.next=e,Bd(i)):(e.next=r.next,r.next=e),i.interleaved=e,En(t,n)}function fl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,id(t,n)}}function Wv(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?r=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?r=s=e:s=s.next=e}else r=s=e;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:i.shared,effects:i.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function hl(t,e,n,i){var r=t.updateQueue;ui=!1;var s=r.firstBaseUpdate,o=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(s!==null){var d=r.baseState;o=0,u=c=l=null,a=s;do{var f=a.lane,h=a.eventTime;if((i&f)===f){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=t,y=a;switch(f=e,h=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(h,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,f=typeof v=="function"?v.call(h,d,f):v,f==null)break e;d=Ce({},d,f);break e;case 2:ui=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,f=r.effects,f===null?r.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,o|=f;if(a=a.next,a===null){if(a=r.shared.pending,a===null)break;f=a,a=f.next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}while(!0);if(u===null&&(l=d),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,e=r.shared.interleaved,e!==null){r=e;do o|=r.lane,r=r.next;while(r!==e)}else s===null&&(r.shared.lanes=0);Gi|=o,t.lanes=o,t.memoizedState=d}}function Uv(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var i=Gd.transition;Gd.transition={};try{t(!1),e()}finally{me=n,Gd.transition=i}}function dy(){return Vt().memoizedState}function wT(t,e,n){var i=mi(t);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},fy(t))hy(e,n);else if(n=Kv(t,e,n,i),n!==null){var r=ut();rn(n,t,i,r),py(n,e,i)}}function ST(t,e,n){var i=mi(t),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(fy(t))hy(e,r);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,n);if(r.hasEagerState=!0,r.eagerState=a,Zt(a,o)){var l=e.interleaved;l===null?(r.next=r,Bd(e)):(r.next=l.next,l.next=r),e.interleaved=r;return}}catch(c){}finally{}n=Kv(t,e,r,i),n!==null&&(r=ut(),rn(n,t,i,r),py(n,e,i))}}function fy(t){var e=t.alternate;return t===Te||e!==null&&e===Te}function hy(t,e){po=gl=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function py(t,e,n){if(n&4194240){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,id(t,n)}}var bl={readContext:Ot,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},PT={readContext:Ot,useCallback:function(t,e){return dn().memoizedState=[t,e===void 0?null:e],t},useContext:Ot,useEffect:iy,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,vl(4194308,4,oy.bind(null,e,t),n)},useLayoutEffect:function(t,e){return vl(4194308,4,t,e)},useInsertionEffect:function(t,e){return vl(4,2,t,e)},useMemo:function(t,e){var n=dn();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=dn();return e=n!==void 0?n(e):e,i.memoizedState=i.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},i.queue=t,t=t.dispatch=wT.bind(null,Te,t),[i.memoizedState,t]},useRef:function(t){var e=dn();return t={current:t},e.memoizedState=t},useState:ty,useDebugValue:tf,useDeferredValue:function(t){return dn().memoizedState=t},useTransition:function(){var t=ty(!1),e=t[0];return t=_T.bind(null,t[1]),dn().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var i=Te,r=dn();if(Se){if(n===void 0)throw Error(W(407));n=n()}else{if(n=e(),ze===null)throw Error(W(349));Yi&30||qv(i,e,n)}r.memoizedState=n;var s={value:n,getSnapshot:e};return r.queue=s,iy(Zv.bind(null,i,s,t),[t]),i.flags|=2048,vo(9,Qv.bind(null,i,s,n,e),void 0,null),n},useId:function(){var t=dn(),e=ze.identifierPrefix;if(Se){var n=$n,i=Tn;n=(i&~(1<<32-Qt(i)-1)).toString(32)+n,e=":"+e+"R"+n,n=mo++,0<\/script>",t=t.removeChild(t.firstChild)):typeof i.is=="string"?t=o.createElement(n,{is:i.is}):(t=o.createElement(n),n==="select"&&(o=t,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):t=o.createElementNS(t,n),t[cn]=e,t[ao]=i,jy(t,e,!1,!1),e.stateNode=t;e:{switch(o=Yu(n,i),n){case"dialog":xe("cancel",t),xe("close",t),r=i;break;case"iframe":case"object":case"embed":xe("load",t),r=i;break;case"video":case"audio":for(r=0;res&&(e.flags|=128,i=!0,yo(s,!1),e.lanes=4194304)}else{if(!i)if(t=pl(o),t!==null){if(e.flags|=128,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),yo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Se)return et(e),null}else 2*Ae()-s.renderingStartTime>es&&n!==1073741824&&(e.flags|=128,i=!0,yo(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Ae(),e.sibling=null,n=ke.current,ye(ke,i?n&1|2:n&1),e):(et(e),null);case 22:case 23:return kf(),i=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?Dt&1073741824&&(et(e),e.subtreeFlags&6&&(e.flags|=8192)):et(e),null;case 24:return null;case 25:return null}throw Error(W(156,e.tag))}function AT(t,e){switch(jd(e),e.tag){case 1:return pt(e.type)&&il(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return qr(),_e(ht),_e(Ze),Yd(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Wd(e),null;case 13:if(_e(ke),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(W(340));Ur()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return _e(ke),null;case 4:return qr(),null;case 10:return Vd(e.type._context),null;case 22:case 23:return kf(),null;case 24:return null;default:return null}}var Sl=!1,tt=!1,LT=typeof WeakSet=="function"?WeakSet:Set,X=null;function Zr(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){Me(t,e,i)}else n.current=null}function pf(t,e,n){try{n()}catch(i){Me(t,e,i)}}var Ny=!1;function jT(t,e){if(Cd=Ka,t=mv(),vd(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{n.nodeType,s.nodeType}catch(w){n=null;break e}var o=0,a=-1,l=-1,c=0,u=0,d=t,f=null;t:for(;;){for(var h;d!==n||r!==0&&d.nodeType!==3||(a=o+r),d!==s||i!==0&&d.nodeType!==3||(l=o+i),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===t)break t;if(f===n&&++c===r&&(a=o),f===s&&++u===i&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(kd={focusedElem:t,selectionRange:n},Ka=!1,X=e;X!==null;)if(e=X,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,X=t;else for(;X!==null;){e=X;try{var v=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,x=v.memoizedState,m=e.stateNode,g=m.getSnapshotBeforeUpdate(e.elementType===e.type?y:en(e.type,y),x);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(w){Me(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,X=t;break}X=e.return}return v=Ny,Ny=!1,v}function bo(t,e,n){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var r=i=i.next;do{if((r.tag&t)===t){var s=r.destroy;r.destroy=void 0,s!==void 0&&pf(e,n,s)}r=r.next}while(r!==i)}}function Pl(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function mf(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function Iy(t){var e=t.alternate;e!==null&&(t.alternate=null,Iy(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[cn],delete e[ao],delete e[Md],delete e[gT],delete e[vT])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Oy(t){return t.tag===5||t.tag===3||t.tag===4}function Vy(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Oy(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function gf(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=tl));else if(i!==4&&(t=t.child,t!==null))for(gf(t,e,n),t=t.sibling;t!==null;)gf(t,e,n),t=t.sibling}function vf(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(t=t.child,t!==null))for(vf(t,e,n),t=t.sibling;t!==null;)vf(t,e,n),t=t.sibling}var Ue=null,tn=!1;function fi(t,e,n){for(n=n.child;n!==null;)zy(t,e,n),n=n.sibling}function zy(t,e,n){if(ln&&typeof ln.onCommitFiberUnmount=="function")try{ln.onCommitFiberUnmount(Na,n)}catch(a){}switch(n.tag){case 5:tt||Zr(n,e);case 6:var i=Ue,r=tn;Ue=null,fi(t,e,n),Ue=i,tn=r,Ue!==null&&(tn?(t=Ue,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Ue.removeChild(n.stateNode));break;case 18:Ue!==null&&(tn?(t=Ue,n=n.stateNode,t.nodeType===8?Ed(t.parentNode,n):t.nodeType===1&&Ed(t,n),qs(t)):Ed(Ue,n.stateNode));break;case 4:i=Ue,r=tn,Ue=n.stateNode.containerInfo,tn=!0,fi(t,e,n),Ue=i,tn=r;break;case 0:case 11:case 14:case 15:if(!tt&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){r=i=i.next;do{var s=r,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&pf(n,e,o),r=r.next}while(r!==i)}fi(t,e,n);break;case 1:if(!tt&&(Zr(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(a){Me(n,e,a)}fi(t,e,n);break;case 21:fi(t,e,n);break;case 22:n.mode&1?(tt=(i=tt)||n.memoizedState!==null,fi(t,e,n),tt=i):fi(t,e,n);break;default:fi(t,e,n)}}function By(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new LT),e.forEach(function(i){var r=KT.bind(null,t,i);n.has(i)||(n.add(i),i.then(r,r))})}}function nn(t,e){var n=e.deletions;if(n!==null)for(var i=0;ir&&(r=o),i&=~s}if(i=r,i=Ae()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*RT(i/1960))-i,10t?16:t,pi===null)var i=!1;else{if(t=pi,pi=null,El=0,ae&6)throw Error(W(331));var r=ae;for(ae|=4,X=t.current;X!==null;){var s=X,o=s.child;if(X.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lAe()-xf?qi(t,0):bf|=n),vt(t,e)}function t0(t,e){e===0&&(t.mode&1?(e=Oa,Oa<<=1,!(Oa&130023424)&&(Oa=4194304)):e=1);var n=ut();t=En(t,e),t!==null&&(Ws(t,e,n),vt(t,n))}function BT(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),t0(t,n)}function KT(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode,r=t.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=t.stateNode;break;default:throw Error(W(314))}i!==null&&i.delete(e),t0(t,n)}var n0;n0=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||ht.current)mt=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return mt=!1,MT(t,e,n);mt=!!(t.flags&131072)}else mt=!1,Se&&e.flags&1048576&&Fv(e,al,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;wl(t,e),t=e.pendingProps;var r=Kr(e,Ze.current);Xr(e,n),r=qd(null,e,i,t,r,n);var s=Qd();return e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,pt(i)?(s=!0,rl(e)):s=!1,e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Kd(e),r.updater=xl,e.stateNode=r,r._reactInternals=e,rf(e,i,t,n),e=lf(null,e,i,!0,s,n)):(e.tag=0,Se&&s&&Ld(e),ct(null,e,r,n),e=e.child),e;case 16:i=e.elementType;e:{switch(wl(t,e),t=e.pendingProps,r=i._init,i=r(i._payload),e.type=i,r=e.tag=WT(i),t=en(i,t),r){case 0:e=af(null,e,i,t,n);break e;case 1:e=$y(null,e,i,t,n);break e;case 11:e=Sy(null,e,i,t,n);break e;case 14:e=Py(null,e,i,en(i.type,t),n);break e}throw Error(W(306,i,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:en(i,r),af(t,e,i,r,n);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:en(i,r),$y(t,e,i,r,n);case 3:e:{if(Ey(e),t===null)throw Error(W(387));i=e.pendingProps,s=e.memoizedState,r=s.element,Hv(t,e),hl(e,i,null,n);var o=e.memoizedState;if(i=o.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){r=Qr(Error(W(423)),e),e=My(t,e,i,n,r);break e}else if(i!==r){r=Qr(Error(W(424)),e),e=My(t,e,i,n,r);break e}else for(Mt=oi(e.stateNode.containerInfo.firstChild),Et=e,Se=!0,Jt=null,n=Bv(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ur(),i===r){e=Dn(t,e,n);break e}ct(t,e,i,n)}e=e.child}return e;case 5:return Yv(e),t===null&&Rd(e),i=e.type,r=e.pendingProps,s=t!==null?t.memoizedProps:null,o=r.children,Td(i,r)?o=null:s!==null&&Td(i,s)&&(e.flags|=32),Ty(t,e),ct(t,e,o,n),e.child;case 6:return t===null&&Rd(e),null;case 13:return Dy(t,e,n);case 4:return Hd(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=Yr(e,null,i,n):ct(t,e,i,n),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:en(i,r),Sy(t,e,i,r,n);case 7:return ct(t,e,e.pendingProps,n),e.child;case 8:return ct(t,e,e.pendingProps.children,n),e.child;case 12:return ct(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(i=e.type._context,r=e.pendingProps,s=e.memoizedProps,o=r.value,ye(ul,i._currentValue),i._currentValue=o,s!==null)if(Zt(s.value,o)){if(s.children===r.children&&!ht.current){e=Dn(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===i){if(s.tag===1){l=Mn(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),zd(s.return,n,e),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(W(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),zd(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ct(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps.children,Xr(e,n),r=Ot(r),i=i(r),e.flags|=1,ct(t,e,i,n),e.child;case 14:return i=e.type,r=en(i,e.pendingProps),r=en(i.type,r),Py(t,e,i,r,n);case 15:return Cy(t,e,e.type,e.pendingProps,n);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:en(i,r),wl(t,e),e.tag=1,pt(i)?(t=!0,rl(e)):t=!1,Xr(e,n),gy(e,i,r),rf(e,i,r,n),lf(null,e,i,!0,t,n);case 19:return Ly(t,e,n);case 22:return ky(t,e,n)}throw Error(W(156,e.tag))};function i0(t,e){return Rg(t,e)}function HT(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(t,e,n,i){return new HT(t,e,n,i)}function $f(t){return t=t.prototype,!(!t||!t.isReactComponent)}function WT(t){if(typeof t=="function")return $f(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Lu)return 11;if(t===Ru)return 14}return 2}function vi(t,e){var n=t.alternate;return n===null?(n=Bt(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Ll(t,e,n,i,r,s){var o=2;if(i=t,typeof t=="function")$f(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Mr:return Zi(n.children,r,s,e);case Du:o=8,r|=8;break;case Au:return t=Bt(12,n,e,r|2),t.elementType=Au,t.lanes=s,t;case ju:return t=Bt(13,n,e,r),t.elementType=ju,t.lanes=s,t;case Fu:return t=Bt(19,n,e,r),t.elementType=Fu,t.lanes=s,t;case fg:return jl(n,r,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case ug:o=10;break e;case dg:o=9;break e;case Lu:o=11;break e;case Ru:o=14;break e;case Zn:o=16,i=null;break e}throw Error(W(130,t==null?t:typeof t,""))}return e=Bt(o,n,e,r),e.elementType=t,e.type=i,e.lanes=s,e}function Zi(t,e,n,i){return t=Bt(7,t,i,e),t.lanes=n,t}function jl(t,e,n,i){return t=Bt(22,t,i,e),t.elementType=fg,t.lanes=n,t.stateNode={isHidden:!1},t}function Ef(t,e,n){return t=Bt(6,t,null,e),t.lanes=n,t}function Mf(t,e,n){return e=Bt(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function UT(t,e,n,i,r){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nd(0),this.expirationTimes=nd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nd(0),this.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Df(t,e,n,i,r,s,o,a,l){return t=new UT(t,e,n,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Bt(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kd(s),t}function YT(t,e,n){var i=3t(...i);return new Proxy(n,{get:(i,r)=>r==="create"?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}function Bl(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Ff=t=>Array.isArray(t);function d0(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function Rf(t,e,n,i){if(typeof e=="function"){const[r,s]=f0(i);e=e(n!==void 0?n:t.custom,r,s)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[r,s]=f0(i);e=e(n!==void 0?n:t.custom,r,s)}return e}function Kl(t,e,n){const i=t.getProps();return Rf(i,e,n!==void 0?n:i.custom,t)}const Nf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],If=["initial",...Nf],Co=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ji=new Set(Co),Ln=t=>t*1e3,jn=t=>t/1e3,JT={type:"spring",stiffness:500,damping:25,restSpeed:10},e$=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),t$={type:"keyframes",duration:.8},n$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},i$=(t,{keyframes:e})=>e.length>2?t$:Ji.has(t)?t.startsWith("scale")?e$(e[1]):JT:n$;function Of(t,e){return t?t[e]||t.default||t:void 0}const r$={skipAnimations:!1,useManualTiming:!1},s$=t=>t!==null;function Hl(t,{repeat:e,repeatType:n="loop"},i){const r=t.filter(s$),s=e&&n!=="loop"&&e%2===1?0:r.length-1;return!s||i===void 0?r[s]:i}const Ge=t=>t;function o$(t){let e=new Set,n=new Set,i=!1,r=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){s.has(c)&&(l.schedule(c),t()),c(o)}const l={schedule:(c,u=!1,d=!1)=>{const h=d&&i?e:n;return u&&s.add(c),h.has(c)||h.add(c),c},cancel:c=>{n.delete(c),s.delete(c)},process:c=>{if(o=c,i){r=!0;return}i=!0,[e,n]=[n,e],n.clear(),e.forEach(a),i=!1,r&&(r=!1,l.process(c))}};return l}const Wl=["read","resolveKeyframes","update","preRender","render","postRender"],a$=40;function h0(t,e){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Wl.reduce((m,g)=>(m[g]=o$(s),m),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:f}=o,h=()=>{const m=performance.now();n=!1,r.delta=i?1e3/60:Math.max(Math.min(m-r.timestamp,a$),1),r.timestamp=m,r.isProcessing=!0,a.process(r),l.process(r),c.process(r),u.process(r),d.process(r),f.process(r),r.isProcessing=!1,n&&e&&(i=!1,t(h))},v=()=>{n=!0,i=!0,r.isProcessing||t(h)};return{schedule:Wl.reduce((m,g)=>{const b=o[g];return m[g]=(w,P=!1,E=!1)=>(n||v(),b.schedule(w,P,E)),m},{}),cancel:m=>{for(let g=0;g(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,l$=1e-7,c$=12;function u$(t,e,n,i,r){let s,o,a=0;do o=e+(n-e)/2,s=p0(o,i,r)-t,s>0?n=o:e=o;while(Math.abs(s)>l$&&++au$(s,0,1,t,n);return s=>s===0||s===1?s:p0(r(s),e,i)}const m0=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,g0=t=>e=>1-t(1-e),v0=ko(.33,1.53,.69,.99),zf=g0(v0),y0=m0(zf),b0=t=>(t*=2)<1?.5*zf(t):.5*(2-Math.pow(2,-10*(t-1))),Bf=t=>1-Math.sin(Math.acos(t)),x0=g0(Bf),_0=m0(Bf),w0=t=>/^0[^.\s]+$/u.test(t);function d$(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||w0(t):!0}let f$=Ge,Kf=Ge;const S0=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),P0=t=>e=>typeof e=="string"&&e.startsWith(t),C0=P0("--"),h$=P0("var(--"),Hf=t=>h$(t)?p$.test(t.split("/*")[0].trim()):!1,p$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,m$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function g$(t){const e=m$.exec(t);if(!e)return[,];const[,n,i,r]=e;return[`--${n!=null?n:i}`,r]}function k0(t,e,n=1){const[i,r]=g$(t);if(!i)return;const s=window.getComputedStyle(e).getPropertyValue(i);if(s){const o=s.trim();return S0(o)?parseFloat(o):o}return Hf(r)?k0(r,e,n+1):r}const yi=(t,e,n)=>n>e?e:ntypeof t=="number",parse:parseFloat,transform:t=>t},To=B(k({},ns),{transform:t=>yi(0,1,t)}),Ul=B(k({},ns),{default:1}),$o=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),bi=$o("deg"),pn=$o("%"),Q=$o("px"),v$=$o("vh"),y$=$o("vw"),T0=B(k({},pn),{parse:t=>pn.parse(t)/100,transform:t=>pn.transform(t*100)}),b$=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),$0=t=>t===ns||t===Q,E0=(t,e)=>parseFloat(t.split(", ")[e]),M0=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const r=i.match(/^matrix3d\((.+)\)$/u);if(r)return E0(r[1],e);{const s=i.match(/^matrix\((.+)\)$/u);return s?E0(s[1],t):0}},x$=new Set(["x","y","z"]),_$=Co.filter(t=>!x$.has(t));function w$(t){const e=[];return _$.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const is={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:M0(4,13),y:M0(5,14)};is.translateX=is.x,is.translateY=is.y;const D0=t=>e=>e.test(t),A0=[ns,Q,pn,bi,y$,v$,{test:t=>t==="auto",parse:t=>t}],L0=t=>A0.find(D0(t)),er=new Set;let Wf=!1,Uf=!1;function j0(){if(Uf){const t=Array.from(er).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>{const r=w$(i);r.length&&(n.set(i,r),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([s,o])=>{var a;(a=i.getValue(s))===null||a===void 0||a.set(o)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Uf=!1,Wf=!1,er.forEach(t=>t.complete()),er.clear()}function F0(){er.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Uf=!0)})}function S$(){F0(),j0()}class Yf{constructor(e,n,i,r,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=r,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(er.add(this),Wf||(Wf=!0,le.read(F0),le.resolveKeyframes(j0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:r}=this;for(let s=0;sMath.round(t*1e5)/1e5,Gf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function P$(t){return t==null}const C$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xf=(t,e)=>n=>!!(typeof n=="string"&&C$.test(n)&&n.startsWith(t)||e&&!P$(n)&&Object.prototype.hasOwnProperty.call(n,e)),R0=(t,e,n)=>i=>{if(typeof i!="string")return i;const[r,s,o,a]=i.match(Gf);return{[t]:parseFloat(r),[e]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},k$=t=>yi(0,255,t),qf=B(k({},ns),{transform:t=>Math.round(k$(t))}),tr={test:Xf("rgb","red"),parse:R0("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+qf.transform(t)+", "+qf.transform(e)+", "+qf.transform(n)+", "+Eo(To.transform(i))+")"};function T$(t){let e="",n="",i="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const Qf={test:Xf("#"),parse:T$,transform:tr.transform},rs={test:Xf("hsl","hue"),parse:R0("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+pn.transform(Eo(e))+", "+pn.transform(Eo(n))+", "+Eo(To.transform(i))+")"},nt={test:t=>tr.test(t)||Qf.test(t)||rs.test(t),parse:t=>tr.test(t)?tr.parse(t):rs.test(t)?rs.parse(t):Qf.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?tr.transform(t):rs.transform(t)},$$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function E$(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Gf))===null||e===void 0?void 0:e.length)||0)+(((n=t.match($$))===null||n===void 0?void 0:n.length)||0)>0}const N0="number",I0="color",M$="var",D$="var(",O0="${}",A$=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Mo(t){const e=t.toString(),n=[],i={color:[],number:[],var:[]},r=[];let s=0;const a=e.replace(A$,l=>(nt.test(l)?(i.color.push(s),r.push(I0),n.push(nt.parse(l))):l.startsWith(D$)?(i.var.push(s),r.push(M$),n.push(l)):(i.number.push(s),r.push(N0),n.push(parseFloat(l))),++s,O0)).split(O0);return{values:n,split:a,indexes:i,types:r}}function V0(t){return Mo(t).values}function z0(t){const{split:e,types:n}=Mo(t),i=e.length;return r=>{let s="";for(let o=0;otypeof t=="number"?0:t;function j$(t){const e=V0(t);return z0(t)(e.map(L$))}const xi={test:E$,parse:V0,createTransformer:z0,getAnimatableNone:j$},F$=new Set(["brightness","contrast","saturate","opacity"]);function R$(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Gf)||[];if(!i)return t;const r=n.replace(i,"");let s=F$.has(e)?1:0;return i!==n&&(s*=100),e+"("+s+r+")"}const N$=/\b([a-z-]*)\(.*?\)/gu,Zf=B(k({},xi),{getAnimatableNone:t=>{const e=t.match(N$);return e?e.map(R$).join(" "):t}}),I$={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,backgroundPositionX:Q,backgroundPositionY:Q},O$={rotate:bi,rotateX:bi,rotateY:bi,rotateZ:bi,scale:Ul,scaleX:Ul,scaleY:Ul,scaleZ:Ul,skew:bi,skewX:bi,skewY:bi,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:To,originX:T0,originY:T0,originZ:Q},B0=B(k({},ns),{transform:Math.round}),Jf=B(k(k({},I$),O$),{zIndex:B0,size:Q,fillOpacity:To,strokeOpacity:To,numOctaves:B0}),V$=B(k({},Jf),{color:nt,backgroundColor:nt,outlineColor:nt,fill:nt,stroke:nt,borderColor:nt,borderTopColor:nt,borderRightColor:nt,borderBottomColor:nt,borderLeftColor:nt,filter:Zf,WebkitFilter:Zf}),eh=t=>V$[t];function K0(t,e){let n=eh(t);return n!==Zf&&(n=xi),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const z$=new Set(["auto","none","0"]);function B$(t,e,n){let i=0,r;for(;i{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function th(t){return typeof t=="function"}let Yl;function K$(){Yl=void 0}const mn={now:()=>(Yl===void 0&&mn.set(Be.isProcessing||r$.useManualTiming?Be.timestamp:performance.now()),Yl),set:t=>{Yl=t,queueMicrotask(K$)}},W0=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(xi.test(t)||t==="0")&&!t.startsWith("url("));function H$(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nU$?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&S$(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=mn.now(),this.hasAttemptedResolve=!0;const{name:i,type:r,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!W$(e,i,r,s))if(o)this.options.duration=0;else{l==null||l(Hl(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved=k({keyframes:e,finalKeyframe:n},u),this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function nh(t,e){return e?t*(1e3/e):0}const Y$=5;function Y0(t,e,n){const i=Math.max(e-Y$,0);return nh(n-t(i),e-i)}const ih=.001,G$=.01,X$=10,q$=.05,Q$=1;function Z$({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let r,s,o=1-e;o=yi(q$,Q$,o),t=yi(G$,X$,jn(t)),o<1?(r=c=>{const u=c*o,d=u*t,f=u-n,h=rh(c,o),v=Math.exp(-d);return ih-f/h*v},s=c=>{const d=c*o*t,f=d*n+n,h=Math.pow(o,2)*Math.pow(c,2)*t,v=Math.exp(-d),y=rh(Math.pow(c,2),o);return(-r(c)+ih>0?-1:1)*((f-h)*v)/y}):(r=c=>{const u=Math.exp(-c*t),d=(c-n)*t+1;return-ih+u*d},s=c=>{const u=Math.exp(-c*t),d=(n-c)*(t*t);return u*d});const a=5/t,l=e2(r,s,a);if(t=Ln(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:o*2*Math.sqrt(i*c),duration:t}}}const J$=12;function e2(t,e,n){let i=n;for(let r=1;rt[n]!==void 0)}function i2(t){let e=k({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!G0(t,n2)&&G0(t,t2)){const n=Z$(t);e=B(k(k({},e),n),{mass:1}),e.isResolvedFromDuration=!0}return e}function X0(r){var s=r,{keyframes:t,restDelta:e,restSpeed:n}=s,i=re(s,["keyframes","restDelta","restSpeed"]);const o=t[0],a=t[t.length-1],l={done:!1,value:o},{stiffness:c,damping:u,mass:d,duration:f,velocity:h,isResolvedFromDuration:v}=i2(B(k({},i),{velocity:-jn(i.velocity||0)})),y=h||0,x=u/(2*Math.sqrt(c*d)),m=a-o,g=jn(Math.sqrt(c/d)),b=Math.abs(m)<5;n||(n=b?.01:2),e||(e=b?.005:.5);let w;if(x<1){const P=rh(g,x);w=E=>{const A=Math.exp(-x*g*E);return a-A*((y+x*g*m)/P*Math.sin(P*E)+m*Math.cos(P*E))}}else if(x===1)w=P=>a-Math.exp(-g*P)*(m+(y+g*m)*P);else{const P=g*Math.sqrt(x*x-1);w=E=>{const A=Math.exp(-x*g*E),M=Math.min(P*E,300);return a-A*((y+x*g*m)*Math.sinh(M)+P*m*Math.cosh(M))/P}}return{calculatedDuration:v&&f||null,next:P=>{const E=w(P);if(v)l.done=P>=f;else{let A=0;x<1&&(A=P===0?Ln(y):Y0(w,P,E));const M=Math.abs(A)<=n,S=Math.abs(a-E)<=e;l.done=M&&S}return l.value=l.done?a:E,l}}}function q0({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=t[0],f={done:!1,value:d},h=M=>a!==void 0&&Ml,v=M=>a===void 0?l:l===void 0||Math.abs(a-M)-y*Math.exp(-M/i),b=M=>m+g(M),w=M=>{const S=g(M),C=b(M);f.done=Math.abs(S)<=c,f.value=f.done?m:C};let P,E;const A=M=>{h(f.value)&&(P=M,E=X0({keyframes:[f.value,v(f.value)],velocity:Y0(b,M,f.value),damping:r,stiffness:s,restDelta:c,restSpeed:u}))};return A(0),{calculatedDuration:null,next:M=>{let S=!1;return!E&&P===void 0&&(S=!0,w(M),A(M)),P!==void 0&&M>=P?E.next(M-P):(!S&&w(M),f)}}}const r2=ko(.42,0,1,1),s2=ko(0,0,.58,1),Q0=ko(.42,0,.58,1),o2=t=>Array.isArray(t)&&typeof t[0]!="number",sh=t=>Array.isArray(t)&&typeof t[0]=="number",Z0={linear:Ge,easeIn:r2,easeInOut:Q0,easeOut:s2,circIn:Bf,circInOut:_0,circOut:x0,backIn:zf,backInOut:y0,backOut:v0,anticipate:b0},J0=t=>{if(sh(t)){Kf(t.length===4);const[e,n,i,r]=t;return ko(e,n,i,r)}else if(typeof t=="string")return Kf(Z0[t]!==void 0),Z0[t];return t},a2=(t,e)=>n=>e(t(n)),Fn=(...t)=>t.reduce(a2),nr=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},$e=(t,e,n)=>t+(e-t)*n;function oh(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function l2({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let r=0,s=0,o=0;if(!e)r=s=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=oh(l,a,t+1/3),s=oh(l,a,t),o=oh(l,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:i}}function Gl(t,e){return n=>n>0?e:t}const ah=(t,e,n)=>{const i=t*t,r=n*(e*e-i)+i;return r<0?0:Math.sqrt(r)},c2=[Qf,tr,rs],u2=t=>c2.find(e=>e.test(t));function eb(t){const e=u2(t);if(!e)return!1;let n=e.parse(t);return e===rs&&(n=l2(n)),n}const tb=(t,e)=>{const n=eb(t),i=eb(e);if(!n||!i)return Gl(t,e);const r=k({},n);return s=>(r.red=ah(n.red,i.red,s),r.green=ah(n.green,i.green,s),r.blue=ah(n.blue,i.blue,s),r.alpha=$e(n.alpha,i.alpha,s),tr.transform(r))},lh=new Set(["none","hidden"]);function d2(t,e){return lh.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function f2(t,e){return n=>$e(t,e,n)}function ch(t){return typeof t=="number"?f2:typeof t=="string"?Hf(t)?Gl:nt.test(t)?tb:m2:Array.isArray(t)?nb:typeof t=="object"?nt.test(t)?tb:h2:Gl}function nb(t,e){const n=[...t],i=n.length,r=t.map((s,o)=>ch(s)(s,e[o]));return s=>{for(let o=0;o{for(const s in i)n[s]=i[s](r);return n}}function p2(t,e){var n;const i=[],r={color:0,var:0,number:0};for(let s=0;s{const n=xi.createTransformer(e),i=Mo(t),r=Mo(e);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?lh.has(t)&&!r.values.length||lh.has(e)&&!i.values.length?d2(t,e):Fn(nb(p2(i,r),r.values),n):Gl(t,e)};function ib(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?$e(t,e,n):ch(t)(t,e)}function g2(t,e,n){const i=[],r=n||ib,s=t.length-1;for(let o=0;oe[0];if(s===2&&t[0]===t[1])return()=>e[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=g2(e,i,r),a=o.length,l=c=>{let u=0;if(a>1)for(;ul(yi(t[0],t[s-1],c)):l}function v2(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=nr(0,e,i);t.push($e(n,1,r))}}function sb(t){const e=[0];return v2(e,t.length-1),e}function y2(t,e){return t.map(n=>n*e)}function b2(t,e){return t.map(()=>e||Q0).splice(0,t.length-1)}function Xl({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const r=o2(i)?i.map(J0):J0(i),s={done:!1,value:e[0]},o=y2(n&&n.length===e.length?n:sb(e),t),a=rb(o,e,{ease:Array.isArray(r)?r:b2(e,r)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}const ob=2e4;function x2(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e=ob?1/0:e}const _2=t=>{const e=({timestamp:n})=>t(n);return{start:()=>le.update(e,!0),stop:()=>hn(e),now:()=>Be.isProcessing?Be.timestamp:mn.now()}},w2={decay:q0,inertia:q0,tween:Xl,keyframes:Xl,spring:X0},S2=t=>t/100;class uh extends U0{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:i,element:r,keyframes:s}=this.options,o=(r==null?void 0:r.KeyframeResolver)||Yf,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new o(s,a,n,i,r),this.resolver.scheduleResolve()}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:s,velocity:o=0}=this.options,a=th(n)?n:w2[n]||Xl;let l,c;a!==Xl&&typeof e[0]!="number"&&(l=Fn(S2,ib(e[0],e[1])),e=[0,100]);const u=a(B(k({},this.options),{keyframes:e}));s==="mirror"&&(c=a(B(k({},this.options),{keyframes:[...e].reverse(),velocity:-o}))),u.calculatedDuration===null&&(u.calculatedDuration=x2(u));const{calculatedDuration:d}=u,f=d+r,h=f*(i+1)-r;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:M}=this.options;return{done:!0,value:M[M.length-1]}}const{finalKeyframe:r,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:d}=i;if(this.startTime===null)return s.next(0);const{delay:f,repeat:h,repeatType:v,repeatDelay:y,onUpdate:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),g=this.speed>=0?m<0:m>u;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let b=this.currentTime,w=s;if(h){const M=Math.min(this.currentTime,u)/d;let S=Math.floor(M),C=M%1;!C&&M>=1&&(C=1),C===1&&S--,S=Math.min(S,h+1),!!(S%2)&&(v==="reverse"?(C=1-C,y&&(C-=y/d)):v==="mirror"&&(w=o)),b=yi(0,1,C)*d}const P=g?{done:!1,value:l[0]}:w.next(b);a&&(P.value=a(P.value));let{done:E}=P;!g&&c!==null&&(E=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return A&&r!==void 0&&(P.value=Hl(l,this.options,r)),x&&x(P.value),A&&this.finish(),P}get duration(){const{resolved:e}=this;return e?jn(e.calculatedDuration):0}get time(){return jn(this.currentTime)}set time(e){e=Ln(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=jn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=_2,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=i!=null?i:this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const P2=new Set(["opacity","clipPath","filter","transform"]),C2=10,k2=(t,e)=>{let n="";const i=Math.max(Math.round(e/C2),2);for(let r=0;r(e===void 0&&(e=t()),e)}const T2={linearEasing:void 0};function $2(t,e){const n=dh(t);return()=>{var i;return(i=T2[e])!==null&&i!==void 0?i:n()}}const ql=$2(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");function ab(t){return!!(typeof t=="function"&&ql()||!t||typeof t=="string"&&(t in fh||ql())||sh(t)||Array.isArray(t)&&t.every(ab))}const Do=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,fh={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Do([0,.65,.55,1]),circOut:Do([.55,0,1,.45]),backIn:Do([.31,.01,.66,-.59]),backOut:Do([.33,1.53,.69,.99])};function lb(t,e){if(t)return typeof t=="function"&&ql()?k2(t,e):sh(t)?Do(t):Array.isArray(t)?t.map(n=>lb(n,e)||fh.easeOut):fh[t]}function E2(t,e,n,{delay:i=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=lb(a,r);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:i,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}function cb(t,e){t.timeline=e,t.onfinish=null}const M2=dh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ql=10,D2=2e4;function A2(t){return th(t.type)||t.type==="spring"||!ab(t.ease)}function L2(t,e){const n=new uh(B(k({},e),{keyframes:t,repeat:0,delay:0,isGenerator:!0}));let i={done:!1,value:t[0]};const r=[];let s=0;for(;!i.done&&sthis.onKeyframesResolved(o,a),n,i,r),this.resolver.scheduleResolve()}initPlayback(e,n){var i;let{duration:r=300,times:s,ease:o,type:a,motionValue:l,name:c,startTime:u}=this.options;if(!(!((i=l.owner)===null||i===void 0)&&i.current))return!1;if(typeof o=="string"&&ql()&&j2(o)&&(o=ub[o]),A2(this.options)){const f=this.options,{onComplete:h,onUpdate:v,motionValue:y,element:x}=f,m=re(f,["onComplete","onUpdate","motionValue","element"]),g=L2(e,m);e=g.keyframes,e.length===1&&(e[1]=e[0]),r=g.duration,s=g.times,o=g.ease,a="keyframes"}const d=E2(l.owner.current,c,e,B(k({},this.options),{duration:r,times:s,ease:o}));return d.startTime=u!=null?u:this.calcStartTime(),this.pendingTimeline?(cb(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;l.set(Hl(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:s,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return jn(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return jn(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=Ln(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return Ge;const{animation:i}=n;cb(i,e)}return Ge}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:r,type:s,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const c=this.options,{motionValue:u,onUpdate:d,onComplete:f,element:h}=c,v=re(c,["motionValue","onUpdate","onComplete","element"]),y=new uh(B(k({},v),{keyframes:i,duration:r,type:s,ease:o,times:a,isGenerator:!0})),x=Ln(this.time);u.setWithVelocity(y.sample(x-Ql).value,y.sample(x).value,Ql)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:r,repeatType:s,damping:o,type:a}=e;return M2()&&i&&P2.has(i)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!r&&s!=="mirror"&&o!==0&&a!=="inertia"}}const fb=dh(()=>window.ScrollTimeline!==void 0);class F2{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;ifb()&&r.attachTimeline?r.attachTimeline(e):n(r));return()=>{i.forEach((r,s)=>{r&&r(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;nn[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function R2(d){var f=d,{when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:c}=f,u=re(f,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);return!!Object.keys(u).length}const hh=(t,e,n,i={},r,s)=>o=>{const a=Of(i,t)||{},l=a.delay||i.delay||0;let{elapsed:c=0}=i;c=c-Ln(l);let u=B(k({keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity()},a),{delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r});R2(a)||(u=k(k({},u),i$(t,u))),u.duration&&(u.duration=Ln(u.duration)),u.repeatDelay&&(u.repeatDelay=Ln(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!s&&e.get()!==void 0){const f=Hl(u.keyframes,a);if(f!==void 0)return le.update(()=>{u.onUpdate(f),u.onComplete()}),new F2([])}return!s&&db.supports(u)?new db(u):new uh(u)},N2=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),I2=t=>Ff(t)?t[t.length-1]||0:t;function ph(t,e){t.indexOf(e)===-1&&t.push(e)}function mh(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class gh{constructor(){this.subscriptions=[]}add(e){return ph(this.subscriptions,e),()=>mh(this.subscriptions,e)}notify(e,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,n,i);else for(let s=0;s!isNaN(parseFloat(t));class V2{constructor(e,n={}){this.version="11.11.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,r=!0)=>{const s=mn.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=mn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=O2(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new gh);const i=this.events[e].add(n);return e==="change"?()=>{i(),le.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=mn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>hb)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,hb);return nh(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Rn(t,e){return new V2(t,e)}function z2(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Rn(n))}function B2(t,e){let o=Kl(t,e)||{},{transitionEnd:i={},transition:r={}}=o,s=re(o,["transitionEnd","transition"]);s=k(k({},s),i);for(const a in s){const l=I2(s[a]);z2(t,a,l)}}const vh=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),pb="data-"+vh("framerAppearId");function mb(t){return t.props[pb]}const it=t=>!!(t&&t.getVelocity);function K2(t){return!!(it(t)&&t.add)}function yh(t,e){const n=t.getValue("willChange");if(K2(n))return n.add(e)}function H2({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function gb(t,e,{delay:n=0,transitionOverride:i,type:r}={}){var s;let d=e,{transition:o=t.getDefaultTransition(),transitionEnd:a}=d,l=re(d,["transition","transitionEnd"]);i&&(o=i);const c=[],u=r&&t.animationState&&t.animationState.getState()[r];for(const f in l){const h=t.getValue(f,(s=t.latestValues[f])!==null&&s!==void 0?s:null),v=l[f];if(v===void 0||u&&H2(u,f))continue;const y=k({delay:n},Of(o||{},f));let x=!1;if(window.MotionHandoffAnimation){const g=mb(t);if(g){const b=window.MotionHandoffAnimation(g,f,le);b!==null&&(y.startTime=b,x=!0)}}yh(t,f),h.start(hh(f,h,v,t.shouldReduceMotion&&Ji.has(f)?{type:!1}:y,t,x));const m=h.animation;m&&c.push(m)}return a&&Promise.all(c).then(()=>{le.update(()=>{a&&B2(t,a)})}),c}function bh(t,e,n={}){var i;const r=Kl(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const o=r?()=>Promise.all(gb(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=s;return W2(t,e,u+c,d,f,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[c,u]=l==="beforeChildren"?[o,a]:[a,o];return c().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function W2(t,e,n=0,i=0,r=1,s){const o=[],a=(t.variantChildren.size-1)*i,l=r===1?(c=0)=>c*i:(c=0)=>a-c*i;return Array.from(t.variantChildren).sort(U2).forEach((c,u)=>{c.notify("AnimationStart",e),o.push(bh(c,e,B(k({},s),{delay:n+l(u)})).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(o)}function U2(t,e){return t.sortNodePosition(e)}function Y2(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const r=e.map(s=>bh(t,s,n));i=Promise.all(r)}else if(typeof e=="string")i=bh(t,e,n);else{const r=typeof e=="function"?Kl(t,e,n.custom):e;i=Promise.all(gb(t,r,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const G2=If.length;function vb(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?vb(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;nPromise.all(e.map(({animation:n,options:i})=>Y2(t,n,i)))}function Z2(t){let e=Q2(t),n=yb(),i=!0;const r=l=>(c,u)=>{var d;const f=Kl(t,u,l==="exit"?(d=t.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const h=f,{transition:v,transitionEnd:y}=h,x=re(h,["transition","transitionEnd"]);c=k(k(k({},c),x),y)}return c};function s(l){e=l(t)}function o(l){const{props:c}=t,u=vb(t.parent)||{},d=[],f=new Set;let h={},v=1/0;for(let x=0;xv&&w,S=!1;const C=Array.isArray(b)?b:[b];let R=C.reduce(r(m),{});P===!1&&(R={});const{prevResolvedValues:$={}}=g,I=k(k({},$),R),j=F=>{M=!0,f.has(F)&&(S=!0,f.delete(F)),g.needsAnimating[F]=!0;const N=t.getValue(F);N&&(N.liveStyle=!1)};for(const F in I){const N=R[F],K=$[F];if(h.hasOwnProperty(F))continue;let U=!1;Ff(N)&&Ff(K)?U=!d0(N,K):U=N!==K,U?N!=null?j(F):f.add(F):N!==void 0&&f.has(F)?j(F):g.protectedKeys[F]=!0}g.prevProp=b,g.prevResolvedValues=R,g.isActive&&(h=k(k({},h),R)),i&&t.blockInitialAnimation&&(M=!1),M&&(!(E&&A)||S)&&d.push(...C.map(F=>({animation:F,options:{type:m}})))}if(f.size){const x={};f.forEach(m=>{const g=t.getBaseTarget(m),b=t.getValue(m);b&&(b.liveStyle=!0),x[m]=g!=null?g:null}),d.push({animation:x})}let y=!!d.length;return i&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(y=!1),i=!1,y?e(d):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(l,c)}),n[l].isActive=c;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=yb(),i=!0}}}function J2(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!d0(e,t):!1}function ir(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yb(){return{animate:ir(!0),whileInView:ir(),whileHover:ir(),whileTap:ir(),whileDrag:ir(),whileFocus:ir(),exit:ir()}}class _i{constructor(e){this.isMounted=!1,this.node=e}update(){}}class eE extends _i{constructor(e){super(e),e.animationState||(e.animationState=Z2(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Bl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let tE=0;class nE extends _i{constructor(){super(...arguments),this.id=tE++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const r=this.node.animationState.setActive("exit",!e);n&&!e&&r.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const iE={animation:{Feature:eE},exit:{Feature:nE}},bb=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Zl(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const rE=t=>e=>bb(e)&&t(e,Zl(e));function Nn(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function In(t,e,n,i){return Nn(t,e,rE(n),i)}const xb=(t,e)=>Math.abs(t-e);function sE(t,e){const n=xb(t.x,e.x),i=xb(t.y,e.y);return Math.sqrt(Wm(n,2)+Wm(i,2))}class _b{constructor(e,n,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=_h(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=sE(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:v}=d,{timestamp:y}=Be;this.history.push(B(k({},v),{timestamp:y}));const{onStart:x,onMove:m}=this.handlers;f||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=xh(f,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=_h(d.type==="pointercancel"?this.lastMoveEventInfo:xh(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,x),v&&v(d,x)},!bb(e))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=i,this.contextWindow=r||window;const o=Zl(e),a=xh(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=Be;this.history=[B(k({},l),{timestamp:c})];const{onSessionStart:u}=n;u&&u(e,_h(a,this.history)),this.removeListeners=Fn(In(this.contextWindow,"pointermove",this.handlePointerMove),In(this.contextWindow,"pointerup",this.handlePointerUp),In(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),hn(this.updatePoint)}}function xh(t,e){return e?{point:e(t.point)}:t}function wb(t,e){return{x:t.x-e.x,y:t.y-e.y}}function _h({point:t},e){return{point:t,delta:wb(t,Sb(e)),offset:wb(t,oE(e)),velocity:aE(e,.1)}}function oE(t){return t[0]}function Sb(t){return t[t.length-1]}function aE(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const r=Sb(t);for(;n>=0&&(i=t[n],!(r.timestamp-i.timestamp>Ln(e)));)n--;if(!i)return{x:0,y:0};const s=jn(r.timestamp-i.timestamp);if(s===0)return{x:0,y:0};const o={x:(r.x-i.x)/s,y:(r.y-i.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Pb(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const Cb=Pb("dragHorizontal"),kb=Pb("dragVertical");function Tb(t){let e=!1;if(t==="y")e=kb();else if(t==="x")e=Cb();else{const n=Cb(),i=kb();n&&i?e=()=>{n(),i()}:(n&&n(),i&&i())}return e}function $b(){const t=Tb(!0);return t?(t(),!1):!0}function ss(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const Eb=1e-4,lE=1-Eb,cE=1+Eb,Mb=.01,uE=0-Mb,dE=0+Mb;function At(t){return t.max-t.min}function fE(t,e,n){return Math.abs(t-e)<=n}function Db(t,e,n,i=.5){t.origin=i,t.originPoint=$e(e.min,e.max,t.origin),t.scale=At(n)/At(e),t.translate=$e(n.min,n.max,t.origin)-t.originPoint,(t.scale>=lE&&t.scale<=cE||isNaN(t.scale))&&(t.scale=1),(t.translate>=uE&&t.translate<=dE||isNaN(t.translate))&&(t.translate=0)}function Ao(t,e,n,i){Db(t.x,e.x,n.x,i?i.originX:void 0),Db(t.y,e.y,n.y,i?i.originY:void 0)}function Ab(t,e,n){t.min=n.min+e.min,t.max=t.min+At(e)}function hE(t,e,n){Ab(t.x,e.x,n.x),Ab(t.y,e.y,n.y)}function Lb(t,e,n){t.min=e.min-n.min,t.max=t.min+At(e)}function Lo(t,e,n){Lb(t.x,e.x,n.x),Lb(t.y,e.y,n.y)}function pE(t,{min:e,max:n},i){return e!==void 0&&tn&&(t=i?$e(n,t,i.max):Math.min(t,n)),t}function jb(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function mE(t,{top:e,left:n,bottom:i,right:r}){return{x:jb(t.x,n,r),y:jb(t.y,e,i)}}function Fb(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.mini?n=nr(e.min,e.max-i,t.min):i>r&&(n=nr(t.min,t.max-r,e.min)),yi(0,1,n)}function yE(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const wh=.35;function bE(t=wh){return t===!1?t=0:t===!0&&(t=wh),{x:Rb(t,"left","right"),y:Rb(t,"top","bottom")}}function Rb(t,e,n){return{min:Nb(t,e),max:Nb(t,n)}}function Nb(t,e){return typeof t=="number"?t:t[e]||0}const Ib=()=>({translate:0,scale:1,origin:0,originPoint:0}),os=()=>({x:Ib(),y:Ib()}),Ob=()=>({min:0,max:0}),Le=()=>({x:Ob(),y:Ob()});function Kt(t){return[t("x"),t("y")]}function Vb({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function xE({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function _E(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Sh(t){return t===void 0||t===1}function Ph({scale:t,scaleX:e,scaleY:n}){return!Sh(t)||!Sh(e)||!Sh(n)}function rr(t){return Ph(t)||zb(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function zb(t){return Bb(t.x)||Bb(t.y)}function Bb(t){return t&&t!=="0%"}function Jl(t,e,n){const i=t-n,r=e*i;return n+r}function Kb(t,e,n,i,r){return r!==void 0&&(t=Jl(t,r,i)),Jl(t,n,i)+e}function Ch(t,e=0,n=1,i,r){t.min=Kb(t.min,e,n,i,r),t.max=Kb(t.max,e,n,i,r)}function Hb(t,{x:e,y:n}){Ch(t.x,e.translate,e.scale,e.originPoint),Ch(t.y,n.translate,n.scale,n.originPoint)}const Wb=.999999999999,Ub=1.0000000000001;function wE(t,e,n,i=!1){const r=n.length;if(!r)return;e.x=e.y=1;let s,o;for(let a=0;aWb&&(e.x=1),e.yWb&&(e.y=1)}function as(t,e){t.min=t.min+e,t.max=t.max+e}function Yb(t,e,n,i,r=.5){const s=$e(t.min,t.max,r);Ch(t,e,n,s,i)}function ls(t,e){Yb(t.x,e.x,e.scaleX,e.scale,e.originX),Yb(t.y,e.y,e.scaleY,e.scale,e.originY)}function Gb(t,e){return Vb(_E(t.getBoundingClientRect(),e))}function SE(t,e,n){const i=Gb(t,n),{scroll:r}=e;return r&&(as(i.x,r.offset.x),as(i.y,r.offset.y)),i}const Xb=({current:t})=>t?t.ownerDocument.defaultView:null,PE=new WeakMap;class CE{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Le(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Zl(u,"page").point)},s=(u,d)=>{const{drag:f,dragPropagation:h,onDragStart:v}=this.getProps();if(f&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Tb(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Kt(x=>{let m=this.getAxisMotionValue(x).get()||0;if(pn.test(m)){const{projection:g}=this.visualElement;if(g&&g.layout){const b=g.layout.layoutBox[x];b&&(m=At(b)*(parseFloat(m)/100))}}this.originPoint[x]=m}),v&&le.postRender(()=>v(u,d)),yh(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:v,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:x}=d;if(h&&this.currentDirection===null){this.currentDirection=kE(x),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,x),this.updateAxis("y",d.point,x),this.visualElement.render(),y&&y(u,d)},a=(u,d)=>this.stop(u,d),l=()=>Kt(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new _b(e,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Xb(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:s}=this.getProps();s&&le.postRender(()=>s(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:r}=this.getProps();if(!i||!ec(e,r,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(o=pE(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;n&&ss(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=mE(r.layoutBox,n):this.constraints=!1,this.elastic=bE(i),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Kt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=yE(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!ss(e))return!1;const i=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const s=SE(i,r.root,this.visualElement.getTransformPagePoint());let o=gE(r.layout.layoutBox,s);if(n){const a=n(xE(o));this.hasMutatedConstraints=!!a,a&&(o=Vb(a))}return o}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:r,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Kt(u=>{if(!ec(u,n,this.currentDirection))return;let d=l&&l[u]||{};o&&(d={min:0,max:0});const f=r?200:1e6,h=r?40:1e7,v=k(k({type:"inertia",velocity:i?e[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10},s),d);return this.startAxisValueAnimation(u,v)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return yh(this.visualElement,e),i.start(hh(e,i,0,n,this.visualElement,!1))}stopAnimation(){Kt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Kt(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),r=i[n];return r||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){Kt(n=>{const{drag:i}=this.getProps();if(!ec(n,i,this.currentDirection))return;const{projection:r}=this.visualElement,s=this.getAxisMotionValue(n);if(r&&r.layout){const{min:o,max:a}=r.layout.layoutBox[n];s.set(e[n]-$e(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!ss(n)||!i||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Kt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();r[o]=vE({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Kt(o=>{if(!ec(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set($e(l,c,r[o]))})}addListeners(){if(!this.visualElement.current)return;PE.set(this.visualElement,this);const e=this.visualElement.current,n=In(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();ss(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,s=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),le.read(i);const o=Nn(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Kt(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=l[u].translate,d.set(d.get()+l[u].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:s=!1,dragElastic:o=wh,dragMomentum:a=!0}=e;return B(k({},e),{drag:n,dragDirectionLock:i,dragPropagation:r,dragConstraints:s,dragElastic:o,dragMomentum:a})}}function ec(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function kE(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class TE extends _i{constructor(e){super(e),this.removeGroupControls=Ge,this.removeListeners=Ge,this.controls=new CE(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ge}unmount(){this.removeGroupControls(),this.removeListeners()}}const qb=t=>(e,n)=>{t&&le.postRender(()=>t(e,n))};class $E extends _i{constructor(){super(...arguments),this.removePointerDownListener=Ge}onPointerDown(e){this.session=new _b(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Xb(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:qb(e),onStart:qb(n),onMove:i,onEnd:(s,o)=>{delete this.session,r&&le.postRender(()=>r(s,o))}}}mount(){this.removePointerDownListener=In(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const tc=_.createContext(null);function EE(){const t=_.useContext(tc);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,r=_.useId();_.useEffect(()=>i(r),[]);const s=_.useCallback(()=>n&&n(r),[r,n]);return!e&&n?[!1,s]:[!0]}const kh=_.createContext({}),Qb=_.createContext({}),nc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Zb(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const jo={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Q.test(t))t=parseFloat(t);else return t;const n=Zb(t,e.target.x),i=Zb(t,e.target.y);return`${n}% ${i}%`}},ME={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,r=xi.parse(t);if(r.length>5)return i;const s=xi.createTransformer(t),o=typeof r[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;r[0+o]/=a,r[1+o]/=l;const c=$e(a,l,.5);return typeof r[2+o]=="number"&&(r[2+o]/=c),typeof r[3+o]=="number"&&(r[3+o]/=c),s(r)}},ic={};function DE(t){Object.assign(ic,t)}const{schedule:Th,cancel:FI}=h0(queueMicrotask,!1);class AE extends _.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:r}=this.props,{projection:s}=e;DE(LE),s&&(n.group&&n.group.add(s),i&&i.register&&r&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions(B(k({},s.options),{onExitComplete:()=>this.safeToRemove()}))),nc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:r,isPresent:s}=this.props,o=i.projection;return o&&(o.isPresent=s,r||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||le.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Th.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Jb(t){const[e,n]=EE(),i=_.useContext(kh);return p.jsx(AE,B(k({},t),{layoutGroup:i,switchLayoutGroup:_.useContext(Qb),isPresent:e,safeToRemove:n}))}const LE={borderRadius:B(k({},jo),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:jo,borderTopRightRadius:jo,borderBottomLeftRadius:jo,borderBottomRightRadius:jo,boxShadow:ME},ex=["TopLeft","TopRight","BottomLeft","BottomRight"],jE=ex.length,tx=t=>typeof t=="string"?parseFloat(t):t,nx=t=>typeof t=="number"||Q.test(t);function FE(t,e,n,i,r,s){r?(t.opacity=$e(0,n.opacity!==void 0?n.opacity:1,RE(i)),t.opacityExit=$e(e.opacity!==void 0?e.opacity:1,0,NE(i))):s&&(t.opacity=$e(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let o=0;oie?1:n(nr(t,e,i))}function sx(t,e){t.min=e.min,t.max=e.max}function Ht(t,e){sx(t.x,e.x),sx(t.y,e.y)}function ox(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ax(t,e,n,i,r){return t-=e,t=Jl(t,1/n,i),r!==void 0&&(t=Jl(t,1/r,i)),t}function IE(t,e=0,n=1,i=.5,r,s=t,o=t){if(pn.test(e)&&(e=parseFloat(e),e=$e(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=$e(s.min,s.max,i);t===s&&(a-=e),t.min=ax(t.min,e,n,a,r),t.max=ax(t.max,e,n,a,r)}function lx(t,e,[n,i,r],s,o){IE(t,e[n],e[i],e[r],e.scale,s,o)}const OE=["x","scaleX","originX"],VE=["y","scaleY","originY"];function cx(t,e,n,i){lx(t.x,e,OE,n?n.x:void 0,i?i.x:void 0),lx(t.y,e,VE,n?n.y:void 0,i?i.y:void 0)}function ux(t){return t.translate===0&&t.scale===1}function dx(t){return ux(t.x)&&ux(t.y)}function fx(t,e){return t.min===e.min&&t.max===e.max}function zE(t,e){return fx(t.x,e.x)&&fx(t.y,e.y)}function hx(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function px(t,e){return hx(t.x,e.x)&&hx(t.y,e.y)}function mx(t){return At(t.x)/At(t.y)}function gx(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class BE{constructor(){this.members=[]}add(e){ph(this.members,e),e.scheduleRender()}remove(e){if(mh(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(r=>e===r);if(n===0)return!1;let i;for(let r=n;r>=0;r--){const s=this.members[r];if(s.isPresent!==!1){i=s;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;r===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function KE(t,e,n){let i="";const r=t.x.translate/e.x,s=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((r||s||o)&&(i=`translate3d(${r}px, ${s}px, ${o}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:d,rotateY:f,skewX:h,skewY:v}=n;c&&(i=`perspective(${c}px) ${i}`),u&&(i+=`rotate(${u}deg) `),d&&(i+=`rotateX(${d}deg) `),f&&(i+=`rotateY(${f}deg) `),h&&(i+=`skewX(${h}deg) `),v&&(i+=`skewY(${v}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const HE=(t,e)=>t.depth-e.depth;class WE{constructor(){this.children=[],this.isDirty=!1}add(e){ph(this.children,e),this.isDirty=!0}remove(e){mh(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(HE),this.isDirty=!1,this.children.forEach(e)}}function rc(t){const e=it(t)?t.get():t;return N2(e)?e.toValue():e}function UE(t,e){const n=mn.now(),i=({timestamp:r})=>{const s=r-n;s>=e&&(hn(i),t(s-e))};return le.read(i,!0),()=>hn(i)}function YE(t){return t instanceof SVGElement&&t.tagName!=="svg"}function GE(t,e,n){const i=it(t)?t:Rn(t);return i.start(hh("",i,e,n)),i.animation}const sr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Fo=typeof window!="undefined"&&window.MotionDebug!==void 0,$h=["","X","Y","Z"],XE={visibility:"hidden"},vx=1e3;let qE=0;function Eh(t,e,n,i){const{latestValues:r}=e;r[t]&&(n[t]=r[t],e.setStaticValue(t,0),i&&(i[t]=0))}function yx(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=mb(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:s}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",le,!(r||s))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&yx(i)}function bx({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(o={},a=e==null?void 0:e()){this.id=qE++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Fo&&(sr.totalNodes=sr.resolvedTargetDeltas=sr.recalculatedProjection=0),this.nodes.forEach(JE),this.nodes.forEach(rM),this.nodes.forEach(sM),this.nodes.forEach(eM),Fo&&window.MotionDebug.record(sr)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=UE(f,250),nc.hasAnimatedSinceResize&&(nc.hasAnimatedSinceResize=!1,this.nodes.forEach(_x))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||uM,{onLayoutAnimationStart:x,onLayoutAnimationComplete:m}=u.getProps(),g=!this.targetLayout||!px(this.targetLayout,v)||h,b=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,b);const w=B(k({},Of(y,"layout")),{onPlay:x,onComplete:m});(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||_x(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,hn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(oM),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&yx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const P=w/1e3;wx(d.x,o.x,P),wx(d.y,o.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Lo(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),lM(this.relativeTarget,this.relativeTargetOrigin,f,P),b&&zE(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Le()),Ht(b,this.relativeTarget)),y&&(this.animationValues=u,FE(u,c,this.latestValues,P,g,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(hn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{nc.hasAnimatedSinceResize=!0,this.currentAnimation=GE(0,vx,B(k({},o),{onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(vx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&Tx(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Le();const d=At(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const f=At(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}Ht(a,l),ls(a,u),Ao(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new BE),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&Eh("z",o,c,this.animationValues);for(let u=0;u<$h.length;u++)Eh(`rotate${$h[u]}`,o,c,this.animationValues),Eh(`skew${$h[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return XE;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=rc(o==null?void 0:o.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=rc(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!rr(this.latestValues)&&(y.transform=u?u({},""):"none",this.hasProjected=!1),y}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=KE(this.projectionDeltaWithTransform,this.treeScale,f),u&&(c.transform=u(f,c.transform));const{x:h,y:v}=this.projectionDelta;c.transformOrigin=`${h.origin*100}% ${v.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:c.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const y in ic){if(f[y]===void 0)continue;const{correct:x,applyTo:m}=ic[y],g=c.transform==="none"?f[y]:x(f[y],d);if(m){const b=m.length;for(let w=0;w{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(xx),this.root.sharedNodes.clear()}}}function QE(t){t.updateLayout()}function ZE(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;s==="size"?Kt(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=At(f);f.min=i[d].min,f.max=f.min+h}):Tx(s,n.layoutBox,i)&&Kt(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],h=At(i[d]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[d].max=t.relativeTarget[d].min+h)});const a=os();Ao(a,i,n.layoutBox);const l=os();o?Ao(l,t.applyTransform(r,!0),n.measuredBox):Ao(l,i,n.layoutBox);const c=!dx(a);let u=!1;if(!t.resumeFrom){const d=t.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const v=Le();Lo(v,n.layoutBox,f.layoutBox);const y=Le();Lo(y,i,h.layoutBox),px(v,y)||(u=!0),d.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=v,t.relativeParent=d)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function JE(t){Fo&&sr.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function eM(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function tM(t){t.clearSnapshot()}function xx(t){t.clearMeasurements()}function nM(t){t.isLayoutDirty=!1}function iM(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function _x(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rM(t){t.resolveTargetDelta()}function sM(t){t.calcProjection()}function oM(t){t.resetSkewAndRotation()}function aM(t){t.removeLeadSnapshot()}function wx(t,e,n){t.translate=$e(e.translate,0,n),t.scale=$e(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Sx(t,e,n,i){t.min=$e(e.min,n.min,i),t.max=$e(e.max,n.max,i)}function lM(t,e,n,i){Sx(t.x,e.x,n.x,i),Sx(t.y,e.y,n.y,i)}function cM(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const uM={duration:.45,ease:[.4,0,.1,1]},Px=t=>typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Cx=Px("applewebkit/")&&!Px("chrome/")?Math.round:Ge;function kx(t){t.min=Cx(t.min),t.max=Cx(t.max)}function dM(t){kx(t.x),kx(t.y)}function Tx(t,e,n){return t==="position"||t==="preserve-aspect"&&!fE(mx(e),mx(n),.2)}function fM(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const hM=bx({attachResizeListener:(t,e)=>Nn(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Mh={current:void 0},$x=bx({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Mh.current){const t=new hM({});t.mount(window),t.setOptions({layoutScroll:!0}),Mh.current=t}return Mh.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),pM={pan:{Feature:$E},drag:{Feature:TE,ProjectionNode:$x,MeasureLayout:Jb}};function Ex(t,e){const n=e?"pointerenter":"pointerleave",i=e?"onHoverStart":"onHoverEnd",r=(s,o)=>{if(s.pointerType==="touch"||$b())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e);const l=a[i];l&&le.postRender(()=>l(s,o))};return In(t.current,n,r,{passive:!t.getProps()[i]})}class mM extends _i{mount(){this.unmount=Fn(Ex(this.node,!0),Ex(this.node,!1))}unmount(){}}class gM extends _i{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(n){e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Fn(Nn(this.node.current,"focus",()=>this.onFocus()),Nn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Mx=(t,e)=>e?t===e?!0:Mx(t,e.parentElement):!1;function Dh(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Zl(n))}class vM extends _i{constructor(){super(...arguments),this.removeStartListeners=Ge,this.removeEndListeners=Ge,this.removeAccessibleListeners=Ge,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),s=In(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:d}=this.node.getProps(),f=!d&&!Mx(this.node.current,a.target)?u:c;f&&le.update(()=>f(a,l))},{passive:!(i.onTap||i.onPointerUp)}),o=In(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=Fn(s,o),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||Dh("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&le.postRender(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=Nn(this.node.current,"keyup",o),Dh("down",(a,l)=>{this.startPress(a,l)})},n=Nn(this.node.current,"keydown",e),i=()=>{this.isPressing&&Dh("cancel",(s,o)=>this.cancelPress(s,o))},r=Nn(this.node.current,"blur",i);this.removeAccessibleListeners=Fn(n,r)}}startPress(e,n){this.isPressing=!0;const{onTapStart:i,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&le.postRender(()=>i(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!$b()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&le.postRender(()=>i(e,n))}mount(){const e=this.node.getProps(),n=In(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),i=Nn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Fn(n,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ah=new WeakMap,Lh=new WeakMap,yM=t=>{const e=Ah.get(t.target);e&&e(t)},bM=t=>{t.forEach(yM)};function xM(n){var i=n,{root:t}=i,e=re(i,["root"]);const r=t||document;Lh.has(r)||Lh.set(r,{});const s=Lh.get(r),o=JSON.stringify(e);return s[o]||(s[o]=new IntersectionObserver(bM,k({root:t},e))),s[o]}function _M(t,e,n){const i=xM(e);return Ah.set(t,n),i.observe(t),()=>{Ah.delete(t),i.unobserve(t)}}const wM={some:0,all:1};class SM extends _i{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:r="some",once:s}=e,o={root:n?n.current:void 0,rootMargin:i,threshold:typeof r=="number"?r:wM[r]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=c?u:d;f&&f(l)};return _M(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver=="undefined")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(PM(e,n))&&this.startObserver()}unmount(){}}function PM({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const CM={inView:{Feature:SM},tap:{Feature:vM},focus:{Feature:gM},hover:{Feature:mM}},kM={layout:{ProjectionNode:$x,MeasureLayout:Jb}},jh=_.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),sc=_.createContext({}),Fh=typeof window!="undefined",Rh=Fh?_.useLayoutEffect:_.useEffect,Dx=_.createContext({strict:!1});function TM(t,e,n,i,r){var s,o;const{visualElement:a}=_.useContext(sc),l=_.useContext(Dx),c=_.useContext(tc),u=_.useContext(jh).reducedMotion,d=_.useRef();i=i||l.renderer,!d.current&&i&&(d.current=i(t,{visualState:e,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,h=_.useContext(Qb);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&$M(d.current,n,r,h),_.useInsertionEffect(()=>{f&&f.update(n,c)});const v=n[pb],y=_.useRef(!!v&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,v))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,v)));return Rh(()=>{f&&(window.MotionIsMounted=!0,f.updateFeatures(),Th.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),_.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,v)}),y.current=!1))}),f}function $M(t,e,n,i){const{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ax(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&ss(a),visualElement:t,animationType:typeof s=="string"?s:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}function Ax(t){if(t)return t.options.allowProjection!==!1?t.projection:Ax(t.parent)}function EM(t,e,n){return _.useCallback(i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):ss(n)&&(n.current=i))},[e])}function oc(t){return Bl(t.animate)||If.some(e=>Po(t[e]))}function Lx(t){return!!(oc(t)||t.variants)}function MM(t,e){if(oc(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Po(n)?n:void 0,animate:Po(i)?i:void 0}}return t.inherit!==!1?e:{}}function DM(t){const{initial:e,animate:n}=MM(t,_.useContext(sc));return _.useMemo(()=>({initial:e,animate:n}),[jx(e),jx(n)])}function jx(t){return Array.isArray(t)?t.join(" "):t}const Fx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},cs={};for(const t in Fx)cs[t]={isEnabled:e=>Fx[t].some(n=>!!e[n])};function AM(t){for(const e in t)cs[e]=k(k({},cs[e]),t[e])}const LM=Symbol.for("motionComponentSymbol");function jM({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:r}){t&&AM(t);function s(a,l){let c;const u=B(k(k({},_.useContext(jh)),a),{layoutId:FM(a)}),{isStatic:d}=u,f=DM(a),h=i(a,d);if(!d&&Fh){RM();const v=NM(u);c=v.MeasureLayout,f.visualElement=TM(r,h,u,e,v.ProjectionNode)}return p.jsxs(sc.Provider,{value:f,children:[c&&f.visualElement?p.jsx(c,k({visualElement:f.visualElement},u)):null,n(r,a,EM(h,f.visualElement,l),h,d,f.visualElement)]})}const o=_.forwardRef(s);return o[LM]=r,o}function FM({layoutId:t}){const e=_.useContext(kh).id;return e&&t!==void 0?e+"-"+t:t}function RM(t,e){_.useContext(Dx).strict}function NM(t){const{drag:e,layout:n}=cs;if(!e&&!n)return{};const i=k(k({},e),n);return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const IM=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Nh(t){return typeof t!="string"||t.includes("-")?!1:!!(IM.indexOf(t)>-1||/[A-Z]/u.test(t))}function Rx(t,{style:e,vars:n},i,r){Object.assign(t.style,e,r&&r.getProjectionStyles(i));for(const s in n)t.style.setProperty(s,n[s])}const Nx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ix(t,e,n,i){Rx(t,e,void 0,i);for(const r in e.attrs)t.setAttribute(Nx.has(r)?r:vh(r),e.attrs[r])}function Ox(t,{layout:e,layoutId:n}){return Ji.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!ic[t]||t==="opacity")}function Ih(t,e,n){var i;const{style:r}=t,s={};for(const o in r)(it(r[o])||e.style&&it(e.style[o])||Ox(o,t)||((i=n==null?void 0:n.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(s[o]=r[o]);return s}function Vx(t,e,n){const i=Ih(t,e,n);for(const r in t)if(it(t[r])||it(e[r])){const s=Co.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[s]=t[r]}return i}function ac(t){const e=_.useRef(null);return e.current===null&&(e.current=t()),e.current}function OM({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,r,s){const o={latestValues:VM(i,r,s,t),renderState:e()};return n&&(o.mount=a=>n(i,a,o)),o}const zx=t=>(e,n)=>{const i=_.useContext(sc),r=_.useContext(tc),s=()=>OM(t,e,i,r);return n?s():ac(s)};function VM(t,e,n,i){const r={},s=i(t,{});for(const h in s)r[h]=rc(s[h]);let{initial:o,animate:a}=t;const l=oc(t),c=Lx(t);e&&c&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!Bl(d)){const h=Array.isArray(d)?d:[d];for(let v=0;v({style:{},transform:{},transformOrigin:{},vars:{}}),Bx=()=>B(k({},Oh()),{attrs:{}}),Kx=(t,e)=>e&&typeof t=="number"?e.transform(t):t,zM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},BM=Co.length;function KM(t,e,n){let i="",r=!0;for(let s=0;stypeof t=="string"&&t.toLowerCase()==="svg",GM={useVisualState:zx({scrapeMotionValuesFromProps:Vx,createRenderState:Bx,onMount:(t,e,{renderState:n,latestValues:i})=>{le.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch(r){n.dimensions={x:0,y:0,width:0,height:0}}}),le.render(()=>{zh(n,i,Bh(e.tagName),t.transformTemplate),Ix(e,n)})}})},XM={useVisualState:zx({scrapeMotionValuesFromProps:Ih,createRenderState:Oh})};function Wx(t,e,n){for(const i in e)!it(e[i])&&!Ox(i,n)&&(t[i]=e[i])}function qM({transformTemplate:t},e){return _.useMemo(()=>{const n=Oh();return Vh(n,e,t),Object.assign({},n.vars,n.style)},[e])}function QM(t,e){const n=t.style||{},i={};return Wx(i,n,t),Object.assign(i,qM(t,e)),i}function ZM(t,e){const n={},i=QM(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const JM=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function lc(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||JM.has(t)}let Ux=t=>!lc(t);function eD(t){t&&(Ux=e=>e.startsWith("on")?!lc(e):t(e))}try{eD(require("@emotion/is-prop-valid").default)}catch(t){}function tD(t,e,n){const i={};for(const r in t)r==="values"&&typeof t.values=="object"||(Ux(r)||n===!0&&lc(r)||!e&&!lc(r)||t.draggable&&r.startsWith("onDrag"))&&(i[r]=t[r]);return i}function nD(t,e,n,i){const r=_.useMemo(()=>{const s=Bx();return zh(s,e,Bh(i),t.transformTemplate),B(k({},s.attrs),{style:k({},s.style)})},[e]);if(t.style){const s={};Wx(s,t.style,t),r.style=k(k({},s),r.style)}return r}function iD(t=!1){return(n,i,r,{latestValues:s},o)=>{const l=(Nh(n)?nD:ZM)(i,s,o,n),c=tD(i,typeof n=="string",t),u=n!==_.Fragment?B(k(k({},c),l),{ref:r}):{},{children:d}=i,f=_.useMemo(()=>it(d)?d.get():d,[d]);return _.createElement(n,B(k({},u),{children:f}))}}function rD(t,e){return function(i,{forwardMotionProps:r}={forwardMotionProps:!1}){const s=Nh(i)?GM:XM,o=B(k({},s),{preloadedFeatures:t,useRender:iD(r),createVisualElement:e,Component:i});return jM(o)}}const Kh={current:null},Yx={current:!1};function sD(){if(Yx.current=!0,!!Fh)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Kh.current=t.matches;t.addListener(e),e()}else Kh.current=!1}function oD(t,e,n){for(const i in e){const r=e[i],s=n[i];if(it(r))t.addValue(i,r);else if(it(s))t.addValue(i,Rn(r,{owner:t}));else if(s!==r)if(t.hasValue(i)){const o=t.getValue(i);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=t.getStaticValue(i);t.addValue(i,Rn(o!==void 0?o:r,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Gx=new WeakMap,aD=[...A0,nt,xi],lD=t=>aD.find(D0(t)),Xx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class cD{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Yf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=mn.now();this.renderScheduledAtthis.bindToMotionValue(i,n)),Yx.current||sD(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Kh.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Gx.delete(this.current),this.projection&&this.projection.unmount(),hn(this.notifyUpdate),hn(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Ji.has(e),r=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&le.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{r(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in cs){const n=cs[e];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[e]&&r&&i(this.props)&&(this.features[e]=new r(this)),this.features[e]){const s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Le()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;in.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Rn(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(S0(r)||w0(r))?r=parseFloat(r):!lD(r)&&xi.test(n)&&(r=K0(e,n)),this.setBaseTarget(e,it(r)?r.get():r)),it(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let r;if(typeof i=="string"||typeof i=="object"){const o=Rf(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(r=o[e])}if(i&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!it(s)?s:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new gh),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class qx extends cD{constructor(){super(...arguments),this.KeyframeResolver=H0}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}}function uD(t){return window.getComputedStyle(t)}class dD extends qx{constructor(){super(...arguments),this.type="html",this.renderInstance=Rx}readValueFromInstance(e,n){if(Ji.has(n)){const i=eh(n);return i&&i.default||0}else{const i=uD(e),r=(C0(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Gb(e,n)}build(e,n,i){Vh(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return Ih(e,n,i)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;it(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class fD extends qx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Le}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ji.has(n)){const i=eh(n);return i&&i.default||0}return n=Nx.has(n)?n:vh(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return Vx(e,n,i)}build(e,n,i){zh(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,r){Ix(e,n,i,r)}mount(e){this.isSVGTag=Bh(e.tagName),super.mount(e)}}const hD=(t,e)=>Nh(t)?new fD(e):new dD(e,{allowProjection:t!==_.Fragment}),pD=rD(k(k(k(k({},iE),CM),pM),kM),hD),or=ZT(pD);class mD extends _.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function gD({children:t,isPresent:e}){const n=_.useId(),i=_.useRef(null),r=_.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=_.useContext(jh);return _.useInsertionEffect(()=>{const{width:o,height:a,top:l,left:c}=r.current;if(e||!i.current||!o||!a)return;i.current.dataset.motionPopId=n;const u=document.createElement("style");return s&&(u.nonce=s),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${o}px !important; height: ${a}px !important; top: ${l}px !important; left: ${c}px !important; } `),()=>{document.head.removeChild(u)}},[e]),p.jsx(mD,{isPresent:e,childRef:i,sizeRef:r,children:_.cloneElement(t,{ref:i})})}const vD=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:r,presenceAffectsLayout:s,mode:o})=>{const a=ac(yD),l=_.useId(),c=_.useCallback(d=>{a.set(d,!0);for(const f of a.values())if(!f)return;i&&i()},[a,i]),u=_.useMemo(()=>({id:l,initial:e,isPresent:n,custom:r,onExitComplete:c,register:d=>(a.set(d,!1),()=>a.delete(d))}),s?[Math.random(),c]:[n,c]);return _.useMemo(()=>{a.forEach((d,f)=>a.set(f,!1))},[n]),_.useEffect(()=>{!n&&!a.size&&i&&i()},[n]),o==="popLayout"&&(t=p.jsx(gD,{isPresent:n,children:t})),p.jsx(tc.Provider,{value:u,children:t})};function yD(){return new Map}const cc=t=>t.key||"";function Qx(t){const e=[];return _.Children.forEach(t,n=>{_.isValidElement(n)&&e.push(n)}),e}const bD=({children:t,exitBeforeEnter:e,custom:n,initial:i=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const a=_.useMemo(()=>Qx(t),[t]),l=a.map(cc),c=_.useRef(!0),u=_.useRef(a),d=ac(()=>new Map),[f,h]=_.useState(a),[v,y]=_.useState(a);Rh(()=>{c.current=!1,u.current=a;for(let g=0;g{const b=cc(g),w=a===v||l.includes(b),P=()=>{if(d.has(b))d.set(b,!0);else return;let E=!0;d.forEach(A=>{A||(E=!1)}),E&&(m==null||m(),y(u.current),r&&r())};return p.jsx(vD,{isPresent:w,initial:!c.current||i?void 0:!1,custom:w?void 0:n,presenceAffectsLayout:s,mode:o,onExitComplete:w?void 0:P,children:g},b)})})};function Zx(t,e,n){_.useInsertionEffect(()=>t.on(e,n),[t,e,n])}function xD(t,e,n){return typeof t=="string"?t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}const uc=new WeakMap;let wi;function _D(t,e){if(e){const{inlineSize:n,blockSize:i}=e[0];return{width:n,height:i}}else return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}function wD({target:t,contentRect:e,borderBoxSize:n}){var i;(i=uc.get(t))===null||i===void 0||i.forEach(r=>{r({target:t,contentSize:e,get size(){return _D(t,n)}})})}function SD(t){t.forEach(wD)}function PD(){typeof ResizeObserver!="undefined"&&(wi=new ResizeObserver(SD))}function CD(t,e){wi||PD();const n=xD(t);return n.forEach(i=>{let r=uc.get(i);r||(r=new Set,uc.set(i,r)),r.add(e),wi==null||wi.observe(i)}),()=>{n.forEach(i=>{const r=uc.get(i);r==null||r.delete(e),r!=null&&r.size||wi==null||wi.unobserve(i)})}}const dc=new Set;let Ro;function kD(){Ro=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};dc.forEach(n=>n(e))},window.addEventListener("resize",Ro)}function TD(t){return dc.add(t),Ro||kD(),()=>{dc.delete(t),!dc.size&&Ro&&(Ro=void 0)}}function $D(t,e){return typeof t=="function"?TD(t):CD(t,e)}const ED=50,Jx=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),MD=()=>({time:0,x:Jx(),y:Jx()}),DD={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function e_(t,e,n,i){const r=n[e],{length:s,position:o}=DD[e],a=r.current,l=n.time;r.current=t[`scroll${o}`],r.scrollLength=t[`scroll${s}`]-t[`client${s}`],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=nr(0,r.scrollLength,r.current);const c=i-l;r.velocity=c>ED?0:nh(r.current-a,c)}function AD(t,e,n){e_(t,"x",e,n),e_(t,"y",e,n),e.time=n}function LD(t,e){const n={x:0,y:0};let i=t;for(;i&&i!==e;)if(i instanceof HTMLElement)n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if(i.tagName==="svg"){const r=i.getBoundingClientRect();i=i.parentElement;const s=i.getBoundingClientRect();n.x+=r.left-s.left,n.y+=r.top-s.top}else if(i instanceof SVGGraphicsElement){const{x:r,y:s}=i.getBBox();n.x+=r,n.y+=s;let o=null,a=i.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=i.parentNode;i=o}else break;return n}const jD={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Hh={start:0,center:.5,end:1};function t_(t,e,n=0){let i=0;if(t in Hh&&(t=Hh[t]),typeof t=="string"){const r=parseFloat(t);t.endsWith("px")?i=r:t.endsWith("%")?t=r/100:t.endsWith("vw")?i=r/100*document.documentElement.clientWidth:t.endsWith("vh")?i=r/100*document.documentElement.clientHeight:t=r}return typeof t=="number"&&(i=e*t),n+i}const FD=[0,0];function RD(t,e,n,i){let r=Array.isArray(t)?t:FD,s=0,o=0;return typeof t=="number"?r=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?r=t.split(" "):r=[t,Hh[t]?t:"0"]),s=t_(r[0],n,i),o=t_(r[1],e),s-o}const ND={x:0,y:0};function ID(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function OD(t,e,n){const{offset:i=jD.All}=n,{target:r=t,axis:s="y"}=n,o=s==="y"?"height":"width",a=r!==t?LD(r,t):ND,l=r===t?{width:t.scrollWidth,height:t.scrollHeight}:ID(r),c={width:t.clientWidth,height:t.clientHeight};e[s].offset.length=0;let u=!e[s].interpolate;const d=i.length;for(let f=0;fVD(t,i.target,n),update:r=>{AD(t,n,r),(i.offset||i.target)&&OD(t,n,i)},notify:()=>e(n)}}const No=new WeakMap,n_=new WeakMap,Wh=new WeakMap,i_=t=>t===document.documentElement?window:t;function Uh(t,i={}){var r=i,{container:e=document.documentElement}=r,n=re(r,["container"]);let s=Wh.get(e);s||(s=new Set,Wh.set(e,s));const o=MD(),a=zD(e,t,o,n);if(s.add(a),!No.has(e)){const c=()=>{for(const v of s)v.measure()},u=()=>{for(const v of s)v.update(Be.timestamp)},d=()=>{for(const v of s)v.notify()},f=()=>{le.read(c,!1,!0),le.read(u,!1,!0),le.update(d,!1,!0)};No.set(e,f);const h=i_(e);window.addEventListener("resize",f,{passive:!0}),e!==document.documentElement&&n_.set(e,$D(e,f)),h.addEventListener("scroll",f,{passive:!0})}const l=No.get(e);return le.read(l,!1,!0),()=>{var c;hn(l);const u=Wh.get(e);if(!u||(u.delete(a),u.size))return;const d=No.get(e);No.delete(e),d&&(i_(e).removeEventListener("scroll",d),(c=n_.get(e))===null||c===void 0||c(),window.removeEventListener("resize",d))}}function r_(t,e){let n;const i=()=>{const{currentTime:r}=e,o=(r===null?0:r.value)/100;n!==o&&t(o),n=o};return le.update(i,!0),()=>hn(i)}function BD({source:t,container:e,axis:n="y"}){t&&(e=t);const i={value:0},r=Uh(s=>{i.value=s[n].progress*100},{container:e,axis:n});return{currentTime:i,cancel:r}}const Yh=new Map;function s_({source:t,container:e=document.documentElement,axis:n="y"}={}){t&&(e=t),Yh.has(e)||Yh.set(e,{});const i=Yh.get(e);return i[n]||(i[n]=fb()?new ScrollTimeline({source:e,axis:n}):BD({source:e,axis:n})),i[n]}function KD(t){return t.length===2}function o_(t){return t&&(t.target||t.offset)}function HD(t,e){return KD(t)||o_(e)?Uh(n=>{t(n[e.axis].progress,n)},e):r_(t,s_(e))}function WD(t,e){if(o_(e))return t.pause(),Uh(n=>{t.time=t.duration*n[e.axis].progress},e);{const n=s_(e);return t.attachTimeline(n,i=>(i.pause(),r_(r=>{i.time=i.duration*r},n)))}}function UD(t,i={}){var r=i,{axis:e="y"}=r,n=re(r,["axis"]);const s=k({axis:e},n);return typeof t=="function"?HD(t,s):WD(t,s)}function a_(t,e){f$(!!(!e||e.current))}const YD=()=>({scrollX:Rn(0),scrollY:Rn(0),scrollXProgress:Rn(0),scrollYProgress:Rn(0)});function l_(r={}){var s=r,{container:t,target:e,layoutEffect:n=!0}=s,i=re(s,["container","target","layoutEffect"]);const o=ac(YD);return(n?Rh:_.useEffect)(()=>(a_("target",e),a_("container",t),UD((l,{x:c,y:u})=>{o.scrollX.set(c.current),o.scrollXProgress.set(c.progress),o.scrollY.set(u.current),o.scrollYProgress.set(u.progress)},B(k({},i),{container:(t==null?void 0:t.current)||void 0,target:(e==null?void 0:e.current)||void 0}))),[t,e,JSON.stringify(i.offset)]),o}const T=({children:t})=>{const[e,n]=_.useState(!1),[i,r]=_.useState(!0),s=_.useRef(null),{scrollXProgress:o}=l_({container:s});return Zx(o,"change",a=>{n(a>0),r(a<1)}),p.jsxs("div",{className:"relative w-full rounded-2xl bg-white shadow mb-4",children:[p.jsx(or.div,{initial:{opacity:0},animate:{opacity:e?1:0},className:"scroll-fader absolute left-0 top-0 z-10 h-full w-[20px] bg-gradient-to-r from-[#ffffff] to-[#ffffff]/0 sm:visible md:visible lg:hidden xl:hidden"}),p.jsx(or.section,{ref:s,layoutScroll:!0,className:"simpletable--blade relative overflow-x-auto",children:p.jsx("div",{className:"simpletable__table table",style:{padding:0},children:p.jsx("table",{className:"table-auto border-collapse text-left",children:t})})}),p.jsx(or.div,{initial:{opacity:0},animate:{opacity:i?1:0},className:"scroll-fader absolute right-0 top-0 z-10 h-full w-[20px] bg-gradient-to-l from-[#ffffff] to-[#ffffff]/0 sm:visible md:visible lg:hidden xl:hidden"})]})},GD=({children:t})=>p.jsx("thead",{children:t}),XD=({children:t})=>p.jsx("tr",{role:"row",className:"last:bg-[#F1F3FB]",children:t}),qD=({children:t})=>p.jsx("td",{className:"inline-block min-w-[180px] items-start",role:"cell",children:t}),QD=({children:t})=>p.jsx("th",{className:"inline-block min-w-[180px] items-start font-semibold",role:"columnheader",children:t}),ZD=({children:t})=>p.jsx("tbody",{children:t});T.Head=GD,T.Row=XD,T.Cell=qD,T.HeaderCell=QD,T.Body=ZD;class Gh{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new Gh(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e}constructor(e,n){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=e,this.key=n}}class JD{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let n=this.keyMap;return{*[Symbol.iterator](){let i=n.get(e),r=(i==null?void 0:i.firstChildKey)!=null?n.get(i.firstChildKey):null;for(;r;)yield r,r=r.nextKey!=null?n.get(r.nextKey):void 0}}}getKeyBefore(e){let n=this.keyMap.get(e);if(!n)return null;if(n.prevKey!=null){for(n=this.keyMap.get(n.prevKey);n&&n.type!=="item"&&n.lastChildKey!=null;)n=this.keyMap.get(n.lastChildKey);var i;return(i=n==null?void 0:n.key)!==null&&i!==void 0?i:null}return n.parentKey}getKeyAfter(e){let n=this.keyMap.get(e);if(!n)return null;if(n.type!=="item"&&n.firstChildKey!=null)return n.firstChildKey;for(;n;){if(n.nextKey!=null)return n.nextKey;if(n.parentKey!=null)n=this.keyMap.get(n.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var n;return(n=e==null?void 0:e.key)!==null&&n!==void 0?n:null}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,n=new e;return n.keyMap=new Map(this.keyMap),n.firstKey=this.firstKey,n.lastKey=this.lastKey,n}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,n,i=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=n,this.frozen=!i}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class c_{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}appendChild(e){this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,n){if(n==null)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=n,e.previousSibling=n.previousSibling,e.index=n.index,this.firstChild===n?this.firstChild=e:n.previousSibling&&(n.previousSibling.nextSibling=e),n.previousSibling=e,e.parentNode=n.parentNode;let i=n;for(;i;)i.index++,i=i.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let n=e.nextSibling;for(;n;)n.index--,n=n.nextSibling;e.nextSibling&&(e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class Io extends c_{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Io?this.parentNode.level+(this.node.type==="item"?1:0):0}updateNode(){var e,n,i,r;let s=this.ownerDocument.getMutableNode(this);s.index=this.index,s.level=this.level,s.parentKey=this.parentNode instanceof Io?this.parentNode.node.key:null;var o;s.prevKey=(o=(e=this.previousSibling)===null||e===void 0?void 0:e.node.key)!==null&&o!==void 0?o:null;var a;s.nextKey=(a=(n=this.nextSibling)===null||n===void 0?void 0:n.node.key)!==null&&a!==void 0?a:null,s.hasChildNodes=!!this.firstChild;var l;s.firstChildKey=(l=(i=this.firstChild)===null||i===void 0?void 0:i.node.key)!==null&&l!==void 0?l:null;var c;s.lastChildKey=(c=(r=this.lastChild)===null||r===void 0?void 0:r.node.key)!==null&&c!==void 0?c:null}setProps(e,n,i,r){let s=this.ownerDocument.getMutableNode(this),u=e,{value:o,textValue:a,id:l}=u,c=re(u,["value","textValue","id"]);if(c.ref=n,s.props=c,s.rendered=i,s.render=r,s.value=o,s.textValue=a||(typeof c.children=="string"?c.children:"")||e["aria-label"]||"",l!=null&&l!==s.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");s.key=l}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,n){super(n),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new Gh(e,`react-aria-${++n.nodeId}`),this.ownerDocument.startTransaction()}}class e3 extends c_{get isConnected(){return this.isMounted}createElement(e){return new Io(e,this)}getMutableNode(e){let n=e.node;return this.mutatedNodes.has(e)||(n=e.node.clone(),this.mutatedNodes.add(e),e.node=n),this.markDirty(e),n}getMutableCollection(){return!this.isSSR&&!this.collectionMutated&&(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let n=this.getMutableCollection();if(!n.getItem(e.node.key)){n.addNode(e.node);for(let i of e)this.addNode(i)}this.markDirty(e)}removeNode(e){for(let i of e)this.removeNode(i);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0?this.collection:(this.updateCollection(),this.collection)}updateCollection(){for(let s of this.dirtyNodes)s instanceof Io&&s.isConnected&&s.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,n;let s=this.getMutableCollection();for(let o of this.mutatedNodes)o.isConnected&&s.addNode(o.node);var i,r;s.commit((i=(e=this.firstChild)===null||e===void 0?void 0:e.node.key)!==null&&i!==void 0?i:null,(r=(n=this.lastChild)===null||n===void 0?void 0:n.node.key)!==null&&r!==void 0?r:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(this.dirtyNodes.size===0||this.transactionCount>0))for(let e of this.subscriptions)e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}function u_(t){let{children:e,items:n,idScope:i,addIdAndValue:r,dependencies:s=[]}=t,o=_.useMemo(()=>new WeakMap,s);return _.useMemo(()=>{if(n&&typeof e=="function"){let c=[];for(let u of n){let d=o.get(u);if(!d){d=e(u);var a,l;let f=(l=(a=d.props.id)!==null&&a!==void 0?a:u.key)!==null&&l!==void 0?l:u.id;if(f==null)throw new Error("Could not determine key for item");i&&(f=i+":"+f),d=_.cloneElement(d,r?{key:f,id:f,value:u}:{key:f}),o.set(u,d)}c.push(d)}return c}else if(typeof e!="function")return e},[e,n,o,i,r])}const fc={prefix:String(Math.round(Math.random()*1e10)),current:0},d_=G.createContext(fc),t3=G.createContext(!1);let n3=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Xh=new WeakMap;function i3(t=!1){let e=_.useContext(d_),n=_.useRef(null);if(n.current===null&&!t){var i,r;let s=(r=G.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||r===void 0||(i=r.ReactCurrentOwner)===null||i===void 0?void 0:i.current;if(s){let o=Xh.get(s);o==null?Xh.set(s,{id:e.current,state:s.memoizedState}):s.memoizedState!==o.state&&(e.current=o.id,Xh.delete(s))}n.current=++e.current}return n.current}function r3(t){let e=_.useContext(d_);e===fc&&!n3&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=i3(!!t),i=`react-aria${e.prefix}`;return t||`${i}-${n}`}function s3(t){let e=G.useId(),[n]=_.useState(Oo()),i=n?"react-aria":`react-aria${fc.prefix}`;return t||`${i}-${e}`}const o3=typeof G.useId=="function"?s3:r3;function a3(){return!1}function l3(){return!0}function c3(t){return()=>{}}function Oo(){return typeof G.useSyncExternalStore=="function"?G.useSyncExternalStore(c3,a3,l3):_.useContext(t3)}if(typeof HTMLTemplateElement!="undefined"){const t=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:t.call(this)}})}const qh=_.createContext(!1),u3=typeof DocumentFragment!="undefined"?new DocumentFragment:null;function d3(t){let e=_.useContext(qh),n=Oo();if(e)return G.createElement(G.Fragment,null,t.children);let i=G.createElement(qh.Provider,{value:!0},t.children);return n?G.createElement("template",{"data-react-aria-hidden":!0},i):zl.createPortal(i,u3)}function Qh(t){let e=(n,i)=>_.useContext(qh)?null:t(n,i);return e.displayName=t.displayName||t.name,_.forwardRef(e)}const sn=typeof document!="undefined"?G.useLayoutEffect:()=>{};function Ke(t){const e=_.useRef(null);return sn(()=>{e.current=t},[t]),_.useCallback((...n)=>{const i=e.current;return i==null?void 0:i(...n)},[])}function f3(t){let[e,n]=_.useState(t),i=_.useRef(null),r=Ke(()=>{if(!i.current)return;let o=i.current.next();if(o.done){i.current=null;return}e===o.value?r():n(o.value)});sn(()=>{i.current&&r()});let s=Ke(o=>{i.current=o(e),r()});return[e,s]}let h3=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Si=new Map;function Pi(t){let[e,n]=_.useState(t),i=_.useRef(null),r=o3(e),s=_.useCallback(o=>{i.current=o},[]);return h3&&(Si.has(r)&&!Si.get(r).includes(s)?Si.set(r,[...Si.get(r),s]):Si.set(r,[s])),sn(()=>{let o=r;return()=>{Si.delete(o)}},[r]),_.useEffect(()=>{let o=i.current;o&&(i.current=null,n(o))}),r}function p3(t,e){if(t===e)return t;let n=Si.get(t);if(n)return n.forEach(r=>r(e)),e;let i=Si.get(e);return i?(i.forEach(r=>r(t)),t):e}function f_(t=[]){let e=Pi(),[n,i]=f3(e),r=_.useCallback(()=>{i(function*(){yield e,yield document.getElementById(e)?e:void 0})},[e,i]);return sn(r,[e,r,...t]),n}function Zh(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const yt=t=>{var e;return(e=t==null?void 0:t.ownerDocument)!==null&&e!==void 0?e:document},Wt=t=>t&&"window"in t&&t.window===t?t:yt(t).defaultView||window;function h_(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e=65&&r.charCodeAt(2)<=90?e[r]=Zh(s,o):(r==="className"||r==="UNSAFE_className")&&typeof s=="string"&&typeof o=="string"?e[r]=m3(s,o):r==="id"&&s&&o?e.id=p3(s,o):e[r]=o!==void 0?o:s}}return e}function g3(...t){return t.length===1&&t[0]?t[0]:e=>{for(let n of t)typeof n=="function"?n(e):n!=null&&(n.current=e)}}const v3=new Set(["id"]),y3=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),b3=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),x3=/^(data-.*)$/;function on(t,e={}){let{labelable:n,isLink:i,propNames:r}=e,s={};for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(v3.has(o)||n&&y3.has(o)||i&&b3.has(o)||r!=null&&r.has(o)||x3.test(o))&&(s[o]=t[o]);return s}function gn(t){if(_3())t.focus({preventScroll:!0});else{let e=w3(t);t.focus(),S3(e)}}let hc=null;function _3(){if(hc==null){hc=!1;try{document.createElement("div").focus({get preventScroll(){return hc=!0,!0}})}catch(t){}}return hc}function w3(t){let e=t.parentNode,n=[],i=document.scrollingElement||document.documentElement;for(;e instanceof HTMLElement&&e!==i;)(e.offsetHeightt.test(n.brand)))||t.test(window.navigator.userAgent)}function Jh(t){var e;return typeof window!="undefined"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function On(t){let e=null;return()=>(e==null&&(e=t()),e)}const ar=On(function(){return Jh(/^Mac/i)}),p_=On(function(){return Jh(/^iPhone/i)}),m_=On(function(){return Jh(/^iPad/i)||ar()&&navigator.maxTouchPoints>1}),mc=On(function(){return p_()||m_()}),P3=On(function(){return ar()||mc()}),C3=On(function(){return pc(/AppleWebKit/i)&&!k3()}),k3=On(function(){return pc(/Chrome/i)}),ep=On(function(){return pc(/Android/i)}),T3=On(function(){return pc(/Firefox/i)}),$3=_.createContext({isNative:!0,open:D3,useHref:t=>t});function gc(){return _.useContext($3)}function E3(t,e){let n=t.getAttribute("target");return(!n||n==="_self")&&t.origin===location.origin&&!t.hasAttribute("download")&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey}function lr(t,e,n=!0){var i,r;let{metaKey:s,ctrlKey:o,altKey:a,shiftKey:l}=e;T3()&&(!((r=window.event)===null||r===void 0||(i=r.type)===null||i===void 0)&&i.startsWith("key"))&&t.target==="_blank"&&(ar()?s=!0:o=!0);let c=C3()&&ar()&&!m_()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:o,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:o,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});lr.isOpening=n,gn(t),t.dispatchEvent(c),lr.isOpening=!1}lr.isOpening=!1;function M3(t,e){if(t instanceof HTMLAnchorElement)e(t);else if(t.hasAttribute("data-href")){let n=document.createElement("a");n.href=t.getAttribute("data-href"),t.hasAttribute("data-target")&&(n.target=t.getAttribute("data-target")),t.hasAttribute("data-rel")&&(n.rel=t.getAttribute("data-rel")),t.hasAttribute("data-download")&&(n.download=t.getAttribute("data-download")),t.hasAttribute("data-ping")&&(n.ping=t.getAttribute("data-ping")),t.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=t.getAttribute("data-referrer-policy")),t.appendChild(n),e(n),t.removeChild(n)}}function D3(t,e){M3(t,n=>lr(n,e))}function g_(t){let e=gc();var n;const i=e.useHref((n=t==null?void 0:t.href)!==null&&n!==void 0?n:"");return{href:t!=null&&t.href?i:void 0,target:t==null?void 0:t.target,rel:t==null?void 0:t.rel,download:t==null?void 0:t.download,ping:t==null?void 0:t.ping,referrerPolicy:t==null?void 0:t.referrerPolicy}}let us=new Map,tp=new Set;function v_(){if(typeof window=="undefined")return;function t(i){return"propertyName"in i}let e=i=>{if(!t(i)||!i.target)return;let r=us.get(i.target);r||(r=new Set,us.set(i.target,r),i.target.addEventListener("transitioncancel",n,{once:!0})),r.add(i.propertyName)},n=i=>{if(!t(i)||!i.target)return;let r=us.get(i.target);if(r&&(r.delete(i.propertyName),r.size===0&&(i.target.removeEventListener("transitioncancel",n),us.delete(i.target)),us.size===0)){for(let s of tp)s();tp.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",n)}typeof document!="undefined"&&(document.readyState!=="loading"?v_():document.addEventListener("DOMContentLoaded",v_));function y_(t){requestAnimationFrame(()=>{us.size===0?t():tp.add(t)})}function ds(){let t=_.useRef(new Map),e=_.useCallback((r,s,o,a)=>{let l=a!=null&&a.once?(...c)=>{t.current.delete(o),o(...c)}:o;t.current.set(o,{type:s,eventTarget:r,fn:l,options:a}),r.addEventListener(s,o,a)},[]),n=_.useCallback((r,s,o,a)=>{var l;let c=((l=t.current.get(o))===null||l===void 0?void 0:l.fn)||o;r.removeEventListener(s,c,a),t.current.delete(o)},[]),i=_.useCallback(()=>{t.current.forEach((r,s)=>{n(r.eventTarget,r.type,s,r.options)})},[n]);return _.useEffect(()=>i,[i]),{addGlobalListener:e,removeGlobalListener:n,removeAllGlobalListeners:i}}function np(t,e){let{id:n,"aria-label":i,"aria-labelledby":r}=t;return n=Pi(n),r&&i?r=[...new Set([n,...r.trim().split(/\s+/)])].join(" "):r&&(r=r.trim().split(/\s+/).join(" ")),!i&&!r&&e&&(i=e),{id:n,"aria-label":i,"aria-labelledby":r}}function vc(t){const e=_.useRef(null);return _.useMemo(()=>({get current(){return e.current},set current(n){e.current=n,typeof t=="function"?t(n):t&&(t.current=n)}}),[t])}function b_(t,e){sn(()=>{if(t&&t.ref&&e)return t.ref.current=e.current,()=>{t.ref&&(t.ref.current=null)}})}function A3(t,e){let n=window.getComputedStyle(t),i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return i&&e&&(i=t.scrollHeight!==t.clientHeight||t.scrollWidth!==t.clientWidth),i}function L3(t,e){const n=[];for(;t&&t!==document.documentElement;)A3(t,e)&&n.push(t),t=t.parentElement;return n}let j3=0;const ip=new Map;function F3(t){let[e,n]=_.useState();return sn(()=>{if(!t)return;let i=ip.get(t);if(i)n(i.element.id);else{let r=`react-aria-description-${j3++}`;n(r);let s=document.createElement("div");s.id=r,s.style.display="none",s.textContent=t,document.body.appendChild(s),i={refCount:0,element:s},ip.set(t,i)}return i.refCount++,()=>{i&&--i.refCount===0&&(i.element.remove(),ip.delete(t))}},[t]),{"aria-describedby":t?e:void 0}}function rp(t,e,n,i){let r=Ke(n),s=n==null;_.useEffect(()=>{if(s||!t.current)return;let o=t.current;return o.addEventListener(e,r,i),()=>{o.removeEventListener(e,r,i)}},[t,e,i,s,r])}function x_(t,e){let n=__(t,e,"left"),i=__(t,e,"top"),r=e.offsetWidth,s=e.offsetHeight,o=t.scrollLeft,a=t.scrollTop,{borderTopWidth:l,borderLeftWidth:c}=getComputedStyle(t),u=t.scrollLeft+parseInt(c,10),d=t.scrollTop+parseInt(l,10),f=u+t.clientWidth,h=d+t.clientHeight;n<=o?o=n-parseInt(c,10):n+r>f&&(o+=n+r-f),i<=d?a=i-parseInt(l,10):i+s>h&&(a+=i+s-h),t.scrollLeft=o,t.scrollTop=a}function __(t,e,n){const i=n==="left"?"offsetLeft":"offsetTop";let r=0;for(;e.offsetParent&&(r+=e[i],e.offsetParent!==t);){if(e.offsetParent.contains(t)){r-=t[i];break}e=e.offsetParent}return r}function w_(t,e){if(document.contains(t)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let l=L3(t);for(let c of l)x_(c,t)}else{var n;let{left:l,top:c}=t.getBoundingClientRect();t==null||(n=t.scrollIntoView)===null||n===void 0||n.call(t,{block:"nearest"});let{left:u,top:d}=t.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(c-d)>1){var i,r,s;e==null||(r=e.containingElement)===null||r===void 0||(i=r.scrollIntoView)===null||i===void 0||i.call(r,{block:"center",inline:"center"}),(s=t.scrollIntoView)===null||s===void 0||s.call(t,{block:"nearest"})}}}}function sp(t){return t.mozInputSource===0&&t.isTrusted?!0:ep()&&t.pointerType?t.type==="click"&&t.buttons===1:t.detail===0&&!t.pointerType}function R3(t){return!ep()&&t.width===0&&t.height===0||t.width===1&&t.height===1&&t.pressure===0&&t.detail===0&&t.pointerType==="mouse"}function op(t,e,n){let i=_.useRef(e),r=Ke(()=>{n&&n(i.current)});_.useEffect(()=>{var s;let o=t==null||(s=t.current)===null||s===void 0?void 0:s.form;return o==null||o.addEventListener("reset",r),()=>{o==null||o.removeEventListener("reset",r)}},[t,r])}function Vo(t,e,n){let[i,r]=_.useState(t||e),s=_.useRef(t!==void 0),o=t!==void 0;_.useEffect(()=>{let c=s.current;c!==o&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),s.current=o},[o]);let a=o?t:i,l=_.useCallback((c,...u)=>{let d=(f,...h)=>{n&&(Object.is(a,f)||n(f,...h)),o||(a=f)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),r((h,...v)=>{let y=c(o?a:h,...v);return d(y,...u),o?h:y})):(o||r(c),d(c,...u))},[o,a,n]);return[a,l]}function fs(t,e=-1/0,n=1/0){return Math.min(Math.max(t,e),n)}function yc(t,e){let n=t,i=e.toString(),r=i.indexOf("."),s=r>=0?i.length-r:0;if(s>0){let o=Math.pow(10,s);n=Math.round(n*o)/o}return n}function bt(t,e,n,i){e=Number(e),n=Number(n);let r=(t-(isNaN(e)?0:e))%i,s=yc(Math.abs(r)*2>=i?t+Math.sign(r)*(i-Math.abs(r)):t-r,i);return isNaN(e)?!isNaN(n)&&s>n&&(s=Math.floor(yc(n/i,i))*i):sn&&(s=e+Math.floor(yc((n-e)/i,i))*i),s=yc(s,i),s}var S_={exports:{}},P_={};/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var hs=_;function N3(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var I3=typeof Object.is=="function"?Object.is:N3,O3=hs.useState,V3=hs.useEffect,z3=hs.useLayoutEffect,B3=hs.useDebugValue;function K3(t,e){var n=e(),i=O3({inst:{value:n,getSnapshot:e}}),r=i[0].inst,s=i[1];return z3(function(){r.value=n,r.getSnapshot=e,ap(r)&&s({inst:r})},[t,n,e]),V3(function(){return ap(r)&&s({inst:r}),t(function(){ap(r)&&s({inst:r})})},[t]),B3(n),n}function ap(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!I3(t,n)}catch(i){return!0}}function H3(t,e){return e()}var W3=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?H3:K3;P_.useSyncExternalStore=hs.useSyncExternalStore!==void 0?hs.useSyncExternalStore:W3,S_.exports=P_;var U3=S_.exports;const C_=_.createContext(!1),zo=_.createContext(null);function Y3(t){if(_.useContext(zo))return t.content;let{collection:n,document:i}=Q3(t.createCollection);return G.createElement(G.Fragment,null,G.createElement(d3,null,G.createElement(zo.Provider,{value:i},t.content)),G.createElement(G3,{render:t.children,collection:n}))}function G3({collection:t,render:e}){return e(t)}function X3(t,e,n){let i=Oo(),r=_.useRef(i);r.current=i;let s=_.useCallback(()=>r.current?n():e(),[e,n]);return U3.useSyncExternalStore(t,s)}const q3=typeof G.useSyncExternalStore=="function"?G.useSyncExternalStore:X3;function Q3(t){let[e]=_.useState(()=>new e3((t==null?void 0:t())||new JD)),n=_.useCallback(o=>e.subscribe(o),[e]),i=_.useCallback(()=>{let o=e.getCollection();return e.isSSR&&e.resetAfterSSR(),o},[e]),r=_.useCallback(()=>(e.isSSR=!0,e.getCollection()),[e]),s=q3(n,i,r);return sn(()=>(e.isMounted=!0,()=>{e.isMounted=!1}),[e]),{collection:s,document:e}}const lp=_.createContext(null);function Z3(t,e,n,i,r,s){let o=_.useCallback(l=>{l==null||l.setProps(e,n,i,s)},[e,n,i,s]),a=_.useContext(lp);if(a){let l=a.ownerDocument.nodesByProps.get(e);return l||(l=a.ownerDocument.createElement(t),l.setProps(e,n,i,s),a.appendChild(l),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(e,l)),r?G.createElement(lp.Provider,{value:l},r):null}return G.createElement(t,{ref:o},r)}function J3(t,e){let n=({node:r})=>e(r.props,r.props.ref,r),i=_.forwardRef((r,s)=>{if(!_.useContext(C_)){if(e.length>=3)throw new Error(e.name+" cannot be rendered outside a collection.");return e(r,s)}return Z3(t,r,s,"children"in r?r.children:null,null,a=>G.createElement(n,{node:a}))});return i.displayName=e.name,i}function e4(t){return u_(B(k({},t),{addIdAndValue:!0}))}const k_=_.createContext(null);function t4(t){let e=_.useContext(k_),n=((e==null?void 0:e.dependencies)||[]).concat(t.dependencies),i=t.idScope||(e==null?void 0:e.idScope),r=e4(B(k({},t),{idScope:i,dependencies:n}));return _.useContext(zo)&&(r=G.createElement(n4,null,r)),e=_.useMemo(()=>({dependencies:n,idScope:i}),[i,...n]),G.createElement(k_.Provider,{value:e},r)}function n4({children:t}){let e=_.useContext(zo),n=_.useMemo(()=>G.createElement(zo.Provider,{value:null},G.createElement(C_.Provider,{value:!0},t)),[t]);return Oo()?G.createElement(lp.Provider,{value:e},n):zl.createPortal(n,e)}const i4={CollectionRoot({collection:t,renderDropIndicator:e}){return T_(t,null,e)},CollectionBranch({collection:t,parent:e,renderDropIndicator:n}){return T_(t,e,n)}};function T_(t,e,n){return u_({items:e?t.getChildren(e.key):t,dependencies:[n],children(i){var r;let s=i.render(i);if(!n||i.type!=="item")return s;let o=i.key,a=t.getKeyAfter(o);return G.createElement(G.Fragment,null,n({type:"item",key:o,dropPosition:"before"}),s,(a==null||((r=t.getItem(a))===null||r===void 0?void 0:r.type)!=="item")&&n({type:"item",key:o,dropPosition:"after"}))}})}const r4=_.createContext(i4);function s4(t){return _.useMemo(()=>t!=null?new Set([t]):null,[t])}const $_=Symbol("default");function Bo({values:t,children:e}){for(let[n,i]of t)e=G.createElement(n.Provider,{value:i},e);return e}function Lt(t){let{className:e,style:n,children:i,defaultClassName:r,defaultChildren:s,defaultStyle:o,values:a}=t;return _.useMemo(()=>{let l,c,u;return typeof e=="function"?l=e(B(k({},a),{defaultClassName:r})):l=e,typeof n=="function"?c=n(B(k({},a),{defaultStyle:o||{}})):c=n,typeof i=="function"?u=i(B(k({},a),{defaultChildren:s})):i==null?u=s:u=i,{className:l!=null?l:r,style:c||o?k(k({},o),c):void 0,children:u!=null?u:s,"data-rac":""}},[e,n,i,r,s,o,a])}function bc(t,e){let n=_.useContext(t);if(e===null)return null;if(n&&typeof n=="object"&&"slots"in n&&n.slots){let i=new Intl.ListFormat().format(Object.keys(n.slots).map(s=>`"${s}"`));if(!e&&!n.slots[$_])throw new Error(`A slot prop is required. Valid slot names are ${i}.`);let r=e||$_;if(!n.slots[r])throw new Error(`Invalid slot "${e}". Valid slot names are ${i}.`);return n.slots[r]}return n}function vn(t,e,n){let l=bc(n,t.slot)||{},{ref:r}=l,s=re(l,["ref"]),o=vc(_.useMemo(()=>g3(e,r),[e,r])),a=ue(s,t);return"style"in s&&s.style&&"style"in t&&t.style&&(typeof s.style=="function"||typeof t.style=="function"?a.style=c=>{let u=typeof s.style=="function"?s.style(c):s.style,d=k(k({},c.defaultStyle),u),f=typeof t.style=="function"?t.style(B(k({},c),{defaultStyle:d})):t.style;return k(k({},d),f)}:a.style=k(k({},s.style),t.style)),[a,o]}function cp(){let[t,e]=_.useState(!0),n=_.useRef(!1),i=_.useCallback(r=>{n.current=!0,e(!!r)},[]);return sn(()=>{n.current||e(!1)},[]),[i,t]}function o4(t){const e=/^(data-.*)$/;let n={};for(const i in t)e.test(i)||(n[i]=t[i]);return n}let ps="default",up="",xc=new WeakMap;function dp(t){if(mc()){if(ps==="default"){const e=yt(t);up=e.documentElement.style.webkitUserSelect,e.documentElement.style.webkitUserSelect="none"}ps="disabled"}else(t instanceof HTMLElement||t instanceof SVGElement)&&(xc.set(t,t.style.userSelect),t.style.userSelect="none")}function Ko(t){if(mc()){if(ps!=="disabled")return;ps="restoring",setTimeout(()=>{y_(()=>{if(ps==="restoring"){const e=yt(t);e.documentElement.style.webkitUserSelect==="none"&&(e.documentElement.style.webkitUserSelect=up||""),up="",ps="default"}})},300)}else if((t instanceof HTMLElement||t instanceof SVGElement)&&t&&xc.has(t)){let e=xc.get(t);t.style.userSelect==="none"&&(t.style.userSelect=e),t.getAttribute("style")===""&&t.removeAttribute("style"),xc.delete(t)}}const E_=G.createContext({register:()=>{}});E_.displayName="PressResponderContext";function a4(t,e){return e.get?e.get.call(t):e.value}function M_(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function l4(t,e){var n=M_(t,e,"get");return a4(t,n)}function c4(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function u4(t,e,n){c4(t,e),e.set(t,n)}function d4(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function D_(t,e,n){var i=M_(t,e,"set");return d4(t,i,n),n}function f4(t){let e=_.useContext(E_);if(e){let n=e,{register:i}=n,r=re(n,["register"]);t=ue(r,t),i()}return b_(e,t.ref),t}var _c=new WeakMap;class wc{continuePropagation(){D_(this,_c,!1)}get shouldStopPropagation(){return l4(this,_c)}constructor(e,n,i,r){u4(this,_c,{writable:!0,value:void 0}),D_(this,_c,!0);var s;let o=(s=r==null?void 0:r.target)!==null&&s!==void 0?s:i.currentTarget;const a=o==null?void 0:o.getBoundingClientRect();let l,c=0,u,d=null;i.clientX!=null&&i.clientY!=null&&(u=i.clientX,d=i.clientY),a&&(u!=null&&d!=null?(l=u-a.left,c=d-a.top):(l=a.width/2,c=a.height/2)),this.type=e,this.pointerType=n,this.target=i.currentTarget,this.shiftKey=i.shiftKey,this.metaKey=i.metaKey,this.ctrlKey=i.ctrlKey,this.altKey=i.altKey,this.x=l,this.y=c}}const A_=Symbol("linkClicked");function fp(t){let M=f4(t),{onPress:e,onPressChange:n,onPressStart:i,onPressEnd:r,onPressUp:s,isDisabled:o,isPressed:a,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:d}=M,f=re(M,["onPress","onPressChange","onPressStart","onPressEnd","onPressUp","isDisabled","isPressed","preventFocusOnPress","shouldCancelOnPointerExit","allowTextSelectionOnPress","ref"]),[h,v]=_.useState(!1),y=_.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:x,removeAllGlobalListeners:m}=ds(),g=Ke((S,C)=>{let R=y.current;if(o||R.didFirePressStart)return!1;let $=!0;if(R.isTriggeringEvent=!0,i){let I=new wc("pressstart",C,S);i(I),$=I.shouldStopPropagation}return n&&n(!0),R.isTriggeringEvent=!1,R.didFirePressStart=!0,v(!0),$}),b=Ke((S,C,R=!0)=>{let $=y.current;if(!$.didFirePressStart)return!1;$.ignoreClickAfterPress=!0,$.didFirePressStart=!1,$.isTriggeringEvent=!0;let I=!0;if(r){let j=new wc("pressend",C,S);r(j),I=j.shouldStopPropagation}if(n&&n(!1),v(!1),e&&R&&!o){let j=new wc("press",C,S);e(j),I&&(I=j.shouldStopPropagation)}return $.isTriggeringEvent=!1,I}),w=Ke((S,C)=>{let R=y.current;if(o)return!1;if(s){R.isTriggeringEvent=!0;let $=new wc("pressup",C,S);return s($),R.isTriggeringEvent=!1,$.shouldStopPropagation}return!0}),P=Ke(S=>{let C=y.current;C.isPressed&&C.target&&(C.isOverTarget&&C.pointerType!=null&&b(Vn(C.target,S),C.pointerType,!1),C.isPressed=!1,C.isOverTarget=!1,C.activePointerId=null,C.pointerType=null,m(),u||Ko(C.target))}),E=Ke(S=>{c&&P(S)}),A=_.useMemo(()=>{let S=y.current,C={onKeyDown($){if(pp($.nativeEvent,$.currentTarget)&&$.currentTarget.contains($.target)){var I;F_($.target,$.key)&&$.preventDefault();let j=!0;if(!S.isPressed&&!$.repeat){S.target=$.currentTarget,S.isPressed=!0,j=g($,"keyboard");let z=$.currentTarget,L=F=>{pp(F,z)&&!F.repeat&&z.contains(F.target)&&S.target&&w(Vn(S.target,F),"keyboard")};x(yt($.currentTarget),"keyup",Zh(L,R),!0)}j&&$.stopPropagation(),$.metaKey&&ar()&&((I=S.metaKeyEvents)===null||I===void 0||I.set($.key,$.nativeEvent))}else $.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick($){if(!($&&!$.currentTarget.contains($.target))&&$&&$.button===0&&!S.isTriggeringEvent&&!lr.isOpening){let I=!0;if(o&&$.preventDefault(),!S.ignoreClickAfterPress&&!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||sp($.nativeEvent))){!o&&!l&&gn($.currentTarget);let j=g($,"virtual"),z=w($,"virtual"),L=b($,"virtual");I=j&&z&&L}S.ignoreEmulatedMouseEvents=!1,S.ignoreClickAfterPress=!1,I&&$.stopPropagation()}}},R=$=>{var I;if(S.isPressed&&S.target&&pp($,S.target)){var j;F_($.target,$.key)&&$.preventDefault();let L=$.target;b(Vn(S.target,$),"keyboard",S.target.contains(L)),m(),$.key!=="Enter"&&hp(S.target)&&S.target.contains(L)&&!$[A_]&&($[A_]=!0,lr(S.target,$,!1)),S.isPressed=!1,(j=S.metaKeyEvents)===null||j===void 0||j.delete($.key)}else if($.key==="Meta"&&(!((I=S.metaKeyEvents)===null||I===void 0)&&I.size)){var z;let L=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let F of L.values())(z=S.target)===null||z===void 0||z.dispatchEvent(new KeyboardEvent("keyup",F))}};if(typeof PointerEvent!="undefined"){C.onPointerDown=L=>{if(L.button!==0||!L.currentTarget.contains(L.target))return;if(R3(L.nativeEvent)){S.pointerType="virtual";return}mp(L.currentTarget)&&L.preventDefault(),S.pointerType=L.pointerType;let F=!0;S.isPressed||(S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=L.pointerId,S.target=L.currentTarget,!o&&!l&&gn(L.currentTarget),u||dp(S.target),F=g(L,S.pointerType),x(yt(L.currentTarget),"pointermove",$,!1),x(yt(L.currentTarget),"pointerup",I,!1),x(yt(L.currentTarget),"pointercancel",z,!1)),F&&L.stopPropagation()},C.onMouseDown=L=>{L.currentTarget.contains(L.target)&&L.button===0&&(mp(L.currentTarget)&&L.preventDefault(),L.stopPropagation())},C.onPointerUp=L=>{!L.currentTarget.contains(L.target)||S.pointerType==="virtual"||L.button===0&&ms(L,L.currentTarget)&&w(L,S.pointerType||L.pointerType)};let $=L=>{L.pointerId===S.activePointerId&&(S.target&&ms(L,S.target)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,g(Vn(S.target,L),S.pointerType)):S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,b(Vn(S.target,L),S.pointerType,!1),E(L)))},I=L=>{L.pointerId===S.activePointerId&&S.isPressed&&L.button===0&&S.target&&(ms(L,S.target)&&S.pointerType!=null?b(Vn(S.target,L),S.pointerType):S.isOverTarget&&S.pointerType!=null&&b(Vn(S.target,L),S.pointerType,!1),S.isPressed=!1,S.isOverTarget=!1,S.activePointerId=null,S.pointerType=null,m(),u||Ko(S.target),"ontouchend"in S.target&&L.pointerType!=="mouse"&&x(S.target,"touchend",j,{once:!0}))},j=L=>{j_(L.currentTarget)&&L.preventDefault()},z=L=>{P(L)};C.onDragStart=L=>{L.currentTarget.contains(L.target)&&P(L)}}else{C.onMouseDown=j=>{if(j.button!==0||!j.currentTarget.contains(j.target))return;if(mp(j.currentTarget)&&j.preventDefault(),S.ignoreEmulatedMouseEvents){j.stopPropagation();return}S.isPressed=!0,S.isOverTarget=!0,S.target=j.currentTarget,S.pointerType=sp(j.nativeEvent)?"virtual":"mouse",!o&&!l&&gn(j.currentTarget),g(j,S.pointerType)&&j.stopPropagation(),x(yt(j.currentTarget),"mouseup",$,!1)},C.onMouseEnter=j=>{if(!j.currentTarget.contains(j.target))return;let z=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,z=g(j,S.pointerType)),z&&j.stopPropagation()},C.onMouseLeave=j=>{if(!j.currentTarget.contains(j.target))return;let z=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,z=b(j,S.pointerType,!1),E(j)),z&&j.stopPropagation()},C.onMouseUp=j=>{j.currentTarget.contains(j.target)&&!S.ignoreEmulatedMouseEvents&&j.button===0&&w(j,S.pointerType||"mouse")};let $=j=>{if(j.button===0){if(S.isPressed=!1,m(),S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&ms(j,S.target)&&S.pointerType!=null?b(Vn(S.target,j),S.pointerType):S.target&&S.isOverTarget&&S.pointerType!=null&&b(Vn(S.target,j),S.pointerType,!1),S.isOverTarget=!1}};C.onTouchStart=j=>{if(!j.currentTarget.contains(j.target))return;let z=h4(j.nativeEvent);if(!z)return;S.activePointerId=z.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=j.currentTarget,S.pointerType="touch",!o&&!l&&gn(j.currentTarget),u||dp(S.target),g(Ci(S.target,j),S.pointerType)&&j.stopPropagation(),x(Wt(j.currentTarget),"scroll",I,!0)},C.onTouchMove=j=>{if(!j.currentTarget.contains(j.target))return;if(!S.isPressed){j.stopPropagation();return}let z=L_(j.nativeEvent,S.activePointerId),L=!0;z&&ms(z,j.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,L=g(Ci(S.target,j),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,L=b(Ci(S.target,j),S.pointerType,!1),E(Ci(S.target,j))),L&&j.stopPropagation()},C.onTouchEnd=j=>{if(!j.currentTarget.contains(j.target))return;if(!S.isPressed){j.stopPropagation();return}let z=L_(j.nativeEvent,S.activePointerId),L=!0;z&&ms(z,j.currentTarget)&&S.pointerType!=null?(w(Ci(S.target,j),S.pointerType),L=b(Ci(S.target,j),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(L=b(Ci(S.target,j),S.pointerType,!1)),L&&j.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!u&&Ko(S.target),m()},C.onTouchCancel=j=>{j.currentTarget.contains(j.target)&&(j.stopPropagation(),S.isPressed&&P(Ci(S.target,j)))};let I=j=>{S.isPressed&&j.target.contains(S.target)&&P({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};C.onDragStart=j=>{j.currentTarget.contains(j.target)&&P(j)}}return C},[x,o,l,m,u,P,E,b,g,w]);return _.useEffect(()=>()=>{var S;u||Ko((S=y.current.target)!==null&&S!==void 0?S:void 0)},[u]),{isPressed:a||h,pressProps:ue(f,A)}}function hp(t){return t.tagName==="A"&&t.hasAttribute("href")}function pp(t,e){const{key:n,code:i}=t,r=e,s=r.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||i==="Space")&&!(r instanceof Wt(r).HTMLInputElement&&!R_(r,n)||r instanceof Wt(r).HTMLTextAreaElement||r.isContentEditable)&&!((s==="link"||!s&&hp(r))&&n!=="Enter")}function h4(t){const{targetTouches:e}=t;return e.length>0?e[0]:null}function L_(t,e){const n=t.changedTouches;for(let i=0;ie.right||e.left>t.right||t.top>e.bottom||e.top>t.bottom)}function ms(t,e){let n=e.getBoundingClientRect(),i=p4(t);return m4(n,i)}function mp(t){return!(t instanceof HTMLElement)||!t.hasAttribute("draggable")}function j_(t){return t instanceof HTMLInputElement?!1:t instanceof HTMLButtonElement?t.type!=="submit"&&t.type!=="reset":!hp(t)}function F_(t,e){return t instanceof HTMLInputElement?!R_(t,e):j_(t)}const g4=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function R_(t,e){return t.type==="checkbox"||t.type==="radio"?e===" ":g4.has(t.type)}class v4{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}}function N_(t){let e=_.useRef({isFocused:!1,observer:null});sn(()=>{const i=e.current;return()=>{i.observer&&(i.observer.disconnect(),i.observer=null)}},[]);let n=Ke(i=>{t==null||t(i)});return _.useCallback(i=>{if(i.target instanceof HTMLButtonElement||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLSelectElement){e.current.isFocused=!0;let r=i.target,s=o=>{e.current.isFocused=!1,r.disabled&&n(new v4("blur",o)),e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};r.addEventListener("focusout",s,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&r.disabled){var o;(o=e.current.observer)===null||o===void 0||o.disconnect();let a=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),e.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function gp(t){let{isDisabled:e,onFocus:n,onBlur:i,onFocusChange:r}=t;const s=_.useCallback(l=>{if(l.target===l.currentTarget)return i&&i(l),r&&r(!1),!0},[i,r]),o=N_(s),a=_.useCallback(l=>{const c=yt(l.target);l.target===l.currentTarget&&c.activeElement===l.target&&(n&&n(l),r&&r(!0),o(l))},[r,n,o]);return{focusProps:{onFocus:!e&&(n||r||i)?a:void 0,onBlur:!e&&(i||r)?s:void 0}}}let cr=null,vp=new Set,Ho=new Map,ur=!1,yp=!1;const y4={Tab:!0,Escape:!0};function Sc(t,e){for(let n of vp)n(t,e)}function b4(t){return!(t.metaKey||!ar()&&t.altKey||t.ctrlKey||t.key==="Control"||t.key==="Shift"||t.key==="Meta")}function Pc(t){ur=!0,b4(t)&&(cr="keyboard",Sc("keyboard",t))}function Ut(t){cr="pointer",(t.type==="mousedown"||t.type==="pointerdown")&&(ur=!0,Sc("pointer",t))}function I_(t){sp(t)&&(ur=!0,cr="virtual")}function O_(t){t.target===window||t.target===document||(!ur&&!yp&&(cr="virtual",Sc("virtual",t)),ur=!1,yp=!1)}function V_(){ur=!1,yp=!0}function bp(t){if(typeof window=="undefined"||Ho.get(Wt(t)))return;const e=Wt(t),n=yt(t);let i=e.HTMLElement.prototype.focus;e.HTMLElement.prototype.focus=function(){ur=!0,i.apply(this,arguments)},n.addEventListener("keydown",Pc,!0),n.addEventListener("keyup",Pc,!0),n.addEventListener("click",I_,!0),e.addEventListener("focus",O_,!0),e.addEventListener("blur",V_,!1),typeof PointerEvent!="undefined"?(n.addEventListener("pointerdown",Ut,!0),n.addEventListener("pointermove",Ut,!0),n.addEventListener("pointerup",Ut,!0)):(n.addEventListener("mousedown",Ut,!0),n.addEventListener("mousemove",Ut,!0),n.addEventListener("mouseup",Ut,!0)),e.addEventListener("beforeunload",()=>{z_(t)},{once:!0}),Ho.set(e,{focus:i})}const z_=(t,e)=>{const n=Wt(t),i=yt(t);e&&i.removeEventListener("DOMContentLoaded",e),Ho.has(n)&&(n.HTMLElement.prototype.focus=Ho.get(n).focus,i.removeEventListener("keydown",Pc,!0),i.removeEventListener("keyup",Pc,!0),i.removeEventListener("click",I_,!0),n.removeEventListener("focus",O_,!0),n.removeEventListener("blur",V_,!1),typeof PointerEvent!="undefined"?(i.removeEventListener("pointerdown",Ut,!0),i.removeEventListener("pointermove",Ut,!0),i.removeEventListener("pointerup",Ut,!0)):(i.removeEventListener("mousedown",Ut,!0),i.removeEventListener("mousemove",Ut,!0),i.removeEventListener("mouseup",Ut,!0)),Ho.delete(n))};function x4(t){const e=yt(t);let n;return e.readyState!=="loading"?bp(t):(n=()=>{bp(t)},e.addEventListener("DOMContentLoaded",n)),()=>z_(t,n)}typeof document!="undefined"&&x4();function B_(){return cr!=="pointer"}function xp(){return cr}function K_(t){cr=t,Sc(t,null)}const _4=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function w4(t,e,n){var i;const r=typeof window!="undefined"?Wt(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,s=typeof window!="undefined"?Wt(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window!="undefined"?Wt(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window!="undefined"?Wt(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return t=t||(n==null?void 0:n.target)instanceof r&&!_4.has(n==null||(i=n.target)===null||i===void 0?void 0:i.type)||(n==null?void 0:n.target)instanceof s||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(t&&e==="keyboard"&&n instanceof a&&!y4[n.key])}function S4(t,e,n){bp(),_.useEffect(()=>{let i=(r,s)=>{w4(!!(n!=null&&n.isTextInput),r,s)&&t(B_())};return vp.add(i),()=>{vp.delete(i)}},e)}function _p(t){let{isDisabled:e,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:r}=t,s=_.useRef({isFocusWithin:!1}),o=_.useCallback(c=>{s.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(s.current.isFocusWithin=!1,n&&n(c),r&&r(!1))},[n,r,s]),a=N_(o),l=_.useCallback(c=>{!s.current.isFocusWithin&&document.activeElement===c.target&&(i&&i(c),r&&r(!0),s.current.isFocusWithin=!0,a(c))},[i,r,a]);return e?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:o}}}let Cc=!1,wp=0;function Sp(){Cc=!0,setTimeout(()=>{Cc=!1},50)}function H_(t){t.pointerType==="touch"&&Sp()}function P4(){if(typeof document!="undefined")return typeof PointerEvent!="undefined"?document.addEventListener("pointerup",H_):document.addEventListener("touchend",Sp),wp++,()=>{wp--,!(wp>0)&&(typeof PointerEvent!="undefined"?document.removeEventListener("pointerup",H_):document.removeEventListener("touchend",Sp))}}function gs(t){let{onHoverStart:e,onHoverChange:n,onHoverEnd:i,isDisabled:r}=t,[s,o]=_.useState(!1),a=_.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;_.useEffect(P4,[]);let{hoverProps:l,triggerHoverEnd:c}=_.useMemo(()=>{let u=(h,v)=>{if(a.pointerType=v,r||v==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let y=h.currentTarget;a.target=y,e&&e({type:"hoverstart",target:y,pointerType:v}),n&&n(!0),o(!0)},d=(h,v)=>{if(a.pointerType="",a.target=null,v==="touch"||!a.isHovered)return;a.isHovered=!1;let y=h.currentTarget;i&&i({type:"hoverend",target:y,pointerType:v}),n&&n(!1),o(!1)},f={};return typeof PointerEvent!="undefined"?(f.onPointerEnter=h=>{Cc&&h.pointerType==="mouse"||u(h,h.pointerType)},f.onPointerLeave=h=>{!r&&h.currentTarget.contains(h.target)&&d(h,h.pointerType)}):(f.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!Cc&&u(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=h=>{!r&&h.currentTarget.contains(h.target)&&d(h,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[e,n,i,r,a]);return _.useEffect(()=>{r&&c({currentTarget:a.target},a.pointerType)},[r]),{hoverProps:l,isHovered:s}}function W_(t){if(!t)return;let e=!0;return n=>{let i=B(k({},n),{preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){e=!1}});t(i),e&&n.stopPropagation()}}function U_(t){return{keyboardProps:t.isDisabled?{}:{onKeyDown:W_(t.onKeyDown),onKeyUp:W_(t.onKeyUp)}}}function Y_(t){let{onMoveStart:e,onMove:n,onMoveEnd:i}=t,r=_.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:s,removeGlobalListener:o}=ds(),a=Ke((u,d,f,h)=>{f===0&&h===0||(r.current.didMove||(r.current.didMove=!0,e==null||e({type:"movestart",pointerType:d,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey})),n==null||n({type:"move",pointerType:d,deltaX:f,deltaY:h,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey}))}),l=Ke((u,d)=>{Ko(),r.current.didMove&&(i==null||i({type:"moveend",pointerType:d,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey}))});return{moveProps:_.useMemo(()=>{let u={},d=()=>{dp(),r.current.didMove=!1};if(typeof PointerEvent=="undefined"){let h=m=>{if(m.button===0){var g,b,w,P;a(m,"mouse",m.pageX-((w=(g=r.current.lastPosition)===null||g===void 0?void 0:g.pageX)!==null&&w!==void 0?w:0),m.pageY-((P=(b=r.current.lastPosition)===null||b===void 0?void 0:b.pageY)!==null&&P!==void 0?P:0)),r.current.lastPosition={pageX:m.pageX,pageY:m.pageY}}},v=m=>{m.button===0&&(l(m,"mouse"),o(window,"mousemove",h,!1),o(window,"mouseup",v,!1))};u.onMouseDown=m=>{m.button===0&&(d(),m.stopPropagation(),m.preventDefault(),r.current.lastPosition={pageX:m.pageX,pageY:m.pageY},s(window,"mousemove",h,!1),s(window,"mouseup",v,!1))};let y=m=>{let g=[...m.changedTouches].findIndex(({identifier:A})=>A===r.current.id);if(g>=0){var b,w;let{pageX:A,pageY:M}=m.changedTouches[g];var P,E;a(m,"touch",A-((P=(b=r.current.lastPosition)===null||b===void 0?void 0:b.pageX)!==null&&P!==void 0?P:0),M-((E=(w=r.current.lastPosition)===null||w===void 0?void 0:w.pageY)!==null&&E!==void 0?E:0)),r.current.lastPosition={pageX:A,pageY:M}}},x=m=>{[...m.changedTouches].findIndex(({identifier:b})=>b===r.current.id)>=0&&(l(m,"touch"),r.current.id=null,o(window,"touchmove",y),o(window,"touchend",x),o(window,"touchcancel",x))};u.onTouchStart=m=>{if(m.changedTouches.length===0||r.current.id!=null)return;let{pageX:g,pageY:b,identifier:w}=m.changedTouches[0];d(),m.stopPropagation(),m.preventDefault(),r.current.lastPosition={pageX:g,pageY:b},r.current.id=w,s(window,"touchmove",y,!1),s(window,"touchend",x,!1),s(window,"touchcancel",x,!1)}}else{let h=y=>{if(y.pointerId===r.current.id){var x,m;let w=y.pointerType||"mouse";var g,b;a(y,w,y.pageX-((g=(x=r.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&g!==void 0?g:0),y.pageY-((b=(m=r.current.lastPosition)===null||m===void 0?void 0:m.pageY)!==null&&b!==void 0?b:0)),r.current.lastPosition={pageX:y.pageX,pageY:y.pageY}}},v=y=>{if(y.pointerId===r.current.id){let x=y.pointerType||"mouse";l(y,x),r.current.id=null,o(window,"pointermove",h,!1),o(window,"pointerup",v,!1),o(window,"pointercancel",v,!1)}};u.onPointerDown=y=>{y.button===0&&r.current.id==null&&(d(),y.stopPropagation(),y.preventDefault(),r.current.lastPosition={pageX:y.pageX,pageY:y.pageY},r.current.id=y.pointerId,s(window,"pointermove",h,!1),s(window,"pointerup",v,!1),s(window,"pointercancel",v,!1))}}let f=(h,v,y)=>{d(),a(h,"keyboard",v,y),l(h,"keyboard")};return u.onKeyDown=h=>{switch(h.key){case"Left":case"ArrowLeft":h.preventDefault(),h.stopPropagation(),f(h,-1,0);break;case"Right":case"ArrowRight":h.preventDefault(),h.stopPropagation(),f(h,1,0);break;case"Up":case"ArrowUp":h.preventDefault(),h.stopPropagation(),f(h,0,-1);break;case"Down":case"ArrowDown":h.preventDefault(),h.stopPropagation(),f(h,0,1);break}},u},[r,s,o,a,l])}}function C4(t,e){let{onScroll:n,isDisabled:i}=t,r=_.useCallback(s=>{s.ctrlKey||(s.preventDefault(),s.stopPropagation(),n&&n({deltaX:s.deltaX,deltaY:s.deltaY}))},[n]);rp(e,"wheel",i?void 0:r)}const k4=500;function T4(t){let{isDisabled:e,onLongPressStart:n,onLongPressEnd:i,onLongPress:r,threshold:s=k4,accessibilityDescription:o}=t;const a=_.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:c}=ds(),{pressProps:u}=fp({isDisabled:e,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(n&&n(B(k({},f),{type:"longpressstart"})),a.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),r&&r(B(k({},f),{type:"longpress"})),a.current=void 0},s),f.pointerType==="touch")){let h=v=>{v.preventDefault()};l(f.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(f.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(f){a.current&&clearTimeout(a.current),i&&(f.pointerType==="mouse"||f.pointerType==="touch")&&i(B(k({},f),{type:"longpressend"}))}}),d=F3(r&&!e?o:void 0);return{longPressProps:ue(u,d)}}function kc(t){const e=yt(t);if(xp()==="virtual"){let n=e.activeElement;y_(()=>{e.activeElement===n&&t.isConnected&&gn(t)})}else gn(t)}function $4(t){const e=Wt(t);if(!(t instanceof e.HTMLElement)&&!(t instanceof e.SVGElement))return!1;let{display:n,visibility:i}=t.style,r=n!=="none"&&i!=="hidden"&&i!=="collapse";if(r){const{getComputedStyle:s}=t.ownerDocument.defaultView;let{display:o,visibility:a}=s(t);r=o!=="none"&&a!=="hidden"&&a!=="collapse"}return r}function E4(t,e){return!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&(t.nodeName==="DETAILS"&&e&&e.nodeName!=="SUMMARY"?t.hasAttribute("open"):!0)}function G_(t,e){return t.nodeName!=="#comment"&&$4(t)&&E4(t,e)&&(!t.parentElement||G_(t.parentElement,t))}const Pp=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],M4=Pp.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Pp.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const D4=Pp.join(':not([hidden]):not([tabindex="-1"]),');function X_(t,e){return!t||!e?!1:e.some(n=>n.contains(t))}function q_(t,e,n){let i=e!=null&&e.tabbable?D4:M4,r=yt(t).createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var o;return!(e==null||(o=e.from)===null||o===void 0)&&o.contains(s)?NodeFilter.FILTER_REJECT:s.matches(i)&&G_(s)&&(!n||X_(s,n))&&(!(e!=null&&e.accept)||e.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return e!=null&&e.from&&(r.currentNode=e.from),r}class Cp{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,i){let r=this.fastMap.get(n!=null?n:null);if(!r)return;let s=new Q_({scopeRef:e});r.addChild(s),s.parent=r,this.fastMap.set(e,s),i&&(s.nodeToRestore=i)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let n=this.fastMap.get(e);if(!n)return;let i=n.parent;for(let s of this.traverse())s!==n&&n.nodeToRestore&&s.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&X_(s.nodeToRestore,n.scopeRef.current)&&(s.nodeToRestore=n.nodeToRestore);let r=n.children;i&&(i.removeChild(n),r.size>0&&r.forEach(s=>i&&i.addChild(s))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null&&(yield e),e.children.size>0)for(let n of e.children)yield*js(this.traverse(n))}clone(){var e;let n=new Cp;var i;for(let r of this.traverse())n.addTreeNode(r.scopeRef,(i=(e=r.parent)===null||e===void 0?void 0:e.scopeRef)!==null&&i!==void 0?i:null,r.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Q_({scopeRef:null}),this.fastMap.set(null,this.root)}}class Q_{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}new Cp;function dr(t={}){let{autoFocus:e=!1,isTextInput:n,within:i}=t,r=_.useRef({isFocused:!1,isFocusVisible:e||B_()}),[s,o]=_.useState(!1),[a,l]=_.useState(()=>r.current.isFocused&&r.current.isFocusVisible),c=_.useCallback(()=>l(r.current.isFocused&&r.current.isFocusVisible),[]),u=_.useCallback(h=>{r.current.isFocused=h,o(h),c()},[c]);S4(h=>{r.current.isFocusVisible=h,c()},[],{isTextInput:n});let{focusProps:d}=gp({isDisabled:i,onFocusChange:u}),{focusWithinProps:f}=_p({isDisabled:!i,onFocusWithinChange:u});return{isFocused:s,isFocusVisible:a,focusProps:i?f:d}}let A4=G.createContext(null);function L4(t){let e=_.useContext(A4)||{};b_(e,t);let r=e,{ref:n}=r;return re(r,["ref"])}function kp(t,e){let{focusProps:n}=gp(t),{keyboardProps:i}=U_(t),r=ue(n,i),s=L4(e),o=t.isDisabled?{}:s,a=_.useRef(t.autoFocus);return _.useEffect(()=>{a.current&&e.current&&kc(e.current),a.current=!1},[e]),{focusableProps:ue(B(k({},r),{tabIndex:t.excludeFromTabOrder&&!t.isDisabled?-1:void 0}),o)}}function j4(t,e){let n=e==null?void 0:e.isDisabled,[i,r]=_.useState(!1);return sn(()=>{if(t!=null&&t.current&&!n){let s=()=>{if(t.current){let a=q_(t.current,{tabbable:!0});r(!!a.nextNode())}};s();let o=new MutationObserver(s);return o.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{o.disconnect()}}}),n?!1:i}function F4(t,e){let m=t,{elementType:n="a",onPress:i,onPressStart:r,onPressEnd:s,onClick:o,isDisabled:a}=m,l=re(m,["elementType","onPress","onPressStart","onPressEnd","onClick","isDisabled"]),c={};n!=="a"&&(c={role:"link",tabIndex:a?void 0:0});let{focusableProps:u}=kp(t,e),{pressProps:d,isPressed:f}=fp({onPress:i,onPressStart:r,onPressEnd:s,isDisabled:a,ref:e}),h=on(l,{labelable:!0}),v=ue(u,d),y=gc(),x=g_(t);return{isPressed:f,linkProps:ue(h,x,B(k(k({},v),c),{"aria-disabled":a||void 0,"aria-current":t["aria-current"],onClick:g=>{var b;(b=d.onClick)===null||b===void 0||b.call(d,g),o&&(o(g),console.warn("onClick is deprecated, please use onPress")),!y.isNative&&g.currentTarget instanceof HTMLAnchorElement&&g.currentTarget.href&&!g.isDefaultPrevented()&&E3(g.currentTarget,g)&&t.href&&(g.preventDefault(),y.open(g.currentTarget,g,t.href,t.routerOptions))}}))}}const R4=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),N4=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function I4(t){if(Intl.Locale){let n=new Intl.Locale(t).maximize(),i=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(i)return i.direction==="rtl";if(n.script)return R4.has(n.script)}let e=t.split("-")[0];return N4.has(e)}const O4=Symbol.for("react-aria.i18n.locale");function Z_(){let t=typeof window!="undefined"&&window[O4]||typeof navigator!="undefined"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch(e){t="en-US"}return{locale:t,direction:I4(t)?"rtl":"ltr"}}let Tp=Z_(),Wo=new Set;function J_(){Tp=Z_();for(let t of Wo)t(Tp)}function V4(){let t=Oo(),[e,n]=_.useState(Tp);return _.useEffect(()=>(Wo.size===0&&window.addEventListener("languagechange",J_),Wo.add(n),()=>{Wo.delete(n),Wo.size===0&&window.removeEventListener("languagechange",J_)}),[]),t?{locale:"en-US",direction:"ltr"}:e}const z4=G.createContext(null);function fr(){let t=V4();return _.useContext(z4)||t}const B4=Symbol.for("react-aria.i18n.locale"),K4=Symbol.for("react-aria.i18n.strings");let vs;class Tc{getStringForLocale(e,n){let r=this.getStringsForLocale(n)[e];if(!r)throw new Error(`Could not find intl message ${e} in ${n} locale`);return r}getStringsForLocale(e){let n=this.strings[e];return n||(n=H4(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if(typeof window=="undefined")return null;let n=window[B4];if(vs===void 0){let r=window[K4];if(!r)return null;vs={};for(let s in r)vs[s]=new Tc({[n]:r[s]},n)}let i=vs==null?void 0:vs[e];if(!i)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return i}constructor(e,n="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,i])=>i)),this.defaultLocale=n}}function H4(t,e,n="en-US"){if(e[t])return e[t];let i=W4(t);if(e[i])return e[i];for(let r in e)if(r.startsWith(i+"-"))return e[r];return e[n]}function W4(t){return Intl.Locale?new Intl.Locale(t).language:t.split("-")[0]}const e1=new Map,t1=new Map;class U4{format(e,n){let i=this.strings.getStringForLocale(e,this.locale);return typeof i=="function"?i(n,this):i}plural(e,n,i="cardinal"){let r=n["="+e];if(r)return typeof r=="function"?r():r;let s=this.locale+":"+i,o=e1.get(s);o||(o=new Intl.PluralRules(this.locale,{type:i}),e1.set(s,o));let a=o.select(e);return r=n[a]||n.other,typeof r=="function"?r():r}number(e){let n=t1.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),t1.set(this.locale,n)),n.format(e)}select(e,n){let i=e[n]||e.other;return typeof i=="function"?i():i}constructor(e,n){this.locale=e,this.strings=n}}const n1=new WeakMap;function Y4(t){let e=n1.get(t);return e||(e=new Tc(t),n1.set(t,e)),e}function G4(t,e){return e&&Tc.getGlobalDictionaryForPackage(e)||Y4(t)}function i1(t,e){let{locale:n}=fr(),i=G4(t,e);return _.useMemo(()=>new U4(n,i),[n,i])}let $p=new Map,Ep=!1;try{Ep=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch(t){}let $c=!1;try{$c=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch(t){}const r1={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Ec{format(e){let n="";if(!Ep&&this.options.signDisplay!=null?n=q4(this.numberFormatter,this.options.signDisplay,e):n=this.numberFormatter.format(e),this.options.style==="unit"&&!$c){var i;let{unit:r,unitDisplay:s="short",locale:o}=this.resolvedOptions();if(!r)return n;let a=(i=r1[r])===null||i===void 0?void 0:i[s];n+=a[o]||a.default}return n}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(e,n);if(n= start date");return`${this.format(e)} – ${this.format(n)}`}formatRangeToParts(e,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(e,n);if(n= start date");let i=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(n);return[...i.map(s=>B(k({},s),{source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(s=>B(k({},s),{source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return!Ep&&this.options.signDisplay!=null&&(e=B(k({},e),{signDisplay:this.options.signDisplay})),!$c&&this.options.style==="unit"&&(e=B(k({},e),{style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay})),e}constructor(e,n={}){this.numberFormatter=X4(e,n),this.options=n}}function X4(t,e={}){let{numberingSystem:n}=e;if(n&&t.includes("-nu-")&&(t.includes("-u-")||(t+="-u-"),t+=`-nu-${n}`),e.style==="unit"&&!$c){var i;let{unit:o,unitDisplay:a="short"}=e;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((i=r1[o])===null||i===void 0)&&i[a]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${a}`);e=B(k({},e),{style:"decimal"})}let r=t+(e?Object.entries(e).sort((o,a)=>o[0]0||Object.is(n,0):e==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):i=n>0),i){let r=t.format(-n),s=t.format(n),o=r.replace(s,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),r.replace(s,"!!!").replace(o,"+").replace("!!!",s)}else return t.format(n)}}const Q4=new RegExp("^.*\\(.*\\).*$"),Z4=["latn","arab","hanidec"];class s1{parse(e){return Mp(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,n,i){return Mp(this.locale,this.options,e).isValidPartialNumber(e,n,i)}getNumberingSystem(e){return Mp(this.locale,this.options,e).options.numberingSystem}constructor(e,n={}){this.locale=e,this.options=n}}const o1=new Map;function Mp(t,e,n){let i=a1(t,e);if(!t.includes("-nu-")&&!i.isValidPartialNumber(n)){for(let r of Z4)if(r!==i.options.numberingSystem){let s=a1(t+(t.includes("-u-")?"-nu-":"-u-nu-")+r,e);if(s.isValidPartialNumber(n))return s}}return i}function a1(t,e){let n=t+(e?Object.entries(e).sort((r,s)=>r[0]-1&&(n=`-${n}`)}let i=n?+n:NaN;if(isNaN(i))return NaN;if(this.options.style==="percent"){var r,s;let o=B(k({},this.options),{style:"decimal",minimumFractionDigits:Math.min(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)+2,20),maximumFractionDigits:Math.min(((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)+2,20)});return new s1(this.locale,o).parse(new Ec(this.locale,o).format(i))}return this.options.currencySign==="accounting"&&Q4.test(e)&&(i=-1*i),i}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(e=e.replace(",",this.symbols.decimal),e=e.replace("،",this.symbols.decimal)),this.symbols.group&&(e=Mc(e,".",this.symbols.group))),this.options.locale==="fr-FR"&&(e=Mc(e,"."," ")),e}isValidPartialNumber(e,n=-1/0,i=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&n<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&i>0&&(e=e.slice(this.symbols.plusSign.length)),this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(e=Mc(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),e.length===0)}constructor(e,n={}){this.locale=e,this.formatter=new Intl.NumberFormat(e,n),this.options=this.formatter.resolvedOptions(),this.symbols=t5(e,this.formatter,this.options,n);var i,r;this.options.style==="percent"&&(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)>18||((r=this.options.maximumFractionDigits)!==null&&r!==void 0?r:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const l1=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),e5=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function t5(t,e,n,i){var r,s,o,a;let l=new Intl.NumberFormat(t,B(k({},n),{minimumSignificantDigits:1,maximumSignificantDigits:21})),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),d=e5.map(C=>l.formatToParts(C));var f;let h=(f=(r=c.find(C=>C.type==="minusSign"))===null||r===void 0?void 0:r.value)!==null&&f!==void 0?f:"-",v=(s=u.find(C=>C.type==="plusSign"))===null||s===void 0?void 0:s.value;!v&&((i==null?void 0:i.signDisplay)==="exceptZero"||(i==null?void 0:i.signDisplay)==="always")&&(v="+");let x=(o=new Intl.NumberFormat(t,B(k({},n),{minimumFractionDigits:2,maximumFractionDigits:2})).formatToParts(.001).find(C=>C.type==="decimal"))===null||o===void 0?void 0:o.value,m=(a=c.find(C=>C.type==="group"))===null||a===void 0?void 0:a.value,g=c.filter(C=>!l1.has(C.type)).map(C=>c1(C.value)),b=d.flatMap(C=>C.filter(R=>!l1.has(R.type)).map(R=>c1(R.value))),w=[...new Set([...g,...b])].sort((C,R)=>R.length-C.length),P=w.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${w.join("|")}|[\\p{White_Space}]`,"gu"),E=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),A=new Map(E.map((C,R)=>[C,R])),M=new RegExp(`[${E.join("")}]`,"g");return{minusSign:h,plusSign:v,decimal:x,group:m,literals:P,numeral:M,index:C=>String(A.get(C))}}function Mc(t,e,n){return t.replaceAll?t.replaceAll(e,n):t.split(e).join(n)}function c1(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Dp(t={}){let{locale:e}=fr();return _.useMemo(()=>new Ec(e,t),[e,t])}const u1=7e3;let Yt=null;function n5(t,e="assertive",n=u1){Yt?Yt.announce(t,e,n):(Yt=new r5,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest!="undefined")?Yt.announce(t,e,n):setTimeout(()=>{Yt!=null&&Yt.isAttached()&&(Yt==null||Yt.announce(t,e,n))},100))}function i5(t){Yt&&Yt.clear(t)}class r5{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",i=u1){var r,s;if(!this.node)return;let o=document.createElement("div");typeof e=="object"?(o.setAttribute("role","img"),o.setAttribute("aria-labelledby",e["aria-labelledby"])):o.textContent=e,n==="assertive"?(r=this.assertiveLog)===null||r===void 0||r.appendChild(o):(s=this.politeLog)===null||s===void 0||s.appendChild(o),e!==""&&setTimeout(()=>{o.remove()},i)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document!="undefined"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function s5(t,e,n){let{validationBehavior:i,focus:r}=t;sn(()=>{if(i==="native"&&(n!=null&&n.current)){let l=e.realtimeValidation.isInvalid?e.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),e.realtimeValidation.isInvalid||e.updateValidation(a5(n.current))}});let s=Ke(()=>{e.resetValidation()}),o=Ke(l=>{var c;e.displayValidation.isInvalid||e.commitValidation();let u=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&n&&u&&l5(u)===n.current){var d;r?r():(d=n.current)===null||d===void 0||d.focus(),K_("keyboard")}l.preventDefault()}),a=Ke(()=>{e.commitValidation()});_.useEffect(()=>{let l=n==null?void 0:n.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",o),l.addEventListener("change",a),c==null||c.addEventListener("reset",s),()=>{l.removeEventListener("invalid",o),l.removeEventListener("change",a),c==null||c.removeEventListener("reset",s)}},[n,o,a,s,i])}function o5(t){let e=t.validity;return{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing,valid:e.valid}}function a5(t){return{isInvalid:!t.validity.valid,validationDetails:o5(t),validationErrors:t.validationMessage?[t.validationMessage]:[]}}function l5(t){for(let e=0;ep1(d5(o,r)),[o,r]);s!=null&&s.validationDetails.valid&&(s=null);let u=_.useContext(c5),d=_.useMemo(()=>i?Array.isArray(i)?i.flatMap(C=>Lp(u[C])):Lp(u[i]):[],[u,i]),[f,h]=_.useState(u),[v,y]=_.useState(!1);u!==f&&(h(u),y(!1));let x=_.useMemo(()=>p1(v?[]:d),[v,d]),m=_.useRef(Uo),[g,b]=_.useState(Uo),w=_.useRef(Uo),P=()=>{if(!E)return;A(!1);let C=c||s||m.current;jp(C,w.current)||(w.current=C,b(C))},[E,A]=_.useState(!1);return _.useEffect(P),{realtimeValidation:l||x||c||s||Uo,displayValidation:a==="native"?l||x||g:l||x||c||s||g,updateValidation(C){a==="aria"&&!jp(g,C)?b(C):m.current=C},resetValidation(){let C=Uo;jp(C,w.current)||(w.current=C,b(C)),a==="native"&&A(!1),y(!0)},commitValidation(){a==="native"&&A(!0),y(!0)}}}function Lp(t){return t?Array.isArray(t)?t:[t]:[]}function d5(t,e){if(typeof t=="function"){let n=t(e);if(n&&typeof n!="boolean")return Lp(n)}return[]}function p1(t){return t.length?{isInvalid:!0,validationErrors:t,validationDetails:f1}:null}function jp(t,e){return t===e?!0:t&&e&&t.isInvalid===e.isInvalid&&t.validationErrors.length===e.validationErrors.length&&t.validationErrors.every((n,i)=>n===e.validationErrors[i])&&Object.entries(t.validationDetails).every(([n,i])=>e.validationDetails[n]===i)}function Fp(t){let{id:e,label:n,"aria-labelledby":i,"aria-label":r,labelElementType:s="label"}=t;e=Pi(e);let o=Pi(),a={};n?(i=i?`${o} ${i}`:o,a={id:o,htmlFor:s==="label"?e:void 0}):!i&&!r&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=np({id:e,"aria-label":r,"aria-labelledby":i});return{labelProps:a,fieldProps:l}}function f5(t){let{description:e,errorMessage:n,isInvalid:i,validationState:r}=t,{labelProps:s,fieldProps:o}=Fp(t),a=f_([!!e,!!n,i,r]),l=f_([!!e,!!n,i,r]);return o=ue(o,{"aria-describedby":[a,l,t["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:o,descriptionProps:{id:a},errorMessageProps:{id:l}}}const h5=0,p5=100,m5=1;function g5(t){const{isDisabled:e=!1,minValue:n=h5,maxValue:i=p5,numberFormatter:r,step:s=m5,orientation:o="horizontal"}=t;let a=_.useMemo(()=>{let V=(i-n)/10;return V=bt(V,0,V+s,s),Math.max(V,s)},[s,i,n]),l=_.useCallback(V=>V==null?void 0:V.map((H,J)=>{let Y=J===0?n:H[J-1],ne=J===V.length-1?i:H[J+1];return bt(H,Y,ne,s)}),[n,i,s]),c=_.useMemo(()=>l(g1(t.value)),[t.value]),u=_.useMemo(()=>{var V;return l((V=g1(t.defaultValue))!==null&&V!==void 0?V:[n])},[t.defaultValue,n]),d=v1(t.value,t.defaultValue,t.onChange),f=v1(t.value,t.defaultValue,t.onChangeEnd);const[h,v]=Vo(c,u,d),[y,x]=_.useState(new Array(h.length).fill(!1)),m=_.useRef(new Array(h.length).fill(!0)),[g,b]=_.useState(void 0),w=_.useRef(h),P=_.useRef(y);let E=V=>{w.current=V,v(V)},A=V=>{P.current=V,x(V)};function M(V){return(V-n)/(i-n)}function S(V){return V===0?n:h[V-1]}function C(V){return V===h.length-1?i:h[V+1]}function R(V){return m.current[V]}function $(V,H){m.current[V]=H}function I(V,H){if(e||!R(V))return;const J=S(V),Y=C(V);H=bt(H,J,Y,s);let ne=m1(w.current,V,H);E(ne)}function j(V,H){if(e||!R(V))return;H&&(w.current=h);const J=P.current[V];P.current=m1(P.current,V,H),A(P.current),f&&J&&!P.current.some(Boolean)&&f(w.current)}function z(V){return r.format(V)}function L(V,H){I(V,N(H))}function F(V){return Math.round((V-n)/s)*s+n}function N(V){const H=V*(i-n)+n;return fs(F(H),n,i)}function K(V,H=1){let J=Math.max(H,s);I(V,bt(h[V]+J,n,i,s))}function U(V,H=1){let J=Math.max(H,s);I(V,bt(h[V]-J,n,i,s))}return{values:h,getThumbValue:V=>h[V],setThumbValue:I,setThumbPercent:L,isThumbDragging:V=>y[V],setThumbDragging:j,focusedThumb:g,setFocusedThumb:b,getThumbPercent:V=>M(h[V]),getValuePercent:M,getThumbValueLabel:V=>z(h[V]),getFormattedValue:z,getThumbMinValue:S,getThumbMaxValue:C,getPercentValue:N,isThumbEditable:R,setThumbEditable:$,incrementThumb:K,decrementThumb:U,step:s,pageSize:a,orientation:o,isDisabled:e}}function m1(t,e,n){return t[e]===n?t:[...t.slice(0,e),n,...t.slice(e+1)]}function g1(t){if(t!=null)return Array.isArray(t)?t:[t]}function v1(t,e,n){return i=>{typeof t=="number"||typeof e=="number"?n==null||n(i[0]):n==null||n(i)}}function v5(t){let{minValue:e,maxValue:n,step:i,formatOptions:r,value:s,defaultValue:o=NaN,onChange:a,locale:l,isDisabled:c,isReadOnly:u}=t;s===null&&(s=NaN),s!==void 0&&!isNaN(s)&&(i!==void 0&&!isNaN(i)?s=bt(s,e,n,i):s=fs(s,e,n)),isNaN(o)||(i!==void 0&&!isNaN(i)?o=bt(o,e,n,i):o=fs(o,e,n));let[d,f]=Vo(s,isNaN(o)?NaN:o,a),[h,v]=_.useState(()=>isNaN(d)?"":new Ec(l,r).format(d)),y=_.useMemo(()=>new s1(l,r),[l,r]),x=_.useMemo(()=>y.getNumberingSystem(h),[y,h]),m=_.useMemo(()=>new Ec(l,B(k({},r),{numberingSystem:x})),[l,r,x]),g=_.useMemo(()=>m.resolvedOptions(),[m]),b=_.useCallback(H=>isNaN(H)||H===null?"":m.format(H),[m]),w=h1(B(k({},t),{value:d})),P=i!==void 0&&!isNaN(i)?i:1;g.style==="percent"&&(i===void 0||isNaN(i))&&(P=.01);let[E,A]=_.useState(d),[M,S]=_.useState(l),[C,R]=_.useState(r);(!Object.is(d,E)||l!==M||r!==C)&&(v(b(d)),A(d),S(l),R(r));let $=_.useMemo(()=>y.parse(h),[y,h]),I=()=>{if(!h.length){f(NaN),v(s===void 0?"":b(d));return}if(isNaN($)){v(b(d));return}let H;i===void 0||isNaN(i)?H=fs($,e,n):H=bt($,e,n,i),H=y.parse(b(H)),f(H),v(b(s===void 0?H:d))},j=(H,J=0)=>{let Y=$;if(isNaN(Y)){let ne=isNaN(J)?0:J;return bt(ne,e,n,P)}else{let ne=bt(Y,e,n,P);return H==="+"&&ne>Y||H==="-"&&ne{let H=j("+",e);H===d&&v(b(H)),f(H),w.commitValidation()},L=()=>{let H=j("-",n);H===d&&v(b(H)),f(H),w.commitValidation()},F=()=>{n!=null&&(f(bt(n,e,n,P)),w.commitValidation())},N=()=>{e!=null&&(f(e),w.commitValidation())},K=_.useMemo(()=>!c&&!u&&(isNaN($)||n===void 0||isNaN(n)||bt($,e,n,P)>$||Rp("+",$,P)<=n),[c,u,e,n,P,$]),U=_.useMemo(()=>!c&&!u&&(isNaN($)||e===void 0||isNaN(e)||bt($,e,n,P)<$||Rp("-",$,P)>=e),[c,u,e,n,P,$]),V=H=>y.isValidPartialNumber(H,e,n);return B(k({},w),{validate:V,increment:z,incrementToMax:F,decrement:L,decrementToMin:N,canIncrement:K,canDecrement:U,minValue:e,maxValue:n,numberValue:$,setNumberValue:f,setInputValue:v,inputValue:h,commit:I})}function Rp(t,e,n){let i=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const r=e.toString().split("."),s=n.toString().split("."),o=r[1]&&r[1].length||0,a=s[1]&&s[1].length||0,l=Math.pow(10,Math.max(o,a));e=Math.round(e*l),n=Math.round(n*l),i=t==="+"?e+n:e-n,i/=l}return i}const y1={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function y5(t={}){let{style:e,isFocusable:n}=t,[i,r]=_.useState(!1),{focusWithinProps:s}=_p({isDisabled:!n,onFocusWithinChange:a=>r(a)}),o=_.useMemo(()=>i?e:e?k(k({},y1),e):y1,[i]);return{visuallyHiddenProps:B(k({},s),{style:o})}}function b5(t){let a=t,{children:e,elementType:n="div",isFocusable:i,style:r}=a,s=re(a,["children","elementType","isFocusable","style"]),{visuallyHiddenProps:o}=y5(t);return G.createElement(n,ue(s,o),e)}const Np=new WeakMap;function Ip(t,e){let n=Np.get(t);if(!n)throw new Error("Unknown slider state");return`${n.id}-${e}`}function x5(t,e,n){let{labelProps:i,fieldProps:r}=Fp(t),s=t.orientation==="vertical";var o;Np.set(e,{id:(o=i.id)!==null&&o!==void 0?o:r.id,"aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]});let{direction:a}=fr(),{addGlobalListener:l,removeGlobalListener:c}=ds();const u=_.useRef(null),d=a==="rtl",f=_.useRef(null),{moveProps:h}=Y_({onMoveStart(){f.current=null},onMove({deltaX:m,deltaY:g}){let{height:b,width:w}=n.current.getBoundingClientRect(),P=s?b:w;f.current==null&&(f.current=e.getThumbPercent(u.current)*P);let E=s?g:m;if((s||d)&&(E=-E),f.current+=E,u.current!=null&&n.current){const A=fs(f.current/P,0,1);e.setThumbPercent(u.current,A)}},onMoveEnd(){u.current!=null&&(e.setThumbDragging(u.current,!1),u.current=null)}});let v=_.useRef(void 0),y=(m,g,b,w)=>{if(n.current&&!t.isDisabled&&e.values.every((P,E)=>!e.isThumbDragging(E))){let{height:P,width:E,top:A,left:M}=n.current.getBoundingClientRect(),S=s?P:E,I=((s?w:b)-(s?A:M))/S;(a==="rtl"||s)&&(I=1-I);let j=e.getPercentValue(I),z,L=e.values.findIndex(F=>j-F<0);if(L===0)z=L;else if(L===-1)z=e.values.length-1;else{let F=e.values[L-1],N=e.values[L];Math.abs(F-j)=0&&e.isThumbEditable(z)?(m.preventDefault(),u.current=z,e.setFocusedThumb(z),v.current=g,e.setThumbDragging(u.current,!0),e.setThumbValue(z,j),l(window,"mouseup",x,!1),l(window,"touchend",x,!1),l(window,"pointerup",x,!1)):u.current=null}},x=m=>{var g,b;((b=m.pointerId)!==null&&b!==void 0?b:(g=m.changedTouches)===null||g===void 0?void 0:g[0].identifier)===v.current&&(u.current!=null&&(e.setThumbDragging(u.current,!1),u.current=null),c(window,"mouseup",x,!1),c(window,"touchend",x,!1),c(window,"pointerup",x,!1))};return"htmlFor"in i&&i.htmlFor&&(delete i.htmlFor,i.onClick=()=>{var m;(m=document.getElementById(Ip(e,0)))===null||m===void 0||m.focus(),K_("keyboard")}),{labelProps:i,groupProps:k({role:"group"},r),trackProps:ue({onMouseDown(m){m.button!==0||m.altKey||m.ctrlKey||m.metaKey||y(m,void 0,m.clientX,m.clientY)},onPointerDown(m){m.pointerType==="mouse"&&(m.button!==0||m.altKey||m.ctrlKey||m.metaKey)||y(m,m.pointerId,m.clientX,m.clientY)},onTouchStart(m){y(m,m.changedTouches[0].identifier,m.changedTouches[0].clientX,m.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},h),outputProps:{htmlFor:e.values.map((m,g)=>Ip(e,g)).join(" "),"aria-live":"off"}}}function _5(t,e){let{index:n=0,isRequired:i,validationState:r,isInvalid:s,trackRef:o,inputRef:a,orientation:l=e.orientation,name:c}=t,u=t.isDisabled||e.isDisabled,d=l==="vertical",{direction:f}=fr(),{addGlobalListener:h,removeGlobalListener:v}=ds(),y=Np.get(e);var x;const{labelProps:m,fieldProps:g}=Fp(B(k({},t),{id:Ip(e,n),"aria-labelledby":`${y.id} ${(x=t["aria-labelledby"])!==null&&x!==void 0?x:""}`.trim()})),b=e.values[n],w=_.useCallback(()=>{a.current&&gn(a.current)},[a]),P=e.focusedThumb===n;_.useEffect(()=>{P&&w()},[P,w]);let E=f==="rtl",A=_.useRef(null),{keyboardProps:M}=U_({onKeyDown(L){let{getThumbMaxValue:F,getThumbMinValue:N,decrementThumb:K,incrementThumb:U,setThumbValue:V,setThumbDragging:H,pageSize:J}=e;if(!/^(PageUp|PageDown|Home|End)$/.test(L.key)){L.continuePropagation();return}switch(L.preventDefault(),H(n,!0),L.key){case"PageUp":U(n,J);break;case"PageDown":K(n,J);break;case"Home":V(n,N(n));break;case"End":V(n,F(n));break}H(n,!1)}}),{moveProps:S}=Y_({onMoveStart(){A.current=null,e.setThumbDragging(n,!0)},onMove({deltaX:L,deltaY:F,pointerType:N,shiftKey:K}){const{getThumbPercent:U,setThumbPercent:V,decrementThumb:H,incrementThumb:J,step:Y,pageSize:ne}=e;let{width:oe,height:st}=o.current.getBoundingClientRect(),Xn=d?st:oe;if(A.current==null&&(A.current=U(n)*Xn),N==="keyboard")L>0&&E||L<0&&!E||F>0?H(n,K?ne:Y):J(n,K?ne:Y);else{let Sr=d?F:L;(d||E)&&(Sr=-Sr),A.current+=Sr,V(n,fs(A.current/Xn,0,1))}},onMoveEnd(){e.setThumbDragging(n,!1)}});e.setThumbEditable(n,!u);const{focusableProps:C}=kp(ue(t,{onFocus:()=>e.setFocusedThumb(n),onBlur:()=>e.setFocusedThumb(void 0)}),a);let R=_.useRef(void 0),$=L=>{w(),R.current=L,e.setThumbDragging(n,!0),h(window,"mouseup",I,!1),h(window,"touchend",I,!1),h(window,"pointerup",I,!1)},I=L=>{var F,N;((N=L.pointerId)!==null&&N!==void 0?N:(F=L.changedTouches)===null||F===void 0?void 0:F[0].identifier)===R.current&&(w(),e.setThumbDragging(n,!1),v(window,"mouseup",I,!1),v(window,"touchend",I,!1),v(window,"pointerup",I,!1))},j=e.getThumbPercent(n);(d||f==="rtl")&&(j=1-j);let z=u?{}:ue(M,S,{onMouseDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||$()},onPointerDown:L=>{L.button!==0||L.altKey||L.ctrlKey||L.metaKey||$(L.pointerId)},onTouchStart:L=>{$(L.changedTouches[0].identifier)}});return op(a,b,L=>{e.setThumbValue(n,L)}),{inputProps:ue(C,g,{type:"range",tabIndex:u?void 0:0,min:e.getThumbMinValue(n),max:e.getThumbMaxValue(n),step:e.step,value:b,name:c,disabled:u,"aria-orientation":l,"aria-valuetext":e.getThumbValueLabel(n),"aria-required":i||void 0,"aria-invalid":s||r==="invalid"||void 0,"aria-errormessage":t["aria-errormessage"],"aria-describedby":[y["aria-describedby"],t["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[y["aria-details"],t["aria-details"]].filter(Boolean).join(" "),onChange:L=>{e.setThumbValue(n,parseFloat(L.target.value))}}),thumbProps:B(k({},z),{style:{position:"absolute",[d?"top":"left"]:`${j*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}}),labelProps:m,isDragging:e.isThumbDragging(n),isDisabled:u,isFocused:P}}function w5(t,e){let{inputElementType:n="input",isDisabled:i=!1,isRequired:r=!1,isReadOnly:s=!1,type:o="text",validationBehavior:a="aria"}=t,[l,c]=Vo(t.value,t.defaultValue||"",t.onChange),{focusableProps:u}=kp(t,e),d=h1(B(k({},t),{value:l})),{isInvalid:f,validationErrors:h,validationDetails:v}=d.displayValidation,{labelProps:y,fieldProps:x,descriptionProps:m,errorMessageProps:g}=f5(B(k({},t),{isInvalid:f,errorMessage:t.errorMessage||h})),b=on(t,{labelable:!0});const w={type:o,pattern:t.pattern};return op(e,l,c),s5(t,d,e),_.useEffect(()=>{if(e.current instanceof Wt(e.current).HTMLTextAreaElement){let P=e.current;Object.defineProperty(P,"defaultValue",{get:()=>P.value,set:()=>{},configurable:!0})}},[e]),{labelProps:y,inputProps:ue(b,n==="input"?w:void 0,k(k({disabled:i,readOnly:s,required:r&&a==="native","aria-required":r&&a==="aria"||void 0,"aria-invalid":f||void 0,"aria-errormessage":t["aria-errormessage"],"aria-activedescendant":t["aria-activedescendant"],"aria-autocomplete":t["aria-autocomplete"],"aria-haspopup":t["aria-haspopup"],value:l,onChange:P=>c(P.target.value),autoComplete:t.autoComplete,autoCapitalize:t.autoCapitalize,maxLength:t.maxLength,minLength:t.minLength,name:t.name,placeholder:t.placeholder,inputMode:t.inputMode,onCopy:t.onCopy,onCut:t.onCut,onPaste:t.onPaste,onCompositionEnd:t.onCompositionEnd,onCompositionStart:t.onCompositionStart,onCompositionUpdate:t.onCompositionUpdate,onSelect:t.onSelect,onBeforeInput:t.onBeforeInput,onInput:t.onInput},u),x)),descriptionProps:m,errorMessageProps:g,isInvalid:f,validationErrors:h,validationDetails:v}}function b1(){return typeof window!="undefined"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function S5(t,e,n){let i=Ke(f=>{let h=n.current,v;switch(f.inputType){case"historyUndo":case"historyRedo":return;case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":v=h.value.slice(0,h.selectionStart)+h.value.slice(h.selectionEnd);break;case"deleteContentForward":v=h.selectionEnd===h.selectionStart?h.value.slice(0,h.selectionStart)+h.value.slice(h.selectionEnd+1):h.value.slice(0,h.selectionStart)+h.value.slice(h.selectionEnd);break;case"deleteContentBackward":v=h.selectionEnd===h.selectionStart?h.value.slice(0,h.selectionStart-1)+h.value.slice(h.selectionStart):h.value.slice(0,h.selectionStart)+h.value.slice(h.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":v=h.value.slice(h.selectionStart);break;default:f.data!=null&&(v=h.value.slice(0,h.selectionStart)+f.data+h.value.slice(h.selectionEnd));break}(v==null||!e.validate(v))&&f.preventDefault()});_.useEffect(()=>{if(!b1())return;let f=n.current;return f.addEventListener("beforeinput",i,!1),()=>{f.removeEventListener("beforeinput",i,!1)}},[n,i]);let r=b1()?null:f=>{let h=f.target.value.slice(0,f.target.selectionStart)+f.data+f.target.value.slice(f.target.selectionEnd);e.validate(h)||f.preventDefault()},d=w5(t,n),{labelProps:s,inputProps:o,descriptionProps:a,errorMessageProps:l}=d,c=re(d,["labelProps","inputProps","descriptionProps","errorMessageProps"]),u=_.useRef(null);return k({inputProps:ue(o,{onBeforeInput:r,onCompositionStart(){let{value:f,selectionStart:h,selectionEnd:v}=n.current;u.current={value:f,selectionStart:h,selectionEnd:v}},onCompositionEnd(){if(!e.validate(n.current.value)){let{value:f,selectionStart:h,selectionEnd:v}=u.current;n.current.value=f,n.current.setSelectionRange(h,v),e.setInputValue(f)}}}),labelProps:s,descriptionProps:a,errorMessageProps:l},c)}var x1={};x1={Empty:"فارغ"};var _1={};_1={Empty:"Изпразни"};var w1={};w1={Empty:"Prázdné"};var S1={};S1={Empty:"Tom"};var P1={};P1={Empty:"Leer"};var C1={};C1={Empty:"Άδειο"};var k1={};k1={Empty:"Empty"};var T1={};T1={Empty:"Vacío"};var $1={};$1={Empty:"Tühjenda"};var E1={};E1={Empty:"Tyhjä"};var M1={};M1={Empty:"Vide"};var D1={};D1={Empty:"ריק"};var A1={};A1={Empty:"Prazno"};var L1={};L1={Empty:"Üres"};var j1={};j1={Empty:"Vuoto"};var F1={};F1={Empty:"空"};var R1={};R1={Empty:"비어 있음"};var N1={};N1={Empty:"Tuščias"};var I1={};I1={Empty:"Tukšs"};var O1={};O1={Empty:"Tom"};var V1={};V1={Empty:"Leeg"};var z1={};z1={Empty:"Pusty"};var B1={};B1={Empty:"Vazio"};var K1={};K1={Empty:"Vazio"};var H1={};H1={Empty:"Gol"};var W1={};W1={Empty:"Не заполнено"};var U1={};U1={Empty:"Prázdne"};var Y1={};Y1={Empty:"Prazen"};var G1={};G1={Empty:"Prazno"};var X1={};X1={Empty:"Tomt"};var q1={};q1={Empty:"Boş"};var Q1={};Q1={Empty:"Пусто"};var Z1={};Z1={Empty:"空"};var J1={};J1={Empty:"空白"};var ew={};ew={"ar-AE":x1,"bg-BG":_1,"cs-CZ":w1,"da-DK":S1,"de-DE":P1,"el-GR":C1,"en-US":k1,"es-ES":T1,"et-EE":$1,"fi-FI":E1,"fr-FR":M1,"he-IL":D1,"hr-HR":A1,"hu-HU":L1,"it-IT":j1,"ja-JP":F1,"ko-KR":R1,"lt-LT":N1,"lv-LV":I1,"nb-NO":O1,"nl-NL":V1,"pl-PL":z1,"pt-BR":B1,"pt-PT":K1,"ro-RO":H1,"ru-RU":W1,"sk-SK":U1,"sl-SI":Y1,"sr-SP":G1,"sv-SE":X1,"tr-TR":q1,"uk-UA":Q1,"zh-CN":Z1,"zh-TW":J1};function P5(t){return t&&t.__esModule?t.default:t}function C5(t){const e=_.useRef(void 0);let{value:n,textValue:i,minValue:r,maxValue:s,isDisabled:o,isReadOnly:a,isRequired:l,onIncrement:c,onIncrementPage:u,onDecrement:d,onDecrementPage:f,onDecrementToMin:h,onIncrementToMax:v}=t;const y=i1(P5(ew),"@react-aria/spinbutton"),x=()=>clearTimeout(e.current);_.useEffect(()=>()=>x(),[]);let m=R=>{if(!(R.ctrlKey||R.metaKey||R.shiftKey||R.altKey||a))switch(R.key){case"PageUp":if(u){R.preventDefault(),u==null||u();break}case"ArrowUp":case"Up":c&&(R.preventDefault(),c==null||c());break;case"PageDown":if(f){R.preventDefault(),f==null||f();break}case"ArrowDown":case"Down":d&&(R.preventDefault(),d==null||d());break;case"Home":h&&(R.preventDefault(),h==null||h());break;case"End":v&&(R.preventDefault(),v==null||v());break}},g=_.useRef(!1),b=()=>{g.current=!0},w=()=>{g.current=!1},P=i===""?y.format("Empty"):(i||`${n}`).replace("-","−");_.useEffect(()=>{g.current&&(i5("assertive"),n5(P,"assertive"))},[P]);const E=Ke(R=>{x(),c==null||c(),e.current=window.setTimeout(()=>{(s===void 0||isNaN(s)||n===void 0||isNaN(n)||n{x(),d==null||d(),e.current=window.setTimeout(()=>{(r===void 0||isNaN(r)||n===void 0||isNaN(n)||n>r)&&A(60)},R)});let M=R=>{R.preventDefault()},{addGlobalListener:S,removeAllGlobalListeners:C}=ds();return{spinButtonProps:{role:"spinbutton","aria-valuenow":n!==void 0&&!isNaN(n)?n:void 0,"aria-valuetext":P,"aria-valuemin":r,"aria-valuemax":s,"aria-disabled":o||void 0,"aria-readonly":a||void 0,"aria-required":l||void 0,onKeyDown:m,onFocus:b,onBlur:w},incrementButtonProps:{onPressStart:()=>{E(400),S(window,"contextmenu",M)},onPressEnd:()=>{x(),C()},onFocus:b,onBlur:w},decrementButtonProps:{onPressStart:()=>{A(400),S(window,"contextmenu",M)},onPressEnd:()=>{x(),C()},onFocus:b,onBlur:w}}}var tw={};tw={decrease:t=>`خفض ${t.fieldLabel}`,increase:t=>`زيادة ${t.fieldLabel}`,numberField:"حقل رقمي"};var nw={};nw={decrease:t=>`Намаляване ${t.fieldLabel}`,increase:t=>`Усилване ${t.fieldLabel}`,numberField:"Номер на полето"};var iw={};iw={decrease:t=>`Snížit ${t.fieldLabel}`,increase:t=>`Zvýšit ${t.fieldLabel}`,numberField:"Číselné pole"};var rw={};rw={decrease:t=>`Reducer ${t.fieldLabel}`,increase:t=>`Øg ${t.fieldLabel}`,numberField:"Talfelt"};var sw={};sw={decrease:t=>`${t.fieldLabel} verringern`,increase:t=>`${t.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var ow={};ow={decrease:t=>`Μείωση ${t.fieldLabel}`,increase:t=>`Αύξηση ${t.fieldLabel}`,numberField:"Πεδίο αριθμού"};var aw={};aw={decrease:t=>`Decrease ${t.fieldLabel}`,increase:t=>`Increase ${t.fieldLabel}`,numberField:"Number field"};var lw={};lw={decrease:t=>`Reducir ${t.fieldLabel}`,increase:t=>`Aumentar ${t.fieldLabel}`,numberField:"Campo de número"};var cw={};cw={decrease:t=>`Vähenda ${t.fieldLabel}`,increase:t=>`Suurenda ${t.fieldLabel}`,numberField:"Numbri väli"};var uw={};uw={decrease:t=>`Vähennä ${t.fieldLabel}`,increase:t=>`Lisää ${t.fieldLabel}`,numberField:"Numerokenttä"};var dw={};dw={decrease:t=>`Diminuer ${t.fieldLabel}`,increase:t=>`Augmenter ${t.fieldLabel}`,numberField:"Champ de nombre"};var fw={};fw={decrease:t=>`הקטן ${t.fieldLabel}`,increase:t=>`הגדל ${t.fieldLabel}`,numberField:"שדה מספר"};var hw={};hw={decrease:t=>`Smanji ${t.fieldLabel}`,increase:t=>`Povećaj ${t.fieldLabel}`,numberField:"Polje broja"};var pw={};pw={decrease:t=>`${t.fieldLabel} csökkentése`,increase:t=>`${t.fieldLabel} növelése`,numberField:"Számmező"};var mw={};mw={decrease:t=>`Riduci ${t.fieldLabel}`,increase:t=>`Aumenta ${t.fieldLabel}`,numberField:"Campo numero"};var gw={};gw={decrease:t=>`${t.fieldLabel}を縮小`,increase:t=>`${t.fieldLabel}を拡大`,numberField:"数値フィールド"};var vw={};vw={decrease:t=>`${t.fieldLabel} 감소`,increase:t=>`${t.fieldLabel} 증가`,numberField:"번호 필드"};var yw={};yw={decrease:t=>`Sumažinti ${t.fieldLabel}`,increase:t=>`Padidinti ${t.fieldLabel}`,numberField:"Numerio laukas"};var bw={};bw={decrease:t=>`Samazināšana ${t.fieldLabel}`,increase:t=>`Palielināšana ${t.fieldLabel}`,numberField:"Skaitļu lauks"};var xw={};xw={decrease:t=>`Reduser ${t.fieldLabel}`,increase:t=>`Øk ${t.fieldLabel}`,numberField:"Tallfelt"};var _w={};_w={decrease:t=>`${t.fieldLabel} verlagen`,increase:t=>`${t.fieldLabel} verhogen`,numberField:"Getalveld"};var ww={};ww={decrease:t=>`Zmniejsz ${t.fieldLabel}`,increase:t=>`Zwiększ ${t.fieldLabel}`,numberField:"Pole numeru"};var Sw={};Sw={decrease:t=>`Diminuir ${t.fieldLabel}`,increase:t=>`Aumentar ${t.fieldLabel}`,numberField:"Campo de número"};var Pw={};Pw={decrease:t=>`Diminuir ${t.fieldLabel}`,increase:t=>`Aumentar ${t.fieldLabel}`,numberField:"Campo numérico"};var Cw={};Cw={decrease:t=>`Scădere ${t.fieldLabel}`,increase:t=>`Creștere ${t.fieldLabel}`,numberField:"Câmp numeric"};var kw={};kw={decrease:t=>`Уменьшение ${t.fieldLabel}`,increase:t=>`Увеличение ${t.fieldLabel}`,numberField:"Числовое поле"};var Tw={};Tw={decrease:t=>`Znížiť ${t.fieldLabel}`,increase:t=>`Zvýšiť ${t.fieldLabel}`,numberField:"Číselné pole"};var $w={};$w={decrease:t=>`Upadati ${t.fieldLabel}`,increase:t=>`Povečajte ${t.fieldLabel}`,numberField:"Številčno polje"};var Ew={};Ew={decrease:t=>`Smanji ${t.fieldLabel}`,increase:t=>`Povećaj ${t.fieldLabel}`,numberField:"Polje broja"};var Mw={};Mw={decrease:t=>`Minska ${t.fieldLabel}`,increase:t=>`Öka ${t.fieldLabel}`,numberField:"Nummerfält"};var Dw={};Dw={decrease:t=>`${t.fieldLabel} azalt`,increase:t=>`${t.fieldLabel} arttır`,numberField:"Sayı alanı"};var Aw={};Aw={decrease:t=>`Зменшити ${t.fieldLabel}`,increase:t=>`Збільшити ${t.fieldLabel}`,numberField:"Поле номера"};var Lw={};Lw={decrease:t=>`降低 ${t.fieldLabel}`,increase:t=>`提高 ${t.fieldLabel}`,numberField:"数字字段"};var jw={};jw={decrease:t=>`縮小 ${t.fieldLabel}`,increase:t=>`放大 ${t.fieldLabel}`,numberField:"數字欄位"};var Fw={};Fw={"ar-AE":tw,"bg-BG":nw,"cs-CZ":iw,"da-DK":rw,"de-DE":sw,"el-GR":ow,"en-US":aw,"es-ES":lw,"et-EE":cw,"fi-FI":uw,"fr-FR":dw,"he-IL":fw,"hr-HR":hw,"hu-HU":pw,"it-IT":mw,"ja-JP":gw,"ko-KR":vw,"lt-LT":yw,"lv-LV":bw,"nb-NO":xw,"nl-NL":_w,"pl-PL":ww,"pt-BR":Sw,"pt-PT":Pw,"ro-RO":Cw,"ru-RU":kw,"sk-SK":Tw,"sl-SI":$w,"sr-SP":Ew,"sv-SE":Mw,"tr-TR":Dw,"uk-UA":Aw,"zh-CN":Lw,"zh-TW":jw};function k5(t){return t&&t.__esModule?t.default:t}function T5(t,e,n){let Qn=t,{id:i,decrementAriaLabel:r,incrementAriaLabel:s,isDisabled:o,isReadOnly:a,isRequired:l,minValue:c,maxValue:u,autoFocus:d,label:f,formatOptions:h,onBlur:v=()=>{},onFocus:y,onFocusChange:x,onKeyDown:m,onKeyUp:g,description:b,errorMessage:w,isWheelDisabled:P}=Qn,E=re(Qn,["id","decrementAriaLabel","incrementAriaLabel","isDisabled","isReadOnly","isRequired","minValue","maxValue","autoFocus","label","formatOptions","onBlur","onFocus","onFocusChange","onKeyDown","onKeyUp","description","errorMessage","isWheelDisabled"]),{increment:A,incrementToMax:M,decrement:S,decrementToMin:C,numberValue:R,inputValue:$,commit:I,commitValidation:j}=e;const z=i1(k5(Fw),"@react-aria/numberfield");let L=Pi(i),{focusProps:F}=gp({onBlur(){I()}}),N=Dp(h),K=_.useMemo(()=>N.resolvedOptions(),[N]),U=Dp(B(k({},h),{currencySign:void 0})),V=_.useMemo(()=>isNaN(R)?"":U.format(R),[U,R]),{spinButtonProps:H,incrementButtonProps:J,decrementButtonProps:Y}=C5({isDisabled:o,isReadOnly:a,isRequired:l,maxValue:u,minValue:c,onIncrement:A,onIncrementToMax:M,onDecrement:S,onDecrementToMin:C,value:R,textValue:V}),[ne,oe]=_.useState(!1),{focusWithinProps:st}=_p({isDisabled:o,onFocusWithinChange:oe}),Xn=_.useCallback(ot=>{Math.abs(ot.deltaY)<=Math.abs(ot.deltaX)||(ot.deltaY>0?A():ot.deltaY<0&&S())},[S,A]);C4({onScroll:Xn,isDisabled:P||o||a||!ne},n);var Ri;let Sa=((Ri=K.maximumFractionDigits)!==null&&Ri!==void 0?Ri:0)>0,Pr=e.minValue===void 0||isNaN(e.minValue)||e.minValue<0,Ni="numeric";p_()?Pr?Ni="text":Sa&&(Ni="decimal"):ep()&&(Pr?Ni="numeric":Sa&&(Ni="decimal"));let Ds=ot=>{e.validate(ot)&&e.setInputValue(ot)},mu=on(t),Cr=_.useCallback(ot=>{ot.key==="Enter"?(I(),j()):ot.continuePropagation()},[I,j]),{isInvalid:Pa,validationErrors:As,validationDetails:gu}=e.displayValidation,{labelProps:ge,inputProps:vu,descriptionProps:yu,errorMessageProps:Bm}=S5(B(k(k({},E),mu),{name:void 0,label:f,autoFocus:d,isDisabled:o,isReadOnly:a,isRequired:l,validate:void 0,[Ap]:e,value:$,defaultValue:void 0,autoComplete:"off","aria-label":t["aria-label"]||void 0,"aria-labelledby":t["aria-labelledby"]||void 0,id:L,type:"text",inputMode:Ni,onChange:Ds,onBlur:v,onFocus:y,onFocusChange:x,onKeyDown:_.useMemo(()=>Zh(Cr,m),[Cr,m]),onKeyUp:g,description:b,errorMessage:w}),e,n);op(n,e.numberValue,e.setNumberValue);let kr=ue(H,F,vu,{role:null,"aria-roledescription":mc()?null:z.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});t.validationBehavior==="native"&&(kr["aria-required"]=void 0);let Ca=ot=>{var Ls;document.activeElement!==n.current&&(ot.pointerType==="mouse"?(Ls=n.current)===null||Ls===void 0||Ls.focus():ot.target.focus())},Rt=t["aria-label"]||(typeof t.label=="string"?t.label:""),wn;Rt||(wn=t.label!=null?ge.id:t["aria-labelledby"]);let qn=Pi(),de=Pi(),Qe=ue(J,{"aria-label":s||z.format("increase",{fieldLabel:Rt}).trim(),id:wn&&!s?qn:null,"aria-labelledby":wn&&!s?`${qn} ${wn}`:null,"aria-controls":L,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!e.canIncrement,onPressStart:Ca}),Ie=ue(Y,{"aria-label":r||z.format("decrease",{fieldLabel:Rt}).trim(),id:wn&&!r?de:null,"aria-labelledby":wn&&!r?`${de} ${wn}`:null,"aria-controls":L,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!e.canDecrement,onPressStart:Ca});return{groupProps:B(k({},st),{role:"group","aria-disabled":o,"aria-invalid":Pa?"true":void 0}),labelProps:ge,inputProps:kr,incrementButtonProps:Qe,decrementButtonProps:Ie,errorMessageProps:Bm,descriptionProps:yu,isInvalid:Pa,validationErrors:As,validationDetails:gu}}function Op(t){return P3()?t.altKey:t.ctrlKey}function ys(t){return ar()?t.metaKey:t.ctrlKey}const $5=1e3;function E5(t){let{keyboardDelegate:e,selectionManager:n,onTypeSelect:i}=t,r=_.useRef({search:"",timeout:null}).current,s=o=>{let a=M5(o.key);if(!a||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))return;a===" "&&r.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),r.search+=a;let l=e.getKeyForSearch(r.search,n.focusedKey);l==null&&(l=e.getKeyForSearch(r.search)),l!=null&&(n.setFocusedKey(l),i&&i(l)),clearTimeout(r.timeout),r.timeout=setTimeout(()=>{r.search=""},$5)};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?s:null}}}function M5(t){return t.length===1||!/^[A-Z]/i.test(t)?t:""}function D5(t){let{selectionManager:e,keyboardDelegate:n,ref:i,autoFocus:r=!1,shouldFocusWrap:s=!1,disallowEmptySelection:o=!1,disallowSelectAll:a=!1,selectOnFocus:l=e.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:u,allowsTabNavigation:d=!1,isVirtualized:f,scrollRef:h=i,linkBehavior:v="action"}=t,{direction:y}=fr(),x=gc(),m=C=>{if(C.altKey&&C.key==="Tab"&&C.preventDefault(),!i.current.contains(C.target))return;const R=(Y,ne)=>{if(Y!=null){if(e.isLink(Y)&&v==="selection"&&l&&!Op(C)){zl.flushSync(()=>{e.setFocusedKey(Y,ne)});let oe=h.current.querySelector(`[data-key="${CSS.escape(Y.toString())}"]`),st=e.getItemProps(Y);x.open(oe,C,st.href,st.routerOptions);return}if(e.setFocusedKey(Y,ne),e.isLink(Y)&&v==="override")return;C.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(Y):l&&!Op(C)&&e.replaceSelection(Y)}};switch(C.key){case"ArrowDown":if(n.getKeyBelow){var $,I,j;let Y=e.focusedKey!=null?($=n.getKeyBelow)===null||$===void 0?void 0:$.call(n,e.focusedKey):(I=n.getFirstKey)===null||I===void 0?void 0:I.call(n);Y==null&&s&&(Y=(j=n.getFirstKey)===null||j===void 0?void 0:j.call(n,e.focusedKey)),Y!=null&&(C.preventDefault(),R(Y))}break;case"ArrowUp":if(n.getKeyAbove){var z,L,F;let Y=e.focusedKey!=null?(z=n.getKeyAbove)===null||z===void 0?void 0:z.call(n,e.focusedKey):(L=n.getLastKey)===null||L===void 0?void 0:L.call(n);Y==null&&s&&(Y=(F=n.getLastKey)===null||F===void 0?void 0:F.call(n,e.focusedKey)),Y!=null&&(C.preventDefault(),R(Y))}break;case"ArrowLeft":if(n.getKeyLeftOf){var N,K,U;let Y=(N=n.getKeyLeftOf)===null||N===void 0?void 0:N.call(n,e.focusedKey);Y==null&&s&&(Y=y==="rtl"?(K=n.getFirstKey)===null||K===void 0?void 0:K.call(n,e.focusedKey):(U=n.getLastKey)===null||U===void 0?void 0:U.call(n,e.focusedKey)),Y!=null&&(C.preventDefault(),R(Y,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var V,H,J;let Y=(V=n.getKeyRightOf)===null||V===void 0?void 0:V.call(n,e.focusedKey);Y==null&&s&&(Y=y==="rtl"?(H=n.getLastKey)===null||H===void 0?void 0:H.call(n,e.focusedKey):(J=n.getFirstKey)===null||J===void 0?void 0:J.call(n,e.focusedKey)),Y!=null&&(C.preventDefault(),R(Y,y==="rtl"?"last":"first"))}break;case"Home":if(n.getFirstKey){C.preventDefault();let Y=n.getFirstKey(e.focusedKey,ys(C));e.setFocusedKey(Y),ys(C)&&C.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(Y):l&&e.replaceSelection(Y)}break;case"End":if(n.getLastKey){C.preventDefault();let Y=n.getLastKey(e.focusedKey,ys(C));e.setFocusedKey(Y),ys(C)&&C.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(Y):l&&e.replaceSelection(Y)}break;case"PageDown":if(n.getKeyPageBelow){let Y=n.getKeyPageBelow(e.focusedKey);Y!=null&&(C.preventDefault(),R(Y))}break;case"PageUp":if(n.getKeyPageAbove){let Y=n.getKeyPageAbove(e.focusedKey);Y!=null&&(C.preventDefault(),R(Y))}break;case"a":ys(C)&&e.selectionMode==="multiple"&&a!==!0&&(C.preventDefault(),e.selectAll());break;case"Escape":!o&&e.selectedKeys.size!==0&&(C.stopPropagation(),C.preventDefault(),e.clearSelection());break;case"Tab":if(!d){if(C.shiftKey)i.current.focus();else{let Y=q_(i.current,{tabbable:!0}),ne,oe;do oe=Y.lastChild(),oe&&(ne=oe);while(oe);ne&&!ne.contains(document.activeElement)&&gn(ne)}break}}},g=_.useRef({top:0,left:0});rp(h,"scroll",f?null:()=>{g.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let b=C=>{if(e.isFocused){C.currentTarget.contains(C.target)||e.setFocused(!1);return}if(C.currentTarget.contains(C.target)){if(e.setFocused(!0),e.focusedKey==null){let I=z=>{z!=null&&(e.setFocusedKey(z),l&&e.replaceSelection(z))},j=C.relatedTarget;var R,$;j&&C.currentTarget.compareDocumentPosition(j)&Node.DOCUMENT_POSITION_FOLLOWING?I((R=e.lastSelectedKey)!==null&&R!==void 0?R:n.getLastKey()):I(($=e.firstSelectedKey)!==null&&$!==void 0?$:n.getFirstKey())}else f||(h.current.scrollTop=g.current.top,h.current.scrollLeft=g.current.left);if(e.focusedKey!=null){let I=h.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);I&&(I.contains(document.activeElement)||gn(I),xp()==="keyboard"&&w_(I,{containingElement:i.current}))}}},w=C=>{C.currentTarget.contains(C.relatedTarget)||e.setFocused(!1)};const P=_.useRef(r);_.useEffect(()=>{if(P.current){let C=null;r==="first"&&(C=n.getFirstKey()),r==="last"&&(C=n.getLastKey());let R=e.selectedKeys;if(R.size){for(let $ of R)if(e.canSelectItem($)){C=$;break}}e.setFocused(!0),e.setFocusedKey(C),C==null&&!u&&kc(i.current)}},[]);let E=_.useRef(e.focusedKey);_.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==E.current||P.current)&&(h!=null&&h.current)){let C=xp(),R=i.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);if(!R)return;(C==="keyboard"||P.current)&&(x_(h.current,R),C!=="virtual"&&w_(R,{containingElement:i.current}))}!u&&e.isFocused&&e.focusedKey==null&&E.current!=null&&kc(i.current),E.current=e.focusedKey,P.current=!1}),rp(i,"react-aria-focus-scope-restore",C=>{C.preventDefault(),e.setFocused(!0)});let A={onKeyDown:m,onFocus:b,onBlur:w,onMouseDown(C){h.current===C.target&&C.preventDefault()}},{typeSelectProps:M}=E5({keyboardDelegate:n,selectionManager:e});c||(A=ue(M,A));let S;return u||(S=e.focusedKey==null?0:-1),{collectionProps:B(k({},A),{tabIndex:S})}}function A5(t){let{selectionManager:e,key:n,ref:i,shouldSelectOnPressUp:r,shouldUseVirtualFocus:s,focus:o,isDisabled:a,onAction:l,allowsDifferentPressOrigin:c,linkBehavior:u="action"}=t,d=gc(),f=F=>{if(F.pointerType==="keyboard"&&Op(F))e.toggleSelection(n);else{if(e.selectionMode==="none")return;if(e.isLink(n)){if(u==="selection"){let N=e.getItemProps(n);d.open(i.current,F,N.href,N.routerOptions),e.setSelectedKeys(e.selectedKeys);return}else if(u==="override"||u==="none")return}e.selectionMode==="single"?e.isSelected(n)&&!e.disallowEmptySelection?e.toggleSelection(n):e.replaceSelection(n):F&&F.shiftKey?e.extendSelection(n):e.selectionBehavior==="toggle"||F&&(ys(F)||F.pointerType==="touch"||F.pointerType==="virtual")?e.toggleSelection(n):e.replaceSelection(n)}};_.useEffect(()=>{n===e.focusedKey&&e.isFocused&&!s&&(o?o():document.activeElement!==i.current&&kc(i.current))},[i,n,e.focusedKey,e.childFocusStrategy,e.isFocused,s]),a=a||e.isDisabled(n);let h={};!s&&!a?h={tabIndex:n===e.focusedKey?0:-1,onFocus(F){F.target===i.current&&e.setFocusedKey(n)}}:a&&(h.onMouseDown=F=>{F.preventDefault()});let v=e.isLink(n)&&u==="override",y=e.isLink(n)&&u!=="selection"&&u!=="none",x=!a&&e.canSelectItem(n)&&!v,m=(l||y)&&!a,g=m&&(e.selectionBehavior==="replace"?!x:!x||e.isEmpty),b=m&&x&&e.selectionBehavior==="replace",w=g||b,P=_.useRef(null),E=w&&x,A=_.useRef(!1),M=_.useRef(!1),S=F=>{if(l&&l(),y){let N=e.getItemProps(n);d.open(i.current,F,N.href,N.routerOptions)}},C={};r?(C.onPressStart=F=>{P.current=F.pointerType,A.current=E,F.pointerType==="keyboard"&&(!w||Nw())&&f(F)},c?(C.onPressUp=g?null:F=>{F.pointerType!=="keyboard"&&x&&f(F)},C.onPress=g?S:null):C.onPress=F=>{if(g||b&&F.pointerType!=="mouse"){if(F.pointerType==="keyboard"&&!Rw())return;S(F)}else F.pointerType!=="keyboard"&&x&&f(F)}):(C.onPressStart=F=>{P.current=F.pointerType,A.current=E,M.current=g,x&&(F.pointerType==="mouse"&&!g||F.pointerType==="keyboard"&&(!m||Nw()))&&f(F)},C.onPress=F=>{(F.pointerType==="touch"||F.pointerType==="pen"||F.pointerType==="virtual"||F.pointerType==="keyboard"&&w&&Rw()||F.pointerType==="mouse"&&M.current)&&(w?S(F):x&&f(F))}),h["data-key"]=n,C.preventFocusOnPress=s;let{pressProps:R,isPressed:$}=fp(C),I=b?F=>{P.current==="mouse"&&(F.stopPropagation(),F.preventDefault(),S(F))}:void 0,{longPressProps:j}=T4({isDisabled:!E,onLongPress(F){F.pointerType==="touch"&&(f(F),e.setSelectionBehavior("toggle"))}}),z=F=>{P.current==="touch"&&A.current&&F.preventDefault()},L=e.isLink(n)?F=>{lr.isOpening||F.preventDefault()}:void 0;return{itemProps:ue(h,x||g?R:{},E?j:{},{onDoubleClick:I,onDragStartCapture:z,onClick:L}),isPressed:$,isSelected:e.isSelected(n),isFocused:e.isFocused&&e.focusedKey===n,isDisabled:a,allowsSelection:x,hasAction:w}}function Rw(){let t=window.event;return(t==null?void 0:t.key)==="Enter"}function Nw(){let t=window.event;return(t==null?void 0:t.key)===" "||(t==null?void 0:t.code)==="Space"}class L5{build(e,n){return this.context=n,Iw(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:n,items:i}=e;if(G.isValidElement(n)&&n.type===G.Fragment)yield*js(this.iterateCollection({children:n.props.children,items:i}));else if(typeof n=="function"){if(!i)throw new Error("props.children was a function but props.items is missing");for(let r of e.items)yield*js(this.getFullNode({value:r},{renderer:n}))}else{let r=[];G.Children.forEach(n,o=>{r.push(o)});let s=0;for(let o of r){let a=this.getFullNode({element:o,index:s},{});for(let l of a)s++,yield l}}}getKey(e,n,i,r){if(e.key!=null)return e.key;if(n.type==="cell"&&n.key!=null)return`${r}${n.key}`;let s=n.value;if(s!=null){var o;let a=(o=s.key)!==null&&o!==void 0?o:s.id;if(a==null)throw new Error("No key found for item");return a}return r?`${r}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,i,r){if(G.isValidElement(e.element)&&e.element.type===G.Fragment){let l=[];G.Children.forEach(e.element.props.children,u=>{l.push(u)});let c=e.index;for(const u of l)yield*js(this.getFullNode({element:u,index:c++},n,i,r));return}let s=e.element;if(!s&&e.value&&n&&n.renderer){let l=this.cache.get(e.value);if(l&&(!l.shouldInvalidate||!l.shouldInvalidate(this.context))){l.index=e.index,l.parentKey=r?r.key:null,yield l;return}s=n.renderer(e.value)}if(G.isValidElement(s)){let l=s.type;if(typeof l!="function"&&typeof l.getCollectionNode!="function"){let f=typeof s.type=="function"?s.type.name:s.type;throw new Error(`Unknown element <${f}> in collection.`)}let c=l.getCollectionNode(s.props,this.context),u=e.index,d=c.next();for(;!d.done&&d.value;){let f=d.value;e.index=u;let h=f.key;h||(h=f.element?null:this.getKey(s,e,n,i));let y=[...this.getFullNode(B(k({},f),{key:h,index:u,wrapper:j5(e.wrapper,f.wrapper)}),this.getChildState(n,f),i?`${i}${s.key}`:s.key,r)];for(let x of y){if(x.value=f.value||e.value,x.value&&this.cache.set(x.value,x),e.type&&x.type!==e.type)throw new Error(`Unsupported type <${Vp(x.type)}> in <${Vp(r.type)}>. Only <${Vp(e.type)}> is supported.`);u++,yield x}d=c.next(y)}return}if(e.key==null)return;let o=this,a={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:Iw(function*(){if(!e.hasChildNodes)return;let l=0;for(let c of e.childNodes()){c.key!=null&&(c.key=`${a.key}${c.key}`),c.index=l;let u=o.getFullNode(c,o.getChildState(n,c),a.key,a);for(let d of u)l++,yield d}})};yield a}constructor(){this.cache=new WeakMap}}function Iw(t){let e=[],n=null;return{*[Symbol.iterator](){for(let i of e)yield i;n||(n=t());for(let i of n)e.push(i),yield i}}}function j5(t,e){if(t&&e)return n=>t(e(n));if(t)return t;if(e)return e}function Vp(t){return t[0].toUpperCase()+t.slice(1)}function F5(t,e,n){let i=_.useMemo(()=>new L5,[]),{children:r,items:s,collection:o}=t;return _.useMemo(()=>{if(o)return o;let l=i.build({children:r,items:s},n);return e(l)},[i,r,s,o,n,e])}function R5(t,e){return typeof e.getChildren=="function"?e.getChildren(t.key):t.childNodes}function N5(t){return I5(t)}function I5(t,e){for(let n of t)return n}function zp(t,e,n){if(e.parentKey===n.parentKey)return e.index-n.index;let i=[...Ow(t,e),e],r=[...Ow(t,n),n],s=i.slice(0,r.length).findIndex((o,a)=>o!==r[a]);return s!==-1?(e=i[s],n=r[s],e.index-n.index):i.findIndex(o=>o===n)>=0?1:(r.findIndex(o=>o===e)>=0,-1)}function Ow(t,e){let n=[];for(;(e==null?void 0:e.parentKey)!=null;)e=t.getItem(e.parentKey),n.unshift(e);return n}const Vw=new WeakMap;function Dc(t,e,n){return t?(typeof e=="string"&&(e=e.replace(/\s+/g,"")),`${Vw.get(t)}-${n}-${e}`):""}function O5(t,e,n){let{key:i,isDisabled:r,shouldSelectOnPressUp:s}=t,{selectionManager:o,selectedKey:a}=e,l=i===a,c=r||e.isDisabled||e.selectionManager.isDisabled(i),{itemProps:u,isPressed:d}=A5({selectionManager:o,key:i,ref:n,isDisabled:c,shouldSelectOnPressUp:s,linkBehavior:"selection"}),f=Dc(e,i,"tab"),h=Dc(e,i,"tabpanel"),{tabIndex:v}=u,y=e.collection.getItem(i),x=on(y==null?void 0:y.props,{labelable:!0});delete x.id;let m=g_(y==null?void 0:y.props);return{tabProps:ue(x,m,u,{id:f,"aria-selected":l,"aria-disabled":c||void 0,"aria-controls":l?h:void 0,tabIndex:c?void 0:v,role:"tab"}),isSelected:l,isDisabled:c,isPressed:d}}function V5(t,e,n){let i=j4(n)?void 0:0;var r;const s=Dc(e,(r=t.id)!==null&&r!==void 0?r:e==null?void 0:e.selectedKey,"tabpanel"),o=np(B(k({},t),{id:s,"aria-labelledby":Dc(e,e==null?void 0:e.selectedKey,"tab")}));return{tabPanelProps:ue(o,{tabIndex:i,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class z5{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var n,i;return this.disabledKeys.has(e)||!!(!((i=this.collection.getItem(e))===null||i===void 0||(n=i.props)===null||n===void 0)&&n.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return e!=null&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return e!=null&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){do e=this.collection.getKeyAfter(e),e==null&&(e=this.collection.getFirstKey());while(this.isDisabled(e));return e}getPreviousKey(e){do e=this.collection.getKeyBefore(e),e==null&&(e=this.collection.getLastKey());while(this.isDisabled(e));return e}constructor(e,n,i,r=new Set){this.collection=e,this.flipDirection=n==="rtl"&&i==="horizontal",this.disabledKeys=r,this.tabDirection=i==="horizontal"}}function B5(t,e,n){let{orientation:i="horizontal",keyboardActivation:r="automatic"}=t,{collection:s,selectionManager:o,disabledKeys:a}=e,{direction:l}=fr(),c=_.useMemo(()=>new z5(s,l,i,a),[s,a,i,l]),{collectionProps:u}=D5({ref:n,selectionManager:o,keyboardDelegate:c,selectOnFocus:r==="automatic",disallowEmptySelection:!0,scrollRef:n,linkBehavior:"selection"}),d=Pi();Vw.set(e,d);let f=np(B(k({},t),{id:d}));return{tabListProps:B(k({},ue(u,f)),{role:"tablist","aria-orientation":i,tabIndex:void 0})}}const K5=_.createContext(null);function H5(t,e){[t,e]=vn(t,e,K5);let n=t.href&&!t.isDisabled?"a":"span",{linkProps:i,isPressed:r}=F4(B(k({},t),{elementType:n}),e),{hoverProps:s,isHovered:o}=gs(t),{focusProps:a,isFocused:l,isFocusVisible:c}=dr(),u=Lt(B(k({},t),{defaultClassName:"react-aria-Link",values:{isCurrent:!!t["aria-current"],isDisabled:t.isDisabled||!1,isPressed:r,isHovered:o,isFocused:l,isFocusVisible:c}}));return G.createElement(n,B(k({ref:e,slot:t.slot||void 0},ue(u,i,s,a)),{"data-focused":l||void 0,"data-hovered":o||void 0,"data-pressed":r||void 0,"data-focus-visible":c||void 0,"data-current":!!t["aria-current"]||void 0,"data-disabled":t.isDisabled||void 0}),u.children)}const W5=_.forwardRef(H5),Ac=_.createContext({});function U5(t,e){[t,e]=vn(t,e,Ac);let r=t,{elementType:n="label"}=r,i=re(r,["elementType"]);return G.createElement(n,B(k({className:"react-aria-Label"},i),{ref:e}))}const zw=Qh(U5),Y5=_.createContext({}),Bw=_.createContext({});function G5(t,e){[t,e]=vn(t,e,Bw);let r=t,{elementType:n="span"}=r,i=re(r,["elementType"]);return G.createElement(n,B(k({className:"react-aria-Text"},i),{ref:e}))}const X5=_.forwardRef(G5);class Kw{*[Symbol.iterator](){yield*js(this.iterable)}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);var i;return n&&(i=n.prevKey)!==null&&i!==void 0?i:null}getKeyAfter(e){let n=this.keyMap.get(e);var i;return n&&(i=n.nextKey)!==null&&i!==void 0?i:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var n;return(n=this.keyMap.get(e))!==null&&n!==void 0?n:null}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(n==null?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&o.type==="section")for(let a of o.childNodes)n(a)};for(let o of e)n(o);let i=null,r=0;for(let[o,a]of this.keyMap)i?(i.nextKey=o,a.prevKey=i.key):(this.firstKey=o,a.prevKey=void 0),a.type==="item"&&(a.index=r++),i=a,i.nextKey=void 0;var s;this.lastKey=(s=i==null?void 0:i.key)!==null&&s!==void 0?s:null}}class an extends Set{constructor(e,n,i){super(e),e instanceof an?(this.anchorKey=n!=null?n:e.anchorKey,this.currentKey=i!=null?i:e.currentKey):(this.anchorKey=n,this.currentKey=i)}}function q5(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function Q5(t){let{selectionMode:e="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:i,selectionBehavior:r="toggle",disabledBehavior:s="all"}=t,o=_.useRef(!1),[,a]=_.useState(!1),l=_.useRef(null),c=_.useRef(null),[,u]=_.useState(null),d=_.useMemo(()=>Hw(t.selectedKeys),[t.selectedKeys]),f=_.useMemo(()=>Hw(t.defaultSelectedKeys,new an),[t.defaultSelectedKeys]),[h,v]=Vo(d,f,t.onSelectionChange),y=_.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),[x,m]=_.useState(r);r==="replace"&&x==="toggle"&&typeof h=="object"&&h.size===0&&m("replace");let g=_.useRef(r);return _.useEffect(()=>{r!==g.current&&(m(r),g.current=r)},[r]),{selectionMode:e,disallowEmptySelection:n,selectionBehavior:x,setSelectionBehavior:m,get isFocused(){return o.current},setFocused(b){o.current=b,a(b)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(b,w="first"){l.current=b,c.current=w,u(b)},selectedKeys:h,setSelectedKeys(b){(i||!q5(b,h))&&v(b)},disabledKeys:y,disabledBehavior:s}}function Hw(t,e){return t?t==="all"?"all":new an(t):e}class Z5{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return this.state.selectionMode==="none"?!1:(e=this.getKey(e),this.state.selectedKeys==="all"?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every(i=>n.has(i)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let i=this.collection.getItem(n);(!e||i&&zp(this.collection,i,e)<0)&&(e=i)}return e==null?void 0:e.key}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let i=this.collection.getItem(n);(!e||i&&zp(this.collection,i,e)>0)&&(e=i)}return e==null?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}e=this.getKey(e);let n;if(this.state.selectedKeys==="all")n=new an([e],e,e);else{let s=this.state.selectedKeys;var i;let o=(i=s.anchorKey)!==null&&i!==void 0?i:e;n=new an(s,o,e);var r;for(let a of this.getKeyRange(o,(r=s.currentKey)!==null&&r!==void 0?r:e))n.delete(a);for(let a of this.getKeyRange(e,o))this.canSelectItem(a)&&n.add(a)}this.state.setSelectedKeys(n)}getKeyRange(e,n){let i=this.collection.getItem(e),r=this.collection.getItem(n);return i&&r?zp(this.collection,i,r)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){var i;if(!((i=this.layoutDelegate)===null||i===void 0)&&i.getKeyRange)return this.layoutDelegate.getKeyRange(e,n);let r=[],s=e;for(;s!=null;){let o=this.collection.getItem(s);if((o&&o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&r.push(s),s===n)return r;s=this.collection.getKeyAfter(s)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n||n.type==="cell"&&this.allowsCellSelection)return e;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}if(e=this.getKey(e),e==null)return;let n=new an(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(e)?n.delete(e):this.canSelectItem(e)&&(n.add(e),n.anchorKey=e,n.currentKey=e),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode==="none"||(e=this.getKey(e),e==null))return;let n=this.canSelectItem(e)?new an([e],e,e):new an;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode==="none")return;let n=new an;for(let i of e)if(i=this.getKey(i),i!=null&&(n.add(i),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=i=>{for(;i!=null;){if(this.canSelectItem(i)){let r=this.collection.getItem(i);r.type==="item"&&e.push(i),r.hasChildNodes&&(this.allowsCellSelection||r.type!=="item")&&n(N5(R5(r,this.collection)).key)}i=this.collection.getKeyAfter(i)}};return n(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new an)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let i of e)if(!n.has(i))return!1;for(let i of n)if(!e.has(i))return!1;return!0}canSelectItem(e){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let i=this.collection.getItem(e);return!(!i||!(i==null||(n=i.props)===null||n===void 0)&&n.isDisabled||i.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var n,i;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((i=this.collection.getItem(e))===null||i===void 0||(n=i.props)===null||n===void 0)&&n.isDisabled))}isLink(e){var n,i;return!!(!((i=this.collection.getItem(e))===null||i===void 0||(n=i.props)===null||n===void 0)&&n.href)}getItemProps(e){var n;return(n=this.collection.getItem(e))===null||n===void 0?void 0:n.props}constructor(e,n,i){this.collection=e,this.state=n;var r;this.allowsCellSelection=(r=i==null?void 0:i.allowsCellSelection)!==null&&r!==void 0?r:!1,this._isSelectAll=null,this.layoutDelegate=(i==null?void 0:i.layoutDelegate)||null}}function J5(t){let{filter:e,layoutDelegate:n}=t,i=Q5(t),r=_.useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),s=_.useCallback(u=>e?new Kw(e(u)):new Kw(u),[e]),o=_.useMemo(()=>({suppressTextValueWarning:t.suppressTextValueWarning}),[t.suppressTextValueWarning]),a=F5(t,s,o),l=_.useMemo(()=>new Z5(a,i,{layoutDelegate:n}),[a,i,n]);const c=_.useRef(null);return _.useEffect(()=>{if(i.focusedKey!=null&&!a.getItem(i.focusedKey)&&c.current){const m=c.current.getItem(i.focusedKey),g=[...c.current.getKeys()].map(M=>{const S=c.current.getItem(M);return(S==null?void 0:S.type)==="item"?S:null}).filter(M=>M!==null),b=[...a.getKeys()].map(M=>{const S=a.getItem(M);return(S==null?void 0:S.type)==="item"?S:null}).filter(M=>M!==null);var u,d;const w=((u=g==null?void 0:g.length)!==null&&u!==void 0?u:0)-((d=b==null?void 0:b.length)!==null&&d!==void 0?d:0);var f,h,v;let P=Math.min(w>1?Math.max(((f=m==null?void 0:m.index)!==null&&f!==void 0?f:0)-w+1,0):(h=m==null?void 0:m.index)!==null&&h!==void 0?h:0,((v=b==null?void 0:b.length)!==null&&v!==void 0?v:0)-1),E=null,A=!1;for(;P>=0;){if(!l.isDisabled(b[P].key)){E=b[P];break}if(P((y=m==null?void 0:m.index)!==null&&y!==void 0?y:0)&&(P=(x=m==null?void 0:m.index)!==null&&x!==void 0?x:0),P--}}i.setFocusedKey(E?E.key:null)}c.current=a},[a,l,i,i.focusedKey]),{collection:a,disabledKeys:r,selectionManager:l}}function eA(t){var e;let[n,i]=Vo(t.selectedKey,(e=t.defaultSelectedKey)!==null&&e!==void 0?e:null,t.onSelectionChange),r=_.useMemo(()=>n!=null?[n]:[],[n]),{collection:s,disabledKeys:o,selectionManager:a}=J5(B(k({},t),{selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:r,onSelectionChange:c=>{if(c==="all")return;var u;let d=(u=c.values().next().value)!==null&&u!==void 0?u:null;d===n&&t.onSelectionChange&&t.onSelectionChange(d),i(d)}})),l=n!=null?s.getItem(n):null;return{collection:s,disabledKeys:o,selectionManager:a,selectedKey:n,setSelectedKey:i,selectedItem:l}}function tA(t){var e;let n=eA(B(k({},t),{suppressTextValueWarning:!0,defaultSelectedKey:(e=t.defaultSelectedKey)!==null&&e!==void 0?e:Ww(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set)})),{selectionManager:i,collection:r,selectedKey:s}=n,o=_.useRef(s);return _.useEffect(()=>{let a=s;(i.isEmpty||!r.getItem(a))&&(a=Ww(r,n.disabledKeys),a!=null&&i.setSelectedKeys([a])),(a!=null&&i.focusedKey==null||!i.isFocused&&a!==o.current)&&i.setFocusedKey(a),o.current=a}),B(k({},n),{isDisabled:t.isDisabled||!1})}function Ww(t,e){let n=null;if(t){var i,r,s,o;for(n=t.getFirstKey();(e.has(n)||!((r=t.getItem(n))===null||r===void 0||(i=r.props)===null||i===void 0)&&i.isDisabled)&&n!==t.getLastKey();)n=t.getKeyAfter(n);(e.has(n)||!((o=t.getItem(n))===null||o===void 0||(s=o.props)===null||s===void 0)&&s.isDisabled)&&n===t.getLastKey()&&(n=t.getFirstKey())}return n}const Bp=_.createContext(null);function nA(t,e){let n=_.useContext(Bp);return n!=null&&n.isInvalid?G.createElement(rA,B(k({},t),{ref:e})):null}const iA=_.forwardRef(nA),rA=_.forwardRef((t,e)=>{let n=_.useContext(Bp),i=on(t),r=Lt(B(k({},t),{defaultClassName:"react-aria-FieldError",defaultChildren:n.validationErrors.length===0?void 0:n.validationErrors.join(" "),values:n}));return r.children==null?null:G.createElement(X5,B(k(k({slot:"errorMessage"},i),r),{ref:e}))}),sA=_.createContext(null),Uw=_.createContext({});let oA=t=>{let s=t,{onHoverStart:e,onHoverChange:n,onHoverEnd:i}=s;return re(s,["onHoverStart","onHoverChange","onHoverEnd"])};function aA(t,e){[t,e]=vn(t,e,Uw);let{hoverProps:n,isHovered:i}=gs(t),{isFocused:r,isFocusVisible:s,focusProps:o}=dr({isTextInput:!0,autoFocus:t.autoFocus}),a=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",l=Lt(B(k({},t),{values:{isHovered:i,isFocused:r,isFocusVisible:s,isDisabled:t.disabled||!1,isInvalid:a},defaultClassName:"react-aria-Input"}));return G.createElement("input",B(k(k({},ue(oA(t),o,n)),l),{ref:e,"data-focused":r||void 0,"data-disabled":t.disabled||void 0,"data-hovered":i||void 0,"data-focus-visible":s||void 0,"data-invalid":a||void 0}))}const lA=Qh(aA),cA=_.createContext(null),Lc=_.createContext(null),Kp=_.createContext(null),Yw=_.createContext(null);function uA(t,e){[t,e]=vn(t,e,cA);let n=_.useRef(null),i=Dp(t.formatOptions),r=g5(B(k({},t),{numberFormatter:i})),[s,o]=cp(),{groupProps:a,trackProps:l,labelProps:c,outputProps:u}=x5(B(k({},t),{label:o}),r,n),d=Lt(B(k({},t),{values:{orientation:r.orientation,isDisabled:r.isDisabled,state:r},defaultClassName:"react-aria-Slider"})),f=on(t);return delete f.id,G.createElement(Bo,{values:[[Lc,r],[Kp,B(k({},l),{ref:n})],[Yw,u],[Ac,B(k({},c),{ref:s})]]},G.createElement("div",B(k(k(k({},f),a),d),{ref:e,slot:t.slot||void 0,"data-orientation":r.orientation,"data-disabled":r.isDisabled||void 0})))}const dA=_.forwardRef(uA);function fA(t,e){[t,e]=vn(t,e,Yw);let l=t,{children:n,style:i,className:r}=l,s=re(l,["children","style","className"]),o=_.useContext(Lc),a=Lt({className:r,style:i,children:n,defaultChildren:o.getThumbValueLabel(0),defaultClassName:"react-aria-SliderOutput",values:{orientation:o.orientation,isDisabled:o.isDisabled,state:o}});return G.createElement("output",B(k(k({},s),a),{ref:e,"data-orientation":o.orientation||void 0,"data-disabled":o.isDisabled||void 0}))}const hA=_.forwardRef(fA);function pA(t,e){[t,e]=vn(t,e,Kp);let n=_.useContext(Lc),u=t,{onHoverStart:i,onHoverEnd:r,onHoverChange:s}=u,o=re(u,["onHoverStart","onHoverEnd","onHoverChange"]),{hoverProps:a,isHovered:l}=gs({onHoverStart:i,onHoverEnd:r,onHoverChange:s}),c=Lt(B(k({},t),{defaultClassName:"react-aria-SliderTrack",values:{orientation:n.orientation,isDisabled:n.isDisabled,isHovered:l,state:n}}));return G.createElement("div",B(k(k({},ue(o,a)),c),{ref:e,"data-hovered":l||void 0,"data-orientation":n.orientation||void 0,"data-disabled":n.isDisabled||void 0}))}const mA=_.forwardRef(pA);function gA(t,e){let{inputRef:n=null}=t,i=_.useContext(Lc),{ref:r}=bc(Kp),{index:s=0}=t,o=_.useRef(null),a=n||o,[l,c]=cp(),{thumbProps:u,inputProps:d,labelProps:f,isDragging:h,isFocused:v,isDisabled:y}=_5(B(k({},t),{index:s,trackRef:r,inputRef:a,label:c}),i),{focusProps:x,isFocusVisible:m}=dr(),{hoverProps:g,isHovered:b}=gs(t),w=Lt(B(k({},t),{defaultClassName:"react-aria-SliderThumb",values:{state:i,isHovered:b,isDragging:h,isFocused:v,isFocusVisible:m,isDisabled:y}})),P=on(t);return delete P.id,G.createElement("div",B(k(k({},ue(P,u,g)),w),{ref:e,style:k(k({},u.style),w.style),"data-hovered":b||void 0,"data-dragging":h||void 0,"data-focused":v||void 0,"data-focus-visible":m||void 0,"data-disabled":y||void 0}),G.createElement(b5,null,G.createElement("input",k({ref:a},ue(d,x)))),G.createElement(Bo,{values:[[Ac,B(k({},f),{ref:l})]]},w.children))}const vA=_.forwardRef(gA),Gw=_.createContext({});function yA(t,e){[t,e]=vn(t,e,Gw);let x=t,{isDisabled:n,isInvalid:i,onHoverStart:r,onHoverChange:s,onHoverEnd:o}=x,a=re(x,["isDisabled","isInvalid","onHoverStart","onHoverChange","onHoverEnd"]),{hoverProps:l,isHovered:c}=gs({onHoverStart:r,onHoverChange:s,onHoverEnd:o,isDisabled:n}),{isFocused:u,isFocusVisible:d,focusProps:f}=dr({within:!0});n!=null||(n=!!t["aria-disabled"]&&t["aria-disabled"]!=="false"),i!=null||(i=!!t["aria-invalid"]&&t["aria-invalid"]!=="false");let h=Lt(B(k({},t),{values:{isHovered:c,isFocusWithin:u,isFocusVisible:d,isDisabled:n,isInvalid:i},defaultClassName:"react-aria-Group"}));var v,y;return G.createElement("div",B(k(k({},ue(a,f,l)),h),{ref:e,role:(v=t.role)!==null&&v!==void 0?v:"group",slot:(y=t.slot)!==null&&y!==void 0?y:void 0,"data-focus-within":u||void 0,"data-hovered":c||void 0,"data-focus-visible":d||void 0,"data-disabled":n||void 0,"data-invalid":i||void 0}),h.children)}const bA=_.forwardRef(yA),xA=_.createContext(null),_A=_.createContext(null);function wA(t,e){[t,e]=vn(t,e,xA);let{validationBehavior:n}=bc(sA)||{};var i,r;let s=(r=(i=t.validationBehavior)!==null&&i!==void 0?i:n)!==null&&r!==void 0?r:"native",{locale:o}=fr(),a=v5(B(k({},t),{locale:o,validationBehavior:s})),l=_.useRef(null),[c,u]=cp(),P=T5(B(k({},o4(t)),{label:u,validationBehavior:s}),a,l),{labelProps:d,groupProps:f,inputProps:h,incrementButtonProps:v,decrementButtonProps:y,descriptionProps:x,errorMessageProps:m}=P,g=re(P,["labelProps","groupProps","inputProps","incrementButtonProps","decrementButtonProps","descriptionProps","errorMessageProps"]),b=Lt(B(k({},t),{values:{state:a,isDisabled:t.isDisabled||!1,isInvalid:g.isInvalid||!1},defaultClassName:"react-aria-NumberField"})),w=on(t);return delete w.id,G.createElement(Bo,{values:[[_A,a],[Gw,f],[Uw,B(k({},h),{ref:l})],[Ac,B(k({},d),{ref:c})],[Y5,{slots:{increment:v,decrement:y}}],[Bw,{slots:{description:x,errorMessage:m}}],[Bp,g]]},G.createElement("div",B(k(k({},w),b),{ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":g.isInvalid||void 0})),t.name&&G.createElement("input",{type:"hidden",name:t.name,value:isNaN(a.numberValue)?"":a.numberValue}))}const SA=_.forwardRef(wA),jc=_.createContext(null),bs=_.createContext(null);function PA(t,e){[t,e]=vn(t,e,jc);let{children:n,orientation:i="horizontal"}=t;return n=_.useMemo(()=>typeof n=="function"?n({orientation:i,defaultChildren:null}):n,[n,i]),G.createElement(Y3,{content:n},r=>G.createElement(CA,{props:t,collection:r,tabsRef:e}))}function CA({props:t,tabsRef:e,collection:n}){let{orientation:i="horizontal"}=t,r=tA(B(k({},t),{collection:n,children:void 0})),{focusProps:s,isFocused:o,isFocusVisible:a}=dr({within:!0}),l=_.useMemo(()=>({orientation:i,isFocusWithin:o,isFocusVisible:a}),[i,o,a]),c=Lt(B(k({},t),{defaultClassName:"react-aria-Tabs",values:l}));return G.createElement("div",B(k(k(k({},on(t)),s),c),{ref:e,slot:t.slot||void 0,"data-focused":o||void 0,"data-orientation":i,"data-focus-visible":a||void 0,"data-disabled":r.isDisabled||void 0}),G.createElement(Bo,{values:[[jc,t],[bs,r]]},c.children))}const kA=_.forwardRef(PA);function TA(t,e){return _.useContext(bs)?G.createElement($A,{props:t,forwardedRef:e}):G.createElement(t4,t)}function $A({props:t,forwardedRef:e}){let n=_.useContext(bs),{CollectionRoot:i}=_.useContext(r4),{orientation:r="horizontal",keyboardActivation:s="automatic"}=bc(jc),o=vc(e),{tabListProps:a}=B5(B(k({},t),{orientation:r,keyboardActivation:s}),n,o),l=Lt(B(k({},t),{children:null,defaultClassName:"react-aria-TabList",values:{orientation:r,state:n}})),c=on(t);return delete c.id,G.createElement("div",B(k(B(k(k({},c),a),{ref:o}),l),{"data-orientation":r||void 0}),G.createElement(i,{collection:n.collection,persistedKeys:s4(n.selectionManager.focusedKey)}))}const EA=_.forwardRef(TA),MA=J3("item",(t,e,n)=>{let i=_.useContext(bs),r=vc(e),{tabProps:s,isSelected:o,isDisabled:a,isPressed:l}=O5(k({key:n.key},t),i,r),{focusProps:c,isFocused:u,isFocusVisible:d}=dr(),{hoverProps:f,isHovered:h}=gs({isDisabled:a,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),v=Lt(B(k({},t),{id:void 0,defaultClassName:"react-aria-Tab",values:{isSelected:o,isDisabled:a,isFocused:u,isFocusVisible:d,isPressed:l,isHovered:h}})),y=n.props.href?"a":"div";return G.createElement(y,B(k({},ue(s,c,f,v)),{ref:r,"data-selected":o||void 0,"data-disabled":a||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0,"data-pressed":l||void 0,"data-hovered":h||void 0}))});function DA(t,e){const n=_.useContext(bs);let i=vc(e),{tabPanelProps:r}=V5(t,n,i),{focusProps:s,isFocused:o,isFocusVisible:a}=dr(),l=n.selectedKey===t.id,c=Lt(B(k({},t),{defaultClassName:"react-aria-TabPanel",values:{isFocused:o,isFocusVisible:a,isInert:!l,state:n}}));if(!l&&!t.shouldForceMount)return null;let u=on(t);delete u.id;let d=l?ue(u,r,s,c):c;return G.createElement("div",B(k({},d),{ref:i,"data-focused":o||void 0,"data-focus-visible":a||void 0,inert:l?void 0:"true","data-inert":l?void 0:"true"}),G.createElement(Bo,{values:[[jc,null],[bs,null]]},c.children))}const AA=Qh(DA);function Hp(){const t={id:"",name:"",position:"",source:"",variant:"",state:"",type:""},e=document.getElementById("wps-agentforce-roi");if(!e)return t;const n=e.closest('[data-blade-name="sf/open"]');if(!n)return t;const i={};return Array.from(n.attributes).forEach(r=>{if(r.name.startsWith("data-blade-")){const s=r.name.replace("data-blade-","");i[s]=r.value}}),k(k({},t),i)}const LA=t=>{if(!t)return 0;const e=t.closest(".input-panel");if(!e)return 0;const n=Array.from(e.querySelectorAll(".input-container")),i=t.closest(".input-container");return i?n.indexOf(i)+1:0},Xw=(t,e,n)=>{let i=null;const r=Hp();typeof t=="number"?i=document.querySelectorAll(`[data-input-name="${e}"]`)[0]:i=t.target;const s=LA(i),o={event:"custEv_contentClick",blade:{id:r.id,name:"sf/marquee/agentforce-inputs",position:r.position,source:"www",variant:"marquee",state:"rendered",type:"blade",module:{id:"",name:e,type:i?"input field":"slider",position:s,link:{text:"",url:"",type:"",internalDriver:""}}}};window.dataLayer&&window.dataLayer.push(k({},o))};function xt(o){var a=o,{label:t,description:e,errorMessage:n,info:i,inputName:r}=a,s=re(a,["label","description","errorMessage","info","inputName"]);return p.jsx(SA,B(k({},s),{children:p.jsxs("div",{className:"flex flex-col gap-2 input-container",children:[p.jsx(zw,{className:"font-sans text-sm font-bold leading-tight text-neutral-700",children:t}),p.jsx(bA,{children:p.jsx(lA,{id:t,className:"w-full rounded border border-[#747474] p-2 text-lg focus:outline-none focus:ring-2 focus:ring-blue-500",onChange:l=>Xw(l,r),"data-input-name":r})}),p.jsx(iA,{className:"font-sans text-sm leading-tight text-red-600",children:n})]})}))}function zn({label:t,info:e,value:n,onChange:i,maxValue:r,minValue:s,prefix:o,suffix:a,step:l,inputName:c}){return p.jsx("div",{className:"flex justify-center input-container",children:p.jsxs(dA,{value:n,onChange:u=>{i(u),Xw(u,c)},className:"w-full",maxValue:r!=null?r:100,minValue:s!=null?s:0,step:l!=null?l:1,"data-input-name":c,children:[p.jsx("div",{className:"flex font-sans text-sm font-bold leading-tight text-neutral-700",children:p.jsx(zw,{className:"flex-1",children:t})}),p.jsxs("div",{className:"mt-6 flex gap-4",children:[p.jsx(mA,{className:"relative flex h-7 w-full",children:({state:u})=>p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"slider-track absolute top-[50%] h-1 w-full translate-y-[-50%] rounded-full bg-[#929292]"}),p.jsx("div",{className:"text-right font-sans text-sm font-bold leading-tight text-[#5867E8]",style:{position:"absolute",left:u.getThumbPercent(0)*100+"%",bottom:"20px",transform:"translate(-50%, -50%)",touchAction:"none"},children:p.jsx(hA,{})}),p.jsx("div",{className:"absolute top-[50%] h-1 translate-y-[-50%] rounded-full bg-[#5867E8]",style:{width:u.getThumbPercent(0)*100+"%"}}),p.jsx(vA,{className:"top-[50%] h-7 w-7 cursor-grab rounded-full border border-2 border-solid border-[#5867E8] bg-white shadow-lg outline-none ring-blue-600 transition active:cursor-grabbing focus-visible:ring-2 dragging:bg-gray-200"})]})}),p.jsx("div",{className:"font-sans text-lg font-normal leading-7 tracking-tight text-neutral-900",children:"%"})]})]})})}function jA({children:t}){return p.jsx("div",{className:"flex w-full justify-center border-b",children:p.jsx(kA,{className:"w-full",children:t})})}function FA({children:t}){return p.jsx("div",{className:"flex justify-start border-b",children:p.jsx(EA,{"aria-label":"Results",className:"flex space-x-1",children:t})})}function qw(t){return p.jsx(MA,B(k({},t),{className:({isSelected:e})=>`w-full cursor-pointer rounded-tl-lg rounded-tr-lg bg-white px-6 py-2 text-center font-display outline-none ring-[#0176D3] transition-colors focus-visible:ring-2 ${e?"border-b-4 border-[#0176D3] bg-white text-[#0176D3]":""} `}))}function Qw(t){return p.jsx(AA,B(k({},t),{className:"mt-8 w-full rounded-2xl bg-white p-0 ring-[#0176D3] focus-visible:ring-2"}))}/*! * @kurkle/color v0.3.2 * https://github.com/kurkle/color#readme * (c) 2023 Jukka Kurkela * Released under the MIT License */function Yo(t){return t+.5|0}const ki=(t,e,n)=>Math.max(Math.min(t,n),e);function Go(t){return ki(Yo(t*2.55),0,255)}function Ti(t){return ki(Yo(t*255),0,255)}function Bn(t){return ki(Yo(t/2.55)/100,0,1)}function Zw(t){return ki(Yo(t*100),0,100)}const Gt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Wp=[..."0123456789ABCDEF"],RA=t=>Wp[t&15],NA=t=>Wp[(t&240)>>4]+Wp[t&15],Fc=t=>(t&240)>>4===(t&15),IA=t=>Fc(t.r)&&Fc(t.g)&&Fc(t.b)&&Fc(t.a);function OA(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Gt[t[1]]*17,g:255&Gt[t[2]]*17,b:255&Gt[t[3]]*17,a:e===5?Gt[t[4]]*17:255}:(e===7||e===9)&&(n={r:Gt[t[1]]<<4|Gt[t[2]],g:Gt[t[3]]<<4|Gt[t[4]],b:Gt[t[5]]<<4|Gt[t[6]],a:e===9?Gt[t[7]]<<4|Gt[t[8]]:255})),n}const VA=(t,e)=>t<255?e(t):"";function zA(t){var e=IA(t)?RA:NA;return t?"#"+e(t.r)+e(t.g)+e(t.b)+VA(t.a,e):void 0}const BA=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Jw(t,e,n){const i=e*Math.min(n,1-n),r=(s,o=(s+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[r(0),r(8),r(4)]}function KA(t,e,n){const i=(r,s=(r+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function HA(t,e,n){const i=Jw(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function WA(t,e,n,i,r){return t===r?(e-n)/i+(e.5?u/(2-s-o):u/(s+o),l=WA(n,i,r,u,s),l=l*60+.5),[l|0,c||0,a]}function Yp(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(Ti)}function Gp(t,e,n){return Yp(Jw,t,e,n)}function UA(t,e,n){return Yp(HA,t,e,n)}function YA(t,e,n){return Yp(KA,t,e,n)}function eS(t){return(t%360+360)%360}function GA(t){const e=BA.exec(t);let n=255,i;if(!e)return;e[5]!==i&&(n=e[6]?Go(+e[5]):Ti(+e[5]));const r=eS(+e[2]),s=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?i=UA(r,s,o):e[1]==="hsv"?i=YA(r,s,o):i=Gp(r,s,o),{r:i[0],g:i[1],b:i[2],a:n}}function XA(t,e){var n=Up(t);n[0]=eS(n[0]+e),n=Gp(n),t.r=n[0],t.g=n[1],t.b=n[2]}function qA(t){if(!t)return;const e=Up(t),n=e[0],i=Zw(e[1]),r=Zw(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${Bn(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}const tS={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},nS={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function QA(){const t={},e=Object.keys(nS),n=Object.keys(tS);let i,r,s,o,a;for(i=0;i>16&255,s>>8&255,s&255]}return t}let Rc;function ZA(t){Rc||(Rc=QA(),Rc.transparent=[0,0,0,0]);const e=Rc[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const JA=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function eL(t){const e=JA.exec(t);let n=255,i,r,s;if(e){if(e[7]!==i){const o=+e[7];n=e[8]?Go(o):ki(o*255,0,255)}return i=+e[1],r=+e[3],s=+e[5],i=255&(e[2]?Go(i):ki(i,0,255)),r=255&(e[4]?Go(r):ki(r,0,255)),s=255&(e[6]?Go(s):ki(s,0,255)),{r:i,g:r,b:s,a:n}}}function tL(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Bn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const Xp=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,xs=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function nL(t,e,n){const i=xs(Bn(t.r)),r=xs(Bn(t.g)),s=xs(Bn(t.b));return{r:Ti(Xp(i+n*(xs(Bn(e.r))-i))),g:Ti(Xp(r+n*(xs(Bn(e.g))-r))),b:Ti(Xp(s+n*(xs(Bn(e.b))-s))),a:t.a+n*(e.a-t.a)}}function Nc(t,e,n){if(t){let i=Up(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,e===0?360:1)),i=Gp(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function iS(t,e){return t&&Object.assign(e||{},t)}function rS(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Ti(t[3]))):(e=iS(t,{r:0,g:0,b:0,a:1}),e.a=Ti(e.a)),e}function iL(t){return t.charAt(0)==="r"?eL(t):GA(t)}class Xo{constructor(e){if(e instanceof Xo)return e;const n=typeof e;let i;n==="object"?i=rS(e):n==="string"&&(i=OA(e)||ZA(e)||iL(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=iS(this._rgb);return e&&(e.a=Bn(e.a)),e}set rgb(e){this._rgb=rS(e)}rgbString(){return this._valid?tL(this._rgb):void 0}hexString(){return this._valid?zA(this._rgb):void 0}hslString(){return this._valid?qA(this._rgb):void 0}mix(e,n){if(e){const i=this.rgb,r=e.rgb;let s;const o=n===s?.5:n,a=2*o-1,l=i.a-r.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,i.r=255&c*i.r+s*r.r+.5,i.g=255&c*i.g+s*r.g+.5,i.b=255&c*i.b+s*r.b+.5,i.a=o*i.a+(1-o)*r.a,this.rgb=i}return this}interpolate(e,n){return e&&(this._rgb=nL(this._rgb,e._rgb,n)),this}clone(){return new Xo(this.rgb)}alpha(e){return this._rgb.a=Ti(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=Yo(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Nc(this._rgb,2,e),this}darken(e){return Nc(this._rgb,2,-e),this}saturate(e){return Nc(this._rgb,1,e),this}desaturate(e){return Nc(this._rgb,1,-e),this}rotate(e){return XA(this._rgb,e),this}}/*! * Chart.js v4.4.6 * https://www.chartjs.org * (c) 2024 Chart.js Contributors * Released under the MIT License */function Kn(){}const rL=(()=>{let t=0;return()=>t++})();function he(t){return t===null||typeof t=="undefined"}function Fe(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function ce(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Xt(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function yn(t,e){return Xt(t)?t:e}function fe(t,e){return typeof t=="undefined"?e:t}const sL=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function ve(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function pe(t,e,n,i){let r,s,o;if(Fe(t))for(s=t.length,r=0;rt,x:t=>t.x,y:t=>t.y};function lL(t){const e=t.split("."),n=[];let i="";for(const r of e)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function cL(t){const e=lL(t);return n=>{for(const i of e){if(i==="")break;n=n&&n[i]}return n}}function _s(t,e){return(oS[e]||(oS[e]=cL(e)))(t)}function qp(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Qo=t=>typeof t!="undefined",$i=t=>typeof t=="function",aS=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function uL(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const He=Math.PI,dt=2*He,Vc=Number.POSITIVE_INFINITY,dL=He/180,Xe=He/2,hr=He/4,lS=He*2/3,Qp=Math.log10,Ei=Math.sign;function zc(t,e,n){return Math.abs(t-e)r-s).pop(),e}function Bc(t){return!isNaN(parseFloat(t))&&isFinite(t)}function hL(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function pL(t,e,n){let i,r,s;for(i=0,r=t.length;il&&c=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Zp(t,e,n){n=n||(o=>t[o]1;)s=r+i>>1,n(s)?r=s:i=s;return{lo:r,hi:i}}const Jp=(t,e,n,i)=>Zp(t,n,i?r=>{const s=t[r][e];return st[r][e]Zp(t,n,i=>t[i][e]>=n);function bL(t,e,n){let i=0,r=t.length;for(;ii&&t[r-1]>n;)r--;return i>0||r{const i="_onData"+qp(n),r=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...s){const o=r.apply(this,s);return t._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...s)}),o}})})}function pS(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);r!==-1&&i.splice(r,1),!(i.length>0)&&(hS.forEach(s=>{delete t[s]}),delete t._chartjs)}function mS(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const gS=function(){return typeof window=="undefined"?function(t){return t()}:window.requestAnimationFrame}();function vS(t,e){let n=[],i=!1;return function(...r){n=r,i||(i=!0,gS.call(window,()=>{i=!1,t.apply(e,n)}))}}function _L(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const em=t=>t==="start"?"left":t==="end"?"right":"center",rt=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,wL=(t,e,n,i)=>t===(i?"left":"right")?n:t==="center"?(e+n)/2:e,Kc=t=>t===0||t===1,yS=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*dt/n)),bS=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*dt/n)+1,Zo={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Xe)+1,easeOutSine:t=>Math.sin(t*Xe),easeInOutSine:t=>-.5*(Math.cos(He*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Kc(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Kc(t)?t:yS(t,.075,.3),easeOutElastic:t=>Kc(t)?t:bS(t,.075,.3),easeInOutElastic(t){return Kc(t)?t:t<.5?.5*yS(t*2,.1125,.45):.5+.5*bS(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Zo.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Zo.easeInBounce(t*2)*.5:Zo.easeOutBounce(t*2-1)*.5+.5};function xS(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function _S(t){return xS(t)?t:new Xo(t)}function tm(t){return xS(t)?t:new Xo(t).saturate(.5).darken(.1).hexString()}const SL=["x","y","borderWidth","radius","tension"],PL=["color","borderColor","backgroundColor"];function CL(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:PL},numbers:{type:"number",properties:SL}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function kL(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const wS=new Map;function TL(t,e){e=e||{};const n=t+JSON.stringify(e);let i=wS.get(n);return i||(i=new Intl.NumberFormat(t,e),wS.set(n,i)),i}function SS(t,e,n){return TL(e,n).format(t)}const PS={values(t){return Fe(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const i=this.chart.options.locale;let r,s=t;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),s=$L(t,n)}const o=Qp(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),SS(t,i,l)},logarithmic(t,e,n){if(t===0)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(Qp(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?PS.numeric.call(this,t,e,n):""}};function $L(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var CS={formatters:PS};function EL(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:CS.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const vr=Object.create(null),nm=Object.create(null);function Jo(t,e){if(!e)return t;const n=e.split(".");for(let i=0,r=n.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>tm(r.backgroundColor),this.hoverBorderColor=(i,r)=>tm(r.borderColor),this.hoverColor=(i,r)=>tm(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return im(this,e,n)}get(e){return Jo(this,e)}describe(e,n){return im(nm,e,n)}override(e,n){return im(vr,e,n)}route(e,n,i,r){const s=Jo(this,e),o=Jo(this,i),a="_"+n;Object.defineProperties(s,{[a]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=o[r];return ce(l)?Object.assign({},c,l):fe(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var De=new ML({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[CL,kL,EL]);function DL(t){return!t||he(t.size)||he(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function kS(t,e,n,i,r){let s=e[r];return s||(s=e[r]=t.measureText(r).width,n.push(r)),s>i&&(i=s),i}function yr(t,e,n){const i=t.currentDevicePixelRatio,r=n!==0?Math.max(n/2,.5):0;return Math.round((e-r)*i)/i+r}function TS(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function rm(t,e,n,i){$S(t,e,n,i,null)}function $S(t,e,n,i,r){let s,o,a,l,c,u,d,f;const h=e.pointStyle,v=e.rotation,y=e.radius;let x=(v||0)*dL;if(h&&typeof h=="object"&&(s=h.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){t.save(),t.translate(n,i),t.rotate(x),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(y)||y<=0)){switch(t.beginPath(),h){default:r?t.ellipse(n,i,r/2,y,0,0,dt):t.arc(n,i,y,0,dt),t.closePath();break;case"triangle":u=r?r/2:y,t.moveTo(n+Math.sin(x)*u,i-Math.cos(x)*y),x+=lS,t.lineTo(n+Math.sin(x)*u,i-Math.cos(x)*y),x+=lS,t.lineTo(n+Math.sin(x)*u,i-Math.cos(x)*y),t.closePath();break;case"rectRounded":c=y*.516,l=y-c,o=Math.cos(x+hr)*l,d=Math.cos(x+hr)*(r?r/2-c:l),a=Math.sin(x+hr)*l,f=Math.sin(x+hr)*(r?r/2-c:l),t.arc(n-d,i-a,c,x-He,x-Xe),t.arc(n+f,i-o,c,x-Xe,x),t.arc(n+d,i+a,c,x,x+Xe),t.arc(n-f,i+o,c,x+Xe,x+He),t.closePath();break;case"rect":if(!v){l=Math.SQRT1_2*y,u=r?r/2:l,t.rect(n-u,i-l,2*u,2*l);break}x+=hr;case"rectRot":d=Math.cos(x)*(r?r/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,f=Math.sin(x)*(r?r/2:y),t.moveTo(n-d,i-a),t.lineTo(n+f,i-o),t.lineTo(n+d,i+a),t.lineTo(n-f,i+o),t.closePath();break;case"crossRot":x+=hr;case"cross":d=Math.cos(x)*(r?r/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,f=Math.sin(x)*(r?r/2:y),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+f,i-o),t.lineTo(n-f,i+o);break;case"star":d=Math.cos(x)*(r?r/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,f=Math.sin(x)*(r?r/2:y),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+f,i-o),t.lineTo(n-f,i+o),x+=hr,d=Math.cos(x)*(r?r/2:y),o=Math.cos(x)*y,a=Math.sin(x)*y,f=Math.sin(x)*(r?r/2:y),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+f,i-o),t.lineTo(n-f,i+o);break;case"line":o=r?r/2:Math.cos(x)*y,a=Math.sin(x)*y,t.moveTo(n-o,i-a),t.lineTo(n+o,i+a);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(x)*(r?r/2:y),i+Math.sin(x)*y);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function sm(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&s.strokeColor!=="";let l,c;for(t.save(),t.font=r.string,AL(t,s),l=0;l+t||0;function lm(t,e){const n={},i=ce(e),r=i?Object.keys(e):e,s=ce(t)?i?o=>fe(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of r)n[o]=IL(s(o));return n}function ES(t){return lm(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ws(t){return lm(t,["topLeft","topRight","bottomLeft","bottomRight"])}function jt(t){const e=ES(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function qe(t,e){t=t||{},e=e||De.font;let n=fe(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let i=fe(t.style,e.style);i&&!(""+i).match(RL)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:fe(t.family,e.family),lineHeight:NL(fe(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:fe(t.weight,e.weight),string:""};return r.string=DL(r),r}function Pe(t,e,n,i){let r,s,o;for(r=0,s=t.length;rn&&a===0?0:a+l;return{min:o(i,-Math.abs(s)),max:o(r,s)}}function Ss(t,e){return Object.assign(Object.create(t),e)}function cm(t,e=[""],n,i,r=()=>t[0]){const s=n||t;typeof i=="undefined"&&(i=jS("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:i,_getTarget:r,override:a=>cm([a,...t],e,s,i)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return DS(a,l,()=>YL(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return FS(a).includes(l)},ownKeys(a){return FS(a)},set(a,l,c){const u=a._storage||(a._storage=r());return a[l]=u[l]=c,delete a._keys,!0}})}function Ps(t,e,n,i){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:MS(t,i),setContext:s=>Ps(t,s,n,i),override:s=>Ps(t.override(s),e,n,i)};return new Proxy(r,{deleteProperty(s,o){return delete s[o],delete t[o],!0},get(s,o,a){return DS(s,o,()=>zL(s,o,a))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(s,o,a){return t[o]=a,delete s[o],!0}})}function MS(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:$i(n)?n:()=>n,isIndexable:$i(i)?i:()=>i}}const VL=(t,e)=>t?t+qp(e):e,um=(t,e)=>ce(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function DS(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const i=n();return t[e]=i,i}function zL(t,e,n){const{_proxy:i,_context:r,_subProxy:s,_descriptors:o}=t;let a=i[e];return $i(a)&&o.isScriptable(e)&&(a=BL(e,a,t,n)),Fe(a)&&a.length&&(a=KL(e,a,t,o.isIndexable)),um(e,a)&&(a=Ps(a,r,s&&s[e],o)),a}function BL(t,e,n,i){const{_proxy:r,_context:s,_subProxy:o,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(s,o||i);return a.delete(t),um(t,l)&&(l=dm(r._scopes,r,t,l)),l}function KL(t,e,n,i){const{_proxy:r,_context:s,_subProxy:o,_descriptors:a}=n;if(typeof s.index!="undefined"&&i(t))return e[s.index%e.length];if(ce(e[0])){const l=e,c=r._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=dm(c,r,t,u);e.push(Ps(d,s,o&&o[t],a))}}return e}function AS(t,e,n){return $i(t)?t(e,n):t}const HL=(t,e)=>t===!0?e:typeof t=="string"?_s(e,t):void 0;function WL(t,e,n,i,r){for(const s of e){const o=HL(n,s);if(o){t.add(o);const a=AS(o._fallback,n,r);if(typeof a!="undefined"&&a!==n&&a!==i)return a}else if(o===!1&&typeof i!="undefined"&&n!==i)return null}return!1}function dm(t,e,n,i){const r=e._rootScopes,s=AS(e._fallback,n,i),o=[...t,...r],a=new Set;a.add(i);let l=LS(a,o,n,s||n,i);return l===null||typeof s!="undefined"&&s!==n&&(l=LS(a,o,s,l,i),l===null)?!1:cm(Array.from(a),[""],r,s,()=>UL(e,n,i))}function LS(t,e,n,i,r){for(;n;)n=WL(t,e,n,i,r);return n}function UL(t,e,n){const i=t._getTarget();e in i||(i[e]={});const r=i[e];return Fe(r)&&ce(n)?n:r||{}}function YL(t,e,n,i){let r;for(const s of e)if(r=jS(VL(s,t),n),typeof r!="undefined")return um(t,r)?dm(n,i,t,r):r}function jS(t,e){for(const n of e){if(!n)continue;const i=n[t];if(typeof i!="undefined")return i}}function FS(t){let e=t._keys;return e||(e=t._keys=GL(t._scopes)),e}function GL(t){const e=new Set;for(const n of t)for(const i of Object.keys(n).filter(r=>!r.startsWith("_")))e.add(i);return Array.from(e)}function fm(){return typeof window!="undefined"&&typeof document!="undefined"}function hm(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Wc(t,e,n){let i;return typeof t=="string"?(i=parseInt(t,10),t.indexOf("%")!==-1&&(i=i/100*e.parentNode[n])):i=t,i}const Uc=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function XL(t,e){return Uc(t).getPropertyValue(e)}const qL=["top","right","bottom","left"];function br(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const s=qL[r];i[s]=parseFloat(t[e+"-"+s+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const QL=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function ZL(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:s}=i;let o=!1,a,l;if(QL(r,s,t.target))a=r,l=s;else{const c=e.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,o=!0}return{x:a,y:l,box:o}}function xr(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=Uc(n),s=r.boxSizing==="border-box",o=br(r,"padding"),a=br(r,"border","width"),{x:l,y:c,box:u}=ZL(t,n),d=o.left+(u&&a.left),f=o.top+(u&&a.top);let{width:h,height:v}=e;return s&&(h-=o.width+a.width,v-=o.height+a.height),{x:Math.round((l-d)/h*n.width/i),y:Math.round((c-f)/v*n.height/i)}}function JL(t,e,n){let i,r;if(e===void 0||n===void 0){const s=t&&hm(t);if(!s)e=t.clientWidth,n=t.clientHeight;else{const o=s.getBoundingClientRect(),a=Uc(s),l=br(a,"border","width"),c=br(a,"padding");e=o.width-c.width-l.width,n=o.height-c.height-l.height,i=Wc(a.maxWidth,s,"clientWidth"),r=Wc(a.maxHeight,s,"clientHeight")}}return{width:e,height:n,maxWidth:i||Vc,maxHeight:r||Vc}}const Yc=t=>Math.round(t*10)/10;function ej(t,e,n,i){const r=Uc(t),s=br(r,"margin"),o=Wc(r.maxWidth,t,"clientWidth")||Vc,a=Wc(r.maxHeight,t,"clientHeight")||Vc,l=JL(t,e,n);let{width:c,height:u}=l;if(r.boxSizing==="content-box"){const f=br(r,"border","width"),h=br(r,"padding");c-=h.width+f.width,u-=h.height+f.height}return c=Math.max(0,c-s.width),u=Math.max(0,i?c/i:u-s.height),c=Yc(Math.min(c,o,l.maxWidth)),u=Yc(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Yc(c/2)),(e!==void 0||n!==void 0)&&i&&l.height&&u>l.height&&(u=l.height,c=Yc(Math.floor(u*i))),{width:c,height:u}}function RS(t,e,n){const i=e||1,r=Math.floor(t.height*i),s=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||o.height!==r||o.width!==s?(t.currentDevicePixelRatio=i,o.height=r,o.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}const tj=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};fm()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(e){}return t}();function NS(t,e){const n=XL(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}const nj=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},ij=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Cs(t,e,n){return t?nj(e,n):ij()}function IS(t,e){let n,i;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function OS(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}/*! * Chart.js v4.4.6 * https://www.chartjs.org * (c) 2024 Chart.js Contributors * Released under the MIT License */class rj{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,i,r){const s=n.listeners[r],o=n.duration;s.forEach(a=>a({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(i-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=gS.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;const s=i.items;let o=s.length-1,a=!1,l;for(;o>=0;--o)l=s[o],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(e),a=!0):(s[o]=s[s.length-1],s.pop());a&&(r.draw(),this._notify(r,i,e,"progress")),s.length||(i.running=!1,this._notify(r,i,e,"complete"),i.initial=!1),n+=s.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let i=n.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,i)),i}listen(e,n,i){this._getAnims(e).listeners[n].push(i)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const i=n.items;let r=i.length-1;for(;r>=0;--r)i[r].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Hn=new rj;const VS="transparent",sj={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=_S(t||VS),r=i.valid&&_S(e||VS);return r&&r.valid?r.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class oj{constructor(e,n,i,r){const s=n[i];r=Pe([e.to,r,s,e.from]);const o=Pe([e.from,s,r]);this._active=!0,this._fn=e.fn||sj[e.type||typeof o],this._easing=Zo[e.easing]||Zo.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=i,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(e,n,i){if(this._active){this._notify(!1);const r=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=Pe([e.to,n,r,e.from]),this._from=Pe([e.from,r,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,i=this._duration,r=this._prop,s=this._from,o=this._loop,a=this._to;let l;if(this._active=s!==a&&(o||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(s,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,i)=>{e.push({res:n,rej:i})})}_notify(e){const n=e?"res":"rej",i=this._promises||[];for(let r=0;r{const s=e[r];if(!ce(s))return;const o={};for(const a of n)o[a]=s[a];(Fe(s.properties)&&s.properties||[r]).forEach(a=>{(a===r||!i.has(a))&&i.set(a,o)})})}_animateOptions(e,n){const i=n.options,r=lj(e,i);if(!r)return[];const s=this._createAnimations(r,i);return i.$shared&&aj(e.options.$animations,i).then(()=>{e.options=i},()=>{}),s}_createAnimations(e,n){const i=this._properties,r=[],s=e.$animations||(e.$animations={}),o=Object.keys(n),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){r.push(...this._animateOptions(e,n));continue}const u=n[c];let d=s[c];const f=i.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){e[c]=u;continue}s[c]=d=new oj(f,e,c,u),r.push(d)}return r}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const i=this._createAnimations(e,n);if(i.length)return Hn.add(this._chart,i),!0}}function aj(t,e){const n=[],i=Object.keys(e);for(let r=0;r0||!n&&s<0)return r.index}return null}function US(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:a}=i,l=s.axis,c=o.axis,u=fj(s,o,i),d=e.length;let f;for(let h=0;hn[i].axis===e).shift()}function mj(t,e){return Ss(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function gj(t,e,n){return Ss(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function ta(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const r of e){const s=r._stacks;if(!s||s[i]===void 0||s[i][n]===void 0)return;delete s[i][n],s[i]._visualValues!==void 0&&s[i]._visualValues[n]!==void 0&&delete s[i]._visualValues[n]}}}const gm=t=>t==="reset"||t==="none",YS=(t,e)=>e?t:Object.assign({},t),vj=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:KS(n,!0),values:null};class na{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=pm(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&ta(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,i=this.getDataset(),r=(d,f,h,v)=>d==="x"?f:d==="r"?v:h,s=n.xAxisID=fe(i.xAxisID,mm(e,"x")),o=n.yAxisID=fe(i.yAxisID,mm(e,"y")),a=n.rAxisID=fe(i.rAxisID,mm(e,"r")),l=n.indexAxis,c=n.iAxisID=r(l,s,o,a),u=n.vAxisID=r(l,o,s,a);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&pS(this._data,this),e._stacked&&ta(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),i=this._data;if(ce(n)){const r=this._cachedMeta;this._data=dj(n,r)}else if(i!==n){if(i){pS(i,this);const r=this._cachedMeta;ta(r),r._parsed=[]}n&&Object.isExtensible(n)&&xL(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,i=this.getDataset();let r=!1;this._dataCheck();const s=n._stacked;n._stacked=pm(n.vScale,n),n.stack!==i.stack&&(r=!0,ta(n),n.stack=i.stack),this._resyncElements(e),(r||s!==n._stacked)&&(US(this,n._parsed),n._stacked=pm(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:i,_data:r}=this,{iScale:s,_stacked:o}=i,a=s.axis;let l=e===0&&n===r.length?!0:i._sorted,c=e>0&&i._parsed[e-1],u,d,f;if(this._parsing===!1)i._parsed=r,i._sorted=!0,f=r;else{Fe(r[e])?f=this.parseArrayData(i,r,e,n):ce(r[e])?f=this.parseObjectData(i,r,e,n):f=this.parsePrimitiveData(i,r,e,n);const h=()=>d[a]===null||c&&d[a]y||d=0;--f)if(!v()){this.updateRangeFromParsed(c,e,h,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,i=[];let r,s,o;for(r=0,s=n.length;r=0&&ethis.getContext(i,r,n),y=c.resolveNamedOptions(f,h,v,d);return y.$shared&&(y.$shared=l,s[o]=Object.freeze(YS(y,l))),y}_resolveAnimations(e,n,i){const r=this.chart,s=this._cachedDataOpts,o=`animation-${n}`,a=s[o];if(a)return a;let l;if(r.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(e,i,n))}const c=new zS(r,l&&l.animations);return l&&l._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||gm(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const i=this.resolveDataElementOptions(e,n),r=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(n,s)||s!==r;return this.updateSharedOptions(s,n,i),{sharedOptions:s,includeOptions:o}}updateElement(e,n,i,r){gm(r)?Object.assign(e,i):this._resolveAnimations(n,r).update(e,i)}updateSharedOptions(e,n,i){e&&!gm(n)&&this._resolveAnimations(void 0,n).update(e,i)}_setStyle(e,n,i,r){e.active=r;const s=this.getStyle(n,r);this._resolveAnimations(n,i,r).update(e,{options:!r&&this.getSharedOptions(s)||s})}removeHoverStyle(e,n,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,n,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const r=i.length,s=n.length,o=Math.min(s,r);o&&this.parse(0,o),s>r?this._insertElements(r,s-r,e):s{for(c.length+=n,a=c.length-1;a>=o;a--)c[a]=c[a-n]};for(l(s),a=e;ar-s))}return t._cache.$bar}function bj(t){const e=t.iScale,n=yj(e,t.type);let i=e._length,r,s,o,a;const l=()=>{o===32767||o===-32768||(Qo(a)&&(i=Math.min(i,Math.abs(o-a)||i)),a=o)};for(r=0,s=n.length;r0?r[t-1]:null,a=tMath.abs(a)&&(l=a,c=o),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:r,end:s,min:o,max:a}}function GS(t,e,n,i){return Fe(t)?wj(t,e,n,i):e[n.axis]=n.parse(t,i),e}function XS(t,e,n,i){const r=t.iScale,s=t.vScale,o=r.getLabels(),a=r===s,l=[];let c,u,d,f;for(c=n,u=n+i;c=n?1:-1)}function Pj(t){let e,n,i,r,s;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.baseu.controller.options.grouped),s=i.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[i.axis],c=u=>{const d=u._parsed.find(h=>h[i.axis]===l),f=d&&d[u.vScale.axis];if(he(f)||isNaN(f))return!0};for(const u of r)if(!(n!==void 0&&c(u))&&((s===!1||o.indexOf(u.stack)===-1||s===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===e))break;return o.length||o.push(void 0),o}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,n,i){const r=this._getStacks(e,i),s=n!==void 0?r.indexOf(n):-1;return s===-1?r.length-1:s}_getRuler(){const e=this.options,n=this._cachedMeta,i=n.iScale,r=[];let s,o;for(s=0,o=n.data.length;s{l[o]&&l[o](e[n],r)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,r))}),i&&!a?[]:s}var Lj={evaluateInteractionItems:ia,modes:{index(t,e,n,i){const r=xr(e,t),s=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?bm(t,r,s,i,o):xm(t,r,s,!1,i,o),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,n,i){const r=xr(e,t),s=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?bm(t,r,s,i,o):xm(t,r,s,!1,i,o);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;un.pos===e)}function eP(t,e){return t.filter(n=>JS.indexOf(n.pos)===-1&&n.box.axis===e)}function sa(t,e){return t.sort((n,i)=>{const r=e?i:n,s=e?n:i;return r.weight===s.weight?r.index-s.index:r.weight-s.weight})}function jj(t){const e=[];let n,i,r,s,o,a;for(n=0,i=(t||[]).length;nc.box.fullSize),!0),i=sa(ra(e,"left"),!0),r=sa(ra(e,"right")),s=sa(ra(e,"top"),!0),o=sa(ra(e,"bottom")),a=eP(e,"x"),l=eP(e,"y");return{fullSize:n,leftAndTop:i.concat(s),rightAndBottom:r.concat(l).concat(o).concat(a),chartArea:ra(e,"chartArea"),vertical:i.concat(r).concat(l),horizontal:s.concat(o).concat(a)}}function tP(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function nP(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Ij(t,e,n,i){const{pos:r,box:s}=n,o=t.maxPadding;if(!ce(r)){n.size&&(t[r]-=n.size);const d=i[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?s.height:s.width),n.size=d.size/d.count,t[r]+=n.size}s.getPadding&&nP(o,s.getPadding());const a=Math.max(0,e.outerWidth-tP(o,t,"left","right")),l=Math.max(0,e.outerHeight-tP(o,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Oj(t){const e=t.maxPadding;function n(i){const r=Math.max(e[i]-t[i],0);return t[i]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function Vj(t,e){const n=e.maxPadding;function i(r){const s={left:0,top:0,right:0,bottom:0};return r.forEach(o=>{s[o]=Math.max(e[o],n[o])}),s}return i(t?["left","right"]:["top","bottom"])}function oa(t,e,n,i){const r=[];let s,o,a,l,c,u;for(s=0,o=t.length,c=0;s{typeof y.beforeLayout=="function"&&y.beforeLayout()});const u=l.reduce((y,x)=>x.box.options&&x.box.options.display===!1?y:y+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},r);nP(f,jt(i));const h=Object.assign({maxPadding:f,w:s,h:o,x:r.left,y:r.top},r),v=Rj(l.concat(c),d);oa(a.fullSize,h,d,v),oa(l,h,d,v),oa(c,h,d,v)&&oa(l,h,d,v),Oj(h),iP(a.leftAndTop,h,d,v),h.x+=h.w,h.y+=h.h,iP(a.rightAndBottom,h,d,v),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},pe(a.chartArea,y=>{const x=y.box;Object.assign(x,t.chartArea),x.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class rP{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,i){}removeEventListener(e,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,i,r){return n=Math.max(0,n||e.width),i=i||e.height,{width:n,height:Math.max(0,r?Math.floor(n/r):i)}}isAttached(e){return!0}updateConfig(e){}}class zj extends rP{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const qc="$chartjs",Bj={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},sP=t=>t===null||t==="";function Kj(t,e){const n=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[qc]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",sP(r)){const s=NS(t,"width");s!==void 0&&(t.width=s)}if(sP(i))if(t.style.height==="")t.height=t.width/(e||2);else{const s=NS(t,"height");s!==void 0&&(t.height=s)}return t}const oP=tj?{passive:!0}:!1;function Hj(t,e,n){t&&t.addEventListener(e,n,oP)}function Wj(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,oP)}function Uj(t,e){const n=Bj[t.type]||t.type,{x:i,y:r}=xr(t,e);return{type:n,chart:e,native:t,x:i!==void 0?i:null,y:r!==void 0?r:null}}function Qc(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Yj(t,e,n){const i=t.canvas,r=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||Qc(a.addedNodes,i),o=o&&!Qc(a.removedNodes,i);o&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}function Gj(t,e,n){const i=t.canvas,r=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||Qc(a.removedNodes,i),o=o&&!Qc(a.addedNodes,i);o&&n()});return r.observe(document,{childList:!0,subtree:!0}),r}const aa=new Map;let aP=0;function lP(){const t=window.devicePixelRatio;t!==aP&&(aP=t,aa.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function Xj(t,e){aa.size||window.addEventListener("resize",lP),aa.set(t,e)}function qj(t){aa.delete(t),aa.size||window.removeEventListener("resize",lP)}function Qj(t,e,n){const i=t.canvas,r=i&&hm(i);if(!r)return;const s=vS((a,l)=>{const c=r.clientWidth;n(a,l),c{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||s(c,u)});return o.observe(r),Xj(t,s),o}function _m(t,e,n){n&&n.disconnect(),e==="resize"&&qj(t)}function Zj(t,e,n){const i=t.canvas,r=vS(s=>{t.ctx!==null&&n(Uj(s,t))},t);return Hj(i,e,r),r}class Jj extends rP{acquireContext(e,n){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(Kj(e,n),i):null}releaseContext(e){const n=e.canvas;if(!n[qc])return!1;const i=n[qc].initial;["height","width"].forEach(s=>{const o=i[s];he(o)?n.removeAttribute(s):n.setAttribute(s,o)});const r=i.style||{};return Object.keys(r).forEach(s=>{n.style[s]=r[s]}),n.width=n.width,delete n[qc],!0}addEventListener(e,n,i){this.removeEventListener(e,n);const r=e.$proxies||(e.$proxies={}),o={attach:Yj,detach:Gj,resize:Qj}[n]||Zj;r[n]=o(e,n,i)}removeEventListener(e,n){const i=e.$proxies||(e.$proxies={}),r=i[n];if(!r)return;({attach:_m,detach:_m,resize:_m}[n]||Wj)(e,n,r),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,i,r){return ej(e,n,i,r)}isAttached(e){const n=e&&hm(e);return!!(n&&n.isConnected)}}function eF(t){return!fm()||typeof OffscreenCanvas!="undefined"&&t instanceof OffscreenCanvas?zj:Jj}let Mi=(pu=class{constructor(){Z(this,"x");Z(this,"y");Z(this,"active",!1);Z(this,"options");Z(this,"$animations")}tooltipPosition(e){const{x:n,y:i}=this.getProps(["x","y"],e);return{x:n,y:i}}hasValue(){return Bc(this.x)&&Bc(this.y)}getProps(e,n){const i=this.$animations;if(!n||!i)return this;const r={};return e.forEach(s=>{r[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),r}},Z(pu,"defaults",{}),Z(pu,"defaultRoutes"),pu);function tF(t,e){const n=t.options.ticks,i=nF(t),r=Math.min(n.maxTicksLimit||i,i),s=n.major.enabled?rF(e):[],o=s.length,a=s[0],l=s[o-1],c=[];if(o>r)return sF(e,c,s,o/r),c;const u=iF(s,e,r);if(o>0){let d,f;const h=o>1?Math.round((l-a)/(o-1)):null;for(Zc(e,c,u,he(h)?0:a-h,a),d=0,f=o-1;dr)return l}return Math.max(r,1)}function rF(t){const e=[];let n,i;for(n=0,i=t.length;nt==="left"?"right":t==="right"?"left":t,cP=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,uP=(t,e)=>Math.min(e||t,t);function dP(t,e){const n=[],i=t.length/e,r=t.length;let s=0;for(;so+a)))return l}function cF(t,e){pe(t,n=>{const i=n.gc,r=i.length/2;let s;if(r>e){for(s=0;si?i:n,i=r&&n>i?n:i,{min:yn(n,yn(i,n)),max:yn(i,yn(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ve(this.options.beforeUpdate,[this])}update(e,n,i){const{beginAtZero:r,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=OL(this,s,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a=s||i<=1||!this.isHorizontal()){this.labelRotation=r;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,h=_t(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/i:h/(i-1),d+6>a&&(a=h/(i-(e.offset?.5:1)),l=this.maxHeight-la(e.grid)-n.padding-fP(e.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),o=mL(Math.min(Math.asin(_t((u.highest.height+6)/a,-1,1)),Math.asin(_t(l/c,-1,1))-Math.asin(_t(f/c,-1,1)))),o=Math.max(r,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){ve(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ve(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:i,title:r,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=fP(r,n.options.font);if(a?(e.width=this.maxWidth,e.height=la(s)+l):(e.height=this.maxHeight,e.width=la(s)+l),i.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),h=i.padding*2,v=pr(this.labelRotation),y=Math.cos(v),x=Math.sin(v);if(a){const m=i.mirror?0:x*d.width+y*f.height;e.height=Math.min(this.maxHeight,e.height+m+h)}else{const m=i.mirror?0:y*d.width+x*f.height;e.width=Math.min(this.maxWidth,e.width+m+h)}this._calculatePadding(c,u,x,y)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,i,r){const{ticks:{align:s,padding:o},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?c?(f=r*e.width,h=i*n.height):(f=i*e.height,h=r*n.width):s==="start"?h=n.width:s==="end"?f=e.width:s!=="inner"&&(f=e.width/2,h=n.width/2),this.paddingLeft=Math.max((f-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-d+o)*this.width/(this.width-d),0)}else{let u=n.height/2,d=e.height/2;s==="start"?(u=0,d=e.height):s==="end"&&(u=n.height,d=0),this.paddingTop=u+o,this.paddingBottom=d+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ve(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,i;for(n=0,i=e.length;n({width:o[S]||0,height:a[S]||0});return{first:M(0),last:M(n-1),widest:M(E),highest:M(A),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return vL(this._alignToPixels?yr(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&ea*r?a/i:l/r:l*r0}_computeGridLineItems(e){const n=this.axis,i=this.chart,r=this.options,{grid:s,position:o,border:a}=r,l=s.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=la(s),h=[],v=a.setContext(this.getContext()),y=v.display?v.width:0,x=y/2,m=function(L){return yr(i,L,y)};let g,b,w,P,E,A,M,S,C,R,$,I;if(o==="top")g=m(this.bottom),A=this.bottom-f,S=g-x,R=m(e.top)+x,I=e.bottom;else if(o==="bottom")g=m(this.top),R=e.top,I=m(e.bottom)-x,A=g+x,S=this.top+f;else if(o==="left")g=m(this.right),E=this.right-f,M=g-x,C=m(e.left)+x,$=e.right;else if(o==="right")g=m(this.left),C=e.left,$=m(e.right)-x,E=g+x,M=this.left+f;else if(n==="x"){if(o==="center")g=m((e.top+e.bottom)/2+.5);else if(ce(o)){const L=Object.keys(o)[0],F=o[L];g=m(this.chart.scales[L].getPixelForValue(F))}R=e.top,I=e.bottom,A=g+x,S=A+f}else if(n==="y"){if(o==="center")g=m((e.left+e.right)/2);else if(ce(o)){const L=Object.keys(o)[0],F=o[L];g=m(this.chart.scales[L].getPixelForValue(F))}E=g-x,M=E-f,C=e.left,$=e.right}const j=fe(r.ticks.maxTicksLimit,d),z=Math.max(1,Math.ceil(d/j));for(b=0;b0&&(oe-=Y/2);break}V={left:oe,top:ne,width:Y+H.width,height:J+H.height,color:z.backdropColor}}x.push({label:w,font:S,textOffset:$,options:{rotation:y,color:F,strokeColor:N,strokeWidth:K,textAlign:U,textBaseline:I,translation:[P,E],backdrop:V}})}return x}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-pr(this.labelRotation))return e==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:i,mirror:r,padding:s}}=this.options,o=this._getLabelSizes(),a=e+s,l=o.widest.width;let c,u;return n==="left"?r?(u=this.right+s,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?r?(u=this.left+s,i==="near"?c="right":i==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,i==="near"?c="left":i==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:i,top:r,width:s,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(i,r,s,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(s=>s.value===e);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(e){const n=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let s,o;const a=(l,c,u)=>{!u.width||!u.color||(i.save(),i.lineWidth=u.width,i.strokeStyle=u.color,i.setLineDash(u.borderDash||[]),i.lineDashOffset=u.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(n.display)for(s=0,o=r.length;s{this.draw(s)}}]:[{z:i,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let s,o;for(s=0,o=n.length;s{const i=n.split("."),r=i.pop(),s=[t].concat(i).join("."),o=e[n].split("."),a=o.pop(),l=o.join(".");De.route(s,r,l,a)})}function gF(t){return"id"in t&&"defaults"in t}class vF{constructor(){this.controllers=new Jc(na,"datasets",!0),this.elements=new Jc(Mi,"elements"),this.plugins=new Jc(Object,"plugins"),this.scales=new Jc(ks,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,i){[...n].forEach(r=>{const s=i||this._getRegistryForType(r);i||s.isForType(r)||s===this.plugins&&r.id?this._exec(e,s,r):pe(r,o=>{const a=i||this._getRegistryForType(o);this._exec(e,a,o)})})}_exec(e,n,i){const r=qp(e);ve(i["before"+r],[],i),n[e](i),ve(i["after"+r],[],i)}_getRegistryForType(e){for(let n=0;ns.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(r(n,i),e,"stop"),this._notify(r(i,n),e,"start")}}function bF(t){const e={},n=[],i=Object.keys(xn.plugins.items);for(let s=0;s1&&hP(t[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function pP(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function kF(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(i=>i.xAxisID===t||i.yAxisID===t);if(n.length)return pP(t,"x",n[0])||pP(t,"y",n[0])}return{}}function TF(t,e){const n=vr[t.type]||{scales:{}},i=e.scales||{},r=wm(t.type,e),s=Object.create(null);return Object.keys(i).forEach(o=>{const a=i[o];if(!ce(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=Sm(o,a,kF(o,t),De.scales[a.type]),c=PF(l,r),u=n.scales||{};s[o]=qo(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(o=>{const a=o.type||t.type,l=o.indexAxis||wm(a,e),u=(vr[a]||{}).scales||{};Object.keys(u).forEach(d=>{const f=SF(d,l),h=o[f+"AxisID"]||f;s[h]=s[h]||Object.create(null),qo(s[h],[{axis:f},i[h],u[d]])})}),Object.keys(s).forEach(o=>{const a=s[o];qo(a,[De.scales[a.type],De.scale])}),s}function mP(t){const e=t.options||(t.options={});e.plugins=fe(e.plugins,{}),e.scales=TF(t,e)}function gP(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function $F(t){return t=t||{},t.data=gP(t.data),mP(t),t}const vP=new Map,yP=new Set;function eu(t,e){let n=vP.get(t);return n||(n=e(),vP.set(t,n),yP.add(n)),n}const ca=(t,e,n)=>{const i=_s(e,n);i!==void 0&&t.add(i)};class EF{constructor(e){this._config=$F(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=gP(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),mP(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return eu(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return eu(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return eu(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,i=this.type;return eu(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const i=this._scopeCache;let r=i.get(e);return(!r||n)&&(r=new Map,i.set(e,r)),r}getOptionScopes(e,n,i){const{options:r,type:s}=this,o=this._cachedScopes(e,i),a=o.get(n);if(a)return a;const l=new Set;n.forEach(u=>{e&&(l.add(e),u.forEach(d=>ca(l,e,d))),u.forEach(d=>ca(l,r,d)),u.forEach(d=>ca(l,vr[s]||{},d)),u.forEach(d=>ca(l,De,d)),u.forEach(d=>ca(l,nm,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),yP.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,vr[n]||{},De.datasets[n]||{},{type:n},De,nm]}resolveNamedOptions(e,n,i,r=[""]){const s={$shared:!0},{resolver:o,subPrefixes:a}=bP(this._resolverCache,e,r);let l=o;if(DF(o,n)){s.$shared=!1,i=$i(i)?i():i;const c=this.createResolver(e,i,a);l=Ps(o,i,c)}for(const c of n)s[c]=l[c];return s}createResolver(e,n,i=[""],r){const{resolver:s}=bP(this._resolverCache,e,i);return ce(n)?Ps(s,n,void 0,r):s}}function bP(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const r=n.join();let s=i.get(r);return s||(s={resolver:cm(e,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},i.set(r,s)),s}const MF=t=>ce(t)&&Object.getOwnPropertyNames(t).some(e=>$i(t[e]));function DF(t,e){const{isScriptable:n,isIndexable:i}=MS(t);for(const r of e){const s=n(r),o=i(r),a=(o||s)&&t[r];if(s&&($i(a)||MF(a))||o&&Fe(a))return!0}return!1}var AF="4.4.6";const LF=["top","bottom","left","right","chartArea"];function xP(t,e){return t==="top"||t==="bottom"||LF.indexOf(t)===-1&&e==="x"}function _P(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function wP(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),ve(n&&n.onComplete,[t],e)}function jF(t){const e=t.chart,n=e.options.animation;ve(n&&n.onProgress,[t],e)}function SP(t){return fm()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const tu={},PP=t=>{const e=SP(t);return Object.values(tu).filter(n=>n.canvas===e).pop()};function FF(t,e,n){const i=Object.keys(t);for(const r of i){const s=+r;if(s>=e){const o=t[r];delete t[r],(n>0||s>e)&&(t[s+n]=o)}}}function RF(t,e,n,i){return!n||t.type==="mouseout"?null:i?e:t}function nu(t,e,n){return t.options.clip?t[n]:e[n]}function NF(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:nu(n,e,"left"),right:nu(n,e,"right"),top:nu(i,e,"top"),bottom:nu(i,e,"bottom")}:e}let iu=(Fi=class{static register(...e){xn.add(...e),CP()}static unregister(...e){xn.remove(...e),CP()}constructor(e,n){const i=this.config=new EF(n),r=SP(e),s=PP(r);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||eF(r)),this.platform.updateConfig(i);const a=this.platform.acquireContext(r,o.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=rL(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new yF,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=_L(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],tu[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Hn.listen(this,"complete",wP),Hn.listen(this,"progress",jF),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:i,height:r,_aspectRatio:s}=this;return he(e)?n&&s?s:r?i/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return xn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():RS(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return TS(this.canvas,this.ctx),this}stop(){return Hn.stop(this),this}resize(e,n){Hn.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const i=this.options,r=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,e,n,s),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,RS(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),ve(i.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};pe(n,(i,r)=>{i.id=r})}buildOrUpdateScales(){const e=this.options,n=e.scales,i=this.scales,r=Object.keys(i).reduce((o,a)=>(o[a]=!1,o),{});let s=[];n&&(s=s.concat(Object.keys(n).map(o=>{const a=n[o],l=Sm(o,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),pe(s,o=>{const a=o.options,l=a.id,c=Sm(l,a),u=fe(a.type,o.dtype);(a.position===void 0||xP(a.position,c)!==xP(o.dposition))&&(a.position=o.dposition),r[l]=!0;let d=null;if(l in i&&i[l].type===u)d=i[l];else{const f=xn.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),i[d.id]=d}d.init(a,e)}),pe(r,(o,a)=>{o||delete i[a]}),pe(i,o=>{qt.configure(this,o,o.options),qt.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,i=e.length;if(e.sort((r,s)=>r.index-s.index),i>n){for(let r=n;rn.length&&delete this._stacks,e.forEach((i,r)=>{n.filter(s=>s===i._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let i,r;for(this._removeUnreferencedMetasets(),i=0,r=n.length;i{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(_P("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){pe(this.scales,e=>{qt.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(e.events);(!aS(n,i)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:r,count:s}of n){const o=i==="_removeElements"?-s:s;FF(e,r,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=s=>new Set(e.filter(o=>o[0]===s).map((o,a)=>a+","+o.splice(1).join(","))),r=i(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;qt.update(this,this.width,this.height,e);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],pe(this.boxes,r=>{i&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,s)=>{r._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,i=e._clip,r=!i.disabled,s=NF(e,this.chartArea),o={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(r&&om(n,{left:i.left===!1?0:s.left-i.left,right:i.right===!1?this.width:s.right+i.right,top:i.top===!1?0:s.top-i.top,bottom:i.bottom===!1?this.height:s.bottom+i.bottom}),e.controller.draw(),r&&am(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(e){return sm(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,i,r){const s=Lj.modes[n];return typeof s=="function"?s(this,e,i,r):[]}getDatasetMeta(e){const n=this.data.datasets[e],i=this._metasets;let r=i.filter(s=>s&&s._dataset===n).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},i.push(r)),r}getContext(){return this.$context||(this.$context=Ss(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const i=this.getDatasetMeta(e);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(e,n){const i=this.getDatasetMeta(e);i.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,i){const r=i?"show":"hide",s=this.getDatasetMeta(e),o=s.controller._resolveAnimations(void 0,r);Qo(n)?(s.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),o.update(s,{visible:i}),this.update(a=>a.datasetIndex===e?r:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),Hn.remove(this),e=0,n=this.data.datasets.length;e{n.addEventListener(this,s,o),e[s]=o},r=(s,o,a)=>{s.offsetX=o,s.offsetY=a,this._eventHandler(s)};pe(this.options.events,s=>i(s,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,i=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},r=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const a=()=>{r("attach",a),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,r("resize",s),this._stop(),this._resize(0,0),i("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){pe(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},pe(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,i){const r=i?"set":"remove";let s,o,a,l;for(n==="dataset"&&(s=this.getDatasetMeta(e[0].datasetIndex),s.controller["_"+r+"DatasetHoverStyle"]()),a=0,l=e.length;a{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[o],index:o}});!Ic(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(e,n,i){return this._plugins.notify(this,e,n,i)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,i){const r=this.options.hover,s=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),o=s(n,e),a=i?e:s(e,n);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(e,n){const i={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},r=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",i,r)===!1)return;const s=this._handleEvent(e,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(s||i.changed)&&this.render(),this}_handleEvent(e,n,i){const{_active:r=[],options:s}=this,o=n,a=this._getActiveElements(e,r,i,o),l=uL(e),c=RF(e,this._lastEvent,i,l);i&&(this._lastEvent=null,ve(s.onHover,[e,a,this],this),l&&ve(s.onClick,[e,a,this],this));const u=!Ic(a,r);return(u||n)&&(this._active=a,this._updateHoverStyles(a,r,n)),this._lastEvent=c,u}_getActiveElements(e,n,i,r){if(e.type==="mouseout")return[];if(!i)return n;const s=this.options.hover;return this.getElementsAtEventForMode(e,s.mode,s,r)}},Z(Fi,"defaults",De),Z(Fi,"instances",tu),Z(Fi,"overrides",vr),Z(Fi,"registry",xn),Z(Fi,"version",AF),Z(Fi,"getChart",PP),Fi);function CP(){return pe(iu.instances,t=>t._plugins.invalidate())}function IF(t,e,n){const{startAngle:i,pixelMargin:r,x:s,y:o,outerRadius:a,innerRadius:l}=e;let c=r/a;t.beginPath(),t.arc(s,o,a,i-c,n+c),l>r?(c=r/l,t.arc(s,o,l,n+c,i-c,!0)):t.arc(s,o,r,n+Xe,i-Xe),t.closePath(),t.clip()}function OF(t){return lm(t,["outerStart","outerEnd","innerStart","innerEnd"])}function VF(t,e,n,i){const r=OF(t.options.borderRadius),s=(n-e)/2,o=Math.min(s,i*e/2),a=l=>{const c=(n-Math.min(s,l))*i/2;return _t(l,0,Math.min(s,c))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:_t(r.innerStart,0,o),innerEnd:_t(r.innerEnd,0,o)}}function Ts(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function ru(t,e,n,i,r,s){const{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+i+n-c,0),f=u>0?u+i+n+c:0;let h=0;const v=r-l;if(i){const z=u>0?u-i:0,L=d>0?d-i:0,F=(z+L)/2,N=F!==0?v*F/(F+i):v;h=(v-N)/2}const y=Math.max(.001,v*d-n/He)/d,x=(v-y)/2,m=l+x+h,g=r-x-h,{outerStart:b,outerEnd:w,innerStart:P,innerEnd:E}=VF(e,f,d,g-m),A=d-b,M=d-w,S=m+b/A,C=g-w/M,R=f+P,$=f+E,I=m+P/R,j=g-E/$;if(t.beginPath(),s){const z=(S+C)/2;if(t.arc(o,a,d,S,z),t.arc(o,a,d,z,C),w>0){const K=Ts(M,C,o,a);t.arc(K.x,K.y,w,C,g+Xe)}const L=Ts($,g,o,a);if(t.lineTo(L.x,L.y),E>0){const K=Ts($,j,o,a);t.arc(K.x,K.y,E,g+Xe,j+Math.PI)}const F=(g-E/f+(m+P/f))/2;if(t.arc(o,a,f,g-E/f,F,!0),t.arc(o,a,f,F,m+P/f,!0),P>0){const K=Ts(R,I,o,a);t.arc(K.x,K.y,P,I+Math.PI,m-Xe)}const N=Ts(A,m,o,a);if(t.lineTo(N.x,N.y),b>0){const K=Ts(A,S,o,a);t.arc(K.x,K.y,b,m-Xe,S)}}else{t.moveTo(o,a);const z=Math.cos(S)*d+o,L=Math.sin(S)*d+a;t.lineTo(z,L);const F=Math.cos(C)*d+o,N=Math.sin(C)*d+a;t.lineTo(F,N)}t.closePath()}function zF(t,e,n,i,r){const{fullCircles:s,startAngle:o,circumference:a}=e;let l=e.endAngle;if(s){ru(t,e,n,i,l,r);for(let c=0;c=dt||y,m=gr(a,u+h,d+h);return x&&m}getCenterPoint(n){const{x:i,y:r,startAngle:s,endAngle:o,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:u}=this.options,d=(s+o)/2,f=(a+l+u+c)/2;return{x:i+Math.cos(d)*f,y:r+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:r}=this,s=(i.offset||0)/4,o=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=r>dt?Math.floor(r/dt):0,r===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*s,Math.sin(l)*s);const c=1-Math.sin(Math.min(He,r||0)),u=s*c;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,zF(n,this,u,o,a),BF(n,this,u,o,a),n.restore()}}Z(ua,"id","arc"),Z(ua,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Z(ua,"defaultRoutes",{backgroundColor:"backgroundColor"}),Z(ua,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function kP(t,e,n,i){const r=t.options,{[n]:s}=t.getProps([n],i);return Math.abs(e-s){let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}},GF=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class EP extends Mi{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,i){this.maxWidth=e,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=ve(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(i=>e.filter(i,this.chart.data))),e.sort&&(n=n.sort((i,r)=>e.sort(i,r,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const i=e.labels,r=qe(i.font),s=r.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=$P(i,s);let c,u;n.font=r.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,s,a,l)+10):(u=this.maxHeight,c=this._fitCols(o,r,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,i,r){const{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=r+a;let d=e;s.textAlign="left",s.textBaseline="middle";let f=-1,h=-u;return this.legendItems.forEach((v,y)=>{const x=i+n/2+s.measureText(v.text).width;(y===0||c[c.length-1]+x+2*a>o)&&(d+=u,c[c.length-(y>0?0:1)]=0,h+=u,f++),l[y]={left:0,top:h,row:f,width:x,height:r},c[c.length-1]+=x+a}),d}_fitCols(e,n,i,r){const{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-e;let d=a,f=0,h=0,v=0,y=0;return this.legendItems.forEach((x,m)=>{const{itemWidth:g,itemHeight:b}=XF(i,n,s,x,r);m>0&&h+b+2*a>u&&(d+=f+a,c.push({width:f,height:h}),v+=f+a,y++,f=h=0),l[m]={left:v,top:h,col:y,width:g,height:b},f=Math.max(f,g),h+=b+a}),d+=f,c.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:r},rtl:s}}=this,o=Cs(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=rt(i,this.left+r,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=rt(i,this.left+r,this.right-this.lineWidths[a])),c.top+=this.top+e+r,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+r}else{let a=0,l=rt(i,this.top+e+r,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=rt(i,this.top+e+r,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+r,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;om(e,this),this._draw(),am(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:i,ctx:r}=this,{align:s,labels:o}=e,a=De.color,l=Cs(e.rtl,this.left,this.width),c=qe(o.font),{padding:u}=o,d=c.size,f=d/2;let h;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;const{boxWidth:v,boxHeight:y,itemHeight:x}=$P(o,d),m=function(E,A,M){if(isNaN(v)||v<=0||isNaN(y)||y<0)return;r.save();const S=fe(M.lineWidth,1);if(r.fillStyle=fe(M.fillStyle,a),r.lineCap=fe(M.lineCap,"butt"),r.lineDashOffset=fe(M.lineDashOffset,0),r.lineJoin=fe(M.lineJoin,"miter"),r.lineWidth=S,r.strokeStyle=fe(M.strokeStyle,a),r.setLineDash(fe(M.lineDash,[])),o.usePointStyle){const C={radius:y*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:S},R=l.xPlus(E,v/2),$=A+f;$S(r,C,R,$,o.pointStyleWidth&&v)}else{const C=A+Math.max((d-y)/2,0),R=l.leftForLtr(E,v),$=ws(M.borderRadius);r.beginPath(),Object.values($).some(I=>I!==0)?Hc(r,{x:R,y:C,w:v,h:y,radius:$}):r.rect(R,C,v,y),r.fill(),S!==0&&r.stroke()}r.restore()},g=function(E,A,M){ea(r,M.text,E,A+x/2,c,{strikethrough:M.hidden,textAlign:l.textAlign(M.textAlign)})},b=this.isHorizontal(),w=this._computeTitleHeight();b?h={x:rt(s,this.left+u,this.right-i[0]),y:this.top+u+w,line:0}:h={x:this.left+u,y:rt(s,this.top+w+u,this.bottom-n[0].height),line:0},IS(this.ctx,e.textDirection);const P=x+u;this.legendItems.forEach((E,A)=>{r.strokeStyle=E.fontColor,r.fillStyle=E.fontColor;const M=r.measureText(E.text).width,S=l.textAlign(E.textAlign||(E.textAlign=o.textAlign)),C=v+f+M;let R=h.x,$=h.y;l.setWidth(this.width),b?A>0&&R+C+u>this.right&&($=h.y+=P,h.line++,R=h.x=rt(s,this.left+u,this.right-i[h.line])):A>0&&$+P>this.bottom&&(R=h.x=R+n[h.line].width+u,h.line++,$=h.y=rt(s,this.top+w+u,this.bottom-n[h.line].height));const I=l.x(R);if(m(I,$,E),R=wL(S,R+v+f,b?R+C:this.right,e.rtl),g(l.x(R),$,E),b)h.x+=C+u;else if(typeof E.text!="string"){const j=c.lineHeight;h.y+=MP(E,j)+u}else h.y+=P}),OS(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,i=qe(n.font),r=jt(n.padding);if(!n.display)return;const s=Cs(e.rtl,this.left,this.width),o=this.ctx,a=n.position,l=i.size/2,c=r.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=rt(e.align,d,this.right-f);else{const v=this.columnSizes.reduce((y,x)=>Math.max(y,x.height),0);u=c+rt(e.align,this.top,this.bottom-v-e.labels.padding-this._computeTitleHeight())}const h=rt(a,d,d+f);o.textAlign=s.textAlign(em(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=i.string,ea(o,n.text,h,u,i)}_computeTitleHeight(){const e=this.options.title,n=qe(e.font),i=jt(e.padding);return e.display?n.lineHeight+i.height:0}_getLegendItemAt(e,n){let i,r,s;if(gr(e,this.left,this.right)&&gr(n,this.top,this.bottom)){for(s=this.legendHitBoxes,i=0;is.length>o.length?s:o)),e+n.size/2+i.measureText(r).width}function QF(t,e,n){let i=t;return typeof e.text!="string"&&(i=MP(e,n)),i}function MP(t,e){const n=t.text?t.text.length:0;return e*n}function ZF(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var JF={id:"legend",_element:EP,start(t,e,n){const i=t.legend=new EP({ctx:t.ctx,options:n,chart:t});qt.configure(t,i,n),qt.addBox(t,i)},stop(t){qt.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;qt.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),e.hidden=!0):(r.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:r,color:s,useBorderRadius:o,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=jt(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class DP extends Mi{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const r=Fe(i.text)?i.text.length:1;this._padding=jt(i.padding);const s=r*qe(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:i,bottom:r,right:s,options:o}=this,a=o.align;let l=0,c,u,d;return this.isHorizontal()?(u=rt(a,i,s),d=n+e,c=s-i):(o.position==="left"?(u=i+e,d=rt(a,r,n),l=He*-.5):(u=s-e,d=rt(a,n,r),l=He*.5),c=r-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const i=qe(n.font),s=i.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(s);ea(e,n.text,0,0,i,{color:n.color,maxWidth:l,rotation:c,textAlign:em(n.align),textBaseline:"middle",translation:[o,a]})}}function eR(t,e){const n=new DP({ctx:t.ctx,options:e,chart:t});qt.configure(t,n,e),qt.addBox(t,n),t.titleBlock=n}var tR={id:"title",_element:DP,start(t,e,n){eR(t,n)},stop(t){const e=t.titleBlock;qt.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;qt.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const fa={average(t){if(!t.length)return!1;let e,n,i=new Set,r=0,s=0;for(e=0,n=t.length;ea+l)/i.size,y:r/s}},nearest(t,e){if(!t.length)return!1;let n=e.x,i=e.y,r=Number.POSITIVE_INFINITY,s,o,a;for(s=0,o=t.length;s-1?t.split(` `):t}function nR(t,e){const{element:n,datasetIndex:i,index:r}=e,s=t.getDatasetMeta(i).controller,{label:o,value:a}=s.getLabelAndValue(r);return{chart:t,label:o,parsed:s.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:a,dataset:s.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function AP(t,e){const n=t.chart.ctx,{body:i,footer:r,title:s}=t,{boxWidth:o,boxHeight:a}=e,l=qe(e.bodyFont),c=qe(e.titleFont),u=qe(e.footerFont),d=s.length,f=r.length,h=i.length,v=jt(e.padding);let y=v.height,x=0,m=i.reduce((w,P)=>w+P.before.length+P.lines.length+P.after.length,0);if(m+=t.beforeBody.length+t.afterBody.length,d&&(y+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),m){const w=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;y+=h*w+(m-h)*l.lineHeight+(m-1)*e.bodySpacing}f&&(y+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let g=0;const b=function(w){x=Math.max(x,n.measureText(w).width+g)};return n.save(),n.font=c.string,pe(t.title,b),n.font=l.string,pe(t.beforeBody.concat(t.afterBody),b),g=e.displayColors?o+2+e.boxPadding:0,pe(i,w=>{pe(w.before,b),pe(w.lines,b),pe(w.after,b)}),g=0,n.font=u.string,pe(t.footer,b),n.restore(),x+=v.width,{width:x,height:y}}function iR(t,e){const{y:n,height:i}=e;return nt.height-i/2?"bottom":"center"}function rR(t,e,n,i){const{x:r,width:s}=i,o=n.caretSize+n.caretPadding;if(t==="left"&&r+s+o>e.width||t==="right"&&r-s-o<0)return!0}function sR(t,e,n,i){const{x:r,width:s}=n,{width:o,chartArea:{left:a,right:l}}=t;let c="center";return i==="center"?c=r<=(a+l)/2?"left":"right":r<=s/2?c="left":r>=o-s/2&&(c="right"),rR(c,t,e,n)&&(c="center"),c}function LP(t,e,n){const i=n.yAlign||e.yAlign||iR(t,n);return{xAlign:n.xAlign||e.xAlign||sR(t,e,n,i),yAlign:i}}function oR(t,e){let{x:n,width:i}=t;return e==="right"?n-=i:e==="center"&&(n-=i/2),n}function aR(t,e,n){let{y:i,height:r}=t;return e==="top"?i+=n:e==="bottom"?i-=r+n:i-=r/2,i}function jP(t,e,n,i){const{caretSize:r,caretPadding:s,cornerRadius:o}=t,{xAlign:a,yAlign:l}=n,c=r+s,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=ws(o);let v=oR(e,a);const y=aR(e,l,c);return l==="center"?a==="left"?v+=c:a==="right"&&(v-=c):a==="left"?v-=Math.max(u,f)+r:a==="right"&&(v+=Math.max(d,h)+r),{x:_t(v,0,i.width-e.width),y:_t(y,0,i.height-e.height)}}function ou(t,e,n){const i=jt(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-i.right:t.x+i.left}function FP(t){return _n([],Wn(t))}function lR(t,e,n){return Ss(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function RP(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const NP={beforeTitle:Kn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex{const o={before:[],lines:[],after:[]},a=RP(i,s);_n(o.before,Wn(wt(a,"beforeLabel",this,s))),_n(o.lines,wt(a,"label",this,s)),_n(o.after,Wn(wt(a,"afterLabel",this,s))),r.push(o)}),r}getAfterBody(e,n){return FP(wt(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:i}=n,r=wt(i,"beforeFooter",this,e),s=wt(i,"footer",this,e),o=wt(i,"afterFooter",this,e);let a=[];return a=_n(a,Wn(r)),a=_n(a,Wn(s)),a=_n(a,Wn(o)),a}_createItems(e){const n=this._active,i=this.chart.data,r=[],s=[],o=[];let a=[],l,c;for(l=0,c=n.length;le.filter(u,d,f,i))),e.itemSort&&(a=a.sort((u,d)=>e.itemSort(u,d,i))),pe(a,u=>{const d=RP(e.callbacks,u);r.push(wt(d,"labelColor",this,u)),s.push(wt(d,"labelPointStyle",this,u)),o.push(wt(d,"labelTextColor",this,u))}),this.labelColors=r,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=a,a}update(e,n){const i=this.options.setContext(this.getContext()),r=this._active;let s,o=[];if(!r.length)this.opacity!==0&&(s={opacity:0});else{const a=fa[i.position].call(this,r,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const l=this._size=AP(this,i),c=Object.assign({},a,l),u=LP(this.chart,i,c),d=jP(i,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,s={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,i,r){const s=this.getCaretPosition(e,i,r);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(e,n,i){const{xAlign:r,yAlign:s}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=ws(a),{x:f,y:h}=e,{width:v,height:y}=n;let x,m,g,b,w,P;return s==="center"?(w=h+y/2,r==="left"?(x=f,m=x-o,b=w+o,P=w-o):(x=f+v,m=x+o,b=w-o,P=w+o),g=x):(r==="left"?m=f+Math.max(l,u)+o:r==="right"?m=f+v-Math.max(c,d)-o:m=this.caretX,s==="top"?(b=h,w=b-o,x=m-o,g=m+o):(b=h+y,w=b+o,x=m+o,g=m-o),P=b),{x1:x,x2:m,x3:g,y1:b,y2:w,y3:P}}drawTitle(e,n,i){const r=this.title,s=r.length;let o,a,l;if(s){const c=Cs(i.rtl,this.x,this.width);for(e.x=ou(this,i.titleAlign,i),n.textAlign=c.textAlign(i.titleAlign),n.textBaseline="middle",o=qe(i.titleFont),a=i.titleSpacing,n.fillStyle=i.titleColor,n.font=o.string,l=0;lg!==0)?(e.beginPath(),e.fillStyle=s.multiKeyBackground,Hc(e,{x:y,y:v,w:c,h:l,radius:m}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Hc(e,{x,y:v+1,w:c-2,h:l-2,radius:m}),e.fill()):(e.fillStyle=s.multiKeyBackground,e.fillRect(y,v,c,l),e.strokeRect(y,v,c,l),e.fillStyle=o.backgroundColor,e.fillRect(x,v+1,c-2,l-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,n,i){const{body:r}=this,{bodySpacing:s,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=i,d=qe(i.bodyFont);let f=d.lineHeight,h=0;const v=Cs(i.rtl,this.x,this.width),y=function(M){n.fillText(M,v.x(e.x+h),e.y+f/2),e.y+=f+s},x=v.textAlign(o);let m,g,b,w,P,E,A;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,e.x=ou(this,x,i),n.fillStyle=i.bodyColor,pe(this.beforeBody,y),h=a&&x!=="right"?o==="center"?c/2+u:c+2+u:0,w=0,E=r.length;w0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,i=this.$animations,r=i&&i.x,s=i&&i.y;if(r||s){const o=fa[e.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=AP(this,e),l=Object.assign({},o,this._size),c=LP(n,e,l),u=jP(e,l,c,n);(r._to!==u.x||s._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const r={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=jt(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(e.save(),e.globalAlpha=i,this.drawBackground(s,e,r,n),IS(e,n.textDirection),s.y+=o.top,this.drawTitle(s,e,n),this.drawBody(s,e,n),this.drawFooter(s,e,n),OS(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const i=this._active,r=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),s=!Ic(i,r),o=this._positionChanged(r,n);(s||o)&&(this._active=r,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,s=this._active||[],o=this._getActiveElements(e,s,n,i),a=this._positionChanged(o,e),l=n||!Ic(o,s)||a;return l&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,i,r){const s=this.options;if(e.type==="mouseout")return[];if(!r)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,s.mode,s,i);return s.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:i,caretY:r,options:s}=this,o=fa[s.position].call(this,e,n);return o!==!1&&(i!==o.x||r!==o.y)}}Z(km,"positioners",fa);var cR={id:"tooltip",_element:km,positioners:fa,afterInit(t,e,n){n&&(t.tooltip=new km({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",B(k({},n),{cancelable:!0}))===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:NP},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const uR=(t,e,n,i)=>(typeof e=="string"?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function dR(t,e,n,i){const r=t.indexOf(e);if(r===-1)return uR(t,e,n,i);const s=t.lastIndexOf(e);return r!==s?n:r}const fR=(t,e)=>t===null?null:_t(Math.round(t),0,e);function IP(t){const e=this.getLabels();return t>=0&&tn.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}Z(Tm,"id","category"),Z(Tm,"defaults",{ticks:{callback:IP}});function hR(t,e){const n=[],{bounds:r,step:s,min:o,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=t,h=s||1,v=u-1,{min:y,max:x}=e,m=!he(o),g=!he(a),b=!he(c),w=(x-y)/(d+1);let P=cS((x-y)/v/h)*h,E,A,M,S;if(P<1e-14&&!m&&!g)return[{value:y},{value:x}];S=Math.ceil(x/P)-Math.floor(y/P),S>v&&(P=cS(S*P/v/h)*h),he(l)||(E=Math.pow(10,l),P=Math.ceil(P*E)/E),r==="ticks"?(A=Math.floor(y/P)*P,M=Math.ceil(x/P)*P):(A=y,M=x),m&&g&&s&&hL((a-o)/s,P/1e3)?(S=Math.round(Math.min((a-o)/P,u)),P=(a-o)/S,A=o,M=a):b?(A=m?o:A,M=g?a:M,S=c-1,P=(M-A)/S):(S=(M-A)/P,zc(S,Math.round(S),P/1e3)?S=Math.round(S):S=Math.ceil(S));const C=Math.max(uS(P),uS(A));E=Math.pow(10,he(l)?C:l),A=Math.round(A*E)/E,M=Math.round(M*E)/E;let R=0;for(m&&(f&&A!==o?(n.push({value:o}),Aa)break;n.push({value:$})}return g&&f&&M!==a?n.length&&zc(n[n.length-1].value,a,OP(a,w,t))?n[n.length-1].value=a:n.push({value:a}):(!g||M===a)&&n.push({value:M}),n}function OP(t,e,{horizontal:n,minRotation:i}){const r=pr(i),s=(n?Math.sin(r):Math.cos(r))||.001,o=.75*e*(""+t).length;return Math.min(e/s,o)}class pR extends ks{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return he(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:r,max:s}=this;const o=l=>r=n?r:l,a=l=>s=i?s:l;if(e){const l=Ei(r),c=Ei(s);l<0&&c<0?a(0):l>0&&c>0&&o(0)}if(r===s){let l=s===0?1:Math.abs(s*.05);a(s+l),e||o(r-l)}this.min=r,this.max=s}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=e,r;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),n=n||11),n&&(r=Math.min(n,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const r={maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,o=hR(r,s);return e.bounds==="ticks"&&pL(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const r=(i-n)/Math.max(e.length-1,1)/2;n-=r,i+=r}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(e){return SS(e,this.chart.options.locale,this.options.ticks.format)}}class $m extends pR{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=Xt(e)?e:0,this.max=Xt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,i=pr(this.options.ticks.minRotation),r=(e?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}Z($m,"id","linear"),Z($m,"defaults",{ticks:{callback:CS.formatters.numeric}});const au={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},St=Object.keys(au);function VP(t,e){return t-e}function zP(t,e){if(he(e))return null;const n=t._adapter,{parser:i,round:r,isoWeekday:s}=t._parseOpts;let o=e;return typeof i=="function"&&(o=i(o)),Xt(o)||(o=typeof i=="string"?n.parse(o,i):n.parse(o)),o===null?null:(r&&(o=r==="week"&&(Bc(s)||s===!0)?n.startOf(o,"isoWeek",s):n.startOf(o,r)),+o)}function BP(t,e,n,i){const r=St.length;for(let s=St.indexOf(t);s=St.indexOf(n);s--){const o=St[s];if(au[o].common&&t._adapter.diff(r,i,o)>=e-1)return o}return St[n?St.indexOf(n):0]}function gR(t){for(let e=St.indexOf(t)+1,n=St.length;e=e?n[i]:n[r];t[s]=!0}}function vR(t,e,n,i){const r=t._adapter,s=+r.startOf(e[0].value,i),o=e[e.length-1].value;let a,l;for(a=s;a<=o;a=+r.add(a,1,i))l=n[a],l>=0&&(e[l].major=!0);return e}function HP(t,e,n){const i=[],r={},s=e.length;let o,a;for(o=0;o+e.value))}initOffsets(e=[]){let n=0,i=0,r,s;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),e.length===1?n=1-r:n=(this.getDecimalForValue(e[1])-r)/2,s=this.getDecimalForValue(e[e.length-1]),e.length===1?i=s:i=(s-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=_t(n,0,o),i=_t(i,0,o),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const e=this._adapter,n=this.min,i=this.max,r=this.options,s=r.time,o=s.unit||BP(s.minUnit,n,i,this._getLabelCapacity(n)),a=fe(r.ticks.stepSize,1),l=o==="week"?s.isoWeekday:!1,c=Bc(l)||l===!0,u={};let d=n,f,h;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":o),e.diff(i,n,o)>1e5*a)throw new Error(n+" and "+i+" are too far apart with stepSize of "+a+" "+o);const v=r.ticks.source==="data"&&this.getDataTimestamps();for(f=d,h=0;f+y)}getLabelForValue(e){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(e,i.tooltipFormat):n.format(e,i.displayFormats.datetime)}format(e,n){const r=this.options.time.displayFormats,s=this._unit,o=n||r[s];return this._adapter.format(e,o)}_tickFormatFunction(e,n,i,r){const s=this.options,o=s.ticks.callback;if(o)return ve(o,[e,n,i],this);const a=s.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],f=i[n],h=c&&d&&f&&f.major;return this._adapter.format(e,r||(h?d:u))}generateTickLabels(e){let n,i,r;for(n=0,i=e.length;n0?a:1}getDataTimestamps(){let e=this._cache.data||[],n,i;if(e.length)return e;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(n=0,i=r.length;n=t[i].pos&&e<=t[r].pos&&({lo:i,hi:r}=Jp(t,"pos",e)),{pos:s,time:a}=t[i],{pos:o,time:l}=t[r]):(e>=t[i].time&&e<=t[r].time&&({lo:i,hi:r}=Jp(t,"time",e)),{time:s,pos:a}=t[i],{time:o,pos:l}=t[r]);const c=o-s;return c?a+(l-a)*(e-s)/c:a}class WP extends lu{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=cu(n,this.min),this._tableRange=cu(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:i}=this,r=[],s=[];let o,a,l,c,u;for(o=0,a=e.length;o=n&&c<=i&&r.push(c);if(r.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(o=0,a=r.length;or-s)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?e=this.normalize(n.concat(i)):e=n.length?n:i,e=this._cache.all=e,e}getDecimalForValue(e){return(cu(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,i=this.getDecimalForPixel(e)/n.factor-n.end;return cu(this._table,i*this._tableRange+this._minPos,!0)}}Z(WP,"id","timeseries"),Z(WP,"defaults",lu.defaults);const UP="label";function YP(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function yR(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function GP(t,e){t.labels=e}function XP(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:UP;const i=[];t.datasets=e.map(r=>{const s=t.datasets.find(o=>o[n]===r[n]);return!s||!r.data||i.includes(s)?k({},r):(i.push(s),Object.assign(s,r),s)})}function bR(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:UP;const n={labels:[],datasets:[]};return GP(n,t.labels),XP(n,t.datasets,e),n}function xR(t,e){const m=t,{height:n=150,width:i=300,redraw:r=!1,datasetIdKey:s,type:o,data:a,options:l,plugins:c=[],fallbackContent:u,updateMode:d}=m,f=re(m,["height","width","redraw","datasetIdKey","type","data","options","plugins","fallbackContent","updateMode"]),h=_.useRef(null),v=_.useRef(),y=()=>{h.current&&(v.current=new iu(h.current,{type:o,data:bR(a,s),options:l&&k({},l),plugins:c}),YP(e,v.current))},x=()=>{YP(e,null),v.current&&(v.current.destroy(),v.current=null)};return _.useEffect(()=>{!r&&v.current&&l&&yR(v.current,l)},[r,l]),_.useEffect(()=>{!r&&v.current&&GP(v.current.config.data,a.labels)},[r,a.labels]),_.useEffect(()=>{!r&&v.current&&a.datasets&&XP(v.current.config.data,a.datasets,s)},[r,a.datasets]),_.useEffect(()=>{v.current&&(r?(x(),setTimeout(y)):v.current.update(d))},[r,l,a.labels,a.datasets,d]),_.useEffect(()=>{v.current&&(x(),setTimeout(y))},[o]),_.useEffect(()=>(y(),()=>x()),[]),G.createElement("canvas",Object.assign({ref:h,role:"img",height:n,width:i},f),u)}const _R=_.forwardRef(xR);function wR(t,e){return iu.register(e),_.forwardRef((n,i)=>G.createElement(_R,Object.assign({},n,{ref:i,type:t})))}const SR=wR("bar",Gc);/*! * chartjs-plugin-datalabels v2.2.0 * https://chartjs-plugin-datalabels.netlify.app * (c) 2017-2022 chartjs-plugin-datalabels contributors * Released under the MIT license */var qP=function(){if(typeof window!="undefined"){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),ha={toTextLines:function(t){var e=[],n;for(t=[].concat(t);t.length;)n=t.pop(),typeof n=="string"?e.unshift.apply(e,n.split(` `)):Array.isArray(n)?t.push.apply(t,n):he(t)||e.unshift(""+n);return e},textSize:function(t,e,n){var i=[].concat(e),r=i.length,s=t.font,o=0,a;for(t.font=n.string,a=0;an.right&&(i|=ZP),en.bottom&&(i|=JP),i}function kR(t,e){for(var n=t.x0,i=t.y0,r=t.x1,s=t.y1,o=uu(n,i,e),a=uu(r,s,e),l,c,u;!(!(o|a)||o&a);)l=o||a,l&eC?(c=n+(r-n)*(e.top-i)/(s-i),u=e.top):l&JP?(c=n+(r-n)*(e.bottom-i)/(s-i),u=e.bottom):l&ZP?(u=i+(s-i)*(e.right-n)/(r-n),c=e.right):l&QP&&(u=i+(s-i)*(e.left-n)/(r-n),c=e.left),l===o?(n=c,i=u,o=uu(n,i,e)):(r=c,s=u,a=uu(r,s,e));return{x0:n,x1:r,y0:i,y1:s}}function du(t,e){var n=e.anchor,i=t,r,s;return e.clamp&&(i=kR(i,e.area)),n==="start"?(r=i.x0,s=i.y0):n==="end"?(r=i.x1,s=i.y1):(r=(i.x0+i.x1)/2,s=(i.y0+i.y1)/2),PR(r,s,t.vx,t.vy,e.align)}var fu={arc:function(t,e){var n=(t.startAngle+t.endAngle)/2,i=Math.cos(n),r=Math.sin(n),s=t.innerRadius,o=t.outerRadius;return du({x0:t.x+i*s,y0:t.y+r*s,x1:t.x+i*o,y1:t.y+r*o,vx:i,vy:r},e)},point:function(t,e){var n=Em(t,e.origin),i=n.x*t.options.radius,r=n.y*t.options.radius;return du({x0:t.x-i,y0:t.y-r,x1:t.x+i,y1:t.y+r,vx:n.x,vy:n.y},e)},bar:function(t,e){var n=Em(t,e.origin),i=t.x,r=t.y,s=0,o=0;return t.horizontal?(i=Math.min(t.x,t.base),s=Math.abs(t.base-t.x)):(r=Math.min(t.y,t.base),o=Math.abs(t.base-t.y)),du({x0:i,y0:r+o,x1:i+s,y1:r,vx:n.x,vy:n.y},e)},fallback:function(t,e){var n=Em(t,e.origin);return du({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:n.x,vy:n.y},e)}},Un=ha.rasterize;function TR(t){var e=t.borderWidth||0,n=t.padding,i=t.size.height,r=t.size.width,s=-r/2,o=-i/2;return{frame:{x:s-n.left-e,y:o-n.top-e,w:r+n.width+e*2,h:i+n.height+e*2},text:{x:s,y:o,w:r,h:i}}}function $R(t,e){var n=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var i=n.getBasePixel();return t.horizontal?{x:i,y:null}:{x:null,y:i}}function ER(t){return t instanceof ua?fu.arc:t instanceof su?fu.point:t instanceof da?fu.bar:fu.fallback}function MR(t,e,n,i,r,s){var o=Math.PI/2;if(s){var a=Math.min(s,r/2,i/2),l=e+a,c=n+a,u=e+i-a,d=n+r-a;t.moveTo(e,c),li.x+i.w+n*2||t.y>i.y+i.h+n*2)},intersects:function(t){var e=this._points(),n=t._points(),i=[hu(e[0],e[1]),hu(e[0],e[3])],r,s,o;for(this._rotation!==t._rotation&&i.push(hu(n[0],n[1]),hu(n[0],n[3])),r=0;r=0;--n)for(r=t[n].$layout,i=n-1;i>=0&&r._visible;--i)s=t[i].$layout,s._visible&&r._box.intersects(s._box)&&e(r,s);return t}function IR(t){var e,n,i,r,s,o,a;for(e=0,n=t.length;el.getProps([c],!0)[c]}),s=i.geometry(),o=rC(a,i.model(),s),r._box.update(o,s,i.rotation()));return NR(t,function(l,c){var u=l._hidable,d=c._hidable;u&&d||d?c._visible=!1:u&&(l._visible=!1)})}var ma={prepare:function(t){var e=[],n,i,r,s,o;for(n=0,r=t.length;n=0;--n)if(i=t[n].$layout,i&&i._visible&&i._box.contains(e))return t[n];return null},draw:function(t,e){var n,i,r,s,o,a;for(n=0,i=e.length;n{const l=()=>{s(window.innerWidth)};return window.addEventListener("resize",l),()=>{window.removeEventListener("resize",l)}},[]);const o={labels:t.slice(0,4).map(l=>l.year),datasets:[{label:D.oblroi_resultsTable_human_cost,data:t.slice(0,4).map(l=>l.serviceRepCost),backgroundColor:"#F0F3FC"},{label:D.oblroi_resultsTable_agentforce_investment,data:t.slice(0,4).map(l=>l.cost),backgroundColor:"#4864D2"},{label:D.oblroi_resultsTable_your_savings,data:t.slice(0,4).map(l=>l.savings),backgroundColor:"#C8D4F8"}]},a={indexAxis:"y",plugins:{title:{display:!1,text:"Stacked Bar Chart"},legend:{position:"bottom",labels:{color:"#000000",font:{size:12,family:"Salesforce Sans"}}},tooltip:{enabled:!1},datalabels:{display:!(r<768),color:"#3651C0",anchor:"middle",font:{weight:"bold",size:r<1024?10:16},align:"middle",formatter:(l,c)=>c.dataset.label===D.oblroi_resultsTable_your_savings&&l!==0?new Intl.NumberFormat(i,{style:"currency",currency:n,maximumFractionDigits:0}).format(l):null}},elements:{bar:{borderRadius:0,barPercentage:1}},responsive:!0,maintainAspectRatio:!1,scales:{x:{stacked:!0,grid:{display:!0,drawTicks:!0,color:"#fff",tickColor:"#D9D9D9"},title:{display:!0,text:D.oblroi_resultsTableAnnualCost,color:"#333",align:"start",padding:{top:10,bottom:10},font:{size:12,family:"Salesforce Sans"}},suggestedMax:0},y:{stacked:!0,grid:{display:!1}}}};return p.jsx(SR,{data:o,options:a,"aria-label":e})}var aC=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Ct=t=>!t||typeof t!="object"||Object.keys(t).length===0,UR=(t,e)=>JSON.stringify(t)===JSON.stringify(e);function lC(t,e){t.forEach(function(n){Array.isArray(n)?lC(n,e):e.push(n)})}function cC(t){let e=[];return lC(t,e),e}var uC=(...t)=>cC(t).filter(Boolean),dC=(t,e)=>{let n={},i=Object.keys(t),r=Object.keys(e);for(let s of i)if(r.includes(s)){let o=t[s],a=e[s];typeof o=="object"&&typeof a=="object"?n[s]=dC(o,a):Array.isArray(o)||Array.isArray(a)?n[s]=uC(a,o):n[s]=a+" "+o}else n[s]=t[s];for(let s of r)i.includes(s)||(n[s]=e[s]);return n},fC=t=>!t||typeof t!="string"?t:t.replace(/\s+/g," ").trim();const Dm="-",YR=t=>{const e=XR(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:o=>{const a=o.split(Dm);return a[0]===""&&a.length!==1&&a.shift(),hC(a,e)||GR(o)},getConflictingClassGroupIds:(o,a)=>{const l=n[o]||[];return a&&i[o]?[...l,...i[o]]:l}}},hC=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const n=t[0],i=e.nextPart.get(n),r=i?hC(t.slice(1),i):void 0;if(r)return r;if(e.validators.length===0)return;const s=t.join(Dm);return(o=e.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId},pC=/^\[(.+)\]$/,GR=t=>{if(pC.test(t)){const e=pC.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},XR=t=>{const{theme:e,prefix:n}=t,i={nextPart:new Map,validators:[]};return QR(Object.entries(t.classGroups),n).forEach(([s,o])=>{Am(o,i,s,e)}),i},Am=(t,e,n,i)=>{t.forEach(r=>{if(typeof r=="string"){const s=r===""?e:mC(e,r);s.classGroupId=n;return}if(typeof r=="function"){if(qR(r)){Am(r(i),e,n,i);return}e.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([s,o])=>{Am(o,mC(e,s),n,i)})})},mC=(t,e)=>{let n=t;return e.split(Dm).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},qR=t=>t.isThemeGetter,QR=(t,e)=>e?t.map(([n,i])=>{const r=i.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[e+o,a])):s);return[n,r]}):t,ZR=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,i=new Map;const r=(s,o)=>{n.set(s,o),e++,e>t&&(e=0,i=n,n=new Map)};return{get(s){let o=n.get(s);if(o!==void 0)return o;if((o=i.get(s))!==void 0)return r(s,o),o},set(s,o){n.has(s)?n.set(s,o):r(s,o)}}},gC="!",JR=t=>{const{separator:e,experimentalParseClassName:n}=t,i=e.length===1,r=e[0],s=e.length,o=a=>{const l=[];let c=0,u=0,d;for(let x=0;xu?d-u:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:o}):o},e6=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(i=>{i[0]==="["?(e.push(...n.sort(),i),n=[]):n.push(i)}),e.push(...n.sort()),e},t6=t=>k({cache:ZR(t.cacheSize),parseClassName:JR(t)},YR(t)),n6=/\s+/,i6=(t,e)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:r}=e,s=[],o=t.trim().split(n6);let a="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(c);let v=!!h,y=i(v?f.substring(0,h):f);if(!y){if(!v){a=c+(a.length>0?" "+a:a);continue}if(y=i(f),!y){a=c+(a.length>0?" "+a:a);continue}v=!1}const x=e6(u).join(":"),m=d?x+gC:x,g=m+y;if(s.includes(g))continue;s.push(g);const b=r(y,v);for(let w=0;w0?" "+a:a)}return a};function r6(){let t=0,e,n,i="";for(;t{if(typeof t=="string")return t;let e,n="";for(let i=0;id(u),t());return n=t6(c),i=n.cache.get,r=n.cache.set,s=a,a(l)}function a(l){const c=i(l);if(c)return c;const u=i6(l,n);return r(l,u),u}return function(){return s(r6.apply(null,arguments))}}const we=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},yC=/^\[(?:([a-z-]+):)?(.+)\]$/i,s6=/^\d+\/\d+$/,o6=new Set(["px","full","screen"]),a6=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,l6=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,c6=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,u6=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,d6=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yn=t=>$s(t)||o6.has(t)||s6.test(t),Ai=t=>Es(t,"length",b6),$s=t=>!!t&&!Number.isNaN(Number(t)),jm=t=>Es(t,"number",$s),ga=t=>!!t&&Number.isInteger(Number(t)),f6=t=>t.endsWith("%")&&$s(t.slice(0,-1)),te=t=>yC.test(t),Li=t=>a6.test(t),h6=new Set(["length","size","percentage"]),p6=t=>Es(t,h6,bC),m6=t=>Es(t,"position",bC),g6=new Set(["image","url"]),v6=t=>Es(t,g6,_6),y6=t=>Es(t,"",x6),va=()=>!0,Es=(t,e,n)=>{const i=yC.exec(t);return i?i[1]?typeof e=="string"?i[1]===e:e.has(i[1]):n(i[2]):!1},b6=t=>l6.test(t)&&!c6.test(t),bC=()=>!1,x6=t=>u6.test(t),_6=t=>d6.test(t),Fm=()=>{const t=we("colors"),e=we("spacing"),n=we("blur"),i=we("brightness"),r=we("borderColor"),s=we("borderRadius"),o=we("borderSpacing"),a=we("borderWidth"),l=we("contrast"),c=we("grayscale"),u=we("hueRotate"),d=we("invert"),f=we("gap"),h=we("gradientColorStops"),v=we("gradientColorStopPositions"),y=we("inset"),x=we("margin"),m=we("opacity"),g=we("padding"),b=we("saturate"),w=we("scale"),P=we("sepia"),E=we("skew"),A=we("space"),M=we("translate"),S=()=>["auto","contain","none"],C=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto",te,e],$=()=>[te,e],I=()=>["",Yn,Ai],j=()=>["auto",$s,te],z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",te],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[$s,te];return{cacheSize:500,separator:":",theme:{colors:[va],spacing:[Yn,Ai],blur:["none","",Li,te],brightness:V(),borderColor:[t],borderRadius:["none","","full",Li,te],borderSpacing:$(),borderWidth:I(),contrast:V(),grayscale:K(),hueRotate:V(),invert:K(),gap:$(),gradientColorStops:[t],gradientColorStopPositions:[f6,Ai],inset:R(),margin:R(),opacity:V(),padding:$(),saturate:V(),scale:V(),sepia:K(),skew:V(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[Li]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...z(),te]}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ga,te]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",ga,te]}],"grid-cols":[{"grid-cols":[va]}],"col-start-end":[{col:["auto",{span:["full",ga,te]},te]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[va]}],"row-start-end":[{row:["auto",{span:[ga,te]},te]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,e]}],"min-w":[{"min-w":[te,e,"min","max","fit"]}],"max-w":[{"max-w":[te,e,"none","full","min","max","fit","prose",{screen:[Li]},Li]}],h:[{h:[te,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Li,Ai]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jm]}],"font-family":[{font:[va]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",$s,jm]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Yn,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Yn,Ai]}],"underline-offset":[{"underline-offset":["auto",Yn,te]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...z(),m6]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",p6]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},v6]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:L()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[Yn,te]}],"outline-w":[{outline:[Yn,Ai]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Yn,Ai]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Li,y6]}],"shadow-color":[{shadow:[va]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Li,te]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:V()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:V()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[ga,te]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Yn,Ai,jm]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},w6=(t,{cacheSize:e,prefix:n,separator:i,experimentalParseClassName:r,extend:s={},override:o={}})=>{ya(t,"cacheSize",e),ya(t,"prefix",n),ya(t,"separator",i),ya(t,"experimentalParseClassName",r);for(const a in o)S6(t[a],o[a]);for(const a in s)P6(t[a],s[a]);return t},ya=(t,e,n)=>{n!==void 0&&(t[e]=n)},S6=(t,e)=>{if(e)for(const n in e)ya(t,n,e[n])},P6=(t,e)=>{if(e)for(const n in e){const i=e[n];i!==void 0&&(t[n]=(t[n]||[]).concat(i))}},C6=(t,...e)=>typeof t=="function"?Lm(Fm,t,...e):Lm(()=>w6(Fm(),t),...e),k6=Lm(Fm);var T6={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},xC=t=>t||void 0,ba=(...t)=>xC(cC(t).filter(Boolean).join(" ")),Rm=null,Gn={},Nm=!1,xa=(...t)=>e=>e.twMerge?((!Rm||Nm)&&(Nm=!1,Rm=Ct(Gn)?k6:C6(B(k({},Gn),{extend:k({theme:Gn.theme,classGroups:Gn.classGroups,conflictingClassGroupModifiers:Gn.conflictingClassGroupModifiers,conflictingClassGroups:Gn.conflictingClassGroups},Gn.extend)}))),xC(Rm(ba(t)))):ba(t),_C=(t,e)=>{for(let n in e)t.hasOwnProperty(n)?t[n]=ba(t[n],e[n]):t[n]=e[n];return t},$6=(t,e)=>{let{extend:n=null,slots:i={},variants:r={},compoundVariants:s=[],compoundSlots:o=[],defaultVariants:a={}}=t,l=k(k({},T6),e),c=n!=null&&n.base?ba(n.base,t==null?void 0:t.base):t==null?void 0:t.base,u=n!=null&&n.variants&&!Ct(n.variants)?dC(r,n.variants):r,d=n!=null&&n.defaultVariants&&!Ct(n.defaultVariants)?k(k({},n.defaultVariants),a):a;!Ct(l.twMergeConfig)&&!UR(l.twMergeConfig,Gn)&&(Nm=!0,Gn=l.twMergeConfig);let f=Ct(n==null?void 0:n.slots),h=Ct(i)?{}:k({base:ba(t==null?void 0:t.base,f&&(n==null?void 0:n.base))},i),v=f?h:_C(k({},n==null?void 0:n.slots),Ct(h)?{base:t==null?void 0:t.base}:h),y=Ct(n==null?void 0:n.compoundVariants)?s:uC(n==null?void 0:n.compoundVariants,s),x=g=>{if(Ct(u)&&Ct(i)&&f)return xa(c,g==null?void 0:g.class,g==null?void 0:g.className)(l);if(y&&!Array.isArray(y))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof y}`);if(o&&!Array.isArray(o))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof o}`);let b=($,I,j=[],z)=>{let L=j;if(typeof I=="string")L=L.concat(fC(I).split(" ").map(F=>`${$}:${F}`));else if(Array.isArray(I))L=L.concat(I.reduce((F,N)=>F.concat(`${$}:${N}`),[]));else if(typeof I=="object"&&typeof z=="string"){for(let F in I)if(I.hasOwnProperty(F)&&F===z){let N=I[F];if(N&&typeof N=="string"){let K=fC(N);L[z]?L[z]=L[z].concat(K.split(" ").map(U=>`${$}:${U}`)):L[z]=K.split(" ").map(U=>`${$}:${U}`)}else Array.isArray(N)&&N.length>0&&(L[z]=N.reduce((K,U)=>K.concat(`${$}:${U}`),[]))}}return L},w=($,I=u,j=null,z=null)=>{var L;let F=I[$];if(!F||Ct(F))return null;let N=(L=z==null?void 0:z[$])!=null?L:g==null?void 0:g[$];if(N===null)return null;let K=aC(N),U=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,V=d==null?void 0:d[$],H=[];if(typeof K=="object"&&U)for(let[ne,oe]of Object.entries(K)){let st=F[oe];if(ne==="initial"){V=oe;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(ne)||(H=b(ne,st,H,j))}let J=K!=null&&typeof K!="object"?K:aC(V),Y=F[J||"false"];return typeof H=="object"&&typeof j=="string"&&H[j]?_C(H,Y):H.length>0?(H.push(Y),H):Y},P=()=>u?Object.keys(u).map($=>w($,u)):null,E=($,I)=>{if(!u||typeof u!="object")return null;let j=new Array;for(let z in u){let L=w(z,u,$,I),F=$==="base"&&typeof L=="string"?L:L&&L[$];F&&(j[j.length]=F)}return j},A={};for(let $ in g)g[$]!==void 0&&(A[$]=g[$]);let M=($,I)=>{var j;let z=typeof(g==null?void 0:g[$])=="object"?{[$]:(j=g[$])==null?void 0:j.initial}:{};return k(k(k(k({},d),A),z),I)},S=($=[],I)=>{let j=[];for(let z of $){let L=z,{class:F,className:N}=L,K=re(L,["class","className"]);let U=!0;for(let[V,H]of Object.entries(K)){let J=M(V,I);if(Array.isArray(H)){if(!H.includes(J[V])){U=!1;break}}else if(J[V]!==H){U=!1;break}}U&&(F&&j.push(F),N&&j.push(N))}return j},C=$=>{let I=S(y,$);if(!Array.isArray(I))return I;let j={};for(let z of I)if(typeof z=="string"&&(j.base=xa(j.base,z)(l)),typeof z=="object")for(let[L,F]of Object.entries(z))j[L]=xa(j[L],F)(l);return j},R=$=>{if(o.length<1)return null;let I={};for(let j of o){let z=j,{slots:L=[],class:F,className:N}=z,K=re(z,["slots","class","className"]);if(!Ct(K)){let U=!0;for(let V of Object.keys(K)){let H=M(V,$)[V];if(H===void 0||(Array.isArray(K[V])?!K[V].includes(H):K[V]!==H)){U=!1;break}}if(!U)continue}for(let U of L)I[U]=I[U]||[],I[U].push([F,N])}return I};if(!Ct(i)||!f){let $={};if(typeof v=="object"&&!Ct(v))for(let I of Object.keys(v))$[I]=j=>{var z,L;return xa(v[I],E(I,j),((z=C(j))!=null?z:[])[I],((L=R(j))!=null?L:[])[I],j==null?void 0:j.class,j==null?void 0:j.className)(l)};return $}return xa(c,P(),S(y),g==null?void 0:g.class,g==null?void 0:g.className)(l)},m=()=>{if(!(!u||typeof u!="object"))return Object.keys(u)};return x.variantKeys=m(),x.extend=n,x.base=c,x.slots=v,x.variants=u,x.defaultVariants=d,x.compoundSlots=o,x.compoundVariants=y,x};const E6=$6({base:"w-full px-8 py-3 min-h-[52px] rounded text-center font-sans font-bold tracking-tight flex items-center justify-center",variants:{color:{primary:"bg-sfprimary text-white hover:bg-sfnavy",secondary:"border-2 border-sfprimary bg-white text-sfprimary hover:bg-sfprimary hover:text-white"},size:{sm:"text-sm leading-none",md:"text-base leading-none",lg:"px-8 py-5 text-lg leading-none"}},compoundVariants:[{size:["sm","md"],class:""}]}),M6=(t,e)=>{const n=t.target;let i=0,r=n.previousElementSibling;for(;r;)i++,r=r.previousElementSibling;const s=Hp(),o={event:"custEv_contentClick",blade:{id:s.id,name:"sf/marquee/agentforce",position:s.position,source:"www",variant:"marquee",state:"rendered",type:"blade",module:{id:s.id,name:n.innerText,type:"cta",position:i+1,link:{text:n.innerText,url:n.getAttribute("href"),type:`${e} cta`,internalDriver:""}}}};window.dataLayer&&window.dataLayer.push(k({},o))},ji=({children:t,url:e,target:n,variant:i="primary",size:r="md"})=>p.jsx(p.Fragment,{children:p.jsx(W5,{onPress:s=>{M6(s,i)},href:e,target:n,className:E6({size:r,color:i==="text"?"secondary":i}),children:t})}),D6=()=>p.jsxs("div",{className:"relative mx-auto h-[200px] w-full sm:h-[300px]",style:{backgroundImage:` url('https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/12/bg-mointain-sticky-left_9e6e57.png'), url('https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/12/bg-mointain-sticky-right_82471e.png') `,backgroundPosition:"left -45px top, right top 45px, 0 0",backgroundRepeat:"no-repeat, no-repeat, no-repeat"},children:[p.jsx("div",{className:"masked-contour absolute inset-x-0 bottom-0 z-0 mx-auto -mb-[2px] w-full",children:p.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/contour.svg",alt:"",className:"w-full"})}),p.jsx("div",{className:"data-dust-left absolute left-0 top-[-50px] z-10 sm:top-[-450px]",children:p.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/DataDust.svg",alt:"",className:"w-auto max-sm:w-[250px]"})}),p.jsx("div",{className:"data-dust-right visible absolute right-0 top-[-80px] z-10 max-lg:hidden",children:p.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/DataDust-2.svg",alt:""})}),p.jsx("div",{className:"astro-agentforce absolute bottom-[-20px] right-0 z-20 sm:right-[10%]",children:p.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/astro-bot.png",alt:"",className:"w-[200px] sm:w-[260px]"})}),p.jsx("div",{className:"einstein-agentforce absolute bottom-[-40px] left-[13%] z-20",children:p.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/einstein-bot.png",alt:"",className:"w-[200px] sm:w-[260px]"})}),p.jsx("div",{className:"appy-agentforce absolute bottom-[-20px] left-[3%] z-20",children:p.jsx("img",{src:"https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/10/appy-bot.png",alt:"",className:"w-[80px] sm:w-[180px]"})})]});function A6({currentRegion:t,locale:e,currentCurrency:n,agentforcePrice:i,copySource:r,totalSavings:s,validRegionPaths:o,onRegionChange:a}){return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"bg-purple-900 py-2 text-sm font-semibold text-white",children:p.jsxs("div",{className:"mx-auto flex max-w-3xl items-center justify-between gap-2",children:[p.jsxs("span",{children:["Region: ",p.jsx("span",{className:"text-gray-300",children:t})]}),p.jsxs("span",{children:["Locale: ",p.jsx("span",{className:"text-gray-300",children:e})]}),p.jsxs("span",{children:["Currency: ",p.jsx("span",{className:"text-gray-300",children:n})]}),p.jsxs("span",{children:["Agentforce cost: ",p.jsx("span",{className:"text-gray-300",children:i})]}),p.jsxs("span",{children:["Copy source: ",p.jsx("span",{className:"text-gray-300",children:r})]}),p.jsxs("span",{children:["totalSavings ",p.jsx("span",{className:"text-gray-300",children:s})]})]})}),p.jsx("div",{className:"bg-purple-800 py-2 text-sm font-semibold text-white",children:p.jsxs("div",{className:"mx-auto flex max-w-3xl items-center justify-between",children:[p.jsx("span",{children:"region switcher:"}),o.map(l=>p.jsx("button",{onClick:()=>a(l),className:"underline",children:l},l))]})}),p.jsx("div",{className:"bg-purple-700 py-2 text-sm font-semibold text-white",children:p.jsxs("div",{className:"mx-auto flex max-w-3xl items-center justify-between",children:[p.jsx("span",{children:"region links:"}),o.map(l=>p.jsx("a",{href:`/${l}/agentforce/ai-agents-roi-calculator/?debug=true`,className:"underline",children:l},l))]})})]})}const L6=G.createContext(void 0),Ft=({children:t})=>{const[e]=_.useState(new Map),n=G.useRef(1),i=_.useCallback(r=>(e.has(r)||(e.set(r,n.current),n.current+=1),e.get(r)),[e]);return p.jsx(L6.Provider,{value:{registerItem:i},children:p.jsx("div",{children:t})})},j6=({defaultOpen:t=!1,children:e,onToggle:n})=>{const[i,r]=_.useState(t),s=_.useRef(null),o=()=>{var u;r(d=>{const f=!d;return n&&n(f),f});const a=s.current?Array.from(((u=s.current.parentElement)==null?void 0:u.children)||[]).filter(d=>d.classList.contains("accordion-item")).indexOf(s.current)+1:1,l=Hp(),c={event:"custEv_contentClick",blade:{id:l.id,name:"sf/marquee/agentforce-selector",position:l.position,source:"www",variant:"marquee",state:"rendered",type:"blade",module:{id:`accordion-item-${a}`,name:`roi-${a===1?"service":a===2?"coach":"sdr"}-toggle`,type:"toggle",position:a,link:{text:"",url:"",type:"",internalDriver:""}}}};window.dataLayer&&window.dataLayer.push(k({},c))};return p.jsx("div",{ref:s,className:"accordion-item",children:G.Children.map(e,a=>{if(G.isValidElement(a)){if(a.type===wC)return G.cloneElement(a,{isOpen:i,onClick:o});if(a.type===SC)return G.cloneElement(a,{isOpen:i})}return a})})},wC=({children:t,onClick:e,isOpen:n})=>p.jsx("button",{onClick:e,className:`flex w-full flex-col py-6 ${n?"rounded-t-2xl":"mb-8 rounded-2xl"} border border-neutral-200 bg-white px-8 hover:bg-neutral-50`,children:p.jsxs("div",{className:"flex items-center gap-8",children:[p.jsxs("div",{className:"relative h-6 w-10",children:[p.jsx("div",{className:`absolute left-0 top-0 h-6 w-10 rounded-full ${n?"bg-sky-600":"bg-neutral-400"}`}),p.jsx("div",{className:`absolute top-[2px] h-5 w-5 rounded-full bg-white ${n?"left-[18px]":"left-[2px]"}`})]}),p.jsx("div",{className:"w-full",children:t})]})}),SC=({children:t,isOpen:e})=>p.jsx(bD,{children:e?p.jsx(or.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1,transition:{duration:.3}},exit:{height:0,opacity:0},className:"mb-8 flex w-full flex-col items-start justify-start gap-4 rounded-b-2xl border border-t-0 border-neutral-200 bg-neutral-200/25 p-2 shadow lg:flex-row md:gap-8 md:p-8",children:t}):null});Ft.Item=j6,Ft.Header=wC,Ft.Panel=SC;const q=({value:t,locale:e="en-US",currency:n="USD"})=>{var a;const i=new Intl.NumberFormat(e,{style:"decimal",maximumFractionDigits:0}).format(t<0?0:t),o=((a=new Intl.NumberFormat(e,{style:"currency",currency:n,currencyDisplay:"narrowSymbol"}).formatToParts(t).find(l=>l.type==="currency"))==null?void 0:a.value)||"";return`${n==="AUD"?"AU$":o} ${i}`},PC=({value:t,locale:e="en-US",currency:n="USD"})=>{var a;const i=new Intl.NumberFormat(e,{currency:n,maximumFractionDigits:0,minimumFractionDigits:0}).format(t<0?0:t),o=((a=new Intl.NumberFormat(e,{style:"currency",currency:n,currencyDisplay:"narrowSymbol"}).formatToParts(t).find(l=>l.type==="currency"))==null?void 0:a.value)||"";return p.jsxs("span",{className:"flex items-start justify-center text-center",children:[p.jsx("span",{className:"flex-start items-start text-display-5 sm:text-display-3 mr-2",children:n==="AUD"?"AU$":o}),p.jsx("span",{children:i})]})},F6=({salesCoachResults:t,currentCurrency:e,locale:n})=>p.jsxs(T,{children:[p.jsx(T.Head,{children:p.jsxs(T.Row,{children:[p.jsx(T.HeaderCell,{children:"DEBUG"}),p.jsx(T.HeaderCell,{children:"Year 1"}),p.jsx(T.HeaderCell,{children:"Year 2"}),p.jsx(T.HeaderCell,{children:"Year 3"})]})}),p.jsxs(T.Body,{children:[p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"Productivity Improvement"}),p.jsxs(T.Cell,{children:[(t.yearOne.productivityImprovement*100).toFixed(0),"%"]}),p.jsxs(T.Cell,{children:[(t.yearTwo.productivityImprovement*100).toFixed(0),"%"]}),p.jsxs(T.Cell,{children:[(t.yearThree.productivityImprovement*100).toFixed(0),"%"]})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"Hours Saved Weekly/Manager"}),p.jsx(T.Cell,{children:t.yearOne.hoursSavedPerManagerWeek.toFixed(1)}),p.jsx(T.Cell,{children:t.yearTwo.hoursSavedPerManagerWeek.toFixed(1)}),p.jsx(T.Cell,{children:t.yearThree.hoursSavedPerManagerWeek.toFixed(1)})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"Total Hours Saved Annually"}),p.jsx(T.Cell,{children:Math.round(t.yearOne.totalHoursSavedAnnually).toLocaleString()}),p.jsx(T.Cell,{children:Math.round(t.yearTwo.totalHoursSavedAnnually).toLocaleString()}),p.jsx(T.Cell,{children:Math.round(t.yearThree.totalHoursSavedAnnually).toLocaleString()})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"FTE Savings"}),p.jsx(T.Cell,{children:t.yearOne.fullTimeEquivalentSavings.toFixed(1)}),p.jsx(T.Cell,{children:t.yearTwo.fullTimeEquivalentSavings.toFixed(1)}),p.jsx(T.Cell,{children:t.yearThree.fullTimeEquivalentSavings.toFixed(1)})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"Productivity Benefits"}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearOne.productivityBenefits,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearTwo.productivityBenefits,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearThree.productivityBenefits,currency:e,locale:n})})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"Total AgentForce Conversations"}),p.jsx(T.Cell,{children:Math.round(t.yearOne.totalAgentforceConversations).toLocaleString()}),p.jsx(T.Cell,{children:Math.round(t.yearTwo.totalAgentforceConversations).toLocaleString()}),p.jsx(T.Cell,{children:Math.round(t.yearThree.totalAgentforceConversations).toLocaleString()})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"Total AgentForce Investment"}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearOne.totalAgentforceInvestment,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearTwo.totalAgentforceInvestment,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearThree.totalAgentforceInvestment,currency:e,locale:n})})]})]})]}),R6=({sdrResults:t,currentCurrency:e,locale:n})=>p.jsxs(T,{children:[p.jsx(T.Head,{children:p.jsxs(T.Row,{children:[p.jsx(T.HeaderCell,{children:"DEBUG"}),p.jsx(T.HeaderCell,{children:"Year 1"}),p.jsx(T.HeaderCell,{children:"Year 2"}),p.jsx(T.HeaderCell,{children:"Year 3"})]})}),p.jsxs(T.Body,{children:[p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"productivityImprovement"}),p.jsxs(T.Cell,{children:[(t.yearOne.productivityImprovement*100).toFixed(1),"%"]}),p.jsxs(T.Cell,{children:[(t.yearTwo.productivityImprovement*100).toFixed(1),"%"]}),p.jsxs(T.Cell,{children:[(t.yearThree.productivityImprovement*100).toFixed(1),"%"]})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"fullTimeEquivalentSavings"}),p.jsx(T.Cell,{children:t.yearOne.fullTimeEquivalentSavings.toFixed(1)}),p.jsx(T.Cell,{children:t.yearTwo.fullTimeEquivalentSavings.toFixed(1)}),p.jsx(T.Cell,{children:t.yearThree.fullTimeEquivalentSavings.toFixed(1)})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"productivityBenefits"}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearOne.productivityBenefits,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearTwo.productivityBenefits,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearThree.productivityBenefits,currency:e,locale:n})})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"percentLeadsProspected"}),p.jsxs(T.Cell,{children:[(t.yearOne.percentLeadsProspected*100).toFixed(1),"%"]}),p.jsxs(T.Cell,{children:[(t.yearTwo.percentLeadsProspected*100).toFixed(1),"%"]}),p.jsxs(T.Cell,{children:[(t.yearThree.percentLeadsProspected*100).toFixed(1),"%"]})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"benefitsFromQualifiedLeads"}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearOne.benefitsFromQualifiedLeads,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearTwo.benefitsFromQualifiedLeads,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearThree.benefitsFromQualifiedLeads,currency:e,locale:n})})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"totalAgentforceCosts"}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearOne.totalAgentforceCosts,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearTwo.totalAgentforceCosts,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearThree.totalAgentforceCosts,currency:e,locale:n})})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"netBenefit"}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearOne.netBenefit,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearTwo.netBenefit,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearThree.netBenefit,currency:e,locale:n})})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"totalLeadsTouchedByDigitalSdr"}),p.jsx(T.Cell,{children:t.yearOne.totalLeadsTouchedByDigitalSdr.toFixed(1)}),p.jsx(T.Cell,{children:t.yearTwo.totalLeadsTouchedByDigitalSdr.toFixed(1)}),p.jsx(T.Cell,{children:t.yearThree.totalLeadsTouchedByDigitalSdr.toFixed(1)})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"totalLeadsProcessed"}),p.jsx(T.Cell,{children:t.yearOne.totalLeadsProcessed.toFixed(1)}),p.jsx(T.Cell,{children:t.yearTwo.totalLeadsProcessed.toFixed(1)}),p.jsx(T.Cell,{children:t.yearThree.totalLeadsProcessed.toFixed(1)})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"increasedLeadsFromProspecting"}),p.jsx(T.Cell,{children:t.yearOne.increasedLeadsFromProspecting.toFixed(1)}),p.jsx(T.Cell,{children:t.yearTwo.increasedLeadsFromProspecting.toFixed(1)}),p.jsx(T.Cell,{children:t.yearThree.increasedLeadsFromProspecting.toFixed(1)})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"Hours Saved Per Rep Per Week"}),p.jsx(T.Cell,{children:t.yearOne.hoursSavedPerRepWeek.toFixed(1)}),p.jsx(T.Cell,{children:t.yearTwo.hoursSavedPerRepWeek.toFixed(1)}),p.jsx(T.Cell,{children:t.yearThree.hoursSavedPerRepWeek.toFixed(1)})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"Total Hours Saved Annually"}),p.jsx(T.Cell,{children:Math.round(t.yearOne.totalHoursSavedAnnually).toLocaleString()}),p.jsx(T.Cell,{children:Math.round(t.yearTwo.totalHoursSavedAnnually).toLocaleString()}),p.jsx(T.Cell,{children:Math.round(t.yearThree.totalHoursSavedAnnually).toLocaleString()})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"FTE Savings"}),p.jsx(T.Cell,{children:t.yearOne.fullTimeEquivalentSavings.toFixed(1)}),p.jsx(T.Cell,{children:t.yearTwo.fullTimeEquivalentSavings.toFixed(1)}),p.jsx(T.Cell,{children:t.yearThree.fullTimeEquivalentSavings.toFixed(1)})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"Productivity Benefits"}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearOne.productivityBenefits,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearTwo.productivityBenefits,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearThree.productivityBenefits,currency:e,locale:n})})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"Benefits From Qualified Leads"}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearOne.benefitsFromQualifiedLeads,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearTwo.benefitsFromQualifiedLeads,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearThree.benefitsFromQualifiedLeads,currency:e,locale:n})})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"Total AgentForce Costs"}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearOne.totalAgentforceCosts,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearTwo.totalAgentforceCosts,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearThree.totalAgentforceCosts,currency:e,locale:n})})]}),p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:"Net Benefit"}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearOne.netBenefit,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearTwo.netBenefit,currency:e,locale:n})}),p.jsx(T.Cell,{children:p.jsx(q,{value:t.yearThree.netBenefit,currency:e,locale:n})})]})]})]}),CC={1:"1-service",2:"2-sales",3:"3-sdr"},N6=({setCurrentStep:t,setEnabledWizard:e,currentStep:n,nextCopy:i,backCopy:r,resultsCopy:s,skipCopy:o})=>{const a=CC[n],l=(c,u)=>{const d={event:"custEv_contentClick",blade:{name:"sf/marquee/agentforce-roi-wizard",position:"",module:{name:a,link:{url:"",text:u,elementType:"text"}}}};console.log("eventDetails",d),window.dataLayer&&window.dataLayer.push(k({},d))};return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"mt-8",children:n<3?p.jsx("button",{onClick:()=>t(c=>c+1),className:"flex min-h-[52px] w-full items-center justify-center rounded bg-sfprimary px-8 py-3 text-center font-sans font-bold tracking-tight text-white hover:bg-sfnavy",children:i}):p.jsx("button",{onClick:()=>e(!1),className:"flex min-h-[52px] w-full items-center justify-center rounded bg-sfprimary px-8 py-3 text-center font-sans font-bold tracking-tight text-white hover:bg-sfnavy",children:s})}),p.jsxs("div",{className:"mt-4 flex items-center justify-between",children:[n>1?p.jsx("button",{onClick:()=>{t(c=>c-1),l("back","Back")},className:"font-bold text-sfprimary underline hover:text-sfnavy hover:no-underline",children:r}):null,p.jsx("button",{onClick:()=>{e(!1),l("skip","Skip Survey")},className:"ml-auto font-bold text-sfprimary underline hover:text-sfnavy hover:no-underline",children:o})]})]})},Im=({enabledCalc:t,calcName:e,handleAnswer:n,currentStep:i,stepCopy:r,selectAgentsCopy:s,completeSurveyCopy:o,agentTypeCoach:a,questionCopy:l,questionYesCopy:c,questionYesDetailCopy:u,questionNoCopy:d,questionNoDetailCopy:f})=>{const h=CC[i],v=y=>{const x={event:"custEv_contentClick",blade:{name:"sf/marquee/agentforce-initial-questions",position:"",module:{name:y,link:{url:"",text:y,elementType:"button"}}}};console.log("eventDetails",x),window.dataLayer&&window.dataLayer.push(k({},x))};return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"text-center text-sm",children:[r," ",i," of 3"]}),p.jsx("h2",{className:"mb-0 text-center text-xl text-sky-950",children:s}),i===1?p.jsx("p",{className:"text-center",children:o}):null,p.jsx("div",{className:"flex justify-center",children:p.jsx(or.span,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},className:"inline-flex items-center rounded-full bg-[#F0F3FC] px-3 py-1 text-sm text-sky-950",children:p.jsx("strong",{children:a})})}),p.jsx(or.p,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},className:"mx-auto mb-8 w-full text-center text-xl sm:w-8/12",children:l}),p.jsxs("button",{onClick:()=>{n(e,!0),v(`${h}-yes`)},className:`flex items-center justify-between gap-4 rounded-lg px-6 py-5 shadow-md transition-all ${t?"ring-2 ring-[#0176D3] hover:ring-2 hover:ring-sky-950":"ring-1 ring-[#e6e6e6] hover:bg-[#EAF5FE] hover:ring-1 hover:ring-[#0176D3] focus:bg-[#EAF5FE] focus:ring-[#0176D3] focus:ring-offset-4"}`,"aria-description":c+" - "+u,children:[p.jsx("div",{className:"flex flex-col",children:p.jsx("p",{className:"text-left text-lg",children:p.jsx("strong",{children:c})})}),p.jsx("div",{children:t?p.jsx("div",{className:"h-3 w-3 rounded-full bg-[#0176D3] ring-1 ring-[#0176D3] ring-offset-4"}):p.jsx("div",{className:"h-3 w-3 rounded-full bg-white ring-1 ring-[#747474] ring-offset-4"})})]}),p.jsxs("button",{onClick:()=>{n(e,!1),v(`${h}-no`)},className:`flex items-center justify-between gap-4 rounded-lg px-6 py-5 shadow-md transition-all ${t?"ring-1 ring-[#e6e6e6] hover:bg-[#EAF5FE] hover:ring-1 hover:ring-[#0176D3] focus:bg-[#EAF5FE] focus:ring-[#0176D3] focus:ring-offset-4":"ring-2 ring-[#0176D3] hover:ring-2 hover:ring-sky-950"}`,"aria-description":d+" - "+f,children:[p.jsx("div",{className:"flex flex-col",children:p.jsx("p",{className:"text-left text-lg",children:p.jsx("strong",{children:d})})}),p.jsx("div",{children:t?p.jsx("div",{className:"h-3 w-3 rounded-full bg-white ring-1 ring-[#747474] ring-offset-4"}):p.jsx("div",{className:"h-3 w-3 rounded-full bg-[#0176D3] ring-1 ring-[#0176D3] ring-offset-4"})})]})]})},I6=({value:t,currency:e,locale:n,totalCopy:i,withAgentforceCopy:r,inactiveCopy:s,salesCoachCopy:o,sdrCopy:a,serviceCopy:l,salesCoachResults:c,sdrResults:u,serviceResults:d,enabledCalcs:f})=>{const[h,v]=_.useState(!0),[y,x]=_.useState(window.innerWidth),[m,g]=_.useState(0),[b,w]=_.useState(73),[P,E]=_.useState(56),{scrollY:A}=l_();Zx(A,"change",C=>{const R=A.getPrevious(),$=A.getVelocity(),I=230;R!==void 0&&RC&&m850&&m850?v(!1):v(!0)});const M=()=>{x(window.innerWidth)};_.useEffect(()=>{typeof window!="undefined"&&window.addEventListener("resize",M,!1)},[]);const S={background:"linear-gradient(90deg, #0529C1 0%, #B302FC 100%)",backgroundImage:` url('https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/12/bg-mointain-sticky-left_9e6e57.png'), url('https://wp.sfdcdigital.com/en-us/wp-content/uploads/sites/4/2024/12/bg-mointain-sticky-right_82471e.png'), linear-gradient(90deg, #0529C1 0%, #B302FC 100%) `,backgroundPosition:"left -15px top, right top 15px, 0 0",backgroundSize:"250px auto, 320px auto, cover",backgroundRepeat:"no-repeat, no-repeat, no-repeat",zIndex:999};return p.jsxs(or.div,{variants:{visible:{y:y>1280?b:P},hidden:{y:"-100%"}},initial:"hidden",animate:h?"hidden":"visible",style:S,transition:{duration:.3,ease:[.45,.14,.1,.97]},className:"fixed top-0 flex max-h-[92px] min-h-[60px] w-full items-stretch justify-center gap-2 p-2 text-white shadow-2xl sm:min-h-[92px]",children:[p.jsxs("div",{className:"flex flex-col gap-0 sm:flex-row sm:gap-2",children:[p.jsx("div",{className:"text-md inline-flex items-center justify-center font-display",children:i}),p.jsx("div",{className:"inline-flex min-w-[150px] items-center justify-center font-display text-3xl",children:p.jsx(q,{value:t,currency:e,locale:n})})]}),p.jsx("div",{className:"visible inline-flex items-center justify-center pl-2 text-sm max-sm:hidden",children:r}),p.jsxs("div",{className:"flew-row flex gap-3",children:[p.jsx("div",{className:"visible inline-flex items-center justify-center gap-2 rounded-lg ring-inset max-sm:hidden",children:p.jsxs("div",{className:"flex flex-col items-center justify-start gap-1",children:[p.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${f.serviceAgent?"bg-white text-[#753ADE]":"bg-white/10"}`,children:l}),p.jsx("p",{className:"font-sans text-base leading-normal tracking-tight",children:f.serviceAgent?p.jsx(q,{value:d,currency:e,locale:n}):s})]})}),p.jsx("div",{className:"text-md visible inline-flex items-center justify-center font-display max-sm:hidden",children:"+"}),p.jsx("div",{className:"visible inline-flex items-center justify-center gap-2 rounded-lg max-sm:hidden md:min-h-16",children:p.jsxs("div",{className:"flex flex-col items-center justify-start gap-1",children:[p.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${f.salesCoach?"bg-white text-[#753ADE]":"bg-white/10"}`,children:o}),p.jsx("p",{className:"font-sans text-base leading-normal tracking-tight",children:f.salesCoach?p.jsx(q,{value:c,currency:e,locale:n}):s})]})}),p.jsx("div",{className:"text-md visible inline-flex items-center justify-center font-display max-sm:hidden",children:"+"}),p.jsx("div",{className:"visible inline-flex items-center justify-center gap-2 max-sm:hidden",children:p.jsxs("div",{className:"flex flex-col items-center justify-start gap-1",children:[p.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${f.sdrAgent?"bg-white text-[#753ADE]":"bg-white/10"}`,children:a}),p.jsx("p",{className:"font-sans text-base leading-normal tracking-tight",children:f.sdrAgent?p.jsx(q,{value:u,currency:e,locale:n}):s})]})})]})]})},_a=({text1:t,text2:e,text3:n})=>p.jsxs("p",{className:"my-8 font-sans text-xs font-normal leading-[18px] tracking-tight text-black",children:[t,e&&p.jsxs(p.Fragment,{children:[p.jsx("br",{}),p.jsx("br",{}),e]}),n&&p.jsxs(p.Fragment,{children:[p.jsx("br",{}),p.jsx("br",{}),n]})]}),Om=({headline:t,item1:e,item2:n,item3:i})=>p.jsxs("div",{className:"flex w-full flex-col gap-6 pl-4",children:[p.jsx("h3",{className:"font-display text-xl font-semibold leading-7 text-sky-950",children:t}),p.jsxs("ul",{className:"ml-8 list-disc font-sans text-lg font-normal leading-7 tracking-tight text-neutral-900",children:[p.jsx("li",{children:e}),n&&p.jsx("li",{children:n}),i&&p.jsx("li",{children:i})]})]}),O6=(t,e)=>{var i,r;const n=document.querySelector('[data-component="table"]');n&&(n.querySelectorAll("tbody tr").forEach(o=>{var l,c;const a=o.querySelectorAll("td");if(a.length===2){const u=(l=a[0].textContent)==null?void 0:l.trim(),d=(c=a[1].textContent)==null?void 0:c.trim();u&&d&&t.hasOwnProperty(u)&&(t[u]=d)}}),e("Table")),n&&new URLSearchParams(window.location.search).get("showTable")!=="true"&&((i=document.querySelector('[data-blade-name="sf/simpletable"]'))==null||i.remove(),(r=document.querySelector('[data-blade-name="sf/simpletable"]'))==null||r.remove())},wa={ap:"USD",au:"AUD",in:"USD",ca:"USD",eu:"EUR",uk:"GBP",de:"EUR",fr:"EUR",jp:"JPY",br:"USD",es:"EUR",it:"EUR",nl:"EUR",mx:"USD",kr:"USD",se:"SEK",th:"USD",tw:"USD","fr-ca":"USD",us:"USD"},wr={USD:2,AUD:2.8,EUR:2,GBP:1.6,JPY:240,SEK:20},Ms={in:"en-IN",au:"en-AU",ca:"en-CA",uk:"en-GB",se:"sv-SE",th:"th-TH",kr:"ko-KR",tw:"zh-TW",de:"de-DE",fr:"fr-FR",jp:"ja-JP",it:"it-IT",es:"es-ES",nl:"nl-NL",mx:"es-MX","fr-ca":"fr-CA"},kC=Object.keys(Ms);function Vm(t){const e=wa[t],n=wr[e],i=Ms[t];return{currentCurrency:e,agentforcePrice:n,locale:i}}function V6(t){const{serviceEmployees:e,costPerEmployee:n,conversationsPerDay:i,serviceAgentCases:r,currentRegion:s}=t,o=Vm(s),a=e*n,l=i*e*260,u=75*e*12,d=r,f=r-r*.3,h=f-f*.3,v=l*o.agentforcePrice*(h/100),y=l*o.agentforcePrice*(f/100),x=l*o.agentforcePrice*(d/100),m=v+y+x,g=a*3,b=a*(1-h/100),w=a*(1-f/100),P=a*(1-d/100),E=b+w+P,A=(a+u)*(1-h/100),M=(a+u)*(1-f/100),S=(a+u)*(1-d/100),C=A+M+S,R=a+u-A-v,$=a+u-M-y,I=a+u-S-x,j=R+$+I,z=j/g*100;return{totalHumanCost:a,totalAnnualConversations:l,totalLicenseCost:u,costYear1:v,costYear2:y,costYear3:x,costTotal:m,costTotalAsIs:g,humanCostSavingsTotal:E,serviceRepCostTotal:C,totalSavings:j,totalSavingsPercentage:z,yearOne:h,yearTwo:f,yearThree:d,conversationsYear1:l*(h/100),conversationsYear2:l*(f/100),conversationsYear3:l*(d/100),humanCostSavingsYear1:b,humanCostSavingsYear2:w,humanCostSavingsYear3:P,serviceRepCostYear1:A,serviceRepCostYear2:M,serviceRepCostYear3:S,netSavingsYear1:R,netSavingsYear2:$,netSavingsYear3:I,currentCurrency:o.currentCurrency,locale:o.locale}}const z6=40,B6=50,K6=.25;function H6(t){const e=z6,n=B6,i=K6,r=Vm(t.currentRegion),s={yearThree:t.yearThreeTargetPercentage,yearTwo:t.yearThreeTargetPercentage*.7,yearOne:t.yearThreeTargetPercentage*.3};function o(v){const y=e*t.timeSpentOnLeadProspecting*i,x=t.numberOfSalesReps*n*y,m=x/(e*n),g=m*t.averageSalesRepSalary,b=t.numberOfSalesReps*n*t.leadsPerRepPerWeek,w=t.unengagedLeadsPerYear*v,P=w*t.leadConversionRate*t.averageDealSize*t.opportunityCloseRate*t.grossMargin,E=b+w,A=E*r.agentforcePrice,M=g+P,S=M-A;return{productivityImprovement:i,hoursSavedPerRepWeek:y,totalHoursSavedAnnually:x,fullTimeEquivalentSavings:m,productivityBenefits:g,totalLeadsTouchedByDigitalSdr:b,percentLeadsProspected:v,increasedLeadsFromProspecting:w,benefitsFromQualifiedLeads:P,totalLeadsProcessed:E,totalAgentforceCosts:A,totalAgentforceBenefits:M,netBenefit:S}}const a=o(s.yearTwo*.4),l=o(s.yearTwo),c=o(s.yearThree),u=a.productivityBenefits+a.benefitsFromQualifiedLeads+l.productivityBenefits+l.benefitsFromQualifiedLeads+c.productivityBenefits+c.benefitsFromQualifiedLeads,d=a.totalAgentforceCosts+l.totalAgentforceCosts+c.totalAgentforceCosts,f=(u-d)/d,h=[{year:"Year 1",netBenefit:a.netBenefit,productivityBenefits:a.productivityBenefits,benefitsFromQualifiedLeads:a.benefitsFromQualifiedLeads,totalAgentforceCosts:a.totalAgentforceCosts,totalAgentforceBenefits:a.totalAgentforceBenefits},{year:"Year 2",netBenefit:l.netBenefit,productivityBenefits:l.productivityBenefits,benefitsFromQualifiedLeads:l.benefitsFromQualifiedLeads,totalAgentforceCosts:l.totalAgentforceCosts,totalAgentforceBenefits:l.totalAgentforceBenefits},{year:"Year 3",netBenefit:c.netBenefit,productivityBenefits:c.productivityBenefits,benefitsFromQualifiedLeads:c.benefitsFromQualifiedLeads,totalAgentforceCosts:c.totalAgentforceCosts,totalAgentforceBenefits:c.totalAgentforceBenefits}];return{threeYearTotalBenefits:u,threeYearTotalCosts:d,threeYearROI:f,tableData:h,yearOne:a,yearTwo:l,yearThree:c,locale:r.locale,currentCurrency:r.currentCurrency,threeYearProductivityBenefits:a.productivityBenefits+l.productivityBenefits+c.productivityBenefits,threeYearBenefitsFromQualifiedLeads:a.benefitsFromQualifiedLeads+l.benefitsFromQualifiedLeads+c.benefitsFromQualifiedLeads}}const TC="agentforce_roi_state";function W6(t){try{localStorage.setItem(TC,JSON.stringify(t))}catch(e){console.error("Error saving state to localStorage:",e)}}function U6(){try{const t=localStorage.getItem(TC);return t?JSON.parse(t):null}catch(t){return console.error("Error loading state from localStorage:",t),null}}function Y6(t){const i=Vm(t.currentRegion),r=t.yearThreeProductivityTarget/100,s={yearOne:r*.5,yearTwo:r*.7,yearThree:r};function o(v){const y=40*t.timeSpentOnCoaching*v,x=t.numberOfSalesManagers*50*y,m=Math.ceil(x/(40*50)),g=m*t.averageSalesManagerSalary,b=t.numberOfSalesManagers*t.coachingConversationsPerWeek*50,w=b*i.agentforcePrice;return{productivityImprovement:v,hoursSavedPerManagerWeek:y,totalHoursSavedAnnually:x,fullTimeEquivalentSavings:m,productivityBenefits:g,totalAgentforceConversations:b,totalAgentforceInvestment:w}}const a=o(s.yearOne),l=o(s.yearTwo),c=o(s.yearThree),u=a.productivityBenefits+l.productivityBenefits+c.productivityBenefits,d=a.totalAgentforceInvestment+l.totalAgentforceInvestment+c.totalAgentforceInvestment,f=(u-d)/d;return{tableData:[{year:"Year 1",productivityBenefits:a.productivityBenefits,totalAgentforceInvestment:a.totalAgentforceInvestment,netBenefit:a.productivityBenefits-a.totalAgentforceInvestment},{year:"Year 2",productivityBenefits:l.productivityBenefits,totalAgentforceInvestment:l.totalAgentforceInvestment,netBenefit:l.productivityBenefits-l.totalAgentforceInvestment},{year:"Year 3",productivityBenefits:c.productivityBenefits,totalAgentforceInvestment:c.totalAgentforceInvestment,netBenefit:c.productivityBenefits-c.totalAgentforceInvestment}],threeYearTotalBenefits:u,threeYearTotalInvestment:d,threeYearROI:f,yearOne:a,yearTwo:l,yearThree:c,locale:i.locale,currentCurrency:i.currentCurrency}}function G6({appRegion:t,appDebug:e,appPdf:n,appPhaseTwo:i}){const[r,s]=_.useState("us"),[o,a]=_.useState("USD"),[l,c]=_.useState(2),[u,d]=_.useState("JSON"),[f,h]=_.useState(""),[v,y]=_.useState("en-US"),[x,m]=_.useState(()=>new URLSearchParams(window.location.search)),[g,b]=_.useState(()=>Number(x.get("serviceEmployees"))||20),[w,P]=_.useState(()=>Number(x.get("costPerEmployee"))||5e4),[E,A]=_.useState(()=>Number(x.get("conversationsPerDay"))||20),[M,S]=_.useState(()=>Number(x.get("serviceAgentCases"))||50),[C,R]=_.useState(40),[$,I]=_.useState(.4),[j,z]=_.useState(1e5),[L,F]=_.useState(40),[N,K]=_.useState(30),[U,V]=_.useState(200),[H,J]=_.useState(.3),[Y,ne]=_.useState(5e4),[oe,st]=_.useState(20),[Xn,Sr]=_.useState(2e5),[Ri,Sa]=_.useState(.2),[Pr,Ni]=_.useState(1e3),[Ds,mu]=_.useState(.1),[Cr,Pa]=_.useState(.2),[As,gu]=_.useState(.8),[ge,vu]=_.useState({serviceAgent:!0,salesCoach:!0,sdrAgent:!0}),[yu,Bm]=_.useState(0),[kr,Ca]=_.useState(!0),[Rt,wn]=_.useState(1);_.useEffect(()=>{const O=U6();O&&(b(O.serviceAgent.serviceEmployees),P(O.serviceAgent.costPerEmployee),A(O.serviceAgent.conversationsPerDay),S(O.serviceAgent.serviceAgentCases),R(O.salesCoach.numberOfSalesManagers),I(O.salesCoach.timeSpentOnCoaching),z(O.salesCoach.averageSalesManagerSalary),F(O.salesCoach.coachingConversationsPerWeek),K(O.salesCoach.yearThreeProductivityTarget),V(O.sdr.numberOfSalesReps),J(O.sdr.timeSpentOnLeadProspecting),ne(O.sdr.averageSalesRepSalary),st(O.sdr.leadsPerRepPerWeek),Sr(O.sdr.unengagedLeadsPerYear),Sa(O.sdr.leadConversionRate),Ni(O.sdr.averageDealSize),mu(O.sdr.opportunityCloseRate),Pa(O.sdr.grossMargin),gu(O.sdr.yearThreeTargetPercentage),vu(O.enabledCalculators),wn(O.currentStep),Ca(!O.wizardComplete))},[]),_.useEffect(()=>{W6({serviceAgent:{serviceEmployees:g,costPerEmployee:w,conversationsPerDay:E,serviceAgentCases:M,currentRegion:r},salesCoach:{numberOfSalesManagers:C,timeSpentOnCoaching:$,averageSalesManagerSalary:j,coachingConversationsPerWeek:L,yearThreeProductivityTarget:N,currentRegion:r},sdr:{numberOfSalesReps:U,timeSpentOnLeadProspecting:H,averageSalesRepSalary:Y,leadsPerRepPerWeek:oe,unengagedLeadsPerYear:Xn,leadConversionRate:Ri,averageDealSize:Pr,opportunityCloseRate:Ds,grossMargin:Cr,yearThreeTargetPercentage:As,currentRegion:r},enabledCalculators:ge,currentStep:Rt,wizardComplete:!kr,currentRegion:r,locale:v})},[g,w,E,M,C,$,j,L,N,U,H,Y,oe,Xn,Ri,Pr,Ds,Cr,As,ge,Rt,kr,r,v]);const qn=(O,X6)=>{vu(q6=>B(k({},q6),{[O]:X6}))};_.useEffect(()=>{O6(D,d)},[]),_.useEffect(()=>{const O=window.location.pathname.split("/")[1];t?(h(t),s(t),y(Ms[t]),a(wa[t]),c(wr[o]),P(25e3*wr[o])):O.length===2&&kC.includes(O)||O==="fr-ca"?(h(O),s(O),y(Ms[O]),a(wa[O]),c(wr[o]),P(25e3*wr[o])):v!=="en-US"&&(y(Ms[O]),a(wa[r]),c(wr[o]),P(25e3*wr[o]))},[t,r]);const de=V6({serviceEmployees:g,costPerEmployee:w,conversationsPerDay:E,serviceAgentCases:M,currentRegion:r}),Qe=Y6({numberOfSalesManagers:C,timeSpentOnCoaching:$,averageSalesManagerSalary:j,coachingConversationsPerWeek:L,yearThreeProductivityTarget:N,currentRegion:r}),Ie=H6({numberOfSalesReps:U,timeSpentOnLeadProspecting:H,averageSalesRepSalary:Y,leadsPerRepPerWeek:oe,unengagedLeadsPerYear:Xn,leadConversionRate:Ri,averageDealSize:Pr,opportunityCloseRate:Ds,grossMargin:Cr,yearThreeTargetPercentage:As,currentRegion:r});_.useEffect(()=>{const O=(ge.serviceAgent?de.totalSavings:0)+(ge.salesCoach?Qe.threeYearTotalBenefits-Qe.threeYearTotalInvestment:0)+(ge.sdrAgent?Ie.threeYearTotalBenefits-Ie.threeYearTotalCosts:0);Bm(O)},[de,Qe,Ie,ge]);const Qn=[{year:D.oblroi_chart_year_0,serviceRepCost:Math.max(0,de.totalHumanCost),cost:0,savings:0},{year:D.oblroi_chart_year_1,serviceRepCost:Math.max(0,de.serviceRepCostYear1),cost:Math.max(0,de.costYear1),savings:Math.max(0,de.netSavingsYear1)},{year:D.oblroi_chart_year_2,serviceRepCost:Math.max(0,de.serviceRepCostYear2),cost:Math.max(0,de.costYear2),savings:Math.max(0,de.netSavingsYear2)},{year:D.oblroi_chart_year_3,serviceRepCost:Math.max(0,de.serviceRepCostYear3),cost:Math.max(0,de.costYear3),savings:Math.max(0,de.netSavingsYear3)},{year:D.oblroi_chart_total,serviceRepCost:Math.max(0,de.serviceRepCostTotal),cost:Math.max(0,de.costTotal),savings:Math.max(0,de.totalSavings)}],ot=`${D.oblroi_service_agent_handling} ${Math.round(M)}${D.oblroi_conversations} $${Math.round(de.totalSavings)} ${D.oblroi_over_years}`,Ls=`${D.oblroi_chart_intro} $${Math.round(de.serviceRepCostYear1)} ${D.oblroi_chart_human_cost}, $${Math.round(de.costYear1)} ${D.oblroi_chart_agentforce_cost} $${Math.round(de.netSavingsYear1)} ${D.oblroi_chart_net_savings} ${D.oblroi_chart_year_1} $${Math.round(de.serviceRepCostYear2)} ${D.oblroi_chart_human_cost}, $${Math.round(de.costYear2)} ${D.oblroi_chart_agentforce_cost} $${Math.round(de.netSavingsYear2)} ${D.oblroi_chart_net_savings} ${D.oblroi_chart_in} ${D.oblroi_chart_year_2} . $${Math.round(de.serviceRepCostYear3)} ${D.oblroi_chart_human_cost}, $${Math.round(de.costYear3)} ${D.oblroi_chart_agentforce_cost} $${Math.round(de.netSavingsYear3)} ${D.oblroi_chart_net_savings} ${D.oblroi_chart_in} ${D.oblroi_chart_year_3} .`,Ee={service:{serviceEmployees:"service-service-employees",costPerEmployee:"service-cost-per-employee",conversationsPerDay:"service-conversations-per-day",serviceAgentCases:"service-automation-percent"},coach:{numberOfSalesManagers:"coach-manager-count",timeSpentOnCoaching:"coach-time-spent",yearThreeProductivityTarget:"coach-productivity-target",averageSalesManagerSalary:"coach-manager-salary",coachingConversationsPerWeek:"coach-weekly-conversations"},sdr:{numberOfSalesReps:"sdr-rep-count",timeSpentOnLeadProspecting:"sdr-prospecting-time",averageSalesRepSalary:"sdr-rep-salary",leadsPerRepPerWeek:"sdr-weekly-leads",unengagedLeadsPerYear:"sdr-unengaged-leads",leadConversionRate:"sdr-conversion-rate",averageDealSize:"sdr-deal-size",opportunityCloseRate:"sdr-close-rate",grossMargin:"sdr-margin",yearThreeTargetPercentage:"sdr-year3-target"}};return p.jsxs("div",{className:"bg-agentforce-light",children:[(e||new URLSearchParams(window.location.search).get("debug")==="true")&&p.jsx(A6,{currentRegion:r,locale:v,currentCurrency:o,agentforcePrice:l,copySource:u,totalSavings:de.totalSavings,validRegionPaths:kC,onRegionChange:O=>{y(Ms[O]),s(O),a(wa[O])}}),p.jsxs("div",{className:"flex min-h-screen flex-col items-center justify-center px-4 pb-10 pt-10 md:pt-16",children:[p.jsxs("section",{className:"max-w-[1280px] text-center md:max-w-[540px] lg:max-w-[768px]",children:[p.jsxs("h1",{className:"text-4xl text-sky-950 lg:text-5xl",children:[p.jsx("span",{className:"text-indigo-700",children:D.oblroi_headerEyebrow}),p.jsx("br",{}),D.oblroi_header]}),p.jsx("h2",{className:"mb-10 text-xl text-sky-950 md:mb-16 lg:text-2xl",children:D.oblroi_headerBottom})]}),kr?p.jsx("section",{className:"z-20 mx-auto mb-8 flex w-full max-w-[1280px] flex-col gap-8 p-0 sm:w-1/2 md:max-w-[540px] md:flex-col lg:max-w-[768px] xl:max-w-[1280px] 2xl:max-w-[1440px]",children:p.jsxs("div",{className:"relative flex w-full flex-col gap-3 self-start overflow-hidden rounded-2xl bg-white p-6 pt-12 shadow-lg sm:px-10 xl:flex-1",children:[p.jsx("div",{className:"absolute inset-0 top-0 h-2 w-full",style:{background:"linear-gradient(90deg, #02BEC7 -12.85%, #1E1D80 26.7%, #7B00E1 95.81%, #DC32EC 129.59%)"}}),Rt===1?p.jsx(Im,{enabledCalc:ge.serviceAgent,calcName:"serviceAgent",handleAnswer:qn,currentStep:Rt,stepCopy:D.oblroi_wizard_step,selectAgentsCopy:D.oblroi_wizard_select_agents,completeSurveyCopy:D.oblroi_wizard_complete_survey,agentTypeCoach:D.oblroi_agent_type_service,questionCopy:D.oblroi_wizard_question_3,questionYesCopy:D.oblroi_wizard_question_yes,questionNoCopy:D.oblroi_wizard_question_no}):null,Rt===2?p.jsx(Im,{enabledCalc:ge.salesCoach,calcName:"salesCoach",handleAnswer:qn,currentStep:Rt,stepCopy:D.oblroi_wizard_step,selectAgentsCopy:D.oblroi_wizard_select_agents,completeSurveyCopy:D.oblroi_wizard_complete_survey,agentTypeCoach:D.oblroi_agent_type_coach,questionCopy:D.oblroi_wizard_question_1,questionYesCopy:D.oblroi_wizard_question_yes,questionNoCopy:D.oblroi_wizard_question_no}):null,Rt===3?p.jsx(Im,{enabledCalc:ge.sdrAgent,calcName:"sdrAgent",handleAnswer:qn,currentStep:Rt,stepCopy:D.oblroi_wizard_step,selectAgentsCopy:D.oblroi_wizard_select_agents,completeSurveyCopy:D.oblroi_wizard_complete_survey,agentTypeCoach:D.oblroi_agent_type_sdr,questionCopy:D.oblroi_wizard_question_2,questionYesCopy:D.oblroi_wizard_question_yes,questionNoCopy:D.oblroi_wizard_question_no}):null,p.jsx(N6,{setCurrentStep:wn,setEnabledWizard:Ca,currentStep:Rt,nextCopy:D.oblroi_wizard_next,backCopy:D.oblroi_wizard_back,resultsCopy:D.oblroi_wizard_view_results,skipCopy:D.oblroi_wizard_skip})]})}):null,i&&kr===!1&&p.jsxs(p.Fragment,{children:[ge.salesCoach||ge.sdrAgent||ge.serviceAgent?p.jsx(I6,{value:yu,currency:o,locale:v,totalCopy:D.oblroi_sticky_total_copy,withAgentforceCopy:D.oblroi_sticky_withAgentforce_copy,inactiveCopy:D.oblroi_sticky_inactive_copy,salesCoachResults:Qe.threeYearTotalBenefits-Qe.threeYearTotalInvestment,sdrResults:Ie.threeYearTotalBenefits-Ie.threeYearTotalCosts,serviceResults:de.totalSavings,salesCoachCopy:D.oblroi_agent_type_coach,sdrCopy:D.oblroi_agent_type_sdr,serviceCopy:D.oblroi_agent_type_service,enabledCalcs:ge}):null,p.jsx("section",{className:"container z-20 mx-auto mb-8 flex flex-col gap-8 p-0 md:max-w-[540px] md:flex-col lg:max-w-[768px] xl:max-w-[1280px] xl:flex-row 2xl:max-w-[1440px]",children:p.jsxs("div",{className:"relative flex w-full flex-col self-start overflow-hidden rounded-2xl bg-white p-6 pt-8 shadow-lg md:p-8 xl:flex-1 ",children:[p.jsx("div",{className:"absolute inset-0 top-0 h-2 w-full",style:{background:"linear-gradient(90deg, #02BEC7 -12.85%, #1E1D80 26.7%, #7B00E1 95.81%, #DC32EC 129.59%)"}}),p.jsxs("div",{className:"inline-flex w-full flex-col items-center justify-start",children:[ge.salesCoach||ge.sdrAgent||ge.serviceAgent?p.jsxs(p.Fragment,{children:[p.jsx("h2",{className:"mb-4 max-w-lg text-center font-display text-2xl leading-9 text-sfnavy sm:text-2xl sm:leading-10",children:D.oblroi_resultsHeadline}),p.jsx("div",{className:"mb-4 text-center text-display-2 font-semibold sm:text-display-1",children:p.jsx("div",{style:{background:"linear-gradient(90deg, #02BEC7 -12.85%, #1E1D80 26.7%, #7B00E1 95.81%, #DC32EC 129.59%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",WebkitTextStrokeWidth:"1",WebkitTextStrokeColor:"#8E55E4",fontFeatureSettings:'"liga" off, "clig" off',accentColor:"#8E55E4"},children:p.jsx(PC,{value:yu,currency:o,locale:v})})}),p.jsx("p",{className:"mb-1 font-sans text-base font-normal leading-normal tracking-tight text-sky-950",children:D.oblroi_sticky_active_copy}),p.jsxs("div",{className:"mb-4 flex w-full flex-col justify-center gap-3 md:flex-row",children:[p.jsx("div",{className:"inline-flex items-start justify-center gap-2",children:p.jsxs("div",{className:"inline-flex flex-row items-center justify-start gap-1 md:flex-col",children:[p.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${ge.serviceAgent?"bg-[#F0F3FC]":"bg-[#F0F3FC]/50 text-sky-950/50"}`,children:D.oblroi_agent_type_service_short}),p.jsx("p",{className:"font-sans text-base leading-normal tracking-tight text-sky-950",children:ge.serviceAgent?p.jsx(q,{value:de.totalSavings,currency:o,locale:v}):D.oblroi_sticky_inactive_copy})]})}),p.jsx("div",{className:"text-md visible inline-flex items-center justify-center font-display max-sm:hidden",children:"+"}),p.jsx("div",{className:"inline-flex items-start justify-center gap-2",children:p.jsxs("div",{className:"inline-flex flex-row items-center justify-start gap-1 md:flex-col",children:[p.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${ge.salesCoach?"bg-[#F0F3FC]":"bg-[#F0F3FC]/50 text-sky-950/50"}`,children:D.oblroi_agent_type_coach_short}),p.jsx("p",{className:"font-sans text-base leading-normal tracking-tight text-sky-950",children:ge.salesCoach?p.jsx(q,{value:Qe.threeYearTotalBenefits-Qe.threeYearTotalInvestment,currency:o,locale:v}):D.oblroi_sticky_inactive_copy})]})}),p.jsx("div",{className:"text-md visible inline-flex items-center justify-center font-display max-sm:hidden",children:"+"}),p.jsx("div",{className:"inline-flex items-start justify-center gap-2",children:p.jsxs("div",{className:"inline-flex flex-row items-center justify-start gap-1 md:flex-col",children:[p.jsx("h6",{className:`rounded-full px-3 py-1 text-center font-sans text-sm font-bold leading-tight ${ge.sdrAgent?"bg-[#F0F3FC]":"bg-[#F0F3FC]/50 text-sky-950/50"}`,children:D.oblroi_agent_type_sdr_short}),p.jsx("p",{className:"font-sans text-base leading-normal tracking-tight text-sky-950",children:ge.sdrAgent?p.jsx(q,{value:Ie.threeYearTotalBenefits-Ie.threeYearTotalCosts,currency:o,locale:v}):D.oblroi_sticky_inactive_copy})]})})]}),p.jsx("div",{className:"mb-5 font-sans text-xl font-bold leading-[30px] tracking-tight text-neutral-900",children:D.oblroi_resultsDescription}),p.jsxs("div",{className:"mb-8 flex w-full flex-col gap-4 md:w-1/2 md:flex-row",children:[n&&p.jsx(ji,{variant:"primary",url:`${window.location.hostname==="localhost"?"https://www-staging.salesforce.com":""}/form/agentforce/roi-report/?serviceEmployees=${g}&costPerEmployee=${w}&conversationsPerDay=${E}&serviceAgentCases=${M}`,target:"_blank",children:"Download report"}),p.jsx(ji,{url:`${window.location.origin}${f?`/${f}`:""}/form/agentforce/contact-us/?d=pb`,target:"_blank",variant:"primary",children:D.oblroi_cta1Label}),!n&&p.jsx(ji,{variant:"secondary",url:`${window.location.origin}${f?`/${f}`:""}/agentforce`,children:D.oblroi_cta2Label})]})]}):p.jsxs("div",{className:"mb-5 text-center",children:[p.jsx("h3",{className:"pb-2 font-display text-xl font-semibold text-sky-950",children:D.oblroi_no_calculators_headline}),p.jsx("p",{className:"pt-2 font-sans text-base text-neutral-700",children:D.oblroi_no_calculators_description}),p.jsxs("div",{className:"flex w-full flex-col items-center justify-center gap-10 pt-6 font-display text-sky-950 md:flex-row",children:[p.jsx("div",{className:"w-full p-4 sm:min-w-[200px] sm:max-w-[250px]",children:D.oblroi_service_marketing_headline}),p.jsx("div",{className:"w-full p-4 sm:min-w-[200px] sm:max-w-[250px]",children:D.oblroi_sdr_marketing_headline}),p.jsx("div",{className:"w-full p-4 sm:min-w-[200px] sm:max-w-[250px]",children:D.oblroi_coach_marketing_headline})]}),p.jsx("div",{className:"my-6 flex",children:p.jsxs("div",{className:"mx-auto flex w-full flex-col gap-4 md:flex-row",children:[p.jsx("div",{className:"w-full",children:p.jsx(ji,{url:`${window.location.origin}${f?`/${f}`:""}/form/agentforce/contact-us/?d=pb`,target:"_blank",variant:"primary",children:D.oblroi_cta1Label})}),p.jsx("div",{className:"w-full",children:p.jsx(ji,{variant:"secondary",url:`${window.location.origin}${f?`/${f}`:""}/agentforce`,children:D.oblroi_cta2Label})})]})})]}),p.jsx("p",{className:"mb-8 font-sans text-sm font-normal leading-normal tracking-tight text-neutral-700",children:D.oblroi_calculator_toggle_info}),p.jsx("div",{role:"region",id:"agentforce-savings-info",className:"sr-only","aria-live":"polite","aria-atomic":"true",children:ot})]}),p.jsxs(Ft,{children:[p.jsxs(Ft.Item,{defaultOpen:ge.serviceAgent,onToggle:O=>qn("serviceAgent",O),children:[p.jsx(Ft.Header,{children:p.jsxs("div",{className:"flex items-center gap-4 pt-1",children:[p.jsxs("h5",{className:"font-display text-xl font-semibold leading-normal text-sky-950 hover:text-sky-900",children:[D.oblroi_agent_type_service," "]}),p.jsx("p",{className:"font-sans text-base font-normal leading-normal tracking-tight text-neutral-900 hidden md:block",children:D.oblroi_service_description})]})}),p.jsxs(Ft.Panel,{children:[p.jsx(zm,{children:p.jsxs("div",{className:"flex w-full flex-col gap-6",children:[p.jsxs("p",{className:"font-sans text-sm font-normal leading-tight text-neutral-700",children:["(",D.oblroi_form_required,")"]}),p.jsx(xt,{label:D.oblroi_service_employees_label,info:D.oblroi_service_employees_info,value:g,inputName:Ee.service.serviceEmployees,minValue:1,maxValue:1e5,formatOptions:{maximumFractionDigits:0},onChange:O=>isNaN(O)?b(1):b(Number(O)),validationBehavior:"native",errorMessage:D.oblroi_error_service_employees,isRequired:!0}),p.jsx(xt,{label:D.oblroi_service_cost_per_employee_label,info:D.oblroi_service_cost_per_employee_info,value:w,inputName:Ee.service.costPerEmployee,minValue:1,maxValue:1e6,formatOptions:{style:"currency",currency:o||"USD",maximumFractionDigits:0},onChange:O=>isNaN(O)?P(0):P(Number(O)),validationBehavior:"native",errorMessage:D.oblroi_error_cost_per_employee,isRequired:!0}),p.jsx(xt,{label:D.oblroi_service_conversations_per_day_label,info:D.oblroi_service_conversations_per_day_info,value:E,inputName:Ee.service.conversationsPerDay,formatOptions:{maximumFractionDigits:0},onChange:O=>isNaN(O)?A(1):A(Number(O)),validationBehavior:"native",errorMessage:D.oblroi_error_conversations_handled,isRequired:!0}),p.jsx(zn,{label:D.oblroi_service_automation_percent_label,info:D.oblroi_service_automation_percent_info,value:M,inputName:Ee.service.serviceAgentCases,onChange:S,maxValue:100,minValue:1,suffix:"%",step:1})]})}),p.jsxs("div",{className:"flex w-full flex-col gap-6",children:[p.jsxs(T,{children:[p.jsx(T.Head,{children:p.jsxs(T.Row,{children:[p.jsx(T.HeaderCell,{children:" "}),p.jsx(T.HeaderCell,{children:D.oblroi_chart_year_1}),p.jsx(T.HeaderCell,{children:D.oblroi_chart_year_2}),p.jsx(T.HeaderCell,{children:D.oblroi_chart_year_3}),p.jsx(T.HeaderCell,{children:D.oblroi_chart_total})]})}),p.jsxs(T.Body,{children:[p.jsxs(T.Row,{children:[p.jsx(T.HeaderCell,{children:D.oblroi_resultsTable_human_cost}),Qn.slice(1).map(O=>p.jsx(T.Cell,{children:p.jsx(q,{value:O.serviceRepCost,currency:o,locale:v})},O.year))]}),p.jsxs(T.Row,{children:[p.jsxs(T.HeaderCell,{children:[D.oblroi_resultsTable_agentforce_investment,"*"]}),Qn.slice(1).map(O=>p.jsx(T.Cell,{children:p.jsx(q,{value:O.cost,currency:o,locale:v})},O.year))]}),p.jsxs(T.Row,{children:[p.jsx(T.HeaderCell,{children:D.oblroi_resultsTable_your_savings}),Qn.slice(1).map(O=>p.jsx(T.Cell,{children:p.jsx(q,{value:O.savings,currency:o,locale:v})},O.year))]})]})]}),e&&p.jsx("div",{className:"flex min-h-[400px] w-full flex-row",children:p.jsx(oC,{data:Qn,ariaLabel:Ls,currency:o,locale:v})}),p.jsx(Om,{headline:D.oblroi_service_marketing_headline,item1:D.oblroi_service_marketing_item1,item2:D.oblroi_service_marketing_item2,item3:D.oblroi_service_marketing_item3}),p.jsx(_a,{text1:D.oblroi_service_legalDisclaimer_1,text2:D.oblroi_service_legalDisclaimer_2})]})]})]}),p.jsxs(Ft.Item,{defaultOpen:ge.salesCoach,onToggle:O=>qn("salesCoach",O),children:[p.jsx(Ft.Header,{children:p.jsxs("div",{className:"flex items-center gap-4 pt-1",children:[p.jsxs("h5",{className:"text-left font-display text-xl font-semibold leading-normal text-sky-950 hover:text-sky-900",children:[D.oblroi_agent_type_coach," "]}),p.jsx("p",{className:"text-left font-sans text-base font-normal leading-normal tracking-tight text-neutral-900 hidden md:block",children:D.oblroi_coach_description})]})}),p.jsxs(Ft.Panel,{children:[p.jsx(zm,{children:p.jsxs("div",{className:"flex w-full flex-col gap-6",children:[p.jsxs("p",{className:"font-sans text-sm font-normal leading-tight text-neutral-700",children:["(",D.oblroi_form_required,")"]}),p.jsx(xt,{label:D.oblroi_coach_manager_count_label,info:D.oblroi_coach_manager_count_info,value:C,inputName:Ee.coach.numberOfSalesManagers,onChange:O=>R(Number(O)),minValue:1,maxValue:1e3,formatOptions:{maximumFractionDigits:0},isRequired:!0}),p.jsx(zn,{label:D.oblroi_coach_time_spent_label,info:D.oblroi_coach_time_spent_info,value:$*100,onChange:O=>I(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Ee.coach.timeSpentOnCoaching}),p.jsx(zn,{label:D.oblroi_coach_productivity_target_label,info:D.oblroi_coach_productivity_target_info,value:N,onChange:K,maxValue:100,minValue:1,suffix:"%",step:1,inputName:Ee.coach.yearThreeProductivityTarget}),p.jsx(xt,{label:D.oblroi_coach_manager_salary_label,info:D.oblroi_coach_manager_salary_info,value:j,onChange:O=>z(Number(O)),formatOptions:{style:"currency",currency:o,maximumFractionDigits:0},isRequired:!0,inputName:Ee.coach.averageSalesManagerSalary}),p.jsx(xt,{label:D.oblroi_coach_weekly_conversations_label,info:D.oblroi_coach_weekly_conversations_info,value:L,onChange:O=>F(Number(O)),minValue:1,maxValue:100,formatOptions:{maximumFractionDigits:0},isRequired:!0,inputName:Ee.coach.coachingConversationsPerWeek})]})}),p.jsxs("div",{className:"flex w-full flex-col gap-6",children:[p.jsxs(T,{children:[p.jsx(T.Head,{children:p.jsxs(T.Row,{children:[p.jsx(T.HeaderCell,{children:" "}),p.jsx(T.HeaderCell,{children:D.oblroi_chart_year_1}),p.jsx(T.HeaderCell,{children:D.oblroi_chart_year_2}),p.jsx(T.HeaderCell,{children:D.oblroi_chart_year_3}),p.jsx(T.HeaderCell,{children:D.oblroi_chart_total})]})}),p.jsxs(T.Body,{children:[p.jsxs(T.Row,{children:[p.jsx(T.HeaderCell,{children:D.oblroi_results_table_productivity}),Qe.tableData.map(O=>p.jsx(T.Cell,{children:p.jsx(q,{value:O.productivityBenefits,currency:o,locale:v})},O.year)),p.jsx(T.Cell,{children:p.jsx(q,{value:Qe.threeYearTotalBenefits,currency:o,locale:v})})]}),p.jsxs(T.Row,{children:[p.jsx(T.HeaderCell,{children:D.oblroi_resultsTable_agentforce_investment}),Qe.tableData.map(O=>p.jsx(T.Cell,{children:p.jsx(q,{value:O.totalAgentforceInvestment,currency:o,locale:v})},O.year)),p.jsx(T.Cell,{children:p.jsx(q,{value:Qe.threeYearTotalInvestment,currency:o,locale:v})})]}),p.jsxs(T.Row,{children:[p.jsx(T.HeaderCell,{children:D.oblroi_results_table_net_benefit}),Qe.tableData.map(O=>p.jsx(T.Cell,{children:p.jsx(q,{value:O.netBenefit,currency:o,locale:v})},O.year)),p.jsx(T.Cell,{children:p.jsx(q,{value:Qe.threeYearTotalBenefits-Qe.threeYearTotalInvestment,currency:o,locale:v})})]})]})]}),p.jsx(Om,{headline:D.oblroi_coach_marketing_headline,item1:D.oblroi_coach_marketing_item1,item2:D.oblroi_coach_marketing_item2,item3:D.oblroi_coach_marketing_item3}),p.jsx(_a,{text1:D.oblroi_coach_legalDisclaimer_1,text2:D.oblroi_coach_legalDisclaimer_2,text3:D.oblroi_coach_legalDisclaimer_3}),e&&p.jsx(F6,{salesCoachResults:Qe,currentCurrency:o,locale:v})]})]})]}),p.jsxs(Ft.Item,{defaultOpen:ge.sdrAgent,onToggle:O=>qn("sdrAgent",O),children:[p.jsx(Ft.Header,{children:p.jsxs("div",{className:"flex items-center gap-4 pt-1",children:[p.jsx("h5",{className:"font-display text-xl font-semibold text-sky-950 hover:text-sky-900",children:D.oblroi_agent_type_sdr}),p.jsx("p",{className:"font-sans text-base font-normal leading-normal tracking-tight text-neutral-900 hidden md:block",children:D.oblroi_sdr_description})]})}),p.jsxs(Ft.Panel,{children:[p.jsx(zm,{children:p.jsxs("div",{className:"flex w-full flex-col gap-6",children:[p.jsxs("p",{className:"font-sans text-sm font-normal leading-tight text-neutral-700",children:["(",D.oblroi_form_required,")"]}),p.jsx(xt,{label:D.oblroi_sdr_rep_count_label,info:D.oblroi_sdr_rep_count_info,value:U,inputName:Ee.sdr.numberOfSalesReps,onChange:O=>V(Number(O)),minValue:1,maxValue:1e4,formatOptions:{maximumFractionDigits:0},isRequired:!0}),p.jsx(zn,{label:D.oblroi_sdr_prospecting_time_label,info:D.oblroi_sdr_prospecting_time_info,value:H*100,onChange:O=>J(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Ee.sdr.timeSpentOnLeadProspecting}),p.jsx(xt,{label:D.oblroi_sdr_rep_salary_label,info:D.oblroi_sdr_rep_salary_info,value:Y,onChange:O=>ne(Number(O)),formatOptions:{style:"currency",currency:o,maximumFractionDigits:0},isRequired:!0,inputName:Ee.sdr.averageSalesRepSalary}),p.jsx(xt,{label:D.oblroi_sdr_weekly_leads_label,info:D.oblroi_sdr_weekly_leads_info,value:oe,onChange:O=>st(Number(O)),minValue:1,maxValue:1e3,formatOptions:{maximumFractionDigits:0},isRequired:!0,inputName:Ee.sdr.leadsPerRepPerWeek}),p.jsx(xt,{label:D.oblroi_sdr_unengaged_leads_label,info:D.oblroi_sdr_unengaged_leads_info,value:Xn,onChange:O=>Sr(Number(O)),minValue:0,formatOptions:{maximumFractionDigits:0},isRequired:!0,inputName:Ee.sdr.unengagedLeadsPerYear}),p.jsx(zn,{label:D.oblroi_sdr_year3_target_label,info:D.oblroi_sdr_year3_target_info,value:As*100,onChange:O=>gu(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Ee.sdr.yearThreeTargetPercentage}),p.jsx(zn,{label:D.oblroi_sdr_conversion_rate_label,info:D.oblroi_sdr_conversion_rate_info,value:Ri*100,onChange:O=>Sa(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Ee.sdr.leadConversionRate}),p.jsx(xt,{label:D.oblroi_sdr_deal_size_label,info:D.oblroi_sdr_deal_size_info,value:Pr,onChange:O=>Ni(Number(O)),formatOptions:{style:"currency",currency:o,maximumFractionDigits:0},isRequired:!0,inputName:Ee.sdr.averageDealSize}),p.jsx(zn,{label:D.oblroi_sdr_close_rate_label,info:D.oblroi_sdr_close_rate_info,value:Ds*100,onChange:O=>mu(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Ee.sdr.opportunityCloseRate}),p.jsx(zn,{label:D.oblroi_sdr_margin_label,info:D.oblroi_sdr_margin_info,value:Cr*100,onChange:O=>Pa(O/100),maxValue:100,minValue:1,suffix:"%",step:1,inputName:Ee.sdr.grossMargin})]})}),p.jsxs("div",{className:"flex w-full flex-col gap-6",children:[p.jsxs(T,{children:[p.jsx(T.Head,{children:p.jsxs(T.Row,{children:[p.jsx(T.HeaderCell,{children:" "}),p.jsx(T.HeaderCell,{children:D.oblroi_chart_year_1}),p.jsx(T.HeaderCell,{children:D.oblroi_chart_year_2}),p.jsx(T.HeaderCell,{children:D.oblroi_chart_year_3}),p.jsx(T.HeaderCell,{children:D.oblroi_chart_total})]})}),p.jsxs(T.Body,{children:[p.jsxs(T.Row,{children:[p.jsx(T.HeaderCell,{children:D.oblroi_results_table_productivity}),Ie.tableData.map(O=>p.jsx(T.Cell,{children:p.jsx(q,{value:O.productivityBenefits,currency:o,locale:v})},O.year)),p.jsx(T.Cell,{children:p.jsx(q,{value:Ie.threeYearProductivityBenefits,currency:o,locale:v})})]}),p.jsxs(T.Row,{children:[p.jsx(T.HeaderCell,{children:D.oblroi_results_table_qualified_leads}),Ie.tableData.map(O=>p.jsx(T.Cell,{children:p.jsx(q,{value:O.benefitsFromQualifiedLeads,currency:o,locale:v})},O.year)),p.jsx(T.Cell,{children:p.jsx(q,{value:Ie.threeYearBenefitsFromQualifiedLeads,currency:o,locale:v})})]}),p.jsxs(T.Row,{children:[p.jsx(T.HeaderCell,{children:D.oblroi_resultsTable_agentforce_investment}),Ie.tableData.map(O=>p.jsx(T.Cell,{children:p.jsx(q,{value:O.totalAgentforceCosts,currency:o,locale:v})},O.year)),p.jsx(T.Cell,{children:p.jsx(q,{value:Ie.threeYearTotalCosts,currency:o,locale:v})})]}),p.jsxs(T.Row,{children:[p.jsx(T.HeaderCell,{children:D.oblroi_results_table_net_benefit}),Ie.tableData.map(O=>p.jsx(T.Cell,{children:p.jsx(q,{value:O.netBenefit,currency:o,locale:v})},O.year)),p.jsx(T.Cell,{children:p.jsx(q,{value:Ie.threeYearTotalBenefits-Ie.threeYearTotalCosts,currency:o,locale:v})})]})]})]}),p.jsx(Om,{headline:D.oblroi_sdr_marketing_headline,item1:D.oblroi_sdr_marketing_item1,item2:D.oblroi_sdr_marketing_item2,item3:D.oblroi_sdr_marketing_item3}),p.jsx(_a,{text1:D.oblroi_sdr_legalDisclaimer_1,text2:D.oblroi_sdr_legalDisclaimer_2,text3:D.oblroi_sdr_legalDisclaimer_3}),e&&p.jsx(R6,{sdrResults:Ie,currentCurrency:o,locale:v})]})]})]})]}),p.jsx(_a,{text1:D.oblroi_all_legalDisclaimer,text2:D.oblroi_all_legalDisclaimer_2})]})})]}),!i&&p.jsxs("section",{className:"container z-20 mx-auto flex flex-col gap-8 p-0 md:max-w-[540px] md:flex-col lg:max-w-[768px] xl:max-w-[1280px] xl:flex-row 2xl:max-w-[1440px]",children:[p.jsxs("div",{className:"w-full self-start rounded-2xl bg-white px-6 py-8 shadow-lg xl:w-[320px]",children:[p.jsx("h3",{className:"mb-6 font-display text-2xl text-sfnavy",children:D.oblroi_formHeadline}),p.jsxs("p",{className:"mb-6 font-sans text-sm font-normal leading-tight text-neutral-700",children:["(",D.oblroi_form_required,")"]}),p.jsxs("div",{className:"flex w-full flex-col gap-6",children:[p.jsx(xt,{label:D.oblroi_service_employees_label,info:D.oblroi_service_employees_info,value:g,inputName:Ee.service.serviceEmployees,minValue:1,maxValue:1e5,formatOptions:{maximumFractionDigits:0},onChange:O=>isNaN(O)?b(1):b(Number(O)),validationBehavior:"native",errorMessage:D.oblroi_error_service_employees,isRequired:!0}),p.jsx(xt,{label:D.oblroi_service_cost_per_employee_label,info:D.oblroi_service_cost_per_employee_info,value:w,inputName:Ee.service.costPerEmployee,minValue:1,maxValue:1e6,formatOptions:{style:"currency",currency:o||"USD",maximumFractionDigits:0},onChange:O=>isNaN(O)?P(0):P(Number(O)),validationBehavior:"native",errorMessage:D.oblroi_error_cost_per_employee,isRequired:!0}),p.jsx(xt,{label:D.oblroi_service_conversations_per_day_label,info:D.oblroi_service_conversations_per_day_info,value:E,inputName:Ee.service.conversationsPerDay,formatOptions:{maximumFractionDigits:0},onChange:O=>isNaN(O)?A(1):A(Number(O)),validationBehavior:"native",errorMessage:D.oblroi_error_conversations_handled,isRequired:!0}),p.jsx(zn,{label:D.oblroi_service_automation_percent_label,info:D.oblroi_service_automation_percent_info,value:M,inputName:Ee.service.serviceAgentCases,onChange:S,maxValue:100,minValue:1,suffix:"%",step:1})]})]}),p.jsxs("div",{className:"relative flex w-full flex-col gap-6 self-start overflow-hidden rounded-2xl bg-white p-8 pt-12 shadow-lg sm:px-10 xl:flex-1",children:[p.jsx("div",{className:"absolute inset-0 top-0 h-2 w-full",style:{background:"linear-gradient(90deg, #02BEC7 -12.85%, #1E1D80 26.7%, #7B00E1 95.81%, #DC32EC 129.59%)"}}),p.jsxs("div",{className:"inline-flex w-full flex-col items-center justify-start",children:[p.jsxs("h2",{className:"mb-4 max-w-lg text-center font-display text-2xl leading-9 text-sfnavy sm:text-2xl sm:leading-10",children:[D.oblroi_resultsHeadline_part1," ",p.jsxs("span",{className:"text-indigo-500",children:[M,"%"]})," ",D.oblroi_resultsHeadline_part2.replace(/%/g,"")]}),p.jsx("div",{className:"mb-4 text-center text-display-2 font-semibold sm:text-display-1",children:p.jsx("div",{style:{background:"linear-gradient(90deg, #02BEC7 -12.85%, #1E1D80 26.7%, #7B00E1 95.81%, #DC32EC 129.59%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",WebkitTextStrokeWidth:"1",WebkitTextStrokeColor:"#8E55E4",fontFeatureSettings:'"liga" off, "clig" off',accentColor:"#8E55E4"},children:p.jsx(PC,{value:de.totalSavings,currency:o,locale:v})})}),p.jsx("div",{className:"mb-5 font-sans text-xl font-bold leading-[30px] tracking-tight text-neutral-900",children:D.oblroi_resultsDescription}),p.jsx("div",{role:"region",id:"agentforce-savings-info",className:"sr-only","aria-live":"polite","aria-atomic":"true",children:ot}),p.jsxs(jA,{children:[p.jsxs(FA,{children:[p.jsx(qw,{id:"table",children:"Table"}),p.jsx(qw,{id:"chart",children:"Chart"})]}),p.jsx(Qw,{id:"table",children:p.jsx("div",{className:"flex w-full flex-col",children:p.jsxs(T,{children:[p.jsx(T.Head,{children:p.jsxs(T.Row,{children:[p.jsx(T.HeaderCell,{children:D.oblroi_results_table_year}),p.jsx(T.HeaderCell,{children:D.oblroi_results_table_productivity}),p.jsx(T.HeaderCell,{children:D.oblroi_results_table_agent_cost}),p.jsx(T.HeaderCell,{children:D.oblroi_results_table_net_benefit})]})}),p.jsx(T.Body,{children:Qn.map(O=>p.jsxs(T.Row,{children:[p.jsx(T.Cell,{children:O.year}),p.jsx(T.Cell,{children:p.jsx(q,{value:O.serviceRepCost,currency:o,locale:v})}),p.jsx(T.Cell,{children:p.jsx(q,{value:O.cost,currency:o,locale:v})}),p.jsx(T.Cell,{children:p.jsx(q,{value:O.savings,currency:o,locale:v})})]},O.year))})]})})}),p.jsx(Qw,{id:"chart",children:p.jsx("div",{className:"relative flex w-full flex-col overflow-x-auto max-sm:h-[40vh] max-sm:w-[75vw]",children:p.jsx(oC,{data:Qn,ariaLabel:Ls,currency:o,locale:v})})})]}),p.jsx(_a,{text1:D.oblroi_service_legalDisclaimer_1,text2:D.oblroi_service_legalDisclaimer_2,text3:D.oblroi_service_legalDisclaimer_3}),p.jsxs("div",{className:"flex w-full flex-col gap-4 md:flex-row",children:[p.jsx(ji,{url:`${window.location.origin}${f?`/${f}`:""}/form/agentforce/contact-us/?d=pb`,target:"_blank",children:D.oblroi_cta1Label}),!n&&p.jsx(ji,{variant:"secondary",url:`${window.location.origin}${f?`/${f}`:""}/agentforce`,children:D.oblroi_cta2Label}),n&&p.jsx(ji,{variant:"secondary",url:`${window.location.hostname==="localhost"?"https://www-staging.salesforce.com":""}/form/agentforce/roi-report/?serviceEmployees=${g}&costPerEmployee=${w}&conversationsPerDay=${E}&serviceAgentCases=${M}`,target:"_blank",children:"Get PDF report"})]})]})]})]})]}),p.jsx(D6,{})]})}const zm=({children:t})=>p.jsx("div",{className:"input-panel w-full gap-2 self-start rounded border border-neutral-200 bg-white p-4 shadow lg:w-1/4",children:t});document.querySelectorAll("[id^='wps-agentforce-roi']").forEach(t=>{const e=t.dataset||{};ku.createRoot(t).render(p.jsx(G.StrictMode,{children:p.jsx(G6,k({},e))}))})});