@local-logic/design-system 0.7.37 → 0.7.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -3742,14 +3742,6 @@ function jc(e) {
3742
3742
  return Hn(e) ? _c(e, B0) : Di(e) ? [e] : Rc(j0(U0(e)));
3743
3743
  }
3744
3744
  var rr = { exports: {} }, W = {};
3745
- /** @license React v16.13.1
3746
- * react-is.production.min.js
3747
- *
3748
- * Copyright (c) Facebook, Inc. and its affiliates.
3749
- *
3750
- * This source code is licensed under the MIT license found in the
3751
- * LICENSE file in the root directory of this source tree.
3752
- */
3753
3745
  var sa;
3754
3746
  function W0() {
3755
3747
  if (sa) return W;
package/dist/index.umd.js CHANGED
@@ -70,14 +70,7 @@
70
70
  fill-[var(--fill)]
71
71
  group-hover/color-icon:fill-base-white
72
72
  group-data-[is-active=true]/color-icon:fill-base-white
73
- `;function Is({element:e,backgroundColor:t="gray",fillColor:n="black"}){return v.jsx("span",{className:dh,"data-testid":"icon-background","data-background-color":t,"data-fill-color":n,style:{"--background":t,"--fill":n},children:E.cloneElement(e,{className:fh,"aria-hidden":"true","data-testid":"icon"})})}function hh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ns={exports:{}},ce=Ns.exports={},_e,je;function zr(){throw new Error("setTimeout has not been defined")}function Zr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_e=setTimeout:_e=zr}catch{_e=zr}try{typeof clearTimeout=="function"?je=clearTimeout:je=Zr}catch{je=Zr}})();function Ls(e){if(_e===setTimeout)return setTimeout(e,0);if((_e===zr||!_e)&&setTimeout)return _e=setTimeout,setTimeout(e,0);try{return _e(e,0)}catch{try{return _e.call(null,e,0)}catch{return _e.call(this,e,0)}}}function ph(e){if(je===clearTimeout)return clearTimeout(e);if((je===Zr||!je)&&clearTimeout)return je=clearTimeout,clearTimeout(e);try{return je(e)}catch{try{return je.call(null,e)}catch{return je.call(this,e)}}}var Ye=[],Zt=!1,Et,Kn=-1;function mh(){!Zt||!Et||(Zt=!1,Et.length?Ye=Et.concat(Ye):Kn=-1,Ye.length&&Rs())}function Rs(){if(!Zt){var e=Ls(mh);Zt=!0;for(var t=Ye.length;t;){for(Et=Ye,Ye=[];++Kn<t;)Et&&Et[Kn].run();Kn=-1,t=Ye.length}Et=null,Zt=!1,ph(e)}}ce.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ye.push(new _s(e,t)),Ye.length===1&&!Zt&&Ls(Rs)};function _s(e,t){this.fun=e,this.array=t}_s.prototype.run=function(){this.fun.apply(null,this.array)},ce.title="browser",ce.browser=!0,ce.env={},ce.argv=[],ce.version="",ce.versions={};function Xe(){}ce.on=Xe,ce.addListener=Xe,ce.once=Xe,ce.off=Xe,ce.removeListener=Xe,ce.removeAllListeners=Xe,ce.emit=Xe,ce.prependListener=Xe,ce.prependOnceListener=Xe,ce.listeners=function(e){return[]},ce.binding=function(e){throw new Error("process.binding is not supported")},ce.cwd=function(){return"/"},ce.chdir=function(e){throw new Error("process.chdir is not supported")},ce.umask=function(){return 0};var gh=Ns.exports;const ne=hh(gh);var yh=function(t){return vh(t)&&!bh(t)};function vh(e){return!!e&&typeof e=="object"}function bh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Eh(e)}var wh=typeof Symbol=="function"&&Symbol.for,Th=wh?Symbol.for("react.element"):60103;function Eh(e){return e.$$typeof===Th}function xh(e){return Array.isArray(e)?[]:{}}function Gn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?vn(xh(e),e,t):e}function Sh(e,t,n){return e.concat(t).map(function(r){return Gn(r,n)})}function Ah(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=Gn(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=Gn(t[o],n):r[o]=vn(e[o],t[o],n)}),r}function vn(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Sh,n.isMergeableObject=n.isMergeableObject||yh;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):Ah(e,t,n):Gn(t,n)}vn.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return vn(r,o,n)},{})};var Hr=vn;const Yn=globalThis||void 0||self;var js=typeof Yn=="object"&&Yn&&Yn.Object===Object&&Yn,Ch=typeof self=="object"&&self&&self.Object===Object&&self,Be=js||Ch||Function("return this")(),lt=Be.Symbol,Bs=Object.prototype,Ph=Bs.hasOwnProperty,Mh=Bs.toString,bn=lt?lt.toStringTag:void 0;function Dh(e){var t=Ph.call(e,bn),n=e[bn];try{e[bn]=void 0;var r=!0}catch{}var o=Mh.call(e);return r&&(t?e[bn]=n:delete e[bn]),o}var Oh=Object.prototype,Vh=Oh.toString;function Fh(e){return Vh.call(e)}var kh="[object Null]",Ih="[object Undefined]",$s=lt?lt.toStringTag:void 0;function xt(e){return e==null?e===void 0?Ih:kh:$s&&$s in Object(e)?Dh(e):Fh(e)}function Us(e,t){return function(n){return e(t(n))}}var Kr=Us(Object.getPrototypeOf,Object);function St(e){return e!=null&&typeof e=="object"}var Nh="[object Object]",Lh=Function.prototype,Rh=Object.prototype,Ws=Lh.toString,_h=Rh.hasOwnProperty,jh=Ws.call(Object);function zs(e){if(!St(e)||xt(e)!=Nh)return!1;var t=Kr(e);if(t===null)return!0;var n=_h.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ws.call(n)==jh}function Bh(){this.__data__=[],this.size=0}function Zs(e,t){return e===t||e!==e&&t!==t}function Xn(e,t){for(var n=e.length;n--;)if(Zs(e[n][0],t))return n;return-1}var $h=Array.prototype,Uh=$h.splice;function Wh(e){var t=this.__data__,n=Xn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Uh.call(t,n,1),--this.size,!0}function zh(e){var t=this.__data__,n=Xn(t,e);return n<0?void 0:t[n][1]}function Zh(e){return Xn(this.__data__,e)>-1}function Hh(e,t){var n=this.__data__,r=Xn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function qe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qe.prototype.clear=Bh,qe.prototype.delete=Wh,qe.prototype.get=zh,qe.prototype.has=Zh,qe.prototype.set=Hh;function Kh(){this.__data__=new qe,this.size=0}function Gh(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Yh(e){return this.__data__.get(e)}function Xh(e){return this.__data__.has(e)}function wn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qh="[object AsyncFunction]",Qh="[object Function]",Jh="[object GeneratorFunction]",ep="[object Proxy]";function Hs(e){if(!wn(e))return!1;var t=xt(e);return t==Qh||t==Jh||t==qh||t==ep}var Gr=Be["__core-js_shared__"],Ks=function(){var e=/[^.]+$/.exec(Gr&&Gr.keys&&Gr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tp(e){return!!Ks&&Ks in e}var np=Function.prototype,rp=np.toString;function At(e){if(e!=null){try{return rp.call(e)}catch{}try{return e+""}catch{}}return""}var op=/[\\^$.*+?()[\]{}|]/g,ip=/^\[object .+?Constructor\]$/,sp=Function.prototype,ap=Object.prototype,cp=sp.toString,lp=ap.hasOwnProperty,up=RegExp("^"+cp.call(lp).replace(op,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dp(e){if(!wn(e)||tp(e))return!1;var t=Hs(e)?up:ip;return t.test(At(e))}function fp(e,t){return e?.[t]}function Ct(e,t){var n=fp(e,t);return dp(n)?n:void 0}var Tn=Ct(Be,"Map"),En=Ct(Object,"create");function hp(){this.__data__=En?En(null):{},this.size=0}function pp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mp="__lodash_hash_undefined__",gp=Object.prototype,yp=gp.hasOwnProperty;function vp(e){var t=this.__data__;if(En){var n=t[e];return n===mp?void 0:n}return yp.call(t,e)?t[e]:void 0}var bp=Object.prototype,wp=bp.hasOwnProperty;function Tp(e){var t=this.__data__;return En?t[e]!==void 0:wp.call(t,e)}var Ep="__lodash_hash_undefined__";function xp(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=En&&t===void 0?Ep:t,this}function Pt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pt.prototype.clear=hp,Pt.prototype.delete=pp,Pt.prototype.get=vp,Pt.prototype.has=Tp,Pt.prototype.set=xp;function Sp(){this.size=0,this.__data__={hash:new Pt,map:new(Tn||qe),string:new Pt}}function Ap(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qn(e,t){var n=e.__data__;return Ap(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Cp(e){var t=qn(this,e).delete(e);return this.size-=t?1:0,t}function Pp(e){return qn(this,e).get(e)}function Mp(e){return qn(this,e).has(e)}function Dp(e,t){var n=qn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ut(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ut.prototype.clear=Sp,ut.prototype.delete=Cp,ut.prototype.get=Pp,ut.prototype.has=Mp,ut.prototype.set=Dp;var Op=200;function Vp(e,t){var n=this.__data__;if(n instanceof qe){var r=n.__data__;if(!Tn||r.length<Op-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ut(r)}return n.set(e,t),this.size=n.size,this}function Ht(e){var t=this.__data__=new qe(e);this.size=t.size}Ht.prototype.clear=Kh,Ht.prototype.delete=Gh,Ht.prototype.get=Yh,Ht.prototype.has=Xh,Ht.prototype.set=Vp;function Fp(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Gs=function(){try{var e=Ct(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Ys(e,t,n){t=="__proto__"&&Gs?Gs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var kp=Object.prototype,Ip=kp.hasOwnProperty;function Xs(e,t,n){var r=e[t];(!(Ip.call(e,t)&&Zs(r,n))||n===void 0&&!(t in e))&&Ys(e,t,n)}function Qn(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],c=void 0;c===void 0&&(c=e[a]),o?Ys(n,a,c):Xs(n,a,c)}return n}function Np(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Lp="[object Arguments]";function qs(e){return St(e)&&xt(e)==Lp}var Qs=Object.prototype,Rp=Qs.hasOwnProperty,_p=Qs.propertyIsEnumerable,jp=qs(function(){return arguments}())?qs:function(e){return St(e)&&Rp.call(e,"callee")&&!_p.call(e,"callee")},xn=Array.isArray;function Bp(){return!1}var Js=typeof H=="object"&&H&&!H.nodeType&&H,ea=Js&&typeof module=="object"&&module&&!module.nodeType&&module,$p=ea&&ea.exports===Js,ta=$p?Be.Buffer:void 0,Up=ta?ta.isBuffer:void 0,na=Up||Bp,Wp=9007199254740991,zp=/^(?:0|[1-9]\d*)$/;function Zp(e,t){var n=typeof e;return t=t??Wp,!!t&&(n=="number"||n!="symbol"&&zp.test(e))&&e>-1&&e%1==0&&e<t}var Hp=9007199254740991;function ra(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hp}var Kp="[object Arguments]",Gp="[object Array]",Yp="[object Boolean]",Xp="[object Date]",qp="[object Error]",Qp="[object Function]",Jp="[object Map]",em="[object Number]",tm="[object Object]",nm="[object RegExp]",rm="[object Set]",om="[object String]",im="[object WeakMap]",sm="[object ArrayBuffer]",am="[object DataView]",cm="[object Float32Array]",lm="[object Float64Array]",um="[object Int8Array]",dm="[object Int16Array]",fm="[object Int32Array]",hm="[object Uint8Array]",pm="[object Uint8ClampedArray]",mm="[object Uint16Array]",gm="[object Uint32Array]",Y={};Y[cm]=Y[lm]=Y[um]=Y[dm]=Y[fm]=Y[hm]=Y[pm]=Y[mm]=Y[gm]=!0,Y[Kp]=Y[Gp]=Y[sm]=Y[Yp]=Y[am]=Y[Xp]=Y[qp]=Y[Qp]=Y[Jp]=Y[em]=Y[tm]=Y[nm]=Y[rm]=Y[om]=Y[im]=!1;function ym(e){return St(e)&&ra(e.length)&&!!Y[xt(e)]}function Yr(e){return function(t){return e(t)}}var oa=typeof H=="object"&&H&&!H.nodeType&&H,Sn=oa&&typeof module=="object"&&module&&!module.nodeType&&module,vm=Sn&&Sn.exports===oa,Xr=vm&&js.process,Kt=function(){try{var e=Sn&&Sn.require&&Sn.require("util").types;return e||Xr&&Xr.binding&&Xr.binding("util")}catch{}}(),ia=Kt&&Kt.isTypedArray,bm=ia?Yr(ia):ym,wm=Object.prototype,Tm=wm.hasOwnProperty;function sa(e,t){var n=xn(e),r=!n&&jp(e),o=!n&&!r&&na(e),i=!n&&!r&&!o&&bm(e),s=n||r||o||i,a=s?Np(e.length,String):[],c=a.length;for(var l in e)(t||Tm.call(e,l))&&!(s&&(l=="length"||o&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Zp(l,c)))&&a.push(l);return a}var Em=Object.prototype;function qr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Em;return e===n}var xm=Us(Object.keys,Object),Sm=Object.prototype,Am=Sm.hasOwnProperty;function Cm(e){if(!qr(e))return xm(e);var t=[];for(var n in Object(e))Am.call(e,n)&&n!="constructor"&&t.push(n);return t}function aa(e){return e!=null&&ra(e.length)&&!Hs(e)}function Qr(e){return aa(e)?sa(e):Cm(e)}function Pm(e,t){return e&&Qn(t,Qr(t),e)}function Mm(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Dm=Object.prototype,Om=Dm.hasOwnProperty;function Vm(e){if(!wn(e))return Mm(e);var t=qr(e),n=[];for(var r in e)r=="constructor"&&(t||!Om.call(e,r))||n.push(r);return n}function Jr(e){return aa(e)?sa(e,!0):Vm(e)}function Fm(e,t){return e&&Qn(t,Jr(t),e)}var ca=typeof H=="object"&&H&&!H.nodeType&&H,la=ca&&typeof module=="object"&&module&&!module.nodeType&&module,km=la&&la.exports===ca,ua=km?Be.Buffer:void 0,da=ua?ua.allocUnsafe:void 0;function Im(e,t){if(t)return e.slice();var n=e.length,r=da?da(n):new e.constructor(n);return e.copy(r),r}function fa(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Nm(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function ha(){return[]}var Lm=Object.prototype,Rm=Lm.propertyIsEnumerable,pa=Object.getOwnPropertySymbols,eo=pa?function(e){return e==null?[]:(e=Object(e),Nm(pa(e),function(t){return Rm.call(e,t)}))}:ha;function _m(e,t){return Qn(e,eo(e),t)}function ma(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var jm=Object.getOwnPropertySymbols,ga=jm?function(e){for(var t=[];e;)ma(t,eo(e)),e=Kr(e);return t}:ha;function Bm(e,t){return Qn(e,ga(e),t)}function ya(e,t,n){var r=t(e);return xn(e)?r:ma(r,n(e))}function $m(e){return ya(e,Qr,eo)}function Um(e){return ya(e,Jr,ga)}var to=Ct(Be,"DataView"),no=Ct(Be,"Promise"),ro=Ct(Be,"Set"),oo=Ct(Be,"WeakMap"),va="[object Map]",Wm="[object Object]",ba="[object Promise]",wa="[object Set]",Ta="[object WeakMap]",Ea="[object DataView]",zm=At(to),Zm=At(Tn),Hm=At(no),Km=At(ro),Gm=At(oo),Qe=xt;(to&&Qe(new to(new ArrayBuffer(1)))!=Ea||Tn&&Qe(new Tn)!=va||no&&Qe(no.resolve())!=ba||ro&&Qe(new ro)!=wa||oo&&Qe(new oo)!=Ta)&&(Qe=function(e){var t=xt(e),n=t==Wm?e.constructor:void 0,r=n?At(n):"";if(r)switch(r){case zm:return Ea;case Zm:return va;case Hm:return ba;case Km:return wa;case Gm:return Ta}return t});var Ym=Object.prototype,Xm=Ym.hasOwnProperty;function qm(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Xm.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var xa=Be.Uint8Array;function io(e){var t=new e.constructor(e.byteLength);return new xa(t).set(new xa(e)),t}function Qm(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Jm=/\w*$/;function eg(e){var t=new e.constructor(e.source,Jm.exec(e));return t.lastIndex=e.lastIndex,t}var Sa=lt?lt.prototype:void 0,Aa=Sa?Sa.valueOf:void 0;function tg(e){return Aa?Object(Aa.call(e)):{}}function ng(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var rg="[object Boolean]",og="[object Date]",ig="[object Map]",sg="[object Number]",ag="[object RegExp]",cg="[object Set]",lg="[object String]",ug="[object Symbol]",dg="[object ArrayBuffer]",fg="[object DataView]",hg="[object Float32Array]",pg="[object Float64Array]",mg="[object Int8Array]",gg="[object Int16Array]",yg="[object Int32Array]",vg="[object Uint8Array]",bg="[object Uint8ClampedArray]",wg="[object Uint16Array]",Tg="[object Uint32Array]";function Eg(e,t,n){var r=e.constructor;switch(t){case dg:return io(e);case rg:case og:return new r(+e);case fg:return Qm(e,n);case hg:case pg:case mg:case gg:case yg:case vg:case bg:case wg:case Tg:return ng(e,n);case ig:return new r;case sg:case lg:return new r(e);case ag:return eg(e);case cg:return new r;case ug:return tg(e)}}var Ca=Object.create,xg=function(){function e(){}return function(t){if(!wn(t))return{};if(Ca)return Ca(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Sg(e){return typeof e.constructor=="function"&&!qr(e)?xg(Kr(e)):{}}var Ag="[object Map]";function Cg(e){return St(e)&&Qe(e)==Ag}var Pa=Kt&&Kt.isMap,Pg=Pa?Yr(Pa):Cg,Mg="[object Set]";function Dg(e){return St(e)&&Qe(e)==Mg}var Ma=Kt&&Kt.isSet,Og=Ma?Yr(Ma):Dg,Vg=1,Fg=2,kg=4,Da="[object Arguments]",Ig="[object Array]",Ng="[object Boolean]",Lg="[object Date]",Rg="[object Error]",Oa="[object Function]",_g="[object GeneratorFunction]",jg="[object Map]",Bg="[object Number]",Va="[object Object]",$g="[object RegExp]",Ug="[object Set]",Wg="[object String]",zg="[object Symbol]",Zg="[object WeakMap]",Hg="[object ArrayBuffer]",Kg="[object DataView]",Gg="[object Float32Array]",Yg="[object Float64Array]",Xg="[object Int8Array]",qg="[object Int16Array]",Qg="[object Int32Array]",Jg="[object Uint8Array]",e0="[object Uint8ClampedArray]",t0="[object Uint16Array]",n0="[object Uint32Array]",G={};G[Da]=G[Ig]=G[Hg]=G[Kg]=G[Ng]=G[Lg]=G[Gg]=G[Yg]=G[Xg]=G[qg]=G[Qg]=G[jg]=G[Bg]=G[Va]=G[$g]=G[Ug]=G[Wg]=G[zg]=G[Jg]=G[e0]=G[t0]=G[n0]=!0,G[Rg]=G[Oa]=G[Zg]=!1;function An(e,t,n,r,o,i){var s,a=t&Vg,c=t&Fg,l=t&kg;if(s!==void 0)return s;if(!wn(e))return e;var u=xn(e);if(u){if(s=qm(e),!a)return fa(e,s)}else{var f=Qe(e),h=f==Oa||f==_g;if(na(e))return Im(e,a);if(f==Va||f==Da||h&&!o){if(s=c||h?{}:Sg(e),!a)return c?Bm(e,Fm(s,e)):_m(e,Pm(s,e))}else{if(!G[f])return o?e:{};s=Eg(e,f,a)}}i||(i=new Ht);var p=i.get(e);if(p)return p;i.set(e,s),Og(e)?e.forEach(function(g){s.add(An(g,t,n,g,e,i))}):Pg(e)&&e.forEach(function(g,b){s.set(b,An(g,t,n,b,e,i))});var y=l?c?Um:$m:c?Jr:Qr,m=u?void 0:y(e);return Fp(m||e,function(g,b){m&&(b=g,g=e[b]),Xs(s,b,An(g,t,n,b,e,i))}),s}var r0=1,o0=4;function Cn(e){return An(e,r0|o0)}function Fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var so,ka;function i0(){if(ka)return so;ka=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r=typeof Element<"u";function o(i,s){if(i===s)return!0;if(i&&s&&typeof i=="object"&&typeof s=="object"){var a=e(i),c=e(s),l,u,f;if(a&&c){if(u=i.length,u!=s.length)return!1;for(l=u;l--!==0;)if(!o(i[l],s[l]))return!1;return!0}if(a!=c)return!1;var h=i instanceof Date,p=s instanceof Date;if(h!=p)return!1;if(h&&p)return i.getTime()==s.getTime();var y=i instanceof RegExp,m=s instanceof RegExp;if(y!=m)return!1;if(y&&m)return i.toString()==s.toString();var g=t(i);if(u=g.length,u!==t(s).length)return!1;for(l=u;l--!==0;)if(!n.call(s,g[l]))return!1;if(r&&i instanceof Element&&s instanceof Element)return i===s;for(l=u;l--!==0;)if(f=g[l],!(f==="_owner"&&i.$$typeof)&&!o(i[f],s[f]))return!1;return!0}return i!==i&&s!==s}return so=function(s,a){try{return o(s,a)}catch(c){if(c.message&&c.message.match(/stack|recursion/i)||c.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",c.name,c.message),!1;throw c}},so}var s0=i0();const dt=Fa(s0);var a0=ne.env.NODE_ENV==="production";function se(e,t){if(!a0){var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var c0=4;function Ia(e){return An(e,c0)}function Na(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var l0="[object Symbol]";function ao(e){return typeof e=="symbol"||St(e)&&xt(e)==l0}var u0="Expected a function";function co(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(u0);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(co.Cache||ut),n}co.Cache=ut;var d0=500;function f0(e){var t=co(e,function(r){return n.size===d0&&n.clear(),r}),n=t.cache;return t}var h0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p0=/\\(\\)?/g,m0=f0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(h0,function(n,r,o,i){t.push(o?i.replace(p0,"$1"):r||n)}),t});function g0(e){if(typeof e=="string"||ao(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var La=lt?lt.prototype:void 0,Ra=La?La.toString:void 0;function _a(e){if(typeof e=="string")return e;if(xn(e))return Na(e,_a)+"";if(ao(e))return Ra?Ra.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function y0(e){return e==null?"":_a(e)}function ja(e){return xn(e)?Na(e,g0):ao(e)?[e]:fa(m0(y0(e)))}var Jn={exports:{}},z={};/** @license React v16.13.1
74
- * react-is.production.min.js
75
- *
76
- * Copyright (c) Facebook, Inc. and its affiliates.
77
- *
78
- * This source code is licensed under the MIT license found in the
79
- * LICENSE file in the root directory of this source tree.
80
- */var Ba;function v0(){if(Ba)return z;Ba=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function T(w){if(typeof w=="object"&&w!==null){var C=w.$$typeof;switch(C){case t:switch(w=w.type,w){case c:case l:case r:case i:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case a:case u:case y:case p:case s:return w;default:return C}}case n:return C}}}function P(w){return T(w)===l}return z.AsyncMode=c,z.ConcurrentMode=l,z.ContextConsumer=a,z.ContextProvider=s,z.Element=t,z.ForwardRef=u,z.Fragment=r,z.Lazy=y,z.Memo=p,z.Portal=n,z.Profiler=i,z.StrictMode=o,z.Suspense=f,z.isAsyncMode=function(w){return P(w)||T(w)===c},z.isConcurrentMode=P,z.isContextConsumer=function(w){return T(w)===a},z.isContextProvider=function(w){return T(w)===s},z.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},z.isForwardRef=function(w){return T(w)===u},z.isFragment=function(w){return T(w)===r},z.isLazy=function(w){return T(w)===y},z.isMemo=function(w){return T(w)===p},z.isPortal=function(w){return T(w)===n},z.isProfiler=function(w){return T(w)===i},z.isStrictMode=function(w){return T(w)===o},z.isSuspense=function(w){return T(w)===f},z.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===l||w===i||w===o||w===f||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===p||w.$$typeof===s||w.$$typeof===a||w.$$typeof===u||w.$$typeof===g||w.$$typeof===b||w.$$typeof===x||w.$$typeof===m)},z.typeOf=T,z}var Z={},$a;function b0(){return $a||($a=1,ne.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function T(k){return typeof k=="string"||typeof k=="function"||k===r||k===l||k===i||k===o||k===f||k===h||typeof k=="object"&&k!==null&&(k.$$typeof===y||k.$$typeof===p||k.$$typeof===s||k.$$typeof===a||k.$$typeof===u||k.$$typeof===g||k.$$typeof===b||k.$$typeof===x||k.$$typeof===m)}function P(k){if(typeof k=="object"&&k!==null){var pn=k.$$typeof;switch(pn){case t:var mn=k.type;switch(mn){case c:case l:case r:case i:case o:case f:return mn;default:var Rr=mn&&mn.$$typeof;switch(Rr){case a:case u:case y:case p:case s:return Rr;default:return pn}}case n:return pn}}}var w=c,C=l,A=a,M=s,N=t,j=u,J=r,Ee=y,de=p,_=n,ee=i,ie=o,U=f,D=!1;function he(k){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),we(k)||P(k)===c}function we(k){return P(k)===l}function Me(k){return P(k)===a}function xe(k){return P(k)===s}function X(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function ae(k){return P(k)===u}function De(k){return P(k)===r}function Bt(k){return P(k)===y}function te(k){return P(k)===p}function $t(k){return P(k)===n}function ot(k){return P(k)===i}function it(k){return P(k)===o}function st(k){return P(k)===f}Z.AsyncMode=w,Z.ConcurrentMode=C,Z.ContextConsumer=A,Z.ContextProvider=M,Z.Element=N,Z.ForwardRef=j,Z.Fragment=J,Z.Lazy=Ee,Z.Memo=de,Z.Portal=_,Z.Profiler=ee,Z.StrictMode=ie,Z.Suspense=U,Z.isAsyncMode=he,Z.isConcurrentMode=we,Z.isContextConsumer=Me,Z.isContextProvider=xe,Z.isElement=X,Z.isForwardRef=ae,Z.isFragment=De,Z.isLazy=Bt,Z.isMemo=te,Z.isPortal=$t,Z.isProfiler=ot,Z.isStrictMode=it,Z.isSuspense=st,Z.isValidElementType=T,Z.typeOf=P}()),Z}var Ua;function w0(){return Ua||(Ua=1,ne.env.NODE_ENV==="production"?Jn.exports=v0():Jn.exports=b0()),Jn.exports}var lo,Wa;function T0(){if(Wa)return lo;Wa=1;var e=w0(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function s(y){return e.isMemo(y)?o:i[y.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function p(y,m,g){if(typeof m!="string"){if(h){var b=f(m);b&&b!==h&&p(y,b,g)}var x=c(m);l&&(x=x.concat(l(m)));for(var T=s(y),P=s(m),w=0;w<x.length;++w){var C=x[w];if(!n[C]&&!(g&&g[C])&&!(P&&P[C])&&!(T&&T[C])){var A=u(m,C);try{a(y,C,A)}catch{}}}}return y}return lo=p,lo}var E0=T0();const x0=Fa(E0);function K(){return K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(this,arguments)}function za(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ft(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Za(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var er=E.createContext(void 0);er.displayName="FormikContext";var S0=er.Provider,A0=er.Consumer;function Mt(){var e=E.useContext(er);return e||(ne.env.NODE_ENV!=="production"?se(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):se()),e}var Ha=function(t){return Array.isArray(t)&&t.length===0},me=function(t){return typeof t=="function"},Gt=function(t){return t!==null&&typeof t=="object"},C0=function(t){return String(Math.floor(Number(t)))===t},uo=function(t){return Object.prototype.toString.call(t)==="[object String]"},fo=function(t){return E.Children.count(t)===0},ho=function(t){return Gt(t)&&me(t.then)};function P0(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function q(e,t,n,r){r===void 0&&(r=0);for(var o=ja(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function $e(e,t,n){for(var r=Ia(e),o=r,i=0,s=ja(t);i<s.length-1;i++){var a=s[i],c=q(e,s.slice(0,i+1));if(c&&(Gt(c)||Array.isArray(c)))o=o[a]=Ia(c);else{var l=s[i+1];o=o[a]=C0(l)&&Number(l)>=0?[]:{}}}return(i===0?e:o)[s[i]]===n?e:(n===void 0?delete o[s[i]]:o[s[i]]=n,i===0&&n===void 0&&delete r[s[i]],r)}function Ka(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var s=i[o],a=e[s];Gt(a)?n.get(a)||(n.set(a,!0),r[s]=Array.isArray(a)?[]:{},Ka(a,t,n,r[s])):r[s]=t}return r}function M0(e,t){switch(t.type){case"SET_VALUES":return K({},e,{values:t.payload});case"SET_TOUCHED":return K({},e,{touched:t.payload});case"SET_ERRORS":return dt(e.errors,t.payload)?e:K({},e,{errors:t.payload});case"SET_STATUS":return K({},e,{status:t.payload});case"SET_ISSUBMITTING":return K({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return K({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return K({},e,{values:$e(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return K({},e,{touched:$e(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return K({},e,{errors:$e(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return K({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return K({},e,{touched:Ka(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return K({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return K({},e,{isSubmitting:!1});default:return e}}var Dt={},tr={};function D0(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,o=r===void 0?!0:r,i=e.validateOnMount,s=i===void 0?!1:i,a=e.isInitialValid,c=e.enableReinitialize,l=c===void 0?!1:c,u=e.onSubmit,f=ft(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=K({validateOnChange:n,validateOnBlur:o,validateOnMount:s,onSubmit:u},f),p=E.useRef(h.initialValues),y=E.useRef(h.initialErrors||Dt),m=E.useRef(h.initialTouched||tr),g=E.useRef(h.initialStatus),b=E.useRef(!1),x=E.useRef({});ne.env.NODE_ENV!=="production"&&E.useEffect(function(){typeof a>"u"||(ne.env.NODE_ENV!=="production"?se(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):se())},[]),E.useEffect(function(){return b.current=!0,function(){b.current=!1}},[]);var T=E.useState(0),P=T[1],w=E.useRef({values:Cn(h.initialValues),errors:Cn(h.initialErrors)||Dt,touched:Cn(h.initialTouched)||tr,status:Cn(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),C=w.current,A=E.useCallback(function(S){var O=w.current;w.current=M0(O,S),O!==w.current&&P(function(I){return I+1})},[]),M=E.useCallback(function(S,O){return new Promise(function(I,L){var $=h.validate(S,O);$==null?I(Dt):ho($)?$.then(function(W){I(W||Dt)},function(W){ne.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",W),L(W)}):I($)})},[h.validate]),N=E.useCallback(function(S,O){var I=h.validationSchema,L=me(I)?I(O):I,$=O&&L.validateAt?L.validateAt(O,S):F0(S,L);return new Promise(function(W,ye){$.then(function(){W(Dt)},function(Ke){Ke.name==="ValidationError"?W(V0(Ke)):(ne.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",Ke),ye(Ke))})})},[h.validationSchema]),j=E.useCallback(function(S,O){return new Promise(function(I){return I(x.current[S].validate(O))})},[]),J=E.useCallback(function(S){var O=Object.keys(x.current).filter(function(L){return me(x.current[L].validate)}),I=O.length>0?O.map(function(L){return j(L,q(S,L))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(I).then(function(L){return L.reduce(function($,W,ye){return W==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||W&&($=$e($,O[ye],W)),$},{})})},[j]),Ee=E.useCallback(function(S){return Promise.all([J(S),h.validationSchema?N(S):{},h.validate?M(S):{}]).then(function(O){var I=O[0],L=O[1],$=O[2],W=Hr.all([I,L,$],{arrayMerge:k0});return W})},[h.validate,h.validationSchema,J,M,N]),de=Oe(function(S){return S===void 0&&(S=C.values),A({type:"SET_ISVALIDATING",payload:!0}),Ee(S).then(function(O){return b.current&&(A({type:"SET_ISVALIDATING",payload:!1}),A({type:"SET_ERRORS",payload:O})),O})});E.useEffect(function(){s&&b.current===!0&&dt(p.current,h.initialValues)&&de(p.current)},[s,de]);var _=E.useCallback(function(S){var O=S&&S.values?S.values:p.current,I=S&&S.errors?S.errors:y.current?y.current:h.initialErrors||{},L=S&&S.touched?S.touched:m.current?m.current:h.initialTouched||{},$=S&&S.status?S.status:g.current?g.current:h.initialStatus;p.current=O,y.current=I,m.current=L,g.current=$;var W=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!S&&!!S.isSubmitting,errors:I,touched:L,status:$,values:O,isValidating:!!S&&!!S.isValidating,submitCount:S&&S.submitCount&&typeof S.submitCount=="number"?S.submitCount:0}})};if(h.onReset){var ye=h.onReset(C.values,pn);ho(ye)?ye.then(W):W()}else W()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);E.useEffect(function(){b.current===!0&&!dt(p.current,h.initialValues)&&l&&(p.current=h.initialValues,_(),s&&de(p.current))},[l,h.initialValues,_,s,de]),E.useEffect(function(){l&&b.current===!0&&!dt(y.current,h.initialErrors)&&(y.current=h.initialErrors||Dt,A({type:"SET_ERRORS",payload:h.initialErrors||Dt}))},[l,h.initialErrors]),E.useEffect(function(){l&&b.current===!0&&!dt(m.current,h.initialTouched)&&(m.current=h.initialTouched||tr,A({type:"SET_TOUCHED",payload:h.initialTouched||tr}))},[l,h.initialTouched]),E.useEffect(function(){l&&b.current===!0&&!dt(g.current,h.initialStatus)&&(g.current=h.initialStatus,A({type:"SET_STATUS",payload:h.initialStatus}))},[l,h.initialStatus,h.initialTouched]);var ee=Oe(function(S){if(x.current[S]&&me(x.current[S].validate)){var O=q(C.values,S),I=x.current[S].validate(O);return ho(I)?(A({type:"SET_ISVALIDATING",payload:!0}),I.then(function(L){return L}).then(function(L){A({type:"SET_FIELD_ERROR",payload:{field:S,value:L}}),A({type:"SET_ISVALIDATING",payload:!1})})):(A({type:"SET_FIELD_ERROR",payload:{field:S,value:I}}),Promise.resolve(I))}else if(h.validationSchema)return A({type:"SET_ISVALIDATING",payload:!0}),N(C.values,S).then(function(L){return L}).then(function(L){A({type:"SET_FIELD_ERROR",payload:{field:S,value:q(L,S)}}),A({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),ie=E.useCallback(function(S,O){var I=O.validate;x.current[S]={validate:I}},[]),U=E.useCallback(function(S){delete x.current[S]},[]),D=Oe(function(S,O){A({type:"SET_TOUCHED",payload:S});var I=O===void 0?o:O;return I?de(C.values):Promise.resolve()}),he=E.useCallback(function(S){A({type:"SET_ERRORS",payload:S})},[]),we=Oe(function(S,O){var I=me(S)?S(C.values):S;A({type:"SET_VALUES",payload:I});var L=O===void 0?n:O;return L?de(I):Promise.resolve()}),Me=E.useCallback(function(S,O){A({type:"SET_FIELD_ERROR",payload:{field:S,value:O}})},[]),xe=Oe(function(S,O,I){A({type:"SET_FIELD_VALUE",payload:{field:S,value:O}});var L=I===void 0?n:I;return L?de($e(C.values,S,O)):Promise.resolve()}),X=E.useCallback(function(S,O){var I=O,L=S,$;if(!uo(S)){S.persist&&S.persist();var W=S.target?S.target:S.currentTarget,ye=W.type,Ke=W.name,hs=W.id,ps=W.value,Sx=W.checked,Ax=W.outerHTML,Df=W.options,Cx=W.multiple;I=O||Ke||hs,!I&&ne.env.NODE_ENV!=="production"&&Ga({htmlContent:Ax,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),L=/number|range/.test(ye)?($=parseFloat(ps),isNaN($)?"":$):/checkbox/.test(ye)?N0(q(C.values,I),Sx,ps):Df&&Cx?I0(Df):ps}I&&xe(I,L)},[xe,C.values]),ae=Oe(function(S){if(uo(S))return function(O){return X(O,S)};X(S)}),De=Oe(function(S,O,I){O===void 0&&(O=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:S,value:O}});var L=I===void 0?o:I;return L?de(C.values):Promise.resolve()}),Bt=E.useCallback(function(S,O){S.persist&&S.persist();var I=S.target,L=I.name,$=I.id,W=I.outerHTML,ye=O||L||$;!ye&&ne.env.NODE_ENV!=="production"&&Ga({htmlContent:W,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),De(ye,!0)},[De]),te=Oe(function(S){if(uo(S))return function(O){return Bt(O,S)};Bt(S)}),$t=E.useCallback(function(S){me(S)?A({type:"SET_FORMIK_STATE",payload:S}):A({type:"SET_FORMIK_STATE",payload:function(){return S}})},[]),ot=E.useCallback(function(S){A({type:"SET_STATUS",payload:S})},[]),it=E.useCallback(function(S){A({type:"SET_ISSUBMITTING",payload:S})},[]),st=Oe(function(){return A({type:"SUBMIT_ATTEMPT"}),de().then(function(S){var O=S instanceof Error,I=!O&&Object.keys(S).length===0;if(I){var L;try{if(L=mn(),L===void 0)return}catch($){throw $}return Promise.resolve(L).then(function($){return b.current&&A({type:"SUBMIT_SUCCESS"}),$}).catch(function($){if(b.current)throw A({type:"SUBMIT_FAILURE"}),$})}else if(b.current&&(A({type:"SUBMIT_FAILURE"}),O))throw S})}),k=Oe(function(S){if(S&&S.preventDefault&&me(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&me(S.stopPropagation)&&S.stopPropagation(),ne.env.NODE_ENV!=="production"&&typeof document<"u"){var O=P0();O!==null&&O instanceof HTMLButtonElement&&(O.attributes&&O.attributes.getNamedItem("type")||(ne.env.NODE_ENV!=="production"?se(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):se()))}st().catch(function(I){console.warn("Warning: An unhandled error was caught from submitForm()",I)})}),pn={resetForm:_,validateForm:de,validateField:ee,setErrors:he,setFieldError:Me,setFieldTouched:De,setFieldValue:xe,setStatus:ot,setSubmitting:it,setTouched:D,setValues:we,setFormikState:$t,submitForm:st},mn=Oe(function(){return u(C.values,pn)}),Rr=Oe(function(S){S&&S.preventDefault&&me(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&me(S.stopPropagation)&&S.stopPropagation(),_()}),bx=E.useCallback(function(S){return{value:q(C.values,S),error:q(C.errors,S),touched:!!q(C.touched,S),initialValue:q(p.current,S),initialTouched:!!q(m.current,S),initialError:q(y.current,S)}},[C.errors,C.touched,C.values]),wx=E.useCallback(function(S){return{setValue:function(I,L){return xe(S,I,L)},setTouched:function(I,L){return De(S,I,L)},setError:function(I){return Me(S,I)}}},[xe,De,Me]),Tx=E.useCallback(function(S){var O=Gt(S),I=O?S.name:S,L=q(C.values,I),$={name:I,value:L,onChange:ae,onBlur:te};if(O){var W=S.type,ye=S.value,Ke=S.as,hs=S.multiple;W==="checkbox"?ye===void 0?$.checked=!!L:($.checked=!!(Array.isArray(L)&&~L.indexOf(ye)),$.value=ye):W==="radio"?($.checked=L===ye,$.value=ye):Ke==="select"&&hs&&($.value=$.value||[],$.multiple=!0)}return $},[te,ae,C.values]),fs=E.useMemo(function(){return!dt(p.current,C.values)},[p.current,C.values]),Ex=E.useMemo(function(){return typeof a<"u"?fs?C.errors&&Object.keys(C.errors).length===0:a!==!1&&me(a)?a(h):a:C.errors&&Object.keys(C.errors).length===0},[a,fs,C.errors,h]),xx=K({},C,{initialValues:p.current,initialErrors:y.current,initialTouched:m.current,initialStatus:g.current,handleBlur:te,handleChange:ae,handleReset:Rr,handleSubmit:k,resetForm:_,setErrors:he,setFormikState:$t,setFieldTouched:De,setFieldValue:xe,setFieldError:Me,setStatus:ot,setSubmitting:it,setTouched:D,setValues:we,submitForm:st,validateForm:de,validateField:ee,isValid:Ex,dirty:fs,unregisterField:U,registerField:ie,getFieldProps:Tx,getFieldMeta:bx,getFieldHelpers:wx,validateOnBlur:o,validateOnChange:n,validateOnMount:s});return xx}function O0(e){var t=D0(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return E.useImperativeHandle(i,function(){return t}),ne.env.NODE_ENV!=="production"&&E.useEffect(function(){e.render&&(ne.env.NODE_ENV!=="production"?se(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):se())},[]),E.createElement(S0,{value:t},n?E.createElement(n,t):o?o(t):r?me(r)?r(t):fo(r)?null:E.Children.only(r):null)}function Ga(e){var t=e.htmlContent,n=e.documentationAnchorLink,r=e.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
73
+ `;function Is({element:e,backgroundColor:t="gray",fillColor:n="black"}){return v.jsx("span",{className:dh,"data-testid":"icon-background","data-background-color":t,"data-fill-color":n,style:{"--background":t,"--fill":n},children:E.cloneElement(e,{className:fh,"aria-hidden":"true","data-testid":"icon"})})}function hh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ns={exports:{}},ce=Ns.exports={},_e,je;function zr(){throw new Error("setTimeout has not been defined")}function Zr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?_e=setTimeout:_e=zr}catch{_e=zr}try{typeof clearTimeout=="function"?je=clearTimeout:je=Zr}catch{je=Zr}})();function Ls(e){if(_e===setTimeout)return setTimeout(e,0);if((_e===zr||!_e)&&setTimeout)return _e=setTimeout,setTimeout(e,0);try{return _e(e,0)}catch{try{return _e.call(null,e,0)}catch{return _e.call(this,e,0)}}}function ph(e){if(je===clearTimeout)return clearTimeout(e);if((je===Zr||!je)&&clearTimeout)return je=clearTimeout,clearTimeout(e);try{return je(e)}catch{try{return je.call(null,e)}catch{return je.call(this,e)}}}var Ye=[],Zt=!1,Et,Kn=-1;function mh(){!Zt||!Et||(Zt=!1,Et.length?Ye=Et.concat(Ye):Kn=-1,Ye.length&&Rs())}function Rs(){if(!Zt){var e=Ls(mh);Zt=!0;for(var t=Ye.length;t;){for(Et=Ye,Ye=[];++Kn<t;)Et&&Et[Kn].run();Kn=-1,t=Ye.length}Et=null,Zt=!1,ph(e)}}ce.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ye.push(new _s(e,t)),Ye.length===1&&!Zt&&Ls(Rs)};function _s(e,t){this.fun=e,this.array=t}_s.prototype.run=function(){this.fun.apply(null,this.array)},ce.title="browser",ce.browser=!0,ce.env={},ce.argv=[],ce.version="",ce.versions={};function Xe(){}ce.on=Xe,ce.addListener=Xe,ce.once=Xe,ce.off=Xe,ce.removeListener=Xe,ce.removeAllListeners=Xe,ce.emit=Xe,ce.prependListener=Xe,ce.prependOnceListener=Xe,ce.listeners=function(e){return[]},ce.binding=function(e){throw new Error("process.binding is not supported")},ce.cwd=function(){return"/"},ce.chdir=function(e){throw new Error("process.chdir is not supported")},ce.umask=function(){return 0};var gh=Ns.exports;const ne=hh(gh);var yh=function(t){return vh(t)&&!bh(t)};function vh(e){return!!e&&typeof e=="object"}function bh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Eh(e)}var wh=typeof Symbol=="function"&&Symbol.for,Th=wh?Symbol.for("react.element"):60103;function Eh(e){return e.$$typeof===Th}function xh(e){return Array.isArray(e)?[]:{}}function Gn(e,t){return t.clone!==!1&&t.isMergeableObject(e)?vn(xh(e),e,t):e}function Sh(e,t,n){return e.concat(t).map(function(r){return Gn(r,n)})}function Ah(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=Gn(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=Gn(t[o],n):r[o]=vn(e[o],t[o],n)}),r}function vn(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Sh,n.isMergeableObject=n.isMergeableObject||yh;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):Ah(e,t,n):Gn(t,n)}vn.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return vn(r,o,n)},{})};var Hr=vn;const Yn=globalThis||void 0||self;var js=typeof Yn=="object"&&Yn&&Yn.Object===Object&&Yn,Ch=typeof self=="object"&&self&&self.Object===Object&&self,Be=js||Ch||Function("return this")(),lt=Be.Symbol,Bs=Object.prototype,Ph=Bs.hasOwnProperty,Mh=Bs.toString,bn=lt?lt.toStringTag:void 0;function Dh(e){var t=Ph.call(e,bn),n=e[bn];try{e[bn]=void 0;var r=!0}catch{}var o=Mh.call(e);return r&&(t?e[bn]=n:delete e[bn]),o}var Oh=Object.prototype,Vh=Oh.toString;function Fh(e){return Vh.call(e)}var kh="[object Null]",Ih="[object Undefined]",$s=lt?lt.toStringTag:void 0;function xt(e){return e==null?e===void 0?Ih:kh:$s&&$s in Object(e)?Dh(e):Fh(e)}function Us(e,t){return function(n){return e(t(n))}}var Kr=Us(Object.getPrototypeOf,Object);function St(e){return e!=null&&typeof e=="object"}var Nh="[object Object]",Lh=Function.prototype,Rh=Object.prototype,Ws=Lh.toString,_h=Rh.hasOwnProperty,jh=Ws.call(Object);function zs(e){if(!St(e)||xt(e)!=Nh)return!1;var t=Kr(e);if(t===null)return!0;var n=_h.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ws.call(n)==jh}function Bh(){this.__data__=[],this.size=0}function Zs(e,t){return e===t||e!==e&&t!==t}function Xn(e,t){for(var n=e.length;n--;)if(Zs(e[n][0],t))return n;return-1}var $h=Array.prototype,Uh=$h.splice;function Wh(e){var t=this.__data__,n=Xn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Uh.call(t,n,1),--this.size,!0}function zh(e){var t=this.__data__,n=Xn(t,e);return n<0?void 0:t[n][1]}function Zh(e){return Xn(this.__data__,e)>-1}function Hh(e,t){var n=this.__data__,r=Xn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function qe(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qe.prototype.clear=Bh,qe.prototype.delete=Wh,qe.prototype.get=zh,qe.prototype.has=Zh,qe.prototype.set=Hh;function Kh(){this.__data__=new qe,this.size=0}function Gh(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Yh(e){return this.__data__.get(e)}function Xh(e){return this.__data__.has(e)}function wn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qh="[object AsyncFunction]",Qh="[object Function]",Jh="[object GeneratorFunction]",ep="[object Proxy]";function Hs(e){if(!wn(e))return!1;var t=xt(e);return t==Qh||t==Jh||t==qh||t==ep}var Gr=Be["__core-js_shared__"],Ks=function(){var e=/[^.]+$/.exec(Gr&&Gr.keys&&Gr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tp(e){return!!Ks&&Ks in e}var np=Function.prototype,rp=np.toString;function At(e){if(e!=null){try{return rp.call(e)}catch{}try{return e+""}catch{}}return""}var op=/[\\^$.*+?()[\]{}|]/g,ip=/^\[object .+?Constructor\]$/,sp=Function.prototype,ap=Object.prototype,cp=sp.toString,lp=ap.hasOwnProperty,up=RegExp("^"+cp.call(lp).replace(op,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dp(e){if(!wn(e)||tp(e))return!1;var t=Hs(e)?up:ip;return t.test(At(e))}function fp(e,t){return e?.[t]}function Ct(e,t){var n=fp(e,t);return dp(n)?n:void 0}var Tn=Ct(Be,"Map"),En=Ct(Object,"create");function hp(){this.__data__=En?En(null):{},this.size=0}function pp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mp="__lodash_hash_undefined__",gp=Object.prototype,yp=gp.hasOwnProperty;function vp(e){var t=this.__data__;if(En){var n=t[e];return n===mp?void 0:n}return yp.call(t,e)?t[e]:void 0}var bp=Object.prototype,wp=bp.hasOwnProperty;function Tp(e){var t=this.__data__;return En?t[e]!==void 0:wp.call(t,e)}var Ep="__lodash_hash_undefined__";function xp(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=En&&t===void 0?Ep:t,this}function Pt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pt.prototype.clear=hp,Pt.prototype.delete=pp,Pt.prototype.get=vp,Pt.prototype.has=Tp,Pt.prototype.set=xp;function Sp(){this.size=0,this.__data__={hash:new Pt,map:new(Tn||qe),string:new Pt}}function Ap(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qn(e,t){var n=e.__data__;return Ap(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Cp(e){var t=qn(this,e).delete(e);return this.size-=t?1:0,t}function Pp(e){return qn(this,e).get(e)}function Mp(e){return qn(this,e).has(e)}function Dp(e,t){var n=qn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ut(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ut.prototype.clear=Sp,ut.prototype.delete=Cp,ut.prototype.get=Pp,ut.prototype.has=Mp,ut.prototype.set=Dp;var Op=200;function Vp(e,t){var n=this.__data__;if(n instanceof qe){var r=n.__data__;if(!Tn||r.length<Op-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ut(r)}return n.set(e,t),this.size=n.size,this}function Ht(e){var t=this.__data__=new qe(e);this.size=t.size}Ht.prototype.clear=Kh,Ht.prototype.delete=Gh,Ht.prototype.get=Yh,Ht.prototype.has=Xh,Ht.prototype.set=Vp;function Fp(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Gs=function(){try{var e=Ct(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Ys(e,t,n){t=="__proto__"&&Gs?Gs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var kp=Object.prototype,Ip=kp.hasOwnProperty;function Xs(e,t,n){var r=e[t];(!(Ip.call(e,t)&&Zs(r,n))||n===void 0&&!(t in e))&&Ys(e,t,n)}function Qn(e,t,n,r){var o=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],c=void 0;c===void 0&&(c=e[a]),o?Ys(n,a,c):Xs(n,a,c)}return n}function Np(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Lp="[object Arguments]";function qs(e){return St(e)&&xt(e)==Lp}var Qs=Object.prototype,Rp=Qs.hasOwnProperty,_p=Qs.propertyIsEnumerable,jp=qs(function(){return arguments}())?qs:function(e){return St(e)&&Rp.call(e,"callee")&&!_p.call(e,"callee")},xn=Array.isArray;function Bp(){return!1}var Js=typeof H=="object"&&H&&!H.nodeType&&H,ea=Js&&typeof module=="object"&&module&&!module.nodeType&&module,$p=ea&&ea.exports===Js,ta=$p?Be.Buffer:void 0,Up=ta?ta.isBuffer:void 0,na=Up||Bp,Wp=9007199254740991,zp=/^(?:0|[1-9]\d*)$/;function Zp(e,t){var n=typeof e;return t=t??Wp,!!t&&(n=="number"||n!="symbol"&&zp.test(e))&&e>-1&&e%1==0&&e<t}var Hp=9007199254740991;function ra(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hp}var Kp="[object Arguments]",Gp="[object Array]",Yp="[object Boolean]",Xp="[object Date]",qp="[object Error]",Qp="[object Function]",Jp="[object Map]",em="[object Number]",tm="[object Object]",nm="[object RegExp]",rm="[object Set]",om="[object String]",im="[object WeakMap]",sm="[object ArrayBuffer]",am="[object DataView]",cm="[object Float32Array]",lm="[object Float64Array]",um="[object Int8Array]",dm="[object Int16Array]",fm="[object Int32Array]",hm="[object Uint8Array]",pm="[object Uint8ClampedArray]",mm="[object Uint16Array]",gm="[object Uint32Array]",Y={};Y[cm]=Y[lm]=Y[um]=Y[dm]=Y[fm]=Y[hm]=Y[pm]=Y[mm]=Y[gm]=!0,Y[Kp]=Y[Gp]=Y[sm]=Y[Yp]=Y[am]=Y[Xp]=Y[qp]=Y[Qp]=Y[Jp]=Y[em]=Y[tm]=Y[nm]=Y[rm]=Y[om]=Y[im]=!1;function ym(e){return St(e)&&ra(e.length)&&!!Y[xt(e)]}function Yr(e){return function(t){return e(t)}}var oa=typeof H=="object"&&H&&!H.nodeType&&H,Sn=oa&&typeof module=="object"&&module&&!module.nodeType&&module,vm=Sn&&Sn.exports===oa,Xr=vm&&js.process,Kt=function(){try{var e=Sn&&Sn.require&&Sn.require("util").types;return e||Xr&&Xr.binding&&Xr.binding("util")}catch{}}(),ia=Kt&&Kt.isTypedArray,bm=ia?Yr(ia):ym,wm=Object.prototype,Tm=wm.hasOwnProperty;function sa(e,t){var n=xn(e),r=!n&&jp(e),o=!n&&!r&&na(e),i=!n&&!r&&!o&&bm(e),s=n||r||o||i,a=s?Np(e.length,String):[],c=a.length;for(var l in e)(t||Tm.call(e,l))&&!(s&&(l=="length"||o&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Zp(l,c)))&&a.push(l);return a}var Em=Object.prototype;function qr(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Em;return e===n}var xm=Us(Object.keys,Object),Sm=Object.prototype,Am=Sm.hasOwnProperty;function Cm(e){if(!qr(e))return xm(e);var t=[];for(var n in Object(e))Am.call(e,n)&&n!="constructor"&&t.push(n);return t}function aa(e){return e!=null&&ra(e.length)&&!Hs(e)}function Qr(e){return aa(e)?sa(e):Cm(e)}function Pm(e,t){return e&&Qn(t,Qr(t),e)}function Mm(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Dm=Object.prototype,Om=Dm.hasOwnProperty;function Vm(e){if(!wn(e))return Mm(e);var t=qr(e),n=[];for(var r in e)r=="constructor"&&(t||!Om.call(e,r))||n.push(r);return n}function Jr(e){return aa(e)?sa(e,!0):Vm(e)}function Fm(e,t){return e&&Qn(t,Jr(t),e)}var ca=typeof H=="object"&&H&&!H.nodeType&&H,la=ca&&typeof module=="object"&&module&&!module.nodeType&&module,km=la&&la.exports===ca,ua=km?Be.Buffer:void 0,da=ua?ua.allocUnsafe:void 0;function Im(e,t){if(t)return e.slice();var n=e.length,r=da?da(n):new e.constructor(n);return e.copy(r),r}function fa(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Nm(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function ha(){return[]}var Lm=Object.prototype,Rm=Lm.propertyIsEnumerable,pa=Object.getOwnPropertySymbols,eo=pa?function(e){return e==null?[]:(e=Object(e),Nm(pa(e),function(t){return Rm.call(e,t)}))}:ha;function _m(e,t){return Qn(e,eo(e),t)}function ma(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var jm=Object.getOwnPropertySymbols,ga=jm?function(e){for(var t=[];e;)ma(t,eo(e)),e=Kr(e);return t}:ha;function Bm(e,t){return Qn(e,ga(e),t)}function ya(e,t,n){var r=t(e);return xn(e)?r:ma(r,n(e))}function $m(e){return ya(e,Qr,eo)}function Um(e){return ya(e,Jr,ga)}var to=Ct(Be,"DataView"),no=Ct(Be,"Promise"),ro=Ct(Be,"Set"),oo=Ct(Be,"WeakMap"),va="[object Map]",Wm="[object Object]",ba="[object Promise]",wa="[object Set]",Ta="[object WeakMap]",Ea="[object DataView]",zm=At(to),Zm=At(Tn),Hm=At(no),Km=At(ro),Gm=At(oo),Qe=xt;(to&&Qe(new to(new ArrayBuffer(1)))!=Ea||Tn&&Qe(new Tn)!=va||no&&Qe(no.resolve())!=ba||ro&&Qe(new ro)!=wa||oo&&Qe(new oo)!=Ta)&&(Qe=function(e){var t=xt(e),n=t==Wm?e.constructor:void 0,r=n?At(n):"";if(r)switch(r){case zm:return Ea;case Zm:return va;case Hm:return ba;case Km:return wa;case Gm:return Ta}return t});var Ym=Object.prototype,Xm=Ym.hasOwnProperty;function qm(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Xm.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var xa=Be.Uint8Array;function io(e){var t=new e.constructor(e.byteLength);return new xa(t).set(new xa(e)),t}function Qm(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Jm=/\w*$/;function eg(e){var t=new e.constructor(e.source,Jm.exec(e));return t.lastIndex=e.lastIndex,t}var Sa=lt?lt.prototype:void 0,Aa=Sa?Sa.valueOf:void 0;function tg(e){return Aa?Object(Aa.call(e)):{}}function ng(e,t){var n=t?io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var rg="[object Boolean]",og="[object Date]",ig="[object Map]",sg="[object Number]",ag="[object RegExp]",cg="[object Set]",lg="[object String]",ug="[object Symbol]",dg="[object ArrayBuffer]",fg="[object DataView]",hg="[object Float32Array]",pg="[object Float64Array]",mg="[object Int8Array]",gg="[object Int16Array]",yg="[object Int32Array]",vg="[object Uint8Array]",bg="[object Uint8ClampedArray]",wg="[object Uint16Array]",Tg="[object Uint32Array]";function Eg(e,t,n){var r=e.constructor;switch(t){case dg:return io(e);case rg:case og:return new r(+e);case fg:return Qm(e,n);case hg:case pg:case mg:case gg:case yg:case vg:case bg:case wg:case Tg:return ng(e,n);case ig:return new r;case sg:case lg:return new r(e);case ag:return eg(e);case cg:return new r;case ug:return tg(e)}}var Ca=Object.create,xg=function(){function e(){}return function(t){if(!wn(t))return{};if(Ca)return Ca(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Sg(e){return typeof e.constructor=="function"&&!qr(e)?xg(Kr(e)):{}}var Ag="[object Map]";function Cg(e){return St(e)&&Qe(e)==Ag}var Pa=Kt&&Kt.isMap,Pg=Pa?Yr(Pa):Cg,Mg="[object Set]";function Dg(e){return St(e)&&Qe(e)==Mg}var Ma=Kt&&Kt.isSet,Og=Ma?Yr(Ma):Dg,Vg=1,Fg=2,kg=4,Da="[object Arguments]",Ig="[object Array]",Ng="[object Boolean]",Lg="[object Date]",Rg="[object Error]",Oa="[object Function]",_g="[object GeneratorFunction]",jg="[object Map]",Bg="[object Number]",Va="[object Object]",$g="[object RegExp]",Ug="[object Set]",Wg="[object String]",zg="[object Symbol]",Zg="[object WeakMap]",Hg="[object ArrayBuffer]",Kg="[object DataView]",Gg="[object Float32Array]",Yg="[object Float64Array]",Xg="[object Int8Array]",qg="[object Int16Array]",Qg="[object Int32Array]",Jg="[object Uint8Array]",e0="[object Uint8ClampedArray]",t0="[object Uint16Array]",n0="[object Uint32Array]",G={};G[Da]=G[Ig]=G[Hg]=G[Kg]=G[Ng]=G[Lg]=G[Gg]=G[Yg]=G[Xg]=G[qg]=G[Qg]=G[jg]=G[Bg]=G[Va]=G[$g]=G[Ug]=G[Wg]=G[zg]=G[Jg]=G[e0]=G[t0]=G[n0]=!0,G[Rg]=G[Oa]=G[Zg]=!1;function An(e,t,n,r,o,i){var s,a=t&Vg,c=t&Fg,l=t&kg;if(s!==void 0)return s;if(!wn(e))return e;var u=xn(e);if(u){if(s=qm(e),!a)return fa(e,s)}else{var f=Qe(e),h=f==Oa||f==_g;if(na(e))return Im(e,a);if(f==Va||f==Da||h&&!o){if(s=c||h?{}:Sg(e),!a)return c?Bm(e,Fm(s,e)):_m(e,Pm(s,e))}else{if(!G[f])return o?e:{};s=Eg(e,f,a)}}i||(i=new Ht);var p=i.get(e);if(p)return p;i.set(e,s),Og(e)?e.forEach(function(g){s.add(An(g,t,n,g,e,i))}):Pg(e)&&e.forEach(function(g,b){s.set(b,An(g,t,n,b,e,i))});var y=l?c?Um:$m:c?Jr:Qr,m=u?void 0:y(e);return Fp(m||e,function(g,b){m&&(b=g,g=e[b]),Xs(s,b,An(g,t,n,b,e,i))}),s}var r0=1,o0=4;function Cn(e){return An(e,r0|o0)}function Fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var so,ka;function i0(){if(ka)return so;ka=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r=typeof Element<"u";function o(i,s){if(i===s)return!0;if(i&&s&&typeof i=="object"&&typeof s=="object"){var a=e(i),c=e(s),l,u,f;if(a&&c){if(u=i.length,u!=s.length)return!1;for(l=u;l--!==0;)if(!o(i[l],s[l]))return!1;return!0}if(a!=c)return!1;var h=i instanceof Date,p=s instanceof Date;if(h!=p)return!1;if(h&&p)return i.getTime()==s.getTime();var y=i instanceof RegExp,m=s instanceof RegExp;if(y!=m)return!1;if(y&&m)return i.toString()==s.toString();var g=t(i);if(u=g.length,u!==t(s).length)return!1;for(l=u;l--!==0;)if(!n.call(s,g[l]))return!1;if(r&&i instanceof Element&&s instanceof Element)return i===s;for(l=u;l--!==0;)if(f=g[l],!(f==="_owner"&&i.$$typeof)&&!o(i[f],s[f]))return!1;return!0}return i!==i&&s!==s}return so=function(s,a){try{return o(s,a)}catch(c){if(c.message&&c.message.match(/stack|recursion/i)||c.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",c.name,c.message),!1;throw c}},so}var s0=i0();const dt=Fa(s0);var a0=ne.env.NODE_ENV==="production";function se(e,t){if(!a0){var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var c0=4;function Ia(e){return An(e,c0)}function Na(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var l0="[object Symbol]";function ao(e){return typeof e=="symbol"||St(e)&&xt(e)==l0}var u0="Expected a function";function co(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(u0);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(co.Cache||ut),n}co.Cache=ut;var d0=500;function f0(e){var t=co(e,function(r){return n.size===d0&&n.clear(),r}),n=t.cache;return t}var h0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p0=/\\(\\)?/g,m0=f0(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(h0,function(n,r,o,i){t.push(o?i.replace(p0,"$1"):r||n)}),t});function g0(e){if(typeof e=="string"||ao(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var La=lt?lt.prototype:void 0,Ra=La?La.toString:void 0;function _a(e){if(typeof e=="string")return e;if(xn(e))return Na(e,_a)+"";if(ao(e))return Ra?Ra.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function y0(e){return e==null?"":_a(e)}function ja(e){return xn(e)?Na(e,g0):ao(e)?[e]:fa(m0(y0(e)))}var Jn={exports:{}},z={};var Ba;function v0(){if(Ba)return z;Ba=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function T(w){if(typeof w=="object"&&w!==null){var C=w.$$typeof;switch(C){case t:switch(w=w.type,w){case c:case l:case r:case i:case o:case f:return w;default:switch(w=w&&w.$$typeof,w){case a:case u:case y:case p:case s:return w;default:return C}}case n:return C}}}function P(w){return T(w)===l}return z.AsyncMode=c,z.ConcurrentMode=l,z.ContextConsumer=a,z.ContextProvider=s,z.Element=t,z.ForwardRef=u,z.Fragment=r,z.Lazy=y,z.Memo=p,z.Portal=n,z.Profiler=i,z.StrictMode=o,z.Suspense=f,z.isAsyncMode=function(w){return P(w)||T(w)===c},z.isConcurrentMode=P,z.isContextConsumer=function(w){return T(w)===a},z.isContextProvider=function(w){return T(w)===s},z.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},z.isForwardRef=function(w){return T(w)===u},z.isFragment=function(w){return T(w)===r},z.isLazy=function(w){return T(w)===y},z.isMemo=function(w){return T(w)===p},z.isPortal=function(w){return T(w)===n},z.isProfiler=function(w){return T(w)===i},z.isStrictMode=function(w){return T(w)===o},z.isSuspense=function(w){return T(w)===f},z.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===l||w===i||w===o||w===f||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===p||w.$$typeof===s||w.$$typeof===a||w.$$typeof===u||w.$$typeof===g||w.$$typeof===b||w.$$typeof===x||w.$$typeof===m)},z.typeOf=T,z}var Z={},$a;function b0(){return $a||($a=1,ne.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function T(k){return typeof k=="string"||typeof k=="function"||k===r||k===l||k===i||k===o||k===f||k===h||typeof k=="object"&&k!==null&&(k.$$typeof===y||k.$$typeof===p||k.$$typeof===s||k.$$typeof===a||k.$$typeof===u||k.$$typeof===g||k.$$typeof===b||k.$$typeof===x||k.$$typeof===m)}function P(k){if(typeof k=="object"&&k!==null){var pn=k.$$typeof;switch(pn){case t:var mn=k.type;switch(mn){case c:case l:case r:case i:case o:case f:return mn;default:var Rr=mn&&mn.$$typeof;switch(Rr){case a:case u:case y:case p:case s:return Rr;default:return pn}}case n:return pn}}}var w=c,C=l,A=a,M=s,N=t,j=u,J=r,Ee=y,de=p,_=n,ee=i,ie=o,U=f,D=!1;function he(k){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),we(k)||P(k)===c}function we(k){return P(k)===l}function Me(k){return P(k)===a}function xe(k){return P(k)===s}function X(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function ae(k){return P(k)===u}function De(k){return P(k)===r}function Bt(k){return P(k)===y}function te(k){return P(k)===p}function $t(k){return P(k)===n}function ot(k){return P(k)===i}function it(k){return P(k)===o}function st(k){return P(k)===f}Z.AsyncMode=w,Z.ConcurrentMode=C,Z.ContextConsumer=A,Z.ContextProvider=M,Z.Element=N,Z.ForwardRef=j,Z.Fragment=J,Z.Lazy=Ee,Z.Memo=de,Z.Portal=_,Z.Profiler=ee,Z.StrictMode=ie,Z.Suspense=U,Z.isAsyncMode=he,Z.isConcurrentMode=we,Z.isContextConsumer=Me,Z.isContextProvider=xe,Z.isElement=X,Z.isForwardRef=ae,Z.isFragment=De,Z.isLazy=Bt,Z.isMemo=te,Z.isPortal=$t,Z.isProfiler=ot,Z.isStrictMode=it,Z.isSuspense=st,Z.isValidElementType=T,Z.typeOf=P}()),Z}var Ua;function w0(){return Ua||(Ua=1,ne.env.NODE_ENV==="production"?Jn.exports=v0():Jn.exports=b0()),Jn.exports}var lo,Wa;function T0(){if(Wa)return lo;Wa=1;var e=w0(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function s(y){return e.isMemo(y)?o:i[y.$$typeof]||t}var a=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;function p(y,m,g){if(typeof m!="string"){if(h){var b=f(m);b&&b!==h&&p(y,b,g)}var x=c(m);l&&(x=x.concat(l(m)));for(var T=s(y),P=s(m),w=0;w<x.length;++w){var C=x[w];if(!n[C]&&!(g&&g[C])&&!(P&&P[C])&&!(T&&T[C])){var A=u(m,C);try{a(y,C,A)}catch{}}}}return y}return lo=p,lo}var E0=T0();const x0=Fa(E0);function K(){return K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(this,arguments)}function za(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ft(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Za(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var er=E.createContext(void 0);er.displayName="FormikContext";var S0=er.Provider,A0=er.Consumer;function Mt(){var e=E.useContext(er);return e||(ne.env.NODE_ENV!=="production"?se(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):se()),e}var Ha=function(t){return Array.isArray(t)&&t.length===0},me=function(t){return typeof t=="function"},Gt=function(t){return t!==null&&typeof t=="object"},C0=function(t){return String(Math.floor(Number(t)))===t},uo=function(t){return Object.prototype.toString.call(t)==="[object String]"},fo=function(t){return E.Children.count(t)===0},ho=function(t){return Gt(t)&&me(t.then)};function P0(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function q(e,t,n,r){r===void 0&&(r=0);for(var o=ja(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function $e(e,t,n){for(var r=Ia(e),o=r,i=0,s=ja(t);i<s.length-1;i++){var a=s[i],c=q(e,s.slice(0,i+1));if(c&&(Gt(c)||Array.isArray(c)))o=o[a]=Ia(c);else{var l=s[i+1];o=o[a]=C0(l)&&Number(l)>=0?[]:{}}}return(i===0?e:o)[s[i]]===n?e:(n===void 0?delete o[s[i]]:o[s[i]]=n,i===0&&n===void 0&&delete r[s[i]],r)}function Ka(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var s=i[o],a=e[s];Gt(a)?n.get(a)||(n.set(a,!0),r[s]=Array.isArray(a)?[]:{},Ka(a,t,n,r[s])):r[s]=t}return r}function M0(e,t){switch(t.type){case"SET_VALUES":return K({},e,{values:t.payload});case"SET_TOUCHED":return K({},e,{touched:t.payload});case"SET_ERRORS":return dt(e.errors,t.payload)?e:K({},e,{errors:t.payload});case"SET_STATUS":return K({},e,{status:t.payload});case"SET_ISSUBMITTING":return K({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return K({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return K({},e,{values:$e(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return K({},e,{touched:$e(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return K({},e,{errors:$e(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return K({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return K({},e,{touched:Ka(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return K({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return K({},e,{isSubmitting:!1});default:return e}}var Dt={},tr={};function D0(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,o=r===void 0?!0:r,i=e.validateOnMount,s=i===void 0?!1:i,a=e.isInitialValid,c=e.enableReinitialize,l=c===void 0?!1:c,u=e.onSubmit,f=ft(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=K({validateOnChange:n,validateOnBlur:o,validateOnMount:s,onSubmit:u},f),p=E.useRef(h.initialValues),y=E.useRef(h.initialErrors||Dt),m=E.useRef(h.initialTouched||tr),g=E.useRef(h.initialStatus),b=E.useRef(!1),x=E.useRef({});ne.env.NODE_ENV!=="production"&&E.useEffect(function(){typeof a>"u"||(ne.env.NODE_ENV!=="production"?se(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):se())},[]),E.useEffect(function(){return b.current=!0,function(){b.current=!1}},[]);var T=E.useState(0),P=T[1],w=E.useRef({values:Cn(h.initialValues),errors:Cn(h.initialErrors)||Dt,touched:Cn(h.initialTouched)||tr,status:Cn(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),C=w.current,A=E.useCallback(function(S){var O=w.current;w.current=M0(O,S),O!==w.current&&P(function(I){return I+1})},[]),M=E.useCallback(function(S,O){return new Promise(function(I,L){var $=h.validate(S,O);$==null?I(Dt):ho($)?$.then(function(W){I(W||Dt)},function(W){ne.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",W),L(W)}):I($)})},[h.validate]),N=E.useCallback(function(S,O){var I=h.validationSchema,L=me(I)?I(O):I,$=O&&L.validateAt?L.validateAt(O,S):F0(S,L);return new Promise(function(W,ye){$.then(function(){W(Dt)},function(Ke){Ke.name==="ValidationError"?W(V0(Ke)):(ne.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",Ke),ye(Ke))})})},[h.validationSchema]),j=E.useCallback(function(S,O){return new Promise(function(I){return I(x.current[S].validate(O))})},[]),J=E.useCallback(function(S){var O=Object.keys(x.current).filter(function(L){return me(x.current[L].validate)}),I=O.length>0?O.map(function(L){return j(L,q(S,L))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(I).then(function(L){return L.reduce(function($,W,ye){return W==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||W&&($=$e($,O[ye],W)),$},{})})},[j]),Ee=E.useCallback(function(S){return Promise.all([J(S),h.validationSchema?N(S):{},h.validate?M(S):{}]).then(function(O){var I=O[0],L=O[1],$=O[2],W=Hr.all([I,L,$],{arrayMerge:k0});return W})},[h.validate,h.validationSchema,J,M,N]),de=Oe(function(S){return S===void 0&&(S=C.values),A({type:"SET_ISVALIDATING",payload:!0}),Ee(S).then(function(O){return b.current&&(A({type:"SET_ISVALIDATING",payload:!1}),A({type:"SET_ERRORS",payload:O})),O})});E.useEffect(function(){s&&b.current===!0&&dt(p.current,h.initialValues)&&de(p.current)},[s,de]);var _=E.useCallback(function(S){var O=S&&S.values?S.values:p.current,I=S&&S.errors?S.errors:y.current?y.current:h.initialErrors||{},L=S&&S.touched?S.touched:m.current?m.current:h.initialTouched||{},$=S&&S.status?S.status:g.current?g.current:h.initialStatus;p.current=O,y.current=I,m.current=L,g.current=$;var W=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!S&&!!S.isSubmitting,errors:I,touched:L,status:$,values:O,isValidating:!!S&&!!S.isValidating,submitCount:S&&S.submitCount&&typeof S.submitCount=="number"?S.submitCount:0}})};if(h.onReset){var ye=h.onReset(C.values,pn);ho(ye)?ye.then(W):W()}else W()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);E.useEffect(function(){b.current===!0&&!dt(p.current,h.initialValues)&&l&&(p.current=h.initialValues,_(),s&&de(p.current))},[l,h.initialValues,_,s,de]),E.useEffect(function(){l&&b.current===!0&&!dt(y.current,h.initialErrors)&&(y.current=h.initialErrors||Dt,A({type:"SET_ERRORS",payload:h.initialErrors||Dt}))},[l,h.initialErrors]),E.useEffect(function(){l&&b.current===!0&&!dt(m.current,h.initialTouched)&&(m.current=h.initialTouched||tr,A({type:"SET_TOUCHED",payload:h.initialTouched||tr}))},[l,h.initialTouched]),E.useEffect(function(){l&&b.current===!0&&!dt(g.current,h.initialStatus)&&(g.current=h.initialStatus,A({type:"SET_STATUS",payload:h.initialStatus}))},[l,h.initialStatus,h.initialTouched]);var ee=Oe(function(S){if(x.current[S]&&me(x.current[S].validate)){var O=q(C.values,S),I=x.current[S].validate(O);return ho(I)?(A({type:"SET_ISVALIDATING",payload:!0}),I.then(function(L){return L}).then(function(L){A({type:"SET_FIELD_ERROR",payload:{field:S,value:L}}),A({type:"SET_ISVALIDATING",payload:!1})})):(A({type:"SET_FIELD_ERROR",payload:{field:S,value:I}}),Promise.resolve(I))}else if(h.validationSchema)return A({type:"SET_ISVALIDATING",payload:!0}),N(C.values,S).then(function(L){return L}).then(function(L){A({type:"SET_FIELD_ERROR",payload:{field:S,value:q(L,S)}}),A({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),ie=E.useCallback(function(S,O){var I=O.validate;x.current[S]={validate:I}},[]),U=E.useCallback(function(S){delete x.current[S]},[]),D=Oe(function(S,O){A({type:"SET_TOUCHED",payload:S});var I=O===void 0?o:O;return I?de(C.values):Promise.resolve()}),he=E.useCallback(function(S){A({type:"SET_ERRORS",payload:S})},[]),we=Oe(function(S,O){var I=me(S)?S(C.values):S;A({type:"SET_VALUES",payload:I});var L=O===void 0?n:O;return L?de(I):Promise.resolve()}),Me=E.useCallback(function(S,O){A({type:"SET_FIELD_ERROR",payload:{field:S,value:O}})},[]),xe=Oe(function(S,O,I){A({type:"SET_FIELD_VALUE",payload:{field:S,value:O}});var L=I===void 0?n:I;return L?de($e(C.values,S,O)):Promise.resolve()}),X=E.useCallback(function(S,O){var I=O,L=S,$;if(!uo(S)){S.persist&&S.persist();var W=S.target?S.target:S.currentTarget,ye=W.type,Ke=W.name,hs=W.id,ps=W.value,Sx=W.checked,Ax=W.outerHTML,Df=W.options,Cx=W.multiple;I=O||Ke||hs,!I&&ne.env.NODE_ENV!=="production"&&Ga({htmlContent:Ax,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),L=/number|range/.test(ye)?($=parseFloat(ps),isNaN($)?"":$):/checkbox/.test(ye)?N0(q(C.values,I),Sx,ps):Df&&Cx?I0(Df):ps}I&&xe(I,L)},[xe,C.values]),ae=Oe(function(S){if(uo(S))return function(O){return X(O,S)};X(S)}),De=Oe(function(S,O,I){O===void 0&&(O=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:S,value:O}});var L=I===void 0?o:I;return L?de(C.values):Promise.resolve()}),Bt=E.useCallback(function(S,O){S.persist&&S.persist();var I=S.target,L=I.name,$=I.id,W=I.outerHTML,ye=O||L||$;!ye&&ne.env.NODE_ENV!=="production"&&Ga({htmlContent:W,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),De(ye,!0)},[De]),te=Oe(function(S){if(uo(S))return function(O){return Bt(O,S)};Bt(S)}),$t=E.useCallback(function(S){me(S)?A({type:"SET_FORMIK_STATE",payload:S}):A({type:"SET_FORMIK_STATE",payload:function(){return S}})},[]),ot=E.useCallback(function(S){A({type:"SET_STATUS",payload:S})},[]),it=E.useCallback(function(S){A({type:"SET_ISSUBMITTING",payload:S})},[]),st=Oe(function(){return A({type:"SUBMIT_ATTEMPT"}),de().then(function(S){var O=S instanceof Error,I=!O&&Object.keys(S).length===0;if(I){var L;try{if(L=mn(),L===void 0)return}catch($){throw $}return Promise.resolve(L).then(function($){return b.current&&A({type:"SUBMIT_SUCCESS"}),$}).catch(function($){if(b.current)throw A({type:"SUBMIT_FAILURE"}),$})}else if(b.current&&(A({type:"SUBMIT_FAILURE"}),O))throw S})}),k=Oe(function(S){if(S&&S.preventDefault&&me(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&me(S.stopPropagation)&&S.stopPropagation(),ne.env.NODE_ENV!=="production"&&typeof document<"u"){var O=P0();O!==null&&O instanceof HTMLButtonElement&&(O.attributes&&O.attributes.getNamedItem("type")||(ne.env.NODE_ENV!=="production"?se(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):se()))}st().catch(function(I){console.warn("Warning: An unhandled error was caught from submitForm()",I)})}),pn={resetForm:_,validateForm:de,validateField:ee,setErrors:he,setFieldError:Me,setFieldTouched:De,setFieldValue:xe,setStatus:ot,setSubmitting:it,setTouched:D,setValues:we,setFormikState:$t,submitForm:st},mn=Oe(function(){return u(C.values,pn)}),Rr=Oe(function(S){S&&S.preventDefault&&me(S.preventDefault)&&S.preventDefault(),S&&S.stopPropagation&&me(S.stopPropagation)&&S.stopPropagation(),_()}),bx=E.useCallback(function(S){return{value:q(C.values,S),error:q(C.errors,S),touched:!!q(C.touched,S),initialValue:q(p.current,S),initialTouched:!!q(m.current,S),initialError:q(y.current,S)}},[C.errors,C.touched,C.values]),wx=E.useCallback(function(S){return{setValue:function(I,L){return xe(S,I,L)},setTouched:function(I,L){return De(S,I,L)},setError:function(I){return Me(S,I)}}},[xe,De,Me]),Tx=E.useCallback(function(S){var O=Gt(S),I=O?S.name:S,L=q(C.values,I),$={name:I,value:L,onChange:ae,onBlur:te};if(O){var W=S.type,ye=S.value,Ke=S.as,hs=S.multiple;W==="checkbox"?ye===void 0?$.checked=!!L:($.checked=!!(Array.isArray(L)&&~L.indexOf(ye)),$.value=ye):W==="radio"?($.checked=L===ye,$.value=ye):Ke==="select"&&hs&&($.value=$.value||[],$.multiple=!0)}return $},[te,ae,C.values]),fs=E.useMemo(function(){return!dt(p.current,C.values)},[p.current,C.values]),Ex=E.useMemo(function(){return typeof a<"u"?fs?C.errors&&Object.keys(C.errors).length===0:a!==!1&&me(a)?a(h):a:C.errors&&Object.keys(C.errors).length===0},[a,fs,C.errors,h]),xx=K({},C,{initialValues:p.current,initialErrors:y.current,initialTouched:m.current,initialStatus:g.current,handleBlur:te,handleChange:ae,handleReset:Rr,handleSubmit:k,resetForm:_,setErrors:he,setFormikState:$t,setFieldTouched:De,setFieldValue:xe,setFieldError:Me,setStatus:ot,setSubmitting:it,setTouched:D,setValues:we,submitForm:st,validateForm:de,validateField:ee,isValid:Ex,dirty:fs,unregisterField:U,registerField:ie,getFieldProps:Tx,getFieldMeta:bx,getFieldHelpers:wx,validateOnBlur:o,validateOnChange:n,validateOnMount:s});return xx}function O0(e){var t=D0(e),n=e.component,r=e.children,o=e.render,i=e.innerRef;return E.useImperativeHandle(i,function(){return t}),ne.env.NODE_ENV!=="production"&&E.useEffect(function(){e.render&&(ne.env.NODE_ENV!=="production"?se(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):se())},[]),E.createElement(S0,{value:t},n?E.createElement(n,t):o?o(t):r?me(r)?r(t):fo(r)?null:E.Children.only(r):null)}function Ga(e){var t=e.htmlContent,n=e.documentationAnchorLink,r=e.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
81
74
  Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+n+`
82
75
  `)}function V0(e){var t={};if(e.inner){if(e.inner.length===0)return $e(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var s=i;q(t,s.path)||(t=$e(t,s.path,s.message))}}return t}function F0(e,t,n,r){n===void 0&&(n=!1);var o=po(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function po(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||zs(o)?po(o):o!==""?o:void 0}):zs(e[r])?t[r]=po(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function k0(e,t,n){var r=e.slice();return t.forEach(function(i,s){if(typeof r[s]>"u"){var a=n.clone!==!1,c=a&&n.isMergeableObject(i);r[s]=c?Hr(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[s]=Hr(e[s],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function I0(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function N0(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var L0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?E.useLayoutEffect:E.useEffect;function Oe(e){var t=E.useRef(e);return L0(function(){t.current=e}),E.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current.apply(void 0,r)},[])}function Pn(e){var t=Mt(),n=t.getFieldProps,r=t.getFieldMeta,o=t.getFieldHelpers,i=t.registerField,s=t.unregisterField,a=Gt(e),c=a?e:{name:e},l=c.name,u=c.validate;E.useEffect(function(){return l&&i(l,{validate:u}),function(){l&&s(l)}},[i,s,l,u]),ne.env.NODE_ENV!=="production"&&(t||(ne.env.NODE_ENV!=="production"?se(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):se())),l||(ne.env.NODE_ENV!=="production"?se(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):se());var f=E.useMemo(function(){return o(l)},[o,l]);return[n(c),r(l),f]}function mo(e){var t=e.validate,n=e.name,r=e.render,o=e.children,i=e.as,s=e.component,a=e.className,c=ft(e,["validate","name","render","children","as","component","className"]),l=Mt(),u=ft(l,["validate","validationSchema"]);ne.env.NODE_ENV!=="production"&&E.useEffect(function(){r&&(ne.env.NODE_ENV!=="production"?se(!1,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+n+'" render={({field, form}) => ...} /> with <Field name="'+n+'">{({field, form, meta}) => ...}</Field>'):se()),i&&o&&me(o)&&(ne.env.NODE_ENV!=="production"?se(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):se()),s&&o&&me(o)&&(ne.env.NODE_ENV!=="production"?se(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):se()),r&&o&&!fo(o)&&(ne.env.NODE_ENV!=="production"?se(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):se())},[]);var f=u.registerField,h=u.unregisterField;E.useEffect(function(){return f(n,{validate:t}),function(){h(n)}},[f,h,n,t]);var p=u.getFieldProps(K({name:n},c)),y=u.getFieldMeta(n),m={field:p,form:u};if(r)return r(K({},m,{meta:y}));if(me(o))return o(K({},m,{meta:y}));if(s){if(typeof s=="string"){var g=c.innerRef,b=ft(c,["innerRef"]);return E.createElement(s,K({ref:g},p,b,{className:a}),o)}return E.createElement(s,K({field:p,form:u},c,{className:a}),o)}var x=i||"input";if(typeof x=="string"){var T=c.innerRef,P=ft(c,["innerRef"]);return E.createElement(x,K({ref:T},p,P,{className:a}),o)}return E.createElement(x,K({},p,c,{className:a}),o)}var R0=E.forwardRef(function(e,t){var n=e.action,r=ft(e,["action"]),o=n??"#",i=Mt(),s=i.handleReset,a=i.handleSubmit;return E.createElement("form",K({onSubmit:a,ref:t,onReset:s,action:o},r))});R0.displayName="Form";function _0(e){var t=function(o){return E.createElement(A0,null,function(i){return i||(ne.env.NODE_ENV!=="production"?se(!1,"Formik context is undefined, please verify you are rendering <Form>, <Field>, <FastField>, <FieldArray>, or your custom context-using component as a child of a <Formik> component. Component name: "+e.name):se()),E.createElement(e,K({},o,{formik:i}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",x0(t,e)}var j0=function(t,n,r){var o=Ot(t),i=o[n];return o.splice(n,1),o.splice(r,0,i),o},B0=function(t,n,r){var o=Ot(t),i=o[n];return o[n]=o[r],o[r]=i,o},go=function(t,n,r){var o=Ot(t);return o.splice(n,0,r),o},$0=function(t,n,r){var o=Ot(t);return o[n]=r,o},Ot=function(t){if(t){if(Array.isArray(t))return[].concat(t);var n=Object.keys(t).map(function(r){return parseInt(r)}).reduce(function(r,o){return o>r?o:r},0);return Array.from(K({},t,{length:n+1}))}else return[]},Ya=function(t,n){var r=typeof t=="function"?t:n;return function(o){if(Array.isArray(o)||Gt(o)){var i=Ot(o);return r(i)}return o}},U0=function(e){za(t,e);function t(r){var o;return o=e.call(this,r)||this,o.updateArrayField=function(i,s,a){var c=o.props,l=c.name,u=c.formik.setFormikState;u(function(f){var h=Ya(a,i),p=Ya(s,i),y=$e(f.values,l,i(q(f.values,l))),m=a?h(q(f.errors,l)):void 0,g=s?p(q(f.touched,l)):void 0;return Ha(m)&&(m=void 0),Ha(g)&&(g=void 0),K({},f,{values:y,errors:a?$e(f.errors,l,m):f.errors,touched:s?$e(f.touched,l,g):f.touched})})},o.push=function(i){return o.updateArrayField(function(s){return[].concat(Ot(s),[Cn(i)])},!1,!1)},o.handlePush=function(i){return function(){return o.push(i)}},o.swap=function(i,s){return o.updateArrayField(function(a){return B0(a,i,s)},!0,!0)},o.handleSwap=function(i,s){return function(){return o.swap(i,s)}},o.move=function(i,s){return o.updateArrayField(function(a){return j0(a,i,s)},!0,!0)},o.handleMove=function(i,s){return function(){return o.move(i,s)}},o.insert=function(i,s){return o.updateArrayField(function(a){return go(a,i,s)},function(a){return go(a,i,null)},function(a){return go(a,i,null)})},o.handleInsert=function(i,s){return function(){return o.insert(i,s)}},o.replace=function(i,s){return o.updateArrayField(function(a){return $0(a,i,s)},!1,!1)},o.handleReplace=function(i,s){return function(){return o.replace(i,s)}},o.unshift=function(i){var s=-1;return o.updateArrayField(function(a){var c=a?[i].concat(a):[i];return s=c.length,c},function(a){return a?[null].concat(a):[null]},function(a){return a?[null].concat(a):[null]}),s},o.handleUnshift=function(i){return function(){return o.unshift(i)}},o.handleRemove=function(i){return function(){return o.remove(i)}},o.handlePop=function(){return function(){return o.pop()}},o.remove=o.remove.bind(Za(o)),o.pop=o.pop.bind(Za(o)),o}var n=t.prototype;return n.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!dt(q(o.formik.values,o.name),q(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(o){var i;return this.updateArrayField(function(s){var a=s?Ot(s):[];return i||(i=a[o]),me(a.splice)&&a.splice(o,1),me(a.every)&&a.every(function(c){return c===void 0})?[]:a},!0,!0),i},n.pop=function(){var o;return this.updateArrayField(function(i){var s=i.slice();return o||(o=s&&s.pop&&s.pop()),s},!0,!0),o},n.render=function(){var o={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,s=i.component,a=i.render,c=i.children,l=i.name,u=i.formik,f=ft(u,["validate","validationSchema"]),h=K({},o,{form:f,name:l});return s?E.createElement(s,h):a?a(h):c?typeof c=="function"?c(h):fo(c)?null:E.Children.only(c):null},t}(E.Component);U0.defaultProps={validateOnChange:!0};var W0=function(e){za(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.shouldComponentUpdate=function(o){return q(this.props.formik.errors,this.props.name)!==q(o.formik.errors,this.props.name)||q(this.props.formik.touched,this.props.name)!==q(o.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(o).length},n.render=function(){var o=this.props,i=o.component,s=o.formik,a=o.render,c=o.children,l=o.name,u=ft(o,["component","formik","render","children","name"]),f=q(s.touched,l),h=q(s.errors,l);return f&&h?a?me(a)?a(h):null:c?me(c)?c(h):null:i?E.createElement(i,u,h):h:null},t}(E.Component),yo=_0(W0);const Xa=E.createContext({}),nr=()=>E.useContext(Xa),z0="w-full",vo="flex ml-5 mt-2 text-xs text-feedback-danger-200";function Z0({disableOnSubmit:e,disableOnNotDirty:t,disableOnNotValid:n,isDisabled:r,...o}){const{isSubmitting:i,dirty:s,isValid:a}=Mt(),{isForcedDirty:c,onNavigationEvent:l}=nr(),u=h=>{l(()=>o.onClick)},f=E.useMemo(()=>!!(r||e&&i||t&&!s||t&&typeof c=="boolean"&&!c||n&&!a),[e,t,r,i,c,s,a,n]);return v.jsx(yn,{...o,isDisabled:f,onClick:o.type!=="submit"&&(s||typeof c<"u"&&c)?u:o.onClick})}function H0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qa={exports:{}},le=qa.exports={},Ue,We;function bo(){throw new Error("setTimeout has not been defined")}function wo(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ue=setTimeout:Ue=bo}catch{Ue=bo}try{typeof clearTimeout=="function"?We=clearTimeout:We=wo}catch{We=wo}})();function Qa(e){if(Ue===setTimeout)return setTimeout(e,0);if((Ue===bo||!Ue)&&setTimeout)return Ue=setTimeout,setTimeout(e,0);try{return Ue(e,0)}catch{try{return Ue.call(null,e,0)}catch{return Ue.call(this,e,0)}}}function K0(e){if(We===clearTimeout)return clearTimeout(e);if((We===wo||!We)&&clearTimeout)return We=clearTimeout,clearTimeout(e);try{return We(e)}catch{try{return We.call(null,e)}catch{return We.call(this,e)}}}var Je=[],Yt=!1,Vt,rr=-1;function G0(){!Yt||!Vt||(Yt=!1,Vt.length?Je=Vt.concat(Je):rr=-1,Je.length&&Ja())}function Ja(){if(!Yt){var e=Qa(G0);Yt=!0;for(var t=Je.length;t;){for(Vt=Je,Je=[];++rr<t;)Vt&&Vt[rr].run();rr=-1,t=Je.length}Vt=null,Yt=!1,K0(e)}}le.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Je.push(new ec(e,t)),Je.length===1&&!Yt&&Qa(Ja)};function ec(e,t){this.fun=e,this.array=t}ec.prototype.run=function(){this.fun.apply(null,this.array)},le.title="browser",le.browser=!0,le.env={},le.argv=[],le.version="",le.versions={};function et(){}le.on=et,le.addListener=et,le.once=et,le.off=et,le.removeListener=et,le.removeAllListeners=et,le.emit=et,le.prependListener=et,le.prependOnceListener=et,le.listeners=function(e){return[]},le.binding=function(e){throw new Error("process.binding is not supported")},le.cwd=function(){return"/"},le.chdir=function(e){throw new Error("process.chdir is not supported")},le.umask=function(){return 0};var Y0=qa.exports;const Ft=H0(Y0),To=E.createContext({});function Eo(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const xo=typeof window<"u",tc=xo?E.useLayoutEffect:E.useEffect,or=E.createContext(null);function So(e,t){e.indexOf(t)===-1&&e.push(t)}function Ao(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const tt=(e,t,n)=>n>t?t:n<e?e:n;function Co(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Xt=()=>{},nt=()=>{};Ft.env.NODE_ENV!=="production"&&(Xt=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Co(t,n))},nt=(e,t,n)=>{if(!e)throw new Error(Co(t,n))});const rt={},nc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function rc(e){return typeof e=="object"&&e!==null}const oc=e=>/^0[^.\s]+$/u.test(e);function Po(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ve=e=>e,X0=(e,t)=>n=>t(e(n)),Mn=(...e)=>e.reduce(X0),Dn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Mo{constructor(){this.subscriptions=[]}add(t){return So(this.subscriptions,t),()=>Ao(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ie=e=>e*1e3,ze=e=>e/1e3;function ic(e,t){return t?e*(1e3/t):0}const sc=new Set;function Do(e,t,n){e||sc.has(t)||(console.warn(Co(t,n)),sc.add(t))}const ac=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,q0=1e-7,Q0=12;function J0(e,t,n,r,o){let i,s,a=0;do s=t+(n-t)/2,i=ac(s,r,o)-e,i>0?n=s:t=s;while(Math.abs(i)>q0&&++a<Q0);return s}function On(e,t,n,r){if(e===t&&n===r)return Ve;const o=i=>J0(i,0,1,e,n);return i=>i===0||i===1?i:ac(o(i),t,r)}const cc=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,lc=e=>t=>1-e(1-t),uc=On(.33,1.53,.69,.99),Oo=lc(uc),dc=cc(Oo),fc=e=>(e*=2)<1?.5*Oo(e):.5*(2-Math.pow(2,-10*(e-1))),Vo=e=>1-Math.sin(Math.acos(e)),hc=lc(Vo),pc=cc(Vo),ey=On(.42,0,1,1),ty=On(0,0,.58,1),mc=On(.42,0,.58,1),ny=e=>Array.isArray(e)&&typeof e[0]!="number",gc=e=>Array.isArray(e)&&typeof e[0]=="number",yc={linear:Ve,easeIn:ey,easeInOut:mc,easeOut:ty,circIn:Vo,circInOut:pc,circOut:hc,backIn:Oo,backInOut:dc,backOut:uc,anticipate:fc},ry=e=>typeof e=="string",vc=e=>{if(gc(e)){nt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return On(t,n,r,o)}else if(ry(e))return nt(yc[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),yc[e];return e},ir=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function oy(e,t){let n=new Set,r=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(u){s.has(u)&&(l.schedule(u),e()),u(a)}const l={schedule:(u,f=!1,h=!1)=>{const y=h&&o?n:r;return f&&s.add(u),y.has(u)||y.add(u),u},cancel:u=>{r.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,i&&(i=!1,l.process(u))}};return l}const iy=40;function bc(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ir.reduce((T,P)=>(T[P]=oy(i),T),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:f,preRender:h,render:p,postRender:y}=s,m=()=>{const T=rt.useManualTiming?o.timestamp:performance.now();n=!1,rt.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(T-o.timestamp,iy),1)),o.timestamp=T,o.isProcessing=!0,a.process(o),c.process(o),l.process(o),u.process(o),f.process(o),h.process(o),p.process(o),y.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,o.isProcessing||e(m)};return{schedule:ir.reduce((T,P)=>{const w=s[P];return T[P]=(C,A=!1,M=!1)=>(n||g(),w.schedule(C,A,M)),T},{}),cancel:T=>{for(let P=0;P<ir.length;P++)s[ir[P]].cancel(T)},state:o,steps:s}}const{schedule:Q,cancel:ht,state:ve,steps:Fo}=bc(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ve,!0);let sr;function sy(){sr=void 0}const Ae={now:()=>(sr===void 0&&Ae.set(ve.isProcessing||rt.useManualTiming?ve.timestamp:performance.now()),sr),set:e=>{sr=e,queueMicrotask(sy)}},wc=e=>t=>typeof t=="string"&&t.startsWith(e),ko=wc("--"),ay=wc("var(--"),Io=e=>ay(e)?cy.test(e.split("/*")[0].trim()):!1,cy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,qt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vn={...qt,transform:e=>tt(0,1,e)},ar={...qt,default:1},Fn=e=>Math.round(e*1e5)/1e5,No=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ly(e){return e==null}const uy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Lo=(e,t)=>n=>!!(typeof n=="string"&&uy.test(n)&&n.startsWith(e)||t&&!ly(n)&&Object.prototype.hasOwnProperty.call(n,t)),Tc=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,s,a]=r.match(No);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},dy=e=>tt(0,255,e),Ro={...qt,transform:e=>Math.round(dy(e))},kt={test:Lo("rgb","red"),parse:Tc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ro.transform(e)+", "+Ro.transform(t)+", "+Ro.transform(n)+", "+Fn(Vn.transform(r))+")"};function fy(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const _o={test:Lo("#"),parse:fy,transform:kt.transform},kn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pt=kn("deg"),Ze=kn("%"),R=kn("px"),hy=kn("vh"),py=kn("vw"),Ec={...Ze,parse:e=>Ze.parse(e)/100,transform:e=>Ze.transform(e*100)},Qt={test:Lo("hsl","hue"),parse:Tc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ze.transform(Fn(t))+", "+Ze.transform(Fn(n))+", "+Fn(Vn.transform(r))+")"},fe={test:e=>kt.test(e)||_o.test(e)||Qt.test(e),parse:e=>kt.test(e)?kt.parse(e):Qt.test(e)?Qt.parse(e):_o.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?kt.transform(e):Qt.transform(e),getAnimatableNone:e=>{const t=fe.parse(e);return t.alpha=0,fe.transform(t)}},my=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gy(e){return isNaN(e)&&typeof e=="string"&&(e.match(No)?.length||0)+(e.match(my)?.length||0)>0}const xc="number",Sc="color",yy="var",vy="var(",Ac="${}",by=/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 In(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(by,c=>(fe.test(c)?(r.color.push(i),o.push(Sc),n.push(fe.parse(c))):c.startsWith(vy)?(r.var.push(i),o.push(yy),n.push(c)):(r.number.push(i),o.push(xc),n.push(parseFloat(c))),++i,Ac)).split(Ac);return{values:n,split:a,indexes:r,types:o}}function Cc(e){return In(e).values}function Pc(e){const{split:t,types:n}=In(e),r=t.length;return o=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],o[s]!==void 0){const a=n[s];a===xc?i+=Fn(o[s]):a===Sc?i+=fe.transform(o[s]):i+=o[s]}return i}}const wy=e=>typeof e=="number"?0:fe.test(e)?fe.getAnimatableNone(e):e;function Ty(e){const t=Cc(e);return Pc(e)(t.map(wy))}const mt={test:gy,parse:Cc,createTransformer:Pc,getAnimatableNone:Ty};function jo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ey({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,s=0;if(!t)o=i=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;o=jo(c,a,e+1/3),i=jo(c,a,e),s=jo(c,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function cr(e,t){return n=>n>0?t:e}const re=(e,t,n)=>e+(t-e)*n,Bo=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},xy=[_o,kt,Qt],Sy=e=>xy.find(t=>t.test(e));function Mc(e){const t=Sy(e);if(Xt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===Qt&&(n=Ey(n)),n}const Dc=(e,t)=>{const n=Mc(e),r=Mc(t);if(!n||!r)return cr(e,t);const o={...n};return i=>(o.red=Bo(n.red,r.red,i),o.green=Bo(n.green,r.green,i),o.blue=Bo(n.blue,r.blue,i),o.alpha=re(n.alpha,r.alpha,i),kt.transform(o))},$o=new Set(["none","hidden"]);function Ay(e,t){return $o.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Cy(e,t){return n=>re(e,t,n)}function Uo(e){return typeof e=="number"?Cy:typeof e=="string"?Io(e)?cr:fe.test(e)?Dc:Dy:Array.isArray(e)?Oc:typeof e=="object"?fe.test(e)?Dc:Py:cr}function Oc(e,t){const n=[...e],r=n.length,o=e.map((i,s)=>Uo(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=o[s](i);return n}}function Py(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Uo(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function My(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}const Dy=(e,t)=>{const n=mt.createTransformer(t),r=In(e),o=In(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?$o.has(e)&&!o.values.length||$o.has(t)&&!r.values.length?Ay(e,t):Mn(Oc(My(r,o),o.values),n):(Xt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),cr(e,t))};function Vc(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?re(e,t,n):Uo(e)(e,t)}const Oy=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Q.update(t,n),stop:()=>ht(t),now:()=>ve.isProcessing?ve.timestamp:Ae.now()}},Fc=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},lr=2e4;function Wo(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<lr;)t+=n,r=e.next(t);return t>=lr?1/0:t}function Vy(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Wo(r),lr);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:ze(o)}}const Fy=5;function kc(e,t,n){const r=Math.max(t-Fy,0);return ic(n-e(r),t-r)}const oe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},zo=.001;function ky({duration:e=oe.duration,bounce:t=oe.bounce,velocity:n=oe.velocity,mass:r=oe.mass}){let o,i;Xt(e<=Ie(oe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=tt(oe.minDamping,oe.maxDamping,s),e=tt(oe.minDuration,oe.maxDuration,ze(e)),s<1?(o=l=>{const u=l*s,f=u*e,h=u-n,p=Zo(l,s),y=Math.exp(-f);return zo-h/p*y},i=l=>{const f=l*s*e,h=f*n+n,p=Math.pow(s,2)*Math.pow(l,2)*e,y=Math.exp(-f),m=Zo(Math.pow(l,2),s);return(-o(l)+zo>0?-1:1)*((h-p)*y)/m}):(o=l=>{const u=Math.exp(-l*e),f=(l-n)*e+1;return-zo+u*f},i=l=>{const u=Math.exp(-l*e),f=(n-l)*(e*e);return u*f});const a=5/e,c=Ny(o,i,a);if(e=Ie(e),isNaN(c))return{stiffness:oe.stiffness,damping:oe.damping,duration:e};{const l=Math.pow(c,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const Iy=12;function Ny(e,t,n){let r=n;for(let o=1;o<Iy;o++)r=r-e(r)/t(r);return r}function Zo(e,t){return e*Math.sqrt(1-t*t)}const Ly=["duration","bounce"],Ry=["stiffness","damping","mass"];function Ic(e,t){return t.some(n=>e[n]!==void 0)}function _y(e){let t={velocity:oe.velocity,stiffness:oe.stiffness,damping:oe.damping,mass:oe.mass,isResolvedFromDuration:!1,...e};if(!Ic(e,Ry)&&Ic(e,Ly))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*tt(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:oe.mass,stiffness:o,damping:i}}else{const n=ky(e);t={...t,...n,mass:oe.mass},t.isResolvedFromDuration=!0}return t}function ur(e=oe.visualDuration,t=oe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:f,velocity:h,isResolvedFromDuration:p}=_y({...n,velocity:-ze(n.velocity||0)}),y=h||0,m=l/(2*Math.sqrt(c*u)),g=s-i,b=ze(Math.sqrt(c/u)),x=Math.abs(g)<5;r||(r=x?oe.restSpeed.granular:oe.restSpeed.default),o||(o=x?oe.restDelta.granular:oe.restDelta.default);let T;if(m<1){const w=Zo(b,m);T=C=>{const A=Math.exp(-m*b*C);return s-A*((y+m*b*g)/w*Math.sin(w*C)+g*Math.cos(w*C))}}else if(m===1)T=w=>s-Math.exp(-b*w)*(g+(y+b*g)*w);else{const w=b*Math.sqrt(m*m-1);T=C=>{const A=Math.exp(-m*b*C),M=Math.min(w*C,300);return s-A*((y+m*b*g)*Math.sinh(M)+w*g*Math.cosh(M))/w}}const P={calculatedDuration:p&&f||null,next:w=>{const C=T(w);if(p)a.done=w>=f;else{let A=w===0?y:0;m<1&&(A=w===0?Ie(y):kc(T,w,C));const M=Math.abs(A)<=r,N=Math.abs(s-C)<=o;a.done=M&&N}return a.value=a.done?s:C,a},toString:()=>{const w=Math.min(Wo(P),lr),C=Fc(A=>P.next(w*A).value,w,30);return w+"ms "+C},toTransition:()=>{}};return P}ur.applyToOptions=e=>{const t=Vy(e,100,ur);return e.ease=t.ease,e.duration=Ie(t.duration),e.type="keyframes",e};function Ho({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:c,restDelta:l=.5,restSpeed:u}){const f=e[0],h={done:!1,value:f},p=M=>a!==void 0&&M<a||c!==void 0&&M>c,y=M=>a===void 0?c:c===void 0||Math.abs(a-M)<Math.abs(c-M)?a:c;let m=n*t;const g=f+m,b=s===void 0?g:s(g);b!==g&&(m=b-f);const x=M=>-m*Math.exp(-M/r),T=M=>b+x(M),P=M=>{const N=x(M),j=T(M);h.done=Math.abs(N)<=l,h.value=h.done?b:j};let w,C;const A=M=>{p(h.value)&&(w=M,C=ur({keyframes:[h.value,y(h.value)],velocity:kc(T,M,h.value),damping:o,stiffness:i,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:M=>{let N=!1;return!C&&w===void 0&&(N=!0,P(M),A(M)),w!==void 0&&M>=w?C.next(M-w):(!N&&P(M),h)}}}function jy(e,t,n){const r=[],o=n||rt.mix||Vc,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const c=Array.isArray(t)?t[s]||Ve:t;a=Mn(c,a)}r.push(a)}return r}function By(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(nt(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=jy(t,r,o),c=a.length,l=u=>{if(s&&u<e[0])return t[0];let f=0;if(c>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const h=Dn(e[f],e[f+1],u);return a[f](h)};return n?u=>l(tt(e[0],e[i-1],u)):l}function $y(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Dn(0,t,r);e.push(re(n,1,o))}}function Uy(e){const t=[0];return $y(t,e.length-1),t}function Wy(e,t){return e.map(n=>n*t)}function zy(e,t){return e.map(()=>t||mc).splice(0,e.length-1)}function Jt({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=ny(r)?r.map(vc):vc(r),i={done:!1,value:t[0]},s=Wy(n&&n.length===t.length?n:Uy(t),e),a=By(s,t,{ease:Array.isArray(o)?o:zy(t,o)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const Zy=e=>e!==null;function Ko(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(Zy),a=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Hy={decay:Ho,inertia:Ho,tween:Jt,keyframes:Jt,spring:ur};function Nc(e){typeof e.type=="string"&&(e.type=Hy[e.type])}class Go{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Ky=e=>e/100;class Yo extends Go{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Ae.now()&&this.tick(Ae.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Nc(t);const{type:n=Jt,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const c=n||Jt;Ft.env.NODE_ENV!=="production"&&c!==Jt&&nt(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),c!==Jt&&typeof a[0]!="number"&&(this.mixKeyframes=Mn(Ky,Vc(a[0],a[1])),a=[0,100]);const l=c({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...a].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=Wo(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:u,repeat:f,repeatType:h,repeatDelay:p,type:y,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?b<0:b>o;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let T=this.currentTime,P=r;if(f){const M=Math.min(this.currentTime,o)/a;let N=Math.floor(M),j=M%1;!j&&M>=1&&(j=1),j===1&&N--,N=Math.min(N,f+1),!!(N%2)&&(h==="reverse"?(j=1-j,p&&(j-=p/a)):h==="mirror"&&(P=s)),T=tt(0,1,j)*a}const w=x?{done:!1,value:u[0]}:P.next(T);i&&(w.value=i(w.value));let{done:C}=w;!x&&c!==null&&(C=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return A&&y!==Ho&&(w.value=Ko(u,this.options,g,this.speed)),m&&m(w.value),A&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return ze(this.calculatedDuration)}get time(){return ze(this.currentTime)}set time(t){t=Ie(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ae.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ze(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Oy,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ae.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Gy(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const It=e=>e*180/Math.PI,Xo=e=>{const t=It(Math.atan2(e[1],e[0]));return qo(t)},Yy={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Xo,rotateZ:Xo,skewX:e=>It(Math.atan(e[1])),skewY:e=>It(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},qo=e=>(e=e%360,e<0&&(e+=360),e),Lc=Xo,Rc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),_c=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Xy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Rc,scaleY:_c,scale:e=>(Rc(e)+_c(e))/2,rotateX:e=>qo(It(Math.atan2(e[6],e[5]))),rotateY:e=>qo(It(Math.atan2(-e[2],e[0]))),rotateZ:Lc,rotate:Lc,skewX:e=>It(Math.atan(e[4])),skewY:e=>It(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Qo(e){return e.includes("scale")?1:0}function Jo(e,t){if(!e||e==="none")return Qo(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Xy,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Yy,o=a}if(!o)return Qo(t);const i=r[t],s=o[1].split(",").map(Qy);return typeof i=="function"?i(s):s[i]}const qy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Jo(n,t)};function Qy(e){return parseFloat(e.trim())}const en=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tn=new Set(en),jc=e=>e===qt||e===R,Jy=new Set(["x","y","z"]),ev=en.filter(e=>!Jy.has(e));function tv(e){const t=[];return ev.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Nt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Jo(t,"x"),y:(e,{transform:t})=>Jo(t,"y")};Nt.translateX=Nt.x,Nt.translateY=Nt.y;const Lt=new Set;let ei=!1,ti=!1,ni=!1;function Bc(){if(ti){const e=Array.from(Lt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=tv(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,s])=>{r.getValue(i)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ti=!1,ei=!1,Lt.forEach(e=>e.complete(ni)),Lt.clear()}function $c(){Lt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ti=!0)})}function nv(){ni=!0,$c(),Bc(),ni=!1}class ri{constructor(t,n,r,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Lt.add(this),ei||(ei=!0,Q.read($c),Q.resolveKeyframes(Bc))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}Gy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Lt.delete(this)}cancel(){this.state==="scheduled"&&(Lt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const rv=e=>e.startsWith("--");function ov(e,t,n){rv(t)?e.style.setProperty(t,n):e.style[t]=n}const iv=Po(()=>window.ScrollTimeline!==void 0),sv={};function av(e,t){const n=Po(e);return()=>sv[t]??n()}const Uc=av(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Nn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Wc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Nn([0,.65,.55,1]),circOut:Nn([.55,0,1,.45]),backIn:Nn([.31,.01,.66,-.59]),backOut:Nn([.33,1.53,.69,.99])};function zc(e,t){if(e)return typeof e=="function"?Uc()?Fc(e,t):"ease-out":gc(e)?Nn(e):Array.isArray(e)?e.map(n=>zc(n,t)||Wc.easeOut):Wc[e]}function cv(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[t]:n};c&&(u.offset=c);const f=zc(a,o);Array.isArray(f)&&(u.easing=f);const h={delay:r,duration:o,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return l&&(h.pseudoElement=l),e.animate(u,h)}function Zc(e){return typeof e=="function"&&"applyToOptions"in e}function lv({type:e,...t}){return Zc(e)&&Uc()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class uv extends Go{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,nt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const l=lv(t);this.animation=cv(n,r,o,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=Ko(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):ov(n,r,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return ze(Number(t))}get time(){return ze(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ie(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&iv()?(this.animation.timeline=t,Ve):n(this)}}const Hc={anticipate:fc,backInOut:dc,circInOut:pc};function dv(e){return e in Hc}function fv(e){typeof e.ease=="string"&&dv(e.ease)&&(e.ease=Hc[e.ease])}const Kc=10;class hv extends uv{constructor(t){fv(t),Nc(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Yo({...s,autoplay:!1}),c=Ie(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-Kc).value,a.sample(c).value,Kc),a.stop()}}const Gc=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(mt.test(e)||e==="0")&&!e.startsWith("url("));function pv(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function mv(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=Gc(o,t),a=Gc(i,t);return Xt(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:pv(e)||(n==="spring"||Zc(n))&&r}function oi(e){e.duration=0,e.type}const gv=new Set(["opacity","clipPath","filter","transform"]),yv=Po(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function vv(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=t.owner.getProps();return yv()&&n&&gv.has(n)&&(n!=="transform"||!l)&&!c&&!r&&o!=="mirror"&&i!==0&&s!=="inertia"}const bv=40;class wv extends Go{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:c,motionValue:l,element:u,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ae.now();const h={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,name:c,motionValue:l,element:u,...f},p=u?.KeyframeResolver||ri;this.keyframeResolver=new p(a,(y,m,g)=>this.onKeyframesResolved(y,m,h,!g),c,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:c,isHandoff:l,onUpdate:u}=r;this.resolvedAt=Ae.now(),mv(t,i,s,a)||((rt.instantAnimations||!c)&&u?.(Ko(t,r,n)),t[0]=t[t.length-1],oi(r),r.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>bv?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=!l&&vv(h)?new hv({...h,element:h.motionValue.owner.current}):new Yo(h);p.finished.then(()=>this.notifyFinished()).catch(Ve),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),nv()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Tv=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ev(e){const t=Tv.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const xv=4;function Yc(e,t,n=1){nt(n<=xv,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=Ev(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return nc(s)?parseFloat(s):s}return Io(o)?Yc(o,t,n+1):o}function ii(e,t){return e?.[t]??e?.default??e}const Xc=new Set(["width","height","top","left","right","bottom",...en]),Sv={test:e=>e==="auto",parse:e=>e},qc=e=>t=>t.test(e),Qc=[qt,R,Ze,pt,py,hy,Sv],Jc=e=>Qc.find(qc(e));function Av(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||oc(e):!0}const Cv=new Set(["brightness","contrast","saturate","opacity"]);function Pv(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(No)||[];if(!r)return e;const o=n.replace(r,"");let i=Cv.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Mv=/\b([a-z-]*)\(.*?\)/gu,si={...mt,getAnimatableNone:e=>{const t=e.match(Mv);return t?t.map(Pv).join(" "):e}},el={...qt,transform:Math.round},ai={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,radius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,backgroundPositionX:R,backgroundPositionY:R,...{rotate:pt,rotateX:pt,rotateY:pt,rotateZ:pt,scale:ar,scaleX:ar,scaleY:ar,scaleZ:ar,skew:pt,skewX:pt,skewY:pt,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:Vn,originX:Ec,originY:Ec,originZ:R},zIndex:el,fillOpacity:Vn,strokeOpacity:Vn,numOctaves:el},Dv={...ai,color:fe,backgroundColor:fe,outlineColor:fe,fill:fe,stroke:fe,borderColor:fe,borderTopColor:fe,borderRightColor:fe,borderBottomColor:fe,borderLeftColor:fe,filter:si,WebkitFilter:si},tl=e=>Dv[e];function nl(e,t){let n=tl(e);return n!==si&&(n=mt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ov=new Set(["auto","none","0"]);function Vv(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!Ov.has(i)&&In(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=nl(n,o)}class Fv extends ri{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),Io(l))){const u=Yc(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Xc.has(r)||t.length!==2)return;const[o,i]=t,s=Jc(o),a=Jc(i);if(s!==a)if(jc(s)&&jc(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else Nt[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Av(t[o]))&&r.push(o);r.length&&Vv(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Nt[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,s=r[i];r[i]=Nt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{t.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function kv(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const rl=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ol(e){return rc(e)&&"offsetHeight"in e}const il=30,Iv=e=>!isNaN(parseFloat(e));class Nv{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=Ae.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ae.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Iv(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return Ft.env.NODE_ENV!=="production"&&Do(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Mo);const r=this.events[t].add(n);return t==="change"?()=>{r(),Q.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ae.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>il)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,il);return ic(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nn(e,t){return new Nv(e,t)}const{schedule:ci}=bc(queueMicrotask,!1),Ne={x:!1,y:!1};function sl(){return Ne.x||Ne.y}function Lv(e){return e==="x"||e==="y"?Ne[e]?null:(Ne[e]=!0,()=>{Ne[e]=!1}):Ne.x||Ne.y?null:(Ne.x=Ne.y=!0,()=>{Ne.x=Ne.y=!1})}function al(e,t){const n=kv(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function cl(e){return!(e.pointerType==="touch"||sl())}function Rv(e,t,n={}){const[r,o,i]=al(e,n),s=a=>{if(!cl(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=f=>{cl(f)&&(l(f),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,o)};return r.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const ll=(e,t)=>t?e===t?!0:ll(e,t.parentElement):!1,li=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_v=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jv(e){return _v.has(e.tagName)||e.tabIndex!==-1}const dr=new WeakSet;function ul(e){return t=>{t.key==="Enter"&&e(t)}}function ui(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Bv=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ul(()=>{if(dr.has(n))return;ui(n,"down");const o=ul(()=>{ui(n,"up")}),i=()=>ui(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function dl(e){return li(e)&&!sl()}function $v(e,t,n={}){const[r,o,i]=al(e,n),s=a=>{const c=a.currentTarget;if(!dl(a))return;dr.add(c);const l=t(c,a),u=(p,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),dr.has(c)&&dr.delete(c),dl(p)&&typeof l=="function"&&l(p,{success:y})},f=p=>{u(p,c===window||c===document||n.useGlobalTarget||ll(c,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),ol(a)&&(a.addEventListener("focus",l=>Bv(l,o)),!jv(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}function fl(e){return rc(e)&&"ownerSVGElement"in e}function Uv(e){return fl(e)&&e.tagName==="svg"}const Te=e=>!!(e&&e.getVelocity),Wv=[...Qc,fe,mt],zv=e=>Wv.find(qc(e)),di=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class Zv extends d.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=ol(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Hv({children:e,isPresent:t,anchorX:n,root:r}){const o=E.useId(),i=E.useRef(null),s=E.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=E.useContext(di);return E.useInsertionEffect(()=>{const{width:c,height:l,top:u,left:f,right:h}=s.current;if(t||!i.current||!c||!l)return;const p=n==="left"?`left: ${f}`:`right: ${h}`;i.current.dataset.motionPopId=o;const y=document.createElement("style");a&&(y.nonce=a);const m=r??document.head;return m.appendChild(y),y.sheet&&y.sheet.insertRule(`
83
76
  [data-motion-pop-id="${o}"] {