beesoft-components 0.3.3 → 0.3.4-0

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(ve,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],b):(ve=typeof globalThis<"u"?globalThis:ve||self,b(ve.BeesoftComponents={},ve.React,ve.ReactDOM))})(this,function(ve,b,Qe){"use strict";var Yb=Object.defineProperty;var Hb=(ve,b,Qe)=>b in ve?Yb(ve,b,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):ve[b]=Qe;var q=(ve,b,Qe)=>(Hb(ve,typeof b!="symbol"?b+"":b,Qe),Qe);function Fa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wn={exports:{}},Pr={};/**
1
+ (function(de,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],p):(de=typeof globalThis<"u"?globalThis:de||self,p(de.BeesoftComponents={},de.React,de.ReactDOM))})(this,function(de,p,Ue){"use strict";var Zd=Object.defineProperty;var Jd=(de,p,Ue)=>p in de?Zd(de,p,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):de[p]=Ue;var $=(de,p,Ue)=>(Jd(de,typeof p!="symbol"?p+"":p,Ue),Ue);function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wr={exports:{}},Yt={};/**
2
2
  * @license React
3
3
  * react-jsx-dev-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 Ya;function $s(){if(Ya)return Pr;Ya=1;var e=Symbol.for("react.fragment");return Pr.Fragment=e,Pr.jsxDEV=void 0,Pr}var Dr={};/**
9
+ */var mn;function ho(){if(mn)return Yt;mn=1;var e=Symbol.for("react.fragment");return Yt.Fragment=e,Yt.jsxDEV=void 0,Yt}var Ut={};/**
10
10
  * @license React
11
11
  * react-jsx-dev-runtime.development.js
12
12
  *
@@ -14,799 +14,38 @@
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 Ha;function Fs(){return Ha||(Ha=1,process.env.NODE_ENV!=="production"&&function(){var e=b,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),x=Symbol.iterator,T="@@iterator";function y(c){if(c===null||typeof c!="object")return null;var E=x&&c[x]||c[T];return typeof E=="function"?E:null}var N=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(c){{for(var E=arguments.length,R=new Array(E>1?E-1:0),ee=1;ee<E;ee++)R[ee-1]=arguments[ee];$("error",c,R)}}function $(c,E,R){{var ee=N.ReactDebugCurrentFrame,ge=ee.getStackAddendum();ge!==""&&(E+="%s",R=R.concat([ge]));var Ee=R.map(function(fe){return String(fe)});Ee.unshift("Warning: "+E),Function.prototype.apply.call(console[c],console,Ee)}}var U=!1,h=!1,Y=!1,Q=!1,Z=!1,G;G=Symbol.for("react.module.reference");function oe(c){return!!(typeof c=="string"||typeof c=="function"||c===n||c===i||Z||c===a||c===l||c===f||Q||c===p||U||h||Y||typeof c=="object"&&c!==null&&(c.$$typeof===v||c.$$typeof===m||c.$$typeof===o||c.$$typeof===s||c.$$typeof===u||c.$$typeof===G||c.getModuleId!==void 0))}function le(c,E,R){var ee=c.displayName;if(ee)return ee;var ge=E.displayName||E.name||"";return ge!==""?R+"("+ge+")":R}function ce(c){return c.displayName||"Context"}function S(c){if(c==null)return null;if(typeof c.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case l:return"Suspense";case f:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case s:var E=c;return ce(E)+".Consumer";case o:var R=c;return ce(R._context)+".Provider";case u:return le(c,c.render,"ForwardRef");case m:var ee=c.displayName||null;return ee!==null?ee:S(c.type)||"Memo";case v:{var ge=c,Ee=ge._payload,fe=ge._init;try{return S(fe(Ee))}catch{return null}}}return null}var X=Object.assign,J=0,z,ne,H,pe,g,P,d;function C(){}C.__reactDisabledLog=!0;function F(){{if(J===0){z=console.log,ne=console.info,H=console.warn,pe=console.error,g=console.group,P=console.groupCollapsed,d=console.groupEnd;var c={configurable:!0,enumerable:!0,value:C,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}J++}}function K(){{if(J--,J===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:X({},c,{value:z}),info:X({},c,{value:ne}),warn:X({},c,{value:H}),error:X({},c,{value:pe}),group:X({},c,{value:g}),groupCollapsed:X({},c,{value:P}),groupEnd:X({},c,{value:d})})}J<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var I=N.ReactCurrentDispatcher,j;function A(c,E,R){{if(j===void 0)try{throw Error()}catch(ge){var ee=ge.stack.trim().match(/\n( *(at )?)/);j=ee&&ee[1]||""}return`
18
- `+j+c}}var M=!1,B;{var Ne=typeof WeakMap=="function"?WeakMap:Map;B=new Ne}function D(c,E){if(!c||M)return"";{var R=B.get(c);if(R!==void 0)return R}var ee;M=!0;var ge=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ee;Ee=I.current,I.current=null,F();try{if(E){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(ct){ee=ct}Reflect.construct(c,[],fe)}else{try{fe.call()}catch(ct){ee=ct}c.call(fe.prototype)}}else{try{throw Error()}catch(ct){ee=ct}c()}}catch(ct){if(ct&&ee&&typeof ct.stack=="string"){for(var ie=ct.stack.split(`
19
- `),We=ee.stack.split(`
20
- `),Ve=ie.length-1,Le=We.length-1;Ve>=1&&Le>=0&&ie[Ve]!==We[Le];)Le--;for(;Ve>=1&&Le>=0;Ve--,Le--)if(ie[Ve]!==We[Le]){if(Ve!==1||Le!==1)do if(Ve--,Le--,Le<0||ie[Ve]!==We[Le]){var Ge=`
21
- `+ie[Ve].replace(" at new "," at ");return c.displayName&&Ge.includes("<anonymous>")&&(Ge=Ge.replace("<anonymous>",c.displayName)),typeof c=="function"&&B.set(c,Ge),Ge}while(Ve>=1&&Le>=0);break}}}finally{M=!1,I.current=Ee,K(),Error.prepareStackTrace=ge}var er=c?c.displayName||c.name:"",Ls=er?A(er):"";return typeof c=="function"&&B.set(c,Ls),Ls}function Fe(c,E,R){return D(c,!1)}function Be(c){var E=c.prototype;return!!(E&&E.isReactComponent)}function qe(c,E,R){if(c==null)return"";if(typeof c=="function")return D(c,Be(c));if(typeof c=="string")return A(c);switch(c){case l:return A("Suspense");case f:return A("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case u:return Fe(c.render);case m:return qe(c.type,E,R);case v:{var ee=c,ge=ee._payload,Ee=ee._init;try{return qe(Ee(ge),E,R)}catch{}}}return""}var Gt=Object.prototype.hasOwnProperty,Xt={},_t=N.ReactDebugCurrentFrame;function Kt(c){if(c){var E=c._owner,R=qe(c.type,c._source,E?E.type:null);_t.setExtraStackFrame(R)}else _t.setExtraStackFrame(null)}function Qt(c,E,R,ee,ge){{var Ee=Function.call.bind(Gt);for(var fe in c)if(Ee(c,fe)){var ie=void 0;try{if(typeof c[fe]!="function"){var We=Error((ee||"React class")+": "+R+" type `"+fe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[fe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw We.name="Invariant Violation",We}ie=c[fe](E,fe,ee,R,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ve){ie=Ve}ie&&!(ie instanceof Error)&&(Kt(ge),O("%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).",ee||"React class",R,fe,typeof ie),Kt(null)),ie instanceof Error&&!(ie.message in Xt)&&(Xt[ie.message]=!0,Kt(ge),O("Failed %s type: %s",R,ie.message),Kt(null))}}}var Ra=Array.isArray;function fn(c){return Ra(c)}function ja(c){{var E=typeof Symbol=="function"&&Symbol.toStringTag,R=E&&c[Symbol.toStringTag]||c.constructor.name||"Object";return R}}function mn(c){try{return re(c),!1}catch{return!0}}function re(c){return""+c}function xe(c){if(mn(c))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ja(c)),re(c)}var Ue=N.ReactCurrentOwner,dn={key:!0,ref:!0,__self:!0,__source:!0},Sr,Nr,Zt;Zt={};function pn(c){if(Gt.call(c,"ref")){var E=Object.getOwnPropertyDescriptor(c,"ref").get;if(E&&E.isReactWarning)return!1}return c.ref!==void 0}function vn(c){if(Gt.call(c,"key")){var E=Object.getOwnPropertyDescriptor(c,"key").get;if(E&&E.isReactWarning)return!1}return c.key!==void 0}function hn(c,E){if(typeof c.ref=="string"&&Ue.current&&E&&Ue.current.stateNode!==E){var R=S(Ue.current.type);Zt[R]||(O('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',S(Ue.current.type),c.ref),Zt[R]=!0)}}function bn(c,E){{var R=function(){Sr||(Sr=!0,O("%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)",E))};R.isReactWarning=!0,Object.defineProperty(c,"key",{get:R,configurable:!0})}}function gn(c,E){{var R=function(){Nr||(Nr=!0,O("%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)",E))};R.isReactWarning=!0,Object.defineProperty(c,"ref",{get:R,configurable:!0})}}var yn=function(c,E,R,ee,ge,Ee,fe){var ie={$$typeof:t,type:c,key:E,ref:R,props:fe,_owner:Ee};return ie._store={},Object.defineProperty(ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ee}),Object.defineProperty(ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ge}),Object.freeze&&(Object.freeze(ie.props),Object.freeze(ie)),ie};function Mb(c,E,R,ee,ge){{var Ee,fe={},ie=null,We=null;R!==void 0&&(xe(R),ie=""+R),vn(E)&&(xe(E.key),ie=""+E.key),pn(E)&&(We=E.ref,hn(E,ge));for(Ee in E)Gt.call(E,Ee)&&!dn.hasOwnProperty(Ee)&&(fe[Ee]=E[Ee]);if(c&&c.defaultProps){var Ve=c.defaultProps;for(Ee in Ve)fe[Ee]===void 0&&(fe[Ee]=Ve[Ee])}if(ie||We){var Le=typeof c=="function"?c.displayName||c.name||"Unknown":c;ie&&bn(fe,Le),We&&gn(fe,Le)}return yn(c,ie,We,ge,ee,Ue.current,fe)}}var Va=N.ReactCurrentOwner,As=N.ReactDebugCurrentFrame;function Jt(c){if(c){var E=c._owner,R=qe(c.type,c._source,E?E.type:null);As.setExtraStackFrame(R)}else As.setExtraStackFrame(null)}var La;La=!1;function $a(c){return typeof c=="object"&&c!==null&&c.$$typeof===t}function Ms(){{if(Va.current){var c=S(Va.current.type);if(c)return`
17
+ */var dn;function vo(){return dn||(dn=1,process.env.NODE_ENV!=="production"&&function(){var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),E=Symbol.iterator,P="@@iterator";function x(c){if(c===null||typeof c!="object")return null;var y=E&&c[E]||c[P];return typeof y=="function"?y:null}var M=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function U(c){{for(var y=arguments.length,R=new Array(y>1?y-1:0),B=1;B<y;B++)R[B-1]=arguments[B];G("error",c,R)}}function G(c,y,R){{var B=M.ReactDebugCurrentFrame,ve=B.getStackAddendum();ve!==""&&(y+="%s",R=R.concat([ve]));var we=R.map(function(ce){return String(ce)});we.unshift("Warning: "+y),Function.prototype.apply.call(console[c],console,we)}}var W=!1,b=!1,Y=!1,ee=!1,Q=!1,X;X=Symbol.for("react.module.reference");function ue(c){return!!(typeof c=="string"||typeof c=="function"||c===n||c===s||Q||c===a||c===l||c===m||ee||c===g||W||b||Y||typeof c=="object"&&c!==null&&(c.$$typeof===T||c.$$typeof===d||c.$$typeof===o||c.$$typeof===i||c.$$typeof===u||c.$$typeof===X||c.getModuleId!==void 0))}function se(c,y,R){var B=c.displayName;if(B)return B;var ve=y.displayName||y.name||"";return ve!==""?R+"("+ve+")":R}function ie(c){return c.displayName||"Context"}function w(c){if(c==null)return null;if(typeof c.tag=="number"&&U("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case a:return"StrictMode";case l:return"Suspense";case m:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case i:var y=c;return ie(y)+".Consumer";case o:var R=c;return ie(R._context)+".Provider";case u:return se(c,c.render,"ForwardRef");case d:var B=c.displayName||null;return B!==null?B:w(c.type)||"Memo";case T:{var ve=c,we=ve._payload,ce=ve._init;try{return w(ce(we))}catch{return null}}}return null}var H=Object.assign,q=0,A,te,L,me,h,D,f;function N(){}N.__reactDisabledLog=!0;function V(){{if(q===0){A=console.log,te=console.info,L=console.warn,me=console.error,h=console.group,D=console.groupCollapsed,f=console.groupEnd;var c={configurable:!0,enumerable:!0,value:N,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}q++}}function z(){{if(q--,q===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},c,{value:A}),info:H({},c,{value:te}),warn:H({},c,{value:L}),error:H({},c,{value:me}),group:H({},c,{value:h}),groupCollapsed:H({},c,{value:D}),groupEnd:H({},c,{value:f})})}q<0&&U("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var C=M.ReactCurrentDispatcher,k;function I(c,y,R){{if(k===void 0)try{throw Error()}catch(ve){var B=ve.stack.trim().match(/\n( *(at )?)/);k=B&&B[1]||""}return`
18
+ `+k+c}}var _=!1,F;{var De=typeof WeakMap=="function"?WeakMap:Map;F=new De}function S(c,y){if(!c||_)return"";{var R=F.get(c);if(R!==void 0)return R}var B;_=!0;var ve=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var we;we=C.current,C.current=null,V();try{if(y){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(Qe){B=Qe}Reflect.construct(c,[],ce)}else{try{ce.call()}catch(Qe){B=Qe}c.call(ce.prototype)}}else{try{throw Error()}catch(Qe){B=Qe}c()}}catch(Qe){if(Qe&&B&&typeof Qe.stack=="string"){for(var ne=Qe.stack.split(`
19
+ `),Le=B.stack.split(`
20
+ `),Me=ne.length-1,Re=Le.length-1;Me>=1&&Re>=0&&ne[Me]!==Le[Re];)Re--;for(;Me>=1&&Re>=0;Me--,Re--)if(ne[Me]!==Le[Re]){if(Me!==1||Re!==1)do if(Me--,Re--,Re<0||ne[Me]!==Le[Re]){var $e=`
21
+ `+ne[Me].replace(" at new "," at ");return c.displayName&&$e.includes("<anonymous>")&&($e=$e.replace("<anonymous>",c.displayName)),typeof c=="function"&&F.set(c,$e),$e}while(Me>=1&&Re>=0);break}}}finally{_=!1,C.current=we,z(),Error.prepareStackTrace=ve}var Nt=c?c.displayName||c.name:"",po=Nt?I(Nt):"";return typeof c=="function"&&F.set(c,po),po}function ke(c,y,R){return S(c,!1)}function Ae(c){var y=c.prototype;return!!(y&&y.isReactComponent)}function Fe(c,y,R){if(c==null)return"";if(typeof c=="function")return S(c,Ae(c));if(typeof c=="string")return I(c);switch(c){case l:return I("Suspense");case m:return I("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case u:return ke(c.render);case d:return Fe(c.type,y,R);case T:{var B=c,ve=B._payload,we=B._init;try{return Fe(we(ve),y,R)}catch{}}}return""}var Tt=Object.prototype.hasOwnProperty,wt={},lt=M.ReactDebugCurrentFrame;function xt(c){if(c){var y=c._owner,R=Fe(c.type,c._source,y?y.type:null);lt.setExtraStackFrame(R)}else lt.setExtraStackFrame(null)}function Dt(c,y,R,B,ve){{var we=Function.call.bind(Tt);for(var ce in c)if(we(c,ce)){var ne=void 0;try{if(typeof c[ce]!="function"){var Le=Error((B||"React class")+": "+R+" type `"+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Le.name="Invariant Violation",Le}ne=c[ce](y,ce,B,R,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Me){ne=Me}ne&&!(ne instanceof Error)&&(xt(ve),U("%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).",B||"React class",R,ce,typeof ne),xt(null)),ne instanceof Error&&!(ne.message in wt)&&(wt[ne.message]=!0,xt(ve),U("Failed %s type: %s",R,ne.message),xt(null))}}}var sn=Array.isArray;function mr(c){return sn(c)}function un(c){{var y=typeof Symbol=="function"&&Symbol.toStringTag,R=y&&c[Symbol.toStringTag]||c.constructor.name||"Object";return R}}function dr(c){try{return Z(c),!1}catch{return!0}}function Z(c){return""+c}function ye(c){if(dr(c))return U("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",un(c)),Z(c)}var Ve=M.ReactCurrentOwner,pr={key:!0,ref:!0,__self:!0,__source:!0},Ft,$t,Et;Et={};function hr(c){if(Tt.call(c,"ref")){var y=Object.getOwnPropertyDescriptor(c,"ref").get;if(y&&y.isReactWarning)return!1}return c.ref!==void 0}function vr(c){if(Tt.call(c,"key")){var y=Object.getOwnPropertyDescriptor(c,"key").get;if(y&&y.isReactWarning)return!1}return c.key!==void 0}function br(c,y){if(typeof c.ref=="string"&&Ve.current&&y&&Ve.current.stateNode!==y){var R=w(Ve.current.type);Et[R]||(U('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',w(Ve.current.type),c.ref),Et[R]=!0)}}function gr(c,y){{var R=function(){Ft||(Ft=!0,U("%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)",y))};R.isReactWarning=!0,Object.defineProperty(c,"key",{get:R,configurable:!0})}}function yr(c,y){{var R=function(){$t||($t=!0,U("%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)",y))};R.isReactWarning=!0,Object.defineProperty(c,"ref",{get:R,configurable:!0})}}var Tr=function(c,y,R,B,ve,we,ce){var ne={$$typeof:t,type:c,key:y,ref:R,props:ce,_owner:we};return ne._store={},Object.defineProperty(ne._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ne,"_self",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.defineProperty(ne,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.freeze&&(Object.freeze(ne.props),Object.freeze(ne)),ne};function zd(c,y,R,B,ve){{var we,ce={},ne=null,Le=null;R!==void 0&&(ye(R),ne=""+R),vr(y)&&(ye(y.key),ne=""+y.key),hr(y)&&(Le=y.ref,br(y,ve));for(we in y)Tt.call(y,we)&&!pr.hasOwnProperty(we)&&(ce[we]=y[we]);if(c&&c.defaultProps){var Me=c.defaultProps;for(we in Me)ce[we]===void 0&&(ce[we]=Me[we])}if(ne||Le){var Re=typeof c=="function"?c.displayName||c.name||"Unknown":c;ne&&gr(ce,Re),Le&&yr(ce,Re)}return Tr(c,ne,Le,ve,B,Ve.current,ce)}}var cn=M.ReactCurrentOwner,uo=M.ReactDebugCurrentFrame;function St(c){if(c){var y=c._owner,R=Fe(c.type,c._source,y?y.type:null);uo.setExtraStackFrame(R)}else uo.setExtraStackFrame(null)}var ln;ln=!1;function fn(c){return typeof c=="object"&&c!==null&&c.$$typeof===t}function co(){{if(cn.current){var c=w(cn.current.type);if(c)return`
22
22
 
23
- Check the render method of \``+c+"`."}return""}}function Rb(c){{if(c!==void 0){var E=c.fileName.replace(/^.*[\\\/]/,""),R=c.lineNumber;return`
23
+ Check the render method of \``+c+"`."}return""}}function qd(c){{if(c!==void 0){var y=c.fileName.replace(/^.*[\\\/]/,""),R=c.lineNumber;return`
24
24
 
25
- Check your code at `+E+":"+R+"."}return""}}var Rs={};function jb(c){{var E=Ms();if(!E){var R=typeof c=="string"?c:c.displayName||c.name;R&&(E=`
25
+ Check your code at `+y+":"+R+"."}return""}}var lo={};function Bd(c){{var y=co();if(!y){var R=typeof c=="string"?c:c.displayName||c.name;R&&(y=`
26
26
 
27
- Check the top-level render call using <`+R+">.")}return E}}function js(c,E){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var R=jb(E);if(Rs[R])return;Rs[R]=!0;var ee="";c&&c._owner&&c._owner!==Va.current&&(ee=" It was passed a child from "+S(c._owner.type)+"."),Jt(c),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',R,ee),Jt(null)}}function Vs(c,E){{if(typeof c!="object")return;if(fn(c))for(var R=0;R<c.length;R++){var ee=c[R];$a(ee)&&js(ee,E)}else if($a(c))c._store&&(c._store.validated=!0);else if(c){var ge=y(c);if(typeof ge=="function"&&ge!==c.entries)for(var Ee=ge.call(c),fe;!(fe=Ee.next()).done;)$a(fe.value)&&js(fe.value,E)}}}function Vb(c){{var E=c.type;if(E==null||typeof E=="string")return;var R;if(typeof E=="function")R=E.propTypes;else if(typeof E=="object"&&(E.$$typeof===u||E.$$typeof===m))R=E.propTypes;else return;if(R){var ee=S(E);Qt(R,c.props,"prop",ee,c)}else if(E.PropTypes!==void 0&&!La){La=!0;var ge=S(E);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ge||"Unknown")}typeof E.getDefaultProps=="function"&&!E.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Lb(c){{for(var E=Object.keys(c.props),R=0;R<E.length;R++){var ee=E[R];if(ee!=="children"&&ee!=="key"){Jt(c),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ee),Jt(null);break}}c.ref!==null&&(Jt(c),O("Invalid attribute `ref` supplied to `React.Fragment`."),Jt(null))}}function $b(c,E,R,ee,ge,Ee){{var fe=oe(c);if(!fe){var ie="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(ie+=" 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 We=Rb(ge);We?ie+=We:ie+=Ms();var Ve;c===null?Ve="null":fn(c)?Ve="array":c!==void 0&&c.$$typeof===t?(Ve="<"+(S(c.type)||"Unknown")+" />",ie=" Did you accidentally export a JSX literal instead of a component?"):Ve=typeof c,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ve,ie)}var Le=Mb(c,E,R,ge,Ee);if(Le==null)return Le;if(fe){var Ge=E.children;if(Ge!==void 0)if(ee)if(fn(Ge)){for(var er=0;er<Ge.length;er++)Vs(Ge[er],c);Object.freeze&&Object.freeze(Ge)}else O("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 Vs(Ge,c)}return c===n?Lb(Le):Vb(Le),Le}}var Fb=$b;Dr.Fragment=n,Dr.jsxDEV=Fb}()),Dr}process.env.NODE_ENV==="production"?wn.exports=$s():wn.exports=Fs();var w=wn.exports,Ua={exports:{}};/*!
27
+ Check the top-level render call using <`+R+">.")}return y}}function fo(c,y){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var R=Bd(y);if(lo[R])return;lo[R]=!0;var B="";c&&c._owner&&c._owner!==cn.current&&(B=" It was passed a child from "+w(c._owner.type)+"."),St(c),U('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',R,B),St(null)}}function mo(c,y){{if(typeof c!="object")return;if(mr(c))for(var R=0;R<c.length;R++){var B=c[R];fn(B)&&fo(B,y)}else if(fn(c))c._store&&(c._store.validated=!0);else if(c){var ve=x(c);if(typeof ve=="function"&&ve!==c.entries)for(var we=ve.call(c),ce;!(ce=we.next()).done;)fn(ce.value)&&fo(ce.value,y)}}}function Gd(c){{var y=c.type;if(y==null||typeof y=="string")return;var R;if(typeof y=="function")R=y.propTypes;else if(typeof y=="object"&&(y.$$typeof===u||y.$$typeof===d))R=y.propTypes;else return;if(R){var B=w(y);Dt(R,c.props,"prop",B,c)}else if(y.PropTypes!==void 0&&!ln){ln=!0;var ve=w(y);U("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ve||"Unknown")}typeof y.getDefaultProps=="function"&&!y.getDefaultProps.isReactClassApproved&&U("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Kd(c){{for(var y=Object.keys(c.props),R=0;R<y.length;R++){var B=y[R];if(B!=="children"&&B!=="key"){St(c),U("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",B),St(null);break}}c.ref!==null&&(St(c),U("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}function Qd(c,y,R,B,ve,we){{var ce=ue(c);if(!ce){var ne="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(ne+=" 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 Le=qd(ve);Le?ne+=Le:ne+=co();var Me;c===null?Me="null":mr(c)?Me="array":c!==void 0&&c.$$typeof===t?(Me="<"+(w(c.type)||"Unknown")+" />",ne=" Did you accidentally export a JSX literal instead of a component?"):Me=typeof c,U("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Me,ne)}var Re=zd(c,y,R,ve,we);if(Re==null)return Re;if(ce){var $e=y.children;if($e!==void 0)if(B)if(mr($e)){for(var Nt=0;Nt<$e.length;Nt++)mo($e[Nt],c);Object.freeze&&Object.freeze($e)}else U("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 mo($e,c)}return c===n?Kd(Re):Gd(Re),Re}}var Xd=Qd;Ut.Fragment=n,Ut.jsxDEV=Xd}()),Ut}process.env.NODE_ENV==="production"?wr.exports=ho():wr.exports=vo();var v=wr.exports,pn={exports:{}};/*!
28
28
  Copyright (c) 2018 Jed Watson.
29
29
  Licensed under the MIT License (MIT), see
30
30
  http://jedwatson.github.io/classnames
31
- */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var o=typeof i;if(o==="string"||o==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var s=r.apply(null,i);s&&n.push(s)}}else if(o==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var u in i)t.call(i,u)&&i[u]&&n.push(u)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Ua);var Ys=Ua.exports;const ft=Fa(Ys);var Hs=typeof global=="object"&&global&&global.Object===Object&&global;const Wa=Hs;var Us=typeof self=="object"&&self&&self.Object===Object&&self,Ws=Wa||Us||Function("return this")();const Xe=Ws;var zs=Xe.Symbol;const At=zs;var za=Object.prototype,Bs=za.hasOwnProperty,qs=za.toString,tr=At?At.toStringTag:void 0;function Gs(e){var t=Bs.call(e,tr),r=e[tr];try{e[tr]=void 0;var n=!0}catch{}var a=qs.call(e);return n&&(t?e[tr]=r:delete e[tr]),a}var Xs=Object.prototype,Ks=Xs.toString;function Qs(e){return Ks.call(e)}var Zs="[object Null]",Js="[object Undefined]",Ba=At?At.toStringTag:void 0;function Mt(e){return e==null?e===void 0?Js:Zs:Ba&&Ba in Object(e)?Gs(e):Qs(e)}function Rt(e){return e!=null&&typeof e=="object"}var eu="[object Symbol]";function tu(e){return typeof e=="symbol"||Rt(e)&&Mt(e)==eu}var ru=Array.isArray;const xn=ru;var nu=/\s/;function au(e){for(var t=e.length;t--&&nu.test(e.charAt(t)););return t}var ou=/^\s+/;function iu(e){return e&&e.slice(0,au(e)+1).replace(ou,"")}function nt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var qa=0/0,su=/^[-+]0x[0-9a-f]+$/i,uu=/^0b[01]+$/i,lu=/^0o[0-7]+$/i,cu=parseInt;function Ga(e){if(typeof e=="number")return e;if(tu(e))return qa;if(nt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=nt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=iu(e);var r=uu.test(e);return r||lu.test(e)?cu(e.slice(2),r?2:8):su.test(e)?qa:+e}var fu="[object AsyncFunction]",mu="[object Function]",du="[object GeneratorFunction]",pu="[object Proxy]";function Xa(e){if(!nt(e))return!1;var t=Mt(e);return t==mu||t==du||t==fu||t==pu}var vu=Xe["__core-js_shared__"];const Tn=vu;var Ka=function(){var e=/[^.]+$/.exec(Tn&&Tn.keys&&Tn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function hu(e){return!!Ka&&Ka in e}var bu=Function.prototype,gu=bu.toString;function gt(e){if(e!=null){try{return gu.call(e)}catch{}try{return e+""}catch{}}return""}var yu=/[\\^$.*+?()[\]{}|]/g,wu=/^\[object .+?Constructor\]$/,xu=Function.prototype,Tu=Object.prototype,Eu=xu.toString,Su=Tu.hasOwnProperty,Nu=RegExp("^"+Eu.call(Su).replace(yu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pu(e){if(!nt(e)||hu(e))return!1;var t=Xa(e)?Nu:wu;return t.test(gt(e))}function Du(e,t){return e==null?void 0:e[t]}function yt(e,t){var r=Du(e,t);return Pu(r)?r:void 0}var Cu=yt(Xe,"WeakMap");const En=Cu;var Qa=Object.create,ku=function(){function e(){}return function(t){if(!nt(t))return{};if(Qa)return Qa(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const Ou=ku;function Iu(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var _u=function(){try{var e=yt(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Za=_u;function Au(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Mu=9007199254740991,Ru=/^(?:0|[1-9]\d*)$/;function ju(e,t){var r=typeof e;return t=t??Mu,!!t&&(r=="number"||r!="symbol"&&Ru.test(e))&&e>-1&&e%1==0&&e<t}function Ja(e,t,r){t=="__proto__"&&Za?Za(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function eo(e,t){return e===t||e!==e&&t!==t}var Vu=Object.prototype,Lu=Vu.hasOwnProperty;function to(e,t,r){var n=e[t];(!(Lu.call(e,t)&&eo(n,r))||r===void 0&&!(t in e))&&Ja(e,t,r)}function Cr(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),a?Ja(r,s,u):to(r,s,u)}return r}var $u=9007199254740991;function ro(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=$u}function no(e){return e!=null&&ro(e.length)&&!Xa(e)}var Fu=Object.prototype;function Sn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Fu;return e===r}function Yu(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Hu="[object Arguments]";function ao(e){return Rt(e)&&Mt(e)==Hu}var oo=Object.prototype,Uu=oo.hasOwnProperty,Wu=oo.propertyIsEnumerable,zu=ao(function(){return arguments}())?ao:function(e){return Rt(e)&&Uu.call(e,"callee")&&!Wu.call(e,"callee")};const Bu=zu;function qu(){return!1}var io=typeof ve=="object"&&ve&&!ve.nodeType&&ve,so=io&&typeof module=="object"&&module&&!module.nodeType&&module,Gu=so&&so.exports===io,uo=Gu?Xe.Buffer:void 0,Xu=uo?uo.isBuffer:void 0,Ku=Xu||qu;const lo=Ku;var Qu="[object Arguments]",Zu="[object Array]",Ju="[object Boolean]",el="[object Date]",tl="[object Error]",rl="[object Function]",nl="[object Map]",al="[object Number]",ol="[object Object]",il="[object RegExp]",sl="[object Set]",ul="[object String]",ll="[object WeakMap]",cl="[object ArrayBuffer]",fl="[object DataView]",ml="[object Float32Array]",dl="[object Float64Array]",pl="[object Int8Array]",vl="[object Int16Array]",hl="[object Int32Array]",bl="[object Uint8Array]",gl="[object Uint8ClampedArray]",yl="[object Uint16Array]",wl="[object Uint32Array]",Pe={};Pe[ml]=Pe[dl]=Pe[pl]=Pe[vl]=Pe[hl]=Pe[bl]=Pe[gl]=Pe[yl]=Pe[wl]=!0,Pe[Qu]=Pe[Zu]=Pe[cl]=Pe[Ju]=Pe[fl]=Pe[el]=Pe[tl]=Pe[rl]=Pe[nl]=Pe[al]=Pe[ol]=Pe[il]=Pe[sl]=Pe[ul]=Pe[ll]=!1;function xl(e){return Rt(e)&&ro(e.length)&&!!Pe[Mt(e)]}function Nn(e){return function(t){return e(t)}}var co=typeof ve=="object"&&ve&&!ve.nodeType&&ve,rr=co&&typeof module=="object"&&module&&!module.nodeType&&module,Tl=rr&&rr.exports===co,Pn=Tl&&Wa.process,El=function(){try{var e=rr&&rr.require&&rr.require("util").types;return e||Pn&&Pn.binding&&Pn.binding("util")}catch{}}();const jt=El;var fo=jt&&jt.isTypedArray,Sl=fo?Nn(fo):xl;const Nl=Sl;var Pl=Object.prototype,Dl=Pl.hasOwnProperty;function mo(e,t){var r=xn(e),n=!r&&Bu(e),a=!r&&!n&&lo(e),i=!r&&!n&&!a&&Nl(e),o=r||n||a||i,s=o?Yu(e.length,String):[],u=s.length;for(var l in e)(t||Dl.call(e,l))&&!(o&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ju(l,u)))&&s.push(l);return s}function po(e,t){return function(r){return e(t(r))}}var Cl=po(Object.keys,Object);const kl=Cl;var Ol=Object.prototype,Il=Ol.hasOwnProperty;function _l(e){if(!Sn(e))return kl(e);var t=[];for(var r in Object(e))Il.call(e,r)&&r!="constructor"&&t.push(r);return t}function Dn(e){return no(e)?mo(e):_l(e)}function Al(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Ml=Object.prototype,Rl=Ml.hasOwnProperty;function jl(e){if(!nt(e))return Al(e);var t=Sn(e),r=[];for(var n in e)n=="constructor"&&(t||!Rl.call(e,n))||r.push(n);return r}function Cn(e){return no(e)?mo(e,!0):jl(e)}var Vl=yt(Object,"create");const nr=Vl;function Ll(){this.__data__=nr?nr(null):{},this.size=0}function $l(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Fl="__lodash_hash_undefined__",Yl=Object.prototype,Hl=Yl.hasOwnProperty;function Ul(e){var t=this.__data__;if(nr){var r=t[e];return r===Fl?void 0:r}return Hl.call(t,e)?t[e]:void 0}var Wl=Object.prototype,zl=Wl.hasOwnProperty;function Bl(e){var t=this.__data__;return nr?t[e]!==void 0:zl.call(t,e)}var ql="__lodash_hash_undefined__";function Gl(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nr&&t===void 0?ql:t,this}function wt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wt.prototype.clear=Ll,wt.prototype.delete=$l,wt.prototype.get=Ul,wt.prototype.has=Bl,wt.prototype.set=Gl;function Xl(){this.__data__=[],this.size=0}function kr(e,t){for(var r=e.length;r--;)if(eo(e[r][0],t))return r;return-1}var Kl=Array.prototype,Ql=Kl.splice;function Zl(e){var t=this.__data__,r=kr(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ql.call(t,r,1),--this.size,!0}function Jl(e){var t=this.__data__,r=kr(t,e);return r<0?void 0:t[r][1]}function ec(e){return kr(this.__data__,e)>-1}function tc(e,t){var r=this.__data__,n=kr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function at(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}at.prototype.clear=Xl,at.prototype.delete=Zl,at.prototype.get=Jl,at.prototype.has=ec,at.prototype.set=tc;var rc=yt(Xe,"Map");const ar=rc;function nc(){this.size=0,this.__data__={hash:new wt,map:new(ar||at),string:new wt}}function ac(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Or(e,t){var r=e.__data__;return ac(t)?r[typeof t=="string"?"string":"hash"]:r.map}function oc(e){var t=Or(this,e).delete(e);return this.size-=t?1:0,t}function ic(e){return Or(this,e).get(e)}function sc(e){return Or(this,e).has(e)}function uc(e,t){var r=Or(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Vt.prototype.clear=nc,Vt.prototype.delete=oc,Vt.prototype.get=ic,Vt.prototype.has=sc,Vt.prototype.set=uc;function vo(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var lc=po(Object.getPrototypeOf,Object);const ho=lc;function cc(){this.__data__=new at,this.size=0}function fc(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function mc(e){return this.__data__.get(e)}function dc(e){return this.__data__.has(e)}var pc=200;function vc(e,t){var r=this.__data__;if(r instanceof at){var n=r.__data__;if(!ar||n.length<pc-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Vt(n)}return r.set(e,t),this.size=r.size,this}function Lt(e){var t=this.__data__=new at(e);this.size=t.size}Lt.prototype.clear=cc,Lt.prototype.delete=fc,Lt.prototype.get=mc,Lt.prototype.has=dc,Lt.prototype.set=vc;function hc(e,t){return e&&Cr(t,Dn(t),e)}function bc(e,t){return e&&Cr(t,Cn(t),e)}var bo=typeof ve=="object"&&ve&&!ve.nodeType&&ve,go=bo&&typeof module=="object"&&module&&!module.nodeType&&module,gc=go&&go.exports===bo,yo=gc?Xe.Buffer:void 0,wo=yo?yo.allocUnsafe:void 0;function yc(e,t){if(t)return e.slice();var r=e.length,n=wo?wo(r):new e.constructor(r);return e.copy(n),n}function wc(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}function xo(){return[]}var xc=Object.prototype,Tc=xc.propertyIsEnumerable,To=Object.getOwnPropertySymbols,Ec=To?function(e){return e==null?[]:(e=Object(e),wc(To(e),function(t){return Tc.call(e,t)}))}:xo;const kn=Ec;function Sc(e,t){return Cr(e,kn(e),t)}var Nc=Object.getOwnPropertySymbols,Pc=Nc?function(e){for(var t=[];e;)vo(t,kn(e)),e=ho(e);return t}:xo;const Eo=Pc;function Dc(e,t){return Cr(e,Eo(e),t)}function So(e,t,r){var n=t(e);return xn(e)?n:vo(n,r(e))}function Cc(e){return So(e,Dn,kn)}function kc(e){return So(e,Cn,Eo)}var Oc=yt(Xe,"DataView");const On=Oc;var Ic=yt(Xe,"Promise");const In=Ic;var _c=yt(Xe,"Set");const _n=_c;var No="[object Map]",Ac="[object Object]",Po="[object Promise]",Do="[object Set]",Co="[object WeakMap]",ko="[object DataView]",Mc=gt(On),Rc=gt(ar),jc=gt(In),Vc=gt(_n),Lc=gt(En),xt=Mt;(On&&xt(new On(new ArrayBuffer(1)))!=ko||ar&&xt(new ar)!=No||In&&xt(In.resolve())!=Po||_n&&xt(new _n)!=Do||En&&xt(new En)!=Co)&&(xt=function(e){var t=Mt(e),r=t==Ac?e.constructor:void 0,n=r?gt(r):"";if(n)switch(n){case Mc:return ko;case Rc:return No;case jc:return Po;case Vc:return Do;case Lc:return Co}return t});const An=xt;var $c=Object.prototype,Fc=$c.hasOwnProperty;function Yc(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Fc.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Hc=Xe.Uint8Array;const Oo=Hc;function Mn(e){var t=new e.constructor(e.byteLength);return new Oo(t).set(new Oo(e)),t}function Uc(e,t){var r=t?Mn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Wc=/\w*$/;function zc(e){var t=new e.constructor(e.source,Wc.exec(e));return t.lastIndex=e.lastIndex,t}var Io=At?At.prototype:void 0,_o=Io?Io.valueOf:void 0;function Bc(e){return _o?Object(_o.call(e)):{}}function qc(e,t){var r=t?Mn(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Gc="[object Boolean]",Xc="[object Date]",Kc="[object Map]",Qc="[object Number]",Zc="[object RegExp]",Jc="[object Set]",ef="[object String]",tf="[object Symbol]",rf="[object ArrayBuffer]",nf="[object DataView]",af="[object Float32Array]",of="[object Float64Array]",sf="[object Int8Array]",uf="[object Int16Array]",lf="[object Int32Array]",cf="[object Uint8Array]",ff="[object Uint8ClampedArray]",mf="[object Uint16Array]",df="[object Uint32Array]";function pf(e,t,r){var n=e.constructor;switch(t){case rf:return Mn(e);case Gc:case Xc:return new n(+e);case nf:return Uc(e,r);case af:case of:case sf:case uf:case lf:case cf:case ff:case mf:case df:return qc(e,r);case Kc:return new n;case Qc:case ef:return new n(e);case Zc:return zc(e);case Jc:return new n;case tf:return Bc(e)}}function vf(e){return typeof e.constructor=="function"&&!Sn(e)?Ou(ho(e)):{}}var hf="[object Map]";function bf(e){return Rt(e)&&An(e)==hf}var Ao=jt&&jt.isMap,gf=Ao?Nn(Ao):bf;const yf=gf;var wf="[object Set]";function xf(e){return Rt(e)&&An(e)==wf}var Mo=jt&&jt.isSet,Tf=Mo?Nn(Mo):xf;const Ef=Tf;var Sf=1,Nf=2,Pf=4,Ro="[object Arguments]",Df="[object Array]",Cf="[object Boolean]",kf="[object Date]",Of="[object Error]",jo="[object Function]",If="[object GeneratorFunction]",_f="[object Map]",Af="[object Number]",Vo="[object Object]",Mf="[object RegExp]",Rf="[object Set]",jf="[object String]",Vf="[object Symbol]",Lf="[object WeakMap]",$f="[object ArrayBuffer]",Ff="[object DataView]",Yf="[object Float32Array]",Hf="[object Float64Array]",Uf="[object Int8Array]",Wf="[object Int16Array]",zf="[object Int32Array]",Bf="[object Uint8Array]",qf="[object Uint8ClampedArray]",Gf="[object Uint16Array]",Xf="[object Uint32Array]",Se={};Se[Ro]=Se[Df]=Se[$f]=Se[Ff]=Se[Cf]=Se[kf]=Se[Yf]=Se[Hf]=Se[Uf]=Se[Wf]=Se[zf]=Se[_f]=Se[Af]=Se[Vo]=Se[Mf]=Se[Rf]=Se[jf]=Se[Vf]=Se[Bf]=Se[qf]=Se[Gf]=Se[Xf]=!0,Se[Of]=Se[jo]=Se[Lf]=!1;function Ir(e,t,r,n,a,i){var o,s=t&Sf,u=t&Nf,l=t&Pf;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!nt(e))return e;var f=xn(e);if(f){if(o=Yc(e),!s)return Iu(e,o)}else{var m=An(e),v=m==jo||m==If;if(lo(e))return yc(e,s);if(m==Vo||m==Ro||v&&!a){if(o=u||v?{}:vf(e),!s)return u?Dc(e,bc(o,e)):Sc(e,hc(o,e))}else{if(!Se[m])return a?e:{};o=pf(e,m,s)}}i||(i=new Lt);var p=i.get(e);if(p)return p;i.set(e,o),Ef(e)?e.forEach(function(y){o.add(Ir(y,t,r,y,e,i))}):yf(e)&&e.forEach(function(y,N){o.set(N,Ir(y,t,r,N,e,i))});var x=l?u?kc:Cc:u?Cn:Dn,T=f?void 0:x(e);return Au(T||e,function(y,N){T&&(N=y,y=e[N]),to(o,N,Ir(y,t,r,N,e,i))}),o}var Kf=1,Qf=4;function Zf(e){return Ir(e,Kf|Qf)}var Jf=function(){return Xe.Date.now()};const Rn=Jf;var em="Expected a function",tm=Math.max,rm=Math.min;function or(e,t,r){var n,a,i,o,s,u,l=0,f=!1,m=!1,v=!0;if(typeof e!="function")throw new TypeError(em);t=Ga(t)||0,nt(r)&&(f=!!r.leading,m="maxWait"in r,i=m?tm(Ga(r.maxWait)||0,t):i,v="trailing"in r?!!r.trailing:v);function p(Y){var Q=n,Z=a;return n=a=void 0,l=Y,o=e.apply(Z,Q),o}function x(Y){return l=Y,s=setTimeout(N,t),f?p(Y):o}function T(Y){var Q=Y-u,Z=Y-l,G=t-Q;return m?rm(G,i-Z):G}function y(Y){var Q=Y-u,Z=Y-l;return u===void 0||Q>=t||Q<0||m&&Z>=i}function N(){var Y=Rn();if(y(Y))return O(Y);s=setTimeout(N,T(Y))}function O(Y){return s=void 0,v&&n?p(Y):(n=a=void 0,o)}function $(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0}function U(){return s===void 0?o:O(Rn())}function h(){var Y=Rn(),Q=y(Y);if(n=arguments,a=this,u=Y,Q){if(s===void 0)return x(u);if(m)return clearTimeout(s),s=setTimeout(N,t),p(u)}return s===void 0&&(s=setTimeout(N,t)),o}return h.cancel=$,h.flush=U,h}var nm="Expected a function";function am(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(nm);return nt(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),or(e,t,{leading:n,maxWait:t,trailing:a})}const om=(e,t)=>{const{value:r,readOnly:n=!1,debounceTime:a=800,fillContainer:i=!0,leftElement:o,rightElement:s,className:u,leftElementClassName:l,rightElementClassName:f,isSingleLine:m=!0,allowSingleLineScroll:v=!1,placeholder:p,onFocus:x,onBlur:T,onInput:y,onInnerTextChange:N,onInnerHTMLChange:O,onElementCreate:$,onLeftElementClick:U,onRightElementClick:h}=e,Y=b.useRef("bsc-flex-grow focus:bsc-outline-none"),Q=b.useRef("bsc-text-gray-4"),Z=b.useRef(),G=b.useCallback(d=>{const C=d.target,F=C.innerHTML;C.className=`${Y.current}`,p&&F===p&&(C.innerHTML=""),x==null||x(d)},[p,x]),oe=b.useCallback(d=>{const C=d.target.innerHTML;if(p&&C===""){const F=d.target;F.innerHTML=p,F.className=`${Y.current} ${Q.current}`}T==null||T(d)},[p,T]),le=b.useCallback(d=>{var C,F;(C=Z.current)==null||C.removeEventListener("focus",G),(F=Z.current)==null||F.removeEventListener("blur",oe),p&&d&&d!==document.activeElement&&d.innerHTML===""&&(d.innerHTML=p,d.className=`${Y.current} ${Q.current}`),d.addEventListener("focus",G),d.addEventListener("blur",oe),Z.current=d},[p]),ce=b.useCallback(d=>{$==null||$(d)},[$]),S=d=>{U==null||U(d)},X=d=>{h==null||h(d)},J=or(d=>{y==null||y(d),N==null||N(d.target.innerText),O==null||O(d.target.innerHTML)},a),z=b.useCallback(d=>{Z.current&&(Z.current.innerText=d)},[]),ne=b.useCallback(d=>{Z.current&&(Z.current.innerHTML=d)},[]),H=b.useCallback(()=>{var d;(d=Z.current)==null||d.focus()},[]);b.useImperativeHandle(t,()=>({inputElement:Z.current,setInnerText:z,setInnerHTML:ne,focus:H}));const pe=ft({"bsc-w-full ":i},"bsc-flex bsc-flex-row bsc-shadow-sm bsc-border bsc-border-solid bsc-border-gray-3 dark:bsc-border-white dark:bsc-bg-mono-dark-1 dark:bsc-text-mono-light-1 bsc-rounded-md bsc-p-2",{"bsc-overflow-x-auto bsc-overflow-y-hidden bsc-whitespace-pre":m&&v,"bsc-overflow-hidden bsc-whitespace-pre":m&&!v},u),g=ft("bsc-flex-shrink",{"bsc-mr-2":o},l),P=ft("bsc-flex-shrink",{"bsc-ml-2":s},f);return w.jsxDEV("div",{className:pe,ref:d=>d&&ce(d),children:[o&&w.jsxDEV("div",{className:g,onClick:S,children:o},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/inputs/content-editable-input/content-editable-input.component.tsx",lineNumber:176,columnNumber:9},globalThis),w.jsxDEV("div",{ref:d=>d&&le(d),className:Y.current,contentEditable:!n,suppressContentEditableWarning:!0,onInput:J,children:r},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/inputs/content-editable-input/content-editable-input.component.tsx",lineNumber:180,columnNumber:7},globalThis),s&&w.jsxDEV("div",{className:P,onClick:X,children:s},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/inputs/content-editable-input/content-editable-input.component.tsx",lineNumber:190,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/inputs/content-editable-input/content-editable-input.component.tsx",lineNumber:174,columnNumber:5},globalThis)},jn=b.forwardRef(om);function Lo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lo(Object(r),!0).forEach(function(n){$e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lo(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _r(e){"@babel/helpers - typeof";return _r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_r(e)}function im(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function sm(e,t,r){return t&&$o(e.prototype,t),r&&$o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vn(e,t){return lm(e)||fm(e,t)||Fo(e,t)||dm()}function ir(e){return um(e)||cm(e)||Fo(e)||mm()}function um(e){if(Array.isArray(e))return Ln(e)}function lm(e){if(Array.isArray(e))return e}function cm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fm(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,i=!1,o,s;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));a=!0);}catch(u){i=!0,s=u}finally{try{!a&&r.return!=null&&r.return()}finally{if(i)throw s}}return n}}function Fo(e,t){if(e){if(typeof e=="string")return Ln(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ln(e,t)}}function Ln(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
32
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Yo=function(){},$n={},Ho={},Uo=null,Wo={mark:Yo,measure:Yo};try{typeof window<"u"&&($n=window),typeof document<"u"&&(Ho=document),typeof MutationObserver<"u"&&(Uo=MutationObserver),typeof performance<"u"&&(Wo=performance)}catch{}var pm=$n.navigator||{},zo=pm.userAgent,Bo=zo===void 0?"":zo,mt=$n,De=Ho,qo=Uo,Ar=Wo;mt.document;var ot=!!De.documentElement&&!!De.head&&typeof De.addEventListener=="function"&&typeof De.createElement=="function",Go=~Bo.indexOf("MSIE")||~Bo.indexOf("Trident/"),Mr,Rr,jr,Vr,Lr,it="___FONT_AWESOME___",Fn=16,Xo="fa",Ko="svg-inline--fa",Tt="data-fa-i2svg",Yn="data-fa-pseudo-element",vm="data-fa-pseudo-element-pending",Hn="data-prefix",Un="data-icon",Qo="fontawesome-i2svg",hm="async",bm=["HTML","HEAD","STYLE","SCRIPT"],Zo=function(){try{return process.env.NODE_ENV==="production"}catch{return!1}}(),Ce="classic",Oe="sharp",Wn=[Ce,Oe];function sr(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[Ce]}})}var ur=sr((Mr={},$e(Mr,Ce,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),$e(Mr,Oe,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Mr)),lr=sr((Rr={},$e(Rr,Ce,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),$e(Rr,Oe,{solid:"fass",regular:"fasr",light:"fasl"}),Rr)),cr=sr((jr={},$e(jr,Ce,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),$e(jr,Oe,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),jr)),gm=sr((Vr={},$e(Vr,Ce,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),$e(Vr,Oe,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),Vr)),ym=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,Jo="fa-layers-text",wm=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,xm=sr((Lr={},$e(Lr,Ce,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),$e(Lr,Oe,{900:"fass",400:"fasr",300:"fasl"}),Lr)),ei=[1,2,3,4,5,6,7,8,9,10],Tm=ei.concat([11,12,13,14,15,16,17,18,19,20]),Em=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Et={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},fr=new Set;Object.keys(lr[Ce]).map(fr.add.bind(fr)),Object.keys(lr[Oe]).map(fr.add.bind(fr));var Sm=[].concat(Wn,ir(fr),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Et.GROUP,Et.SWAP_OPACITY,Et.PRIMARY,Et.SECONDARY]).concat(ei.map(function(e){return"".concat(e,"x")})).concat(Tm.map(function(e){return"w-".concat(e)})),mr=mt.FontAwesomeConfig||{};function Nm(e){var t=De.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Pm(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(De&&typeof De.querySelector=="function"){var Dm=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Dm.forEach(function(e){var t=Vn(e,2),r=t[0],n=t[1],a=Pm(Nm(r));a!=null&&(mr[n]=a)})}var ti={styleDefault:"solid",familyDefault:"classic",cssPrefix:Xo,replacementClass:Ko,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};mr.familyPrefix&&(mr.cssPrefix=mr.familyPrefix);var $t=V(V({},ti),mr);$t.autoReplaceSvg||($t.observeMutations=!1);var W={};Object.keys(ti).forEach(function(e){Object.defineProperty(W,e,{enumerable:!0,set:function(r){$t[e]=r,dr.forEach(function(n){return n(W)})},get:function(){return $t[e]}})}),Object.defineProperty(W,"familyPrefix",{enumerable:!0,set:function(t){$t.cssPrefix=t,dr.forEach(function(r){return r(W)})},get:function(){return $t.cssPrefix}}),mt.FontAwesomeConfig=W;var dr=[];function Cm(e){return dr.push(e),function(){dr.splice(dr.indexOf(e),1)}}var dt=Fn,Ze={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function km(e){if(!(!e||!ot)){var t=De.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=De.head.childNodes,n=null,a=r.length-1;a>-1;a--){var i=r[a],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(n=i)}return De.head.insertBefore(t,n),e}}var Om="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function pr(){for(var e=12,t="";e-- >0;)t+=Om[Math.random()*62|0];return t}function Ft(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function zn(e){return e.classList?Ft(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function ri(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Im(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(ri(e[r]),'" ')},"").trim()}function $r(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function Bn(e){return e.size!==Ze.size||e.x!==Ze.x||e.y!==Ze.y||e.rotate!==Ze.rotate||e.flipX||e.flipY}function _m(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,a={transform:"translate(".concat(r/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),u={transform:"".concat(i," ").concat(o," ").concat(s)},l={transform:"translate(".concat(n/2*-1," -256)")};return{outer:a,inner:u,path:l}}function Am(e){var t=e.transform,r=e.width,n=r===void 0?Fn:r,a=e.height,i=a===void 0?Fn:a,o=e.startCentered,s=o===void 0?!1:o,u="";return s&&Go?u+="translate(".concat(t.x/dt-n/2,"em, ").concat(t.y/dt-i/2,"em) "):s?u+="translate(calc(-50% + ".concat(t.x/dt,"em), calc(-50% + ").concat(t.y/dt,"em)) "):u+="translate(".concat(t.x/dt,"em, ").concat(t.y/dt,"em) "),u+="scale(".concat(t.size/dt*(t.flipX?-1:1),", ").concat(t.size/dt*(t.flipY?-1:1),") "),u+="rotate(".concat(t.rotate,"deg) "),u}var Mm=`:root, :host {
34
- --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
35
- --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
36
- --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
37
- --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
38
- --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
39
- --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
40
- --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
41
- --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
42
- --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
43
- }
44
-
45
- svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
46
- overflow: visible;
47
- box-sizing: content-box;
48
- }
49
-
50
- .svg-inline--fa {
51
- display: var(--fa-display, inline-block);
52
- height: 1em;
53
- overflow: visible;
54
- vertical-align: -0.125em;
55
- }
56
- .svg-inline--fa.fa-2xs {
57
- vertical-align: 0.1em;
58
- }
59
- .svg-inline--fa.fa-xs {
60
- vertical-align: 0em;
61
- }
62
- .svg-inline--fa.fa-sm {
63
- vertical-align: -0.0714285705em;
64
- }
65
- .svg-inline--fa.fa-lg {
66
- vertical-align: -0.2em;
67
- }
68
- .svg-inline--fa.fa-xl {
69
- vertical-align: -0.25em;
70
- }
71
- .svg-inline--fa.fa-2xl {
72
- vertical-align: -0.3125em;
73
- }
74
- .svg-inline--fa.fa-pull-left {
75
- margin-right: var(--fa-pull-margin, 0.3em);
76
- width: auto;
77
- }
78
- .svg-inline--fa.fa-pull-right {
79
- margin-left: var(--fa-pull-margin, 0.3em);
80
- width: auto;
81
- }
82
- .svg-inline--fa.fa-li {
83
- width: var(--fa-li-width, 2em);
84
- top: 0.25em;
85
- }
86
- .svg-inline--fa.fa-fw {
87
- width: var(--fa-fw-width, 1.25em);
88
- }
89
-
90
- .fa-layers svg.svg-inline--fa {
91
- bottom: 0;
92
- left: 0;
93
- margin: auto;
94
- position: absolute;
95
- right: 0;
96
- top: 0;
97
- }
98
-
99
- .fa-layers-counter, .fa-layers-text {
100
- display: inline-block;
101
- position: absolute;
102
- text-align: center;
103
- }
104
-
105
- .fa-layers {
106
- display: inline-block;
107
- height: 1em;
108
- position: relative;
109
- text-align: center;
110
- vertical-align: -0.125em;
111
- width: 1em;
112
- }
113
- .fa-layers svg.svg-inline--fa {
114
- -webkit-transform-origin: center center;
115
- transform-origin: center center;
116
- }
117
-
118
- .fa-layers-text {
119
- left: 50%;
120
- top: 50%;
121
- -webkit-transform: translate(-50%, -50%);
122
- transform: translate(-50%, -50%);
123
- -webkit-transform-origin: center center;
124
- transform-origin: center center;
125
- }
126
-
127
- .fa-layers-counter {
128
- background-color: var(--fa-counter-background-color, #ff253a);
129
- border-radius: var(--fa-counter-border-radius, 1em);
130
- box-sizing: border-box;
131
- color: var(--fa-inverse, #fff);
132
- line-height: var(--fa-counter-line-height, 1);
133
- max-width: var(--fa-counter-max-width, 5em);
134
- min-width: var(--fa-counter-min-width, 1.5em);
135
- overflow: hidden;
136
- padding: var(--fa-counter-padding, 0.25em 0.5em);
137
- right: var(--fa-right, 0);
138
- text-overflow: ellipsis;
139
- top: var(--fa-top, 0);
140
- -webkit-transform: scale(var(--fa-counter-scale, 0.25));
141
- transform: scale(var(--fa-counter-scale, 0.25));
142
- -webkit-transform-origin: top right;
143
- transform-origin: top right;
144
- }
145
-
146
- .fa-layers-bottom-right {
147
- bottom: var(--fa-bottom, 0);
148
- right: var(--fa-right, 0);
149
- top: auto;
150
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
151
- transform: scale(var(--fa-layers-scale, 0.25));
152
- -webkit-transform-origin: bottom right;
153
- transform-origin: bottom right;
154
- }
155
-
156
- .fa-layers-bottom-left {
157
- bottom: var(--fa-bottom, 0);
158
- left: var(--fa-left, 0);
159
- right: auto;
160
- top: auto;
161
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
162
- transform: scale(var(--fa-layers-scale, 0.25));
163
- -webkit-transform-origin: bottom left;
164
- transform-origin: bottom left;
165
- }
166
-
167
- .fa-layers-top-right {
168
- top: var(--fa-top, 0);
169
- right: var(--fa-right, 0);
170
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
171
- transform: scale(var(--fa-layers-scale, 0.25));
172
- -webkit-transform-origin: top right;
173
- transform-origin: top right;
174
- }
175
-
176
- .fa-layers-top-left {
177
- left: var(--fa-left, 0);
178
- right: auto;
179
- top: var(--fa-top, 0);
180
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
181
- transform: scale(var(--fa-layers-scale, 0.25));
182
- -webkit-transform-origin: top left;
183
- transform-origin: top left;
184
- }
185
-
186
- .fa-1x {
187
- font-size: 1em;
188
- }
189
-
190
- .fa-2x {
191
- font-size: 2em;
192
- }
193
-
194
- .fa-3x {
195
- font-size: 3em;
196
- }
197
-
198
- .fa-4x {
199
- font-size: 4em;
200
- }
201
-
202
- .fa-5x {
203
- font-size: 5em;
204
- }
205
-
206
- .fa-6x {
207
- font-size: 6em;
208
- }
209
-
210
- .fa-7x {
211
- font-size: 7em;
212
- }
213
-
214
- .fa-8x {
215
- font-size: 8em;
216
- }
217
-
218
- .fa-9x {
219
- font-size: 9em;
220
- }
221
-
222
- .fa-10x {
223
- font-size: 10em;
224
- }
225
-
226
- .fa-2xs {
227
- font-size: 0.625em;
228
- line-height: 0.1em;
229
- vertical-align: 0.225em;
230
- }
231
-
232
- .fa-xs {
233
- font-size: 0.75em;
234
- line-height: 0.0833333337em;
235
- vertical-align: 0.125em;
236
- }
237
-
238
- .fa-sm {
239
- font-size: 0.875em;
240
- line-height: 0.0714285718em;
241
- vertical-align: 0.0535714295em;
242
- }
243
-
244
- .fa-lg {
245
- font-size: 1.25em;
246
- line-height: 0.05em;
247
- vertical-align: -0.075em;
248
- }
249
-
250
- .fa-xl {
251
- font-size: 1.5em;
252
- line-height: 0.0416666682em;
253
- vertical-align: -0.125em;
254
- }
255
-
256
- .fa-2xl {
257
- font-size: 2em;
258
- line-height: 0.03125em;
259
- vertical-align: -0.1875em;
260
- }
261
-
262
- .fa-fw {
263
- text-align: center;
264
- width: 1.25em;
265
- }
266
-
267
- .fa-ul {
268
- list-style-type: none;
269
- margin-left: var(--fa-li-margin, 2.5em);
270
- padding-left: 0;
271
- }
272
- .fa-ul > li {
273
- position: relative;
274
- }
275
-
276
- .fa-li {
277
- left: calc(var(--fa-li-width, 2em) * -1);
278
- position: absolute;
279
- text-align: center;
280
- width: var(--fa-li-width, 2em);
281
- line-height: inherit;
282
- }
283
-
284
- .fa-border {
285
- border-color: var(--fa-border-color, #eee);
286
- border-radius: var(--fa-border-radius, 0.1em);
287
- border-style: var(--fa-border-style, solid);
288
- border-width: var(--fa-border-width, 0.08em);
289
- padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
290
- }
291
-
292
- .fa-pull-left {
293
- float: left;
294
- margin-right: var(--fa-pull-margin, 0.3em);
295
- }
296
-
297
- .fa-pull-right {
298
- float: right;
299
- margin-left: var(--fa-pull-margin, 0.3em);
300
- }
301
-
302
- .fa-beat {
303
- -webkit-animation-name: fa-beat;
304
- animation-name: fa-beat;
305
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
306
- animation-delay: var(--fa-animation-delay, 0s);
307
- -webkit-animation-direction: var(--fa-animation-direction, normal);
308
- animation-direction: var(--fa-animation-direction, normal);
309
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
310
- animation-duration: var(--fa-animation-duration, 1s);
311
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
312
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
313
- -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
314
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
315
- }
316
-
317
- .fa-bounce {
318
- -webkit-animation-name: fa-bounce;
319
- animation-name: fa-bounce;
320
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
321
- animation-delay: var(--fa-animation-delay, 0s);
322
- -webkit-animation-direction: var(--fa-animation-direction, normal);
323
- animation-direction: var(--fa-animation-direction, normal);
324
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
325
- animation-duration: var(--fa-animation-duration, 1s);
326
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
327
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
328
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
329
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
330
- }
331
-
332
- .fa-fade {
333
- -webkit-animation-name: fa-fade;
334
- animation-name: fa-fade;
335
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
336
- animation-delay: var(--fa-animation-delay, 0s);
337
- -webkit-animation-direction: var(--fa-animation-direction, normal);
338
- animation-direction: var(--fa-animation-direction, normal);
339
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
340
- animation-duration: var(--fa-animation-duration, 1s);
341
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
342
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
343
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
344
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
345
- }
346
-
347
- .fa-beat-fade {
348
- -webkit-animation-name: fa-beat-fade;
349
- animation-name: fa-beat-fade;
350
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
351
- animation-delay: var(--fa-animation-delay, 0s);
352
- -webkit-animation-direction: var(--fa-animation-direction, normal);
353
- animation-direction: var(--fa-animation-direction, normal);
354
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
355
- animation-duration: var(--fa-animation-duration, 1s);
356
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
357
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
358
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
359
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
360
- }
361
-
362
- .fa-flip {
363
- -webkit-animation-name: fa-flip;
364
- animation-name: fa-flip;
365
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
366
- animation-delay: var(--fa-animation-delay, 0s);
367
- -webkit-animation-direction: var(--fa-animation-direction, normal);
368
- animation-direction: var(--fa-animation-direction, normal);
369
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
370
- animation-duration: var(--fa-animation-duration, 1s);
371
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
372
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
373
- -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
374
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
375
- }
376
-
377
- .fa-shake {
378
- -webkit-animation-name: fa-shake;
379
- animation-name: fa-shake;
380
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
381
- animation-delay: var(--fa-animation-delay, 0s);
382
- -webkit-animation-direction: var(--fa-animation-direction, normal);
383
- animation-direction: var(--fa-animation-direction, normal);
384
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
385
- animation-duration: var(--fa-animation-duration, 1s);
386
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
387
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
388
- -webkit-animation-timing-function: var(--fa-animation-timing, linear);
389
- animation-timing-function: var(--fa-animation-timing, linear);
390
- }
391
-
392
- .fa-spin {
393
- -webkit-animation-name: fa-spin;
394
- animation-name: fa-spin;
395
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
396
- animation-delay: var(--fa-animation-delay, 0s);
397
- -webkit-animation-direction: var(--fa-animation-direction, normal);
398
- animation-direction: var(--fa-animation-direction, normal);
399
- -webkit-animation-duration: var(--fa-animation-duration, 2s);
400
- animation-duration: var(--fa-animation-duration, 2s);
401
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
402
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
403
- -webkit-animation-timing-function: var(--fa-animation-timing, linear);
404
- animation-timing-function: var(--fa-animation-timing, linear);
405
- }
406
-
407
- .fa-spin-reverse {
408
- --fa-animation-direction: reverse;
409
- }
410
-
411
- .fa-pulse,
412
- .fa-spin-pulse {
413
- -webkit-animation-name: fa-spin;
414
- animation-name: fa-spin;
415
- -webkit-animation-direction: var(--fa-animation-direction, normal);
416
- animation-direction: var(--fa-animation-direction, normal);
417
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
418
- animation-duration: var(--fa-animation-duration, 1s);
419
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
420
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
421
- -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
422
- animation-timing-function: var(--fa-animation-timing, steps(8));
423
- }
424
-
425
- @media (prefers-reduced-motion: reduce) {
426
- .fa-beat,
427
- .fa-bounce,
428
- .fa-fade,
429
- .fa-beat-fade,
430
- .fa-flip,
431
- .fa-pulse,
432
- .fa-shake,
433
- .fa-spin,
434
- .fa-spin-pulse {
435
- -webkit-animation-delay: -1ms;
436
- animation-delay: -1ms;
437
- -webkit-animation-duration: 1ms;
438
- animation-duration: 1ms;
439
- -webkit-animation-iteration-count: 1;
440
- animation-iteration-count: 1;
441
- -webkit-transition-delay: 0s;
442
- transition-delay: 0s;
443
- -webkit-transition-duration: 0s;
444
- transition-duration: 0s;
445
- }
446
- }
447
- @-webkit-keyframes fa-beat {
448
- 0%, 90% {
449
- -webkit-transform: scale(1);
450
- transform: scale(1);
451
- }
452
- 45% {
453
- -webkit-transform: scale(var(--fa-beat-scale, 1.25));
454
- transform: scale(var(--fa-beat-scale, 1.25));
455
- }
456
- }
457
- @keyframes fa-beat {
458
- 0%, 90% {
459
- -webkit-transform: scale(1);
460
- transform: scale(1);
461
- }
462
- 45% {
463
- -webkit-transform: scale(var(--fa-beat-scale, 1.25));
464
- transform: scale(var(--fa-beat-scale, 1.25));
465
- }
466
- }
467
- @-webkit-keyframes fa-bounce {
468
- 0% {
469
- -webkit-transform: scale(1, 1) translateY(0);
470
- transform: scale(1, 1) translateY(0);
471
- }
472
- 10% {
473
- -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
474
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
475
- }
476
- 30% {
477
- -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
478
- transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
479
- }
480
- 50% {
481
- -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
482
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
483
- }
484
- 57% {
485
- -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
486
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
487
- }
488
- 64% {
489
- -webkit-transform: scale(1, 1) translateY(0);
490
- transform: scale(1, 1) translateY(0);
491
- }
492
- 100% {
493
- -webkit-transform: scale(1, 1) translateY(0);
494
- transform: scale(1, 1) translateY(0);
495
- }
496
- }
497
- @keyframes fa-bounce {
498
- 0% {
499
- -webkit-transform: scale(1, 1) translateY(0);
500
- transform: scale(1, 1) translateY(0);
501
- }
502
- 10% {
503
- -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
504
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
505
- }
506
- 30% {
507
- -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
508
- transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
509
- }
510
- 50% {
511
- -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
512
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
513
- }
514
- 57% {
515
- -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
516
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
517
- }
518
- 64% {
519
- -webkit-transform: scale(1, 1) translateY(0);
520
- transform: scale(1, 1) translateY(0);
521
- }
522
- 100% {
523
- -webkit-transform: scale(1, 1) translateY(0);
524
- transform: scale(1, 1) translateY(0);
525
- }
526
- }
527
- @-webkit-keyframes fa-fade {
528
- 50% {
529
- opacity: var(--fa-fade-opacity, 0.4);
530
- }
531
- }
532
- @keyframes fa-fade {
533
- 50% {
534
- opacity: var(--fa-fade-opacity, 0.4);
535
- }
536
- }
537
- @-webkit-keyframes fa-beat-fade {
538
- 0%, 100% {
539
- opacity: var(--fa-beat-fade-opacity, 0.4);
540
- -webkit-transform: scale(1);
541
- transform: scale(1);
542
- }
543
- 50% {
544
- opacity: 1;
545
- -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
546
- transform: scale(var(--fa-beat-fade-scale, 1.125));
547
- }
548
- }
549
- @keyframes fa-beat-fade {
550
- 0%, 100% {
551
- opacity: var(--fa-beat-fade-opacity, 0.4);
552
- -webkit-transform: scale(1);
553
- transform: scale(1);
554
- }
555
- 50% {
556
- opacity: 1;
557
- -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
558
- transform: scale(var(--fa-beat-fade-scale, 1.125));
559
- }
560
- }
561
- @-webkit-keyframes fa-flip {
562
- 50% {
563
- -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
564
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
565
- }
566
- }
567
- @keyframes fa-flip {
568
- 50% {
569
- -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
570
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
571
- }
572
- }
573
- @-webkit-keyframes fa-shake {
574
- 0% {
575
- -webkit-transform: rotate(-15deg);
576
- transform: rotate(-15deg);
577
- }
578
- 4% {
579
- -webkit-transform: rotate(15deg);
580
- transform: rotate(15deg);
581
- }
582
- 8%, 24% {
583
- -webkit-transform: rotate(-18deg);
584
- transform: rotate(-18deg);
585
- }
586
- 12%, 28% {
587
- -webkit-transform: rotate(18deg);
588
- transform: rotate(18deg);
589
- }
590
- 16% {
591
- -webkit-transform: rotate(-22deg);
592
- transform: rotate(-22deg);
593
- }
594
- 20% {
595
- -webkit-transform: rotate(22deg);
596
- transform: rotate(22deg);
597
- }
598
- 32% {
599
- -webkit-transform: rotate(-12deg);
600
- transform: rotate(-12deg);
601
- }
602
- 36% {
603
- -webkit-transform: rotate(12deg);
604
- transform: rotate(12deg);
605
- }
606
- 40%, 100% {
607
- -webkit-transform: rotate(0deg);
608
- transform: rotate(0deg);
609
- }
610
- }
611
- @keyframes fa-shake {
612
- 0% {
613
- -webkit-transform: rotate(-15deg);
614
- transform: rotate(-15deg);
615
- }
616
- 4% {
617
- -webkit-transform: rotate(15deg);
618
- transform: rotate(15deg);
619
- }
620
- 8%, 24% {
621
- -webkit-transform: rotate(-18deg);
622
- transform: rotate(-18deg);
623
- }
624
- 12%, 28% {
625
- -webkit-transform: rotate(18deg);
626
- transform: rotate(18deg);
627
- }
628
- 16% {
629
- -webkit-transform: rotate(-22deg);
630
- transform: rotate(-22deg);
631
- }
632
- 20% {
633
- -webkit-transform: rotate(22deg);
634
- transform: rotate(22deg);
635
- }
636
- 32% {
637
- -webkit-transform: rotate(-12deg);
638
- transform: rotate(-12deg);
639
- }
640
- 36% {
641
- -webkit-transform: rotate(12deg);
642
- transform: rotate(12deg);
643
- }
644
- 40%, 100% {
645
- -webkit-transform: rotate(0deg);
646
- transform: rotate(0deg);
647
- }
648
- }
649
- @-webkit-keyframes fa-spin {
650
- 0% {
651
- -webkit-transform: rotate(0deg);
652
- transform: rotate(0deg);
653
- }
654
- 100% {
655
- -webkit-transform: rotate(360deg);
656
- transform: rotate(360deg);
657
- }
658
- }
659
- @keyframes fa-spin {
660
- 0% {
661
- -webkit-transform: rotate(0deg);
662
- transform: rotate(0deg);
663
- }
664
- 100% {
665
- -webkit-transform: rotate(360deg);
666
- transform: rotate(360deg);
667
- }
668
- }
669
- .fa-rotate-90 {
670
- -webkit-transform: rotate(90deg);
671
- transform: rotate(90deg);
672
- }
673
-
674
- .fa-rotate-180 {
675
- -webkit-transform: rotate(180deg);
676
- transform: rotate(180deg);
677
- }
678
-
679
- .fa-rotate-270 {
680
- -webkit-transform: rotate(270deg);
681
- transform: rotate(270deg);
682
- }
683
-
684
- .fa-flip-horizontal {
685
- -webkit-transform: scale(-1, 1);
686
- transform: scale(-1, 1);
687
- }
688
-
689
- .fa-flip-vertical {
690
- -webkit-transform: scale(1, -1);
691
- transform: scale(1, -1);
692
- }
693
-
694
- .fa-flip-both,
695
- .fa-flip-horizontal.fa-flip-vertical {
696
- -webkit-transform: scale(-1, -1);
697
- transform: scale(-1, -1);
698
- }
699
-
700
- .fa-rotate-by {
701
- -webkit-transform: rotate(var(--fa-rotate-angle, none));
702
- transform: rotate(var(--fa-rotate-angle, none));
703
- }
704
-
705
- .fa-stack {
706
- display: inline-block;
707
- vertical-align: middle;
708
- height: 2em;
709
- position: relative;
710
- width: 2.5em;
711
- }
712
-
713
- .fa-stack-1x,
714
- .fa-stack-2x {
715
- bottom: 0;
716
- left: 0;
717
- margin: auto;
718
- position: absolute;
719
- right: 0;
720
- top: 0;
721
- z-index: var(--fa-stack-z-index, auto);
722
- }
723
-
724
- .svg-inline--fa.fa-stack-1x {
725
- height: 1em;
726
- width: 1.25em;
727
- }
728
- .svg-inline--fa.fa-stack-2x {
729
- height: 2em;
730
- width: 2.5em;
731
- }
732
-
733
- .fa-inverse {
734
- color: var(--fa-inverse, #fff);
735
- }
736
-
737
- .sr-only,
738
- .fa-sr-only {
739
- position: absolute;
740
- width: 1px;
741
- height: 1px;
742
- padding: 0;
743
- margin: -1px;
744
- overflow: hidden;
745
- clip: rect(0, 0, 0, 0);
746
- white-space: nowrap;
747
- border-width: 0;
748
- }
749
-
750
- .sr-only-focusable:not(:focus),
751
- .fa-sr-only-focusable:not(:focus) {
752
- position: absolute;
753
- width: 1px;
754
- height: 1px;
755
- padding: 0;
756
- margin: -1px;
757
- overflow: hidden;
758
- clip: rect(0, 0, 0, 0);
759
- white-space: nowrap;
760
- border-width: 0;
761
- }
762
-
763
- .svg-inline--fa .fa-primary {
764
- fill: var(--fa-primary-color, currentColor);
765
- opacity: var(--fa-primary-opacity, 1);
766
- }
767
-
768
- .svg-inline--fa .fa-secondary {
769
- fill: var(--fa-secondary-color, currentColor);
770
- opacity: var(--fa-secondary-opacity, 0.4);
771
- }
772
-
773
- .svg-inline--fa.fa-swap-opacity .fa-primary {
774
- opacity: var(--fa-secondary-opacity, 0.4);
775
- }
776
-
777
- .svg-inline--fa.fa-swap-opacity .fa-secondary {
778
- opacity: var(--fa-primary-opacity, 1);
779
- }
780
-
781
- .svg-inline--fa mask .fa-primary,
782
- .svg-inline--fa mask .fa-secondary {
783
- fill: black;
784
- }
785
-
786
- .fad.fa-inverse,
787
- .fa-duotone.fa-inverse {
788
- color: var(--fa-inverse, #fff);
789
- }`;function ni(){var e=Xo,t=Ko,r=W.cssPrefix,n=W.replacementClass,a=Mm;if(r!==e||n!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(r,"-")).replace(o,"--".concat(r,"-")).replace(s,".".concat(n))}return a}var ai=!1;function qn(){W.autoAddCss&&!ai&&(km(ni()),ai=!0)}var Rm={mixout:function(){return{dom:{css:ni,insertCss:qn}}},hooks:function(){return{beforeDOMElementCreation:function(){qn()},beforeI2svg:function(){qn()}}}},st=mt||{};st[it]||(st[it]={}),st[it].styles||(st[it].styles={}),st[it].hooks||(st[it].hooks={}),st[it].shims||(st[it].shims=[]);var Ke=st[it],oi=[],jm=function e(){De.removeEventListener("DOMContentLoaded",e),Fr=1,oi.map(function(t){return t()})},Fr=!1;ot&&(Fr=(De.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(De.readyState),Fr||De.addEventListener("DOMContentLoaded",jm));function Vm(e){ot&&(Fr?setTimeout(e,0):oi.push(e))}function vr(e){var t=e.tag,r=e.attributes,n=r===void 0?{}:r,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?ri(e):"<".concat(t," ").concat(Im(n),">").concat(i.map(vr).join(""),"</").concat(t,">")}function ii(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var Lm=function(t,r){return function(n,a,i,o){return t.call(r,n,a,i,o)}},Gn=function(t,r,n,a){var i=Object.keys(t),o=i.length,s=a!==void 0?Lm(r,a):r,u,l,f;for(n===void 0?(u=1,f=t[i[0]]):(u=0,f=n);u<o;u++)l=i[u],f=s(f,t[l],l,t);return f};function $m(e){for(var t=[],r=0,n=e.length;r<n;){var a=e.charCodeAt(r++);if(a>=55296&&a<=56319&&r<n){var i=e.charCodeAt(r++);(i&64512)==56320?t.push(((a&1023)<<10)+(i&1023)+65536):(t.push(a),r--)}else t.push(a)}return t}function Xn(e){var t=$m(e);return t.length===1?t[0].toString(16):null}function Fm(e,t){var r=e.length,n=e.charCodeAt(t),a;return n>=55296&&n<=56319&&r>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(n-55296)*1024+a-56320+65536:n}function si(e){return Object.keys(e).reduce(function(t,r){var n=e[r],a=!!n.icon;return a?t[n.iconName]=n.icon:t[r]=n,t},{})}function Kn(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,a=n===void 0?!1:n,i=si(t);typeof Ke.hooks.addPack=="function"&&!a?Ke.hooks.addPack(e,si(t)):Ke.styles[e]=V(V({},Ke.styles[e]||{}),i),e==="fas"&&Kn("fa",t)}var Yr,Hr,Ur,Yt=Ke.styles,Ym=Ke.shims,Hm=(Yr={},$e(Yr,Ce,Object.values(cr[Ce])),$e(Yr,Oe,Object.values(cr[Oe])),Yr),Qn=null,ui={},li={},ci={},fi={},mi={},Um=(Hr={},$e(Hr,Ce,Object.keys(ur[Ce])),$e(Hr,Oe,Object.keys(ur[Oe])),Hr);function Wm(e){return~Sm.indexOf(e)}function zm(e,t){var r=t.split("-"),n=r[0],a=r.slice(1).join("-");return n===e&&a!==""&&!Wm(a)?a:null}var di=function(){var t=function(i){return Gn(Yt,function(o,s,u){return o[u]=Gn(s,i,{}),o},{})};ui=t(function(a,i,o){if(i[3]&&(a[i[3]]=o),i[2]){var s=i[2].filter(function(u){return typeof u=="number"});s.forEach(function(u){a[u.toString(16)]=o})}return a}),li=t(function(a,i,o){if(a[o]=o,i[2]){var s=i[2].filter(function(u){return typeof u=="string"});s.forEach(function(u){a[u]=o})}return a}),mi=t(function(a,i,o){var s=i[2];return a[o]=o,s.forEach(function(u){a[u]=o}),a});var r="far"in Yt||W.autoFetchSvg,n=Gn(Ym,function(a,i){var o=i[0],s=i[1],u=i[2];return s==="far"&&!r&&(s="fas"),typeof o=="string"&&(a.names[o]={prefix:s,iconName:u}),typeof o=="number"&&(a.unicodes[o.toString(16)]={prefix:s,iconName:u}),a},{names:{},unicodes:{}});ci=n.names,fi=n.unicodes,Qn=Wr(W.styleDefault,{family:W.familyDefault})};Cm(function(e){Qn=Wr(e.styleDefault,{family:W.familyDefault})}),di();function Zn(e,t){return(ui[e]||{})[t]}function Bm(e,t){return(li[e]||{})[t]}function St(e,t){return(mi[e]||{})[t]}function pi(e){return ci[e]||{prefix:null,iconName:null}}function qm(e){var t=fi[e],r=Zn("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function pt(){return Qn}var Jn=function(){return{prefix:null,iconName:null,rest:[]}};function Wr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.family,n=r===void 0?Ce:r,a=ur[n][e],i=lr[n][e]||lr[n][a],o=e in Ke.styles?e:null;return i||o||null}var vi=(Ur={},$e(Ur,Ce,Object.keys(cr[Ce])),$e(Ur,Oe,Object.keys(cr[Oe])),Ur);function zr(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,a=n===void 0?!1:n,i=(t={},$e(t,Ce,"".concat(W.cssPrefix,"-").concat(Ce)),$e(t,Oe,"".concat(W.cssPrefix,"-").concat(Oe)),t),o=null,s=Ce;(e.includes(i[Ce])||e.some(function(l){return vi[Ce].includes(l)}))&&(s=Ce),(e.includes(i[Oe])||e.some(function(l){return vi[Oe].includes(l)}))&&(s=Oe);var u=e.reduce(function(l,f){var m=zm(W.cssPrefix,f);if(Yt[f]?(f=Hm[s].includes(f)?gm[s][f]:f,o=f,l.prefix=f):Um[s].indexOf(f)>-1?(o=f,l.prefix=Wr(f,{family:s})):m?l.iconName=m:f!==W.replacementClass&&f!==i[Ce]&&f!==i[Oe]&&l.rest.push(f),!a&&l.prefix&&l.iconName){var v=o==="fa"?pi(l.iconName):{},p=St(l.prefix,l.iconName);v.prefix&&(o=null),l.iconName=v.iconName||p||l.iconName,l.prefix=v.prefix||l.prefix,l.prefix==="far"&&!Yt.far&&Yt.fas&&!W.autoFetchSvg&&(l.prefix="fas")}return l},Jn());return(e.includes("fa-brands")||e.includes("fab"))&&(u.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(u.prefix="fad"),!u.prefix&&s===Oe&&(Yt.fass||W.autoFetchSvg)&&(u.prefix="fass",u.iconName=St(u.prefix,u.iconName)||u.iconName),(u.prefix==="fa"||o==="fa")&&(u.prefix=pt()||"fas"),u}var Gm=function(){function e(){im(this,e),this.definitions={}}return sm(e,[{key:"add",value:function(){for(var r=this,n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];var o=a.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(s){r.definitions[s]=V(V({},r.definitions[s]||{}),o[s]),Kn(s,o[s]);var u=cr[Ce][s];u&&Kn(u,o[s]),di()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,n){var a=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(a).map(function(i){var o=a[i],s=o.prefix,u=o.iconName,l=o.icon,f=l[2];r[s]||(r[s]={}),f.length>0&&f.forEach(function(m){typeof m=="string"&&(r[s][m]=l)}),r[s][u]=l}),r}}]),e}(),hi=[],Ht={},Ut={},Xm=Object.keys(Ut);function Km(e,t){var r=t.mixoutsTo;return hi=e,Ht={},Object.keys(Ut).forEach(function(n){Xm.indexOf(n)===-1&&delete Ut[n]}),hi.forEach(function(n){var a=n.mixout?n.mixout():{};if(Object.keys(a).forEach(function(o){typeof a[o]=="function"&&(r[o]=a[o]),_r(a[o])==="object"&&Object.keys(a[o]).forEach(function(s){r[o]||(r[o]={}),r[o][s]=a[o][s]})}),n.hooks){var i=n.hooks();Object.keys(i).forEach(function(o){Ht[o]||(Ht[o]=[]),Ht[o].push(i[o])})}n.provides&&n.provides(Ut)}),r}function ea(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];var i=Ht[e]||[];return i.forEach(function(o){t=o.apply(null,[t].concat(n))}),t}function Nt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=Ht[e]||[];a.forEach(function(i){i.apply(null,r)})}function ut(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ut[e]?Ut[e].apply(null,t):void 0}function ta(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,r=e.prefix||pt();if(t)return t=St(r,t)||t,ii(bi.definitions,r,t)||ii(Ke.styles,r,t)}var bi=new Gm,Qm=function(){W.autoReplaceSvg=!1,W.observeMutations=!1,Nt("noAuto")},Zm={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ot?(Nt("beforeI2svg",t),ut("pseudoElements2svg",t),ut("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot;W.autoReplaceSvg===!1&&(W.autoReplaceSvg=!0),W.observeMutations=!0,Vm(function(){ed({autoReplaceSvgRoot:r}),Nt("watch",t)})}},Jm={icon:function(t){if(t===null)return null;if(_r(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:St(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var r=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],n=Wr(t[0]);return{prefix:n,iconName:St(n,r)||r}}if(typeof t=="string"&&(t.indexOf("".concat(W.cssPrefix,"-"))>-1||t.match(ym))){var a=zr(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||pt(),iconName:St(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=pt();return{prefix:i,iconName:St(i,t)||t}}}},ze={noAuto:Qm,config:W,dom:Zm,parse:Jm,library:bi,findIconDefinition:ta,toHtml:vr},ed=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot,n=r===void 0?De:r;(Object.keys(Ke.styles).length>0||W.autoFetchSvg)&&ot&&W.autoReplaceSvg&&ze.dom.i2svg({node:n})};function Br(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return vr(n)})}}),Object.defineProperty(e,"node",{get:function(){if(ot){var n=De.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function td(e){var t=e.children,r=e.main,n=e.mask,a=e.attributes,i=e.styles,o=e.transform;if(Bn(o)&&r.found&&!n.found){var s=r.width,u=r.height,l={x:s/u/2,y:.5};a.style=$r(V(V({},i),{},{"transform-origin":"".concat(l.x+o.x/16,"em ").concat(l.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function rd(e){var t=e.prefix,r=e.iconName,n=e.children,a=e.attributes,i=e.symbol,o=i===!0?"".concat(t,"-").concat(W.cssPrefix,"-").concat(r):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:V(V({},a),{},{id:o}),children:n}]}]}function ra(e){var t=e.icons,r=t.main,n=t.mask,a=e.prefix,i=e.iconName,o=e.transform,s=e.symbol,u=e.title,l=e.maskId,f=e.titleId,m=e.extra,v=e.watchable,p=v===void 0?!1:v,x=n.found?n:r,T=x.width,y=x.height,N=a==="fak",O=[W.replacementClass,i?"".concat(W.cssPrefix,"-").concat(i):""].filter(function(G){return m.classes.indexOf(G)===-1}).filter(function(G){return G!==""||!!G}).concat(m.classes).join(" "),$={children:[],attributes:V(V({},m.attributes),{},{"data-prefix":a,"data-icon":i,class:O,role:m.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(T," ").concat(y)})},U=N&&!~m.classes.indexOf("fa-fw")?{width:"".concat(T/y*16*.0625,"em")}:{};p&&($.attributes[Tt]=""),u&&($.children.push({tag:"title",attributes:{id:$.attributes["aria-labelledby"]||"title-".concat(f||pr())},children:[u]}),delete $.attributes.title);var h=V(V({},$),{},{prefix:a,iconName:i,main:r,mask:n,maskId:l,transform:o,symbol:s,styles:V(V({},U),m.styles)}),Y=n.found&&r.found?ut("generateAbstractMask",h)||{children:[],attributes:{}}:ut("generateAbstractIcon",h)||{children:[],attributes:{}},Q=Y.children,Z=Y.attributes;return h.children=Q,h.attributes=Z,s?rd(h):td(h)}function gi(e){var t=e.content,r=e.width,n=e.height,a=e.transform,i=e.title,o=e.extra,s=e.watchable,u=s===void 0?!1:s,l=V(V(V({},o.attributes),i?{title:i}:{}),{},{class:o.classes.join(" ")});u&&(l[Tt]="");var f=V({},o.styles);Bn(a)&&(f.transform=Am({transform:a,startCentered:!0,width:r,height:n}),f["-webkit-transform"]=f.transform);var m=$r(f);m.length>0&&(l.style=m);var v=[];return v.push({tag:"span",attributes:l,children:[t]}),i&&v.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),v}function nd(e){var t=e.content,r=e.title,n=e.extra,a=V(V(V({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),i=$r(n.styles);i.length>0&&(a.style=i);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),r&&o.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),o}var na=Ke.styles;function aa(e){var t=e[0],r=e[1],n=e.slice(4),a=Vn(n,1),i=a[0],o=null;return Array.isArray(i)?o={tag:"g",attributes:{class:"".concat(W.cssPrefix,"-").concat(Et.GROUP)},children:[{tag:"path",attributes:{class:"".concat(W.cssPrefix,"-").concat(Et.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(W.cssPrefix,"-").concat(Et.PRIMARY),fill:"currentColor",d:i[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:r,icon:o}}var ad={found:!1,width:512,height:512};function od(e,t){!Zo&&!W.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function oa(e,t){var r=t;return t==="fa"&&W.styleDefault!==null&&(t=pt()),new Promise(function(n,a){if(ut("missingIconAbstract"),r==="fa"){var i=pi(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&na[t]&&na[t][e]){var o=na[t][e];return n(aa(o))}od(e,t),n(V(V({},ad),{},{icon:W.showMissingIcons&&e?ut("missingIconAbstract")||{}:{}}))})}var yi=function(){},ia=W.measurePerformance&&Ar&&Ar.mark&&Ar.measure?Ar:{mark:yi,measure:yi},hr='FA "6.4.2"',id=function(t){return ia.mark("".concat(hr," ").concat(t," begins")),function(){return wi(t)}},wi=function(t){ia.mark("".concat(hr," ").concat(t," ends")),ia.measure("".concat(hr," ").concat(t),"".concat(hr," ").concat(t," begins"),"".concat(hr," ").concat(t," ends"))},sa={begin:id,end:wi},qr=function(){};function xi(e){var t=e.getAttribute?e.getAttribute(Tt):null;return typeof t=="string"}function sd(e){var t=e.getAttribute?e.getAttribute(Hn):null,r=e.getAttribute?e.getAttribute(Un):null;return t&&r}function ud(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(W.replacementClass)}function ld(){if(W.autoReplaceSvg===!0)return Gr.replace;var e=Gr[W.autoReplaceSvg];return e||Gr.replace}function cd(e){return De.createElementNS("http://www.w3.org/2000/svg",e)}function fd(e){return De.createElement(e)}function Ti(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.ceFn,n=r===void 0?e.tag==="svg"?cd:fd:r;if(typeof e=="string")return De.createTextNode(e);var a=n(e.tag);Object.keys(e.attributes||[]).forEach(function(o){a.setAttribute(o,e.attributes[o])});var i=e.children||[];return i.forEach(function(o){a.appendChild(Ti(o,{ceFn:n}))}),a}function md(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Gr={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(a){r.parentNode.insertBefore(Ti(a),r)}),r.getAttribute(Tt)===null&&W.keepOriginalSource){var n=De.createComment(md(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~zn(r).indexOf(W.replacementClass))return Gr.replace(t);var a=new RegExp("".concat(W.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce(function(s,u){return u===W.replacementClass||u.match(a)?s.toSvg.push(u):s.toNode.push(u),s},{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?r.removeAttribute("class"):r.setAttribute("class",i.toNode.join(" "))}var o=n.map(function(s){return vr(s)}).join(`
790
- `);r.setAttribute(Tt,""),r.innerHTML=o}};function Ei(e){e()}function Si(e,t){var r=typeof t=="function"?t:qr;if(e.length===0)r();else{var n=Ei;W.mutateApproach===hm&&(n=mt.requestAnimationFrame||Ei),n(function(){var a=ld(),i=sa.begin("mutate");e.map(a),i(),r()})}}var ua=!1;function Ni(){ua=!0}function la(){ua=!1}var Xr=null;function Pi(e){if(qo&&W.observeMutations){var t=e.treeCallback,r=t===void 0?qr:t,n=e.nodeCallback,a=n===void 0?qr:n,i=e.pseudoElementsCallback,o=i===void 0?qr:i,s=e.observeMutationsRoot,u=s===void 0?De:s;Xr=new qo(function(l){if(!ua){var f=pt();Ft(l).forEach(function(m){if(m.type==="childList"&&m.addedNodes.length>0&&!xi(m.addedNodes[0])&&(W.searchPseudoElements&&o(m.target),r(m.target)),m.type==="attributes"&&m.target.parentNode&&W.searchPseudoElements&&o(m.target.parentNode),m.type==="attributes"&&xi(m.target)&&~Em.indexOf(m.attributeName))if(m.attributeName==="class"&&sd(m.target)){var v=zr(zn(m.target)),p=v.prefix,x=v.iconName;m.target.setAttribute(Hn,p||f),x&&m.target.setAttribute(Un,x)}else ud(m.target)&&a(m.target)})}}),ot&&Xr.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function dd(){Xr&&Xr.disconnect()}function pd(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce(function(n,a){var i=a.split(":"),o=i[0],s=i.slice(1);return o&&s.length>0&&(n[o]=s.join(":").trim()),n},{})),r}function vd(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",a=zr(zn(e));return a.prefix||(a.prefix=pt()),t&&r&&(a.prefix=t,a.iconName=r),a.iconName&&a.prefix||(a.prefix&&n.length>0&&(a.iconName=Bm(a.prefix,e.innerText)||Zn(a.prefix,Xn(e.innerText))),!a.iconName&&W.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function hd(e){var t=Ft(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return W.autoA11y&&(r?t["aria-labelledby"]="".concat(W.replacementClass,"-title-").concat(n||pr()):(t["aria-hidden"]="true",t.focusable="false")),t}function bd(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Ze,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Di(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=vd(e),n=r.iconName,a=r.prefix,i=r.rest,o=hd(e),s=ea("parseNodeAttributes",{},e),u=t.styleParser?pd(e):[];return V({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:Ze,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:u,attributes:o}},s)}var gd=Ke.styles;function Ci(e){var t=W.autoReplaceSvg==="nest"?Di(e,{styleParser:!1}):Di(e);return~t.extra.classes.indexOf(Jo)?ut("generateLayersText",e,t):ut("generateSvgReplacementMutation",e,t)}var vt=new Set;Wn.map(function(e){vt.add("fa-".concat(e))}),Object.keys(ur[Ce]).map(vt.add.bind(vt)),Object.keys(ur[Oe]).map(vt.add.bind(vt)),vt=ir(vt);function ki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ot)return Promise.resolve();var r=De.documentElement.classList,n=function(m){return r.add("".concat(Qo,"-").concat(m))},a=function(m){return r.remove("".concat(Qo,"-").concat(m))},i=W.autoFetchSvg?vt:Wn.map(function(f){return"fa-".concat(f)}).concat(Object.keys(gd));i.includes("fa")||i.push("fa");var o=[".".concat(Jo,":not([").concat(Tt,"])")].concat(i.map(function(f){return".".concat(f,":not([").concat(Tt,"])")})).join(", ");if(o.length===0)return Promise.resolve();var s=[];try{s=Ft(e.querySelectorAll(o))}catch{}if(s.length>0)n("pending"),a("complete");else return Promise.resolve();var u=sa.begin("onTree"),l=s.reduce(function(f,m){try{var v=Ci(m);v&&f.push(v)}catch(p){Zo||p.name==="MissingIcon"&&console.error(p)}return f},[]);return new Promise(function(f,m){Promise.all(l).then(function(v){Si(v,function(){n("active"),n("complete"),a("pending"),typeof t=="function"&&t(),u(),f()})}).catch(function(v){u(),m(v)})})}function yd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ci(e).then(function(r){r&&Si([r],t)})}function wd(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:ta(t||{}),a=r.mask;return a&&(a=(a||{}).icon?a:ta(a||{})),e(n,V(V({},r),{},{mask:a}))}}var xd=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,a=n===void 0?Ze:n,i=r.symbol,o=i===void 0?!1:i,s=r.mask,u=s===void 0?null:s,l=r.maskId,f=l===void 0?null:l,m=r.title,v=m===void 0?null:m,p=r.titleId,x=p===void 0?null:p,T=r.classes,y=T===void 0?[]:T,N=r.attributes,O=N===void 0?{}:N,$=r.styles,U=$===void 0?{}:$;if(t){var h=t.prefix,Y=t.iconName,Q=t.icon;return Br(V({type:"icon"},t),function(){return Nt("beforeDOMElementCreation",{iconDefinition:t,params:r}),W.autoA11y&&(v?O["aria-labelledby"]="".concat(W.replacementClass,"-title-").concat(x||pr()):(O["aria-hidden"]="true",O.focusable="false")),ra({icons:{main:aa(Q),mask:u?aa(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:h,iconName:Y,transform:V(V({},Ze),a),symbol:o,title:v,maskId:f,titleId:x,extra:{attributes:O,styles:U,classes:y}})})}},Td={mixout:function(){return{icon:wd(xd)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=ki,r.nodeCallback=yd,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,a=n===void 0?De:n,i=r.callback,o=i===void 0?function(){}:i;return ki(a,o)},t.generateSvgReplacementMutation=function(r,n){var a=n.iconName,i=n.title,o=n.titleId,s=n.prefix,u=n.transform,l=n.symbol,f=n.mask,m=n.maskId,v=n.extra;return new Promise(function(p,x){Promise.all([oa(a,s),f.iconName?oa(f.iconName,f.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(T){var y=Vn(T,2),N=y[0],O=y[1];p([r,ra({icons:{main:N,mask:O},prefix:s,iconName:a,transform:u,symbol:l,maskId:m,title:i,titleId:o,extra:v,watchable:!0})])}).catch(x)})},t.generateAbstractIcon=function(r){var n=r.children,a=r.attributes,i=r.main,o=r.transform,s=r.styles,u=$r(s);u.length>0&&(a.style=u);var l;return Bn(o)&&(l=ut("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(l||i.icon),{children:n,attributes:a}}}},Ed={mixout:function(){return{layer:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.classes,i=a===void 0?[]:a;return Br({type:"layer"},function(){Nt("beforeDOMElementCreation",{assembler:r,params:n});var o=[];return r(function(s){Array.isArray(s)?s.map(function(u){o=o.concat(u.abstract)}):o=o.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(W.cssPrefix,"-layers")].concat(ir(i)).join(" ")},children:o}]})}}}},Sd={mixout:function(){return{counter:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.title,i=a===void 0?null:a,o=n.classes,s=o===void 0?[]:o,u=n.attributes,l=u===void 0?{}:u,f=n.styles,m=f===void 0?{}:f;return Br({type:"counter",content:r},function(){return Nt("beforeDOMElementCreation",{content:r,params:n}),nd({content:r.toString(),title:i,extra:{attributes:l,styles:m,classes:["".concat(W.cssPrefix,"-layers-counter")].concat(ir(s))}})})}}}},Nd={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.transform,i=a===void 0?Ze:a,o=n.title,s=o===void 0?null:o,u=n.classes,l=u===void 0?[]:u,f=n.attributes,m=f===void 0?{}:f,v=n.styles,p=v===void 0?{}:v;return Br({type:"text",content:r},function(){return Nt("beforeDOMElementCreation",{content:r,params:n}),gi({content:r,transform:V(V({},Ze),i),title:s,extra:{attributes:m,styles:p,classes:["".concat(W.cssPrefix,"-layers-text")].concat(ir(l))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var a=n.title,i=n.transform,o=n.extra,s=null,u=null;if(Go){var l=parseInt(getComputedStyle(r).fontSize,10),f=r.getBoundingClientRect();s=f.width/l,u=f.height/l}return W.autoA11y&&!a&&(o.attributes["aria-hidden"]="true"),Promise.resolve([r,gi({content:r.innerHTML,width:s,height:u,transform:i,title:a,extra:o,watchable:!0})])}}},Pd=new RegExp('"',"ug"),Oi=[1105920,1112319];function Dd(e){var t=e.replace(Pd,""),r=Fm(t,0),n=r>=Oi[0]&&r<=Oi[1],a=t.length===2?t[0]===t[1]:!1;return{value:Xn(a?t[0]:t),isSecondary:n||a}}function Ii(e,t){var r="".concat(vm).concat(t.replace(":","-"));return new Promise(function(n,a){if(e.getAttribute(r)!==null)return n();var i=Ft(e.children),o=i.filter(function(Q){return Q.getAttribute(Yn)===t})[0],s=mt.getComputedStyle(e,t),u=s.getPropertyValue("font-family").match(wm),l=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(o&&!u)return e.removeChild(o),n();if(u&&f!=="none"&&f!==""){var m=s.getPropertyValue("content"),v=~["Sharp"].indexOf(u[2])?Oe:Ce,p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(u[2])?lr[v][u[2].toLowerCase()]:xm[v][l],x=Dd(m),T=x.value,y=x.isSecondary,N=u[0].startsWith("FontAwesome"),O=Zn(p,T),$=O;if(N){var U=qm(T);U.iconName&&U.prefix&&(O=U.iconName,p=U.prefix)}if(O&&!y&&(!o||o.getAttribute(Hn)!==p||o.getAttribute(Un)!==$)){e.setAttribute(r,$),o&&e.removeChild(o);var h=bd(),Y=h.extra;Y.attributes[Yn]=t,oa(O,p).then(function(Q){var Z=ra(V(V({},h),{},{icons:{main:Q,mask:Jn()},prefix:p,iconName:$,extra:Y,watchable:!0})),G=De.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(G,e.firstChild):e.appendChild(G),G.outerHTML=Z.map(function(oe){return vr(oe)}).join(`
791
- `),e.removeAttribute(r),n()}).catch(a)}else n()}else n()})}function Cd(e){return Promise.all([Ii(e,"::before"),Ii(e,"::after")])}function kd(e){return e.parentNode!==document.head&&!~bm.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Yn)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function _i(e){if(ot)return new Promise(function(t,r){var n=Ft(e.querySelectorAll("*")).filter(kd).map(Cd),a=sa.begin("searchPseudoElements");Ni(),Promise.all(n).then(function(){a(),la(),t()}).catch(function(){a(),la(),r()})})}var Od={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=_i,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node,a=n===void 0?De:n;W.searchPseudoElements&&_i(a)}}},Ai=!1,Id={mixout:function(){return{dom:{unwatch:function(){Ni(),Ai=!0}}}},hooks:function(){return{bootstrap:function(){Pi(ea("mutationObserverCallbacks",{}))},noAuto:function(){dd()},watch:function(r){var n=r.observeMutationsRoot;Ai?la():Pi(ea("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},Mi=function(t){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(n,a){var i=a.toLowerCase().split("-"),o=i[0],s=i.slice(1).join("-");if(o&&s==="h")return n.flipX=!0,n;if(o&&s==="v")return n.flipY=!0,n;if(s=parseFloat(s),isNaN(s))return n;switch(o){case"grow":n.size=n.size+s;break;case"shrink":n.size=n.size-s;break;case"left":n.x=n.x-s;break;case"right":n.x=n.x+s;break;case"up":n.y=n.y-s;break;case"down":n.y=n.y+s;break;case"rotate":n.rotate=n.rotate+s;break}return n},r)},_d={mixout:function(){return{parse:{transform:function(r){return Mi(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var a=n.getAttribute("data-fa-transform");return a&&(r.transform=Mi(a)),r}}},provides:function(t){t.generateAbstractTransformGrouping=function(r){var n=r.main,a=r.transform,i=r.containerWidth,o=r.iconWidth,s={transform:"translate(".concat(i/2," 256)")},u="translate(".concat(a.x*32,", ").concat(a.y*32,") "),l="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),f="rotate(".concat(a.rotate," 0 0)"),m={transform:"".concat(u," ").concat(l," ").concat(f)},v={transform:"translate(".concat(o/2*-1," -256)")},p={outer:s,inner:m,path:v};return{tag:"g",attributes:V({},p.outer),children:[{tag:"g",attributes:V({},p.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:V(V({},n.icon.attributes),p.path)}]}]}}}},ca={x:0,y:0,width:"100%",height:"100%"};function Ri(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Ad(e){return e.tag==="g"?e.children:[e]}var Md={hooks:function(){return{parseNodeAttributes:function(r,n){var a=n.getAttribute("data-fa-mask"),i=a?zr(a.split(" ").map(function(o){return o.trim()})):Jn();return i.prefix||(i.prefix=pt()),r.mask=i,r.maskId=n.getAttribute("data-fa-mask-id"),r}}},provides:function(t){t.generateAbstractMask=function(r){var n=r.children,a=r.attributes,i=r.main,o=r.mask,s=r.maskId,u=r.transform,l=i.width,f=i.icon,m=o.width,v=o.icon,p=_m({transform:u,containerWidth:m,iconWidth:l}),x={tag:"rect",attributes:V(V({},ca),{},{fill:"white"})},T=f.children?{children:f.children.map(Ri)}:{},y={tag:"g",attributes:V({},p.inner),children:[Ri(V({tag:f.tag,attributes:V(V({},f.attributes),p.path)},T))]},N={tag:"g",attributes:V({},p.outer),children:[y]},O="mask-".concat(s||pr()),$="clip-".concat(s||pr()),U={tag:"mask",attributes:V(V({},ca),{},{id:O,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[x,N]},h={tag:"defs",children:[{tag:"clipPath",attributes:{id:$},children:Ad(v)},U]};return n.push(h,{tag:"rect",attributes:V({fill:"currentColor","clip-path":"url(#".concat($,")"),mask:"url(#".concat(O,")")},ca)}),{children:n,attributes:a}}}},Rd={provides:function(t){var r=!1;mt.matchMedia&&(r=mt.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var n=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:V(V({},a),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=V(V({},i),{},{attributeName:"opacity"}),s={tag:"circle",attributes:V(V({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||s.children.push({tag:"animate",attributes:V(V({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:V(V({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(s),n.push({tag:"path",attributes:V(V({},a),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:r?[]:[{tag:"animate",attributes:V(V({},o),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:V(V({},a),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:V(V({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},jd={hooks:function(){return{parseNodeAttributes:function(r,n){var a=n.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return r.symbol=i,r}}}},Vd=[Rm,Td,Ed,Sd,Nd,Od,Id,_d,Md,Rd,jd];Km(Vd,{mixoutsTo:ze}),ze.noAuto,ze.config;var Ld=ze.library;ze.dom;var fa=ze.parse;ze.findIconDefinition,ze.toHtml;var $d=ze.icon;ze.layer,ze.text,ze.counter;var ma={exports:{}},Kr={exports:{}},ye={};/** @license React v16.13.1
31
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],a=0;a<arguments.length;a++){var s=arguments[a];if(s){var o=typeof s;if(o==="string"||o==="number")n.push(s);else if(Array.isArray(s)){if(s.length){var i=r.apply(null,s);i&&n.push(i)}}else if(o==="object"){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){n.push(s.toString());continue}for(var u in s)t.call(s,u)&&s[u]&&n.push(u)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(pn);var bo=pn.exports;const Ze=Xe(bo);var go=typeof global=="object"&&global&&global.Object===Object&&global;const hn=go;var yo=typeof self=="object"&&self&&self.Object===Object&&self,To=hn||yo||Function("return this")();const Ye=To;var wo=Ye.Symbol;const ft=wo;var vn=Object.prototype,xo=vn.hasOwnProperty,Do=vn.toString,Pt=ft?ft.toStringTag:void 0;function Eo(e){var t=xo.call(e,Pt),r=e[Pt];try{e[Pt]=void 0;var n=!0}catch{}var a=Do.call(e);return n&&(t?e[Pt]=r:delete e[Pt]),a}var So=Object.prototype,No=So.toString;function Po(e){return No.call(e)}var Co="[object Null]",Oo="[object Undefined]",bn=ft?ft.toStringTag:void 0;function mt(e){return e==null?e===void 0?Oo:Co:bn&&bn in Object(e)?Eo(e):Po(e)}function dt(e){return e!=null&&typeof e=="object"}var Io="[object Symbol]";function _o(e){return typeof e=="symbol"||dt(e)&&mt(e)==Io}var Mo=Array.isArray;const xr=Mo;var Ro=/\s/;function ko(e){for(var t=e.length;t--&&Ro.test(e.charAt(t)););return t}var jo=/^\s+/;function Vo(e){return e&&e.slice(0,ko(e)+1).replace(jo,"")}function Be(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gn=0/0,Lo=/^[-+]0x[0-9a-f]+$/i,Ao=/^0b[01]+$/i,Fo=/^0o[0-7]+$/i,$o=parseInt;function yn(e){if(typeof e=="number")return e;if(_o(e))return gn;if(Be(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Be(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Vo(e);var r=Ao.test(e);return r||Fo.test(e)?$o(e.slice(2),r?2:8):Lo.test(e)?gn:+e}var Yo="[object AsyncFunction]",Uo="[object Function]",Ho="[object GeneratorFunction]",Wo="[object Proxy]";function Tn(e){if(!Be(e))return!1;var t=mt(e);return t==Uo||t==Ho||t==Yo||t==Wo}var zo=Ye["__core-js_shared__"];const Dr=zo;var wn=function(){var e=/[^.]+$/.exec(Dr&&Dr.keys&&Dr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function qo(e){return!!wn&&wn in e}var Bo=Function.prototype,Go=Bo.toString;function et(e){if(e!=null){try{return Go.call(e)}catch{}try{return e+""}catch{}}return""}var Ko=/[\\^$.*+?()[\]{}|]/g,Qo=/^\[object .+?Constructor\]$/,Xo=Function.prototype,Zo=Object.prototype,Jo=Xo.toString,es=Zo.hasOwnProperty,ts=RegExp("^"+Jo.call(es).replace(Ko,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rs(e){if(!Be(e)||qo(e))return!1;var t=Tn(e)?ts:Qo;return t.test(et(e))}function ns(e,t){return e==null?void 0:e[t]}function tt(e,t){var r=ns(e,t);return rs(r)?r:void 0}var as=tt(Ye,"WeakMap");const Er=as;var xn=Object.create,os=function(){function e(){}return function(t){if(!Be(t))return{};if(xn)return xn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const ss=os;function is(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var us=function(){try{var e=tt(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Dn=us;function cs(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var ls=9007199254740991,fs=/^(?:0|[1-9]\d*)$/;function ms(e,t){var r=typeof e;return t=t??ls,!!t&&(r=="number"||r!="symbol"&&fs.test(e))&&e>-1&&e%1==0&&e<t}function En(e,t,r){t=="__proto__"&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Sn(e,t){return e===t||e!==e&&t!==t}var ds=Object.prototype,ps=ds.hasOwnProperty;function Nn(e,t,r){var n=e[t];(!(ps.call(e,t)&&Sn(n,r))||r===void 0&&!(t in e))&&En(e,t,r)}function Ht(e,t,r,n){var a=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var i=t[s],u=n?n(r[i],e[i],i,r,e):void 0;u===void 0&&(u=e[i]),a?En(r,i,u):Nn(r,i,u)}return r}var hs=9007199254740991;function Pn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=hs}function Cn(e){return e!=null&&Pn(e.length)&&!Tn(e)}var vs=Object.prototype;function Sr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||vs;return e===r}function bs(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var gs="[object Arguments]";function On(e){return dt(e)&&mt(e)==gs}var In=Object.prototype,ys=In.hasOwnProperty,Ts=In.propertyIsEnumerable,ws=On(function(){return arguments}())?On:function(e){return dt(e)&&ys.call(e,"callee")&&!Ts.call(e,"callee")};const xs=ws;function Ds(){return!1}var _n=typeof de=="object"&&de&&!de.nodeType&&de,Mn=_n&&typeof module=="object"&&module&&!module.nodeType&&module,Es=Mn&&Mn.exports===_n,Rn=Es?Ye.Buffer:void 0,Ss=Rn?Rn.isBuffer:void 0,Ns=Ss||Ds;const kn=Ns;var Ps="[object Arguments]",Cs="[object Array]",Os="[object Boolean]",Is="[object Date]",_s="[object Error]",Ms="[object Function]",Rs="[object Map]",ks="[object Number]",js="[object Object]",Vs="[object RegExp]",Ls="[object Set]",As="[object String]",Fs="[object WeakMap]",$s="[object ArrayBuffer]",Ys="[object DataView]",Us="[object Float32Array]",Hs="[object Float64Array]",Ws="[object Int8Array]",zs="[object Int16Array]",qs="[object Int32Array]",Bs="[object Uint8Array]",Gs="[object Uint8ClampedArray]",Ks="[object Uint16Array]",Qs="[object Uint32Array]",Ee={};Ee[Us]=Ee[Hs]=Ee[Ws]=Ee[zs]=Ee[qs]=Ee[Bs]=Ee[Gs]=Ee[Ks]=Ee[Qs]=!0,Ee[Ps]=Ee[Cs]=Ee[$s]=Ee[Os]=Ee[Ys]=Ee[Is]=Ee[_s]=Ee[Ms]=Ee[Rs]=Ee[ks]=Ee[js]=Ee[Vs]=Ee[Ls]=Ee[As]=Ee[Fs]=!1;function Xs(e){return dt(e)&&Pn(e.length)&&!!Ee[mt(e)]}function Nr(e){return function(t){return e(t)}}var jn=typeof de=="object"&&de&&!de.nodeType&&de,Ct=jn&&typeof module=="object"&&module&&!module.nodeType&&module,Zs=Ct&&Ct.exports===jn,Pr=Zs&&hn.process,Js=function(){try{var e=Ct&&Ct.require&&Ct.require("util").types;return e||Pr&&Pr.binding&&Pr.binding("util")}catch{}}();const pt=Js;var Vn=pt&&pt.isTypedArray,ei=Vn?Nr(Vn):Xs;const ti=ei;var ri=Object.prototype,ni=ri.hasOwnProperty;function Ln(e,t){var r=xr(e),n=!r&&xs(e),a=!r&&!n&&kn(e),s=!r&&!n&&!a&&ti(e),o=r||n||a||s,i=o?bs(e.length,String):[],u=i.length;for(var l in e)(t||ni.call(e,l))&&!(o&&(l=="length"||a&&(l=="offset"||l=="parent")||s&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ms(l,u)))&&i.push(l);return i}function An(e,t){return function(r){return e(t(r))}}var ai=An(Object.keys,Object);const oi=ai;var si=Object.prototype,ii=si.hasOwnProperty;function ui(e){if(!Sr(e))return oi(e);var t=[];for(var r in Object(e))ii.call(e,r)&&r!="constructor"&&t.push(r);return t}function Cr(e){return Cn(e)?Ln(e):ui(e)}function ci(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var li=Object.prototype,fi=li.hasOwnProperty;function mi(e){if(!Be(e))return ci(e);var t=Sr(e),r=[];for(var n in e)n=="constructor"&&(t||!fi.call(e,n))||r.push(n);return r}function Or(e){return Cn(e)?Ln(e,!0):mi(e)}var di=tt(Object,"create");const Ot=di;function pi(){this.__data__=Ot?Ot(null):{},this.size=0}function hi(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var vi="__lodash_hash_undefined__",bi=Object.prototype,gi=bi.hasOwnProperty;function yi(e){var t=this.__data__;if(Ot){var r=t[e];return r===vi?void 0:r}return gi.call(t,e)?t[e]:void 0}var Ti=Object.prototype,wi=Ti.hasOwnProperty;function xi(e){var t=this.__data__;return Ot?t[e]!==void 0:wi.call(t,e)}var Di="__lodash_hash_undefined__";function Ei(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ot&&t===void 0?Di:t,this}function rt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rt.prototype.clear=pi,rt.prototype.delete=hi,rt.prototype.get=yi,rt.prototype.has=xi,rt.prototype.set=Ei;function Si(){this.__data__=[],this.size=0}function Wt(e,t){for(var r=e.length;r--;)if(Sn(e[r][0],t))return r;return-1}var Ni=Array.prototype,Pi=Ni.splice;function Ci(e){var t=this.__data__,r=Wt(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Pi.call(t,r,1),--this.size,!0}function Oi(e){var t=this.__data__,r=Wt(t,e);return r<0?void 0:t[r][1]}function Ii(e){return Wt(this.__data__,e)>-1}function _i(e,t){var r=this.__data__,n=Wt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ge(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ge.prototype.clear=Si,Ge.prototype.delete=Ci,Ge.prototype.get=Oi,Ge.prototype.has=Ii,Ge.prototype.set=_i;var Mi=tt(Ye,"Map");const It=Mi;function Ri(){this.size=0,this.__data__={hash:new rt,map:new(It||Ge),string:new rt}}function ki(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function zt(e,t){var r=e.__data__;return ki(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ji(e){var t=zt(this,e).delete(e);return this.size-=t?1:0,t}function Vi(e){return zt(this,e).get(e)}function Li(e){return zt(this,e).has(e)}function Ai(e,t){var r=zt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function ht(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ht.prototype.clear=Ri,ht.prototype.delete=ji,ht.prototype.get=Vi,ht.prototype.has=Li,ht.prototype.set=Ai;function Fn(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Fi=An(Object.getPrototypeOf,Object);const $n=Fi;function $i(){this.__data__=new Ge,this.size=0}function Yi(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Ui(e){return this.__data__.get(e)}function Hi(e){return this.__data__.has(e)}var Wi=200;function zi(e,t){var r=this.__data__;if(r instanceof Ge){var n=r.__data__;if(!It||n.length<Wi-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ht(n)}return r.set(e,t),this.size=r.size,this}function vt(e){var t=this.__data__=new Ge(e);this.size=t.size}vt.prototype.clear=$i,vt.prototype.delete=Yi,vt.prototype.get=Ui,vt.prototype.has=Hi,vt.prototype.set=zi;function qi(e,t){return e&&Ht(t,Cr(t),e)}function Bi(e,t){return e&&Ht(t,Or(t),e)}var Yn=typeof de=="object"&&de&&!de.nodeType&&de,Un=Yn&&typeof module=="object"&&module&&!module.nodeType&&module,Gi=Un&&Un.exports===Yn,Hn=Gi?Ye.Buffer:void 0,Wn=Hn?Hn.allocUnsafe:void 0;function Ki(e,t){if(t)return e.slice();var r=e.length,n=Wn?Wn(r):new e.constructor(r);return e.copy(n),n}function Qi(e,t){for(var r=-1,n=e==null?0:e.length,a=0,s=[];++r<n;){var o=e[r];t(o,r,e)&&(s[a++]=o)}return s}function zn(){return[]}var Xi=Object.prototype,Zi=Xi.propertyIsEnumerable,qn=Object.getOwnPropertySymbols,Ji=qn?function(e){return e==null?[]:(e=Object(e),Qi(qn(e),function(t){return Zi.call(e,t)}))}:zn;const Ir=Ji;function eu(e,t){return Ht(e,Ir(e),t)}var tu=Object.getOwnPropertySymbols,ru=tu?function(e){for(var t=[];e;)Fn(t,Ir(e)),e=$n(e);return t}:zn;const Bn=ru;function nu(e,t){return Ht(e,Bn(e),t)}function Gn(e,t,r){var n=t(e);return xr(e)?n:Fn(n,r(e))}function au(e){return Gn(e,Cr,Ir)}function ou(e){return Gn(e,Or,Bn)}var su=tt(Ye,"DataView");const _r=su;var iu=tt(Ye,"Promise");const Mr=iu;var uu=tt(Ye,"Set");const Rr=uu;var Kn="[object Map]",cu="[object Object]",Qn="[object Promise]",Xn="[object Set]",Zn="[object WeakMap]",Jn="[object DataView]",lu=et(_r),fu=et(It),mu=et(Mr),du=et(Rr),pu=et(Er),nt=mt;(_r&&nt(new _r(new ArrayBuffer(1)))!=Jn||It&&nt(new It)!=Kn||Mr&&nt(Mr.resolve())!=Qn||Rr&&nt(new Rr)!=Xn||Er&&nt(new Er)!=Zn)&&(nt=function(e){var t=mt(e),r=t==cu?e.constructor:void 0,n=r?et(r):"";if(n)switch(n){case lu:return Jn;case fu:return Kn;case mu:return Qn;case du:return Xn;case pu:return Zn}return t});const kr=nt;var hu=Object.prototype,vu=hu.hasOwnProperty;function bu(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&vu.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var gu=Ye.Uint8Array;const ea=gu;function jr(e){var t=new e.constructor(e.byteLength);return new ea(t).set(new ea(e)),t}function yu(e,t){var r=t?jr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Tu=/\w*$/;function wu(e){var t=new e.constructor(e.source,Tu.exec(e));return t.lastIndex=e.lastIndex,t}var ta=ft?ft.prototype:void 0,ra=ta?ta.valueOf:void 0;function xu(e){return ra?Object(ra.call(e)):{}}function Du(e,t){var r=t?jr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Eu="[object Boolean]",Su="[object Date]",Nu="[object Map]",Pu="[object Number]",Cu="[object RegExp]",Ou="[object Set]",Iu="[object String]",_u="[object Symbol]",Mu="[object ArrayBuffer]",Ru="[object DataView]",ku="[object Float32Array]",ju="[object Float64Array]",Vu="[object Int8Array]",Lu="[object Int16Array]",Au="[object Int32Array]",Fu="[object Uint8Array]",$u="[object Uint8ClampedArray]",Yu="[object Uint16Array]",Uu="[object Uint32Array]";function Hu(e,t,r){var n=e.constructor;switch(t){case Mu:return jr(e);case Eu:case Su:return new n(+e);case Ru:return yu(e,r);case ku:case ju:case Vu:case Lu:case Au:case Fu:case $u:case Yu:case Uu:return Du(e,r);case Nu:return new n;case Pu:case Iu:return new n(e);case Cu:return wu(e);case Ou:return new n;case _u:return xu(e)}}function Wu(e){return typeof e.constructor=="function"&&!Sr(e)?ss($n(e)):{}}var zu="[object Map]";function qu(e){return dt(e)&&kr(e)==zu}var na=pt&&pt.isMap,Bu=na?Nr(na):qu;const Gu=Bu;var Ku="[object Set]";function Qu(e){return dt(e)&&kr(e)==Ku}var aa=pt&&pt.isSet,Xu=aa?Nr(aa):Qu;const Zu=Xu;var Ju=1,ec=2,tc=4,oa="[object Arguments]",rc="[object Array]",nc="[object Boolean]",ac="[object Date]",oc="[object Error]",sa="[object Function]",sc="[object GeneratorFunction]",ic="[object Map]",uc="[object Number]",ia="[object Object]",cc="[object RegExp]",lc="[object Set]",fc="[object String]",mc="[object Symbol]",dc="[object WeakMap]",pc="[object ArrayBuffer]",hc="[object DataView]",vc="[object Float32Array]",bc="[object Float64Array]",gc="[object Int8Array]",yc="[object Int16Array]",Tc="[object Int32Array]",wc="[object Uint8Array]",xc="[object Uint8ClampedArray]",Dc="[object Uint16Array]",Ec="[object Uint32Array]",xe={};xe[oa]=xe[rc]=xe[pc]=xe[hc]=xe[nc]=xe[ac]=xe[vc]=xe[bc]=xe[gc]=xe[yc]=xe[Tc]=xe[ic]=xe[uc]=xe[ia]=xe[cc]=xe[lc]=xe[fc]=xe[mc]=xe[wc]=xe[xc]=xe[Dc]=xe[Ec]=!0,xe[oc]=xe[sa]=xe[dc]=!1;function qt(e,t,r,n,a,s){var o,i=t&Ju,u=t&ec,l=t&tc;if(r&&(o=a?r(e,n,a,s):r(e)),o!==void 0)return o;if(!Be(e))return e;var m=xr(e);if(m){if(o=bu(e),!i)return is(e,o)}else{var d=kr(e),T=d==sa||d==sc;if(kn(e))return Ki(e,i);if(d==ia||d==oa||T&&!a){if(o=u||T?{}:Wu(e),!i)return u?nu(e,Bi(o,e)):eu(e,qi(o,e))}else{if(!xe[d])return a?e:{};o=Hu(e,d,i)}}s||(s=new vt);var g=s.get(e);if(g)return g;s.set(e,o),Zu(e)?e.forEach(function(x){o.add(qt(x,t,r,x,e,s))}):Gu(e)&&e.forEach(function(x,M){o.set(M,qt(x,t,r,M,e,s))});var E=l?u?ou:au:u?Or:Cr,P=m?void 0:E(e);return cs(P||e,function(x,M){P&&(M=x,x=e[M]),Nn(o,M,qt(x,t,r,M,e,s))}),o}var Sc=1,Nc=4;function Pc(e){return qt(e,Sc|Nc)}var Cc=function(){return Ye.Date.now()};const Vr=Cc;var Oc="Expected a function",Ic=Math.max,_c=Math.min;function _t(e,t,r){var n,a,s,o,i,u,l=0,m=!1,d=!1,T=!0;if(typeof e!="function")throw new TypeError(Oc);t=yn(t)||0,Be(r)&&(m=!!r.leading,d="maxWait"in r,s=d?Ic(yn(r.maxWait)||0,t):s,T="trailing"in r?!!r.trailing:T);function g(Y){var ee=n,Q=a;return n=a=void 0,l=Y,o=e.apply(Q,ee),o}function E(Y){return l=Y,i=setTimeout(M,t),m?g(Y):o}function P(Y){var ee=Y-u,Q=Y-l,X=t-ee;return d?_c(X,s-Q):X}function x(Y){var ee=Y-u,Q=Y-l;return u===void 0||ee>=t||ee<0||d&&Q>=s}function M(){var Y=Vr();if(x(Y))return U(Y);i=setTimeout(M,P(Y))}function U(Y){return i=void 0,T&&n?g(Y):(n=a=void 0,o)}function G(){i!==void 0&&clearTimeout(i),l=0,n=u=a=i=void 0}function W(){return i===void 0?o:U(Vr())}function b(){var Y=Vr(),ee=x(Y);if(n=arguments,a=this,u=Y,ee){if(i===void 0)return E(u);if(d)return clearTimeout(i),i=setTimeout(M,t),g(u)}return i===void 0&&(i=setTimeout(M,t)),o}return b.cancel=G,b.flush=W,b}var Mc="Expected a function";function Rc(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(Mc);return Be(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),_t(e,t,{leading:n,maxWait:t,trailing:a})}const kc=(e,t)=>{const{value:r,readOnly:n=!1,debounceTime:a=800,fillContainer:s=!0,leftElement:o,rightElement:i,className:u,leftElementClassName:l,rightElementClassName:m,isSingleLine:d=!0,allowSingleLineScroll:T=!1,placeholder:g,onFocus:E,onBlur:P,onInput:x,onInnerTextChange:M,onInnerHTMLChange:U,onElementCreate:G,onLeftElementClick:W,onRightElementClick:b}=e,Y=p.useRef("bsc-flex-grow focus:bsc-outline-none"),ee=p.useRef("bsc-text-gray-4"),Q=p.useRef(),X=p.useCallback(f=>{const N=f.target,V=N.innerHTML;N.className=`${Y.current}`,g&&V===g&&(N.innerHTML=""),E==null||E(f)},[g,E]),ue=p.useCallback(f=>{const N=f.target.innerHTML;if(g&&N===""){const V=f.target;V.innerHTML=g,V.className=`${Y.current} ${ee.current}`}P==null||P(f)},[g,P]),se=p.useCallback(f=>{var N,V;(N=Q.current)==null||N.removeEventListener("focus",X),(V=Q.current)==null||V.removeEventListener("blur",ue),g&&f&&f!==document.activeElement&&f.innerHTML===""&&(f.innerHTML=g,f.className=`${Y.current} ${ee.current}`),f.addEventListener("focus",X),f.addEventListener("blur",ue),Q.current=f},[g]),ie=p.useCallback(f=>{G==null||G(f)},[G]),w=f=>{W==null||W(f)},H=f=>{b==null||b(f)},q=_t(f=>{x==null||x(f),M==null||M(f.target.innerText),U==null||U(f.target.innerHTML)},a),A=p.useCallback(f=>{Q.current&&(Q.current.innerText=f)},[]),te=p.useCallback(f=>{Q.current&&(Q.current.innerHTML=f)},[]),L=p.useCallback(()=>{var f;(f=Q.current)==null||f.focus()},[]);p.useImperativeHandle(t,()=>({inputElement:Q.current,setInnerText:A,setInnerHTML:te,focus:L}));const me=Ze({"bsc-w-full ":s},"bsc-flex bsc-flex-row bsc-shadow-sm bsc-border bsc-border-solid bsc-border-gray-3 dark:bsc-border-white dark:bsc-bg-mono-dark-1 dark:bsc-text-mono-light-1 bsc-rounded-md bsc-p-2",{"bsc-overflow-x-auto bsc-overflow-y-hidden bsc-whitespace-pre":d&&T,"bsc-overflow-hidden bsc-whitespace-pre":d&&!T},u),h=Ze("bsc-flex-shrink",{"bsc-mr-2":o},l),D=Ze("bsc-flex-shrink",{"bsc-ml-2":i},m);return v.jsxDEV("div",{className:me,ref:f=>f&&ie(f),children:[o&&v.jsxDEV("div",{className:h,onClick:w,children:o},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/inputs/content-editable-input/content-editable-input.component.tsx",lineNumber:176,columnNumber:9},globalThis),v.jsxDEV("div",{ref:f=>f&&se(f),className:Y.current,contentEditable:!n,suppressContentEditableWarning:!0,onInput:q,children:r},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/inputs/content-editable-input/content-editable-input.component.tsx",lineNumber:180,columnNumber:7},globalThis),i&&v.jsxDEV("div",{className:D,onClick:H,children:i},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/inputs/content-editable-input/content-editable-input.component.tsx",lineNumber:190,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/inputs/content-editable-input/content-editable-input.component.tsx",lineNumber:174,columnNumber:5},globalThis)},Lr=p.forwardRef(kc);function Je(e){"@babel/helpers - typeof";return Je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Je(e)}function Ce(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function re(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function pe(e){re(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Je(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Bt(e,t){re(2,arguments);var r=pe(e),n=Ce(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function at(e,t){re(2,arguments);var r=pe(e),n=Ce(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),s=new Date(r.getTime());s.setMonth(r.getMonth()+n+1,0);var o=s.getDate();return a>=o?s:(r.setFullYear(s.getFullYear(),s.getMonth(),a),r)}function jc(e,t){re(2,arguments);var r=pe(e).getTime(),n=Ce(t);return new Date(r+n)}var Vc={};function Mt(){return Vc}function Lc(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function ua(e){re(1,arguments);var t=pe(e);return t.setHours(0,0,0,0),t}function Gt(e,t){re(2,arguments);var r=Ce(t);return at(e,r*12)}var Ar=6e4,Fr=36e5,Ac=1e3;function ca(e,t){re(2,arguments);var r=ua(e),n=ua(t);return r.getTime()===n.getTime()}function Fc(e){re(1,arguments);var t=pe(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function $c(e,t){var r;re(1,arguments);var n=e||{},a=pe(n.start),s=pe(n.end),o=s.getTime();if(!(a.getTime()<=o))throw new RangeError("Invalid interval");var i=[],u=a;u.setHours(0,0,0,0);var l=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=o;)i.push(pe(u)),u.setDate(u.getDate()+l),u.setHours(0,0,0,0);return i}function la(e){re(1,arguments);var t=pe(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Yc(e){re(1,arguments);var t=e||{},r=pe(t.start),n=pe(t.end),a=n.getTime();if(!(r.getTime()<=a))throw new RangeError("Invalid interval");var s=[],o=r;for(o.setHours(0,0,0,0),o.setMonth(0,1);o.getTime()<=a;)s.push(pe(o)),o.setFullYear(o.getFullYear()+1);return s}function Uc(e,t){re(2,arguments);var r=Ce(t);return jc(e,-r)}function bt(e){re(1,arguments);var t=1,r=pe(e),n=r.getUTCDay(),a=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function Hc(e){re(1,arguments);var t=pe(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=bt(n),s=new Date(0);s.setUTCFullYear(r,0,4),s.setUTCHours(0,0,0,0);var o=bt(s);return t.getTime()>=a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function Wc(e){re(1,arguments);var t=Hc(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=bt(r);return n}var zc=6048e5;function qc(e){re(1,arguments);var t=pe(e),r=bt(t).getTime()-Wc(t).getTime();return Math.round(r/zc)+1}function ot(e,t){var r,n,a,s,o,i,u,l;re(1,arguments);var m=Mt(),d=Ce((r=(n=(a=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(i=o.options)===null||i===void 0?void 0:i.weekStartsOn)!==null&&a!==void 0?a:m.weekStartsOn)!==null&&n!==void 0?n:(u=m.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var T=pe(e),g=T.getUTCDay(),E=(g<d?7:0)+g-d;return T.setUTCDate(T.getUTCDate()-E),T.setUTCHours(0,0,0,0),T}function fa(e,t){var r,n,a,s,o,i,u,l;re(1,arguments);var m=pe(e),d=m.getUTCFullYear(),T=Mt(),g=Ce((r=(n=(a=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(i=o.options)===null||i===void 0?void 0:i.firstWeekContainsDate)!==null&&a!==void 0?a:T.firstWeekContainsDate)!==null&&n!==void 0?n:(u=T.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var E=new Date(0);E.setUTCFullYear(d+1,0,g),E.setUTCHours(0,0,0,0);var P=ot(E,t),x=new Date(0);x.setUTCFullYear(d,0,g),x.setUTCHours(0,0,0,0);var M=ot(x,t);return m.getTime()>=P.getTime()?d+1:m.getTime()>=M.getTime()?d:d-1}function Bc(e,t){var r,n,a,s,o,i,u,l;re(1,arguments);var m=Mt(),d=Ce((r=(n=(a=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(i=o.options)===null||i===void 0?void 0:i.firstWeekContainsDate)!==null&&a!==void 0?a:m.firstWeekContainsDate)!==null&&n!==void 0?n:(u=m.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),T=fa(e,t),g=new Date(0);g.setUTCFullYear(T,0,d),g.setUTCHours(0,0,0,0);var E=ot(g,t);return E}var Gc=6048e5;function Kc(e,t){re(1,arguments);var r=pe(e),n=ot(r,t).getTime()-Bc(r,t).getTime();return Math.round(n/Gc)+1}var ma=function(t,r){switch(t){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"})}},da=function(t,r){switch(t){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"})}},Qc=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],s=n[2];if(!s)return ma(t,r);var o;switch(a){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",ma(a,r)).replace("{{time}}",da(s,r))},Xc={p:da,P:Qc};const pa=Xc;var Zc=["D","DD"],Jc=["YY","YYYY"];function el(e){return Zc.indexOf(e)!==-1}function tl(e){return Jc.indexOf(e)!==-1}function ha(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var rl={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"}},nl=function(t,r,n){var a,s=rl[t];return typeof s=="string"?a=s:r===1?a=s.one:a=s.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};const al=nl;function $r(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var ol={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},sl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},il={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ul={date:$r({formats:ol,defaultWidth:"full"}),time:$r({formats:sl,defaultWidth:"full"}),dateTime:$r({formats:il,defaultWidth:"full"})};const cl=ul;var ll={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fl=function(t,r,n,a){return ll[t]};const ml=fl;function Rt(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var s=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):s;a=e.formattingValues[o]||e.formattingValues[s]}else{var i=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[i]}var l=e.argumentCallback?e.argumentCallback(t):t;return a[l]}}var dl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},pl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},hl={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"]},vl={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"]},bl={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"}},gl={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"}},yl=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Tl={ordinalNumber:yl,era:Rt({values:dl,defaultWidth:"wide"}),quarter:Rt({values:pl,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Rt({values:hl,defaultWidth:"wide"}),day:Rt({values:vl,defaultWidth:"wide"}),dayPeriod:Rt({values:bl,defaultWidth:"wide",formattingValues:gl,defaultFormattingWidth:"wide"})};const wl=Tl;function kt(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],s=t.match(a);if(!s)return null;var o=s[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(i)?Dl(i,function(d){return d.test(o)}):xl(i,function(d){return d.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var m=t.slice(o.length);return{value:l,rest:m}}}function xl(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Dl(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function El(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],s=t.match(e.parsePattern);if(!s)return null;var o=e.valueCallback?e.valueCallback(s[0]):s[0];o=r.valueCallback?r.valueCallback(o):o;var i=t.slice(a.length);return{value:o,rest:i}}}var Sl=/^(\d+)(th|st|nd|rd)?/i,Nl=/\d+/i,Pl={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},Cl={any:[/^b/i,/^(a|c)/i]},Ol={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Il={any:[/1/i,/2/i,/3/i,/4/i]},_l={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},Ml={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]},Rl={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},kl={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]},jl={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},Vl={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}},Ll={ordinalNumber:El({matchPattern:Sl,parsePattern:Nl,valueCallback:function(t){return parseInt(t,10)}}),era:kt({matchPatterns:Pl,defaultMatchWidth:"wide",parsePatterns:Cl,defaultParseWidth:"any"}),quarter:kt({matchPatterns:Ol,defaultMatchWidth:"wide",parsePatterns:Il,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:kt({matchPatterns:_l,defaultMatchWidth:"wide",parsePatterns:Ml,defaultParseWidth:"any"}),day:kt({matchPatterns:Rl,defaultMatchWidth:"wide",parsePatterns:kl,defaultParseWidth:"any"}),dayPeriod:kt({matchPatterns:jl,defaultMatchWidth:"any",parsePatterns:Vl,defaultParseWidth:"any"})},Al={code:"en-US",formatDistance:al,formatLong:cl,formatRelative:ml,localize:wl,match:Ll,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Fl=Al;function $l(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Yr(e){re(1,arguments);var t=pe(e),r=t.getDay();return r}function va(e){re(1,arguments);var t=pe(e),r=t.getFullYear(),n=t.getMonth(),a=new Date(0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}function Yl(e){re(1,arguments);var t=pe(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function Ul(e,t){re(2,arguments);var r=pe(e),n=pe(t);return r.getTime()<n.getTime()}function ba(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Hl(e,t){if(e){if(typeof e=="string")return ba(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ba(e,t)}}function ga(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Hl(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
32
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,i;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return s=l.done,l},e:function(l){o=!0,i=l},f:function(){try{!s&&r.return!=null&&r.return()}finally{if(o)throw i}}}}function j(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kt(e,t){return Kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Kt(e,t)}function le(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kt(e,t)}function Qt(e){return Qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qt(e)}function Wl(){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 zl(e,t){if(t&&(Je(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j(e)}function fe(e){var t=Wl();return function(){var n=Qt(e),a;if(t){var s=Qt(this).constructor;a=Reflect.construct(n,arguments,s)}else a=n.apply(this,arguments);return zl(this,a)}}function ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ql(e,t){if(Je(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Je(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ya(e){var t=ql(e,"string");return Je(t)==="symbol"?t:String(t)}function Ta(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ya(n.key),n)}}function oe(e,t,r){return t&&Ta(e.prototype,t),r&&Ta(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(e,t,r){return t=ya(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bl=10,wa=function(){function e(){ae(this,e),O(this,"priority",void 0),O(this,"subPriority",0)}return oe(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),Gl=function(e){le(r,e);var t=fe(r);function r(n,a,s,o,i){var u;return ae(this,r),u=t.call(this),u.value=n,u.validateValue=a,u.setValue=s,u.priority=o,i&&(u.subPriority=i),u}return oe(r,[{key:"validate",value:function(a,s){return this.validateValue(a,this.value,s)}},{key:"set",value:function(a,s,o){return this.setValue(a,s,this.value,o)}}]),r}(wa),Kl=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",Bl),O(j(n),"subPriority",-1),n}return oe(r,[{key:"set",value:function(a,s){if(s.timestampIsSet)return a;var o=new Date(0);return o.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),o.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),o}}]),r}(wa),he=function(){function e(){ae(this,e),O(this,"incompatibleTokens",void 0),O(this,"priority",void 0),O(this,"subPriority",void 0)}return oe(e,[{key:"run",value:function(r,n,a,s){var o=this.parse(r,n,a,s);return o?{setter:new Gl(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(r,n,a){return!0}}]),e}(),Ql=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",140),O(j(n),"incompatibleTokens",["R","u","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"G":case"GG":case"GGG":return o.era(a,{width:"abbreviated"})||o.era(a,{width:"narrow"});case"GGGGG":return o.era(a,{width:"narrow"});case"GGGG":default:return o.era(a,{width:"wide"})||o.era(a,{width:"abbreviated"})||o.era(a,{width:"narrow"})}}},{key:"set",value:function(a,s,o){return s.era=o,a.setUTCFullYear(o,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(he),Oe={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}/},He={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 Ie(e,t){return e&&{value:t(e.value),rest:e.rest}}function Se(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function We(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,a=r[2]?parseInt(r[2],10):0,s=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:n*(a*Fr+s*Ar+o*Ac),rest:t.slice(r[0].length)}}function xa(e){return Se(Oe.anyDigitsSigned,e)}function Ne(e,t){switch(e){case 1:return Se(Oe.singleDigit,t);case 2:return Se(Oe.twoDigits,t);case 3:return Se(Oe.threeDigits,t);case 4:return Se(Oe.fourDigits,t);default:return Se(new RegExp("^\\d{1,"+e+"}"),t)}}function Xt(e,t){switch(e){case 1:return Se(Oe.singleDigitSigned,t);case 2:return Se(Oe.twoDigitsSigned,t);case 3:return Se(Oe.threeDigitsSigned,t);case 4:return Se(Oe.fourDigitsSigned,t);default:return Se(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Ur(e){switch(e){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 Da(e,t){var r=t>0,n=r?t:1-t,a;if(n<=50)a=e||100;else{var s=n+50,o=Math.floor(s/100)*100,i=e>=s%100;a=e+o-(i?100:0)}return r?a:1-a}function Ea(e){return e%400===0||e%4===0&&e%100!==0}var Xl=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",130),O(j(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){var i=function(l){return{year:l,isTwoDigitYear:s==="yy"}};switch(s){case"y":return Ie(Ne(4,a),i);case"yo":return Ie(o.ordinalNumber(a,{unit:"year"}),i);default:return Ie(Ne(s.length,a),i)}}},{key:"validate",value:function(a,s){return s.isTwoDigitYear||s.year>0}},{key:"set",value:function(a,s,o){var i=a.getUTCFullYear();if(o.isTwoDigitYear){var u=Da(o.year,i);return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}var l=!("era"in s)||s.era===1?o.year:1-o.year;return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(he),Zl=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",130),O(j(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){var i=function(l){return{year:l,isTwoDigitYear:s==="YY"}};switch(s){case"Y":return Ie(Ne(4,a),i);case"Yo":return Ie(o.ordinalNumber(a,{unit:"year"}),i);default:return Ie(Ne(s.length,a),i)}}},{key:"validate",value:function(a,s){return s.isTwoDigitYear||s.year>0}},{key:"set",value:function(a,s,o,i){var u=fa(a,i);if(o.isTwoDigitYear){var l=Da(o.year,u);return a.setUTCFullYear(l,0,i.firstWeekContainsDate),a.setUTCHours(0,0,0,0),ot(a,i)}var m=!("era"in s)||s.era===1?o.year:1-o.year;return a.setUTCFullYear(m,0,i.firstWeekContainsDate),a.setUTCHours(0,0,0,0),ot(a,i)}}]),r}(he),Jl=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",130),O(j(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s){return Xt(s==="R"?4:s.length,a)}},{key:"set",value:function(a,s,o){var i=new Date(0);return i.setUTCFullYear(o,0,4),i.setUTCHours(0,0,0,0),bt(i)}}]),r}(he),ef=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",130),O(j(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s){return Xt(s==="u"?4:s.length,a)}},{key:"set",value:function(a,s,o){return a.setUTCFullYear(o,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(he),tf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",120),O(j(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"Q":case"QQ":return Ne(s.length,a);case"Qo":return o.ordinalNumber(a,{unit:"quarter"});case"QQQ":return o.quarter(a,{width:"abbreviated",context:"formatting"})||o.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(a,{width:"wide",context:"formatting"})||o.quarter(a,{width:"abbreviated",context:"formatting"})||o.quarter(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,s){return s>=1&&s<=4}},{key:"set",value:function(a,s,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),r}(he),rf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",120),O(j(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"q":case"qq":return Ne(s.length,a);case"qo":return o.ordinalNumber(a,{unit:"quarter"});case"qqq":return o.quarter(a,{width:"abbreviated",context:"standalone"})||o.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(a,{width:"wide",context:"standalone"})||o.quarter(a,{width:"abbreviated",context:"standalone"})||o.quarter(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,s){return s>=1&&s<=4}},{key:"set",value:function(a,s,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),r}(he),nf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),O(j(n),"priority",110),n}return oe(r,[{key:"parse",value:function(a,s,o){var i=function(l){return l-1};switch(s){case"M":return Ie(Se(Oe.month,a),i);case"MM":return Ie(Ne(2,a),i);case"Mo":return Ie(o.ordinalNumber(a,{unit:"month"}),i);case"MMM":return o.month(a,{width:"abbreviated",context:"formatting"})||o.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(a,{width:"wide",context:"formatting"})||o.month(a,{width:"abbreviated",context:"formatting"})||o.month(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,s){return s>=0&&s<=11}},{key:"set",value:function(a,s,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),r}(he),af=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",110),O(j(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){var i=function(l){return l-1};switch(s){case"L":return Ie(Se(Oe.month,a),i);case"LL":return Ie(Ne(2,a),i);case"Lo":return Ie(o.ordinalNumber(a,{unit:"month"}),i);case"LLL":return o.month(a,{width:"abbreviated",context:"standalone"})||o.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(a,{width:"wide",context:"standalone"})||o.month(a,{width:"abbreviated",context:"standalone"})||o.month(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,s){return s>=0&&s<=11}},{key:"set",value:function(a,s,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),r}(he);function of(e,t,r){re(2,arguments);var n=pe(e),a=Ce(t),s=Kc(n,r)-a;return n.setUTCDate(n.getUTCDate()-s*7),n}var sf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",100),O(j(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"w":return Se(Oe.week,a);case"wo":return o.ordinalNumber(a,{unit:"week"});default:return Ne(s.length,a)}}},{key:"validate",value:function(a,s){return s>=1&&s<=53}},{key:"set",value:function(a,s,o,i){return ot(of(a,o,i),i)}}]),r}(he);function uf(e,t){re(2,arguments);var r=pe(e),n=Ce(t),a=qc(r)-n;return r.setUTCDate(r.getUTCDate()-a*7),r}var cf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",100),O(j(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"I":return Se(Oe.week,a);case"Io":return o.ordinalNumber(a,{unit:"week"});default:return Ne(s.length,a)}}},{key:"validate",value:function(a,s){return s>=1&&s<=53}},{key:"set",value:function(a,s,o){return bt(uf(a,o))}}]),r}(he),lf=[31,28,31,30,31,30,31,31,30,31,30,31],ff=[31,29,31,30,31,30,31,31,30,31,30,31],mf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",90),O(j(n),"subPriority",1),O(j(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"d":return Se(Oe.date,a);case"do":return o.ordinalNumber(a,{unit:"date"});default:return Ne(s.length,a)}}},{key:"validate",value:function(a,s){var o=a.getUTCFullYear(),i=Ea(o),u=a.getUTCMonth();return i?s>=1&&s<=ff[u]:s>=1&&s<=lf[u]}},{key:"set",value:function(a,s,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),r}(he),df=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",90),O(j(n),"subpriority",1),O(j(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"D":case"DD":return Se(Oe.dayOfYear,a);case"Do":return o.ordinalNumber(a,{unit:"date"});default:return Ne(s.length,a)}}},{key:"validate",value:function(a,s){var o=a.getUTCFullYear(),i=Ea(o);return i?s>=1&&s<=366:s>=1&&s<=365}},{key:"set",value:function(a,s,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),r}(he);function Hr(e,t,r){var n,a,s,o,i,u,l,m;re(2,arguments);var d=Mt(),T=Ce((n=(a=(s=(o=r==null?void 0:r.weekStartsOn)!==null&&o!==void 0?o:r==null||(i=r.locale)===null||i===void 0||(u=i.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&s!==void 0?s:d.weekStartsOn)!==null&&a!==void 0?a:(l=d.locale)===null||l===void 0||(m=l.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&n!==void 0?n:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=pe(e),E=Ce(t),P=g.getUTCDay(),x=E%7,M=(x+7)%7,U=(M<T?7:0)+E-P;return g.setUTCDate(g.getUTCDate()+U),g}var pf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",90),O(j(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"E":case"EE":case"EEE":return o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,s){return s>=0&&s<=6}},{key:"set",value:function(a,s,o,i){return a=Hr(a,o,i),a.setUTCHours(0,0,0,0),a}}]),r}(he),hf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",90),O(j(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o,i){var u=function(m){var d=Math.floor((m-1)/7)*7;return(m+i.weekStartsOn+6)%7+d};switch(s){case"e":case"ee":return Ie(Ne(s.length,a),u);case"eo":return Ie(o.ordinalNumber(a,{unit:"day"}),u);case"eee":return o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"eeeee":return o.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,s){return s>=0&&s<=6}},{key:"set",value:function(a,s,o,i){return a=Hr(a,o,i),a.setUTCHours(0,0,0,0),a}}]),r}(he),vf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",90),O(j(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o,i){var u=function(m){var d=Math.floor((m-1)/7)*7;return(m+i.weekStartsOn+6)%7+d};switch(s){case"c":case"cc":return Ie(Ne(s.length,a),u);case"co":return Ie(o.ordinalNumber(a,{unit:"day"}),u);case"ccc":return o.day(a,{width:"abbreviated",context:"standalone"})||o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"});case"ccccc":return o.day(a,{width:"narrow",context:"standalone"});case"cccccc":return o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(a,{width:"wide",context:"standalone"})||o.day(a,{width:"abbreviated",context:"standalone"})||o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,s){return s>=0&&s<=6}},{key:"set",value:function(a,s,o,i){return a=Hr(a,o,i),a.setUTCHours(0,0,0,0),a}}]),r}(he);function bf(e,t){re(2,arguments);var r=Ce(t);r%7===0&&(r=r-7);var n=1,a=pe(e),s=a.getUTCDay(),o=r%7,i=(o+7)%7,u=(i<n?7:0)+r-s;return a.setUTCDate(a.getUTCDate()+u),a}var gf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",90),O(j(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){var i=function(l){return l===0?7:l};switch(s){case"i":case"ii":return Ne(s.length,a);case"io":return o.ordinalNumber(a,{unit:"day"});case"iii":return Ie(o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),i);case"iiiii":return Ie(o.day(a,{width:"narrow",context:"formatting"}),i);case"iiiiii":return Ie(o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),i);case"iiii":default:return Ie(o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),i)}}},{key:"validate",value:function(a,s){return s>=1&&s<=7}},{key:"set",value:function(a,s,o){return a=bf(a,o),a.setUTCHours(0,0,0,0),a}}]),r}(he),yf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",80),O(j(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"a":case"aa":case"aaa":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,s,o){return a.setUTCHours(Ur(o),0,0,0),a}}]),r}(he),Tf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",80),O(j(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"b":case"bb":case"bbb":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,s,o){return a.setUTCHours(Ur(o),0,0,0),a}}]),r}(he),wf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",80),O(j(n),"incompatibleTokens",["a","b","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"B":case"BB":case"BBB":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,s,o){return a.setUTCHours(Ur(o),0,0,0),a}}]),r}(he),xf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",70),O(j(n),"incompatibleTokens",["H","K","k","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"h":return Se(Oe.hour12h,a);case"ho":return o.ordinalNumber(a,{unit:"hour"});default:return Ne(s.length,a)}}},{key:"validate",value:function(a,s){return s>=1&&s<=12}},{key:"set",value:function(a,s,o){var i=a.getUTCHours()>=12;return i&&o<12?a.setUTCHours(o+12,0,0,0):!i&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),r}(he),Df=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",70),O(j(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"H":return Se(Oe.hour23h,a);case"Ho":return o.ordinalNumber(a,{unit:"hour"});default:return Ne(s.length,a)}}},{key:"validate",value:function(a,s){return s>=0&&s<=23}},{key:"set",value:function(a,s,o){return a.setUTCHours(o,0,0,0),a}}]),r}(he),Ef=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",70),O(j(n),"incompatibleTokens",["h","H","k","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"K":return Se(Oe.hour11h,a);case"Ko":return o.ordinalNumber(a,{unit:"hour"});default:return Ne(s.length,a)}}},{key:"validate",value:function(a,s){return s>=0&&s<=11}},{key:"set",value:function(a,s,o){var i=a.getUTCHours()>=12;return i&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),r}(he),Sf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",70),O(j(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"k":return Se(Oe.hour24h,a);case"ko":return o.ordinalNumber(a,{unit:"hour"});default:return Ne(s.length,a)}}},{key:"validate",value:function(a,s){return s>=1&&s<=24}},{key:"set",value:function(a,s,o){var i=o<=24?o%24:o;return a.setUTCHours(i,0,0,0),a}}]),r}(he),Nf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",60),O(j(n),"incompatibleTokens",["t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"m":return Se(Oe.minute,a);case"mo":return o.ordinalNumber(a,{unit:"minute"});default:return Ne(s.length,a)}}},{key:"validate",value:function(a,s){return s>=0&&s<=59}},{key:"set",value:function(a,s,o){return a.setUTCMinutes(o,0,0),a}}]),r}(he),Pf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",50),O(j(n),"incompatibleTokens",["t","T"]),n}return oe(r,[{key:"parse",value:function(a,s,o){switch(s){case"s":return Se(Oe.second,a);case"so":return o.ordinalNumber(a,{unit:"second"});default:return Ne(s.length,a)}}},{key:"validate",value:function(a,s){return s>=0&&s<=59}},{key:"set",value:function(a,s,o){return a.setUTCSeconds(o,0),a}}]),r}(he),Cf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",30),O(j(n),"incompatibleTokens",["t","T"]),n}return oe(r,[{key:"parse",value:function(a,s){var o=function(u){return Math.floor(u*Math.pow(10,-s.length+3))};return Ie(Ne(s.length,a),o)}},{key:"set",value:function(a,s,o){return a.setUTCMilliseconds(o),a}}]),r}(he),Of=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",10),O(j(n),"incompatibleTokens",["t","T","x"]),n}return oe(r,[{key:"parse",value:function(a,s){switch(s){case"X":return We(He.basicOptionalMinutes,a);case"XX":return We(He.basic,a);case"XXXX":return We(He.basicOptionalSeconds,a);case"XXXXX":return We(He.extendedOptionalSeconds,a);case"XXX":default:return We(He.extended,a)}}},{key:"set",value:function(a,s,o){return s.timestampIsSet?a:new Date(a.getTime()-o)}}]),r}(he),If=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",10),O(j(n),"incompatibleTokens",["t","T","X"]),n}return oe(r,[{key:"parse",value:function(a,s){switch(s){case"x":return We(He.basicOptionalMinutes,a);case"xx":return We(He.basic,a);case"xxxx":return We(He.basicOptionalSeconds,a);case"xxxxx":return We(He.extendedOptionalSeconds,a);case"xxx":default:return We(He.extended,a)}}},{key:"set",value:function(a,s,o){return s.timestampIsSet?a:new Date(a.getTime()-o)}}]),r}(he),_f=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",40),O(j(n),"incompatibleTokens","*"),n}return oe(r,[{key:"parse",value:function(a){return xa(a)}},{key:"set",value:function(a,s,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),r}(he),Mf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return n=t.call.apply(t,[this].concat(s)),O(j(n),"priority",20),O(j(n),"incompatibleTokens","*"),n}return oe(r,[{key:"parse",value:function(a){return xa(a)}},{key:"set",value:function(a,s,o){return[new Date(o),{timestampIsSet:!0}]}}]),r}(he),Rf={G:new Ql,y:new Xl,Y:new Zl,R:new Jl,u:new ef,Q:new tf,q:new rf,M:new nf,L:new af,w:new sf,I:new cf,d:new mf,D:new df,E:new pf,e:new hf,c:new vf,i:new gf,a:new yf,b:new Tf,B:new wf,h:new xf,H:new Df,K:new Ef,k:new Sf,m:new Nf,s:new Pf,S:new Cf,X:new Of,x:new If,t:new _f,T:new Mf},kf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Vf=/^'([^]*?)'?$/,Lf=/''/g,Af=/\S/,Ff=/[a-zA-Z]/;function ze(e,t,r,n){var a,s,o,i,u,l,m,d,T,g,E,P,x,M,U,G,W,b;re(3,arguments);var Y=String(e),ee=String(t),Q=Mt(),X=(a=(s=n==null?void 0:n.locale)!==null&&s!==void 0?s:Q.locale)!==null&&a!==void 0?a:Fl;if(!X.match)throw new RangeError("locale must contain match property");var ue=Ce((o=(i=(u=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(m=n.locale)===null||m===void 0||(d=m.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&u!==void 0?u:Q.firstWeekContainsDate)!==null&&i!==void 0?i:(T=Q.locale)===null||T===void 0||(g=T.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(ue>=1&&ue<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var se=Ce((E=(P=(x=(M=n==null?void 0:n.weekStartsOn)!==null&&M!==void 0?M:n==null||(U=n.locale)===null||U===void 0||(G=U.options)===null||G===void 0?void 0:G.weekStartsOn)!==null&&x!==void 0?x:Q.weekStartsOn)!==null&&P!==void 0?P:(W=Q.locale)===null||W===void 0||(b=W.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&E!==void 0?E:0);if(!(se>=0&&se<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(ee==="")return Y===""?pe(r):new Date(NaN);var ie={firstWeekContainsDate:ue,weekStartsOn:se,locale:X},w=[new Kl],H=ee.match(jf).map(function(I){var _=I[0];if(_ in pa){var F=pa[_];return F(I,X.formatLong)}return I}).join("").match(kf),q=[],A=ga(H),te;try{var L=function(){var _=te.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&tl(_)&&ha(_,ee,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&el(_)&&ha(_,ee,e);var F=_[0],De=Rf[F];if(De){var S=De.incompatibleTokens;if(Array.isArray(S)){var ke=q.find(function(Fe){return S.includes(Fe.token)||Fe.token===F});if(ke)throw new RangeError("The format string mustn't contain `".concat(ke.fullToken,"` and `").concat(_,"` at the same time"))}else if(De.incompatibleTokens==="*"&&q.length>0)throw new RangeError("The format string mustn't contain `".concat(_,"` and any other token at the same time"));q.push({token:F,fullToken:_});var Ae=De.run(Y,_,X.match,ie);if(!Ae)return{v:new Date(NaN)};w.push(Ae.setter),Y=Ae.rest}else{if(F.match(Ff))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");if(_==="''"?_="'":F==="'"&&(_=$f(_)),Y.indexOf(_)===0)Y=Y.slice(_.length);else return{v:new Date(NaN)}}};for(A.s();!(te=A.n()).done;){var me=L();if(Je(me)==="object")return me.v}}catch(I){A.e(I)}finally{A.f()}if(Y.length>0&&Af.test(Y))return new Date(NaN);var h=w.map(function(I){return I.priority}).sort(function(I,_){return _-I}).filter(function(I,_,F){return F.indexOf(I)===_}).map(function(I){return w.filter(function(_){return _.priority===I}).sort(function(_,F){return F.subPriority-_.subPriority})}).map(function(I){return I[0]}),D=pe(r);if(isNaN(D.getTime()))return new Date(NaN);var f=Uc(D,Lc(D)),N={},V=ga(h),z;try{for(V.s();!(z=V.n()).done;){var C=z.value;if(!C.validate(f,ie))return new Date(NaN);var k=C.set(f,N,ie);Array.isArray(k)?(f=k[0],$l(N,k[1])):f=k}}catch(I){V.e(I)}finally{V.f()}return f}function $f(e){return e.match(Vf)[1].replace(Lf,"'")}function Yf(e){return re(1,arguments),ca(e,Date.now())}function Uf(e,t){re(2,arguments);var r=Ce(t);return Bt(e,-r)}function Hf(e,t){re(2,arguments);var r=t-Yr(e);return r<=0&&(r+=7),Bt(e,r)}function Wf(e,t){var r;re(1,arguments);var n=Ce((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=Gf(e),s;if(a.date){var o=Kf(a.date,n);s=Qf(o.restDateString,o.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var i=s.getTime(),u=0,l;if(a.time&&(u=Xf(a.time),isNaN(u)))return new Date(NaN);if(a.timezone){if(l=Zf(a.timezone),isNaN(l))return new Date(NaN)}else{var m=new Date(i+u),d=new Date(0);return d.setFullYear(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate()),d.setHours(m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds()),d}return new Date(i+u+l)}var Zt={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},zf=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,qf=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Bf=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Gf(e){var t={},r=e.split(Zt.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Zt.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Zt.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var a=Zt.timezone.exec(n);a?(t.time=n.replace(a[1],""),t.timezone=a[1]):t.time=n}return t}function Kf(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var a=n[1]?parseInt(n[1]):null,s=n[2]?parseInt(n[2]):null;return{year:s===null?a:s*100,restDateString:e.slice((n[1]||n[2]).length)}}function Qf(e,t){if(t===null)return new Date(NaN);var r=e.match(zf);if(!r)return new Date(NaN);var n=!!r[4],a=jt(r[1]),s=jt(r[2])-1,o=jt(r[3]),i=jt(r[4]),u=jt(r[5])-1;if(n)return nm(t,i,u)?Jf(t,i,u):new Date(NaN);var l=new Date(0);return!tm(t,s,o)||!rm(t,a)?new Date(NaN):(l.setUTCFullYear(t,s,Math.max(a,o)),l)}function jt(e){return e?parseInt(e):1}function Xf(e){var t=e.match(qf);if(!t)return NaN;var r=Wr(t[1]),n=Wr(t[2]),a=Wr(t[3]);return am(r,n,a)?r*Fr+n*Ar+a*1e3:NaN}function Wr(e){return e&&parseFloat(e.replace(",","."))||0}function Zf(e){if(e==="Z")return 0;var t=e.match(Bf);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return om(n,a)?r*(n*Fr+a*Ar):NaN}function Jf(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var a=n.getUTCDay()||7,s=(t-1)*7+r+1-a;return n.setUTCDate(n.getUTCDate()+s),n}var em=[31,null,31,30,31,30,31,31,30,31,30,31];function Sa(e){return e%400===0||e%4===0&&e%100!==0}function tm(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(em[t]||(Sa(e)?29:28))}function rm(e,t){return t>=1&&t<=(Sa(e)?366:365)}function nm(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function am(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function om(e,t){return t>=0&&t<=59}function sm(e,t){re(2,arguments);var r=pe(e),n=Ce(t),a=r.getFullYear(),s=r.getDate(),o=new Date(0);o.setFullYear(a,n,15),o.setHours(0,0,0,0);var i=va(o);return r.setMonth(n,Math.min(s,i)),r}function im(e,t){re(2,arguments);var r=pe(e),n=Ce(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function Na(e,t){re(2,arguments);var r=Ce(t);return at(e,-r)}function Pa(e,t){re(2,arguments);var r=Ce(t);return Gt(e,-r)}function Ca(){return window.navigator.languages?window.navigator.languages[0]:window.navigator.language}function um(e,t,r){const n=[];for(let a=e;a<=t;a++)n.push(r?r(a):a);return n}function cm(e,t){const r=e.target;return r?!t.isSameNode(r)&&!t.contains(r):!1}function lm(e,t){return e.isSameNode(t)||e.contains(t)}function fm(e,t){const r=Object.entries(t),n=getComputedStyle(e);for(let a=0,s=r.length;a<s;a++){const[o,i]=r[a];if(typeof i=="string"&&i.indexOf(",")>-1){if(!i.split(",").map(l=>l.trim()).includes(n[o]))return!1}else if(n[o]!==i)return!1}return!0}function mm(e,t){const r=Object.entries(t),n=getComputedStyle(e);for(let a=0,s=r.length;a<s;a++){const[o,i]=r[a];if(typeof i=="string"&&i.indexOf(",")>-1){if(i.split(",").map(l=>l.trim()).includes(n[o]))return!0}else if(n[o]===i)return!0}return!1}function Oa(e,t,r=!1){return r&&fm(e,t)||!r&&mm(e,t)?e:e.parentElement?Oa(e.parentElement,t):e}function dm(e,t){const r=Array.from(document.querySelectorAll("body *")),n=[];for(let a=0,s=r.length;a<s;a++){const o=getComputedStyle(r[a]);o[e]&&t(o[e])&&n.push(o[e])}return n}function tp(e){return e}function pm(e){const t=document.documentElement;Object.keys(e).forEach(r=>{t.style.setProperty(r,e[r])})}function hm(e,t,r,n,a,s,o,i,u,l,m,d,T,g,E,P,x,M,U,G){return{"--theme-bsc-primary-1":e,"--theme-bsc-primary-2":t,"--theme-bsc-primary-3":r,"--theme-bsc-primary-4":n,"--theme-bsc-primary-5":a,"--theme-bsc-gray-1":s,"--theme-bsc-gray-2":o,"--theme-bsc-gray-3":i,"--theme-bsc-gray-4":u,"--theme-bsc-gray-5":l,"--theme-bsc-mono-dark-1":m,"--theme-bsc-mono-dark-2":d,"--theme-bsc-mono-dark-3":T,"--theme-bsc-mono-light-1":g,"--theme-bsc-mono-light-2":E,"--theme-bsc-mono-light-3":P,"--theme-bsc-info":x,"--theme-bsc-success":M,"--theme-bsc-warning":U,"--theme-bsc-error":G}}const zr=({template:e,props:t,children:r})=>e(t,r);var vm=p;function bm(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Jt=bm(vm),gm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ym=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Ia=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,s=a===void 0?24:a;t.children;var o=ym(t,["color","size","children"]),i="remixicon-icon "+(o.className||"");return Jt.default.createElement("svg",gm({},o,{className:i,width:s,height:s,fill:n,viewBox:"0 0 24 24"}),Jt.default.createElement("path",{d:"M10.828 12l4.95 4.95-1.414 1.414L8 12l6.364-6.364 1.414 1.414z"}))},Tm=Jt.default.memo?Jt.default.memo(Ia):Ia,wm=Tm;const xm=Xe(wm);var Dm=p;function Em(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var er=Em(Dm),Sm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nm=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},_a=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,s=a===void 0?24:a;t.children;var o=Nm(t,["color","size","children"]),i="remixicon-icon "+(o.className||"");return er.default.createElement("svg",Sm({},o,{className:i,width:s,height:s,fill:n,viewBox:"0 0 24 24"}),er.default.createElement("path",{d:"M13.172 12l-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"}))},Pm=er.default.memo?er.default.memo(_a):_a,Cm=Pm;const Om=Xe(Cm);var Im=p;function _m(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var tr=_m(Im),Mm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rm=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Ma=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,s=a===void 0?24:a;t.children;var o=Rm(t,["color","size","children"]),i="remixicon-icon "+(o.className||"");return tr.default.createElement("svg",Mm({},o,{className:i,width:s,height:s,fill:n,viewBox:"0 0 24 24"}),tr.default.createElement("path",{d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"}))},km=tr.default.memo?tr.default.memo(Ma):Ma,jm=km;const Ra=Xe(jm);var Vm=p;function Lm(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var rr=Lm(Vm),Am=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fm=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},ka=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,s=a===void 0?24:a;t.children;var o=Fm(t,["color","size","children"]),i="remixicon-icon "+(o.className||"");return rr.default.createElement("svg",Am({},o,{className:i,width:s,height:s,fill:n,viewBox:"0 0 24 24"}),rr.default.createElement("path",{d:"M17 3h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h4V1h2v2h6V1h2v2zm3 8H4v8h16v-8zm-5-6H9v2H7V5H4v4h16V5h-3v2h-2V5zm-9 8h2v2H6v-2zm5 0h2v2h-2v-2zm5 0h2v2h-2v-2z"}))},$m=rr.default.memo?rr.default.memo(ka):ka,Ym=$m;const ja=Xe(Ym);var Um=p;function Hm(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var nr=Hm(Um),Wm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zm=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Va=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,s=a===void 0?24:a;t.children;var o=zm(t,["color","size","children"]),i="remixicon-icon "+(o.className||"");return nr.default.createElement("svg",Wm({},o,{className:i,width:s,height:s,fill:n,viewBox:"0 0 24 24"}),nr.default.createElement("path",{d:"M12 10.828l-4.95 4.95-1.414-1.414L12 8l6.364 6.364-1.414 1.414z"}))},qm=nr.default.memo?nr.default.memo(Va):Va,Bm=qm;const qr=Xe(Bm);var Gm=p;function Km(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ar=Km(Gm),Qm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xm=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},La=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,s=a===void 0?24:a;t.children;var o=Xm(t,["color","size","children"]),i="remixicon-icon "+(o.className||"");return ar.default.createElement("svg",Qm({},o,{className:i,width:s,height:s,fill:n,viewBox:"0 0 24 24"}),ar.default.createElement("path",{d:"M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z"}))},Zm=ar.default.memo?ar.default.memo(La):La,Jm=Zm;const Br=Xe(Jm);function ed(e,t,r){const n=s=>{const o=s.target,i=e.style.display!=="hidden";e&&i&&!lm(e,o)&&!a(r,o)&&t(!1),t(!0)},a=(s,o)=>{if(!s)return!1;for(let i=0,u=s.length;i<u;i++)if(s[i].isSameNode(o)||s[i].contains(o))return!0;return!1};return document.addEventListener("mousedown",n),n}function td(e){document.removeEventListener("mousedown",e)}function rd(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,s;for(s=0;s<n.length;s++)a=n[s],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function nd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kt(e,t)}var Gr={exports:{}},or={exports:{}},be={};/** @license React v16.13.1
792
33
  * react-is.production.min.js
793
34
  *
794
35
  * Copyright (c) Facebook, Inc. and its affiliates.
795
36
  *
796
37
  * This source code is licensed under the MIT license found in the
797
38
  * LICENSE file in the root directory of this source tree.
798
- */var ji;function Fd(){if(ji)return ye;ji=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function $(h){if(typeof h=="object"&&h!==null){var Y=h.$$typeof;switch(Y){case t:switch(h=h.type,h){case u:case l:case n:case i:case a:case m:return h;default:switch(h=h&&h.$$typeof,h){case s:case f:case x:case p:case o:return h;default:return Y}}case r:return Y}}}function U(h){return $(h)===l}return ye.AsyncMode=u,ye.ConcurrentMode=l,ye.ContextConsumer=s,ye.ContextProvider=o,ye.Element=t,ye.ForwardRef=f,ye.Fragment=n,ye.Lazy=x,ye.Memo=p,ye.Portal=r,ye.Profiler=i,ye.StrictMode=a,ye.Suspense=m,ye.isAsyncMode=function(h){return U(h)||$(h)===u},ye.isConcurrentMode=U,ye.isContextConsumer=function(h){return $(h)===s},ye.isContextProvider=function(h){return $(h)===o},ye.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},ye.isForwardRef=function(h){return $(h)===f},ye.isFragment=function(h){return $(h)===n},ye.isLazy=function(h){return $(h)===x},ye.isMemo=function(h){return $(h)===p},ye.isPortal=function(h){return $(h)===r},ye.isProfiler=function(h){return $(h)===i},ye.isStrictMode=function(h){return $(h)===a},ye.isSuspense=function(h){return $(h)===m},ye.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===l||h===i||h===a||h===m||h===v||typeof h=="object"&&h!==null&&(h.$$typeof===x||h.$$typeof===p||h.$$typeof===o||h.$$typeof===s||h.$$typeof===f||h.$$typeof===y||h.$$typeof===N||h.$$typeof===O||h.$$typeof===T)},ye.typeOf=$,ye}var we={};/** @license React v16.13.1
39
+ */var Aa;function ad(){if(Aa)return be;Aa=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,P=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,U=e?Symbol.for("react.scope"):60119;function G(b){if(typeof b=="object"&&b!==null){var Y=b.$$typeof;switch(Y){case t:switch(b=b.type,b){case u:case l:case n:case s:case a:case d:return b;default:switch(b=b&&b.$$typeof,b){case i:case m:case E:case g:case o:return b;default:return Y}}case r:return Y}}}function W(b){return G(b)===l}return be.AsyncMode=u,be.ConcurrentMode=l,be.ContextConsumer=i,be.ContextProvider=o,be.Element=t,be.ForwardRef=m,be.Fragment=n,be.Lazy=E,be.Memo=g,be.Portal=r,be.Profiler=s,be.StrictMode=a,be.Suspense=d,be.isAsyncMode=function(b){return W(b)||G(b)===u},be.isConcurrentMode=W,be.isContextConsumer=function(b){return G(b)===i},be.isContextProvider=function(b){return G(b)===o},be.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},be.isForwardRef=function(b){return G(b)===m},be.isFragment=function(b){return G(b)===n},be.isLazy=function(b){return G(b)===E},be.isMemo=function(b){return G(b)===g},be.isPortal=function(b){return G(b)===r},be.isProfiler=function(b){return G(b)===s},be.isStrictMode=function(b){return G(b)===a},be.isSuspense=function(b){return G(b)===d},be.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===l||b===s||b===a||b===d||b===T||typeof b=="object"&&b!==null&&(b.$$typeof===E||b.$$typeof===g||b.$$typeof===o||b.$$typeof===i||b.$$typeof===m||b.$$typeof===x||b.$$typeof===M||b.$$typeof===U||b.$$typeof===P)},be.typeOf=G,be}var ge={};/** @license React v16.13.1
799
40
  * react-is.development.js
800
41
  *
801
42
  * Copyright (c) Facebook, Inc. and its affiliates.
802
43
  *
803
44
  * This source code is licensed under the MIT license found in the
804
45
  * LICENSE file in the root directory of this source tree.
805
- */var Vi;function Yd(){return Vi||(Vi=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,T=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function $(D){return typeof D=="string"||typeof D=="function"||D===n||D===l||D===i||D===a||D===m||D===v||typeof D=="object"&&D!==null&&(D.$$typeof===x||D.$$typeof===p||D.$$typeof===o||D.$$typeof===s||D.$$typeof===f||D.$$typeof===y||D.$$typeof===N||D.$$typeof===O||D.$$typeof===T)}function U(D){if(typeof D=="object"&&D!==null){var Fe=D.$$typeof;switch(Fe){case t:var Be=D.type;switch(Be){case u:case l:case n:case i:case a:case m:return Be;default:var qe=Be&&Be.$$typeof;switch(qe){case s:case f:case x:case p:case o:return qe;default:return Fe}}case r:return Fe}}}var h=u,Y=l,Q=s,Z=o,G=t,oe=f,le=n,ce=x,S=p,X=r,J=i,z=a,ne=m,H=!1;function pe(D){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),g(D)||U(D)===u}function g(D){return U(D)===l}function P(D){return U(D)===s}function d(D){return U(D)===o}function C(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function F(D){return U(D)===f}function K(D){return U(D)===n}function I(D){return U(D)===x}function j(D){return U(D)===p}function A(D){return U(D)===r}function M(D){return U(D)===i}function B(D){return U(D)===a}function Ne(D){return U(D)===m}we.AsyncMode=h,we.ConcurrentMode=Y,we.ContextConsumer=Q,we.ContextProvider=Z,we.Element=G,we.ForwardRef=oe,we.Fragment=le,we.Lazy=ce,we.Memo=S,we.Portal=X,we.Profiler=J,we.StrictMode=z,we.Suspense=ne,we.isAsyncMode=pe,we.isConcurrentMode=g,we.isContextConsumer=P,we.isContextProvider=d,we.isElement=C,we.isForwardRef=F,we.isFragment=K,we.isLazy=I,we.isMemo=j,we.isPortal=A,we.isProfiler=M,we.isStrictMode=B,we.isSuspense=Ne,we.isValidElementType=$,we.typeOf=U}()),we}var Li;function $i(){return Li||(Li=1,process.env.NODE_ENV==="production"?Kr.exports=Fd():Kr.exports=Yd()),Kr.exports}/*
46
+ */var Fa;function od(){return Fa||(Fa=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,P=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,U=e?Symbol.for("react.scope"):60119;function G(S){return typeof S=="string"||typeof S=="function"||S===n||S===l||S===s||S===a||S===d||S===T||typeof S=="object"&&S!==null&&(S.$$typeof===E||S.$$typeof===g||S.$$typeof===o||S.$$typeof===i||S.$$typeof===m||S.$$typeof===x||S.$$typeof===M||S.$$typeof===U||S.$$typeof===P)}function W(S){if(typeof S=="object"&&S!==null){var ke=S.$$typeof;switch(ke){case t:var Ae=S.type;switch(Ae){case u:case l:case n:case s:case a:case d:return Ae;default:var Fe=Ae&&Ae.$$typeof;switch(Fe){case i:case m:case E:case g:case o:return Fe;default:return ke}}case r:return ke}}}var b=u,Y=l,ee=i,Q=o,X=t,ue=m,se=n,ie=E,w=g,H=r,q=s,A=a,te=d,L=!1;function me(S){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),h(S)||W(S)===u}function h(S){return W(S)===l}function D(S){return W(S)===i}function f(S){return W(S)===o}function N(S){return typeof S=="object"&&S!==null&&S.$$typeof===t}function V(S){return W(S)===m}function z(S){return W(S)===n}function C(S){return W(S)===E}function k(S){return W(S)===g}function I(S){return W(S)===r}function _(S){return W(S)===s}function F(S){return W(S)===a}function De(S){return W(S)===d}ge.AsyncMode=b,ge.ConcurrentMode=Y,ge.ContextConsumer=ee,ge.ContextProvider=Q,ge.Element=X,ge.ForwardRef=ue,ge.Fragment=se,ge.Lazy=ie,ge.Memo=w,ge.Portal=H,ge.Profiler=q,ge.StrictMode=A,ge.Suspense=te,ge.isAsyncMode=me,ge.isConcurrentMode=h,ge.isContextConsumer=D,ge.isContextProvider=f,ge.isElement=N,ge.isForwardRef=V,ge.isFragment=z,ge.isLazy=C,ge.isMemo=k,ge.isPortal=I,ge.isProfiler=_,ge.isStrictMode=F,ge.isSuspense=De,ge.isValidElementType=G,ge.typeOf=W}()),ge}var $a;function Ya(){return $a||($a=1,process.env.NODE_ENV==="production"?or.exports=ad():or.exports=od()),or.exports}/*
806
47
  object-assign
807
48
  (c) Sindre Sorhus
808
49
  @license MIT
809
- */var da,Fi;function Hd(){if(Fi)return da;Fi=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(o).map(function(f){return o[f]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return da=a()?Object.assign:function(i,o){for(var s,u=n(i),l,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var m in s)t.call(s,m)&&(u[m]=s[m]);if(e){l=e(s);for(var v=0;v<l.length;v++)r.call(s,l[v])&&(u[l[v]]=s[l[v]])}}return u},da}var pa,Yi;function va(){if(Yi)return pa;Yi=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return pa=e,pa}var ha,Hi;function Ui(){return Hi||(Hi=1,ha=Function.call.bind(Object.prototype.hasOwnProperty)),ha}var ba,Wi;function Ud(){if(Wi)return ba;Wi=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=va(),r={},n=Ui();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,s,u,l){if(process.env.NODE_ENV!=="production"){for(var f in i)if(n(i,f)){var m;try{if(typeof i[f]!="function"){var v=Error((u||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}m=i[f](o,f,u,s,null,t)}catch(x){m=x}if(m&&!(m instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var p=l?l():"";e("Failed "+s+" type: "+m.message+(p??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ba=a,ba}var ga,zi;function Wd(){if(zi)return ga;zi=1;var e=$i(),t=Hd(),r=va(),n=Ui(),a=Ud(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return ga=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function m(g){var P=g&&(l&&g[l]||g[f]);if(typeof P=="function")return P}var v="<<anonymous>>",p={array:N("array"),bigint:N("bigint"),bool:N("boolean"),func:N("function"),number:N("number"),object:N("object"),string:N("string"),symbol:N("symbol"),any:O(),arrayOf:$,element:U(),elementType:h(),instanceOf:Y,node:oe(),objectOf:Z,oneOf:Q,oneOfType:G,shape:ce,exact:S};function x(g,P){return g===P?g!==0||1/g===1/P:g!==g&&P!==P}function T(g,P){this.message=g,this.data=P&&typeof P=="object"?P:{},this.stack=""}T.prototype=Error.prototype;function y(g){if(process.env.NODE_ENV!=="production")var P={},d=0;function C(K,I,j,A,M,B,Ne){if(A=A||v,B=B||j,Ne!==r){if(u){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Fe=A+":"+j;!P[Fe]&&d<3&&(i("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+A+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),P[Fe]=!0,d++)}}return I[j]==null?K?I[j]===null?new T("The "+M+" `"+B+"` is marked as required "+("in `"+A+"`, but its value is `null`.")):new T("The "+M+" `"+B+"` is marked as required in "+("`"+A+"`, but its value is `undefined`.")):null:g(I,j,A,M,B)}var F=C.bind(null,!1);return F.isRequired=C.bind(null,!0),F}function N(g){function P(d,C,F,K,I,j){var A=d[C],M=z(A);if(M!==g){var B=ne(A);return new T("Invalid "+K+" `"+I+"` of type "+("`"+B+"` supplied to `"+F+"`, expected ")+("`"+g+"`."),{expectedType:g})}return null}return y(P)}function O(){return y(o)}function $(g){function P(d,C,F,K,I){if(typeof g!="function")return new T("Property `"+I+"` of component `"+F+"` has invalid PropType notation inside arrayOf.");var j=d[C];if(!Array.isArray(j)){var A=z(j);return new T("Invalid "+K+" `"+I+"` of type "+("`"+A+"` supplied to `"+F+"`, expected an array."))}for(var M=0;M<j.length;M++){var B=g(j,M,F,K,I+"["+M+"]",r);if(B instanceof Error)return B}return null}return y(P)}function U(){function g(P,d,C,F,K){var I=P[d];if(!s(I)){var j=z(I);return new T("Invalid "+F+" `"+K+"` of type "+("`"+j+"` supplied to `"+C+"`, expected a single ReactElement."))}return null}return y(g)}function h(){function g(P,d,C,F,K){var I=P[d];if(!e.isValidElementType(I)){var j=z(I);return new T("Invalid "+F+" `"+K+"` of type "+("`"+j+"` supplied to `"+C+"`, expected a single ReactElement type."))}return null}return y(g)}function Y(g){function P(d,C,F,K,I){if(!(d[C]instanceof g)){var j=g.name||v,A=pe(d[C]);return new T("Invalid "+K+" `"+I+"` of type "+("`"+A+"` supplied to `"+F+"`, expected ")+("instance of `"+j+"`."))}return null}return y(P)}function Q(g){if(!Array.isArray(g))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function P(d,C,F,K,I){for(var j=d[C],A=0;A<g.length;A++)if(x(j,g[A]))return null;var M=JSON.stringify(g,function(Ne,D){var Fe=ne(D);return Fe==="symbol"?String(D):D});return new T("Invalid "+K+" `"+I+"` of value `"+String(j)+"` "+("supplied to `"+F+"`, expected one of "+M+"."))}return y(P)}function Z(g){function P(d,C,F,K,I){if(typeof g!="function")return new T("Property `"+I+"` of component `"+F+"` has invalid PropType notation inside objectOf.");var j=d[C],A=z(j);if(A!=="object")return new T("Invalid "+K+" `"+I+"` of type "+("`"+A+"` supplied to `"+F+"`, expected an object."));for(var M in j)if(n(j,M)){var B=g(j,M,F,K,I+"."+M,r);if(B instanceof Error)return B}return null}return y(P)}function G(g){if(!Array.isArray(g))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var P=0;P<g.length;P++){var d=g[P];if(typeof d!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+H(d)+" at index "+P+"."),o}function C(F,K,I,j,A){for(var M=[],B=0;B<g.length;B++){var Ne=g[B],D=Ne(F,K,I,j,A,r);if(D==null)return null;D.data&&n(D.data,"expectedType")&&M.push(D.data.expectedType)}var Fe=M.length>0?", expected one of type ["+M.join(", ")+"]":"";return new T("Invalid "+j+" `"+A+"` supplied to "+("`"+I+"`"+Fe+"."))}return y(C)}function oe(){function g(P,d,C,F,K){return X(P[d])?null:new T("Invalid "+F+" `"+K+"` supplied to "+("`"+C+"`, expected a ReactNode."))}return y(g)}function le(g,P,d,C,F){return new T((g||"React class")+": "+P+" type `"+d+"."+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+F+"`.")}function ce(g){function P(d,C,F,K,I){var j=d[C],A=z(j);if(A!=="object")return new T("Invalid "+K+" `"+I+"` of type `"+A+"` "+("supplied to `"+F+"`, expected `object`."));for(var M in g){var B=g[M];if(typeof B!="function")return le(F,K,I,M,ne(B));var Ne=B(j,M,F,K,I+"."+M,r);if(Ne)return Ne}return null}return y(P)}function S(g){function P(d,C,F,K,I){var j=d[C],A=z(j);if(A!=="object")return new T("Invalid "+K+" `"+I+"` of type `"+A+"` "+("supplied to `"+F+"`, expected `object`."));var M=t({},d[C],g);for(var B in M){var Ne=g[B];if(n(g,B)&&typeof Ne!="function")return le(F,K,I,B,ne(Ne));if(!Ne)return new T("Invalid "+K+" `"+I+"` key `"+B+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify(d[C],null," ")+`
810
- Valid keys: `+JSON.stringify(Object.keys(g),null," "));var D=Ne(j,B,F,K,I+"."+B,r);if(D)return D}return null}return y(P)}function X(g){switch(typeof g){case"number":case"string":case"undefined":return!0;case"boolean":return!g;case"object":if(Array.isArray(g))return g.every(X);if(g===null||s(g))return!0;var P=m(g);if(P){var d=P.call(g),C;if(P!==g.entries){for(;!(C=d.next()).done;)if(!X(C.value))return!1}else for(;!(C=d.next()).done;){var F=C.value;if(F&&!X(F[1]))return!1}}else return!1;return!0;default:return!1}}function J(g,P){return g==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function z(g){var P=typeof g;return Array.isArray(g)?"array":g instanceof RegExp?"object":J(P,g)?"symbol":P}function ne(g){if(typeof g>"u"||g===null)return""+g;var P=z(g);if(P==="object"){if(g instanceof Date)return"date";if(g instanceof RegExp)return"regexp"}return P}function H(g){var P=ne(g);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function pe(g){return!g.constructor||!g.constructor.name?v:g.constructor.name}return p.checkPropTypes=a,p.resetWarningCache=a.resetWarningCache,p.PropTypes=p,p},ga}var ya,Bi;function zd(){if(Bi)return ya;Bi=1;var e=va();function t(){}function r(){}return r.resetWarningCache=t,ya=function(){function n(o,s,u,l,f,m){if(m!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},ya}if(process.env.NODE_ENV!=="production"){var Bd=$i(),qd=!0;ma.exports=Wd()(Bd.isElement,qd)}else ma.exports=zd()();var Gd=ma.exports;const k=Fa(Gd);function qi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qi(Object(r),!0).forEach(function(n){Wt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qr(e){"@babel/helpers - typeof";return Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qr(e)}function Wt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xd(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Kd(e,t){if(e==null)return{};var r=Xd(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wa(e){return Qd(e)||Zd(e)||Jd(e)||ep()}function Qd(e){if(Array.isArray(e))return xa(e)}function Zd(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jd(e,t){if(e){if(typeof e=="string")return xa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xa(e,t)}}function xa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ep(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
811
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tp(e){var t,r=e.beat,n=e.fade,a=e.beatFade,i=e.bounce,o=e.shake,s=e.flash,u=e.spin,l=e.spinPulse,f=e.spinReverse,m=e.pulse,v=e.fixedWidth,p=e.inverse,x=e.border,T=e.listItem,y=e.flip,N=e.size,O=e.rotation,$=e.pull,U=(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":a,"fa-bounce":i,"fa-shake":o,"fa-flash":s,"fa-spin":u,"fa-spin-reverse":f,"fa-spin-pulse":l,"fa-pulse":m,"fa-fw":v,"fa-inverse":p,"fa-border":x,"fa-li":T,"fa-flip":y===!0,"fa-flip-horizontal":y==="horizontal"||y==="both","fa-flip-vertical":y==="vertical"||y==="both"},Wt(t,"fa-".concat(N),typeof N<"u"&&N!==null),Wt(t,"fa-rotate-".concat(O),typeof O<"u"&&O!==null&&O!==0),Wt(t,"fa-pull-".concat($),typeof $<"u"&&$!==null),Wt(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(U).map(function(h){return U[h]?h:null}).filter(function(h){return h})}function rp(e){return e=e-0,e===e}function Gi(e){return rp(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var np=["style"];function ap(e){return e.charAt(0).toUpperCase()+e.slice(1)}function op(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),a=Gi(r.slice(0,n)),i=r.slice(n+1).trim();return a.startsWith("webkit")?t[ap(a)]=i:t[a]=i,t},{})}function Xi(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var n=(t.children||[]).map(function(u){return Xi(e,u)}),a=Object.keys(t.attributes||{}).reduce(function(u,l){var f=t.attributes[l];switch(l){case"class":u.attrs.className=f,delete t.attributes.class;break;case"style":u.attrs.style=op(f);break;default:l.indexOf("aria-")===0||l.indexOf("data-")===0?u.attrs[l.toLowerCase()]=f:u.attrs[Gi(l)]=f}return u},{attrs:{}}),i=r.style,o=i===void 0?{}:i,s=Kd(r,np);return a.attrs.style=ht(ht({},a.attrs.style),o),e.apply(void 0,[t.tag,ht(ht({},a.attrs),s)].concat(wa(n)))}var Ki=!1;try{Ki=process.env.NODE_ENV==="production"}catch{}function ip(){if(!Ki&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Qi(e){if(e&&Qr(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(fa.icon)return fa.icon(e);if(e===null)return null;if(e&&Qr(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Ta(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Wt({},e,t):{}}var He=b.forwardRef(function(e,t){var r=e.icon,n=e.mask,a=e.symbol,i=e.className,o=e.title,s=e.titleId,u=e.maskId,l=Qi(r),f=Ta("classes",[].concat(wa(tp(e)),wa(i.split(" ")))),m=Ta("transform",typeof e.transform=="string"?fa.transform(e.transform):e.transform),v=Ta("mask",Qi(n)),p=$d(l,ht(ht(ht(ht({},f),m),v),{},{symbol:a,title:o,titleId:s,maskId:u}));if(!p)return ip("Could not find icon",l),null;var x=p.abstract,T={ref:t};return Object.keys(e).forEach(function(y){He.defaultProps.hasOwnProperty(y)||(T[y]=e[y])}),sp(x[0],T)});He.displayName="FontAwesomeIcon",He.propTypes={beat:k.bool,border:k.bool,beatFade:k.bool,bounce:k.bool,className:k.string,fade:k.bool,flash:k.bool,mask:k.oneOfType([k.object,k.array,k.string]),maskId:k.string,fixedWidth:k.bool,inverse:k.bool,flip:k.oneOf([!0,!1,"horizontal","vertical","both"]),icon:k.oneOfType([k.object,k.array,k.string]),listItem:k.bool,pull:k.oneOf(["right","left"]),pulse:k.bool,rotation:k.oneOf([0,90,180,270]),shake:k.bool,size:k.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:k.bool,spinPulse:k.bool,spinReverse:k.bool,symbol:k.oneOfType([k.bool,k.string]),title:k.string,titleId:k.string,transform:k.oneOfType([k.string,k.object]),swapOpacity:k.bool},He.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var sp=Xi.bind(null,b.createElement);function bt(e){"@babel/helpers - typeof";return bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt(e)}function Ae(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ae(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function he(e){ae(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||bt(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Zr(e,t){ae(2,arguments);var r=he(e),n=Ae(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function Pt(e,t){ae(2,arguments);var r=he(e),n=Ae(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var o=i.getDate();return a>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),a),r)}function up(e,t){ae(2,arguments);var r=he(e).getTime(),n=Ae(t);return new Date(r+n)}var lp={};function br(){return lp}function cp(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Zi(e){ae(1,arguments);var t=he(e);return t.setHours(0,0,0,0),t}function Jr(e,t){ae(2,arguments);var r=Ae(t);return Pt(e,r*12)}var Ea=6e4,Sa=36e5,fp=1e3;function Ji(e,t){ae(2,arguments);var r=Zi(e),n=Zi(t);return r.getTime()===n.getTime()}function mp(e){ae(1,arguments);var t=he(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function dp(e,t){var r;ae(1,arguments);var n=e||{},a=he(n.start),i=he(n.end),o=i.getTime();if(!(a.getTime()<=o))throw new RangeError("Invalid interval");var s=[],u=a;u.setHours(0,0,0,0);var l=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=o;)s.push(he(u)),u.setDate(u.getDate()+l),u.setHours(0,0,0,0);return s}function es(e){ae(1,arguments);var t=he(e);return t.setDate(1),t.setHours(0,0,0,0),t}function pp(e){ae(1,arguments);var t=e||{},r=he(t.start),n=he(t.end),a=n.getTime();if(!(r.getTime()<=a))throw new RangeError("Invalid interval");var i=[],o=r;for(o.setHours(0,0,0,0),o.setMonth(0,1);o.getTime()<=a;)i.push(he(o)),o.setFullYear(o.getFullYear()+1);return i}function vp(e,t){ae(2,arguments);var r=Ae(t);return up(e,-r)}function zt(e){ae(1,arguments);var t=1,r=he(e),n=r.getUTCDay(),a=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function hp(e){ae(1,arguments);var t=he(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=zt(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=zt(i);return t.getTime()>=a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function bp(e){ae(1,arguments);var t=hp(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=zt(r);return n}var gp=6048e5;function yp(e){ae(1,arguments);var t=he(e),r=zt(t).getTime()-bp(t).getTime();return Math.round(r/gp)+1}function Dt(e,t){var r,n,a,i,o,s,u,l;ae(1,arguments);var f=br(),m=Ae((r=(n=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=he(e),p=v.getUTCDay(),x=(p<m?7:0)+p-m;return v.setUTCDate(v.getUTCDate()-x),v.setUTCHours(0,0,0,0),v}function ts(e,t){var r,n,a,i,o,s,u,l;ae(1,arguments);var f=he(e),m=f.getUTCFullYear(),v=br(),p=Ae((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:v.firstWeekContainsDate)!==null&&n!==void 0?n:(u=v.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=new Date(0);x.setUTCFullYear(m+1,0,p),x.setUTCHours(0,0,0,0);var T=Dt(x,t),y=new Date(0);y.setUTCFullYear(m,0,p),y.setUTCHours(0,0,0,0);var N=Dt(y,t);return f.getTime()>=T.getTime()?m+1:f.getTime()>=N.getTime()?m:m-1}function wp(e,t){var r,n,a,i,o,s,u,l;ae(1,arguments);var f=br(),m=Ae((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),v=ts(e,t),p=new Date(0);p.setUTCFullYear(v,0,m),p.setUTCHours(0,0,0,0);var x=Dt(p,t);return x}var xp=6048e5;function Tp(e,t){ae(1,arguments);var r=he(e),n=Dt(r,t).getTime()-wp(r,t).getTime();return Math.round(n/xp)+1}var rs=function(t,r){switch(t){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"})}},ns=function(t,r){switch(t){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"})}},Ep=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return rs(t,r);var o;switch(a){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",rs(a,r)).replace("{{time}}",ns(i,r))},Sp={p:ns,P:Ep};const as=Sp;var Np=["D","DD"],Pp=["YY","YYYY"];function Dp(e){return Np.indexOf(e)!==-1}function Cp(e){return Pp.indexOf(e)!==-1}function os(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var kp={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"}},Op=function(t,r,n){var a,i=kp[t];return typeof i=="string"?a=i:r===1?a=i.one:a=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};const Ip=Op;function Na(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var _p={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ap={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Mp={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Rp={date:Na({formats:_p,defaultWidth:"full"}),time:Na({formats:Ap,defaultWidth:"full"}),dateTime:Na({formats:Mp,defaultWidth:"full"})};const jp=Rp;var Vp={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Lp=function(t,r,n,a){return Vp[t]};const $p=Lp;function gr(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return a[l]}}var Fp={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Yp={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Hp={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"]},Up={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"]},Wp={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"}},zp={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"}},Bp=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},qp={ordinalNumber:Bp,era:gr({values:Fp,defaultWidth:"wide"}),quarter:gr({values:Yp,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:gr({values:Hp,defaultWidth:"wide"}),day:gr({values:Up,defaultWidth:"wide"}),dayPeriod:gr({values:Wp,defaultWidth:"wide",formattingValues:zp,defaultFormattingWidth:"wide"})};const Gp=qp;function yr(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?Kp(s,function(m){return m.test(o)}):Xp(s,function(m){return m.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var f=t.slice(o.length);return{value:l,rest:f}}}function Xp(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Kp(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Qp(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(a.length);return{value:o,rest:s}}}var Zp=/^(\d+)(th|st|nd|rd)?/i,Jp=/\d+/i,ev={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},tv={any:[/^b/i,/^(a|c)/i]},rv={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nv={any:[/1/i,/2/i,/3/i,/4/i]},av={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},ov={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]},iv={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},sv={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]},uv={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},lv={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}},cv={ordinalNumber:Qp({matchPattern:Zp,parsePattern:Jp,valueCallback:function(t){return parseInt(t,10)}}),era:yr({matchPatterns:ev,defaultMatchWidth:"wide",parsePatterns:tv,defaultParseWidth:"any"}),quarter:yr({matchPatterns:rv,defaultMatchWidth:"wide",parsePatterns:nv,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:yr({matchPatterns:av,defaultMatchWidth:"wide",parsePatterns:ov,defaultParseWidth:"any"}),day:yr({matchPatterns:iv,defaultMatchWidth:"wide",parsePatterns:sv,defaultParseWidth:"any"}),dayPeriod:yr({matchPatterns:uv,defaultMatchWidth:"any",parsePatterns:lv,defaultParseWidth:"any"})},fv={code:"en-US",formatDistance:Ip,formatLong:jp,formatRelative:$p,localize:Gp,match:cv,options:{weekStartsOn:0,firstWeekContainsDate:1}};const mv=fv;function dv(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Pa(e){ae(1,arguments);var t=he(e),r=t.getDay();return r}function is(e){ae(1,arguments);var t=he(e),r=t.getFullYear(),n=t.getMonth(),a=new Date(0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}function pv(e){ae(1,arguments);var t=he(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function vv(e,t){ae(2,arguments);var r=he(e),n=he(t);return r.getTime()<n.getTime()}function ss(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function hv(e,t){if(e){if(typeof e=="string")return ss(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ss(e,t)}}function us(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=hv(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
812
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return i=l.done,l},e:function(l){o=!0,s=l},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function L(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function en(e,t){return en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},en(e,t)}function me(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&en(e,t)}function tn(e){return tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tn(e)}function bv(){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 gv(e,t){if(t&&(bt(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L(e)}function de(e){var t=bv();return function(){var n=tn(e),a;if(t){var i=tn(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return gv(this,a)}}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yv(e,t){if(bt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ls(e){var t=yv(e,"string");return bt(t)==="symbol"?t:String(t)}function cs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ls(n.key),n)}}function ue(e,t,r){return t&&cs(e.prototype,t),r&&cs(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _(e,t,r){return t=ls(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wv=10,fs=function(){function e(){se(this,e),_(this,"priority",void 0),_(this,"subPriority",0)}return ue(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),xv=function(e){me(r,e);var t=de(r);function r(n,a,i,o,s){var u;return se(this,r),u=t.call(this),u.value=n,u.validateValue=a,u.setValue=i,u.priority=o,s&&(u.subPriority=s),u}return ue(r,[{key:"validate",value:function(a,i){return this.validateValue(a,this.value,i)}},{key:"set",value:function(a,i,o){return this.setValue(a,i,this.value,o)}}]),r}(fs),Tv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",wv),_(L(n),"subPriority",-1),n}return ue(r,[{key:"set",value:function(a,i){if(i.timestampIsSet)return a;var o=new Date(0);return o.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),o.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),o}}]),r}(fs),be=function(){function e(){se(this,e),_(this,"incompatibleTokens",void 0),_(this,"priority",void 0),_(this,"subPriority",void 0)}return ue(e,[{key:"run",value:function(r,n,a,i){var o=this.parse(r,n,a,i);return o?{setter:new xv(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(r,n,a){return!0}}]),e}(),Ev=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",140),_(L(n),"incompatibleTokens",["R","u","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"G":case"GG":case"GGG":return o.era(a,{width:"abbreviated"})||o.era(a,{width:"narrow"});case"GGGGG":return o.era(a,{width:"narrow"});case"GGGG":default:return o.era(a,{width:"wide"})||o.era(a,{width:"abbreviated"})||o.era(a,{width:"narrow"})}}},{key:"set",value:function(a,i,o){return i.era=o,a.setUTCFullYear(o,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(be),Me={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}/},Je={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 Re(e,t){return e&&{value:t(e.value),rest:e.rest}}function ke(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function et(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,a=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:n*(a*Sa+i*Ea+o*fp),rest:t.slice(r[0].length)}}function ms(e){return ke(Me.anyDigitsSigned,e)}function Ie(e,t){switch(e){case 1:return ke(Me.singleDigit,t);case 2:return ke(Me.twoDigits,t);case 3:return ke(Me.threeDigits,t);case 4:return ke(Me.fourDigits,t);default:return ke(new RegExp("^\\d{1,"+e+"}"),t)}}function rn(e,t){switch(e){case 1:return ke(Me.singleDigitSigned,t);case 2:return ke(Me.twoDigitsSigned,t);case 3:return ke(Me.threeDigitsSigned,t);case 4:return ke(Me.fourDigitsSigned,t);default:return ke(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Da(e){switch(e){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 ds(e,t){var r=t>0,n=r?t:1-t,a;if(n<=50)a=e||100;else{var i=n+50,o=Math.floor(i/100)*100,s=e>=i%100;a=e+o-(s?100:0)}return r?a:1-a}function ps(e){return e%400===0||e%4===0&&e%100!==0}var Sv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",130),_(L(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){var s=function(l){return{year:l,isTwoDigitYear:i==="yy"}};switch(i){case"y":return Re(Ie(4,a),s);case"yo":return Re(o.ordinalNumber(a,{unit:"year"}),s);default:return Re(Ie(i.length,a),s)}}},{key:"validate",value:function(a,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var u=ds(o.year,s);return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}var l=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(be),Nv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",130),_(L(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){var s=function(l){return{year:l,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return Re(Ie(4,a),s);case"Yo":return Re(o.ordinalNumber(a,{unit:"year"}),s);default:return Re(Ie(i.length,a),s)}}},{key:"validate",value:function(a,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(a,i,o,s){var u=ts(a,s);if(o.isTwoDigitYear){var l=ds(o.year,u);return a.setUTCFullYear(l,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Dt(a,s)}var f=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(f,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Dt(a,s)}}]),r}(be),Pv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",130),_(L(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i){return rn(i==="R"?4:i.length,a)}},{key:"set",value:function(a,i,o){var s=new Date(0);return s.setUTCFullYear(o,0,4),s.setUTCHours(0,0,0,0),zt(s)}}]),r}(be),Dv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",130),_(L(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i){return rn(i==="u"?4:i.length,a)}},{key:"set",value:function(a,i,o){return a.setUTCFullYear(o,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(be),Cv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",120),_(L(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"Q":case"QQ":return Ie(i.length,a);case"Qo":return o.ordinalNumber(a,{unit:"quarter"});case"QQQ":return o.quarter(a,{width:"abbreviated",context:"formatting"})||o.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(a,{width:"wide",context:"formatting"})||o.quarter(a,{width:"abbreviated",context:"formatting"})||o.quarter(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,i){return i>=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),r}(be),kv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",120),_(L(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"q":case"qq":return Ie(i.length,a);case"qo":return o.ordinalNumber(a,{unit:"quarter"});case"qqq":return o.quarter(a,{width:"abbreviated",context:"standalone"})||o.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(a,{width:"wide",context:"standalone"})||o.quarter(a,{width:"abbreviated",context:"standalone"})||o.quarter(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,i){return i>=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),r}(be),Ov=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),_(L(n),"priority",110),n}return ue(r,[{key:"parse",value:function(a,i,o){var s=function(l){return l-1};switch(i){case"M":return Re(ke(Me.month,a),s);case"MM":return Re(Ie(2,a),s);case"Mo":return Re(o.ordinalNumber(a,{unit:"month"}),s);case"MMM":return o.month(a,{width:"abbreviated",context:"formatting"})||o.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(a,{width:"wide",context:"formatting"})||o.month(a,{width:"abbreviated",context:"formatting"})||o.month(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,i){return i>=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),r}(be),Iv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",110),_(L(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){var s=function(l){return l-1};switch(i){case"L":return Re(ke(Me.month,a),s);case"LL":return Re(Ie(2,a),s);case"Lo":return Re(o.ordinalNumber(a,{unit:"month"}),s);case"LLL":return o.month(a,{width:"abbreviated",context:"standalone"})||o.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(a,{width:"wide",context:"standalone"})||o.month(a,{width:"abbreviated",context:"standalone"})||o.month(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,i){return i>=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),r}(be);function _v(e,t,r){ae(2,arguments);var n=he(e),a=Ae(t),i=Tp(n,r)-a;return n.setUTCDate(n.getUTCDate()-i*7),n}var Av=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",100),_(L(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"w":return ke(Me.week,a);case"wo":return o.ordinalNumber(a,{unit:"week"});default:return Ie(i.length,a)}}},{key:"validate",value:function(a,i){return i>=1&&i<=53}},{key:"set",value:function(a,i,o,s){return Dt(_v(a,o,s),s)}}]),r}(be);function Mv(e,t){ae(2,arguments);var r=he(e),n=Ae(t),a=yp(r)-n;return r.setUTCDate(r.getUTCDate()-a*7),r}var Rv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",100),_(L(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"I":return ke(Me.week,a);case"Io":return o.ordinalNumber(a,{unit:"week"});default:return Ie(i.length,a)}}},{key:"validate",value:function(a,i){return i>=1&&i<=53}},{key:"set",value:function(a,i,o){return zt(Mv(a,o))}}]),r}(be),jv=[31,28,31,30,31,30,31,31,30,31,30,31],Vv=[31,29,31,30,31,30,31,31,30,31,30,31],Lv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",90),_(L(n),"subPriority",1),_(L(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"d":return ke(Me.date,a);case"do":return o.ordinalNumber(a,{unit:"date"});default:return Ie(i.length,a)}}},{key:"validate",value:function(a,i){var o=a.getUTCFullYear(),s=ps(o),u=a.getUTCMonth();return s?i>=1&&i<=Vv[u]:i>=1&&i<=jv[u]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),r}(be),$v=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",90),_(L(n),"subpriority",1),_(L(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"D":case"DD":return ke(Me.dayOfYear,a);case"Do":return o.ordinalNumber(a,{unit:"date"});default:return Ie(i.length,a)}}},{key:"validate",value:function(a,i){var o=a.getUTCFullYear(),s=ps(o);return s?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),r}(be);function Ca(e,t,r){var n,a,i,o,s,u,l,f;ae(2,arguments);var m=br(),v=Ae((n=(a=(i=(o=r==null?void 0:r.weekStartsOn)!==null&&o!==void 0?o:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:m.weekStartsOn)!==null&&a!==void 0?a:(l=m.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&n!==void 0?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=he(e),x=Ae(t),T=p.getUTCDay(),y=x%7,N=(y+7)%7,O=(N<v?7:0)+x-T;return p.setUTCDate(p.getUTCDate()+O),p}var Fv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",90),_(L(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"E":case"EE":case"EEE":return o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,i){return i>=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=Ca(a,o,s),a.setUTCHours(0,0,0,0),a}}]),r}(be),Yv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",90),_(L(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o,s){var u=function(f){var m=Math.floor((f-1)/7)*7;return(f+s.weekStartsOn+6)%7+m};switch(i){case"e":case"ee":return Re(Ie(i.length,a),u);case"eo":return Re(o.ordinalNumber(a,{unit:"day"}),u);case"eee":return o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"eeeee":return o.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,i){return i>=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=Ca(a,o,s),a.setUTCHours(0,0,0,0),a}}]),r}(be),Hv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",90),_(L(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o,s){var u=function(f){var m=Math.floor((f-1)/7)*7;return(f+s.weekStartsOn+6)%7+m};switch(i){case"c":case"cc":return Re(Ie(i.length,a),u);case"co":return Re(o.ordinalNumber(a,{unit:"day"}),u);case"ccc":return o.day(a,{width:"abbreviated",context:"standalone"})||o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"});case"ccccc":return o.day(a,{width:"narrow",context:"standalone"});case"cccccc":return o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(a,{width:"wide",context:"standalone"})||o.day(a,{width:"abbreviated",context:"standalone"})||o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,i){return i>=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=Ca(a,o,s),a.setUTCHours(0,0,0,0),a}}]),r}(be);function Uv(e,t){ae(2,arguments);var r=Ae(t);r%7===0&&(r=r-7);var n=1,a=he(e),i=a.getUTCDay(),o=r%7,s=(o+7)%7,u=(s<n?7:0)+r-i;return a.setUTCDate(a.getUTCDate()+u),a}var Wv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",90),_(L(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){var s=function(l){return l===0?7:l};switch(i){case"i":case"ii":return Ie(i.length,a);case"io":return o.ordinalNumber(a,{unit:"day"});case"iii":return Re(o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),s);case"iiiii":return Re(o.day(a,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Re(o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Re(o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(a,i){return i>=1&&i<=7}},{key:"set",value:function(a,i,o){return a=Uv(a,o),a.setUTCHours(0,0,0,0),a}}]),r}(be),zv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",80),_(L(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"a":case"aa":case"aaa":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,i,o){return a.setUTCHours(Da(o),0,0,0),a}}]),r}(be),Bv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",80),_(L(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"b":case"bb":case"bbb":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,i,o){return a.setUTCHours(Da(o),0,0,0),a}}]),r}(be),qv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",80),_(L(n),"incompatibleTokens",["a","b","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"B":case"BB":case"BBB":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,i,o){return a.setUTCHours(Da(o),0,0,0),a}}]),r}(be),Gv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",70),_(L(n),"incompatibleTokens",["H","K","k","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"h":return ke(Me.hour12h,a);case"ho":return o.ordinalNumber(a,{unit:"hour"});default:return Ie(i.length,a)}}},{key:"validate",value:function(a,i){return i>=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),r}(be),Xv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",70),_(L(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"H":return ke(Me.hour23h,a);case"Ho":return o.ordinalNumber(a,{unit:"hour"});default:return Ie(i.length,a)}}},{key:"validate",value:function(a,i){return i>=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),r}(be),Kv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",70),_(L(n),"incompatibleTokens",["h","H","k","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"K":return ke(Me.hour11h,a);case"Ko":return o.ordinalNumber(a,{unit:"hour"});default:return Ie(i.length,a)}}},{key:"validate",value:function(a,i){return i>=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),r}(be),Qv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",70),_(L(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"k":return ke(Me.hour24h,a);case"ko":return o.ordinalNumber(a,{unit:"hour"});default:return Ie(i.length,a)}}},{key:"validate",value:function(a,i){return i>=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),r}(be),Zv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",60),_(L(n),"incompatibleTokens",["t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"m":return ke(Me.minute,a);case"mo":return o.ordinalNumber(a,{unit:"minute"});default:return Ie(i.length,a)}}},{key:"validate",value:function(a,i){return i>=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),r}(be),Jv=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",50),_(L(n),"incompatibleTokens",["t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"s":return ke(Me.second,a);case"so":return o.ordinalNumber(a,{unit:"second"});default:return Ie(i.length,a)}}},{key:"validate",value:function(a,i){return i>=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),r}(be),eh=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",30),_(L(n),"incompatibleTokens",["t","T"]),n}return ue(r,[{key:"parse",value:function(a,i){var o=function(u){return Math.floor(u*Math.pow(10,-i.length+3))};return Re(Ie(i.length,a),o)}},{key:"set",value:function(a,i,o){return a.setUTCMilliseconds(o),a}}]),r}(be),th=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",10),_(L(n),"incompatibleTokens",["t","T","x"]),n}return ue(r,[{key:"parse",value:function(a,i){switch(i){case"X":return et(Je.basicOptionalMinutes,a);case"XX":return et(Je.basic,a);case"XXXX":return et(Je.basicOptionalSeconds,a);case"XXXXX":return et(Je.extendedOptionalSeconds,a);case"XXX":default:return et(Je.extended,a)}}},{key:"set",value:function(a,i,o){return i.timestampIsSet?a:new Date(a.getTime()-o)}}]),r}(be),rh=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",10),_(L(n),"incompatibleTokens",["t","T","X"]),n}return ue(r,[{key:"parse",value:function(a,i){switch(i){case"x":return et(Je.basicOptionalMinutes,a);case"xx":return et(Je.basic,a);case"xxxx":return et(Je.basicOptionalSeconds,a);case"xxxxx":return et(Je.extendedOptionalSeconds,a);case"xxx":default:return et(Je.extended,a)}}},{key:"set",value:function(a,i,o){return i.timestampIsSet?a:new Date(a.getTime()-o)}}]),r}(be),nh=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",40),_(L(n),"incompatibleTokens","*"),n}return ue(r,[{key:"parse",value:function(a){return ms(a)}},{key:"set",value:function(a,i,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),r}(be),ah=function(e){me(r,e);var t=de(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),_(L(n),"priority",20),_(L(n),"incompatibleTokens","*"),n}return ue(r,[{key:"parse",value:function(a){return ms(a)}},{key:"set",value:function(a,i,o){return[new Date(o),{timestampIsSet:!0}]}}]),r}(be),oh={G:new Ev,y:new Sv,Y:new Nv,R:new Pv,u:new Dv,Q:new Cv,q:new kv,M:new Ov,L:new Iv,w:new Av,I:new Rv,d:new Lv,D:new $v,E:new Fv,e:new Yv,c:new Hv,i:new Wv,a:new zv,b:new Bv,B:new qv,h:new Gv,H:new Xv,K:new Kv,k:new Qv,m:new Zv,s:new Jv,S:new eh,X:new th,x:new rh,t:new nh,T:new ah},ih=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,uh=/^'([^]*?)'?$/,lh=/''/g,ch=/\S/,fh=/[a-zA-Z]/;function tt(e,t,r,n){var a,i,o,s,u,l,f,m,v,p,x,T,y,N,O,$,U,h;ae(3,arguments);var Y=String(e),Q=String(t),Z=br(),G=(a=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:Z.locale)!==null&&a!==void 0?a:mv;if(!G.match)throw new RangeError("locale must contain match property");var oe=Ae((o=(s=(u=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(f=n.locale)===null||f===void 0||(m=f.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&u!==void 0?u:Z.firstWeekContainsDate)!==null&&s!==void 0?s:(v=Z.locale)===null||v===void 0||(p=v.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(oe>=1&&oe<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var le=Ae((x=(T=(y=(N=n==null?void 0:n.weekStartsOn)!==null&&N!==void 0?N:n==null||(O=n.locale)===null||O===void 0||($=O.options)===null||$===void 0?void 0:$.weekStartsOn)!==null&&y!==void 0?y:Z.weekStartsOn)!==null&&T!==void 0?T:(U=Z.locale)===null||U===void 0||(h=U.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&x!==void 0?x:0);if(!(le>=0&&le<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(Q==="")return Y===""?he(r):new Date(NaN);var ce={firstWeekContainsDate:oe,weekStartsOn:le,locale:G},S=[new Tv],X=Q.match(sh).map(function(A){var M=A[0];if(M in as){var B=as[M];return B(A,G.formatLong)}return A}).join("").match(ih),J=[],z=us(X),ne;try{var H=function(){var M=ne.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&Cp(M)&&os(M,Q,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Dp(M)&&os(M,Q,e);var B=M[0],Ne=oh[B];if(Ne){var D=Ne.incompatibleTokens;if(Array.isArray(D)){var Fe=J.find(function(qe){return D.includes(qe.token)||qe.token===B});if(Fe)throw new RangeError("The format string mustn't contain `".concat(Fe.fullToken,"` and `").concat(M,"` at the same time"))}else if(Ne.incompatibleTokens==="*"&&J.length>0)throw new RangeError("The format string mustn't contain `".concat(M,"` and any other token at the same time"));J.push({token:B,fullToken:M});var Be=Ne.run(Y,M,G.match,ce);if(!Be)return{v:new Date(NaN)};S.push(Be.setter),Y=Be.rest}else{if(B.match(fh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");if(M==="''"?M="'":B==="'"&&(M=mh(M)),Y.indexOf(M)===0)Y=Y.slice(M.length);else return{v:new Date(NaN)}}};for(z.s();!(ne=z.n()).done;){var pe=H();if(bt(pe)==="object")return pe.v}}catch(A){z.e(A)}finally{z.f()}if(Y.length>0&&ch.test(Y))return new Date(NaN);var g=S.map(function(A){return A.priority}).sort(function(A,M){return M-A}).filter(function(A,M,B){return B.indexOf(A)===M}).map(function(A){return S.filter(function(M){return M.priority===A}).sort(function(M,B){return B.subPriority-M.subPriority})}).map(function(A){return A[0]}),P=he(r);if(isNaN(P.getTime()))return new Date(NaN);var d=vp(P,cp(P)),C={},F=us(g),K;try{for(F.s();!(K=F.n()).done;){var I=K.value;if(!I.validate(d,ce))return new Date(NaN);var j=I.set(d,C,ce);Array.isArray(j)?(d=j[0],dv(C,j[1])):d=j}}catch(A){F.e(A)}finally{F.f()}return d}function mh(e){return e.match(uh)[1].replace(lh,"'")}function dh(e){return ae(1,arguments),Ji(e,Date.now())}function ph(e,t){ae(2,arguments);var r=Ae(t);return Zr(e,-r)}function vh(e,t){ae(2,arguments);var r=t-Pa(e);return r<=0&&(r+=7),Zr(e,r)}function hh(e,t){var r;ae(1,arguments);var n=Ae((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=wh(e),i;if(a.date){var o=xh(a.date,n);i=Th(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),u=0,l;if(a.time&&(u=Eh(a.time),isNaN(u)))return new Date(NaN);if(a.timezone){if(l=Sh(a.timezone),isNaN(l))return new Date(NaN)}else{var f=new Date(s+u),m=new Date(0);return m.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),m.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),m}return new Date(s+u+l)}var nn={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},bh=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,gh=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,yh=/^([+-])(\d{2})(?::?(\d{2}))?$/;function wh(e){var t={},r=e.split(nn.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],nn.timeZoneDelimiter.test(t.date)&&(t.date=e.split(nn.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var a=nn.timezone.exec(n);a?(t.time=n.replace(a[1],""),t.timezone=a[1]):t.time=n}return t}function xh(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var a=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:i===null?a:i*100,restDateString:e.slice((n[1]||n[2]).length)}}function Th(e,t){if(t===null)return new Date(NaN);var r=e.match(bh);if(!r)return new Date(NaN);var n=!!r[4],a=wr(r[1]),i=wr(r[2])-1,o=wr(r[3]),s=wr(r[4]),u=wr(r[5])-1;if(n)return kh(t,s,u)?Nh(t,s,u):new Date(NaN);var l=new Date(0);return!Dh(t,i,o)||!Ch(t,a)?new Date(NaN):(l.setUTCFullYear(t,i,Math.max(a,o)),l)}function wr(e){return e?parseInt(e):1}function Eh(e){var t=e.match(gh);if(!t)return NaN;var r=ka(t[1]),n=ka(t[2]),a=ka(t[3]);return Oh(r,n,a)?r*Sa+n*Ea+a*1e3:NaN}function ka(e){return e&&parseFloat(e.replace(",","."))||0}function Sh(e){if(e==="Z")return 0;var t=e.match(yh);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return Ih(n,a)?r*(n*Sa+a*Ea):NaN}function Nh(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var a=n.getUTCDay()||7,i=(t-1)*7+r+1-a;return n.setUTCDate(n.getUTCDate()+i),n}var Ph=[31,null,31,30,31,30,31,31,30,31,30,31];function vs(e){return e%400===0||e%4===0&&e%100!==0}function Dh(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(Ph[t]||(vs(e)?29:28))}function Ch(e,t){return t>=1&&t<=(vs(e)?366:365)}function kh(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function Oh(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function Ih(e,t){return t>=0&&t<=59}function _h(e,t){ae(2,arguments);var r=he(e),n=Ae(t),a=r.getFullYear(),i=r.getDate(),o=new Date(0);o.setFullYear(a,n,15),o.setHours(0,0,0,0);var s=is(o);return r.setMonth(n,Math.min(i,s)),r}function Ah(e,t){ae(2,arguments);var r=he(e),n=Ae(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function hs(e,t){ae(2,arguments);var r=Ae(t);return Pt(e,-r)}function bs(e,t){ae(2,arguments);var r=Ae(t);return Jr(e,-r)}function gs(){return window.navigator.languages?window.navigator.languages[0]:window.navigator.language}function Mh(e,t,r){const n=[];for(let a=e;a<=t;a++)n.push(r?r(a):a);return n}function Rh(e,t){const r=e.target;return r?!t.isSameNode(r)&&!t.contains(r):!1}function jh(e,t){return e.isSameNode(t)||e.contains(t)}function Vh(e,t){const r=Object.entries(t),n=getComputedStyle(e);for(let a=0,i=r.length;a<i;a++){const[o,s]=r[a];if(typeof s=="string"&&s.indexOf(",")>-1){if(!s.split(",").map(l=>l.trim()).includes(n[o]))return!1}else if(n[o]!==s)return!1}return!0}function Lh(e,t){const r=Object.entries(t),n=getComputedStyle(e);for(let a=0,i=r.length;a<i;a++){const[o,s]=r[a];if(typeof s=="string"&&s.indexOf(",")>-1){if(s.split(",").map(l=>l.trim()).includes(n[o]))return!0}else if(n[o]===s)return!0}return!1}function ys(e,t,r=!1){return r&&Vh(e,t)||!r&&Lh(e,t)?e:e.parentElement?ys(e.parentElement,t):e}function $h(e,t){const r=Array.from(document.querySelectorAll("body *")),n=[];for(let a=0,i=r.length;a<i;a++){const o=getComputedStyle(r[a]);o[e]&&t(o[e])&&n.push(o[e])}return n}function Wb(e){return e}function Fh(e){const t=document.documentElement;Object.keys(e).forEach(r=>{t.style.setProperty(r,e[r])})}function Yh(e,t,r,n,a,i,o,s,u,l,f,m,v,p,x,T,y,N,O,$){return{"--theme-bsc-primary-1":e,"--theme-bsc-primary-2":t,"--theme-bsc-primary-3":r,"--theme-bsc-primary-4":n,"--theme-bsc-primary-5":a,"--theme-bsc-gray-1":i,"--theme-bsc-gray-2":o,"--theme-bsc-gray-3":s,"--theme-bsc-gray-4":u,"--theme-bsc-gray-5":l,"--theme-bsc-mono-dark-1":f,"--theme-bsc-mono-dark-2":m,"--theme-bsc-mono-dark-3":v,"--theme-bsc-mono-light-1":p,"--theme-bsc-mono-light-2":x,"--theme-bsc-mono-light-3":T,"--theme-bsc-info":y,"--theme-bsc-success":N,"--theme-bsc-warning":O,"--theme-bsc-error":$}}const Oa=({template:e,props:t,children:r})=>e(t,r);function Hh(e,t,r){const n=i=>{const o=i.target,s=e.style.display!=="hidden";e&&s&&!jh(e,o)&&!a(r,o)&&t(!1),t(!0)},a=(i,o)=>{if(!i)return!1;for(let s=0,u=i.length;s<u;s++)if(i[s].isSameNode(o)||i[s].contains(o))return!0;return!1};return document.addEventListener("mousedown",n),n}function Uh(e){document.removeEventListener("mousedown",e)}function Wh(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function zh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,en(e,t)}const ws={disabled:!1};var Bh=process.env.NODE_ENV!=="production"?k.oneOfType([k.number,k.shape({enter:k.number,exit:k.number,appear:k.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&k.oneOfType([k.string,k.shape({enter:k.string,exit:k.string,active:k.string}),k.shape({enter:k.string,enterDone:k.string,enterActive:k.string,exit:k.string,exitDone:k.string,exitActive:k.string})]);const xs=b.createContext(null);var qh=function(t){return t.scrollTop},xr="unmounted",Ct="exited",kt="entering",Bt="entered",Ia="exiting",lt=function(e){zh(t,e);function t(n,a){var i;i=e.call(this,n,a)||this;var o=a,s=o&&!o.isMounting?n.enter:n.appear,u;return i.appearStatus=null,n.in?s?(u=Ct,i.appearStatus=kt):u=Bt:n.unmountOnExit||n.mountOnEnter?u=xr:u=Ct,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===xr?{status:Ct}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var i=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==kt&&o!==Bt&&(i=kt):(o===kt||o===Bt)&&(i=Ia)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,i,o,s;return i=o=s=a,a!=null&&typeof a!="number"&&(i=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:i,enter:o,appear:s}},r.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===kt){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Qe.findDOMNode(this);o&&qh(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ct&&this.setState({status:xr})},r.performEnter=function(a){var i=this,o=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[Qe.findDOMNode(this),s],l=u[0],f=u[1],m=this.getTimeouts(),v=s?m.appear:m.enter;if(!a&&!o||ws.disabled){this.safeSetState({status:Bt},function(){i.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:kt},function(){i.props.onEntering(l,f),i.onTransitionEnd(v,function(){i.safeSetState({status:Bt},function(){i.props.onEntered(l,f)})})})},r.performExit=function(){var a=this,i=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Qe.findDOMNode(this);if(!i||ws.disabled){this.safeSetState({status:Ct},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ia},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:Ct},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},r.setNextCallback=function(a){var i=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,i.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(a,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:Qe.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],l=u[0],f=u[1];this.props.addEndListener(l,f)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===xr)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=Wh(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(xs.Provider,{value:null},typeof o=="function"?o(a,s):b.cloneElement(b.Children.only(o),s))},t}(b.Component);lt.contextType=xs,lt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:k.shape({current:typeof Element>"u"?k.any:function(e,t,r,n,a,i){var o=e[t];return k.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,r,n,a,i)}}),children:k.oneOfType([k.func.isRequired,k.element.isRequired]).isRequired,in:k.bool,mountOnEnter:k.bool,unmountOnExit:k.bool,appear:k.bool,enter:k.bool,exit:k.bool,timeout:function(t){var r=Bh;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];return r.apply(void 0,[t].concat(a))},addEndListener:k.func,onEnter:k.func,onEntering:k.func,onEntered:k.func,onExit:k.func,onExiting:k.func,onExited:k.func}:{};function qt(){}lt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qt,onEntering:qt,onEntered:qt,onExit:qt,onExiting:qt,onExited:qt},lt.UNMOUNTED=xr,lt.EXITED=Ct,lt.ENTERING=kt,lt.ENTERED=Bt,lt.EXITING=Ia;const Gh=lt,Xh=({start:e,timeout:t=400,defaultStyle:r,transitionStyles:n,showTransitionOptions:a="cubic-bezier(0, 0, 0.2, 1)",hideTransitionOptions:i="linear",unmountOnExit:o=!1,onEntering:s,onEntered:u,onExit:l,onExited:f,children:m})=>{const v=r||{transition:`opacity ${t}ms ${a}`,opacity:0},p=n||{entering:{opacity:1},entered:{opacity:1},exiting:{transition:`opacity ${t}ms ${i}`,opacity:0},exited:{transition:`opacity ${t}ms ${i}`,opacity:0},unmounted:{}};return w.jsxDEV(Gh,{in:e,timeout:t,onEntering:s,onEntered:u,onExit:l,onExited:f,unmountOnExit:o,children:x=>m({state:x,defaultStyle:v,transitionStyles:p})},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/common/beesoft-transition/beesoft-transition.component.tsx",lineNumber:61,columnNumber:5},globalThis)};var Ts=(e=>(e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight",e))(Ts||{}),Es=(e=>(e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight",e))(Es||{});class je{static positionToTarget(t,r=2){const n=t.getBoundingClientRect();let a=0,i=0;const o=window.scrollY;switch(r){case 2:a=n.top+n.height+o,i=n.left;break;case 0:a=n.top+o,i=n.left;break;case 3:a=n.top+n.height+o,i=n.left+n.width;break;case 1:a=n.top+o,i=n.left+n.width}return{top:a,left:i}}static positionElementToTarget(t,r,n=0,a=2){let{left:i,top:o}=je.positionToTarget(r,a);const s=t.getBoundingClientRect();switch(n){case 0:break;case 1:i=i-s.width;break;case 2:o=o-s.height;break;case 3:o=o-s.height,i=i-s.width;break}return{top:o,left:i}}static canPositionElementOnScreen(t,r){const n=je.getScreenDimensions(),a=t.getBoundingClientRect(),i=je.positionElementToTarget(t,r,0,2);if(i.left+a.width<n.width&&i.top+a.height<n.height||je.positionElementToTarget(t,r,1,3).left>=0&&i.top+a.height<n.height)return!0;const s=je.positionElementToTarget(t,r,2,0);if(s.left+a.width<n.width&&s.top>=0)return!0;const u=je.positionElementToTarget(t,r,3,1);return u.left>=0&&u.top>=0}static positionElementToTargetOnScreen(t,r,n=0,a=2){const{left:i,top:o}=je.positionElementToTarget(t,r,n,a),s=t.getBoundingClientRect(),u=je.determineOffScreenLocation(s);if(u){if(n===0&&a===2){if(u.right&&!u.bottom)return je.positionElementToTarget(t,r,1,3);if(u.bottom&&!u.right)return je.positionElementToTarget(t,r,2,0);if(u.right&&u.bottom)return je.positionElementToTarget(t,r,3,1)}else if(n===1&&a===3){if(u.left&&!u.bottom)return je.positionElementToTarget(t,r,0,2);if(u.bottom&&!u.left)return je.positionElementToTarget(t,r,3,1);if(u.left&&u.bottom)return je.positionElementToTarget(t,r,2,0)}}return{top:o,left:i}}static determineOffScreenLocation(t){const r=je.getScreenDimensions(),n={left:t.left<0,top:t.top<0,right:t.left+t.width>r.width,bottom:t.top+t.height>r.height};return n.left||n.top||n.right||n.bottom?n:void 0}static getScreenDimensions(){return{width:window.innerWidth,height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}}}const Ss=({visible:e,target:t,targetPosition:r=Ts.BottomLeft,elementAlignment:n=Es.TopLeft,shouldTargetCloseOverlay:a=!0,shouldMatchTargetWidth:i=!1,shouldScrollCloseOverlay:o=!1,shouldCheckZIndex:s=!1,shouldRemainOnScreen:u=!1,unmountWhenHidden:l=!1,transitionDuration:f=400,showTransitionOptions:m="cubic-bezier(0, 0, 0.2, 1)",hideTransitionOptions:v="linear",shown:p,hidden:x,isClickedWithin:T,markupCreated:y,children:N})=>{const[O,$]=b.useState(-1),[U,h]=b.useState(e),[Y,Q]=b.useState(!1),Z=b.useRef(!1),G=b.useRef(100),oe=b.useRef({left:0,top:0,width:0}),le=b.useRef(),ce=b.useRef(),S=b.useRef(),X=b.useRef(),J=b.useRef(),z=b.useRef();b.useEffect(()=>(u===!0&&(z.current=new ResizeObserver(H)),()=>{var I,j;u===!0&&(ce.current&&((I=z.current)==null||I.unobserve(ce.current)),(j=z.current)==null||j.disconnect())}),[u]),b.useEffect(()=>{if(t&&(le.current=ne(t),o&&(S.current=ys(le.current,{overflow:"scroll, auto",overflowX:"scroll, auto",overflowY:"scroll, auto"}),S.current.tagName.toLowerCase()==="html"&&(S.current=document))),s){const I=$h("zIndex",j=>parseInt(j)>=100).map(j=>parseInt(j));I.length>0&&(G.current=Math.max(...I)+1)}e!==void 0&&h(e)},[t,e,o,s]);const ne=I=>I.target?I.target:I,H=I=>{if(ce.current){const j=je.getScreenDimensions(),A=I[I.length-1].target,M=A.getBoundingClientRect(),B=je.determineOffScreenLocation(M);if(B){if(le.current&&je.canPositionElementOnScreen(A,le.current)){const Ne=je.positionElementToTargetOnScreen(ce.current,le.current,n,r);oe.current={...oe.current,...Ne}}else B.right?oe.current.left=j.width-M.width:B.left&&(oe.current.left=0),B.bottom?oe.current.top=j.height-M.height:B.top&&(oe.current.top=0);pe()}}},pe=or(()=>{Z.current=!Z.current,Q(Z.current)},20),g=()=>{$(G.current)},P=()=>{if(!ce.current)return;p==null||p();let I;!a&&le.current&&(I=[le.current]);const j=A=>{A?T==null||T():h(!1)};X.current=Hh(ce.current,j,I),o&&(J.current=am(A=>ce.current&&Rh(A,ce.current)&&h(!1),100,{leading:!0}),S.current&&S.current.addEventListener("scroll",J.current))},d=()=>{S.current&&J.current&&(S.current.removeEventListener("scroll",J.current),J.current=void 0),X.current&&Uh(X.current)},C=()=>{$(-1),x==null||x()},F=I=>{var j,A;if(ce.current=I,y==null||y(I),le.current){const M=je.positionElementToTarget(ce.current,le.current,n,r);oe.current={...M,width:le.current.offsetWidth}}u===!0&&((j=z.current)==null||j.unobserve(ce.current),(A=z.current)==null||A.observe(ce.current))},K=b.useMemo(()=>{const I={top:`${oe.current.top}px`,left:`${oe.current.left}px`,zIndex:O};return i&&(I.width=`${oe.current.width}px`),I},[Y,O,i]);return w.jsxDEV(Xh,{start:U,timeout:f,showTransitionOptions:m,hideTransitionOptions:v,onEntering:g,onEntered:P,onExit:d,onExited:C,unmountOnExit:l,children:({state:I,defaultStyle:j,transitionStyles:A})=>w.jsxDEV("div",{className:"bsc-fixed bsc-bg-white dark:bsc-bg-mono-dark-1 bsc-border bsc-border-solid dark:bsc-text-mono-light-1 dark:bsc-border-mono-light-1 bsc-shadow",style:{...K,...j,...A[I]},ref:M=>M&&F(M),children:N},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/overlay/overlay-panel/overlay-panel.component.tsx",lineNumber:284,columnNumber:9},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/overlay/overlay-panel/overlay-panel.component.tsx",lineNumber:272,columnNumber:5},globalThis)};let an;const Kh=new Uint8Array(16);function Qh(){if(!an&&(an=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!an))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return an(Kh)}const Ye=[];for(let e=0;e<256;++e)Ye.push((e+256).toString(16).slice(1));function Zh(e,t=0){return Ye[e[t+0]]+Ye[e[t+1]]+Ye[e[t+2]]+Ye[e[t+3]]+"-"+Ye[e[t+4]]+Ye[e[t+5]]+"-"+Ye[e[t+6]]+Ye[e[t+7]]+"-"+Ye[e[t+8]]+Ye[e[t+9]]+"-"+Ye[e[t+10]]+Ye[e[t+11]]+Ye[e[t+12]]+Ye[e[t+13]]+Ye[e[t+14]]+Ye[e[t+15]]}const Ns={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Jh(e,t,r){if(Ns.randomUUID&&!t&&!e)return Ns.randomUUID();e=e||{};const n=e.random||(e.rng||Qh)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let a=0;a<16;++a)t[r+a]=n[a];return t}return Zh(n)}class on{static create(t){const r=[];let n=0;for(let a=0,i=t.formatParts.length;a<i;a++){const o=t.formatParts[a],s=n,u=s+o.characterCount;r.push({startPosition:s,endPosition:u,...o}),n=u}return r}}class eb{constructor(t,r){q(this,"instanceCollection");q(this,"formatPartList");q(this,"inputSlotCollection");q(this,"currentPartIndex",0);q(this,"currentCursorPosition",0);q(this,"inputElement");q(this,"inputSelection",null);q(this,"inputRange");q(this,"textNode");this.instanceCollection=Ot.getInstance(),this.formatPartList=on.create(t),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(r,t)}getCursorPosition(){return this.currentCursorPosition}getCurrentPartIndex(){return this.currentPartIndex}setInputElement(t){this.inputElement=t}setCursorToCurrentPosition(){this.setCursorSelection(this.currentCursorPosition)}setCursorPosition(t){this.setCursorSelection(t)}setCursorSelection(t,r){this.createInputRangeSelection(),this.inputRange&&this.textNode&&(this.inputRange.setStart(this.textNode,t),this.inputRange.setEnd(this.textNode,r||t),this.currentCursorPosition=r||t,this.setPartIndexByCursorPosition())}findCursorPosition(){var r,n;const t=(r=window.getSelection())==null?void 0:r.getRangeAt(0);if(this.inputElement&&t){const a=document.createTreeWalker(this.inputElement,NodeFilter.SHOW_TEXT,u=>{const l=document.createRange();return l.selectNodeContents(u),l.compareBoundaryPoints(Range.END_TO_END,t)<1?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT});let i=0;for(;a.nextNode();)i+=((n=a.currentNode.textContent)==null?void 0:n.length)||0;t.startContainer.nodeType===Node.TEXT_NODE&&(i+=t.startOffset);const o=this.inputSlotCollection.getLastSlotWithData(),s=o.startPosition+o.partText.length;this.setCursorSelection(i>s?s:i)}}isAtLastPart(){return this.currentPartIndex===this.formatPartList.length-1}moveHome(){const t=this.inputSlotCollection.getFirstSlot();this.setCursorSelection(t.startPosition)}moveEnd(){const t=this.inputSlotCollection.getLastSlotWithData(),r=t.startPosition+t.partText.length;this.setCursorSelection(r)}moveCursorLeft(){if(this.currentCursorPosition>0){const t=this.currentCursorPosition-1;let r=this.formatPartList[this.currentPartIndex];if(t>=r.startPosition&&t<=r.endPosition)this.setCursorSelection(t);else for(let n=this.currentPartIndex-1;n>=0;n--)r=this.formatPartList[n],t>=r.startPosition&&t<=r.endPosition&&(r.isSeparator?this.setCursorSelection(this.formatPartList[n-1].endPosition):this.setCursorSelection(t))}}moveCursorRight(){const t=this.inputSlotCollection.getLastSlotWithData(),r=t.startPosition+t.partText.length;if(this.currentCursorPosition<r){const n=this.currentCursorPosition+1;let a=this.formatPartList[this.currentPartIndex];if(n>=a.startPosition&&n<=a.endPosition)this.setCursorSelection(n);else for(let i=this.currentPartIndex+1,o=this.formatPartList.length;i<o;i++)a=this.formatPartList[i],n>=a.startPosition&&n<=a.endPosition&&(a.isSeparator?this.setCursorSelection(this.formatPartList[i+1].startPosition):this.setCursorSelection(n))}}moveToNextInputPart(){if(this.currentPartIndex<this.formatPartList.length-1){const t=this.findNextEditablePart();t&&(this.currentPartIndex=t.partIndex,this.setCursorSelection(t.startPosition))}}moveToPreviousInputPart(){if(this.currentPartIndex>0){const t=this.findPreviousEditablePart();t&&(this.currentPartIndex=t.partIndex,this.setCursorSelection(t.endPosition))}}findNextEditablePart(){return this.inputSlotCollection.getNextSlot(this.currentPartIndex)}findPreviousEditablePart(){return this.inputSlotCollection.getPreviousSlot(this.currentPartIndex)}setPartIndexByCursorPosition(){for(let t=0;t<this.formatPartList.length;t++){const r=this.formatPartList[t];if(this.currentCursorPosition>=r.startPosition&&this.currentCursorPosition<=r.endPosition){if(r.isSeparator){this.currentCursorPosition=this.formatPartList[t+1].startPosition,this.currentPartIndex=t+1;break}this.currentPartIndex=t;break}}}createInputRangeSelection(){var t,r;this.inputElement&&(this.inputSelection=window.getSelection(),this.inputRange=document.createRange(),(t=this.inputSelection)==null||t.removeAllRanges(),this.inputRange.selectNodeContents(this.inputElement),this.inputRange.collapse(!0),(r=this.inputSelection)==null||r.addRange(this.inputRange),this.inputElement.firstChild&&(this.textNode=this.inputElement.firstChild))}}class tb{static create(t){const r=[];for(let n=0,a=t.length;n<a;n++){const i=t[n];i.isSeparator||r.push({partIndex:n,partText:"",isComplete:!1,...i})}return r}}class rb{constructor(t){q(this,"inputSlots");this.inputSlots=tb.create(on.create(t))}clearAllSlots(){for(let t=0,r=this.inputSlots.length;t<r;t++)this.inputSlots[t].partText=""}getSlot(t){return this.inputSlots.find(r=>r.partIndex===t)}getFirstSlot(){return this.inputSlots[0]}getNextSlot(t){const r=this.inputSlots.findIndex(n=>n.partIndex===t);if(r>-1&&r+1<this.inputSlots.length)return this.inputSlots[r+1]}getPreviousSlot(t){const r=this.inputSlots.findIndex(n=>n.partIndex===t);if(r>-1&&r-1>=0)return this.inputSlots[r-1]}getLastSlotWithData(){const t=this.inputSlots.findIndex(n=>!n.isComplete);let r=t;for(let n=t+1,a=this.inputSlots.length;n<a;n++)this.inputSlots[n].partText.length>0&&(r=n);return this.inputSlots[r>-1?r:0]}allSlotsCompleted(){return this.inputSlots.every(t=>t.isComplete)}allSlotsEmpty(){return this.inputSlots.every(t=>t.partText.length===0)}}const cn=class cn{constructor(){q(this,"navigatorInstances");q(this,"inputSlotInstances");this.navigatorInstances={},this.inputSlotInstances={}}static getInstance(){return this.instance||(this.instance=new cn),this.instance}getNavigatorInstance(t,r){return this.navigatorInstances[t]||(this.navigatorInstances[t]=new eb(r,t)),this.navigatorInstances[t]}getInputSlotInstance(t,r){return this.inputSlotInstances[t]||(this.inputSlotInstances[t]=new rb(r)),this.inputSlotInstances[t]}removeInstances(t){this.navigatorInstances[t]&&delete this.navigatorInstances[t],this.inputSlotInstances[t]&&delete this.inputSlotInstances[t]}};q(cn,"instance");let Ot=cn;class _a{constructor(t,r){q(this,"instanceCollection");q(this,"formatPartList");q(this,"inputSlotCollection");q(this,"inputElement");this.instanceCollection=Ot.getInstance(),this.formatPartList=on.create(t),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(r,t)}setInputElement(t){this.inputElement=t}render(){var r;let t="";for(let n=0,a=this.formatPartList.length;n<a;n++){const i=this.formatPartList[n];if(i.isSeparator)t+=i.inputText;else{const o=this.inputSlotCollection.getSlot(n);o&&(t+=o.partText+((r=o.inputText)==null?void 0:r.repeat(o.characterCount-o.partText.length)))}}this.inputElement&&(this.inputElement.innerHTML=t)}}var rt=(e=>(e[e.Text=0]="Text",e[e.Numeric=1]="Numeric",e))(rt||{});class Ps{constructor(){q(this,"numberKeys",["0","1","2","3","4","5","6","7","8","9"]);q(this,"movementKeys",["ArrowLeft","ArrowRight","Home","End"]);q(this,"editingKeys",["Backspace","Delete"]);q(this,"ignoreKeys",["Shift","Alt","Control","Fn","Meta"])}isNumberKey(t){return this.numberKeys.includes(t)}isMovementKey(t){return this.movementKeys.includes(t.key)}isEditingKey(t){return this.editingKeys.includes(t.key)}isIgnoreKey(t){return this.ignoreKeys.includes(t.key)}}class nb{constructor(t){q(this,"_currentIndex",0);q(this,"index",0);q(this,"formatParts");this.formatParts=on.create(t)}get currentIndex(){return this._currentIndex}hasNext(){return this.index<this.formatParts.length}next(){if(this.index<this.formatParts.length)return this._currentIndex=this.index++,this.formatParts[this._currentIndex]}peek(){if(this.index<this.formatParts.length)return this.formatParts[this.index]}reset(){this.index=0}}class Ds{constructor(t,r){q(this,"instanceCollection");q(this,"inputSlotCollection");q(this,"formatNavigator");q(this,"keyTypeChecker");q(this,"formatRenderer");q(this,"formatPartList");this.format=t,this.instanceCollection=Ot.getInstance(),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(r,t),this.formatNavigator=this.instanceCollection.getNavigatorInstance(r,t),this.keyTypeChecker=new Ps,this.formatRenderer=new _a(t,r),this.formatPartList=new nb(t)}setInputElement(t){this.formatRenderer.setInputElement(t)}processKeyPress(t){if(this.keyTypeChecker.isEditingKey(t)){this.processEditRules(t);return}this.processInputRules(t)}processInputValue(t){var n;this.inputSlotCollection.clearAllSlots(),this.formatPartList.reset();let r=0;for(;this.formatPartList.hasNext();){const a=this.formatPartList.next();if(a&&!a.isSeparator)if(((n=this.formatPartList.peek())==null?void 0:n.isSeparator)===!0){const i=this.formatPartList.currentIndex,o=this.formatPartList.next();if(o&&o.inputText){const s=t.indexOf(o.inputText,r),u=this.inputSlotCollection.getSlot(i);if(u&&s>-1){const l=s-r>u.characterCount?r+u.characterCount:s;u.partText=t.substring(r,l),this.processSlotRules(u),r=s+o.characterCount}}}else{const i=this.inputSlotCollection.getSlot(this.formatPartList.currentIndex);i&&(i.partText=t.substring(r,r+i.characterCount),this.processSlotRules(i))}}}processEditRules(t){const r=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());if(!r)return;const n=this.formatNavigator.getCursorPosition(),a=n-r.startPosition,i=this.format.deleteShiftsFormatPart||!1;switch(t.key){case"Backspace":{if(!(r.startPosition===n))r.partText=r.partText.substring(0,a-1)+r.partText.substring(a),i&&this.shiftFormatParts(r),this.formatRenderer.render(),this.formatNavigator.moveCursorLeft(),this.processSlotRules(r,!0);else{this.processSlotRules(r,!0);const s=this.inputSlotCollection.getPreviousSlot(r.partIndex);s&&(s.partText=s.partText.substring(0,s.partText.length-1),i&&this.shiftFormatParts(s),this.formatRenderer.render(),this.formatNavigator.setCursorPosition(s.startPosition+s.partText.length),this.processSlotRules(s,!0))}break}case"Delete":r.partText=r.partText.substring(0,a)+r.partText.substring(a+1),i&&this.shiftFormatParts(r),this.formatRenderer.render(),this.formatNavigator.setCursorToCurrentPosition(),this.processSlotRules(r,!0);break}}shiftFormatParts(t){let r=t,n;for(;(n=this.inputSlotCollection.getNextSlot(r.partIndex))!==void 0;){const a=n.partText.substring(0,1);n.partText=n.partText.substring(1),r.partText=r.partText+a,r=n}}processInputRules(t){const r=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());if(!r)return;const{key:n}=t,a=r.characterCount,i=r.partText;if(r.valueType===rt.Numeric){if(!this.keyTypeChecker.isNumberKey(n))return;const o=r.maximumValue,s=r.exceedingMaximumValueCausesTab||!1,u=r.padWithZeros||!1,l=parseInt(this.createNewValue(r,n));if(o&&l>o)if(s){u&&(r.partText=r.partText.padStart(a,"0")),r.isComplete=!0;const f=this.inputSlotCollection.getNextSlot(r.partIndex);f&&!f.isComplete&&(f.partText=n),this.formatRenderer.render(),f&&this.formatNavigator.setCursorPosition(f.isComplete?f.startPosition:f.startPosition+1)}else return;else i.length+1===a?(this.addToInputSlot(n),r.isComplete=!0,this.formatRenderer.render(),this.formatNavigator.isAtLastPart()?this.formatNavigator.moveCursorRight():this.formatNavigator.moveToNextInputPart()):i.length+1<a&&(this.addToInputSlot(n),this.formatRenderer.render(),this.formatNavigator.moveCursorRight())}else i.length+1===a?(this.addToInputSlot(n),r.isComplete=!0,this.formatRenderer.render(),this.formatNavigator.isAtLastPart()?this.formatNavigator.moveCursorRight():this.formatNavigator.moveToNextInputPart()):(this.addToInputSlot(n),this.formatRenderer.render(),this.formatNavigator.moveCursorRight())}addToInputSlot(t){const r=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());r&&(r.partText=this.createNewValue(r,t))}createNewValue(t,r){const n=t.partText,a=this.formatNavigator.getCursorPosition();if(a>=t.startPosition+t.partText.length)return n+r;{const i=a-t.startPosition;return n.substring(0,i)+r+n.substring(i)}}processSlotRules(t,r=!1){const n=t.characterCount,a=t.allCharactersRequired||!1;if(t.valueType===rt.Numeric){const i=t.minimumValue,o=t.maximumValue;if(a)t.isComplete=t.partText.length===n;else if(i!==void 0&&o!==void 0){const s=t.padWithZeros||!1,u=parseInt(t.partText);t.isComplete=u>=i&&u<=o,t.isComplete&&s&&!r&&(t.partText=t.partText.padStart(n,"0"))}else t.isComplete=t.partText.length>0}else a?t.isComplete=t.partText.length===n:t.isComplete=t.partText.length>0}}class ab{constructor(t,r){q(this,"instanceCollection");q(this,"formatNavigator");q(this,"ruleProcessor");q(this,"keyTypeChecker");q(this,"formatRenderer");this.format=t,this.instanceCollection=Ot.getInstance(),this.formatNavigator=this.instanceCollection.getNavigatorInstance(r,t),this.ruleProcessor=new Ds(t,r),this.keyTypeChecker=new Ps,this.formatRenderer=new _a(t,r)}setInputElement(t){this.ruleProcessor.setInputElement(t),this.formatRenderer.setInputElement(t)}processMovementKey(t){const{key:r,metaKey:n}=t;switch(r){case"ArrowLeft":n?this.formatNavigator.moveHome():this.formatNavigator.moveCursorLeft();break;case"ArrowRight":n?this.formatNavigator.moveEnd():this.formatNavigator.moveCursorRight();break;case"Home":this.formatNavigator.moveHome();break;case"End":this.formatNavigator.moveEnd();break}}processKeyPress(t){return this.keyTypeChecker.isIgnoreKey(t)?!1:this.keyTypeChecker.isMovementKey(t)?(this.processMovementKey(t),!1):(this.ruleProcessor.processKeyPress(t),!0)}}class ob{constructor(t,r=""){q(this,"instanceId");q(this,"instanceCollection");q(this,"keyProcessor");q(this,"formatNavigator");q(this,"formatRenderer");q(this,"inputSlotCollection");q(this,"inputRuleProcessor");q(this,"previousOutputValue","");q(this,"inputElementSet",!1);q(this,"isInputFocused",!1);q(this,"inputElement");q(this,"onFormatChange");this.inputValue=r,this.instanceId=Jh(),this.instanceCollection=Ot.getInstance(),this.keyProcessor=new ab(t,this.instanceId),this.formatNavigator=this.instanceCollection.getNavigatorInstance(this.instanceId,t),this.formatRenderer=new _a(t,this.instanceId),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(this.instanceId,t),this.inputRuleProcessor=new Ds(t,this.instanceId)}inputElementCreated(t){this.keyProcessor.setInputElement(t),this.formatNavigator.setInputElement(t),this.formatRenderer.setInputElement(t),this.inputElement=t,this.inputElementSet=!0,this.inputElementSet&&this.inputValue.length>0&&this.inputValuePassed(this.inputValue)}inputFocused(){this.isInputFocused=!0,this.formatRenderer.render(),setTimeout(()=>this.formatNavigator.findCursorPosition())}inputBlurred(){this.isInputFocused=!1}inputValuePassed(t){this.inputValue=t,this.inputElementSet&&(this.inputValue.length>0?this.inputRuleProcessor.processInputValue(t):(this.inputSlotCollection.clearAllSlots(),this.previousOutputValue=void 0),setTimeout(()=>{var r;this.formatRenderer.render(),this.isInputFocused&&this.formatNavigator.setCursorToCurrentPosition(),this.inputValue.length>0&&(this.previousOutputValue=(r=this.inputElement)==null?void 0:r.innerHTML)}))}registerFormatChangeEvent(t){this.onFormatChange=t}mouseUpHandler(){this.formatNavigator.findCursorPosition()}keyDownHandler(t){t.key!=="Tab"&&(t.preventDefault(),t.stopPropagation(),this.keyProcessor.processKeyPress(t)&&this.inputElement&&this.onFormatChange&&(this.inputSlotCollection.allSlotsCompleted()&&this.previousOutputValue!==this.inputElement.innerHTML?(this.previousOutputValue=this.inputElement.innerHTML,this.onFormatChange(this.inputElement.innerHTML)):this.inputSlotCollection.allSlotsEmpty()&&this.previousOutputValue!==void 0&&(this.previousOutputValue=void 0,this.onFormatChange())))}dispose(){this.instanceCollection.removeInstances(this.instanceId)}}const ib=(e,t)=>{const{value:r="",format:n,readOnly:a=!1,debounceTime:i=800,fillContainer:o=!0,leftElement:s,rightElement:u,className:l,leftElementClassName:f,rightElementClassName:m,isSingleLine:v=!1,allowSingleLineScroll:p=!1,isInputValid:x,onChange:T,onFocus:y,onBlur:N,onElementCreate:O,onLeftElementClick:$,onRightElementClick:U}=e,[h,Y]=b.useState(!0),Q=b.useRef(),Z=b.useRef(),G=b.useRef();b.useEffect(()=>()=>{var H;(H=G.current)==null||H.dispose()},[]),b.useEffect(()=>{var H;(H=G.current)==null||H.inputValuePassed(r)},[r]),b.useEffect(()=>{var H,pe,g;(H=G.current)==null||H.dispose(),n&&(G.current=new ob(n,r),Z.current&&((pe=G.current)==null||pe.inputElementCreated(Z.current)),(g=G.current)==null||g.registerFormatChangeEvent(oe))},[n]);const oe=b.useCallback(H=>{x?x(H)?(Y(!0),T==null||T(H)):Y(!1):T==null||T(H)},[T]),le=b.useCallback(H=>{var pe;(pe=G.current)==null||pe.inputFocused(),y==null||y(H)},[y]),ce=b.useCallback(H=>{var pe;(pe=G.current)==null||pe.inputBlurred(),N==null||N(H)},[N]),S=b.useCallback(()=>{var H;(H=G.current)==null||H.mouseUpHandler()},[]),X=b.useCallback(H=>{var pe;(pe=G.current)==null||pe.keyDownHandler(H)},[]),J=b.useCallback(H=>{var pe,g,P,d,C,F,K,I,j;(g=(pe=Q.current)==null?void 0:pe.inputElement)==null||g.removeEventListener("keydown",X),(d=(P=Q.current)==null?void 0:P.inputElement)==null||d.removeEventListener("mouseup",S),Q.current=H,(F=(C=Q.current)==null?void 0:C.inputElement)==null||F.addEventListener("keydown",X),(I=(K=Q.current)==null?void 0:K.inputElement)==null||I.addEventListener("mouseup",S),Z.current=(j=Q.current)==null?void 0:j.inputElement},[]),z=b.useCallback(()=>{var H;(H=Q.current)==null||H.focus()},[]);b.useImperativeHandle(t,()=>({focus:z}));const ne=ft(l,{"!bsc-border-error":!h});return w.jsxDEV(jn,{ref:H=>H&&J(H),readOnly:a,debounceTime:i,fillContainer:o,leftElement:s,rightElement:u,className:ne,leftElementClassName:f,rightElementClassName:m,isSingleLine:v,allowSingleLineScroll:p,onFocus:le,onBlur:ce,onElementCreate:O,onLeftElementClick:$,onRightElementClick:U},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/inputs/formatted-input/formatted-input.component.tsx",lineNumber:135,columnNumber:5},globalThis)},Cs=b.forwardRef(ib),Aa=b.createContext(void 0);function ks(e,t,r=!0){var v,p;const n=is(e),a=es(e),i=pv(e);let o=Pa(a)-(((v=t.options)==null?void 0:v.weekStartsOn)||0);o=o===-1?6:o;const s=Pa(i)-(((p=t.options)==null?void 0:p.weekStartsOn)||0),u=dp({start:a,end:i}),l=n+o>35?6:5,f=Os(l,7,{dayValue:null,isCurrent:!0});let m=1;for(let x=0,T=l;x<T;x++){for(let y=x>0?0:o;y<7;y++){const N=u[m-1];if(N.setHours(e.getHours(),e.getMinutes(),e.getSeconds()),f[x][y].dayValue=N,++m>n)break}if(m>n)break}if(o>0&&r)for(let x=0;x<o;x++)f[0][x].dayValue=ph(a,o-x),f[0][x].isCurrent=!1;if(s>-1&&r)for(let x=6;x>s;x--)f[l-1][x].dayValue=Zr(i,x-s),f[l-1][x].isCurrent=!1;return f}function Os(e,t,r){const n=[];for(let a=0,i=e;a<i;a++){const o=[];for(let s=0,u=t;s<u;s++){const l=sb(r)?r:{...r};o.push(l)}n.push(o)}return n}function sb(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"||e instanceof Date}function ub(e){var n;const t=vh(new Date,((n=e.options)==null?void 0:n.weekStartsOn)||0),r=[];for(let a=0;a<7;a++)r.push(Zr(t,a).toLocaleDateString(e.code,{weekday:"short"}));return r}function lb(e){const t=new Date(Date.UTC(2020,0,1)),r=[[{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""}],[{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""}],[{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""}]];let n=0;for(let a=0;a<3;a++)for(let i=0;i<4;i++)r[a][i]={monthNumber:n,monthName:Pt(t,n++).toLocaleDateString(e.code,{month:"short"})};return r}function cb(e,t){const r=new Date(e.getTime()),n=Math.floor(r.getFullYear()/10)*10;r.setFullYear(n);const a=pp({start:r,end:Jr(r,9)}),i=Os(3,4,"");let o=0;for(let s=0;s<3;s++)for(let u=0;u<4&&(i[s][u]=a[o++].toLocaleDateString(t.code,{year:"numeric"}),o!==a.length);u++);return i}function fb(e){const t=new Date;return t.setHours(0,0,0,0),t.toLocaleTimeString(e.code)}function mb(e,t,r){return e.getTime()>=t.getTime()&&e.getTime()<=r.getTime()}async function Is(e){return(await import(`https://esm.sh/date-fns/locale/${db(e)}/index.js`)).default}function db(e){const[t,r]=e.split("-");switch(t){case"af":return"af";case"ar":switch(r){case"DZ":return"ar-DZ";case"EG":return"ar-EG";case"MA":return"ar-MA";case"SA":return"ar-SA";case"TN":return"ar-TN";default:return"ar"}case"az":return"az";case"be":switch(r){case"tarask":return"be-tarask";default:return"be"}case"bg":return"bg";case"bn":return"bn";case"bs":return"bs";case"ca":return"ca";case"cs":return"cs";case"cy":return"cy";case"da":return"da";case"de":switch(r){case"AT":return"de-AT";default:return"de"}case"el":return"el";case"en":switch(r){case"AU":return"en-AU";case"CA":return"en-CA";case"GB":return"en-GB";case"IE":return"en-IE";case"IN":return"en-IN";case"NZ":return"en-NZ";case"US":return"en-US";default:return"en-ZA"}case"eo":return"eo";case"es":return"es";case"et":return"et";case"eu":return"eu";case"fa":return"fa-IR";case"fi":return"fi";case"fr":switch(r){case"CA":return"fr-CA";case"CH":return"fr-CH";default:return"fr"}case"fy":return"fy";case"gd":return"gd";case"gl":return"gl";case"gu":return"gu";case"he":return"he";case"hi":return"hi";case"hr":return"hr";case"ht":return"ht";case"hu":return"hu";case"hy":return"hy";case"id":return"id";case"is":return"is";case"it":switch(r){case"CH":return"it-CH";default:return"it"}case"ja":switch(r){case"Hira":return"ja-Hira";default:return"ja"}case"ka":return"ka";case"kk":return"kk";case"km":return"km";case"kn":return"kn";case"ko":return"ko";case"lb":return"lb";case"lt":return"lt";case"lv":return"lv";case"mk":return"mk";case"mn":return"mn";case"ms":return"ms";case"mt":return"mt";case"nb":return"nb";case"nl":switch(r){case"BE":return"nl-BE";default:return"nl"}case"nn":return"nn";case"oc":return"oc";case"pl":return"pl";case"pt":switch(r){case"BR":return"pt-BR";default:return"pt"}case"ro":return"ro";case"ru":return"ru";case"sk":return"sk";case"sl":return"sl";case"sq":return"sq";case"sr":switch(r){case"Latn":return"sr-Latn";default:return"sr"}case"sv":return"sv";case"ta":return"ta";case"te":return"te";case"th":return"th";case"tr":return"tr";case"ug":return"ug";case"uk":return"uk";case"uz":switch(r){case"Cyrl":return"uz-Cyrl";default:return"uz"}case"vi":return"vi";case"zh":switch(r){case"CN":return"zh-CN";case"HK":return"zh-HK";default:return"zh-TW"}default:return"en-AU"}}function Tr(e,t){const r=hh(e);if(isNaN(r.valueOf())){let n=tt(e,"P pp",new Date,{locale:t});return!isNaN(n.valueOf())||(n=tt(e,"Pp",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=tt(e,"P HH:mm",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=tt(e,"P hh:mm a..aaa",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=tt(e,"P HH:mm:ss",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=tt(e,"P hh:mm:ss a..aaa",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=tt(e,"P",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=tt(e,"P p",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=tt(e,"pp",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=tt(e,"p",new Date,{locale:t}),!isNaN(n.valueOf()))?n:void 0}return r}function _s(e,t){const r=e.split("-");if(r.length!==2)return;const n=Tr(r[0].trim(),t);if(!n)return;const a=Tr(r[1].trim(),t);if(a)return[n,a]}var Te=(e=>(e[e.DateTime=0]="DateTime",e[e.DateOnly=1]="DateOnly",e[e.TimeOnly=2]="TimeOnly",e[e.DateRange=3]="DateRange",e))(Te||{}),Er=(e=>(e[e.Day=0]="Day",e[e.Month=1]="Month",e[e.Year=2]="Year",e[e.Range=3]="Range",e))(Er||{}),sn=(e=>(e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e))(sn||{}),_e=(e=>(e[e.TwelveHour=0]="TwelveHour",e[e.TwentyFourHour=1]="TwentyFourHour",e))(_e||{}),It=(e=>(e[e.Normal=0]="Normal",e[e.Range=1]="Range",e))(It||{}),un=(e=>(e[e.Right=0]="Right",e[e.Left=1]="Left",e[e.None=2]="None",e))(un||{}),te=(e=>(e[e.DaySelector=0]="DaySelector",e[e.MonthSelector=1]="MonthSelector",e[e.YearSelector=2]="YearSelector",e[e.TimeSelector=3]="TimeSelector",e[e.DateRangeSelector=4]="DateRangeSelector",e[e.SetViewDate=5]="SetViewDate",e[e.SetSelectedDate=6]="SetSelectedDate",e[e.SetSelectedDateRange=7]="SetSelectedDateRange",e[e.SetSelectedStartDate=8]="SetSelectedStartDate",e[e.SetSelectedEndDate=9]="SetSelectedEndDate",e[e.SetTimeFormat=10]="SetTimeFormat",e[e.ClearDates=11]="ClearDates",e[e.InitializeDates=12]="InitializeDates",e))(te||{});const pb=(e,t)=>{switch(t.type){case 0:return{...e,currentSelector:0,currentViewDate:t.viewDate||e.currentViewDate};case 1:return{...e,currentSelector:1,currentViewDate:t.viewDate||e.currentViewDate};case 2:return{...e,currentSelector:2};case 3:return{...e,currentSelector:3};case 4:return{...e,currentSelector:4,currentViewDate:t.viewDate||e.currentViewDate};case 5:return{...e,currentViewDate:t.viewDate||new Date,dateInitialized:!0};case 6:return{...e,selectedDate:t.selectedDate||e.selectedDate,currentViewDate:t.viewDate||e.currentViewDate};case 7:return{...e,selectedStartDate:t.selectedStartDate||e.selectedStartDate,selectedEndDate:t.selectedEndDate||e.selectedEndDate};case 8:return{...e,selectedStartDate:t.selectedStartDate,selectedEndDate:void 0};case 9:return{...e,selectedEndDate:t.selectedEndDate};case 10:return{...e,timeFormat:t.timeFormat||e.timeFormat};case 11:return{currentSelector:e.currentSelector,currentViewDate:e.currentViewDate,timeFormat:e.timeFormat,dateInitialized:!0};case 12:const r={...e,currentViewDate:vb(t.initialDate),dateInitialized:!0};return Array.isArray(t.initialDate)?{...r,selectedStartDate:t.initialDate[0],selectedEndDate:t.initialDate[1]}:{...r,selectedDate:t.initialDate};default:return{...e,currentSelector:0}}};function vb(e){return e?Array.isArray(e)?e[0]:e:new Date}const Ma=({viewDate:e,selectedDate:t,selectedStartDate:r,selectedEndDate:n,selectionMode:a=It.Normal,locale:i,onDateSelected:o,selectableDate:s,isValidDate:u,dispatcher:l})=>{var J;const[f,m]=b.useState(!1),[v,p]=b.useState(),[x,T]=b.useState(),[y,N]=b.useState(),[O,$]=b.useState(),U=b.useRef(),h=b.useRef(),Y=b.useContext(Aa),Q=b.useMemo(()=>Y.calendarTemplate,[Y.calendarTemplate]),Z=async()=>i||await Is(gs());b.useEffect(()=>{Z().then(z=>{U.current=z,h.current=ub(U.current),m(!0)}).catch(z=>console.error(z))},[]),b.useEffect(()=>{e&&U.current&&N(ks(e,U.current,a===It.Normal))},[e,f]),b.useEffect(()=>{$(t?new Date(t.getFullYear(),t.getMonth(),t.getDate()):void 0)},[t]),b.useEffect(()=>{p(r?new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0).getTime():void 0),T(n?new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59).getTime():void 0)},[r,n]),b.useEffect(()=>{U.current&&i&&(U.current=i,N(ks(e,U.current,a===It.Normal)))},[i]);const G=z=>{if(a===It.Normal)l==null||l({type:te.SetSelectedDate,selectedDate:z,viewDate:z}),o==null||o(z);else{if(!o)throw new Error("Range selection mode requires onDateSelected to be set");!r||vv(z,r)?o(z):r&&!n?o(z,{setEndDate:!0}):r&&n&&o(z)}},oe=z=>(O==null?void 0:O.toLocaleDateString())===z.toLocaleDateString(),le=z=>{if(v&&x){const ne=z.getTime();return ne>=v&&ne<=x}return!1},ce={viewDate:e,selectedDate:t,selectedStartDate:r,selectedEndDate:n,selectionMode:a,locale:i,weekDays:h.current,monthMatrix:y,selectableDate:s,isValidDate:u,onDateClicked:G,isSelectedDate:oe,isInSelectedDateRange:le},X=Q||((z,ne)=>w.jsxDEV("div",{className:"bsc-w-full bc-dt-calendar",children:ne},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-calendar.component.tsx",lineNumber:193,columnNumber:5},globalThis));return w.jsxDEV(Oa,{props:ce,template:X,children:w.jsxDEV("div",{className:"bsc-grid bsc-grid-cols-7 bsc-gap-3 bc-dt-day-row bsc-min-w-[329px]",children:[(J=h.current)==null?void 0:J.map((z,ne)=>w.jsxDEV("div",{className:"bsc-text-center bsc-font-bold bc-dt-day-cell",children:z},ne,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-calendar.component.tsx",lineNumber:202,columnNumber:11},globalThis)),y==null?void 0:y.map((z,ne)=>z.map((H,pe)=>{var d,C;const g=H.dayValue!==null&&(s===void 0||s(H.dayValue)),P=ft("bsc-text-center bsc-py-1",{"bsc-text-gray-3":!H.isCurrent,"bsc-bg-primary-3 dark:bsc-bg-mono-light-1 dark:bsc-text-mono-dark-1":H&&H.dayValue&&(O&&oe(H.dayValue)||v&&!x&&Ji(v,H.dayValue)||v&&x&&le(H.dayValue)),"bsc-cursor-pointer":g,"bsc-text-error bsc-cursor-not-allowed":!g,"bsc-bg-primary-5 dark:bsc-bg-mono-light-3 dark:bsc-text-mono-dark-1":H.dayValue&&dh(H.dayValue)&&!(oe(H.dayValue)||le(H.dayValue))},"bc-dt-date-cell");return w.jsxDEV("div",{className:P,onClick:()=>H&&H.dayValue&&g&&(u===void 0||u(H.dayValue))&&G(H.dayValue),children:(C=H.dayValue)==null?void 0:C.getDate().toLocaleString((d=U.current)==null?void 0:d.code)},ne.toString()+pe.toString(),!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-calendar.component.tsx",lineNumber:233,columnNumber:15},globalThis)}))]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-calendar.component.tsx",lineNumber:200,columnNumber:7},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-calendar.component.tsx",lineNumber:199,columnNumber:5},globalThis)},ln=({title:e,scrollerType:t,onTitleClicked:r,onMovePrevious:n,onMoveNext:a})=>{const o=b.useContext(Aa).dateScrollerTemplate,s={title:e,scrollerType:t,onTitleClicked:r,onMovePrevious:n,onMoveNext:a},l=o||((f,m)=>w.jsxDEV("div",{className:"bsc-w-full bsc-flex bsc-flex-row bsc-py-1 bsc-px-2 bc-dt-scroller",children:m},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:45,columnNumber:5},globalThis));return w.jsxDEV(Oa,{props:s,template:l,children:[w.jsxDEV("div",{className:"bsc-flex-shrink bsc-cursor-pointer bc-dt-scroller-left",children:w.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:n,children:w.jsxDEV(He,{icon:["fas","angle-left"]},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:54,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:53,columnNumber:9},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:52,columnNumber:7},globalThis),w.jsxDEV("div",{className:"bsc-flex-grow bsc-text-center bsc-cursor-pointer bc-dt-scroller-title",onClick:r,children:e},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:57,columnNumber:7},globalThis),w.jsxDEV("div",{className:"bsc-flex-shrink bsc-cursor-pointer bc-dt-scroller-right",children:w.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:a,children:w.jsxDEV(He,{icon:["fas","angle-right"]},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:62,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:61,columnNumber:9},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:60,columnNumber:7},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:51,columnNumber:5},globalThis)},hb=({selectedDate:e,viewDate:t,locale:r,showTimeSelector:n,selectableDate:a,isValidDate:i,onChange:o,dispatcher:s})=>{const u=()=>{t&&s({type:te.SetViewDate,viewDate:hs(t,1)})},l=()=>{t&&s({type:te.SetViewDate,viewDate:Pt(t,1)})},f=()=>{s({type:te.MonthSelector})},m=()=>{s({type:te.TimeSelector})},v=()=>t?t.toLocaleDateString(r.code,{month:"long",year:"numeric"}):"";return w.jsxDEV("div",{className:"bsc-p-2 bc-dt-day-selector",children:[w.jsxDEV(ln,{title:v(),scrollerType:Er.Day,onTitleClicked:f,onMovePrevious:u,onMoveNext:l},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-day-selector.component.tsx",lineNumber:74,columnNumber:7},globalThis),w.jsxDEV(Ma,{viewDate:t,selectedDate:e,locale:r,selectableDate:a,isValidDate:i,onDateSelected:o,dispatcher:s},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-day-selector.component.tsx",lineNumber:81,columnNumber:7},globalThis),n&&w.jsxDEV("div",{className:"bsc-w-full bsc-flex bsc-flex-row bsc-p-2 bsc-justify-center bc-dt-time-value-wrapper",children:w.jsxDEV("div",{className:"bsc-p-2 bsc-cursor-pointer hover:bsc-bg-gray-4 dark:hover:bsc-bg-mono-light-2 dark:hover:bsc-text-mono-dark-2 dark:bsc-bg-mono-dark-1 dark:bsc-text-mono-light-1 bc-dt-time-value",onClick:m,children:(e==null?void 0:e.toLocaleTimeString(r.code))||fb(r)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-day-selector.component.tsx",lineNumber:92,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-day-selector.component.tsx",lineNumber:91,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-day-selector.component.tsx",lineNumber:73,columnNumber:5},globalThis)},bb=({viewDate:e,locale:t,dateSelection:r=Te.DateTime,dispatcher:n})=>{const a=b.useRef(lb(t)),i=()=>{const f=bs(e,1);n({type:te.SetViewDate,viewDate:f})},o=()=>{const f=Jr(e,1);n({type:te.SetViewDate,viewDate:f})},s=f=>{n({type:r!==Te.DateRange?te.DaySelector:te.DateRangeSelector,viewDate:_h(e,f)})},u=()=>e.toLocaleDateString(t.code,{year:"numeric"}),l=()=>{n({type:te.YearSelector})};return w.jsxDEV("div",{className:"bsc-p-2 bc-dt-month-selector",style:{minWidth:"20rem"},children:[w.jsxDEV(ln,{title:u(),scrollerType:Er.Month,onTitleClicked:l,onMovePrevious:i,onMoveNext:o},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-month-selector.component.tsx",lineNumber:63,columnNumber:7},globalThis),w.jsxDEV("div",{className:"bsc-w-full bsc-grid bsc-grid-cols-4 bsc-gap-4 bc-dt-month-grid",children:a.current.map((f,m)=>f.map((v,p)=>w.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-month-cell",onClick:()=>s(v.monthNumber),children:v.monthName},m.toString()+p.toString(),!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-month-selector.component.tsx",lineNumber:73,columnNumber:13},globalThis)))},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-month-selector.component.tsx",lineNumber:70,columnNumber:7},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-month-selector.component.tsx",lineNumber:62,columnNumber:5},globalThis)},gb=({viewDate:e,selectedStartDate:t,selectedEndDate:r,locale:n,onChange:a,dispatcher:i})=>{const o=Pt(e,1),s=(v,p)=>{!p||!p.setEndDate?i({type:te.SetSelectedStartDate,selectedStartDate:v}):(i({type:te.SetSelectedEndDate,selectedEndDate:v}),t&&(a==null||a([t,v])))},u=()=>{i({type:te.MonthSelector})},l=()=>`${e.toLocaleDateString(n.code,{month:"long"})} ${e.toLocaleDateString(n.code,{year:"numeric"})} - ${o.toLocaleDateString(n.code,{month:"long"})} ${o.toLocaleDateString(n.code,{year:"numeric"})}`,f=()=>{e&&i({type:te.SetViewDate,viewDate:hs(e,1)})},m=()=>{e&&i({type:te.SetViewDate,viewDate:Pt(e,1)})};return w.jsxDEV("div",{className:"bsc-flex bsc-flex-col bc-dt-range-selector",children:[w.jsxDEV("div",{className:"bsc-flex-shrink bc-dt-range-scroller-wrapper",children:w.jsxDEV(ln,{title:l(),scrollerType:Er.Range,onTitleClicked:u,onMovePrevious:f,onMoveNext:m},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:77,columnNumber:9},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:76,columnNumber:7},globalThis),w.jsxDEV("div",{className:"bsc-flex-grow",children:w.jsxDEV("div",{className:"bsc-flex bsc-flex-row bsc-py-1 bsc-px-2 bc-dt-range-wrapper",children:[w.jsxDEV("div",{className:"bsc-border-r bsc-border-solid bsc-border-gray-3 bsc-pr-4 bc-dt-range-calendar-1",children:w.jsxDEV(Ma,{viewDate:e,selectedStartDate:t,selectedEndDate:r,selectionMode:It.Range,onDateSelected:s,locale:n,dispatcher:i},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:88,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:87,columnNumber:11},globalThis),w.jsxDEV("div",{className:"bsc-pl-4 bc-dt-range-calendar-2",children:w.jsxDEV(Ma,{viewDate:o,selectedStartDate:t,selectedEndDate:r,selectionMode:It.Range,onDateSelected:s,locale:n,dispatcher:i},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:99,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:98,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:86,columnNumber:9},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:85,columnNumber:7},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:75,columnNumber:5},globalThis)},yb=({viewDate:e,showDateSelector:t,locale:r,timeFormat:n=_e.TwelveHour,timeConstraints:a,onChange:i,dispatcher:o})=>{const s=b.useRef(n===_e.TwelveHour?11:23),u=b.useRef(n===_e.TwelveHour?["12","01","02","03","04","05","06","07","08","09","10","11"]:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"]),l=b.useRef(Mh(0,59,S=>S.toString().padStart(2,"0"))),f=b.useRef(["AM","PM"]),m=b.useRef(Zf(e)),v=S=>S>11?S-12:S,[p,x]=b.useState(v(e.getHours())),[T,y]=b.useState(e.getMinutes()),[N,O]=b.useState(e.getHours()<=12?0:1),$=b.useRef(e.toLocaleDateString(r.code));b.useEffect(()=>{const S=e.getHours(),X=e.getMinutes();if(S!==p&&x(n===_e.TwelveHour?v(S):S),X!==T&&y(X),n===_e.TwelveHour){const J=S<=11?0:1;J!==N&&O(J)}},[e]);const U=()=>{var J;const S=((J=a==null?void 0:a.hours)==null?void 0:J.step)||1,X=p<s.current?p+S:0;x(X),G(X,T,N)},h=()=>{var J;const S=((J=a==null?void 0:a.hours)==null?void 0:J.step)||1,X=p>0?p-S:s.current;x(X),G(X,T,N)},Y=()=>{var J,z,ne;const S=((J=a==null?void 0:a.minutes)==null?void 0:J.step)||1,X=T+S<(((z=a==null?void 0:a.minutes)==null?void 0:z.max)||59)?T+S:((ne=a==null?void 0:a.minutes)==null?void 0:ne.min)||0;y(X),G(p,X,N)},Q=()=>{var J,z,ne;const S=((J=a==null?void 0:a.minutes)==null?void 0:J.step)||1,X=T-S>=(((z=a==null?void 0:a.minutes)==null?void 0:z.min)||0)?T-S:(((ne=a==null?void 0:a.minutes)==null?void 0:ne.max)||60)-S;y(X),G(p,X,N)},Z=()=>{const S=N===0?1:0;O(S),G(p,T,S)},G=(S,X,J)=>{const z=n===_e.TwelveHour&&J===1?S+12:S;m.current.setHours(z,X),o({type:te.SetSelectedDate,selectedDate:m.current,viewDate:m.current}),i==null||i(m.current)},oe=()=>{o({type:te.DaySelector})},le=ft("bsc-w-full bsc-grid bsc-grid-rows-3 bsc-gap-4 bc-dt-time-grid",{"bsc-grid-cols-4":n===_e.TwelveHour,"bsc-grid-cols-3":n===_e.TwentyFourHour}),ce=ft("bsc-text-center bsc-cursor-pointer hover:bsc-bg-gray-4 dark:bsc-text-mono-light-1 dark:hover:bsc-bg-mono-light-1 dark:hover:bsc-text-mono-dark-1 bc-dt-time-date-value",{"bsc-col-span-4":n===_e.TwelveHour,"bsc-col-span-3":n===_e.TwentyFourHour});return w.jsxDEV("div",{className:"bsc-flex bsc-flex-row bsc-justify-center bsc-p-2 bc-dt-time-selector",style:{minWidth:n===_e.TwelveHour?"15rem":"11rem"},children:w.jsxDEV("div",{className:le,children:[t&&w.jsxDEV("div",{className:ce,onClick:oe,children:$.current},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:168,columnNumber:11},globalThis),w.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-hour-increase",children:w.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:U,children:w.jsxDEV(He,{icon:["fas","chevron-up"]},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:174,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:173,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:172,columnNumber:9},globalThis),w.jsxDEV("div",{children:" "},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:177,columnNumber:9},globalThis),w.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-minute-increase",children:w.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:Y,children:w.jsxDEV(He,{icon:["fas","chevron-up"]},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:180,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:179,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:178,columnNumber:9},globalThis),n===_e.TwelveHour&&w.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-meridian-increase",children:w.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:Z,children:w.jsxDEV(He,{icon:["fas","chevron-up"]},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:186,columnNumber:15},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:185,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:184,columnNumber:11},globalThis),w.jsxDEV("div",{className:"bsc-text-center bc-dt-time-hour-value",children:u.current[p]},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:190,columnNumber:9},globalThis),w.jsxDEV("div",{className:"bsc-text-center bc-dt-time-separator",children:":"},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:191,columnNumber:9},globalThis),w.jsxDEV("div",{className:"bsc-text-center bc-dt-time-minute-value",children:l.current[T]},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:192,columnNumber:9},globalThis),n===_e.TwelveHour&&w.jsxDEV("div",{className:"bsc-text-center bc-dt-time-meridian-value",children:f.current[N]},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:194,columnNumber:11},globalThis),w.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-hour-decrease",children:w.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:h,children:w.jsxDEV(He,{icon:["fas","chevron-down"]},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:198,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:197,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:196,columnNumber:9},globalThis),w.jsxDEV("div",{children:" "},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:201,columnNumber:9},globalThis),w.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-minute-decrease",children:w.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:Q,children:w.jsxDEV(He,{icon:["fas","chevron-down"]},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:204,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:203,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:202,columnNumber:9},globalThis),n===_e.TwelveHour&&w.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-meridian-decrease",children:w.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:Z,children:w.jsxDEV(He,{icon:["fas","chevron-down"]},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:210,columnNumber:15},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:209,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:208,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:166,columnNumber:7},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:162,columnNumber:5},globalThis)},wb=({viewDate:e,locale:t,dispatcher:r})=>{const n=cb(e,t),a=()=>{const u=bs(e,10);r({type:te.SetViewDate,viewDate:u})},i=()=>{const u=Jr(e,10);r({type:te.SetViewDate,viewDate:u})},o=u=>{const l=parseInt(u);r({type:te.MonthSelector,viewDate:Ah(e,l)})},s=()=>`${n[0][0].toString()} - ${n[2][1].toString()}`;return w.jsxDEV("div",{className:"bc-dt-year-selector",style:{minWidth:"20rem"},children:[w.jsxDEV(ln,{title:s(),scrollerType:Er.Year,onMovePrevious:a,onMoveNext:i},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-year-selector.component.tsx",lineNumber:45,columnNumber:7},globalThis),w.jsxDEV("div",{className:"bsc-w-full bc-dt-year-wrapper",children:w.jsxDEV("div",{className:"bsc-grid bsc-grid-cols-4 bsc-gap-4 bc-dt-year-grid",children:n.map((u,l)=>u.map((f,m)=>f.length>0?w.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-year-cell",onClick:()=>o(f),children:f},l.toString()+m.toString(),!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-year-selector.component.tsx",lineNumber:56,columnNumber:17},globalThis):w.jsxDEV("div",{},l.toString()+m.toString(),!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-year-selector.component.tsx",lineNumber:64,columnNumber:17},globalThis)))},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-year-selector.component.tsx",lineNumber:52,columnNumber:9},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-year-selector.component.tsx",lineNumber:51,columnNumber:7},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-year-selector.component.tsx",lineNumber:44,columnNumber:5},globalThis)};class xb{constructor(t,r){q(this,"dateFormat");q(this,"timeFormat");q(this,"use24HourTime");q(this,"monthPart");q(this,"dayPart");q(this,"yearPart");q(this,"twelveHourPart");q(this,"twentyFourHourPart");q(this,"minutePart");q(this,"meridianPart");this.dateSelection=t;const n=2023,a=12,i=20,s=new Date(n,a-1,i).toLocaleDateString(r,{year:"numeric",month:"numeric",day:"numeric"});this.dateFormat=s.replace(`${n}`,"YYYY").replace(`${a}`,"MM").replace(`${i}`,"DD");const u=new Date,l=18,f=24,m=37,v=317;u.setHours(l,f,m,v);const p=u.toLocaleTimeString(r);this.use24HourTime=p.startsWith("18"),this.timeFormat=p.replace(`${this.use24HourTime?l:"6"}`,"HH").replace(`${f}`,"MM").replace(`${m}`,"SS").replace(`${v}`,"LLL"),this.createDateParts()}get is24HourTime(){return this.use24HourTime}createInputFormat(){const t={deleteShiftsFormatPart:!1,formatParts:[]};switch(this.dateSelection){case Te.DateOnly:return this.createDateFormat(t);case Te.TimeOnly:return this.createTimeFormat(t);case Te.DateRange:return this.createDateRangeFormat(t);case Te.DateTime:return this.createDateTimeFormat(t)}}createDateFormat(t){return this.dateFormat.startsWith("MM")?t.formatParts.push(...this.createMonthDayYearFormatParts()):this.dateFormat.startsWith("DD")?t.formatParts.push(...this.createDayMonthYearFormatParts()):t.formatParts.push(...this.createYearMonthDayFormatParts()),t}createTimeFormat(t){return this.use24HourTime?t.formatParts.push(...this.createTwentyFourHourFormatParts()):t.formatParts.push(...this.createTwelveHourFormatParts()),t}createDateRangeFormat(t){const r=[];this.dateFormat.startsWith("MM")?r.push(...this.createMonthDayYearFormatParts()):this.dateFormat.startsWith("DD")?r.push(...this.createDayMonthYearFormatParts()):r.push(...this.createYearMonthDayFormatParts());const n={characterCount:3,placeholder:" - ",inputText:" - ",isSeparator:!0};return t.formatParts.push(...r,n,...r),t}createDateTimeFormat(t){this.dateFormat.startsWith("MM")?t.formatParts.push(...this.createMonthDayYearFormatParts()):this.dateFormat.startsWith("DD")?t.formatParts.push(...this.createDayMonthYearFormatParts()):t.formatParts.push(...this.createYearMonthDayFormatParts());const r={characterCount:1,placeholder:" ",inputText:" ",isSeparator:!0};return t.formatParts.push(r),this.use24HourTime?t.formatParts.push(...this.createTwentyFourHourFormatParts()):t.formatParts.push(...this.createTwelveHourFormatParts()),t}createMonthDayYearFormatParts(){if(this.monthPart&&this.dayPart&&this.yearPart){let t=this.dateFormat.replace("MM",""),r=t.indexOf("DD"),n=t.substring(0,r);t=t.replace(n,"").replace("DD","");const a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};r=t.indexOf("YYYY"),n=t.substring(0,r);const i={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.monthPart,a,this.dayPart,i,this.yearPart]}return[]}createDayMonthYearFormatParts(){if(this.monthPart&&this.dayPart&&this.yearPart){let t=this.dateFormat.replace("DD",""),r=t.indexOf("MM"),n=t.substring(0,r);t=t.replace(n,"").replace("MM","");const a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};r=t.indexOf("YYYY"),n=t.substring(0,r);const i={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.dayPart,a,this.monthPart,i,this.yearPart]}return[]}createYearMonthDayFormatParts(){if(this.monthPart&&this.dayPart&&this.yearPart){let t=this.dateFormat.replace("YYYY",""),r=t.indexOf("MM"),n=t.substring(0,r);t=t.replace(n,"").replace("MM","");const a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};r=t.indexOf("DD"),n=t.substring(0,r);const i={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.yearPart,a,this.monthPart,i,this.dayPart]}return[]}createTwelveHourFormatParts(){if(this.twelveHourPart&&this.minutePart&&this.meridianPart){const t=this.timeFormat.replace("HH",""),r=t.indexOf("MM"),n=t.substring(0,r),a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0},i={characterCount:1,placeholder:" ",inputText:" ",isSeparator:!0};return[this.twelveHourPart,a,this.minutePart,i,this.meridianPart]}return[]}createTwentyFourHourFormatParts(){if(this.twentyFourHourPart&&this.minutePart){const t=this.timeFormat.replace("HH",""),r=t.indexOf("MM"),n=t.substring(0,r),a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.twentyFourHourPart,a,this.minutePart]}return[]}createDateParts(){this.monthPart={characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:rt.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.dayPart={characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:rt.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.yearPart={characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:rt.Numeric},this.twelveHourPart={characterCount:2,placeholder:"H",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:rt.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.twentyFourHourPart={characterCount:2,placeholder:"H",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:rt.Numeric,minimumValue:0,maximumValue:23,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.minutePart={characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:rt.Numeric,minimumValue:0,maximumValue:59,exceedingMaximumValueCausesError:!0,padWithZeros:!0},this.meridianPart={characterCount:2,inputText:"_",isSeparator:!1,valueType:rt.Text,possibleValues:["AM","PM"]}}}const Tb=(e,t)=>{var i;const[r,n]=b.useState(),a=b.useRef();return b.useEffect(()=>{t&&!r&&(a.current=new xb(e,t),n(a.current.createInputFormat()))},[t]),[r,(i=a.current)==null?void 0:i.is24HourTime]},Eb=({value:e,readOnly:t=!1,label:r,useDefaultDateValue:n=!1,useFormattedInput:a=!1,allowClear:i=!1,locale:o,className:s,dateSelection:u=Te.DateTime,dateFormat:l,timeConstraints:f,icon:m,iconPosition:v=un.Right,inputElement:p,selectableDate:x,isValidDate:T,onChange:y,calendarTemplate:N,dateScrollerTemplate:O,inputTemplate:$})=>{const[U,h]=b.useState(!1),[Y,Q]=b.useState(),[Z,G]=b.useState(),oe=b.useRef(),le=b.useRef(!1),ce=b.useRef(o||gs()),S=b.useRef(),X=b.useRef(),J=b.useRef(),[z,ne]=Tb(u,Y),H=b.useRef({calendarTemplate:N,dateScrollerTemplate:O});b.useEffect(()=>{ce.current&&pe(ce.current)},[ce]),b.useEffect(()=>{o&&pe(o)},[o]),b.useEffect(()=>{if(e){const re=g();C({type:te.InitializeDates,initialDate:re})}else C({type:te.ClearDates})},[e,S.current]),b.useEffect(()=>{ne&&C({type:te.SetTimeFormat,timeFormat:ne?_e.TwentyFourHour:_e.TwelveHour})},[ne]),b.useEffect(()=>{p&&(X.current=p)},[p]);const pe=re=>{Is(re).then(xe=>{Q(xe.code),S.current=xe;const Ue=g();C(e||n?{type:te.InitializeDates,initialDate:Array.isArray(Ue)?Ue[0]:Ue}:{type:te.SetViewDate,viewDate:Array.isArray(Ue)?Ue[0]:Ue})}).catch(xe=>console.error(xe))},g=()=>{const re=new Date;return re.setHours(0,0,0,0),e?typeof e=="string"?u!==Te.DateRange?Tr(e,S.current):_s(e,S.current):e:re},P={currentSelector:u===Te.TimeOnly?te.TimeSelector:u===Te.DateTime||u===Te.DateOnly?te.DaySelector:te.DateRangeSelector,currentViewDate:new Date,timeFormat:_e.TwelveHour,dateInitialized:!1},[d,C]=b.useReducer(pb,P),F=()=>{Be(),h(!0)},K=b.useMemo(()=>or(()=>{h(!1)},250),[]),I=b.useMemo(()=>or(()=>{K.cancel()},5),[K]),j=re=>{const xe=re.target.innerText;B(xe)},A=re=>{if(re){const xe=Tr(re,S.current);return xe?T?T(xe):!0:!1}else return!0},M=re=>{B(re||"")},B=re=>{const xe=u!==Te.DateRange?Tr(re,S.current):_s(re,S.current);xe?(Array.isArray(xe)?(mb(xe[0],es(d.currentViewDate),mp(Pt(d.currentViewDate,1)))||C({type:te.SetViewDate,viewDate:xe[0]}),C({type:te.SetSelectedDateRange,selectedStartDate:xe[0],selectedEndDate:xe[1]})):C({type:te.SetSelectedDate,selectedDate:xe,viewDate:xe}),y==null||y(xe)):re===""&&(C({type:te.ClearDates}),y==null||y())},Ne=()=>{Be(),h(!U)},D=()=>{C({type:te.ClearDates}),h(!1),y==null||y()},Fe=(re,xe)=>{(!X.current||oe.current!==xe)&&(X.current=re,oe.current=xe,le.current=!0)},Be=()=>{(!J.current||le.current)&&X.current&&(J.current=X.current,G(X.current),le.current=!1)},qe=()=>{h(!1),C({type:u===Te.TimeOnly?te.TimeSelector:u===Te.DateTime||u===Te.DateOnly?te.DaySelector:te.DateRangeSelector})},Gt=()=>{switch(l){case sn.Short:return"short";case sn.Medium:return"medium";case sn.Long:return"long";default:return}},Xt=()=>{var xe,Ue,dn,Sr,Nr,Zt,pn,vn,hn,bn,gn,yn;const re=Gt();switch(u){case Te.DateTime:return d.selectedDate?re?d.selectedDate.toLocaleString((xe=S.current)==null?void 0:xe.code,{dateStyle:re,timeStyle:re}):d.selectedDate.toLocaleString((Ue=S.current)==null?void 0:Ue.code):"";case Te.DateOnly:return d.selectedDate?re?d.selectedDate.toLocaleDateString((dn=S.current)==null?void 0:dn.code,{dateStyle:re}):d.selectedDate.toLocaleDateString((Sr=S.current)==null?void 0:Sr.code):"";case Te.TimeOnly:return d.selectedDate?re?d.selectedDate.toLocaleTimeString((Nr=S.current)==null?void 0:Nr.code,{timeStyle:re,hour12:d.timeFormat===_e.TwelveHour,hourCycle:d.timeFormat===_e.TwentyFourHour?"h23":void 0}):d.selectedDate.toLocaleTimeString((Zt=S.current)==null?void 0:Zt.code,{hour12:d.timeFormat===_e.TwelveHour,hourCycle:d.timeFormat===_e.TwentyFourHour?"h23":void 0}):"";case Te.DateRange:return d.selectedStartDate&&d.selectedEndDate?re?`${d.selectedStartDate.toLocaleDateString((pn=S.current)==null?void 0:pn.code,{dateStyle:re})} - ${d.selectedEndDate.toLocaleDateString((vn=S.current)==null?void 0:vn.code,{dateStyle:re})}`:`${d.selectedStartDate.toLocaleDateString((hn=S.current)==null?void 0:hn.code)} - ${d.selectedEndDate.toLocaleDateString((bn=S.current)==null?void 0:bn.code)}`:"";default:return d.selectedDate?re?d.selectedDate.toLocaleString((gn=S.current)==null?void 0:gn.code,{dateStyle:re,timeStyle:re}):d.selectedDate.toLocaleString((yn=S.current)==null?void 0:yn.code):""}},_t=u===Te.DateTime||u===Te.DateOnly||u===Te.DateRange,Kt=u===Te.DateTime||u===Te.TimeOnly,Qt=v===un.None?{}:v===un.Right?{rightElement:w.jsxDEV("div",{className:"bsc-flex bsc-text-primary-1 dark:bsc-text-mono-light-1",children:[i&&!t&&w.jsxDEV("div",{children:w.jsxDEV(He,{className:"bsc-cursor-pointer bsc-text-sm",icon:["fas","times"],size:"sm",onClick:D},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:423,columnNumber:19},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:422,columnNumber:17},globalThis),w.jsxDEV("div",{className:"bsc-ml-2",children:m||w.jsxDEV(He,{className:t?void 0:"bsc-cursor-pointer",icon:["far","calendar-alt"],onClick:t?void 0:Ne},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:433,columnNumber:19},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:431,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:420,columnNumber:13},globalThis)}:{leftElement:w.jsxDEV("div",{className:"bsc-flex bsc-text-primary-1 dark:bsc-text-mono-light-1",children:[w.jsxDEV("div",{className:"bsc-mr-2",children:m||w.jsxDEV(He,{className:t?void 0:"bsc-cursor-pointer",icon:["far","calendar-alt"],onClick:t?void 0:Ne},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:448,columnNumber:19},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:446,columnNumber:15},globalThis),i&&!t&&w.jsxDEV("div",{children:w.jsxDEV(He,{className:"bsc-cursor-pointer bsc-text-sm",icon:["fas","times"],size:"sm",onClick:D},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:457,columnNumber:19},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:456,columnNumber:17},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:445,columnNumber:13},globalThis)},Ra={label:r,readOnly:t,allowClear:i,getValue:Xt,onFocus:F,onInput:j,iconPosition:v,iconElement:Qt.rightElement||Qt.leftElement},ja=$||((re,xe)=>w.jsxDEV(w.Fragment,{children:xe},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:481,columnNumber:5},globalThis)),mn=ft("bsc-text-left",{"bsc-bg-gray-2":t,"bsc-bg-white":!t},"dark:bsc-bg-mono-dark-1 bc-dt-input",s);return w.jsxDEV(Aa.Provider,{value:H.current,children:w.jsxDEV("div",{className:"bc-date-time",children:[r&&w.jsxDEV("label",{className:"dark:bsc-text-mono-light-1 bc-dt-label",children:r},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:499,columnNumber:19},globalThis),w.jsxDEV(Oa,{props:Ra,template:ja,children:a===!1?w.jsxDEV(jn,{value:Xt(),readOnly:t,className:mn,onFocus:F,onBlur:K,onInput:j,onElementCreate:re=>Fe(re,!1),...Qt},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:502,columnNumber:13},globalThis):w.jsxDEV(Cs,{value:Xt(),readOnly:t,className:mn,format:z,isInputValid:A,onFocus:F,onBlur:K,onChange:M,onElementCreate:re=>Fe(re,!0),...Qt},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:513,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:500,columnNumber:9},globalThis),w.jsxDEV(Ss,{visible:U,target:Z,shouldTargetCloseOverlay:!1,shouldScrollCloseOverlay:!0,shouldCheckZIndex:!0,shouldRemainOnScreen:!0,hidden:qe,isClickedWithin:I,unmountWhenHidden:!0,children:w.jsxDEV(w.Fragment,{children:[d.currentSelector===te.DaySelector&&_t&&d.dateInitialized&&S.current&&w.jsxDEV(hb,{selectedDate:d.selectedDate,viewDate:d.currentViewDate,locale:S.current,showTimeSelector:u===Te.DateTime,selectableDate:x,isValidDate:T,dispatcher:C,onChange:y},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:543,columnNumber:17},globalThis),d.currentSelector===te.MonthSelector&&_t&&d.dateInitialized&&S.current&&w.jsxDEV(bb,{viewDate:d.currentViewDate,locale:S.current,dateSelection:u,dispatcher:C},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:558,columnNumber:17},globalThis),d.currentSelector===te.YearSelector&&_t&&d.dateInitialized&&S.current&&w.jsxDEV(wb,{viewDate:d.currentViewDate,locale:S.current,dispatcher:C},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:569,columnNumber:17},globalThis),d.currentSelector===te.TimeSelector&&Kt&&d.dateInitialized&&S.current&&w.jsxDEV(yb,{viewDate:d.currentViewDate,showDateSelector:u===Te.DateTime,locale:S.current,timeFormat:d.timeFormat,timeConstraints:f,onChange:y,dispatcher:C},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:579,columnNumber:17},globalThis),d.currentSelector===te.DateRangeSelector&&_t&&d.dateInitialized&&S.current&&w.jsxDEV(gb,{viewDate:d.currentViewDate,selectedStartDate:d.selectedStartDate,selectedEndDate:d.selectedEndDate,locale:S.current,onChange:y,dispatcher:C},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:593,columnNumber:17},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:538,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:527,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:498,columnNumber:7},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:497,columnNumber:5},globalThis)},Bb="";var Sb={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},Nb={prefix:"fas",iconName:"angle-right",icon:[320,512,[8250],"f105","M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"]},Pb={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},Db={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},Cb=Db,kb={prefix:"fas",iconName:"angle-left",icon:[320,512,[8249],"f104","M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},Ob={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H64C28.7 64 0 92.7 0 128v16 48V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V192 144 128c0-35.3-28.7-64-64-64H344V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H152V24zM48 192h80v56H48V192zm0 104h80v64H48V296zm128 0h96v64H176V296zm144 0h80v64H320V296zm80-48H320V192h80v56zm0 160v40c0 8.8-7.2 16-16 16H320V408h80zm-128 0v56H176V408h96zm-144 0v56H64c-8.8 0-16-7.2-16-16V408h80zM272 248H176V192h96v56z"]},Ib=Ob,_b={prefix:"far",iconName:"calendar-xmark",icon:[512,512,["calendar-times"],"f273","M160 0c13.3 0 24 10.7 24 24V64H328V24c0-13.3 10.7-24 24-24s24 10.7 24 24V64h40c35.3 0 64 28.7 64 64v16 48V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V192 144 128c0-35.3 28.7-64 64-64h40V24c0-13.3 10.7-24 24-24zM432 192H80V448c0 8.8 7.2 16 16 16H416c8.8 0 16-7.2 16-16V192zm-95 89l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},Ab=_b;Ld.add(Nb,kb,Sb,Pb,Ib,Ab,Cb),ve.ContentEditableInput=jn,ve.DateTime=Eb,ve.FormattedInput=Cs,ve.OverlayPanel=Ss,ve.applyBeeSoftTheme=Fh,ve.createBeeSoftTheme=Yh,Object.defineProperty(ve,Symbol.toStringTag,{value:"Module"})});
50
+ */var Kr,Ua;function sd(){if(Ua)return Kr;Ua=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var o={},i=0;i<10;i++)o["_"+String.fromCharCode(i)]=i;var u=Object.getOwnPropertyNames(o).map(function(m){return o[m]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(m){l[m]=m}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Kr=a()?Object.assign:function(s,o){for(var i,u=n(s),l,m=1;m<arguments.length;m++){i=Object(arguments[m]);for(var d in i)t.call(i,d)&&(u[d]=i[d]);if(e){l=e(i);for(var T=0;T<l.length;T++)r.call(i,l[T])&&(u[l[T]]=i[l[T]])}}return u},Kr}var Qr,Ha;function Xr(){if(Ha)return Qr;Ha=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Qr=e,Qr}var Zr,Wa;function za(){return Wa||(Wa=1,Zr=Function.call.bind(Object.prototype.hasOwnProperty)),Zr}var Jr,qa;function id(){if(qa)return Jr;qa=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Xr(),r={},n=za();e=function(s){var o="Warning: "+s;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(s,o,i,u,l){if(process.env.NODE_ENV!=="production"){for(var m in s)if(n(s,m)){var d;try{if(typeof s[m]!="function"){var T=Error((u||"React class")+": "+i+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}d=s[m](o,m,u,i,null,t)}catch(E){d=E}if(d&&!(d instanceof Error)&&e((u||"React class")+": type specification of "+i+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var g=l?l():"";e("Failed "+i+" type: "+d.message+(g??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Jr=a,Jr}var en,Ba;function ud(){if(Ba)return en;Ba=1;var e=Ya(),t=sd(),r=Xr(),n=za(),a=id(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(i){var u="Warning: "+i;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return en=function(i,u){var l=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function d(h){var D=h&&(l&&h[l]||h[m]);if(typeof D=="function")return D}var T="<<anonymous>>",g={array:M("array"),bigint:M("bigint"),bool:M("boolean"),func:M("function"),number:M("number"),object:M("object"),string:M("string"),symbol:M("symbol"),any:U(),arrayOf:G,element:W(),elementType:b(),instanceOf:Y,node:ue(),objectOf:Q,oneOf:ee,oneOfType:X,shape:ie,exact:w};function E(h,D){return h===D?h!==0||1/h===1/D:h!==h&&D!==D}function P(h,D){this.message=h,this.data=D&&typeof D=="object"?D:{},this.stack=""}P.prototype=Error.prototype;function x(h){if(process.env.NODE_ENV!=="production")var D={},f=0;function N(z,C,k,I,_,F,De){if(I=I||T,F=F||k,De!==r){if(u){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ke=I+":"+k;!D[ke]&&f<3&&(s("You are manually calling a React.PropTypes validation function for the `"+F+"` prop on `"+I+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[ke]=!0,f++)}}return C[k]==null?z?C[k]===null?new P("The "+_+" `"+F+"` is marked as required "+("in `"+I+"`, but its value is `null`.")):new P("The "+_+" `"+F+"` is marked as required in "+("`"+I+"`, but its value is `undefined`.")):null:h(C,k,I,_,F)}var V=N.bind(null,!1);return V.isRequired=N.bind(null,!0),V}function M(h){function D(f,N,V,z,C,k){var I=f[N],_=A(I);if(_!==h){var F=te(I);return new P("Invalid "+z+" `"+C+"` of type "+("`"+F+"` supplied to `"+V+"`, expected ")+("`"+h+"`."),{expectedType:h})}return null}return x(D)}function U(){return x(o)}function G(h){function D(f,N,V,z,C){if(typeof h!="function")return new P("Property `"+C+"` of component `"+V+"` has invalid PropType notation inside arrayOf.");var k=f[N];if(!Array.isArray(k)){var I=A(k);return new P("Invalid "+z+" `"+C+"` of type "+("`"+I+"` supplied to `"+V+"`, expected an array."))}for(var _=0;_<k.length;_++){var F=h(k,_,V,z,C+"["+_+"]",r);if(F instanceof Error)return F}return null}return x(D)}function W(){function h(D,f,N,V,z){var C=D[f];if(!i(C)){var k=A(C);return new P("Invalid "+V+" `"+z+"` of type "+("`"+k+"` supplied to `"+N+"`, expected a single ReactElement."))}return null}return x(h)}function b(){function h(D,f,N,V,z){var C=D[f];if(!e.isValidElementType(C)){var k=A(C);return new P("Invalid "+V+" `"+z+"` of type "+("`"+k+"` supplied to `"+N+"`, expected a single ReactElement type."))}return null}return x(h)}function Y(h){function D(f,N,V,z,C){if(!(f[N]instanceof h)){var k=h.name||T,I=me(f[N]);return new P("Invalid "+z+" `"+C+"` of type "+("`"+I+"` supplied to `"+V+"`, expected ")+("instance of `"+k+"`."))}return null}return x(D)}function ee(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),o;function D(f,N,V,z,C){for(var k=f[N],I=0;I<h.length;I++)if(E(k,h[I]))return null;var _=JSON.stringify(h,function(De,S){var ke=te(S);return ke==="symbol"?String(S):S});return new P("Invalid "+z+" `"+C+"` of value `"+String(k)+"` "+("supplied to `"+V+"`, expected one of "+_+"."))}return x(D)}function Q(h){function D(f,N,V,z,C){if(typeof h!="function")return new P("Property `"+C+"` of component `"+V+"` has invalid PropType notation inside objectOf.");var k=f[N],I=A(k);if(I!=="object")return new P("Invalid "+z+" `"+C+"` of type "+("`"+I+"` supplied to `"+V+"`, expected an object."));for(var _ in k)if(n(k,_)){var F=h(k,_,V,z,C+"."+_,r);if(F instanceof Error)return F}return null}return x(D)}function X(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var D=0;D<h.length;D++){var f=h[D];if(typeof f!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(f)+" at index "+D+"."),o}function N(V,z,C,k,I){for(var _=[],F=0;F<h.length;F++){var De=h[F],S=De(V,z,C,k,I,r);if(S==null)return null;S.data&&n(S.data,"expectedType")&&_.push(S.data.expectedType)}var ke=_.length>0?", expected one of type ["+_.join(", ")+"]":"";return new P("Invalid "+k+" `"+I+"` supplied to "+("`"+C+"`"+ke+"."))}return x(N)}function ue(){function h(D,f,N,V,z){return H(D[f])?null:new P("Invalid "+V+" `"+z+"` supplied to "+("`"+N+"`, expected a ReactNode."))}return x(h)}function se(h,D,f,N,V){return new P((h||"React class")+": "+D+" type `"+f+"."+N+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V+"`.")}function ie(h){function D(f,N,V,z,C){var k=f[N],I=A(k);if(I!=="object")return new P("Invalid "+z+" `"+C+"` of type `"+I+"` "+("supplied to `"+V+"`, expected `object`."));for(var _ in h){var F=h[_];if(typeof F!="function")return se(V,z,C,_,te(F));var De=F(k,_,V,z,C+"."+_,r);if(De)return De}return null}return x(D)}function w(h){function D(f,N,V,z,C){var k=f[N],I=A(k);if(I!=="object")return new P("Invalid "+z+" `"+C+"` of type `"+I+"` "+("supplied to `"+V+"`, expected `object`."));var _=t({},f[N],h);for(var F in _){var De=h[F];if(n(h,F)&&typeof De!="function")return se(V,z,C,F,te(De));if(!De)return new P("Invalid "+z+" `"+C+"` key `"+F+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(f[N],null," ")+`
51
+ Valid keys: `+JSON.stringify(Object.keys(h),null," "));var S=De(k,F,V,z,C+"."+F,r);if(S)return S}return null}return x(D)}function H(h){switch(typeof h){case"number":case"string":case"undefined":return!0;case"boolean":return!h;case"object":if(Array.isArray(h))return h.every(H);if(h===null||i(h))return!0;var D=d(h);if(D){var f=D.call(h),N;if(D!==h.entries){for(;!(N=f.next()).done;)if(!H(N.value))return!1}else for(;!(N=f.next()).done;){var V=N.value;if(V&&!H(V[1]))return!1}}else return!1;return!0;default:return!1}}function q(h,D){return h==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function A(h){var D=typeof h;return Array.isArray(h)?"array":h instanceof RegExp?"object":q(D,h)?"symbol":D}function te(h){if(typeof h>"u"||h===null)return""+h;var D=A(h);if(D==="object"){if(h instanceof Date)return"date";if(h instanceof RegExp)return"regexp"}return D}function L(h){var D=te(h);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function me(h){return!h.constructor||!h.constructor.name?T:h.constructor.name}return g.checkPropTypes=a,g.resetWarningCache=a.resetWarningCache,g.PropTypes=g,g},en}var tn,Ga;function cd(){if(Ga)return tn;Ga=1;var e=Xr();function t(){}function r(){}return r.resetWarningCache=t,tn=function(){function n(o,i,u,l,m,d){if(d!==e){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}n.isRequired=n;function a(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},tn}if(process.env.NODE_ENV!=="production"){var ld=Ya(),fd=!0;Gr.exports=ud()(ld.isElement,fd)}else Gr.exports=cd()();var md=Gr.exports;const J=Xe(md),Ka={disabled:!1};var dd=process.env.NODE_ENV!=="production"?J.oneOfType([J.number,J.shape({enter:J.number,exit:J.number,appear:J.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&J.oneOfType([J.string,J.shape({enter:J.string,exit:J.string,active:J.string}),J.shape({enter:J.string,enterDone:J.string,enterActive:J.string,exit:J.string,exitDone:J.string,exitActive:J.string})]);const Qa=p.createContext(null);var pd=function(t){return t.scrollTop},Vt="unmounted",st="exited",it="entering",gt="entered",rn="exiting",Ke=function(e){nd(t,e);function t(n,a){var s;s=e.call(this,n,a)||this;var o=a,i=o&&!o.isMounting?n.enter:n.appear,u;return s.appearStatus=null,n.in?i?(u=st,s.appearStatus=it):u=gt:n.unmountOnExit||n.mountOnEnter?u=Vt:u=st,s.state={status:u},s.nextCallback=null,s}t.getDerivedStateFromProps=function(a,s){var o=a.in;return o&&s.status===Vt?{status:st}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var s=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==it&&o!==gt&&(s=it):(o===it||o===gt)&&(s=rn)}this.updateStatus(!1,s)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,s,o,i;return s=o=i=a,a!=null&&typeof a!="number"&&(s=a.exit,o=a.enter,i=a.appear!==void 0?a.appear:o),{exit:s,enter:o,appear:i}},r.updateStatus=function(a,s){if(a===void 0&&(a=!1),s!==null)if(this.cancelNextCallback(),s===it){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Ue.findDOMNode(this);o&&pd(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===st&&this.setState({status:Vt})},r.performEnter=function(a){var s=this,o=this.props.enter,i=this.context?this.context.isMounting:a,u=this.props.nodeRef?[i]:[Ue.findDOMNode(this),i],l=u[0],m=u[1],d=this.getTimeouts(),T=i?d.appear:d.enter;if(!a&&!o||Ka.disabled){this.safeSetState({status:gt},function(){s.props.onEntered(l)});return}this.props.onEnter(l,m),this.safeSetState({status:it},function(){s.props.onEntering(l,m),s.onTransitionEnd(T,function(){s.safeSetState({status:gt},function(){s.props.onEntered(l,m)})})})},r.performExit=function(){var a=this,s=this.props.exit,o=this.getTimeouts(),i=this.props.nodeRef?void 0:Ue.findDOMNode(this);if(!s||Ka.disabled){this.safeSetState({status:st},function(){a.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:rn},function(){a.props.onExiting(i),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:st},function(){a.props.onExited(i)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,s){s=this.setNextCallback(s),this.setState(a,s)},r.setNextCallback=function(a){var s=this,o=!0;return this.nextCallback=function(i){o&&(o=!1,s.nextCallback=null,a(i))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(a,s){this.setNextCallback(s);var o=this.props.nodeRef?this.props.nodeRef.current:Ue.findDOMNode(this),i=a==null&&!this.props.addEndListener;if(!o||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],l=u[0],m=u[1];this.props.addEndListener(l,m)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===Vt)return null;var s=this.props,o=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var i=rd(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return p.createElement(Qa.Provider,{value:null},typeof o=="function"?o(a,i):p.cloneElement(p.Children.only(o),i))},t}(p.Component);Ke.contextType=Qa,Ke.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:J.shape({current:typeof Element>"u"?J.any:function(e,t,r,n,a,s){var o=e[t];return J.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,r,n,a,s)}}),children:J.oneOfType([J.func.isRequired,J.element.isRequired]).isRequired,in:J.bool,mountOnEnter:J.bool,unmountOnExit:J.bool,appear:J.bool,enter:J.bool,exit:J.bool,timeout:function(t){var r=dd;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,a=new Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];return r.apply(void 0,[t].concat(a))},addEndListener:J.func,onEnter:J.func,onEntering:J.func,onEntered:J.func,onExit:J.func,onExiting:J.func,onExited:J.func}:{};function yt(){}Ke.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:yt,onEntering:yt,onEntered:yt,onExit:yt,onExiting:yt,onExited:yt},Ke.UNMOUNTED=Vt,Ke.EXITED=st,Ke.ENTERING=it,Ke.ENTERED=gt,Ke.EXITING=rn;const hd=Ke,vd=({start:e,timeout:t=400,defaultStyle:r,transitionStyles:n,showTransitionOptions:a="cubic-bezier(0, 0, 0.2, 1)",hideTransitionOptions:s="linear",unmountOnExit:o=!1,onEntering:i,onEntered:u,onExit:l,onExited:m,children:d})=>{const T=r||{transition:`opacity ${t}ms ${a}`,opacity:0},g=n||{entering:{opacity:1},entered:{opacity:1},exiting:{transition:`opacity ${t}ms ${s}`,opacity:0},exited:{transition:`opacity ${t}ms ${s}`,opacity:0},unmounted:{}};return v.jsxDEV(hd,{in:e,timeout:t,onEntering:i,onEntered:u,onExit:l,onExited:m,unmountOnExit:o,children:E=>d({state:E,defaultStyle:T,transitionStyles:g})},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/common/beesoft-transition/beesoft-transition.component.tsx",lineNumber:61,columnNumber:5},globalThis)};var Xa=(e=>(e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight",e))(Xa||{}),Za=(e=>(e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight",e))(Za||{});class _e{static positionToTarget(t,r=2){const n=t.getBoundingClientRect();let a=0,s=0;const o=window.scrollY;switch(r){case 2:a=n.top+n.height+o,s=n.left;break;case 0:a=n.top+o,s=n.left;break;case 3:a=n.top+n.height+o,s=n.left+n.width;break;case 1:a=n.top+o,s=n.left+n.width}return{top:a,left:s}}static positionElementToTarget(t,r,n=0,a=2){let{left:s,top:o}=_e.positionToTarget(r,a);const i=t.getBoundingClientRect();switch(n){case 0:break;case 1:s=s-i.width;break;case 2:o=o-i.height;break;case 3:o=o-i.height,s=s-i.width;break}return{top:o,left:s}}static canPositionElementOnScreen(t,r){const n=_e.getScreenDimensions(),a=t.getBoundingClientRect(),s=_e.positionElementToTarget(t,r,0,2);if(s.left+a.width<n.width&&s.top+a.height<n.height||_e.positionElementToTarget(t,r,1,3).left>=0&&s.top+a.height<n.height)return!0;const i=_e.positionElementToTarget(t,r,2,0);if(i.left+a.width<n.width&&i.top>=0)return!0;const u=_e.positionElementToTarget(t,r,3,1);return u.left>=0&&u.top>=0}static positionElementToTargetOnScreen(t,r,n=0,a=2){const{left:s,top:o}=_e.positionElementToTarget(t,r,n,a),i=t.getBoundingClientRect(),u=_e.determineOffScreenLocation(i);if(u){if(n===0&&a===2){if(u.right&&!u.bottom)return _e.positionElementToTarget(t,r,1,3);if(u.bottom&&!u.right)return _e.positionElementToTarget(t,r,2,0);if(u.right&&u.bottom)return _e.positionElementToTarget(t,r,3,1)}else if(n===1&&a===3){if(u.left&&!u.bottom)return _e.positionElementToTarget(t,r,0,2);if(u.bottom&&!u.left)return _e.positionElementToTarget(t,r,3,1);if(u.left&&u.bottom)return _e.positionElementToTarget(t,r,2,0)}}return{top:o,left:s}}static determineOffScreenLocation(t){const r=_e.getScreenDimensions(),n={left:t.left<0,top:t.top<0,right:t.left+t.width>r.width,bottom:t.top+t.height>r.height};return n.left||n.top||n.right||n.bottom?n:void 0}static getScreenDimensions(){return{width:window.innerWidth,height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}}}const Ja=({visible:e,target:t,targetPosition:r=Xa.BottomLeft,elementAlignment:n=Za.TopLeft,shouldTargetCloseOverlay:a=!0,shouldMatchTargetWidth:s=!1,shouldScrollCloseOverlay:o=!1,shouldCheckZIndex:i=!1,shouldRemainOnScreen:u=!1,unmountWhenHidden:l=!1,transitionDuration:m=400,showTransitionOptions:d="cubic-bezier(0, 0, 0.2, 1)",hideTransitionOptions:T="linear",shown:g,hidden:E,isClickedWithin:P,markupCreated:x,children:M})=>{const[U,G]=p.useState(-1),[W,b]=p.useState(e),[Y,ee]=p.useState(!1),Q=p.useRef(!1),X=p.useRef(100),ue=p.useRef({left:0,top:0,width:0}),se=p.useRef(),ie=p.useRef(),w=p.useRef(),H=p.useRef(),q=p.useRef(),A=p.useRef();p.useEffect(()=>(u===!0&&(A.current=new ResizeObserver(L)),()=>{var C,k;u===!0&&(ie.current&&((C=A.current)==null||C.unobserve(ie.current)),(k=A.current)==null||k.disconnect())}),[u]),p.useEffect(()=>{if(t&&(se.current=te(t),o&&(w.current=Oa(se.current,{overflow:"scroll, auto",overflowX:"scroll, auto",overflowY:"scroll, auto"}),w.current.tagName.toLowerCase()==="html"&&(w.current=document))),i){const C=dm("zIndex",k=>parseInt(k)>=100).map(k=>parseInt(k));C.length>0&&(X.current=Math.max(...C)+1)}e!==void 0&&b(e)},[t,e,o,i]);const te=C=>C.target?C.target:C,L=C=>{if(ie.current){const k=_e.getScreenDimensions(),I=C[C.length-1].target,_=I.getBoundingClientRect(),F=_e.determineOffScreenLocation(_);if(F){if(se.current&&_e.canPositionElementOnScreen(I,se.current)){const De=_e.positionElementToTargetOnScreen(ie.current,se.current,n,r);ue.current={...ue.current,...De}}else F.right?ue.current.left=k.width-_.width:F.left&&(ue.current.left=0),F.bottom?ue.current.top=k.height-_.height:F.top&&(ue.current.top=0);me()}}},me=_t(()=>{Q.current=!Q.current,ee(Q.current)},20),h=()=>{G(X.current)},D=()=>{if(!ie.current)return;g==null||g();let C;!a&&se.current&&(C=[se.current]);const k=I=>{I?P==null||P():b(!1)};H.current=ed(ie.current,k,C),o&&(q.current=Rc(I=>ie.current&&cm(I,ie.current)&&b(!1),100,{leading:!0}),w.current&&w.current.addEventListener("scroll",q.current))},f=()=>{w.current&&q.current&&(w.current.removeEventListener("scroll",q.current),q.current=void 0),H.current&&td(H.current)},N=()=>{G(-1),E==null||E()},V=C=>{var k,I;if(ie.current=C,x==null||x(C),se.current){const _=_e.positionElementToTarget(ie.current,se.current,n,r);ue.current={..._,width:se.current.offsetWidth}}u===!0&&((k=A.current)==null||k.unobserve(ie.current),(I=A.current)==null||I.observe(ie.current))},z=p.useMemo(()=>{const C={top:`${ue.current.top}px`,left:`${ue.current.left}px`,zIndex:U};return s&&(C.width=`${ue.current.width}px`),C},[Y,U,s]);return v.jsxDEV(vd,{start:W,timeout:m,showTransitionOptions:d,hideTransitionOptions:T,onEntering:h,onEntered:D,onExit:f,onExited:N,unmountOnExit:l,children:({state:C,defaultStyle:k,transitionStyles:I})=>v.jsxDEV("div",{className:"bsc-fixed bsc-bg-white dark:bsc-bg-mono-dark-1 bsc-border bsc-border-solid dark:bsc-text-mono-light-1 dark:bsc-border-mono-light-1 bsc-shadow",style:{...z,...k,...I[C]},ref:_=>_&&V(_),children:M},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/overlay/overlay-panel/overlay-panel.component.tsx",lineNumber:284,columnNumber:9},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/overlay/overlay-panel/overlay-panel.component.tsx",lineNumber:272,columnNumber:5},globalThis)};let sr;const bd=new Uint8Array(16);function gd(){if(!sr&&(sr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!sr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return sr(bd)}const je=[];for(let e=0;e<256;++e)je.push((e+256).toString(16).slice(1));function yd(e,t=0){return je[e[t+0]]+je[e[t+1]]+je[e[t+2]]+je[e[t+3]]+"-"+je[e[t+4]]+je[e[t+5]]+"-"+je[e[t+6]]+je[e[t+7]]+"-"+je[e[t+8]]+je[e[t+9]]+"-"+je[e[t+10]]+je[e[t+11]]+je[e[t+12]]+je[e[t+13]]+je[e[t+14]]+je[e[t+15]]}const eo={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Td(e,t,r){if(eo.randomUUID&&!t&&!e)return eo.randomUUID();e=e||{};const n=e.random||(e.rng||gd)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let a=0;a<16;++a)t[r+a]=n[a];return t}return yd(n)}class ir{static create(t){const r=[];let n=0;for(let a=0,s=t.formatParts.length;a<s;a++){const o=t.formatParts[a],i=n,u=i+o.characterCount;r.push({startPosition:i,endPosition:u,...o}),n=u}return r}}class wd{constructor(t,r){$(this,"instanceCollection");$(this,"formatPartList");$(this,"inputSlotCollection");$(this,"currentPartIndex",0);$(this,"currentCursorPosition",0);$(this,"inputElement");$(this,"inputSelection",null);$(this,"inputRange");$(this,"textNode");this.instanceCollection=ut.getInstance(),this.formatPartList=ir.create(t),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(r,t)}getCursorPosition(){return this.currentCursorPosition}getCurrentPartIndex(){return this.currentPartIndex}setInputElement(t){this.inputElement=t}setCursorToCurrentPosition(){this.setCursorSelection(this.currentCursorPosition)}setCursorPosition(t){this.setCursorSelection(t)}setCursorSelection(t,r){this.createInputRangeSelection(),this.inputRange&&this.textNode&&(this.inputRange.setStart(this.textNode,t),this.inputRange.setEnd(this.textNode,r||t),this.currentCursorPosition=r||t,this.setPartIndexByCursorPosition())}findCursorPosition(){var r,n;const t=(r=window.getSelection())==null?void 0:r.getRangeAt(0);if(this.inputElement&&t){const a=document.createTreeWalker(this.inputElement,NodeFilter.SHOW_TEXT,u=>{const l=document.createRange();return l.selectNodeContents(u),l.compareBoundaryPoints(Range.END_TO_END,t)<1?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT});let s=0;for(;a.nextNode();)s+=((n=a.currentNode.textContent)==null?void 0:n.length)||0;t.startContainer.nodeType===Node.TEXT_NODE&&(s+=t.startOffset);const o=this.inputSlotCollection.getLastSlotWithData(),i=o.startPosition+o.partText.length;this.setCursorSelection(s>i?i:s)}}isAtLastPart(){return this.currentPartIndex===this.formatPartList.length-1}moveHome(){const t=this.inputSlotCollection.getFirstSlot();this.setCursorSelection(t.startPosition)}moveEnd(){const t=this.inputSlotCollection.getLastSlotWithData(),r=t.startPosition+t.partText.length;this.setCursorSelection(r)}moveCursorLeft(){if(this.currentCursorPosition>0){const t=this.currentCursorPosition-1;let r=this.formatPartList[this.currentPartIndex];if(t>=r.startPosition&&t<=r.endPosition)this.setCursorSelection(t);else for(let n=this.currentPartIndex-1;n>=0;n--)r=this.formatPartList[n],t>=r.startPosition&&t<=r.endPosition&&(r.isSeparator?this.setCursorSelection(this.formatPartList[n-1].endPosition):this.setCursorSelection(t))}}moveCursorRight(){const t=this.inputSlotCollection.getLastSlotWithData(),r=t.startPosition+t.partText.length;if(this.currentCursorPosition<r){const n=this.currentCursorPosition+1;let a=this.formatPartList[this.currentPartIndex];if(n>=a.startPosition&&n<=a.endPosition)this.setCursorSelection(n);else for(let s=this.currentPartIndex+1,o=this.formatPartList.length;s<o;s++)a=this.formatPartList[s],n>=a.startPosition&&n<=a.endPosition&&(a.isSeparator?this.setCursorSelection(this.formatPartList[s+1].startPosition):this.setCursorSelection(n))}}moveToNextInputPart(){if(this.currentPartIndex<this.formatPartList.length-1){const t=this.findNextEditablePart();t&&(this.currentPartIndex=t.partIndex,this.setCursorSelection(t.startPosition))}}moveToPreviousInputPart(){if(this.currentPartIndex>0){const t=this.findPreviousEditablePart();t&&(this.currentPartIndex=t.partIndex,this.setCursorSelection(t.endPosition))}}findNextEditablePart(){return this.inputSlotCollection.getNextSlot(this.currentPartIndex)}findPreviousEditablePart(){return this.inputSlotCollection.getPreviousSlot(this.currentPartIndex)}setPartIndexByCursorPosition(){for(let t=0;t<this.formatPartList.length;t++){const r=this.formatPartList[t];if(this.currentCursorPosition>=r.startPosition&&this.currentCursorPosition<=r.endPosition){if(r.isSeparator){this.currentCursorPosition=this.formatPartList[t+1].startPosition,this.currentPartIndex=t+1;break}this.currentPartIndex=t;break}}}createInputRangeSelection(){var t,r;this.inputElement&&(this.inputSelection=window.getSelection(),this.inputRange=document.createRange(),(t=this.inputSelection)==null||t.removeAllRanges(),this.inputRange.selectNodeContents(this.inputElement),this.inputRange.collapse(!0),(r=this.inputSelection)==null||r.addRange(this.inputRange),this.inputElement.firstChild&&(this.textNode=this.inputElement.firstChild))}}class xd{static create(t){const r=[];for(let n=0,a=t.length;n<a;n++){const s=t[n];s.isSeparator||r.push({partIndex:n,partText:"",isComplete:!1,...s})}return r}}class Dd{constructor(t){$(this,"inputSlots");this.inputSlots=xd.create(ir.create(t))}clearAllSlots(){for(let t=0,r=this.inputSlots.length;t<r;t++)this.inputSlots[t].partText=""}getSlot(t){return this.inputSlots.find(r=>r.partIndex===t)}getFirstSlot(){return this.inputSlots[0]}getNextSlot(t){const r=this.inputSlots.findIndex(n=>n.partIndex===t);if(r>-1&&r+1<this.inputSlots.length)return this.inputSlots[r+1]}getPreviousSlot(t){const r=this.inputSlots.findIndex(n=>n.partIndex===t);if(r>-1&&r-1>=0)return this.inputSlots[r-1]}getLastSlotWithData(){const t=this.inputSlots.findIndex(n=>!n.isComplete);let r=t;for(let n=t+1,a=this.inputSlots.length;n<a;n++)this.inputSlots[n].partText.length>0&&(r=n);return this.inputSlots[r>-1?r:0]}allSlotsCompleted(){return this.inputSlots.every(t=>t.isComplete)}allSlotsEmpty(){return this.inputSlots.every(t=>t.partText.length===0)}}const fr=class fr{constructor(){$(this,"navigatorInstances");$(this,"inputSlotInstances");this.navigatorInstances={},this.inputSlotInstances={}}static getInstance(){return this.instance||(this.instance=new fr),this.instance}getNavigatorInstance(t,r){return this.navigatorInstances[t]||(this.navigatorInstances[t]=new wd(r,t)),this.navigatorInstances[t]}getInputSlotInstance(t,r){return this.inputSlotInstances[t]||(this.inputSlotInstances[t]=new Dd(r)),this.inputSlotInstances[t]}removeInstances(t){this.navigatorInstances[t]&&delete this.navigatorInstances[t],this.inputSlotInstances[t]&&delete this.inputSlotInstances[t]}};$(fr,"instance");let ut=fr;class nn{constructor(t,r){$(this,"instanceCollection");$(this,"formatPartList");$(this,"inputSlotCollection");$(this,"inputElement");this.instanceCollection=ut.getInstance(),this.formatPartList=ir.create(t),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(r,t)}setInputElement(t){this.inputElement=t}render(){var r;let t="";for(let n=0,a=this.formatPartList.length;n<a;n++){const s=this.formatPartList[n];if(s.isSeparator)t+=s.inputText;else{const o=this.inputSlotCollection.getSlot(n);o&&(t+=o.partText+((r=o.inputText)==null?void 0:r.repeat(o.characterCount-o.partText.length)))}}this.inputElement&&(this.inputElement.innerHTML=t)}}var qe=(e=>(e[e.Text=0]="Text",e[e.Numeric=1]="Numeric",e))(qe||{});class to{constructor(){$(this,"numberKeys",["0","1","2","3","4","5","6","7","8","9"]);$(this,"movementKeys",["ArrowLeft","ArrowRight","Home","End"]);$(this,"editingKeys",["Backspace","Delete"]);$(this,"ignoreKeys",["Shift","Alt","Control","Fn","Meta"])}isNumberKey(t){return this.numberKeys.includes(t)}isMovementKey(t){return this.movementKeys.includes(t.key)}isEditingKey(t){return this.editingKeys.includes(t.key)}isIgnoreKey(t){return this.ignoreKeys.includes(t.key)}}class Ed{constructor(t){$(this,"_currentIndex",0);$(this,"index",0);$(this,"formatParts");this.formatParts=ir.create(t)}get currentIndex(){return this._currentIndex}hasNext(){return this.index<this.formatParts.length}next(){if(this.index<this.formatParts.length)return this._currentIndex=this.index++,this.formatParts[this._currentIndex]}peek(){if(this.index<this.formatParts.length)return this.formatParts[this.index]}reset(){this.index=0}}class ro{constructor(t,r){$(this,"instanceCollection");$(this,"inputSlotCollection");$(this,"formatNavigator");$(this,"keyTypeChecker");$(this,"formatRenderer");$(this,"formatPartList");this.format=t,this.instanceCollection=ut.getInstance(),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(r,t),this.formatNavigator=this.instanceCollection.getNavigatorInstance(r,t),this.keyTypeChecker=new to,this.formatRenderer=new nn(t,r),this.formatPartList=new Ed(t)}setInputElement(t){this.formatRenderer.setInputElement(t)}processKeyPress(t){if(this.keyTypeChecker.isEditingKey(t)){this.processEditRules(t);return}this.processInputRules(t)}processInputValue(t){var n;this.inputSlotCollection.clearAllSlots(),this.formatPartList.reset();let r=0;for(;this.formatPartList.hasNext();){const a=this.formatPartList.next();if(a&&!a.isSeparator)if(((n=this.formatPartList.peek())==null?void 0:n.isSeparator)===!0){const s=this.formatPartList.currentIndex,o=this.formatPartList.next();if(o&&o.inputText){const i=t.indexOf(o.inputText,r),u=this.inputSlotCollection.getSlot(s);if(u&&i>-1){const l=i-r>u.characterCount?r+u.characterCount:i;u.partText=t.substring(r,l),this.processSlotRules(u),r=i+o.characterCount}}}else{const s=this.inputSlotCollection.getSlot(this.formatPartList.currentIndex);s&&(s.partText=t.substring(r,r+s.characterCount),this.processSlotRules(s))}}}processEditRules(t){const r=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());if(!r)return;const n=this.formatNavigator.getCursorPosition(),a=n-r.startPosition,s=this.format.deleteShiftsFormatPart||!1;switch(t.key){case"Backspace":{if(!(r.startPosition===n))r.partText=r.partText.substring(0,a-1)+r.partText.substring(a),s&&this.shiftFormatParts(r),this.formatRenderer.render(),this.formatNavigator.moveCursorLeft(),this.processSlotRules(r,!0);else{this.processSlotRules(r,!0);const i=this.inputSlotCollection.getPreviousSlot(r.partIndex);i&&(i.partText=i.partText.substring(0,i.partText.length-1),s&&this.shiftFormatParts(i),this.formatRenderer.render(),this.formatNavigator.setCursorPosition(i.startPosition+i.partText.length),this.processSlotRules(i,!0))}break}case"Delete":r.partText=r.partText.substring(0,a)+r.partText.substring(a+1),s&&this.shiftFormatParts(r),this.formatRenderer.render(),this.formatNavigator.setCursorToCurrentPosition(),this.processSlotRules(r,!0);break}}shiftFormatParts(t){let r=t,n;for(;(n=this.inputSlotCollection.getNextSlot(r.partIndex))!==void 0;){const a=n.partText.substring(0,1);n.partText=n.partText.substring(1),r.partText=r.partText+a,r=n}}processInputRules(t){const r=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());if(!r)return;const{key:n}=t,a=r.characterCount,s=r.partText;if(r.valueType===qe.Numeric){if(!this.keyTypeChecker.isNumberKey(n))return;const o=r.maximumValue,i=r.exceedingMaximumValueCausesTab||!1,u=r.padWithZeros||!1,l=parseInt(this.createNewValue(r,n));if(o&&l>o)if(i){u&&(r.partText=r.partText.padStart(a,"0")),r.isComplete=!0;const m=this.inputSlotCollection.getNextSlot(r.partIndex);m&&!m.isComplete&&(m.partText=n),this.formatRenderer.render(),m&&this.formatNavigator.setCursorPosition(m.isComplete?m.startPosition:m.startPosition+1)}else return;else s.length+1===a?(this.addToInputSlot(n),r.isComplete=!0,this.formatRenderer.render(),this.formatNavigator.isAtLastPart()?this.formatNavigator.moveCursorRight():this.formatNavigator.moveToNextInputPart()):s.length+1<a&&(this.addToInputSlot(n),this.formatRenderer.render(),this.formatNavigator.moveCursorRight())}else s.length+1===a?(this.addToInputSlot(n),r.isComplete=!0,this.formatRenderer.render(),this.formatNavigator.isAtLastPart()?this.formatNavigator.moveCursorRight():this.formatNavigator.moveToNextInputPart()):(this.addToInputSlot(n),this.formatRenderer.render(),this.formatNavigator.moveCursorRight())}addToInputSlot(t){const r=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());r&&(r.partText=this.createNewValue(r,t))}createNewValue(t,r){const n=t.partText,a=this.formatNavigator.getCursorPosition();if(a>=t.startPosition+t.partText.length)return n+r;{const s=a-t.startPosition;return n.substring(0,s)+r+n.substring(s)}}processSlotRules(t,r=!1){const n=t.characterCount,a=t.allCharactersRequired||!1;if(t.valueType===qe.Numeric){const s=t.minimumValue,o=t.maximumValue;if(a)t.isComplete=t.partText.length===n;else if(s!==void 0&&o!==void 0){const i=t.padWithZeros||!1,u=parseInt(t.partText);t.isComplete=u>=s&&u<=o,t.isComplete&&i&&!r&&(t.partText=t.partText.padStart(n,"0"))}else t.isComplete=t.partText.length>0}else a?t.isComplete=t.partText.length===n:t.isComplete=t.partText.length>0}}class Sd{constructor(t,r){$(this,"instanceCollection");$(this,"formatNavigator");$(this,"ruleProcessor");$(this,"keyTypeChecker");$(this,"formatRenderer");this.format=t,this.instanceCollection=ut.getInstance(),this.formatNavigator=this.instanceCollection.getNavigatorInstance(r,t),this.ruleProcessor=new ro(t,r),this.keyTypeChecker=new to,this.formatRenderer=new nn(t,r)}setInputElement(t){this.ruleProcessor.setInputElement(t),this.formatRenderer.setInputElement(t)}processMovementKey(t){const{key:r,metaKey:n}=t;switch(r){case"ArrowLeft":n?this.formatNavigator.moveHome():this.formatNavigator.moveCursorLeft();break;case"ArrowRight":n?this.formatNavigator.moveEnd():this.formatNavigator.moveCursorRight();break;case"Home":this.formatNavigator.moveHome();break;case"End":this.formatNavigator.moveEnd();break}}processKeyPress(t){return this.keyTypeChecker.isIgnoreKey(t)?!1:this.keyTypeChecker.isMovementKey(t)?(this.processMovementKey(t),!1):(this.ruleProcessor.processKeyPress(t),!0)}}class Nd{constructor(t,r=""){$(this,"instanceId");$(this,"instanceCollection");$(this,"keyProcessor");$(this,"formatNavigator");$(this,"formatRenderer");$(this,"inputSlotCollection");$(this,"inputRuleProcessor");$(this,"previousOutputValue","");$(this,"inputElementSet",!1);$(this,"isInputFocused",!1);$(this,"inputElement");$(this,"onFormatChange");this.inputValue=r,this.instanceId=Td(),this.instanceCollection=ut.getInstance(),this.keyProcessor=new Sd(t,this.instanceId),this.formatNavigator=this.instanceCollection.getNavigatorInstance(this.instanceId,t),this.formatRenderer=new nn(t,this.instanceId),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(this.instanceId,t),this.inputRuleProcessor=new ro(t,this.instanceId)}inputElementCreated(t){this.keyProcessor.setInputElement(t),this.formatNavigator.setInputElement(t),this.formatRenderer.setInputElement(t),this.inputElement=t,this.inputElementSet=!0,this.inputElementSet&&this.inputValue.length>0&&this.inputValuePassed(this.inputValue)}inputFocused(){this.isInputFocused=!0,this.formatRenderer.render(),setTimeout(()=>this.formatNavigator.findCursorPosition())}inputBlurred(){this.isInputFocused=!1}inputValuePassed(t){this.inputValue=t,this.inputElementSet&&(this.inputValue.length>0?this.inputRuleProcessor.processInputValue(t):(this.inputSlotCollection.clearAllSlots(),this.previousOutputValue=void 0),setTimeout(()=>{var r;this.formatRenderer.render(),this.isInputFocused&&this.formatNavigator.setCursorToCurrentPosition(),this.inputValue.length>0&&(this.previousOutputValue=(r=this.inputElement)==null?void 0:r.innerHTML)}))}registerFormatChangeEvent(t){this.onFormatChange=t}mouseUpHandler(){this.formatNavigator.findCursorPosition()}keyDownHandler(t){t.key!=="Tab"&&(t.preventDefault(),t.stopPropagation(),this.keyProcessor.processKeyPress(t)&&this.inputElement&&this.onFormatChange&&(this.inputSlotCollection.allSlotsCompleted()&&this.previousOutputValue!==this.inputElement.innerHTML?(this.previousOutputValue=this.inputElement.innerHTML,this.onFormatChange(this.inputElement.innerHTML)):this.inputSlotCollection.allSlotsEmpty()&&this.previousOutputValue!==void 0&&(this.previousOutputValue=void 0,this.onFormatChange())))}dispose(){this.instanceCollection.removeInstances(this.instanceId)}}const Pd=(e,t)=>{const{value:r="",format:n,readOnly:a=!1,debounceTime:s=800,fillContainer:o=!0,leftElement:i,rightElement:u,className:l,leftElementClassName:m,rightElementClassName:d,isSingleLine:T=!1,allowSingleLineScroll:g=!1,isInputValid:E,onChange:P,onFocus:x,onBlur:M,onElementCreate:U,onLeftElementClick:G,onRightElementClick:W}=e,[b,Y]=p.useState(!0),ee=p.useRef(),Q=p.useRef(),X=p.useRef();p.useEffect(()=>()=>{var L;(L=X.current)==null||L.dispose()},[]),p.useEffect(()=>{var L;(L=X.current)==null||L.inputValuePassed(r)},[r]),p.useEffect(()=>{var L,me,h;(L=X.current)==null||L.dispose(),n&&(X.current=new Nd(n,r),Q.current&&((me=X.current)==null||me.inputElementCreated(Q.current)),(h=X.current)==null||h.registerFormatChangeEvent(ue))},[n]);const ue=p.useCallback(L=>{E?E(L)?(Y(!0),P==null||P(L)):Y(!1):P==null||P(L)},[P]),se=p.useCallback(L=>{var me;(me=X.current)==null||me.inputFocused(),x==null||x(L)},[x]),ie=p.useCallback(L=>{var me;(me=X.current)==null||me.inputBlurred(),M==null||M(L)},[M]),w=p.useCallback(()=>{var L;(L=X.current)==null||L.mouseUpHandler()},[]),H=p.useCallback(L=>{var me;(me=X.current)==null||me.keyDownHandler(L)},[]),q=p.useCallback(L=>{var me,h,D,f,N,V,z,C,k;(h=(me=ee.current)==null?void 0:me.inputElement)==null||h.removeEventListener("keydown",H),(f=(D=ee.current)==null?void 0:D.inputElement)==null||f.removeEventListener("mouseup",w),ee.current=L,(V=(N=ee.current)==null?void 0:N.inputElement)==null||V.addEventListener("keydown",H),(C=(z=ee.current)==null?void 0:z.inputElement)==null||C.addEventListener("mouseup",w),Q.current=(k=ee.current)==null?void 0:k.inputElement},[]),A=p.useCallback(()=>{var L;(L=ee.current)==null||L.focus()},[]);p.useImperativeHandle(t,()=>({focus:A}));const te=Ze(l,{"!bsc-border-error":!b});return v.jsxDEV(Lr,{ref:L=>L&&q(L),readOnly:a,debounceTime:s,fillContainer:o,leftElement:i,rightElement:u,className:te,leftElementClassName:m,rightElementClassName:d,isSingleLine:T,allowSingleLineScroll:g,onFocus:se,onBlur:ie,onElementCreate:U,onLeftElementClick:G,onRightElementClick:W},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/inputs/formatted-input/formatted-input.component.tsx",lineNumber:135,columnNumber:5},globalThis)},no=p.forwardRef(Pd),an=p.createContext(void 0);function ao(e,t,r=!0){var T,g;const n=va(e),a=la(e),s=Yl(e);let o=Yr(a)-(((T=t.options)==null?void 0:T.weekStartsOn)||0);o=o===-1?6:o;const i=Yr(s)-(((g=t.options)==null?void 0:g.weekStartsOn)||0),u=$c({start:a,end:s}),l=n+o>35?6:5,m=oo(l,7,{dayValue:null,isCurrent:!0});let d=1;for(let E=0,P=l;E<P;E++){for(let x=E>0?0:o;x<7;x++){const M=u[d-1];if(M.setHours(e.getHours(),e.getMinutes(),e.getSeconds()),m[E][x].dayValue=M,++d>n)break}if(d>n)break}if(o>0&&r)for(let E=0;E<o;E++)m[0][E].dayValue=Uf(a,o-E),m[0][E].isCurrent=!1;if(i>-1&&r)for(let E=6;E>i;E--)m[l-1][E].dayValue=Bt(s,E-i),m[l-1][E].isCurrent=!1;return m}function oo(e,t,r){const n=[];for(let a=0,s=e;a<s;a++){const o=[];for(let i=0,u=t;i<u;i++){const l=Cd(r)?r:{...r};o.push(l)}n.push(o)}return n}function Cd(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"||e instanceof Date}function Od(e){var n;const t=Hf(new Date,((n=e.options)==null?void 0:n.weekStartsOn)||0),r=[];for(let a=0;a<7;a++)r.push(Bt(t,a).toLocaleDateString(e.code,{weekday:"short"}));return r}function Id(e){const t=new Date(Date.UTC(2020,0,1)),r=[[{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""}],[{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""}],[{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""}]];let n=0;for(let a=0;a<3;a++)for(let s=0;s<4;s++)r[a][s]={monthNumber:n,monthName:at(t,n++).toLocaleDateString(e.code,{month:"short"})};return r}function _d(e,t){const r=new Date(e.getTime()),n=Math.floor(r.getFullYear()/10)*10;r.setFullYear(n);const a=Yc({start:r,end:Gt(r,9)}),s=oo(3,4,"");let o=0;for(let i=0;i<3;i++)for(let u=0;u<4&&(s[i][u]=a[o++].toLocaleDateString(t.code,{year:"numeric"}),o!==a.length);u++);return s}function Md(e){const t=new Date;return t.setHours(0,0,0,0),t.toLocaleTimeString(e.code)}function Rd(e,t,r){return e.getTime()>=t.getTime()&&e.getTime()<=r.getTime()}async function so(e){return(await import(`/node_modules/date-fns/locale/${kd(e)}`)).default}function kd(e){const[t,r]=e.split("-");switch(t){case"af":return"af";case"ar":switch(r){case"DZ":return"ar-DZ";case"EG":return"ar-EG";case"MA":return"ar-MA";case"SA":return"ar-SA";case"TN":return"ar-TN";default:return"ar"}case"az":return"az";case"be":switch(r){case"tarask":return"be-tarask";default:return"be"}case"bg":return"bg";case"bn":return"bn";case"bs":return"bs";case"ca":return"ca";case"cs":return"cs";case"cy":return"cy";case"da":return"da";case"de":switch(r){case"AT":return"de-AT";default:return"de"}case"el":return"el";case"en":switch(r){case"AU":return"en-AU";case"CA":return"en-CA";case"GB":return"en-GB";case"IE":return"en-IE";case"IN":return"en-IN";case"NZ":return"en-NZ";case"US":return"en-US";default:return"en-ZA"}case"eo":return"eo";case"es":return"es";case"et":return"et";case"eu":return"eu";case"fa":return"fa-IR";case"fi":return"fi";case"fr":switch(r){case"CA":return"fr-CA";case"CH":return"fr-CH";default:return"fr"}case"fy":return"fy";case"gd":return"gd";case"gl":return"gl";case"gu":return"gu";case"he":return"he";case"hi":return"hi";case"hr":return"hr";case"ht":return"ht";case"hu":return"hu";case"hy":return"hy";case"id":return"id";case"is":return"is";case"it":switch(r){case"CH":return"it-CH";default:return"it"}case"ja":switch(r){case"Hira":return"ja-Hira";default:return"ja"}case"ka":return"ka";case"kk":return"kk";case"km":return"km";case"kn":return"kn";case"ko":return"ko";case"lb":return"lb";case"lt":return"lt";case"lv":return"lv";case"mk":return"mk";case"mn":return"mn";case"ms":return"ms";case"mt":return"mt";case"nb":return"nb";case"nl":switch(r){case"BE":return"nl-BE";default:return"nl"}case"nn":return"nn";case"oc":return"oc";case"pl":return"pl";case"pt":switch(r){case"BR":return"pt-BR";default:return"pt"}case"ro":return"ro";case"ru":return"ru";case"sk":return"sk";case"sl":return"sl";case"sq":return"sq";case"sr":switch(r){case"Latn":return"sr-Latn";default:return"sr"}case"sv":return"sv";case"ta":return"ta";case"te":return"te";case"th":return"th";case"tr":return"tr";case"ug":return"ug";case"uk":return"uk";case"uz":switch(r){case"Cyrl":return"uz-Cyrl";default:return"uz"}case"vi":return"vi";case"zh":switch(r){case"CN":return"zh-CN";case"HK":return"zh-HK";default:return"zh-TW"}default:return"en-AU"}}function Lt(e,t){const r=Wf(e);if(isNaN(r.valueOf())){let n=ze(e,"P pp",new Date,{locale:t});return!isNaN(n.valueOf())||(n=ze(e,"Pp",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P HH:mm",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P hh:mm a..aaa",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P HH:mm:ss",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P hh:mm:ss a..aaa",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P p",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"pp",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"p",new Date,{locale:t}),!isNaN(n.valueOf()))?n:void 0}return r}function io(e,t){const r=e.split("-");if(r.length!==2)return;const n=Lt(r[0].trim(),t);if(!n)return;const a=Lt(r[1].trim(),t);if(a)return[n,a]}var Te=(e=>(e[e.DateTime=0]="DateTime",e[e.DateOnly=1]="DateOnly",e[e.TimeOnly=2]="TimeOnly",e[e.DateRange=3]="DateRange",e))(Te||{}),At=(e=>(e[e.Day=0]="Day",e[e.Month=1]="Month",e[e.Year=2]="Year",e[e.Range=3]="Range",e))(At||{}),ur=(e=>(e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e))(ur||{}),Pe=(e=>(e[e.TwelveHour=0]="TwelveHour",e[e.TwentyFourHour=1]="TwentyFourHour",e))(Pe||{}),ct=(e=>(e[e.Normal=0]="Normal",e[e.Range=1]="Range",e))(ct||{}),cr=(e=>(e[e.Right=0]="Right",e[e.Left=1]="Left",e[e.None=2]="None",e))(cr||{}),K=(e=>(e[e.DaySelector=0]="DaySelector",e[e.MonthSelector=1]="MonthSelector",e[e.YearSelector=2]="YearSelector",e[e.TimeSelector=3]="TimeSelector",e[e.DateRangeSelector=4]="DateRangeSelector",e[e.SetViewDate=5]="SetViewDate",e[e.SetSelectedDate=6]="SetSelectedDate",e[e.SetSelectedDateRange=7]="SetSelectedDateRange",e[e.SetSelectedStartDate=8]="SetSelectedStartDate",e[e.SetSelectedEndDate=9]="SetSelectedEndDate",e[e.SetTimeFormat=10]="SetTimeFormat",e[e.ClearDates=11]="ClearDates",e[e.InitializeDates=12]="InitializeDates",e))(K||{});const jd=(e,t)=>{switch(t.type){case 0:return{...e,currentSelector:0,currentViewDate:t.viewDate||e.currentViewDate};case 1:return{...e,currentSelector:1,currentViewDate:t.viewDate||e.currentViewDate};case 2:return{...e,currentSelector:2};case 3:return{...e,currentSelector:3};case 4:return{...e,currentSelector:4,currentViewDate:t.viewDate||e.currentViewDate};case 5:return{...e,currentViewDate:t.viewDate||new Date,dateInitialized:!0};case 6:return{...e,selectedDate:t.selectedDate||e.selectedDate,currentViewDate:t.viewDate||e.currentViewDate};case 7:return{...e,selectedStartDate:t.selectedStartDate||e.selectedStartDate,selectedEndDate:t.selectedEndDate||e.selectedEndDate};case 8:return{...e,selectedStartDate:t.selectedStartDate,selectedEndDate:void 0};case 9:return{...e,selectedEndDate:t.selectedEndDate};case 10:return{...e,timeFormat:t.timeFormat||e.timeFormat};case 11:return{currentSelector:e.currentSelector,currentViewDate:e.currentViewDate,timeFormat:e.timeFormat,dateInitialized:!0};case 12:const r={...e,currentViewDate:Vd(t.initialDate),dateInitialized:!0};return Array.isArray(t.initialDate)?{...r,selectedStartDate:t.initialDate[0],selectedEndDate:t.initialDate[1]}:{...r,selectedDate:t.initialDate};default:return{...e,currentSelector:0}}};function Vd(e){return e?Array.isArray(e)?e[0]:e:new Date}const on=({viewDate:e,selectedDate:t,selectedStartDate:r,selectedEndDate:n,selectionMode:a=ct.Normal,locale:s,onDateSelected:o,selectableDate:i,isValidDate:u,dispatcher:l})=>{var q;const[m,d]=p.useState(!1),[T,g]=p.useState(),[E,P]=p.useState(),[x,M]=p.useState(),[U,G]=p.useState(),W=p.useRef(),b=p.useRef(),Y=p.useContext(an),ee=p.useMemo(()=>Y.calendarTemplate,[Y.calendarTemplate]),Q=async()=>s||await so(Ca());p.useEffect(()=>{Q().then(A=>{W.current=A,b.current=Od(W.current),d(!0)}).catch(A=>console.error(A))},[]),p.useEffect(()=>{e&&W.current&&M(ao(e,W.current,a===ct.Normal))},[e,m]),p.useEffect(()=>{G(t?new Date(t.getFullYear(),t.getMonth(),t.getDate()):void 0)},[t]),p.useEffect(()=>{g(r?new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0).getTime():void 0),P(n?new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59).getTime():void 0)},[r,n]),p.useEffect(()=>{W.current&&s&&(W.current=s,M(ao(e,W.current,a===ct.Normal)))},[s]);const X=A=>{if(a===ct.Normal)l==null||l({type:K.SetSelectedDate,selectedDate:A,viewDate:A}),o==null||o(A);else{if(!o)throw new Error("Range selection mode requires onDateSelected to be set");!r||Ul(A,r)?o(A):r&&!n?o(A,{setEndDate:!0}):r&&n&&o(A)}},ue=A=>(U==null?void 0:U.toLocaleDateString())===A.toLocaleDateString(),se=A=>{if(T&&E){const te=A.getTime();return te>=T&&te<=E}return!1},ie={viewDate:e,selectedDate:t,selectedStartDate:r,selectedEndDate:n,selectionMode:a,locale:s,weekDays:b.current,monthMatrix:x,selectableDate:i,isValidDate:u,onDateClicked:X,isSelectedDate:ue,isInSelectedDateRange:se},H=ee||((A,te)=>v.jsxDEV("div",{className:"bsc-w-full bc-dt-calendar",children:te},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-calendar.component.tsx",lineNumber:193,columnNumber:5},globalThis));return v.jsxDEV(zr,{props:ie,template:H,children:v.jsxDEV("div",{className:"bsc-grid bsc-grid-cols-7 bsc-gap-3 bc-dt-day-row bsc-min-w-[329px]",children:[(q=b.current)==null?void 0:q.map((A,te)=>v.jsxDEV("div",{className:"bsc-text-center bsc-font-bold bc-dt-day-cell",children:A},te,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-calendar.component.tsx",lineNumber:202,columnNumber:11},globalThis)),x==null?void 0:x.map((A,te)=>A.map((L,me)=>{var f,N;const h=L.dayValue!==null&&(i===void 0||i(L.dayValue)),D=Ze("bsc-text-center bsc-py-1",{"bsc-text-gray-3":!L.isCurrent,"bsc-bg-primary-3 dark:bsc-bg-mono-light-1 dark:bsc-text-mono-dark-1":L&&L.dayValue&&(U&&ue(L.dayValue)||T&&!E&&ca(T,L.dayValue)||T&&E&&se(L.dayValue)),"bsc-cursor-pointer":h,"bsc-text-error bsc-cursor-not-allowed":!h,"bsc-bg-primary-5 dark:bsc-bg-mono-light-3 dark:bsc-text-mono-dark-1":L.dayValue&&Yf(L.dayValue)&&!(ue(L.dayValue)||se(L.dayValue))},"bc-dt-date-cell");return v.jsxDEV("div",{className:D,onClick:()=>L&&L.dayValue&&h&&(u===void 0||u(L.dayValue))&&X(L.dayValue),children:(N=L.dayValue)==null?void 0:N.getDate().toLocaleString((f=W.current)==null?void 0:f.code)},te.toString()+me.toString(),!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-calendar.component.tsx",lineNumber:233,columnNumber:15},globalThis)}))]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-calendar.component.tsx",lineNumber:200,columnNumber:7},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-calendar.component.tsx",lineNumber:199,columnNumber:5},globalThis)},lr=({title:e,scrollerType:t,onTitleClicked:r,onMovePrevious:n,onMoveNext:a})=>{const o=p.useContext(an).dateScrollerTemplate,i={title:e,scrollerType:t,onTitleClicked:r,onMovePrevious:n,onMoveNext:a},l=o||((m,d)=>v.jsxDEV("div",{className:"bsc-w-full bsc-flex bsc-flex-row bsc-py-1 bsc-px-2 bc-dt-scroller",children:d},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:45,columnNumber:5},globalThis));return v.jsxDEV(zr,{props:i,template:l,children:[v.jsxDEV("div",{className:"bsc-flex-shrink bsc-cursor-pointer bc-dt-scroller-left",children:v.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:n,children:v.jsxDEV(xm,{size:24},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:54,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:53,columnNumber:9},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:52,columnNumber:7},globalThis),v.jsxDEV("div",{className:"bsc-flex-grow bsc-text-center bsc-cursor-pointer bc-dt-scroller-title",onClick:r,children:e},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:57,columnNumber:7},globalThis),v.jsxDEV("div",{className:"bsc-flex-shrink bsc-cursor-pointer bc-dt-scroller-right",children:v.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:a,children:v.jsxDEV(Om,{size:24},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:62,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:61,columnNumber:9},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:60,columnNumber:7},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-scroller.component.tsx",lineNumber:51,columnNumber:5},globalThis)},Ld=({selectedDate:e,viewDate:t,locale:r,showTimeSelector:n,selectableDate:a,isValidDate:s,onChange:o,dispatcher:i})=>{const u=()=>{t&&i({type:K.SetViewDate,viewDate:Na(t,1)})},l=()=>{t&&i({type:K.SetViewDate,viewDate:at(t,1)})},m=()=>{i({type:K.MonthSelector})},d=()=>{i({type:K.TimeSelector})},T=()=>t?t.toLocaleDateString(r.code,{month:"long",year:"numeric"}):"";return v.jsxDEV("div",{className:"bsc-p-2 bc-dt-day-selector",children:[v.jsxDEV(lr,{title:T(),scrollerType:At.Day,onTitleClicked:m,onMovePrevious:u,onMoveNext:l},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-day-selector.component.tsx",lineNumber:74,columnNumber:7},globalThis),v.jsxDEV(on,{viewDate:t,selectedDate:e,locale:r,selectableDate:a,isValidDate:s,onDateSelected:o,dispatcher:i},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-day-selector.component.tsx",lineNumber:81,columnNumber:7},globalThis),n&&v.jsxDEV("div",{className:"bsc-w-full bsc-flex bsc-flex-row bsc-p-2 bsc-justify-center bc-dt-time-value-wrapper",children:v.jsxDEV("div",{className:"bsc-p-2 bsc-cursor-pointer hover:bsc-bg-gray-4 dark:hover:bsc-bg-mono-light-2 dark:hover:bsc-text-mono-dark-2 dark:bsc-bg-mono-dark-1 dark:bsc-text-mono-light-1 bc-dt-time-value",onClick:d,children:(e==null?void 0:e.toLocaleTimeString(r.code))||Md(r)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-day-selector.component.tsx",lineNumber:92,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-day-selector.component.tsx",lineNumber:91,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-day-selector.component.tsx",lineNumber:73,columnNumber:5},globalThis)},Ad=({viewDate:e,locale:t,dateSelection:r=Te.DateTime,dispatcher:n})=>{const a=p.useRef(Id(t)),s=()=>{const m=Pa(e,1);n({type:K.SetViewDate,viewDate:m})},o=()=>{const m=Gt(e,1);n({type:K.SetViewDate,viewDate:m})},i=m=>{n({type:r!==Te.DateRange?K.DaySelector:K.DateRangeSelector,viewDate:sm(e,m)})},u=()=>e.toLocaleDateString(t.code,{year:"numeric"}),l=()=>{n({type:K.YearSelector})};return v.jsxDEV("div",{className:"bsc-p-2 bc-dt-month-selector",style:{minWidth:"20rem"},children:[v.jsxDEV(lr,{title:u(),scrollerType:At.Month,onTitleClicked:l,onMovePrevious:s,onMoveNext:o},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-month-selector.component.tsx",lineNumber:63,columnNumber:7},globalThis),v.jsxDEV("div",{className:"bsc-w-full bsc-grid bsc-grid-cols-4 bsc-gap-4 bc-dt-month-grid",children:a.current.map((m,d)=>m.map((T,g)=>v.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-month-cell",onClick:()=>i(T.monthNumber),children:T.monthName},d.toString()+g.toString(),!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-month-selector.component.tsx",lineNumber:73,columnNumber:13},globalThis)))},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-month-selector.component.tsx",lineNumber:70,columnNumber:7},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-month-selector.component.tsx",lineNumber:62,columnNumber:5},globalThis)},Fd=({viewDate:e,selectedStartDate:t,selectedEndDate:r,locale:n,onChange:a,dispatcher:s})=>{const o=at(e,1),i=(T,g)=>{!g||!g.setEndDate?s({type:K.SetSelectedStartDate,selectedStartDate:T}):(s({type:K.SetSelectedEndDate,selectedEndDate:T}),t&&(a==null||a([t,T])))},u=()=>{s({type:K.MonthSelector})},l=()=>`${e.toLocaleDateString(n.code,{month:"long"})} ${e.toLocaleDateString(n.code,{year:"numeric"})} - ${o.toLocaleDateString(n.code,{month:"long"})} ${o.toLocaleDateString(n.code,{year:"numeric"})}`,m=()=>{e&&s({type:K.SetViewDate,viewDate:Na(e,1)})},d=()=>{e&&s({type:K.SetViewDate,viewDate:at(e,1)})};return v.jsxDEV("div",{className:"bsc-flex bsc-flex-col bc-dt-range-selector",children:[v.jsxDEV("div",{className:"bsc-flex-shrink bc-dt-range-scroller-wrapper",children:v.jsxDEV(lr,{title:l(),scrollerType:At.Range,onTitleClicked:u,onMovePrevious:m,onMoveNext:d},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:77,columnNumber:9},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:76,columnNumber:7},globalThis),v.jsxDEV("div",{className:"bsc-flex-grow",children:v.jsxDEV("div",{className:"bsc-flex bsc-flex-row bsc-py-1 bsc-px-2 bc-dt-range-wrapper",children:[v.jsxDEV("div",{className:"bsc-border-r bsc-border-solid bsc-border-gray-3 bsc-pr-4 bc-dt-range-calendar-1",children:v.jsxDEV(on,{viewDate:e,selectedStartDate:t,selectedEndDate:r,selectionMode:ct.Range,onDateSelected:i,locale:n,dispatcher:s},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:88,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:87,columnNumber:11},globalThis),v.jsxDEV("div",{className:"bsc-pl-4 bc-dt-range-calendar-2",children:v.jsxDEV(on,{viewDate:o,selectedStartDate:t,selectedEndDate:r,selectionMode:ct.Range,onDateSelected:i,locale:n,dispatcher:s},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:99,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:98,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:86,columnNumber:9},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:85,columnNumber:7},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-range-selector.component.tsx",lineNumber:75,columnNumber:5},globalThis)},$d=({viewDate:e,showDateSelector:t,locale:r,timeFormat:n=Pe.TwelveHour,timeConstraints:a,onChange:s,dispatcher:o})=>{const i=p.useRef(n===Pe.TwelveHour?11:23),u=p.useRef(n===Pe.TwelveHour?["12","01","02","03","04","05","06","07","08","09","10","11"]:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"]),l=p.useRef(um(0,59,w=>w.toString().padStart(2,"0"))),m=p.useRef(["AM","PM"]),d=p.useRef(Pc(e)),T=w=>w>11?w-12:w,[g,E]=p.useState(T(e.getHours())),[P,x]=p.useState(e.getMinutes()),[M,U]=p.useState(e.getHours()<=12?0:1),G=p.useRef(e.toLocaleDateString(r.code));p.useEffect(()=>{const w=e.getHours(),H=e.getMinutes();if(w!==g&&E(n===Pe.TwelveHour?T(w):w),H!==P&&x(H),n===Pe.TwelveHour){const q=w<=11?0:1;q!==M&&U(q)}},[e]);const W=()=>{var q;const w=((q=a==null?void 0:a.hours)==null?void 0:q.step)||1,H=g<i.current?g+w:0;E(H),X(H,P,M)},b=()=>{var q;const w=((q=a==null?void 0:a.hours)==null?void 0:q.step)||1,H=g>0?g-w:i.current;E(H),X(H,P,M)},Y=()=>{var q,A,te;const w=((q=a==null?void 0:a.minutes)==null?void 0:q.step)||1,H=P+w<(((A=a==null?void 0:a.minutes)==null?void 0:A.max)||59)?P+w:((te=a==null?void 0:a.minutes)==null?void 0:te.min)||0;x(H),X(g,H,M)},ee=()=>{var q,A,te;const w=((q=a==null?void 0:a.minutes)==null?void 0:q.step)||1,H=P-w>=(((A=a==null?void 0:a.minutes)==null?void 0:A.min)||0)?P-w:(((te=a==null?void 0:a.minutes)==null?void 0:te.max)||60)-w;x(H),X(g,H,M)},Q=()=>{const w=M===0?1:0;U(w),X(g,P,w)},X=(w,H,q)=>{const A=n===Pe.TwelveHour&&q===1?w+12:w;d.current.setHours(A,H),o({type:K.SetSelectedDate,selectedDate:d.current,viewDate:d.current}),s==null||s(d.current)},ue=()=>{o({type:K.DaySelector})},se=Ze("bsc-w-full bsc-grid bsc-grid-rows-3 bsc-gap-4 bc-dt-time-grid",{"bsc-grid-cols-4":n===Pe.TwelveHour,"bsc-grid-cols-3":n===Pe.TwentyFourHour}),ie=Ze("bsc-text-center bsc-cursor-pointer hover:bsc-bg-gray-4 dark:bsc-text-mono-light-1 dark:hover:bsc-bg-mono-light-1 dark:hover:bsc-text-mono-dark-1 bc-dt-time-date-value",{"bsc-col-span-4":n===Pe.TwelveHour,"bsc-col-span-3":n===Pe.TwentyFourHour});return v.jsxDEV("div",{className:"bsc-flex bsc-flex-row bsc-justify-center bsc-p-2 bc-dt-time-selector",style:{minWidth:n===Pe.TwelveHour?"15rem":"11rem"},children:v.jsxDEV("div",{className:se,children:[t&&v.jsxDEV("div",{className:ie,onClick:ue,children:G.current},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:168,columnNumber:11},globalThis),v.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-hour-increase",children:v.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:W,children:v.jsxDEV(qr,{},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:174,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:173,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:172,columnNumber:9},globalThis),v.jsxDEV("div",{children:" "},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:177,columnNumber:9},globalThis),v.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-minute-increase",children:v.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:Y,children:v.jsxDEV(qr,{},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:180,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:179,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:178,columnNumber:9},globalThis),n===Pe.TwelveHour&&v.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-meridian-increase",children:v.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:Q,children:v.jsxDEV(qr,{},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:186,columnNumber:15},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:185,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:184,columnNumber:11},globalThis),v.jsxDEV("div",{className:"bsc-text-center bc-dt-time-hour-value",children:u.current[g]},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:190,columnNumber:9},globalThis),v.jsxDEV("div",{className:"bsc-text-center bc-dt-time-separator",children:":"},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:191,columnNumber:9},globalThis),v.jsxDEV("div",{className:"bsc-text-center bc-dt-time-minute-value",children:l.current[P]},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:192,columnNumber:9},globalThis),n===Pe.TwelveHour&&v.jsxDEV("div",{className:"bsc-text-center bc-dt-time-meridian-value",children:m.current[M]},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:194,columnNumber:11},globalThis),v.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-hour-decrease",children:v.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:b,children:v.jsxDEV(Br,{},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:198,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:197,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:196,columnNumber:9},globalThis),v.jsxDEV("div",{children:" "},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:201,columnNumber:9},globalThis),v.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-minute-decrease",children:v.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:ee,children:v.jsxDEV(Br,{},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:204,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:203,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:202,columnNumber:9},globalThis),n===Pe.TwelveHour&&v.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-meridian-decrease",children:v.jsxDEV("button",{className:"focus:bsc-outline-none",onClick:Q,children:v.jsxDEV(Br,{},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:210,columnNumber:15},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:209,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:208,columnNumber:11},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:166,columnNumber:7},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-time-selector.component.tsx",lineNumber:162,columnNumber:5},globalThis)},Yd=({viewDate:e,locale:t,dispatcher:r})=>{const n=_d(e,t),a=()=>{const u=Pa(e,10);r({type:K.SetViewDate,viewDate:u})},s=()=>{const u=Gt(e,10);r({type:K.SetViewDate,viewDate:u})},o=u=>{const l=parseInt(u);r({type:K.MonthSelector,viewDate:im(e,l)})},i=()=>`${n[0][0].toString()} - ${n[2][1].toString()}`;return v.jsxDEV("div",{className:"bc-dt-year-selector",style:{minWidth:"20rem"},children:[v.jsxDEV(lr,{title:i(),scrollerType:At.Year,onMovePrevious:a,onMoveNext:s},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-year-selector.component.tsx",lineNumber:45,columnNumber:7},globalThis),v.jsxDEV("div",{className:"bsc-w-full bc-dt-year-wrapper",children:v.jsxDEV("div",{className:"bsc-grid bsc-grid-cols-4 bsc-gap-4 bc-dt-year-grid",children:n.map((u,l)=>u.map((m,d)=>m.length>0?v.jsxDEV("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-year-cell",onClick:()=>o(m),children:m},l.toString()+d.toString(),!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-year-selector.component.tsx",lineNumber:56,columnNumber:17},globalThis):v.jsxDEV("div",{},l.toString()+d.toString(),!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-year-selector.component.tsx",lineNumber:64,columnNumber:17},globalThis)))},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-year-selector.component.tsx",lineNumber:52,columnNumber:9},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-year-selector.component.tsx",lineNumber:51,columnNumber:7},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time-year-selector.component.tsx",lineNumber:44,columnNumber:5},globalThis)};class Ud{constructor(t,r){$(this,"dateFormat");$(this,"timeFormat");$(this,"use24HourTime");$(this,"monthPart");$(this,"dayPart");$(this,"yearPart");$(this,"twelveHourPart");$(this,"twentyFourHourPart");$(this,"minutePart");$(this,"meridianPart");this.dateSelection=t;const n=2023,a=12,s=20,i=new Date(n,a-1,s).toLocaleDateString(r,{year:"numeric",month:"numeric",day:"numeric"});this.dateFormat=i.replace(`${n}`,"YYYY").replace(`${a}`,"MM").replace(`${s}`,"DD");const u=new Date,l=18,m=24,d=37,T=317;u.setHours(l,m,d,T);const g=u.toLocaleTimeString(r);this.use24HourTime=g.startsWith("18"),this.timeFormat=g.replace(`${this.use24HourTime?l:"6"}`,"HH").replace(`${m}`,"MM").replace(`${d}`,"SS").replace(`${T}`,"LLL"),this.createDateParts()}get is24HourTime(){return this.use24HourTime}createInputFormat(){const t={deleteShiftsFormatPart:!1,formatParts:[]};switch(this.dateSelection){case Te.DateOnly:return this.createDateFormat(t);case Te.TimeOnly:return this.createTimeFormat(t);case Te.DateRange:return this.createDateRangeFormat(t);case Te.DateTime:return this.createDateTimeFormat(t)}}createDateFormat(t){return this.dateFormat.startsWith("MM")?t.formatParts.push(...this.createMonthDayYearFormatParts()):this.dateFormat.startsWith("DD")?t.formatParts.push(...this.createDayMonthYearFormatParts()):t.formatParts.push(...this.createYearMonthDayFormatParts()),t}createTimeFormat(t){return this.use24HourTime?t.formatParts.push(...this.createTwentyFourHourFormatParts()):t.formatParts.push(...this.createTwelveHourFormatParts()),t}createDateRangeFormat(t){const r=[];this.dateFormat.startsWith("MM")?r.push(...this.createMonthDayYearFormatParts()):this.dateFormat.startsWith("DD")?r.push(...this.createDayMonthYearFormatParts()):r.push(...this.createYearMonthDayFormatParts());const n={characterCount:3,placeholder:" - ",inputText:" - ",isSeparator:!0};return t.formatParts.push(...r,n,...r),t}createDateTimeFormat(t){this.dateFormat.startsWith("MM")?t.formatParts.push(...this.createMonthDayYearFormatParts()):this.dateFormat.startsWith("DD")?t.formatParts.push(...this.createDayMonthYearFormatParts()):t.formatParts.push(...this.createYearMonthDayFormatParts());const r={characterCount:1,placeholder:" ",inputText:" ",isSeparator:!0};return t.formatParts.push(r),this.use24HourTime?t.formatParts.push(...this.createTwentyFourHourFormatParts()):t.formatParts.push(...this.createTwelveHourFormatParts()),t}createMonthDayYearFormatParts(){if(this.monthPart&&this.dayPart&&this.yearPart){let t=this.dateFormat.replace("MM",""),r=t.indexOf("DD"),n=t.substring(0,r);t=t.replace(n,"").replace("DD","");const a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};r=t.indexOf("YYYY"),n=t.substring(0,r);const s={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.monthPart,a,this.dayPart,s,this.yearPart]}return[]}createDayMonthYearFormatParts(){if(this.monthPart&&this.dayPart&&this.yearPart){let t=this.dateFormat.replace("DD",""),r=t.indexOf("MM"),n=t.substring(0,r);t=t.replace(n,"").replace("MM","");const a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};r=t.indexOf("YYYY"),n=t.substring(0,r);const s={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.dayPart,a,this.monthPart,s,this.yearPart]}return[]}createYearMonthDayFormatParts(){if(this.monthPart&&this.dayPart&&this.yearPart){let t=this.dateFormat.replace("YYYY",""),r=t.indexOf("MM"),n=t.substring(0,r);t=t.replace(n,"").replace("MM","");const a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};r=t.indexOf("DD"),n=t.substring(0,r);const s={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.yearPart,a,this.monthPart,s,this.dayPart]}return[]}createTwelveHourFormatParts(){if(this.twelveHourPart&&this.minutePart&&this.meridianPart){const t=this.timeFormat.replace("HH",""),r=t.indexOf("MM"),n=t.substring(0,r),a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0},s={characterCount:1,placeholder:" ",inputText:" ",isSeparator:!0};return[this.twelveHourPart,a,this.minutePart,s,this.meridianPart]}return[]}createTwentyFourHourFormatParts(){if(this.twentyFourHourPart&&this.minutePart){const t=this.timeFormat.replace("HH",""),r=t.indexOf("MM"),n=t.substring(0,r),a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.twentyFourHourPart,a,this.minutePart]}return[]}createDateParts(){this.monthPart={characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:qe.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.dayPart={characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:qe.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.yearPart={characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:qe.Numeric},this.twelveHourPart={characterCount:2,placeholder:"H",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:qe.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.twentyFourHourPart={characterCount:2,placeholder:"H",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:qe.Numeric,minimumValue:0,maximumValue:23,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.minutePart={characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:qe.Numeric,minimumValue:0,maximumValue:59,exceedingMaximumValueCausesError:!0,padWithZeros:!0},this.meridianPart={characterCount:2,inputText:"_",isSeparator:!1,valueType:qe.Text,possibleValues:["AM","PM"]}}}const Hd=(e,t)=>{var s;const[r,n]=p.useState(),a=p.useRef();return p.useEffect(()=>{t&&!r&&(a.current=new Ud(e,t),n(a.current.createInputFormat()))},[t]),[r,(s=a.current)==null?void 0:s.is24HourTime]},Wd=({value:e,readOnly:t=!1,label:r,useDefaultDateValue:n=!1,useFormattedInput:a=!1,allowClear:s=!1,locale:o,className:i,dateSelection:u=Te.DateTime,dateFormat:l,timeConstraints:m,icon:d,iconPosition:T=cr.Right,inputElement:g,selectableDate:E,isValidDate:P,onChange:x,calendarTemplate:M,dateScrollerTemplate:U,inputTemplate:G})=>{const[W,b]=p.useState(!1),[Y,ee]=p.useState(),[Q,X]=p.useState(),ue=p.useRef(),se=p.useRef(!1),ie=p.useRef(o||Ca()),w=p.useRef(),H=p.useRef(),q=p.useRef(),[A,te]=Hd(u,Y),L=p.useRef({calendarTemplate:M,dateScrollerTemplate:U});p.useEffect(()=>{ie.current&&me(ie.current)},[ie]),p.useEffect(()=>{o&&me(o)},[o]),p.useEffect(()=>{if(e){const Z=h();N({type:K.InitializeDates,initialDate:Z})}else N({type:K.ClearDates})},[e,w.current]),p.useEffect(()=>{te&&N({type:K.SetTimeFormat,timeFormat:te?Pe.TwentyFourHour:Pe.TwelveHour})},[te]),p.useEffect(()=>{g&&(H.current=g)},[g]);const me=Z=>{so(Z).then(ye=>{ee(ye.code),w.current=ye;const Ve=h();N(e||n?{type:K.InitializeDates,initialDate:Array.isArray(Ve)?Ve[0]:Ve}:{type:K.SetViewDate,viewDate:Array.isArray(Ve)?Ve[0]:Ve})}).catch(ye=>console.error(ye))},h=()=>{const Z=new Date;return Z.setHours(0,0,0,0),e?typeof e=="string"?u!==Te.DateRange?Lt(e,w.current):io(e,w.current):e:Z},D={currentSelector:u===Te.TimeOnly?K.TimeSelector:u===Te.DateTime||u===Te.DateOnly?K.DaySelector:K.DateRangeSelector,currentViewDate:new Date,timeFormat:Pe.TwelveHour,dateInitialized:!1},[f,N]=p.useReducer(jd,D),V=()=>{Ae(),b(!0)},z=p.useMemo(()=>_t(()=>{b(!1)},250),[]),C=p.useMemo(()=>_t(()=>{z.cancel()},5),[z]),k=Z=>{const ye=Z.target.innerText;F(ye)},I=Z=>{if(Z){const ye=Lt(Z,w.current);return ye?P?P(ye):!0:!1}else return!0},_=Z=>{F(Z||"")},F=Z=>{const ye=u!==Te.DateRange?Lt(Z,w.current):io(Z,w.current);ye?(Array.isArray(ye)?(Rd(ye[0],la(f.currentViewDate),Fc(at(f.currentViewDate,1)))||N({type:K.SetViewDate,viewDate:ye[0]}),N({type:K.SetSelectedDateRange,selectedStartDate:ye[0],selectedEndDate:ye[1]})):N({type:K.SetSelectedDate,selectedDate:ye,viewDate:ye}),x==null||x(ye)):Z===""&&(N({type:K.ClearDates}),x==null||x())},De=()=>{Ae(),b(!W)},S=()=>{N({type:K.ClearDates}),b(!1),x==null||x()},ke=(Z,ye)=>{(!H.current||ue.current!==ye)&&(H.current=Z,ue.current=ye,se.current=!0)},Ae=()=>{(!q.current||se.current)&&H.current&&(q.current=H.current,X(H.current),se.current=!1)},Fe=()=>{b(!1),N({type:u===Te.TimeOnly?K.TimeSelector:u===Te.DateTime||u===Te.DateOnly?K.DaySelector:K.DateRangeSelector})},Tt=()=>{switch(l){case ur.Short:return"short";case ur.Medium:return"medium";case ur.Long:return"long";default:return}},wt=()=>{var ye,Ve,pr,Ft,$t,Et,hr,vr,br,gr,yr,Tr;const Z=Tt();switch(u){case Te.DateTime:return f.selectedDate?Z?f.selectedDate.toLocaleString((ye=w.current)==null?void 0:ye.code,{dateStyle:Z,timeStyle:Z}):f.selectedDate.toLocaleString((Ve=w.current)==null?void 0:Ve.code):"";case Te.DateOnly:return f.selectedDate?Z?f.selectedDate.toLocaleDateString((pr=w.current)==null?void 0:pr.code,{dateStyle:Z}):f.selectedDate.toLocaleDateString((Ft=w.current)==null?void 0:Ft.code):"";case Te.TimeOnly:return f.selectedDate?Z?f.selectedDate.toLocaleTimeString(($t=w.current)==null?void 0:$t.code,{timeStyle:Z,hour12:f.timeFormat===Pe.TwelveHour,hourCycle:f.timeFormat===Pe.TwentyFourHour?"h23":void 0}):f.selectedDate.toLocaleTimeString((Et=w.current)==null?void 0:Et.code,{hour12:f.timeFormat===Pe.TwelveHour,hourCycle:f.timeFormat===Pe.TwentyFourHour?"h23":void 0}):"";case Te.DateRange:return f.selectedStartDate&&f.selectedEndDate?Z?`${f.selectedStartDate.toLocaleDateString((hr=w.current)==null?void 0:hr.code,{dateStyle:Z})} - ${f.selectedEndDate.toLocaleDateString((vr=w.current)==null?void 0:vr.code,{dateStyle:Z})}`:`${f.selectedStartDate.toLocaleDateString((br=w.current)==null?void 0:br.code)} - ${f.selectedEndDate.toLocaleDateString((gr=w.current)==null?void 0:gr.code)}`:"";default:return f.selectedDate?Z?f.selectedDate.toLocaleString((yr=w.current)==null?void 0:yr.code,{dateStyle:Z,timeStyle:Z}):f.selectedDate.toLocaleString((Tr=w.current)==null?void 0:Tr.code):""}},lt=u===Te.DateTime||u===Te.DateOnly||u===Te.DateRange,xt=u===Te.DateTime||u===Te.TimeOnly,Dt=T===cr.None?{}:T===cr.Right?{rightElement:v.jsxDEV("div",{className:"bsc-flex bsc-text-primary-1 dark:bsc-text-mono-light-1",children:[s&&!t&&v.jsxDEV("div",{children:v.jsxDEV(Ra,{size:16,className:"bsc-cursor-pointer bsc-text-sm",onClick:S},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:423,columnNumber:19},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:422,columnNumber:17},globalThis),v.jsxDEV("div",{className:"bsc-ml-2",children:d||v.jsxDEV(ja,{size:16,className:t?void 0:"bsc-cursor-pointer",onClick:t?void 0:De},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:428,columnNumber:19},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:426,columnNumber:15},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:420,columnNumber:13},globalThis),rightElementClassName:"bsc-justify-center"}:{leftElement:v.jsxDEV("div",{className:"bsc-flex bsc-text-primary-1 dark:bsc-text-mono-light-1",children:[v.jsxDEV("div",{className:"bsc-mr-2",children:d||v.jsxDEV(ja,{size:16,className:t?void 0:"bsc-cursor-pointer",onClick:t?void 0:De},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:444,columnNumber:19},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:442,columnNumber:15},globalThis),s&&!t&&v.jsxDEV("div",{children:v.jsxDEV(Ra,{size:16,className:"bsc-cursor-pointer bsc-text-sm",onClick:S},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:453,columnNumber:19},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:452,columnNumber:17},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:441,columnNumber:13},globalThis),leftElementClassName:"bsc-justify-center"},sn={label:r,readOnly:t,allowClear:s,getValue:wt,onFocus:V,onInput:k,iconPosition:T,iconElement:Dt.rightElement||Dt.leftElement},un=G||((Z,ye)=>v.jsxDEV(v.Fragment,{children:ye},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:473,columnNumber:5},globalThis)),dr=Ze("bsc-text-left",{"bsc-bg-gray-2":t,"bsc-bg-white":!t},"dark:bsc-bg-mono-dark-1 bc-dt-input",i);return v.jsxDEV(an.Provider,{value:L.current,children:v.jsxDEV("div",{className:"bc-date-time",children:[r&&v.jsxDEV("label",{className:"dark:bsc-text-mono-light-1 bc-dt-label",children:r},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:491,columnNumber:19},globalThis),v.jsxDEV(zr,{props:sn,template:un,children:a===!1?v.jsxDEV(Lr,{value:wt(),readOnly:t,className:dr,onFocus:V,onBlur:z,onInput:k,onElementCreate:Z=>ke(Z,!1),...Dt},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:494,columnNumber:13},globalThis):v.jsxDEV(no,{value:wt(),readOnly:t,className:dr,format:A,isInputValid:I,onFocus:V,onBlur:z,onChange:_,onElementCreate:Z=>ke(Z,!0),...Dt},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:505,columnNumber:13},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:492,columnNumber:9},globalThis),v.jsxDEV(Ja,{visible:W,target:Q,shouldTargetCloseOverlay:!1,shouldScrollCloseOverlay:!0,shouldCheckZIndex:!0,shouldRemainOnScreen:!0,hidden:Fe,isClickedWithin:C,unmountWhenHidden:!0,children:v.jsxDEV(v.Fragment,{children:[f.currentSelector===K.DaySelector&&lt&&f.dateInitialized&&w.current&&v.jsxDEV(Ld,{selectedDate:f.selectedDate,viewDate:f.currentViewDate,locale:w.current,showTimeSelector:u===Te.DateTime,selectableDate:E,isValidDate:P,dispatcher:N,onChange:x},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:535,columnNumber:17},globalThis),f.currentSelector===K.MonthSelector&&lt&&f.dateInitialized&&w.current&&v.jsxDEV(Ad,{viewDate:f.currentViewDate,locale:w.current,dateSelection:u,dispatcher:N},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:550,columnNumber:17},globalThis),f.currentSelector===K.YearSelector&&lt&&f.dateInitialized&&w.current&&v.jsxDEV(Yd,{viewDate:f.currentViewDate,locale:w.current,dispatcher:N},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:561,columnNumber:17},globalThis),f.currentSelector===K.TimeSelector&&xt&&f.dateInitialized&&w.current&&v.jsxDEV($d,{viewDate:f.currentViewDate,showDateSelector:u===Te.DateTime,locale:w.current,timeFormat:f.timeFormat,timeConstraints:m,onChange:x,dispatcher:N},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:571,columnNumber:17},globalThis),f.currentSelector===K.DateRangeSelector&&lt&&f.dateInitialized&&w.current&&v.jsxDEV(Fd,{viewDate:f.currentViewDate,selectedStartDate:f.selectedStartDate,selectedEndDate:f.selectedEndDate,locale:w.current,onChange:x,dispatcher:N},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:585,columnNumber:17},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:530,columnNumber:11},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:519,columnNumber:9},globalThis)]},void 0,!0,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:490,columnNumber:7},globalThis)},void 0,!1,{fileName:"/System/Volumes/Data/development/beesoft/beesoft-components/src/components/form/date-time/date-time.component.tsx",lineNumber:489,columnNumber:5},globalThis)},np="";de.ContentEditableInput=Lr,de.DateTime=Wd,de.FormattedInput=no,de.OverlayPanel=Ja,de.applyBeeSoftTheme=pm,de.createBeeSoftTheme=hm,Object.defineProperty(de,Symbol.toStringTag,{value:"Module"})});