@petnow/ui 1.6.3 → 1.6.5

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.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(xe,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],d):(xe=typeof globalThis<"u"?globalThis:xe||self,d(xe["@petnow/ui"]={},xe.React,xe.ReactDOM))})(this,function(xe,d,ye){"use strict";var ly=Object.defineProperty;var uy=(xe,d,ye)=>d in xe?ly(xe,d,{enumerable:!0,configurable:!0,writable:!0,value:ye}):xe[d]=ye;var H=(xe,d,ye)=>uy(xe,typeof d!="symbol"?d+"":d,ye);function Ha(n){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const t=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:()=>n[e]})}}return r.default=n,Object.freeze(r)}const R=Ha(d),Sn=Ha(ye);var po={exports:{}},_n={};/**
1
+ (function(Ee,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],d):(Ee=typeof globalThis<"u"?globalThis:Ee||self,d(Ee["@petnow/ui"]={},Ee.React,Ee.ReactDOM))})(this,function(Ee,d,xe){"use strict";var ay=Object.defineProperty;var iy=(Ee,d,xe)=>d in Ee?ay(Ee,d,{enumerable:!0,configurable:!0,writable:!0,value:xe}):Ee[d]=xe;var V=(Ee,d,xe)=>iy(Ee,typeof d!="symbol"?d+"":d,xe);function Ra(n){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const e in n)if(e!=="default"){const t=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:()=>n[e]})}}return r.default=n,Object.freeze(r)}const B=Ra(d),Sn=Ra(xe);var co={exports:{}},_n={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Ba;function xu(){if(Ba)return _n;Ba=1;var n=d,r=Symbol.for("react.element"),e=Symbol.for("react.fragment"),t=Object.prototype.hasOwnProperty,o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,u){var c,f={},h=null,p=null;u!==void 0&&(h=""+u),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(p=l.ref);for(c in l)t.call(l,c)&&!a.hasOwnProperty(c)&&(f[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)f[c]===void 0&&(f[c]=l[c]);return{$$typeof:r,type:s,key:h,ref:p,props:f,_owner:o.current}}return _n.Fragment=e,_n.jsx=i,_n.jsxs=i,_n}var On={};/**
9
+ */var Ba;function xu(){if(Ba)return _n;Ba=1;var n=d,r=Symbol.for("react.element"),e=Symbol.for("react.fragment"),t=Object.prototype.hasOwnProperty,o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(s,l,u){var c,f={},m=null,p=null;u!==void 0&&(m=""+u),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(p=l.ref);for(c in l)t.call(l,c)&&!a.hasOwnProperty(c)&&(f[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)f[c]===void 0&&(f[c]=l[c]);return{$$typeof:r,type:s,key:m,ref:p,props:f,_owner:o.current}}return _n.Fragment=e,_n.jsx=i,_n.jsxs=i,_n}var On={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,28 +14,29 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Va;function Du(){return Va||(Va=1,process.env.NODE_ENV!=="production"&&function(){var n=d,r=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.iterator,g="@@iterator";function v(y){if(y===null||typeof y!="object")return null;var L=m&&y[m]||y[g];return typeof L=="function"?L:null}var b=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(y){{for(var L=arguments.length,W=new Array(L>1?L-1:0),q=1;q<L;q++)W[q-1]=arguments[q];x("error",y,W)}}function x(y,L,W){{var q=b.ReactDebugCurrentFrame,le=q.getStackAddendum();le!==""&&(L+="%s",W=W.concat([le]));var me=W.map(function(oe){return String(oe)});me.unshift("Warning: "+L),Function.prototype.apply.call(console[y],console,me)}}var S=!1,P=!1,N=!1,_=!1,M=!1,A;A=Symbol.for("react.module.reference");function V(y){return!!(typeof y=="string"||typeof y=="function"||y===t||y===a||M||y===o||y===u||y===c||_||y===p||S||P||N||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===f||y.$$typeof===i||y.$$typeof===s||y.$$typeof===l||y.$$typeof===A||y.getModuleId!==void 0))}function D(y,L,W){var q=y.displayName;if(q)return q;var le=L.displayName||L.name||"";return le!==""?W+"("+le+")":W}function E(y){return y.displayName||"Context"}function k(y){if(y==null)return null;if(typeof y.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case t:return"Fragment";case e:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case s:var L=y;return E(L)+".Consumer";case i:var W=y;return E(W._context)+".Provider";case l:return D(y,y.render,"ForwardRef");case f:var q=y.displayName||null;return q!==null?q:k(y.type)||"Memo";case h:{var le=y,me=le._payload,oe=le._init;try{return k(oe(me))}catch{return null}}}return null}var C=Object.assign,F=0,$,T,Q,O,U,G,z;function fe(){}fe.__reactDisabledLog=!0;function pe(){{if(F===0){$=console.log,T=console.info,Q=console.warn,O=console.error,U=console.group,G=console.groupCollapsed,z=console.groupEnd;var y={configurable:!0,enumerable:!0,value:fe,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}F++}}function ke(){{if(F--,F===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:C({},y,{value:$}),info:C({},y,{value:T}),warn:C({},y,{value:Q}),error:C({},y,{value:O}),group:C({},y,{value:U}),groupCollapsed:C({},y,{value:G}),groupEnd:C({},y,{value:z})})}F<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=b.ReactCurrentDispatcher,Ne;function $e(y,L,W){{if(Ne===void 0)try{throw Error()}catch(le){var q=le.stack.trim().match(/\n( *(at )?)/);Ne=q&&q[1]||""}return`
18
- `+Ne+y}}var Et=!1,Wt;{var we=typeof WeakMap=="function"?WeakMap:Map;Wt=new we}function Se(y,L){if(!y||Et)return"";{var W=Wt.get(y);if(W!==void 0)return W}var q;Et=!0;var le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var me;me=ne.current,ne.current=null,pe();try{if(L){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(Be){q=Be}Reflect.construct(y,[],oe)}else{try{oe.call()}catch(Be){q=Be}y.call(oe.prototype)}}else{try{throw Error()}catch(Be){q=Be}y()}}catch(Be){if(Be&&q&&typeof Be.stack=="string"){for(var te=Be.stack.split(`
19
- `),He=q.stack.split(`
20
- `),Pe=te.length-1,Ie=He.length-1;Pe>=1&&Ie>=0&&te[Pe]!==He[Ie];)Ie--;for(;Pe>=1&&Ie>=0;Pe--,Ie--)if(te[Pe]!==He[Ie]){if(Pe!==1||Ie!==1)do if(Pe--,Ie--,Ie<0||te[Pe]!==He[Ie]){var Ge=`
21
- `+te[Pe].replace(" at new "," at ");return y.displayName&&Ge.includes("<anonymous>")&&(Ge=Ge.replace("<anonymous>",y.displayName)),typeof y=="function"&&Wt.set(y,Ge),Ge}while(Pe>=1&&Ie>=0);break}}}finally{Et=!1,ne.current=me,ke(),Error.prepareStackTrace=le}var kn=y?y.displayName||y.name:"",on=kn?$e(kn):"";return typeof y=="function"&&Wt.set(y,on),on}function K(y,L,W){return Se(y,!1)}function he(y){var L=y.prototype;return!!(L&&L.isReactComponent)}function Re(y,L,W){if(y==null)return"";if(typeof y=="function")return Se(y,he(y));if(typeof y=="string")return $e(y);switch(y){case u:return $e("Suspense");case c:return $e("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case l:return K(y.render);case f:return Re(y.type,L,W);case h:{var q=y,le=q._payload,me=q._init;try{return Re(me(le),L,W)}catch{}}}return""}var pt=Object.prototype.hasOwnProperty,sr={},uu=b.ReactDebugCurrentFrame;function fo(y){if(y){var L=y._owner,W=Re(y.type,y._source,L?L.type:null);uu.setExtraStackFrame(W)}else uu.setExtraStackFrame(null)}function Wb(y,L,W,q,le){{var me=Function.call.bind(pt);for(var oe in y)if(me(y,oe)){var te=void 0;try{if(typeof y[oe]!="function"){var He=Error((q||"React class")+": "+W+" type `"+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[oe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw He.name="Invariant Violation",He}te=y[oe](L,oe,q,W,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Pe){te=Pe}te&&!(te instanceof Error)&&(fo(le),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",q||"React class",W,oe,typeof te),fo(null)),te instanceof Error&&!(te.message in sr)&&(sr[te.message]=!0,fo(le),w("Failed %s type: %s",W,te.message),fo(null))}}}var Rb=Array.isArray;function Aa(y){return Rb(y)}function Hb(y){{var L=typeof Symbol=="function"&&Symbol.toStringTag,W=L&&y[Symbol.toStringTag]||y.constructor.name||"Object";return W}}function Bb(y){try{return cu(y),!1}catch{return!0}}function cu(y){return""+y}function du(y){if(Bb(y))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Hb(y)),cu(y)}var lr=b.ReactCurrentOwner,Vb={key:!0,ref:!0,__self:!0,__source:!0},fu,pu,$a;$a={};function zb(y){if(pt.call(y,"ref")){var L=Object.getOwnPropertyDescriptor(y,"ref").get;if(L&&L.isReactWarning)return!1}return y.ref!==void 0}function Ub(y){if(pt.call(y,"key")){var L=Object.getOwnPropertyDescriptor(y,"key").get;if(L&&L.isReactWarning)return!1}return y.key!==void 0}function Qb(y,L){if(typeof y.ref=="string"&&lr.current&&L&&lr.current.stateNode!==L){var W=k(lr.current.type);$a[W]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',k(lr.current.type),y.ref),$a[W]=!0)}}function Kb(y,L){{var W=function(){fu||(fu=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",L))};W.isReactWarning=!0,Object.defineProperty(y,"key",{get:W,configurable:!0})}}function qb(y,L){{var W=function(){pu||(pu=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",L))};W.isReactWarning=!0,Object.defineProperty(y,"ref",{get:W,configurable:!0})}}var Gb=function(y,L,W,q,le,me,oe){var te={$$typeof:r,type:y,key:L,ref:W,props:oe,_owner:me};return te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.defineProperty(te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:le}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te};function Xb(y,L,W,q,le){{var me,oe={},te=null,He=null;W!==void 0&&(du(W),te=""+W),Ub(L)&&(du(L.key),te=""+L.key),zb(L)&&(He=L.ref,Qb(L,le));for(me in L)pt.call(L,me)&&!Vb.hasOwnProperty(me)&&(oe[me]=L[me]);if(y&&y.defaultProps){var Pe=y.defaultProps;for(me in Pe)oe[me]===void 0&&(oe[me]=Pe[me])}if(te||He){var Ie=typeof y=="function"?y.displayName||y.name||"Unknown":y;te&&Kb(oe,Ie),He&&qb(oe,Ie)}return Gb(y,te,He,le,q,lr.current,oe)}}var Ya=b.ReactCurrentOwner,hu=b.ReactDebugCurrentFrame;function Cn(y){if(y){var L=y._owner,W=Re(y.type,y._source,L?L.type:null);hu.setExtraStackFrame(W)}else hu.setExtraStackFrame(null)}var ja;ja=!1;function Wa(y){return typeof y=="object"&&y!==null&&y.$$typeof===r}function mu(){{if(Ya.current){var y=k(Ya.current.type);if(y)return`
17
+ */var Va;function Du(){return Va||(Va=1,process.env.NODE_ENV!=="production"&&function(){var n=d,r=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),h=Symbol.iterator,v="@@iterator";function g(y){if(y===null||typeof y!="object")return null;var F=h&&y[h]||y[v];return typeof F=="function"?F:null}var b=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(y){{for(var F=arguments.length,R=new Array(F>1?F-1:0),G=1;G<F;G++)R[G-1]=arguments[G];x("error",y,R)}}function x(y,F,R){{var G=b.ReactDebugCurrentFrame,ce=G.getStackAddendum();ce!==""&&(F+="%s",R=R.concat([ce]));var ge=R.map(function(oe){return String(oe)});ge.unshift("Warning: "+F),Function.prototype.apply.call(console[y],console,ge)}}var k=!1,P=!1,M=!1,S=!1,O=!1,I;I=Symbol.for("react.module.reference");function W(y){return!!(typeof y=="string"||typeof y=="function"||y===t||y===a||O||y===o||y===u||y===c||S||y===p||k||P||M||typeof y=="object"&&y!==null&&(y.$$typeof===m||y.$$typeof===f||y.$$typeof===i||y.$$typeof===s||y.$$typeof===l||y.$$typeof===I||y.getModuleId!==void 0))}function E(y,F,R){var G=y.displayName;if(G)return G;var ce=F.displayName||F.name||"";return ce!==""?R+"("+ce+")":R}function C(y){return y.displayName||"Context"}function _(y){if(y==null)return null;if(typeof y.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case t:return"Fragment";case e:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case s:var F=y;return C(F)+".Consumer";case i:var R=y;return C(R._context)+".Provider";case l:return E(y,y.render,"ForwardRef");case f:var G=y.displayName||null;return G!==null?G:_(y.type)||"Memo";case m:{var ce=y,ge=ce._payload,oe=ce._init;try{return _(oe(ge))}catch{return null}}}return null}var D=Object.assign,N=0,A,$,U,j,X,q,K;function Y(){}Y.__reactDisabledLog=!0;function De(){{if(N===0){A=console.log,$=console.info,U=console.warn,j=console.error,X=console.group,q=console.groupCollapsed,K=console.groupEnd;var y={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:y,log:y,warn:y,error:y,group:y,groupCollapsed:y,groupEnd:y})}N++}}function ue(){{if(N--,N===0){var y={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},y,{value:A}),info:D({},y,{value:$}),warn:D({},y,{value:U}),error:D({},y,{value:j}),group:D({},y,{value:X}),groupCollapsed:D({},y,{value:q}),groupEnd:D({},y,{value:K})})}N<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Se=b.ReactCurrentDispatcher,se;function he(y,F,R){{if(se===void 0)try{throw Error()}catch(ce){var G=ce.stack.trim().match(/\n( *(at )?)/);se=G&&G[1]||""}return`
18
+ `+se+y}}var He=!1,Wt;{var me=typeof WeakMap=="function"?WeakMap:Map;Wt=new me}function Oe(y,F){if(!y||He)return"";{var R=Wt.get(y);if(R!==void 0)return R}var G;He=!0;var ce=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ge;ge=Se.current,Se.current=null,De();try{if(F){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(Ve){G=Ve}Reflect.construct(y,[],oe)}else{try{oe.call()}catch(Ve){G=Ve}y.call(oe.prototype)}}else{try{throw Error()}catch(Ve){G=Ve}y()}}catch(Ve){if(Ve&&G&&typeof Ve.stack=="string"){for(var te=Ve.stack.split(`
19
+ `),Be=G.stack.split(`
20
+ `),Te=te.length-1,Fe=Be.length-1;Te>=1&&Fe>=0&&te[Te]!==Be[Fe];)Fe--;for(;Te>=1&&Fe>=0;Te--,Fe--)if(te[Te]!==Be[Fe]){if(Te!==1||Fe!==1)do if(Te--,Fe--,Fe<0||te[Te]!==Be[Fe]){var Xe=`
21
+ `+te[Te].replace(" at new "," at ");return y.displayName&&Xe.includes("<anonymous>")&&(Xe=Xe.replace("<anonymous>",y.displayName)),typeof y=="function"&&Wt.set(y,Xe),Xe}while(Te>=1&&Fe>=0);break}}}finally{He=!1,Se.current=ge,ue(),Error.prepareStackTrace=ce}var kn=y?y.displayName||y.name:"",rn=kn?he(kn):"";return typeof y=="function"&&Wt.set(y,rn),rn}function Q(y,F,R){return Oe(y,!1)}function ve(y){var F=y.prototype;return!!(F&&F.isReactComponent)}function Re(y,F,R){if(y==null)return"";if(typeof y=="function")return Oe(y,ve(y));if(typeof y=="string")return he(y);switch(y){case u:return he("Suspense");case c:return he("SuspenseList")}if(typeof y=="object")switch(y.$$typeof){case l:return Q(y.render);case f:return Re(y.type,F,R);case m:{var G=y,ce=G._payload,ge=G._init;try{return Re(ge(ce),F,R)}catch{}}}return""}var pt=Object.prototype.hasOwnProperty,sr={},uu=b.ReactDebugCurrentFrame;function uo(y){if(y){var F=y._owner,R=Re(y.type,y._source,F?F.type:null);uu.setExtraStackFrame(R)}else uu.setExtraStackFrame(null)}function $b(y,F,R,G,ce){{var ge=Function.call.bind(pt);for(var oe in y)if(ge(y,oe)){var te=void 0;try{if(typeof y[oe]!="function"){var Be=Error((G||"React class")+": "+R+" type `"+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof y[oe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Be.name="Invariant Violation",Be}te=y[oe](F,oe,G,R,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Te){te=Te}te&&!(te instanceof Error)&&(uo(ce),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",G||"React class",R,oe,typeof te),uo(null)),te instanceof Error&&!(te.message in sr)&&(sr[te.message]=!0,uo(ce),w("Failed %s type: %s",R,te.message),uo(null))}}}var Yb=Array.isArray;function Aa(y){return Yb(y)}function jb(y){{var F=typeof Symbol=="function"&&Symbol.toStringTag,R=F&&y[Symbol.toStringTag]||y.constructor.name||"Object";return R}}function Wb(y){try{return cu(y),!1}catch{return!0}}function cu(y){return""+y}function du(y){if(Wb(y))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",jb(y)),cu(y)}var lr=b.ReactCurrentOwner,Hb={key:!0,ref:!0,__self:!0,__source:!0},fu,pu,$a;$a={};function Rb(y){if(pt.call(y,"ref")){var F=Object.getOwnPropertyDescriptor(y,"ref").get;if(F&&F.isReactWarning)return!1}return y.ref!==void 0}function Bb(y){if(pt.call(y,"key")){var F=Object.getOwnPropertyDescriptor(y,"key").get;if(F&&F.isReactWarning)return!1}return y.key!==void 0}function Vb(y,F){if(typeof y.ref=="string"&&lr.current&&F&&lr.current.stateNode!==F){var R=_(lr.current.type);$a[R]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',_(lr.current.type),y.ref),$a[R]=!0)}}function zb(y,F){{var R=function(){fu||(fu=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",F))};R.isReactWarning=!0,Object.defineProperty(y,"key",{get:R,configurable:!0})}}function Qb(y,F){{var R=function(){pu||(pu=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",F))};R.isReactWarning=!0,Object.defineProperty(y,"ref",{get:R,configurable:!0})}}var Ub=function(y,F,R,G,ce,ge,oe){var te={$$typeof:r,type:y,key:F,ref:R,props:oe,_owner:ge};return te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.defineProperty(te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te};function Kb(y,F,R,G,ce){{var ge,oe={},te=null,Be=null;R!==void 0&&(du(R),te=""+R),Bb(F)&&(du(F.key),te=""+F.key),Rb(F)&&(Be=F.ref,Vb(F,ce));for(ge in F)pt.call(F,ge)&&!Hb.hasOwnProperty(ge)&&(oe[ge]=F[ge]);if(y&&y.defaultProps){var Te=y.defaultProps;for(ge in Te)oe[ge]===void 0&&(oe[ge]=Te[ge])}if(te||Be){var Fe=typeof y=="function"?y.displayName||y.name||"Unknown":y;te&&zb(oe,Fe),Be&&Qb(oe,Fe)}return Ub(y,te,Be,ce,G,lr.current,oe)}}var Ya=b.ReactCurrentOwner,hu=b.ReactDebugCurrentFrame;function Cn(y){if(y){var F=y._owner,R=Re(y.type,y._source,F?F.type:null);hu.setExtraStackFrame(R)}else hu.setExtraStackFrame(null)}var ja;ja=!1;function Wa(y){return typeof y=="object"&&y!==null&&y.$$typeof===r}function mu(){{if(Ya.current){var y=_(Ya.current.type);if(y)return`
22
22
 
23
- Check the render method of \``+y+"`."}return""}}function Jb(y){return""}var vu={};function Zb(y){{var L=mu();if(!L){var W=typeof y=="string"?y:y.displayName||y.name;W&&(L=`
23
+ Check the render method of \``+y+"`."}return""}}function qb(y){return""}var vu={};function Gb(y){{var F=mu();if(!F){var R=typeof y=="string"?y:y.displayName||y.name;R&&(F=`
24
24
 
25
- Check the top-level render call using <`+W+">.")}return L}}function gu(y,L){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var W=Zb(L);if(vu[W])return;vu[W]=!0;var q="";y&&y._owner&&y._owner!==Ya.current&&(q=" It was passed a child from "+k(y._owner.type)+"."),Cn(y),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',W,q),Cn(null)}}function bu(y,L){{if(typeof y!="object")return;if(Aa(y))for(var W=0;W<y.length;W++){var q=y[W];Wa(q)&&gu(q,L)}else if(Wa(y))y._store&&(y._store.validated=!0);else if(y){var le=v(y);if(typeof le=="function"&&le!==y.entries)for(var me=le.call(y),oe;!(oe=me.next()).done;)Wa(oe.value)&&gu(oe.value,L)}}}function ey(y){{var L=y.type;if(L==null||typeof L=="string")return;var W;if(typeof L=="function")W=L.propTypes;else if(typeof L=="object"&&(L.$$typeof===l||L.$$typeof===f))W=L.propTypes;else return;if(W){var q=k(L);Wb(W,y.props,"prop",q,y)}else if(L.PropTypes!==void 0&&!ja){ja=!0;var le=k(L);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",le||"Unknown")}typeof L.getDefaultProps=="function"&&!L.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ty(y){{for(var L=Object.keys(y.props),W=0;W<L.length;W++){var q=L[W];if(q!=="children"&&q!=="key"){Cn(y),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),Cn(null);break}}y.ref!==null&&(Cn(y),w("Invalid attribute `ref` supplied to `React.Fragment`."),Cn(null))}}var yu={};function wu(y,L,W,q,le,me){{var oe=V(y);if(!oe){var te="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(te+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var He=Jb();He?te+=He:te+=mu();var Pe;y===null?Pe="null":Aa(y)?Pe="array":y!==void 0&&y.$$typeof===r?(Pe="<"+(k(y.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):Pe=typeof y,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Pe,te)}var Ie=Xb(y,L,W,le,me);if(Ie==null)return Ie;if(oe){var Ge=L.children;if(Ge!==void 0)if(q)if(Aa(Ge)){for(var kn=0;kn<Ge.length;kn++)bu(Ge[kn],y);Object.freeze&&Object.freeze(Ge)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else bu(Ge,y)}if(pt.call(L,"key")){var on=k(y),Be=Object.keys(L).filter(function(sy){return sy!=="key"}),Ra=Be.length>0?"{key: someKey, "+Be.join(": ..., ")+": ...}":"{key: someKey}";if(!yu[on+Ra]){var iy=Be.length>0?"{"+Be.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+R+">.")}return F}}function gu(y,F){{if(!y._store||y._store.validated||y.key!=null)return;y._store.validated=!0;var R=Gb(F);if(vu[R])return;vu[R]=!0;var G="";y&&y._owner&&y._owner!==Ya.current&&(G=" It was passed a child from "+_(y._owner.type)+"."),Cn(y),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',R,G),Cn(null)}}function bu(y,F){{if(typeof y!="object")return;if(Aa(y))for(var R=0;R<y.length;R++){var G=y[R];Wa(G)&&gu(G,F)}else if(Wa(y))y._store&&(y._store.validated=!0);else if(y){var ce=g(y);if(typeof ce=="function"&&ce!==y.entries)for(var ge=ce.call(y),oe;!(oe=ge.next()).done;)Wa(oe.value)&&gu(oe.value,F)}}}function Xb(y){{var F=y.type;if(F==null||typeof F=="string")return;var R;if(typeof F=="function")R=F.propTypes;else if(typeof F=="object"&&(F.$$typeof===l||F.$$typeof===f))R=F.propTypes;else return;if(R){var G=_(F);$b(R,y.props,"prop",G,y)}else if(F.PropTypes!==void 0&&!ja){ja=!0;var ce=_(F);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ce||"Unknown")}typeof F.getDefaultProps=="function"&&!F.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Jb(y){{for(var F=Object.keys(y.props),R=0;R<F.length;R++){var G=F[R];if(G!=="children"&&G!=="key"){Cn(y),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",G),Cn(null);break}}y.ref!==null&&(Cn(y),w("Invalid attribute `ref` supplied to `React.Fragment`."),Cn(null))}}var yu={};function wu(y,F,R,G,ce,ge){{var oe=W(y);if(!oe){var te="";(y===void 0||typeof y=="object"&&y!==null&&Object.keys(y).length===0)&&(te+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Be=qb();Be?te+=Be:te+=mu();var Te;y===null?Te="null":Aa(y)?Te="array":y!==void 0&&y.$$typeof===r?(Te="<"+(_(y.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):Te=typeof y,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Te,te)}var Fe=Kb(y,F,R,ce,ge);if(Fe==null)return Fe;if(oe){var Xe=F.children;if(Xe!==void 0)if(G)if(Aa(Xe)){for(var kn=0;kn<Xe.length;kn++)bu(Xe[kn],y);Object.freeze&&Object.freeze(Xe)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else bu(Xe,y)}if(pt.call(F,"key")){var rn=_(y),Ve=Object.keys(F).filter(function(oy){return oy!=="key"}),Ha=Ve.length>0?"{key: someKey, "+Ve.join(": ..., ")+": ...}":"{key: someKey}";if(!yu[rn+Ha]){var ry=Ve.length>0?"{"+Ve.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Ra,on,iy,on),yu[on+Ra]=!0}}return y===t?ty(Ie):ey(Ie),Ie}}function ny(y,L,W){return wu(y,L,W,!0)}function ry(y,L,W){return wu(y,L,W,!1)}var oy=ry,ay=ny;On.Fragment=t,On.jsx=oy,On.jsxs=ay}()),On}process.env.NODE_ENV==="production"?po.exports=xu():po.exports=Du();var I=po.exports;function za(n){var r,e,t="";if(typeof n=="string"||typeof n=="number")t+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(r=0;r<o;r++)n[r]&&(e=za(n[r]))&&(t&&(t+=" "),t+=e)}else for(e in n)n[e]&&(t&&(t+=" "),t+=e);return t}function Fe(){for(var n,r,e=0,t="",o=arguments.length;e<o;e++)(n=arguments[e])&&(r=za(n))&&(t&&(t+=" "),t+=r);return t}const ho="-";function Eu(n){const r=ku(n),{conflictingClassGroups:e,conflictingClassGroupModifiers:t}=n;function o(i){const s=i.split(ho);return s[0]===""&&s.length!==1&&s.shift(),Ua(s,r)||Cu(i)}function a(i,s){const l=e[i]||[];return s&&t[i]?[...l,...t[i]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:a}}function Ua(n,r){var i;if(n.length===0)return r.classGroupId;const e=n[0],t=r.nextPart.get(e),o=t?Ua(n.slice(1),t):void 0;if(o)return o;if(r.validators.length===0)return;const a=n.join(ho);return(i=r.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId}const Qa=/^\[(.+)\]$/;function Cu(n){if(Qa.test(n)){const r=Qa.exec(n)[1],e=r==null?void 0:r.substring(0,r.indexOf(":"));if(e)return"arbitrary.."+e}}function ku(n){const{theme:r,prefix:e}=n,t={nextPart:new Map,validators:[]};return _u(Object.entries(n.classGroups),e).forEach(([a,i])=>{mo(i,t,a,r)}),t}function mo(n,r,e,t){n.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ka(r,o);a.classGroupId=e;return}if(typeof o=="function"){if(Su(o)){mo(o(t),r,e,t);return}r.validators.push({validator:o,classGroupId:e});return}Object.entries(o).forEach(([a,i])=>{mo(i,Ka(r,a),e,t)})})}function Ka(n,r){let e=n;return r.split(ho).forEach(t=>{e.nextPart.has(t)||e.nextPart.set(t,{nextPart:new Map,validators:[]}),e=e.nextPart.get(t)}),e}function Su(n){return n.isThemeGetter}function _u(n,r){return r?n.map(([e,t])=>{const o=t.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[r+i,s])):a);return[e,o]}):n}function Ou(n){if(n<1)return{get:()=>{},set:()=>{}};let r=0,e=new Map,t=new Map;function o(a,i){e.set(a,i),r++,r>n&&(r=0,t=e,e=new Map)}return{get(a){let i=e.get(a);if(i!==void 0)return i;if((i=t.get(a))!==void 0)return o(a,i),i},set(a,i){e.has(a)?e.set(a,i):o(a,i)}}}const qa="!";function Pu(n){const{separator:r,experimentalParseClassName:e}=n,t=r.length===1,o=r[0],a=r.length;function i(s){const l=[];let u=0,c=0,f;for(let v=0;v<s.length;v++){let b=s[v];if(u===0){if(b===o&&(t||s.slice(v,v+a)===r)){l.push(s.slice(c,v)),c=v+a;continue}if(b==="/"){f=v;continue}}b==="["?u++:b==="]"&&u--}const h=l.length===0?s:s.substring(c),p=h.startsWith(qa),m=p?h.substring(1):h,g=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}}return e?function(l){return e({className:l,parseClassName:i})}:i}function Mu(n){if(n.length<=1)return n;const r=[];let e=[];return n.forEach(t=>{t[0]==="["?(r.push(...e.sort(),t),e=[]):e.push(t)}),r.push(...e.sort()),r}function Tu(n){return{cache:Ou(n.cacheSize),parseClassName:Pu(n),...Eu(n)}}const Nu=/\s+/;function Iu(n,r){const{parseClassName:e,getClassGroupId:t,getConflictingClassGroupIds:o}=r,a=new Set;return n.trim().split(Nu).map(i=>{const{modifiers:s,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=e(i);let f=!!c,h=t(f?u.substring(0,c):u);if(!h){if(!f)return{isTailwindClass:!1,originalClassName:i};if(h=t(u),!h)return{isTailwindClass:!1,originalClassName:i};f=!1}const p=Mu(s).join(":");return{isTailwindClass:!0,modifierId:l?p+qa:p,classGroupId:h,originalClassName:i,hasPostfixModifier:f}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:s,classGroupId:l,hasPostfixModifier:u}=i,c=s+l;return a.has(c)?!1:(a.add(c),o(l,u).forEach(f=>a.add(s+f)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function Fu(){let n=0,r,e,t="";for(;n<arguments.length;)(r=arguments[n++])&&(e=Ga(r))&&(t&&(t+=" "),t+=e);return t}function Ga(n){if(typeof n=="string")return n;let r,e="";for(let t=0;t<n.length;t++)n[t]&&(r=Ga(n[t]))&&(e&&(e+=" "),e+=r);return e}function Lu(n,...r){let e,t,o,a=i;function i(l){const u=r.reduce((c,f)=>f(c),n());return e=Tu(u),t=e.cache.get,o=e.cache.set,a=s,s(l)}function s(l){const u=t(l);if(u)return u;const c=Iu(l,e);return o(l,c),c}return function(){return a(Fu.apply(null,arguments))}}function ve(n){const r=e=>e[n]||[];return r.isThemeGetter=!0,r}const Xa=/^\[(?:([a-z-]+):)?(.+)\]$/i,Au=/^\d+\/\d+$/,$u=new Set(["px","full","screen"]),Yu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ju=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Wu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ru=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function ht(n){return Rt(n)||$u.has(n)||Au.test(n)}function Ct(n){return an(n,"length",Gu)}function Rt(n){return!!n&&!Number.isNaN(Number(n))}function ur(n){return an(n,"number",Rt)}function Pn(n){return!!n&&Number.isInteger(Number(n))}function Bu(n){return n.endsWith("%")&&Rt(n.slice(0,-1))}function X(n){return Xa.test(n)}function kt(n){return Yu.test(n)}const Vu=new Set(["length","size","percentage"]);function zu(n){return an(n,Vu,Ja)}function Uu(n){return an(n,"position",Ja)}const Qu=new Set(["image","url"]);function Ku(n){return an(n,Qu,Ju)}function qu(n){return an(n,"",Xu)}function Mn(){return!0}function an(n,r,e){const t=Xa.exec(n);return t?t[1]?typeof r=="string"?t[1]===r:r.has(t[1]):e(t[2]):!1}function Gu(n){return ju.test(n)&&!Wu.test(n)}function Ja(){return!1}function Xu(n){return Ru.test(n)}function Ju(n){return Hu.test(n)}function Zu(){const n=ve("colors"),r=ve("spacing"),e=ve("blur"),t=ve("brightness"),o=ve("borderColor"),a=ve("borderRadius"),i=ve("borderSpacing"),s=ve("borderWidth"),l=ve("contrast"),u=ve("grayscale"),c=ve("hueRotate"),f=ve("invert"),h=ve("gap"),p=ve("gradientColorStops"),m=ve("gradientColorStopPositions"),g=ve("inset"),v=ve("margin"),b=ve("opacity"),w=ve("padding"),x=ve("saturate"),S=ve("scale"),P=ve("sepia"),N=ve("skew"),_=ve("space"),M=ve("translate"),A=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto",X,r],E=()=>[X,r],k=()=>["",ht,Ct],C=()=>["auto",Rt,X],F=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],T=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],O=()=>["","0",X],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[Rt,ur],z=()=>[Rt,X];return{cacheSize:500,separator:":",theme:{colors:[Mn],spacing:[ht,Ct],blur:["none","",kt,X],brightness:G(),borderColor:[n],borderRadius:["none","","full",kt,X],borderSpacing:E(),borderWidth:k(),contrast:G(),grayscale:O(),hueRotate:z(),invert:O(),gap:E(),gradientColorStops:[n],gradientColorStopPositions:[Bu,Ct],inset:D(),margin:D(),opacity:G(),padding:E(),saturate:G(),scale:G(),sepia:O(),skew:z(),space:E(),translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",X]}],container:["container"],columns:[{columns:[kt]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...F(),X]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pn,X]}],basis:[{basis:D()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",X]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",Pn,X]}],"grid-cols":[{"grid-cols":[Mn]}],"col-start-end":[{col:["auto",{span:["full",Pn,X]},X]}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[Mn]}],"row-start-end":[{row:["auto",{span:[Pn,X]},X]}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",X]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",X]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",X,r]}],"min-w":[{"min-w":[X,r,"min","max","fit"]}],"max-w":[{"max-w":[X,r,"none","full","min","max","fit","prose",{screen:[kt]},kt]}],h:[{h:[X,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[X,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[X,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[X,r,"auto","min","max","fit"]}],"font-size":[{text:["base",kt,Ct]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ur]}],"font-family":[{font:[Mn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",X]}],"line-clamp":[{"line-clamp":["none",Rt,ur]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ht,X]}],"list-image":[{"list-image":["none",X]}],"list-style-type":[{list:["none","disc","decimal",X]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ht,Ct]}],"underline-offset":[{"underline-offset":["auto",ht,X]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...F(),Uu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zu]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ku]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[ht,X]}],"outline-w":[{outline:[ht,Ct]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[ht,Ct]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",kt,qu]}],"shadow-color":[{shadow:[Mn]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...T(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":T()}],filter:[{filter:["","none"]}],blur:[{blur:[e]}],brightness:[{brightness:[t]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",kt,X]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[e]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",X]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",X]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",X]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Pn,X]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",X]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[ht,Ct,ur]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const ec=Lu(Zu);function cr(...n){return ec(Fe(n))}const Za=({className:n,text:r,onClick:e,disabled:t})=>I.jsx("button",{disabled:t,onClick:e,className:cr("w-full rounded-xl bg-petnowOrange py-5 text-2xl font-bold text-white transition-colors duration-200 disabled:bg-lightGray sm:hover:bg-[#DF592C] sm:disabled:hover:bg-lightGray",n),children:r});var ei={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ti=d.createContext&&d.createContext(ei),tc=["attr","size","title"];function nc(n,r){if(n==null)return{};var e=rc(n,r),t,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(o=0;o<a.length;o++)t=a[o],!(r.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function rc(n,r){if(n==null)return{};var e={};for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t)){if(r.indexOf(t)>=0)continue;e[t]=n[t]}return e}function dr(){return dr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},dr.apply(this,arguments)}function ni(n,r){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);r&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function fr(n){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?ni(Object(e),!0).forEach(function(t){oc(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ni(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function oc(n,r,e){return r=ac(r),r in n?Object.defineProperty(n,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[r]=e,n}function ac(n){var r=ic(n,"string");return typeof r=="symbol"?r:r+""}function ic(n,r){if(typeof n!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,r||"default");if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function ri(n){return n&&n.map((r,e)=>d.createElement(r.tag,fr({key:e},r.attr),ri(r.child)))}function Tn(n){return r=>d.createElement(sc,dr({attr:fr({},n.attr)},r),ri(n.child))}function sc(n){var r=e=>{var{attr:t,size:o,title:a}=n,i=nc(n,tc),s=o||e.size||"1em",l;return e.className&&(l=e.className),n.className&&(l=(l?l+" ":"")+n.className),d.createElement("svg",dr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,t,i,{className:l,style:fr(fr({color:n.color||e.color},e.style),n.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&d.createElement("title",null,a),n.children)};return ti!==void 0?d.createElement(ti.Consumer,null,e=>r(e)):r(ei)}function lc(n){return Tn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"},child:[]}]})(n)}function oi(n){return Tn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(n)}const ai=typeof document<"u"?d.useLayoutEffect:()=>{};function uc(n){const r=d.useRef(null);return ai(()=>{r.current=n},[n]),d.useCallback((...e)=>{const t=r.current;return t==null?void 0:t(...e)},[])}const Nn=n=>{var r;return(r=n==null?void 0:n.ownerDocument)!==null&&r!==void 0?r:document},Ht=n=>n&&"window"in n&&n.window===n?n:Nn(n).defaultView||window;function cc(n){var r;return typeof window>"u"||window.navigator==null?!1:((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands.some(e=>n.test(e.brand)))||n.test(window.navigator.userAgent)}function dc(n){var r;return typeof window<"u"&&window.navigator!=null?n.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function ii(n){let r=null;return()=>(r==null&&(r=n()),r)}const fc=ii(function(){return dc(/^Mac/i)}),pc=ii(function(){return cc(/Android/i)});function hc(n){return n.mozInputSource===0&&n.isTrusted?!0:pc()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}class mc{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(r,e){this.nativeEvent=e,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget,this.bubbles=e.bubbles,this.cancelable=e.cancelable,this.defaultPrevented=e.defaultPrevented,this.eventPhase=e.eventPhase,this.isTrusted=e.isTrusted,this.timeStamp=e.timeStamp,this.type=r}}function si(n){let r=d.useRef({isFocused:!1,observer:null});ai(()=>{const t=r.current;return()=>{t.observer&&(t.observer.disconnect(),t.observer=null)}},[]);let e=uc(t=>{n==null||n(t)});return d.useCallback(t=>{if(t.target instanceof HTMLButtonElement||t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement||t.target instanceof HTMLSelectElement){r.current.isFocused=!0;let o=t.target,a=i=>{r.current.isFocused=!1,o.disabled&&e(new mc("blur",i)),r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&o.disabled){var i;(i=r.current.observer)===null||i===void 0||i.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),r.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[e])}function vc(n){let{isDisabled:r,onFocus:e,onBlur:t,onFocusChange:o}=n;const a=d.useCallback(l=>{if(l.target===l.currentTarget)return t&&t(l),o&&o(!1),!0},[t,o]),i=si(a),s=d.useCallback(l=>{const u=Nn(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(e&&e(l),o&&o(!0),i(l))},[o,e,i]);return{focusProps:{onFocus:!r&&(e||o||t)?s:void 0,onBlur:!r&&(t||o)?a:void 0}}}let In=null,vo=new Set,Fn=new Map,Bt=!1,go=!1;const gc={Tab:!0,Escape:!0};function bo(n,r){for(let e of vo)e(n,r)}function bc(n){return!(n.metaKey||!fc()&&n.altKey||n.ctrlKey||n.key==="Control"||n.key==="Shift"||n.key==="Meta")}function pr(n){Bt=!0,bc(n)&&(In="keyboard",bo("keyboard",n))}function Qe(n){In="pointer",(n.type==="mousedown"||n.type==="pointerdown")&&(Bt=!0,bo("pointer",n))}function li(n){hc(n)&&(Bt=!0,In="virtual")}function ui(n){n.target===window||n.target===document||(!Bt&&!go&&(In="virtual",bo("virtual",n)),Bt=!1,go=!1)}function ci(){Bt=!1,go=!0}function yo(n){if(typeof window>"u"||Fn.get(Ht(n)))return;const r=Ht(n),e=Nn(n);let t=r.HTMLElement.prototype.focus;r.HTMLElement.prototype.focus=function(){Bt=!0,t.apply(this,arguments)},e.addEventListener("keydown",pr,!0),e.addEventListener("keyup",pr,!0),e.addEventListener("click",li,!0),r.addEventListener("focus",ui,!0),r.addEventListener("blur",ci,!1),typeof PointerEvent<"u"?(e.addEventListener("pointerdown",Qe,!0),e.addEventListener("pointermove",Qe,!0),e.addEventListener("pointerup",Qe,!0)):(e.addEventListener("mousedown",Qe,!0),e.addEventListener("mousemove",Qe,!0),e.addEventListener("mouseup",Qe,!0)),r.addEventListener("beforeunload",()=>{di(n)},{once:!0}),Fn.set(r,{focus:t})}const di=(n,r)=>{const e=Ht(n),t=Nn(n);r&&t.removeEventListener("DOMContentLoaded",r),Fn.has(e)&&(e.HTMLElement.prototype.focus=Fn.get(e).focus,t.removeEventListener("keydown",pr,!0),t.removeEventListener("keyup",pr,!0),t.removeEventListener("click",li,!0),e.removeEventListener("focus",ui,!0),e.removeEventListener("blur",ci,!1),typeof PointerEvent<"u"?(t.removeEventListener("pointerdown",Qe,!0),t.removeEventListener("pointermove",Qe,!0),t.removeEventListener("pointerup",Qe,!0)):(t.removeEventListener("mousedown",Qe,!0),t.removeEventListener("mousemove",Qe,!0),t.removeEventListener("mouseup",Qe,!0)),Fn.delete(e))};function yc(n){const r=Nn(n);let e;return r.readyState!=="loading"?yo(n):(e=()=>{yo(n)},r.addEventListener("DOMContentLoaded",e)),()=>di(n,e)}typeof document<"u"&&yc();function fi(){return In!=="pointer"}const wc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function xc(n,r,e){var t;const o=typeof window<"u"?Ht(e==null?void 0:e.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Ht(e==null?void 0:e.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?Ht(e==null?void 0:e.target).HTMLElement:HTMLElement,s=typeof window<"u"?Ht(e==null?void 0:e.target).KeyboardEvent:KeyboardEvent;return n=n||(e==null?void 0:e.target)instanceof o&&!wc.has(e==null||(t=e.target)===null||t===void 0?void 0:t.type)||(e==null?void 0:e.target)instanceof a||(e==null?void 0:e.target)instanceof i&&(e==null?void 0:e.target.isContentEditable),!(n&&r==="keyboard"&&e instanceof s&&!gc[e.key])}function Dc(n,r,e){yo(),d.useEffect(()=>{let t=(o,a)=>{xc(!!(e!=null&&e.isTextInput),o,a)&&n(fi())};return vo.add(t),()=>{vo.delete(t)}},r)}function Ec(n){let{isDisabled:r,onBlurWithin:e,onFocusWithin:t,onFocusWithinChange:o}=n,a=d.useRef({isFocusWithin:!1}),i=d.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,e&&e(u),o&&o(!1))},[e,o,a]),s=si(i),l=d.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(t&&t(u),o&&o(!0),a.current.isFocusWithin=!0,s(u))},[t,o,s]);return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:i}}}let hr=!1,wo=0;function xo(){hr=!0,setTimeout(()=>{hr=!1},50)}function pi(n){n.pointerType==="touch"&&xo()}function Cc(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",pi):document.addEventListener("touchend",xo),wo++,()=>{wo--,!(wo>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",pi):document.removeEventListener("touchend",xo))}}function Do(n){let{onHoverStart:r,onHoverChange:e,onHoverEnd:t,isDisabled:o}=n,[a,i]=d.useState(!1),s=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(Cc,[]);let{hoverProps:l,triggerHoverEnd:u}=d.useMemo(()=>{let c=(p,m)=>{if(s.pointerType=m,o||m==="touch"||s.isHovered||!p.currentTarget.contains(p.target))return;s.isHovered=!0;let g=p.currentTarget;s.target=g,r&&r({type:"hoverstart",target:g,pointerType:m}),e&&e(!0),i(!0)},f=(p,m)=>{if(s.pointerType="",s.target=null,m==="touch"||!s.isHovered)return;s.isHovered=!1;let g=p.currentTarget;t&&t({type:"hoverend",target:g,pointerType:m}),e&&e(!1),i(!1)},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=p=>{hr&&p.pointerType==="mouse"||c(p,p.pointerType)},h.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&f(p,p.pointerType)}):(h.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=p=>{!s.ignoreEmulatedMouseEvents&&!hr&&c(p,"mouse"),s.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&f(p,"mouse")}),{hoverProps:h,triggerHoverEnd:f}},[r,e,t,o,s]);return d.useEffect(()=>{o&&u({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:a}}function Eo(n={}){let{autoFocus:r=!1,isTextInput:e,within:t}=n,o=d.useRef({isFocused:!1,isFocusVisible:r||fi()}),[a,i]=d.useState(!1),[s,l]=d.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=d.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=d.useCallback(p=>{o.current.isFocused=p,i(p),u()},[u]);Dc(p=>{o.current.isFocusVisible=p,u()},[],{isTextInput:e});let{focusProps:f}=vc({isDisabled:t,onFocusChange:c}),{focusWithinProps:h}=Ec({isDisabled:!t,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:s,focusProps:t?h:f}}var kc=Object.defineProperty,Sc=(n,r,e)=>r in n?kc(n,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[r]=e,Co=(n,r,e)=>(Sc(n,typeof r!="symbol"?r+"":r,e),e);let _c=class{constructor(){Co(this,"current",this.detect()),Co(this,"handoffState","pending"),Co(this,"currentId",0)}set(r){this.current!==r&&(this.handoffState="pending",this.currentId=0,this.current=r)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Vt=new _c;function zt(n){return Vt.isServer?null:n instanceof Node?n.ownerDocument:n!=null&&n.hasOwnProperty("current")&&n.current instanceof Node?n.current.ownerDocument:document}function mr(n){typeof queueMicrotask=="function"?queueMicrotask(n):Promise.resolve().then(n).catch(r=>setTimeout(()=>{throw r}))}function Xe(){let n=[],r={addEventListener(e,t,o,a){return e.addEventListener(t,o,a),r.add(()=>e.removeEventListener(t,o,a))},requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add(()=>cancelAnimationFrame(t))},nextFrame(...e){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...e))},setTimeout(...e){let t=setTimeout(...e);return r.add(()=>clearTimeout(t))},microTask(...e){let t={current:!0};return mr(()=>{t.current&&e[0]()}),r.add(()=>{t.current=!1})},style(e,t,o){let a=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:o}),this.add(()=>{Object.assign(e.style,{[t]:a})})},group(e){let t=Xe();return e(t),this.add(()=>t.dispose())},add(e){return n.includes(e)||n.push(e),()=>{let t=n.indexOf(e);if(t>=0)for(let o of n.splice(t,1))o()}},dispose(){for(let e of n.splice(0))e()}};return r}function mt(){let[n]=d.useState(Xe);return d.useEffect(()=>()=>n.dispose(),[n]),n}let ee=(n,r)=>{Vt.isServer?d.useEffect(n,r):d.useLayoutEffect(n,r)};function et(n){let r=d.useRef(n);return ee(()=>{r.current=n},[n]),r}let Y=function(n){let r=et(n);return d.useCallback((...e)=>r.current(...e),[r])};function Oc(n){let r=n.width/2,e=n.height/2;return{top:n.clientY-e,right:n.clientX+r,bottom:n.clientY+e,left:n.clientX-r}}function Pc(n,r){return!(!n||!r||n.right<r.left||n.left>r.right||n.bottom<r.top||n.top>r.bottom)}function hi({disabled:n=!1}={}){let r=d.useRef(null),[e,t]=d.useState(!1),o=mt(),a=Y(()=>{r.current=null,t(!1),o.dispose()}),i=Y(s=>{if(o.dispose(),r.current===null){r.current=s.currentTarget,t(!0);{let l=zt(s.currentTarget);o.addEventListener(l,"pointerup",a,!1),o.addEventListener(l,"pointermove",u=>{if(r.current){let c=Oc(u);t(Pc(c,r.current.getBoundingClientRect()))}},!1),o.addEventListener(l,"pointercancel",a,!1)}}});return{pressed:e,pressProps:n?{}:{onPointerDown:i,onPointerUp:a,onClick:a}}}let Mc=d.createContext(void 0);function vr(){return d.useContext(Mc)}function ko(...n){return Array.from(new Set(n.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}function Me(n,r,...e){if(n in r){let o=r[n];return typeof o=="function"?o(...e):o}let t=new Error(`Tried to handle "${n}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Me),t}var St=(n=>(n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n))(St||{}),_t=(n=>(n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n))(_t||{});function De({ourProps:n,theirProps:r,slot:e,defaultTag:t,features:o,visible:a=!0,name:i,mergeRefs:s}){s=s??Tc;let l=mi(r,n);if(a)return gr(l,e,t,i,s);let u=o??0;if(u&2){let{static:c=!1,...f}=l;if(c)return gr(f,e,t,i,s)}if(u&1){let{unmount:c=!0,...f}=l;return Me(c?0:1,{0(){return null},1(){return gr({...f,hidden:!0,style:{display:"none"}},e,t,i,s)}})}return gr(l,e,t,i,s)}function gr(n,r={},e,t,o){let{as:a=e,children:i,refName:s="ref",...l}=So(n,["unmount","static"]),u=n.ref!==void 0?{[s]:n.ref}:{},c=typeof i=="function"?i(r):i;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(r)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let f={};if(r){let h=!1,p=[];for(let[m,g]of Object.entries(r))typeof g=="boolean"&&(h=!0),g===!0&&p.push(m.replace(/([A-Z])/g,v=>`-${v.toLowerCase()}`));if(h){f["data-headlessui-state"]=p.join(" ");for(let m of p)f[`data-${m}`]=""}}if(a===d.Fragment&&(Object.keys(Ot(l)).length>0||Object.keys(Ot(f)).length>0))if(!d.isValidElement(c)||Array.isArray(c)&&c.length>1){if(Object.keys(Ot(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${t} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Ot(l)).concat(Object.keys(Ot(f))).map(h=>` - ${h}`).join(`
31
- `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(`
30
+ <%s key={someKey} {...props} />`,Ha,rn,ry,rn),yu[rn+Ha]=!0}}return y===t?Jb(Fe):Xb(Fe),Fe}}function Zb(y,F,R){return wu(y,F,R,!0)}function ey(y,F,R){return wu(y,F,R,!1)}var ty=ey,ny=Zb;On.Fragment=t,On.jsx=ty,On.jsxs=ny}()),On}process.env.NODE_ENV==="production"?co.exports=xu():co.exports=Du();var T=co.exports;function za(n){var r,e,t="";if(typeof n=="string"||typeof n=="number")t+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(r=0;r<o;r++)n[r]&&(e=za(n[r]))&&(t&&(t+=" "),t+=e)}else for(e in n)n[e]&&(t&&(t+=" "),t+=e);return t}function Le(){for(var n,r,e=0,t="",o=arguments.length;e<o;e++)(n=arguments[e])&&(r=za(n))&&(t&&(t+=" "),t+=r);return t}const fo="-",Eu=n=>{const r=ku(n),{conflictingClassGroups:e,conflictingClassGroupModifiers:t}=n;return{getClassGroupId:i=>{const s=i.split(fo);return s[0]===""&&s.length!==1&&s.shift(),Qa(s,r)||Cu(i)},getConflictingClassGroupIds:(i,s)=>{const l=e[i]||[];return s&&t[i]?[...l,...t[i]]:l}}},Qa=(n,r)=>{var i;if(n.length===0)return r.classGroupId;const e=n[0],t=r.nextPart.get(e),o=t?Qa(n.slice(1),t):void 0;if(o)return o;if(r.validators.length===0)return;const a=n.join(fo);return(i=r.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},Ua=/^\[(.+)\]$/,Cu=n=>{if(Ua.test(n)){const r=Ua.exec(n)[1],e=r==null?void 0:r.substring(0,r.indexOf(":"));if(e)return"arbitrary.."+e}},ku=n=>{const{theme:r,prefix:e}=n,t={nextPart:new Map,validators:[]};return _u(Object.entries(n.classGroups),e).forEach(([a,i])=>{po(i,t,a,r)}),t},po=(n,r,e,t)=>{n.forEach(o=>{if(typeof o=="string"){const a=o===""?r:Ka(r,o);a.classGroupId=e;return}if(typeof o=="function"){if(Su(o)){po(o(t),r,e,t);return}r.validators.push({validator:o,classGroupId:e});return}Object.entries(o).forEach(([a,i])=>{po(i,Ka(r,a),e,t)})})},Ka=(n,r)=>{let e=n;return r.split(fo).forEach(t=>{e.nextPart.has(t)||e.nextPart.set(t,{nextPart:new Map,validators:[]}),e=e.nextPart.get(t)}),e},Su=n=>n.isThemeGetter,_u=(n,r)=>r?n.map(([e,t])=>{const o=t.map(a=>typeof a=="string"?r+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[r+i,s])):a);return[e,o]}):n,Ou=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,e=new Map,t=new Map;const o=(a,i)=>{e.set(a,i),r++,r>n&&(r=0,t=e,e=new Map)};return{get(a){let i=e.get(a);if(i!==void 0)return i;if((i=t.get(a))!==void 0)return o(a,i),i},set(a,i){e.has(a)?e.set(a,i):o(a,i)}}},qa="!",Pu=n=>{const{separator:r,experimentalParseClassName:e}=n,t=r.length===1,o=r[0],a=r.length,i=s=>{const l=[];let u=0,c=0,f;for(let g=0;g<s.length;g++){let b=s[g];if(u===0){if(b===o&&(t||s.slice(g,g+a)===r)){l.push(s.slice(c,g)),c=g+a;continue}if(b==="/"){f=g;continue}}b==="["?u++:b==="]"&&u--}const m=l.length===0?s:s.substring(c),p=m.startsWith(qa),h=p?m.substring(1):m,v=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:v}};return e?s=>e({className:s,parseClassName:i}):i},Mu=n=>{if(n.length<=1)return n;const r=[];let e=[];return n.forEach(t=>{t[0]==="["?(r.push(...e.sort(),t),e=[]):e.push(t)}),r.push(...e.sort()),r},Tu=n=>({cache:Ou(n.cacheSize),parseClassName:Pu(n),...Eu(n)}),Nu=/\s+/,Iu=(n,r)=>{const{parseClassName:e,getClassGroupId:t,getConflictingClassGroupIds:o}=r,a=[],i=n.trim().split(Nu);let s="";for(let l=i.length-1;l>=0;l-=1){const u=i[l],{modifiers:c,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:p}=e(u);let h=!!p,v=t(h?m.substring(0,p):m);if(!v){if(!h){s=u+(s.length>0?" "+s:s);continue}if(v=t(m),!v){s=u+(s.length>0?" "+s:s);continue}h=!1}const g=Mu(c).join(":"),b=f?g+qa:g,w=b+v;if(a.includes(w))continue;a.push(w);const x=o(v,h);for(let k=0;k<x.length;++k){const P=x[k];a.push(b+P)}s=u+(s.length>0?" "+s:s)}return s};function Fu(){let n=0,r,e,t="";for(;n<arguments.length;)(r=arguments[n++])&&(e=Ga(r))&&(t&&(t+=" "),t+=e);return t}const Ga=n=>{if(typeof n=="string")return n;let r,e="";for(let t=0;t<n.length;t++)n[t]&&(r=Ga(n[t]))&&(e&&(e+=" "),e+=r);return e};function Lu(n,...r){let e,t,o,a=i;function i(l){const u=r.reduce((c,f)=>f(c),n());return e=Tu(u),t=e.cache.get,o=e.cache.set,a=s,s(l)}function s(l){const u=t(l);if(u)return u;const c=Iu(l,e);return o(l,c),c}return function(){return a(Fu.apply(null,arguments))}}const be=n=>{const r=e=>e[n]||[];return r.isThemeGetter=!0,r},Xa=/^\[(?:([a-z-]+):)?(.+)\]$/i,Au=/^\d+\/\d+$/,$u=new Set(["px","full","screen"]),Yu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ju=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Wu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Hu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ru=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ht=n=>on(n)||$u.has(n)||Au.test(n),Ct=n=>an(n,"length",Gu),on=n=>!!n&&!Number.isNaN(Number(n)),ho=n=>an(n,"number",on),Pn=n=>!!n&&Number.isInteger(Number(n)),Bu=n=>n.endsWith("%")&&on(n.slice(0,-1)),J=n=>Xa.test(n),kt=n=>Yu.test(n),Vu=new Set(["length","size","percentage"]),zu=n=>an(n,Vu,Ja),Qu=n=>an(n,"position",Ja),Uu=new Set(["image","url"]),Ku=n=>an(n,Uu,Ju),qu=n=>an(n,"",Xu),Mn=()=>!0,an=(n,r,e)=>{const t=Xa.exec(n);return t?t[1]?typeof r=="string"?t[1]===r:r.has(t[1]):e(t[2]):!1},Gu=n=>ju.test(n)&&!Wu.test(n),Ja=()=>!1,Xu=n=>Hu.test(n),Ju=n=>Ru.test(n),Zu=Lu(()=>{const n=be("colors"),r=be("spacing"),e=be("blur"),t=be("brightness"),o=be("borderColor"),a=be("borderRadius"),i=be("borderSpacing"),s=be("borderWidth"),l=be("contrast"),u=be("grayscale"),c=be("hueRotate"),f=be("invert"),m=be("gap"),p=be("gradientColorStops"),h=be("gradientColorStopPositions"),v=be("inset"),g=be("margin"),b=be("opacity"),w=be("padding"),x=be("saturate"),k=be("scale"),P=be("sepia"),M=be("skew"),S=be("space"),O=be("translate"),I=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",J,r],C=()=>[J,r],_=()=>["",ht,Ct],D=()=>["auto",on,J],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],A=()=>["solid","dashed","dotted","double","none"],$=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",J],X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>[on,J];return{cacheSize:500,separator:":",theme:{colors:[Mn],spacing:[ht,Ct],blur:["none","",kt,J],brightness:q(),borderColor:[n],borderRadius:["none","","full",kt,J],borderSpacing:C(),borderWidth:_(),contrast:q(),grayscale:j(),hueRotate:q(),invert:j(),gap:C(),gradientColorStops:[n],gradientColorStopPositions:[Bu,Ct],inset:E(),margin:E(),opacity:q(),padding:C(),saturate:q(),scale:q(),sepia:j(),skew:q(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",J]}],container:["container"],columns:[{columns:[kt]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...N(),J]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pn,J]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",J]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",Pn,J]}],"grid-cols":[{"grid-cols":[Mn]}],"col-start-end":[{col:["auto",{span:["full",Pn,J]},J]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[Mn]}],"row-start-end":[{row:["auto",{span:[Pn,J]},J]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",J]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",J]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",J,r]}],"min-w":[{"min-w":[J,r,"min","max","fit"]}],"max-w":[{"max-w":[J,r,"none","full","min","max","fit","prose",{screen:[kt]},kt]}],h:[{h:[J,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[J,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[J,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[J,r,"auto","min","max","fit"]}],"font-size":[{text:["base",kt,Ct]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ho]}],"font-family":[{font:[Mn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",J]}],"line-clamp":[{"line-clamp":["none",on,ho]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ht,J]}],"list-image":[{"list-image":["none",J]}],"list-style-type":[{list:["none","disc","decimal",J]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ht,Ct]}],"underline-offset":[{"underline-offset":["auto",ht,J]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),Qu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zu]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ku]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...A(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:A()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...A()]}],"outline-offset":[{"outline-offset":[ht,J]}],"outline-w":[{outline:[ht,Ct]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[ht,Ct]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",kt,qu]}],"shadow-color":[{shadow:[Mn]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...$(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[e]}],brightness:[{brightness:[t]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",kt,J]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[e]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",J]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",J]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",J]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Pn,J]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",J]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",J]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[ht,Ct,ho]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function ur(...n){return Zu(Le(n))}const Za=({className:n,text:r,onClick:e,disabled:t})=>T.jsx("button",{disabled:t,onClick:e,className:ur("w-full rounded-xl bg-petnowOrange py-5 text-2xl font-bold text-white transition-colors duration-200 disabled:bg-lightGray sm:hover:bg-[#DF592C] sm:disabled:hover:bg-lightGray",n),children:r});var ei={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ti=d.createContext&&d.createContext(ei),ec=["attr","size","title"];function tc(n,r){if(n==null)return{};var e=nc(n,r),t,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(o=0;o<a.length;o++)t=a[o],!(r.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function nc(n,r){if(n==null)return{};var e={};for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t)){if(r.indexOf(t)>=0)continue;e[t]=n[t]}return e}function cr(){return cr=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},cr.apply(this,arguments)}function ni(n,r){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);r&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function dr(n){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?ni(Object(e),!0).forEach(function(t){rc(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ni(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function rc(n,r,e){return r=oc(r),r in n?Object.defineProperty(n,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[r]=e,n}function oc(n){var r=ac(n,"string");return typeof r=="symbol"?r:r+""}function ac(n,r){if(typeof n!="object"||!n)return n;var e=n[Symbol.toPrimitive];if(e!==void 0){var t=e.call(n,r||"default");if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}function ri(n){return n&&n.map((r,e)=>d.createElement(r.tag,dr({key:e},r.attr),ri(r.child)))}function Tn(n){return r=>d.createElement(ic,cr({attr:dr({},n.attr)},r),ri(n.child))}function ic(n){var r=e=>{var{attr:t,size:o,title:a}=n,i=tc(n,ec),s=o||e.size||"1em",l;return e.className&&(l=e.className),n.className&&(l=(l?l+" ":"")+n.className),d.createElement("svg",cr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,t,i,{className:l,style:dr(dr({color:n.color||e.color},e.style),n.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&d.createElement("title",null,a),n.children)};return ti!==void 0?d.createElement(ti.Consumer,null,e=>r(e)):r(ei)}function sc(n){return Tn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"},child:[]}]})(n)}function oi(n){return Tn({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(n)}const ai=typeof document<"u"?d.useLayoutEffect:()=>{};function lc(n){const r=d.useRef(null);return ai(()=>{r.current=n},[n]),d.useCallback((...e)=>{const t=r.current;return t==null?void 0:t(...e)},[])}const Nn=n=>{var r;return(r=n==null?void 0:n.ownerDocument)!==null&&r!==void 0?r:document},Ht=n=>n&&"window"in n&&n.window===n?n:Nn(n).defaultView||window;function uc(n){var r;return typeof window>"u"||window.navigator==null?!1:((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands.some(e=>n.test(e.brand)))||n.test(window.navigator.userAgent)}function cc(n){var r;return typeof window<"u"&&window.navigator!=null?n.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function ii(n){let r=null;return()=>(r==null&&(r=n()),r)}const dc=ii(function(){return cc(/^Mac/i)}),fc=ii(function(){return uc(/Android/i)});function pc(n){return n.mozInputSource===0&&n.isTrusted?!0:fc()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}class hc{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(r,e){this.nativeEvent=e,this.target=e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget,this.bubbles=e.bubbles,this.cancelable=e.cancelable,this.defaultPrevented=e.defaultPrevented,this.eventPhase=e.eventPhase,this.isTrusted=e.isTrusted,this.timeStamp=e.timeStamp,this.type=r}}function si(n){let r=d.useRef({isFocused:!1,observer:null});ai(()=>{const t=r.current;return()=>{t.observer&&(t.observer.disconnect(),t.observer=null)}},[]);let e=lc(t=>{n==null||n(t)});return d.useCallback(t=>{if(t.target instanceof HTMLButtonElement||t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement||t.target instanceof HTMLSelectElement){r.current.isFocused=!0;let o=t.target,a=i=>{r.current.isFocused=!1,o.disabled&&e(new hc("blur",i)),r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};o.addEventListener("focusout",a,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&o.disabled){var i;(i=r.current.observer)===null||i===void 0||i.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),r.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[e])}function mc(n){let{isDisabled:r,onFocus:e,onBlur:t,onFocusChange:o}=n;const a=d.useCallback(l=>{if(l.target===l.currentTarget)return t&&t(l),o&&o(!1),!0},[t,o]),i=si(a),s=d.useCallback(l=>{const u=Nn(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(e&&e(l),o&&o(!0),i(l))},[o,e,i]);return{focusProps:{onFocus:!r&&(e||o||t)?s:void 0,onBlur:!r&&(t||o)?a:void 0}}}let In=null,mo=new Set,Fn=new Map,Rt=!1,vo=!1;const vc={Tab:!0,Escape:!0};function go(n,r){for(let e of mo)e(n,r)}function gc(n){return!(n.metaKey||!dc()&&n.altKey||n.ctrlKey||n.key==="Control"||n.key==="Shift"||n.key==="Meta")}function fr(n){Rt=!0,gc(n)&&(In="keyboard",go("keyboard",n))}function Ke(n){In="pointer",(n.type==="mousedown"||n.type==="pointerdown")&&(Rt=!0,go("pointer",n))}function li(n){pc(n)&&(Rt=!0,In="virtual")}function ui(n){n.target===window||n.target===document||(!Rt&&!vo&&(In="virtual",go("virtual",n)),Rt=!1,vo=!1)}function ci(){Rt=!1,vo=!0}function bo(n){if(typeof window>"u"||Fn.get(Ht(n)))return;const r=Ht(n),e=Nn(n);let t=r.HTMLElement.prototype.focus;r.HTMLElement.prototype.focus=function(){Rt=!0,t.apply(this,arguments)},e.addEventListener("keydown",fr,!0),e.addEventListener("keyup",fr,!0),e.addEventListener("click",li,!0),r.addEventListener("focus",ui,!0),r.addEventListener("blur",ci,!1),typeof PointerEvent<"u"?(e.addEventListener("pointerdown",Ke,!0),e.addEventListener("pointermove",Ke,!0),e.addEventListener("pointerup",Ke,!0)):(e.addEventListener("mousedown",Ke,!0),e.addEventListener("mousemove",Ke,!0),e.addEventListener("mouseup",Ke,!0)),r.addEventListener("beforeunload",()=>{di(n)},{once:!0}),Fn.set(r,{focus:t})}const di=(n,r)=>{const e=Ht(n),t=Nn(n);r&&t.removeEventListener("DOMContentLoaded",r),Fn.has(e)&&(e.HTMLElement.prototype.focus=Fn.get(e).focus,t.removeEventListener("keydown",fr,!0),t.removeEventListener("keyup",fr,!0),t.removeEventListener("click",li,!0),e.removeEventListener("focus",ui,!0),e.removeEventListener("blur",ci,!1),typeof PointerEvent<"u"?(t.removeEventListener("pointerdown",Ke,!0),t.removeEventListener("pointermove",Ke,!0),t.removeEventListener("pointerup",Ke,!0)):(t.removeEventListener("mousedown",Ke,!0),t.removeEventListener("mousemove",Ke,!0),t.removeEventListener("mouseup",Ke,!0)),Fn.delete(e))};function bc(n){const r=Nn(n);let e;return r.readyState!=="loading"?bo(n):(e=()=>{bo(n)},r.addEventListener("DOMContentLoaded",e)),()=>di(n,e)}typeof document<"u"&&bc();function fi(){return In!=="pointer"}const yc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function wc(n,r,e){var t;const o=typeof window<"u"?Ht(e==null?void 0:e.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Ht(e==null?void 0:e.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?Ht(e==null?void 0:e.target).HTMLElement:HTMLElement,s=typeof window<"u"?Ht(e==null?void 0:e.target).KeyboardEvent:KeyboardEvent;return n=n||(e==null?void 0:e.target)instanceof o&&!yc.has(e==null||(t=e.target)===null||t===void 0?void 0:t.type)||(e==null?void 0:e.target)instanceof a||(e==null?void 0:e.target)instanceof i&&(e==null?void 0:e.target.isContentEditable),!(n&&r==="keyboard"&&e instanceof s&&!vc[e.key])}function xc(n,r,e){bo(),d.useEffect(()=>{let t=(o,a)=>{wc(!!(e!=null&&e.isTextInput),o,a)&&n(fi())};return mo.add(t),()=>{mo.delete(t)}},r)}function Dc(n){let{isDisabled:r,onBlurWithin:e,onFocusWithin:t,onFocusWithinChange:o}=n,a=d.useRef({isFocusWithin:!1}),i=d.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,e&&e(u),o&&o(!1))},[e,o,a]),s=si(i),l=d.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(t&&t(u),o&&o(!0),a.current.isFocusWithin=!0,s(u))},[t,o,s]);return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:i}}}let pr=!1,yo=0;function wo(){pr=!0,setTimeout(()=>{pr=!1},50)}function pi(n){n.pointerType==="touch"&&wo()}function Ec(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",pi):document.addEventListener("touchend",wo),yo++,()=>{yo--,!(yo>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",pi):document.removeEventListener("touchend",wo))}}function xo(n){let{onHoverStart:r,onHoverChange:e,onHoverEnd:t,isDisabled:o}=n,[a,i]=d.useState(!1),s=d.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;d.useEffect(Ec,[]);let{hoverProps:l,triggerHoverEnd:u}=d.useMemo(()=>{let c=(p,h)=>{if(s.pointerType=h,o||h==="touch"||s.isHovered||!p.currentTarget.contains(p.target))return;s.isHovered=!0;let v=p.currentTarget;s.target=v,r&&r({type:"hoverstart",target:v,pointerType:h}),e&&e(!0),i(!0)},f=(p,h)=>{if(s.pointerType="",s.target=null,h==="touch"||!s.isHovered)return;s.isHovered=!1;let v=p.currentTarget;t&&t({type:"hoverend",target:v,pointerType:h}),e&&e(!1),i(!1)},m={};return typeof PointerEvent<"u"?(m.onPointerEnter=p=>{pr&&p.pointerType==="mouse"||c(p,p.pointerType)},m.onPointerLeave=p=>{!o&&p.currentTarget.contains(p.target)&&f(p,p.pointerType)}):(m.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},m.onMouseEnter=p=>{!s.ignoreEmulatedMouseEvents&&!pr&&c(p,"mouse"),s.ignoreEmulatedMouseEvents=!1},m.onMouseLeave=p=>{!o&&p.currentTarget.contains(p.target)&&f(p,"mouse")}),{hoverProps:m,triggerHoverEnd:f}},[r,e,t,o,s]);return d.useEffect(()=>{o&&u({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:l,isHovered:a}}function Do(n={}){let{autoFocus:r=!1,isTextInput:e,within:t}=n,o=d.useRef({isFocused:!1,isFocusVisible:r||fi()}),[a,i]=d.useState(!1),[s,l]=d.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=d.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),c=d.useCallback(p=>{o.current.isFocused=p,i(p),u()},[u]);xc(p=>{o.current.isFocusVisible=p,u()},[],{isTextInput:e});let{focusProps:f}=mc({isDisabled:t,onFocusChange:c}),{focusWithinProps:m}=Dc({isDisabled:!t,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:s,focusProps:t?m:f}}var Cc=Object.defineProperty,kc=(n,r,e)=>r in n?Cc(n,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[r]=e,Eo=(n,r,e)=>(kc(n,typeof r!="symbol"?r+"":r,e),e);let Sc=class{constructor(){Eo(this,"current",this.detect()),Eo(this,"handoffState","pending"),Eo(this,"currentId",0)}set(r){this.current!==r&&(this.handoffState="pending",this.currentId=0,this.current=r)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Bt=new Sc;function Vt(n){return Bt.isServer?null:n instanceof Node?n.ownerDocument:n!=null&&n.hasOwnProperty("current")&&n.current instanceof Node?n.current.ownerDocument:document}function hr(n){typeof queueMicrotask=="function"?queueMicrotask(n):Promise.resolve().then(n).catch(r=>setTimeout(()=>{throw r}))}function Je(){let n=[],r={addEventListener(e,t,o,a){return e.addEventListener(t,o,a),r.add(()=>e.removeEventListener(t,o,a))},requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add(()=>cancelAnimationFrame(t))},nextFrame(...e){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...e))},setTimeout(...e){let t=setTimeout(...e);return r.add(()=>clearTimeout(t))},microTask(...e){let t={current:!0};return hr(()=>{t.current&&e[0]()}),r.add(()=>{t.current=!1})},style(e,t,o){let a=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:o}),this.add(()=>{Object.assign(e.style,{[t]:a})})},group(e){let t=Je();return e(t),this.add(()=>t.dispose())},add(e){return n.includes(e)||n.push(e),()=>{let t=n.indexOf(e);if(t>=0)for(let o of n.splice(t,1))o()}},dispose(){for(let e of n.splice(0))e()}};return r}function mt(){let[n]=d.useState(Je);return d.useEffect(()=>()=>n.dispose(),[n]),n}let ne=(n,r)=>{Bt.isServer?d.useEffect(n,r):d.useLayoutEffect(n,r)};function vt(n){let r=d.useRef(n);return ne(()=>{r.current=n},[n]),r}let L=function(n){let r=vt(n);return d.useCallback((...e)=>r.current(...e),[r])};function _c(n){let r=n.width/2,e=n.height/2;return{top:n.clientY-e,right:n.clientX+r,bottom:n.clientY+e,left:n.clientX-r}}function Oc(n,r){return!(!n||!r||n.right<r.left||n.left>r.right||n.bottom<r.top||n.top>r.bottom)}function hi({disabled:n=!1}={}){let r=d.useRef(null),[e,t]=d.useState(!1),o=mt(),a=L(()=>{r.current=null,t(!1),o.dispose()}),i=L(s=>{if(o.dispose(),r.current===null){r.current=s.currentTarget,t(!0);{let l=Vt(s.currentTarget);o.addEventListener(l,"pointerup",a,!1),o.addEventListener(l,"pointermove",u=>{if(r.current){let c=_c(u);t(Oc(c,r.current.getBoundingClientRect()))}},!1),o.addEventListener(l,"pointercancel",a,!1)}}});return{pressed:e,pressProps:n?{}:{onPointerDown:i,onPointerUp:a,onClick:a}}}let Pc=d.createContext(void 0);function mr(){return d.useContext(Pc)}function Co(...n){return Array.from(new Set(n.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}function Ne(n,r,...e){if(n in r){let o=r[n];return typeof o=="function"?o(...e):o}let t=new Error(`Tried to handle "${n}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ne),t}var St=(n=>(n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n))(St||{}),_t=(n=>(n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n))(_t||{});function Ce({ourProps:n,theirProps:r,slot:e,defaultTag:t,features:o,visible:a=!0,name:i,mergeRefs:s}){s=s??Mc;let l=mi(r,n);if(a)return vr(l,e,t,i,s);let u=o??0;if(u&2){let{static:c=!1,...f}=l;if(c)return vr(f,e,t,i,s)}if(u&1){let{unmount:c=!0,...f}=l;return Ne(c?0:1,{0(){return null},1(){return vr({...f,hidden:!0,style:{display:"none"}},e,t,i,s)}})}return vr(l,e,t,i,s)}function vr(n,r={},e,t,o){let{as:a=e,children:i,refName:s="ref",...l}=ko(n,["unmount","static"]),u=n.ref!==void 0?{[s]:n.ref}:{},c=typeof i=="function"?i(r):i;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(r)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let f={};if(r){let m=!1,p=[];for(let[h,v]of Object.entries(r))typeof v=="boolean"&&(m=!0),v===!0&&p.push(h.replace(/([A-Z])/g,g=>`-${g.toLowerCase()}`));if(m){f["data-headlessui-state"]=p.join(" ");for(let h of p)f[`data-${h}`]=""}}if(a===d.Fragment&&(Object.keys(Ot(l)).length>0||Object.keys(Ot(f)).length>0))if(!d.isValidElement(c)||Array.isArray(c)&&c.length>1){if(Object.keys(Ot(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${t} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Ot(l)).concat(Object.keys(Ot(f))).map(m=>` - ${m}`).join(`
31
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(`
32
32
  `)].join(`
33
- `))}else{let h=c.props,p=h==null?void 0:h.className,m=typeof p=="function"?(...b)=>ko(p(...b),l.className):ko(p,l.className),g=m?{className:m}:{},v=mi(c.props,Ot(So(l,["ref"])));for(let b in f)b in v&&delete f[b];return d.cloneElement(c,Object.assign({},v,f,u,{ref:o(c.ref,u.ref)},g))}return d.createElement(a,Object.assign({},So(l,["ref"]),a!==d.Fragment&&u,a!==d.Fragment&&f),c)}function Tc(...n){return n.every(r=>r==null)?void 0:r=>{for(let e of n)e!=null&&(typeof e=="function"?e(r):e.current=r)}}function mi(...n){if(n.length===0)return{};if(n.length===1)return n[0];let r={},e={};for(let t of n)for(let o in t)o.startsWith("on")&&typeof t[o]=="function"?(e[o]!=null||(e[o]=[]),e[o].push(t[o])):r[o]=t[o];if(r.disabled||r["aria-disabled"])for(let t in e)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(t)&&(e[t]=[o=>{var a;return(a=o==null?void 0:o.preventDefault)==null?void 0:a.call(o)}]);for(let t in e)Object.assign(r,{[t](o,...a){let i=e[t];for(let s of i){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...a)}}});return r}function Ln(...n){if(n.length===0)return{};if(n.length===1)return n[0];let r={},e={};for(let t of n)for(let o in t)o.startsWith("on")&&typeof t[o]=="function"?(e[o]!=null||(e[o]=[]),e[o].push(t[o])):r[o]=t[o];for(let t in e)Object.assign(r,{[t](...o){let a=e[t];for(let i of a)i==null||i(...o)}});return r}function ge(n){var r;return Object.assign(d.forwardRef(n),{displayName:(r=n.displayName)!=null?r:n.name})}function Ot(n){let r=Object.assign({},n);for(let e in r)r[e]===void 0&&delete r[e];return r}function So(n,r=[]){let e=Object.assign({},n);for(let t of r)t in e&&delete e[t];return e}function vi(n,r,e){let[t,o]=d.useState(e),a=n!==void 0,i=d.useRef(a),s=d.useRef(!1),l=d.useRef(!1);return a&&!i.current&&!s.current?(s.current=!0,i.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&i.current&&!l.current&&(l.current=!0,i.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?n:t,Y(u=>(a||o(u),r==null?void 0:r(u)))]}function gi(n){let[r]=d.useState(n);return r}function bi(n={},r=null,e=[]){for(let[t,o]of Object.entries(n))wi(e,yi(r,t),o);return e}function yi(n,r){return n?n+"["+r+"]":r}function wi(n,r,e){if(Array.isArray(e))for(let[t,o]of e.entries())wi(n,yi(r,t.toString()),o);else e instanceof Date?n.push([r,e.toISOString()]):typeof e=="boolean"?n.push([r,e?"1":"0"]):typeof e=="string"?n.push([r,e]):typeof e=="number"?n.push([r,`${e}`]):e==null?n.push([r,""]):bi(e,r,n)}function Nc(n){var r,e;let t=(r=n==null?void 0:n.form)!=null?r:n.closest("form");if(t){for(let o of t.elements)if(o!==n&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(e=t.requestSubmit)==null||e.call(t)}}let Ic="span";var sn=(n=>(n[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n))(sn||{});function Fc(n,r){var e;let{features:t=1,...o}=n,a={ref:r,"aria-hidden":(t&2)===2?!0:(e=o["aria-hidden"])!=null?e:void 0,hidden:(t&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(t&4)===4&&(t&2)!==2&&{display:"none"}}};return De({ourProps:a,theirProps:o,slot:{},defaultTag:Ic,name:"Hidden"})}let An=ge(Fc),Lc=d.createContext(null);function Ac({children:n}){let r=d.useContext(Lc);if(!r)return d.createElement(d.Fragment,null,n);let{target:e}=r;return e?ye.createPortal(d.createElement(d.Fragment,null,n),e):null}function xi({data:n,form:r,disabled:e,onReset:t,overrides:o}){let[a,i]=d.useState(null),s=mt();return d.useEffect(()=>{if(t&&a)return s.addEventListener(a,"reset",t)},[a,r,t]),d.createElement(Ac,null,d.createElement($c,{setForm:i,formId:r}),bi(n).map(([l,u])=>d.createElement(An,{features:sn.Hidden,...Ot({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:r,disabled:e,name:l,value:u,...o})})))}function $c({setForm:n,formId:r}){return d.useEffect(()=>{if(r){let e=document.getElementById(r);e&&n(e)}},[n,r]),r?null:d.createElement(An,{features:sn.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:e=>{if(!e)return;let t=e.closest("form");t&&n(t)}})}let Yc=d.createContext(void 0);function _o(){return d.useContext(Yc)}function Di(n){let r=n.parentElement,e=null;for(;r&&!(r instanceof HTMLFieldSetElement);)r instanceof HTMLLegendElement&&(e=r),r=r.parentElement;let t=(r==null?void 0:r.getAttribute("disabled"))==="";return t&&jc(e)?!1:t}function jc(n){if(!n)return!1;let r=n.previousElementSibling;for(;r!==null;){if(r instanceof HTMLLegendElement)return!1;r=r.previousElementSibling}return!0}let Ei=Symbol();function Wc(n,r=!0){return Object.assign(n,{[Ei]:r})}function Te(...n){let r=d.useRef(n);d.useEffect(()=>{r.current=n},[n]);let e=Y(t=>{for(let o of r.current)o!=null&&(typeof o=="function"?o(t):o.current=t)});return n.every(t=>t==null||(t==null?void 0:t[Ei]))?void 0:e}let br=d.createContext(null);br.displayName="DescriptionContext";function Ci(){let n=d.useContext(br);if(n===null){let r=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,Ci),r}return n}function ki(){var n,r;return(r=(n=d.useContext(br))==null?void 0:n.value)!=null?r:void 0}function Rc(){let[n,r]=d.useState([]);return[n.length>0?n.join(" "):void 0,d.useMemo(()=>function(e){let t=Y(a=>(r(i=>[...i,a]),()=>r(i=>{let s=i.slice(),l=s.indexOf(a);return l!==-1&&s.splice(l,1),s}))),o=d.useMemo(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return d.createElement(br.Provider,{value:o},e.children)},[r])]}let Hc="p";function Bc(n,r){let e=d.useId(),t=vr(),{id:o=`headlessui-description-${e}`,...a}=n,i=Ci(),s=Te(r);ee(()=>i.register(o),[o,i.register]);let l=t||!1,u=d.useMemo(()=>({...i.slot,disabled:l}),[i.slot,l]),c={ref:s,...i.props,id:o};return De({ourProps:c,theirProps:a,slot:u,defaultTag:Hc,name:i.name||"Description"})}let Vc=ge(Bc),Si=Object.assign(Vc,{});var ae=(n=>(n.Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n))(ae||{});let yr=d.createContext(null);yr.displayName="LabelContext";function _i(){let n=d.useContext(yr);if(n===null){let r=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,_i),r}return n}function $n(n){var r,e,t;let o=(e=(r=d.useContext(yr))==null?void 0:r.value)!=null?e:void 0;return((t=n==null?void 0:n.length)!=null?t:0)>0?[o,...n].filter(Boolean).join(" "):o}function Oi({inherit:n=!1}={}){let r=$n(),[e,t]=d.useState([]),o=n?[r,...e].filter(Boolean):e;return[o.length>0?o.join(" "):void 0,d.useMemo(()=>function(a){let i=Y(l=>(t(u=>[...u,l]),()=>t(u=>{let c=u.slice(),f=c.indexOf(l);return f!==-1&&c.splice(f,1),c}))),s=d.useMemo(()=>({register:i,slot:a.slot,name:a.name,props:a.props,value:a.value}),[i,a.slot,a.name,a.props,a.value]);return d.createElement(yr.Provider,{value:s},a.children)},[t])]}let zc="label";function Uc(n,r){var e;let t=d.useId(),o=_i(),a=_o(),i=vr(),{id:s=`headlessui-label-${t}`,htmlFor:l=a??((e=o.props)==null?void 0:e.htmlFor),passive:u=!1,...c}=n,f=Te(r);ee(()=>o.register(s),[s,o.register]);let h=Y(v=>{let b=v.currentTarget;if(b instanceof HTMLLabelElement&&v.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(v),b instanceof HTMLLabelElement){let w=document.getElementById(b.htmlFor);if(w){let x=w.getAttribute("disabled");if(x==="true"||x==="")return;let S=w.getAttribute("aria-disabled");if(S==="true"||S==="")return;(w instanceof HTMLInputElement&&(w.type==="radio"||w.type==="checkbox")||w.role==="radio"||w.role==="checkbox"||w.role==="switch")&&w.click(),w.focus({preventScroll:!0})}}}),p=i||!1,m=d.useMemo(()=>({...o.slot,disabled:p}),[o.slot,p]),g={ref:f,...o.props,id:s,htmlFor:l,onClick:h};return u&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in c&&delete c.onClick),De({ourProps:g,theirProps:c,slot:m,defaultTag:l?zc:"div",name:o.name||"Label"})}let Qc=ge(Uc),wr=Object.assign(Qc,{}),Kc=d.createContext(()=>{});function qc({value:n,children:r}){return d.createElement(Kc.Provider,{value:n},r)}function Yn(n,r,e){let t=e.initialDeps??[],o;return()=>{var a,i,s,l;let u;e.key&&((a=e.debug)!=null&&a.call(e))&&(u=Date.now());const c=n();if(!(c.length!==t.length||c.some((p,m)=>t[m]!==p)))return o;t=c;let h;if(e.key&&((i=e.debug)!=null&&i.call(e))&&(h=Date.now()),o=r(...c),e.key&&((s=e.debug)!=null&&s.call(e))){const p=Math.round((Date.now()-u)*100)/100,m=Math.round((Date.now()-h)*100)/100,g=m/16,v=(b,w)=>{for(b=String(b);b.length<w;)b=" "+b;return b};console.info(`%c⏱ ${v(m,5)} /${v(p,5)} ms`,`
33
+ `))}else{let m=c.props,p=m==null?void 0:m.className,h=typeof p=="function"?(...b)=>Co(p(...b),l.className):Co(p,l.className),v=h?{className:h}:{},g=mi(c.props,Ot(ko(l,["ref"])));for(let b in f)b in g&&delete f[b];return d.cloneElement(c,Object.assign({},g,f,u,{ref:o(c.ref,u.ref)},v))}return d.createElement(a,Object.assign({},ko(l,["ref"]),a!==d.Fragment&&u,a!==d.Fragment&&f),c)}function Mc(...n){return n.every(r=>r==null)?void 0:r=>{for(let e of n)e!=null&&(typeof e=="function"?e(r):e.current=r)}}function mi(...n){if(n.length===0)return{};if(n.length===1)return n[0];let r={},e={};for(let t of n)for(let o in t)o.startsWith("on")&&typeof t[o]=="function"?(e[o]!=null||(e[o]=[]),e[o].push(t[o])):r[o]=t[o];if(r.disabled||r["aria-disabled"])for(let t in e)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(t)&&(e[t]=[o=>{var a;return(a=o==null?void 0:o.preventDefault)==null?void 0:a.call(o)}]);for(let t in e)Object.assign(r,{[t](o,...a){let i=e[t];for(let s of i){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...a)}}});return r}function Ln(...n){if(n.length===0)return{};if(n.length===1)return n[0];let r={},e={};for(let t of n)for(let o in t)o.startsWith("on")&&typeof t[o]=="function"?(e[o]!=null||(e[o]=[]),e[o].push(t[o])):r[o]=t[o];for(let t in e)Object.assign(r,{[t](...o){let a=e[t];for(let i of a)i==null||i(...o)}});return r}function ye(n){var r;return Object.assign(d.forwardRef(n),{displayName:(r=n.displayName)!=null?r:n.name})}function Ot(n){let r=Object.assign({},n);for(let e in r)r[e]===void 0&&delete r[e];return r}function ko(n,r=[]){let e=Object.assign({},n);for(let t of r)t in e&&delete e[t];return e}function vi(n,r,e){let[t,o]=d.useState(e),a=n!==void 0,i=d.useRef(a),s=d.useRef(!1),l=d.useRef(!1);return a&&!i.current&&!s.current?(s.current=!0,i.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&i.current&&!l.current&&(l.current=!0,i.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?n:t,L(u=>(a||o(u),r==null?void 0:r(u)))]}function gi(n){let[r]=d.useState(n);return r}function bi(n={},r=null,e=[]){for(let[t,o]of Object.entries(n))wi(e,yi(r,t),o);return e}function yi(n,r){return n?n+"["+r+"]":r}function wi(n,r,e){if(Array.isArray(e))for(let[t,o]of e.entries())wi(n,yi(r,t.toString()),o);else e instanceof Date?n.push([r,e.toISOString()]):typeof e=="boolean"?n.push([r,e?"1":"0"]):typeof e=="string"?n.push([r,e]):typeof e=="number"?n.push([r,`${e}`]):e==null?n.push([r,""]):bi(e,r,n)}function Tc(n){var r,e;let t=(r=n==null?void 0:n.form)!=null?r:n.closest("form");if(t){for(let o of t.elements)if(o!==n&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(e=t.requestSubmit)==null||e.call(t)}}let Nc="span";var sn=(n=>(n[n.None=1]="None",n[n.Focusable=2]="Focusable",n[n.Hidden=4]="Hidden",n))(sn||{});function Ic(n,r){var e;let{features:t=1,...o}=n,a={ref:r,"aria-hidden":(t&2)===2?!0:(e=o["aria-hidden"])!=null?e:void 0,hidden:(t&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(t&4)===4&&(t&2)!==2&&{display:"none"}}};return Ce({ourProps:a,theirProps:o,slot:{},defaultTag:Nc,name:"Hidden"})}let An=ye(Ic),Fc=d.createContext(null);function Lc({children:n}){let r=d.useContext(Fc);if(!r)return d.createElement(d.Fragment,null,n);let{target:e}=r;return e?xe.createPortal(d.createElement(d.Fragment,null,n),e):null}function xi({data:n,form:r,disabled:e,onReset:t,overrides:o}){let[a,i]=d.useState(null),s=mt();return d.useEffect(()=>{if(t&&a)return s.addEventListener(a,"reset",t)},[a,r,t]),d.createElement(Lc,null,d.createElement(Ac,{setForm:i,formId:r}),bi(n).map(([l,u])=>d.createElement(An,{features:sn.Hidden,...Ot({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:r,disabled:e,name:l,value:u,...o})})))}function Ac({setForm:n,formId:r}){return d.useEffect(()=>{if(r){let e=document.getElementById(r);e&&n(e)}},[n,r]),r?null:d.createElement(An,{features:sn.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:e=>{if(!e)return;let t=e.closest("form");t&&n(t)}})}let $c=d.createContext(void 0);function So(){return d.useContext($c)}function Di(n){let r=n.parentElement,e=null;for(;r&&!(r instanceof HTMLFieldSetElement);)r instanceof HTMLLegendElement&&(e=r),r=r.parentElement;let t=(r==null?void 0:r.getAttribute("disabled"))==="";return t&&Yc(e)?!1:t}function Yc(n){if(!n)return!1;let r=n.previousElementSibling;for(;r!==null;){if(r instanceof HTMLLegendElement)return!1;r=r.previousElementSibling}return!0}let Ei=Symbol();function jc(n,r=!0){return Object.assign(n,{[Ei]:r})}function Ie(...n){let r=d.useRef(n);d.useEffect(()=>{r.current=n},[n]);let e=L(t=>{for(let o of r.current)o!=null&&(typeof o=="function"?o(t):o.current=t)});return n.every(t=>t==null||(t==null?void 0:t[Ei]))?void 0:e}let gr=d.createContext(null);gr.displayName="DescriptionContext";function Ci(){let n=d.useContext(gr);if(n===null){let r=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,Ci),r}return n}function ki(){var n,r;return(r=(n=d.useContext(gr))==null?void 0:n.value)!=null?r:void 0}function Wc(){let[n,r]=d.useState([]);return[n.length>0?n.join(" "):void 0,d.useMemo(()=>function(e){let t=L(a=>(r(i=>[...i,a]),()=>r(i=>{let s=i.slice(),l=s.indexOf(a);return l!==-1&&s.splice(l,1),s}))),o=d.useMemo(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return d.createElement(gr.Provider,{value:o},e.children)},[r])]}let Hc="p";function Rc(n,r){let e=d.useId(),t=mr(),{id:o=`headlessui-description-${e}`,...a}=n,i=Ci(),s=Ie(r);ne(()=>i.register(o),[o,i.register]);let l=t||!1,u=d.useMemo(()=>({...i.slot,disabled:l}),[i.slot,l]),c={ref:s,...i.props,id:o};return Ce({ourProps:c,theirProps:a,slot:u,defaultTag:Hc,name:i.name||"Description"})}let Bc=ye(Rc),Si=Object.assign(Bc,{});var ae=(n=>(n.Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n))(ae||{});let br=d.createContext(null);br.displayName="LabelContext";function _i(){let n=d.useContext(br);if(n===null){let r=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,_i),r}return n}function $n(n){var r,e,t;let o=(e=(r=d.useContext(br))==null?void 0:r.value)!=null?e:void 0;return((t=n==null?void 0:n.length)!=null?t:0)>0?[o,...n].filter(Boolean).join(" "):o}function Oi({inherit:n=!1}={}){let r=$n(),[e,t]=d.useState([]),o=n?[r,...e].filter(Boolean):e;return[o.length>0?o.join(" "):void 0,d.useMemo(()=>function(a){let i=L(l=>(t(u=>[...u,l]),()=>t(u=>{let c=u.slice(),f=c.indexOf(l);return f!==-1&&c.splice(f,1),c}))),s=d.useMemo(()=>({register:i,slot:a.slot,name:a.name,props:a.props,value:a.value}),[i,a.slot,a.name,a.props,a.value]);return d.createElement(br.Provider,{value:s},a.children)},[t])]}let Vc="label";function zc(n,r){var e;let t=d.useId(),o=_i(),a=So(),i=mr(),{id:s=`headlessui-label-${t}`,htmlFor:l=a??((e=o.props)==null?void 0:e.htmlFor),passive:u=!1,...c}=n,f=Ie(r);ne(()=>o.register(s),[s,o.register]);let m=L(g=>{let b=g.currentTarget;if(b instanceof HTMLLabelElement&&g.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(g),b instanceof HTMLLabelElement){let w=document.getElementById(b.htmlFor);if(w){let x=w.getAttribute("disabled");if(x==="true"||x==="")return;let k=w.getAttribute("aria-disabled");if(k==="true"||k==="")return;(w instanceof HTMLInputElement&&(w.type==="radio"||w.type==="checkbox")||w.role==="radio"||w.role==="checkbox"||w.role==="switch")&&w.click(),w.focus({preventScroll:!0})}}}),p=i||!1,h=d.useMemo(()=>({...o.slot,disabled:p}),[o.slot,p]),v={ref:f,...o.props,id:s,htmlFor:l,onClick:m};return u&&("onClick"in v&&(delete v.htmlFor,delete v.onClick),"onClick"in c&&delete c.onClick),Ce({ourProps:v,theirProps:c,slot:h,defaultTag:l?Vc:"div",name:o.name||"Label"})}let Qc=ye(zc),yr=Object.assign(Qc,{}),Uc=d.createContext(()=>{});function Kc({value:n,children:r}){return d.createElement(Uc.Provider,{value:n},r)}function Yn(n,r,e){let t=e.initialDeps??[],o;return()=>{var a,i,s,l;let u;e.key&&((a=e.debug)!=null&&a.call(e))&&(u=Date.now());const c=n();if(!(c.length!==t.length||c.some((p,h)=>t[h]!==p)))return o;t=c;let m;if(e.key&&((i=e.debug)!=null&&i.call(e))&&(m=Date.now()),o=r(...c),e.key&&((s=e.debug)!=null&&s.call(e))){const p=Math.round((Date.now()-u)*100)/100,h=Math.round((Date.now()-m)*100)/100,v=h/16,g=(b,w)=>{for(b=String(b);b.length<w;)b=" "+b;return b};console.info(`%c⏱ ${g(h,5)} /${g(p,5)} ms`,`
34
34
  font-size: .6rem;
35
35
  font-weight: bold;
36
- color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(l=e==null?void 0:e.onChange)==null||l.call(e,o),o}}function Oo(n,r){if(n===void 0)throw new Error("Unexpected undefined");return n}const Gc=(n,r)=>Math.abs(n-r)<1,Xc=(n,r,e)=>{let t;return function(...o){n.clearTimeout(t),t=n.setTimeout(()=>r.apply(this,o),e)}},Jc=n=>n,Zc=n=>{const r=Math.max(n.startIndex-n.overscan,0),e=Math.min(n.endIndex+n.overscan,n.count-1),t=[];for(let o=r;o<=e;o++)t.push(o);return t},ed=(n,r)=>{const e=n.scrollElement;if(!e)return;const t=n.targetWindow;if(!t)return;const o=i=>{const{width:s,height:l}=i;r({width:Math.round(s),height:Math.round(l)})};if(o(e.getBoundingClientRect()),!t.ResizeObserver)return()=>{};const a=new t.ResizeObserver(i=>{const s=i[0];if(s!=null&&s.borderBoxSize){const l=s.borderBoxSize[0];if(l){o({width:l.inlineSize,height:l.blockSize});return}}o(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},Pi={passive:!0},td=typeof window>"u"?!0:"onscrollend"in window,nd=(n,r)=>{const e=n.scrollElement;if(!e)return;const t=n.targetWindow;if(!t)return;let o=0;const a=td?()=>{}:Xc(t,()=>{r(o,!1)},n.options.isScrollingResetDelay),i=u=>()=>{o=e[n.options.horizontal?"scrollLeft":"scrollTop"],a(),r(o,u)},s=i(!0),l=i(!1);return l(),e.addEventListener("scroll",s,Pi),e.addEventListener("scrollend",l,Pi),()=>{e.removeEventListener("scroll",s),e.removeEventListener("scrollend",l)}},rd=(n,r,e)=>{if(r!=null&&r.borderBoxSize){const t=r.borderBoxSize[0];if(t)return Math.round(t[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(n.getBoundingClientRect()[e.options.horizontal?"width":"height"])},od=(n,{adjustments:r=0,behavior:e},t)=>{var o,a;const i=n+r;(a=(o=t.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[t.options.horizontal?"left":"top"]:i,behavior:e})};class ad{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(o=>{o.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;return(o=t())==null?void 0:o.disconnect()},observe:o=>{var a;return(a=t())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=t())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,o])=>{typeof o>"u"&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Jc,rangeExtractor:Zc,onChange:()=>{},measureElement:rd,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...e}},this.notify=(e,t)=>{var o,a;const{startIndex:i,endIndex:s}=this.range??{startIndex:void 0,endIndex:void 0},l=this.calculateRange();(e||i!==(l==null?void 0:l.startIndex)||s!==(l==null?void 0:l.endIndex))&&((a=(o=this.options).onChange)==null||a.call(o,this,t))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.notify(!1,!1);return}this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((e=this.scrollElement)==null?void 0:e.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(o,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o;const i=this.isScrolling;this.isScrolling=a,this.notify(i!==a,a)}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const o=new Map,a=new Map;for(let i=t-1;i>=0;i--){const s=e[i];if(o.has(s.lane))continue;const l=a.get(s.lane);if(l==null||s.end>l.end?a.set(s.lane,s):s.end<l.end&&o.set(s.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((i,s)=>i.end===s.end?i.index-s.index:i.end-s.end)[0]:void 0},this.getMeasurementOptions=Yn(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,o,a,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:o,getItemKey:a,enabled:i}),{key:!1}),this.getMeasurements=Yn(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:o,getItemKey:a,enabled:i},s)=>{var l;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(f=>{this.itemSizeCache.set(f.key,f.size)}));const u=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,u);for(let f=u;f<e;f++){let h=(l=this.measurementsCache[f])==null?void 0:l.measureElement;h||(h=S=>{const P=a(f),N=this.elementsCache.get(P);if(!S){N&&(this.observer.unobserve(N),this.elementsCache.delete(P));return}N!==S&&(N&&this.observer.unobserve(N),this.observer.observe(S),this.elementsCache.set(P,S)),S.isConnected&&this.resizeItem(f,this.options.measureElement(S,void 0,this))});const p=a(f),m=this.options.lanes===1?c[f-1]:this.getFurthestMeasurement(c,f),g=m?m.end+this.options.gap:t+o,v=s.get(p),b=typeof v=="number"?v:this.options.estimateSize(f),w=g+b,x=m?m.lane:f%this.options.lanes;c[f]={index:f,start:g,size:b,end:w,key:p,lane:x,measureElement:h}}return this.measurementsCache=c,c},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Yn(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,o)=>this.range=e.length>0&&t>0?id({measurements:e,outerSize:t,scrollOffset:o}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=Yn(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(e,t,o,a)=>t===null?[]:e({startIndex:t.startIndex,endIndex:t.endIndex,overscan:o,count:a}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,o=e.getAttribute(t);return o?parseInt(o,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const o=this.indexFromElement(e),a=this.getMeasurements()[o];if(!a||!e.isConnected){this.elementsCache.forEach((s,l)=>{s===e&&(this.observer.unobserve(e),this.elementsCache.delete(l))});return}const i=this.elementsCache.get(a.key);i!==e&&(i&&this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(a.key,e)),this.resizeItem(o,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const o=this.getMeasurements()[e];if(!o)return;const a=this.itemSizeCache.get(o.key)??o.size,i=t-a;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,i,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",i),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,t)),this.notify(!0,!1))},this.measureElement=e=>{e&&this._measureElement(e,void 0)},this.getVirtualItems=Yn(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{const o=[];for(let a=0,i=e.length;a<i;a++){const s=e[a],l=t[s];o.push(l)}return o},{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(t.length!==0)return Oo(t[Mi(0,t.length-1,o=>Oo(t[o]).start,e)])},this.getOffsetForAlignment=(e,t)=>{const o=this.getSize(),a=this.getScrollOffset();t==="auto"&&(e<=a?t="start":e>=a+o?t="end":t="start"),t==="start"?e=e:t==="end"?e=e-o:t==="center"&&(e=e-o/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-o;return Math.max(Math.min(l,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const o=this.getMeasurements()[e];if(!o)return;const a=this.getSize(),i=this.getScrollOffset();if(t==="auto")if(o.end>=i+a-this.options.scrollPaddingEnd)t="end";else if(o.start<=i+this.options.scrollPaddingStart)t="start";else return[i,t];const s=t==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,t),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:o})},this.scrollToIndex=(e,{align:t="auto",behavior:o}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const a=this.getOffsetForIndex(e,t);if(!a)return;const[i,s]=a;this._scrollToOffset(i,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){const[u]=Oo(this.getOffsetForIndex(e,s));Gc(u,this.getScrollOffset())||this.scrollToIndex(e,{align:s,behavior:o})}else this.scrollToIndex(e,{align:s,behavior:o})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),t==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let o;return t.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((e=t[t.length-1])==null?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map(a=>a.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(e,{adjustments:t,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:t},this)},this.measure=()=>{var e,t;this.itemSizeCache=new Map,(t=(e=this.options).onChange)==null||t.call(e,this,!1)},this.setOptions(r)}}const Mi=(n,r,e,t)=>{for(;n<=r;){const o=(n+r)/2|0,a=e(o);if(a<t)n=o+1;else if(a>t)r=o-1;else return o}return n>0?n-1:0};function id({measurements:n,outerSize:r,scrollOffset:e}){const t=n.length-1,a=Mi(0,t,s=>n[s].start,e);let i=a;for(;i<t&&n[i].end<e+r;)i++;return{startIndex:a,endIndex:i}}const sd=typeof document<"u"?R.useLayoutEffect:R.useEffect;function ld(n){const r=R.useReducer(()=>({}),{})[1],e={...n,onChange:(o,a)=>{var i;a?ye.flushSync(r):r(),(i=n.onChange)==null||i.call(n,o,a)}},[t]=R.useState(()=>new ad(e));return t.setOptions(e),R.useEffect(()=>t._didMount(),[]),sd(()=>t._willUpdate()),t}function ud(n){return ld({observeElementRect:ed,observeElementOffset:nd,scrollToFn:od,...n})}function cd(n,r){return n!==null&&r!==null&&typeof n=="object"&&typeof r=="object"&&"id"in n&&"id"in r?n.id===r.id:n===r}function Ti(n=cd){return d.useCallback((r,e)=>{if(typeof n=="string"){let t=n;return(r==null?void 0:r[t])===(e==null?void 0:e[t])}return n(r,e)},[n])}function dd(n){if(n===null)return{width:0,height:0};let{width:r,height:e}=n.getBoundingClientRect();return{width:r,height:e}}function Po(n,r=!1){let e=n===null?null:"current"in n?n.current:n,[t,o]=d.useReducer(()=>({}),{}),a=d.useMemo(()=>dd(e),[e,t]);return ee(()=>{if(!e)return;let i=new ResizeObserver(o);return i.observe(e),()=>{i.disconnect()}},[e]),r?{width:`${a.width}px`,height:`${a.height}px`}:a}let fd=class extends Map{constructor(r){super(),this.factory=r}get(r){let e=super.get(r);return e===void 0&&(e=this.factory(r),this.set(r,e)),e}};function Ni(n,r){let e=n(),t=new Set;return{getSnapshot(){return e},subscribe(o){return t.add(o),()=>t.delete(o)},dispatch(o,...a){let i=r[o].call(e,...a);i&&(e=i,t.forEach(s=>s()))}}}function Ii(n){return d.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot)}let pd=new fd(()=>Ni(()=>[],{ADD(n){return this.includes(n)?this:[...this,n]},REMOVE(n){let r=this.indexOf(n);if(r===-1)return this;let e=this.slice();return e.splice(r,1),e}}));function ln(n,r){let e=pd.get(r),t=d.useId(),o=Ii(e);if(ee(()=>{if(n)return e.dispatch("ADD",t),()=>e.dispatch("REMOVE",t)},[e,n]),!n)return!1;let a=o.indexOf(t),i=o.length;return a===-1&&(a=i,i+=1),a===i-1}let Mo=new Map,jn=new Map;function Fi(n){var r;let e=(r=jn.get(n))!=null?r:0;return jn.set(n,e+1),e!==0?()=>Li(n):(Mo.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0,()=>Li(n))}function Li(n){var r;let e=(r=jn.get(n))!=null?r:1;if(e===1?jn.delete(n):jn.set(n,e-1),e!==1)return;let t=Mo.get(n);t&&(t["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",t["aria-hidden"]),n.inert=t.inert,Mo.delete(n))}function To(n,{allowed:r,disallowed:e}={}){let t=ln(n,"inert-others");ee(()=>{var o,a;if(!t)return;let i=Xe();for(let l of(o=e==null?void 0:e())!=null?o:[])l&&i.add(Fi(l));let s=(a=r==null?void 0:r())!=null?a:[];for(let l of s){if(!l)continue;let u=zt(l);if(!u)continue;let c=l.parentElement;for(;c&&c!==u.body;){for(let f of c.children)s.some(h=>f.contains(h))||i.add(Fi(f));c=c.parentElement}}return i.dispose},[t,r,e])}function xr(n,r,e){let t=et(o=>{let a=o.getBoundingClientRect();a.x===0&&a.y===0&&a.width===0&&a.height===0&&e()});d.useEffect(()=>{if(!n)return;let o=r===null?null:r instanceof HTMLElement?r:r.current;if(!o)return;let a=Xe();if(typeof ResizeObserver<"u"){let i=new ResizeObserver(()=>t.current(o));i.observe(o),a.add(()=>i.disconnect())}if(typeof IntersectionObserver<"u"){let i=new IntersectionObserver(()=>t.current(o));i.observe(o),a.add(()=>i.disconnect())}return()=>a.dispose()},[r,t,n])}let Dr=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(n=>`${n}:not([tabindex='-1'])`).join(","),hd=["[data-autofocus]"].map(n=>`${n}:not([tabindex='-1'])`).join(",");var Je=(n=>(n[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n[n.AutoFocus=64]="AutoFocus",n))(Je||{}),No=(n=>(n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow",n))(No||{}),md=(n=>(n[n.Previous=-1]="Previous",n[n.Next=1]="Next",n))(md||{});function Ai(n=document.body){return n==null?[]:Array.from(n.querySelectorAll(Dr)).sort((r,e)=>Math.sign((r.tabIndex||Number.MAX_SAFE_INTEGER)-(e.tabIndex||Number.MAX_SAFE_INTEGER)))}function vd(n=document.body){return n==null?[]:Array.from(n.querySelectorAll(hd)).sort((r,e)=>Math.sign((r.tabIndex||Number.MAX_SAFE_INTEGER)-(e.tabIndex||Number.MAX_SAFE_INTEGER)))}var Io=(n=>(n[n.Strict=0]="Strict",n[n.Loose=1]="Loose",n))(Io||{});function $i(n,r=0){var e;return n===((e=zt(n))==null?void 0:e.body)?!1:Me(r,{0(){return n.matches(Dr)},1(){let t=n;for(;t!==null;){if(t.matches(Dr))return!0;t=t.parentElement}return!1}})}var gd=(n=>(n[n.Keyboard=0]="Keyboard",n[n.Mouse=1]="Mouse",n))(gd||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",n=>{n.metaKey||n.altKey||n.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",n=>{n.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:n.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function vt(n){n==null||n.focus({preventScroll:!0})}let bd=["textarea","input"].join(",");function yd(n){var r,e;return(e=(r=n==null?void 0:n.matches)==null?void 0:r.call(n,bd))!=null?e:!1}function Fo(n,r=e=>e){return n.slice().sort((e,t)=>{let o=r(e),a=r(t);if(o===null||a===null)return 0;let i=o.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function wd(n,r){return un(Ai(),r,{relativeTo:n})}function un(n,r,{sorted:e=!0,relativeTo:t=null,skipElements:o=[]}={}){let a=Array.isArray(n)?n.length>0?n[0].ownerDocument:document:n.ownerDocument,i=Array.isArray(n)?e?Fo(n):n:r&64?vd(n):Ai(n);o.length>0&&i.length>1&&(i=i.filter(p=>!o.some(m=>m!=null&&"current"in m?(m==null?void 0:m.current)===p:m===p))),t=t??a.activeElement;let s=(()=>{if(r&5)return 1;if(r&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(r&1)return 0;if(r&2)return Math.max(0,i.indexOf(t))-1;if(r&4)return Math.max(0,i.indexOf(t))+1;if(r&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=r&32?{preventScroll:!0}:{},c=0,f=i.length,h;do{if(c>=f||c+f<=0)return 0;let p=l+c;if(r&16)p=(p+f)%f;else{if(p<0)return 3;if(p>=f)return 1}h=i[p],h==null||h.focus(u),c+=s}while(h!==a.activeElement);return r&6&&yd(h)&&h.select(),2}function Yi(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function xd(){return/Android/gi.test(window.navigator.userAgent)}function ji(){return Yi()||xd()}function Wn(n,r,e,t){let o=et(e);d.useEffect(()=>{if(!n)return;function a(i){o.current(i)}return document.addEventListener(r,a,t),()=>document.removeEventListener(r,a,t)},[n,r,t])}function Wi(n,r,e,t){let o=et(e);d.useEffect(()=>{if(!n)return;function a(i){o.current(i)}return window.addEventListener(r,a,t),()=>window.removeEventListener(r,a,t)},[n,r,t])}const Ri=30;function Lo(n,r,e){let t=ln(n,"outside-click"),o=et(e),a=d.useCallback(function(l,u){if(l.defaultPrevented)return;let c=u(l);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let f=function h(p){return typeof p=="function"?h(p()):Array.isArray(p)||p instanceof Set?p:[p]}(r);for(let h of f){if(h===null)continue;let p=h instanceof HTMLElement?h:h.current;if(p!=null&&p.contains(c)||l.composed&&l.composedPath().includes(p))return}return!$i(c,Io.Loose)&&c.tabIndex!==-1&&l.preventDefault(),o.current(l,c)},[o]),i=d.useRef(null);Wn(t,"pointerdown",l=>{var u,c;i.current=((c=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:c[0])||l.target},!0),Wn(t,"mousedown",l=>{var u,c;i.current=((c=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:c[0])||l.target},!0),Wn(t,"click",l=>{ji()||i.current&&(a(l,()=>i.current),i.current=null)},!0);let s=d.useRef({x:0,y:0});Wn(t,"touchstart",l=>{s.current.x=l.touches[0].clientX,s.current.y=l.touches[0].clientY},!0),Wn(t,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-s.current.x)>=Ri||Math.abs(u.y-s.current.y)>=Ri))return a(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),Wi(t,"blur",l=>a(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Pt(...n){return d.useMemo(()=>zt(...n),[...n])}function Ao(n,r,e,t){let o=et(e);d.useEffect(()=>{n=n??window;function a(i){o.current(i)}return n.addEventListener(r,a,t),()=>n.removeEventListener(r,a,t)},[n,r,t])}function Hi(n){let r=d.useRef({value:"",selectionStart:null,selectionEnd:null});return Ao(n.current,"blur",e=>{let t=e.target;t instanceof HTMLInputElement&&(r.current={value:t.value,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})}),Y(()=>{let e=n.current;if(document.activeElement!==e&&e instanceof HTMLInputElement&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==r.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:t,selectionEnd:o}=r.current;t!==null&&o!==null&&e.setSelectionRange(t,o)}r.current={value:"",selectionStart:null,selectionEnd:null}}})}function Bi(n){var r;if(n.type)return n.type;let e=(r=n.as)!=null?r:"button";if(typeof e=="string"&&e.toLowerCase()==="button")return"button"}function Vi(n,r){let[e,t]=d.useState(()=>Bi(n));return ee(()=>{t(Bi(n))},[n.type,n.as]),ee(()=>{e||r.current&&r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&t("button")},[e,r]),e}function Dd(){let n;return{before({doc:r}){var e;let t=r.documentElement,o=(e=r.defaultView)!=null?e:window;n=Math.max(0,o.innerWidth-t.clientWidth)},after({doc:r,d:e}){let t=r.documentElement,o=Math.max(0,t.clientWidth-t.offsetWidth),a=Math.max(0,n-o);e.style(t,"paddingRight",`${a}px`)}}}function Ed(){return Yi()?{before({doc:n,d:r,meta:e}){function t(o){return e.containers.flatMap(a=>a()).some(a=>a.contains(o))}r.microTask(()=>{var o;if(window.getComputedStyle(n.documentElement).scrollBehavior!=="auto"){let s=Xe();s.style(n.documentElement,"scrollBehavior","auto"),r.add(()=>r.microTask(()=>s.dispose()))}let a=(o=window.scrollY)!=null?o:window.pageYOffset,i=null;r.addEventListener(n,"click",s=>{if(s.target instanceof HTMLElement)try{let l=s.target.closest("a");if(!l)return;let{hash:u}=new URL(l.href),c=n.querySelector(u);c&&!t(c)&&(i=c)}catch{}},!0),r.addEventListener(n,"touchstart",s=>{if(s.target instanceof HTMLElement)if(t(s.target)){let l=s.target;for(;l.parentElement&&t(l.parentElement);)l=l.parentElement;r.style(l,"overscrollBehavior","contain")}else r.style(s.target,"touchAction","none")}),r.addEventListener(n,"touchmove",s=>{if(s.target instanceof HTMLElement){if(s.target.tagName==="INPUT")return;if(t(s.target)){let l=s.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),r.add(()=>{var s;let l=(s=window.scrollY)!=null?s:window.pageYOffset;a!==l&&window.scrollTo(0,a),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function Cd(){return{before({doc:n,d:r}){r.style(n.documentElement,"overflow","hidden")}}}function kd(n){let r={};for(let e of n)Object.assign(r,e(r));return r}let Ut=Ni(()=>new Map,{PUSH(n,r){var e;let t=(e=this.get(n))!=null?e:{doc:n,count:0,d:Xe(),meta:new Set};return t.count++,t.meta.add(r),this.set(n,t),this},POP(n,r){let e=this.get(n);return e&&(e.count--,e.meta.delete(r)),this},SCROLL_PREVENT({doc:n,d:r,meta:e}){let t={doc:n,d:r,meta:kd(e)},o=[Ed(),Dd(),Cd()];o.forEach(({before:a})=>a==null?void 0:a(t)),o.forEach(({after:a})=>a==null?void 0:a(t))},SCROLL_ALLOW({d:n}){n.dispose()},TEARDOWN({doc:n}){this.delete(n)}});Ut.subscribe(()=>{let n=Ut.getSnapshot(),r=new Map;for(let[e]of n)r.set(e,e.documentElement.style.overflow);for(let e of n.values()){let t=r.get(e.doc)==="hidden",o=e.count!==0;(o&&!t||!o&&t)&&Ut.dispatch(e.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",e),e.count===0&&Ut.dispatch("TEARDOWN",e)}});function Sd(n,r,e=()=>({containers:[]})){let t=Ii(Ut),o=r?t.get(r):void 0,a=o?o.count>0:!1;return ee(()=>{if(!(!r||!n))return Ut.dispatch("PUSH",r,e),()=>Ut.dispatch("POP",r,e)},[n,r]),a}function $o(n,r,e=()=>[document.body]){let t=ln(n,"scroll-lock");Sd(t,r,o=>{var a;return{containers:[...(a=o.containers)!=null?a:[],e]}})}function zi(n){return[n.screenX,n.screenY]}function Ui(){let n=d.useRef([-1,-1]);return{wasMoved(r){let e=zi(r);return n.current[0]===e[0]&&n.current[1]===e[1]?!1:(n.current=e,!0)},update(r){n.current=zi(r)}}}function _d(n){let r={called:!1};return(...e)=>{if(!r.called)return r.called=!0,n(...e)}}function Od(n=0){let[r,e]=d.useState(n),t=d.useCallback(l=>e(l),[r]),o=d.useCallback(l=>e(u=>u|l),[r]),a=d.useCallback(l=>(r&l)===l,[r]),i=d.useCallback(l=>e(u=>u&~l),[e]),s=d.useCallback(l=>e(u=>u^l),[e]);return{flags:r,setFlag:t,addFlag:o,hasFlag:a,removeFlag:i,toggleFlag:s}}var Pd=(n=>(n[n.None=0]="None",n[n.Closed=1]="Closed",n[n.Enter=2]="Enter",n[n.Leave=4]="Leave",n))(Pd||{});function Yo(n){let r={};for(let e in n)n[e]===!0&&(r[`data-${e}`]="");return r}function jo(n,r,e,t){let[o,a]=d.useState(e),{hasFlag:i,addFlag:s,removeFlag:l}=Od(n&&o?3:0),u=d.useRef(!1),c=d.useRef(!1),f=mt();return ee(function h(){var p;if(!n)return;e&&a(!0);let m=r.current;return m?((p=t==null?void 0:t.start)==null||p.call(t,e),Md(m,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,!c.current&&(e?(s(3),l(4)):(s(4),l(2)))},run(){c.current?e?(l(3),s(4)):(l(4),s(3)):e?l(1):s(1)},done(){var g;c.current&&typeof m.getAnimations=="function"&&m.getAnimations().length>0||(u.current=!1,l(7),e||a(!1),(g=t==null?void 0:t.end)==null||g.call(t,e))}})):e?(s(3),f.nextFrame(()=>h())):void 0},[n,e,r,f]),n?[o,{closed:i(1),enter:i(2),leave:i(4),transition:i(2)||i(4)}]:[e,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Md(n,{prepare:r,run:e,done:t,inFlight:o}){let a=Xe();return Nd(n,{prepare:r,inFlight:o}),a.nextFrame(()=>{a.add(Td(n,t)),e()}),a.dispose}function Td(n,r){let e=_d(r),t=Xe();if(!n)return t.dispose;let{transitionDuration:o,transitionDelay:a}=getComputedStyle(n),[i,s]=[o,a].map(u=>{let[c=0]=u.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,h)=>h-f);return c}),l=i+s;if(l!==0){let u=t.group(c=>{let f=c.setTimeout(()=>{e(),c.dispose()},l);c.addEventListener(n,"transitionrun",h=>{h.target===h.currentTarget&&(f(),c.addEventListener(n,"transitioncancel",p=>{p.target===p.currentTarget&&(e(),u())}))})});t.addEventListener(n,"transitionend",c=>{c.target===c.currentTarget&&(e(),t.dispose())})}else e();return t.dispose}function Nd(n,{inFlight:r,prepare:e}){if(r!=null&&r.current){e();return}let t=n.style.transition;n.style.transition="none",e(),n.offsetHeight,n.style.transition=t}function Id(n,{container:r,accept:e,walk:t}){let o=d.useRef(e),a=d.useRef(t);d.useEffect(()=>{o.current=e,a.current=t},[e,t]),ee(()=>{if(!r||!n)return;let i=zt(r);if(!i)return;let s=o.current,l=a.current,u=Object.assign(f=>s(f),{acceptNode:s}),c=i.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,u,!1);for(;c.nextNode();)l(c.currentNode)},[r,n,o,a])}function Rn(n,r){let e=d.useRef([]),t=Y(n);d.useEffect(()=>{let o=[...e.current];for(let[a,i]of r.entries())if(e.current[a]!==i){let s=t(r,o);return e.current=r,s}},[t,...r])}function cn(n){return Qi(n)?(n.nodeName||"").toLowerCase():"#document"}function Ve(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function gt(n){var r;return(r=(Qi(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function Qi(n){return n instanceof Node||n instanceof Ve(n).Node}function Ye(n){return n instanceof Element||n instanceof Ve(n).Element}function tt(n){return n instanceof HTMLElement||n instanceof Ve(n).HTMLElement}function Ki(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Ve(n).ShadowRoot}function Hn(n){const{overflow:r,overflowX:e,overflowY:t,display:o}=Ke(n);return/auto|scroll|overlay|hidden|clip/.test(r+t+e)&&!["inline","contents"].includes(o)}function Fd(n){return["table","td","th"].includes(cn(n))}function Er(n){return[":popover-open",":modal"].some(r=>{try{return n.matches(r)}catch{return!1}})}function Wo(n){const r=Ro(),e=Ye(n)?Ke(n):n;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!r&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!r&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(t=>(e.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(e.contain||"").includes(t))}function Ld(n){let r=Mt(n);for(;tt(r)&&!dn(r);){if(Wo(r))return r;if(Er(r))return null;r=Mt(r)}return null}function Ro(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dn(n){return["html","body","#document"].includes(cn(n))}function Ke(n){return Ve(n).getComputedStyle(n)}function Cr(n){return Ye(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Mt(n){if(cn(n)==="html")return n;const r=n.assignedSlot||n.parentNode||Ki(n)&&n.host||gt(n);return Ki(r)?r.host:r}function qi(n){const r=Mt(n);return dn(r)?n.ownerDocument?n.ownerDocument.body:n.body:tt(r)&&Hn(r)?r:qi(r)}function Bn(n,r,e){var t;r===void 0&&(r=[]),e===void 0&&(e=!0);const o=qi(n),a=o===((t=n.ownerDocument)==null?void 0:t.body),i=Ve(o);return a?r.concat(i,i.visualViewport||[],Hn(o)?o:[],i.frameElement&&e?Bn(i.frameElement):[]):r.concat(o,Bn(o,[],e))}function Ad(){const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?n.brands.map(r=>{let{brand:e,version:t}=r;return e+"/"+t}).join(" "):navigator.userAgent}const nt=Math.min,ze=Math.max,kr=Math.round,Sr=Math.floor,Tt=n=>({x:n,y:n}),$d={left:"right",right:"left",bottom:"top",top:"bottom"},Yd={start:"end",end:"start"};function Ho(n,r,e){return ze(n,nt(r,e))}function Qt(n,r){return typeof n=="function"?n(r):n}function Nt(n){return n.split("-")[0]}function fn(n){return n.split("-")[1]}function Gi(n){return n==="x"?"y":"x"}function Bo(n){return n==="y"?"height":"width"}function Kt(n){return["top","bottom"].includes(Nt(n))?"y":"x"}function Vo(n){return Gi(Kt(n))}function jd(n,r,e){e===void 0&&(e=!1);const t=fn(n),o=Vo(n),a=Bo(o);let i=o==="x"?t===(e?"end":"start")?"right":"left":t==="start"?"bottom":"top";return r.reference[a]>r.floating[a]&&(i=_r(i)),[i,_r(i)]}function Wd(n){const r=_r(n);return[zo(n),r,zo(r)]}function zo(n){return n.replace(/start|end/g,r=>Yd[r])}function Rd(n,r,e){const t=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(n){case"top":case"bottom":return e?r?o:t:r?t:o;case"left":case"right":return r?a:i;default:return[]}}function Hd(n,r,e,t){const o=fn(n);let a=Rd(Nt(n),e==="start",t);return o&&(a=a.map(i=>i+"-"+o),r&&(a=a.concat(a.map(zo)))),a}function _r(n){return n.replace(/left|right|bottom|top/g,r=>$d[r])}function Bd(n){return{top:0,right:0,bottom:0,left:0,...n}}function Xi(n){return typeof n!="number"?Bd(n):{top:n,right:n,bottom:n,left:n}}function Or(n){const{x:r,y:e,width:t,height:o}=n;return{width:t,height:o,top:e,left:r,right:r+t,bottom:e+o,x:r,y:e}}function Ji(n,r,e){let{reference:t,floating:o}=n;const a=Kt(r),i=Vo(r),s=Bo(i),l=Nt(r),u=a==="y",c=t.x+t.width/2-o.width/2,f=t.y+t.height/2-o.height/2,h=t[s]/2-o[s]/2;let p;switch(l){case"top":p={x:c,y:t.y-o.height};break;case"bottom":p={x:c,y:t.y+t.height};break;case"right":p={x:t.x+t.width,y:f};break;case"left":p={x:t.x-o.width,y:f};break;default:p={x:t.x,y:t.y}}switch(fn(r)){case"start":p[i]-=h*(e&&u?-1:1);break;case"end":p[i]+=h*(e&&u?-1:1);break}return p}const Vd=async(n,r,e)=>{const{placement:t="bottom",strategy:o="absolute",middleware:a=[],platform:i}=e,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(r));let u=await i.getElementRects({reference:n,floating:r,strategy:o}),{x:c,y:f}=Ji(u,t,l),h=t,p={},m=0;for(let g=0;g<s.length;g++){const{name:v,fn:b}=s[g],{x:w,y:x,data:S,reset:P}=await b({x:c,y:f,initialPlacement:t,placement:h,strategy:o,middlewareData:p,rects:u,platform:i,elements:{reference:n,floating:r}});c=w??c,f=x??f,p={...p,[v]:{...p[v],...S}},P&&m<=50&&(m++,typeof P=="object"&&(P.placement&&(h=P.placement),P.rects&&(u=P.rects===!0?await i.getElementRects({reference:n,floating:r,strategy:o}):P.rects),{x:c,y:f}=Ji(u,h,l)),g=-1)}return{x:c,y:f,placement:h,strategy:o,middlewareData:p}};async function Pr(n,r){var e;r===void 0&&(r={});const{x:t,y:o,platform:a,rects:i,elements:s,strategy:l}=n,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=Qt(r,n),m=Xi(p),v=s[h?f==="floating"?"reference":"floating":f],b=Or(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(v)))==null||e?v:v.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),w=f==="floating"?{x:t,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},P=Or(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:l}):w);return{top:(b.top-P.top+m.top)/S.y,bottom:(P.bottom-b.bottom+m.bottom)/S.y,left:(b.left-P.left+m.left)/S.x,right:(P.right-b.right+m.right)/S.x}}const zd=n=>({name:"arrow",options:n,async fn(r){const{x:e,y:t,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=r,{element:u,padding:c=0}=Qt(n,r)||{};if(u==null)return{};const f=Xi(c),h={x:e,y:t},p=Vo(o),m=Bo(p),g=await i.getDimensions(u),v=p==="y",b=v?"top":"left",w=v?"bottom":"right",x=v?"clientHeight":"clientWidth",S=a.reference[m]+a.reference[p]-h[p]-a.floating[m],P=h[p]-a.reference[p],N=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let _=N?N[x]:0;(!_||!await(i.isElement==null?void 0:i.isElement(N)))&&(_=s.floating[x]||a.floating[m]);const M=S/2-P/2,A=_/2-g[m]/2-1,V=nt(f[b],A),D=nt(f[w],A),E=V,k=_-g[m]-D,C=_/2-g[m]/2+M,F=Ho(E,C,k),$=!l.arrow&&fn(o)!=null&&C!==F&&a.reference[m]/2-(C<E?V:D)-g[m]/2<0,T=$?C<E?C-E:C-k:0;return{[p]:h[p]+T,data:{[p]:F,centerOffset:C-F-T,...$&&{alignmentOffset:T}},reset:$}}}),Ud=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var e,t;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:u}=r,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...v}=Qt(n,r);if((e=a.arrow)!=null&&e.alignmentOffset)return{};const b=Nt(o),w=Kt(s),x=Nt(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),P=h||(x||!g?[_r(s)]:Wd(s)),N=m!=="none";!h&&N&&P.push(...Hd(s,g,m,S));const _=[s,...P],M=await Pr(r,v),A=[];let V=((t=a.flip)==null?void 0:t.overflows)||[];if(c&&A.push(M[b]),f){const C=jd(o,i,S);A.push(M[C[0]],M[C[1]])}if(V=[...V,{placement:o,overflows:A}],!A.every(C=>C<=0)){var D,E;const C=(((D=a.flip)==null?void 0:D.index)||0)+1,F=_[C];if(F)return{data:{index:C,overflows:V},reset:{placement:F}};let $=(E=V.filter(T=>T.overflows[0]<=0).sort((T,Q)=>T.overflows[1]-Q.overflows[1])[0])==null?void 0:E.placement;if(!$)switch(p){case"bestFit":{var k;const T=(k=V.filter(Q=>{if(N){const O=Kt(Q.placement);return O===w||O==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(O=>O>0).reduce((O,U)=>O+U,0)]).sort((Q,O)=>Q[1]-O[1])[0])==null?void 0:k[0];T&&($=T);break}case"initialPlacement":$=s;break}if(o!==$)return{reset:{placement:$}}}return{}}}};async function Qd(n,r){const{placement:e,platform:t,elements:o}=n,a=await(t.isRTL==null?void 0:t.isRTL(o.floating)),i=Nt(e),s=fn(e),l=Kt(e)==="y",u=["left","top"].includes(i)?-1:1,c=a&&l?-1:1,f=Qt(r,n);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof m=="number"&&(p=s==="end"?m*-1:m),l?{x:p*c,y:h*u}:{x:h*u,y:p*c}}const Kd=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var e,t;const{x:o,y:a,placement:i,middlewareData:s}=r,l=await Qd(r,n);return i===((e=s.offset)==null?void 0:e.placement)&&(t=s.arrow)!=null&&t.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},qd=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:e,y:t,placement:o}=r,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:v=>{let{x:b,y:w}=v;return{x:b,y:w}}},...l}=Qt(n,r),u={x:e,y:t},c=await Pr(r,l),f=Kt(Nt(o)),h=Gi(f);let p=u[h],m=u[f];if(a){const v=h==="y"?"top":"left",b=h==="y"?"bottom":"right",w=p+c[v],x=p-c[b];p=Ho(w,p,x)}if(i){const v=f==="y"?"top":"left",b=f==="y"?"bottom":"right",w=m+c[v],x=m-c[b];m=Ho(w,m,x)}const g=s.fn({...r,[h]:p,[f]:m});return{...g,data:{x:g.x-e,y:g.y-t}}}}},Gd=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){const{placement:e,rects:t,platform:o,elements:a}=r,{apply:i=()=>{},...s}=Qt(n,r),l=await Pr(r,s),u=Nt(e),c=fn(e),f=Kt(e)==="y",{width:h,height:p}=t.floating;let m,g;u==="top"||u==="bottom"?(m=u,g=c===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(g=u,m=c==="end"?"top":"bottom");const v=p-l.top-l.bottom,b=h-l.left-l.right,w=nt(p-l[m],v),x=nt(h-l[g],b),S=!r.middlewareData.shift;let P=w,N=x;if(f?N=c||S?nt(x,b):b:P=c||S?nt(w,v):v,S&&!c){const M=ze(l.left,0),A=ze(l.right,0),V=ze(l.top,0),D=ze(l.bottom,0);f?N=h-2*(M!==0||A!==0?M+A:ze(l.left,l.right)):P=p-2*(V!==0||D!==0?V+D:ze(l.top,l.bottom))}await i({...r,availableWidth:N,availableHeight:P});const _=await o.getDimensions(a.floating);return h!==_.width||p!==_.height?{reset:{rects:!0}}:{}}}};function Zi(n){const r=Ke(n);let e=parseFloat(r.width)||0,t=parseFloat(r.height)||0;const o=tt(n),a=o?n.offsetWidth:e,i=o?n.offsetHeight:t,s=kr(e)!==a||kr(t)!==i;return s&&(e=a,t=i),{width:e,height:t,$:s}}function Uo(n){return Ye(n)?n:n.contextElement}function pn(n){const r=Uo(n);if(!tt(r))return Tt(1);const e=r.getBoundingClientRect(),{width:t,height:o,$:a}=Zi(r);let i=(a?kr(e.width):e.width)/t,s=(a?kr(e.height):e.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Xd=Tt(0);function es(n){const r=Ve(n);return!Ro()||!r.visualViewport?Xd:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Jd(n,r,e){return r===void 0&&(r=!1),!e||r&&e!==Ve(n)?!1:r}function qt(n,r,e,t){r===void 0&&(r=!1),e===void 0&&(e=!1);const o=n.getBoundingClientRect(),a=Uo(n);let i=Tt(1);r&&(t?Ye(t)&&(i=pn(t)):i=pn(n));const s=Jd(a,e,t)?es(a):Tt(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,c=o.width/i.x,f=o.height/i.y;if(a){const h=Ve(a),p=t&&Ye(t)?Ve(t):t;let m=h,g=m.frameElement;for(;g&&t&&p!==m;){const v=pn(g),b=g.getBoundingClientRect(),w=Ke(g),x=b.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,S=b.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,f*=v.y,l+=x,u+=S,m=Ve(g),g=m.frameElement}}return Or({width:c,height:f,x:l,y:u})}function Zd(n){let{elements:r,rect:e,offsetParent:t,strategy:o}=n;const a=o==="fixed",i=gt(t),s=r?Er(r.floating):!1;if(t===i||s&&a)return e;let l={scrollLeft:0,scrollTop:0},u=Tt(1);const c=Tt(0),f=tt(t);if((f||!f&&!a)&&((cn(t)!=="body"||Hn(i))&&(l=Cr(t)),tt(t))){const h=qt(t);u=pn(t),c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-l.scrollLeft*u.x+c.x,y:e.y*u.y-l.scrollTop*u.y+c.y}}function ef(n){return Array.from(n.getClientRects())}function ts(n){return qt(gt(n)).left+Cr(n).scrollLeft}function tf(n){const r=gt(n),e=Cr(n),t=n.ownerDocument.body,o=ze(r.scrollWidth,r.clientWidth,t.scrollWidth,t.clientWidth),a=ze(r.scrollHeight,r.clientHeight,t.scrollHeight,t.clientHeight);let i=-e.scrollLeft+ts(n);const s=-e.scrollTop;return Ke(t).direction==="rtl"&&(i+=ze(r.clientWidth,t.clientWidth)-o),{width:o,height:a,x:i,y:s}}function nf(n,r){const e=Ve(n),t=gt(n),o=e.visualViewport;let a=t.clientWidth,i=t.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const u=Ro();(!u||u&&r==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}function rf(n,r){const e=qt(n,!0,r==="fixed"),t=e.top+n.clientTop,o=e.left+n.clientLeft,a=tt(n)?pn(n):Tt(1),i=n.clientWidth*a.x,s=n.clientHeight*a.y,l=o*a.x,u=t*a.y;return{width:i,height:s,x:l,y:u}}function ns(n,r,e){let t;if(r==="viewport")t=nf(n,e);else if(r==="document")t=tf(gt(n));else if(Ye(r))t=rf(r,e);else{const o=es(n);t={...r,x:r.x-o.x,y:r.y-o.y}}return Or(t)}function rs(n,r){const e=Mt(n);return e===r||!Ye(e)||dn(e)?!1:Ke(e).position==="fixed"||rs(e,r)}function of(n,r){const e=r.get(n);if(e)return e;let t=Bn(n,[],!1).filter(s=>Ye(s)&&cn(s)!=="body"),o=null;const a=Ke(n).position==="fixed";let i=a?Mt(n):n;for(;Ye(i)&&!dn(i);){const s=Ke(i),l=Wo(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Hn(i)&&!l&&rs(n,i))?t=t.filter(c=>c!==i):o=s,i=Mt(i)}return r.set(n,t),t}function af(n){let{element:r,boundary:e,rootBoundary:t,strategy:o}=n;const i=[...e==="clippingAncestors"?Er(r)?[]:of(r,this._c):[].concat(e),t],s=i[0],l=i.reduce((u,c)=>{const f=ns(r,c,o);return u.top=ze(f.top,u.top),u.right=nt(f.right,u.right),u.bottom=nt(f.bottom,u.bottom),u.left=ze(f.left,u.left),u},ns(r,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function sf(n){const{width:r,height:e}=Zi(n);return{width:r,height:e}}function lf(n,r,e){const t=tt(r),o=gt(r),a=e==="fixed",i=qt(n,!0,a,r);let s={scrollLeft:0,scrollTop:0};const l=Tt(0);if(t||!t&&!a)if((cn(r)!=="body"||Hn(o))&&(s=Cr(r)),t){const f=qt(r,!0,a,r);l.x=f.x+r.clientLeft,l.y=f.y+r.clientTop}else o&&(l.x=ts(o));const u=i.left+s.scrollLeft-l.x,c=i.top+s.scrollTop-l.y;return{x:u,y:c,width:i.width,height:i.height}}function Qo(n){return Ke(n).position==="static"}function os(n,r){return!tt(n)||Ke(n).position==="fixed"?null:r?r(n):n.offsetParent}function as(n,r){const e=Ve(n);if(Er(n))return e;if(!tt(n)){let o=Mt(n);for(;o&&!dn(o);){if(Ye(o)&&!Qo(o))return o;o=Mt(o)}return e}let t=os(n,r);for(;t&&Fd(t)&&Qo(t);)t=os(t,r);return t&&dn(t)&&Qo(t)&&!Wo(t)?e:t||Ld(n)||e}const uf=async function(n){const r=this.getOffsetParent||as,e=this.getDimensions,t=await e(n.floating);return{reference:lf(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:t.width,height:t.height}}};function cf(n){return Ke(n).direction==="rtl"}const df={convertOffsetParentRelativeRectToViewportRelativeRect:Zd,getDocumentElement:gt,getClippingRect:af,getOffsetParent:as,getElementRects:uf,getClientRects:ef,getDimensions:sf,getScale:pn,isElement:Ye,isRTL:cf};function ff(n,r){let e=null,t;const o=gt(n);function a(){var s;clearTimeout(t),(s=e)==null||s.disconnect(),e=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:u,top:c,width:f,height:h}=n.getBoundingClientRect();if(s||r(),!f||!h)return;const p=Sr(c),m=Sr(o.clientWidth-(u+f)),g=Sr(o.clientHeight-(c+h)),v=Sr(u),w={rootMargin:-p+"px "+-m+"px "+-g+"px "+-v+"px",threshold:ze(0,nt(1,l))||1};let x=!0;function S(P){const N=P[0].intersectionRatio;if(N!==l){if(!x)return i();N?i(!1,N):t=setTimeout(()=>{i(!1,1e-7)},1e3)}x=!1}try{e=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{e=new IntersectionObserver(S,w)}e.observe(n)}return i(!0),a}function is(n,r,e,t){t===void 0&&(t={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=t,u=Uo(n),c=o||a?[...u?Bn(u):[],...Bn(r)]:[];c.forEach(b=>{o&&b.addEventListener("scroll",e,{passive:!0}),a&&b.addEventListener("resize",e)});const f=u&&s?ff(u,e):null;let h=-1,p=null;i&&(p=new ResizeObserver(b=>{let[w]=b;w&&w.target===u&&p&&(p.unobserve(r),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(r)})),e()}),u&&!l&&p.observe(u),p.observe(r));let m,g=l?qt(n):null;l&&v();function v(){const b=qt(n);g&&(b.x!==g.x||b.y!==g.y||b.width!==g.width||b.height!==g.height)&&e(),g=b,m=requestAnimationFrame(v)}return e(),()=>{var b;c.forEach(w=>{o&&w.removeEventListener("scroll",e),a&&w.removeEventListener("resize",e)}),f==null||f(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const Ko=Pr,pf=Kd,hf=qd,mf=Ud,vf=Gd,ss=zd,gf=(n,r,e)=>{const t=new Map,o={platform:df,...e},a={...o.platform,_c:t};return Vd(n,r,{...o,platform:a})};var Mr=typeof document<"u"?d.useLayoutEffect:d.useEffect;function Tr(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let e,t,o;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(e=n.length,e!==r.length)return!1;for(t=e;t--!==0;)if(!Tr(n[t],r[t]))return!1;return!0}if(o=Object.keys(n),e=o.length,e!==Object.keys(r).length)return!1;for(t=e;t--!==0;)if(!{}.hasOwnProperty.call(r,o[t]))return!1;for(t=e;t--!==0;){const a=o[t];if(!(a==="_owner"&&n.$$typeof)&&!Tr(n[a],r[a]))return!1}return!0}return n!==n&&r!==r}function ls(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function us(n,r){const e=ls(n);return Math.round(r*e)/e}function cs(n){const r=R.useRef(n);return Mr(()=>{r.current=n}),r}function bf(n){n===void 0&&(n={});const{placement:r="bottom",strategy:e="absolute",middleware:t=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:u}=n,[c,f]=R.useState({x:0,y:0,strategy:e,placement:r,middlewareData:{},isPositioned:!1}),[h,p]=R.useState(t);Tr(h,t)||p(t);const[m,g]=R.useState(null),[v,b]=R.useState(null),w=R.useCallback(T=>{T!==N.current&&(N.current=T,g(T))},[]),x=R.useCallback(T=>{T!==_.current&&(_.current=T,b(T))},[]),S=a||m,P=i||v,N=R.useRef(null),_=R.useRef(null),M=R.useRef(c),A=l!=null,V=cs(l),D=cs(o),E=R.useCallback(()=>{if(!N.current||!_.current)return;const T={placement:r,strategy:e,middleware:h};D.current&&(T.platform=D.current),gf(N.current,_.current,T).then(Q=>{const O={...Q,isPositioned:!0};k.current&&!Tr(M.current,O)&&(M.current=O,Sn.flushSync(()=>{f(O)}))})},[h,r,e,D]);Mr(()=>{u===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,f(T=>({...T,isPositioned:!1})))},[u]);const k=R.useRef(!1);Mr(()=>(k.current=!0,()=>{k.current=!1}),[]),Mr(()=>{if(S&&(N.current=S),P&&(_.current=P),S&&P){if(V.current)return V.current(S,P,E);E()}},[S,P,E,V,A]);const C=R.useMemo(()=>({reference:N,floating:_,setReference:w,setFloating:x}),[w,x]),F=R.useMemo(()=>({reference:S,floating:P}),[S,P]),$=R.useMemo(()=>{const T={position:e,left:0,top:0};if(!F.floating)return T;const Q=us(F.floating,c.x),O=us(F.floating,c.y);return s?{...T,transform:"translate("+Q+"px, "+O+"px)",...ls(F.floating)>=1.5&&{willChange:"transform"}}:{position:e,left:Q,top:O}},[e,s,F.floating,c.x,c.y]);return R.useMemo(()=>({...c,update:E,refs:C,elements:F,floatingStyles:$}),[c,E,C,F,$])}const yf=n=>{function r(e){return{}.hasOwnProperty.call(e,"current")}return{name:"arrow",options:n,fn(e){const{element:t,padding:o}=typeof n=="function"?n(e):n;return t&&r(t)?t.current!=null?ss({element:t.current,padding:o}).fn(e):{}:t?ss({element:t,padding:o}).fn(e):{}}}},qo=(n,r)=>({...pf(n),options:[n,r]}),wf=(n,r)=>({...hf(n),options:[n,r]}),ds=(n,r)=>({...mf(n),options:[n,r]}),xf=(n,r)=>({...vf(n),options:[n,r]}),Df=(n,r)=>({...yf(n),options:[n,r]}),fs={...R},Ef=fs.useInsertionEffect||(n=>n());function ps(n){const r=R.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Ef(()=>{r.current=n}),R.useCallback(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return r.current==null?void 0:r.current(...t)},[])}var Nr=typeof document<"u"?d.useLayoutEffect:d.useEffect;function Go(){return Go=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},Go.apply(this,arguments)}let hs=!1,Cf=0;const ms=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Cf++;function kf(){const[n,r]=R.useState(()=>hs?ms():void 0);return Nr(()=>{n==null&&r(ms())},[]),R.useEffect(()=>{hs=!0},[]),n}const vs=fs.useId||kf;let Vn;process.env.NODE_ENV!=="production"&&(Vn=new Set);function gs(){for(var n,r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];const o="Floating UI: "+e.join(" ");if(!((n=Vn)!=null&&n.has(o))){var a;(a=Vn)==null||a.add(o),console.warn(o)}}function Sf(){for(var n,r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];const o="Floating UI: "+e.join(" ");if(!((n=Vn)!=null&&n.has(o))){var a;(a=Vn)==null||a.add(o),console.error(o)}}const _f=R.forwardRef(function(r,e){const{context:{placement:t,elements:{floating:o},middlewareData:{arrow:a}},width:i=14,height:s=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:c,stroke:f,d:h,style:{transform:p,...m}={},...g}=r;process.env.NODE_ENV!=="production"&&(e||gs("The `ref` prop is required for `FloatingArrow`."));const v=vs(),[b,w]=R.useState(!1);if(Nr(()=>{if(!o)return;Ke(o).direction==="rtl"&&w(!0)},[o]),!o)return null;const x=u*2,S=x/2,P=i/2*(l/-8+1),N=s/2*l/4,[_,M]=t.split("-"),A=!!h,V=_==="top"||_==="bottom",D=c&&M==="end"?"bottom":"top";let E=c&&M==="end"?"right":"left";c&&b&&(E=M==="end"?"left":"right");const k=(a==null?void 0:a.x)!=null?c||a.x:"",C=(a==null?void 0:a.y)!=null?c||a.y:"",F=h||"M0,0"+(" H"+i)+(" L"+(i-P)+","+(s-N))+(" Q"+i/2+","+s+" "+P+","+(s-N))+" Z",$={top:A?"rotate(180deg)":"",left:A?"rotate(90deg)":"rotate(-90deg)",bottom:A?"":"rotate(180deg)",right:A?"rotate(-90deg)":"rotate(90deg)"}[_];return R.createElement("svg",Go({},g,{"aria-hidden":!0,ref:e,width:A?i:i+x,height:i,viewBox:"0 0 "+i+" "+(s>i?s:i),style:{position:"absolute",pointerEvents:"none",[E]:k,[D]:C,[_]:V||A?"100%":"calc(100% - "+x/2+"px)",transform:""+$+(p??""),...m}}),x>0&&R.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:f,strokeWidth:x+(h?0:1),d:F}),R.createElement("path",{stroke:x&&!h?g.fill:"none",d:F}),R.createElement("clipPath",{id:v},R.createElement("rect",{x:-S,y:S*(A?-1:1),width:i+x,height:i})))});function Of(){const n=new Map;return{emit(r,e){var t;(t=n.get(r))==null||t.forEach(o=>o(e))},on(r,e){n.set(r,[...n.get(r)||[],e])},off(r,e){var t;n.set(r,((t=n.get(r))==null?void 0:t.filter(o=>o!==e))||[])}}}const Pf=R.createContext(null),Mf=R.createContext(null),Tf=()=>{var n;return((n=R.useContext(Pf))==null?void 0:n.id)||null},Nf=()=>R.useContext(Mf);function If(n){const{open:r=!1,onOpenChange:e,elements:t}=n,o=vs(),a=R.useRef({}),[i]=R.useState(()=>Of()),s=Tf()!=null;if(process.env.NODE_ENV!=="production"){const p=t.reference;p&&!Ye(p)&&Sf("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=R.useState(t.reference),c=ps((p,m,g)=>{a.current.openEvent=p?m:void 0,i.emit("openchange",{open:p,event:m,reason:g,nested:s}),e==null||e(p,m,g)}),f=R.useMemo(()=>({setPositionReference:u}),[]),h=R.useMemo(()=>({reference:l||t.reference||null,floating:t.floating||null,domReference:t.reference}),[l,t.reference,t.floating]);return R.useMemo(()=>({dataRef:a,open:r,onOpenChange:c,elements:h,events:i,floatingId:o,refs:f}),[r,c,h,i,o,f])}function bs(n){n===void 0&&(n={});const{nodeId:r}=n,e=If({...n,elements:{reference:null,floating:null,...n.elements}}),t=n.rootContext||e,o=t.elements,[a,i]=R.useState(null),[s,l]=R.useState(null),c=(o==null?void 0:o.reference)||a,f=R.useRef(null),h=Nf();Nr(()=>{c&&(f.current=c)},[c]);const p=bf({...n,elements:{...o,...s&&{reference:s}}}),m=R.useCallback(x=>{const S=Ye(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;l(S),p.refs.setReference(S)},[p.refs]),g=R.useCallback(x=>{(Ye(x)||x===null)&&(f.current=x,i(x)),(Ye(p.refs.reference.current)||p.refs.reference.current===null||x!==null&&!Ye(x))&&p.refs.setReference(x)},[p.refs]),v=R.useMemo(()=>({...p.refs,setReference:g,setPositionReference:m,domReference:f}),[p.refs,g,m]),b=R.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),w=R.useMemo(()=>({...p,...t,refs:v,elements:b,nodeId:r}),[p,v,b,r,t]);return Nr(()=>{t.dataRef.current.floatingContext=w;const x=h==null?void 0:h.nodesRef.current.find(S=>S.id===r);x&&(x.context=w)}),R.useMemo(()=>({...p,context:w,refs:v,elements:b}),[p,v,b,w])}const ys="active",ws="selected";function Xo(n,r,e){const t=new Map,o=e==="item";let a=n;if(o&&n){const{[ys]:i,[ws]:s,...l}=n;a=l}return{...e==="floating"&&{tabIndex:-1},...a,...r.map(i=>{const s=i?i[e]:null;return typeof s=="function"?n?s(n):null:s}).concat(n).reduce((i,s)=>(s&&Object.entries(s).forEach(l=>{let[u,c]=l;if(!(o&&[ys,ws].includes(u)))if(u.indexOf("on")===0){if(t.has(u)||t.set(u,[]),typeof c=="function"){var f;(f=t.get(u))==null||f.push(c),i[u]=function(){for(var h,p=arguments.length,m=new Array(p),g=0;g<p;g++)m[g]=arguments[g];return(h=t.get(u))==null?void 0:h.map(v=>v(...m)).find(v=>v!==void 0)}}}else i[u]=c}),i),{})}}function Ff(n){n===void 0&&(n=[]);const r=n.map(s=>s==null?void 0:s.reference),e=n.map(s=>s==null?void 0:s.floating),t=n.map(s=>s==null?void 0:s.item),o=R.useCallback(s=>Xo(s,n,"reference"),r),a=R.useCallback(s=>Xo(s,n,"floating"),e),i=R.useCallback(s=>Xo(s,n,"item"),t);return R.useMemo(()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:i}),[o,a,i])}function xs(n,r){return{...n,rects:{...n.rects,floating:{...n.rects.floating,height:r}}}}const Lf=n=>({name:"inner",options:n,async fn(r){const{listRef:e,overflowRef:t,onFallbackChange:o,offset:a=0,index:i=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:u,...c}=Qt(n,r),{rects:f,elements:{floating:h}}=r,p=e.current[i];if(process.env.NODE_ENV!=="production"&&(r.placement.startsWith("bottom")||gs('`placement` side must be "bottom" when using the `inner`',"middleware.")),!p)return{};const m={...r,...await qo(-p.offsetTop-h.clientTop-f.reference.height/2-p.offsetHeight/2-a).fn(r)},g=(u==null?void 0:u.current)||h,v=await Ko(xs(m,g.scrollHeight),c),b=await Ko(m,{...c,elementContext:"reference"}),w=Math.max(0,v.top),x=m.y+w,S=Math.max(0,g.scrollHeight-w-Math.max(0,v.bottom));return g.style.maxHeight=S+"px",g.scrollTop=w,o&&(g.offsetHeight<p.offsetHeight*Math.min(s,e.current.length-1)-1||b.top>=-l||b.bottom>=-l?Sn.flushSync(()=>o(!0)):Sn.flushSync(()=>o(!1))),t&&(t.current=await Ko(xs({...m,y:x},g.offsetHeight),c)),{y:x}}});function Af(n,r){const{open:e,elements:t}=n,{enabled:o=!0,overflowRef:a,scrollRef:i,onChange:s}=r,l=ps(s),u=R.useRef(!1),c=R.useRef(null),f=R.useRef(null);R.useEffect(()=>{if(!o)return;function p(g){if(g.ctrlKey||!m||a.current==null)return;const v=g.deltaY,b=a.current.top>=-.5,w=a.current.bottom>=-.5,x=m.scrollHeight-m.clientHeight,S=v<0?-1:1,P=v<0?"max":"min";m.scrollHeight<=m.clientHeight||(!b&&v>0||!w&&v<0?(g.preventDefault(),Sn.flushSync(()=>{l(N=>N+Math[P](v,x*S))})):/firefox/i.test(Ad())&&(m.scrollTop+=v))}const m=(i==null?void 0:i.current)||t.floating;if(e&&m)return m.addEventListener("wheel",p),requestAnimationFrame(()=>{c.current=m.scrollTop,a.current!=null&&(f.current={...a.current})}),()=>{c.current=null,f.current=null,m.removeEventListener("wheel",p)}},[o,e,t.floating,a,i,l]);const h=R.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const p=(i==null?void 0:i.current)||t.floating;if(!(!a.current||!p||!u.current)){if(c.current!==null){const m=p.scrollTop-c.current;(a.current.bottom<-.5&&m<-1||a.current.top<-.5&&m>1)&&Sn.flushSync(()=>l(g=>g+m))}requestAnimationFrame(()=>{c.current=p.scrollTop})}}}),[t.floating,l,a,i]);return R.useMemo(()=>o?{floating:h}:{},[o,h])}let hn=d.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});hn.displayName="FloatingContext";let Jo=d.createContext(null);Jo.displayName="PlacementContext";function Ds(n){return d.useMemo(()=>n?typeof n=="string"?{to:n}:n:null,[n])}function Es(){return d.useContext(hn).setReference}function $f(){return d.useContext(hn).getReferenceProps}function Cs(){let{getFloatingProps:n,slot:r}=d.useContext(hn);return d.useCallback((...e)=>Object.assign({},n(...e),{"data-anchor":r.anchor}),[n,r])}function ks(n=null){n===!1&&(n=null),typeof n=="string"&&(n={to:n});let r=d.useContext(Jo),e=d.useMemo(()=>n,[JSON.stringify(n,typeof HTMLElement<"u"?(o,a)=>a instanceof HTMLElement?a.outerHTML:a:void 0)]);ee(()=>{r==null||r(e??null)},[r,e]);let t=d.useContext(hn);return d.useMemo(()=>[t.setFloating,n?t.styles:{}],[t.setFloating,n,t.styles])}let Ss=4;function _s({children:n,enabled:r=!0}){let[e,t]=d.useState(null),[o,a]=d.useState(0),i=d.useRef(null),[s,l]=d.useState(null);Yf(s);let u=r&&e!==null&&s!==null,{to:c="bottom",gap:f=0,offset:h=0,padding:p=0,inner:m}=jf(e,s),[g,v="center"]=c.split(" ");ee(()=>{u&&a(0)},[u]);let{refs:b,floatingStyles:w,context:x}=bs({open:u,placement:g==="selection"?v==="center"?"bottom":`bottom-${v}`:v==="center"?`${g}`:`${g}-${v}`,strategy:"absolute",transform:!1,middleware:[qo({mainAxis:g==="selection"?0:f,crossAxis:h}),wf({padding:p}),g!=="selection"&&ds({padding:p}),g==="selection"&&m?Lf({...m,padding:p,overflowRef:i,offset:o,minItemsVisible:Ss,referenceOverflowThreshold:p,onFallbackChange(D){var E,k;if(!D)return;let C=x.elements.floating;if(!C)return;let F=parseFloat(getComputedStyle(C).scrollPaddingBottom)||0,$=Math.min(Ss,C.childElementCount),T=0,Q=0;for(let O of(k=(E=x.elements.floating)==null?void 0:E.childNodes)!=null?k:[])if(O instanceof HTMLElement){let U=O.offsetTop,G=U+O.clientHeight+F,z=C.scrollTop,fe=z+C.clientHeight;if(U>=z&&G<=fe)$--;else{Q=Math.max(0,Math.min(G,fe)-Math.max(U,z)),T=O.clientHeight;break}}$>=1&&a(O=>{let U=T*$-Q+F;return O>=U?O:U})}}):null,xf({padding:p,apply({availableWidth:D,availableHeight:E,elements:k}){Object.assign(k.floating.style,{overflow:"auto",maxWidth:`${D}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${E}px)`})}})].filter(Boolean),whileElementsMounted:is}),[S=g,P=v]=x.placement.split("-");g==="selection"&&(S="selection");let N=d.useMemo(()=>({anchor:[S,P].filter(Boolean).join(" ")}),[S,P]),_=Af(x,{overflowRef:i,onChange:a}),{getReferenceProps:M,getFloatingProps:A}=Ff([_]),V=Y(D=>{l(D),b.setFloating(D)});return R.createElement(Jo.Provider,{value:t},R.createElement(hn.Provider,{value:{setFloating:V,setReference:b.setReference,styles:w,getReferenceProps:M,getFloatingProps:A,slot:N}},n))}function Yf(n){ee(()=>{if(!n)return;let r=new MutationObserver(()=>{let e=window.getComputedStyle(n).maxHeight,t=parseFloat(e);if(isNaN(t))return;let o=parseInt(e);isNaN(o)||t!==o&&(n.style.maxHeight=`${Math.ceil(t)}px`)});return r.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>{r.disconnect()}},[n])}function jf(n,r){var e,t,o;let a=Zo((e=n==null?void 0:n.gap)!=null?e:"var(--anchor-gap, 0)",r),i=Zo((t=n==null?void 0:n.offset)!=null?t:"var(--anchor-offset, 0)",r),s=Zo((o=n==null?void 0:n.padding)!=null?o:"var(--anchor-padding, 0)",r);return{...n,gap:a,offset:i,padding:s}}function Zo(n,r,e=void 0){let t=mt(),o=Y((l,u)=>{if(l==null)return[e,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!u)return[e,null];let c=Ps(l,u);return[c,f=>{let h=Os(l);{let p=h.map(m=>window.getComputedStyle(u).getPropertyValue(m));t.requestAnimationFrame(function m(){t.nextFrame(m);let g=!1;for(let[b,w]of h.entries()){let x=window.getComputedStyle(u).getPropertyValue(w);if(p[b]!==x){p[b]=x,g=!0;break}}if(!g)return;let v=Ps(l,u);c!==v&&(f(v),c=v)})}return t.dispose}]}return[e,null]}),a=d.useMemo(()=>o(n,r)[0],[n,r]),[i=a,s]=d.useState();return ee(()=>{let[l,u]=o(n,r);if(s(l),!!u)return u(s)},[n,r]),i}function Os(n){let r=/var\((.*)\)/.exec(n);if(r){let e=r[1].indexOf(",");if(e===-1)return[r[1]];let t=r[1].slice(0,e).trim(),o=r[1].slice(e+1).trim();return o?[t,...Os(o)]:[t]}return[]}function Ps(n,r){let e=document.createElement("div");r.appendChild(e),e.style.setProperty("margin-top","0px","important"),e.style.setProperty("margin-top",n,"important");let t=parseFloat(window.getComputedStyle(e).marginTop)||0;return r.removeChild(e),t}function Wf({children:n,freeze:r}){let e=Ir(r,n);return d.createElement(d.Fragment,null,e)}function Ir(n,r){let[e,t]=d.useState(r);return!n&&e!==r&&t(r),n?e:r}let Fr=d.createContext(null);Fr.displayName="OpenClosedContext";var Le=(n=>(n[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n))(Le||{});function mn(){return d.useContext(Fr)}function ea({value:n,children:r}){return d.createElement(Fr.Provider,{value:n},r)}function Rf({children:n}){return d.createElement(Fr.Provider,{value:null},n)}function Hf(n){function r(){document.readyState!=="loading"&&(n(),document.removeEventListener("DOMContentLoaded",r))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",r),r())}let rt=[];Hf(()=>{function n(r){if(!(r.target instanceof HTMLElement)||r.target===document.body||rt[0]===r.target)return;let e=r.target;e=e.closest(Dr),rt.unshift(e??r.target),rt=rt.filter(t=>t!=null&&t.isConnected),rt.splice(10)}window.addEventListener("click",n,{capture:!0}),window.addEventListener("mousedown",n,{capture:!0}),window.addEventListener("focus",n,{capture:!0}),document.body.addEventListener("click",n,{capture:!0}),document.body.addEventListener("mousedown",n,{capture:!0}),document.body.addEventListener("focus",n,{capture:!0})});function Bf(n){throw new Error("Unexpected object: "+n)}var Z=(n=>(n[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing",n))(Z||{});function zn(n,r){let e=r.resolveItems();if(e.length<=0)return null;let t=r.resolveActiveIndex(),o=t??-1;switch(n.focus){case 0:{for(let a=0;a<e.length;++a)if(!r.resolveDisabled(e[a],a,e))return a;return t}case 1:{o===-1&&(o=e.length);for(let a=o-1;a>=0;--a)if(!r.resolveDisabled(e[a],a,e))return a;return t}case 2:{for(let a=o+1;a<e.length;++a)if(!r.resolveDisabled(e[a],a,e))return a;return t}case 3:{for(let a=e.length-1;a>=0;--a)if(!r.resolveDisabled(e[a],a,e))return a;return t}case 4:{for(let a=0;a<e.length;++a)if(r.resolveId(e[a],a,e)===n.id)return a;return t}case 5:return null;default:Bf(n)}}var ta=(n=>(n[n.Left=0]="Left",n[n.Right=2]="Right",n))(ta||{});function Ms(n){let r=Y(n),e=d.useRef(!1);d.useEffect(()=>(e.current=!1,()=>{e.current=!0,mr(()=>{e.current&&r()})}),[r])}function Vf(){let n=typeof document>"u";return"useSyncExternalStore"in R?(r=>r.useSyncExternalStore)(R)(()=>()=>{},()=>!1,()=>!n):!1}function Un(){let n=Vf(),[r,e]=R.useState(Vt.isHandoffComplete);return r&&Vt.isHandoffComplete===!1&&e(!1),R.useEffect(()=>{r!==!0&&e(!0)},[r]),R.useEffect(()=>Vt.handoff(),[]),n?!1:r}let Ts=d.createContext(!1);function zf(){return d.useContext(Ts)}function Ns(n){return d.createElement(Ts.Provider,{value:n.force},n.children)}function Uf(n){let r=zf(),e=d.useContext(Fs),t=Pt(n),[o,a]=d.useState(()=>{var i;if(!r&&e!==null)return(i=e.current)!=null?i:null;if(Vt.isServer)return null;let s=t==null?void 0:t.getElementById("headlessui-portal-root");if(s)return s;if(t===null)return null;let l=t.createElement("div");return l.setAttribute("id","headlessui-portal-root"),t.body.appendChild(l)});return d.useEffect(()=>{o!==null&&(t!=null&&t.body.contains(o)||t==null||t.body.appendChild(o))},[o,t]),d.useEffect(()=>{r||e!==null&&a(e.current)},[e,a,r]),o}let Is=d.Fragment,Qf=ge(function(n,r){let e=n,t=d.useRef(null),o=Te(Wc(c=>{t.current=c}),r),a=Pt(t),i=Uf(t),[s]=d.useState(()=>{var c;return Vt.isServer?null:(c=a==null?void 0:a.createElement("div"))!=null?c:null}),l=d.useContext(na),u=Un();return ee(()=>{!i||!s||i.contains(s)||(s.setAttribute("data-headlessui-portal",""),i.appendChild(s))},[i,s]),ee(()=>{if(s&&l)return l.register(s)},[l,s]),Ms(()=>{var c;!i||!s||(s instanceof Node&&i.contains(s)&&i.removeChild(s),i.childNodes.length<=0&&((c=i.parentElement)==null||c.removeChild(i)))}),u?!i||!s?null:ye.createPortal(De({ourProps:{ref:o},theirProps:e,slot:{},defaultTag:Is,name:"Portal"}),s):null});function Kf(n,r){let e=Te(r),{enabled:t=!0,...o}=n;return t?d.createElement(Qf,{...o,ref:e}):De({ourProps:{ref:e},theirProps:o,slot:{},defaultTag:Is,name:"Portal"})}let qf=d.Fragment,Fs=d.createContext(null);function Gf(n,r){let{target:e,...t}=n,o={ref:Te(r)};return d.createElement(Fs.Provider,{value:e},De({ourProps:o,theirProps:t,defaultTag:qf,name:"Popover.Group"}))}let na=d.createContext(null);function Xf(){let n=d.useContext(na),r=d.useRef([]),e=Y(a=>(r.current.push(a),n&&n.register(a),()=>t(a))),t=Y(a=>{let i=r.current.indexOf(a);i!==-1&&r.current.splice(i,1),n&&n.unregister(a)}),o=d.useMemo(()=>({register:e,unregister:t,portals:r}),[e,t,r]);return[r,d.useMemo(()=>function({children:a}){return d.createElement(na.Provider,{value:o},a)},[o])]}let Jf=ge(Kf),Ls=ge(Gf),ra=Object.assign(Jf,{Group:Ls});var Zf=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(Zf||{}),ep=(n=>(n[n.Single=0]="Single",n[n.Multi=1]="Multi",n))(ep||{}),tp=(n=>(n[n.Pointer=0]="Pointer",n[n.Focus=1]="Focus",n[n.Other=2]="Other",n))(tp||{}),np=(n=>(n[n.OpenCombobox=0]="OpenCombobox",n[n.CloseCombobox=1]="CloseCombobox",n[n.GoToOption=2]="GoToOption",n[n.SetTyping=3]="SetTyping",n[n.RegisterOption=4]="RegisterOption",n[n.UnregisterOption=5]="UnregisterOption",n[n.SetActivationTrigger=6]="SetActivationTrigger",n[n.UpdateVirtualConfiguration=7]="UpdateVirtualConfiguration",n))(np||{});function oa(n,r=e=>e){let e=n.activeOptionIndex!==null?n.options[n.activeOptionIndex]:null,t=r(n.options.slice()),o=t.length>0&&t[0].dataRef.current.order!==null?t.sort((i,s)=>i.dataRef.current.order-s.dataRef.current.order):Fo(t,i=>i.dataRef.current.domRef.current),a=e?o.indexOf(e):null;return a===-1&&(a=null),{options:o,activeOptionIndex:a}}let rp={1(n){var r;return(r=n.dataRef.current)!=null&&r.disabled||n.comboboxState===1?n:{...n,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,__demoMode:!1}},0(n){var r,e;if((r=n.dataRef.current)!=null&&r.disabled||n.comboboxState===0)return n;if((e=n.dataRef.current)!=null&&e.value){let t=n.dataRef.current.calculateIndex(n.dataRef.current.value);if(t!==-1)return{...n,activeOptionIndex:t,comboboxState:0,__demoMode:!1}}return{...n,comboboxState:0,__demoMode:!1}},3(n,r){return n.isTyping===r.isTyping?n:{...n,isTyping:r.isTyping}},2(n,r){var e,t,o,a,i;if((e=n.dataRef.current)!=null&&e.disabled||(t=n.dataRef.current)!=null&&t.optionsRef.current&&!((o=n.dataRef.current)!=null&&o.optionsPropsRef.current.static)&&n.comboboxState===1)return n;if(n.virtual){let{options:c,disabled:f}=n.virtual,h=r.focus===Z.Specific?r.idx:zn(r,{resolveItems:()=>c,resolveActiveIndex:()=>{var m,g;return(g=(m=n.activeOptionIndex)!=null?m:c.findIndex(v=>!f(v)))!=null?g:null},resolveDisabled:f,resolveId(){throw new Error("Function not implemented.")}}),p=(a=r.trigger)!=null?a:2;return n.activeOptionIndex===h&&n.activationTrigger===p?n:{...n,activeOptionIndex:h,activationTrigger:p,isTyping:!1,__demoMode:!1}}let s=oa(n);if(s.activeOptionIndex===null){let c=s.options.findIndex(f=>!f.dataRef.current.disabled);c!==-1&&(s.activeOptionIndex=c)}let l=r.focus===Z.Specific?r.idx:zn(r,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:c=>c.id,resolveDisabled:c=>c.dataRef.current.disabled}),u=(i=r.trigger)!=null?i:2;return n.activeOptionIndex===l&&n.activationTrigger===u?n:{...n,...s,isTyping:!1,activeOptionIndex:l,activationTrigger:u,__demoMode:!1}},4:(n,r)=>{var e,t,o;if((e=n.dataRef.current)!=null&&e.virtual)return{...n,options:[...n.options,r.payload]};let a=r.payload,i=oa(n,l=>(l.push(a),l));n.activeOptionIndex===null&&(t=n.dataRef.current)!=null&&t.isSelected(r.payload.dataRef.current.value)&&(i.activeOptionIndex=i.options.indexOf(a));let s={...n,...i,activationTrigger:2};return(o=n.dataRef.current)!=null&&o.__demoMode&&n.dataRef.current.value===void 0&&(s.activeOptionIndex=0),s},5:(n,r)=>{var e;if((e=n.dataRef.current)!=null&&e.virtual)return{...n,options:n.options.filter(o=>o.id!==r.id)};let t=oa(n,o=>{let a=o.findIndex(i=>i.id===r.id);return a!==-1&&o.splice(a,1),o});return{...n,...t,activationTrigger:2}},6:(n,r)=>n.activationTrigger===r.trigger?n:{...n,activationTrigger:r.trigger},7:(n,r)=>{var e,t;if(n.virtual===null)return{...n,virtual:{options:r.options,disabled:(e=r.disabled)!=null?e:()=>!1}};if(n.virtual.options===r.options&&n.virtual.disabled===r.disabled)return n;let o=n.activeOptionIndex;if(n.activeOptionIndex!==null){let a=r.options.indexOf(n.virtual.options[n.activeOptionIndex]);a!==-1?o=a:o=null}return{...n,activeOptionIndex:o,virtual:{options:r.options,disabled:(t=r.disabled)!=null?t:()=>!1}}}},aa=d.createContext(null);aa.displayName="ComboboxActionsContext";function Qn(n){let r=d.useContext(aa);if(r===null){let e=new Error(`<${n} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Qn),e}return r}let As=d.createContext(null);function op(n){let r=vn("VirtualProvider"),{options:e}=r.virtual,[t,o]=d.useMemo(()=>{let u=r.optionsRef.current;if(!u)return[0,0];let c=window.getComputedStyle(u);return[parseFloat(c.paddingBlockStart||c.paddingTop),parseFloat(c.paddingBlockEnd||c.paddingBottom)]},[r.optionsRef.current]),a=ud({enabled:e.length!==0,scrollPaddingStart:t,scrollPaddingEnd:o,count:e.length,estimateSize(){return 40},getScrollElement(){var u;return(u=r.optionsRef.current)!=null?u:null},overscan:12}),[i,s]=d.useState(0);ee(()=>{s(u=>u+1)},[e]);let l=a.getVirtualItems();return l.length===0?null:d.createElement(As.Provider,{value:a},d.createElement("div",{style:{position:"relative",width:"100%",height:`${a.getTotalSize()}px`},ref:u=>{if(u){if(typeof process<"u"&&process.env.JEST_WORKER_ID!==void 0||r.activationTrigger===0)return;r.activeOptionIndex!==null&&e.length>r.activeOptionIndex&&a.scrollToIndex(r.activeOptionIndex)}}},l.map(u=>{var c;return d.createElement(d.Fragment,{key:u.key},d.cloneElement((c=n.children)==null?void 0:c.call(n,{...n.slot,option:e[u.index]}),{key:`${i}-${u.key}`,"data-index":u.index,"aria-setsize":e.length,"aria-posinset":u.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${u.start}px)`,overflowAnchor:"none"}}))})))}let Kn=d.createContext(null);Kn.displayName="ComboboxDataContext";function vn(n){let r=d.useContext(Kn);if(r===null){let e=new Error(`<${n} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,vn),e}return r}function ap(n,r){return Me(r.type,rp,n,r)}let ip=d.Fragment;function sp(n,r){var e,t;let o=vr(),{value:a,defaultValue:i,onChange:s,form:l,name:u,by:c,disabled:f=o||!1,onClose:h,__demoMode:p=!1,multiple:m=!1,immediate:g=!1,virtual:v=null,nullable:b,...w}=n,x=gi(i),[S=m?[]:void 0,P]=vi(a,s,x),[N,_]=d.useReducer(ap,{dataRef:d.createRef(),comboboxState:p?0:1,isTyping:!1,options:[],virtual:v?{options:v.options,disabled:(e=v.disabled)!=null?e:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,__demoMode:p}),M=d.useRef(!1),A=d.useRef({static:!1,hold:!1}),V=d.useRef(null),D=d.useRef(null),E=d.useRef(null),k=Ti(c),C=Y(K=>v?c===null?v.options.indexOf(K):v.options.findIndex(he=>k(he,K)):N.options.findIndex(he=>k(he.dataRef.current.value,K))),F=d.useCallback(K=>Me(T.mode,{1:()=>S.some(he=>k(he,K)),0:()=>k(S,K)}),[S]),$=Y(K=>N.activeOptionIndex===C(K)),T=d.useMemo(()=>({...N,immediate:g,optionsPropsRef:A,inputRef:V,buttonRef:D,optionsRef:E,value:S,defaultValue:x,disabled:f,mode:m?1:0,virtual:v?N.virtual:null,get activeOptionIndex(){if(M.current&&N.activeOptionIndex===null&&(v?v.options.length>0:N.options.length>0)){if(v){let he=v.options.findIndex(Re=>{var pt,sr;return!((sr=(pt=v.disabled)==null?void 0:pt.call(v,Re))!=null&&sr)});if(he!==-1)return he}let K=N.options.findIndex(he=>!he.dataRef.current.disabled);if(K!==-1)return K}return N.activeOptionIndex},calculateIndex:C,compare:k,isSelected:F,isActive:$}),[S,x,f,m,p,N,v]);ee(()=>{var K;v&&_({type:7,options:v.options,disabled:(K=v.disabled)!=null?K:null})},[v,v==null?void 0:v.options,v==null?void 0:v.disabled]),ee(()=>{N.dataRef.current=T},[T]);let Q=T.comboboxState===0;Lo(Q,[T.buttonRef,T.inputRef,T.optionsRef],()=>$e.closeCombobox());let O=d.useMemo(()=>{var K,he,Re;return{open:T.comboboxState===0,disabled:f,activeIndex:T.activeOptionIndex,activeOption:T.activeOptionIndex===null?null:T.virtual?T.virtual.options[(K=T.activeOptionIndex)!=null?K:0]:(Re=(he=T.options[T.activeOptionIndex])==null?void 0:he.dataRef.current.value)!=null?Re:null,value:S}},[T,f,S]),U=Y(()=>{if(T.activeOptionIndex!==null){if($e.setIsTyping(!1),T.virtual)ne(T.virtual.options[T.activeOptionIndex]);else{let{dataRef:K}=T.options[T.activeOptionIndex];ne(K.current.value)}$e.goToOption(Z.Specific,T.activeOptionIndex)}}),G=Y(()=>{_({type:0}),M.current=!0}),z=Y(()=>{_({type:1}),M.current=!1,h==null||h()}),fe=Y(K=>{_({type:3,isTyping:K})}),pe=Y((K,he,Re)=>(M.current=!1,K===Z.Specific?_({type:2,focus:Z.Specific,idx:he,trigger:Re}):_({type:2,focus:K,trigger:Re}))),ke=Y((K,he)=>(_({type:4,payload:{id:K,dataRef:he}}),()=>{T.isActive(he.current.value)&&(M.current=!0),_({type:5,id:K})})),ne=Y(K=>Me(T.mode,{0(){return P==null?void 0:P(K)},1(){let he=T.value.slice(),Re=he.findIndex(pt=>k(pt,K));return Re===-1?he.push(K):he.splice(Re,1),P==null?void 0:P(he)}})),Ne=Y(K=>{_({type:6,trigger:K})}),$e=d.useMemo(()=>({onChange:ne,registerOption:ke,goToOption:pe,setIsTyping:fe,closeCombobox:z,openCombobox:G,setActivationTrigger:Ne,selectActiveOption:U}),[]),[Et,Wt]=Oi(),we=r===null?{}:{ref:r},Se=d.useCallback(()=>{if(x!==void 0)return P==null?void 0:P(x)},[P,x]);return d.createElement(Wt,{value:Et,props:{htmlFor:(t=T.inputRef.current)==null?void 0:t.id},slot:{open:T.comboboxState===0,disabled:f}},d.createElement(_s,null,d.createElement(aa.Provider,{value:$e},d.createElement(Kn.Provider,{value:T},d.createElement(ea,{value:Me(T.comboboxState,{0:Le.Open,1:Le.Closed})},u!=null&&d.createElement(xi,{disabled:f,data:S!=null?{[u]:S}:{},form:l,onReset:Se}),De({ourProps:we,theirProps:w,slot:O,defaultTag:ip,name:"Combobox"}))))))}let lp="input";function up(n,r){var e,t,o,a,i;let s=vn("Combobox.Input"),l=Qn("Combobox.Input"),u=d.useId(),c=_o(),{id:f=c||`headlessui-combobox-input-${u}`,onChange:h,displayValue:p,disabled:m=s.disabled||!1,autoFocus:g=!1,type:v="text",...b}=n,w=Te(s.inputRef,r,Es()),x=Pt(s.inputRef),S=mt(),P=Y(()=>{l.onChange(null),s.optionsRef.current&&(s.optionsRef.current.scrollTop=0),l.goToOption(Z.Nothing)}),N=d.useMemo(()=>{var z;return typeof p=="function"&&s.value!==void 0?(z=p(s.value))!=null?z:"":typeof s.value=="string"?s.value:""},[s.value,p]);Rn(([z,fe],[pe,ke])=>{if(s.isTyping)return;let ne=s.inputRef.current;ne&&((ke===0&&fe===1||z!==pe)&&(ne.value=z),requestAnimationFrame(()=>{if(s.isTyping||!ne||(x==null?void 0:x.activeElement)!==ne)return;let{selectionStart:Ne,selectionEnd:$e}=ne;Math.abs(($e??0)-(Ne??0))===0&&Ne===0&&ne.setSelectionRange(ne.value.length,ne.value.length)}))},[N,s.comboboxState,x,s.isTyping]),Rn(([z],[fe])=>{if(z===0&&fe===1){if(s.isTyping)return;let pe=s.inputRef.current;if(!pe)return;let ke=pe.value,{selectionStart:ne,selectionEnd:Ne,selectionDirection:$e}=pe;pe.value="",pe.value=ke,$e!==null?pe.setSelectionRange(ne,Ne,$e):pe.setSelectionRange(ne,Ne)}},[s.comboboxState]);let _=d.useRef(!1),M=Y(()=>{_.current=!0}),A=Y(()=>{S.nextFrame(()=>{_.current=!1})}),V=Y(z=>{switch(l.setIsTyping(!0),z.key){case ae.Enter:if(s.comboboxState!==0||_.current)return;if(z.preventDefault(),z.stopPropagation(),s.activeOptionIndex===null){l.closeCombobox();return}l.selectActiveOption(),s.mode===0&&l.closeCombobox();break;case ae.ArrowDown:return z.preventDefault(),z.stopPropagation(),Me(s.comboboxState,{0:()=>l.goToOption(Z.Next),1:()=>l.openCombobox()});case ae.ArrowUp:return z.preventDefault(),z.stopPropagation(),Me(s.comboboxState,{0:()=>l.goToOption(Z.Previous),1:()=>{ye.flushSync(()=>l.openCombobox()),s.value||l.goToOption(Z.Last)}});case ae.Home:if(z.shiftKey)break;return z.preventDefault(),z.stopPropagation(),l.goToOption(Z.First);case ae.PageUp:return z.preventDefault(),z.stopPropagation(),l.goToOption(Z.First);case ae.End:if(z.shiftKey)break;return z.preventDefault(),z.stopPropagation(),l.goToOption(Z.Last);case ae.PageDown:return z.preventDefault(),z.stopPropagation(),l.goToOption(Z.Last);case ae.Escape:return s.comboboxState!==0?void 0:(z.preventDefault(),s.optionsRef.current&&!s.optionsPropsRef.current.static&&z.stopPropagation(),s.mode===0&&s.value===null&&P(),l.closeCombobox());case ae.Tab:if(s.comboboxState!==0)return;s.mode===0&&s.activationTrigger!==1&&l.selectActiveOption(),l.closeCombobox();break}}),D=Y(z=>{h==null||h(z),s.mode===0&&z.target.value===""&&P(),l.openCombobox()}),E=Y(z=>{var fe,pe,ke;let ne=(fe=z.relatedTarget)!=null?fe:rt.find(Ne=>Ne!==z.currentTarget);if(!((pe=s.optionsRef.current)!=null&&pe.contains(ne))&&!((ke=s.buttonRef.current)!=null&&ke.contains(ne))&&s.comboboxState===0)return z.preventDefault(),s.mode===0&&s.value===null&&P(),l.closeCombobox()}),k=Y(z=>{var fe,pe,ke;let ne=(fe=z.relatedTarget)!=null?fe:rt.find(Ne=>Ne!==z.currentTarget);(pe=s.buttonRef.current)!=null&&pe.contains(ne)||(ke=s.optionsRef.current)!=null&&ke.contains(ne)||s.disabled||s.immediate&&s.comboboxState!==0&&S.microTask(()=>{ye.flushSync(()=>l.openCombobox()),l.setActivationTrigger(1)})}),C=$n(),F=ki(),{isFocused:$,focusProps:T}=Eo({autoFocus:g}),{isHovered:Q,hoverProps:O}=Do({isDisabled:m}),U=d.useMemo(()=>({open:s.comboboxState===0,disabled:m,hover:Q,focus:$,autofocus:g}),[s,Q,$,g,m]),G=Ln({ref:w,id:f,role:"combobox",type:v,"aria-controls":(e=s.optionsRef.current)==null?void 0:e.id,"aria-expanded":s.comboboxState===0,"aria-activedescendant":s.activeOptionIndex===null?void 0:s.virtual?(t=s.options.find(z=>!z.dataRef.current.disabled&&s.compare(z.dataRef.current.value,s.virtual.options[s.activeOptionIndex])))==null?void 0:t.id:(o=s.options[s.activeOptionIndex])==null?void 0:o.id,"aria-labelledby":C,"aria-describedby":F,"aria-autocomplete":"list",defaultValue:(i=(a=n.defaultValue)!=null?a:s.defaultValue!==void 0?p==null?void 0:p(s.defaultValue):null)!=null?i:s.defaultValue,disabled:m||void 0,autoFocus:g,onCompositionStart:M,onCompositionEnd:A,onKeyDown:V,onChange:D,onFocus:k,onBlur:E},T,O);return De({ourProps:G,theirProps:b,slot:U,defaultTag:lp,name:"Combobox.Input"})}let cp="button";function dp(n,r){var e;let t=vn("Combobox.Button"),o=Qn("Combobox.Button"),a=Te(t.buttonRef,r),i=d.useId(),{id:s=`headlessui-combobox-button-${i}`,disabled:l=t.disabled||!1,autoFocus:u=!1,...c}=n,f=Hi(t.inputRef),h=Y(_=>{switch(_.key){case ae.Space:case ae.Enter:_.preventDefault(),_.stopPropagation(),t.comboboxState===1&&ye.flushSync(()=>o.openCombobox()),f();return;case ae.ArrowDown:_.preventDefault(),_.stopPropagation(),t.comboboxState===1&&(ye.flushSync(()=>o.openCombobox()),t.value||o.goToOption(Z.First)),f();return;case ae.ArrowUp:_.preventDefault(),_.stopPropagation(),t.comboboxState===1&&(ye.flushSync(()=>o.openCombobox()),t.value||o.goToOption(Z.Last)),f();return;case ae.Escape:if(t.comboboxState!==0)return;_.preventDefault(),t.optionsRef.current&&!t.optionsPropsRef.current.static&&_.stopPropagation(),ye.flushSync(()=>o.closeCombobox()),f();return;default:return}}),p=Y(_=>{_.preventDefault(),!Di(_.currentTarget)&&(_.button===ta.Left&&(t.comboboxState===0?o.closeCombobox():o.openCombobox()),f())}),m=$n([s]),{isFocusVisible:g,focusProps:v}=Eo({autoFocus:u}),{isHovered:b,hoverProps:w}=Do({isDisabled:l}),{pressed:x,pressProps:S}=hi({disabled:l}),P=d.useMemo(()=>({open:t.comboboxState===0,active:x||t.comboboxState===0,disabled:l,value:t.value,hover:b,focus:g}),[t,b,g,x,l]),N=Ln({ref:a,id:s,type:Vi(n,t.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(e=t.optionsRef.current)==null?void 0:e.id,"aria-expanded":t.comboboxState===0,"aria-labelledby":m,disabled:l||void 0,autoFocus:u,onMouseDown:p,onKeyDown:h},v,w,S);return De({ourProps:N,theirProps:c,slot:P,defaultTag:cp,name:"Combobox.Button"})}let fp="div",pp=St.RenderStrategy|St.Static;function hp(n,r){var e,t,o;let a=d.useId(),{id:i=`headlessui-combobox-options-${a}`,hold:s=!1,anchor:l,portal:u=!1,modal:c=!0,transition:f=!1,...h}=n,p=vn("Combobox.Options"),m=Qn("Combobox.Options"),g=Ds(l);g&&(u=!0);let[v,b]=ks(g),w=Cs(),x=Te(p.optionsRef,r,g?v:null),S=Pt(p.optionsRef),P=mn(),[N,_]=jo(f,p.optionsRef,P!==null?(P&Le.Open)===Le.Open:p.comboboxState===0);xr(N,p.inputRef,m.closeCombobox);let M=p.__demoMode?!1:c&&p.comboboxState===0;$o(M,S);let A=p.__demoMode?!1:c&&p.comboboxState===0;To(A,{allowed:Y(()=>[p.inputRef.current,p.buttonRef.current,p.optionsRef.current])}),ee(()=>{var O;p.optionsPropsRef.current.static=(O=n.static)!=null?O:!1},[p.optionsPropsRef,n.static]),ee(()=>{p.optionsPropsRef.current.hold=s},[p.optionsPropsRef,s]),Id(p.comboboxState===0,{container:p.optionsRef.current,accept(O){return O.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:O.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(O){O.setAttribute("role","none")}});let V=$n([(e=p.buttonRef.current)==null?void 0:e.id]),D=d.useMemo(()=>({open:p.comboboxState===0,option:void 0}),[p.comboboxState]),E=Y(()=>{m.setActivationTrigger(0)}),k=Y(O=>{O.preventDefault(),m.setActivationTrigger(0)}),C=Ln(g?w():{},{"aria-labelledby":V,role:"listbox","aria-multiselectable":p.mode===1?!0:void 0,id:i,ref:x,style:{...h.style,...b,"--input-width":Po(p.inputRef,!0).width,"--button-width":Po(p.buttonRef,!0).width},onWheel:p.activationTrigger===0?void 0:E,onMouseDown:k,...Yo(_)}),F=N&&p.comboboxState===1,$=Ir(F,(t=p.virtual)==null?void 0:t.options),T=Ir(F,p.value),Q=Y(O=>p.compare(T,O));if(p.virtual){if($===void 0)throw new Error("Missing `options` in virtual mode");Object.assign(h,{children:d.createElement(Kn.Provider,{value:$!==p.virtual.options?{...p,virtual:{...p.virtual,options:$}}:p},d.createElement(op,{slot:D},h.children))})}return d.createElement(ra,{enabled:u?n.static||N:!1},d.createElement(Kn.Provider,{value:p.mode===1?p:{...p,isSelected:Q}},De({ourProps:C,theirProps:{...h,children:d.createElement(Wf,{freeze:F},typeof h.children=="function"?(o=h.children)==null?void 0:o.call(h,D):h.children)},slot:D,defaultTag:fp,features:pp,visible:N,name:"Combobox.Options"})))}let mp="div";function vp(n,r){var e,t,o,a;let i=vn("Combobox.Option"),s=Qn("Combobox.Option"),l=d.useId(),{id:u=`headlessui-combobox-option-${l}`,value:c,disabled:f=(o=(t=(e=i.virtual)==null?void 0:e.disabled)==null?void 0:t.call(e,c))!=null?o:!1,order:h=null,...p}=n,m=Hi(i.inputRef),g=i.virtual?i.activeOptionIndex===i.calculateIndex(c):i.activeOptionIndex===null?!1:((a=i.options[i.activeOptionIndex])==null?void 0:a.id)===u,v=i.isSelected(c),b=d.useRef(null),w=et({disabled:f,value:c,domRef:b,order:h}),x=d.useContext(As),S=Te(r,b,x?x.measureElement:null),P=Y(()=>{s.setIsTyping(!1),s.onChange(c)});ee(()=>s.registerOption(u,w),[w,u]);let N=d.useRef(!(i.virtual||i.__demoMode));ee(()=>{if(!i.virtual&&!i.__demoMode)return Xe().requestAnimationFrame(()=>{N.current=!0})},[i.virtual,i.__demoMode]),ee(()=>{if(N.current&&i.comboboxState===0&&g&&i.activationTrigger!==0)return Xe().requestAnimationFrame(()=>{var C,F;(F=(C=b.current)==null?void 0:C.scrollIntoView)==null||F.call(C,{block:"nearest"})})},[b,g,i.comboboxState,i.activationTrigger,i.activeOptionIndex]);let _=Y(C=>{C.preventDefault(),C.button===ta.Left&&(f||(P(),ji()||requestAnimationFrame(()=>m()),i.mode===0&&s.closeCombobox()))}),M=Y(()=>{if(f)return s.goToOption(Z.Nothing);let C=i.calculateIndex(c);s.goToOption(Z.Specific,C)}),A=Ui(),V=Y(C=>A.update(C)),D=Y(C=>{if(!A.wasMoved(C)||f||g)return;let F=i.calculateIndex(c);s.goToOption(Z.Specific,F,0)}),E=Y(C=>{A.wasMoved(C)&&(f||g&&(i.optionsPropsRef.current.hold||s.goToOption(Z.Nothing)))}),k=d.useMemo(()=>({active:g,focus:g,selected:v,disabled:f}),[g,v,f]);return De({ourProps:{id:u,ref:S,role:"option",tabIndex:f===!0?void 0:-1,"aria-disabled":f===!0?!0:void 0,"aria-selected":v,disabled:void 0,onMouseDown:_,onFocus:M,onPointerEnter:V,onMouseEnter:V,onPointerMove:D,onMouseMove:D,onPointerLeave:E,onMouseLeave:E},theirProps:p,slot:k,defaultTag:mp,name:"Combobox.Option"})}let gp=ge(sp),bp=ge(dp),$s=ge(up),yp=wr,Ys=ge(hp),js=ge(vp),wp=Object.assign(gp,{Input:$s,Button:bp,Label:yp,Options:Ys,Option:js});function xp(n,r=typeof document<"u"?document.defaultView:null,e){let t=ln(n,"escape");Ao(r,"keydown",o=>{t&&(o.defaultPrevented||o.key===ae.Escape&&e(o))})}function Dp(){var n;let[r]=d.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[e,t]=d.useState((n=r==null?void 0:r.matches)!=null?n:!1);return ee(()=>{if(!r)return;function o(a){t(a.matches)}return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[r]),e}function Ep({defaultContainers:n=[],portals:r,mainTreeNode:e}={}){let t=Pt(e),o=Y(()=>{var a,i;let s=[];for(let l of n)l!==null&&(l instanceof HTMLElement?s.push(l):"current"in l&&l.current instanceof HTMLElement&&s.push(l.current));if(r!=null&&r.current)for(let l of r.current)s.push(l);for(let l of(a=t==null?void 0:t.querySelectorAll("html > *, body > *"))!=null?a:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(e&&(l.contains(e)||l.contains((i=e==null?void 0:e.getRootNode())==null?void 0:i.host))||s.some(u=>l.contains(u))||s.push(l));return s});return{resolveContainers:o,contains:Y(a=>o().some(i=>i.contains(a)))}}let Ws=d.createContext(null);function Rs({children:n,node:r}){let[e,t]=d.useState(null),o=Hs(r??e);return d.createElement(Ws.Provider,{value:o},n,o===null&&d.createElement(An,{features:sn.Hidden,ref:a=>{var i,s;if(a){for(let l of(s=(i=zt(a))==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?s:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(a)){t(l);break}}}}))}function Hs(n=null){var r;return(r=d.useContext(Ws))!=null?r:n}function ia(){let n=d.useRef(!1);return ee(()=>(n.current=!0,()=>{n.current=!1}),[]),n}var qn=(n=>(n[n.Forwards=0]="Forwards",n[n.Backwards=1]="Backwards",n))(qn||{});function Cp(){let n=d.useRef(0);return Wi(!0,"keydown",r=>{r.key==="Tab"&&(n.current=r.shiftKey?1:0)},!0),n}function Bs(n){if(!n)return new Set;if(typeof n=="function")return new Set(n());let r=new Set;for(let e of n.current)e.current instanceof HTMLElement&&r.add(e.current);return r}let kp="div";var Gt=(n=>(n[n.None=0]="None",n[n.InitialFocus=1]="InitialFocus",n[n.TabLock=2]="TabLock",n[n.FocusLock=4]="FocusLock",n[n.RestoreFocus=8]="RestoreFocus",n[n.AutoFocus=16]="AutoFocus",n))(Gt||{});function Sp(n,r){let e=d.useRef(null),t=Te(e,r),{initialFocus:o,initialFocusFallback:a,containers:i,features:s=15,...l}=n;Un()||(s=0);let u=Pt(e);Mp(s,{ownerDocument:u});let c=Tp(s,{ownerDocument:u,container:e,initialFocus:o,initialFocusFallback:a});Np(s,{ownerDocument:u,container:e,containers:i,previousActiveElement:c});let f=Cp(),h=Y(b=>{let w=e.current;w&&(x=>x())(()=>{Me(f.current,{[qn.Forwards]:()=>{un(w,Je.First,{skipElements:[b.relatedTarget,a]})},[qn.Backwards]:()=>{un(w,Je.Last,{skipElements:[b.relatedTarget,a]})}})})}),p=ln(!!(s&2),"focus-trap#tab-lock"),m=mt(),g=d.useRef(!1),v={ref:t,onKeyDown(b){b.key=="Tab"&&(g.current=!0,m.requestAnimationFrame(()=>{g.current=!1}))},onBlur(b){if(!(s&4))return;let w=Bs(i);e.current instanceof HTMLElement&&w.add(e.current);let x=b.relatedTarget;x instanceof HTMLElement&&x.dataset.headlessuiFocusGuard!=="true"&&(Vs(w,x)||(g.current?un(e.current,Me(f.current,{[qn.Forwards]:()=>Je.Next,[qn.Backwards]:()=>Je.Previous})|Je.WrapAround,{relativeTo:b.target}):b.target instanceof HTMLElement&&vt(b.target)))}};return d.createElement(d.Fragment,null,p&&d.createElement(An,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:sn.Focusable}),De({ourProps:v,theirProps:l,defaultTag:kp,name:"FocusTrap"}),p&&d.createElement(An,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:h,features:sn.Focusable}))}let _p=ge(Sp),Op=Object.assign(_p,{features:Gt});function Pp(n=!0){let r=d.useRef(rt.slice());return Rn(([e],[t])=>{t===!0&&e===!1&&mr(()=>{r.current.splice(0)}),t===!1&&e===!0&&(r.current=rt.slice())},[n,rt,r]),Y(()=>{var e;return(e=r.current.find(t=>t!=null&&t.isConnected))!=null?e:null})}function Mp(n,{ownerDocument:r}){let e=!!(n&8),t=Pp(e);Rn(()=>{e||(r==null?void 0:r.activeElement)===(r==null?void 0:r.body)&&vt(t())},[e]),Ms(()=>{e&&vt(t())})}function Tp(n,{ownerDocument:r,container:e,initialFocus:t,initialFocusFallback:o}){let a=d.useRef(null),i=ln(!!(n&1),"focus-trap#initial-focus"),s=ia();return Rn(()=>{if(n===0)return;if(!i){o!=null&&o.current&&vt(o.current);return}let l=e.current;l&&mr(()=>{if(!s.current)return;let u=r==null?void 0:r.activeElement;if(t!=null&&t.current){if((t==null?void 0:t.current)===u){a.current=u;return}}else if(l.contains(u)){a.current=u;return}if(t!=null&&t.current)vt(t.current);else{if(n&16){if(un(l,Je.First|Je.AutoFocus)!==No.Error)return}else if(un(l,Je.First)!==No.Error)return;if(o!=null&&o.current&&(vt(o.current),(r==null?void 0:r.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}a.current=r==null?void 0:r.activeElement})},[o,i,n]),a}function Np(n,{ownerDocument:r,container:e,containers:t,previousActiveElement:o}){let a=ia(),i=!!(n&4);Ao(r==null?void 0:r.defaultView,"focus",s=>{if(!i||!a.current)return;let l=Bs(t);e.current instanceof HTMLElement&&l.add(e.current);let u=o.current;if(!u)return;let c=s.target;c&&c instanceof HTMLElement?Vs(l,c)?(o.current=c,vt(c)):(s.preventDefault(),s.stopPropagation(),vt(u)):vt(o.current)},!0)}function Vs(n,r){for(let e of n)if(e.contains(r))return!0;return!1}function zs(n){var r;return!!(n.enter||n.enterFrom||n.enterTo||n.leave||n.leaveFrom||n.leaveTo)||((r=n.as)!=null?r:Qs)!==d.Fragment||d.Children.count(n.children)===1}let Lr=d.createContext(null);Lr.displayName="TransitionContext";var Ip=(n=>(n.Visible="visible",n.Hidden="hidden",n))(Ip||{});function Fp(){let n=d.useContext(Lr);if(n===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return n}function Lp(){let n=d.useContext(Ar);if(n===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return n}let Ar=d.createContext(null);Ar.displayName="NestingContext";function $r(n){return"children"in n?$r(n.children):n.current.filter(({el:r})=>r.current!==null).filter(({state:r})=>r==="visible").length>0}function Us(n,r){let e=et(n),t=d.useRef([]),o=ia(),a=mt(),i=Y((p,m=_t.Hidden)=>{let g=t.current.findIndex(({el:v})=>v===p);g!==-1&&(Me(m,{[_t.Unmount](){t.current.splice(g,1)},[_t.Hidden](){t.current[g].state="hidden"}}),a.microTask(()=>{var v;!$r(t)&&o.current&&((v=e.current)==null||v.call(e))}))}),s=Y(p=>{let m=t.current.find(({el:g})=>g===p);return m?m.state!=="visible"&&(m.state="visible"):t.current.push({el:p,state:"visible"}),()=>i(p,_t.Unmount)}),l=d.useRef([]),u=d.useRef(Promise.resolve()),c=d.useRef({enter:[],leave:[]}),f=Y((p,m,g)=>{l.current.splice(0),r&&(r.chains.current[m]=r.chains.current[m].filter(([v])=>v!==p)),r==null||r.chains.current[m].push([p,new Promise(v=>{l.current.push(v)})]),r==null||r.chains.current[m].push([p,new Promise(v=>{Promise.all(c.current[m].map(([b,w])=>w)).then(()=>v())})]),m==="enter"?u.current=u.current.then(()=>r==null?void 0:r.wait.current).then(()=>g(m)):g(m)}),h=Y((p,m,g)=>{Promise.all(c.current[m].splice(0).map(([v,b])=>b)).then(()=>{var v;(v=l.current.shift())==null||v()}).then(()=>g(m))});return d.useMemo(()=>({children:t,register:s,unregister:i,onStart:f,onStop:h,wait:u,chains:c}),[s,i,t,f,h,c,u])}let Qs=d.Fragment,Ks=St.RenderStrategy;function Ap(n,r){var e,t;let{transition:o=!0,beforeEnter:a,afterEnter:i,beforeLeave:s,afterLeave:l,enter:u,enterFrom:c,enterTo:f,entered:h,leave:p,leaveFrom:m,leaveTo:g,...v}=n,b=d.useRef(null),w=zs(n),x=Te(...w?[b,r]:r===null?[]:[r]),S=(e=v.unmount)==null||e?_t.Unmount:_t.Hidden,{show:P,appear:N,initial:_}=Fp(),[M,A]=d.useState(P?"visible":"hidden"),V=Lp(),{register:D,unregister:E}=V;ee(()=>D(b),[D,b]),ee(()=>{if(S===_t.Hidden&&b.current){if(P&&M!=="visible"){A("visible");return}return Me(M,{hidden:()=>E(b),visible:()=>D(b)})}},[M,b,D,E,P,S]);let k=Un();ee(()=>{if(w&&k&&M==="visible"&&b.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,M,k,w]);let C=_&&!N,F=N&&P&&_,$=d.useRef(!1),T=Us(()=>{$.current||(A("hidden"),E(b))},V),Q=Y(pe=>{$.current=!0;let ke=pe?"enter":"leave";T.onStart(b,ke,ne=>{ne==="enter"?a==null||a():ne==="leave"&&(s==null||s())})}),O=Y(pe=>{let ke=pe?"enter":"leave";$.current=!1,T.onStop(b,ke,ne=>{ne==="enter"?i==null||i():ne==="leave"&&(l==null||l())}),ke==="leave"&&!$r(T)&&(A("hidden"),E(b))});d.useEffect(()=>{w&&o||(Q(P),O(P))},[P,w,o]);let U=!(!o||!w||!k||C),[,G]=jo(U,b,P,{start:Q,end:O}),z=Ot({ref:x,className:((t=ko(v.className,F&&u,F&&c,G.enter&&u,G.enter&&G.closed&&c,G.enter&&!G.closed&&f,G.leave&&p,G.leave&&!G.closed&&m,G.leave&&G.closed&&g,!G.transition&&P&&h))==null?void 0:t.trim())||void 0,...Yo(G)}),fe=0;return M==="visible"&&(fe|=Le.Open),M==="hidden"&&(fe|=Le.Closed),G.enter&&(fe|=Le.Opening),G.leave&&(fe|=Le.Closing),d.createElement(Ar.Provider,{value:T},d.createElement(ea,{value:fe},De({ourProps:z,theirProps:v,defaultTag:Qs,features:Ks,visible:M==="visible",name:"Transition.Child"})))}function $p(n,r){let{show:e,appear:t=!1,unmount:o=!0,...a}=n,i=d.useRef(null),s=zs(n),l=Te(...s?[i,r]:r===null?[]:[r]);Un();let u=mn();if(e===void 0&&u!==null&&(e=(u&Le.Open)===Le.Open),e===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,f]=d.useState(e?"visible":"hidden"),h=Us(()=>{e||f("hidden")}),[p,m]=d.useState(!0),g=d.useRef([e]);ee(()=>{p!==!1&&g.current[g.current.length-1]!==e&&(g.current.push(e),m(!1))},[g,e]);let v=d.useMemo(()=>({show:e,appear:t,initial:p}),[e,t,p]);xr(e,i,()=>f("hidden")),ee(()=>{e?f("visible"):!$r(h)&&i.current!==null&&f("hidden")},[e,h]);let b={unmount:o},w=Y(()=>{var S;p&&m(!1),(S=n.beforeEnter)==null||S.call(n)}),x=Y(()=>{var S;p&&m(!1),(S=n.beforeLeave)==null||S.call(n)});return d.createElement(Ar.Provider,{value:h},d.createElement(Lr.Provider,{value:v},De({ourProps:{...b,as:d.Fragment,children:d.createElement(qs,{ref:l,...b,...a,beforeEnter:w,beforeLeave:x})},theirProps:{},defaultTag:d.Fragment,features:Ks,visible:c==="visible",name:"Transition"})))}function Yp(n,r){let e=d.useContext(Lr)!==null,t=mn()!==null;return d.createElement(d.Fragment,null,!e&&t?d.createElement(sa,{ref:r,...n}):d.createElement(qs,{ref:r,...n}))}let sa=ge($p),qs=ge(Ap),la=ge(Yp),Gs=Object.assign(sa,{Child:la,Root:sa});var jp=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(jp||{}),Wp=(n=>(n[n.SetTitleId=0]="SetTitleId",n))(Wp||{});let Rp={0(n,r){return n.titleId===r.id?n:{...n,titleId:r.id}}},ua=d.createContext(null);ua.displayName="DialogContext";function Yr(n){let r=d.useContext(ua);if(r===null){let e=new Error(`<${n} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Yr),e}return r}function Hp(n,r){return Me(r.type,Rp,n,r)}let Xs=ge(function(n,r){let e=d.useId(),{id:t=`headlessui-dialog-${e}`,open:o,onClose:a,initialFocus:i,role:s="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:c=!1,...f}=n,h=d.useRef(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(h.current||(h.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let p=mn();o===void 0&&p!==null&&(o=(p&Le.Open)===Le.Open);let m=d.useRef(null),g=Te(m,r),v=Pt(m),b=o?0:1,[w,x]=d.useReducer(Hp,{titleId:null,descriptionId:null,panelRef:d.createRef()}),S=Y(()=>a(!1)),P=Y(U=>x({type:0,id:U})),N=Un()?b===0:!1,[_,M]=Xf(),A={get current(){var U;return(U=w.panelRef.current)!=null?U:m.current}},V=Hs(),{resolveContainers:D}=Ep({mainTreeNode:V,portals:_,defaultContainers:[A]}),E=p!==null?(p&Le.Closing)===Le.Closing:!1;To(u||E?!1:N,{allowed:Y(()=>{var U,G;return[(G=(U=m.current)==null?void 0:U.closest("[data-headlessui-portal]"))!=null?G:null]}),disallowed:Y(()=>{var U;return[(U=V==null?void 0:V.closest("body > *:not(#headlessui-portal-root)"))!=null?U:null]})}),Lo(N,D,U=>{U.preventDefault(),S()}),xp(N,v==null?void 0:v.defaultView,U=>{U.preventDefault(),U.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),S()}),$o(u||E?!1:N,v,D),xr(N,m,S);let[k,C]=Rc(),F=d.useMemo(()=>[{dialogState:b,close:S,setTitleId:P,unmount:c},w],[b,w,S,P,c]),$=d.useMemo(()=>({open:b===0}),[b]),T={ref:g,id:t,role:s,tabIndex:-1,"aria-modal":u?void 0:b===0?!0:void 0,"aria-labelledby":w.titleId,"aria-describedby":k,unmount:c},Q=!Dp(),O=Gt.None;return N&&!u&&(O|=Gt.RestoreFocus,O|=Gt.TabLock,l&&(O|=Gt.AutoFocus),Q&&(O|=Gt.InitialFocus)),d.createElement(Rf,null,d.createElement(Ns,{force:!0},d.createElement(ra,null,d.createElement(ua.Provider,{value:F},d.createElement(Ls,{target:m},d.createElement(Ns,{force:!1},d.createElement(C,{slot:$},d.createElement(M,null,d.createElement(Op,{initialFocus:i,initialFocusFallback:m,containers:D,features:O},d.createElement(qc,{value:S},De({ourProps:T,theirProps:f,slot:$,defaultTag:Bp,features:Vp,visible:b===0,name:"Dialog"})))))))))))}),Bp="div",Vp=St.RenderStrategy|St.Static;function zp(n,r){let{transition:e=!1,open:t,...o}=n,a=mn(),i=n.hasOwnProperty("open")||a!==null,s=n.hasOwnProperty("onClose");if(!i&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!i)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!a&&typeof n.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n.open}`);if(typeof n.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${n.onClose}`);return(t!==void 0||e)&&!o.static?d.createElement(Rs,null,d.createElement(Gs,{show:t,transition:e,unmount:o.unmount},d.createElement(Xs,{ref:r,...o}))):d.createElement(Rs,null,d.createElement(Xs,{ref:r,open:t,...o}))}let Up="div";function Qp(n,r){let e=d.useId(),{id:t=`headlessui-dialog-panel-${e}`,transition:o=!1,...a}=n,[{dialogState:i,unmount:s},l]=Yr("Dialog.Panel"),u=Te(r,l.panelRef),c=d.useMemo(()=>({open:i===0}),[i]),f=Y(p=>{p.stopPropagation()}),h={ref:u,id:t,onClick:f};return d.createElement(o?la:d.Fragment,{...o?{unmount:s}:{}},De({ourProps:h,theirProps:a,slot:c,defaultTag:Up,name:"Dialog.Panel"}))}let Kp="div";function qp(n,r){let{transition:e=!1,...t}=n,[{dialogState:o,unmount:a}]=Yr("Dialog.Backdrop"),i=d.useMemo(()=>({open:o===0}),[o]),s={ref:r,"aria-hidden":!0};return d.createElement(e?la:d.Fragment,{...e?{unmount:a}:{}},De({ourProps:s,theirProps:t,slot:i,defaultTag:Kp,name:"Dialog.Backdrop"}))}let Gp="h2";function Xp(n,r){let e=d.useId(),{id:t=`headlessui-dialog-title-${e}`,...o}=n,[{dialogState:a,setTitleId:i}]=Yr("Dialog.Title"),s=Te(r);d.useEffect(()=>(i(t),()=>i(null)),[t,i]);let l=d.useMemo(()=>({open:a===0}),[a]);return De({ourProps:{ref:s,id:t},theirProps:o,slot:l,defaultTag:Gp,name:"Dialog.Title"})}let Jp=ge(zp),Js=ge(Qp);ge(qp);let Zs=ge(Xp),Gn=Object.assign(Jp,{Panel:Js,Title:Zs,Description:Si});function Zp(n,r){let[e,t]=d.useState(n),o=et(n);return ee(()=>t(o.current),[o,t,...r]),e}function eh(n,r){let e=d.useRef({left:0,top:0});if(ee(()=>{let o=r.current;if(!o)return;let a=o.getBoundingClientRect();a&&(e.current=a)},[n]),r.current==null||!n||r.current===document.activeElement)return!1;let t=r.current.getBoundingClientRect();return t.top!==e.current.top||t.left!==e.current.left}let el=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function tl(n){var r,e;let t=(r=n.innerText)!=null?r:"",o=n.cloneNode(!0);if(!(o instanceof HTMLElement))return t;let a=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let i=a?(e=o.innerText)!=null?e:"":t;return el.test(i)&&(i=i.replace(el,"")),i}function th(n){let r=n.getAttribute("aria-label");if(typeof r=="string")return r.trim();let e=n.getAttribute("aria-labelledby");if(e){let t=e.split(" ").map(o=>{let a=document.getElementById(o);if(a){let i=a.getAttribute("aria-label");return typeof i=="string"?i.trim():tl(a).trim()}return null}).filter(Boolean);if(t.length>0)return t.join(", ")}return tl(n).trim()}function nh(n){let r=d.useRef(""),e=d.useRef("");return Y(()=>{let t=n.current;if(!t)return"";let o=t.innerText;if(r.current===o)return e.current;let a=th(t).trim().toLowerCase();return r.current=o,e.current=a,a})}var rh=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(rh||{}),oh=(n=>(n[n.Single=0]="Single",n[n.Multi=1]="Multi",n))(oh||{}),ah=(n=>(n[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n))(ah||{}),ih=(n=>(n[n.OpenListbox=0]="OpenListbox",n[n.CloseListbox=1]="CloseListbox",n[n.GoToOption=2]="GoToOption",n[n.Search=3]="Search",n[n.ClearSearch=4]="ClearSearch",n[n.RegisterOption=5]="RegisterOption",n[n.UnregisterOption=6]="UnregisterOption",n))(ih||{});function ca(n,r=e=>e){let e=n.activeOptionIndex!==null?n.options[n.activeOptionIndex]:null,t=Fo(r(n.options.slice()),a=>a.dataRef.current.domRef.current),o=e?t.indexOf(e):null;return o===-1&&(o=null),{options:t,activeOptionIndex:o}}let sh={1(n){return n.dataRef.current.disabled||n.listboxState===1?n:{...n,activeOptionIndex:null,listboxState:1,__demoMode:!1}},0(n){if(n.dataRef.current.disabled||n.listboxState===0)return n;let r=n.activeOptionIndex,{isSelected:e}=n.dataRef.current,t=n.options.findIndex(o=>e(o.dataRef.current.value));return t!==-1&&(r=t),{...n,listboxState:0,activeOptionIndex:r,__demoMode:!1}},2(n,r){var e,t,o,a,i;if(n.dataRef.current.disabled||n.listboxState===1)return n;let s={...n,searchQuery:"",activationTrigger:(e=r.trigger)!=null?e:1,__demoMode:!1};if(r.focus===Z.Nothing)return{...s,activeOptionIndex:null};if(r.focus===Z.Specific)return{...s,activeOptionIndex:n.options.findIndex(c=>c.id===r.id)};if(r.focus===Z.Previous){let c=n.activeOptionIndex;if(c!==null){let f=n.options[c].dataRef.current.domRef,h=zn(r,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(h!==null){let p=n.options[h].dataRef.current.domRef;if(((t=f.current)==null?void 0:t.previousElementSibling)===p.current||((o=p.current)==null?void 0:o.previousElementSibling)===null)return{...s,activeOptionIndex:h}}}}else if(r.focus===Z.Next){let c=n.activeOptionIndex;if(c!==null){let f=n.options[c].dataRef.current.domRef,h=zn(r,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(h!==null){let p=n.options[h].dataRef.current.domRef;if(((a=f.current)==null?void 0:a.nextElementSibling)===p.current||((i=p.current)==null?void 0:i.nextElementSibling)===null)return{...s,activeOptionIndex:h}}}}let l=ca(n),u=zn(r,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:c=>c.id,resolveDisabled:c=>c.dataRef.current.disabled});return{...s,...l,activeOptionIndex:u}},3:(n,r)=>{if(n.dataRef.current.disabled||n.listboxState===1)return n;let e=n.searchQuery!==""?0:1,t=n.searchQuery+r.value.toLowerCase(),o=(n.activeOptionIndex!==null?n.options.slice(n.activeOptionIndex+e).concat(n.options.slice(0,n.activeOptionIndex+e)):n.options).find(i=>{var s;return!i.dataRef.current.disabled&&((s=i.dataRef.current.textValue)==null?void 0:s.startsWith(t))}),a=o?n.options.indexOf(o):-1;return a===-1||a===n.activeOptionIndex?{...n,searchQuery:t}:{...n,searchQuery:t,activeOptionIndex:a,activationTrigger:1}},4(n){return n.dataRef.current.disabled||n.listboxState===1||n.searchQuery===""?n:{...n,searchQuery:""}},5:(n,r)=>{let e={id:r.id,dataRef:r.dataRef},t=ca(n,o=>[...o,e]);return n.activeOptionIndex===null&&n.dataRef.current.isSelected(r.dataRef.current.value)&&(t.activeOptionIndex=t.options.indexOf(e)),{...n,...t}},6:(n,r)=>{let e=ca(n,t=>{let o=t.findIndex(a=>a.id===r.id);return o!==-1&&t.splice(o,1),t});return{...n,...e,activationTrigger:1}}},da=d.createContext(null);da.displayName="ListboxActionsContext";function jr(n){let r=d.useContext(da);if(r===null){let e=new Error(`<${n} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,jr),e}return r}let Wr=d.createContext(null);Wr.displayName="ListboxDataContext";function Xn(n){let r=d.useContext(Wr);if(r===null){let e=new Error(`<${n} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Xn),e}return r}function lh(n,r){return Me(r.type,sh,n,r)}let uh=d.Fragment;function ch(n,r){var e;let t=vr(),{value:o,defaultValue:a,form:i,name:s,onChange:l,by:u,invalid:c=!1,disabled:f=t||!1,horizontal:h=!1,multiple:p=!1,__demoMode:m=!1,...g}=n;const v=h?"horizontal":"vertical";let b=Te(r),w=gi(a),[x=p?[]:void 0,S]=vi(o,l,w),[P,N]=d.useReducer(lh,{dataRef:d.createRef(),listboxState:m?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,__demoMode:m}),_=d.useRef({static:!1,hold:!1}),M=d.useRef(null),A=d.useRef(null),V=d.useRef(new Map),D=Ti(u),E=d.useCallback(we=>Me(k.mode,{1:()=>x.some(Se=>D(Se,we)),0:()=>D(x,we)}),[x]),k=d.useMemo(()=>({...P,value:x,disabled:f,invalid:c,mode:p?1:0,orientation:v,compare:D,isSelected:E,optionsPropsRef:_,buttonRef:M,optionsRef:A,listRef:V}),[x,f,c,p,P,V]);ee(()=>{P.dataRef.current=k},[k]);let C=k.listboxState===0;Lo(C,[k.buttonRef,k.optionsRef],(we,Se)=>{var K;N({type:1}),$i(Se,Io.Loose)||(we.preventDefault(),(K=k.buttonRef.current)==null||K.focus())});let F=d.useMemo(()=>({open:k.listboxState===0,disabled:f,invalid:c,value:x}),[k,f,x,c]),$=Y(we=>{let Se=k.options.find(K=>K.id===we);Se&&fe(Se.dataRef.current.value)}),T=Y(()=>{if(k.activeOptionIndex!==null){let{dataRef:we,id:Se}=k.options[k.activeOptionIndex];fe(we.current.value),N({type:2,focus:Z.Specific,id:Se})}}),Q=Y(()=>N({type:0})),O=Y(()=>N({type:1})),U=mt(),G=Y((we,Se,K)=>{U.dispose(),U.microTask(()=>we===Z.Specific?N({type:2,focus:Z.Specific,id:Se,trigger:K}):N({type:2,focus:we,trigger:K}))}),z=Y((we,Se)=>(N({type:5,id:we,dataRef:Se}),()=>N({type:6,id:we}))),fe=Y(we=>Me(k.mode,{0(){return S==null?void 0:S(we)},1(){let Se=k.value.slice(),K=Se.findIndex(he=>D(he,we));return K===-1?Se.push(we):Se.splice(K,1),S==null?void 0:S(Se)}})),pe=Y(we=>N({type:3,value:we})),ke=Y(()=>N({type:4})),ne=d.useMemo(()=>({onChange:fe,registerOption:z,goToOption:G,closeListbox:O,openListbox:Q,selectActiveOption:T,selectOption:$,search:pe,clearSearch:ke}),[]),[Ne,$e]=Oi({inherit:!0}),Et={ref:b},Wt=d.useCallback(()=>{if(w!==void 0)return S==null?void 0:S(w)},[S,w]);return d.createElement($e,{value:Ne,props:{htmlFor:(e=k.buttonRef.current)==null?void 0:e.id},slot:{open:k.listboxState===0,disabled:f}},d.createElement(_s,null,d.createElement(da.Provider,{value:ne},d.createElement(Wr.Provider,{value:k},d.createElement(ea,{value:Me(k.listboxState,{0:Le.Open,1:Le.Closed})},s!=null&&x!=null&&d.createElement(xi,{disabled:f,data:{[s]:x},form:i,onReset:Wt}),De({ourProps:Et,theirProps:g,slot:F,defaultTag:uh,name:"Listbox"}))))))}let dh="button";function fh(n,r){var e;let t=Xn("Listbox.Button"),o=jr("Listbox.Button"),a=d.useId(),i=_o(),{id:s=i||`headlessui-listbox-button-${a}`,disabled:l=t.disabled||!1,autoFocus:u=!1,...c}=n,f=Te(t.buttonRef,r,Es()),h=$f(),p=Y(D=>{switch(D.key){case ae.Enter:Nc(D.currentTarget);break;case ae.Space:case ae.ArrowDown:D.preventDefault(),ye.flushSync(()=>o.openListbox()),t.value||o.goToOption(Z.First);break;case ae.ArrowUp:D.preventDefault(),ye.flushSync(()=>o.openListbox()),t.value||o.goToOption(Z.Last);break}}),m=Y(D=>{switch(D.key){case ae.Space:D.preventDefault();break}}),g=Y(D=>{var E;if(Di(D.currentTarget))return D.preventDefault();t.listboxState===0?(ye.flushSync(()=>o.closeListbox()),(E=t.buttonRef.current)==null||E.focus({preventScroll:!0})):(D.preventDefault(),o.openListbox())}),v=Y(D=>D.preventDefault()),b=$n([s]),w=ki(),{isFocusVisible:x,focusProps:S}=Eo({autoFocus:u}),{isHovered:P,hoverProps:N}=Do({isDisabled:l}),{pressed:_,pressProps:M}=hi({disabled:l}),A=d.useMemo(()=>({open:t.listboxState===0,active:_||t.listboxState===0,disabled:l,invalid:t.invalid,value:t.value,hover:P,focus:x,autofocus:u}),[t.listboxState,t.value,l,P,x,_,t.invalid,u]),V=Ln(h(),{ref:f,id:s,type:Vi(n,t.buttonRef),"aria-haspopup":"listbox","aria-controls":(e=t.optionsRef.current)==null?void 0:e.id,"aria-expanded":t.listboxState===0,"aria-labelledby":b,"aria-describedby":w,disabled:l||void 0,autoFocus:u,onKeyDown:p,onKeyUp:m,onKeyPress:v,onClick:g},S,N,M);return De({ourProps:V,theirProps:c,slot:A,defaultTag:dh,name:"Listbox.Button"})}let nl=d.createContext(!1),ph="div",hh=St.RenderStrategy|St.Static;function mh(n,r){var e;let t=d.useId(),{id:o=`headlessui-listbox-options-${t}`,anchor:a,portal:i=!1,modal:s=!0,transition:l=!1,...u}=n,c=Ds(a);c&&(i=!0);let f=Xn("Listbox.Options"),h=jr("Listbox.Options"),p=Pt(f.optionsRef),m=mn(),[g,v]=jo(l,f.optionsRef,m!==null?(m&Le.Open)===Le.Open:f.listboxState===0);xr(g,f.buttonRef,h.closeListbox);let b=f.__demoMode?!1:s&&f.listboxState===0;$o(b,p);let w=f.__demoMode?!1:s&&f.listboxState===0;To(w,{allowed:Y(()=>[f.buttonRef.current,f.optionsRef.current])});let x=f.listboxState!==0,S=eh(x,f.buttonRef)?!1:g,P=g&&f.listboxState===1,N=Ir(P,f.value),_=Y(O=>f.compare(N,O)),M=d.useMemo(()=>{var O;if(c==null||!((O=c==null?void 0:c.to)!=null&&O.includes("selection")))return null;let U=f.options.findIndex(G=>_(G.dataRef.current.value));return U===-1&&(U=0),U},[c,f.options]),A=(()=>{if(c==null)return;if(M===null)return{...c,inner:void 0};let O=Array.from(f.listRef.current.values());return{...c,inner:{listRef:{current:O},index:M}}})(),[V,D]=ks(A),E=Cs(),k=Te(f.optionsRef,r,c?V:null),C=mt();d.useEffect(()=>{var O;let U=f.optionsRef.current;U&&f.listboxState===0&&U!==((O=zt(U))==null?void 0:O.activeElement)&&(U==null||U.focus({preventScroll:!0}))},[f.listboxState,f.optionsRef,f.optionsRef.current]);let F=Y(O=>{var U,G;switch(C.dispose(),O.key){case ae.Space:if(f.searchQuery!=="")return O.preventDefault(),O.stopPropagation(),h.search(O.key);case ae.Enter:if(O.preventDefault(),O.stopPropagation(),f.activeOptionIndex!==null){let{dataRef:z}=f.options[f.activeOptionIndex];h.onChange(z.current.value)}f.mode===0&&(ye.flushSync(()=>h.closeListbox()),(U=f.buttonRef.current)==null||U.focus({preventScroll:!0}));break;case Me(f.orientation,{vertical:ae.ArrowDown,horizontal:ae.ArrowRight}):return O.preventDefault(),O.stopPropagation(),h.goToOption(Z.Next);case Me(f.orientation,{vertical:ae.ArrowUp,horizontal:ae.ArrowLeft}):return O.preventDefault(),O.stopPropagation(),h.goToOption(Z.Previous);case ae.Home:case ae.PageUp:return O.preventDefault(),O.stopPropagation(),h.goToOption(Z.First);case ae.End:case ae.PageDown:return O.preventDefault(),O.stopPropagation(),h.goToOption(Z.Last);case ae.Escape:O.preventDefault(),O.stopPropagation(),ye.flushSync(()=>h.closeListbox()),(G=f.buttonRef.current)==null||G.focus({preventScroll:!0});return;case ae.Tab:O.preventDefault(),O.stopPropagation(),ye.flushSync(()=>h.closeListbox()),wd(f.buttonRef.current,O.shiftKey?Je.Previous:Je.Next);break;default:O.key.length===1&&(h.search(O.key),C.setTimeout(()=>h.clearSearch(),350));break}}),$=Zp(()=>{var O;return(O=f.buttonRef.current)==null?void 0:O.id},[f.buttonRef.current]),T=d.useMemo(()=>({open:f.listboxState===0}),[f.listboxState]),Q=Ln(c?E():{},{id:o,ref:k,"aria-activedescendant":f.activeOptionIndex===null||(e=f.options[f.activeOptionIndex])==null?void 0:e.id,"aria-multiselectable":f.mode===1?!0:void 0,"aria-labelledby":$,"aria-orientation":f.orientation,onKeyDown:F,role:"listbox",tabIndex:f.listboxState===0?0:void 0,style:{...u.style,...D,"--button-width":Po(f.buttonRef,!0).width},...Yo(v)});return d.createElement(ra,{enabled:i?n.static||g:!1},d.createElement(Wr.Provider,{value:f.mode===1?f:{...f,isSelected:_}},De({ourProps:Q,theirProps:u,slot:T,defaultTag:ph,features:hh,visible:S,name:"Listbox.Options"})))}let vh="div";function gh(n,r){let e=d.useId(),{id:t=`headlessui-listbox-option-${e}`,disabled:o=!1,value:a,...i}=n,s=d.useContext(nl)===!0,l=Xn("Listbox.Option"),u=jr("Listbox.Option"),c=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===t:!1,f=l.isSelected(a),h=d.useRef(null),p=nh(h),m=et({disabled:o,value:a,domRef:h,get textValue(){return p()}}),g=Te(r,h,M=>{M?l.listRef.current.set(t,M):l.listRef.current.delete(t)});ee(()=>{if(!l.__demoMode&&l.listboxState===0&&c&&l.activationTrigger!==0)return Xe().requestAnimationFrame(()=>{var M,A;(A=(M=h.current)==null?void 0:M.scrollIntoView)==null||A.call(M,{block:"nearest"})})},[h,c,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),ee(()=>{if(!s)return u.registerOption(t,m)},[m,t,s]);let v=Y(M=>{var A;if(o)return M.preventDefault();u.onChange(a),l.mode===0&&(ye.flushSync(()=>u.closeListbox()),(A=l.buttonRef.current)==null||A.focus({preventScroll:!0}))}),b=Y(()=>{if(o)return u.goToOption(Z.Nothing);u.goToOption(Z.Specific,t)}),w=Ui(),x=Y(M=>{w.update(M),!o&&(c||u.goToOption(Z.Specific,t,0))}),S=Y(M=>{w.wasMoved(M)&&(o||c||u.goToOption(Z.Specific,t,0))}),P=Y(M=>{w.wasMoved(M)&&(o||c&&u.goToOption(Z.Nothing))}),N=d.useMemo(()=>({active:c,focus:c,selected:f,disabled:o,selectedOption:f&&s}),[c,f,o,s]);return!f&&s?null:De({ourProps:s?{}:{id:t,ref:g,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":f,disabled:void 0,onClick:v,onFocus:b,onPointerEnter:x,onMouseEnter:x,onPointerMove:S,onMouseMove:S,onPointerLeave:P,onMouseLeave:P},theirProps:i,slot:N,defaultTag:vh,name:"Listbox.Option"})}let bh=d.Fragment;function yh(n,r){let{options:e,placeholder:t,...o}=n,a={ref:Te(r)},i=Xn("ListboxSelectedOption"),s=d.useMemo(()=>({}),[]),l=i.value===void 0||i.value===null||i.mode===1&&Array.isArray(i.value)&&i.value.length===0;return d.createElement(nl.Provider,{value:!0},De({ourProps:a,theirProps:{...o,children:d.createElement(d.Fragment,null,t&&l?t:e)},slot:s,defaultTag:bh,name:"ListboxSelectedOption"}))}let wh=ge(ch),rl=ge(fh),xh=wr,ol=ge(mh),al=ge(gh),Dh=ge(yh),Eh=Object.assign(wh,{Button:rl,Label:xh,Options:ol,Option:al,SelectedOption:Dh});const Ch=({checked:n,label:r,onChange:e,termImageUrl:t})=>{const[o,a]=d.useState(!1);return I.jsxs(I.Fragment,{children:[I.jsx(kh,{isOpen:o,setIsOpen:a,termImageUrl:t}),I.jsxs("div",{className:"inline-flex items-center",children:[I.jsxs("label",{className:"relative flex cursor-pointer items-center rounded-full p-3",htmlFor:"check",children:[I.jsx("input",{type:"checkbox",className:"before:content[''] border-blue-gray-200 before:bg-blue-gray-500 peer relative size-6 cursor-pointer appearance-none rounded-xl border bg-[#C5C8CD] transition-all before:absolute before:left-2/4 before:top-2/4 before:block before:h-12 before:w-12 before:-translate-x-2/4 before:-translate-y-2/4 before:rounded-full before:opacity-0 before:transition-opacity checked:border-petnowOrange checked:bg-petnowOrange checked:before:bg-petnowOrange",id:r,checked:n,onChange:i=>{e(i.target.checked)}}),I.jsx("span",{className:"pointer-events-none absolute left-2/4 top-2/4 -translate-x-2/4 -translate-y-2/4 text-[#8B919A] transition peer-checked:text-white",children:I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:"1",children:I.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})]}),r&&I.jsxs("div",{className:"flex items-center",children:[I.jsx("label",{className:"cursor-pointer font-medium",htmlFor:r,children:r}),I.jsx(lc,{onClick:()=>{a(!0)},className:"ml-2 mt-[2.5px] cursor-pointer text-deepGray",size:24})]})]})]})},kh=({isOpen:n,setIsOpen:r,termImageUrl:e})=>I.jsxs(Gn,{open:n,onClose:()=>r(!1),className:"relative z-50",children:[I.jsx("div",{className:"fixed inset-0 bg-black/30","aria-hidden":"true"}),I.jsx("div",{className:"fixed inset-0 w-screen overflow-y-auto",children:I.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:I.jsxs(Gn.Panel,{className:"mx-auto flex max-w-sm flex-col items-center gap-8 rounded bg-white",children:[I.jsx("div",{className:"flex h-[36px] w-full flex-row-reverse items-center bg-[#F0F1F2]",children:I.jsx(oi,{size:20,className:"mr-2",onClick:()=>r(!1)})}),I.jsx("img",{src:e,alt:"약관동의 이미지"}),I.jsx(Za,{text:"닫기",className:"mb-4 w-[90%] text-base focus:outline-none",onClick:()=>r(!1)})]})})})]});var il={},sl={},Rr={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.postcodeScriptUrl=void 0;var r="https://t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js";n.postcodeScriptUrl="https://t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js";var e=function(){var o=null;return function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:r;return o||(o=new Promise(function(i,s){var l=document.createElement("script");l.src=a,l.onload=function(){var u,c;return(u=window)!==null&&u!==void 0&&(c=u.daum)!==null&&c!==void 0&&c.Postcode?i(window.daum.Postcode):void s(new Error("Script is loaded successfully, but cannot find Postcode module. Check your scriptURL property."))},l.onerror=function(u){return s(u)},l.id="daum_postcode_script",document.body.appendChild(l)}),o)}}(),t=e;n.default=t})(Rr),function(n){function r(D){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},r(D)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=i(d),t=i(Rr),o=["scriptUrl","className","style","defaultQuery","autoClose","errorMessage","onComplete","onClose","onResize","onSearch"];function a(D){if(typeof WeakMap!="function")return null;var E=new WeakMap,k=new WeakMap;return(a=function(C){return C?k:E})(D)}function i(D,E){if(D&&D.__esModule)return D;if(D===null||r(D)!=="object"&&typeof D!="function")return{default:D};var k=a(E);if(k&&k.has(D))return k.get(D);var C={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in D)if($!="default"&&Object.prototype.hasOwnProperty.call(D,$)){var T=F?Object.getOwnPropertyDescriptor(D,$):null;T&&(T.get||T.set)?Object.defineProperty(C,$,T):C[$]=D[$]}return C.default=D,k&&k.set(D,C),C}function s(D,E){var k=Object.keys(D);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(D);E&&(C=C.filter(function(F){return Object.getOwnPropertyDescriptor(D,F).enumerable})),k.push.apply(k,C)}return k}function l(D){for(var E,k=1;k<arguments.length;k++)E=arguments[k]==null?{}:arguments[k],k%2?s(Object(E),!0).forEach(function(C){P(D,C,E[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(E)):s(Object(E)).forEach(function(C){Object.defineProperty(D,C,Object.getOwnPropertyDescriptor(E,C))});return D}function u(D,E){if(D==null)return{};var k,C,F=c(D,E);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(D);for(C=0;C<$.length;C++)k=$[C],0<=E.indexOf(k)||Object.prototype.propertyIsEnumerable.call(D,k)&&(F[k]=D[k])}return F}function c(D,E){if(D==null)return{};var k,C,F={},$=Object.keys(D);for(C=0;C<$.length;C++)k=$[C],0<=E.indexOf(k)||(F[k]=D[k]);return F}function f(D,E){if(!(D instanceof E))throw new TypeError("Cannot call a class as a function")}function h(D,E){for(var k,C=0;C<E.length;C++)k=E[C],k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(D,k.key,k)}function p(D,E,k){return E&&h(D.prototype,E),D}function m(D,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(E&&E.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),E&&g(D,E)}function g(D,E){return g=Object.setPrototypeOf||function(k,C){return k.__proto__=C,k},g(D,E)}function v(D){var E=x();return function(){var k,C=S(D);if(E){var F=S(this).constructor;k=Reflect.construct(C,arguments,F)}else k=C.apply(this,arguments);return b(this,k)}}function b(D,E){return E&&(r(E)==="object"||typeof E=="function")?E:w(D)}function w(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S(D){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},S(D)}function P(D,E,k){return E in D?Object.defineProperty(D,E,{value:k,enumerable:!0,configurable:!0,writable:!0}):D[E]=k,D}var N=e.default.createElement("p",null,"현재 Daum 우편번호 서비스를 이용할 수 없습니다. 잠시 후 다시 시도해주세요."),_={width:"100%",height:400},M={scriptUrl:t.postcodeScriptUrl,errorMessage:N,autoClose:!0},A=function(D){function E(){var C;f(this,E);for(var F=arguments.length,$=Array(F),T=0;T<F;T++)$[T]=arguments[T];return C=k.call.apply(k,[this].concat($)),P(w(C),"mounted",!1),P(w(C),"wrap",(0,e.createRef)()),P(w(C),"state",{hasError:!1}),P(w(C),"initiate",function(Q){if(C.wrap.current){var O=C.props;O.scriptUrl,O.className,O.style;var U=O.defaultQuery,G=O.autoClose;O.errorMessage;var z=O.onComplete,fe=O.onClose,pe=O.onResize,ke=O.onSearch,ne=u(O,o),Ne=new Q(l(l({},ne),{},{oncomplete:function(Et){z&&z(Et),G&&C.wrap.current&&C.wrap.current.remove()},onsearch:ke,onresize:pe,onclose:fe,width:"100%",height:"100%"}));Ne.embed(C.wrap.current,{q:U,autoClose:G})}}),P(w(C),"onError",function(Q){console.error(Q),C.setState({hasError:!0})}),C}m(E,D);var k=v(E);return p(E,[{key:"componentDidMount",value:function(){var F=this.initiate,$=this.onError,T=this.props.scriptUrl;T&&(this.mounted||((0,t.default)(T).then(F).catch($),this.mounted=!0))}},{key:"render",value:function(){var F=this.props,$=F.className,T=F.style,Q=F.errorMessage,O=this.state.hasError;return e.default.createElement("div",{ref:this.wrap,className:$,style:l(l({},_),T)},O&&Q)}}]),E}(e.Component);P(A,"defaultProps",M);var V=A;n.default=V}(sl);var ll={};(function(n){function r(m){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},r(m)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=d,t=i(Rr),o=["defaultQuery","left","top","popupKey","popupTitle","autoClose","onComplete","onResize","onClose","onSearch","onError"];function a(m){if(typeof WeakMap!="function")return null;var g=new WeakMap,v=new WeakMap;return(a=function(b){return b?v:g})(m)}function i(m,g){if(m&&m.__esModule)return m;if(m===null||r(m)!=="object"&&typeof m!="function")return{default:m};var v=a(g);if(v&&v.has(m))return v.get(m);var b={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in m)if(x!="default"&&Object.prototype.hasOwnProperty.call(m,x)){var S=w?Object.getOwnPropertyDescriptor(m,x):null;S&&(S.get||S.set)?Object.defineProperty(b,x,S):b[x]=m[x]}return b.default=m,v&&v.set(m,b),b}function s(m,g){var v=Object.keys(m);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(m);g&&(b=b.filter(function(w){return Object.getOwnPropertyDescriptor(m,w).enumerable})),v.push.apply(v,b)}return v}function l(m){for(var g,v=1;v<arguments.length;v++)g=arguments[v]==null?{}:arguments[v],v%2?s(Object(g),!0).forEach(function(b){u(m,b,g[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(g)):s(Object(g)).forEach(function(b){Object.defineProperty(m,b,Object.getOwnPropertyDescriptor(g,b))});return m}function u(m,g,v){return g in m?Object.defineProperty(m,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):m[g]=v,m}function c(m,g){if(m==null)return{};var v,b,w=f(m,g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(m);for(b=0;b<x.length;b++)v=x[b],0<=g.indexOf(v)||Object.prototype.propertyIsEnumerable.call(m,v)&&(w[v]=m[v])}return w}function f(m,g){if(m==null)return{};var v,b,w={},x=Object.keys(m);for(b=0;b<x.length;b++)v=x[b],0<=g.indexOf(v)||(w[v]=m[v]);return w}function h(){var m=0<arguments.length&&arguments[0]!==void 0?arguments[0]:t.postcodeScriptUrl;(0,e.useEffect)(function(){(0,t.default)(m)},[m]);var g=(0,e.useCallback)(function(v){var b=l({},v),w=b.defaultQuery,x=b.left,S=b.top,P=b.popupKey,N=b.popupTitle,_=b.autoClose,M=b.onComplete,A=b.onResize,V=b.onClose,D=b.onSearch,E=b.onError,k=c(b,o);return(0,t.default)(m).then(function(C){var F=new C(l(l({},k),{},{oncomplete:M,onsearch:D,onresize:A,onclose:V}));F.open({q:w,left:x,top:S,popupTitle:N,popupKey:P,autoClose:_})}).catch(E)},[m]);return g}var p=h;n.default=p})(ll),function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DaumPostcodeEmbed",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"useDaumPostcodePopup",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(n,"loadPostcode",{enumerable:!0,get:function(){return t.default}}),n.default=void 0;var r=o(sl),e=o(ll),t=o(Rr);function o(i){return i&&i.__esModule?i:{default:i}}var a=r.default;n.default=a}(il);const Sh=({label:n,value:r,onFrontChange:e,onBackChange:t,onPostalCodeChange:o,disabled:a})=>{const[i,s]=d.useState(!1),l=f=>{let h=f.address,p="";f.addressType==="R"&&(f.bname!==""&&(p+=f.bname),f.buildingName!==""&&(p+=p!==""?`, ${f.buildingName}`:f.buildingName),h+=p!==""?` (${p})`:""),e(h),o&&o(f.zonecode),s(!1)},u=()=>{s(!0)},c=()=>r.front?r.front:I.jsx("p",{className:"text-[#C5C8CD]",children:"주소를 입력해주세요."});return I.jsxs(I.Fragment,{children:[I.jsx(_h,{isOpen:i,setIsOpen:s,handleComplete:l}),I.jsxs("div",{className:"text-deepGray",children:[I.jsx("label",{htmlFor:n,className:"text-sm font-bold text-lightBlack",children:n}),I.jsxs("div",{className:"relative flex flex-col",children:[I.jsx("div",{className:`mt-4 h-[60px] w-full overflow-hidden whitespace-nowrap rounded-xl bg-[#F8F8F9] p-4 text-base placeholder:text-[#C5C8CD] focus:outline-none ${a&&"opacity-50"}`,onClick:u,children:c()}),I.jsx("input",{disabled:!r.front||a,value:r.back,type:"text",name:n,id:n,placeholder:"상세 주소를 입력해주세요.",className:"mt-4 h-[60px] w-full rounded-xl bg-[#F8F8F9] p-4 text-base placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50",autoComplete:"off",onChange:f=>t(f.target.value)})]})]})]})},_h=n=>{const{isOpen:r,setIsOpen:e,handleComplete:t}=n;return I.jsxs(Gn,{open:r,onClose:()=>e(!1),className:"relateive z-50",children:[I.jsx("div",{className:"fixed inset-0 bg-black/40","aria-hidden":"true"}),I.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center",children:I.jsx(Gn.Panel,{children:I.jsxs("div",{children:[I.jsx("div",{className:"flex h-[36px] w-[90vw] flex-row-reverse items-center bg-[#F0F1F2]",children:I.jsx(oi,{size:20,className:"mr-2",onClick:()=>e(!1)})}),I.jsx(il.DaumPostcodeEmbed,{onComplete:t,style:{width:"90vw",height:"65vh",minHeight:"450px",borderRadius:"100px"}})]})})})]})},Oh=n=>{const{isOpen:r,setIsOpen:e}=n;return I.jsx(Gs,{show:r,enter:"transition ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:I.jsxs(Gn,{onClose:()=>e(!1),className:"relative z-50 focus:outline-none",children:[I.jsx("div",{className:"fixed inset-0 bg-black/40","aria-hidden":!r}),I.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:I.jsxs(Js,{className:"flex w-[260px] flex-col gap-[16px] rounded-[16px] bg-white p-[20px]",children:[I.jsxs("div",{className:"flex flex-col gap-[8px]",children:[n.title&&I.jsx(Zs,{className:"whitespace-pre-wrap text-[18px] font-bold leading-[26px] text-[#2C2F34]",children:n.title}),n.image&&I.jsx("img",{src:n.image.url,alt:n.image.alt}),n.description&&n.description!==""&&I.jsx(Si,{className:"break-all text-[16px] leading-[24px] text-[#585E67]",children:n.description})]}),I.jsxs("div",{className:"flex flex-col gap-[4px]",children:[I.jsx("button",{className:"w-full rounded-[12px] bg-[#FF592C] px-[12px] py-[14px] text-[14px] font-bold leading-[22px] text-white",onClick:n.confirm.onClick,children:n.confirm.text}),n.cancel&&I.jsx("button",{onClick:()=>e(!1),className:"w-full rounded-[12px] bg-[#F0F1F2] px-[12px] py-[14px] text-[14px] font-bold leading-[22px] text-[#585E67]",children:n.cancel.text})]})]})})]})})};function Ph(n){return Tn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"},child:[]}]})(n)}function Mh(n){return Tn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 217.9L383 345c9.4 9.4 24.6 9.4 33.9 0 9.4-9.4 9.3-24.6 0-34L273 167c-9.1-9.1-23.7-9.3-33.1-.7L95 310.9c-4.7 4.7-7 10.9-7 17s2.3 12.3 7 17c9.4 9.4 24.6 9.4 33.9 0l127.1-127z"},child:[]}]})(n)}const Th=({title:n,description:r,titleTextClassName:e,descriptionTextClassName:t})=>{const[o,a]=d.useState(!1);return I.jsxs("div",{className:"my-2.5 flex w-full cursor-pointer flex-col justify-center rounded-xl px-4 pt-8 shadow-[0_2px_8px_0_rgba(0,0,0,0.08)] md:rounded-2xl md:pt-10",onClick:()=>a(i=>!i),children:[I.jsxs("div",{className:"flex w-full items-center justify-between px-2 pb-8 transition-all duration-300 md:px-4 md:pb-10",children:[I.jsxs("p",{className:cr("mr-4 text-lg font-medium md:text-xl",e),children:[I.jsx("span",{className:"font-semibold",children:"Q."})," ",n]}),o?I.jsx(Mh,{className:"min-w-6 text-petnowOrange",size:24}):I.jsx(Ph,{className:"min-w-6 text-petnowOrange",size:24})]}),I.jsx("p",{className:cr(`w-full overflow-hidden whitespace-pre-wrap px-2 text-base leading-6 text-[#8B919A] transition-all duration-300 md:px-4 md:text-lg ${o?"max-h-[24rem] pb-8 sm:max-h-60 md:pb-10":"max-h-0"}`,t),children:r})]})};function Nh(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,fa(n,r)}function fa(n,r){return fa=Object.setPrototypeOf||function(t,o){return t.__proto__=o,t},fa(n,r)}function Ih(n,r){if(n==null)return{};var e={},t=Object.keys(n),o,a;for(a=0;a<t.length;a++)o=t[a],!(r.indexOf(o)>=0)&&(e[o]=n[o]);return e}function ul(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Fh(n,r,e){return n===r?!0:n.correspondingElement?n.correspondingElement.classList.contains(e):n.classList.contains(e)}function Lh(n,r,e){if(n===r)return!0;for(;n.parentNode||n.host;){if(n.parentNode&&Fh(n,r,e))return!0;n=n.parentNode||n.host}return n}function Ah(n){return document.documentElement.clientWidth<=n.clientX||document.documentElement.clientHeight<=n.clientY}var $h=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var r=!1,e=Object.defineProperty({},"passive",{get:function(){r=!0}}),t=function(){};return window.addEventListener("testPassiveEventSupport",t,e),window.removeEventListener("testPassiveEventSupport",t,e),r}};function Yh(n){return n===void 0&&(n=0),function(){return++n}}var jh=Yh(),pa,Hr={},ha={},Wh=["touchstart","touchmove"],Rh="ignore-react-onclickoutside";function cl(n,r){var e={},t=Wh.indexOf(r)!==-1;return t&&pa&&(e.passive=!n.props.preventDefault),e}function Br(n,r){var e,t,o=n.displayName||n.name||"Component";return t=e=function(a){Nh(i,a);function i(l){var u;return u=a.call(this,l)||this,u.__outsideClickHandler=function(c){if(typeof u.__clickOutsideHandlerProp=="function"){u.__clickOutsideHandlerProp(c);return}var f=u.getInstance();if(typeof f.props.handleClickOutside=="function"){f.props.handleClickOutside(c);return}if(typeof f.handleClickOutside=="function"){f.handleClickOutside(c);return}throw new Error("WrappedComponent: "+o+" lacks a handleClickOutside(event) function for processing outside click events.")},u.__getComponentNode=function(){var c=u.getInstance();return typeof c.setClickOutsideRef=="function"?c.setClickOutsideRef():ye.findDOMNode(c)},u.enableOnClickOutside=function(){if(!(typeof document>"u"||ha[u._uid])){typeof pa>"u"&&(pa=$h()),ha[u._uid]=!0;var c=u.props.eventTypes;c.forEach||(c=[c]),Hr[u._uid]=function(f){if(u.componentNode!==null&&!(u.initTimeStamp>f.timeStamp)&&(u.props.preventDefault&&f.preventDefault(),u.props.stopPropagation&&f.stopPropagation(),!(u.props.excludeScrollbar&&Ah(f)))){var h=f.composed&&f.composedPath&&f.composedPath().shift()||f.target;Lh(h,u.componentNode,u.props.outsideClickIgnoreClass)===document&&u.__outsideClickHandler(f)}},c.forEach(function(f){document.addEventListener(f,Hr[u._uid],cl(ul(u),f))})}},u.disableOnClickOutside=function(){delete ha[u._uid];var c=Hr[u._uid];if(c&&typeof document<"u"){var f=u.props.eventTypes;f.forEach||(f=[f]),f.forEach(function(h){return document.removeEventListener(h,c,cl(ul(u),h))}),delete Hr[u._uid]}},u.getRef=function(c){return u.instanceRef=c},u._uid=jh(),u.initTimeStamp=performance.now(),u}var s=i.prototype;return s.getInstance=function(){if(n.prototype&&!n.prototype.isReactComponent)return this;var u=this.instanceRef;return u.getInstance?u.getInstance():u},s.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var u=this.props;u.excludeScrollbar;var c=Ih(u,["excludeScrollbar"]);return n.prototype&&n.prototype.isReactComponent?c.ref=this.getRef:c.wrappedRef=this.getRef,c.disableOnClickOutside=this.disableOnClickOutside,c.enableOnClickOutside=this.enableOnClickOutside,d.createElement(n,c)},i}(d.Component),e.displayName="OnClickOutside("+o+")",e.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:Rh,preventDefault:!1,stopPropagation:!1},e.getClass=function(){return n.getClass?n.getClass():n},t}function B(n){const r=Object.prototype.toString.call(n);return n instanceof Date||typeof n=="object"&&r==="[object Date]"?new n.constructor(+n):typeof n=="number"||r==="[object Number]"||typeof n=="string"||r==="[object String]"?new Date(n):new Date(NaN)}function ue(n,r){return n instanceof Date?new n.constructor(r):new Date(r)}function It(n,r){const e=B(n);return isNaN(r)?ue(n,NaN):(r&&e.setDate(e.getDate()+r),e)}function ma(n,r){const e=+B(n);return ue(n,e+r)}const dl=6048e5,Hh=864e5,Vr=6e4,zr=36e5,Bh=1e3;function Vh(n,r){return ma(n,r*zr)}function va(n,r){return ma(n,r*Vr)}function Ze(n,r){const e=B(n);if(isNaN(r))return ue(n,NaN);if(!r)return e;const t=e.getDate(),o=ue(n,e.getTime());o.setMonth(e.getMonth()+r+1,0);const a=o.getDate();return t>=a?o:(e.setFullYear(o.getFullYear(),o.getMonth(),t),e)}function ga(n,r){const e=r*3;return Ze(n,e)}function zh(n,r){return ma(n,r*1e3)}function Ur(n,r){const e=r*7;return It(n,e)}function bt(n,r){return Ze(n,r*12)}function Xt(n){const r=B(n);return r.setHours(0,0,0,0),r}function Qr(n){const r=B(n),e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),+n-+e}function Jn(n,r){const e=Xt(n),t=Xt(r),o=+e-Qr(e),a=+t-Qr(t);return Math.round((o-a)/Hh)}function Kr(n,r){const e=B(n),t=B(r),o=e.getFullYear()-t.getFullYear(),a=e.getMonth()-t.getMonth();return o*12+a}function Jt(n){const r=B(n);return Math.trunc(r.getMonth()/3)+1}function qr(n,r){const e=B(n),t=B(r),o=e.getFullYear()-t.getFullYear(),a=Jt(e)-Jt(t);return o*4+a}function Gr(n,r){const e=B(n),t=B(r);return e.getFullYear()-t.getFullYear()}function fl(n){const r=B(n);return r.setHours(23,59,59,999),r}function Uh(n){const r=B(n),e=r.getMonth();return r.setFullYear(r.getFullYear(),e+1,0),r.setHours(23,59,59,999),r}let Qh={};function Zt(){return Qh}function Kh(n,r){var s,l;const e=Zt(),t=e.weekStartsOn??((l=(s=e.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??0,o=B(n),a=o.getDay(),i=(a<t?-7:0)+6-(a-t);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function pl(n){const r=B(n),e=r.getFullYear();return r.setFullYear(e+1,0,0),r.setHours(23,59,59,999),r}const qh={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Gh=(n,r,e)=>{let t;const o=qh[n];return typeof o=="string"?t=o:r===1?t=o.one:t=o.other.replace("{{count}}",r.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+t:t+" ago":t};function gn(n){return(r={})=>{const e=r.width?String(r.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const Xh={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Jh={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zh={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},em={date:gn({formats:Xh,defaultWidth:"full"}),time:gn({formats:Jh,defaultWidth:"full"}),dateTime:gn({formats:Zh,defaultWidth:"full"})},tm={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},nm=(n,r,e,t)=>tm[n];function ot(n){return(r,e)=>{const t=e!=null&&e.context?String(e.context):"standalone";let o;if(t==="formatting"&&n.formattingValues){const i=n.defaultFormattingWidth||n.defaultWidth,s=e!=null&&e.width?String(e.width):i;o=n.formattingValues[s]||n.formattingValues[i]}else{const i=n.defaultWidth,s=e!=null&&e.width?String(e.width):n.defaultWidth;o=n.values[s]||n.values[i]}const a=n.argumentCallback?n.argumentCallback(r):r;return o[a]}}const rm={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},om={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},am={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},im={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},sm={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},lm={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},um={ordinalNumber:(n,r)=>{const e=Number(n),t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:ot({values:rm,defaultWidth:"wide"}),quarter:ot({values:om,defaultWidth:"wide",argumentCallback:n=>n-1}),month:ot({values:am,defaultWidth:"wide"}),day:ot({values:im,defaultWidth:"wide"}),dayPeriod:ot({values:sm,defaultWidth:"wide",formattingValues:lm,defaultFormattingWidth:"wide"})};function at(n){return(r,e={})=>{const t=e.width,o=t&&n.matchPatterns[t]||n.matchPatterns[n.defaultMatchWidth],a=r.match(o);if(!a)return null;const i=a[0],s=t&&n.parsePatterns[t]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?dm(s,f=>f.test(i)):cm(s,f=>f.test(i));let u;u=n.valueCallback?n.valueCallback(l):l,u=e.valueCallback?e.valueCallback(u):u;const c=r.slice(i.length);return{value:u,rest:c}}}function cm(n,r){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&r(n[e]))return e}function dm(n,r){for(let e=0;e<n.length;e++)if(r(n[e]))return e}function hl(n){return(r,e={})=>{const t=r.match(n.matchPattern);if(!t)return null;const o=t[0],a=r.match(n.parsePattern);if(!a)return null;let i=n.valueCallback?n.valueCallback(a[0]):a[0];i=e.valueCallback?e.valueCallback(i):i;const s=r.slice(o.length);return{value:i,rest:s}}}const fm=/^(\d+)(th|st|nd|rd)?/i,pm=/\d+/i,hm={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},mm={any:[/^b/i,/^(a|c)/i]},vm={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},gm={any:[/1/i,/2/i,/3/i,/4/i]},bm={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ym={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},wm={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},xm={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Dm={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Em={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Cm={ordinalNumber:hl({matchPattern:fm,parsePattern:pm,valueCallback:n=>parseInt(n,10)}),era:at({matchPatterns:hm,defaultMatchWidth:"wide",parsePatterns:mm,defaultParseWidth:"any"}),quarter:at({matchPatterns:vm,defaultMatchWidth:"wide",parsePatterns:gm,defaultParseWidth:"any",valueCallback:n=>n+1}),month:at({matchPatterns:bm,defaultMatchWidth:"wide",parsePatterns:ym,defaultParseWidth:"any"}),day:at({matchPatterns:wm,defaultMatchWidth:"wide",parsePatterns:xm,defaultParseWidth:"any"}),dayPeriod:at({matchPatterns:Dm,defaultMatchWidth:"any",parsePatterns:Em,defaultParseWidth:"any"})},ml={code:"en-US",formatDistance:Gh,formatLong:em,formatRelative:nm,localize:um,match:Cm,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Xr(n){const r=B(n),e=ue(n,0);return e.setFullYear(r.getFullYear(),0,1),e.setHours(0,0,0,0),e}function km(n){const r=B(n);return Jn(r,Xr(r))+1}function yt(n,r){var s,l,u,c;const e=Zt(),t=(r==null?void 0:r.weekStartsOn)??((l=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??e.weekStartsOn??((c=(u=e.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,o=B(n),a=o.getDay(),i=(a<t?7:0)+a-t;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function bn(n){return yt(n,{weekStartsOn:1})}function vl(n){const r=B(n),e=r.getFullYear(),t=ue(n,0);t.setFullYear(e+1,0,4),t.setHours(0,0,0,0);const o=bn(t),a=ue(n,0);a.setFullYear(e,0,4),a.setHours(0,0,0,0);const i=bn(a);return r.getTime()>=o.getTime()?e+1:r.getTime()>=i.getTime()?e:e-1}function Sm(n){const r=vl(n),e=ue(n,0);return e.setFullYear(r,0,4),e.setHours(0,0,0,0),bn(e)}function ba(n){const r=B(n),e=+bn(r)-+Sm(r);return Math.round(e/dl)+1}function ya(n,r){var c,f,h,p;const e=B(n),t=e.getFullYear(),o=Zt(),a=(r==null?void 0:r.firstWeekContainsDate)??((f=(c=r==null?void 0:r.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??o.firstWeekContainsDate??((p=(h=o.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,i=ue(n,0);i.setFullYear(t+1,0,a),i.setHours(0,0,0,0);const s=yt(i,r),l=ue(n,0);l.setFullYear(t,0,a),l.setHours(0,0,0,0);const u=yt(l,r);return e.getTime()>=s.getTime()?t+1:e.getTime()>=u.getTime()?t:t-1}function _m(n,r){var s,l,u,c;const e=Zt(),t=(r==null?void 0:r.firstWeekContainsDate)??((l=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??e.firstWeekContainsDate??((c=(u=e.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,o=ya(n,r),a=ue(n,0);return a.setFullYear(o,0,t),a.setHours(0,0,0,0),yt(a,r)}function gl(n,r){const e=B(n),t=+yt(e,r)-+_m(e,r);return Math.round(t/dl)+1}function ce(n,r){const e=n<0?"-":"",t=Math.abs(n).toString().padStart(r,"0");return e+t}const Ft={y(n,r){const e=n.getFullYear(),t=e>0?e:1-e;return ce(r==="yy"?t%100:t,r.length)},M(n,r){const e=n.getMonth();return r==="M"?String(e+1):ce(e+1,2)},d(n,r){return ce(n.getDate(),r.length)},a(n,r){const e=n.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,r){return ce(n.getHours()%12||12,r.length)},H(n,r){return ce(n.getHours(),r.length)},m(n,r){return ce(n.getMinutes(),r.length)},s(n,r){return ce(n.getSeconds(),r.length)},S(n,r){const e=r.length,t=n.getMilliseconds(),o=Math.trunc(t*Math.pow(10,e-3));return ce(o,r.length)}},yn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},bl={G:function(n,r,e){const t=n.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return e.era(t,{width:"abbreviated"});case"GGGGG":return e.era(t,{width:"narrow"});case"GGGG":default:return e.era(t,{width:"wide"})}},y:function(n,r,e){if(r==="yo"){const t=n.getFullYear(),o=t>0?t:1-t;return e.ordinalNumber(o,{unit:"year"})}return Ft.y(n,r)},Y:function(n,r,e,t){const o=ya(n,t),a=o>0?o:1-o;if(r==="YY"){const i=a%100;return ce(i,2)}return r==="Yo"?e.ordinalNumber(a,{unit:"year"}):ce(a,r.length)},R:function(n,r){const e=vl(n);return ce(e,r.length)},u:function(n,r){const e=n.getFullYear();return ce(e,r.length)},Q:function(n,r,e){const t=Math.ceil((n.getMonth()+1)/3);switch(r){case"Q":return String(t);case"QQ":return ce(t,2);case"Qo":return e.ordinalNumber(t,{unit:"quarter"});case"QQQ":return e.quarter(t,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(t,{width:"wide",context:"formatting"})}},q:function(n,r,e){const t=Math.ceil((n.getMonth()+1)/3);switch(r){case"q":return String(t);case"qq":return ce(t,2);case"qo":return e.ordinalNumber(t,{unit:"quarter"});case"qqq":return e.quarter(t,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(t,{width:"wide",context:"standalone"})}},M:function(n,r,e){const t=n.getMonth();switch(r){case"M":case"MM":return Ft.M(n,r);case"Mo":return e.ordinalNumber(t+1,{unit:"month"});case"MMM":return e.month(t,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(t,{width:"wide",context:"formatting"})}},L:function(n,r,e){const t=n.getMonth();switch(r){case"L":return String(t+1);case"LL":return ce(t+1,2);case"Lo":return e.ordinalNumber(t+1,{unit:"month"});case"LLL":return e.month(t,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(t,{width:"wide",context:"standalone"})}},w:function(n,r,e,t){const o=gl(n,t);return r==="wo"?e.ordinalNumber(o,{unit:"week"}):ce(o,r.length)},I:function(n,r,e){const t=ba(n);return r==="Io"?e.ordinalNumber(t,{unit:"week"}):ce(t,r.length)},d:function(n,r,e){return r==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):Ft.d(n,r)},D:function(n,r,e){const t=km(n);return r==="Do"?e.ordinalNumber(t,{unit:"dayOfYear"}):ce(t,r.length)},E:function(n,r,e){const t=n.getDay();switch(r){case"E":case"EE":case"EEE":return e.day(t,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(t,{width:"short",context:"formatting"});case"EEEE":default:return e.day(t,{width:"wide",context:"formatting"})}},e:function(n,r,e,t){const o=n.getDay(),a=(o-t.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return ce(a,2);case"eo":return e.ordinalNumber(a,{unit:"day"});case"eee":return e.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(o,{width:"short",context:"formatting"});case"eeee":default:return e.day(o,{width:"wide",context:"formatting"})}},c:function(n,r,e,t){const o=n.getDay(),a=(o-t.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return ce(a,r.length);case"co":return e.ordinalNumber(a,{unit:"day"});case"ccc":return e.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(o,{width:"narrow",context:"standalone"});case"cccccc":return e.day(o,{width:"short",context:"standalone"});case"cccc":default:return e.day(o,{width:"wide",context:"standalone"})}},i:function(n,r,e){const t=n.getDay(),o=t===0?7:t;switch(r){case"i":return String(o);case"ii":return ce(o,r.length);case"io":return e.ordinalNumber(o,{unit:"day"});case"iii":return e.day(t,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(t,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(t,{width:"short",context:"formatting"});case"iiii":default:return e.day(t,{width:"wide",context:"formatting"})}},a:function(n,r,e){const o=n.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(n,r,e){const t=n.getHours();let o;switch(t===12?o=yn.noon:t===0?o=yn.midnight:o=t/12>=1?"pm":"am",r){case"b":case"bb":return e.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(n,r,e){const t=n.getHours();let o;switch(t>=17?o=yn.evening:t>=12?o=yn.afternoon:t>=4?o=yn.morning:o=yn.night,r){case"B":case"BB":case"BBB":return e.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(n,r,e){if(r==="ho"){let t=n.getHours()%12;return t===0&&(t=12),e.ordinalNumber(t,{unit:"hour"})}return Ft.h(n,r)},H:function(n,r,e){return r==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):Ft.H(n,r)},K:function(n,r,e){const t=n.getHours()%12;return r==="Ko"?e.ordinalNumber(t,{unit:"hour"}):ce(t,r.length)},k:function(n,r,e){let t=n.getHours();return t===0&&(t=24),r==="ko"?e.ordinalNumber(t,{unit:"hour"}):ce(t,r.length)},m:function(n,r,e){return r==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):Ft.m(n,r)},s:function(n,r,e){return r==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):Ft.s(n,r)},S:function(n,r){return Ft.S(n,r)},X:function(n,r,e){const t=n.getTimezoneOffset();if(t===0)return"Z";switch(r){case"X":return wl(t);case"XXXX":case"XX":return en(t);case"XXXXX":case"XXX":default:return en(t,":")}},x:function(n,r,e){const t=n.getTimezoneOffset();switch(r){case"x":return wl(t);case"xxxx":case"xx":return en(t);case"xxxxx":case"xxx":default:return en(t,":")}},O:function(n,r,e){const t=n.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+yl(t,":");case"OOOO":default:return"GMT"+en(t,":")}},z:function(n,r,e){const t=n.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+yl(t,":");case"zzzz":default:return"GMT"+en(t,":")}},t:function(n,r,e){const t=Math.trunc(n.getTime()/1e3);return ce(t,r.length)},T:function(n,r,e){const t=n.getTime();return ce(t,r.length)}};function yl(n,r=""){const e=n>0?"-":"+",t=Math.abs(n),o=Math.trunc(t/60),a=t%60;return a===0?e+String(o):e+String(o)+r+ce(a,2)}function wl(n,r){return n%60===0?(n>0?"-":"+")+ce(Math.abs(n)/60,2):en(n,r)}function en(n,r=""){const e=n>0?"-":"+",t=Math.abs(n),o=ce(Math.trunc(t/60),2),a=ce(t%60,2);return e+o+r+a}const xl=(n,r)=>{switch(n){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Dl=(n,r)=>{switch(n){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Jr={p:Dl,P:(n,r)=>{const e=n.match(/(P+)(p+)?/)||[],t=e[1],o=e[2];if(!o)return xl(n,r);let a;switch(t){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",xl(t,r)).replace("{{time}}",Dl(o,r))}},Om=/^D+$/,Pm=/^Y+$/,Mm=["D","DD","YY","YYYY"];function El(n){return Om.test(n)}function Cl(n){return Pm.test(n)}function wa(n,r,e){const t=Tm(n,r,e);if(console.warn(t),Mm.includes(n))throw new RangeError(t)}function Tm(n,r,e){const t=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${r}\`) for formatting ${t} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function wt(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Zr(n){if(!wt(n)&&typeof n!="number")return!1;const r=B(n);return!isNaN(Number(r))}const Nm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Im=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fm=/^'([^]*?)'?$/,Lm=/''/g,Am=/[a-zA-Z]/;function kl(n,r,e){var c,f,h,p,m,g,v,b;const t=Zt(),o=(e==null?void 0:e.locale)??t.locale??ml,a=(e==null?void 0:e.firstWeekContainsDate)??((f=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??t.firstWeekContainsDate??((p=(h=t.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,i=(e==null?void 0:e.weekStartsOn)??((g=(m=e==null?void 0:e.locale)==null?void 0:m.options)==null?void 0:g.weekStartsOn)??t.weekStartsOn??((b=(v=t.locale)==null?void 0:v.options)==null?void 0:b.weekStartsOn)??0,s=B(n);if(!Zr(s))throw new RangeError("Invalid time value");let l=r.match(Im).map(w=>{const x=w[0];if(x==="p"||x==="P"){const S=Jr[x];return S(w,o.formatLong)}return w}).join("").match(Nm).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const x=w[0];if(x==="'")return{isToken:!1,value:$m(w)};if(bl[x])return{isToken:!0,value:w};if(x.match(Am))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:w}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const u={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return l.map(w=>{if(!w.isToken)return w.value;const x=w.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&Cl(x)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&El(x))&&wa(x,r,String(n));const S=bl[x[0]];return S(s,x,o.localize,u)}).join("")}function $m(n){const r=n.match(Fm);return r?r[1].replace(Lm,"'"):n}function Sl(n){return B(n).getDate()}function Ym(n){return B(n).getDay()}function it(n){return B(n).getHours()}function st(n){return B(n).getMinutes()}function je(n){return B(n).getMonth()}function xt(n){return B(n).getSeconds()}function xa(n){return B(n).getTime()}function J(n){return B(n).getFullYear()}function Lt(n,r){const e=B(n),t=B(r);return e.getTime()>t.getTime()}function tn(n,r){const e=B(n),t=B(r);return+e<+t}function jm(n,r){const e=B(n),t=B(r);return+e==+t}function Wm(n,r){const e=Xt(n),t=Xt(r);return+e==+t}function Rm(n,r){const e=B(n),t=B(r);return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function Da(n){const r=B(n),e=r.getMonth(),t=e-e%3;return r.setMonth(t,1),r.setHours(0,0,0,0),r}function Hm(n,r){const e=Da(n),t=Da(r);return+e==+t}function Bm(n,r){const e=B(n),t=B(r);return e.getFullYear()===t.getFullYear()}function Zn(n,r){const e=+B(n),[t,o]=[+B(r.start),+B(r.end)].sort((a,i)=>a-i);return e>=t&&e<=o}function _l(n){let r;return n.forEach(function(e){const t=B(e);(r===void 0||r<t||isNaN(Number(t)))&&(r=t)}),r||new Date(NaN)}function Ol(n){let r;return n.forEach(e=>{const t=B(e);(!r||r>t||isNaN(+t))&&(r=t)}),r||new Date(NaN)}function Vm(){return Object.assign({},Zt())}function zm(n,r){const e=r instanceof Date?ue(r,0):new r(0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}const Um=10;class Pl{constructor(){H(this,"subPriority",0)}validate(r,e){return!0}}class Qm extends Pl{constructor(r,e,t,o,a){super(),this.value=r,this.validateValue=e,this.setValue=t,this.priority=o,a&&(this.subPriority=a)}validate(r,e){return this.validateValue(r,this.value,e)}set(r,e,t){return this.setValue(r,e,this.value,t)}}class Km extends Pl{constructor(){super(...arguments);H(this,"priority",Um);H(this,"subPriority",-1)}set(e,t){return t.timestampIsSet?e:ue(e,zm(e,Date))}}class se{run(r,e,t,o){const a=this.parse(r,e,t,o);return a?{setter:new Qm(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(r,e,t){return!0}}class qm extends se{constructor(){super(...arguments);H(this,"priority",140);H(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,o){switch(t){case"G":case"GG":case"GGG":return o.era(e,{width:"abbreviated"})||o.era(e,{width:"narrow"});case"GGGGG":return o.era(e,{width:"narrow"});case"GGGG":default:return o.era(e,{width:"wide"})||o.era(e,{width:"abbreviated"})||o.era(e,{width:"narrow"})}}set(e,t,o){return t.era=o,e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}}const _e={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},lt={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Oe(n,r){return n&&{value:r(n.value),rest:n.rest}}function Ee(n,r){const e=r.match(n);return e?{value:parseInt(e[0],10),rest:r.slice(e[0].length)}:null}function ut(n,r){const e=r.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:r.slice(1)};const t=e[1]==="+"?1:-1,o=e[2]?parseInt(e[2],10):0,a=e[3]?parseInt(e[3],10):0,i=e[5]?parseInt(e[5],10):0;return{value:t*(o*zr+a*Vr+i*Bh),rest:r.slice(e[0].length)}}function Ml(n){return Ee(_e.anyDigitsSigned,n)}function Ce(n,r){switch(n){case 1:return Ee(_e.singleDigit,r);case 2:return Ee(_e.twoDigits,r);case 3:return Ee(_e.threeDigits,r);case 4:return Ee(_e.fourDigits,r);default:return Ee(new RegExp("^\\d{1,"+n+"}"),r)}}function eo(n,r){switch(n){case 1:return Ee(_e.singleDigitSigned,r);case 2:return Ee(_e.twoDigitsSigned,r);case 3:return Ee(_e.threeDigitsSigned,r);case 4:return Ee(_e.fourDigitsSigned,r);default:return Ee(new RegExp("^-?\\d{1,"+n+"}"),r)}}function Ea(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Tl(n,r){const e=r>0,t=e?r:1-r;let o;if(t<=50)o=n||100;else{const a=t+50,i=Math.trunc(a/100)*100,s=n>=a%100;o=n+i-(s?100:0)}return e?o:1-o}function Nl(n){return n%400===0||n%4===0&&n%100!==0}class Gm extends se{constructor(){super(...arguments);H(this,"priority",130);H(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,o){const a=i=>({year:i,isTwoDigitYear:t==="yy"});switch(t){case"y":return Oe(Ce(4,e),a);case"yo":return Oe(o.ordinalNumber(e,{unit:"year"}),a);default:return Oe(Ce(t.length,e),a)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,o){const a=e.getFullYear();if(o.isTwoDigitYear){const s=Tl(o.year,a);return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}const i=!("era"in t)||t.era===1?o.year:1-o.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}}class Xm extends se{constructor(){super(...arguments);H(this,"priority",130);H(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,o){const a=i=>({year:i,isTwoDigitYear:t==="YY"});switch(t){case"Y":return Oe(Ce(4,e),a);case"Yo":return Oe(o.ordinalNumber(e,{unit:"year"}),a);default:return Oe(Ce(t.length,e),a)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,o,a){const i=ya(e,a);if(o.isTwoDigitYear){const l=Tl(o.year,i);return e.setFullYear(l,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),yt(e,a)}const s=!("era"in t)||t.era===1?o.year:1-o.year;return e.setFullYear(s,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),yt(e,a)}}class Jm extends se{constructor(){super(...arguments);H(this,"priority",130);H(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return eo(t==="R"?4:t.length,e)}set(e,t,o){const a=ue(e,0);return a.setFullYear(o,0,4),a.setHours(0,0,0,0),bn(a)}}class Zm extends se{constructor(){super(...arguments);H(this,"priority",130);H(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return eo(t==="u"?4:t.length,e)}set(e,t,o){return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}}class ev extends se{constructor(){super(...arguments);H(this,"priority",120);H(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,o){switch(t){case"Q":case"QQ":return Ce(t.length,e);case"Qo":return o.ordinalNumber(e,{unit:"quarter"});case"QQQ":return o.quarter(e,{width:"abbreviated",context:"formatting"})||o.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(e,{width:"wide",context:"formatting"})||o.quarter(e,{width:"abbreviated",context:"formatting"})||o.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,o){return e.setMonth((o-1)*3,1),e.setHours(0,0,0,0),e}}class tv extends se{constructor(){super(...arguments);H(this,"priority",120);H(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,o){switch(t){case"q":case"qq":return Ce(t.length,e);case"qo":return o.ordinalNumber(e,{unit:"quarter"});case"qqq":return o.quarter(e,{width:"abbreviated",context:"standalone"})||o.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(e,{width:"wide",context:"standalone"})||o.quarter(e,{width:"abbreviated",context:"standalone"})||o.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,o){return e.setMonth((o-1)*3,1),e.setHours(0,0,0,0),e}}class nv extends se{constructor(){super(...arguments);H(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);H(this,"priority",110)}parse(e,t,o){const a=i=>i-1;switch(t){case"M":return Oe(Ee(_e.month,e),a);case"MM":return Oe(Ce(2,e),a);case"Mo":return Oe(o.ordinalNumber(e,{unit:"month"}),a);case"MMM":return o.month(e,{width:"abbreviated",context:"formatting"})||o.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(e,{width:"wide",context:"formatting"})||o.month(e,{width:"abbreviated",context:"formatting"})||o.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,o){return e.setMonth(o,1),e.setHours(0,0,0,0),e}}class rv extends se{constructor(){super(...arguments);H(this,"priority",110);H(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,o){const a=i=>i-1;switch(t){case"L":return Oe(Ee(_e.month,e),a);case"LL":return Oe(Ce(2,e),a);case"Lo":return Oe(o.ordinalNumber(e,{unit:"month"}),a);case"LLL":return o.month(e,{width:"abbreviated",context:"standalone"})||o.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(e,{width:"wide",context:"standalone"})||o.month(e,{width:"abbreviated",context:"standalone"})||o.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,o){return e.setMonth(o,1),e.setHours(0,0,0,0),e}}function ov(n,r,e){const t=B(n),o=gl(t,e)-r;return t.setDate(t.getDate()-o*7),t}class av extends se{constructor(){super(...arguments);H(this,"priority",100);H(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,o){switch(t){case"w":return Ee(_e.week,e);case"wo":return o.ordinalNumber(e,{unit:"week"});default:return Ce(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,o,a){return yt(ov(e,o,a),a)}}function iv(n,r){const e=B(n),t=ba(e)-r;return e.setDate(e.getDate()-t*7),e}class sv extends se{constructor(){super(...arguments);H(this,"priority",100);H(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,o){switch(t){case"I":return Ee(_e.week,e);case"Io":return o.ordinalNumber(e,{unit:"week"});default:return Ce(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,o){return bn(iv(e,o))}}const lv=[31,28,31,30,31,30,31,31,30,31,30,31],uv=[31,29,31,30,31,30,31,31,30,31,30,31];class cv extends se{constructor(){super(...arguments);H(this,"priority",90);H(this,"subPriority",1);H(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,o){switch(t){case"d":return Ee(_e.date,e);case"do":return o.ordinalNumber(e,{unit:"date"});default:return Ce(t.length,e)}}validate(e,t){const o=e.getFullYear(),a=Nl(o),i=e.getMonth();return a?t>=1&&t<=uv[i]:t>=1&&t<=lv[i]}set(e,t,o){return e.setDate(o),e.setHours(0,0,0,0),e}}class dv extends se{constructor(){super(...arguments);H(this,"priority",90);H(this,"subpriority",1);H(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,o){switch(t){case"D":case"DD":return Ee(_e.dayOfYear,e);case"Do":return o.ordinalNumber(e,{unit:"date"});default:return Ce(t.length,e)}}validate(e,t){const o=e.getFullYear();return Nl(o)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,o){return e.setMonth(0,o),e.setHours(0,0,0,0),e}}function Ca(n,r,e){var f,h,p,m;const t=Zt(),o=(e==null?void 0:e.weekStartsOn)??((h=(f=e==null?void 0:e.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??t.weekStartsOn??((m=(p=t.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??0,a=B(n),i=a.getDay(),l=(r%7+7)%7,u=7-o,c=r<0||r>6?r-(i+u)%7:(l+u)%7-(i+u)%7;return It(a,c)}class fv extends se{constructor(){super(...arguments);H(this,"priority",90);H(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,o){switch(t){case"E":case"EE":case"EEE":return o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,o,a){return e=Ca(e,o,a),e.setHours(0,0,0,0),e}}class pv extends se{constructor(){super(...arguments);H(this,"priority",90);H(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,o,a){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+a.weekStartsOn+6)%7+l};switch(t){case"e":case"ee":return Oe(Ce(t.length,e),i);case"eo":return Oe(o.ordinalNumber(e,{unit:"day"}),i);case"eee":return o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"eeeee":return o.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,o,a){return e=Ca(e,o,a),e.setHours(0,0,0,0),e}}class hv extends se{constructor(){super(...arguments);H(this,"priority",90);H(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,o,a){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+a.weekStartsOn+6)%7+l};switch(t){case"c":case"cc":return Oe(Ce(t.length,e),i);case"co":return Oe(o.ordinalNumber(e,{unit:"day"}),i);case"ccc":return o.day(e,{width:"abbreviated",context:"standalone"})||o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"});case"ccccc":return o.day(e,{width:"narrow",context:"standalone"});case"cccccc":return o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(e,{width:"wide",context:"standalone"})||o.day(e,{width:"abbreviated",context:"standalone"})||o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,o,a){return e=Ca(e,o,a),e.setHours(0,0,0,0),e}}function mv(n){let e=B(n).getDay();return e===0&&(e=7),e}function vv(n,r){const e=B(n),t=mv(e),o=r-t;return It(e,o)}class gv extends se{constructor(){super(...arguments);H(this,"priority",90);H(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,o){const a=i=>i===0?7:i;switch(t){case"i":case"ii":return Ce(t.length,e);case"io":return o.ordinalNumber(e,{unit:"day"});case"iii":return Oe(o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),a);case"iiiii":return Oe(o.day(e,{width:"narrow",context:"formatting"}),a);case"iiiiii":return Oe(o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),a);case"iiii":default:return Oe(o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),a)}}validate(e,t){return t>=1&&t<=7}set(e,t,o){return e=vv(e,o),e.setHours(0,0,0,0),e}}class bv extends se{constructor(){super(...arguments);H(this,"priority",80);H(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,o){switch(t){case"a":case"aa":case"aaa":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,o){return e.setHours(Ea(o),0,0,0),e}}class yv extends se{constructor(){super(...arguments);H(this,"priority",80);H(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,o){switch(t){case"b":case"bb":case"bbb":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,o){return e.setHours(Ea(o),0,0,0),e}}class wv extends se{constructor(){super(...arguments);H(this,"priority",80);H(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,o){switch(t){case"B":case"BB":case"BBB":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,o){return e.setHours(Ea(o),0,0,0),e}}class xv extends se{constructor(){super(...arguments);H(this,"priority",70);H(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,o){switch(t){case"h":return Ee(_e.hour12h,e);case"ho":return o.ordinalNumber(e,{unit:"hour"});default:return Ce(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,o){const a=e.getHours()>=12;return a&&o<12?e.setHours(o+12,0,0,0):!a&&o===12?e.setHours(0,0,0,0):e.setHours(o,0,0,0),e}}class Dv extends se{constructor(){super(...arguments);H(this,"priority",70);H(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,o){switch(t){case"H":return Ee(_e.hour23h,e);case"Ho":return o.ordinalNumber(e,{unit:"hour"});default:return Ce(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,o){return e.setHours(o,0,0,0),e}}class Ev extends se{constructor(){super(...arguments);H(this,"priority",70);H(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,o){switch(t){case"K":return Ee(_e.hour11h,e);case"Ko":return o.ordinalNumber(e,{unit:"hour"});default:return Ce(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,o){return e.getHours()>=12&&o<12?e.setHours(o+12,0,0,0):e.setHours(o,0,0,0),e}}class Cv extends se{constructor(){super(...arguments);H(this,"priority",70);H(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,o){switch(t){case"k":return Ee(_e.hour24h,e);case"ko":return o.ordinalNumber(e,{unit:"hour"});default:return Ce(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,o){const a=o<=24?o%24:o;return e.setHours(a,0,0,0),e}}class kv extends se{constructor(){super(...arguments);H(this,"priority",60);H(this,"incompatibleTokens",["t","T"])}parse(e,t,o){switch(t){case"m":return Ee(_e.minute,e);case"mo":return o.ordinalNumber(e,{unit:"minute"});default:return Ce(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,o){return e.setMinutes(o,0,0),e}}class Sv extends se{constructor(){super(...arguments);H(this,"priority",50);H(this,"incompatibleTokens",["t","T"])}parse(e,t,o){switch(t){case"s":return Ee(_e.second,e);case"so":return o.ordinalNumber(e,{unit:"second"});default:return Ce(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,o){return e.setSeconds(o,0),e}}class _v extends se{constructor(){super(...arguments);H(this,"priority",30);H(this,"incompatibleTokens",["t","T"])}parse(e,t){const o=a=>Math.trunc(a*Math.pow(10,-t.length+3));return Oe(Ce(t.length,e),o)}set(e,t,o){return e.setMilliseconds(o),e}}class Ov extends se{constructor(){super(...arguments);H(this,"priority",10);H(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return ut(lt.basicOptionalMinutes,e);case"XX":return ut(lt.basic,e);case"XXXX":return ut(lt.basicOptionalSeconds,e);case"XXXXX":return ut(lt.extendedOptionalSeconds,e);case"XXX":default:return ut(lt.extended,e)}}set(e,t,o){return t.timestampIsSet?e:ue(e,e.getTime()-Qr(e)-o)}}class Pv extends se{constructor(){super(...arguments);H(this,"priority",10);H(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return ut(lt.basicOptionalMinutes,e);case"xx":return ut(lt.basic,e);case"xxxx":return ut(lt.basicOptionalSeconds,e);case"xxxxx":return ut(lt.extendedOptionalSeconds,e);case"xxx":default:return ut(lt.extended,e)}}set(e,t,o){return t.timestampIsSet?e:ue(e,e.getTime()-Qr(e)-o)}}class Mv extends se{constructor(){super(...arguments);H(this,"priority",40);H(this,"incompatibleTokens","*")}parse(e){return Ml(e)}set(e,t,o){return[ue(e,o*1e3),{timestampIsSet:!0}]}}class Tv extends se{constructor(){super(...arguments);H(this,"priority",20);H(this,"incompatibleTokens","*")}parse(e){return Ml(e)}set(e,t,o){return[ue(e,o),{timestampIsSet:!0}]}}const Nv={G:new qm,y:new Gm,Y:new Xm,R:new Jm,u:new Zm,Q:new ev,q:new tv,M:new nv,L:new rv,w:new av,I:new sv,d:new cv,D:new dv,E:new fv,e:new pv,c:new hv,i:new gv,a:new bv,b:new yv,B:new wv,h:new xv,H:new Dv,K:new Ev,k:new Cv,m:new kv,s:new Sv,S:new _v,X:new Ov,x:new Pv,t:new Mv,T:new Tv},Iv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Fv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Lv=/^'([^]*?)'?$/,Av=/''/g,$v=/\S/,Yv=/[a-zA-Z]/;function ka(n,r,e,t){var g,v,b,w,x,S,P,N;const o=Vm(),a=(t==null?void 0:t.locale)??o.locale??ml,i=(t==null?void 0:t.firstWeekContainsDate)??((v=(g=t==null?void 0:t.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??o.firstWeekContainsDate??((w=(b=o.locale)==null?void 0:b.options)==null?void 0:w.firstWeekContainsDate)??1,s=(t==null?void 0:t.weekStartsOn)??((S=(x=t==null?void 0:t.locale)==null?void 0:x.options)==null?void 0:S.weekStartsOn)??o.weekStartsOn??((N=(P=o.locale)==null?void 0:P.options)==null?void 0:N.weekStartsOn)??0;if(r==="")return n===""?B(e):ue(e,NaN);const l={firstWeekContainsDate:i,weekStartsOn:s,locale:a},u=[new Km],c=r.match(Fv).map(_=>{const M=_[0];if(M in Jr){const A=Jr[M];return A(_,a.formatLong)}return _}).join("").match(Iv),f=[];for(let _ of c){!(t!=null&&t.useAdditionalWeekYearTokens)&&Cl(_)&&wa(_,r,n),!(t!=null&&t.useAdditionalDayOfYearTokens)&&El(_)&&wa(_,r,n);const M=_[0],A=Nv[M];if(A){const{incompatibleTokens:V}=A;if(Array.isArray(V)){const E=f.find(k=>V.includes(k.token)||k.token===M);if(E)throw new RangeError(`The format string mustn't contain \`${E.fullToken}\` and \`${_}\` at the same time`)}else if(A.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${_}\` and any other token at the same time`);f.push({token:M,fullToken:_});const D=A.run(n,_,a.match,l);if(!D)return ue(e,NaN);u.push(D.setter),n=D.rest}else{if(M.match(Yv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");if(_==="''"?_="'":M==="'"&&(_=jv(_)),n.indexOf(_)===0)n=n.slice(_.length);else return ue(e,NaN)}}if(n.length>0&&$v.test(n))return ue(e,NaN);const h=u.map(_=>_.priority).sort((_,M)=>M-_).filter((_,M,A)=>A.indexOf(_)===M).map(_=>u.filter(M=>M.priority===_).sort((M,A)=>A.subPriority-M.subPriority)).map(_=>_[0]);let p=B(e);if(isNaN(p.getTime()))return ue(e,NaN);const m={};for(const _ of h){if(!_.validate(p,l))return ue(e,NaN);const M=_.set(p,m,l);Array.isArray(M)?(p=M[0],Object.assign(m,M[1])):p=M}return ue(e,p)}function jv(n){return n.match(Lv)[1].replace(Av,"'")}function Wv(n,r){const t=Vv(n);let o;if(t.date){const l=zv(t.date,2);o=Uv(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const a=o.getTime();let i=0,s;if(t.time&&(i=Qv(t.time),isNaN(i)))return new Date(NaN);if(t.timezone){if(s=Kv(t.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(a+i),u=new Date(0);return u.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),u.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),u}return new Date(a+i+s)}const to={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Rv=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Hv=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Bv=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Vv(n){const r={},e=n.split(to.dateTimeDelimiter);let t;if(e.length>2)return r;if(/:/.test(e[0])?t=e[0]:(r.date=e[0],t=e[1],to.timeZoneDelimiter.test(r.date)&&(r.date=n.split(to.timeZoneDelimiter)[0],t=n.substr(r.date.length,n.length))),t){const o=to.timezone.exec(t);o?(r.time=t.replace(o[1],""),r.timezone=o[1]):r.time=t}return r}function zv(n,r){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+r)+"})|(\\d{2}|[+-]\\d{"+(2+r)+"})$)"),t=n.match(e);if(!t)return{year:NaN,restDateString:""};const o=t[1]?parseInt(t[1]):null,a=t[2]?parseInt(t[2]):null;return{year:a===null?o:a*100,restDateString:n.slice((t[1]||t[2]).length)}}function Uv(n,r){if(r===null)return new Date(NaN);const e=n.match(Rv);if(!e)return new Date(NaN);const t=!!e[4],o=er(e[1]),a=er(e[2])-1,i=er(e[3]),s=er(e[4]),l=er(e[5])-1;if(t)return Zv(r,s,l)?qv(r,s,l):new Date(NaN);{const u=new Date(0);return!Xv(r,a,i)||!Jv(r,o)?new Date(NaN):(u.setUTCFullYear(r,a,Math.max(o,i)),u)}}function er(n){return n?parseInt(n):1}function Qv(n){const r=n.match(Hv);if(!r)return NaN;const e=Sa(r[1]),t=Sa(r[2]),o=Sa(r[3]);return eg(e,t,o)?e*zr+t*Vr+o*1e3:NaN}function Sa(n){return n&&parseFloat(n.replace(",","."))||0}function Kv(n){if(n==="Z")return 0;const r=n.match(Bv);if(!r)return 0;const e=r[1]==="+"?-1:1,t=parseInt(r[2]),o=r[3]&&parseInt(r[3])||0;return tg(t,o)?e*(t*zr+o*Vr):NaN}function qv(n,r,e){const t=new Date(0);t.setUTCFullYear(n,0,4);const o=t.getUTCDay()||7,a=(r-1)*7+e+1-o;return t.setUTCDate(t.getUTCDate()+a),t}const Gv=[31,null,31,30,31,30,31,31,30,31,30,31];function Il(n){return n%400===0||n%4===0&&n%100!==0}function Xv(n,r,e){return r>=0&&r<=11&&e>=1&&e<=(Gv[r]||(Il(n)?29:28))}function Jv(n,r){return r>=1&&r<=(Il(n)?366:365)}function Zv(n,r,e){return r>=1&&r<=53&&e>=0&&e<=6}function eg(n,r,e){return n===24?r===0&&e===0:e>=0&&e<60&&r>=0&&r<60&&n>=0&&n<25}function tg(n,r){return r>=0&&r<=59}function ng(n){const r=B(n),e=r.getFullYear(),t=r.getMonth(),o=ue(n,0);return o.setFullYear(e,t+1,0),o.setHours(0,0,0,0),o.getDate()}function Ue(n,r){const e=B(n),t=e.getFullYear(),o=e.getDate(),a=ue(n,0);a.setFullYear(t,r,15),a.setHours(0,0,0,0);const i=ng(a);return e.setMonth(r,Math.min(o,i)),e}function rg(n,r){let e=B(n);return isNaN(+e)?ue(n,NaN):(r.year!=null&&e.setFullYear(r.year),r.month!=null&&(e=Ue(e,r.month)),r.date!=null&&e.setDate(r.date),r.hours!=null&&e.setHours(r.hours),r.minutes!=null&&e.setMinutes(r.minutes),r.seconds!=null&&e.setSeconds(r.seconds),r.milliseconds!=null&&e.setMilliseconds(r.milliseconds),e)}function no(n,r){const e=B(n);return e.setHours(r),e}function ro(n,r){const e=B(n);return e.setMinutes(r),e}function wn(n,r){const e=B(n),t=Math.trunc(e.getMonth()/3)+1,o=r-t;return Ue(e,e.getMonth()+o*3)}function oo(n,r){const e=B(n);return e.setSeconds(r),e}function ct(n,r){const e=B(n);return isNaN(+e)?ue(n,NaN):(e.setFullYear(r),e)}function Fl(n){const r=B(n);return r.setDate(1),r.setHours(0,0,0,0),r}function og(n,r){return It(n,-r)}function xn(n,r){return Ze(n,-r)}function Ll(n,r){return ga(n,-r)}function Al(n,r){return Ur(n,-r)}function Dn(n,r){return bt(n,-r)}/*!
36
+ color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,e==null?void 0:e.key)}return(l=e==null?void 0:e.onChange)==null||l.call(e,o),o}}function _o(n,r){if(n===void 0)throw new Error("Unexpected undefined");return n}const qc=(n,r)=>Math.abs(n-r)<1,Gc=(n,r,e)=>{let t;return function(...o){n.clearTimeout(t),t=n.setTimeout(()=>r.apply(this,o),e)}},Xc=n=>n,Jc=n=>{const r=Math.max(n.startIndex-n.overscan,0),e=Math.min(n.endIndex+n.overscan,n.count-1),t=[];for(let o=r;o<=e;o++)t.push(o);return t},Zc=(n,r)=>{const e=n.scrollElement;if(!e)return;const t=n.targetWindow;if(!t)return;const o=i=>{const{width:s,height:l}=i;r({width:Math.round(s),height:Math.round(l)})};if(o(e.getBoundingClientRect()),!t.ResizeObserver)return()=>{};const a=new t.ResizeObserver(i=>{const s=i[0];if(s!=null&&s.borderBoxSize){const l=s.borderBoxSize[0];if(l){o({width:l.inlineSize,height:l.blockSize});return}}o(e.getBoundingClientRect())});return a.observe(e,{box:"border-box"}),()=>{a.unobserve(e)}},Pi={passive:!0},ed=typeof window>"u"?!0:"onscrollend"in window,td=(n,r)=>{const e=n.scrollElement;if(!e)return;const t=n.targetWindow;if(!t)return;let o=0;const a=ed?()=>{}:Gc(t,()=>{r(o,!1)},n.options.isScrollingResetDelay),i=u=>()=>{o=e[n.options.horizontal?"scrollLeft":"scrollTop"],a(),r(o,u)},s=i(!0),l=i(!1);return l(),e.addEventListener("scroll",s,Pi),e.addEventListener("scrollend",l,Pi),()=>{e.removeEventListener("scroll",s),e.removeEventListener("scrollend",l)}},nd=(n,r,e)=>{if(r!=null&&r.borderBoxSize){const t=r.borderBoxSize[0];if(t)return Math.round(t[e.options.horizontal?"inlineSize":"blockSize"])}return Math.round(n.getBoundingClientRect()[e.options.horizontal?"width":"height"])},rd=(n,{adjustments:r=0,behavior:e},t)=>{var o,a;const i=n+r;(a=(o=t.scrollElement)==null?void 0:o.scrollTo)==null||a.call(o,{[t.options.horizontal?"left":"top"]:i,behavior:e})};class od{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(o=>{o.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var o;return(o=t())==null?void 0:o.disconnect()},observe:o=>{var a;return(a=t())==null?void 0:a.observe(o,{box:"border-box"})},unobserve:o=>{var a;return(a=t())==null?void 0:a.unobserve(o)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,o])=>{typeof o>"u"&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Xc,rangeExtractor:Jc,onChange:()=>{},measureElement:nd,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...e}},this.notify=(e,t)=>{var o,a;const{startIndex:i,endIndex:s}=this.range??{startIndex:void 0,endIndex:void 0},l=this.calculateRange();(e||i!==(l==null?void 0:l.startIndex)||s!==(l==null?void 0:l.endIndex))&&((a=(o=this.options).onChange)==null||a.call(o,this,t))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t){this.notify(!1,!1);return}this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((e=this.scrollElement)==null?void 0:e.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(o,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o;const i=this.isScrolling;this.isScrolling=a,this.notify(i!==a,a)}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const o=new Map,a=new Map;for(let i=t-1;i>=0;i--){const s=e[i];if(o.has(s.lane))continue;const l=a.get(s.lane);if(l==null||s.end>l.end?a.set(s.lane,s):s.end<l.end&&o.set(s.lane,!0),o.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((i,s)=>i.end===s.end?i.index-s.index:i.end-s.end)[0]:void 0},this.getMeasurementOptions=Yn(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,o,a,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:o,getItemKey:a,enabled:i}),{key:!1}),this.getMeasurements=Yn(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:o,getItemKey:a,enabled:i},s)=>{var l;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(f=>{this.itemSizeCache.set(f.key,f.size)}));const u=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,u);for(let f=u;f<e;f++){let m=(l=this.measurementsCache[f])==null?void 0:l.measureElement;m||(m=k=>{const P=a(f),M=this.elementsCache.get(P);if(!k){M&&(this.observer.unobserve(M),this.elementsCache.delete(P));return}M!==k&&(M&&this.observer.unobserve(M),this.observer.observe(k),this.elementsCache.set(P,k)),k.isConnected&&this.resizeItem(f,this.options.measureElement(k,void 0,this))});const p=a(f),h=this.options.lanes===1?c[f-1]:this.getFurthestMeasurement(c,f),v=h?h.end+this.options.gap:t+o,g=s.get(p),b=typeof g=="number"?g:this.options.estimateSize(f),w=v+b,x=h?h.lane:f%this.options.lanes;c[f]={index:f,start:v,size:b,end:w,key:p,lane:x,measureElement:m}}return this.measurementsCache=c,c},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Yn(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,o)=>this.range=e.length>0&&t>0?ad({measurements:e,outerSize:t,scrollOffset:o}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=Yn(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(e,t,o,a)=>t===null?[]:e({startIndex:t.startIndex,endIndex:t.endIndex,overscan:o,count:a}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,o=e.getAttribute(t);return o?parseInt(o,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const o=this.indexFromElement(e),a=this.getMeasurements()[o];if(!a||!e.isConnected){this.elementsCache.forEach((s,l)=>{s===e&&(this.observer.unobserve(e),this.elementsCache.delete(l))});return}const i=this.elementsCache.get(a.key);i!==e&&(i&&this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(a.key,e)),this.resizeItem(o,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const o=this.getMeasurements()[e];if(!o)return;const a=this.itemSizeCache.get(o.key)??o.size,i=t-a;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,i,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",i),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,t)),this.notify(!0,!1))},this.measureElement=e=>{e&&this._measureElement(e,void 0)},this.getVirtualItems=Yn(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{const o=[];for(let a=0,i=e.length;a<i;a++){const s=e[a],l=t[s];o.push(l)}return o},{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(t.length!==0)return _o(t[Mi(0,t.length-1,o=>_o(t[o]).start,e)])},this.getOffsetForAlignment=(e,t)=>{const o=this.getSize(),a=this.getScrollOffset();t==="auto"&&(e<=a?t="start":e>=a+o?t="end":t="start"),t==="start"?e=e:t==="end"?e=e-o:t==="center"&&(e=e-o/2);const i=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-o;return Math.max(Math.min(l,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const o=this.getMeasurements()[e];if(!o)return;const a=this.getSize(),i=this.getScrollOffset();if(t==="auto")if(o.end>=i+a-this.options.scrollPaddingEnd)t="end";else if(o.start<=i+this.options.scrollPaddingStart)t="start";else return[i,t];const s=t==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,t),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:o})},this.scrollToIndex=(e,{align:t="auto",behavior:o}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const a=this.getOffsetForIndex(e,t);if(!a)return;const[i,s]=a;this._scrollToOffset(i,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){const[u]=_o(this.getOffsetForIndex(e,s));qc(u,this.getScrollOffset())||this.scrollToIndex(e,{align:s,behavior:o})}else this.scrollToIndex(e,{align:s,behavior:o})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),t==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let o;return t.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((e=t[t.length-1])==null?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map(a=>a.end)),o-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(e,{adjustments:t,behavior:o})=>{this.options.scrollToFn(e,{behavior:o,adjustments:t},this)},this.measure=()=>{var e,t;this.itemSizeCache=new Map,(t=(e=this.options).onChange)==null||t.call(e,this,!1)},this.setOptions(r)}}const Mi=(n,r,e,t)=>{for(;n<=r;){const o=(n+r)/2|0,a=e(o);if(a<t)n=o+1;else if(a>t)r=o-1;else return o}return n>0?n-1:0};function ad({measurements:n,outerSize:r,scrollOffset:e}){const t=n.length-1,a=Mi(0,t,s=>n[s].start,e);let i=a;for(;i<t&&n[i].end<e+r;)i++;return{startIndex:a,endIndex:i}}const id=typeof document<"u"?B.useLayoutEffect:B.useEffect;function sd(n){const r=B.useReducer(()=>({}),{})[1],e={...n,onChange:(o,a)=>{var i;a?xe.flushSync(r):r(),(i=n.onChange)==null||i.call(n,o,a)}},[t]=B.useState(()=>new od(e));return t.setOptions(e),B.useEffect(()=>t._didMount(),[]),id(()=>t._willUpdate()),t}function ld(n){return sd({observeElementRect:Zc,observeElementOffset:td,scrollToFn:rd,...n})}function ud(n,r){return n!==null&&r!==null&&typeof n=="object"&&typeof r=="object"&&"id"in n&&"id"in r?n.id===r.id:n===r}function Ti(n=ud){return d.useCallback((r,e)=>{if(typeof n=="string"){let t=n;return(r==null?void 0:r[t])===(e==null?void 0:e[t])}return n(r,e)},[n])}function cd(n){if(n===null)return{width:0,height:0};let{width:r,height:e}=n.getBoundingClientRect();return{width:r,height:e}}function Oo(n,r=!1){let[e,t]=d.useReducer(()=>({}),{}),o=d.useMemo(()=>cd(n),[n,e]);return ne(()=>{if(!n)return;let a=new ResizeObserver(t);return a.observe(n),()=>{a.disconnect()}},[n]),r?{width:`${o.width}px`,height:`${o.height}px`}:o}let dd=class extends Map{constructor(r){super(),this.factory=r}get(r){let e=super.get(r);return e===void 0&&(e=this.factory(r),this.set(r,e)),e}};function Ni(n,r){let e=n(),t=new Set;return{getSnapshot(){return e},subscribe(o){return t.add(o),()=>t.delete(o)},dispatch(o,...a){let i=r[o].call(e,...a);i&&(e=i,t.forEach(s=>s()))}}}function Ii(n){return d.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot)}let fd=new dd(()=>Ni(()=>[],{ADD(n){return this.includes(n)?this:[...this,n]},REMOVE(n){let r=this.indexOf(n);if(r===-1)return this;let e=this.slice();return e.splice(r,1),e}}));function ln(n,r){let e=fd.get(r),t=d.useId(),o=Ii(e);if(ne(()=>{if(n)return e.dispatch("ADD",t),()=>e.dispatch("REMOVE",t)},[e,n]),!n)return!1;let a=o.indexOf(t),i=o.length;return a===-1&&(a=i,i+=1),a===i-1}let Po=new Map,jn=new Map;function Fi(n){var r;let e=(r=jn.get(n))!=null?r:0;return jn.set(n,e+1),e!==0?()=>Li(n):(Po.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0,()=>Li(n))}function Li(n){var r;let e=(r=jn.get(n))!=null?r:1;if(e===1?jn.delete(n):jn.set(n,e-1),e!==1)return;let t=Po.get(n);t&&(t["aria-hidden"]===null?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",t["aria-hidden"]),n.inert=t.inert,Po.delete(n))}function Mo(n,{allowed:r,disallowed:e}={}){let t=ln(n,"inert-others");ne(()=>{var o,a;if(!t)return;let i=Je();for(let l of(o=e==null?void 0:e())!=null?o:[])l&&i.add(Fi(l));let s=(a=r==null?void 0:r())!=null?a:[];for(let l of s){if(!l)continue;let u=Vt(l);if(!u)continue;let c=l.parentElement;for(;c&&c!==u.body;){for(let f of c.children)s.some(m=>f.contains(m))||i.add(Fi(f));c=c.parentElement}}return i.dispose},[t,r,e])}function To(n,r,e){let t=vt(o=>{let a=o.getBoundingClientRect();a.x===0&&a.y===0&&a.width===0&&a.height===0&&e()});d.useEffect(()=>{if(!n)return;let o=r===null?null:r instanceof HTMLElement?r:r.current;if(!o)return;let a=Je();if(typeof ResizeObserver<"u"){let i=new ResizeObserver(()=>t.current(o));i.observe(o),a.add(()=>i.disconnect())}if(typeof IntersectionObserver<"u"){let i=new IntersectionObserver(()=>t.current(o));i.observe(o),a.add(()=>i.disconnect())}return()=>a.dispose()},[r,t,n])}let wr=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(n=>`${n}:not([tabindex='-1'])`).join(","),pd=["[data-autofocus]"].map(n=>`${n}:not([tabindex='-1'])`).join(",");var Ze=(n=>(n[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n[n.AutoFocus=64]="AutoFocus",n))(Ze||{}),No=(n=>(n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow",n))(No||{}),hd=(n=>(n[n.Previous=-1]="Previous",n[n.Next=1]="Next",n))(hd||{});function Ai(n=document.body){return n==null?[]:Array.from(n.querySelectorAll(wr)).sort((r,e)=>Math.sign((r.tabIndex||Number.MAX_SAFE_INTEGER)-(e.tabIndex||Number.MAX_SAFE_INTEGER)))}function md(n=document.body){return n==null?[]:Array.from(n.querySelectorAll(pd)).sort((r,e)=>Math.sign((r.tabIndex||Number.MAX_SAFE_INTEGER)-(e.tabIndex||Number.MAX_SAFE_INTEGER)))}var Io=(n=>(n[n.Strict=0]="Strict",n[n.Loose=1]="Loose",n))(Io||{});function $i(n,r=0){var e;return n===((e=Vt(n))==null?void 0:e.body)?!1:Ne(r,{0(){return n.matches(wr)},1(){let t=n;for(;t!==null;){if(t.matches(wr))return!0;t=t.parentElement}return!1}})}var vd=(n=>(n[n.Keyboard=0]="Keyboard",n[n.Mouse=1]="Mouse",n))(vd||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",n=>{n.metaKey||n.altKey||n.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",n=>{n.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:n.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function gt(n){n==null||n.focus({preventScroll:!0})}let gd=["textarea","input"].join(",");function bd(n){var r,e;return(e=(r=n==null?void 0:n.matches)==null?void 0:r.call(n,gd))!=null?e:!1}function Fo(n,r=e=>e){return n.slice().sort((e,t)=>{let o=r(e),a=r(t);if(o===null||a===null)return 0;let i=o.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function yd(n,r){return un(Ai(),r,{relativeTo:n})}function un(n,r,{sorted:e=!0,relativeTo:t=null,skipElements:o=[]}={}){let a=Array.isArray(n)?n.length>0?n[0].ownerDocument:document:n.ownerDocument,i=Array.isArray(n)?e?Fo(n):n:r&64?md(n):Ai(n);o.length>0&&i.length>1&&(i=i.filter(p=>!o.some(h=>h!=null&&"current"in h?(h==null?void 0:h.current)===p:h===p))),t=t??a.activeElement;let s=(()=>{if(r&5)return 1;if(r&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(r&1)return 0;if(r&2)return Math.max(0,i.indexOf(t))-1;if(r&4)return Math.max(0,i.indexOf(t))+1;if(r&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=r&32?{preventScroll:!0}:{},c=0,f=i.length,m;do{if(c>=f||c+f<=0)return 0;let p=l+c;if(r&16)p=(p+f)%f;else{if(p<0)return 3;if(p>=f)return 1}m=i[p],m==null||m.focus(u),c+=s}while(m!==a.activeElement);return r&6&&bd(m)&&m.select(),2}function Yi(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function wd(){return/Android/gi.test(window.navigator.userAgent)}function ji(){return Yi()||wd()}function Wn(n,r,e,t){let o=vt(e);d.useEffect(()=>{if(!n)return;function a(i){o.current(i)}return document.addEventListener(r,a,t),()=>document.removeEventListener(r,a,t)},[n,r,t])}function Wi(n,r,e,t){let o=vt(e);d.useEffect(()=>{if(!n)return;function a(i){o.current(i)}return window.addEventListener(r,a,t),()=>window.removeEventListener(r,a,t)},[n,r,t])}const Hi=30;function Lo(n,r,e){let t=ln(n,"outside-click"),o=vt(e),a=d.useCallback(function(l,u){if(l.defaultPrevented)return;let c=u(l);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let f=function m(p){return typeof p=="function"?m(p()):Array.isArray(p)||p instanceof Set?p:[p]}(r);for(let m of f)if(m!==null&&(m.contains(c)||l.composed&&l.composedPath().includes(m)))return;return!$i(c,Io.Loose)&&c.tabIndex!==-1&&l.preventDefault(),o.current(l,c)},[o,r]),i=d.useRef(null);Wn(t,"pointerdown",l=>{var u,c;i.current=((c=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:c[0])||l.target},!0),Wn(t,"mousedown",l=>{var u,c;i.current=((c=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:c[0])||l.target},!0),Wn(t,"click",l=>{ji()||i.current&&(a(l,()=>i.current),i.current=null)},!0);let s=d.useRef({x:0,y:0});Wn(t,"touchstart",l=>{s.current.x=l.touches[0].clientX,s.current.y=l.touches[0].clientY},!0),Wn(t,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-s.current.x)>=Hi||Math.abs(u.y-s.current.y)>=Hi))return a(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),Wi(t,"blur",l=>a(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Pt(...n){return d.useMemo(()=>Vt(...n),[...n])}function Ao(n,r,e,t){let o=vt(e);d.useEffect(()=>{n=n??window;function a(i){o.current(i)}return n.addEventListener(r,a,t),()=>n.removeEventListener(r,a,t)},[n,r,t])}function Ri(n){let r=d.useRef({value:"",selectionStart:null,selectionEnd:null});return Ao(n,"blur",e=>{let t=e.target;t instanceof HTMLInputElement&&(r.current={value:t.value,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})}),L(()=>{if(document.activeElement!==n&&n instanceof HTMLInputElement&&n.isConnected){if(n.focus({preventScroll:!0}),n.value!==r.current.value)n.setSelectionRange(n.value.length,n.value.length);else{let{selectionStart:e,selectionEnd:t}=r.current;e!==null&&t!==null&&n.setSelectionRange(e,t)}r.current={value:"",selectionStart:null,selectionEnd:null}}})}function Bi(n,r){return d.useMemo(()=>{var e;if(n.type)return n.type;let t=(e=n.as)!=null?e:"button";if(typeof t=="string"&&t.toLowerCase()==="button"||(r==null?void 0:r.tagName)==="BUTTON"&&!r.hasAttribute("type"))return"button"},[n.type,n.as,r])}function xd(){let n;return{before({doc:r}){var e;let t=r.documentElement,o=(e=r.defaultView)!=null?e:window;n=Math.max(0,o.innerWidth-t.clientWidth)},after({doc:r,d:e}){let t=r.documentElement,o=Math.max(0,t.clientWidth-t.offsetWidth),a=Math.max(0,n-o);e.style(t,"paddingRight",`${a}px`)}}}function Dd(){return Yi()?{before({doc:n,d:r,meta:e}){function t(o){return e.containers.flatMap(a=>a()).some(a=>a.contains(o))}r.microTask(()=>{var o;if(window.getComputedStyle(n.documentElement).scrollBehavior!=="auto"){let s=Je();s.style(n.documentElement,"scrollBehavior","auto"),r.add(()=>r.microTask(()=>s.dispose()))}let a=(o=window.scrollY)!=null?o:window.pageYOffset,i=null;r.addEventListener(n,"click",s=>{if(s.target instanceof HTMLElement)try{let l=s.target.closest("a");if(!l)return;let{hash:u}=new URL(l.href),c=n.querySelector(u);c&&!t(c)&&(i=c)}catch{}},!0),r.addEventListener(n,"touchstart",s=>{if(s.target instanceof HTMLElement)if(t(s.target)){let l=s.target;for(;l.parentElement&&t(l.parentElement);)l=l.parentElement;r.style(l,"overscrollBehavior","contain")}else r.style(s.target,"touchAction","none")}),r.addEventListener(n,"touchmove",s=>{if(s.target instanceof HTMLElement){if(s.target.tagName==="INPUT")return;if(t(s.target)){let l=s.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),r.add(()=>{var s;let l=(s=window.scrollY)!=null?s:window.pageYOffset;a!==l&&window.scrollTo(0,a),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{}}function Ed(){return{before({doc:n,d:r}){r.style(n.documentElement,"overflow","hidden")}}}function Cd(n){let r={};for(let e of n)Object.assign(r,e(r));return r}let zt=Ni(()=>new Map,{PUSH(n,r){var e;let t=(e=this.get(n))!=null?e:{doc:n,count:0,d:Je(),meta:new Set};return t.count++,t.meta.add(r),this.set(n,t),this},POP(n,r){let e=this.get(n);return e&&(e.count--,e.meta.delete(r)),this},SCROLL_PREVENT({doc:n,d:r,meta:e}){let t={doc:n,d:r,meta:Cd(e)},o=[Dd(),xd(),Ed()];o.forEach(({before:a})=>a==null?void 0:a(t)),o.forEach(({after:a})=>a==null?void 0:a(t))},SCROLL_ALLOW({d:n}){n.dispose()},TEARDOWN({doc:n}){this.delete(n)}});zt.subscribe(()=>{let n=zt.getSnapshot(),r=new Map;for(let[e]of n)r.set(e,e.documentElement.style.overflow);for(let e of n.values()){let t=r.get(e.doc)==="hidden",o=e.count!==0;(o&&!t||!o&&t)&&zt.dispatch(e.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",e),e.count===0&&zt.dispatch("TEARDOWN",e)}});function kd(n,r,e=()=>({containers:[]})){let t=Ii(zt),o=r?t.get(r):void 0,a=o?o.count>0:!1;return ne(()=>{if(!(!r||!n))return zt.dispatch("PUSH",r,e),()=>zt.dispatch("POP",r,e)},[n,r]),a}function $o(n,r,e=()=>[document.body]){let t=ln(n,"scroll-lock");kd(t,r,o=>{var a;return{containers:[...(a=o.containers)!=null?a:[],e]}})}function Vi(n){return[n.screenX,n.screenY]}function zi(){let n=d.useRef([-1,-1]);return{wasMoved(r){let e=Vi(r);return n.current[0]===e[0]&&n.current[1]===e[1]?!1:(n.current=e,!0)},update(r){n.current=Vi(r)}}}function Sd(n=0){let[r,e]=d.useState(n),t=d.useCallback(l=>e(l),[r]),o=d.useCallback(l=>e(u=>u|l),[r]),a=d.useCallback(l=>(r&l)===l,[r]),i=d.useCallback(l=>e(u=>u&~l),[e]),s=d.useCallback(l=>e(u=>u^l),[e]);return{flags:r,setFlag:t,addFlag:o,hasFlag:a,removeFlag:i,toggleFlag:s}}var Qi;typeof process<"u"&&typeof globalThis<"u"&&((Qi=process==null?void 0:process.env)==null?void 0:Qi.NODE_ENV)==="test"&&typeof Element.prototype.getAnimations>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
37
+ `)),[]});var _d=(n=>(n[n.None=0]="None",n[n.Closed=1]="Closed",n[n.Enter=2]="Enter",n[n.Leave=4]="Leave",n))(_d||{});function Yo(n){let r={};for(let e in n)n[e]===!0&&(r[`data-${e}`]="");return r}function jo(n,r,e,t){let[o,a]=d.useState(e),{hasFlag:i,addFlag:s,removeFlag:l}=Sd(n&&o?3:0),u=d.useRef(!1),c=d.useRef(!1),f=mt();return ne(()=>{var m;if(n){if(e&&a(!0),!r){e&&s(3);return}return(m=t==null?void 0:t.start)==null||m.call(t,e),Od(r,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,!c.current&&(e?(s(3),l(4)):(s(4),l(2)))},run(){c.current?e?(l(3),s(4)):(l(4),s(3)):e?l(1):s(1)},done(){var p;c.current&&typeof r.getAnimations=="function"&&r.getAnimations().length>0||(u.current=!1,l(7),e||a(!1),(p=t==null?void 0:t.end)==null||p.call(t,e))}})}},[n,e,r,f]),n?[o,{closed:i(1),enter:i(2),leave:i(4),transition:i(2)||i(4)}]:[e,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Od(n,{prepare:r,run:e,done:t,inFlight:o}){let a=Je();return Md(n,{prepare:r,inFlight:o}),a.nextFrame(()=>{e(),a.requestAnimationFrame(()=>{a.add(Pd(n,t))})}),a.dispose}function Pd(n,r){var e,t;let o=Je();if(!n)return o.dispose;let a=!1;o.add(()=>{a=!0});let i=(t=(e=n.getAnimations)==null?void 0:e.call(n).filter(s=>s instanceof CSSTransition))!=null?t:[];return i.length===0?(r(),o.dispose):(Promise.allSettled(i.map(s=>s.finished)).then(()=>{a||r()}),o.dispose)}function Md(n,{inFlight:r,prepare:e}){if(r!=null&&r.current){e();return}let t=n.style.transition;n.style.transition="none",e(),n.offsetHeight,n.style.transition=t}function Td(n,{container:r,accept:e,walk:t}){let o=d.useRef(e),a=d.useRef(t);d.useEffect(()=>{o.current=e,a.current=t},[e,t]),ne(()=>{if(!r||!n)return;let i=Vt(r);if(!i)return;let s=o.current,l=a.current,u=Object.assign(f=>s(f),{acceptNode:s}),c=i.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,u,!1);for(;c.nextNode();)l(c.currentNode)},[r,n,o,a])}function Hn(n,r){let e=d.useRef([]),t=L(n);d.useEffect(()=>{let o=[...e.current];for(let[a,i]of r.entries())if(e.current[a]!==i){let s=t(r,o);return e.current=r,s}},[t,...r])}function cn(n){return Ui(n)?(n.nodeName||"").toLowerCase():"#document"}function ze(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function bt(n){var r;return(r=(Ui(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function Ui(n){return n instanceof Node||n instanceof ze(n).Node}function Ye(n){return n instanceof Element||n instanceof ze(n).Element}function tt(n){return n instanceof HTMLElement||n instanceof ze(n).HTMLElement}function Ki(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof ze(n).ShadowRoot}function Rn(n){const{overflow:r,overflowX:e,overflowY:t,display:o}=qe(n);return/auto|scroll|overlay|hidden|clip/.test(r+t+e)&&!["inline","contents"].includes(o)}function Nd(n){return["table","td","th"].includes(cn(n))}function xr(n){return[":popover-open",":modal"].some(r=>{try{return n.matches(r)}catch{return!1}})}function Wo(n){const r=Ho(),e=Ye(n)?qe(n):n;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!r&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!r&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(t=>(e.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(e.contain||"").includes(t))}function Id(n){let r=Mt(n);for(;tt(r)&&!dn(r);){if(Wo(r))return r;if(xr(r))return null;r=Mt(r)}return null}function Ho(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function dn(n){return["html","body","#document"].includes(cn(n))}function qe(n){return ze(n).getComputedStyle(n)}function Dr(n){return Ye(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Mt(n){if(cn(n)==="html")return n;const r=n.assignedSlot||n.parentNode||Ki(n)&&n.host||bt(n);return Ki(r)?r.host:r}function qi(n){const r=Mt(n);return dn(r)?n.ownerDocument?n.ownerDocument.body:n.body:tt(r)&&Rn(r)?r:qi(r)}function Bn(n,r,e){var t;r===void 0&&(r=[]),e===void 0&&(e=!0);const o=qi(n),a=o===((t=n.ownerDocument)==null?void 0:t.body),i=ze(o);return a?r.concat(i,i.visualViewport||[],Rn(o)?o:[],i.frameElement&&e?Bn(i.frameElement):[]):r.concat(o,Bn(o,[],e))}function Fd(){const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?n.brands.map(r=>{let{brand:e,version:t}=r;return e+"/"+t}).join(" "):navigator.userAgent}const nt=Math.min,Qe=Math.max,Er=Math.round,Cr=Math.floor,Tt=n=>({x:n,y:n}),Ld={left:"right",right:"left",bottom:"top",top:"bottom"},Ad={start:"end",end:"start"};function Ro(n,r,e){return Qe(n,nt(r,e))}function Qt(n,r){return typeof n=="function"?n(r):n}function Nt(n){return n.split("-")[0]}function fn(n){return n.split("-")[1]}function Gi(n){return n==="x"?"y":"x"}function Bo(n){return n==="y"?"height":"width"}function Ut(n){return["top","bottom"].includes(Nt(n))?"y":"x"}function Vo(n){return Gi(Ut(n))}function $d(n,r,e){e===void 0&&(e=!1);const t=fn(n),o=Vo(n),a=Bo(o);let i=o==="x"?t===(e?"end":"start")?"right":"left":t==="start"?"bottom":"top";return r.reference[a]>r.floating[a]&&(i=kr(i)),[i,kr(i)]}function Yd(n){const r=kr(n);return[zo(n),r,zo(r)]}function zo(n){return n.replace(/start|end/g,r=>Ad[r])}function jd(n,r,e){const t=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(n){case"top":case"bottom":return e?r?o:t:r?t:o;case"left":case"right":return r?a:i;default:return[]}}function Wd(n,r,e,t){const o=fn(n);let a=jd(Nt(n),e==="start",t);return o&&(a=a.map(i=>i+"-"+o),r&&(a=a.concat(a.map(zo)))),a}function kr(n){return n.replace(/left|right|bottom|top/g,r=>Ld[r])}function Hd(n){return{top:0,right:0,bottom:0,left:0,...n}}function Xi(n){return typeof n!="number"?Hd(n):{top:n,right:n,bottom:n,left:n}}function Sr(n){const{x:r,y:e,width:t,height:o}=n;return{width:t,height:o,top:e,left:r,right:r+t,bottom:e+o,x:r,y:e}}function Ji(n,r,e){let{reference:t,floating:o}=n;const a=Ut(r),i=Vo(r),s=Bo(i),l=Nt(r),u=a==="y",c=t.x+t.width/2-o.width/2,f=t.y+t.height/2-o.height/2,m=t[s]/2-o[s]/2;let p;switch(l){case"top":p={x:c,y:t.y-o.height};break;case"bottom":p={x:c,y:t.y+t.height};break;case"right":p={x:t.x+t.width,y:f};break;case"left":p={x:t.x-o.width,y:f};break;default:p={x:t.x,y:t.y}}switch(fn(r)){case"start":p[i]-=m*(e&&u?-1:1);break;case"end":p[i]+=m*(e&&u?-1:1);break}return p}const Rd=async(n,r,e)=>{const{placement:t="bottom",strategy:o="absolute",middleware:a=[],platform:i}=e,s=a.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(r));let u=await i.getElementRects({reference:n,floating:r,strategy:o}),{x:c,y:f}=Ji(u,t,l),m=t,p={},h=0;for(let v=0;v<s.length;v++){const{name:g,fn:b}=s[v],{x:w,y:x,data:k,reset:P}=await b({x:c,y:f,initialPlacement:t,placement:m,strategy:o,middlewareData:p,rects:u,platform:i,elements:{reference:n,floating:r}});c=w??c,f=x??f,p={...p,[g]:{...p[g],...k}},P&&h<=50&&(h++,typeof P=="object"&&(P.placement&&(m=P.placement),P.rects&&(u=P.rects===!0?await i.getElementRects({reference:n,floating:r,strategy:o}):P.rects),{x:c,y:f}=Ji(u,m,l)),v=-1)}return{x:c,y:f,placement:m,strategy:o,middlewareData:p}};async function _r(n,r){var e;r===void 0&&(r={});const{x:t,y:o,platform:a,rects:i,elements:s,strategy:l}=n,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:m=!1,padding:p=0}=Qt(r,n),h=Xi(p),g=s[m?f==="floating"?"reference":"floating":f],b=Sr(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(g)))==null||e?g:g.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),w=f==="floating"?{x:t,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),k=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},P=Sr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:l}):w);return{top:(b.top-P.top+h.top)/k.y,bottom:(P.bottom-b.bottom+h.bottom)/k.y,left:(b.left-P.left+h.left)/k.x,right:(P.right-b.right+h.right)/k.x}}const Bd=n=>({name:"arrow",options:n,async fn(r){const{x:e,y:t,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=r,{element:u,padding:c=0}=Qt(n,r)||{};if(u==null)return{};const f=Xi(c),m={x:e,y:t},p=Vo(o),h=Bo(p),v=await i.getDimensions(u),g=p==="y",b=g?"top":"left",w=g?"bottom":"right",x=g?"clientHeight":"clientWidth",k=a.reference[h]+a.reference[p]-m[p]-a.floating[h],P=m[p]-a.reference[p],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let S=M?M[x]:0;(!S||!await(i.isElement==null?void 0:i.isElement(M)))&&(S=s.floating[x]||a.floating[h]);const O=k/2-P/2,I=S/2-v[h]/2-1,W=nt(f[b],I),E=nt(f[w],I),C=W,_=S-v[h]-E,D=S/2-v[h]/2+O,N=Ro(C,D,_),A=!l.arrow&&fn(o)!=null&&D!==N&&a.reference[h]/2-(D<C?W:E)-v[h]/2<0,$=A?D<C?D-C:D-_:0;return{[p]:m[p]+$,data:{[p]:N,centerOffset:D-N-$,...A&&{alignmentOffset:$}},reset:A}}}),Vd=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var e,t;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:u}=r,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...g}=Qt(n,r);if((e=a.arrow)!=null&&e.alignmentOffset)return{};const b=Nt(o),w=Ut(s),x=Nt(s)===s,k=await(l.isRTL==null?void 0:l.isRTL(u.floating)),P=m||(x||!v?[kr(s)]:Yd(s)),M=h!=="none";!m&&M&&P.push(...Wd(s,v,h,k));const S=[s,...P],O=await _r(r,g),I=[];let W=((t=a.flip)==null?void 0:t.overflows)||[];if(c&&I.push(O[b]),f){const D=$d(o,i,k);I.push(O[D[0]],O[D[1]])}if(W=[...W,{placement:o,overflows:I}],!I.every(D=>D<=0)){var E,C;const D=(((E=a.flip)==null?void 0:E.index)||0)+1,N=S[D];if(N)return{data:{index:D,overflows:W},reset:{placement:N}};let A=(C=W.filter($=>$.overflows[0]<=0).sort(($,U)=>$.overflows[1]-U.overflows[1])[0])==null?void 0:C.placement;if(!A)switch(p){case"bestFit":{var _;const $=(_=W.filter(U=>{if(M){const j=Ut(U.placement);return j===w||j==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(j=>j>0).reduce((j,X)=>j+X,0)]).sort((U,j)=>U[1]-j[1])[0])==null?void 0:_[0];$&&(A=$);break}case"initialPlacement":A=s;break}if(o!==A)return{reset:{placement:A}}}return{}}}};async function zd(n,r){const{placement:e,platform:t,elements:o}=n,a=await(t.isRTL==null?void 0:t.isRTL(o.floating)),i=Nt(e),s=fn(e),l=Ut(e)==="y",u=["left","top"].includes(i)?-1:1,c=a&&l?-1:1,f=Qt(r,n);let{mainAxis:m,crossAxis:p,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),l?{x:p*c,y:m*u}:{x:m*u,y:p*c}}const Qd=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var e,t;const{x:o,y:a,placement:i,middlewareData:s}=r,l=await zd(r,n);return i===((e=s.offset)==null?void 0:e.placement)&&(t=s.arrow)!=null&&t.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},Ud=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:e,y:t,placement:o}=r,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:g=>{let{x:b,y:w}=g;return{x:b,y:w}}},...l}=Qt(n,r),u={x:e,y:t},c=await _r(r,l),f=Ut(Nt(o)),m=Gi(f);let p=u[m],h=u[f];if(a){const g=m==="y"?"top":"left",b=m==="y"?"bottom":"right",w=p+c[g],x=p-c[b];p=Ro(w,p,x)}if(i){const g=f==="y"?"top":"left",b=f==="y"?"bottom":"right",w=h+c[g],x=h-c[b];h=Ro(w,h,x)}const v=s.fn({...r,[m]:p,[f]:h});return{...v,data:{x:v.x-e,y:v.y-t}}}}},Kd=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){const{placement:e,rects:t,platform:o,elements:a}=r,{apply:i=()=>{},...s}=Qt(n,r),l=await _r(r,s),u=Nt(e),c=fn(e),f=Ut(e)==="y",{width:m,height:p}=t.floating;let h,v;u==="top"||u==="bottom"?(h=u,v=c===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=u,h=c==="end"?"top":"bottom");const g=p-l.top-l.bottom,b=m-l.left-l.right,w=nt(p-l[h],g),x=nt(m-l[v],b),k=!r.middlewareData.shift;let P=w,M=x;if(f?M=c||k?nt(x,b):b:P=c||k?nt(w,g):g,k&&!c){const O=Qe(l.left,0),I=Qe(l.right,0),W=Qe(l.top,0),E=Qe(l.bottom,0);f?M=m-2*(O!==0||I!==0?O+I:Qe(l.left,l.right)):P=p-2*(W!==0||E!==0?W+E:Qe(l.top,l.bottom))}await i({...r,availableWidth:M,availableHeight:P});const S=await o.getDimensions(a.floating);return m!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}};function Zi(n){const r=qe(n);let e=parseFloat(r.width)||0,t=parseFloat(r.height)||0;const o=tt(n),a=o?n.offsetWidth:e,i=o?n.offsetHeight:t,s=Er(e)!==a||Er(t)!==i;return s&&(e=a,t=i),{width:e,height:t,$:s}}function Qo(n){return Ye(n)?n:n.contextElement}function pn(n){const r=Qo(n);if(!tt(r))return Tt(1);const e=r.getBoundingClientRect(),{width:t,height:o,$:a}=Zi(r);let i=(a?Er(e.width):e.width)/t,s=(a?Er(e.height):e.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const qd=Tt(0);function es(n){const r=ze(n);return!Ho()||!r.visualViewport?qd:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Gd(n,r,e){return r===void 0&&(r=!1),!e||r&&e!==ze(n)?!1:r}function Kt(n,r,e,t){r===void 0&&(r=!1),e===void 0&&(e=!1);const o=n.getBoundingClientRect(),a=Qo(n);let i=Tt(1);r&&(t?Ye(t)&&(i=pn(t)):i=pn(n));const s=Gd(a,e,t)?es(a):Tt(0);let l=(o.left+s.x)/i.x,u=(o.top+s.y)/i.y,c=o.width/i.x,f=o.height/i.y;if(a){const m=ze(a),p=t&&Ye(t)?ze(t):t;let h=m,v=h.frameElement;for(;v&&t&&p!==h;){const g=pn(v),b=v.getBoundingClientRect(),w=qe(v),x=b.left+(v.clientLeft+parseFloat(w.paddingLeft))*g.x,k=b.top+(v.clientTop+parseFloat(w.paddingTop))*g.y;l*=g.x,u*=g.y,c*=g.x,f*=g.y,l+=x,u+=k,h=ze(v),v=h.frameElement}}return Sr({width:c,height:f,x:l,y:u})}function Xd(n){let{elements:r,rect:e,offsetParent:t,strategy:o}=n;const a=o==="fixed",i=bt(t),s=r?xr(r.floating):!1;if(t===i||s&&a)return e;let l={scrollLeft:0,scrollTop:0},u=Tt(1);const c=Tt(0),f=tt(t);if((f||!f&&!a)&&((cn(t)!=="body"||Rn(i))&&(l=Dr(t)),tt(t))){const m=Kt(t);u=pn(t),c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-l.scrollLeft*u.x+c.x,y:e.y*u.y-l.scrollTop*u.y+c.y}}function Jd(n){return Array.from(n.getClientRects())}function ts(n){return Kt(bt(n)).left+Dr(n).scrollLeft}function Zd(n){const r=bt(n),e=Dr(n),t=n.ownerDocument.body,o=Qe(r.scrollWidth,r.clientWidth,t.scrollWidth,t.clientWidth),a=Qe(r.scrollHeight,r.clientHeight,t.scrollHeight,t.clientHeight);let i=-e.scrollLeft+ts(n);const s=-e.scrollTop;return qe(t).direction==="rtl"&&(i+=Qe(r.clientWidth,t.clientWidth)-o),{width:o,height:a,x:i,y:s}}function ef(n,r){const e=ze(n),t=bt(n),o=e.visualViewport;let a=t.clientWidth,i=t.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const u=Ho();(!u||u&&r==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}function tf(n,r){const e=Kt(n,!0,r==="fixed"),t=e.top+n.clientTop,o=e.left+n.clientLeft,a=tt(n)?pn(n):Tt(1),i=n.clientWidth*a.x,s=n.clientHeight*a.y,l=o*a.x,u=t*a.y;return{width:i,height:s,x:l,y:u}}function ns(n,r,e){let t;if(r==="viewport")t=ef(n,e);else if(r==="document")t=Zd(bt(n));else if(Ye(r))t=tf(r,e);else{const o=es(n);t={...r,x:r.x-o.x,y:r.y-o.y}}return Sr(t)}function rs(n,r){const e=Mt(n);return e===r||!Ye(e)||dn(e)?!1:qe(e).position==="fixed"||rs(e,r)}function nf(n,r){const e=r.get(n);if(e)return e;let t=Bn(n,[],!1).filter(s=>Ye(s)&&cn(s)!=="body"),o=null;const a=qe(n).position==="fixed";let i=a?Mt(n):n;for(;Ye(i)&&!dn(i);){const s=qe(i),l=Wo(i);!l&&s.position==="fixed"&&(o=null),(a?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Rn(i)&&!l&&rs(n,i))?t=t.filter(c=>c!==i):o=s,i=Mt(i)}return r.set(n,t),t}function rf(n){let{element:r,boundary:e,rootBoundary:t,strategy:o}=n;const i=[...e==="clippingAncestors"?xr(r)?[]:nf(r,this._c):[].concat(e),t],s=i[0],l=i.reduce((u,c)=>{const f=ns(r,c,o);return u.top=Qe(f.top,u.top),u.right=nt(f.right,u.right),u.bottom=nt(f.bottom,u.bottom),u.left=Qe(f.left,u.left),u},ns(r,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function of(n){const{width:r,height:e}=Zi(n);return{width:r,height:e}}function af(n,r,e){const t=tt(r),o=bt(r),a=e==="fixed",i=Kt(n,!0,a,r);let s={scrollLeft:0,scrollTop:0};const l=Tt(0);if(t||!t&&!a)if((cn(r)!=="body"||Rn(o))&&(s=Dr(r)),t){const f=Kt(r,!0,a,r);l.x=f.x+r.clientLeft,l.y=f.y+r.clientTop}else o&&(l.x=ts(o));const u=i.left+s.scrollLeft-l.x,c=i.top+s.scrollTop-l.y;return{x:u,y:c,width:i.width,height:i.height}}function Uo(n){return qe(n).position==="static"}function os(n,r){return!tt(n)||qe(n).position==="fixed"?null:r?r(n):n.offsetParent}function as(n,r){const e=ze(n);if(xr(n))return e;if(!tt(n)){let o=Mt(n);for(;o&&!dn(o);){if(Ye(o)&&!Uo(o))return o;o=Mt(o)}return e}let t=os(n,r);for(;t&&Nd(t)&&Uo(t);)t=os(t,r);return t&&dn(t)&&Uo(t)&&!Wo(t)?e:t||Id(n)||e}const sf=async function(n){const r=this.getOffsetParent||as,e=this.getDimensions,t=await e(n.floating);return{reference:af(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:t.width,height:t.height}}};function lf(n){return qe(n).direction==="rtl"}const uf={convertOffsetParentRelativeRectToViewportRelativeRect:Xd,getDocumentElement:bt,getClippingRect:rf,getOffsetParent:as,getElementRects:sf,getClientRects:Jd,getDimensions:of,getScale:pn,isElement:Ye,isRTL:lf};function cf(n,r){let e=null,t;const o=bt(n);function a(){var s;clearTimeout(t),(s=e)==null||s.disconnect(),e=null}function i(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const{left:u,top:c,width:f,height:m}=n.getBoundingClientRect();if(s||r(),!f||!m)return;const p=Cr(c),h=Cr(o.clientWidth-(u+f)),v=Cr(o.clientHeight-(c+m)),g=Cr(u),w={rootMargin:-p+"px "+-h+"px "+-v+"px "+-g+"px",threshold:Qe(0,nt(1,l))||1};let x=!0;function k(P){const M=P[0].intersectionRatio;if(M!==l){if(!x)return i();M?i(!1,M):t=setTimeout(()=>{i(!1,1e-7)},1e3)}x=!1}try{e=new IntersectionObserver(k,{...w,root:o.ownerDocument})}catch{e=new IntersectionObserver(k,w)}e.observe(n)}return i(!0),a}function is(n,r,e,t){t===void 0&&(t={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=t,u=Qo(n),c=o||a?[...u?Bn(u):[],...Bn(r)]:[];c.forEach(b=>{o&&b.addEventListener("scroll",e,{passive:!0}),a&&b.addEventListener("resize",e)});const f=u&&s?cf(u,e):null;let m=-1,p=null;i&&(p=new ResizeObserver(b=>{let[w]=b;w&&w.target===u&&p&&(p.unobserve(r),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(r)})),e()}),u&&!l&&p.observe(u),p.observe(r));let h,v=l?Kt(n):null;l&&g();function g(){const b=Kt(n);v&&(b.x!==v.x||b.y!==v.y||b.width!==v.width||b.height!==v.height)&&e(),v=b,h=requestAnimationFrame(g)}return e(),()=>{var b;c.forEach(w=>{o&&w.removeEventListener("scroll",e),a&&w.removeEventListener("resize",e)}),f==null||f(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const Ko=_r,df=Qd,ff=Ud,pf=Vd,hf=Kd,ss=Bd,mf=(n,r,e)=>{const t=new Map,o={platform:uf,...e},a={...o.platform,_c:t};return Rd(n,r,{...o,platform:a})};var Or=typeof document<"u"?d.useLayoutEffect:d.useEffect;function Pr(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let e,t,o;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(e=n.length,e!==r.length)return!1;for(t=e;t--!==0;)if(!Pr(n[t],r[t]))return!1;return!0}if(o=Object.keys(n),e=o.length,e!==Object.keys(r).length)return!1;for(t=e;t--!==0;)if(!{}.hasOwnProperty.call(r,o[t]))return!1;for(t=e;t--!==0;){const a=o[t];if(!(a==="_owner"&&n.$$typeof)&&!Pr(n[a],r[a]))return!1}return!0}return n!==n&&r!==r}function ls(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function us(n,r){const e=ls(n);return Math.round(r*e)/e}function cs(n){const r=B.useRef(n);return Or(()=>{r.current=n}),r}function vf(n){n===void 0&&(n={});const{placement:r="bottom",strategy:e="absolute",middleware:t=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:u}=n,[c,f]=B.useState({x:0,y:0,strategy:e,placement:r,middlewareData:{},isPositioned:!1}),[m,p]=B.useState(t);Pr(m,t)||p(t);const[h,v]=B.useState(null),[g,b]=B.useState(null),w=B.useCallback($=>{$!==M.current&&(M.current=$,v($))},[]),x=B.useCallback($=>{$!==S.current&&(S.current=$,b($))},[]),k=a||h,P=i||g,M=B.useRef(null),S=B.useRef(null),O=B.useRef(c),I=l!=null,W=cs(l),E=cs(o),C=B.useCallback(()=>{if(!M.current||!S.current)return;const $={placement:r,strategy:e,middleware:m};E.current&&($.platform=E.current),mf(M.current,S.current,$).then(U=>{const j={...U,isPositioned:!0};_.current&&!Pr(O.current,j)&&(O.current=j,Sn.flushSync(()=>{f(j)}))})},[m,r,e,E]);Or(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,f($=>({...$,isPositioned:!1})))},[u]);const _=B.useRef(!1);Or(()=>(_.current=!0,()=>{_.current=!1}),[]),Or(()=>{if(k&&(M.current=k),P&&(S.current=P),k&&P){if(W.current)return W.current(k,P,C);C()}},[k,P,C,W,I]);const D=B.useMemo(()=>({reference:M,floating:S,setReference:w,setFloating:x}),[w,x]),N=B.useMemo(()=>({reference:k,floating:P}),[k,P]),A=B.useMemo(()=>{const $={position:e,left:0,top:0};if(!N.floating)return $;const U=us(N.floating,c.x),j=us(N.floating,c.y);return s?{...$,transform:"translate("+U+"px, "+j+"px)",...ls(N.floating)>=1.5&&{willChange:"transform"}}:{position:e,left:U,top:j}},[e,s,N.floating,c.x,c.y]);return B.useMemo(()=>({...c,update:C,refs:D,elements:N,floatingStyles:A}),[c,C,D,N,A])}const gf=n=>{function r(e){return{}.hasOwnProperty.call(e,"current")}return{name:"arrow",options:n,fn(e){const{element:t,padding:o}=typeof n=="function"?n(e):n;return t&&r(t)?t.current!=null?ss({element:t.current,padding:o}).fn(e):{}:t?ss({element:t,padding:o}).fn(e):{}}}},qo=(n,r)=>({...df(n),options:[n,r]}),bf=(n,r)=>({...ff(n),options:[n,r]}),ds=(n,r)=>({...pf(n),options:[n,r]}),yf=(n,r)=>({...hf(n),options:[n,r]}),wf=(n,r)=>({...gf(n),options:[n,r]}),fs={...B},xf=fs.useInsertionEffect||(n=>n());function ps(n){const r=B.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return xf(()=>{r.current=n}),B.useCallback(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return r.current==null?void 0:r.current(...t)},[])}var Mr=typeof document<"u"?d.useLayoutEffect:d.useEffect;function Go(){return Go=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},Go.apply(this,arguments)}let hs=!1,Df=0;const ms=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Df++;function Ef(){const[n,r]=B.useState(()=>hs?ms():void 0);return Mr(()=>{n==null&&r(ms())},[]),B.useEffect(()=>{hs=!0},[]),n}const vs=fs.useId||Ef;let Vn;process.env.NODE_ENV!=="production"&&(Vn=new Set);function gs(){for(var n,r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];const o="Floating UI: "+e.join(" ");if(!((n=Vn)!=null&&n.has(o))){var a;(a=Vn)==null||a.add(o),console.warn(o)}}function Cf(){for(var n,r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];const o="Floating UI: "+e.join(" ");if(!((n=Vn)!=null&&n.has(o))){var a;(a=Vn)==null||a.add(o),console.error(o)}}const kf=B.forwardRef(function(r,e){const{context:{placement:t,elements:{floating:o},middlewareData:{arrow:a}},width:i=14,height:s=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:c,stroke:f,d:m,style:{transform:p,...h}={},...v}=r;process.env.NODE_ENV!=="production"&&(e||gs("The `ref` prop is required for `FloatingArrow`."));const g=vs(),[b,w]=B.useState(!1);if(Mr(()=>{if(!o)return;qe(o).direction==="rtl"&&w(!0)},[o]),!o)return null;const x=u*2,k=x/2,P=i/2*(l/-8+1),M=s/2*l/4,[S,O]=t.split("-"),I=!!m,W=S==="top"||S==="bottom",E=c&&O==="end"?"bottom":"top";let C=c&&O==="end"?"right":"left";c&&b&&(C=O==="end"?"left":"right");const _=(a==null?void 0:a.x)!=null?c||a.x:"",D=(a==null?void 0:a.y)!=null?c||a.y:"",N=m||"M0,0"+(" H"+i)+(" L"+(i-P)+","+(s-M))+(" Q"+i/2+","+s+" "+P+","+(s-M))+" Z",A={top:I?"rotate(180deg)":"",left:I?"rotate(90deg)":"rotate(-90deg)",bottom:I?"":"rotate(180deg)",right:I?"rotate(-90deg)":"rotate(90deg)"}[S];return B.createElement("svg",Go({},v,{"aria-hidden":!0,ref:e,width:I?i:i+x,height:i,viewBox:"0 0 "+i+" "+(s>i?s:i),style:{position:"absolute",pointerEvents:"none",[C]:_,[E]:D,[S]:W||I?"100%":"calc(100% - "+x/2+"px)",transform:""+A+(p??""),...h}}),x>0&&B.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:f,strokeWidth:x+(m?0:1),d:N}),B.createElement("path",{stroke:x&&!m?v.fill:"none",d:N}),B.createElement("clipPath",{id:g},B.createElement("rect",{x:-k,y:k*(I?-1:1),width:i+x,height:i})))});function Sf(){const n=new Map;return{emit(r,e){var t;(t=n.get(r))==null||t.forEach(o=>o(e))},on(r,e){n.set(r,[...n.get(r)||[],e])},off(r,e){var t;n.set(r,((t=n.get(r))==null?void 0:t.filter(o=>o!==e))||[])}}}const _f=B.createContext(null),Of=B.createContext(null),Pf=()=>{var n;return((n=B.useContext(_f))==null?void 0:n.id)||null},Mf=()=>B.useContext(Of);function Tf(n){const{open:r=!1,onOpenChange:e,elements:t}=n,o=vs(),a=B.useRef({}),[i]=B.useState(()=>Sf()),s=Pf()!=null;if(process.env.NODE_ENV!=="production"){const p=t.reference;p&&!Ye(p)&&Cf("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=B.useState(t.reference),c=ps((p,h,v)=>{a.current.openEvent=p?h:void 0,i.emit("openchange",{open:p,event:h,reason:v,nested:s}),e==null||e(p,h,v)}),f=B.useMemo(()=>({setPositionReference:u}),[]),m=B.useMemo(()=>({reference:l||t.reference||null,floating:t.floating||null,domReference:t.reference}),[l,t.reference,t.floating]);return B.useMemo(()=>({dataRef:a,open:r,onOpenChange:c,elements:m,events:i,floatingId:o,refs:f}),[r,c,m,i,o,f])}function bs(n){n===void 0&&(n={});const{nodeId:r}=n,e=Tf({...n,elements:{reference:null,floating:null,...n.elements}}),t=n.rootContext||e,o=t.elements,[a,i]=B.useState(null),[s,l]=B.useState(null),c=(o==null?void 0:o.reference)||a,f=B.useRef(null),m=Mf();Mr(()=>{c&&(f.current=c)},[c]);const p=vf({...n,elements:{...o,...s&&{reference:s}}}),h=B.useCallback(x=>{const k=Ye(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;l(k),p.refs.setReference(k)},[p.refs]),v=B.useCallback(x=>{(Ye(x)||x===null)&&(f.current=x,i(x)),(Ye(p.refs.reference.current)||p.refs.reference.current===null||x!==null&&!Ye(x))&&p.refs.setReference(x)},[p.refs]),g=B.useMemo(()=>({...p.refs,setReference:v,setPositionReference:h,domReference:f}),[p.refs,v,h]),b=B.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),w=B.useMemo(()=>({...p,...t,refs:g,elements:b,nodeId:r}),[p,g,b,r,t]);return Mr(()=>{t.dataRef.current.floatingContext=w;const x=m==null?void 0:m.nodesRef.current.find(k=>k.id===r);x&&(x.context=w)}),B.useMemo(()=>({...p,context:w,refs:g,elements:b}),[p,g,b,w])}const ys="active",ws="selected";function Xo(n,r,e){const t=new Map,o=e==="item";let a=n;if(o&&n){const{[ys]:i,[ws]:s,...l}=n;a=l}return{...e==="floating"&&{tabIndex:-1},...a,...r.map(i=>{const s=i?i[e]:null;return typeof s=="function"?n?s(n):null:s}).concat(n).reduce((i,s)=>(s&&Object.entries(s).forEach(l=>{let[u,c]=l;if(!(o&&[ys,ws].includes(u)))if(u.indexOf("on")===0){if(t.has(u)||t.set(u,[]),typeof c=="function"){var f;(f=t.get(u))==null||f.push(c),i[u]=function(){for(var m,p=arguments.length,h=new Array(p),v=0;v<p;v++)h[v]=arguments[v];return(m=t.get(u))==null?void 0:m.map(g=>g(...h)).find(g=>g!==void 0)}}}else i[u]=c}),i),{})}}function Nf(n){n===void 0&&(n=[]);const r=n.map(s=>s==null?void 0:s.reference),e=n.map(s=>s==null?void 0:s.floating),t=n.map(s=>s==null?void 0:s.item),o=B.useCallback(s=>Xo(s,n,"reference"),r),a=B.useCallback(s=>Xo(s,n,"floating"),e),i=B.useCallback(s=>Xo(s,n,"item"),t);return B.useMemo(()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:i}),[o,a,i])}function xs(n,r){return{...n,rects:{...n.rects,floating:{...n.rects.floating,height:r}}}}const If=n=>({name:"inner",options:n,async fn(r){const{listRef:e,overflowRef:t,onFallbackChange:o,offset:a=0,index:i=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:u,...c}=Qt(n,r),{rects:f,elements:{floating:m}}=r,p=e.current[i];if(process.env.NODE_ENV!=="production"&&(r.placement.startsWith("bottom")||gs('`placement` side must be "bottom" when using the `inner`',"middleware.")),!p)return{};const h={...r,...await qo(-p.offsetTop-m.clientTop-f.reference.height/2-p.offsetHeight/2-a).fn(r)},v=(u==null?void 0:u.current)||m,g=await Ko(xs(h,v.scrollHeight),c),b=await Ko(h,{...c,elementContext:"reference"}),w=Math.max(0,g.top),x=h.y+w,k=Math.max(0,v.scrollHeight-w-Math.max(0,g.bottom));return v.style.maxHeight=k+"px",v.scrollTop=w,o&&(v.offsetHeight<p.offsetHeight*Math.min(s,e.current.length-1)-1||b.top>=-l||b.bottom>=-l?Sn.flushSync(()=>o(!0)):Sn.flushSync(()=>o(!1))),t&&(t.current=await Ko(xs({...h,y:x},v.offsetHeight),c)),{y:x}}});function Ff(n,r){const{open:e,elements:t}=n,{enabled:o=!0,overflowRef:a,scrollRef:i,onChange:s}=r,l=ps(s),u=B.useRef(!1),c=B.useRef(null),f=B.useRef(null);B.useEffect(()=>{if(!o)return;function p(v){if(v.ctrlKey||!h||a.current==null)return;const g=v.deltaY,b=a.current.top>=-.5,w=a.current.bottom>=-.5,x=h.scrollHeight-h.clientHeight,k=g<0?-1:1,P=g<0?"max":"min";h.scrollHeight<=h.clientHeight||(!b&&g>0||!w&&g<0?(v.preventDefault(),Sn.flushSync(()=>{l(M=>M+Math[P](g,x*k))})):/firefox/i.test(Fd())&&(h.scrollTop+=g))}const h=(i==null?void 0:i.current)||t.floating;if(e&&h)return h.addEventListener("wheel",p),requestAnimationFrame(()=>{c.current=h.scrollTop,a.current!=null&&(f.current={...a.current})}),()=>{c.current=null,f.current=null,h.removeEventListener("wheel",p)}},[o,e,t.floating,a,i,l]);const m=B.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const p=(i==null?void 0:i.current)||t.floating;if(!(!a.current||!p||!u.current)){if(c.current!==null){const h=p.scrollTop-c.current;(a.current.bottom<-.5&&h<-1||a.current.top<-.5&&h>1)&&Sn.flushSync(()=>l(v=>v+h))}requestAnimationFrame(()=>{c.current=p.scrollTop})}}}),[t.floating,l,a,i]);return B.useMemo(()=>o?{floating:m}:{},[o,m])}let hn=d.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});hn.displayName="FloatingContext";let Jo=d.createContext(null);Jo.displayName="PlacementContext";function Ds(n){return d.useMemo(()=>n?typeof n=="string"?{to:n}:n:null,[n])}function Es(){return d.useContext(hn).setReference}function Lf(){return d.useContext(hn).getReferenceProps}function Cs(){let{getFloatingProps:n,slot:r}=d.useContext(hn);return d.useCallback((...e)=>Object.assign({},n(...e),{"data-anchor":r.anchor}),[n,r])}function ks(n=null){n===!1&&(n=null),typeof n=="string"&&(n={to:n});let r=d.useContext(Jo),e=d.useMemo(()=>n,[JSON.stringify(n,typeof HTMLElement<"u"?(o,a)=>a instanceof HTMLElement?a.outerHTML:a:void 0)]);ne(()=>{r==null||r(e??null)},[r,e]);let t=d.useContext(hn);return d.useMemo(()=>[t.setFloating,n?t.styles:{}],[t.setFloating,n,t.styles])}let Ss=4;function _s({children:n,enabled:r=!0}){let[e,t]=d.useState(null),[o,a]=d.useState(0),i=d.useRef(null),[s,l]=d.useState(null);Af(s);let u=r&&e!==null&&s!==null,{to:c="bottom",gap:f=0,offset:m=0,padding:p=0,inner:h}=$f(e,s),[v,g="center"]=c.split(" ");ne(()=>{u&&a(0)},[u]);let{refs:b,floatingStyles:w,context:x}=bs({open:u,placement:v==="selection"?g==="center"?"bottom":`bottom-${g}`:g==="center"?`${v}`:`${v}-${g}`,strategy:"absolute",transform:!1,middleware:[qo({mainAxis:v==="selection"?0:f,crossAxis:m}),bf({padding:p}),v!=="selection"&&ds({padding:p}),v==="selection"&&h?If({...h,padding:p,overflowRef:i,offset:o,minItemsVisible:Ss,referenceOverflowThreshold:p,onFallbackChange(E){var C,_;if(!E)return;let D=x.elements.floating;if(!D)return;let N=parseFloat(getComputedStyle(D).scrollPaddingBottom)||0,A=Math.min(Ss,D.childElementCount),$=0,U=0;for(let j of(_=(C=x.elements.floating)==null?void 0:C.childNodes)!=null?_:[])if(j instanceof HTMLElement){let X=j.offsetTop,q=X+j.clientHeight+N,K=D.scrollTop,Y=K+D.clientHeight;if(X>=K&&q<=Y)A--;else{U=Math.max(0,Math.min(q,Y)-Math.max(X,K)),$=j.clientHeight;break}}A>=1&&a(j=>{let X=$*A-U+N;return j>=X?j:X})}}):null,yf({padding:p,apply({availableWidth:E,availableHeight:C,elements:_}){Object.assign(_.floating.style,{overflow:"auto",maxWidth:`${E}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${C}px)`})}})].filter(Boolean),whileElementsMounted:is}),[k=v,P=g]=x.placement.split("-");v==="selection"&&(k="selection");let M=d.useMemo(()=>({anchor:[k,P].filter(Boolean).join(" ")}),[k,P]),S=Ff(x,{overflowRef:i,onChange:a}),{getReferenceProps:O,getFloatingProps:I}=Nf([S]),W=L(E=>{l(E),b.setFloating(E)});return B.createElement(Jo.Provider,{value:t},B.createElement(hn.Provider,{value:{setFloating:W,setReference:b.setReference,styles:w,getReferenceProps:O,getFloatingProps:I,slot:M}},n))}function Af(n){ne(()=>{if(!n)return;let r=new MutationObserver(()=>{let e=window.getComputedStyle(n).maxHeight,t=parseFloat(e);if(isNaN(t))return;let o=parseInt(e);isNaN(o)||t!==o&&(n.style.maxHeight=`${Math.ceil(t)}px`)});return r.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>{r.disconnect()}},[n])}function $f(n,r){var e,t,o;let a=Zo((e=n==null?void 0:n.gap)!=null?e:"var(--anchor-gap, 0)",r),i=Zo((t=n==null?void 0:n.offset)!=null?t:"var(--anchor-offset, 0)",r),s=Zo((o=n==null?void 0:n.padding)!=null?o:"var(--anchor-padding, 0)",r);return{...n,gap:a,offset:i,padding:s}}function Zo(n,r,e=void 0){let t=mt(),o=L((l,u)=>{if(l==null)return[e,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!u)return[e,null];let c=Ps(l,u);return[c,f=>{let m=Os(l);{let p=m.map(h=>window.getComputedStyle(u).getPropertyValue(h));t.requestAnimationFrame(function h(){t.nextFrame(h);let v=!1;for(let[b,w]of m.entries()){let x=window.getComputedStyle(u).getPropertyValue(w);if(p[b]!==x){p[b]=x,v=!0;break}}if(!v)return;let g=Ps(l,u);c!==g&&(f(g),c=g)})}return t.dispose}]}return[e,null]}),a=d.useMemo(()=>o(n,r)[0],[n,r]),[i=a,s]=d.useState();return ne(()=>{let[l,u]=o(n,r);if(s(l),!!u)return u(s)},[n,r]),i}function Os(n){let r=/var\((.*)\)/.exec(n);if(r){let e=r[1].indexOf(",");if(e===-1)return[r[1]];let t=r[1].slice(0,e).trim(),o=r[1].slice(e+1).trim();return o?[t,...Os(o)]:[t]}return[]}function Ps(n,r){let e=document.createElement("div");r.appendChild(e),e.style.setProperty("margin-top","0px","important"),e.style.setProperty("margin-top",n,"important");let t=parseFloat(window.getComputedStyle(e).marginTop)||0;return r.removeChild(e),t}function Yf({children:n,freeze:r}){let e=Tr(r,n);return d.createElement(d.Fragment,null,e)}function Tr(n,r){let[e,t]=d.useState(r);return!n&&e!==r&&t(r),n?e:r}let Nr=d.createContext(null);Nr.displayName="OpenClosedContext";var Ae=(n=>(n[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n))(Ae||{});function mn(){return d.useContext(Nr)}function ea({value:n,children:r}){return d.createElement(Nr.Provider,{value:n},r)}function jf({children:n}){return d.createElement(Nr.Provider,{value:null},n)}function Wf(n){function r(){document.readyState!=="loading"&&(n(),document.removeEventListener("DOMContentLoaded",r))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",r),r())}let rt=[];Wf(()=>{function n(r){if(!(r.target instanceof HTMLElement)||r.target===document.body||rt[0]===r.target)return;let e=r.target;e=e.closest(wr),rt.unshift(e??r.target),rt=rt.filter(t=>t!=null&&t.isConnected),rt.splice(10)}window.addEventListener("click",n,{capture:!0}),window.addEventListener("mousedown",n,{capture:!0}),window.addEventListener("focus",n,{capture:!0}),document.body.addEventListener("click",n,{capture:!0}),document.body.addEventListener("mousedown",n,{capture:!0}),document.body.addEventListener("focus",n,{capture:!0})});function Hf(n){throw new Error("Unexpected object: "+n)}var ee=(n=>(n[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing",n))(ee||{});function zn(n,r){let e=r.resolveItems();if(e.length<=0)return null;let t=r.resolveActiveIndex(),o=t??-1;switch(n.focus){case 0:{for(let a=0;a<e.length;++a)if(!r.resolveDisabled(e[a],a,e))return a;return t}case 1:{o===-1&&(o=e.length);for(let a=o-1;a>=0;--a)if(!r.resolveDisabled(e[a],a,e))return a;return t}case 2:{for(let a=o+1;a<e.length;++a)if(!r.resolveDisabled(e[a],a,e))return a;return t}case 3:{for(let a=e.length-1;a>=0;--a)if(!r.resolveDisabled(e[a],a,e))return a;return t}case 4:{for(let a=0;a<e.length;++a)if(r.resolveId(e[a],a,e)===n.id)return a;return t}case 5:return null;default:Hf(n)}}var ta=(n=>(n[n.Left=0]="Left",n[n.Right=2]="Right",n))(ta||{});function Ms(n){let r=L(n),e=d.useRef(!1);d.useEffect(()=>(e.current=!1,()=>{e.current=!0,hr(()=>{e.current&&r()})}),[r])}function Rf(){let n=typeof document>"u";return"useSyncExternalStore"in B?(r=>r.useSyncExternalStore)(B)(()=>()=>{},()=>!1,()=>!n):!1}function Qn(){let n=Rf(),[r,e]=B.useState(Bt.isHandoffComplete);return r&&Bt.isHandoffComplete===!1&&e(!1),B.useEffect(()=>{r!==!0&&e(!0)},[r]),B.useEffect(()=>Bt.handoff(),[]),n?!1:r}let Ts=d.createContext(!1);function Bf(){return d.useContext(Ts)}function Ns(n){return d.createElement(Ts.Provider,{value:n.force},n.children)}function Vf(n){let r=Bf(),e=d.useContext(Fs),t=Pt(n),[o,a]=d.useState(()=>{var i;if(!r&&e!==null)return(i=e.current)!=null?i:null;if(Bt.isServer)return null;let s=t==null?void 0:t.getElementById("headlessui-portal-root");if(s)return s;if(t===null)return null;let l=t.createElement("div");return l.setAttribute("id","headlessui-portal-root"),t.body.appendChild(l)});return d.useEffect(()=>{o!==null&&(t!=null&&t.body.contains(o)||t==null||t.body.appendChild(o))},[o,t]),d.useEffect(()=>{r||e!==null&&a(e.current)},[e,a,r]),o}let Is=d.Fragment,zf=ye(function(n,r){let e=n,t=d.useRef(null),o=Ie(jc(c=>{t.current=c}),r),a=Pt(t),i=Vf(t),[s]=d.useState(()=>{var c;return Bt.isServer?null:(c=a==null?void 0:a.createElement("div"))!=null?c:null}),l=d.useContext(na),u=Qn();return ne(()=>{!i||!s||i.contains(s)||(s.setAttribute("data-headlessui-portal",""),i.appendChild(s))},[i,s]),ne(()=>{if(s&&l)return l.register(s)},[l,s]),Ms(()=>{var c;!i||!s||(s instanceof Node&&i.contains(s)&&i.removeChild(s),i.childNodes.length<=0&&((c=i.parentElement)==null||c.removeChild(i)))}),u?!i||!s?null:xe.createPortal(Ce({ourProps:{ref:o},theirProps:e,slot:{},defaultTag:Is,name:"Portal"}),s):null});function Qf(n,r){let e=Ie(r),{enabled:t=!0,...o}=n;return t?d.createElement(zf,{...o,ref:e}):Ce({ourProps:{ref:e},theirProps:o,slot:{},defaultTag:Is,name:"Portal"})}let Uf=d.Fragment,Fs=d.createContext(null);function Kf(n,r){let{target:e,...t}=n,o={ref:Ie(r)};return d.createElement(Fs.Provider,{value:e},Ce({ourProps:o,theirProps:t,defaultTag:Uf,name:"Popover.Group"}))}let na=d.createContext(null);function qf(){let n=d.useContext(na),r=d.useRef([]),e=L(a=>(r.current.push(a),n&&n.register(a),()=>t(a))),t=L(a=>{let i=r.current.indexOf(a);i!==-1&&r.current.splice(i,1),n&&n.unregister(a)}),o=d.useMemo(()=>({register:e,unregister:t,portals:r}),[e,t,r]);return[r,d.useMemo(()=>function({children:a}){return d.createElement(na.Provider,{value:o},a)},[o])]}let Gf=ye(Qf),Ls=ye(Kf),ra=Object.assign(Gf,{Group:Ls});var Xf=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(Xf||{}),Jf=(n=>(n[n.Single=0]="Single",n[n.Multi=1]="Multi",n))(Jf||{}),Zf=(n=>(n[n.Pointer=0]="Pointer",n[n.Focus=1]="Focus",n[n.Other=2]="Other",n))(Zf||{}),ep=(n=>(n[n.OpenCombobox=0]="OpenCombobox",n[n.CloseCombobox=1]="CloseCombobox",n[n.GoToOption=2]="GoToOption",n[n.SetTyping=3]="SetTyping",n[n.RegisterOption=4]="RegisterOption",n[n.UnregisterOption=5]="UnregisterOption",n[n.SetActivationTrigger=6]="SetActivationTrigger",n[n.UpdateVirtualConfiguration=7]="UpdateVirtualConfiguration",n[n.SetInputElement=8]="SetInputElement",n[n.SetButtonElement=9]="SetButtonElement",n[n.SetOptionsElement=10]="SetOptionsElement",n))(ep||{});function oa(n,r=e=>e){let e=n.activeOptionIndex!==null?n.options[n.activeOptionIndex]:null,t=r(n.options.slice()),o=t.length>0&&t[0].dataRef.current.order!==null?t.sort((i,s)=>i.dataRef.current.order-s.dataRef.current.order):Fo(t,i=>i.dataRef.current.domRef.current),a=e?o.indexOf(e):null;return a===-1&&(a=null),{options:o,activeOptionIndex:a}}let tp={1(n){var r;return(r=n.dataRef.current)!=null&&r.disabled||n.comboboxState===1?n:{...n,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,__demoMode:!1}},0(n){var r,e;if((r=n.dataRef.current)!=null&&r.disabled||n.comboboxState===0)return n;if((e=n.dataRef.current)!=null&&e.value){let t=n.dataRef.current.calculateIndex(n.dataRef.current.value);if(t!==-1)return{...n,activeOptionIndex:t,comboboxState:0,__demoMode:!1}}return{...n,comboboxState:0,__demoMode:!1}},3(n,r){return n.isTyping===r.isTyping?n:{...n,isTyping:r.isTyping}},2(n,r){var e,t,o,a;if((e=n.dataRef.current)!=null&&e.disabled||n.optionsElement&&!((t=n.dataRef.current)!=null&&t.optionsPropsRef.current.static)&&n.comboboxState===1)return n;if(n.virtual){let{options:u,disabled:c}=n.virtual,f=r.focus===ee.Specific?r.idx:zn(r,{resolveItems:()=>u,resolveActiveIndex:()=>{var p,h;return(h=(p=n.activeOptionIndex)!=null?p:u.findIndex(v=>!c(v)))!=null?h:null},resolveDisabled:c,resolveId(){throw new Error("Function not implemented.")}}),m=(o=r.trigger)!=null?o:2;return n.activeOptionIndex===f&&n.activationTrigger===m?n:{...n,activeOptionIndex:f,activationTrigger:m,isTyping:!1,__demoMode:!1}}let i=oa(n);if(i.activeOptionIndex===null){let u=i.options.findIndex(c=>!c.dataRef.current.disabled);u!==-1&&(i.activeOptionIndex=u)}let s=r.focus===ee.Specific?r.idx:zn(r,{resolveItems:()=>i.options,resolveActiveIndex:()=>i.activeOptionIndex,resolveId:u=>u.id,resolveDisabled:u=>u.dataRef.current.disabled}),l=(a=r.trigger)!=null?a:2;return n.activeOptionIndex===s&&n.activationTrigger===l?n:{...n,...i,isTyping:!1,activeOptionIndex:s,activationTrigger:l,__demoMode:!1}},4:(n,r)=>{var e,t,o;if((e=n.dataRef.current)!=null&&e.virtual)return{...n,options:[...n.options,r.payload]};let a=r.payload,i=oa(n,l=>(l.push(a),l));n.activeOptionIndex===null&&(t=n.dataRef.current)!=null&&t.isSelected(r.payload.dataRef.current.value)&&(i.activeOptionIndex=i.options.indexOf(a));let s={...n,...i,activationTrigger:2};return(o=n.dataRef.current)!=null&&o.__demoMode&&n.dataRef.current.value===void 0&&(s.activeOptionIndex=0),s},5:(n,r)=>{var e;if((e=n.dataRef.current)!=null&&e.virtual)return{...n,options:n.options.filter(o=>o.id!==r.id)};let t=oa(n,o=>{let a=o.findIndex(i=>i.id===r.id);return a!==-1&&o.splice(a,1),o});return{...n,...t,activationTrigger:2}},6:(n,r)=>n.activationTrigger===r.trigger?n:{...n,activationTrigger:r.trigger},7:(n,r)=>{var e,t;if(n.virtual===null)return{...n,virtual:{options:r.options,disabled:(e=r.disabled)!=null?e:()=>!1}};if(n.virtual.options===r.options&&n.virtual.disabled===r.disabled)return n;let o=n.activeOptionIndex;if(n.activeOptionIndex!==null){let a=r.options.indexOf(n.virtual.options[n.activeOptionIndex]);a!==-1?o=a:o=null}return{...n,activeOptionIndex:o,virtual:{options:r.options,disabled:(t=r.disabled)!=null?t:()=>!1}}},8:(n,r)=>n.inputElement===r.element?n:{...n,inputElement:r.element},9:(n,r)=>n.buttonElement===r.element?n:{...n,buttonElement:r.element},10:(n,r)=>n.optionsElement===r.element?n:{...n,optionsElement:r.element}},aa=d.createContext(null);aa.displayName="ComboboxActionsContext";function Un(n){let r=d.useContext(aa);if(r===null){let e=new Error(`<${n} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Un),e}return r}let As=d.createContext(null);function np(n){let r=vn("VirtualProvider"),{options:e}=r.virtual,[t,o]=d.useMemo(()=>{let u=r.optionsElement;if(!u)return[0,0];let c=window.getComputedStyle(u);return[parseFloat(c.paddingBlockStart||c.paddingTop),parseFloat(c.paddingBlockEnd||c.paddingBottom)]},[r.optionsElement]),a=ld({enabled:e.length!==0,scrollPaddingStart:t,scrollPaddingEnd:o,count:e.length,estimateSize(){return 40},getScrollElement(){return r.optionsElement},overscan:12}),[i,s]=d.useState(0);ne(()=>{s(u=>u+1)},[e]);let l=a.getVirtualItems();return l.length===0?null:d.createElement(As.Provider,{value:a},d.createElement("div",{style:{position:"relative",width:"100%",height:`${a.getTotalSize()}px`},ref:u=>{if(u){if(typeof process<"u"&&process.env.JEST_WORKER_ID!==void 0||r.activationTrigger===0)return;r.activeOptionIndex!==null&&e.length>r.activeOptionIndex&&a.scrollToIndex(r.activeOptionIndex)}}},l.map(u=>{var c;return d.createElement(d.Fragment,{key:u.key},d.cloneElement((c=n.children)==null?void 0:c.call(n,{...n.slot,option:e[u.index]}),{key:`${i}-${u.key}`,"data-index":u.index,"aria-setsize":e.length,"aria-posinset":u.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${u.start}px)`,overflowAnchor:"none"}}))})))}let Kn=d.createContext(null);Kn.displayName="ComboboxDataContext";function vn(n){let r=d.useContext(Kn);if(r===null){let e=new Error(`<${n} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,vn),e}return r}function rp(n,r){return Ne(r.type,tp,n,r)}let op=d.Fragment;function ap(n,r){var e,t;let o=mr(),{value:a,defaultValue:i,onChange:s,form:l,name:u,by:c,disabled:f=o||!1,onClose:m,__demoMode:p=!1,multiple:h=!1,immediate:v=!1,virtual:g=null,nullable:b,...w}=n,x=gi(i),[k=h?[]:void 0,P]=vi(a,s,x),[M,S]=d.useReducer(rp,{dataRef:d.createRef(),comboboxState:p?0:1,isTyping:!1,options:[],virtual:g?{options:g.options,disabled:(e=g.disabled)!=null?e:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:p}),O=d.useRef(!1),I=d.useRef({static:!1,hold:!1}),W=Ti(c),E=L(Q=>g?c===null?g.options.indexOf(Q):g.options.findIndex(ve=>W(ve,Q)):M.options.findIndex(ve=>W(ve.dataRef.current.value,Q))),C=d.useCallback(Q=>Ne(D.mode,{1:()=>k.some(ve=>W(ve,Q)),0:()=>W(k,Q)}),[k]),_=L(Q=>M.activeOptionIndex===E(Q)),D=d.useMemo(()=>({...M,immediate:v,optionsPropsRef:I,value:k,defaultValue:x,disabled:f,mode:h?1:0,virtual:g?M.virtual:null,get activeOptionIndex(){if(O.current&&M.activeOptionIndex===null&&(g?g.options.length>0:M.options.length>0)){if(g){let ve=g.options.findIndex(Re=>{var pt,sr;return!((sr=(pt=g.disabled)==null?void 0:pt.call(g,Re))!=null&&sr)});if(ve!==-1)return ve}let Q=M.options.findIndex(ve=>!ve.dataRef.current.disabled);if(Q!==-1)return Q}return M.activeOptionIndex},calculateIndex:E,compare:W,isSelected:C,isActive:_}),[k,x,f,h,p,M,g]);ne(()=>{var Q;g&&S({type:7,options:g.options,disabled:(Q=g.disabled)!=null?Q:null})},[g,g==null?void 0:g.options,g==null?void 0:g.disabled]),ne(()=>{M.dataRef.current=D},[D]);let N=D.comboboxState===0;Lo(N,[D.buttonElement,D.inputElement,D.optionsElement],()=>he.closeCombobox());let A=d.useMemo(()=>{var Q,ve,Re;return{open:D.comboboxState===0,disabled:f,activeIndex:D.activeOptionIndex,activeOption:D.activeOptionIndex===null?null:D.virtual?D.virtual.options[(Q=D.activeOptionIndex)!=null?Q:0]:(Re=(ve=D.options[D.activeOptionIndex])==null?void 0:ve.dataRef.current.value)!=null?Re:null,value:k}},[D,f,k]),$=L(()=>{if(D.activeOptionIndex!==null){if(he.setIsTyping(!1),D.virtual)Y(D.virtual.options[D.activeOptionIndex]);else{let{dataRef:Q}=D.options[D.activeOptionIndex];Y(Q.current.value)}he.goToOption(ee.Specific,D.activeOptionIndex)}}),U=L(()=>{S({type:0}),O.current=!0}),j=L(()=>{S({type:1}),O.current=!1,m==null||m()}),X=L(Q=>{S({type:3,isTyping:Q})}),q=L((Q,ve,Re)=>(O.current=!1,Q===ee.Specific?S({type:2,focus:ee.Specific,idx:ve,trigger:Re}):S({type:2,focus:Q,trigger:Re}))),K=L((Q,ve)=>(S({type:4,payload:{id:Q,dataRef:ve}}),()=>{D.isActive(ve.current.value)&&(O.current=!0),S({type:5,id:Q})})),Y=L(Q=>Ne(D.mode,{0(){return P==null?void 0:P(Q)},1(){let ve=D.value.slice(),Re=ve.findIndex(pt=>W(pt,Q));return Re===-1?ve.push(Q):ve.splice(Re,1),P==null?void 0:P(ve)}})),De=L(Q=>{S({type:6,trigger:Q})}),ue=L(Q=>{S({type:8,element:Q})}),Se=L(Q=>{S({type:9,element:Q})}),se=L(Q=>{S({type:10,element:Q})}),he=d.useMemo(()=>({onChange:Y,registerOption:K,goToOption:q,setIsTyping:X,closeCombobox:j,openCombobox:U,setActivationTrigger:De,selectActiveOption:$,setInputElement:ue,setButtonElement:Se,setOptionsElement:se}),[]),[He,Wt]=Oi(),me=r===null?{}:{ref:r},Oe=d.useCallback(()=>{if(x!==void 0)return P==null?void 0:P(x)},[P,x]);return d.createElement(Wt,{value:He,props:{htmlFor:(t=D.inputElement)==null?void 0:t.id},slot:{open:D.comboboxState===0,disabled:f}},d.createElement(_s,null,d.createElement(aa.Provider,{value:he},d.createElement(Kn.Provider,{value:D},d.createElement(ea,{value:Ne(D.comboboxState,{0:Ae.Open,1:Ae.Closed})},u!=null&&d.createElement(xi,{disabled:f,data:k!=null?{[u]:k}:{},form:l,onReset:Oe}),Ce({ourProps:me,theirProps:w,slot:A,defaultTag:op,name:"Combobox"}))))))}let ip="input";function sp(n,r){var e,t,o,a,i;let s=vn("Combobox.Input"),l=Un("Combobox.Input"),u=d.useId(),c=So(),{id:f=c||`headlessui-combobox-input-${u}`,onChange:m,displayValue:p,disabled:h=s.disabled||!1,autoFocus:v=!1,type:g="text",...b}=n,w=d.useRef(null),x=Ie(w,r,Es(),l.setInputElement),k=Pt(s.inputElement),P=mt(),M=L(()=>{l.onChange(null),s.optionsElement&&(s.optionsElement.scrollTop=0),l.goToOption(ee.Nothing)}),S=d.useMemo(()=>{var Y;return typeof p=="function"&&s.value!==void 0?(Y=p(s.value))!=null?Y:"":typeof s.value=="string"?s.value:""},[s.value,p]);Hn(([Y,De],[ue,Se])=>{if(s.isTyping)return;let se=w.current;se&&((Se===0&&De===1||Y!==ue)&&(se.value=Y),requestAnimationFrame(()=>{if(s.isTyping||!se||(k==null?void 0:k.activeElement)!==se)return;let{selectionStart:he,selectionEnd:He}=se;Math.abs((He??0)-(he??0))===0&&he===0&&se.setSelectionRange(se.value.length,se.value.length)}))},[S,s.comboboxState,k,s.isTyping]),Hn(([Y],[De])=>{if(Y===0&&De===1){if(s.isTyping)return;let ue=w.current;if(!ue)return;let Se=ue.value,{selectionStart:se,selectionEnd:he,selectionDirection:He}=ue;ue.value="",ue.value=Se,He!==null?ue.setSelectionRange(se,he,He):ue.setSelectionRange(se,he)}},[s.comboboxState]);let O=d.useRef(!1),I=L(()=>{O.current=!0}),W=L(()=>{P.nextFrame(()=>{O.current=!1})}),E=L(Y=>{switch(l.setIsTyping(!0),Y.key){case ae.Enter:if(s.comboboxState!==0||O.current)return;if(Y.preventDefault(),Y.stopPropagation(),s.activeOptionIndex===null){l.closeCombobox();return}l.selectActiveOption(),s.mode===0&&l.closeCombobox();break;case ae.ArrowDown:return Y.preventDefault(),Y.stopPropagation(),Ne(s.comboboxState,{0:()=>l.goToOption(ee.Next),1:()=>l.openCombobox()});case ae.ArrowUp:return Y.preventDefault(),Y.stopPropagation(),Ne(s.comboboxState,{0:()=>l.goToOption(ee.Previous),1:()=>{xe.flushSync(()=>l.openCombobox()),s.value||l.goToOption(ee.Last)}});case ae.Home:if(Y.shiftKey)break;return Y.preventDefault(),Y.stopPropagation(),l.goToOption(ee.First);case ae.PageUp:return Y.preventDefault(),Y.stopPropagation(),l.goToOption(ee.First);case ae.End:if(Y.shiftKey)break;return Y.preventDefault(),Y.stopPropagation(),l.goToOption(ee.Last);case ae.PageDown:return Y.preventDefault(),Y.stopPropagation(),l.goToOption(ee.Last);case ae.Escape:return s.comboboxState!==0?void 0:(Y.preventDefault(),s.optionsElement&&!s.optionsPropsRef.current.static&&Y.stopPropagation(),s.mode===0&&s.value===null&&M(),l.closeCombobox());case ae.Tab:if(s.comboboxState!==0)return;s.mode===0&&s.activationTrigger!==1&&l.selectActiveOption(),l.closeCombobox();break}}),C=L(Y=>{m==null||m(Y),s.mode===0&&Y.target.value===""&&M(),l.openCombobox()}),_=L(Y=>{var De,ue,Se;let se=(De=Y.relatedTarget)!=null?De:rt.find(he=>he!==Y.currentTarget);if(!((ue=s.optionsElement)!=null&&ue.contains(se))&&!((Se=s.buttonElement)!=null&&Se.contains(se))&&s.comboboxState===0)return Y.preventDefault(),s.mode===0&&s.value===null&&M(),l.closeCombobox()}),D=L(Y=>{var De,ue,Se;let se=(De=Y.relatedTarget)!=null?De:rt.find(he=>he!==Y.currentTarget);(ue=s.buttonElement)!=null&&ue.contains(se)||(Se=s.optionsElement)!=null&&Se.contains(se)||s.disabled||s.immediate&&s.comboboxState!==0&&P.microTask(()=>{xe.flushSync(()=>l.openCombobox()),l.setActivationTrigger(1)})}),N=$n(),A=ki(),{isFocused:$,focusProps:U}=Do({autoFocus:v}),{isHovered:j,hoverProps:X}=xo({isDisabled:h}),q=d.useMemo(()=>({open:s.comboboxState===0,disabled:h,hover:j,focus:$,autofocus:v}),[s,j,$,v,h]),K=Ln({ref:x,id:f,role:"combobox",type:g,"aria-controls":(e=s.optionsElement)==null?void 0:e.id,"aria-expanded":s.comboboxState===0,"aria-activedescendant":s.activeOptionIndex===null?void 0:s.virtual?(t=s.options.find(Y=>!Y.dataRef.current.disabled&&s.compare(Y.dataRef.current.value,s.virtual.options[s.activeOptionIndex])))==null?void 0:t.id:(o=s.options[s.activeOptionIndex])==null?void 0:o.id,"aria-labelledby":N,"aria-describedby":A,"aria-autocomplete":"list",defaultValue:(i=(a=n.defaultValue)!=null?a:s.defaultValue!==void 0?p==null?void 0:p(s.defaultValue):null)!=null?i:s.defaultValue,disabled:h||void 0,autoFocus:v,onCompositionStart:I,onCompositionEnd:W,onKeyDown:E,onChange:C,onFocus:D,onBlur:_},U,X);return Ce({ourProps:K,theirProps:b,slot:q,defaultTag:ip,name:"Combobox.Input"})}let lp="button";function up(n,r){var e;let t=vn("Combobox.Button"),o=Un("Combobox.Button"),a=Ie(r,o.setButtonElement),i=d.useId(),{id:s=`headlessui-combobox-button-${i}`,disabled:l=t.disabled||!1,autoFocus:u=!1,...c}=n,f=Ri(t.inputElement),m=L(S=>{switch(S.key){case ae.Space:case ae.Enter:S.preventDefault(),S.stopPropagation(),t.comboboxState===1&&xe.flushSync(()=>o.openCombobox()),f();return;case ae.ArrowDown:S.preventDefault(),S.stopPropagation(),t.comboboxState===1&&(xe.flushSync(()=>o.openCombobox()),t.value||o.goToOption(ee.First)),f();return;case ae.ArrowUp:S.preventDefault(),S.stopPropagation(),t.comboboxState===1&&(xe.flushSync(()=>o.openCombobox()),t.value||o.goToOption(ee.Last)),f();return;case ae.Escape:if(t.comboboxState!==0)return;S.preventDefault(),t.optionsElement&&!t.optionsPropsRef.current.static&&S.stopPropagation(),xe.flushSync(()=>o.closeCombobox()),f();return;default:return}}),p=L(S=>{S.preventDefault(),!Di(S.currentTarget)&&(S.button===ta.Left&&(t.comboboxState===0?o.closeCombobox():o.openCombobox()),f())}),h=$n([s]),{isFocusVisible:v,focusProps:g}=Do({autoFocus:u}),{isHovered:b,hoverProps:w}=xo({isDisabled:l}),{pressed:x,pressProps:k}=hi({disabled:l}),P=d.useMemo(()=>({open:t.comboboxState===0,active:x||t.comboboxState===0,disabled:l,value:t.value,hover:b,focus:v}),[t,b,v,x,l]),M=Ln({ref:a,id:s,type:Bi(n,t.buttonElement),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(e=t.optionsElement)==null?void 0:e.id,"aria-expanded":t.comboboxState===0,"aria-labelledby":h,disabled:l||void 0,autoFocus:u,onMouseDown:p,onKeyDown:m},g,w,k);return Ce({ourProps:M,theirProps:c,slot:P,defaultTag:lp,name:"Combobox.Button"})}let cp="div",dp=St.RenderStrategy|St.Static;function fp(n,r){var e,t,o;let a=d.useId(),{id:i=`headlessui-combobox-options-${a}`,hold:s=!1,anchor:l,portal:u=!1,modal:c=!0,transition:f=!1,...m}=n,p=vn("Combobox.Options"),h=Un("Combobox.Options"),v=Ds(l);v&&(u=!0);let[g,b]=ks(v),[w,x]=d.useState(null),k=Cs(),P=Ie(r,v?g:null,h.setOptionsElement,x),M=Pt(p.optionsElement),S=mn(),[O,I]=jo(f,w,S!==null?(S&Ae.Open)===Ae.Open:p.comboboxState===0);To(O,p.inputElement,h.closeCombobox);let W=p.__demoMode?!1:c&&p.comboboxState===0;$o(W,M);let E=p.__demoMode?!1:c&&p.comboboxState===0;Mo(E,{allowed:d.useCallback(()=>[p.inputElement,p.buttonElement,p.optionsElement],[p.inputElement,p.buttonElement,p.optionsElement])}),ne(()=>{var q;p.optionsPropsRef.current.static=(q=n.static)!=null?q:!1},[p.optionsPropsRef,n.static]),ne(()=>{p.optionsPropsRef.current.hold=s},[p.optionsPropsRef,s]),Td(p.comboboxState===0,{container:p.optionsElement,accept(q){return q.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:q.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(q){q.setAttribute("role","none")}});let C=$n([(e=p.buttonElement)==null?void 0:e.id]),_=d.useMemo(()=>({open:p.comboboxState===0,option:void 0}),[p.comboboxState]),D=L(()=>{h.setActivationTrigger(0)}),N=L(q=>{q.preventDefault(),h.setActivationTrigger(0)}),A=Ln(v?k():{},{"aria-labelledby":C,role:"listbox","aria-multiselectable":p.mode===1?!0:void 0,id:i,ref:P,style:{...m.style,...b,"--input-width":Oo(p.inputElement,!0).width,"--button-width":Oo(p.buttonElement,!0).width},onWheel:p.activationTrigger===0?void 0:D,onMouseDown:N,...Yo(I)}),$=O&&p.comboboxState===1,U=Tr($,(t=p.virtual)==null?void 0:t.options),j=Tr($,p.value),X=L(q=>p.compare(j,q));if(p.virtual){if(U===void 0)throw new Error("Missing `options` in virtual mode");Object.assign(m,{children:d.createElement(Kn.Provider,{value:U!==p.virtual.options?{...p,virtual:{...p.virtual,options:U}}:p},d.createElement(np,{slot:_},m.children))})}return d.createElement(ra,{enabled:u?n.static||O:!1},d.createElement(Kn.Provider,{value:p.mode===1?p:{...p,isSelected:X}},Ce({ourProps:A,theirProps:{...m,children:d.createElement(Yf,{freeze:$},typeof m.children=="function"?(o=m.children)==null?void 0:o.call(m,_):m.children)},slot:_,defaultTag:cp,features:dp,visible:O,name:"Combobox.Options"})))}let pp="div";function hp(n,r){var e,t,o,a;let i=vn("Combobox.Option"),s=Un("Combobox.Option"),l=d.useId(),{id:u=`headlessui-combobox-option-${l}`,value:c,disabled:f=(o=(t=(e=i.virtual)==null?void 0:e.disabled)==null?void 0:t.call(e,c))!=null?o:!1,order:m=null,...p}=n,h=Ri(i.inputElement),v=i.virtual?i.activeOptionIndex===i.calculateIndex(c):i.activeOptionIndex===null?!1:((a=i.options[i.activeOptionIndex])==null?void 0:a.id)===u,g=i.isSelected(c),b=d.useRef(null),w=vt({disabled:f,value:c,domRef:b,order:m}),x=d.useContext(As),k=Ie(r,b,x?x.measureElement:null),P=L(()=>{s.setIsTyping(!1),s.onChange(c)});ne(()=>s.registerOption(u,w),[w,u]);let M=d.useRef(!(i.virtual||i.__demoMode));ne(()=>{if(!i.virtual&&!i.__demoMode)return Je().requestAnimationFrame(()=>{M.current=!0})},[i.virtual,i.__demoMode]),ne(()=>{if(M.current&&i.comboboxState===0&&v&&i.activationTrigger!==0)return Je().requestAnimationFrame(()=>{var D,N;(N=(D=b.current)==null?void 0:D.scrollIntoView)==null||N.call(D,{block:"nearest"})})},[b,v,i.comboboxState,i.activationTrigger,i.activeOptionIndex]);let S=L(D=>{D.preventDefault(),D.button===ta.Left&&(f||(P(),ji()||requestAnimationFrame(()=>h()),i.mode===0&&s.closeCombobox()))}),O=L(()=>{if(f)return s.goToOption(ee.Nothing);let D=i.calculateIndex(c);s.goToOption(ee.Specific,D)}),I=zi(),W=L(D=>I.update(D)),E=L(D=>{if(!I.wasMoved(D)||f||v)return;let N=i.calculateIndex(c);s.goToOption(ee.Specific,N,0)}),C=L(D=>{I.wasMoved(D)&&(f||v&&(i.optionsPropsRef.current.hold||s.goToOption(ee.Nothing)))}),_=d.useMemo(()=>({active:v,focus:v,selected:g,disabled:f}),[v,g,f]);return Ce({ourProps:{id:u,ref:k,role:"option",tabIndex:f===!0?void 0:-1,"aria-disabled":f===!0?!0:void 0,"aria-selected":g,disabled:void 0,onMouseDown:S,onFocus:O,onPointerEnter:W,onMouseEnter:W,onPointerMove:E,onMouseMove:E,onPointerLeave:C,onMouseLeave:C},theirProps:p,slot:_,defaultTag:pp,name:"Combobox.Option"})}let mp=ye(ap),vp=ye(up),$s=ye(sp),gp=yr,Ys=ye(fp),js=ye(hp),bp=Object.assign(mp,{Input:$s,Button:vp,Label:gp,Options:Ys,Option:js});function yp(n,r=typeof document<"u"?document.defaultView:null,e){let t=ln(n,"escape");Ao(r,"keydown",o=>{t&&(o.defaultPrevented||o.key===ae.Escape&&e(o))})}function wp(){var n;let[r]=d.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[e,t]=d.useState((n=r==null?void 0:r.matches)!=null?n:!1);return ne(()=>{if(!r)return;function o(a){t(a.matches)}return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[r]),e}function xp({defaultContainers:n=[],portals:r,mainTreeNode:e}={}){let t=Pt(e),o=L(()=>{var a,i;let s=[];for(let l of n)l!==null&&(l instanceof HTMLElement?s.push(l):"current"in l&&l.current instanceof HTMLElement&&s.push(l.current));if(r!=null&&r.current)for(let l of r.current)s.push(l);for(let l of(a=t==null?void 0:t.querySelectorAll("html > *, body > *"))!=null?a:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(e&&(l.contains(e)||l.contains((i=e==null?void 0:e.getRootNode())==null?void 0:i.host))||s.some(u=>l.contains(u))||s.push(l));return s});return{resolveContainers:o,contains:L(a=>o().some(i=>i.contains(a)))}}let Ws=d.createContext(null);function Hs({children:n,node:r}){let[e,t]=d.useState(null),o=Rs(r??e);return d.createElement(Ws.Provider,{value:o},n,o===null&&d.createElement(An,{features:sn.Hidden,ref:a=>{var i,s;if(a){for(let l of(s=(i=Vt(a))==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?s:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(a)){t(l);break}}}}))}function Rs(n=null){var r;return(r=d.useContext(Ws))!=null?r:n}function ia(){let n=d.useRef(!1);return ne(()=>(n.current=!0,()=>{n.current=!1}),[]),n}var qn=(n=>(n[n.Forwards=0]="Forwards",n[n.Backwards=1]="Backwards",n))(qn||{});function Dp(){let n=d.useRef(0);return Wi(!0,"keydown",r=>{r.key==="Tab"&&(n.current=r.shiftKey?1:0)},!0),n}function Bs(n){if(!n)return new Set;if(typeof n=="function")return new Set(n());let r=new Set;for(let e of n.current)e.current instanceof HTMLElement&&r.add(e.current);return r}let Ep="div";var qt=(n=>(n[n.None=0]="None",n[n.InitialFocus=1]="InitialFocus",n[n.TabLock=2]="TabLock",n[n.FocusLock=4]="FocusLock",n[n.RestoreFocus=8]="RestoreFocus",n[n.AutoFocus=16]="AutoFocus",n))(qt||{});function Cp(n,r){let e=d.useRef(null),t=Ie(e,r),{initialFocus:o,initialFocusFallback:a,containers:i,features:s=15,...l}=n;Qn()||(s=0);let u=Pt(e);Op(s,{ownerDocument:u});let c=Pp(s,{ownerDocument:u,container:e,initialFocus:o,initialFocusFallback:a});Mp(s,{ownerDocument:u,container:e,containers:i,previousActiveElement:c});let f=Dp(),m=L(b=>{let w=e.current;w&&(x=>x())(()=>{Ne(f.current,{[qn.Forwards]:()=>{un(w,Ze.First,{skipElements:[b.relatedTarget,a]})},[qn.Backwards]:()=>{un(w,Ze.Last,{skipElements:[b.relatedTarget,a]})}})})}),p=ln(!!(s&2),"focus-trap#tab-lock"),h=mt(),v=d.useRef(!1),g={ref:t,onKeyDown(b){b.key=="Tab"&&(v.current=!0,h.requestAnimationFrame(()=>{v.current=!1}))},onBlur(b){if(!(s&4))return;let w=Bs(i);e.current instanceof HTMLElement&&w.add(e.current);let x=b.relatedTarget;x instanceof HTMLElement&&x.dataset.headlessuiFocusGuard!=="true"&&(Vs(w,x)||(v.current?un(e.current,Ne(f.current,{[qn.Forwards]:()=>Ze.Next,[qn.Backwards]:()=>Ze.Previous})|Ze.WrapAround,{relativeTo:b.target}):b.target instanceof HTMLElement&&gt(b.target)))}};return d.createElement(d.Fragment,null,p&&d.createElement(An,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:sn.Focusable}),Ce({ourProps:g,theirProps:l,defaultTag:Ep,name:"FocusTrap"}),p&&d.createElement(An,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:sn.Focusable}))}let kp=ye(Cp),Sp=Object.assign(kp,{features:qt});function _p(n=!0){let r=d.useRef(rt.slice());return Hn(([e],[t])=>{t===!0&&e===!1&&hr(()=>{r.current.splice(0)}),t===!1&&e===!0&&(r.current=rt.slice())},[n,rt,r]),L(()=>{var e;return(e=r.current.find(t=>t!=null&&t.isConnected))!=null?e:null})}function Op(n,{ownerDocument:r}){let e=!!(n&8),t=_p(e);Hn(()=>{e||(r==null?void 0:r.activeElement)===(r==null?void 0:r.body)&&gt(t())},[e]),Ms(()=>{e&&gt(t())})}function Pp(n,{ownerDocument:r,container:e,initialFocus:t,initialFocusFallback:o}){let a=d.useRef(null),i=ln(!!(n&1),"focus-trap#initial-focus"),s=ia();return Hn(()=>{if(n===0)return;if(!i){o!=null&&o.current&&gt(o.current);return}let l=e.current;l&&hr(()=>{if(!s.current)return;let u=r==null?void 0:r.activeElement;if(t!=null&&t.current){if((t==null?void 0:t.current)===u){a.current=u;return}}else if(l.contains(u)){a.current=u;return}if(t!=null&&t.current)gt(t.current);else{if(n&16){if(un(l,Ze.First|Ze.AutoFocus)!==No.Error)return}else if(un(l,Ze.First)!==No.Error)return;if(o!=null&&o.current&&(gt(o.current),(r==null?void 0:r.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}a.current=r==null?void 0:r.activeElement})},[o,i,n]),a}function Mp(n,{ownerDocument:r,container:e,containers:t,previousActiveElement:o}){let a=ia(),i=!!(n&4);Ao(r==null?void 0:r.defaultView,"focus",s=>{if(!i||!a.current)return;let l=Bs(t);e.current instanceof HTMLElement&&l.add(e.current);let u=o.current;if(!u)return;let c=s.target;c&&c instanceof HTMLElement?Vs(l,c)?(o.current=c,gt(c)):(s.preventDefault(),s.stopPropagation(),gt(u)):gt(o.current)},!0)}function Vs(n,r){for(let e of n)if(e.contains(r))return!0;return!1}function zs(n){var r;return!!(n.enter||n.enterFrom||n.enterTo||n.leave||n.leaveFrom||n.leaveTo)||((r=n.as)!=null?r:Us)!==d.Fragment||d.Children.count(n.children)===1}let Ir=d.createContext(null);Ir.displayName="TransitionContext";var Tp=(n=>(n.Visible="visible",n.Hidden="hidden",n))(Tp||{});function Np(){let n=d.useContext(Ir);if(n===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return n}function Ip(){let n=d.useContext(Fr);if(n===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return n}let Fr=d.createContext(null);Fr.displayName="NestingContext";function Lr(n){return"children"in n?Lr(n.children):n.current.filter(({el:r})=>r.current!==null).filter(({state:r})=>r==="visible").length>0}function Qs(n,r){let e=vt(n),t=d.useRef([]),o=ia(),a=mt(),i=L((p,h=_t.Hidden)=>{let v=t.current.findIndex(({el:g})=>g===p);v!==-1&&(Ne(h,{[_t.Unmount](){t.current.splice(v,1)},[_t.Hidden](){t.current[v].state="hidden"}}),a.microTask(()=>{var g;!Lr(t)&&o.current&&((g=e.current)==null||g.call(e))}))}),s=L(p=>{let h=t.current.find(({el:v})=>v===p);return h?h.state!=="visible"&&(h.state="visible"):t.current.push({el:p,state:"visible"}),()=>i(p,_t.Unmount)}),l=d.useRef([]),u=d.useRef(Promise.resolve()),c=d.useRef({enter:[],leave:[]}),f=L((p,h,v)=>{l.current.splice(0),r&&(r.chains.current[h]=r.chains.current[h].filter(([g])=>g!==p)),r==null||r.chains.current[h].push([p,new Promise(g=>{l.current.push(g)})]),r==null||r.chains.current[h].push([p,new Promise(g=>{Promise.all(c.current[h].map(([b,w])=>w)).then(()=>g())})]),h==="enter"?u.current=u.current.then(()=>r==null?void 0:r.wait.current).then(()=>v(h)):v(h)}),m=L((p,h,v)=>{Promise.all(c.current[h].splice(0).map(([g,b])=>b)).then(()=>{var g;(g=l.current.shift())==null||g()}).then(()=>v(h))});return d.useMemo(()=>({children:t,register:s,unregister:i,onStart:f,onStop:m,wait:u,chains:c}),[s,i,t,f,m,c,u])}let Us=d.Fragment,Ks=St.RenderStrategy;function Fp(n,r){var e,t;let{transition:o=!0,beforeEnter:a,afterEnter:i,beforeLeave:s,afterLeave:l,enter:u,enterFrom:c,enterTo:f,entered:m,leave:p,leaveFrom:h,leaveTo:v,...g}=n,[b,w]=d.useState(null),x=d.useRef(null),k=zs(n),P=Ie(...k?[x,r,w]:r===null?[]:[r]),M=(e=g.unmount)==null||e?_t.Unmount:_t.Hidden,{show:S,appear:O,initial:I}=Np(),[W,E]=d.useState(S?"visible":"hidden"),C=Ip(),{register:_,unregister:D}=C;ne(()=>_(x),[_,x]),ne(()=>{if(M===_t.Hidden&&x.current){if(S&&W!=="visible"){E("visible");return}return Ne(W,{hidden:()=>D(x),visible:()=>_(x)})}},[W,x,_,D,S,M]);let N=Qn();ne(()=>{if(k&&N&&W==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,W,N,k]);let A=I&&!O,$=O&&S&&I,U=d.useRef(!1),j=Qs(()=>{U.current||(E("hidden"),D(x))},C),X=L(Se=>{U.current=!0;let se=Se?"enter":"leave";j.onStart(x,se,he=>{he==="enter"?a==null||a():he==="leave"&&(s==null||s())})}),q=L(Se=>{let se=Se?"enter":"leave";U.current=!1,j.onStop(x,se,he=>{he==="enter"?i==null||i():he==="leave"&&(l==null||l())}),se==="leave"&&!Lr(j)&&(E("hidden"),D(x))});d.useEffect(()=>{k&&o||(X(S),q(S))},[S,k,o]);let K=!(!o||!k||!N||A),[,Y]=jo(K,b,S,{start:X,end:q}),De=Ot({ref:P,className:((t=Co(g.className,$&&u,$&&c,Y.enter&&u,Y.enter&&Y.closed&&c,Y.enter&&!Y.closed&&f,Y.leave&&p,Y.leave&&!Y.closed&&h,Y.leave&&Y.closed&&v,!Y.transition&&S&&m))==null?void 0:t.trim())||void 0,...Yo(Y)}),ue=0;return W==="visible"&&(ue|=Ae.Open),W==="hidden"&&(ue|=Ae.Closed),Y.enter&&(ue|=Ae.Opening),Y.leave&&(ue|=Ae.Closing),d.createElement(Fr.Provider,{value:j},d.createElement(ea,{value:ue},Ce({ourProps:De,theirProps:g,defaultTag:Us,features:Ks,visible:W==="visible",name:"Transition.Child"})))}function Lp(n,r){let{show:e,appear:t=!1,unmount:o=!0,...a}=n,i=d.useRef(null),s=zs(n),l=Ie(...s?[i,r]:r===null?[]:[r]);Qn();let u=mn();if(e===void 0&&u!==null&&(e=(u&Ae.Open)===Ae.Open),e===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,f]=d.useState(e?"visible":"hidden"),m=Qs(()=>{e||f("hidden")}),[p,h]=d.useState(!0),v=d.useRef([e]);ne(()=>{p!==!1&&v.current[v.current.length-1]!==e&&(v.current.push(e),h(!1))},[v,e]);let g=d.useMemo(()=>({show:e,appear:t,initial:p}),[e,t,p]);ne(()=>{e?f("visible"):!Lr(m)&&i.current!==null&&f("hidden")},[e,m]);let b={unmount:o},w=L(()=>{var k;p&&h(!1),(k=n.beforeEnter)==null||k.call(n)}),x=L(()=>{var k;p&&h(!1),(k=n.beforeLeave)==null||k.call(n)});return d.createElement(Fr.Provider,{value:m},d.createElement(Ir.Provider,{value:g},Ce({ourProps:{...b,as:d.Fragment,children:d.createElement(qs,{ref:l,...b,...a,beforeEnter:w,beforeLeave:x})},theirProps:{},defaultTag:d.Fragment,features:Ks,visible:c==="visible",name:"Transition"})))}function Ap(n,r){let e=d.useContext(Ir)!==null,t=mn()!==null;return d.createElement(d.Fragment,null,!e&&t?d.createElement(sa,{ref:r,...n}):d.createElement(qs,{ref:r,...n}))}let sa=ye(Lp),qs=ye(Fp),la=ye(Ap),Gs=Object.assign(sa,{Child:la,Root:sa});var $p=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))($p||{}),Yp=(n=>(n[n.SetTitleId=0]="SetTitleId",n))(Yp||{});let jp={0(n,r){return n.titleId===r.id?n:{...n,titleId:r.id}}},ua=d.createContext(null);ua.displayName="DialogContext";function Ar(n){let r=d.useContext(ua);if(r===null){let e=new Error(`<${n} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Ar),e}return r}function Wp(n,r){return Ne(r.type,jp,n,r)}let Xs=ye(function(n,r){let e=d.useId(),{id:t=`headlessui-dialog-${e}`,open:o,onClose:a,initialFocus:i,role:s="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:c=!1,...f}=n,m=d.useRef(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(m.current||(m.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let p=mn();o===void 0&&p!==null&&(o=(p&Ae.Open)===Ae.Open);let h=d.useRef(null),v=Ie(h,r),g=Pt(h),b=o?0:1,[w,x]=d.useReducer(Wp,{titleId:null,descriptionId:null,panelRef:d.createRef()}),k=L(()=>a(!1)),P=L(X=>x({type:0,id:X})),M=Qn()?b===0:!1,[S,O]=qf(),I={get current(){var X;return(X=w.panelRef.current)!=null?X:h.current}},W=Rs(),{resolveContainers:E}=xp({mainTreeNode:W,portals:S,defaultContainers:[I]}),C=p!==null?(p&Ae.Closing)===Ae.Closing:!1;Mo(u||C?!1:M,{allowed:L(()=>{var X,q;return[(q=(X=h.current)==null?void 0:X.closest("[data-headlessui-portal]"))!=null?q:null]}),disallowed:L(()=>{var X;return[(X=W==null?void 0:W.closest("body > *:not(#headlessui-portal-root)"))!=null?X:null]})}),Lo(M,E,X=>{X.preventDefault(),k()}),yp(M,g==null?void 0:g.defaultView,X=>{X.preventDefault(),X.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),k()}),$o(u||C?!1:M,g,E),To(M,h,k);let[_,D]=Wc(),N=d.useMemo(()=>[{dialogState:b,close:k,setTitleId:P,unmount:c},w],[b,w,k,P,c]),A=d.useMemo(()=>({open:b===0}),[b]),$={ref:v,id:t,role:s,tabIndex:-1,"aria-modal":u?void 0:b===0?!0:void 0,"aria-labelledby":w.titleId,"aria-describedby":_,unmount:c},U=!wp(),j=qt.None;return M&&!u&&(j|=qt.RestoreFocus,j|=qt.TabLock,l&&(j|=qt.AutoFocus),U&&(j|=qt.InitialFocus)),d.createElement(jf,null,d.createElement(Ns,{force:!0},d.createElement(ra,null,d.createElement(ua.Provider,{value:N},d.createElement(Ls,{target:h},d.createElement(Ns,{force:!1},d.createElement(D,{slot:A},d.createElement(O,null,d.createElement(Sp,{initialFocus:i,initialFocusFallback:h,containers:E,features:j},d.createElement(Kc,{value:k},Ce({ourProps:$,theirProps:f,slot:A,defaultTag:Hp,features:Rp,visible:b===0,name:"Dialog"})))))))))))}),Hp="div",Rp=St.RenderStrategy|St.Static;function Bp(n,r){let{transition:e=!1,open:t,...o}=n,a=mn(),i=n.hasOwnProperty("open")||a!==null,s=n.hasOwnProperty("onClose");if(!i&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!i)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!a&&typeof n.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n.open}`);if(typeof n.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${n.onClose}`);return(t!==void 0||e)&&!o.static?d.createElement(Hs,null,d.createElement(Gs,{show:t,transition:e,unmount:o.unmount},d.createElement(Xs,{ref:r,...o}))):d.createElement(Hs,null,d.createElement(Xs,{ref:r,open:t,...o}))}let Vp="div";function zp(n,r){let e=d.useId(),{id:t=`headlessui-dialog-panel-${e}`,transition:o=!1,...a}=n,[{dialogState:i,unmount:s},l]=Ar("Dialog.Panel"),u=Ie(r,l.panelRef),c=d.useMemo(()=>({open:i===0}),[i]),f=L(p=>{p.stopPropagation()}),m={ref:u,id:t,onClick:f};return d.createElement(o?la:d.Fragment,{...o?{unmount:s}:{}},Ce({ourProps:m,theirProps:a,slot:c,defaultTag:Vp,name:"Dialog.Panel"}))}let Qp="div";function Up(n,r){let{transition:e=!1,...t}=n,[{dialogState:o,unmount:a}]=Ar("Dialog.Backdrop"),i=d.useMemo(()=>({open:o===0}),[o]),s={ref:r,"aria-hidden":!0};return d.createElement(e?la:d.Fragment,{...e?{unmount:a}:{}},Ce({ourProps:s,theirProps:t,slot:i,defaultTag:Qp,name:"Dialog.Backdrop"}))}let Kp="h2";function qp(n,r){let e=d.useId(),{id:t=`headlessui-dialog-title-${e}`,...o}=n,[{dialogState:a,setTitleId:i}]=Ar("Dialog.Title"),s=Ie(r);d.useEffect(()=>(i(t),()=>i(null)),[t,i]);let l=d.useMemo(()=>({open:a===0}),[a]);return Ce({ourProps:{ref:s,id:t},theirProps:o,slot:l,defaultTag:Kp,name:"Dialog.Title"})}let Gp=ye(Bp),Js=ye(zp);ye(Up);let Zs=ye(qp),Gn=Object.assign(Gp,{Panel:Js,Title:Zs,Description:Si});function Xp(n,r){let e=d.useRef({left:0,top:0});if(ne(()=>{if(!r)return;let o=r.getBoundingClientRect();o&&(e.current=o)},[n,r]),r==null||!n||r===document.activeElement)return!1;let t=r.getBoundingClientRect();return t.top!==e.current.top||t.left!==e.current.left}let el=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function tl(n){var r,e;let t=(r=n.innerText)!=null?r:"",o=n.cloneNode(!0);if(!(o instanceof HTMLElement))return t;let a=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),a=!0;let i=a?(e=o.innerText)!=null?e:"":t;return el.test(i)&&(i=i.replace(el,"")),i}function Jp(n){let r=n.getAttribute("aria-label");if(typeof r=="string")return r.trim();let e=n.getAttribute("aria-labelledby");if(e){let t=e.split(" ").map(o=>{let a=document.getElementById(o);if(a){let i=a.getAttribute("aria-label");return typeof i=="string"?i.trim():tl(a).trim()}return null}).filter(Boolean);if(t.length>0)return t.join(", ")}return tl(n).trim()}function Zp(n){let r=d.useRef(""),e=d.useRef("");return L(()=>{let t=n.current;if(!t)return"";let o=t.innerText;if(r.current===o)return e.current;let a=Jp(t).trim().toLowerCase();return r.current=o,e.current=a,a})}var eh=(n=>(n[n.Open=0]="Open",n[n.Closed=1]="Closed",n))(eh||{}),th=(n=>(n[n.Single=0]="Single",n[n.Multi=1]="Multi",n))(th||{}),nh=(n=>(n[n.Pointer=0]="Pointer",n[n.Other=1]="Other",n))(nh||{}),rh=(n=>(n[n.OpenListbox=0]="OpenListbox",n[n.CloseListbox=1]="CloseListbox",n[n.GoToOption=2]="GoToOption",n[n.Search=3]="Search",n[n.ClearSearch=4]="ClearSearch",n[n.RegisterOption=5]="RegisterOption",n[n.UnregisterOption=6]="UnregisterOption",n[n.SetButtonElement=7]="SetButtonElement",n[n.SetOptionsElement=8]="SetOptionsElement",n))(rh||{});function ca(n,r=e=>e){let e=n.activeOptionIndex!==null?n.options[n.activeOptionIndex]:null,t=Fo(r(n.options.slice()),a=>a.dataRef.current.domRef.current),o=e?t.indexOf(e):null;return o===-1&&(o=null),{options:t,activeOptionIndex:o}}let oh={1(n){return n.dataRef.current.disabled||n.listboxState===1?n:{...n,activeOptionIndex:null,listboxState:1,__demoMode:!1}},0(n){if(n.dataRef.current.disabled||n.listboxState===0)return n;let r=n.activeOptionIndex,{isSelected:e}=n.dataRef.current,t=n.options.findIndex(o=>e(o.dataRef.current.value));return t!==-1&&(r=t),{...n,listboxState:0,activeOptionIndex:r,__demoMode:!1}},2(n,r){var e,t,o,a,i;if(n.dataRef.current.disabled||n.listboxState===1)return n;let s={...n,searchQuery:"",activationTrigger:(e=r.trigger)!=null?e:1,__demoMode:!1};if(r.focus===ee.Nothing)return{...s,activeOptionIndex:null};if(r.focus===ee.Specific)return{...s,activeOptionIndex:n.options.findIndex(c=>c.id===r.id)};if(r.focus===ee.Previous){let c=n.activeOptionIndex;if(c!==null){let f=n.options[c].dataRef.current.domRef,m=zn(r,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(m!==null){let p=n.options[m].dataRef.current.domRef;if(((t=f.current)==null?void 0:t.previousElementSibling)===p.current||((o=p.current)==null?void 0:o.previousElementSibling)===null)return{...s,activeOptionIndex:m}}}}else if(r.focus===ee.Next){let c=n.activeOptionIndex;if(c!==null){let f=n.options[c].dataRef.current.domRef,m=zn(r,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(m!==null){let p=n.options[m].dataRef.current.domRef;if(((a=f.current)==null?void 0:a.nextElementSibling)===p.current||((i=p.current)==null?void 0:i.nextElementSibling)===null)return{...s,activeOptionIndex:m}}}}let l=ca(n),u=zn(r,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:c=>c.id,resolveDisabled:c=>c.dataRef.current.disabled});return{...s,...l,activeOptionIndex:u}},3:(n,r)=>{if(n.dataRef.current.disabled||n.listboxState===1)return n;let e=n.searchQuery!==""?0:1,t=n.searchQuery+r.value.toLowerCase(),o=(n.activeOptionIndex!==null?n.options.slice(n.activeOptionIndex+e).concat(n.options.slice(0,n.activeOptionIndex+e)):n.options).find(i=>{var s;return!i.dataRef.current.disabled&&((s=i.dataRef.current.textValue)==null?void 0:s.startsWith(t))}),a=o?n.options.indexOf(o):-1;return a===-1||a===n.activeOptionIndex?{...n,searchQuery:t}:{...n,searchQuery:t,activeOptionIndex:a,activationTrigger:1}},4(n){return n.dataRef.current.disabled||n.listboxState===1||n.searchQuery===""?n:{...n,searchQuery:""}},5:(n,r)=>{let e={id:r.id,dataRef:r.dataRef},t=ca(n,o=>[...o,e]);return n.activeOptionIndex===null&&n.dataRef.current.isSelected(r.dataRef.current.value)&&(t.activeOptionIndex=t.options.indexOf(e)),{...n,...t}},6:(n,r)=>{let e=ca(n,t=>{let o=t.findIndex(a=>a.id===r.id);return o!==-1&&t.splice(o,1),t});return{...n,...e,activationTrigger:1}},7:(n,r)=>n.buttonElement===r.element?n:{...n,buttonElement:r.element},8:(n,r)=>n.optionsElement===r.element?n:{...n,optionsElement:r.element}},da=d.createContext(null);da.displayName="ListboxActionsContext";function $r(n){let r=d.useContext(da);if(r===null){let e=new Error(`<${n} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,$r),e}return r}let Yr=d.createContext(null);Yr.displayName="ListboxDataContext";function Xn(n){let r=d.useContext(Yr);if(r===null){let e=new Error(`<${n} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,Xn),e}return r}function ah(n,r){return Ne(r.type,oh,n,r)}let ih=d.Fragment;function sh(n,r){var e;let t=mr(),{value:o,defaultValue:a,form:i,name:s,onChange:l,by:u,invalid:c=!1,disabled:f=t||!1,horizontal:m=!1,multiple:p=!1,__demoMode:h=!1,...v}=n;const g=m?"horizontal":"vertical";let b=Ie(r),w=gi(a),[x=p?[]:void 0,k]=vi(o,l,w),[P,M]=d.useReducer(ah,{dataRef:d.createRef(),listboxState:h?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:h}),S=d.useRef({static:!1,hold:!1}),O=d.useRef(new Map),I=Ti(u),W=d.useCallback(me=>Ne(E.mode,{1:()=>x.some(Oe=>I(Oe,me)),0:()=>I(x,me)}),[x]),E=d.useMemo(()=>({...P,value:x,disabled:f,invalid:c,mode:p?1:0,orientation:g,compare:I,isSelected:W,optionsPropsRef:S,listRef:O}),[x,f,c,p,P,O]);ne(()=>{P.dataRef.current=E},[E]);let C=E.listboxState===0;Lo(C,[E.buttonElement,E.optionsElement],(me,Oe)=>{var Q;M({type:1}),$i(Oe,Io.Loose)||(me.preventDefault(),(Q=E.buttonElement)==null||Q.focus())});let _=d.useMemo(()=>({open:E.listboxState===0,disabled:f,invalid:c,value:x}),[E,f,x,c]),D=L(me=>{let Oe=E.options.find(Q=>Q.id===me);Oe&&q(Oe.dataRef.current.value)}),N=L(()=>{if(E.activeOptionIndex!==null){let{dataRef:me,id:Oe}=E.options[E.activeOptionIndex];q(me.current.value),M({type:2,focus:ee.Specific,id:Oe})}}),A=L(()=>M({type:0})),$=L(()=>M({type:1})),U=mt(),j=L((me,Oe,Q)=>{U.dispose(),U.microTask(()=>me===ee.Specific?M({type:2,focus:ee.Specific,id:Oe,trigger:Q}):M({type:2,focus:me,trigger:Q}))}),X=L((me,Oe)=>(M({type:5,id:me,dataRef:Oe}),()=>M({type:6,id:me}))),q=L(me=>Ne(E.mode,{0(){return k==null?void 0:k(me)},1(){let Oe=E.value.slice(),Q=Oe.findIndex(ve=>I(ve,me));return Q===-1?Oe.push(me):Oe.splice(Q,1),k==null?void 0:k(Oe)}})),K=L(me=>M({type:3,value:me})),Y=L(()=>M({type:4})),De=L(me=>{M({type:7,element:me})}),ue=L(me=>{M({type:8,element:me})}),Se=d.useMemo(()=>({onChange:q,registerOption:X,goToOption:j,closeListbox:$,openListbox:A,selectActiveOption:N,selectOption:D,search:K,clearSearch:Y,setButtonElement:De,setOptionsElement:ue}),[]),[se,he]=Oi({inherit:!0}),He={ref:b},Wt=d.useCallback(()=>{if(w!==void 0)return k==null?void 0:k(w)},[k,w]);return d.createElement(he,{value:se,props:{htmlFor:(e=E.buttonElement)==null?void 0:e.id},slot:{open:E.listboxState===0,disabled:f}},d.createElement(_s,null,d.createElement(da.Provider,{value:Se},d.createElement(Yr.Provider,{value:E},d.createElement(ea,{value:Ne(E.listboxState,{0:Ae.Open,1:Ae.Closed})},s!=null&&x!=null&&d.createElement(xi,{disabled:f,data:{[s]:x},form:i,onReset:Wt}),Ce({ourProps:He,theirProps:v,slot:_,defaultTag:ih,name:"Listbox"}))))))}let lh="button";function uh(n,r){var e;let t=Xn("Listbox.Button"),o=$r("Listbox.Button"),a=d.useId(),i=So(),{id:s=i||`headlessui-listbox-button-${a}`,disabled:l=t.disabled||!1,autoFocus:u=!1,...c}=n,f=Ie(r,Es(),o.setButtonElement),m=Lf(),p=L(E=>{switch(E.key){case ae.Enter:Tc(E.currentTarget);break;case ae.Space:case ae.ArrowDown:E.preventDefault(),xe.flushSync(()=>o.openListbox()),t.value||o.goToOption(ee.First);break;case ae.ArrowUp:E.preventDefault(),xe.flushSync(()=>o.openListbox()),t.value||o.goToOption(ee.Last);break}}),h=L(E=>{switch(E.key){case ae.Space:E.preventDefault();break}}),v=L(E=>{var C;if(Di(E.currentTarget))return E.preventDefault();t.listboxState===0?(xe.flushSync(()=>o.closeListbox()),(C=t.buttonElement)==null||C.focus({preventScroll:!0})):(E.preventDefault(),o.openListbox())}),g=L(E=>E.preventDefault()),b=$n([s]),w=ki(),{isFocusVisible:x,focusProps:k}=Do({autoFocus:u}),{isHovered:P,hoverProps:M}=xo({isDisabled:l}),{pressed:S,pressProps:O}=hi({disabled:l}),I=d.useMemo(()=>({open:t.listboxState===0,active:S||t.listboxState===0,disabled:l,invalid:t.invalid,value:t.value,hover:P,focus:x,autofocus:u}),[t.listboxState,t.value,l,P,x,S,t.invalid,u]),W=Ln(m(),{ref:f,id:s,type:Bi(n,t.buttonElement),"aria-haspopup":"listbox","aria-controls":(e=t.optionsElement)==null?void 0:e.id,"aria-expanded":t.listboxState===0,"aria-labelledby":b,"aria-describedby":w,disabled:l||void 0,autoFocus:u,onKeyDown:p,onKeyUp:h,onKeyPress:g,onClick:v},k,M,O);return Ce({ourProps:W,theirProps:c,slot:I,defaultTag:lh,name:"Listbox.Button"})}let nl=d.createContext(!1),ch="div",dh=St.RenderStrategy|St.Static;function fh(n,r){var e,t;let o=d.useId(),{id:a=`headlessui-listbox-options-${o}`,anchor:i,portal:s=!1,modal:l=!0,transition:u=!1,...c}=n,f=Ds(i),[m,p]=d.useState(null);f&&(s=!0);let h=Xn("Listbox.Options"),v=$r("Listbox.Options"),g=Pt(h.optionsElement),b=mn(),[w,x]=jo(u,m,b!==null?(b&Ae.Open)===Ae.Open:h.listboxState===0);To(w,h.buttonElement,v.closeListbox);let k=h.__demoMode?!1:l&&h.listboxState===0;$o(k,g);let P=h.__demoMode?!1:l&&h.listboxState===0;Mo(P,{allowed:d.useCallback(()=>[h.buttonElement,h.optionsElement],[h.buttonElement,h.optionsElement])});let M=h.listboxState!==0,S=Xp(M,h.buttonElement)?!1:w,O=w&&h.listboxState===1,I=Tr(O,h.value),W=L(K=>h.compare(I,K)),E=d.useMemo(()=>{var K;if(f==null||!((K=f==null?void 0:f.to)!=null&&K.includes("selection")))return null;let Y=h.options.findIndex(De=>W(De.dataRef.current.value));return Y===-1&&(Y=0),Y},[f,h.options]),C=(()=>{if(f==null)return;if(E===null)return{...f,inner:void 0};let K=Array.from(h.listRef.current.values());return{...f,inner:{listRef:{current:K},index:E}}})(),[_,D]=ks(C),N=Cs(),A=Ie(r,f?_:null,v.setOptionsElement,p),$=mt();d.useEffect(()=>{var K;let Y=h.optionsElement;Y&&h.listboxState===0&&Y!==((K=Vt(Y))==null?void 0:K.activeElement)&&(Y==null||Y.focus({preventScroll:!0}))},[h.listboxState,h.optionsElement]);let U=L(K=>{var Y,De;switch($.dispose(),K.key){case ae.Space:if(h.searchQuery!=="")return K.preventDefault(),K.stopPropagation(),v.search(K.key);case ae.Enter:if(K.preventDefault(),K.stopPropagation(),h.activeOptionIndex!==null){let{dataRef:ue}=h.options[h.activeOptionIndex];v.onChange(ue.current.value)}h.mode===0&&(xe.flushSync(()=>v.closeListbox()),(Y=h.buttonElement)==null||Y.focus({preventScroll:!0}));break;case Ne(h.orientation,{vertical:ae.ArrowDown,horizontal:ae.ArrowRight}):return K.preventDefault(),K.stopPropagation(),v.goToOption(ee.Next);case Ne(h.orientation,{vertical:ae.ArrowUp,horizontal:ae.ArrowLeft}):return K.preventDefault(),K.stopPropagation(),v.goToOption(ee.Previous);case ae.Home:case ae.PageUp:return K.preventDefault(),K.stopPropagation(),v.goToOption(ee.First);case ae.End:case ae.PageDown:return K.preventDefault(),K.stopPropagation(),v.goToOption(ee.Last);case ae.Escape:K.preventDefault(),K.stopPropagation(),xe.flushSync(()=>v.closeListbox()),(De=h.buttonElement)==null||De.focus({preventScroll:!0});return;case ae.Tab:K.preventDefault(),K.stopPropagation(),xe.flushSync(()=>v.closeListbox()),yd(h.buttonElement,K.shiftKey?Ze.Previous:Ze.Next);break;default:K.key.length===1&&(v.search(K.key),$.setTimeout(()=>v.clearSearch(),350));break}}),j=(e=h.buttonElement)==null?void 0:e.id,X=d.useMemo(()=>({open:h.listboxState===0}),[h.listboxState]),q=Ln(f?N():{},{id:a,ref:A,"aria-activedescendant":h.activeOptionIndex===null||(t=h.options[h.activeOptionIndex])==null?void 0:t.id,"aria-multiselectable":h.mode===1?!0:void 0,"aria-labelledby":j,"aria-orientation":h.orientation,onKeyDown:U,role:"listbox",tabIndex:h.listboxState===0?0:void 0,style:{...c.style,...D,"--button-width":Oo(h.buttonElement,!0).width},...Yo(x)});return d.createElement(ra,{enabled:s?n.static||w:!1},d.createElement(Yr.Provider,{value:h.mode===1?h:{...h,isSelected:W}},Ce({ourProps:q,theirProps:c,slot:X,defaultTag:ch,features:dh,visible:S,name:"Listbox.Options"})))}let ph="div";function hh(n,r){let e=d.useId(),{id:t=`headlessui-listbox-option-${e}`,disabled:o=!1,value:a,...i}=n,s=d.useContext(nl)===!0,l=Xn("Listbox.Option"),u=$r("Listbox.Option"),c=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===t:!1,f=l.isSelected(a),m=d.useRef(null),p=Zp(m),h=vt({disabled:o,value:a,domRef:m,get textValue(){return p()}}),v=Ie(r,m,O=>{O?l.listRef.current.set(t,O):l.listRef.current.delete(t)});ne(()=>{if(!l.__demoMode&&l.listboxState===0&&c&&l.activationTrigger!==0)return Je().requestAnimationFrame(()=>{var O,I;(I=(O=m.current)==null?void 0:O.scrollIntoView)==null||I.call(O,{block:"nearest"})})},[m,c,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),ne(()=>{if(!s)return u.registerOption(t,h)},[h,t,s]);let g=L(O=>{var I;if(o)return O.preventDefault();u.onChange(a),l.mode===0&&(xe.flushSync(()=>u.closeListbox()),(I=l.buttonElement)==null||I.focus({preventScroll:!0}))}),b=L(()=>{if(o)return u.goToOption(ee.Nothing);u.goToOption(ee.Specific,t)}),w=zi(),x=L(O=>{w.update(O),!o&&(c||u.goToOption(ee.Specific,t,0))}),k=L(O=>{w.wasMoved(O)&&(o||c||u.goToOption(ee.Specific,t,0))}),P=L(O=>{w.wasMoved(O)&&(o||c&&u.goToOption(ee.Nothing))}),M=d.useMemo(()=>({active:c,focus:c,selected:f,disabled:o,selectedOption:f&&s}),[c,f,o,s]);return!f&&s?null:Ce({ourProps:s?{}:{id:t,ref:v,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":f,disabled:void 0,onClick:g,onFocus:b,onPointerEnter:x,onMouseEnter:x,onPointerMove:k,onMouseMove:k,onPointerLeave:P,onMouseLeave:P},theirProps:i,slot:M,defaultTag:ph,name:"Listbox.Option"})}let mh=d.Fragment;function vh(n,r){let{options:e,placeholder:t,...o}=n,a={ref:Ie(r)},i=Xn("ListboxSelectedOption"),s=d.useMemo(()=>({}),[]),l=i.value===void 0||i.value===null||i.mode===1&&Array.isArray(i.value)&&i.value.length===0;return d.createElement(nl.Provider,{value:!0},Ce({ourProps:a,theirProps:{...o,children:d.createElement(d.Fragment,null,t&&l?t:e)},slot:s,defaultTag:mh,name:"ListboxSelectedOption"}))}let gh=ye(sh),rl=ye(uh),bh=yr,ol=ye(fh),al=ye(hh),yh=ye(vh),wh=Object.assign(gh,{Button:rl,Label:bh,Options:ol,Option:al,SelectedOption:yh});const xh=({checked:n,label:r,onChange:e,termImageUrl:t})=>{const[o,a]=d.useState(!1);return T.jsxs(T.Fragment,{children:[T.jsx(Dh,{isOpen:o,setIsOpen:a,termImageUrl:t}),T.jsxs("div",{className:"inline-flex items-center",children:[T.jsxs("label",{className:"relative flex cursor-pointer items-center rounded-full p-3",htmlFor:"check",children:[T.jsx("input",{type:"checkbox",className:"before:content[''] border-blue-gray-200 before:bg-blue-gray-500 peer relative size-6 cursor-pointer appearance-none rounded-xl border bg-[#C5C8CD] transition-all before:absolute before:left-2/4 before:top-2/4 before:block before:h-12 before:w-12 before:-translate-x-2/4 before:-translate-y-2/4 before:rounded-full before:opacity-0 before:transition-opacity checked:border-petnowOrange checked:bg-petnowOrange checked:before:bg-petnowOrange",id:r,checked:n,onChange:i=>{e(i.target.checked)}}),T.jsx("span",{className:"pointer-events-none absolute left-2/4 top-2/4 -translate-x-2/4 -translate-y-2/4 text-[#8B919A] transition peer-checked:text-white",children:T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor",strokeWidth:"1",children:T.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})})]}),r&&T.jsxs("div",{className:"flex items-center",children:[T.jsx("label",{className:"cursor-pointer font-medium",htmlFor:r,children:r}),T.jsx(sc,{onClick:()=>{a(!0)},className:"ml-2 mt-[2.5px] cursor-pointer text-deepGray",size:24})]})]})]})},Dh=({isOpen:n,setIsOpen:r,termImageUrl:e})=>T.jsxs(Gn,{open:n,onClose:()=>r(!1),className:"relative z-50",children:[T.jsx("div",{className:"fixed inset-0 bg-black/30","aria-hidden":"true"}),T.jsx("div",{className:"fixed inset-0 w-screen overflow-y-auto",children:T.jsx("div",{className:"flex min-h-full items-center justify-center p-4",children:T.jsxs(Gn.Panel,{className:"mx-auto flex max-w-sm flex-col items-center gap-8 rounded bg-white",children:[T.jsx("div",{className:"flex h-[36px] w-full flex-row-reverse items-center bg-[#F0F1F2]",children:T.jsx(oi,{size:20,className:"mr-2",onClick:()=>r(!1)})}),T.jsx("img",{src:e,alt:"약관동의 이미지"}),T.jsx(Za,{text:"닫기",className:"mb-4 w-[90%] text-base focus:outline-none",onClick:()=>r(!1)})]})})})]});var il={},sl={},jr={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.postcodeScriptUrl=void 0;var r="https://t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js";n.postcodeScriptUrl="https://t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js";var e=function(){var o=null;return function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:r;return o||(o=new Promise(function(i,s){var l=document.createElement("script");l.src=a,l.onload=function(){var u,c;return(u=window)!==null&&u!==void 0&&(c=u.daum)!==null&&c!==void 0&&c.Postcode?i(window.daum.Postcode):void s(new Error("Script is loaded successfully, but cannot find Postcode module. Check your scriptURL property."))},l.onerror=function(u){return s(u)},l.id="daum_postcode_script",document.body.appendChild(l)}),o)}}(),t=e;n.default=t})(jr),function(n){function r(E){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},r(E)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=i(d),t=i(jr),o=["scriptUrl","className","style","defaultQuery","autoClose","errorMessage","onComplete","onClose","onResize","onSearch"];function a(E){if(typeof WeakMap!="function")return null;var C=new WeakMap,_=new WeakMap;return(a=function(D){return D?_:C})(E)}function i(E,C){if(E&&E.__esModule)return E;if(E===null||r(E)!=="object"&&typeof E!="function")return{default:E};var _=a(C);if(_&&_.has(E))return _.get(E);var D={},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in E)if(A!="default"&&Object.prototype.hasOwnProperty.call(E,A)){var $=N?Object.getOwnPropertyDescriptor(E,A):null;$&&($.get||$.set)?Object.defineProperty(D,A,$):D[A]=E[A]}return D.default=E,_&&_.set(E,D),D}function s(E,C){var _=Object.keys(E);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);C&&(D=D.filter(function(N){return Object.getOwnPropertyDescriptor(E,N).enumerable})),_.push.apply(_,D)}return _}function l(E){for(var C,_=1;_<arguments.length;_++)C=arguments[_]==null?{}:arguments[_],_%2?s(Object(C),!0).forEach(function(D){P(E,D,C[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(C)):s(Object(C)).forEach(function(D){Object.defineProperty(E,D,Object.getOwnPropertyDescriptor(C,D))});return E}function u(E,C){if(E==null)return{};var _,D,N=c(E,C);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(E);for(D=0;D<A.length;D++)_=A[D],0<=C.indexOf(_)||Object.prototype.propertyIsEnumerable.call(E,_)&&(N[_]=E[_])}return N}function c(E,C){if(E==null)return{};var _,D,N={},A=Object.keys(E);for(D=0;D<A.length;D++)_=A[D],0<=C.indexOf(_)||(N[_]=E[_]);return N}function f(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function m(E,C){for(var _,D=0;D<C.length;D++)_=C[D],_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(E,_.key,_)}function p(E,C,_){return C&&m(E.prototype,C),E}function h(E,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(C&&C.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),C&&v(E,C)}function v(E,C){return v=Object.setPrototypeOf||function(_,D){return _.__proto__=D,_},v(E,C)}function g(E){var C=x();return function(){var _,D=k(E);if(C){var N=k(this).constructor;_=Reflect.construct(D,arguments,N)}else _=D.apply(this,arguments);return b(this,_)}}function b(E,C){return C&&(r(C)==="object"||typeof C=="function")?C:w(E)}function w(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function k(E){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},k(E)}function P(E,C,_){return C in E?Object.defineProperty(E,C,{value:_,enumerable:!0,configurable:!0,writable:!0}):E[C]=_,E}var M=e.default.createElement("p",null,"현재 Daum 우편번호 서비스를 이용할 수 없습니다. 잠시 후 다시 시도해주세요."),S={width:"100%",height:400},O={scriptUrl:t.postcodeScriptUrl,errorMessage:M,autoClose:!0},I=function(E){function C(){var D;f(this,C);for(var N=arguments.length,A=Array(N),$=0;$<N;$++)A[$]=arguments[$];return D=_.call.apply(_,[this].concat(A)),P(w(D),"mounted",!1),P(w(D),"wrap",(0,e.createRef)()),P(w(D),"state",{hasError:!1}),P(w(D),"initiate",function(U){if(D.wrap.current){var j=D.props;j.scriptUrl,j.className,j.style;var X=j.defaultQuery,q=j.autoClose;j.errorMessage;var K=j.onComplete,Y=j.onClose,De=j.onResize,ue=j.onSearch,Se=u(j,o),se=new U(l(l({},Se),{},{oncomplete:function(He){K&&K(He),q&&D.wrap.current&&D.wrap.current.remove()},onsearch:ue,onresize:De,onclose:Y,width:"100%",height:"100%"}));se.embed(D.wrap.current,{q:X,autoClose:q})}}),P(w(D),"onError",function(U){console.error(U),D.setState({hasError:!0})}),D}h(C,E);var _=g(C);return p(C,[{key:"componentDidMount",value:function(){var N=this.initiate,A=this.onError,$=this.props.scriptUrl;$&&(this.mounted||((0,t.default)($).then(N).catch(A),this.mounted=!0))}},{key:"render",value:function(){var N=this.props,A=N.className,$=N.style,U=N.errorMessage,j=this.state.hasError;return e.default.createElement("div",{ref:this.wrap,className:A,style:l(l({},S),$)},j&&U)}}]),C}(e.Component);P(I,"defaultProps",O);var W=I;n.default=W}(sl);var ll={};(function(n){function r(h){"@babel/helpers - typeof";return r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},r(h)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=d,t=i(jr),o=["defaultQuery","left","top","popupKey","popupTitle","autoClose","onComplete","onResize","onClose","onSearch","onError"];function a(h){if(typeof WeakMap!="function")return null;var v=new WeakMap,g=new WeakMap;return(a=function(b){return b?g:v})(h)}function i(h,v){if(h&&h.__esModule)return h;if(h===null||r(h)!=="object"&&typeof h!="function")return{default:h};var g=a(v);if(g&&g.has(h))return g.get(h);var b={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in h)if(x!="default"&&Object.prototype.hasOwnProperty.call(h,x)){var k=w?Object.getOwnPropertyDescriptor(h,x):null;k&&(k.get||k.set)?Object.defineProperty(b,x,k):b[x]=h[x]}return b.default=h,g&&g.set(h,b),b}function s(h,v){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(h);v&&(b=b.filter(function(w){return Object.getOwnPropertyDescriptor(h,w).enumerable})),g.push.apply(g,b)}return g}function l(h){for(var v,g=1;g<arguments.length;g++)v=arguments[g]==null?{}:arguments[g],g%2?s(Object(v),!0).forEach(function(b){u(h,b,v[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):s(Object(v)).forEach(function(b){Object.defineProperty(h,b,Object.getOwnPropertyDescriptor(v,b))});return h}function u(h,v,g){return v in h?Object.defineProperty(h,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[v]=g,h}function c(h,v){if(h==null)return{};var g,b,w=f(h,v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(h);for(b=0;b<x.length;b++)g=x[b],0<=v.indexOf(g)||Object.prototype.propertyIsEnumerable.call(h,g)&&(w[g]=h[g])}return w}function f(h,v){if(h==null)return{};var g,b,w={},x=Object.keys(h);for(b=0;b<x.length;b++)g=x[b],0<=v.indexOf(g)||(w[g]=h[g]);return w}function m(){var h=0<arguments.length&&arguments[0]!==void 0?arguments[0]:t.postcodeScriptUrl;(0,e.useEffect)(function(){(0,t.default)(h)},[h]);var v=(0,e.useCallback)(function(g){var b=l({},g),w=b.defaultQuery,x=b.left,k=b.top,P=b.popupKey,M=b.popupTitle,S=b.autoClose,O=b.onComplete,I=b.onResize,W=b.onClose,E=b.onSearch,C=b.onError,_=c(b,o);return(0,t.default)(h).then(function(D){var N=new D(l(l({},_),{},{oncomplete:O,onsearch:E,onresize:I,onclose:W}));N.open({q:w,left:x,top:k,popupTitle:M,popupKey:P,autoClose:S})}).catch(C)},[h]);return v}var p=m;n.default=p})(ll),function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DaumPostcodeEmbed",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"useDaumPostcodePopup",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(n,"loadPostcode",{enumerable:!0,get:function(){return t.default}}),n.default=void 0;var r=o(sl),e=o(ll),t=o(jr);function o(i){return i&&i.__esModule?i:{default:i}}var a=r.default;n.default=a}(il);const Eh=({label:n,value:r,onFrontChange:e,onBackChange:t,onPostalCodeChange:o,disabled:a})=>{const[i,s]=d.useState(!1),l=f=>{let m=f.address,p="";f.addressType==="R"&&(f.bname!==""&&(p+=f.bname),f.buildingName!==""&&(p+=p!==""?`, ${f.buildingName}`:f.buildingName),m+=p!==""?` (${p})`:""),e(m),o&&o(f.zonecode),s(!1)},u=()=>{s(!0)},c=()=>r.front?r.front:T.jsx("p",{className:"text-[#C5C8CD]",children:"주소를 입력해주세요."});return T.jsxs(T.Fragment,{children:[T.jsx(Ch,{isOpen:i,setIsOpen:s,handleComplete:l}),T.jsxs("div",{className:"text-deepGray",children:[T.jsx("label",{htmlFor:n,className:"text-sm font-bold text-lightBlack",children:n}),T.jsxs("div",{className:"relative flex flex-col",children:[T.jsx("div",{className:`mt-4 h-[60px] w-full overflow-hidden whitespace-nowrap rounded-xl bg-[#F8F8F9] p-4 text-base placeholder:text-[#C5C8CD] focus:outline-none ${a&&"opacity-50"}`,onClick:u,children:c()}),T.jsx("input",{disabled:!r.front||a,value:r.back,type:"text",name:n,id:n,placeholder:"상세 주소를 입력해주세요.",className:"mt-4 h-[60px] w-full rounded-xl bg-[#F8F8F9] p-4 text-base placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50",autoComplete:"off",onChange:f=>t(f.target.value)})]})]})]})},Ch=n=>{const{isOpen:r,setIsOpen:e,handleComplete:t}=n;return T.jsxs(Gn,{open:r,onClose:()=>e(!1),className:"relateive z-50",children:[T.jsx("div",{className:"fixed inset-0 bg-black/40","aria-hidden":"true"}),T.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center",children:T.jsx(Gn.Panel,{children:T.jsxs("div",{children:[T.jsx("div",{className:"flex h-[36px] w-[90vw] flex-row-reverse items-center bg-[#F0F1F2]",children:T.jsx(oi,{size:20,className:"mr-2",onClick:()=>e(!1)})}),T.jsx(il.DaumPostcodeEmbed,{onComplete:t,style:{width:"90vw",height:"65vh",minHeight:"450px",borderRadius:"100px"}})]})})})]})},kh=n=>{const{isOpen:r,setIsOpen:e}=n;return T.jsx(Gs,{show:r,enter:"transition ease-out duration-200",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:T.jsxs(Gn,{onClose:()=>e(!1),className:"relative z-50 focus:outline-none",children:[T.jsx("div",{className:"fixed inset-0 bg-black/40","aria-hidden":!r}),T.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:T.jsxs(Js,{className:"flex w-[260px] flex-col gap-[16px] rounded-[16px] bg-white p-[20px]",children:[T.jsxs("div",{className:"flex flex-col gap-[8px]",children:[n.title&&T.jsx(Zs,{className:"whitespace-pre-wrap text-[18px] font-bold leading-[26px] text-[#2C2F34]",children:n.title}),n.image&&T.jsx("img",{src:n.image.url,alt:n.image.alt}),n.description&&n.description!==""&&T.jsx(Si,{className:"break-all text-[16px] leading-[24px] text-[#585E67]",children:n.description})]}),T.jsxs("div",{className:"flex flex-col gap-[4px]",children:[T.jsx("button",{className:"w-full rounded-[12px] bg-[#FF592C] px-[12px] py-[14px] text-[14px] font-bold leading-[22px] text-white",onClick:n.confirm.onClick,children:n.confirm.text}),n.cancel&&T.jsx("button",{onClick:()=>e(!1),className:"w-full rounded-[12px] bg-[#F0F1F2] px-[12px] py-[14px] text-[14px] font-bold leading-[22px] text-[#585E67]",children:n.cancel.text})]})]})})]})})};function Sh(n){return Tn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"},child:[]}]})(n)}function _h(n){return Tn({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 217.9L383 345c9.4 9.4 24.6 9.4 33.9 0 9.4-9.4 9.3-24.6 0-34L273 167c-9.1-9.1-23.7-9.3-33.1-.7L95 310.9c-4.7 4.7-7 10.9-7 17s2.3 12.3 7 17c9.4 9.4 24.6 9.4 33.9 0l127.1-127z"},child:[]}]})(n)}const Oh=({title:n,description:r,titleTextClassName:e,descriptionTextClassName:t})=>{const[o,a]=d.useState(!1);return T.jsxs("div",{className:"my-2.5 flex w-full cursor-pointer flex-col justify-center rounded-xl px-4 pt-8 shadow-[0_2px_8px_0_rgba(0,0,0,0.08)] md:rounded-2xl md:pt-10",onClick:()=>a(i=>!i),children:[T.jsxs("div",{className:"flex w-full items-center justify-between px-2 pb-8 transition-all duration-300 md:px-4 md:pb-10",children:[T.jsxs("p",{className:ur("mr-4 text-lg font-medium md:text-xl",e),children:[T.jsx("span",{className:"font-semibold",children:"Q."})," ",n]}),o?T.jsx(_h,{className:"min-w-6 text-petnowOrange",size:24}):T.jsx(Sh,{className:"min-w-6 text-petnowOrange",size:24})]}),T.jsx("p",{className:ur(`w-full overflow-hidden whitespace-pre-wrap px-2 text-base leading-6 text-[#8B919A] transition-all duration-300 md:px-4 md:text-lg ${o?"max-h-[24rem] pb-8 sm:max-h-60 md:pb-10":"max-h-0"}`,t),children:r})]})};function Ph(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,fa(n,r)}function fa(n,r){return fa=Object.setPrototypeOf||function(t,o){return t.__proto__=o,t},fa(n,r)}function Mh(n,r){if(n==null)return{};var e={},t=Object.keys(n),o,a;for(a=0;a<t.length;a++)o=t[a],!(r.indexOf(o)>=0)&&(e[o]=n[o]);return e}function ul(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Th(n,r,e){return n===r?!0:n.correspondingElement?n.correspondingElement.classList.contains(e):n.classList.contains(e)}function Nh(n,r,e){if(n===r)return!0;for(;n.parentNode||n.host;){if(n.parentNode&&Th(n,r,e))return!0;n=n.parentNode||n.host}return n}function Ih(n){return document.documentElement.clientWidth<=n.clientX||document.documentElement.clientHeight<=n.clientY}var Fh=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var r=!1,e=Object.defineProperty({},"passive",{get:function(){r=!0}}),t=function(){};return window.addEventListener("testPassiveEventSupport",t,e),window.removeEventListener("testPassiveEventSupport",t,e),r}};function Lh(n){return n===void 0&&(n=0),function(){return++n}}var Ah=Lh(),pa,Wr={},ha={},$h=["touchstart","touchmove"],Yh="ignore-react-onclickoutside";function cl(n,r){var e={},t=$h.indexOf(r)!==-1;return t&&pa&&(e.passive=!n.props.preventDefault),e}function Hr(n,r){var e,t,o=n.displayName||n.name||"Component";return t=e=function(a){Ph(i,a);function i(l){var u;return u=a.call(this,l)||this,u.__outsideClickHandler=function(c){if(typeof u.__clickOutsideHandlerProp=="function"){u.__clickOutsideHandlerProp(c);return}var f=u.getInstance();if(typeof f.props.handleClickOutside=="function"){f.props.handleClickOutside(c);return}if(typeof f.handleClickOutside=="function"){f.handleClickOutside(c);return}throw new Error("WrappedComponent: "+o+" lacks a handleClickOutside(event) function for processing outside click events.")},u.__getComponentNode=function(){var c=u.getInstance();return typeof c.setClickOutsideRef=="function"?c.setClickOutsideRef():xe.findDOMNode(c)},u.enableOnClickOutside=function(){if(!(typeof document>"u"||ha[u._uid])){typeof pa>"u"&&(pa=Fh()),ha[u._uid]=!0;var c=u.props.eventTypes;c.forEach||(c=[c]),Wr[u._uid]=function(f){if(u.componentNode!==null&&!(u.initTimeStamp>f.timeStamp)&&(u.props.preventDefault&&f.preventDefault(),u.props.stopPropagation&&f.stopPropagation(),!(u.props.excludeScrollbar&&Ih(f)))){var m=f.composed&&f.composedPath&&f.composedPath().shift()||f.target;Nh(m,u.componentNode,u.props.outsideClickIgnoreClass)===document&&u.__outsideClickHandler(f)}},c.forEach(function(f){document.addEventListener(f,Wr[u._uid],cl(ul(u),f))})}},u.disableOnClickOutside=function(){delete ha[u._uid];var c=Wr[u._uid];if(c&&typeof document<"u"){var f=u.props.eventTypes;f.forEach||(f=[f]),f.forEach(function(m){return document.removeEventListener(m,c,cl(ul(u),m))}),delete Wr[u._uid]}},u.getRef=function(c){return u.instanceRef=c},u._uid=Ah(),u.initTimeStamp=performance.now(),u}var s=i.prototype;return s.getInstance=function(){if(n.prototype&&!n.prototype.isReactComponent)return this;var u=this.instanceRef;return u.getInstance?u.getInstance():u},s.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var u=this.props;u.excludeScrollbar;var c=Mh(u,["excludeScrollbar"]);return n.prototype&&n.prototype.isReactComponent?c.ref=this.getRef:c.wrappedRef=this.getRef,c.disableOnClickOutside=this.disableOnClickOutside,c.enableOnClickOutside=this.enableOnClickOutside,d.createElement(n,c)},i}(d.Component),e.displayName="OnClickOutside("+o+")",e.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:Yh,preventDefault:!1,stopPropagation:!1},e.getClass=function(){return n.getClass?n.getClass():n},t}function z(n){const r=Object.prototype.toString.call(n);return n instanceof Date||typeof n=="object"&&r==="[object Date]"?new n.constructor(+n):typeof n=="number"||r==="[object Number]"||typeof n=="string"||r==="[object String]"?new Date(n):new Date(NaN)}function de(n,r){return n instanceof Date?new n.constructor(r):new Date(r)}function It(n,r){const e=z(n);return isNaN(r)?de(n,NaN):(r&&e.setDate(e.getDate()+r),e)}function ma(n,r){const e=+z(n);return de(n,e+r)}const dl=6048e5,jh=864e5,Rr=6e4,Br=36e5,Wh=1e3;function Hh(n,r){return ma(n,r*Br)}function va(n,r){return ma(n,r*Rr)}function et(n,r){const e=z(n);if(isNaN(r))return de(n,NaN);if(!r)return e;const t=e.getDate(),o=de(n,e.getTime());o.setMonth(e.getMonth()+r+1,0);const a=o.getDate();return t>=a?o:(e.setFullYear(o.getFullYear(),o.getMonth(),t),e)}function ga(n,r){const e=r*3;return et(n,e)}function Rh(n,r){return ma(n,r*1e3)}function Vr(n,r){const e=r*7;return It(n,e)}function yt(n,r){return et(n,r*12)}function Gt(n){const r=z(n);return r.setHours(0,0,0,0),r}function zr(n){const r=z(n),e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),+n-+e}function Jn(n,r){const e=Gt(n),t=Gt(r),o=+e-zr(e),a=+t-zr(t);return Math.round((o-a)/jh)}function Qr(n,r){const e=z(n),t=z(r),o=e.getFullYear()-t.getFullYear(),a=e.getMonth()-t.getMonth();return o*12+a}function Xt(n){const r=z(n);return Math.trunc(r.getMonth()/3)+1}function Ur(n,r){const e=z(n),t=z(r),o=e.getFullYear()-t.getFullYear(),a=Xt(e)-Xt(t);return o*4+a}function Kr(n,r){const e=z(n),t=z(r);return e.getFullYear()-t.getFullYear()}function fl(n){const r=z(n);return r.setHours(23,59,59,999),r}function Bh(n){const r=z(n),e=r.getMonth();return r.setFullYear(r.getFullYear(),e+1,0),r.setHours(23,59,59,999),r}let Vh={};function Jt(){return Vh}function zh(n,r){var s,l;const e=Jt(),t=e.weekStartsOn??((l=(s=e.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??0,o=z(n),a=o.getDay(),i=(a<t?-7:0)+6-(a-t);return o.setDate(o.getDate()+i),o.setHours(23,59,59,999),o}function pl(n){const r=z(n),e=r.getFullYear();return r.setFullYear(e+1,0,0),r.setHours(23,59,59,999),r}const Qh={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Uh=(n,r,e)=>{let t;const o=Qh[n];return typeof o=="string"?t=o:r===1?t=o.one:t=o.other.replace("{{count}}",r.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"in "+t:t+" ago":t};function gn(n){return(r={})=>{const e=r.width?String(r.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}const Kh={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},qh={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gh={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Xh={date:gn({formats:Kh,defaultWidth:"full"}),time:gn({formats:qh,defaultWidth:"full"}),dateTime:gn({formats:Gh,defaultWidth:"full"})},Jh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Zh=(n,r,e,t)=>Jh[n];function ot(n){return(r,e)=>{const t=e!=null&&e.context?String(e.context):"standalone";let o;if(t==="formatting"&&n.formattingValues){const i=n.defaultFormattingWidth||n.defaultWidth,s=e!=null&&e.width?String(e.width):i;o=n.formattingValues[s]||n.formattingValues[i]}else{const i=n.defaultWidth,s=e!=null&&e.width?String(e.width):n.defaultWidth;o=n.values[s]||n.values[i]}const a=n.argumentCallback?n.argumentCallback(r):r;return o[a]}}const em={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tm={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nm={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},rm={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},om={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},am={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},im={ordinalNumber:(n,r)=>{const e=Number(n),t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:ot({values:em,defaultWidth:"wide"}),quarter:ot({values:tm,defaultWidth:"wide",argumentCallback:n=>n-1}),month:ot({values:nm,defaultWidth:"wide"}),day:ot({values:rm,defaultWidth:"wide"}),dayPeriod:ot({values:om,defaultWidth:"wide",formattingValues:am,defaultFormattingWidth:"wide"})};function at(n){return(r,e={})=>{const t=e.width,o=t&&n.matchPatterns[t]||n.matchPatterns[n.defaultMatchWidth],a=r.match(o);if(!a)return null;const i=a[0],s=t&&n.parsePatterns[t]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?lm(s,f=>f.test(i)):sm(s,f=>f.test(i));let u;u=n.valueCallback?n.valueCallback(l):l,u=e.valueCallback?e.valueCallback(u):u;const c=r.slice(i.length);return{value:u,rest:c}}}function sm(n,r){for(const e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&r(n[e]))return e}function lm(n,r){for(let e=0;e<n.length;e++)if(r(n[e]))return e}function hl(n){return(r,e={})=>{const t=r.match(n.matchPattern);if(!t)return null;const o=t[0],a=r.match(n.parsePattern);if(!a)return null;let i=n.valueCallback?n.valueCallback(a[0]):a[0];i=e.valueCallback?e.valueCallback(i):i;const s=r.slice(o.length);return{value:i,rest:s}}}const um=/^(\d+)(th|st|nd|rd)?/i,cm=/\d+/i,dm={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fm={any:[/^b/i,/^(a|c)/i]},pm={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},hm={any:[/1/i,/2/i,/3/i,/4/i]},mm={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},vm={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},gm={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},bm={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ym={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},wm={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xm={ordinalNumber:hl({matchPattern:um,parsePattern:cm,valueCallback:n=>parseInt(n,10)}),era:at({matchPatterns:dm,defaultMatchWidth:"wide",parsePatterns:fm,defaultParseWidth:"any"}),quarter:at({matchPatterns:pm,defaultMatchWidth:"wide",parsePatterns:hm,defaultParseWidth:"any",valueCallback:n=>n+1}),month:at({matchPatterns:mm,defaultMatchWidth:"wide",parsePatterns:vm,defaultParseWidth:"any"}),day:at({matchPatterns:gm,defaultMatchWidth:"wide",parsePatterns:bm,defaultParseWidth:"any"}),dayPeriod:at({matchPatterns:ym,defaultMatchWidth:"any",parsePatterns:wm,defaultParseWidth:"any"})},ml={code:"en-US",formatDistance:Uh,formatLong:Xh,formatRelative:Zh,localize:im,match:xm,options:{weekStartsOn:0,firstWeekContainsDate:1}};function qr(n){const r=z(n),e=de(n,0);return e.setFullYear(r.getFullYear(),0,1),e.setHours(0,0,0,0),e}function Dm(n){const r=z(n);return Jn(r,qr(r))+1}function wt(n,r){var s,l,u,c;const e=Jt(),t=(r==null?void 0:r.weekStartsOn)??((l=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??e.weekStartsOn??((c=(u=e.locale)==null?void 0:u.options)==null?void 0:c.weekStartsOn)??0,o=z(n),a=o.getDay(),i=(a<t?7:0)+a-t;return o.setDate(o.getDate()-i),o.setHours(0,0,0,0),o}function bn(n){return wt(n,{weekStartsOn:1})}function vl(n){const r=z(n),e=r.getFullYear(),t=de(n,0);t.setFullYear(e+1,0,4),t.setHours(0,0,0,0);const o=bn(t),a=de(n,0);a.setFullYear(e,0,4),a.setHours(0,0,0,0);const i=bn(a);return r.getTime()>=o.getTime()?e+1:r.getTime()>=i.getTime()?e:e-1}function Em(n){const r=vl(n),e=de(n,0);return e.setFullYear(r,0,4),e.setHours(0,0,0,0),bn(e)}function ba(n){const r=z(n),e=+bn(r)-+Em(r);return Math.round(e/dl)+1}function ya(n,r){var c,f,m,p;const e=z(n),t=e.getFullYear(),o=Jt(),a=(r==null?void 0:r.firstWeekContainsDate)??((f=(c=r==null?void 0:r.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??o.firstWeekContainsDate??((p=(m=o.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,i=de(n,0);i.setFullYear(t+1,0,a),i.setHours(0,0,0,0);const s=wt(i,r),l=de(n,0);l.setFullYear(t,0,a),l.setHours(0,0,0,0);const u=wt(l,r);return e.getTime()>=s.getTime()?t+1:e.getTime()>=u.getTime()?t:t-1}function Cm(n,r){var s,l,u,c;const e=Jt(),t=(r==null?void 0:r.firstWeekContainsDate)??((l=(s=r==null?void 0:r.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??e.firstWeekContainsDate??((c=(u=e.locale)==null?void 0:u.options)==null?void 0:c.firstWeekContainsDate)??1,o=ya(n,r),a=de(n,0);return a.setFullYear(o,0,t),a.setHours(0,0,0,0),wt(a,r)}function gl(n,r){const e=z(n),t=+wt(e,r)-+Cm(e,r);return Math.round(t/dl)+1}function fe(n,r){const e=n<0?"-":"",t=Math.abs(n).toString().padStart(r,"0");return e+t}const Ft={y(n,r){const e=n.getFullYear(),t=e>0?e:1-e;return fe(r==="yy"?t%100:t,r.length)},M(n,r){const e=n.getMonth();return r==="M"?String(e+1):fe(e+1,2)},d(n,r){return fe(n.getDate(),r.length)},a(n,r){const e=n.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,r){return fe(n.getHours()%12||12,r.length)},H(n,r){return fe(n.getHours(),r.length)},m(n,r){return fe(n.getMinutes(),r.length)},s(n,r){return fe(n.getSeconds(),r.length)},S(n,r){const e=r.length,t=n.getMilliseconds(),o=Math.trunc(t*Math.pow(10,e-3));return fe(o,r.length)}},yn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},bl={G:function(n,r,e){const t=n.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return e.era(t,{width:"abbreviated"});case"GGGGG":return e.era(t,{width:"narrow"});case"GGGG":default:return e.era(t,{width:"wide"})}},y:function(n,r,e){if(r==="yo"){const t=n.getFullYear(),o=t>0?t:1-t;return e.ordinalNumber(o,{unit:"year"})}return Ft.y(n,r)},Y:function(n,r,e,t){const o=ya(n,t),a=o>0?o:1-o;if(r==="YY"){const i=a%100;return fe(i,2)}return r==="Yo"?e.ordinalNumber(a,{unit:"year"}):fe(a,r.length)},R:function(n,r){const e=vl(n);return fe(e,r.length)},u:function(n,r){const e=n.getFullYear();return fe(e,r.length)},Q:function(n,r,e){const t=Math.ceil((n.getMonth()+1)/3);switch(r){case"Q":return String(t);case"QQ":return fe(t,2);case"Qo":return e.ordinalNumber(t,{unit:"quarter"});case"QQQ":return e.quarter(t,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(t,{width:"wide",context:"formatting"})}},q:function(n,r,e){const t=Math.ceil((n.getMonth()+1)/3);switch(r){case"q":return String(t);case"qq":return fe(t,2);case"qo":return e.ordinalNumber(t,{unit:"quarter"});case"qqq":return e.quarter(t,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(t,{width:"wide",context:"standalone"})}},M:function(n,r,e){const t=n.getMonth();switch(r){case"M":case"MM":return Ft.M(n,r);case"Mo":return e.ordinalNumber(t+1,{unit:"month"});case"MMM":return e.month(t,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(t,{width:"wide",context:"formatting"})}},L:function(n,r,e){const t=n.getMonth();switch(r){case"L":return String(t+1);case"LL":return fe(t+1,2);case"Lo":return e.ordinalNumber(t+1,{unit:"month"});case"LLL":return e.month(t,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(t,{width:"wide",context:"standalone"})}},w:function(n,r,e,t){const o=gl(n,t);return r==="wo"?e.ordinalNumber(o,{unit:"week"}):fe(o,r.length)},I:function(n,r,e){const t=ba(n);return r==="Io"?e.ordinalNumber(t,{unit:"week"}):fe(t,r.length)},d:function(n,r,e){return r==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):Ft.d(n,r)},D:function(n,r,e){const t=Dm(n);return r==="Do"?e.ordinalNumber(t,{unit:"dayOfYear"}):fe(t,r.length)},E:function(n,r,e){const t=n.getDay();switch(r){case"E":case"EE":case"EEE":return e.day(t,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(t,{width:"short",context:"formatting"});case"EEEE":default:return e.day(t,{width:"wide",context:"formatting"})}},e:function(n,r,e,t){const o=n.getDay(),a=(o-t.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return fe(a,2);case"eo":return e.ordinalNumber(a,{unit:"day"});case"eee":return e.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(o,{width:"short",context:"formatting"});case"eeee":default:return e.day(o,{width:"wide",context:"formatting"})}},c:function(n,r,e,t){const o=n.getDay(),a=(o-t.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return fe(a,r.length);case"co":return e.ordinalNumber(a,{unit:"day"});case"ccc":return e.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(o,{width:"narrow",context:"standalone"});case"cccccc":return e.day(o,{width:"short",context:"standalone"});case"cccc":default:return e.day(o,{width:"wide",context:"standalone"})}},i:function(n,r,e){const t=n.getDay(),o=t===0?7:t;switch(r){case"i":return String(o);case"ii":return fe(o,r.length);case"io":return e.ordinalNumber(o,{unit:"day"});case"iii":return e.day(t,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(t,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(t,{width:"short",context:"formatting"});case"iiii":default:return e.day(t,{width:"wide",context:"formatting"})}},a:function(n,r,e){const o=n.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return e.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(n,r,e){const t=n.getHours();let o;switch(t===12?o=yn.noon:t===0?o=yn.midnight:o=t/12>=1?"pm":"am",r){case"b":case"bb":return e.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(n,r,e){const t=n.getHours();let o;switch(t>=17?o=yn.evening:t>=12?o=yn.afternoon:t>=4?o=yn.morning:o=yn.night,r){case"B":case"BB":case"BBB":return e.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(n,r,e){if(r==="ho"){let t=n.getHours()%12;return t===0&&(t=12),e.ordinalNumber(t,{unit:"hour"})}return Ft.h(n,r)},H:function(n,r,e){return r==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):Ft.H(n,r)},K:function(n,r,e){const t=n.getHours()%12;return r==="Ko"?e.ordinalNumber(t,{unit:"hour"}):fe(t,r.length)},k:function(n,r,e){let t=n.getHours();return t===0&&(t=24),r==="ko"?e.ordinalNumber(t,{unit:"hour"}):fe(t,r.length)},m:function(n,r,e){return r==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):Ft.m(n,r)},s:function(n,r,e){return r==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):Ft.s(n,r)},S:function(n,r){return Ft.S(n,r)},X:function(n,r,e){const t=n.getTimezoneOffset();if(t===0)return"Z";switch(r){case"X":return wl(t);case"XXXX":case"XX":return Zt(t);case"XXXXX":case"XXX":default:return Zt(t,":")}},x:function(n,r,e){const t=n.getTimezoneOffset();switch(r){case"x":return wl(t);case"xxxx":case"xx":return Zt(t);case"xxxxx":case"xxx":default:return Zt(t,":")}},O:function(n,r,e){const t=n.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+yl(t,":");case"OOOO":default:return"GMT"+Zt(t,":")}},z:function(n,r,e){const t=n.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+yl(t,":");case"zzzz":default:return"GMT"+Zt(t,":")}},t:function(n,r,e){const t=Math.trunc(n.getTime()/1e3);return fe(t,r.length)},T:function(n,r,e){const t=n.getTime();return fe(t,r.length)}};function yl(n,r=""){const e=n>0?"-":"+",t=Math.abs(n),o=Math.trunc(t/60),a=t%60;return a===0?e+String(o):e+String(o)+r+fe(a,2)}function wl(n,r){return n%60===0?(n>0?"-":"+")+fe(Math.abs(n)/60,2):Zt(n,r)}function Zt(n,r=""){const e=n>0?"-":"+",t=Math.abs(n),o=fe(Math.trunc(t/60),2),a=fe(t%60,2);return e+o+r+a}const xl=(n,r)=>{switch(n){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},Dl=(n,r)=>{switch(n){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Gr={p:Dl,P:(n,r)=>{const e=n.match(/(P+)(p+)?/)||[],t=e[1],o=e[2];if(!o)return xl(n,r);let a;switch(t){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;case"PPPP":default:a=r.dateTime({width:"full"});break}return a.replace("{{date}}",xl(t,r)).replace("{{time}}",Dl(o,r))}},km=/^D+$/,Sm=/^Y+$/,_m=["D","DD","YY","YYYY"];function El(n){return km.test(n)}function Cl(n){return Sm.test(n)}function wa(n,r,e){const t=Om(n,r,e);if(console.warn(t),_m.includes(n))throw new RangeError(t)}function Om(n,r,e){const t=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${r}\`) for formatting ${t} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function xt(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Xr(n){if(!xt(n)&&typeof n!="number")return!1;const r=z(n);return!isNaN(Number(r))}const Pm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Tm=/^'([^]*?)'?$/,Nm=/''/g,Im=/[a-zA-Z]/;function kl(n,r,e){var c,f,m,p,h,v,g,b;const t=Jt(),o=(e==null?void 0:e.locale)??t.locale??ml,a=(e==null?void 0:e.firstWeekContainsDate)??((f=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??t.firstWeekContainsDate??((p=(m=t.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,i=(e==null?void 0:e.weekStartsOn)??((v=(h=e==null?void 0:e.locale)==null?void 0:h.options)==null?void 0:v.weekStartsOn)??t.weekStartsOn??((b=(g=t.locale)==null?void 0:g.options)==null?void 0:b.weekStartsOn)??0,s=z(n);if(!Xr(s))throw new RangeError("Invalid time value");let l=r.match(Mm).map(w=>{const x=w[0];if(x==="p"||x==="P"){const k=Gr[x];return k(w,o.formatLong)}return w}).join("").match(Pm).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const x=w[0];if(x==="'")return{isToken:!1,value:Fm(w)};if(bl[x])return{isToken:!0,value:w};if(x.match(Im))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:w}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const u={firstWeekContainsDate:a,weekStartsOn:i,locale:o};return l.map(w=>{if(!w.isToken)return w.value;const x=w.value;(!(e!=null&&e.useAdditionalWeekYearTokens)&&Cl(x)||!(e!=null&&e.useAdditionalDayOfYearTokens)&&El(x))&&wa(x,r,String(n));const k=bl[x[0]];return k(s,x,o.localize,u)}).join("")}function Fm(n){const r=n.match(Tm);return r?r[1].replace(Nm,"'"):n}function Sl(n){return z(n).getDate()}function Lm(n){return z(n).getDay()}function it(n){return z(n).getHours()}function st(n){return z(n).getMinutes()}function je(n){return z(n).getMonth()}function Dt(n){return z(n).getSeconds()}function xa(n){return z(n).getTime()}function Z(n){return z(n).getFullYear()}function Lt(n,r){const e=z(n),t=z(r);return e.getTime()>t.getTime()}function en(n,r){const e=z(n),t=z(r);return+e<+t}function Am(n,r){const e=z(n),t=z(r);return+e==+t}function $m(n,r){const e=Gt(n),t=Gt(r);return+e==+t}function Ym(n,r){const e=z(n),t=z(r);return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function Da(n){const r=z(n),e=r.getMonth(),t=e-e%3;return r.setMonth(t,1),r.setHours(0,0,0,0),r}function jm(n,r){const e=Da(n),t=Da(r);return+e==+t}function Wm(n,r){const e=z(n),t=z(r);return e.getFullYear()===t.getFullYear()}function Zn(n,r){const e=+z(n),[t,o]=[+z(r.start),+z(r.end)].sort((a,i)=>a-i);return e>=t&&e<=o}function _l(n){let r;return n.forEach(function(e){const t=z(e);(r===void 0||r<t||isNaN(Number(t)))&&(r=t)}),r||new Date(NaN)}function Ol(n){let r;return n.forEach(e=>{const t=z(e);(!r||r>t||isNaN(+t))&&(r=t)}),r||new Date(NaN)}function Hm(){return Object.assign({},Jt())}function Rm(n,r){const e=r instanceof Date?de(r,0):new r(0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}const Bm=10;class Pl{constructor(){V(this,"subPriority",0)}validate(r,e){return!0}}class Vm extends Pl{constructor(r,e,t,o,a){super(),this.value=r,this.validateValue=e,this.setValue=t,this.priority=o,a&&(this.subPriority=a)}validate(r,e){return this.validateValue(r,this.value,e)}set(r,e,t){return this.setValue(r,e,this.value,t)}}class zm extends Pl{constructor(){super(...arguments);V(this,"priority",Bm);V(this,"subPriority",-1)}set(e,t){return t.timestampIsSet?e:de(e,Rm(e,Date))}}class le{run(r,e,t,o){const a=this.parse(r,e,t,o);return a?{setter:new Vm(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(r,e,t){return!0}}class Qm extends le{constructor(){super(...arguments);V(this,"priority",140);V(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,o){switch(t){case"G":case"GG":case"GGG":return o.era(e,{width:"abbreviated"})||o.era(e,{width:"narrow"});case"GGGGG":return o.era(e,{width:"narrow"});case"GGGG":default:return o.era(e,{width:"wide"})||o.era(e,{width:"abbreviated"})||o.era(e,{width:"narrow"})}}set(e,t,o){return t.era=o,e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}}const Pe={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},lt={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Me(n,r){return n&&{value:r(n.value),rest:n.rest}}function ke(n,r){const e=r.match(n);return e?{value:parseInt(e[0],10),rest:r.slice(e[0].length)}:null}function ut(n,r){const e=r.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:r.slice(1)};const t=e[1]==="+"?1:-1,o=e[2]?parseInt(e[2],10):0,a=e[3]?parseInt(e[3],10):0,i=e[5]?parseInt(e[5],10):0;return{value:t*(o*Br+a*Rr+i*Wh),rest:r.slice(e[0].length)}}function Ml(n){return ke(Pe.anyDigitsSigned,n)}function _e(n,r){switch(n){case 1:return ke(Pe.singleDigit,r);case 2:return ke(Pe.twoDigits,r);case 3:return ke(Pe.threeDigits,r);case 4:return ke(Pe.fourDigits,r);default:return ke(new RegExp("^\\d{1,"+n+"}"),r)}}function Jr(n,r){switch(n){case 1:return ke(Pe.singleDigitSigned,r);case 2:return ke(Pe.twoDigitsSigned,r);case 3:return ke(Pe.threeDigitsSigned,r);case 4:return ke(Pe.fourDigitsSigned,r);default:return ke(new RegExp("^-?\\d{1,"+n+"}"),r)}}function Ea(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Tl(n,r){const e=r>0,t=e?r:1-r;let o;if(t<=50)o=n||100;else{const a=t+50,i=Math.trunc(a/100)*100,s=n>=a%100;o=n+i-(s?100:0)}return e?o:1-o}function Nl(n){return n%400===0||n%4===0&&n%100!==0}class Um extends le{constructor(){super(...arguments);V(this,"priority",130);V(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,o){const a=i=>({year:i,isTwoDigitYear:t==="yy"});switch(t){case"y":return Me(_e(4,e),a);case"yo":return Me(o.ordinalNumber(e,{unit:"year"}),a);default:return Me(_e(t.length,e),a)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,o){const a=e.getFullYear();if(o.isTwoDigitYear){const s=Tl(o.year,a);return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}const i=!("era"in t)||t.era===1?o.year:1-o.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}}class Km extends le{constructor(){super(...arguments);V(this,"priority",130);V(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,o){const a=i=>({year:i,isTwoDigitYear:t==="YY"});switch(t){case"Y":return Me(_e(4,e),a);case"Yo":return Me(o.ordinalNumber(e,{unit:"year"}),a);default:return Me(_e(t.length,e),a)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,o,a){const i=ya(e,a);if(o.isTwoDigitYear){const l=Tl(o.year,i);return e.setFullYear(l,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),wt(e,a)}const s=!("era"in t)||t.era===1?o.year:1-o.year;return e.setFullYear(s,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),wt(e,a)}}class qm extends le{constructor(){super(...arguments);V(this,"priority",130);V(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return Jr(t==="R"?4:t.length,e)}set(e,t,o){const a=de(e,0);return a.setFullYear(o,0,4),a.setHours(0,0,0,0),bn(a)}}class Gm extends le{constructor(){super(...arguments);V(this,"priority",130);V(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return Jr(t==="u"?4:t.length,e)}set(e,t,o){return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}}class Xm extends le{constructor(){super(...arguments);V(this,"priority",120);V(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,o){switch(t){case"Q":case"QQ":return _e(t.length,e);case"Qo":return o.ordinalNumber(e,{unit:"quarter"});case"QQQ":return o.quarter(e,{width:"abbreviated",context:"formatting"})||o.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(e,{width:"wide",context:"formatting"})||o.quarter(e,{width:"abbreviated",context:"formatting"})||o.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,o){return e.setMonth((o-1)*3,1),e.setHours(0,0,0,0),e}}class Jm extends le{constructor(){super(...arguments);V(this,"priority",120);V(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,o){switch(t){case"q":case"qq":return _e(t.length,e);case"qo":return o.ordinalNumber(e,{unit:"quarter"});case"qqq":return o.quarter(e,{width:"abbreviated",context:"standalone"})||o.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(e,{width:"wide",context:"standalone"})||o.quarter(e,{width:"abbreviated",context:"standalone"})||o.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,o){return e.setMonth((o-1)*3,1),e.setHours(0,0,0,0),e}}class Zm extends le{constructor(){super(...arguments);V(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);V(this,"priority",110)}parse(e,t,o){const a=i=>i-1;switch(t){case"M":return Me(ke(Pe.month,e),a);case"MM":return Me(_e(2,e),a);case"Mo":return Me(o.ordinalNumber(e,{unit:"month"}),a);case"MMM":return o.month(e,{width:"abbreviated",context:"formatting"})||o.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(e,{width:"wide",context:"formatting"})||o.month(e,{width:"abbreviated",context:"formatting"})||o.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,o){return e.setMonth(o,1),e.setHours(0,0,0,0),e}}class ev extends le{constructor(){super(...arguments);V(this,"priority",110);V(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,o){const a=i=>i-1;switch(t){case"L":return Me(ke(Pe.month,e),a);case"LL":return Me(_e(2,e),a);case"Lo":return Me(o.ordinalNumber(e,{unit:"month"}),a);case"LLL":return o.month(e,{width:"abbreviated",context:"standalone"})||o.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(e,{width:"wide",context:"standalone"})||o.month(e,{width:"abbreviated",context:"standalone"})||o.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,o){return e.setMonth(o,1),e.setHours(0,0,0,0),e}}function tv(n,r,e){const t=z(n),o=gl(t,e)-r;return t.setDate(t.getDate()-o*7),t}class nv extends le{constructor(){super(...arguments);V(this,"priority",100);V(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,o){switch(t){case"w":return ke(Pe.week,e);case"wo":return o.ordinalNumber(e,{unit:"week"});default:return _e(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,o,a){return wt(tv(e,o,a),a)}}function rv(n,r){const e=z(n),t=ba(e)-r;return e.setDate(e.getDate()-t*7),e}class ov extends le{constructor(){super(...arguments);V(this,"priority",100);V(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,o){switch(t){case"I":return ke(Pe.week,e);case"Io":return o.ordinalNumber(e,{unit:"week"});default:return _e(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,o){return bn(rv(e,o))}}const av=[31,28,31,30,31,30,31,31,30,31,30,31],iv=[31,29,31,30,31,30,31,31,30,31,30,31];class sv extends le{constructor(){super(...arguments);V(this,"priority",90);V(this,"subPriority",1);V(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,o){switch(t){case"d":return ke(Pe.date,e);case"do":return o.ordinalNumber(e,{unit:"date"});default:return _e(t.length,e)}}validate(e,t){const o=e.getFullYear(),a=Nl(o),i=e.getMonth();return a?t>=1&&t<=iv[i]:t>=1&&t<=av[i]}set(e,t,o){return e.setDate(o),e.setHours(0,0,0,0),e}}class lv extends le{constructor(){super(...arguments);V(this,"priority",90);V(this,"subpriority",1);V(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,o){switch(t){case"D":case"DD":return ke(Pe.dayOfYear,e);case"Do":return o.ordinalNumber(e,{unit:"date"});default:return _e(t.length,e)}}validate(e,t){const o=e.getFullYear();return Nl(o)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,o){return e.setMonth(0,o),e.setHours(0,0,0,0),e}}function Ca(n,r,e){var f,m,p,h;const t=Jt(),o=(e==null?void 0:e.weekStartsOn)??((m=(f=e==null?void 0:e.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??t.weekStartsOn??((h=(p=t.locale)==null?void 0:p.options)==null?void 0:h.weekStartsOn)??0,a=z(n),i=a.getDay(),l=(r%7+7)%7,u=7-o,c=r<0||r>6?r-(i+u)%7:(l+u)%7-(i+u)%7;return It(a,c)}class uv extends le{constructor(){super(...arguments);V(this,"priority",90);V(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,o){switch(t){case"E":case"EE":case"EEE":return o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,o,a){return e=Ca(e,o,a),e.setHours(0,0,0,0),e}}class cv extends le{constructor(){super(...arguments);V(this,"priority",90);V(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,o,a){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+a.weekStartsOn+6)%7+l};switch(t){case"e":case"ee":return Me(_e(t.length,e),i);case"eo":return Me(o.ordinalNumber(e,{unit:"day"}),i);case"eee":return o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"eeeee":return o.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,o,a){return e=Ca(e,o,a),e.setHours(0,0,0,0),e}}class dv extends le{constructor(){super(...arguments);V(this,"priority",90);V(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,o,a){const i=s=>{const l=Math.floor((s-1)/7)*7;return(s+a.weekStartsOn+6)%7+l};switch(t){case"c":case"cc":return Me(_e(t.length,e),i);case"co":return Me(o.ordinalNumber(e,{unit:"day"}),i);case"ccc":return o.day(e,{width:"abbreviated",context:"standalone"})||o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"});case"ccccc":return o.day(e,{width:"narrow",context:"standalone"});case"cccccc":return o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(e,{width:"wide",context:"standalone"})||o.day(e,{width:"abbreviated",context:"standalone"})||o.day(e,{width:"short",context:"standalone"})||o.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,o,a){return e=Ca(e,o,a),e.setHours(0,0,0,0),e}}function fv(n){let e=z(n).getDay();return e===0&&(e=7),e}function pv(n,r){const e=z(n),t=fv(e),o=r-t;return It(e,o)}class hv extends le{constructor(){super(...arguments);V(this,"priority",90);V(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,o){const a=i=>i===0?7:i;switch(t){case"i":case"ii":return _e(t.length,e);case"io":return o.ordinalNumber(e,{unit:"day"});case"iii":return Me(o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),a);case"iiiii":return Me(o.day(e,{width:"narrow",context:"formatting"}),a);case"iiiiii":return Me(o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),a);case"iiii":default:return Me(o.day(e,{width:"wide",context:"formatting"})||o.day(e,{width:"abbreviated",context:"formatting"})||o.day(e,{width:"short",context:"formatting"})||o.day(e,{width:"narrow",context:"formatting"}),a)}}validate(e,t){return t>=1&&t<=7}set(e,t,o){return e=pv(e,o),e.setHours(0,0,0,0),e}}class mv extends le{constructor(){super(...arguments);V(this,"priority",80);V(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,o){switch(t){case"a":case"aa":case"aaa":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,o){return e.setHours(Ea(o),0,0,0),e}}class vv extends le{constructor(){super(...arguments);V(this,"priority",80);V(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,o){switch(t){case"b":case"bb":case"bbb":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,o){return e.setHours(Ea(o),0,0,0),e}}class gv extends le{constructor(){super(...arguments);V(this,"priority",80);V(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,o){switch(t){case"B":case"BB":case"BBB":return o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(e,{width:"wide",context:"formatting"})||o.dayPeriod(e,{width:"abbreviated",context:"formatting"})||o.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,o){return e.setHours(Ea(o),0,0,0),e}}class bv extends le{constructor(){super(...arguments);V(this,"priority",70);V(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,o){switch(t){case"h":return ke(Pe.hour12h,e);case"ho":return o.ordinalNumber(e,{unit:"hour"});default:return _e(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,o){const a=e.getHours()>=12;return a&&o<12?e.setHours(o+12,0,0,0):!a&&o===12?e.setHours(0,0,0,0):e.setHours(o,0,0,0),e}}class yv extends le{constructor(){super(...arguments);V(this,"priority",70);V(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,o){switch(t){case"H":return ke(Pe.hour23h,e);case"Ho":return o.ordinalNumber(e,{unit:"hour"});default:return _e(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,o){return e.setHours(o,0,0,0),e}}class wv extends le{constructor(){super(...arguments);V(this,"priority",70);V(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,o){switch(t){case"K":return ke(Pe.hour11h,e);case"Ko":return o.ordinalNumber(e,{unit:"hour"});default:return _e(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,o){return e.getHours()>=12&&o<12?e.setHours(o+12,0,0,0):e.setHours(o,0,0,0),e}}class xv extends le{constructor(){super(...arguments);V(this,"priority",70);V(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,o){switch(t){case"k":return ke(Pe.hour24h,e);case"ko":return o.ordinalNumber(e,{unit:"hour"});default:return _e(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,o){const a=o<=24?o%24:o;return e.setHours(a,0,0,0),e}}class Dv extends le{constructor(){super(...arguments);V(this,"priority",60);V(this,"incompatibleTokens",["t","T"])}parse(e,t,o){switch(t){case"m":return ke(Pe.minute,e);case"mo":return o.ordinalNumber(e,{unit:"minute"});default:return _e(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,o){return e.setMinutes(o,0,0),e}}class Ev extends le{constructor(){super(...arguments);V(this,"priority",50);V(this,"incompatibleTokens",["t","T"])}parse(e,t,o){switch(t){case"s":return ke(Pe.second,e);case"so":return o.ordinalNumber(e,{unit:"second"});default:return _e(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,o){return e.setSeconds(o,0),e}}class Cv extends le{constructor(){super(...arguments);V(this,"priority",30);V(this,"incompatibleTokens",["t","T"])}parse(e,t){const o=a=>Math.trunc(a*Math.pow(10,-t.length+3));return Me(_e(t.length,e),o)}set(e,t,o){return e.setMilliseconds(o),e}}class kv extends le{constructor(){super(...arguments);V(this,"priority",10);V(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return ut(lt.basicOptionalMinutes,e);case"XX":return ut(lt.basic,e);case"XXXX":return ut(lt.basicOptionalSeconds,e);case"XXXXX":return ut(lt.extendedOptionalSeconds,e);case"XXX":default:return ut(lt.extended,e)}}set(e,t,o){return t.timestampIsSet?e:de(e,e.getTime()-zr(e)-o)}}class Sv extends le{constructor(){super(...arguments);V(this,"priority",10);V(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return ut(lt.basicOptionalMinutes,e);case"xx":return ut(lt.basic,e);case"xxxx":return ut(lt.basicOptionalSeconds,e);case"xxxxx":return ut(lt.extendedOptionalSeconds,e);case"xxx":default:return ut(lt.extended,e)}}set(e,t,o){return t.timestampIsSet?e:de(e,e.getTime()-zr(e)-o)}}class _v extends le{constructor(){super(...arguments);V(this,"priority",40);V(this,"incompatibleTokens","*")}parse(e){return Ml(e)}set(e,t,o){return[de(e,o*1e3),{timestampIsSet:!0}]}}class Ov extends le{constructor(){super(...arguments);V(this,"priority",20);V(this,"incompatibleTokens","*")}parse(e){return Ml(e)}set(e,t,o){return[de(e,o),{timestampIsSet:!0}]}}const Pv={G:new Qm,y:new Um,Y:new Km,R:new qm,u:new Gm,Q:new Xm,q:new Jm,M:new Zm,L:new ev,w:new nv,I:new ov,d:new sv,D:new lv,E:new uv,e:new cv,c:new dv,i:new hv,a:new mv,b:new vv,B:new gv,h:new bv,H:new yv,K:new wv,k:new xv,m:new Dv,s:new Ev,S:new Cv,X:new kv,x:new Sv,t:new _v,T:new Ov},Mv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Tv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Nv=/^'([^]*?)'?$/,Iv=/''/g,Fv=/\S/,Lv=/[a-zA-Z]/;function ka(n,r,e,t){var v,g,b,w,x,k,P,M;const o=Hm(),a=(t==null?void 0:t.locale)??o.locale??ml,i=(t==null?void 0:t.firstWeekContainsDate)??((g=(v=t==null?void 0:t.locale)==null?void 0:v.options)==null?void 0:g.firstWeekContainsDate)??o.firstWeekContainsDate??((w=(b=o.locale)==null?void 0:b.options)==null?void 0:w.firstWeekContainsDate)??1,s=(t==null?void 0:t.weekStartsOn)??((k=(x=t==null?void 0:t.locale)==null?void 0:x.options)==null?void 0:k.weekStartsOn)??o.weekStartsOn??((M=(P=o.locale)==null?void 0:P.options)==null?void 0:M.weekStartsOn)??0;if(r==="")return n===""?z(e):de(e,NaN);const l={firstWeekContainsDate:i,weekStartsOn:s,locale:a},u=[new zm],c=r.match(Tv).map(S=>{const O=S[0];if(O in Gr){const I=Gr[O];return I(S,a.formatLong)}return S}).join("").match(Mv),f=[];for(let S of c){!(t!=null&&t.useAdditionalWeekYearTokens)&&Cl(S)&&wa(S,r,n),!(t!=null&&t.useAdditionalDayOfYearTokens)&&El(S)&&wa(S,r,n);const O=S[0],I=Pv[O];if(I){const{incompatibleTokens:W}=I;if(Array.isArray(W)){const C=f.find(_=>W.includes(_.token)||_.token===O);if(C)throw new RangeError(`The format string mustn't contain \`${C.fullToken}\` and \`${S}\` at the same time`)}else if(I.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${S}\` and any other token at the same time`);f.push({token:O,fullToken:S});const E=I.run(n,S,a.match,l);if(!E)return de(e,NaN);u.push(E.setter),n=E.rest}else{if(O.match(Lv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");if(S==="''"?S="'":O==="'"&&(S=Av(S)),n.indexOf(S)===0)n=n.slice(S.length);else return de(e,NaN)}}if(n.length>0&&Fv.test(n))return de(e,NaN);const m=u.map(S=>S.priority).sort((S,O)=>O-S).filter((S,O,I)=>I.indexOf(S)===O).map(S=>u.filter(O=>O.priority===S).sort((O,I)=>I.subPriority-O.subPriority)).map(S=>S[0]);let p=z(e);if(isNaN(p.getTime()))return de(e,NaN);const h={};for(const S of m){if(!S.validate(p,l))return de(e,NaN);const O=S.set(p,h,l);Array.isArray(O)?(p=O[0],Object.assign(h,O[1])):p=O}return de(e,p)}function Av(n){return n.match(Nv)[1].replace(Iv,"'")}function $v(n,r){const t=Hv(n);let o;if(t.date){const l=Rv(t.date,2);o=Bv(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);const a=o.getTime();let i=0,s;if(t.time&&(i=Vv(t.time),isNaN(i)))return new Date(NaN);if(t.timezone){if(s=zv(t.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(a+i),u=new Date(0);return u.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),u.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),u}return new Date(a+i+s)}const Zr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Yv=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,jv=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Wv=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Hv(n){const r={},e=n.split(Zr.dateTimeDelimiter);let t;if(e.length>2)return r;if(/:/.test(e[0])?t=e[0]:(r.date=e[0],t=e[1],Zr.timeZoneDelimiter.test(r.date)&&(r.date=n.split(Zr.timeZoneDelimiter)[0],t=n.substr(r.date.length,n.length))),t){const o=Zr.timezone.exec(t);o?(r.time=t.replace(o[1],""),r.timezone=o[1]):r.time=t}return r}function Rv(n,r){const e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+r)+"})|(\\d{2}|[+-]\\d{"+(2+r)+"})$)"),t=n.match(e);if(!t)return{year:NaN,restDateString:""};const o=t[1]?parseInt(t[1]):null,a=t[2]?parseInt(t[2]):null;return{year:a===null?o:a*100,restDateString:n.slice((t[1]||t[2]).length)}}function Bv(n,r){if(r===null)return new Date(NaN);const e=n.match(Yv);if(!e)return new Date(NaN);const t=!!e[4],o=er(e[1]),a=er(e[2])-1,i=er(e[3]),s=er(e[4]),l=er(e[5])-1;if(t)return Gv(r,s,l)?Qv(r,s,l):new Date(NaN);{const u=new Date(0);return!Kv(r,a,i)||!qv(r,o)?new Date(NaN):(u.setUTCFullYear(r,a,Math.max(o,i)),u)}}function er(n){return n?parseInt(n):1}function Vv(n){const r=n.match(jv);if(!r)return NaN;const e=Sa(r[1]),t=Sa(r[2]),o=Sa(r[3]);return Xv(e,t,o)?e*Br+t*Rr+o*1e3:NaN}function Sa(n){return n&&parseFloat(n.replace(",","."))||0}function zv(n){if(n==="Z")return 0;const r=n.match(Wv);if(!r)return 0;const e=r[1]==="+"?-1:1,t=parseInt(r[2]),o=r[3]&&parseInt(r[3])||0;return Jv(t,o)?e*(t*Br+o*Rr):NaN}function Qv(n,r,e){const t=new Date(0);t.setUTCFullYear(n,0,4);const o=t.getUTCDay()||7,a=(r-1)*7+e+1-o;return t.setUTCDate(t.getUTCDate()+a),t}const Uv=[31,null,31,30,31,30,31,31,30,31,30,31];function Il(n){return n%400===0||n%4===0&&n%100!==0}function Kv(n,r,e){return r>=0&&r<=11&&e>=1&&e<=(Uv[r]||(Il(n)?29:28))}function qv(n,r){return r>=1&&r<=(Il(n)?366:365)}function Gv(n,r,e){return r>=1&&r<=53&&e>=0&&e<=6}function Xv(n,r,e){return n===24?r===0&&e===0:e>=0&&e<60&&r>=0&&r<60&&n>=0&&n<25}function Jv(n,r){return r>=0&&r<=59}function Zv(n){const r=z(n),e=r.getFullYear(),t=r.getMonth(),o=de(n,0);return o.setFullYear(e,t+1,0),o.setHours(0,0,0,0),o.getDate()}function Ue(n,r){const e=z(n),t=e.getFullYear(),o=e.getDate(),a=de(n,0);a.setFullYear(t,r,15),a.setHours(0,0,0,0);const i=Zv(a);return e.setMonth(r,Math.min(o,i)),e}function eg(n,r){let e=z(n);return isNaN(+e)?de(n,NaN):(r.year!=null&&e.setFullYear(r.year),r.month!=null&&(e=Ue(e,r.month)),r.date!=null&&e.setDate(r.date),r.hours!=null&&e.setHours(r.hours),r.minutes!=null&&e.setMinutes(r.minutes),r.seconds!=null&&e.setSeconds(r.seconds),r.milliseconds!=null&&e.setMilliseconds(r.milliseconds),e)}function eo(n,r){const e=z(n);return e.setHours(r),e}function to(n,r){const e=z(n);return e.setMinutes(r),e}function wn(n,r){const e=z(n),t=Math.trunc(e.getMonth()/3)+1,o=r-t;return Ue(e,e.getMonth()+o*3)}function no(n,r){const e=z(n);return e.setSeconds(r),e}function ct(n,r){const e=z(n);return isNaN(+e)?de(n,NaN):(e.setFullYear(r),e)}function Fl(n){const r=z(n);return r.setDate(1),r.setHours(0,0,0,0),r}function tg(n,r){return It(n,-r)}function xn(n,r){return et(n,-r)}function Ll(n,r){return ga(n,-r)}function Al(n,r){return Vr(n,-r)}function Dn(n,r){return yt(n,-r)}/*!
37
38
  react-datepicker v7.3.0
38
39
  https://github.com/Hacker0x01/react-datepicker
39
40
  Released under the MIT License.
40
- */var _a=function(r,e){return _a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a])},_a(r,e)};function Ae(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");_a(n,r);function e(){this.constructor=n}n.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var ie=function(){return ie=Object.assign||function(e){for(var t,o=1,a=arguments.length;o<a;o++){t=arguments[o];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ie.apply(this,arguments)};function dt(n,r,e){if(e||arguments.length===2)for(var t=0,o=r.length,a;t<o;t++)(a||!(t in r))&&(a||(a=Array.prototype.slice.call(r,0,t)),a[t]=r[t]);return n.concat(a||Array.prototype.slice.call(r))}typeof SuppressedError=="function"&&SuppressedError;var ag=function(n){var r=n.showTimeSelectOnly,e=r===void 0?!1:r,t=n.showTime,o=t===void 0?!1:t,a=n.className,i=n.children,s=e?"Choose Time":"Choose Date".concat(o?" and Time":"");return d.createElement("div",{className:a,role:"dialog","aria-label":s,"aria-modal":"true"},i)},j;(function(n){n.ArrowUp="ArrowUp",n.ArrowDown="ArrowDown",n.ArrowLeft="ArrowLeft",n.ArrowRight="ArrowRight",n.PageUp="PageUp",n.PageDown="PageDown",n.Home="Home",n.End="End",n.Enter="Enter",n.Space=" ",n.Tab="Tab",n.Escape="Escape",n.Backspace="Backspace",n.X="x"})(j||(j={}));function $l(){var n=typeof window<"u"?window:globalThis;return n}var tr=12,ig=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function de(n){if(n==null)return new Date;var r=typeof n=="string"?Wv(n):B(n);return Dt(r)?r:new Date}function sg(n,r,e,t,o){var a,i=null,s=rn(e)||rn(or()),l=!0;if(Array.isArray(r))return r.forEach(function(c){var f=ka(n,c,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});t&&(l=Dt(f,o)&&n===be(f,c,e)),Dt(f,o)&&l&&(i=f)}),i;if(i=ka(n,r,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),t)l=Dt(i)&&n===be(i,r,e);else if(!Dt(i)){var u=((a=r.match(ig))!==null&&a!==void 0?a:[]).map(function(c){var f=c[0];if(f==="p"||f==="P"){var h=Jr[f];return s?h(c,s.formatLong):f}return c}).join("");n.length>0&&(i=ka(n,u.slice(0,n.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),Dt(i)||(i=new Date(n))}return Dt(i)&&l?i:null}function Dt(n,r){return Zr(n)&&!tn(n,r??new Date("1/1/1800"))}function be(n,r,e){if(e==="en")return kl(n,r,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var t=e?rn(e):void 0;return e&&!t&&console.warn('A locale object was not found for the provided string ["'.concat(e,'"].')),!t&&or()&&rn(or())&&(t=rn(or())),kl(n,r,{locale:t,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function qe(n,r){var e=r.dateFormat,t=r.locale,o=Array.isArray(e)&&e.length>0?e[0]:e;return n&&be(n,o,t)||""}function lg(n,r,e){if(!n)return"";var t=qe(n,e),o=r?qe(r,e):"";return"".concat(t," - ").concat(o)}function ug(n,r){if(!(n!=null&&n.length))return"";var e=n[0]?qe(n[0],r):"";if(n.length===1)return e;if(n.length===2&&n[1]){var t=qe(n[1],r);return"".concat(e,", ").concat(t)}var o=n.length-1;return"".concat(e," (+").concat(o,")")}function Oa(n,r){var e=r.hour,t=e===void 0?0:e,o=r.minute,a=o===void 0?0:o,i=r.second,s=i===void 0?0:i;return no(ro(oo(n,s),a),t)}function cg(n){return ba(n)}function dg(n,r){return be(n,"ddd",r)}function ao(n){return Xt(n)}function At(n,r,e){var t=rn(r||or());return yt(n,{locale:t,weekStartsOn:e})}function $t(n){return Fl(n)}function nr(n){return Xr(n)}function Yl(n){return Da(n)}function jl(){return Xt(de())}function Wl(n){return fl(n)}function fg(n){return Kh(n)}function ft(n,r){return n&&r?Bm(n,r):!n&&!r}function We(n,r){return n&&r?Rm(n,r):!n&&!r}function io(n,r){return n&&r?Hm(n,r):!n&&!r}function re(n,r){return n&&r?Wm(n,r):!n&&!r}function nn(n,r){return n&&r?jm(n,r):!n&&!r}function rr(n,r,e){var t,o=Xt(r),a=fl(e);try{t=Zn(n,{start:o,end:a})}catch{t=!1}return t}function or(){var n=$l();return n.__localeId__}function rn(n){if(typeof n=="string"){var r=$l();return r.__localeData__?r.__localeData__[n]:void 0}else return n}function pg(n,r,e){return r(be(n,"EEEE",e))}function hg(n,r){return be(n,"EEEEEE",r)}function mg(n,r){return be(n,"EEE",r)}function Pa(n,r){return be(Ue(de(),n),"LLLL",r)}function Rl(n,r){return be(Ue(de(),n),"LLL",r)}function vg(n,r){return be(wn(de(),n),"QQQ",r)}function Yt(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.maxDate,a=e.excludeDates,i=e.excludeDateIntervals,s=e.includeDates,l=e.includeDateIntervals,u=e.filterDate;return ar(n,{minDate:t,maxDate:o})||a&&a.some(function(c){var f;return c instanceof Date?re(n,c):re(n,(f=c.date)!==null&&f!==void 0?f:new Date)})||i&&i.some(function(c){var f=c.start,h=c.end;return Zn(n,{start:f,end:h})})||s&&!s.some(function(c){return re(n,c)})||l&&!l.some(function(c){var f=c.start,h=c.end;return Zn(n,{start:f,end:h})})||u&&!u(de(n))||!1}function Ma(n,r){var e=r===void 0?{}:r,t=e.excludeDates,o=e.excludeDateIntervals;return o&&o.length>0?o.some(function(a){var i=a.start,s=a.end;return Zn(n,{start:i,end:s})}):t&&t.some(function(a){var i;return a instanceof Date?re(n,a):re(n,(i=a.date)!==null&&i!==void 0?i:new Date)})||!1}function Hl(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.maxDate,a=e.excludeDates,i=e.includeDates,s=e.filterDate;return ar(n,{minDate:t?Fl(t):void 0,maxDate:o?Uh(o):void 0})||(a==null?void 0:a.some(function(l){return We(n,l instanceof Date?l:l.date)}))||i&&!i.some(function(l){return We(n,l)})||s&&!s(de(n))||!1}function so(n,r,e,t){var o=J(n),a=je(n),i=J(r),s=je(r),l=J(t);return o===i&&o===l?a<=e&&e<=s:o<i?l===o&&a<=e||l===i&&s>=e||l<i&&l>o:!1}function gg(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.maxDate,a=e.excludeDates,i=e.includeDates;return ar(n,{minDate:t,maxDate:o})||a&&a.some(function(s){return We(s instanceof Date?s:s.date,n)})||i&&!i.some(function(s){return We(s,n)})||!1}function Ta(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.maxDate,a=e.excludeDates,i=e.includeDates,s=e.filterDate;return ar(n,{minDate:t,maxDate:o})||(a==null?void 0:a.some(function(l){return io(n,l instanceof Date?l:l.date)}))||i&&!i.some(function(l){return io(n,l)})||s&&!s(de(n))||!1}function lo(n,r,e){if(!r||!e||!Zr(r)||!Zr(e))return!1;var t=J(r),o=J(e);return t<=n&&o>=n}function Na(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.maxDate,a=e.excludeDates,i=e.includeDates,s=e.filterDate,l=new Date(n,0,1);return ar(l,{minDate:t?Xr(t):void 0,maxDate:o?pl(o):void 0})||(a==null?void 0:a.some(function(u){return ft(l,u instanceof Date?u:u.date)}))||i&&!i.some(function(u){return ft(l,u)})||s&&!s(de(l))||!1}function uo(n,r,e,t){var o=J(n),a=Jt(n),i=J(r),s=Jt(r),l=J(t);return o===i&&o===l?a<=e&&e<=s:o<i?l===o&&a<=e||l===i&&s>=e||l<i&&l>o:!1}function ar(n,r){var e,t=r===void 0?{}:r,o=t.minDate,a=t.maxDate;return(e=o&&Jn(n,o)<0||a&&Jn(n,a)>0)!==null&&e!==void 0?e:!1}function Bl(n,r){return r.some(function(e){return it(e)===it(n)&&st(e)===st(n)&&xt(e)===xt(n)})}function Vl(n,r){var e=r===void 0?{}:r,t=e.excludeTimes,o=e.includeTimes,a=e.filterTime;return t&&Bl(n,t)||o&&!Bl(n,o)||a&&!a(n)||!1}function zl(n,r){var e=r.minTime,t=r.maxTime;if(!e||!t)throw new Error("Both minTime and maxTime props required");var o=de();o=no(o,it(n)),o=ro(o,st(n)),o=oo(o,xt(n));var a=de();a=no(a,it(e)),a=ro(a,st(e)),a=oo(a,xt(e));var i=de();i=no(i,it(t)),i=ro(i,st(t)),i=oo(i,xt(t));var s;try{s=!Zn(o,{start:a,end:i})}catch{s=!1}return s}function Ul(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.includeDates,a=xn(n,1);return t&&Kr(t,a)>0||o&&o.every(function(i){return Kr(i,a)>0})||!1}function Ql(n,r){var e=r===void 0?{}:r,t=e.maxDate,o=e.includeDates,a=Ze(n,1);return t&&Kr(a,t)>0||o&&o.every(function(i){return Kr(a,i)>0})||!1}function bg(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.includeDates,a=Xr(n),i=Ll(a,1);return t&&qr(t,i)>0||o&&o.every(function(s){return qr(s,i)>0})||!1}function yg(n,r){var e=r===void 0?{}:r,t=e.maxDate,o=e.includeDates,a=pl(n),i=ga(a,1);return t&&qr(i,t)>0||o&&o.every(function(s){return qr(i,s)>0})||!1}function Kl(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.includeDates,a=Dn(n,1);return t&&Gr(t,a)>0||o&&o.every(function(i){return Gr(i,a)>0})||!1}function wg(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.yearItemNumber,a=o===void 0?tr:o,i=nr(Dn(n,a)),s=jt(i,a).endPeriod,l=t&&J(t);return l&&l>s||!1}function ql(n,r){var e=r===void 0?{}:r,t=e.maxDate,o=e.includeDates,a=bt(n,1);return t&&Gr(a,t)>0||o&&o.every(function(i){return Gr(a,i)>0})||!1}function xg(n,r){var e=r===void 0?{}:r,t=e.maxDate,o=e.yearItemNumber,a=o===void 0?tr:o,i=bt(n,a),s=jt(i,a).startPeriod,l=t&&J(t);return l&&l<s||!1}function Gl(n){var r=n.minDate,e=n.includeDates;if(e&&r){var t=e.filter(function(o){return Jn(o,r)>=0});return Ol(t)}else return e?Ol(e):r}function Xl(n){var r=n.maxDate,e=n.includeDates;if(e&&r){var t=e.filter(function(o){return Jn(o,r)<=0});return _l(t)}else return e?_l(e):r}function Jl(n,r){var e;n===void 0&&(n=[]),r===void 0&&(r="react-datepicker__day--highlighted");for(var t=new Map,o=0,a=n.length;o<a;o++){var i=n[o];if(wt(i)){var s=be(i,"MM.dd.yyyy"),l=t.get(s)||[];l.includes(r)||(l.push(r),t.set(s,l))}else if(typeof i=="object"){var u=Object.keys(i),c=(e=u[0])!==null&&e!==void 0?e:"",f=i[c];if(typeof c=="string"&&Array.isArray(f))for(var h=0,p=f.length;h<p;h++){var m=f[h];if(m){var s=be(m,"MM.dd.yyyy"),l=t.get(s)||[];l.includes(c)||(l.push(c),t.set(s,l))}}}}return t}function Dg(n,r){return n.length!==r.length?!1:n.every(function(e,t){return e===r[t]})}function Eg(n,r){n===void 0&&(n=[]),r===void 0&&(r="react-datepicker__day--holidays");var e=new Map;return n.forEach(function(t){var o=t.date,a=t.holidayName;if(wt(o)){var i=be(o,"MM.dd.yyyy"),s=e.get(i)||{className:"",holidayNames:[]};if(!("className"in s&&s.className===r&&Dg(s.holidayNames,[a]))){s.className=r;var l=s.holidayNames;s.holidayNames=l?dt(dt([],l,!0),[a],!1):[a],e.set(i,s)}}}),e}function Cg(n,r,e,t,o){for(var a=o.length,i=[],s=0;s<a;s++){var l=n,u=o[s];u&&(l=Vh(l,it(u)),l=va(l,st(u)),l=zh(l,xt(u)));var c=va(n,(e+1)*t);Lt(l,r)&&tn(l,c)&&u!=null&&i.push(u)}return i}function Zl(n){return n<10?"0".concat(n):"".concat(n)}function jt(n,r){r===void 0&&(r=tr);var e=Math.ceil(J(n)/r)*r,t=e-(r-1);return{startPeriod:t,endPeriod:e}}function kg(n){var r=new Date(n.getFullYear(),n.getMonth(),n.getDate()),e=new Date(n.getFullYear(),n.getMonth(),n.getDate(),24);return Math.round((+e-+r)/36e5)}function eu(n){var r=n.getSeconds(),e=n.getMilliseconds();return B(n.getTime()-r*1e3-e)}function Sg(n,r){return eu(n).getTime()===eu(r).getTime()}function tu(n){if(!wt(n))throw new Error("Invalid date");var r=new Date(n);return r.setHours(0,0,0,0),r}function nu(n,r){if(!wt(n)||!wt(r))throw new Error("Invalid date received");var e=tu(n),t=tu(r);return tn(e,t)}function ru(n){return n.key===j.Space}var _g=function(n){Ae(r,n);function r(e){var t=n.call(this,e)||this;return t.onTimeChange=function(o){var a,i;t.setState({time:o});var s=t.props.date,l=s instanceof Date&&!isNaN(+s),u=l?s:new Date;if(o!=null&&o.includes(":")){var c=o.split(":"),f=c[0],h=c[1];u.setHours(Number(f)),u.setMinutes(Number(h))}(i=(a=t.props).onChange)===null||i===void 0||i.call(a,u)},t.renderTimeInput=function(){var o=t.state.time,a=t.props,i=a.date,s=a.timeString,l=a.customTimeInput;return l?d.cloneElement(l,{date:i,value:o,onChange:t.onTimeChange}):d.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:o,onChange:function(u){t.onTimeChange(u.target.value||s)}})},t.state={time:t.props.timeString},t}return r.getDerivedStateFromProps=function(e,t){return e.timeString!==t.time?{time:e.timeString}:null},r.prototype.render=function(){return d.createElement("div",{className:"react-datepicker__input-time-container"},d.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),d.createElement("div",{className:"react-datepicker-time__input-container"},d.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},r}(d.Component),Og=function(n){Ae(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.dayEl=d.createRef(),e.handleClick=function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)},e.handleMouseEnter=function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)},e.handleOnKeyDown=function(t){var o,a,i=t.key;i===j.Space&&(t.preventDefault(),t.key=j.Enter),(a=(o=e.props).handleOnKeyDown)===null||a===void 0||a.call(o,t)},e.isSameDay=function(t){return re(e.props.day,t)},e.isKeyboardSelected=function(){var t;if(e.props.disabledKeyboardNavigation)return!1;var o=e.props.selectsMultiple?(t=e.props.selectedDates)===null||t===void 0?void 0:t.some(function(i){return e.isSameDayOrWeek(i)}):e.isSameDayOrWeek(e.props.selected),a=e.props.preSelection&&e.isDisabled(e.props.preSelection);return!o&&e.isSameDayOrWeek(e.props.preSelection)&&!a},e.isDisabled=function(t){return t===void 0&&(t=e.props.day),Yt(t,{minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDateIntervals:e.props.includeDateIntervals,includeDates:e.props.includeDates,filterDate:e.props.filterDate})},e.isExcluded=function(){return Ma(e.props.day,{excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals})},e.isStartOfWeek=function(){return re(e.props.day,At(e.props.day,e.props.locale,e.props.calendarStartDay))},e.isSameWeek=function(t){return e.props.showWeekPicker&&re(t,At(e.props.day,e.props.locale,e.props.calendarStartDay))},e.isSameDayOrWeek=function(t){return e.isSameDay(t)||e.isSameWeek(t)},e.getHighLightedClass=function(){var t=e.props,o=t.day,a=t.highlightDates;if(!a)return!1;var i=be(o,"MM.dd.yyyy");return a.get(i)},e.getHolidaysClass=function(){var t,o=e.props,a=o.day,i=o.holidays;if(!i)return[void 0];var s=be(a,"MM.dd.yyyy");return i.has(s)?[(t=i.get(s))===null||t===void 0?void 0:t.className]:[void 0]},e.isInRange=function(){var t=e.props,o=t.day,a=t.startDate,i=t.endDate;return!a||!i?!1:rr(o,a,i)},e.isInSelectingRange=function(){var t,o=e.props,a=o.day,i=o.selectsStart,s=o.selectsEnd,l=o.selectsRange,u=o.selectsDisabledDaysInRange,c=o.startDate,f=o.endDate,h=(t=e.props.selectingDate)!==null&&t!==void 0?t:e.props.preSelection;return!(i||s||l)||!h||!u&&e.isDisabled()?!1:i&&f&&(tn(h,f)||nn(h,f))?rr(a,h,f):s&&c&&(Lt(h,c)||nn(h,c))||l&&c&&!f&&(Lt(h,c)||nn(h,c))?rr(a,c,h):!1},e.isSelectingRangeStart=function(){var t;if(!e.isInSelectingRange())return!1;var o=e.props,a=o.day,i=o.startDate,s=o.selectsStart,l=(t=e.props.selectingDate)!==null&&t!==void 0?t:e.props.preSelection;return s?re(a,l):re(a,i)},e.isSelectingRangeEnd=function(){var t;if(!e.isInSelectingRange())return!1;var o=e.props,a=o.day,i=o.endDate,s=o.selectsEnd,l=o.selectsRange,u=(t=e.props.selectingDate)!==null&&t!==void 0?t:e.props.preSelection;return s||l?re(a,u):re(a,i)},e.isRangeStart=function(){var t=e.props,o=t.day,a=t.startDate,i=t.endDate;return!a||!i?!1:re(a,o)},e.isRangeEnd=function(){var t=e.props,o=t.day,a=t.startDate,i=t.endDate;return!a||!i?!1:re(i,o)},e.isWeekend=function(){var t=Ym(e.props.day);return t===0||t===6},e.isAfterMonth=function(){return e.props.month!==void 0&&(e.props.month+1)%12===je(e.props.day)},e.isBeforeMonth=function(){return e.props.month!==void 0&&(je(e.props.day)+1)%12===e.props.month},e.isCurrentDay=function(){return e.isSameDay(de())},e.isSelected=function(){var t;return e.props.selectsMultiple?(t=e.props.selectedDates)===null||t===void 0?void 0:t.some(function(o){return e.isSameDayOrWeek(o)}):e.isSameDayOrWeek(e.props.selected)},e.getClassNames=function(t){var o=e.props.dayClassName?e.props.dayClassName(t):void 0;return Fe("react-datepicker__day",o,"react-datepicker__day--"+dg(e.props.day),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass(),e.getHolidaysClass())},e.getAriaLabel=function(){var t=e.props,o=t.day,a=t.ariaLabelPrefixWhenEnabled,i=a===void 0?"Choose":a,s=t.ariaLabelPrefixWhenDisabled,l=s===void 0?"Not available":s,u=e.isDisabled()||e.isExcluded()?l:i;return"".concat(u," ").concat(be(o,"PPPP",e.props.locale))},e.getTitle=function(){var t=e.props,o=t.day,a=t.holidays,i=a===void 0?new Map:a,s=t.excludeDates,l=be(o,"MM.dd.yyyy"),u=[];return i.has(l)&&u.push.apply(u,i.get(l).holidayNames),e.isExcluded()&&u.push(s==null?void 0:s.filter(function(c){return c instanceof Date?re(c,o):re(c==null?void 0:c.date,o)}).map(function(c){if(!(c instanceof Date))return c==null?void 0:c.message})),u.join(", ")},e.getTabIndex=function(){var t=e.props.selected,o=e.props.preSelection,a=!(e.props.showWeekPicker&&(e.props.showWeekNumber||!e.isStartOfWeek()))&&(e.isKeyboardSelected()||e.isSameDay(t)&&re(o,t))?0:-1;return a},e.handleFocusDay=function(){var t;e.shouldFocusDay()&&((t=e.dayEl.current)===null||t===void 0||t.focus({preventScroll:!0}))},e.renderDayContents=function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(Sl(e.props.day),e.props.day):Sl(e.props.day)},e.render=function(){return d.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.props.usePointerEvent?void 0:e.handleMouseEnter,onPointerEnter:e.props.usePointerEvent?e.handleMouseEnter:void 0,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option",title:e.getTitle(),"aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()||e.isInRange()},e.renderDayContents(),e.getTitle()!==""&&d.createElement("span",{className:"overlay"},e.getTitle()))},e}return r.prototype.componentDidMount=function(){this.handleFocusDay()},r.prototype.componentDidUpdate=function(){this.handleFocusDay()},r.prototype.shouldFocusDay=function(){var e=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(e=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(e=!1),this.isDayActiveElement()&&(e=!0),this.isDuplicateDay()&&(e=!1)),e},r.prototype.isDayActiveElement=function(){var e,t,o;return((t=(e=this.props.containerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.contains(document.activeElement))&&((o=document.activeElement)===null||o===void 0?void 0:o.classList.contains("react-datepicker__day"))},r.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},r}(d.Component),Pg=function(n){Ae(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.weekNumberEl=d.createRef(),e.handleClick=function(t){e.props.onClick&&e.props.onClick(t)},e.handleOnKeyDown=function(t){var o,a,i=t.key;i===j.Space&&(t.preventDefault(),t.key=j.Enter),(a=(o=e.props).handleOnKeyDown)===null||a===void 0||a.call(o,t)},e.isKeyboardSelected=function(){return!e.props.disabledKeyboardNavigation&&!re(e.props.date,e.props.selected)&&re(e.props.date,e.props.preSelection)},e.getTabIndex=function(){return e.props.showWeekPicker&&e.props.showWeekNumber&&(e.isKeyboardSelected()||re(e.props.date,e.props.selected)&&re(e.props.preSelection,e.props.selected))?0:-1},e.handleFocusWeekNumber=function(t){var o=!1;e.getTabIndex()===0&&!(t!=null&&t.isInputFocused)&&re(e.props.date,e.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(o=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(o=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(o=!0)),o&&e.weekNumberEl.current&&e.weekNumberEl.current.focus({preventScroll:!0})},e}return Object.defineProperty(r,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},r.prototype.componentDidUpdate=function(e){this.handleFocusWeekNumber(e)},r.prototype.render=function(){var e=this.props,t=e.weekNumber,o=e.ariaLabelPrefix,a=o===void 0?r.defaultProps.ariaLabelPrefix:o,i=e.onClick,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!i,"react-datepicker__week-number--selected":!!i&&re(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return d.createElement("div",{ref:this.weekNumberEl,className:Fe(s),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},t)},r}(d.Component),Mg=function(n){Ae(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.isDisabled=function(t){return Yt(t,{minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDateIntervals:e.props.includeDateIntervals,includeDates:e.props.includeDates,filterDate:e.props.filterDate})},e.handleDayClick=function(t,o){e.props.onDayClick&&e.props.onDayClick(t,o)},e.handleDayMouseEnter=function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)},e.handleWeekClick=function(t,o,a){for(var i,s,l,u=new Date(t),c=0;c<7;c++){var f=new Date(t);f.setDate(f.getDate()+c);var h=!e.isDisabled(f);if(h){u=f;break}}typeof e.props.onWeekSelect=="function"&&e.props.onWeekSelect(u,o,a),e.props.showWeekPicker&&e.handleDayClick(u,a),((i=e.props.shouldCloseOnSelect)!==null&&i!==void 0?i:r.defaultProps.shouldCloseOnSelect)&&((l=(s=e.props).setOpen)===null||l===void 0||l.call(s,!1))},e.formatWeekNumber=function(t){return e.props.formatWeekNumber?e.props.formatWeekNumber(t):cg(t)},e.renderDays=function(){var t=e.startOfWeek(),o=[],a=e.formatWeekNumber(t);if(e.props.showWeekNumber){var i=e.props.onWeekSelect||e.props.showWeekPicker?e.handleWeekClick.bind(e,t,a):void 0;o.push(d.createElement(Pg,ie({key:"W"},r.defaultProps,e.props,{weekNumber:a,date:t,onClick:i})))}return o.concat([0,1,2,3,4,5,6].map(function(s){var l=It(t,s);return d.createElement(Og,ie({},r.defaultProps,e.props,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:l.valueOf(),day:l,onClick:e.handleDayClick.bind(e,l),onMouseEnter:e.handleDayMouseEnter.bind(e,l)}))}))},e.startOfWeek=function(){return At(e.props.day,e.props.locale,e.props.calendarStartDay)},e.isKeyboardSelected=function(){return!e.props.disabledKeyboardNavigation&&!re(e.startOfWeek(),e.props.selected)&&re(e.startOfWeek(),e.props.preSelection)},e}return Object.defineProperty(r,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),r.prototype.render=function(){var e={"react-datepicker__week":!0,"react-datepicker__week--selected":re(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return d.createElement("div",{className:Fe(e)},this.renderDays())},r}(d.Component),ir,Tg=6,En={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},Ia=(ir={},ir[En.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},ir[En.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},ir[En.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},ir),co=1;function ou(n,r){return n?En.FOUR_COLUMNS:r?En.TWO_COLUMNS:En.THREE_COLUMNS}var Ng=function(n){Ae(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.MONTH_REFS=dt([],Array(12),!0).map(function(){return d.createRef()}),e.QUARTER_REFS=dt([],Array(4),!0).map(function(){return d.createRef()}),e.isDisabled=function(t){return Yt(t,{minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDateIntervals:e.props.includeDateIntervals,includeDates:e.props.includeDates,filterDate:e.props.filterDate})},e.isExcluded=function(t){return Ma(t,{excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals})},e.handleDayClick=function(t,o){var a,i;(i=(a=e.props).onDayClick)===null||i===void 0||i.call(a,t,o,e.props.orderInDisplay)},e.handleDayMouseEnter=function(t){var o,a;(a=(o=e.props).onDayMouseEnter)===null||a===void 0||a.call(o,t)},e.handleMouseLeave=function(){var t,o;(o=(t=e.props).onMouseLeave)===null||o===void 0||o.call(t)},e.isRangeStartMonth=function(t){var o=e.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:We(Ue(a,t),i)},e.isRangeStartQuarter=function(t){var o=e.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:io(wn(a,t),i)},e.isRangeEndMonth=function(t){var o=e.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:We(Ue(a,t),s)},e.isRangeEndQuarter=function(t){var o=e.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:io(wn(a,t),s)},e.isInSelectingRangeMonth=function(t){var o,a=e.props,i=a.day,s=a.selectsStart,l=a.selectsEnd,u=a.selectsRange,c=a.startDate,f=a.endDate,h=(o=e.props.selectingDate)!==null&&o!==void 0?o:e.props.preSelection;return!(s||l||u)||!h?!1:s&&f?so(h,f,t,i):l&&c||u&&c&&!f?so(c,h,t,i):!1},e.isSelectingMonthRangeStart=function(t){var o;if(!e.isInSelectingRangeMonth(t))return!1;var a=e.props,i=a.day,s=a.startDate,l=a.selectsStart,u=Ue(i,t),c=(o=e.props.selectingDate)!==null&&o!==void 0?o:e.props.preSelection;return l?We(u,c):We(u,s)},e.isSelectingMonthRangeEnd=function(t){var o;if(!e.isInSelectingRangeMonth(t))return!1;var a=e.props,i=a.day,s=a.endDate,l=a.selectsEnd,u=a.selectsRange,c=Ue(i,t),f=(o=e.props.selectingDate)!==null&&o!==void 0?o:e.props.preSelection;return l||u?We(c,f):We(c,s)},e.isInSelectingRangeQuarter=function(t){var o,a=e.props,i=a.day,s=a.selectsStart,l=a.selectsEnd,u=a.selectsRange,c=a.startDate,f=a.endDate,h=(o=e.props.selectingDate)!==null&&o!==void 0?o:e.props.preSelection;return!(s||l||u)||!h?!1:s&&f?uo(h,f,t,i):l&&c||u&&c&&!f?uo(c,h,t,i):!1},e.isWeekInMonth=function(t){var o=e.props.day,a=It(t,6);return We(t,o)||We(a,o)},e.isCurrentMonth=function(t,o){return J(t)===J(de())&&o===je(de())},e.isCurrentQuarter=function(t,o){return J(t)===J(de())&&o===Jt(de())},e.isSelectedMonth=function(t,o,a){return je(a)===o&&J(t)===J(a)},e.isSelectMonthInList=function(t,o,a){return a.some(function(i){return e.isSelectedMonth(t,o,i)})},e.isSelectedQuarter=function(t,o,a){return Jt(t)===o&&J(t)===J(a)},e.renderWeeks=function(){for(var t=[],o=e.props.fixedHeight,a=0,i=!1,s=At($t(e.props.day),e.props.locale,e.props.calendarStartDay),l=function(m){return e.props.showWeekPicker?At(m,e.props.locale,e.props.calendarStartDay):e.props.preSelection},u=function(m){return e.props.showWeekPicker?At(m,e.props.locale,e.props.calendarStartDay):e.props.selected},c=e.props.selected?u(e.props.selected):void 0,f=e.props.preSelection?l(e.props.preSelection):void 0;t.push(d.createElement(Mg,ie({},e.props,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,key:a,day:s,month:je(e.props.day),onDayClick:e.handleDayClick,onDayMouseEnter:e.handleDayMouseEnter,selected:c,preSelection:f,showWeekNumber:e.props.showWeekNumbers}))),!i;){a++,s=Ur(s,1);var h=o&&a>=Tg,p=!o&&!e.isWeekInMonth(s);if(h||p)if(e.props.peekNextMonth)i=!0;else break}return t},e.onMonthClick=function(t,o){var a=e.isMonthDisabledForLabelDate(o),i=a.isDisabled,s=a.labelDate;i||e.handleDayClick($t(s),t)},e.onMonthMouseEnter=function(t){var o=e.isMonthDisabledForLabelDate(t),a=o.isDisabled,i=o.labelDate;a||e.handleDayMouseEnter($t(i))},e.handleMonthNavigation=function(t,o){var a,i,s,l;(i=(a=e.props).setPreSelection)===null||i===void 0||i.call(a,o),(l=(s=e.MONTH_REFS[t])===null||s===void 0?void 0:s.current)===null||l===void 0||l.focus()},e.handleKeyboardNavigation=function(t,o,a){var i,s=e.props,l=s.selected,u=s.preSelection,c=s.setPreSelection,f=s.minDate,h=s.maxDate,p=s.showFourColumnMonthYearPicker,m=s.showTwoColumnMonthYearPicker;if(u){var g=ou(p,m),v=e.getVerticalOffset(g),b=(i=Ia[g])===null||i===void 0?void 0:i.grid,w=function(_,M,A){var V,D,E=M,k=A;switch(_){case j.ArrowRight:E=Ze(M,co),k=A===11?0:A+co;break;case j.ArrowLeft:E=xn(M,co),k=A===0?11:A-co;break;case j.ArrowUp:E=xn(M,v),k=!((V=b==null?void 0:b[0])===null||V===void 0)&&V.includes(A)?A+12-v:A-v;break;case j.ArrowDown:E=Ze(M,v),k=!((D=b==null?void 0:b[b.length-1])===null||D===void 0)&&D.includes(A)?A-12+v:A+v;break}return{newCalculatedDate:E,newCalculatedMonth:k}},x=function(_,M,A){for(var V=40,D=_,E=!1,k=0,C=w(D,M,A),F=C.newCalculatedDate,$=C.newCalculatedMonth;!E;){if(k>=V){F=M,$=A;break}if(f&&F<f){D=j.ArrowRight;var T=w(D,F,$);F=T.newCalculatedDate,$=T.newCalculatedMonth}if(h&&F>h){D=j.ArrowLeft;var T=w(D,F,$);F=T.newCalculatedDate,$=T.newCalculatedMonth}if(gg(F,e.props)){var T=w(D,F,$);F=T.newCalculatedDate,$=T.newCalculatedMonth}else E=!0;k++}return{newCalculatedDate:F,newCalculatedMonth:$}};if(o===j.Enter){e.isMonthDisabled(a)||(e.onMonthClick(t,a),c==null||c(l));return}var S=x(o,u,a),P=S.newCalculatedDate,N=S.newCalculatedMonth;switch(o){case j.ArrowRight:case j.ArrowLeft:case j.ArrowUp:case j.ArrowDown:e.handleMonthNavigation(N,P);break}}},e.getVerticalOffset=function(t){var o,a;return(a=(o=Ia[t])===null||o===void 0?void 0:o.verticalNavigationOffset)!==null&&a!==void 0?a:0},e.onMonthKeyDown=function(t,o){var a=e.props,i=a.disabledKeyboardNavigation,s=a.handleOnMonthKeyDown,l=t.key;l!==j.Tab&&t.preventDefault(),i||e.handleKeyboardNavigation(t,l,o),s&&s(t)},e.onQuarterClick=function(t,o){var a=wn(e.props.day,o);Ta(a,e.props)||e.handleDayClick(Yl(a),t)},e.onQuarterMouseEnter=function(t){var o=wn(e.props.day,t);Ta(o,e.props)||e.handleDayMouseEnter(Yl(o))},e.handleQuarterNavigation=function(t,o){var a,i,s,l;e.isDisabled(o)||e.isExcluded(o)||((i=(a=e.props).setPreSelection)===null||i===void 0||i.call(a,o),(l=(s=e.QUARTER_REFS[t-1])===null||s===void 0?void 0:s.current)===null||l===void 0||l.focus())},e.onQuarterKeyDown=function(t,o){var a,i,s=t.key;if(!e.props.disabledKeyboardNavigation)switch(s){case j.Enter:e.onQuarterClick(t,o),(i=(a=e.props).setPreSelection)===null||i===void 0||i.call(a,e.props.selected);break;case j.ArrowRight:if(!e.props.preSelection)break;e.handleQuarterNavigation(o===4?1:o+1,ga(e.props.preSelection,1));break;case j.ArrowLeft:if(!e.props.preSelection)break;e.handleQuarterNavigation(o===1?4:o-1,Ll(e.props.preSelection,1));break}},e.isMonthDisabledForLabelDate=function(t){var o,a=e.props,i=a.day,s=a.minDate,l=a.maxDate,u=a.excludeDates,c=a.includeDates,f=Ue(i,t);return{isDisabled:(o=(s||l||u||c)&&Hl(f,e.props))!==null&&o!==void 0?o:!1,labelDate:f}},e.isMonthDisabled=function(t){var o=e.isMonthDisabledForLabelDate(t).isDisabled;return o},e.getMonthClassNames=function(t){var o=e.props,a=o.day,i=o.startDate,s=o.endDate,l=o.preSelection,u=o.monthClassName,c=u?u(Ue(a,t)):void 0,f=e.getSelection();return Fe("react-datepicker__month-text","react-datepicker__month-".concat(t),c,{"react-datepicker__month-text--disabled":e.isMonthDisabled(t),"react-datepicker__month-text--selected":f?e.isSelectMonthInList(a,t,f):void 0,"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&l&&e.isSelectedMonth(a,t,l)&&!e.isMonthDisabled(t),"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(t),"react-datepicker__month-text--in-range":i&&s?so(i,s,t,a):void 0,"react-datepicker__month-text--range-start":e.isRangeStartMonth(t),"react-datepicker__month-text--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--selecting-range-start":e.isSelectingMonthRangeStart(t),"react-datepicker__month-text--selecting-range-end":e.isSelectingMonthRangeEnd(t),"react-datepicker__month-text--today":e.isCurrentMonth(a,t)})},e.getTabIndex=function(t){if(e.props.preSelection==null)return"-1";var o=je(e.props.preSelection),a=!e.props.disabledKeyboardNavigation&&t===o?"0":"-1";return a},e.getQuarterTabIndex=function(t){if(e.props.preSelection==null)return"-1";var o=Jt(e.props.preSelection),a=!e.props.disabledKeyboardNavigation&&t===o?"0":"-1";return a},e.getAriaLabel=function(t){var o=e.props,a=o.chooseDayAriaLabelPrefix,i=a===void 0?"Choose":a,s=o.disabledDayAriaLabelPrefix,l=s===void 0?"Not available":s,u=o.day,c=o.locale,f=Ue(u,t),h=e.isDisabled(f)||e.isExcluded(f)?l:i;return"".concat(h," ").concat(be(f,"MMMM yyyy",c))},e.getQuarterClassNames=function(t){var o=e.props,a=o.day,i=o.startDate,s=o.endDate,l=o.selected,u=o.minDate,c=o.maxDate,f=o.excludeDates,h=o.includeDates,p=o.filterDate,m=o.preSelection,g=o.disabledKeyboardNavigation,v=(u||c||f||h||p)&&Ta(wn(a,t),e.props);return Fe("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter-text--disabled":v,"react-datepicker__quarter-text--selected":l?e.isSelectedQuarter(a,t,l):void 0,"react-datepicker__quarter-text--keyboard-selected":!g&&m&&e.isSelectedQuarter(a,t,m)&&!v,"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(t),"react-datepicker__quarter-text--in-range":i&&s?uo(i,s,t,a):void 0,"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(t)})},e.getMonthContent=function(t){var o=e.props,a=o.showFullMonthYearPicker,i=o.renderMonthContent,s=o.locale,l=o.day,u=Rl(t,s),c=Pa(t,s);return i?i(t,u,c,l):a?c:u},e.getQuarterContent=function(t){var o,a=e.props,i=a.renderQuarterContent,s=a.locale,l=vg(t,s);return(o=i==null?void 0:i(t,l))!==null&&o!==void 0?o:l},e.renderMonths=function(){var t,o=e.props,a=o.showTwoColumnMonthYearPicker,i=o.showFourColumnMonthYearPicker,s=o.day,l=o.selected,u=(t=Ia[ou(i,a)])===null||t===void 0?void 0:t.grid;return u==null?void 0:u.map(function(c,f){return d.createElement("div",{className:"react-datepicker__month-wrapper",key:f},c.map(function(h,p){return d.createElement("div",{ref:e.MONTH_REFS[h],key:p,onClick:function(m){e.onMonthClick(m,h)},onKeyDown:function(m){ru(m)&&(m.preventDefault(),m.key=j.Enter),e.onMonthKeyDown(m,h)},onMouseEnter:e.props.usePointerEvent?void 0:function(){return e.onMonthMouseEnter(h)},onPointerEnter:e.props.usePointerEvent?function(){return e.onMonthMouseEnter(h)}:void 0,tabIndex:Number(e.getTabIndex(h)),className:e.getMonthClassNames(h),"aria-disabled":e.isMonthDisabled(h),role:"option","aria-label":e.getAriaLabel(h),"aria-current":e.isCurrentMonth(s,h)?"date":void 0,"aria-selected":l?e.isSelectedMonth(s,h,l):void 0},e.getMonthContent(h))}))})},e.renderQuarters=function(){var t=e.props,o=t.day,a=t.selected,i=[1,2,3,4];return d.createElement("div",{className:"react-datepicker__quarter-wrapper"},i.map(function(s,l){return d.createElement("div",{key:l,ref:e.QUARTER_REFS[l],role:"option",onClick:function(u){e.onQuarterClick(u,s)},onKeyDown:function(u){e.onQuarterKeyDown(u,s)},onMouseEnter:e.props.usePointerEvent?void 0:function(){return e.onQuarterMouseEnter(s)},onPointerEnter:e.props.usePointerEvent?function(){return e.onQuarterMouseEnter(s)}:void 0,className:e.getQuarterClassNames(s),"aria-selected":a?e.isSelectedQuarter(o,s,a):void 0,tabIndex:Number(e.getQuarterTabIndex(s)),"aria-current":e.isCurrentQuarter(o,s)?"date":void 0},e.getQuarterContent(s))}))},e.getClassNames=function(){var t=e.props,o=t.selectingDate,a=t.selectsStart,i=t.selectsEnd,s=t.showMonthYearPicker,l=t.showQuarterYearPicker,u=t.showWeekPicker;return Fe("react-datepicker__month",{"react-datepicker__month--selecting-range":o&&(a||i)},{"react-datepicker__monthPicker":s},{"react-datepicker__quarterPicker":l},{"react-datepicker__weekPicker":u})},e}return r.prototype.getSelection=function(){var e=this.props,t=e.selected,o=e.selectedDates,a=e.selectsMultiple;if(a)return o;if(t)return[t]},r.prototype.render=function(){var e=this.props,t=e.showMonthYearPicker,o=e.showQuarterYearPicker,a=e.day,i=e.ariaLabelPrefix,s=i===void 0?"Month ":i,l=s?s.trim()+" ":"";return d.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(l).concat(be(a,"MMMM, yyyy",this.props.locale)),role:"listbox"},t?this.renderMonths():o?this.renderQuarters():this.renderWeeks())},r}(d.Component),Ig=function(n){Ae(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.isSelectedMonth=function(t){return e.props.month===t},e.renderOptions=function(){return e.props.monthNames.map(function(t,o){return d.createElement("div",{className:e.isSelectedMonth(o)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:t,onClick:e.onChange.bind(e,o),"aria-selected":e.isSelectedMonth(o)?"true":void 0},e.isSelectedMonth(o)?d.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",t)})},e.onChange=function(t){return e.props.onChange(t)},e.handleClickOutside=function(){return e.props.onCancel()},e}return r.prototype.render=function(){return d.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())},r}(d.Component),Fg=Br(Ig),Lg=function(n){Ae(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.state={dropdownVisible:!1},e.renderSelectOptions=function(t){return t.map(function(o,a){return d.createElement("option",{key:o,value:a},o)})},e.renderSelectMode=function(t){return d.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(o){return e.onChange(parseInt(o.target.value))}},e.renderSelectOptions(t))},e.renderReadView=function(t,o){return d.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},d.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),d.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},o[e.props.month]))},e.renderDropdown=function(t){return d.createElement(Fg,ie({key:"dropdown"},e.props,{monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown}))},e.renderScrollMode=function(t){var o=e.state.dropdownVisible,a=[e.renderReadView(!o,t)];return o&&a.unshift(e.renderDropdown(t)),a},e.onChange=function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)},e.toggleDropdown=function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})},e}return r.prototype.render=function(){var e=this,t=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(a){return Rl(a,e.props.locale)}:function(a){return Pa(a,e.props.locale)}),o;switch(this.props.dropdownMode){case"scroll":o=this.renderScrollMode(t);break;case"select":o=this.renderSelectMode(t);break}return d.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},o)},r}(d.Component);function Ag(n,r){for(var e=[],t=$t(n),o=$t(r);!Lt(t,o);)e.push(de(t)),t=Ze(t,1);return e}var $g=function(n){Ae(r,n);function r(e){var t=n.call(this,e)||this;return t.renderOptions=function(){return t.state.monthYearsList.map(function(o){var a=xa(o),i=ft(t.props.date,o)&&We(t.props.date,o);return d.createElement("div",{className:i?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:a,onClick:t.onChange.bind(t,a),"aria-selected":i?"true":void 0},i?d.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",be(o,t.props.dateFormat,t.props.locale))})},t.onChange=function(o){return t.props.onChange(o)},t.handleClickOutside=function(){t.props.onCancel()},t.state={monthYearsList:Ag(t.props.minDate,t.props.maxDate)},t}return r.prototype.render=function(){var e=Fe({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return d.createElement("div",{className:e},this.renderOptions())},r}(d.Component),Yg=Br($g),jg=function(n){Ae(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.state={dropdownVisible:!1},e.renderSelectOptions=function(){for(var t=$t(e.props.minDate),o=$t(e.props.maxDate),a=[];!Lt(t,o);){var i=xa(t);a.push(d.createElement("option",{key:i,value:i},be(t,e.props.dateFormat,e.props.locale))),t=Ze(t,1)}return a},e.onSelectChange=function(t){e.onChange(parseInt(t.target.value))},e.renderSelectMode=function(){return d.createElement("select",{value:xa($t(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())},e.renderReadView=function(t){var o=be(e.props.date,e.props.dateFormat,e.props.locale);return d.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:e.toggleDropdown},d.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),d.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},o))},e.renderDropdown=function(){return d.createElement(Yg,ie({key:"dropdown"},e.props,{onChange:e.onChange,onCancel:e.toggleDropdown}))},e.renderScrollMode=function(){var t=e.state.dropdownVisible,o=[e.renderReadView(!t)];return t&&o.unshift(e.renderDropdown()),o},e.onChange=function(t){e.toggleDropdown();var o=de(t);ft(e.props.date,o)&&We(e.props.date,o)||e.props.onChange(o)},e.toggleDropdown=function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})},e}return r.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode();break}return d.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)},r}(d.Component),Wg=function(n){Ae(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.state={height:null},e.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var t,o,a;e.list&&(e.list.scrollTop=(a=e.centerLi&&r.calcCenterPosition(e.props.monthRef?e.props.monthRef.clientHeight-((o=(t=e.header)===null||t===void 0?void 0:t.clientHeight)!==null&&o!==void 0?o:0):e.list.clientHeight,e.centerLi))!==null&&a!==void 0?a:0)})},e.handleClick=function(t){var o,a;(e.props.minTime||e.props.maxTime)&&zl(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&Vl(t,e.props)||(a=(o=e.props).onChange)===null||a===void 0||a.call(o,t)},e.isSelectedTime=function(t){return e.props.selected&&Sg(e.props.selected,t)},e.isDisabledTime=function(t){return(e.props.minTime||e.props.maxTime)&&zl(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&Vl(t,e.props)},e.liClasses=function(t){var o,a=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(t):void 0];return e.isSelectedTime(t)&&a.push("react-datepicker__time-list-item--selected"),e.isDisabledTime(t)&&a.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(it(t)*3600+st(t)*60+xt(t))%(((o=e.props.intervals)!==null&&o!==void 0?o:r.defaultProps.intervals)*60)!==0&&a.push("react-datepicker__time-list-item--injected"),a.join(" ")},e.handleOnKeyDown=function(t,o){var a,i;t.key===j.Space&&(t.preventDefault(),t.key=j.Enter),(t.key===j.ArrowUp||t.key===j.ArrowLeft)&&t.target instanceof HTMLElement&&t.target.previousSibling&&(t.preventDefault(),t.target.previousSibling instanceof HTMLElement&&t.target.previousSibling.focus()),(t.key===j.ArrowDown||t.key===j.ArrowRight)&&t.target instanceof HTMLElement&&t.target.nextSibling&&(t.preventDefault(),t.target.nextSibling instanceof HTMLElement&&t.target.nextSibling.focus()),t.key===j.Enter&&e.handleClick(o),(i=(a=e.props).handleOnKeyDown)===null||i===void 0||i.call(a,t)},e.renderTimes=function(){for(var t,o=[],a=e.props.format?e.props.format:"p",i=(t=e.props.intervals)!==null&&t!==void 0?t:r.defaultProps.intervals,s=e.props.selected||e.props.openToDate||de(),l=ao(s),u=e.props.injectTimes&&e.props.injectTimes.sort(function(v,b){return v.getTime()-b.getTime()}),c=60*kg(s),f=c/i,h=0;h<f;h++){var p=va(l,h*i);if(o.push(p),u){var m=Cg(l,p,h,i,u);o=o.concat(m)}}var g=o.reduce(function(v,b){return b.getTime()<=s.getTime()?b:v},o[0]);return o.map(function(v){return d.createElement("li",{key:v.valueOf(),onClick:e.handleClick.bind(e,v),className:e.liClasses(v),ref:function(b){v===g&&(e.centerLi=b)},onKeyDown:function(b){e.handleOnKeyDown(b,v)},tabIndex:v===g?0:-1,role:"option","aria-selected":e.isSelectedTime(v)?"true":void 0,"aria-disabled":e.isDisabledTime(v)?"true":void 0},be(v,a,e.props.locale))})},e}return Object.defineProperty(r,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time"}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},r.prototype.render=function(){var e=this,t,o=this.state.height;return d.createElement("div",{className:"react-datepicker__time-container ".concat(((t=this.props.todayButton)!==null&&t!==void 0?t:r.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},d.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(a){e.header=a}},d.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),d.createElement("div",{className:"react-datepicker__time"},d.createElement("div",{className:"react-datepicker__time-box"},d.createElement("ul",{className:"react-datepicker__time-list",ref:function(a){e.list=a},style:o?{height:o}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},r.calcCenterPosition=function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)},r}(d.Component),au=3,Rg=function(n){Ae(r,n);function r(e){var t=n.call(this,e)||this;return t.YEAR_REFS=dt([],Array(t.props.yearItemNumber),!0).map(function(){return d.createRef()}),t.isDisabled=function(o){return Yt(o,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(o){return Ma(o,{excludeDates:t.props.excludeDates})},t.selectingDate=function(){var o;return(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection},t.updateFocusOnPaginate=function(o){var a=function(){var i,s;(s=(i=t.YEAR_REFS[o])===null||i===void 0?void 0:i.current)===null||s===void 0||s.focus()};window.requestAnimationFrame(a)},t.handleYearClick=function(o,a){t.props.onDayClick&&t.props.onDayClick(o,a)},t.handleYearNavigation=function(o,a){var i,s,l,u,c=t.props,f=c.date,h=c.yearItemNumber;if(!(f===void 0||h===void 0)){var p=jt(f,h).startPeriod;t.isDisabled(a)||t.isExcluded(a)||((s=(i=t.props).setPreSelection)===null||s===void 0||s.call(i,a),o-p<0?t.updateFocusOnPaginate(h-(p-o)):o-p>=h?t.updateFocusOnPaginate(Math.abs(h-(o-p))):(u=(l=t.YEAR_REFS[o-p])===null||l===void 0?void 0:l.current)===null||u===void 0||u.focus())}},t.isSameDay=function(o,a){return re(o,a)},t.isCurrentYear=function(o){return o===J(de())},t.isRangeStart=function(o){return t.props.startDate&&t.props.endDate&&ft(ct(de(),o),t.props.startDate)},t.isRangeEnd=function(o){return t.props.startDate&&t.props.endDate&&ft(ct(de(),o),t.props.endDate)},t.isInRange=function(o){return lo(o,t.props.startDate,t.props.endDate)},t.isInSelectingRange=function(o){var a=t.props,i=a.selectsStart,s=a.selectsEnd,l=a.selectsRange,u=a.startDate,c=a.endDate;return!(i||s||l)||!t.selectingDate()?!1:i&&c?lo(o,t.selectingDate(),c):s&&u||l&&u&&!c?lo(o,u,t.selectingDate()):!1},t.isSelectingRangeStart=function(o){var a;if(!t.isInSelectingRange(o))return!1;var i=t.props,s=i.startDate,l=i.selectsStart,u=ct(de(),o);return l?ft(u,(a=t.selectingDate())!==null&&a!==void 0?a:null):ft(u,s??null)},t.isSelectingRangeEnd=function(o){var a;if(!t.isInSelectingRange(o))return!1;var i=t.props,s=i.endDate,l=i.selectsEnd,u=i.selectsRange,c=ct(de(),o);return l||u?ft(c,(a=t.selectingDate())!==null&&a!==void 0?a:null):ft(c,s??null)},t.isKeyboardSelected=function(o){if(!(t.props.date===void 0||t.props.selected==null||t.props.preSelection==null)){var a=t.props,i=a.minDate,s=a.maxDate,l=a.excludeDates,u=a.includeDates,c=a.filterDate,f=nr(ct(t.props.date,o)),h=(i||s||l||u||c)&&Na(o,t.props);return!t.props.disabledKeyboardNavigation&&!t.props.inline&&!re(f,nr(t.props.selected))&&re(f,nr(t.props.preSelection))&&!h}},t.onYearClick=function(o,a){var i=t.props.date;i!==void 0&&t.handleYearClick(nr(ct(i,a)),o)},t.onYearKeyDown=function(o,a){var i,s,l=o.key,u=t.props,c=u.date,f=u.yearItemNumber,h=u.handleOnKeyDown;if(l!==j.Tab&&o.preventDefault(),!t.props.disabledKeyboardNavigation)switch(l){case j.Enter:if(t.props.selected==null)break;t.onYearClick(o,a),(s=(i=t.props).setPreSelection)===null||s===void 0||s.call(i,t.props.selected);break;case j.ArrowRight:if(t.props.preSelection==null)break;t.handleYearNavigation(a+1,bt(t.props.preSelection,1));break;case j.ArrowLeft:if(t.props.preSelection==null)break;t.handleYearNavigation(a-1,Dn(t.props.preSelection,1));break;case j.ArrowUp:{if(c===void 0||f===void 0||t.props.preSelection==null)break;var p=jt(c,f).startPeriod,m=au,g=a-m;if(g<p){var v=f%m;a>=p&&a<p+v?m=v:m+=v,g=a-m}t.handleYearNavigation(g,Dn(t.props.preSelection,m));break}case j.ArrowDown:{if(c===void 0||f===void 0||t.props.preSelection==null)break;var b=jt(c,f).endPeriod,m=au,g=a+m;if(g>b){var v=f%m;a<=b&&a>b-v?m=v:m+=v,g=a+m}t.handleYearNavigation(g,bt(t.props.preSelection,m));break}}h&&h(o)},t.getYearClassNames=function(o){var a=t.props,i=a.date,s=a.minDate,l=a.maxDate,u=a.selected,c=a.excludeDates,f=a.includeDates,h=a.filterDate,p=a.yearClassName;return Fe("react-datepicker__year-text","react-datepicker__year-".concat(o),i?p==null?void 0:p(ct(i,o)):void 0,{"react-datepicker__year-text--selected":u?o===J(u):void 0,"react-datepicker__year-text--disabled":(s||l||c||f||h)&&Na(o,t.props),"react-datepicker__year-text--keyboard-selected":t.isKeyboardSelected(o),"react-datepicker__year-text--range-start":t.isRangeStart(o),"react-datepicker__year-text--range-end":t.isRangeEnd(o),"react-datepicker__year-text--in-range":t.isInRange(o),"react-datepicker__year-text--in-selecting-range":t.isInSelectingRange(o),"react-datepicker__year-text--selecting-range-start":t.isSelectingRangeStart(o),"react-datepicker__year-text--selecting-range-end":t.isSelectingRangeEnd(o),"react-datepicker__year-text--today":t.isCurrentYear(o)})},t.getYearTabIndex=function(o){if(t.props.disabledKeyboardNavigation||t.props.preSelection==null)return"-1";var a=J(t.props.preSelection);return o===a?"0":"-1"},t.getYearContainerClassNames=function(){var o=t.props,a=o.selectingDate,i=o.selectsStart,s=o.selectsEnd,l=o.selectsRange;return Fe("react-datepicker__year",{"react-datepicker__year--selecting-range":a&&(i||s||l)})},t.getYearContent=function(o){return t.props.renderYearContent?t.props.renderYearContent(o):o},t}return r.prototype.render=function(){var e=this,t=[],o=this.props,a=o.date,i=o.yearItemNumber,s=o.onYearMouseEnter,l=o.onYearMouseLeave;if(a===void 0)return null;for(var u=jt(a,i),c=u.startPeriod,f=u.endPeriod,h=function(g){t.push(d.createElement("div",{ref:p.YEAR_REFS[g-c],onClick:function(v){e.onYearClick(v,g)},onKeyDown:function(v){ru(v)&&(v.preventDefault(),v.key=j.Enter),e.onYearKeyDown(v,g)},tabIndex:Number(p.getYearTabIndex(g)),className:p.getYearClassNames(g),onMouseEnter:p.props.usePointerEvent?void 0:function(v){return s(v,g)},onPointerEnter:p.props.usePointerEvent?function(v){return s(v,g)}:void 0,onMouseLeave:p.props.usePointerEvent?void 0:function(v){return l(v,g)},onPointerLeave:p.props.usePointerEvent?function(v){return l(v,g)}:void 0,key:g,"aria-current":p.isCurrentYear(g)?"date":void 0},p.getYearContent(g)))},p=this,m=c;m<=f;m++)h(m);return d.createElement("div",{className:this.getYearContainerClassNames()},d.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},t))},r}(d.Component);function Hg(n,r,e,t){for(var o=[],a=0;a<2*r+1;a++){var i=n+r-a,s=!0;e&&(s=J(e)<=i),t&&s&&(s=J(t)>=i),s&&o.push(i)}return o}var Bg=function(n){Ae(r,n);function r(e){var t=n.call(this,e)||this;t.renderOptions=function(){var s=t.props.year,l=t.state.yearsList.map(function(f){return d.createElement("div",{className:s===f?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:f,onClick:t.onChange.bind(t,f),"aria-selected":s===f?"true":void 0},s===f?d.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",f)}),u=t.props.minDate?J(t.props.minDate):null,c=t.props.maxDate?J(t.props.maxDate):null;return(!c||!t.state.yearsList.find(function(f){return f===c}))&&l.unshift(d.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:t.incrementYears},d.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!u||!t.state.yearsList.find(function(f){return f===u}))&&l.push(d.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:t.decrementYears},d.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),l},t.onChange=function(s){t.props.onChange(s)},t.handleClickOutside=function(){t.props.onCancel()},t.shiftYears=function(s){var l=t.state.yearsList.map(function(u){return u+s});t.setState({yearsList:l})},t.incrementYears=function(){return t.shiftYears(1)},t.decrementYears=function(){return t.shiftYears(-1)};var o=e.yearDropdownItemNumber,a=e.scrollableYearDropdown,i=o||(a?10:5);return t.state={yearsList:Hg(t.props.year,i,t.props.minDate,t.props.maxDate)},t.dropdownRef=d.createRef(),t}return r.prototype.componentDidMount=function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,o=t?t.find(function(a){return a.ariaSelected}):null;e.scrollTop=o&&o instanceof HTMLElement?o.offsetTop+(o.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}},r.prototype.render=function(){var e=Fe({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return d.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())},r}(d.Component),Vg=Br(Bg),zg=function(n){Ae(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.state={dropdownVisible:!1},e.renderSelectOptions=function(){for(var t=e.props.minDate?J(e.props.minDate):1900,o=e.props.maxDate?J(e.props.maxDate):2100,a=[],i=t;i<=o;i++)a.push(d.createElement("option",{key:i,value:i},i));return a},e.onSelectChange=function(t){e.onChange(parseInt(t.target.value))},e.renderSelectMode=function(){return d.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())},e.renderReadView=function(t){return d.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(o){return e.toggleDropdown(o)}},d.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),d.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))},e.renderDropdown=function(){return d.createElement(Vg,ie({key:"dropdown"},e.props,{onChange:e.onChange,onCancel:e.toggleDropdown}))},e.renderScrollMode=function(){var t=e.state.dropdownVisible,o=[e.renderReadView(!t)];return t&&o.unshift(e.renderDropdown()),o},e.onChange=function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)},e.toggleDropdown=function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)})},e.handleYearChange=function(t,o){e.onSelect(t,o),e.setOpen()},e.onSelect=function(t,o){e.props.onSelect&&e.props.onSelect(t,o)},e.setOpen=function(){e.props.setOpen&&e.props.setOpen(!0)},e}return r.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode();break}return d.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)},r}(d.Component),Ug=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Qg=function(n){var r=(n.className||"").split(/\s+/);return Ug.some(function(e){return r.indexOf(e)>=0})},Kg=function(n){Ae(r,n);function r(e){var t=n.call(this,e)||this;return t.monthContainer=void 0,t.handleClickOutside=function(o){t.props.onClickOutside(o)},t.setClickOutsideRef=function(){return t.containerRef.current},t.handleDropdownFocus=function(o){var a,i;Qg(o.target)&&((i=(a=t.props).onDropdownFocus)===null||i===void 0||i.call(a,o))},t.getDateInView=function(){var o=t.props,a=o.preSelection,i=o.selected,s=o.openToDate,l=Gl(t.props),u=Xl(t.props),c=de(),f=s||i||a;return f||(l&&tn(c,l)?l:u&&Lt(c,u)?u:c)},t.increaseMonth=function(){t.setState(function(o){var a=o.date;return{date:Ze(a,1)}},function(){return t.handleMonthChange(t.state.date)})},t.decreaseMonth=function(){t.setState(function(o){var a=o.date;return{date:xn(a,1)}},function(){return t.handleMonthChange(t.state.date)})},t.handleDayClick=function(o,a,i){t.props.onSelect(o,a,i),t.props.setPreSelection&&t.props.setPreSelection(o)},t.handleDayMouseEnter=function(o){t.setState({selectingDate:o}),t.props.onDayMouseEnter&&t.props.onDayMouseEnter(o)},t.handleMonthMouseLeave=function(){t.setState({selectingDate:void 0}),t.props.onMonthMouseLeave&&t.props.onMonthMouseLeave()},t.handleYearMouseEnter=function(o,a){t.setState({selectingDate:ct(de(),a)}),t.props.onYearMouseEnter&&t.props.onYearMouseEnter(o,a)},t.handleYearMouseLeave=function(o,a){t.props.onYearMouseLeave&&t.props.onYearMouseLeave(o,a)},t.handleYearChange=function(o){t.props.onYearChange&&(t.props.onYearChange(o),t.setState({isRenderAriaLiveMessage:!0})),t.props.adjustDateOnChange&&(t.props.onSelect&&t.props.onSelect(o),t.props.setOpen&&t.props.setOpen(!0)),t.props.setPreSelection&&t.props.setPreSelection(o)},t.handleMonthChange=function(o){t.handleCustomMonthChange(o),t.props.adjustDateOnChange&&(t.props.onSelect&&t.props.onSelect(o),t.props.setOpen&&t.props.setOpen(!0)),t.props.setPreSelection&&t.props.setPreSelection(o)},t.handleCustomMonthChange=function(o){t.props.onMonthChange&&(t.props.onMonthChange(o),t.setState({isRenderAriaLiveMessage:!0}))},t.handleMonthYearChange=function(o){t.handleYearChange(o),t.handleMonthChange(o)},t.changeYear=function(o){t.setState(function(a){var i=a.date;return{date:ct(i,Number(o))}},function(){return t.handleYearChange(t.state.date)})},t.changeMonth=function(o){t.setState(function(a){var i=a.date;return{date:Ue(i,Number(o))}},function(){return t.handleMonthChange(t.state.date)})},t.changeMonthYear=function(o){t.setState(function(a){var i=a.date;return{date:ct(Ue(i,je(o)),J(o))}},function(){return t.handleMonthYearChange(t.state.date)})},t.header=function(o){o===void 0&&(o=t.state.date);var a=At(o,t.props.locale,t.props.calendarStartDay),i=[];return t.props.showWeekNumbers&&i.push(d.createElement("div",{key:"W",className:"react-datepicker__day-name"},t.props.weekLabel||"#")),i.concat([0,1,2,3,4,5,6].map(function(s){var l=It(a,s),u=t.formatWeekday(l,t.props.locale),c=t.props.weekDayClassName?t.props.weekDayClassName(l):void 0;return d.createElement("div",{key:s,"aria-label":be(l,"EEEE",t.props.locale),className:Fe("react-datepicker__day-name",c)},u)}))},t.formatWeekday=function(o,a){return t.props.formatWeekDay?pg(o,t.props.formatWeekDay,a):t.props.useWeekdaysShort?mg(o,a):hg(o,a)},t.decreaseYear=function(){t.setState(function(o){var a,i=o.date;return{date:Dn(i,t.props.showYearPicker?(a=t.props.yearItemNumber)!==null&&a!==void 0?a:r.defaultProps.yearItemNumber:1)}},function(){return t.handleYearChange(t.state.date)})},t.clearSelectingDate=function(){t.setState({selectingDate:void 0})},t.renderPreviousButton=function(){var o;if(!t.props.renderCustomHeader){var a;switch(!0){case t.props.showMonthYearPicker:a=Kl(t.state.date,t.props);break;case t.props.showYearPicker:a=wg(t.state.date,t.props);break;case t.props.showQuarterYearPicker:a=bg(t.state.date,t.props);break;default:a=Ul(t.state.date,t.props);break}if(!(!((o=t.props.forceShowMonthNavigation)!==null&&o!==void 0?o:r.defaultProps.forceShowMonthNavigation)&&!t.props.showDisabledMonthNavigation&&a||t.props.showTimeSelectOnly)){var i=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],s=["react-datepicker__navigation","react-datepicker__navigation--previous"],l=t.decreaseMonth;(t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker)&&(l=t.decreaseYear),a&&t.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--previous--disabled"),l=void 0);var u=t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker,c=t.props,f=c.previousMonthButtonLabel,h=f===void 0?r.defaultProps.previousMonthButtonLabel:f,p=c.previousYearButtonLabel,m=p===void 0?r.defaultProps.previousYearButtonLabel:p,g=t.props,v=g.previousMonthAriaLabel,b=v===void 0?typeof h=="string"?h:"Previous Month":v,w=g.previousYearAriaLabel,x=w===void 0?typeof m=="string"?m:"Previous Year":w;return d.createElement("button",{type:"button",className:s.join(" "),onClick:l,onKeyDown:t.props.handleOnKeyDown,"aria-label":u?x:b},d.createElement("span",{className:i.join(" ")},u?m:h))}}},t.increaseYear=function(){t.setState(function(o){var a,i=o.date;return{date:bt(i,t.props.showYearPicker?(a=t.props.yearItemNumber)!==null&&a!==void 0?a:r.defaultProps.yearItemNumber:1)}},function(){return t.handleYearChange(t.state.date)})},t.renderNextButton=function(){var o;if(!t.props.renderCustomHeader){var a;switch(!0){case t.props.showMonthYearPicker:a=ql(t.state.date,t.props);break;case t.props.showYearPicker:a=xg(t.state.date,t.props);break;case t.props.showQuarterYearPicker:a=yg(t.state.date,t.props);break;default:a=Ql(t.state.date,t.props);break}if(!(!((o=t.props.forceShowMonthNavigation)!==null&&o!==void 0?o:r.defaultProps.forceShowMonthNavigation)&&!t.props.showDisabledMonthNavigation&&a||t.props.showTimeSelectOnly)){var i=["react-datepicker__navigation","react-datepicker__navigation--next"],s=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];t.props.showTimeSelect&&i.push("react-datepicker__navigation--next--with-time"),t.props.todayButton&&i.push("react-datepicker__navigation--next--with-today-button");var l=t.increaseMonth;(t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker)&&(l=t.increaseYear),a&&t.props.showDisabledMonthNavigation&&(i.push("react-datepicker__navigation--next--disabled"),l=void 0);var u=t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker,c=t.props,f=c.nextMonthButtonLabel,h=f===void 0?r.defaultProps.nextMonthButtonLabel:f,p=c.nextYearButtonLabel,m=p===void 0?r.defaultProps.nextYearButtonLabel:p,g=t.props,v=g.nextMonthAriaLabel,b=v===void 0?typeof h=="string"?h:"Next Month":v,w=g.nextYearAriaLabel,x=w===void 0?typeof m=="string"?m:"Next Year":w;return d.createElement("button",{type:"button",className:i.join(" "),onClick:l,onKeyDown:t.props.handleOnKeyDown,"aria-label":u?x:b},d.createElement("span",{className:s.join(" ")},u?m:h))}}},t.renderCurrentMonth=function(o){o===void 0&&(o=t.state.date);var a=["react-datepicker__current-month"];return t.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),t.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),t.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),d.createElement("h2",{className:a.join(" ")},be(o,t.props.dateFormat,t.props.locale))},t.renderYearDropdown=function(o){if(o===void 0&&(o=!1),!(!t.props.showYearDropdown||o))return d.createElement(zg,ie({},r.defaultProps,t.props,{date:t.state.date,onChange:t.changeYear,year:J(t.state.date)}))},t.renderMonthDropdown=function(o){if(o===void 0&&(o=!1),!(!t.props.showMonthDropdown||o))return d.createElement(Lg,ie({},r.defaultProps,t.props,{month:je(t.state.date),onChange:t.changeMonth}))},t.renderMonthYearDropdown=function(o){if(o===void 0&&(o=!1),!(!t.props.showMonthYearDropdown||o))return d.createElement(jg,ie({},r.defaultProps,t.props,{date:t.state.date,onChange:t.changeMonthYear}))},t.handleTodayButtonClick=function(o){t.props.onSelect(jl(),o),t.props.setPreSelection&&t.props.setPreSelection(jl())},t.renderTodayButton=function(){if(!(!t.props.todayButton||t.props.showTimeSelectOnly))return d.createElement("div",{className:"react-datepicker__today-button",onClick:t.handleTodayButtonClick},t.props.todayButton)},t.renderDefaultHeader=function(o){var a=o.monthDate,i=o.i;return d.createElement("div",{className:"react-datepicker__header ".concat(t.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},t.renderCurrentMonth(a),d.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(t.props.dropdownMode),onFocus:t.handleDropdownFocus},t.renderMonthDropdown(i!==0),t.renderMonthYearDropdown(i!==0),t.renderYearDropdown(i!==0)),d.createElement("div",{className:"react-datepicker__day-names"},t.header(a)))},t.renderCustomHeader=function(o){var a,i,s=o.monthDate,l=o.i;if(t.props.showTimeSelect&&!t.state.monthContainer||t.props.showTimeSelectOnly)return null;var u=Ul(t.state.date,t.props),c=Ql(t.state.date,t.props),f=Kl(t.state.date,t.props),h=ql(t.state.date,t.props),p=!t.props.showMonthYearPicker&&!t.props.showQuarterYearPicker&&!t.props.showYearPicker;return d.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:t.props.onDropdownFocus},(i=(a=t.props).renderCustomHeader)===null||i===void 0?void 0:i.call(a,ie(ie({},t.state),{customHeaderCount:l,monthDate:s,changeMonth:t.changeMonth,changeYear:t.changeYear,decreaseMonth:t.decreaseMonth,increaseMonth:t.increaseMonth,decreaseYear:t.decreaseYear,increaseYear:t.increaseYear,prevMonthButtonDisabled:u,nextMonthButtonDisabled:c,prevYearButtonDisabled:f,nextYearButtonDisabled:h})),p&&d.createElement("div",{className:"react-datepicker__day-names"},t.header(s)))},t.renderYearHeader=function(o){var a=o.monthDate,i=t.props,s=i.showYearPicker,l=i.yearItemNumber,u=l===void 0?r.defaultProps.yearItemNumber:l,c=jt(a,u),f=c.startPeriod,h=c.endPeriod;return d.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(f," - ").concat(h):J(a))},t.renderHeader=function(o){var a=o.monthDate,i=o.i,s=i===void 0?0:i,l={monthDate:a,i:s};switch(!0){case t.props.renderCustomHeader!==void 0:return t.renderCustomHeader(l);case(t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker):return t.renderYearHeader(l);default:return t.renderDefaultHeader(l)}},t.renderMonths=function(){var o,a;if(!(t.props.showTimeSelectOnly||t.props.showYearPicker)){for(var i=[],s=(o=t.props.monthsShown)!==null&&o!==void 0?o:r.defaultProps.monthsShown,l=t.props.showPreviousMonths?s-1:0,u=t.props.showMonthYearPicker||t.props.showQuarterYearPicker?bt(t.state.date,l):xn(t.state.date,l),c=(a=t.props.monthSelectedIn)!==null&&a!==void 0?a:l,f=0;f<s;++f){var h=f-c+l,p=t.props.showMonthYearPicker||t.props.showQuarterYearPicker?bt(u,h):Ze(u,h),m="month-".concat(f),g=f<s-1,v=f>0;i.push(d.createElement("div",{key:m,ref:function(b){t.monthContainer=b??void 0},className:"react-datepicker__month-container"},t.renderHeader({monthDate:p,i:f}),d.createElement(Ng,ie({},r.defaultProps,t.props,{ariaLabelPrefix:t.props.monthAriaLabelPrefix,day:p,onDayClick:t.handleDayClick,handleOnKeyDown:t.props.handleOnDayKeyDown,handleOnMonthKeyDown:t.props.handleOnKeyDown,onDayMouseEnter:t.handleDayMouseEnter,onMouseLeave:t.handleMonthMouseLeave,orderInDisplay:f,selectingDate:t.state.selectingDate,monthShowsDuplicateDaysEnd:g,monthShowsDuplicateDaysStart:v}))))}return i}},t.renderYears=function(){if(!t.props.showTimeSelectOnly&&t.props.showYearPicker)return d.createElement("div",{className:"react-datepicker__year--container"},t.renderHeader({monthDate:t.state.date}),d.createElement(Rg,ie({},r.defaultProps,t.props,{selectingDate:t.state.selectingDate,date:t.state.date,onDayClick:t.handleDayClick,clearSelectingDate:t.clearSelectingDate,onYearMouseEnter:t.handleYearMouseEnter,onYearMouseLeave:t.handleYearMouseLeave})))},t.renderTimeSection=function(){if(t.props.showTimeSelect&&(t.state.monthContainer||t.props.showTimeSelectOnly))return d.createElement(Wg,ie({},r.defaultProps,t.props,{onChange:t.props.onTimeChange,format:t.props.timeFormat,intervals:t.props.timeIntervals,monthRef:t.state.monthContainer}))},t.renderInputTimeSection=function(){var o=t.props.selected?new Date(t.props.selected):void 0,a=o&&Dt(o)&&!!t.props.selected,i=a?"".concat(Zl(o.getHours()),":").concat(Zl(o.getMinutes())):"";if(t.props.showTimeInput)return d.createElement(_g,ie({},r.defaultProps,t.props,{date:o,timeString:i,onChange:t.props.onTimeChange}))},t.renderAriaLiveRegion=function(){var o,a=jt(t.state.date,(o=t.props.yearItemNumber)!==null&&o!==void 0?o:r.defaultProps.yearItemNumber),i=a.startPeriod,s=a.endPeriod,l;return t.props.showYearPicker?l="".concat(i," - ").concat(s):t.props.showMonthYearPicker||t.props.showQuarterYearPicker?l=J(t.state.date):l="".concat(Pa(je(t.state.date),t.props.locale)," ").concat(J(t.state.date)),d.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},t.state.isRenderAriaLiveMessage&&l)},t.renderChildren=function(){if(t.props.children)return d.createElement("div",{className:"react-datepicker__children-container"},t.props.children)},t.containerRef=d.createRef(),t.state={date:t.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},t}return Object.defineProperty(r,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:tr}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=function(){e.setState({monthContainer:e.monthContainer})}())},r.prototype.componentDidUpdate=function(e){var t=this;if(this.props.preSelection&&(!re(this.props.preSelection,e.preSelection)||this.props.monthSelectedIn!==e.monthSelectedIn)){var o=!We(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return o&&t.handleCustomMonthChange(t.state.date)})}else this.props.openToDate&&!re(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate})},r.prototype.render=function(){var e=this.props.container||ag;return d.createElement("div",{style:{display:"contents"},ref:this.containerRef},d.createElement(e,{className:Fe("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))},r}(d.Component),qg=function(n){var r=n.icon,e=n.className,t=e===void 0?"":e,o=n.onClick,a="react-datepicker__calendar-icon";return typeof r=="string"?d.createElement("i",{className:"".concat(a," ").concat(r," ").concat(t),"aria-hidden":"true",onClick:o}):d.isValidElement(r)?d.cloneElement(r,{className:"".concat(r.props.className||""," ").concat(a," ").concat(t),onClick:function(i){typeof r.props.onClick=="function"&&r.props.onClick(i),typeof o=="function"&&o(i)}}):d.createElement("svg",{className:"".concat(a," ").concat(t),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},d.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},iu=function(n){Ae(r,n);function r(e){var t=n.call(this,e)||this;return t.portalRoot=null,t.el=document.createElement("div"),t}return r.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},r.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},r.prototype.render=function(){return ye.createPortal(this.props.children,this.el)},r}(d.Component),Gg="[tabindex], a, button, input, select, textarea",Xg=function(n){return(n instanceof HTMLAnchorElement||!n.disabled)&&n.tabIndex!==-1},su=function(n){Ae(r,n);function r(e){var t=n.call(this,e)||this;return t.getTabChildren=function(){var o;return Array.prototype.slice.call((o=t.tabLoopRef.current)===null||o===void 0?void 0:o.querySelectorAll(Gg),1,-1).filter(Xg)},t.handleFocusStart=function(){var o=t.getTabChildren();o&&o.length>1&&o[o.length-1].focus()},t.handleFocusEnd=function(){var o=t.getTabChildren();o&&o.length>1&&o[0].focus()},t.tabLoopRef=d.createRef(),t}return r.prototype.render=function(){var e;return((e=this.props.enableTabLoop)!==null&&e!==void 0?e:r.defaultProps.enableTabLoop)?d.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},d.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,d.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},r.defaultProps={enableTabLoop:!0},r}(d.Component);function Jg(n){var r=function(e){var t,o=typeof e.hidePopper=="boolean"?e.hidePopper:!0,a=d.useRef(null),i=bs(ie({open:!o,whileElementsMounted:is,placement:e.popperPlacement,middleware:dt([ds({padding:15}),qo(10),Df({element:a})],(t=e.popperModifiers)!==null&&t!==void 0?t:[],!0)},e.popperProps)),s=ie(ie({},e),{hidePopper:o,popperProps:ie(ie({},i),{arrowRef:a})});return d.createElement(n,ie({},s))};return r}var Zg=function(n){Ae(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(r,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),r.prototype.render=function(){var e=this.props,t=e.className,o=e.wrapperClassName,a=e.hidePopper,i=a===void 0?r.defaultProps.hidePopper:a,s=e.popperComponent,l=e.targetComponent,u=e.enableTabLoop,c=e.popperOnKeyDown,f=e.portalId,h=e.portalHost,p=e.popperProps,m=e.showArrow,g=void 0;if(!i){var v=Fe("react-datepicker-popper",t);g=d.createElement(su,{enableTabLoop:u},d.createElement("div",{ref:p.refs.setFloating,style:p.floatingStyles,className:v,"data-placement":p.placement,onKeyDown:c},s,m&&d.createElement(_f,{ref:p.arrowRef,context:p.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(g=d.createElement(this.props.popperContainer,{},g)),f&&!i&&(g=d.createElement(iu,{portalId:f,portalHost:h},g));var b=Fe("react-datepicker-wrapper",o);return d.createElement(d.Fragment,null,d.createElement("div",{ref:p.refs.setReference,className:b},l),g)},r}(d.Component),eb=Jg(Zg),lu="react-datepicker-ignore-onclickoutside",tb=Br(Kg);function nb(n,r){return n&&r?je(n)!==je(r)||J(n)!==J(r):n!==r}var Fa="Date input not valid.",rb=function(n){Ae(r,n);function r(e){var t=n.call(this,e)||this;return t.calendar=null,t.input=null,t.getPreSelection=function(){return t.props.openToDate?t.props.openToDate:t.props.selectsEnd&&t.props.startDate?t.props.startDate:t.props.selectsStart&&t.props.endDate?t.props.endDate:de()},t.modifyHolidays=function(){var o;return(o=t.props.holidays)===null||o===void 0?void 0:o.reduce(function(a,i){var s=new Date(i.date);return Dt(s)?dt(dt([],a,!0),[ie(ie({},i),{date:s})],!1):a},[])},t.calcInitialState=function(){var o,a=t.getPreSelection(),i=Gl(t.props),s=Xl(t.props),l=i&&tn(a,ao(i))?i:s&&Lt(a,Wl(s))?s:a;return{open:t.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(o=t.props.selectsRange?t.props.startDate:t.props.selected)!==null&&o!==void 0?o:l,highlightDates:Jl(t.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},t.resetHiddenStatus=function(){t.setState(ie(ie({},t.state),{wasHidden:!1}))},t.setHiddenStatus=function(){t.setState(ie(ie({},t.state),{wasHidden:!0}))},t.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&t.setHiddenStatus()},t.clearPreventFocusTimeout=function(){t.preventFocusTimeout&&clearTimeout(t.preventFocusTimeout)},t.setFocus=function(){t.input&&t.input.focus&&t.input.focus({preventScroll:!0})},t.setBlur=function(){t.input&&t.input.blur&&t.input.blur(),t.cancelFocusInput()},t.setOpen=function(o,a){a===void 0&&(a=!1),t.setState({open:o,preSelection:o&&t.state.open?t.state.preSelection:t.calcInitialState().preSelection,lastPreSelectChange:La},function(){o||t.setState(function(i){return{focused:a?i.focused:!1}},function(){!a&&t.setBlur(),t.setState({inputValue:null})})})},t.inputOk=function(){return wt(t.state.preSelection)},t.isCalendarOpen=function(){return t.props.open===void 0?t.state.open&&!t.props.disabled&&!t.props.readOnly:t.props.open},t.handleFocus=function(o){var a,i,s=t.state.wasHidden,l=s?t.state.open:!0;s&&t.resetHiddenStatus(),!t.state.preventFocus&&l&&((i=(a=t.props).onFocus)===null||i===void 0||i.call(a,o),!t.props.preventOpenOnFocus&&!t.props.readOnly&&t.setOpen(!0)),t.setState({focused:!0})},t.sendFocusBackToInput=function(){t.preventFocusTimeout&&t.clearPreventFocusTimeout(),t.setState({preventFocus:!0},function(){t.preventFocusTimeout=setTimeout(function(){t.setFocus(),t.setState({preventFocus:!1})})})},t.cancelFocusInput=function(){clearTimeout(t.inputFocusTimeout),t.inputFocusTimeout=void 0},t.deferFocusInput=function(){t.cancelFocusInput(),t.inputFocusTimeout=setTimeout(function(){return t.setFocus()},1)},t.handleDropdownFocus=function(){t.cancelFocusInput()},t.handleBlur=function(o){var a,i;(!t.state.open||t.props.withPortal||t.props.showTimeInput)&&((i=(a=t.props).onBlur)===null||i===void 0||i.call(a,o)),t.setState({focused:!1})},t.handleCalendarClickOutside=function(o){var a,i;t.props.inline||t.setOpen(!1),(i=(a=t.props).onClickOutside)===null||i===void 0||i.call(a,o),t.props.withPortal&&o.preventDefault()},t.handleChange=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var i=o[0];if(!(t.props.onChangeRaw&&(t.props.onChangeRaw.apply(t,o),!i||typeof i.isDefaultPrevented!="function"||i.isDefaultPrevented()))){t.setState({inputValue:(i==null?void 0:i.target)instanceof HTMLInputElement?i.target.value:null,lastPreSelectChange:ob});var s=t.props,l=s.dateFormat,u=l===void 0?r.defaultProps.dateFormat:l,c=s.strictParsing,f=c===void 0?r.defaultProps.strictParsing:c,h=sg((i==null?void 0:i.target)instanceof HTMLInputElement?i.target.value:"",u,t.props.locale,f,t.props.minDate);t.props.showTimeSelectOnly&&t.props.selected&&h&&!re(h,t.props.selected)&&(h=rg(t.props.selected,{hours:it(h),minutes:st(h),seconds:xt(h)})),(h||!((i==null?void 0:i.target)instanceof HTMLInputElement)||!(i!=null&&i.target.value))&&t.setSelected(h,i,!0)}},t.handleSelect=function(o,a,i){if(t.props.shouldCloseOnSelect&&!t.props.showTimeSelect&&t.sendFocusBackToInput(),t.props.onChangeRaw&&t.props.onChangeRaw(a),t.setSelected(o,a,!1,i),t.props.showDateSelect&&t.setState({isRenderAriaLiveMessage:!0}),!t.props.shouldCloseOnSelect||t.props.showTimeSelect)t.setPreSelection(o);else if(!t.props.inline){t.props.selectsRange||t.setOpen(!1);var s=t.props,l=s.startDate,u=s.endDate;l&&!u&&(t.props.swapRange||!nu(o,l))&&t.setOpen(!1)}},t.setSelected=function(o,a,i,s){var l,u=o;if(t.props.showYearPicker){if(u!==null&&Na(J(u),t.props))return}else if(t.props.showMonthYearPicker){if(u!==null&&Hl(u,t.props))return}else if(u!==null&&Yt(u,t.props))return;var c=t.props,f=c.onChange,h=c.selectsRange,p=c.startDate,m=c.endDate,g=c.selectsMultiple,v=c.selectedDates,b=c.minTime,w=c.swapRange;if(!nn(t.props.selected,u)||t.props.allowSameDay||h||g)if(u!==null&&(t.props.selected&&(!i||!t.props.showTimeSelect&&!t.props.showTimeSelectOnly&&!t.props.showTimeInput)&&(u=Oa(u,{hour:it(t.props.selected),minute:st(t.props.selected),second:xt(t.props.selected)})),!i&&(t.props.showTimeSelect||t.props.showTimeSelectOnly)&&b&&(u=Oa(u,{hour:b.getHours(),minute:b.getMinutes(),second:b.getSeconds()})),t.props.inline||t.setState({preSelection:u}),t.props.focusSelectedMonth||t.setState({monthSelectedIn:s})),h){var x=!p&&!m,S=p&&!m,P=p&&m;x?f?f([u,null],a):r.defaultProps.onChange:S&&(u===null?f?f([null,null],a):r.defaultProps.onChange:nu(u,p)?w?f?f([u,p],a):r.defaultProps.onChange:f?f([u,null],a):r.defaultProps.onChange:f?f([p,u],a):r.defaultProps.onChange),P&&(f?f([u,null],a):r.defaultProps.onChange)}else if(g){if(u!==null)if(!(v!=null&&v.length))f?f([u],a):r.defaultProps.onChange;else{var N=v.some(function(A){return re(A,u)});if(N){var _=v.filter(function(A){return!re(A,u)});f?f(_,a):r.defaultProps.onChange}else f?f(dt(dt([],v,!0),[u],!1),a):r.defaultProps.onChange}}else f?f(u,a):r.defaultProps.onChange;if(!i){var M=(l=t.props.onSelect)!==null&&l!==void 0?l:r.defaultProps.onSelect;M(u,a),t.setState({inputValue:null})}},t.setPreSelection=function(o){var a=wt(t.props.minDate),i=wt(t.props.maxDate),s=!0;if(o){var l=ao(o);if(a&&i)s=rr(o,t.props.minDate,t.props.maxDate);else if(a){var u=ao(t.props.minDate);s=Lt(o,u)||nn(l,u)}else if(i){var c=Wl(t.props.maxDate);s=tn(o,c)||nn(l,c)}}s&&t.setState({preSelection:o})},t.toggleCalendar=function(){t.setOpen(!t.state.open)},t.handleTimeChange=function(o){var a;if(!(t.props.selectsRange||t.props.selectsMultiple)){var i=t.props.selected?t.props.selected:t.getPreSelection(),s=t.props.selected?o:Oa(i,{hour:it(o),minute:st(o)});t.setState({preSelection:s});var l=(a=t.props.onChange)!==null&&a!==void 0?a:r.defaultProps.onChange;l(s),t.props.shouldCloseOnSelect&&!t.props.showTimeInput&&(t.sendFocusBackToInput(),t.setOpen(!1)),t.props.showTimeInput&&t.setOpen(!0),(t.props.showTimeSelectOnly||t.props.showTimeSelect)&&t.setState({isRenderAriaLiveMessage:!0}),t.setState({inputValue:null})}},t.onInputClick=function(){var o,a;!t.props.disabled&&!t.props.readOnly&&t.setOpen(!0),(a=(o=t.props).onInputClick)===null||a===void 0||a.call(o)},t.onInputKeyDown=function(o){var a,i,s,l,u;(i=(a=t.props).onKeyDown)===null||i===void 0||i.call(a,o);var c=o.key;if(!t.state.open&&!t.props.inline&&!t.props.preventOpenOnFocus){(c===j.ArrowDown||c===j.ArrowUp||c===j.Enter)&&t.onInputClick();return}if(t.state.open){if(c===j.ArrowDown||c===j.ArrowUp){o.preventDefault();var f=t.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":t.props.showWeekPicker&&t.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':t.props.showFullMonthYearPicker||t.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',h=((s=t.calendar)===null||s===void 0?void 0:s.componentNode)instanceof Element&&t.calendar.componentNode.querySelector(f);h instanceof HTMLElement&&h.focus({preventScroll:!0});return}var p=de(t.state.preSelection);c===j.Enter?(o.preventDefault(),t.inputOk()&&t.state.lastPreSelectChange===La?(t.handleSelect(p,o),!t.props.shouldCloseOnSelect&&t.setPreSelection(p)):t.setOpen(!1)):c===j.Escape?(o.preventDefault(),t.sendFocusBackToInput(),t.setOpen(!1)):c===j.Tab&&t.setOpen(!1),t.inputOk()||(u=(l=t.props).onInputError)===null||u===void 0||u.call(l,{code:1,msg:Fa})}},t.onPortalKeyDown=function(o){var a=o.key;a===j.Escape&&(o.preventDefault(),t.setState({preventFocus:!0},function(){t.setOpen(!1),setTimeout(function(){t.setFocus(),t.setState({preventFocus:!1})})}))},t.onDayKeyDown=function(o){var a,i,s,l,u=t.props,c=u.minDate,f=u.maxDate,h=u.disabledKeyboardNavigation,p=u.showWeekPicker,m=u.shouldCloseOnSelect,g=u.locale,v=u.calendarStartDay,b=u.adjustDateOnChange,w=u.inline;if((i=(a=t.props).onKeyDown)===null||i===void 0||i.call(a,o),!h){var x=o.key,S=o.shiftKey,P=de(t.state.preSelection),N=function(k,C){var F=C;switch(k){case j.ArrowRight:F=p?Ur(C,1):It(C,1);break;case j.ArrowLeft:F=p?Al(C,1):og(C,1);break;case j.ArrowUp:F=Al(C,1);break;case j.ArrowDown:F=Ur(C,1);break;case j.PageUp:F=S?Dn(C,1):xn(C,1);break;case j.PageDown:F=S?bt(C,1):Ze(C,1);break;case j.Home:F=At(C,g,v);break;case j.End:F=fg(C);break}return F},_=function(k,C){for(var F=40,$=k,T=!1,Q=0,O=N(k,C);!T;){if(Q>=F){O=C;break}c&&O<c&&($=j.ArrowRight,O=Yt(c,t.props)?N($,O):c),f&&O>f&&($=j.ArrowLeft,O=Yt(f,t.props)?N($,O):f),Yt(O,t.props)?(($===j.PageUp||$===j.Home)&&($=j.ArrowRight),($===j.PageDown||$===j.End)&&($=j.ArrowLeft),O=N($,O)):T=!0,Q++}return O};if(x===j.Enter){o.preventDefault(),t.handleSelect(P,o),!m&&t.setPreSelection(P);return}else if(x===j.Escape){o.preventDefault(),t.setOpen(!1),t.inputOk()||(l=(s=t.props).onInputError)===null||l===void 0||l.call(s,{code:1,msg:Fa});return}var M=null;switch(x){case j.ArrowLeft:case j.ArrowRight:case j.ArrowUp:case j.ArrowDown:case j.PageUp:case j.PageDown:case j.Home:case j.End:M=_(x,P);break}if(!M){t.props.onInputError&&t.props.onInputError({code:1,msg:Fa});return}if(o.preventDefault(),t.setState({lastPreSelectChange:La}),b&&t.setSelected(M),t.setPreSelection(M),w){var A=je(P),V=je(M),D=J(P),E=J(M);A!==V||D!==E?t.setState({shouldFocusDayInline:!0}):t.setState({shouldFocusDayInline:!1})}}},t.onPopperKeyDown=function(o){var a=o.key;a===j.Escape&&(o.preventDefault(),t.sendFocusBackToInput())},t.onClearClick=function(o){o&&o.preventDefault&&o.preventDefault(),t.sendFocusBackToInput();var a=t.props,i=a.selectsRange,s=a.onChange;i?s?s([null,null],o):r.defaultProps.onChange():s?s(null,o):r.defaultProps.onChange(),t.setState({inputValue:null})},t.clear=function(){t.onClearClick()},t.onScroll=function(o){typeof t.props.closeOnScroll=="boolean"&&t.props.closeOnScroll?(o.target===document||o.target===document.documentElement||o.target===document.body)&&t.setOpen(!1):typeof t.props.closeOnScroll=="function"&&t.props.closeOnScroll(o)&&t.setOpen(!1)},t.renderCalendar=function(){var o,a;return!t.props.inline&&!t.isCalendarOpen()?null:d.createElement(tb,ie({ref:function(i){t.calendar=i}},t.props,t.state,{setOpen:t.setOpen,dateFormat:(o=t.props.dateFormatCalendar)!==null&&o!==void 0?o:r.defaultProps.dateFormatCalendar,onSelect:t.handleSelect,onClickOutside:t.handleCalendarClickOutside,holidays:Eg(t.modifyHolidays()),outsideClickIgnoreClass:lu,onDropdownFocus:t.handleDropdownFocus,onTimeChange:t.handleTimeChange,className:t.props.calendarClassName,container:t.props.calendarContainer,handleOnKeyDown:t.props.onKeyDown,handleOnDayKeyDown:t.onDayKeyDown,setPreSelection:t.setPreSelection,dropdownMode:(a=t.props.dropdownMode)!==null&&a!==void 0?a:r.defaultProps.dropdownMode}),t.props.children)},t.renderAriaLiveRegion=function(){var o=t.props,a=o.dateFormat,i=a===void 0?r.defaultProps.dateFormat:a,s=o.locale,l=t.props.showTimeInput||t.props.showTimeSelect,u=l?"PPPPp":"PPPP",c;return t.props.selectsRange?c="Selected start date: ".concat(qe(t.props.startDate,{dateFormat:u,locale:s}),". ").concat(t.props.endDate?"End date: "+qe(t.props.endDate,{dateFormat:u,locale:s}):""):t.props.showTimeSelectOnly?c="Selected time: ".concat(qe(t.props.selected,{dateFormat:i,locale:s})):t.props.showYearPicker?c="Selected year: ".concat(qe(t.props.selected,{dateFormat:"yyyy",locale:s})):t.props.showMonthYearPicker?c="Selected month: ".concat(qe(t.props.selected,{dateFormat:"MMMM yyyy",locale:s})):t.props.showQuarterYearPicker?c="Selected quarter: ".concat(qe(t.props.selected,{dateFormat:"yyyy, QQQ",locale:s})):c="Selected date: ".concat(qe(t.props.selected,{dateFormat:u,locale:s})),d.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},c)},t.renderDateInput=function(){var o,a,i,s=Fe(t.props.className,(o={},o[lu]=t.state.open,o)),l=t.props.customInput||d.createElement("input",{type:"text"}),u=t.props.customInputRef||"ref",c=t.props,f=c.dateFormat,h=f===void 0?r.defaultProps.dateFormat:f,p=c.locale,m=typeof t.props.value=="string"?t.props.value:typeof t.state.inputValue=="string"?t.state.inputValue:t.props.selectsRange?lg(t.props.startDate,t.props.endDate,{dateFormat:h,locale:p}):t.props.selectsMultiple?ug((i=t.props.selectedDates)!==null&&i!==void 0?i:[],{dateFormat:h,locale:p}):qe(t.props.selected,{dateFormat:h,locale:p});return d.cloneElement(l,(a={},a[u]=function(g){t.input=g},a.value=m,a.onBlur=t.handleBlur,a.onChange=t.handleChange,a.onClick=t.onInputClick,a.onFocus=t.handleFocus,a.onKeyDown=t.onInputKeyDown,a.id=t.props.id,a.name=t.props.name,a.form=t.props.form,a.autoFocus=t.props.autoFocus,a.placeholder=t.props.placeholderText,a.disabled=t.props.disabled,a.autoComplete=t.props.autoComplete,a.className=Fe(l.props.className,s),a.title=t.props.title,a.readOnly=t.props.readOnly,a.required=t.props.required,a.tabIndex=t.props.tabIndex,a["aria-describedby"]=t.props.ariaDescribedBy,a["aria-invalid"]=t.props.ariaInvalid,a["aria-labelledby"]=t.props.ariaLabelledBy,a["aria-required"]=t.props.ariaRequired,a))},t.renderClearButton=function(){var o=t.props,a=o.isClearable,i=o.disabled,s=o.selected,l=o.startDate,u=o.endDate,c=o.clearButtonTitle,f=o.clearButtonClassName,h=f===void 0?"":f,p=o.ariaLabelClose,m=p===void 0?"Close":p,g=o.selectedDates;return a&&(s!=null||l!=null||u!=null||g!=null&&g.length)?d.createElement("button",{type:"button",className:Fe("react-datepicker__close-icon",h,{"react-datepicker__close-icon--disabled":i}),disabled:i,"aria-label":m,onClick:t.onClearClick,title:c,tabIndex:-1}):null},t.state=t.calcInitialState(),t.preventFocusTimeout=void 0,t}return Object.defineProperty(r,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:tr,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.componentDidUpdate=function(e,t){var o,a,i,s;e.inline&&nb(e.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:Jl(this.props.highlightDates)}),!t.focused&&!nn(e.selected,this.props.selected)&&this.setState({inputValue:null}),t.open!==this.state.open&&(t.open===!1&&this.state.open===!0&&((a=(o=this.props).onCalendarOpen)===null||a===void 0||a.call(o)),t.open===!0&&this.state.open===!1&&((s=(i=this.props).onCalendarClose)===null||s===void 0||s.call(i)))},r.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.renderInputContainer=function(){var e=this.props,t=e.showIcon,o=e.icon,a=e.calendarIconClassname,i=e.calendarIconClassName,s=e.toggleCalendarOnIconClick,l=this.state.open;return a&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),d.createElement("div",{className:"react-datepicker__input-container".concat(t?" react-datepicker__view-calendar-icon":"")},t&&d.createElement(qg,ie({icon:o,className:Fe(i,!i&&a,l&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},r.prototype.render=function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?d.createElement(su,{enableTabLoop:this.props.enableTabLoop},d.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=d.createElement(iu,ie({portalId:this.props.portalId},this.props),t)),d.createElement("div",null,this.renderInputContainer(),t)}return d.createElement(eb,ie({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:e,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},r}(d.Component),ob="input",La="navigate";const ab={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},ib=(n,r,e)=>{let t;const o=ab[n];return typeof o=="string"?t=o:r===1?t=o.one:t=o.other.replace("{{count}}",r.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?t+" 후":t+" 전":t},sb={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},lb={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ub={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},cb={date:gn({formats:sb,defaultWidth:"full"}),time:gn({formats:lb,defaultWidth:"full"}),dateTime:gn({formats:ub,defaultWidth:"full"})},db={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},fb=(n,r,e,t)=>db[n],pb={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},hb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},mb={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},vb={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},gb={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},bb={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},yb={ordinalNumber:(n,r)=>{const e=Number(n);switch(String(r==null?void 0:r.unit)){case"minute":case"second":return String(e);case"date":return e+"일";default:return e+"번째"}},era:ot({values:pb,defaultWidth:"wide"}),quarter:ot({values:hb,defaultWidth:"wide",argumentCallback:n=>n-1}),month:ot({values:mb,defaultWidth:"wide"}),day:ot({values:vb,defaultWidth:"wide"}),dayPeriod:ot({values:gb,defaultWidth:"wide",formattingValues:bb,defaultFormattingWidth:"wide"})},wb=/^(\d+)(일|번째)?/i,xb=/\d+/i,Db={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},Eb={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},Cb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},kb={any:[/1/i,/2/i,/3/i,/4/i]},Sb={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},_b={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},Ob={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},Pb={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},Mb={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},Tb={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},Nb={ordinalNumber:hl({matchPattern:wb,parsePattern:xb,valueCallback:n=>parseInt(n,10)}),era:at({matchPatterns:Db,defaultMatchWidth:"wide",parsePatterns:Eb,defaultParseWidth:"any"}),quarter:at({matchPatterns:Cb,defaultMatchWidth:"wide",parsePatterns:kb,defaultParseWidth:"any",valueCallback:n=>n+1}),month:at({matchPatterns:Sb,defaultMatchWidth:"wide",parsePatterns:_b,defaultParseWidth:"any"}),day:at({matchPatterns:Ob,defaultMatchWidth:"wide",parsePatterns:Pb,defaultParseWidth:"any"}),dayPeriod:at({matchPatterns:Mb,defaultMatchWidth:"any",parsePatterns:Tb,defaultParseWidth:"any"})},Ib={code:"ko",formatDistance:ib,formatLong:cb,formatRelative:fb,localize:yb,match:Nb,options:{weekStartsOn:0,firstWeekContainsDate:1}},Fb=({label:n,placeholder:r,value:e,onChange:t,helperText:o})=>{const a=new Date().getFullYear(),i=Array.from({length:a-1989},(c,f)=>1990+f),s=["1","2","3","4","5","6","7","8","9","10","11","12"],l=d.forwardRef(({value:c,onClick:f},h)=>I.jsx("button",{"aria-label":"inputButton",type:"button",id:n,className:"h-[60px] w-full rounded-xl bg-[#F8F8F9] p-4 text-left text-xl placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50",onClick:f,ref:h,children:c||I.jsx("p",{className:"text-[#C5C8CD]",children:r})}));l.displayName="CustomInput";function u(c){var f=c.substring(0,4),h=c.substring(5,7),p=c.substring(8,10);return new Date(Number(f),Number(h)-1,Number(p))}return I.jsxs("div",{className:"flex flex-col text-deepGray",children:[I.jsx("label",{htmlFor:n,className:"mb-4 text-xl font-bold text-lightBlack",children:n}),I.jsx(rb,{disabledKeyboardNavigation:!0,locale:Ib,id:n,name:"출생일",placeholderText:r,onChange:c=>c&&t(c),selected:e?u(e):void 0,value:e,dateFormat:"yyyy-MM-dd",autoComplete:"off",maxDate:new Date,customInput:I.jsx(l,{}),renderCustomHeader:({date:c,changeYear:f,changeMonth:h,decreaseMonth:p,increaseMonth:m})=>I.jsxs("div",{className:"flex justify-center pb-4 pt-5 text-lightBlack",children:[I.jsx("button",{onClick:p,disabled:c.getFullYear()<=1990&&c.getMonth()===0,type:"button",className:"react-datepicker__navigation react-datepicker__navigation--previous","aria-label":"Previous Month",children:I.jsx("span",{className:"react-datepicker__navigation-icon react-datepicker__navigation-icon--previous",children:"Previous Month"})}),I.jsxs("div",{className:"text-lg",children:[I.jsx("select",{"aria-label":"yearsSelect",dir:"rtl",className:"datepicker-select w-auto cursor-pointer rounded-md bg-[#e8e8e9] px-2 py-1 text-center focus:outline-none",value:J(c),onChange:({target:{value:g}})=>f(Number(g)),children:i.map(g=>I.jsx("option",{value:g,children:g},g))}),I.jsx("span",{className:"ml-1 mr-2",children:"년"}),I.jsx("select",{"aria-label":"monthsSelect",dir:"rtl",className:"datepicker-select cursor-pointer rounded-md bg-[#e8e8e9] px-2 py-1 text-center focus:outline-none",value:s[je(c)],onChange:({target:{value:g}})=>h(s.indexOf(g)),children:s.map(g=>I.jsx("option",{value:g,children:g},g))}),I.jsx("span",{className:"mx-1",children:"월"})]}),I.jsx("button",{onClick:m,disabled:c.getFullYear()>=new Date().getFullYear()&&c.getMonth()>=new Date().getMonth(),type:"button",className:"react-datepicker__navigation react-datepicker__navigation--next","aria-label":"Next Month",children:I.jsx("span",{className:"react-datepicker__navigation-icon react-datepicker__navigation-icon--next",children:"Next Month"})})]})}),o&&I.jsx("p",{className:"px-4 pt-2 text-[#8B919A]",children:o})]})};function Lb(n){return Tn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"},child:[]}]})(n)}const Ab=({label:n,placeholder:r,value:e,options:t,onChange:o,disabled:a})=>I.jsx("div",{className:"relative text-deepGray",children:I.jsxs(Eh,{disabled:a,onChange:o,children:[I.jsx(wr,{className:"text-xl font-bold text-lightBlack",children:n}),I.jsxs(rl,{className:"relative mt-4 h-[60px] w-full rounded-xl bg-[#F8F8F8] p-4 text-start text-xl placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50",children:[e.name?I.jsx("p",{children:e.name}):I.jsx("p",{className:"text-[#C5C8CD]",children:r})," ",I.jsx(Lb,{className:"absolute bottom-5 right-4"})]}),I.jsx(ol,{className:"scrollbar absolute max-h-[240px] w-full overflow-hidden overflow-y-auto rounded-xl shadow-md",children:t.map(i=>I.jsx(al,{value:i,as:I.Fragment,children:({focus:s,selected:l})=>I.jsx("li",{className:`flex w-full cursor-pointer justify-between p-4 text-start text-xl placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50 ${s?"bg-[#E8E8E8]":"bg-[#F8F8F8]"} ${l&&"bg-[#D8D8D8]"}`,children:i.name})},i.name))})]})}),$b=({className:n,id:r,name:e,onChange:t,disabled:o,checked:a})=>I.jsx("input",{type:"radio",disabled:o,checked:a,id:r,name:e,className:cr("petnowRadio size-[3.5vw]",n),onChange:t}),Yb=({label:n,placeholder:r,value:e,options:t,onChange:o,disabled:a,helperText:i,disableDebounce:s})=>{const[l,u]=d.useState(""),[c,f]=d.useState(e),h=l===""?t.slice(0,4):t.filter(v=>v.name.replace(/ /g,"").includes(l.replace(/ /g,""))).slice(0,4);let p;const m=v=>{p&&clearTimeout(p),f(void 0),p=setTimeout(async()=>{u(v.target.value)},200)},g=v=>{f(void 0),u(v.target.value)};return I.jsxs("div",{children:[I.jsx("div",{className:"relative flex flex-col text-deepGray",children:I.jsxs(wp,{onChange:v=>{f(v?v.name:""),o(v)},disabled:a,children:[I.jsx(wr,{className:"text-xl font-bold text-lightBlack",children:n}),I.jsx($s,{"aria-label":"comboboxInput",className:"mt-4 flex w-full items-center justify-between rounded-xl bg-[#F8F8F8] p-4 text-xl placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50",value:c,onChange:s?g:m,placeholder:r,autoComplete:"off"}),I.jsx(Ys,{className:"absolute top-[104px] z-10 max-h-60 w-full overflow-hidden overflow-y-auto rounded-xl shadow-md",style:{bottom:-h.length*60},children:h.map(v=>I.jsx(js,{value:v,as:d.Fragment,children:({focus:b,selected:w})=>I.jsx("li",{className:`flex w-full cursor-pointer justify-between p-4 text-start text-xl placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50 ${b?"bg-[#E8E8E8]":"bg-[#F8F8F8]"} ${w&&"bg-[#D8D8D8]"}`,children:v.name})},v.name))})]})}),i&&I.jsx("p",{className:"mt-2 px-4 text-[#8B919A]",children:i})]})},jb=({tabList:n,onTabChange:r})=>{const[e,t]=d.useState(n[0]),o=a=>{if(a<=1||a>4)throw new Error("[@petnow/ui/Tabs] Tab에 들어갈 수 있는 길이는 2~4개입니다.");return a===2?`absolute h-[2px] w-[50%] bg-petnowOrange transition-all duration-200 ${JSON.stringify(e)===JSON.stringify(n[0])?"translate-x-[0%]":"translate-x-[100%]"}`:a===3?`absolute h-[2px] w-[33.3%] bg-petnowOrange transition-all duration-200 ${JSON.stringify(e)===JSON.stringify(n[0])?"translate-x-[0%]":JSON.stringify(e)===JSON.stringify(n[1])?"translate-x-[100%]":"translate-x-[200%]"}`:`absolute h-[2px] w-[25%] bg-petnowOrange transition-all duration-200 ${JSON.stringify(e)===JSON.stringify(n[0])?"translate-x-[0%]":JSON.stringify(e)===JSON.stringify(n[1])?"translate-x-[100%]":JSON.stringify(e)===JSON.stringify(n[2])?"translate-x-[200%]":"translate-x-[300%]"}`};return I.jsxs("div",{className:"flex flex-col text-2xl font-bold",children:[I.jsx("div",{className:"flex",children:n.map(a=>I.jsx("div",{className:"flex flex-1 flex-col",children:I.jsx("button",{className:`py-5 hover:text-lightBlack ${JSON.stringify(a)===JSON.stringify(e)?"text-lightBlack":"text-[#8B919A]"}`,onClick:()=>{t(a),r(a)},children:a.displayName})},a.key))}),I.jsx("div",{className:"relative h-[2px] w-full bg-lightGray",children:I.jsx("div",{className:o(n.length)})})]})};xe.AccordionCard=Th,xe.Checkbox=Ch,xe.CtaButton=Za,xe.LabeledAddressInput=Sh,xe.LabeledAutocomplete=Yb,xe.LabeledDatepicker=Fb,xe.LabeledSelect=Ab,xe.Modal=Oh,xe.Radio=$b,xe.Tabs=jb,Object.defineProperty(xe,Symbol.toStringTag,{value:"Module"})});
41
+ */var _a=function(r,e){return _a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(t[a]=o[a])},_a(r,e)};function $e(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");_a(n,r);function e(){this.constructor=n}n.prototype=r===null?Object.create(r):(e.prototype=r.prototype,new e)}var ie=function(){return ie=Object.assign||function(e){for(var t,o=1,a=arguments.length;o<a;o++){t=arguments[o];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ie.apply(this,arguments)};function dt(n,r,e){if(e||arguments.length===2)for(var t=0,o=r.length,a;t<o;t++)(a||!(t in r))&&(a||(a=Array.prototype.slice.call(r,0,t)),a[t]=r[t]);return n.concat(a||Array.prototype.slice.call(r))}typeof SuppressedError=="function"&&SuppressedError;var ng=function(n){var r=n.showTimeSelectOnly,e=r===void 0?!1:r,t=n.showTime,o=t===void 0?!1:t,a=n.className,i=n.children,s=e?"Choose Time":"Choose Date".concat(o?" and Time":"");return d.createElement("div",{className:a,role:"dialog","aria-label":s,"aria-modal":"true"},i)},H;(function(n){n.ArrowUp="ArrowUp",n.ArrowDown="ArrowDown",n.ArrowLeft="ArrowLeft",n.ArrowRight="ArrowRight",n.PageUp="PageUp",n.PageDown="PageDown",n.Home="Home",n.End="End",n.Enter="Enter",n.Space=" ",n.Tab="Tab",n.Escape="Escape",n.Backspace="Backspace",n.X="x"})(H||(H={}));function $l(){var n=typeof window<"u"?window:globalThis;return n}var tr=12,rg=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function pe(n){if(n==null)return new Date;var r=typeof n=="string"?$v(n):z(n);return Et(r)?r:new Date}function og(n,r,e,t,o){var a,i=null,s=nn(e)||nn(or()),l=!0;if(Array.isArray(r))return r.forEach(function(c){var f=ka(n,c,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});t&&(l=Et(f,o)&&n===we(f,c,e)),Et(f,o)&&l&&(i=f)}),i;if(i=ka(n,r,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),t)l=Et(i)&&n===we(i,r,e);else if(!Et(i)){var u=((a=r.match(rg))!==null&&a!==void 0?a:[]).map(function(c){var f=c[0];if(f==="p"||f==="P"){var m=Gr[f];return s?m(c,s.formatLong):f}return c}).join("");n.length>0&&(i=ka(n,u.slice(0,n.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),Et(i)||(i=new Date(n))}return Et(i)&&l?i:null}function Et(n,r){return Xr(n)&&!en(n,r??new Date("1/1/1800"))}function we(n,r,e){if(e==="en")return kl(n,r,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var t=e?nn(e):void 0;return e&&!t&&console.warn('A locale object was not found for the provided string ["'.concat(e,'"].')),!t&&or()&&nn(or())&&(t=nn(or())),kl(n,r,{locale:t,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Ge(n,r){var e=r.dateFormat,t=r.locale,o=Array.isArray(e)&&e.length>0?e[0]:e;return n&&we(n,o,t)||""}function ag(n,r,e){if(!n)return"";var t=Ge(n,e),o=r?Ge(r,e):"";return"".concat(t," - ").concat(o)}function ig(n,r){if(!(n!=null&&n.length))return"";var e=n[0]?Ge(n[0],r):"";if(n.length===1)return e;if(n.length===2&&n[1]){var t=Ge(n[1],r);return"".concat(e,", ").concat(t)}var o=n.length-1;return"".concat(e," (+").concat(o,")")}function Oa(n,r){var e=r.hour,t=e===void 0?0:e,o=r.minute,a=o===void 0?0:o,i=r.second,s=i===void 0?0:i;return eo(to(no(n,s),a),t)}function sg(n){return ba(n)}function lg(n,r){return we(n,"ddd",r)}function ro(n){return Gt(n)}function At(n,r,e){var t=nn(r||or());return wt(n,{locale:t,weekStartsOn:e})}function $t(n){return Fl(n)}function nr(n){return qr(n)}function Yl(n){return Da(n)}function jl(){return Gt(pe())}function Wl(n){return fl(n)}function ug(n){return zh(n)}function ft(n,r){return n&&r?Wm(n,r):!n&&!r}function We(n,r){return n&&r?Ym(n,r):!n&&!r}function oo(n,r){return n&&r?jm(n,r):!n&&!r}function re(n,r){return n&&r?$m(n,r):!n&&!r}function tn(n,r){return n&&r?Am(n,r):!n&&!r}function rr(n,r,e){var t,o=Gt(r),a=fl(e);try{t=Zn(n,{start:o,end:a})}catch{t=!1}return t}function or(){var n=$l();return n.__localeId__}function nn(n){if(typeof n=="string"){var r=$l();return r.__localeData__?r.__localeData__[n]:void 0}else return n}function cg(n,r,e){return r(we(n,"EEEE",e))}function dg(n,r){return we(n,"EEEEEE",r)}function fg(n,r){return we(n,"EEE",r)}function Pa(n,r){return we(Ue(pe(),n),"LLLL",r)}function Hl(n,r){return we(Ue(pe(),n),"LLL",r)}function pg(n,r){return we(wn(pe(),n),"QQQ",r)}function Yt(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.maxDate,a=e.excludeDates,i=e.excludeDateIntervals,s=e.includeDates,l=e.includeDateIntervals,u=e.filterDate;return ar(n,{minDate:t,maxDate:o})||a&&a.some(function(c){var f;return c instanceof Date?re(n,c):re(n,(f=c.date)!==null&&f!==void 0?f:new Date)})||i&&i.some(function(c){var f=c.start,m=c.end;return Zn(n,{start:f,end:m})})||s&&!s.some(function(c){return re(n,c)})||l&&!l.some(function(c){var f=c.start,m=c.end;return Zn(n,{start:f,end:m})})||u&&!u(pe(n))||!1}function Ma(n,r){var e=r===void 0?{}:r,t=e.excludeDates,o=e.excludeDateIntervals;return o&&o.length>0?o.some(function(a){var i=a.start,s=a.end;return Zn(n,{start:i,end:s})}):t&&t.some(function(a){var i;return a instanceof Date?re(n,a):re(n,(i=a.date)!==null&&i!==void 0?i:new Date)})||!1}function Rl(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.maxDate,a=e.excludeDates,i=e.includeDates,s=e.filterDate;return ar(n,{minDate:t?Fl(t):void 0,maxDate:o?Bh(o):void 0})||(a==null?void 0:a.some(function(l){return We(n,l instanceof Date?l:l.date)}))||i&&!i.some(function(l){return We(n,l)})||s&&!s(pe(n))||!1}function ao(n,r,e,t){var o=Z(n),a=je(n),i=Z(r),s=je(r),l=Z(t);return o===i&&o===l?a<=e&&e<=s:o<i?l===o&&a<=e||l===i&&s>=e||l<i&&l>o:!1}function hg(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.maxDate,a=e.excludeDates,i=e.includeDates;return ar(n,{minDate:t,maxDate:o})||a&&a.some(function(s){return We(s instanceof Date?s:s.date,n)})||i&&!i.some(function(s){return We(s,n)})||!1}function Ta(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.maxDate,a=e.excludeDates,i=e.includeDates,s=e.filterDate;return ar(n,{minDate:t,maxDate:o})||(a==null?void 0:a.some(function(l){return oo(n,l instanceof Date?l:l.date)}))||i&&!i.some(function(l){return oo(n,l)})||s&&!s(pe(n))||!1}function io(n,r,e){if(!r||!e||!Xr(r)||!Xr(e))return!1;var t=Z(r),o=Z(e);return t<=n&&o>=n}function Na(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.maxDate,a=e.excludeDates,i=e.includeDates,s=e.filterDate,l=new Date(n,0,1);return ar(l,{minDate:t?qr(t):void 0,maxDate:o?pl(o):void 0})||(a==null?void 0:a.some(function(u){return ft(l,u instanceof Date?u:u.date)}))||i&&!i.some(function(u){return ft(l,u)})||s&&!s(pe(l))||!1}function so(n,r,e,t){var o=Z(n),a=Xt(n),i=Z(r),s=Xt(r),l=Z(t);return o===i&&o===l?a<=e&&e<=s:o<i?l===o&&a<=e||l===i&&s>=e||l<i&&l>o:!1}function ar(n,r){var e,t=r===void 0?{}:r,o=t.minDate,a=t.maxDate;return(e=o&&Jn(n,o)<0||a&&Jn(n,a)>0)!==null&&e!==void 0?e:!1}function Bl(n,r){return r.some(function(e){return it(e)===it(n)&&st(e)===st(n)&&Dt(e)===Dt(n)})}function Vl(n,r){var e=r===void 0?{}:r,t=e.excludeTimes,o=e.includeTimes,a=e.filterTime;return t&&Bl(n,t)||o&&!Bl(n,o)||a&&!a(n)||!1}function zl(n,r){var e=r.minTime,t=r.maxTime;if(!e||!t)throw new Error("Both minTime and maxTime props required");var o=pe();o=eo(o,it(n)),o=to(o,st(n)),o=no(o,Dt(n));var a=pe();a=eo(a,it(e)),a=to(a,st(e)),a=no(a,Dt(e));var i=pe();i=eo(i,it(t)),i=to(i,st(t)),i=no(i,Dt(t));var s;try{s=!Zn(o,{start:a,end:i})}catch{s=!1}return s}function Ql(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.includeDates,a=xn(n,1);return t&&Qr(t,a)>0||o&&o.every(function(i){return Qr(i,a)>0})||!1}function Ul(n,r){var e=r===void 0?{}:r,t=e.maxDate,o=e.includeDates,a=et(n,1);return t&&Qr(a,t)>0||o&&o.every(function(i){return Qr(a,i)>0})||!1}function mg(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.includeDates,a=qr(n),i=Ll(a,1);return t&&Ur(t,i)>0||o&&o.every(function(s){return Ur(s,i)>0})||!1}function vg(n,r){var e=r===void 0?{}:r,t=e.maxDate,o=e.includeDates,a=pl(n),i=ga(a,1);return t&&Ur(i,t)>0||o&&o.every(function(s){return Ur(i,s)>0})||!1}function Kl(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.includeDates,a=Dn(n,1);return t&&Kr(t,a)>0||o&&o.every(function(i){return Kr(i,a)>0})||!1}function gg(n,r){var e=r===void 0?{}:r,t=e.minDate,o=e.yearItemNumber,a=o===void 0?tr:o,i=nr(Dn(n,a)),s=jt(i,a).endPeriod,l=t&&Z(t);return l&&l>s||!1}function ql(n,r){var e=r===void 0?{}:r,t=e.maxDate,o=e.includeDates,a=yt(n,1);return t&&Kr(a,t)>0||o&&o.every(function(i){return Kr(a,i)>0})||!1}function bg(n,r){var e=r===void 0?{}:r,t=e.maxDate,o=e.yearItemNumber,a=o===void 0?tr:o,i=yt(n,a),s=jt(i,a).startPeriod,l=t&&Z(t);return l&&l<s||!1}function Gl(n){var r=n.minDate,e=n.includeDates;if(e&&r){var t=e.filter(function(o){return Jn(o,r)>=0});return Ol(t)}else return e?Ol(e):r}function Xl(n){var r=n.maxDate,e=n.includeDates;if(e&&r){var t=e.filter(function(o){return Jn(o,r)<=0});return _l(t)}else return e?_l(e):r}function Jl(n,r){var e;n===void 0&&(n=[]),r===void 0&&(r="react-datepicker__day--highlighted");for(var t=new Map,o=0,a=n.length;o<a;o++){var i=n[o];if(xt(i)){var s=we(i,"MM.dd.yyyy"),l=t.get(s)||[];l.includes(r)||(l.push(r),t.set(s,l))}else if(typeof i=="object"){var u=Object.keys(i),c=(e=u[0])!==null&&e!==void 0?e:"",f=i[c];if(typeof c=="string"&&Array.isArray(f))for(var m=0,p=f.length;m<p;m++){var h=f[m];if(h){var s=we(h,"MM.dd.yyyy"),l=t.get(s)||[];l.includes(c)||(l.push(c),t.set(s,l))}}}}return t}function yg(n,r){return n.length!==r.length?!1:n.every(function(e,t){return e===r[t]})}function wg(n,r){n===void 0&&(n=[]),r===void 0&&(r="react-datepicker__day--holidays");var e=new Map;return n.forEach(function(t){var o=t.date,a=t.holidayName;if(xt(o)){var i=we(o,"MM.dd.yyyy"),s=e.get(i)||{className:"",holidayNames:[]};if(!("className"in s&&s.className===r&&yg(s.holidayNames,[a]))){s.className=r;var l=s.holidayNames;s.holidayNames=l?dt(dt([],l,!0),[a],!1):[a],e.set(i,s)}}}),e}function xg(n,r,e,t,o){for(var a=o.length,i=[],s=0;s<a;s++){var l=n,u=o[s];u&&(l=Hh(l,it(u)),l=va(l,st(u)),l=Rh(l,Dt(u)));var c=va(n,(e+1)*t);Lt(l,r)&&en(l,c)&&u!=null&&i.push(u)}return i}function Zl(n){return n<10?"0".concat(n):"".concat(n)}function jt(n,r){r===void 0&&(r=tr);var e=Math.ceil(Z(n)/r)*r,t=e-(r-1);return{startPeriod:t,endPeriod:e}}function Dg(n){var r=new Date(n.getFullYear(),n.getMonth(),n.getDate()),e=new Date(n.getFullYear(),n.getMonth(),n.getDate(),24);return Math.round((+e-+r)/36e5)}function eu(n){var r=n.getSeconds(),e=n.getMilliseconds();return z(n.getTime()-r*1e3-e)}function Eg(n,r){return eu(n).getTime()===eu(r).getTime()}function tu(n){if(!xt(n))throw new Error("Invalid date");var r=new Date(n);return r.setHours(0,0,0,0),r}function nu(n,r){if(!xt(n)||!xt(r))throw new Error("Invalid date received");var e=tu(n),t=tu(r);return en(e,t)}function ru(n){return n.key===H.Space}var Cg=function(n){$e(r,n);function r(e){var t=n.call(this,e)||this;return t.onTimeChange=function(o){var a,i;t.setState({time:o});var s=t.props.date,l=s instanceof Date&&!isNaN(+s),u=l?s:new Date;if(o!=null&&o.includes(":")){var c=o.split(":"),f=c[0],m=c[1];u.setHours(Number(f)),u.setMinutes(Number(m))}(i=(a=t.props).onChange)===null||i===void 0||i.call(a,u)},t.renderTimeInput=function(){var o=t.state.time,a=t.props,i=a.date,s=a.timeString,l=a.customTimeInput;return l?d.cloneElement(l,{date:i,value:o,onChange:t.onTimeChange}):d.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:o,onChange:function(u){t.onTimeChange(u.target.value||s)}})},t.state={time:t.props.timeString},t}return r.getDerivedStateFromProps=function(e,t){return e.timeString!==t.time?{time:e.timeString}:null},r.prototype.render=function(){return d.createElement("div",{className:"react-datepicker__input-time-container"},d.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),d.createElement("div",{className:"react-datepicker-time__input-container"},d.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},r}(d.Component),kg=function(n){$e(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.dayEl=d.createRef(),e.handleClick=function(t){!e.isDisabled()&&e.props.onClick&&e.props.onClick(t)},e.handleMouseEnter=function(t){!e.isDisabled()&&e.props.onMouseEnter&&e.props.onMouseEnter(t)},e.handleOnKeyDown=function(t){var o,a,i=t.key;i===H.Space&&(t.preventDefault(),t.key=H.Enter),(a=(o=e.props).handleOnKeyDown)===null||a===void 0||a.call(o,t)},e.isSameDay=function(t){return re(e.props.day,t)},e.isKeyboardSelected=function(){var t;if(e.props.disabledKeyboardNavigation)return!1;var o=e.props.selectsMultiple?(t=e.props.selectedDates)===null||t===void 0?void 0:t.some(function(i){return e.isSameDayOrWeek(i)}):e.isSameDayOrWeek(e.props.selected),a=e.props.preSelection&&e.isDisabled(e.props.preSelection);return!o&&e.isSameDayOrWeek(e.props.preSelection)&&!a},e.isDisabled=function(t){return t===void 0&&(t=e.props.day),Yt(t,{minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDateIntervals:e.props.includeDateIntervals,includeDates:e.props.includeDates,filterDate:e.props.filterDate})},e.isExcluded=function(){return Ma(e.props.day,{excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals})},e.isStartOfWeek=function(){return re(e.props.day,At(e.props.day,e.props.locale,e.props.calendarStartDay))},e.isSameWeek=function(t){return e.props.showWeekPicker&&re(t,At(e.props.day,e.props.locale,e.props.calendarStartDay))},e.isSameDayOrWeek=function(t){return e.isSameDay(t)||e.isSameWeek(t)},e.getHighLightedClass=function(){var t=e.props,o=t.day,a=t.highlightDates;if(!a)return!1;var i=we(o,"MM.dd.yyyy");return a.get(i)},e.getHolidaysClass=function(){var t,o=e.props,a=o.day,i=o.holidays;if(!i)return[void 0];var s=we(a,"MM.dd.yyyy");return i.has(s)?[(t=i.get(s))===null||t===void 0?void 0:t.className]:[void 0]},e.isInRange=function(){var t=e.props,o=t.day,a=t.startDate,i=t.endDate;return!a||!i?!1:rr(o,a,i)},e.isInSelectingRange=function(){var t,o=e.props,a=o.day,i=o.selectsStart,s=o.selectsEnd,l=o.selectsRange,u=o.selectsDisabledDaysInRange,c=o.startDate,f=o.endDate,m=(t=e.props.selectingDate)!==null&&t!==void 0?t:e.props.preSelection;return!(i||s||l)||!m||!u&&e.isDisabled()?!1:i&&f&&(en(m,f)||tn(m,f))?rr(a,m,f):s&&c&&(Lt(m,c)||tn(m,c))||l&&c&&!f&&(Lt(m,c)||tn(m,c))?rr(a,c,m):!1},e.isSelectingRangeStart=function(){var t;if(!e.isInSelectingRange())return!1;var o=e.props,a=o.day,i=o.startDate,s=o.selectsStart,l=(t=e.props.selectingDate)!==null&&t!==void 0?t:e.props.preSelection;return s?re(a,l):re(a,i)},e.isSelectingRangeEnd=function(){var t;if(!e.isInSelectingRange())return!1;var o=e.props,a=o.day,i=o.endDate,s=o.selectsEnd,l=o.selectsRange,u=(t=e.props.selectingDate)!==null&&t!==void 0?t:e.props.preSelection;return s||l?re(a,u):re(a,i)},e.isRangeStart=function(){var t=e.props,o=t.day,a=t.startDate,i=t.endDate;return!a||!i?!1:re(a,o)},e.isRangeEnd=function(){var t=e.props,o=t.day,a=t.startDate,i=t.endDate;return!a||!i?!1:re(i,o)},e.isWeekend=function(){var t=Lm(e.props.day);return t===0||t===6},e.isAfterMonth=function(){return e.props.month!==void 0&&(e.props.month+1)%12===je(e.props.day)},e.isBeforeMonth=function(){return e.props.month!==void 0&&(je(e.props.day)+1)%12===e.props.month},e.isCurrentDay=function(){return e.isSameDay(pe())},e.isSelected=function(){var t;return e.props.selectsMultiple?(t=e.props.selectedDates)===null||t===void 0?void 0:t.some(function(o){return e.isSameDayOrWeek(o)}):e.isSameDayOrWeek(e.props.selected)},e.getClassNames=function(t){var o=e.props.dayClassName?e.props.dayClassName(t):void 0;return Le("react-datepicker__day",o,"react-datepicker__day--"+lg(e.props.day),{"react-datepicker__day--disabled":e.isDisabled(),"react-datepicker__day--excluded":e.isExcluded(),"react-datepicker__day--selected":e.isSelected(),"react-datepicker__day--keyboard-selected":e.isKeyboardSelected(),"react-datepicker__day--range-start":e.isRangeStart(),"react-datepicker__day--range-end":e.isRangeEnd(),"react-datepicker__day--in-range":e.isInRange(),"react-datepicker__day--in-selecting-range":e.isInSelectingRange(),"react-datepicker__day--selecting-range-start":e.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":e.isSelectingRangeEnd(),"react-datepicker__day--today":e.isCurrentDay(),"react-datepicker__day--weekend":e.isWeekend(),"react-datepicker__day--outside-month":e.isAfterMonth()||e.isBeforeMonth()},e.getHighLightedClass(),e.getHolidaysClass())},e.getAriaLabel=function(){var t=e.props,o=t.day,a=t.ariaLabelPrefixWhenEnabled,i=a===void 0?"Choose":a,s=t.ariaLabelPrefixWhenDisabled,l=s===void 0?"Not available":s,u=e.isDisabled()||e.isExcluded()?l:i;return"".concat(u," ").concat(we(o,"PPPP",e.props.locale))},e.getTitle=function(){var t=e.props,o=t.day,a=t.holidays,i=a===void 0?new Map:a,s=t.excludeDates,l=we(o,"MM.dd.yyyy"),u=[];return i.has(l)&&u.push.apply(u,i.get(l).holidayNames),e.isExcluded()&&u.push(s==null?void 0:s.filter(function(c){return c instanceof Date?re(c,o):re(c==null?void 0:c.date,o)}).map(function(c){if(!(c instanceof Date))return c==null?void 0:c.message})),u.join(", ")},e.getTabIndex=function(){var t=e.props.selected,o=e.props.preSelection,a=!(e.props.showWeekPicker&&(e.props.showWeekNumber||!e.isStartOfWeek()))&&(e.isKeyboardSelected()||e.isSameDay(t)&&re(o,t))?0:-1;return a},e.handleFocusDay=function(){var t;e.shouldFocusDay()&&((t=e.dayEl.current)===null||t===void 0||t.focus({preventScroll:!0}))},e.renderDayContents=function(){return e.props.monthShowsDuplicateDaysEnd&&e.isAfterMonth()||e.props.monthShowsDuplicateDaysStart&&e.isBeforeMonth()?null:e.props.renderDayContents?e.props.renderDayContents(Sl(e.props.day),e.props.day):Sl(e.props.day)},e.render=function(){return d.createElement("div",{ref:e.dayEl,className:e.getClassNames(e.props.day),onKeyDown:e.handleOnKeyDown,onClick:e.handleClick,onMouseEnter:e.props.usePointerEvent?void 0:e.handleMouseEnter,onPointerEnter:e.props.usePointerEvent?e.handleMouseEnter:void 0,tabIndex:e.getTabIndex(),"aria-label":e.getAriaLabel(),role:"option",title:e.getTitle(),"aria-disabled":e.isDisabled(),"aria-current":e.isCurrentDay()?"date":void 0,"aria-selected":e.isSelected()||e.isInRange()},e.renderDayContents(),e.getTitle()!==""&&d.createElement("span",{className:"overlay"},e.getTitle()))},e}return r.prototype.componentDidMount=function(){this.handleFocusDay()},r.prototype.componentDidUpdate=function(){this.handleFocusDay()},r.prototype.shouldFocusDay=function(){var e=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(e=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(e=!1),this.isDayActiveElement()&&(e=!0),this.isDuplicateDay()&&(e=!1)),e},r.prototype.isDayActiveElement=function(){var e,t,o;return((t=(e=this.props.containerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.contains(document.activeElement))&&((o=document.activeElement)===null||o===void 0?void 0:o.classList.contains("react-datepicker__day"))},r.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},r}(d.Component),Sg=function(n){$e(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.weekNumberEl=d.createRef(),e.handleClick=function(t){e.props.onClick&&e.props.onClick(t)},e.handleOnKeyDown=function(t){var o,a,i=t.key;i===H.Space&&(t.preventDefault(),t.key=H.Enter),(a=(o=e.props).handleOnKeyDown)===null||a===void 0||a.call(o,t)},e.isKeyboardSelected=function(){return!e.props.disabledKeyboardNavigation&&!re(e.props.date,e.props.selected)&&re(e.props.date,e.props.preSelection)},e.getTabIndex=function(){return e.props.showWeekPicker&&e.props.showWeekNumber&&(e.isKeyboardSelected()||re(e.props.date,e.props.selected)&&re(e.props.preSelection,e.props.selected))?0:-1},e.handleFocusWeekNumber=function(t){var o=!1;e.getTabIndex()===0&&!(t!=null&&t.isInputFocused)&&re(e.props.date,e.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(o=!0),e.props.inline&&!e.props.shouldFocusDayInline&&(o=!1),e.props.containerRef&&e.props.containerRef.current&&e.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(o=!0)),o&&e.weekNumberEl.current&&e.weekNumberEl.current.focus({preventScroll:!0})},e}return Object.defineProperty(r,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},r.prototype.componentDidUpdate=function(e){this.handleFocusWeekNumber(e)},r.prototype.render=function(){var e=this.props,t=e.weekNumber,o=e.ariaLabelPrefix,a=o===void 0?r.defaultProps.ariaLabelPrefix:o,i=e.onClick,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!i,"react-datepicker__week-number--selected":!!i&&re(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return d.createElement("div",{ref:this.weekNumberEl,className:Le(s),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},t)},r}(d.Component),_g=function(n){$e(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.isDisabled=function(t){return Yt(t,{minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDateIntervals:e.props.includeDateIntervals,includeDates:e.props.includeDates,filterDate:e.props.filterDate})},e.handleDayClick=function(t,o){e.props.onDayClick&&e.props.onDayClick(t,o)},e.handleDayMouseEnter=function(t){e.props.onDayMouseEnter&&e.props.onDayMouseEnter(t)},e.handleWeekClick=function(t,o,a){for(var i,s,l,u=new Date(t),c=0;c<7;c++){var f=new Date(t);f.setDate(f.getDate()+c);var m=!e.isDisabled(f);if(m){u=f;break}}typeof e.props.onWeekSelect=="function"&&e.props.onWeekSelect(u,o,a),e.props.showWeekPicker&&e.handleDayClick(u,a),((i=e.props.shouldCloseOnSelect)!==null&&i!==void 0?i:r.defaultProps.shouldCloseOnSelect)&&((l=(s=e.props).setOpen)===null||l===void 0||l.call(s,!1))},e.formatWeekNumber=function(t){return e.props.formatWeekNumber?e.props.formatWeekNumber(t):sg(t)},e.renderDays=function(){var t=e.startOfWeek(),o=[],a=e.formatWeekNumber(t);if(e.props.showWeekNumber){var i=e.props.onWeekSelect||e.props.showWeekPicker?e.handleWeekClick.bind(e,t,a):void 0;o.push(d.createElement(Sg,ie({key:"W"},r.defaultProps,e.props,{weekNumber:a,date:t,onClick:i})))}return o.concat([0,1,2,3,4,5,6].map(function(s){var l=It(t,s);return d.createElement(kg,ie({},r.defaultProps,e.props,{ariaLabelPrefixWhenEnabled:e.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:e.props.disabledDayAriaLabelPrefix,key:l.valueOf(),day:l,onClick:e.handleDayClick.bind(e,l),onMouseEnter:e.handleDayMouseEnter.bind(e,l)}))}))},e.startOfWeek=function(){return At(e.props.day,e.props.locale,e.props.calendarStartDay)},e.isKeyboardSelected=function(){return!e.props.disabledKeyboardNavigation&&!re(e.startOfWeek(),e.props.selected)&&re(e.startOfWeek(),e.props.preSelection)},e}return Object.defineProperty(r,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),r.prototype.render=function(){var e={"react-datepicker__week":!0,"react-datepicker__week--selected":re(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return d.createElement("div",{className:Le(e)},this.renderDays())},r}(d.Component),ir,Og=6,En={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},Ia=(ir={},ir[En.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},ir[En.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},ir[En.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},ir),lo=1;function ou(n,r){return n?En.FOUR_COLUMNS:r?En.TWO_COLUMNS:En.THREE_COLUMNS}var Pg=function(n){$e(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.MONTH_REFS=dt([],Array(12),!0).map(function(){return d.createRef()}),e.QUARTER_REFS=dt([],Array(4),!0).map(function(){return d.createRef()}),e.isDisabled=function(t){return Yt(t,{minDate:e.props.minDate,maxDate:e.props.maxDate,excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals,includeDateIntervals:e.props.includeDateIntervals,includeDates:e.props.includeDates,filterDate:e.props.filterDate})},e.isExcluded=function(t){return Ma(t,{excludeDates:e.props.excludeDates,excludeDateIntervals:e.props.excludeDateIntervals})},e.handleDayClick=function(t,o){var a,i;(i=(a=e.props).onDayClick)===null||i===void 0||i.call(a,t,o,e.props.orderInDisplay)},e.handleDayMouseEnter=function(t){var o,a;(a=(o=e.props).onDayMouseEnter)===null||a===void 0||a.call(o,t)},e.handleMouseLeave=function(){var t,o;(o=(t=e.props).onMouseLeave)===null||o===void 0||o.call(t)},e.isRangeStartMonth=function(t){var o=e.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:We(Ue(a,t),i)},e.isRangeStartQuarter=function(t){var o=e.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:oo(wn(a,t),i)},e.isRangeEndMonth=function(t){var o=e.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:We(Ue(a,t),s)},e.isRangeEndQuarter=function(t){var o=e.props,a=o.day,i=o.startDate,s=o.endDate;return!i||!s?!1:oo(wn(a,t),s)},e.isInSelectingRangeMonth=function(t){var o,a=e.props,i=a.day,s=a.selectsStart,l=a.selectsEnd,u=a.selectsRange,c=a.startDate,f=a.endDate,m=(o=e.props.selectingDate)!==null&&o!==void 0?o:e.props.preSelection;return!(s||l||u)||!m?!1:s&&f?ao(m,f,t,i):l&&c||u&&c&&!f?ao(c,m,t,i):!1},e.isSelectingMonthRangeStart=function(t){var o;if(!e.isInSelectingRangeMonth(t))return!1;var a=e.props,i=a.day,s=a.startDate,l=a.selectsStart,u=Ue(i,t),c=(o=e.props.selectingDate)!==null&&o!==void 0?o:e.props.preSelection;return l?We(u,c):We(u,s)},e.isSelectingMonthRangeEnd=function(t){var o;if(!e.isInSelectingRangeMonth(t))return!1;var a=e.props,i=a.day,s=a.endDate,l=a.selectsEnd,u=a.selectsRange,c=Ue(i,t),f=(o=e.props.selectingDate)!==null&&o!==void 0?o:e.props.preSelection;return l||u?We(c,f):We(c,s)},e.isInSelectingRangeQuarter=function(t){var o,a=e.props,i=a.day,s=a.selectsStart,l=a.selectsEnd,u=a.selectsRange,c=a.startDate,f=a.endDate,m=(o=e.props.selectingDate)!==null&&o!==void 0?o:e.props.preSelection;return!(s||l||u)||!m?!1:s&&f?so(m,f,t,i):l&&c||u&&c&&!f?so(c,m,t,i):!1},e.isWeekInMonth=function(t){var o=e.props.day,a=It(t,6);return We(t,o)||We(a,o)},e.isCurrentMonth=function(t,o){return Z(t)===Z(pe())&&o===je(pe())},e.isCurrentQuarter=function(t,o){return Z(t)===Z(pe())&&o===Xt(pe())},e.isSelectedMonth=function(t,o,a){return je(a)===o&&Z(t)===Z(a)},e.isSelectMonthInList=function(t,o,a){return a.some(function(i){return e.isSelectedMonth(t,o,i)})},e.isSelectedQuarter=function(t,o,a){return Xt(t)===o&&Z(t)===Z(a)},e.renderWeeks=function(){for(var t=[],o=e.props.fixedHeight,a=0,i=!1,s=At($t(e.props.day),e.props.locale,e.props.calendarStartDay),l=function(h){return e.props.showWeekPicker?At(h,e.props.locale,e.props.calendarStartDay):e.props.preSelection},u=function(h){return e.props.showWeekPicker?At(h,e.props.locale,e.props.calendarStartDay):e.props.selected},c=e.props.selected?u(e.props.selected):void 0,f=e.props.preSelection?l(e.props.preSelection):void 0;t.push(d.createElement(_g,ie({},e.props,{ariaLabelPrefix:e.props.weekAriaLabelPrefix,key:a,day:s,month:je(e.props.day),onDayClick:e.handleDayClick,onDayMouseEnter:e.handleDayMouseEnter,selected:c,preSelection:f,showWeekNumber:e.props.showWeekNumbers}))),!i;){a++,s=Vr(s,1);var m=o&&a>=Og,p=!o&&!e.isWeekInMonth(s);if(m||p)if(e.props.peekNextMonth)i=!0;else break}return t},e.onMonthClick=function(t,o){var a=e.isMonthDisabledForLabelDate(o),i=a.isDisabled,s=a.labelDate;i||e.handleDayClick($t(s),t)},e.onMonthMouseEnter=function(t){var o=e.isMonthDisabledForLabelDate(t),a=o.isDisabled,i=o.labelDate;a||e.handleDayMouseEnter($t(i))},e.handleMonthNavigation=function(t,o){var a,i,s,l;(i=(a=e.props).setPreSelection)===null||i===void 0||i.call(a,o),(l=(s=e.MONTH_REFS[t])===null||s===void 0?void 0:s.current)===null||l===void 0||l.focus()},e.handleKeyboardNavigation=function(t,o,a){var i,s=e.props,l=s.selected,u=s.preSelection,c=s.setPreSelection,f=s.minDate,m=s.maxDate,p=s.showFourColumnMonthYearPicker,h=s.showTwoColumnMonthYearPicker;if(u){var v=ou(p,h),g=e.getVerticalOffset(v),b=(i=Ia[v])===null||i===void 0?void 0:i.grid,w=function(S,O,I){var W,E,C=O,_=I;switch(S){case H.ArrowRight:C=et(O,lo),_=I===11?0:I+lo;break;case H.ArrowLeft:C=xn(O,lo),_=I===0?11:I-lo;break;case H.ArrowUp:C=xn(O,g),_=!((W=b==null?void 0:b[0])===null||W===void 0)&&W.includes(I)?I+12-g:I-g;break;case H.ArrowDown:C=et(O,g),_=!((E=b==null?void 0:b[b.length-1])===null||E===void 0)&&E.includes(I)?I-12+g:I+g;break}return{newCalculatedDate:C,newCalculatedMonth:_}},x=function(S,O,I){for(var W=40,E=S,C=!1,_=0,D=w(E,O,I),N=D.newCalculatedDate,A=D.newCalculatedMonth;!C;){if(_>=W){N=O,A=I;break}if(f&&N<f){E=H.ArrowRight;var $=w(E,N,A);N=$.newCalculatedDate,A=$.newCalculatedMonth}if(m&&N>m){E=H.ArrowLeft;var $=w(E,N,A);N=$.newCalculatedDate,A=$.newCalculatedMonth}if(hg(N,e.props)){var $=w(E,N,A);N=$.newCalculatedDate,A=$.newCalculatedMonth}else C=!0;_++}return{newCalculatedDate:N,newCalculatedMonth:A}};if(o===H.Enter){e.isMonthDisabled(a)||(e.onMonthClick(t,a),c==null||c(l));return}var k=x(o,u,a),P=k.newCalculatedDate,M=k.newCalculatedMonth;switch(o){case H.ArrowRight:case H.ArrowLeft:case H.ArrowUp:case H.ArrowDown:e.handleMonthNavigation(M,P);break}}},e.getVerticalOffset=function(t){var o,a;return(a=(o=Ia[t])===null||o===void 0?void 0:o.verticalNavigationOffset)!==null&&a!==void 0?a:0},e.onMonthKeyDown=function(t,o){var a=e.props,i=a.disabledKeyboardNavigation,s=a.handleOnMonthKeyDown,l=t.key;l!==H.Tab&&t.preventDefault(),i||e.handleKeyboardNavigation(t,l,o),s&&s(t)},e.onQuarterClick=function(t,o){var a=wn(e.props.day,o);Ta(a,e.props)||e.handleDayClick(Yl(a),t)},e.onQuarterMouseEnter=function(t){var o=wn(e.props.day,t);Ta(o,e.props)||e.handleDayMouseEnter(Yl(o))},e.handleQuarterNavigation=function(t,o){var a,i,s,l;e.isDisabled(o)||e.isExcluded(o)||((i=(a=e.props).setPreSelection)===null||i===void 0||i.call(a,o),(l=(s=e.QUARTER_REFS[t-1])===null||s===void 0?void 0:s.current)===null||l===void 0||l.focus())},e.onQuarterKeyDown=function(t,o){var a,i,s=t.key;if(!e.props.disabledKeyboardNavigation)switch(s){case H.Enter:e.onQuarterClick(t,o),(i=(a=e.props).setPreSelection)===null||i===void 0||i.call(a,e.props.selected);break;case H.ArrowRight:if(!e.props.preSelection)break;e.handleQuarterNavigation(o===4?1:o+1,ga(e.props.preSelection,1));break;case H.ArrowLeft:if(!e.props.preSelection)break;e.handleQuarterNavigation(o===1?4:o-1,Ll(e.props.preSelection,1));break}},e.isMonthDisabledForLabelDate=function(t){var o,a=e.props,i=a.day,s=a.minDate,l=a.maxDate,u=a.excludeDates,c=a.includeDates,f=Ue(i,t);return{isDisabled:(o=(s||l||u||c)&&Rl(f,e.props))!==null&&o!==void 0?o:!1,labelDate:f}},e.isMonthDisabled=function(t){var o=e.isMonthDisabledForLabelDate(t).isDisabled;return o},e.getMonthClassNames=function(t){var o=e.props,a=o.day,i=o.startDate,s=o.endDate,l=o.preSelection,u=o.monthClassName,c=u?u(Ue(a,t)):void 0,f=e.getSelection();return Le("react-datepicker__month-text","react-datepicker__month-".concat(t),c,{"react-datepicker__month-text--disabled":e.isMonthDisabled(t),"react-datepicker__month-text--selected":f?e.isSelectMonthInList(a,t,f):void 0,"react-datepicker__month-text--keyboard-selected":!e.props.disabledKeyboardNavigation&&l&&e.isSelectedMonth(a,t,l)&&!e.isMonthDisabled(t),"react-datepicker__month-text--in-selecting-range":e.isInSelectingRangeMonth(t),"react-datepicker__month-text--in-range":i&&s?ao(i,s,t,a):void 0,"react-datepicker__month-text--range-start":e.isRangeStartMonth(t),"react-datepicker__month-text--range-end":e.isRangeEndMonth(t),"react-datepicker__month-text--selecting-range-start":e.isSelectingMonthRangeStart(t),"react-datepicker__month-text--selecting-range-end":e.isSelectingMonthRangeEnd(t),"react-datepicker__month-text--today":e.isCurrentMonth(a,t)})},e.getTabIndex=function(t){if(e.props.preSelection==null)return"-1";var o=je(e.props.preSelection),a=!e.props.disabledKeyboardNavigation&&t===o?"0":"-1";return a},e.getQuarterTabIndex=function(t){if(e.props.preSelection==null)return"-1";var o=Xt(e.props.preSelection),a=!e.props.disabledKeyboardNavigation&&t===o?"0":"-1";return a},e.getAriaLabel=function(t){var o=e.props,a=o.chooseDayAriaLabelPrefix,i=a===void 0?"Choose":a,s=o.disabledDayAriaLabelPrefix,l=s===void 0?"Not available":s,u=o.day,c=o.locale,f=Ue(u,t),m=e.isDisabled(f)||e.isExcluded(f)?l:i;return"".concat(m," ").concat(we(f,"MMMM yyyy",c))},e.getQuarterClassNames=function(t){var o=e.props,a=o.day,i=o.startDate,s=o.endDate,l=o.selected,u=o.minDate,c=o.maxDate,f=o.excludeDates,m=o.includeDates,p=o.filterDate,h=o.preSelection,v=o.disabledKeyboardNavigation,g=(u||c||f||m||p)&&Ta(wn(a,t),e.props);return Le("react-datepicker__quarter-text","react-datepicker__quarter-".concat(t),{"react-datepicker__quarter-text--disabled":g,"react-datepicker__quarter-text--selected":l?e.isSelectedQuarter(a,t,l):void 0,"react-datepicker__quarter-text--keyboard-selected":!v&&h&&e.isSelectedQuarter(a,t,h)&&!g,"react-datepicker__quarter-text--in-selecting-range":e.isInSelectingRangeQuarter(t),"react-datepicker__quarter-text--in-range":i&&s?so(i,s,t,a):void 0,"react-datepicker__quarter-text--range-start":e.isRangeStartQuarter(t),"react-datepicker__quarter-text--range-end":e.isRangeEndQuarter(t)})},e.getMonthContent=function(t){var o=e.props,a=o.showFullMonthYearPicker,i=o.renderMonthContent,s=o.locale,l=o.day,u=Hl(t,s),c=Pa(t,s);return i?i(t,u,c,l):a?c:u},e.getQuarterContent=function(t){var o,a=e.props,i=a.renderQuarterContent,s=a.locale,l=pg(t,s);return(o=i==null?void 0:i(t,l))!==null&&o!==void 0?o:l},e.renderMonths=function(){var t,o=e.props,a=o.showTwoColumnMonthYearPicker,i=o.showFourColumnMonthYearPicker,s=o.day,l=o.selected,u=(t=Ia[ou(i,a)])===null||t===void 0?void 0:t.grid;return u==null?void 0:u.map(function(c,f){return d.createElement("div",{className:"react-datepicker__month-wrapper",key:f},c.map(function(m,p){return d.createElement("div",{ref:e.MONTH_REFS[m],key:p,onClick:function(h){e.onMonthClick(h,m)},onKeyDown:function(h){ru(h)&&(h.preventDefault(),h.key=H.Enter),e.onMonthKeyDown(h,m)},onMouseEnter:e.props.usePointerEvent?void 0:function(){return e.onMonthMouseEnter(m)},onPointerEnter:e.props.usePointerEvent?function(){return e.onMonthMouseEnter(m)}:void 0,tabIndex:Number(e.getTabIndex(m)),className:e.getMonthClassNames(m),"aria-disabled":e.isMonthDisabled(m),role:"option","aria-label":e.getAriaLabel(m),"aria-current":e.isCurrentMonth(s,m)?"date":void 0,"aria-selected":l?e.isSelectedMonth(s,m,l):void 0},e.getMonthContent(m))}))})},e.renderQuarters=function(){var t=e.props,o=t.day,a=t.selected,i=[1,2,3,4];return d.createElement("div",{className:"react-datepicker__quarter-wrapper"},i.map(function(s,l){return d.createElement("div",{key:l,ref:e.QUARTER_REFS[l],role:"option",onClick:function(u){e.onQuarterClick(u,s)},onKeyDown:function(u){e.onQuarterKeyDown(u,s)},onMouseEnter:e.props.usePointerEvent?void 0:function(){return e.onQuarterMouseEnter(s)},onPointerEnter:e.props.usePointerEvent?function(){return e.onQuarterMouseEnter(s)}:void 0,className:e.getQuarterClassNames(s),"aria-selected":a?e.isSelectedQuarter(o,s,a):void 0,tabIndex:Number(e.getQuarterTabIndex(s)),"aria-current":e.isCurrentQuarter(o,s)?"date":void 0},e.getQuarterContent(s))}))},e.getClassNames=function(){var t=e.props,o=t.selectingDate,a=t.selectsStart,i=t.selectsEnd,s=t.showMonthYearPicker,l=t.showQuarterYearPicker,u=t.showWeekPicker;return Le("react-datepicker__month",{"react-datepicker__month--selecting-range":o&&(a||i)},{"react-datepicker__monthPicker":s},{"react-datepicker__quarterPicker":l},{"react-datepicker__weekPicker":u})},e}return r.prototype.getSelection=function(){var e=this.props,t=e.selected,o=e.selectedDates,a=e.selectsMultiple;if(a)return o;if(t)return[t]},r.prototype.render=function(){var e=this.props,t=e.showMonthYearPicker,o=e.showQuarterYearPicker,a=e.day,i=e.ariaLabelPrefix,s=i===void 0?"Month ":i,l=s?s.trim()+" ":"";return d.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(l).concat(we(a,"MMMM, yyyy",this.props.locale)),role:"listbox"},t?this.renderMonths():o?this.renderQuarters():this.renderWeeks())},r}(d.Component),Mg=function(n){$e(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.isSelectedMonth=function(t){return e.props.month===t},e.renderOptions=function(){return e.props.monthNames.map(function(t,o){return d.createElement("div",{className:e.isSelectedMonth(o)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:t,onClick:e.onChange.bind(e,o),"aria-selected":e.isSelectedMonth(o)?"true":void 0},e.isSelectedMonth(o)?d.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",t)})},e.onChange=function(t){return e.props.onChange(t)},e.handleClickOutside=function(){return e.props.onCancel()},e}return r.prototype.render=function(){return d.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())},r}(d.Component),Tg=Hr(Mg),Ng=function(n){$e(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.state={dropdownVisible:!1},e.renderSelectOptions=function(t){return t.map(function(o,a){return d.createElement("option",{key:o,value:a},o)})},e.renderSelectMode=function(t){return d.createElement("select",{value:e.props.month,className:"react-datepicker__month-select",onChange:function(o){return e.onChange(parseInt(o.target.value))}},e.renderSelectOptions(t))},e.renderReadView=function(t,o){return d.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:e.toggleDropdown},d.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),d.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},o[e.props.month]))},e.renderDropdown=function(t){return d.createElement(Tg,ie({key:"dropdown"},e.props,{monthNames:t,onChange:e.onChange,onCancel:e.toggleDropdown}))},e.renderScrollMode=function(t){var o=e.state.dropdownVisible,a=[e.renderReadView(!o,t)];return o&&a.unshift(e.renderDropdown(t)),a},e.onChange=function(t){e.toggleDropdown(),t!==e.props.month&&e.props.onChange(t)},e.toggleDropdown=function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})},e}return r.prototype.render=function(){var e=this,t=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(a){return Hl(a,e.props.locale)}:function(a){return Pa(a,e.props.locale)}),o;switch(this.props.dropdownMode){case"scroll":o=this.renderScrollMode(t);break;case"select":o=this.renderSelectMode(t);break}return d.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},o)},r}(d.Component);function Ig(n,r){for(var e=[],t=$t(n),o=$t(r);!Lt(t,o);)e.push(pe(t)),t=et(t,1);return e}var Fg=function(n){$e(r,n);function r(e){var t=n.call(this,e)||this;return t.renderOptions=function(){return t.state.monthYearsList.map(function(o){var a=xa(o),i=ft(t.props.date,o)&&We(t.props.date,o);return d.createElement("div",{className:i?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:a,onClick:t.onChange.bind(t,a),"aria-selected":i?"true":void 0},i?d.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",we(o,t.props.dateFormat,t.props.locale))})},t.onChange=function(o){return t.props.onChange(o)},t.handleClickOutside=function(){t.props.onCancel()},t.state={monthYearsList:Ig(t.props.minDate,t.props.maxDate)},t}return r.prototype.render=function(){var e=Le({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return d.createElement("div",{className:e},this.renderOptions())},r}(d.Component),Lg=Hr(Fg),Ag=function(n){$e(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.state={dropdownVisible:!1},e.renderSelectOptions=function(){for(var t=$t(e.props.minDate),o=$t(e.props.maxDate),a=[];!Lt(t,o);){var i=xa(t);a.push(d.createElement("option",{key:i,value:i},we(t,e.props.dateFormat,e.props.locale))),t=et(t,1)}return a},e.onSelectChange=function(t){e.onChange(parseInt(t.target.value))},e.renderSelectMode=function(){return d.createElement("select",{value:xa($t(e.props.date)),className:"react-datepicker__month-year-select",onChange:e.onSelectChange},e.renderSelectOptions())},e.renderReadView=function(t){var o=we(e.props.date,e.props.dateFormat,e.props.locale);return d.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:e.toggleDropdown},d.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),d.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},o))},e.renderDropdown=function(){return d.createElement(Lg,ie({key:"dropdown"},e.props,{onChange:e.onChange,onCancel:e.toggleDropdown}))},e.renderScrollMode=function(){var t=e.state.dropdownVisible,o=[e.renderReadView(!t)];return t&&o.unshift(e.renderDropdown()),o},e.onChange=function(t){e.toggleDropdown();var o=pe(t);ft(e.props.date,o)&&We(e.props.date,o)||e.props.onChange(o)},e.toggleDropdown=function(){return e.setState({dropdownVisible:!e.state.dropdownVisible})},e}return r.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode();break}return d.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)},r}(d.Component),$g=function(n){$e(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.state={height:null},e.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var t,o,a;e.list&&(e.list.scrollTop=(a=e.centerLi&&r.calcCenterPosition(e.props.monthRef?e.props.monthRef.clientHeight-((o=(t=e.header)===null||t===void 0?void 0:t.clientHeight)!==null&&o!==void 0?o:0):e.list.clientHeight,e.centerLi))!==null&&a!==void 0?a:0)})},e.handleClick=function(t){var o,a;(e.props.minTime||e.props.maxTime)&&zl(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&Vl(t,e.props)||(a=(o=e.props).onChange)===null||a===void 0||a.call(o,t)},e.isSelectedTime=function(t){return e.props.selected&&Eg(e.props.selected,t)},e.isDisabledTime=function(t){return(e.props.minTime||e.props.maxTime)&&zl(t,e.props)||(e.props.excludeTimes||e.props.includeTimes||e.props.filterTime)&&Vl(t,e.props)},e.liClasses=function(t){var o,a=["react-datepicker__time-list-item",e.props.timeClassName?e.props.timeClassName(t):void 0];return e.isSelectedTime(t)&&a.push("react-datepicker__time-list-item--selected"),e.isDisabledTime(t)&&a.push("react-datepicker__time-list-item--disabled"),e.props.injectTimes&&(it(t)*3600+st(t)*60+Dt(t))%(((o=e.props.intervals)!==null&&o!==void 0?o:r.defaultProps.intervals)*60)!==0&&a.push("react-datepicker__time-list-item--injected"),a.join(" ")},e.handleOnKeyDown=function(t,o){var a,i;t.key===H.Space&&(t.preventDefault(),t.key=H.Enter),(t.key===H.ArrowUp||t.key===H.ArrowLeft)&&t.target instanceof HTMLElement&&t.target.previousSibling&&(t.preventDefault(),t.target.previousSibling instanceof HTMLElement&&t.target.previousSibling.focus()),(t.key===H.ArrowDown||t.key===H.ArrowRight)&&t.target instanceof HTMLElement&&t.target.nextSibling&&(t.preventDefault(),t.target.nextSibling instanceof HTMLElement&&t.target.nextSibling.focus()),t.key===H.Enter&&e.handleClick(o),(i=(a=e.props).handleOnKeyDown)===null||i===void 0||i.call(a,t)},e.renderTimes=function(){for(var t,o=[],a=e.props.format?e.props.format:"p",i=(t=e.props.intervals)!==null&&t!==void 0?t:r.defaultProps.intervals,s=e.props.selected||e.props.openToDate||pe(),l=ro(s),u=e.props.injectTimes&&e.props.injectTimes.sort(function(g,b){return g.getTime()-b.getTime()}),c=60*Dg(s),f=c/i,m=0;m<f;m++){var p=va(l,m*i);if(o.push(p),u){var h=xg(l,p,m,i,u);o=o.concat(h)}}var v=o.reduce(function(g,b){return b.getTime()<=s.getTime()?b:g},o[0]);return o.map(function(g){return d.createElement("li",{key:g.valueOf(),onClick:e.handleClick.bind(e,g),className:e.liClasses(g),ref:function(b){g===v&&(e.centerLi=b)},onKeyDown:function(b){e.handleOnKeyDown(b,g)},tabIndex:g===v?0:-1,role:"option","aria-selected":e.isSelectedTime(g)?"true":void 0,"aria-disabled":e.isDisabledTime(g)?"true":void 0},we(g,a,e.props.locale))})},e}return Object.defineProperty(r,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time"}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},r.prototype.render=function(){var e=this,t,o=this.state.height;return d.createElement("div",{className:"react-datepicker__time-container ".concat(((t=this.props.todayButton)!==null&&t!==void 0?t:r.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},d.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(a){e.header=a}},d.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),d.createElement("div",{className:"react-datepicker__time"},d.createElement("div",{className:"react-datepicker__time-box"},d.createElement("ul",{className:"react-datepicker__time-list",ref:function(a){e.list=a},style:o?{height:o}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},r.calcCenterPosition=function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)},r}(d.Component),au=3,Yg=function(n){$e(r,n);function r(e){var t=n.call(this,e)||this;return t.YEAR_REFS=dt([],Array(t.props.yearItemNumber),!0).map(function(){return d.createRef()}),t.isDisabled=function(o){return Yt(o,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.isExcluded=function(o){return Ma(o,{excludeDates:t.props.excludeDates})},t.selectingDate=function(){var o;return(o=t.props.selectingDate)!==null&&o!==void 0?o:t.props.preSelection},t.updateFocusOnPaginate=function(o){var a=function(){var i,s;(s=(i=t.YEAR_REFS[o])===null||i===void 0?void 0:i.current)===null||s===void 0||s.focus()};window.requestAnimationFrame(a)},t.handleYearClick=function(o,a){t.props.onDayClick&&t.props.onDayClick(o,a)},t.handleYearNavigation=function(o,a){var i,s,l,u,c=t.props,f=c.date,m=c.yearItemNumber;if(!(f===void 0||m===void 0)){var p=jt(f,m).startPeriod;t.isDisabled(a)||t.isExcluded(a)||((s=(i=t.props).setPreSelection)===null||s===void 0||s.call(i,a),o-p<0?t.updateFocusOnPaginate(m-(p-o)):o-p>=m?t.updateFocusOnPaginate(Math.abs(m-(o-p))):(u=(l=t.YEAR_REFS[o-p])===null||l===void 0?void 0:l.current)===null||u===void 0||u.focus())}},t.isSameDay=function(o,a){return re(o,a)},t.isCurrentYear=function(o){return o===Z(pe())},t.isRangeStart=function(o){return t.props.startDate&&t.props.endDate&&ft(ct(pe(),o),t.props.startDate)},t.isRangeEnd=function(o){return t.props.startDate&&t.props.endDate&&ft(ct(pe(),o),t.props.endDate)},t.isInRange=function(o){return io(o,t.props.startDate,t.props.endDate)},t.isInSelectingRange=function(o){var a=t.props,i=a.selectsStart,s=a.selectsEnd,l=a.selectsRange,u=a.startDate,c=a.endDate;return!(i||s||l)||!t.selectingDate()?!1:i&&c?io(o,t.selectingDate(),c):s&&u||l&&u&&!c?io(o,u,t.selectingDate()):!1},t.isSelectingRangeStart=function(o){var a;if(!t.isInSelectingRange(o))return!1;var i=t.props,s=i.startDate,l=i.selectsStart,u=ct(pe(),o);return l?ft(u,(a=t.selectingDate())!==null&&a!==void 0?a:null):ft(u,s??null)},t.isSelectingRangeEnd=function(o){var a;if(!t.isInSelectingRange(o))return!1;var i=t.props,s=i.endDate,l=i.selectsEnd,u=i.selectsRange,c=ct(pe(),o);return l||u?ft(c,(a=t.selectingDate())!==null&&a!==void 0?a:null):ft(c,s??null)},t.isKeyboardSelected=function(o){if(!(t.props.date===void 0||t.props.selected==null||t.props.preSelection==null)){var a=t.props,i=a.minDate,s=a.maxDate,l=a.excludeDates,u=a.includeDates,c=a.filterDate,f=nr(ct(t.props.date,o)),m=(i||s||l||u||c)&&Na(o,t.props);return!t.props.disabledKeyboardNavigation&&!t.props.inline&&!re(f,nr(t.props.selected))&&re(f,nr(t.props.preSelection))&&!m}},t.onYearClick=function(o,a){var i=t.props.date;i!==void 0&&t.handleYearClick(nr(ct(i,a)),o)},t.onYearKeyDown=function(o,a){var i,s,l=o.key,u=t.props,c=u.date,f=u.yearItemNumber,m=u.handleOnKeyDown;if(l!==H.Tab&&o.preventDefault(),!t.props.disabledKeyboardNavigation)switch(l){case H.Enter:if(t.props.selected==null)break;t.onYearClick(o,a),(s=(i=t.props).setPreSelection)===null||s===void 0||s.call(i,t.props.selected);break;case H.ArrowRight:if(t.props.preSelection==null)break;t.handleYearNavigation(a+1,yt(t.props.preSelection,1));break;case H.ArrowLeft:if(t.props.preSelection==null)break;t.handleYearNavigation(a-1,Dn(t.props.preSelection,1));break;case H.ArrowUp:{if(c===void 0||f===void 0||t.props.preSelection==null)break;var p=jt(c,f).startPeriod,h=au,v=a-h;if(v<p){var g=f%h;a>=p&&a<p+g?h=g:h+=g,v=a-h}t.handleYearNavigation(v,Dn(t.props.preSelection,h));break}case H.ArrowDown:{if(c===void 0||f===void 0||t.props.preSelection==null)break;var b=jt(c,f).endPeriod,h=au,v=a+h;if(v>b){var g=f%h;a<=b&&a>b-g?h=g:h+=g,v=a+h}t.handleYearNavigation(v,yt(t.props.preSelection,h));break}}m&&m(o)},t.getYearClassNames=function(o){var a=t.props,i=a.date,s=a.minDate,l=a.maxDate,u=a.selected,c=a.excludeDates,f=a.includeDates,m=a.filterDate,p=a.yearClassName;return Le("react-datepicker__year-text","react-datepicker__year-".concat(o),i?p==null?void 0:p(ct(i,o)):void 0,{"react-datepicker__year-text--selected":u?o===Z(u):void 0,"react-datepicker__year-text--disabled":(s||l||c||f||m)&&Na(o,t.props),"react-datepicker__year-text--keyboard-selected":t.isKeyboardSelected(o),"react-datepicker__year-text--range-start":t.isRangeStart(o),"react-datepicker__year-text--range-end":t.isRangeEnd(o),"react-datepicker__year-text--in-range":t.isInRange(o),"react-datepicker__year-text--in-selecting-range":t.isInSelectingRange(o),"react-datepicker__year-text--selecting-range-start":t.isSelectingRangeStart(o),"react-datepicker__year-text--selecting-range-end":t.isSelectingRangeEnd(o),"react-datepicker__year-text--today":t.isCurrentYear(o)})},t.getYearTabIndex=function(o){if(t.props.disabledKeyboardNavigation||t.props.preSelection==null)return"-1";var a=Z(t.props.preSelection);return o===a?"0":"-1"},t.getYearContainerClassNames=function(){var o=t.props,a=o.selectingDate,i=o.selectsStart,s=o.selectsEnd,l=o.selectsRange;return Le("react-datepicker__year",{"react-datepicker__year--selecting-range":a&&(i||s||l)})},t.getYearContent=function(o){return t.props.renderYearContent?t.props.renderYearContent(o):o},t}return r.prototype.render=function(){var e=this,t=[],o=this.props,a=o.date,i=o.yearItemNumber,s=o.onYearMouseEnter,l=o.onYearMouseLeave;if(a===void 0)return null;for(var u=jt(a,i),c=u.startPeriod,f=u.endPeriod,m=function(v){t.push(d.createElement("div",{ref:p.YEAR_REFS[v-c],onClick:function(g){e.onYearClick(g,v)},onKeyDown:function(g){ru(g)&&(g.preventDefault(),g.key=H.Enter),e.onYearKeyDown(g,v)},tabIndex:Number(p.getYearTabIndex(v)),className:p.getYearClassNames(v),onMouseEnter:p.props.usePointerEvent?void 0:function(g){return s(g,v)},onPointerEnter:p.props.usePointerEvent?function(g){return s(g,v)}:void 0,onMouseLeave:p.props.usePointerEvent?void 0:function(g){return l(g,v)},onPointerLeave:p.props.usePointerEvent?function(g){return l(g,v)}:void 0,key:v,"aria-current":p.isCurrentYear(v)?"date":void 0},p.getYearContent(v)))},p=this,h=c;h<=f;h++)m(h);return d.createElement("div",{className:this.getYearContainerClassNames()},d.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},t))},r}(d.Component);function jg(n,r,e,t){for(var o=[],a=0;a<2*r+1;a++){var i=n+r-a,s=!0;e&&(s=Z(e)<=i),t&&s&&(s=Z(t)>=i),s&&o.push(i)}return o}var Wg=function(n){$e(r,n);function r(e){var t=n.call(this,e)||this;t.renderOptions=function(){var s=t.props.year,l=t.state.yearsList.map(function(f){return d.createElement("div",{className:s===f?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:f,onClick:t.onChange.bind(t,f),"aria-selected":s===f?"true":void 0},s===f?d.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",f)}),u=t.props.minDate?Z(t.props.minDate):null,c=t.props.maxDate?Z(t.props.maxDate):null;return(!c||!t.state.yearsList.find(function(f){return f===c}))&&l.unshift(d.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:t.incrementYears},d.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!u||!t.state.yearsList.find(function(f){return f===u}))&&l.push(d.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:t.decrementYears},d.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),l},t.onChange=function(s){t.props.onChange(s)},t.handleClickOutside=function(){t.props.onCancel()},t.shiftYears=function(s){var l=t.state.yearsList.map(function(u){return u+s});t.setState({yearsList:l})},t.incrementYears=function(){return t.shiftYears(1)},t.decrementYears=function(){return t.shiftYears(-1)};var o=e.yearDropdownItemNumber,a=e.scrollableYearDropdown,i=o||(a?10:5);return t.state={yearsList:jg(t.props.year,i,t.props.minDate,t.props.maxDate)},t.dropdownRef=d.createRef(),t}return r.prototype.componentDidMount=function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,o=t?t.find(function(a){return a.ariaSelected}):null;e.scrollTop=o&&o instanceof HTMLElement?o.offsetTop+(o.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}},r.prototype.render=function(){var e=Le({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return d.createElement("div",{className:e,ref:this.dropdownRef},this.renderOptions())},r}(d.Component),Hg=Hr(Wg),Rg=function(n){$e(r,n);function r(){var e=n!==null&&n.apply(this,arguments)||this;return e.state={dropdownVisible:!1},e.renderSelectOptions=function(){for(var t=e.props.minDate?Z(e.props.minDate):1900,o=e.props.maxDate?Z(e.props.maxDate):2100,a=[],i=t;i<=o;i++)a.push(d.createElement("option",{key:i,value:i},i));return a},e.onSelectChange=function(t){e.onChange(parseInt(t.target.value))},e.renderSelectMode=function(){return d.createElement("select",{value:e.props.year,className:"react-datepicker__year-select",onChange:e.onSelectChange},e.renderSelectOptions())},e.renderReadView=function(t){return d.createElement("div",{key:"read",style:{visibility:t?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(o){return e.toggleDropdown(o)}},d.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),d.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},e.props.year))},e.renderDropdown=function(){return d.createElement(Hg,ie({key:"dropdown"},e.props,{onChange:e.onChange,onCancel:e.toggleDropdown}))},e.renderScrollMode=function(){var t=e.state.dropdownVisible,o=[e.renderReadView(!t)];return t&&o.unshift(e.renderDropdown()),o},e.onChange=function(t){e.toggleDropdown(),t!==e.props.year&&e.props.onChange(t)},e.toggleDropdown=function(t){e.setState({dropdownVisible:!e.state.dropdownVisible},function(){e.props.adjustDateOnChange&&e.handleYearChange(e.props.date,t)})},e.handleYearChange=function(t,o){e.onSelect(t,o),e.setOpen()},e.onSelect=function(t,o){e.props.onSelect&&e.props.onSelect(t,o)},e.setOpen=function(){e.props.setOpen&&e.props.setOpen(!0)},e}return r.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode();break}return d.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)},r}(d.Component),Bg=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Vg=function(n){var r=(n.className||"").split(/\s+/);return Bg.some(function(e){return r.indexOf(e)>=0})},zg=function(n){$e(r,n);function r(e){var t=n.call(this,e)||this;return t.monthContainer=void 0,t.handleClickOutside=function(o){t.props.onClickOutside(o)},t.setClickOutsideRef=function(){return t.containerRef.current},t.handleDropdownFocus=function(o){var a,i;Vg(o.target)&&((i=(a=t.props).onDropdownFocus)===null||i===void 0||i.call(a,o))},t.getDateInView=function(){var o=t.props,a=o.preSelection,i=o.selected,s=o.openToDate,l=Gl(t.props),u=Xl(t.props),c=pe(),f=s||i||a;return f||(l&&en(c,l)?l:u&&Lt(c,u)?u:c)},t.increaseMonth=function(){t.setState(function(o){var a=o.date;return{date:et(a,1)}},function(){return t.handleMonthChange(t.state.date)})},t.decreaseMonth=function(){t.setState(function(o){var a=o.date;return{date:xn(a,1)}},function(){return t.handleMonthChange(t.state.date)})},t.handleDayClick=function(o,a,i){t.props.onSelect(o,a,i),t.props.setPreSelection&&t.props.setPreSelection(o)},t.handleDayMouseEnter=function(o){t.setState({selectingDate:o}),t.props.onDayMouseEnter&&t.props.onDayMouseEnter(o)},t.handleMonthMouseLeave=function(){t.setState({selectingDate:void 0}),t.props.onMonthMouseLeave&&t.props.onMonthMouseLeave()},t.handleYearMouseEnter=function(o,a){t.setState({selectingDate:ct(pe(),a)}),t.props.onYearMouseEnter&&t.props.onYearMouseEnter(o,a)},t.handleYearMouseLeave=function(o,a){t.props.onYearMouseLeave&&t.props.onYearMouseLeave(o,a)},t.handleYearChange=function(o){t.props.onYearChange&&(t.props.onYearChange(o),t.setState({isRenderAriaLiveMessage:!0})),t.props.adjustDateOnChange&&(t.props.onSelect&&t.props.onSelect(o),t.props.setOpen&&t.props.setOpen(!0)),t.props.setPreSelection&&t.props.setPreSelection(o)},t.handleMonthChange=function(o){t.handleCustomMonthChange(o),t.props.adjustDateOnChange&&(t.props.onSelect&&t.props.onSelect(o),t.props.setOpen&&t.props.setOpen(!0)),t.props.setPreSelection&&t.props.setPreSelection(o)},t.handleCustomMonthChange=function(o){t.props.onMonthChange&&(t.props.onMonthChange(o),t.setState({isRenderAriaLiveMessage:!0}))},t.handleMonthYearChange=function(o){t.handleYearChange(o),t.handleMonthChange(o)},t.changeYear=function(o){t.setState(function(a){var i=a.date;return{date:ct(i,Number(o))}},function(){return t.handleYearChange(t.state.date)})},t.changeMonth=function(o){t.setState(function(a){var i=a.date;return{date:Ue(i,Number(o))}},function(){return t.handleMonthChange(t.state.date)})},t.changeMonthYear=function(o){t.setState(function(a){var i=a.date;return{date:ct(Ue(i,je(o)),Z(o))}},function(){return t.handleMonthYearChange(t.state.date)})},t.header=function(o){o===void 0&&(o=t.state.date);var a=At(o,t.props.locale,t.props.calendarStartDay),i=[];return t.props.showWeekNumbers&&i.push(d.createElement("div",{key:"W",className:"react-datepicker__day-name"},t.props.weekLabel||"#")),i.concat([0,1,2,3,4,5,6].map(function(s){var l=It(a,s),u=t.formatWeekday(l,t.props.locale),c=t.props.weekDayClassName?t.props.weekDayClassName(l):void 0;return d.createElement("div",{key:s,"aria-label":we(l,"EEEE",t.props.locale),className:Le("react-datepicker__day-name",c)},u)}))},t.formatWeekday=function(o,a){return t.props.formatWeekDay?cg(o,t.props.formatWeekDay,a):t.props.useWeekdaysShort?fg(o,a):dg(o,a)},t.decreaseYear=function(){t.setState(function(o){var a,i=o.date;return{date:Dn(i,t.props.showYearPicker?(a=t.props.yearItemNumber)!==null&&a!==void 0?a:r.defaultProps.yearItemNumber:1)}},function(){return t.handleYearChange(t.state.date)})},t.clearSelectingDate=function(){t.setState({selectingDate:void 0})},t.renderPreviousButton=function(){var o;if(!t.props.renderCustomHeader){var a;switch(!0){case t.props.showMonthYearPicker:a=Kl(t.state.date,t.props);break;case t.props.showYearPicker:a=gg(t.state.date,t.props);break;case t.props.showQuarterYearPicker:a=mg(t.state.date,t.props);break;default:a=Ql(t.state.date,t.props);break}if(!(!((o=t.props.forceShowMonthNavigation)!==null&&o!==void 0?o:r.defaultProps.forceShowMonthNavigation)&&!t.props.showDisabledMonthNavigation&&a||t.props.showTimeSelectOnly)){var i=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],s=["react-datepicker__navigation","react-datepicker__navigation--previous"],l=t.decreaseMonth;(t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker)&&(l=t.decreaseYear),a&&t.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--previous--disabled"),l=void 0);var u=t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker,c=t.props,f=c.previousMonthButtonLabel,m=f===void 0?r.defaultProps.previousMonthButtonLabel:f,p=c.previousYearButtonLabel,h=p===void 0?r.defaultProps.previousYearButtonLabel:p,v=t.props,g=v.previousMonthAriaLabel,b=g===void 0?typeof m=="string"?m:"Previous Month":g,w=v.previousYearAriaLabel,x=w===void 0?typeof h=="string"?h:"Previous Year":w;return d.createElement("button",{type:"button",className:s.join(" "),onClick:l,onKeyDown:t.props.handleOnKeyDown,"aria-label":u?x:b},d.createElement("span",{className:i.join(" ")},u?h:m))}}},t.increaseYear=function(){t.setState(function(o){var a,i=o.date;return{date:yt(i,t.props.showYearPicker?(a=t.props.yearItemNumber)!==null&&a!==void 0?a:r.defaultProps.yearItemNumber:1)}},function(){return t.handleYearChange(t.state.date)})},t.renderNextButton=function(){var o;if(!t.props.renderCustomHeader){var a;switch(!0){case t.props.showMonthYearPicker:a=ql(t.state.date,t.props);break;case t.props.showYearPicker:a=bg(t.state.date,t.props);break;case t.props.showQuarterYearPicker:a=vg(t.state.date,t.props);break;default:a=Ul(t.state.date,t.props);break}if(!(!((o=t.props.forceShowMonthNavigation)!==null&&o!==void 0?o:r.defaultProps.forceShowMonthNavigation)&&!t.props.showDisabledMonthNavigation&&a||t.props.showTimeSelectOnly)){var i=["react-datepicker__navigation","react-datepicker__navigation--next"],s=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];t.props.showTimeSelect&&i.push("react-datepicker__navigation--next--with-time"),t.props.todayButton&&i.push("react-datepicker__navigation--next--with-today-button");var l=t.increaseMonth;(t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker)&&(l=t.increaseYear),a&&t.props.showDisabledMonthNavigation&&(i.push("react-datepicker__navigation--next--disabled"),l=void 0);var u=t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker,c=t.props,f=c.nextMonthButtonLabel,m=f===void 0?r.defaultProps.nextMonthButtonLabel:f,p=c.nextYearButtonLabel,h=p===void 0?r.defaultProps.nextYearButtonLabel:p,v=t.props,g=v.nextMonthAriaLabel,b=g===void 0?typeof m=="string"?m:"Next Month":g,w=v.nextYearAriaLabel,x=w===void 0?typeof h=="string"?h:"Next Year":w;return d.createElement("button",{type:"button",className:i.join(" "),onClick:l,onKeyDown:t.props.handleOnKeyDown,"aria-label":u?x:b},d.createElement("span",{className:s.join(" ")},u?h:m))}}},t.renderCurrentMonth=function(o){o===void 0&&(o=t.state.date);var a=["react-datepicker__current-month"];return t.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),t.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),t.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),d.createElement("h2",{className:a.join(" ")},we(o,t.props.dateFormat,t.props.locale))},t.renderYearDropdown=function(o){if(o===void 0&&(o=!1),!(!t.props.showYearDropdown||o))return d.createElement(Rg,ie({},r.defaultProps,t.props,{date:t.state.date,onChange:t.changeYear,year:Z(t.state.date)}))},t.renderMonthDropdown=function(o){if(o===void 0&&(o=!1),!(!t.props.showMonthDropdown||o))return d.createElement(Ng,ie({},r.defaultProps,t.props,{month:je(t.state.date),onChange:t.changeMonth}))},t.renderMonthYearDropdown=function(o){if(o===void 0&&(o=!1),!(!t.props.showMonthYearDropdown||o))return d.createElement(Ag,ie({},r.defaultProps,t.props,{date:t.state.date,onChange:t.changeMonthYear}))},t.handleTodayButtonClick=function(o){t.props.onSelect(jl(),o),t.props.setPreSelection&&t.props.setPreSelection(jl())},t.renderTodayButton=function(){if(!(!t.props.todayButton||t.props.showTimeSelectOnly))return d.createElement("div",{className:"react-datepicker__today-button",onClick:t.handleTodayButtonClick},t.props.todayButton)},t.renderDefaultHeader=function(o){var a=o.monthDate,i=o.i;return d.createElement("div",{className:"react-datepicker__header ".concat(t.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},t.renderCurrentMonth(a),d.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(t.props.dropdownMode),onFocus:t.handleDropdownFocus},t.renderMonthDropdown(i!==0),t.renderMonthYearDropdown(i!==0),t.renderYearDropdown(i!==0)),d.createElement("div",{className:"react-datepicker__day-names"},t.header(a)))},t.renderCustomHeader=function(o){var a,i,s=o.monthDate,l=o.i;if(t.props.showTimeSelect&&!t.state.monthContainer||t.props.showTimeSelectOnly)return null;var u=Ql(t.state.date,t.props),c=Ul(t.state.date,t.props),f=Kl(t.state.date,t.props),m=ql(t.state.date,t.props),p=!t.props.showMonthYearPicker&&!t.props.showQuarterYearPicker&&!t.props.showYearPicker;return d.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:t.props.onDropdownFocus},(i=(a=t.props).renderCustomHeader)===null||i===void 0?void 0:i.call(a,ie(ie({},t.state),{customHeaderCount:l,monthDate:s,changeMonth:t.changeMonth,changeYear:t.changeYear,decreaseMonth:t.decreaseMonth,increaseMonth:t.increaseMonth,decreaseYear:t.decreaseYear,increaseYear:t.increaseYear,prevMonthButtonDisabled:u,nextMonthButtonDisabled:c,prevYearButtonDisabled:f,nextYearButtonDisabled:m})),p&&d.createElement("div",{className:"react-datepicker__day-names"},t.header(s)))},t.renderYearHeader=function(o){var a=o.monthDate,i=t.props,s=i.showYearPicker,l=i.yearItemNumber,u=l===void 0?r.defaultProps.yearItemNumber:l,c=jt(a,u),f=c.startPeriod,m=c.endPeriod;return d.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(f," - ").concat(m):Z(a))},t.renderHeader=function(o){var a=o.monthDate,i=o.i,s=i===void 0?0:i,l={monthDate:a,i:s};switch(!0){case t.props.renderCustomHeader!==void 0:return t.renderCustomHeader(l);case(t.props.showMonthYearPicker||t.props.showQuarterYearPicker||t.props.showYearPicker):return t.renderYearHeader(l);default:return t.renderDefaultHeader(l)}},t.renderMonths=function(){var o,a;if(!(t.props.showTimeSelectOnly||t.props.showYearPicker)){for(var i=[],s=(o=t.props.monthsShown)!==null&&o!==void 0?o:r.defaultProps.monthsShown,l=t.props.showPreviousMonths?s-1:0,u=t.props.showMonthYearPicker||t.props.showQuarterYearPicker?yt(t.state.date,l):xn(t.state.date,l),c=(a=t.props.monthSelectedIn)!==null&&a!==void 0?a:l,f=0;f<s;++f){var m=f-c+l,p=t.props.showMonthYearPicker||t.props.showQuarterYearPicker?yt(u,m):et(u,m),h="month-".concat(f),v=f<s-1,g=f>0;i.push(d.createElement("div",{key:h,ref:function(b){t.monthContainer=b??void 0},className:"react-datepicker__month-container"},t.renderHeader({monthDate:p,i:f}),d.createElement(Pg,ie({},r.defaultProps,t.props,{ariaLabelPrefix:t.props.monthAriaLabelPrefix,day:p,onDayClick:t.handleDayClick,handleOnKeyDown:t.props.handleOnDayKeyDown,handleOnMonthKeyDown:t.props.handleOnKeyDown,onDayMouseEnter:t.handleDayMouseEnter,onMouseLeave:t.handleMonthMouseLeave,orderInDisplay:f,selectingDate:t.state.selectingDate,monthShowsDuplicateDaysEnd:v,monthShowsDuplicateDaysStart:g}))))}return i}},t.renderYears=function(){if(!t.props.showTimeSelectOnly&&t.props.showYearPicker)return d.createElement("div",{className:"react-datepicker__year--container"},t.renderHeader({monthDate:t.state.date}),d.createElement(Yg,ie({},r.defaultProps,t.props,{selectingDate:t.state.selectingDate,date:t.state.date,onDayClick:t.handleDayClick,clearSelectingDate:t.clearSelectingDate,onYearMouseEnter:t.handleYearMouseEnter,onYearMouseLeave:t.handleYearMouseLeave})))},t.renderTimeSection=function(){if(t.props.showTimeSelect&&(t.state.monthContainer||t.props.showTimeSelectOnly))return d.createElement($g,ie({},r.defaultProps,t.props,{onChange:t.props.onTimeChange,format:t.props.timeFormat,intervals:t.props.timeIntervals,monthRef:t.state.monthContainer}))},t.renderInputTimeSection=function(){var o=t.props.selected?new Date(t.props.selected):void 0,a=o&&Et(o)&&!!t.props.selected,i=a?"".concat(Zl(o.getHours()),":").concat(Zl(o.getMinutes())):"";if(t.props.showTimeInput)return d.createElement(Cg,ie({},r.defaultProps,t.props,{date:o,timeString:i,onChange:t.props.onTimeChange}))},t.renderAriaLiveRegion=function(){var o,a=jt(t.state.date,(o=t.props.yearItemNumber)!==null&&o!==void 0?o:r.defaultProps.yearItemNumber),i=a.startPeriod,s=a.endPeriod,l;return t.props.showYearPicker?l="".concat(i," - ").concat(s):t.props.showMonthYearPicker||t.props.showQuarterYearPicker?l=Z(t.state.date):l="".concat(Pa(je(t.state.date),t.props.locale)," ").concat(Z(t.state.date)),d.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},t.state.isRenderAriaLiveMessage&&l)},t.renderChildren=function(){if(t.props.children)return d.createElement("div",{className:"react-datepicker__children-container"},t.props.children)},t.containerRef=d.createRef(),t.state={date:t.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},t}return Object.defineProperty(r,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:tr}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=function(){e.setState({monthContainer:e.monthContainer})}())},r.prototype.componentDidUpdate=function(e){var t=this;if(this.props.preSelection&&(!re(this.props.preSelection,e.preSelection)||this.props.monthSelectedIn!==e.monthSelectedIn)){var o=!We(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return o&&t.handleCustomMonthChange(t.state.date)})}else this.props.openToDate&&!re(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate})},r.prototype.render=function(){var e=this.props.container||ng;return d.createElement("div",{style:{display:"contents"},ref:this.containerRef},d.createElement(e,{className:Le("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))},r}(d.Component),Qg=function(n){var r=n.icon,e=n.className,t=e===void 0?"":e,o=n.onClick,a="react-datepicker__calendar-icon";return typeof r=="string"?d.createElement("i",{className:"".concat(a," ").concat(r," ").concat(t),"aria-hidden":"true",onClick:o}):d.isValidElement(r)?d.cloneElement(r,{className:"".concat(r.props.className||""," ").concat(a," ").concat(t),onClick:function(i){typeof r.props.onClick=="function"&&r.props.onClick(i),typeof o=="function"&&o(i)}}):d.createElement("svg",{className:"".concat(a," ").concat(t),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},d.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},iu=function(n){$e(r,n);function r(e){var t=n.call(this,e)||this;return t.portalRoot=null,t.el=document.createElement("div"),t}return r.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},r.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},r.prototype.render=function(){return xe.createPortal(this.props.children,this.el)},r}(d.Component),Ug="[tabindex], a, button, input, select, textarea",Kg=function(n){return(n instanceof HTMLAnchorElement||!n.disabled)&&n.tabIndex!==-1},su=function(n){$e(r,n);function r(e){var t=n.call(this,e)||this;return t.getTabChildren=function(){var o;return Array.prototype.slice.call((o=t.tabLoopRef.current)===null||o===void 0?void 0:o.querySelectorAll(Ug),1,-1).filter(Kg)},t.handleFocusStart=function(){var o=t.getTabChildren();o&&o.length>1&&o[o.length-1].focus()},t.handleFocusEnd=function(){var o=t.getTabChildren();o&&o.length>1&&o[0].focus()},t.tabLoopRef=d.createRef(),t}return r.prototype.render=function(){var e;return((e=this.props.enableTabLoop)!==null&&e!==void 0?e:r.defaultProps.enableTabLoop)?d.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},d.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,d.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},r.defaultProps={enableTabLoop:!0},r}(d.Component);function qg(n){var r=function(e){var t,o=typeof e.hidePopper=="boolean"?e.hidePopper:!0,a=d.useRef(null),i=bs(ie({open:!o,whileElementsMounted:is,placement:e.popperPlacement,middleware:dt([ds({padding:15}),qo(10),wf({element:a})],(t=e.popperModifiers)!==null&&t!==void 0?t:[],!0)},e.popperProps)),s=ie(ie({},e),{hidePopper:o,popperProps:ie(ie({},i),{arrowRef:a})});return d.createElement(n,ie({},s))};return r}var Gg=function(n){$e(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return Object.defineProperty(r,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),r.prototype.render=function(){var e=this.props,t=e.className,o=e.wrapperClassName,a=e.hidePopper,i=a===void 0?r.defaultProps.hidePopper:a,s=e.popperComponent,l=e.targetComponent,u=e.enableTabLoop,c=e.popperOnKeyDown,f=e.portalId,m=e.portalHost,p=e.popperProps,h=e.showArrow,v=void 0;if(!i){var g=Le("react-datepicker-popper",t);v=d.createElement(su,{enableTabLoop:u},d.createElement("div",{ref:p.refs.setFloating,style:p.floatingStyles,className:g,"data-placement":p.placement,onKeyDown:c},s,h&&d.createElement(kf,{ref:p.arrowRef,context:p.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(v=d.createElement(this.props.popperContainer,{},v)),f&&!i&&(v=d.createElement(iu,{portalId:f,portalHost:m},v));var b=Le("react-datepicker-wrapper",o);return d.createElement(d.Fragment,null,d.createElement("div",{ref:p.refs.setReference,className:b},l),v)},r}(d.Component),Xg=qg(Gg),lu="react-datepicker-ignore-onclickoutside",Jg=Hr(zg);function Zg(n,r){return n&&r?je(n)!==je(r)||Z(n)!==Z(r):n!==r}var Fa="Date input not valid.",eb=function(n){$e(r,n);function r(e){var t=n.call(this,e)||this;return t.calendar=null,t.input=null,t.getPreSelection=function(){return t.props.openToDate?t.props.openToDate:t.props.selectsEnd&&t.props.startDate?t.props.startDate:t.props.selectsStart&&t.props.endDate?t.props.endDate:pe()},t.modifyHolidays=function(){var o;return(o=t.props.holidays)===null||o===void 0?void 0:o.reduce(function(a,i){var s=new Date(i.date);return Et(s)?dt(dt([],a,!0),[ie(ie({},i),{date:s})],!1):a},[])},t.calcInitialState=function(){var o,a=t.getPreSelection(),i=Gl(t.props),s=Xl(t.props),l=i&&en(a,ro(i))?i:s&&Lt(a,Wl(s))?s:a;return{open:t.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(o=t.props.selectsRange?t.props.startDate:t.props.selected)!==null&&o!==void 0?o:l,highlightDates:Jl(t.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},t.resetHiddenStatus=function(){t.setState(ie(ie({},t.state),{wasHidden:!1}))},t.setHiddenStatus=function(){t.setState(ie(ie({},t.state),{wasHidden:!0}))},t.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&t.setHiddenStatus()},t.clearPreventFocusTimeout=function(){t.preventFocusTimeout&&clearTimeout(t.preventFocusTimeout)},t.setFocus=function(){t.input&&t.input.focus&&t.input.focus({preventScroll:!0})},t.setBlur=function(){t.input&&t.input.blur&&t.input.blur(),t.cancelFocusInput()},t.setOpen=function(o,a){a===void 0&&(a=!1),t.setState({open:o,preSelection:o&&t.state.open?t.state.preSelection:t.calcInitialState().preSelection,lastPreSelectChange:La},function(){o||t.setState(function(i){return{focused:a?i.focused:!1}},function(){!a&&t.setBlur(),t.setState({inputValue:null})})})},t.inputOk=function(){return xt(t.state.preSelection)},t.isCalendarOpen=function(){return t.props.open===void 0?t.state.open&&!t.props.disabled&&!t.props.readOnly:t.props.open},t.handleFocus=function(o){var a,i,s=t.state.wasHidden,l=s?t.state.open:!0;s&&t.resetHiddenStatus(),!t.state.preventFocus&&l&&((i=(a=t.props).onFocus)===null||i===void 0||i.call(a,o),!t.props.preventOpenOnFocus&&!t.props.readOnly&&t.setOpen(!0)),t.setState({focused:!0})},t.sendFocusBackToInput=function(){t.preventFocusTimeout&&t.clearPreventFocusTimeout(),t.setState({preventFocus:!0},function(){t.preventFocusTimeout=setTimeout(function(){t.setFocus(),t.setState({preventFocus:!1})})})},t.cancelFocusInput=function(){clearTimeout(t.inputFocusTimeout),t.inputFocusTimeout=void 0},t.deferFocusInput=function(){t.cancelFocusInput(),t.inputFocusTimeout=setTimeout(function(){return t.setFocus()},1)},t.handleDropdownFocus=function(){t.cancelFocusInput()},t.handleBlur=function(o){var a,i;(!t.state.open||t.props.withPortal||t.props.showTimeInput)&&((i=(a=t.props).onBlur)===null||i===void 0||i.call(a,o)),t.setState({focused:!1})},t.handleCalendarClickOutside=function(o){var a,i;t.props.inline||t.setOpen(!1),(i=(a=t.props).onClickOutside)===null||i===void 0||i.call(a,o),t.props.withPortal&&o.preventDefault()},t.handleChange=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var i=o[0];if(!(t.props.onChangeRaw&&(t.props.onChangeRaw.apply(t,o),!i||typeof i.isDefaultPrevented!="function"||i.isDefaultPrevented()))){t.setState({inputValue:(i==null?void 0:i.target)instanceof HTMLInputElement?i.target.value:null,lastPreSelectChange:tb});var s=t.props,l=s.dateFormat,u=l===void 0?r.defaultProps.dateFormat:l,c=s.strictParsing,f=c===void 0?r.defaultProps.strictParsing:c,m=og((i==null?void 0:i.target)instanceof HTMLInputElement?i.target.value:"",u,t.props.locale,f,t.props.minDate);t.props.showTimeSelectOnly&&t.props.selected&&m&&!re(m,t.props.selected)&&(m=eg(t.props.selected,{hours:it(m),minutes:st(m),seconds:Dt(m)})),(m||!((i==null?void 0:i.target)instanceof HTMLInputElement)||!(i!=null&&i.target.value))&&t.setSelected(m,i,!0)}},t.handleSelect=function(o,a,i){if(t.props.shouldCloseOnSelect&&!t.props.showTimeSelect&&t.sendFocusBackToInput(),t.props.onChangeRaw&&t.props.onChangeRaw(a),t.setSelected(o,a,!1,i),t.props.showDateSelect&&t.setState({isRenderAriaLiveMessage:!0}),!t.props.shouldCloseOnSelect||t.props.showTimeSelect)t.setPreSelection(o);else if(!t.props.inline){t.props.selectsRange||t.setOpen(!1);var s=t.props,l=s.startDate,u=s.endDate;l&&!u&&(t.props.swapRange||!nu(o,l))&&t.setOpen(!1)}},t.setSelected=function(o,a,i,s){var l,u=o;if(t.props.showYearPicker){if(u!==null&&Na(Z(u),t.props))return}else if(t.props.showMonthYearPicker){if(u!==null&&Rl(u,t.props))return}else if(u!==null&&Yt(u,t.props))return;var c=t.props,f=c.onChange,m=c.selectsRange,p=c.startDate,h=c.endDate,v=c.selectsMultiple,g=c.selectedDates,b=c.minTime,w=c.swapRange;if(!tn(t.props.selected,u)||t.props.allowSameDay||m||v)if(u!==null&&(t.props.selected&&(!i||!t.props.showTimeSelect&&!t.props.showTimeSelectOnly&&!t.props.showTimeInput)&&(u=Oa(u,{hour:it(t.props.selected),minute:st(t.props.selected),second:Dt(t.props.selected)})),!i&&(t.props.showTimeSelect||t.props.showTimeSelectOnly)&&b&&(u=Oa(u,{hour:b.getHours(),minute:b.getMinutes(),second:b.getSeconds()})),t.props.inline||t.setState({preSelection:u}),t.props.focusSelectedMonth||t.setState({monthSelectedIn:s})),m){var x=!p&&!h,k=p&&!h,P=p&&h;x?f?f([u,null],a):r.defaultProps.onChange:k&&(u===null?f?f([null,null],a):r.defaultProps.onChange:nu(u,p)?w?f?f([u,p],a):r.defaultProps.onChange:f?f([u,null],a):r.defaultProps.onChange:f?f([p,u],a):r.defaultProps.onChange),P&&(f?f([u,null],a):r.defaultProps.onChange)}else if(v){if(u!==null)if(!(g!=null&&g.length))f?f([u],a):r.defaultProps.onChange;else{var M=g.some(function(I){return re(I,u)});if(M){var S=g.filter(function(I){return!re(I,u)});f?f(S,a):r.defaultProps.onChange}else f?f(dt(dt([],g,!0),[u],!1),a):r.defaultProps.onChange}}else f?f(u,a):r.defaultProps.onChange;if(!i){var O=(l=t.props.onSelect)!==null&&l!==void 0?l:r.defaultProps.onSelect;O(u,a),t.setState({inputValue:null})}},t.setPreSelection=function(o){var a=xt(t.props.minDate),i=xt(t.props.maxDate),s=!0;if(o){var l=ro(o);if(a&&i)s=rr(o,t.props.minDate,t.props.maxDate);else if(a){var u=ro(t.props.minDate);s=Lt(o,u)||tn(l,u)}else if(i){var c=Wl(t.props.maxDate);s=en(o,c)||tn(l,c)}}s&&t.setState({preSelection:o})},t.toggleCalendar=function(){t.setOpen(!t.state.open)},t.handleTimeChange=function(o){var a;if(!(t.props.selectsRange||t.props.selectsMultiple)){var i=t.props.selected?t.props.selected:t.getPreSelection(),s=t.props.selected?o:Oa(i,{hour:it(o),minute:st(o)});t.setState({preSelection:s});var l=(a=t.props.onChange)!==null&&a!==void 0?a:r.defaultProps.onChange;l(s),t.props.shouldCloseOnSelect&&!t.props.showTimeInput&&(t.sendFocusBackToInput(),t.setOpen(!1)),t.props.showTimeInput&&t.setOpen(!0),(t.props.showTimeSelectOnly||t.props.showTimeSelect)&&t.setState({isRenderAriaLiveMessage:!0}),t.setState({inputValue:null})}},t.onInputClick=function(){var o,a;!t.props.disabled&&!t.props.readOnly&&t.setOpen(!0),(a=(o=t.props).onInputClick)===null||a===void 0||a.call(o)},t.onInputKeyDown=function(o){var a,i,s,l,u;(i=(a=t.props).onKeyDown)===null||i===void 0||i.call(a,o);var c=o.key;if(!t.state.open&&!t.props.inline&&!t.props.preventOpenOnFocus){(c===H.ArrowDown||c===H.ArrowUp||c===H.Enter)&&t.onInputClick();return}if(t.state.open){if(c===H.ArrowDown||c===H.ArrowUp){o.preventDefault();var f=t.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":t.props.showWeekPicker&&t.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':t.props.showFullMonthYearPicker||t.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',m=((s=t.calendar)===null||s===void 0?void 0:s.componentNode)instanceof Element&&t.calendar.componentNode.querySelector(f);m instanceof HTMLElement&&m.focus({preventScroll:!0});return}var p=pe(t.state.preSelection);c===H.Enter?(o.preventDefault(),t.inputOk()&&t.state.lastPreSelectChange===La?(t.handleSelect(p,o),!t.props.shouldCloseOnSelect&&t.setPreSelection(p)):t.setOpen(!1)):c===H.Escape?(o.preventDefault(),t.sendFocusBackToInput(),t.setOpen(!1)):c===H.Tab&&t.setOpen(!1),t.inputOk()||(u=(l=t.props).onInputError)===null||u===void 0||u.call(l,{code:1,msg:Fa})}},t.onPortalKeyDown=function(o){var a=o.key;a===H.Escape&&(o.preventDefault(),t.setState({preventFocus:!0},function(){t.setOpen(!1),setTimeout(function(){t.setFocus(),t.setState({preventFocus:!1})})}))},t.onDayKeyDown=function(o){var a,i,s,l,u=t.props,c=u.minDate,f=u.maxDate,m=u.disabledKeyboardNavigation,p=u.showWeekPicker,h=u.shouldCloseOnSelect,v=u.locale,g=u.calendarStartDay,b=u.adjustDateOnChange,w=u.inline;if((i=(a=t.props).onKeyDown)===null||i===void 0||i.call(a,o),!m){var x=o.key,k=o.shiftKey,P=pe(t.state.preSelection),M=function(_,D){var N=D;switch(_){case H.ArrowRight:N=p?Vr(D,1):It(D,1);break;case H.ArrowLeft:N=p?Al(D,1):tg(D,1);break;case H.ArrowUp:N=Al(D,1);break;case H.ArrowDown:N=Vr(D,1);break;case H.PageUp:N=k?Dn(D,1):xn(D,1);break;case H.PageDown:N=k?yt(D,1):et(D,1);break;case H.Home:N=At(D,v,g);break;case H.End:N=ug(D);break}return N},S=function(_,D){for(var N=40,A=_,$=!1,U=0,j=M(_,D);!$;){if(U>=N){j=D;break}c&&j<c&&(A=H.ArrowRight,j=Yt(c,t.props)?M(A,j):c),f&&j>f&&(A=H.ArrowLeft,j=Yt(f,t.props)?M(A,j):f),Yt(j,t.props)?((A===H.PageUp||A===H.Home)&&(A=H.ArrowRight),(A===H.PageDown||A===H.End)&&(A=H.ArrowLeft),j=M(A,j)):$=!0,U++}return j};if(x===H.Enter){o.preventDefault(),t.handleSelect(P,o),!h&&t.setPreSelection(P);return}else if(x===H.Escape){o.preventDefault(),t.setOpen(!1),t.inputOk()||(l=(s=t.props).onInputError)===null||l===void 0||l.call(s,{code:1,msg:Fa});return}var O=null;switch(x){case H.ArrowLeft:case H.ArrowRight:case H.ArrowUp:case H.ArrowDown:case H.PageUp:case H.PageDown:case H.Home:case H.End:O=S(x,P);break}if(!O){t.props.onInputError&&t.props.onInputError({code:1,msg:Fa});return}if(o.preventDefault(),t.setState({lastPreSelectChange:La}),b&&t.setSelected(O),t.setPreSelection(O),w){var I=je(P),W=je(O),E=Z(P),C=Z(O);I!==W||E!==C?t.setState({shouldFocusDayInline:!0}):t.setState({shouldFocusDayInline:!1})}}},t.onPopperKeyDown=function(o){var a=o.key;a===H.Escape&&(o.preventDefault(),t.sendFocusBackToInput())},t.onClearClick=function(o){o&&o.preventDefault&&o.preventDefault(),t.sendFocusBackToInput();var a=t.props,i=a.selectsRange,s=a.onChange;i?s?s([null,null],o):r.defaultProps.onChange():s?s(null,o):r.defaultProps.onChange(),t.setState({inputValue:null})},t.clear=function(){t.onClearClick()},t.onScroll=function(o){typeof t.props.closeOnScroll=="boolean"&&t.props.closeOnScroll?(o.target===document||o.target===document.documentElement||o.target===document.body)&&t.setOpen(!1):typeof t.props.closeOnScroll=="function"&&t.props.closeOnScroll(o)&&t.setOpen(!1)},t.renderCalendar=function(){var o,a;return!t.props.inline&&!t.isCalendarOpen()?null:d.createElement(Jg,ie({ref:function(i){t.calendar=i}},t.props,t.state,{setOpen:t.setOpen,dateFormat:(o=t.props.dateFormatCalendar)!==null&&o!==void 0?o:r.defaultProps.dateFormatCalendar,onSelect:t.handleSelect,onClickOutside:t.handleCalendarClickOutside,holidays:wg(t.modifyHolidays()),outsideClickIgnoreClass:lu,onDropdownFocus:t.handleDropdownFocus,onTimeChange:t.handleTimeChange,className:t.props.calendarClassName,container:t.props.calendarContainer,handleOnKeyDown:t.props.onKeyDown,handleOnDayKeyDown:t.onDayKeyDown,setPreSelection:t.setPreSelection,dropdownMode:(a=t.props.dropdownMode)!==null&&a!==void 0?a:r.defaultProps.dropdownMode}),t.props.children)},t.renderAriaLiveRegion=function(){var o=t.props,a=o.dateFormat,i=a===void 0?r.defaultProps.dateFormat:a,s=o.locale,l=t.props.showTimeInput||t.props.showTimeSelect,u=l?"PPPPp":"PPPP",c;return t.props.selectsRange?c="Selected start date: ".concat(Ge(t.props.startDate,{dateFormat:u,locale:s}),". ").concat(t.props.endDate?"End date: "+Ge(t.props.endDate,{dateFormat:u,locale:s}):""):t.props.showTimeSelectOnly?c="Selected time: ".concat(Ge(t.props.selected,{dateFormat:i,locale:s})):t.props.showYearPicker?c="Selected year: ".concat(Ge(t.props.selected,{dateFormat:"yyyy",locale:s})):t.props.showMonthYearPicker?c="Selected month: ".concat(Ge(t.props.selected,{dateFormat:"MMMM yyyy",locale:s})):t.props.showQuarterYearPicker?c="Selected quarter: ".concat(Ge(t.props.selected,{dateFormat:"yyyy, QQQ",locale:s})):c="Selected date: ".concat(Ge(t.props.selected,{dateFormat:u,locale:s})),d.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},c)},t.renderDateInput=function(){var o,a,i,s=Le(t.props.className,(o={},o[lu]=t.state.open,o)),l=t.props.customInput||d.createElement("input",{type:"text"}),u=t.props.customInputRef||"ref",c=t.props,f=c.dateFormat,m=f===void 0?r.defaultProps.dateFormat:f,p=c.locale,h=typeof t.props.value=="string"?t.props.value:typeof t.state.inputValue=="string"?t.state.inputValue:t.props.selectsRange?ag(t.props.startDate,t.props.endDate,{dateFormat:m,locale:p}):t.props.selectsMultiple?ig((i=t.props.selectedDates)!==null&&i!==void 0?i:[],{dateFormat:m,locale:p}):Ge(t.props.selected,{dateFormat:m,locale:p});return d.cloneElement(l,(a={},a[u]=function(v){t.input=v},a.value=h,a.onBlur=t.handleBlur,a.onChange=t.handleChange,a.onClick=t.onInputClick,a.onFocus=t.handleFocus,a.onKeyDown=t.onInputKeyDown,a.id=t.props.id,a.name=t.props.name,a.form=t.props.form,a.autoFocus=t.props.autoFocus,a.placeholder=t.props.placeholderText,a.disabled=t.props.disabled,a.autoComplete=t.props.autoComplete,a.className=Le(l.props.className,s),a.title=t.props.title,a.readOnly=t.props.readOnly,a.required=t.props.required,a.tabIndex=t.props.tabIndex,a["aria-describedby"]=t.props.ariaDescribedBy,a["aria-invalid"]=t.props.ariaInvalid,a["aria-labelledby"]=t.props.ariaLabelledBy,a["aria-required"]=t.props.ariaRequired,a))},t.renderClearButton=function(){var o=t.props,a=o.isClearable,i=o.disabled,s=o.selected,l=o.startDate,u=o.endDate,c=o.clearButtonTitle,f=o.clearButtonClassName,m=f===void 0?"":f,p=o.ariaLabelClose,h=p===void 0?"Close":p,v=o.selectedDates;return a&&(s!=null||l!=null||u!=null||v!=null&&v.length)?d.createElement("button",{type:"button",className:Le("react-datepicker__close-icon",m,{"react-datepicker__close-icon--disabled":i}),disabled:i,"aria-label":h,onClick:t.onClearClick,title:c,tabIndex:-1}):null},t.state=t.calcInitialState(),t.preventFocusTimeout=void 0,t}return Object.defineProperty(r,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:tr,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.componentDidUpdate=function(e,t){var o,a,i,s;e.inline&&Zg(e.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:Jl(this.props.highlightDates)}),!t.focused&&!tn(e.selected,this.props.selected)&&this.setState({inputValue:null}),t.open!==this.state.open&&(t.open===!1&&this.state.open===!0&&((a=(o=this.props).onCalendarOpen)===null||a===void 0||a.call(o)),t.open===!0&&this.state.open===!1&&((s=(i=this.props).onCalendarClose)===null||s===void 0||s.call(i)))},r.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.renderInputContainer=function(){var e=this.props,t=e.showIcon,o=e.icon,a=e.calendarIconClassname,i=e.calendarIconClassName,s=e.toggleCalendarOnIconClick,l=this.state.open;return a&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),d.createElement("div",{className:"react-datepicker__input-container".concat(t?" react-datepicker__view-calendar-icon":"")},t&&d.createElement(Qg,ie({icon:o,className:Le(i,!i&&a,l&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},r.prototype.render=function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?d.createElement(su,{enableTabLoop:this.props.enableTabLoop},d.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=d.createElement(iu,ie({portalId:this.props.portalId},this.props),t)),d.createElement("div",null,this.renderInputContainer(),t)}return d.createElement(Xg,ie({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:e,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},r}(d.Component),tb="input",La="navigate";const nb={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},rb=(n,r,e)=>{let t;const o=nb[n];return typeof o=="string"?t=o:r===1?t=o.one:t=o.other.replace("{{count}}",r.toString()),e!=null&&e.addSuffix?e.comparison&&e.comparison>0?t+" 후":t+" 전":t},ob={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},ab={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ib={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},sb={date:gn({formats:ob,defaultWidth:"full"}),time:gn({formats:ab,defaultWidth:"full"}),dateTime:gn({formats:ib,defaultWidth:"full"})},lb={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},ub=(n,r,e,t)=>lb[n],cb={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},db={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},fb={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},pb={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},hb={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},mb={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},vb={ordinalNumber:(n,r)=>{const e=Number(n);switch(String(r==null?void 0:r.unit)){case"minute":case"second":return String(e);case"date":return e+"일";default:return e+"번째"}},era:ot({values:cb,defaultWidth:"wide"}),quarter:ot({values:db,defaultWidth:"wide",argumentCallback:n=>n-1}),month:ot({values:fb,defaultWidth:"wide"}),day:ot({values:pb,defaultWidth:"wide"}),dayPeriod:ot({values:hb,defaultWidth:"wide",formattingValues:mb,defaultFormattingWidth:"wide"})},gb=/^(\d+)(일|번째)?/i,bb=/\d+/i,yb={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},wb={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},xb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},Db={any:[/1/i,/2/i,/3/i,/4/i]},Eb={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},Cb={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},kb={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},Sb={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},_b={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},Ob={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},Pb={ordinalNumber:hl({matchPattern:gb,parsePattern:bb,valueCallback:n=>parseInt(n,10)}),era:at({matchPatterns:yb,defaultMatchWidth:"wide",parsePatterns:wb,defaultParseWidth:"any"}),quarter:at({matchPatterns:xb,defaultMatchWidth:"wide",parsePatterns:Db,defaultParseWidth:"any",valueCallback:n=>n+1}),month:at({matchPatterns:Eb,defaultMatchWidth:"wide",parsePatterns:Cb,defaultParseWidth:"any"}),day:at({matchPatterns:kb,defaultMatchWidth:"wide",parsePatterns:Sb,defaultParseWidth:"any"}),dayPeriod:at({matchPatterns:_b,defaultMatchWidth:"any",parsePatterns:Ob,defaultParseWidth:"any"})},Mb={code:"ko",formatDistance:rb,formatLong:sb,formatRelative:ub,localize:vb,match:Pb,options:{weekStartsOn:0,firstWeekContainsDate:1}},Tb=({label:n,placeholder:r,value:e,onChange:t,helperText:o})=>{const a=new Date().getFullYear(),i=Array.from({length:a-1989},(c,f)=>1990+f),s=["1","2","3","4","5","6","7","8","9","10","11","12"],l=d.forwardRef(({value:c,onClick:f},m)=>T.jsx("button",{"aria-label":"inputButton",type:"button",id:n,className:"h-[60px] w-full rounded-xl bg-[#F8F8F9] p-4 text-left text-xl placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50",onClick:f,ref:m,children:c||T.jsx("p",{className:"text-[#C5C8CD]",children:r})}));l.displayName="CustomInput";function u(c){var f=c.substring(0,4),m=c.substring(5,7),p=c.substring(8,10);return new Date(Number(f),Number(m)-1,Number(p))}return T.jsxs("div",{className:"flex flex-col text-deepGray",children:[T.jsx("label",{htmlFor:n,className:"mb-4 text-xl font-bold text-lightBlack",children:n}),T.jsx(eb,{disabledKeyboardNavigation:!0,locale:Mb,id:n,name:"출생일",placeholderText:r,onChange:c=>c&&t(c),selected:e?u(e):void 0,value:e,dateFormat:"yyyy-MM-dd",autoComplete:"off",maxDate:new Date,customInput:T.jsx(l,{}),renderCustomHeader:({date:c,changeYear:f,changeMonth:m,decreaseMonth:p,increaseMonth:h})=>T.jsxs("div",{className:"flex justify-center pb-4 pt-5 text-lightBlack",children:[T.jsx("button",{onClick:p,disabled:c.getFullYear()<=1990&&c.getMonth()===0,type:"button",className:"react-datepicker__navigation react-datepicker__navigation--previous","aria-label":"Previous Month",children:T.jsx("span",{className:"react-datepicker__navigation-icon react-datepicker__navigation-icon--previous",children:"Previous Month"})}),T.jsxs("div",{className:"text-lg",children:[T.jsx("select",{"aria-label":"yearsSelect",dir:"rtl",className:"datepicker-select w-auto cursor-pointer rounded-md bg-[#e8e8e9] px-2 py-1 text-center focus:outline-none",value:Z(c),onChange:({target:{value:v}})=>f(Number(v)),children:i.map(v=>T.jsx("option",{value:v,children:v},v))}),T.jsx("span",{className:"ml-1 mr-2",children:"년"}),T.jsx("select",{"aria-label":"monthsSelect",dir:"rtl",className:"datepicker-select cursor-pointer rounded-md bg-[#e8e8e9] px-2 py-1 text-center focus:outline-none",value:s[je(c)],onChange:({target:{value:v}})=>m(s.indexOf(v)),children:s.map(v=>T.jsx("option",{value:v,children:v},v))}),T.jsx("span",{className:"mx-1",children:"월"})]}),T.jsx("button",{onClick:h,disabled:c.getFullYear()>=new Date().getFullYear()&&c.getMonth()>=new Date().getMonth(),type:"button",className:"react-datepicker__navigation react-datepicker__navigation--next","aria-label":"Next Month",children:T.jsx("span",{className:"react-datepicker__navigation-icon react-datepicker__navigation-icon--next",children:"Next Month"})})]})}),o&&T.jsx("p",{className:"px-4 pt-2 text-[#8B919A]",children:o})]})};function Nb(n){return Tn({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"},child:[]}]})(n)}const Ib=({label:n,placeholder:r,value:e,options:t,onChange:o,disabled:a})=>T.jsx("div",{className:"relative text-deepGray",children:T.jsxs(wh,{disabled:a,onChange:o,children:[T.jsx(yr,{className:"text-xl font-bold text-lightBlack",children:n}),T.jsxs(rl,{className:"relative mt-4 h-[60px] w-full rounded-xl bg-[#F8F8F8] p-4 text-start text-xl placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50",children:[e.name?T.jsx("p",{children:e.name}):T.jsx("p",{className:"text-[#C5C8CD]",children:r})," ",T.jsx(Nb,{className:"absolute bottom-5 right-4"})]}),T.jsx(ol,{className:"scrollbar absolute max-h-[240px] w-full overflow-hidden overflow-y-auto rounded-xl shadow-md",children:t.map(i=>T.jsx(al,{value:i,as:T.Fragment,children:({focus:s,selected:l})=>T.jsx("li",{className:`flex w-full cursor-pointer justify-between p-4 text-start text-xl placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50 ${s?"bg-[#E8E8E8]":"bg-[#F8F8F8]"} ${l&&"bg-[#D8D8D8]"}`,children:i.name})},i.name))})]})}),Fb=({className:n,id:r,name:e,onChange:t,disabled:o,checked:a})=>T.jsx("input",{type:"radio",disabled:o,checked:a,id:r,name:e,className:ur("petnowRadio size-[3.5vw]",n),onChange:t}),Lb=({label:n,placeholder:r,value:e,options:t,onChange:o,disabled:a,helperText:i,disableDebounce:s})=>{const[l,u]=d.useState("");let c;const f=h=>{c&&clearTimeout(c),o(""),c=setTimeout(async()=>{u(h.target.value)},200)},m=h=>{o(""),u(h.target.value)},p=l===""?t.slice(0,4):t.filter(h=>h.name.replace(/ /g,"").includes(l.replace(/ /g,""))).slice(0,4);return T.jsxs("div",{children:[T.jsx("div",{className:"relative flex flex-col text-deepGray",children:T.jsxs(bp,{onChange:h=>{o(h)},disabled:a,children:[T.jsx(yr,{className:"text-xl font-bold text-lightBlack",children:n}),T.jsx($s,{"aria-label":"comboboxInput",className:"mt-4 flex w-full items-center justify-between rounded-xl bg-[#F8F8F8] p-4 text-xl placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50",value:e,onChange:s?m:f,placeholder:r,autoComplete:"off"}),T.jsx(Ys,{className:"absolute top-[104px] z-10 max-h-60 w-full overflow-hidden overflow-y-auto rounded-xl shadow-md",style:{bottom:-p.length*60},children:p.map(h=>T.jsx(js,{value:h,as:d.Fragment,children:({focus:v,selected:g})=>T.jsx("li",{className:`flex w-full cursor-pointer justify-between p-4 text-start text-xl placeholder:text-[#C5C8CD] focus:outline-none disabled:opacity-50 ${v?"bg-[#E8E8E8]":"bg-[#F8F8F8]"} ${g&&"bg-[#D8D8D8]"}`,children:h.name})},h.name))})]})}),i&&T.jsx("p",{className:"mt-2 px-4 text-[#8B919A]",children:i})]})},Ab=({tabList:n,onTabChange:r})=>{const[e,t]=d.useState(n[0]),o=a=>{if(a<=1||a>4)throw new Error("[@petnow/ui/Tabs] Tab에 들어갈 수 있는 길이는 2~4개입니다.");return a===2?`absolute h-[2px] w-[50%] bg-petnowOrange transition-all duration-200 ${JSON.stringify(e)===JSON.stringify(n[0])?"translate-x-[0%]":"translate-x-[100%]"}`:a===3?`absolute h-[2px] w-[33.3%] bg-petnowOrange transition-all duration-200 ${JSON.stringify(e)===JSON.stringify(n[0])?"translate-x-[0%]":JSON.stringify(e)===JSON.stringify(n[1])?"translate-x-[100%]":"translate-x-[200%]"}`:`absolute h-[2px] w-[25%] bg-petnowOrange transition-all duration-200 ${JSON.stringify(e)===JSON.stringify(n[0])?"translate-x-[0%]":JSON.stringify(e)===JSON.stringify(n[1])?"translate-x-[100%]":JSON.stringify(e)===JSON.stringify(n[2])?"translate-x-[200%]":"translate-x-[300%]"}`};return T.jsxs("div",{className:"flex flex-col text-2xl font-bold",children:[T.jsx("div",{className:"flex",children:n.map(a=>T.jsx("div",{className:"flex flex-1 flex-col",children:T.jsx("button",{className:`py-5 hover:text-lightBlack ${JSON.stringify(a)===JSON.stringify(e)?"text-lightBlack":"text-[#8B919A]"}`,onClick:()=>{t(a),r(a)},children:a.displayName})},a.key))}),T.jsx("div",{className:"relative h-[2px] w-full bg-lightGray",children:T.jsx("div",{className:o(n.length)})})]})};Ee.AccordionCard=Oh,Ee.Checkbox=xh,Ee.CtaButton=Za,Ee.LabeledAddressInput=Eh,Ee.LabeledAutocomplete=Lb,Ee.LabeledDatepicker=Tb,Ee.LabeledSelect=Ib,Ee.Modal=kh,Ee.Radio=Fb,Ee.Tabs=Ab,Object.defineProperty(Ee,Symbol.toStringTag,{value:"Module"})});
41
42
  //# sourceMappingURL=index.umd.js.map