@sigtes/ui 0.2.9 → 0.2.11

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.
Files changed (49) hide show
  1. package/dist/components/avatar/Avatar.d.ts +4 -1
  2. package/dist/components/checkbox/Checkbox.d.ts +1 -1
  3. package/dist/components/dialog/Dialog.d.ts +1 -1
  4. package/dist/components/dropdown-menu/Dropdown-Menu.d.ts +1 -1
  5. package/dist/components/form/Form.d.ts +1 -1
  6. package/dist/components/label/Label.d.ts +1 -1
  7. package/dist/components/select/Select.d.ts +1 -1
  8. package/dist/components/separator/Separator.d.ts +1 -1
  9. package/dist/components/table/index.d.ts +2 -2
  10. package/dist/components/tabs/Tabs.d.ts +1 -1
  11. package/dist/components.cjs.js +4 -4397
  12. package/dist/components.es.js +2685 -112392
  13. package/dist/pages.cjs.js +1 -1
  14. package/dist/pages.es.js +7 -8
  15. package/dist/providers.es-DW20XFKL.cjs +43 -0
  16. package/dist/providers.es-DkWBRd2l.js +2362 -0
  17. package/dist/utils/index.d.ts +1 -0
  18. package/package.json +6 -17
  19. package/dist/Button-BOLYI9iw.js +0 -69
  20. package/dist/Button-ObM8zTKC.cjs +0 -1
  21. package/dist/UserProvider-Sov75KqP.cjs +0 -22
  22. package/dist/UserProvider-ultyW1kJ.js +0 -395
  23. package/dist/hooks/index.d.ts +0 -6
  24. package/dist/hooks/useAuthorization/index.d.ts +0 -1
  25. package/dist/hooks/useAuthorization/useAuthorization.d.ts +0 -2
  26. package/dist/hooks/useErrors/index.d.ts +0 -1
  27. package/dist/hooks/useErrors/useErrors.d.ts +0 -13
  28. package/dist/hooks/useFormState/index.d.ts +0 -1
  29. package/dist/hooks/useFormState/useFormState.d.ts +0 -18
  30. package/dist/hooks/useQuery/index.d.ts +0 -1
  31. package/dist/hooks/useQuery/useQuery.d.ts +0 -9
  32. package/dist/hooks.cjs.js +0 -1
  33. package/dist/hooks.es.js +0 -73
  34. package/dist/locale-provider-TirFJhph.cjs +0 -1
  35. package/dist/locale-provider-XVCCI6ZB.js +0 -831
  36. package/dist/models/date/date.d.ts +0 -26
  37. package/dist/models/date/index.d.ts +0 -1
  38. package/dist/models/index.d.ts +0 -1
  39. package/dist/models.cjs.js +0 -1
  40. package/dist/models.es.js +0 -170
  41. package/dist/providers/index.d.ts +0 -3
  42. package/dist/providers/locale-provider/index.d.ts +0 -1
  43. package/dist/providers/locale-provider/locale-provider.d.ts +0 -11
  44. package/dist/providers/theme-provider/ThemeProvider.d.ts +0 -3
  45. package/dist/providers/theme-provider/index.d.ts +0 -2
  46. package/dist/providers/user-provider/UserProvider.d.ts +0 -25
  47. package/dist/providers/user-provider/index.d.ts +0 -1
  48. package/dist/providers.cjs.js +0 -1
  49. package/dist/providers.es.js +0 -21
package/dist/pages.cjs.js CHANGED
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./UserProvider-Sov75KqP.cjs"),i=require("react"),n=require("./Button-ObM8zTKC.cjs");function o({error:s,reset:r,router:t}){return i.useEffect(()=>{console.error(s)},[s]),e.jsxRuntimeExports.jsx("div",{className:"h-screen w-screen flex",children:e.jsxRuntimeExports.jsxs("div",{className:"m-auto flex flex-col gap-3",children:[e.jsxRuntimeExports.jsxs("div",{className:"inline-flex gap-5 items-center",children:[e.jsxRuntimeExports.jsx("h1",{className:"text-2xl border-r-1 p-4",children:"500"}),e.jsxRuntimeExports.jsx("h1",{children:"Um erro ocorreu!"})]}),e.jsxRuntimeExports.jsx(n.Button,{onClick:()=>{r(),t.replace("/")},children:"Voltar ao Início"})]})})}function x({router:s}){const{user:r,logout:t}=e.useUser();return i.useEffect(()=>{r.id===""&&s.push("/login")}),e.jsxRuntimeExports.jsx("div",{className:"h-screen w-screen flex",children:e.jsxRuntimeExports.jsxs("div",{className:"m-auto flex flex-col gap-3",children:[e.jsxRuntimeExports.jsxs("div",{className:"inline-flex gap-5 items-center",children:[e.jsxRuntimeExports.jsx("h1",{className:"text-2xl border-r-1 p-4",children:"403"}),e.jsxRuntimeExports.jsx("h1",{children:"Acesso Negado"})]}),e.jsxRuntimeExports.jsx(n.Button,{variant:"destructive",onClick:()=>{(async()=>await t())()},children:"Logout"})]})})}function c({router:s}){return e.jsxRuntimeExports.jsx("div",{className:"h-screen w-screen flex",children:e.jsxRuntimeExports.jsxs("div",{className:"m-auto flex flex-col gap-3",children:[e.jsxRuntimeExports.jsxs("div",{className:"inline-flex gap-5 items-center",children:[e.jsxRuntimeExports.jsx("h1",{className:"text-2xl border-r-1 p-4",children:"404"}),e.jsxRuntimeExports.jsx("h1",{children:"Página não encontrada"})]}),e.jsxRuntimeExports.jsx(n.Button,{onClick:()=>s.replace("/"),children:"Voltar ao Início"})]})})}exports.Error=o;exports.Forbidden=x;exports.NotFoundPage=c;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./providers.es-DW20XFKL.cjs"),n=require("react");function i({error:s,reset:r,router:t}){return n.useEffect(()=>{console.error(s)},[s]),e.jsxRuntimeExports.jsx("div",{className:"h-screen w-screen flex",children:e.jsxRuntimeExports.jsxs("div",{className:"m-auto flex flex-col gap-3",children:[e.jsxRuntimeExports.jsxs("div",{className:"inline-flex gap-5 items-center",children:[e.jsxRuntimeExports.jsx("h1",{className:"text-2xl border-r-1 p-4",children:"500"}),e.jsxRuntimeExports.jsx("h1",{children:"Um erro ocorreu!"})]}),e.jsxRuntimeExports.jsx(e.Button,{onClick:()=>{r(),t.replace("/")},children:"Voltar ao Início"})]})})}function o({router:s}){const{user:r,logout:t}=e._e();return n.useEffect(()=>{r.id===""&&s.push("/login")}),e.jsxRuntimeExports.jsx("div",{className:"h-screen w-screen flex",children:e.jsxRuntimeExports.jsxs("div",{className:"m-auto flex flex-col gap-3",children:[e.jsxRuntimeExports.jsxs("div",{className:"inline-flex gap-5 items-center",children:[e.jsxRuntimeExports.jsx("h1",{className:"text-2xl border-r-1 p-4",children:"403"}),e.jsxRuntimeExports.jsx("h1",{children:"Acesso Negado"})]}),e.jsxRuntimeExports.jsx(e.Button,{variant:"destructive",onClick:()=>{(async()=>await t())()},children:"Logout"})]})})}function x({router:s}){return e.jsxRuntimeExports.jsx("div",{className:"h-screen w-screen flex",children:e.jsxRuntimeExports.jsxs("div",{className:"m-auto flex flex-col gap-3",children:[e.jsxRuntimeExports.jsxs("div",{className:"inline-flex gap-5 items-center",children:[e.jsxRuntimeExports.jsx("h1",{className:"text-2xl border-r-1 p-4",children:"404"}),e.jsxRuntimeExports.jsx("h1",{children:"Página não encontrada"})]}),e.jsxRuntimeExports.jsx(e.Button,{onClick:()=>s.replace("/"),children:"Voltar ao Início"})]})})}exports.Error=i;exports.Forbidden=o;exports.NotFoundPage=x;
package/dist/pages.es.js CHANGED
@@ -1,8 +1,7 @@
1
1
  "use client";
2
- import { j as e, u as i } from "./UserProvider-ultyW1kJ.js";
2
+ import { j as e, B as c, _ as i } from "./providers.es-DkWBRd2l.js";
3
3
  import { useEffect as n } from "react";
4
- import { B as c } from "./Button-BOLYI9iw.js";
5
- function x({
4
+ function t({
6
5
  error: s,
7
6
  reset: r,
8
7
  router: l
@@ -25,7 +24,7 @@ function x({
25
24
  )
26
25
  ] }) });
27
26
  }
28
- function d({ router: s }) {
27
+ function x({ router: s }) {
29
28
  const { user: r, logout: l } = i();
30
29
  return n(() => {
31
30
  r.id === "" && s.push("/login");
@@ -46,7 +45,7 @@ function d({ router: s }) {
46
45
  )
47
46
  ] }) });
48
47
  }
49
- function h({ router: s }) {
48
+ function d({ router: s }) {
50
49
  return /* @__PURE__ */ e.jsx("div", { className: "h-screen w-screen flex", children: /* @__PURE__ */ e.jsxs("div", { className: "m-auto flex flex-col gap-3", children: [
51
50
  /* @__PURE__ */ e.jsxs("div", { className: "inline-flex gap-5 items-center", children: [
52
51
  /* @__PURE__ */ e.jsx("h1", { className: "text-2xl border-r-1 p-4", children: "404" }),
@@ -56,7 +55,7 @@ function h({ router: s }) {
56
55
  ] }) });
57
56
  }
58
57
  export {
59
- x as Error,
60
- d as Forbidden,
61
- h as NotFoundPage
58
+ t as Error,
59
+ x as Forbidden,
60
+ d as NotFoundPage
62
61
  };
@@ -0,0 +1,43 @@
1
+ "use client";"use strict";const U=require("react"),ne=require("@radix-ui/react-slot"),ae=require("class-variance-authority"),oe=require("tailwind-merge");require("next-themes");var lt={exports:{}},K={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Mt;function ie(){if(Mt)return K;Mt=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(t,a,i){var s=null;if(i!==void 0&&(s=""+i),a.key!==void 0&&(s=""+a.key),"key"in a){i={};for(var c in a)c!=="key"&&(i[c]=a[c])}else i=a;return a=i.ref,{$$typeof:e,type:t,key:s,ref:a!==void 0?a:null,props:i}}return K.Fragment=r,K.jsx=n,K.jsxs=n,K}var tt={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Tt;function se(){return Tt||(Tt=1,process.env.NODE_ENV!=="production"&&(function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===yt?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case D:return"Fragment";case P:return"Profiler";case A:return"StrictMode";case ht:return"Suspense";case mt:return"SuspenseList";case pt:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case H:return"Portal";case E:return(o.displayName||"Context")+".Provider";case q:return(o._context.displayName||"Context")+".Consumer";case ft:var u=o.render;return o=o.displayName,o||(o=u.displayName||u.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case gt:return u=o.displayName||null,u!==null?u:e(o.type)||"Memo";case Z:u=o._payload,o=o._init;try{return e(o(u))}catch{}}return null}function r(o){return""+o}function n(o){try{r(o);var u=!1}catch{u=!0}if(u){u=console;var l=u.error,d=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return l.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",d),r(o)}}function t(o){if(o===D)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===Z)return"<...>";try{var u=e(o);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function a(){var o=N.A;return o===null?null:o.getOwner()}function i(){return Error("react-stack-top-frame")}function s(o){if(B.call(o,"key")){var u=Object.getOwnPropertyDescriptor(o,"key").get;if(u&&u.isReactWarning)return!1}return o.key!==void 0}function c(o,u){function l(){G||(G=!0,console.error("%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://react.dev/link/special-props)",u))}l.isReactWarning=!0,Object.defineProperty(o,"key",{get:l,configurable:!0})}function m(){var o=e(this.type);return X[o]||(X[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function w(o,u,l,d,S,b,Y,j){return l=b.ref,o={$$typeof:O,type:o,key:u,props:b,_owner:S},(l!==void 0?l:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:m}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function y(o,u,l,d,S,b,Y,j){var f=u.children;if(f!==void 0)if(d)if(bt(f)){for(d=0;d<f.length;d++)g(f[d]);Object.freeze&&Object.freeze(f)}else console.error("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 g(f);if(B.call(u,"key")){f=e(o);var M=Object.keys(u).filter(function(vt){return vt!=="key"});d=0<M.length?"{key: someKey, "+M.join(": ..., ")+": ...}":"{key: someKey}",V[f+d]||(M=0<M.length?"{"+M.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
+ let props = %s;
19
+ <%s {...props} />
20
+ React keys must be passed directly to JSX without using spread:
21
+ let props = %s;
22
+ <%s key={someKey} {...props} />`,d,f,M,f),V[f+d]=!0)}if(f=null,l!==void 0&&(n(l),f=""+l),s(u)&&(n(u.key),f=""+u.key),"key"in u){l={};for(var _ in u)_!=="key"&&(l[_]=u[_])}else l=u;return f&&c(l,typeof o=="function"?o.displayName||o.name||"Unknown":o),w(o,f,b,S,a(),l,Y,j)}function g(o){typeof o=="object"&&o!==null&&o.$$typeof===O&&o._store&&(o._store.validated=1)}var k=U,O=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),E=Symbol.for("react.context"),ft=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),mt=Symbol.for("react.suspense_list"),gt=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),pt=Symbol.for("react.activity"),yt=Symbol.for("react.client.reference"),N=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,bt=Array.isArray,C=console.createTask?console.createTask:function(){return null};k={react_stack_bottom_frame:function(o){return o()}};var G,X={},Q=k.react_stack_bottom_frame.bind(k,i)(),J=C(t(i)),V={};tt.Fragment=D,tt.jsx=function(o,u,l,d,S){var b=1e4>N.recentlyCreatedOwnerStacks++;return y(o,u,l,!1,d,S,b?Error("react-stack-top-frame"):Q,b?C(t(o)):J)},tt.jsxs=function(o,u,l,d,S){var b=1e4>N.recentlyCreatedOwnerStacks++;return y(o,u,l,!0,d,S,b?Error("react-stack-top-frame"):Q,b?C(t(o)):J)}})()),tt}var Ot;function ue(){return Ot||(Ot=1,process.env.NODE_ENV==="production"?lt.exports=ie():lt.exports=se()),lt.exports}var At=ue();const $t=ae.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Lt(e){var r,n,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(n=Lt(e[r]))&&(t&&(t+=" "),t+=n)}else for(n in e)e[n]&&(t&&(t+=" "),t+=n);return t}function ce(){for(var e,r,n=0,t="",a=arguments.length;n<a;n++)(e=arguments[n])&&(r=Lt(e))&&(t&&(t+=" "),t+=r);return t}function zt(...e){return oe.twMerge(ce(e))}function le({className:e,variant:r,size:n,asChild:t=!1,...a}){const i=t?ne.Slot:"button";return At.jsx(i,{"data-slot":"button",className:zt($t({variant:r,size:n,className:e})),...a})}var wt={exports:{}},et={};/**
23
+ * @license React
24
+ * react-jsx-runtime.production.js
25
+ *
26
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */var Dt;function de(){if(Dt)return et;Dt=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(t,a,i){var s=null;if(i!==void 0&&(s=""+i),a.key!==void 0&&(s=""+a.key),"key"in a){i={};for(var c in a)c!=="key"&&(i[c]=a[c])}else i=a;return a=i.ref,{$$typeof:e,type:t,key:s,ref:a!==void 0?a:null,props:i}}return et.Fragment=r,et.jsx=n,et.jsxs=n,et}var dt={};/**
31
+ * @license React
32
+ * react-jsx-runtime.development.js
33
+ *
34
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */var xt;function fe(){return xt||(xt=1,process.env.NODE_ENV!=="production"&&(function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===yt?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case D:return"Fragment";case P:return"Profiler";case A:return"StrictMode";case ht:return"Suspense";case mt:return"SuspenseList";case pt:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case H:return"Portal";case E:return(o.displayName||"Context")+".Provider";case q:return(o._context.displayName||"Context")+".Consumer";case ft:var u=o.render;return o=o.displayName,o||(o=u.displayName||u.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case gt:return u=o.displayName||null,u!==null?u:e(o.type)||"Memo";case Z:u=o._payload,o=o._init;try{return e(o(u))}catch{}}return null}function r(o){return""+o}function n(o){try{r(o);var u=!1}catch{u=!0}if(u){u=console;var l=u.error,d=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return l.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",d),r(o)}}function t(o){if(o===D)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===Z)return"<...>";try{var u=e(o);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function a(){var o=N.A;return o===null?null:o.getOwner()}function i(){return Error("react-stack-top-frame")}function s(o){if(B.call(o,"key")){var u=Object.getOwnPropertyDescriptor(o,"key").get;if(u&&u.isReactWarning)return!1}return o.key!==void 0}function c(o,u){function l(){G||(G=!0,console.error("%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://react.dev/link/special-props)",u))}l.isReactWarning=!0,Object.defineProperty(o,"key",{get:l,configurable:!0})}function m(){var o=e(this.type);return X[o]||(X[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function w(o,u,l,d,S,b,Y,j){return l=b.ref,o={$$typeof:O,type:o,key:u,props:b,_owner:S},(l!==void 0?l:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:m}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:j}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function y(o,u,l,d,S,b,Y,j){var f=u.children;if(f!==void 0)if(d)if(bt(f)){for(d=0;d<f.length;d++)g(f[d]);Object.freeze&&Object.freeze(f)}else console.error("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 g(f);if(B.call(u,"key")){f=e(o);var M=Object.keys(u).filter(function(vt){return vt!=="key"});d=0<M.length?"{key: someKey, "+M.join(": ..., ")+": ...}":"{key: someKey}",V[f+d]||(M=0<M.length?"{"+M.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
39
+ let props = %s;
40
+ <%s {...props} />
41
+ React keys must be passed directly to JSX without using spread:
42
+ let props = %s;
43
+ <%s key={someKey} {...props} />`,d,f,M,f),V[f+d]=!0)}if(f=null,l!==void 0&&(n(l),f=""+l),s(u)&&(n(u.key),f=""+u.key),"key"in u){l={};for(var _ in u)_!=="key"&&(l[_]=u[_])}else l=u;return f&&c(l,typeof o=="function"?o.displayName||o.name||"Unknown":o),w(o,f,b,S,a(),l,Y,j)}function g(o){typeof o=="object"&&o!==null&&o.$$typeof===O&&o._store&&(o._store.validated=1)}var k=U,O=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),E=Symbol.for("react.context"),ft=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),mt=Symbol.for("react.suspense_list"),gt=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),pt=Symbol.for("react.activity"),yt=Symbol.for("react.client.reference"),N=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,bt=Array.isArray,C=console.createTask?console.createTask:function(){return null};k={react_stack_bottom_frame:function(o){return o()}};var G,X={},Q=k.react_stack_bottom_frame.bind(k,i)(),J=C(t(i)),V={};dt.Fragment=D,dt.jsx=function(o,u,l,d,S){var b=1e4>N.recentlyCreatedOwnerStacks++;return y(o,u,l,!1,d,S,b?Error("react-stack-top-frame"):Q,b?C(t(o)):J)},dt.jsxs=function(o,u,l,d,S){var b=1e4>N.recentlyCreatedOwnerStacks++;return y(o,u,l,!0,d,S,b?Error("react-stack-top-frame"):Q,b?C(t(o)):J)}})()),dt}var Pt;function he(){return Pt||(Pt=1,process.env.NODE_ENV==="production"?wt.exports=de():wt.exports=fe()),wt.exports}he();const me={id:"",username:"",email:"",created_at:null,updated_at:null,features:[]},ge=U.createContext({user:me,isLoading:!0,fetchUser:async()=>{},logout:async()=>{},login:async()=>!1});function pe(){return U.useContext(ge)}function kt(e){return(r={})=>{const n=r.width?String(r.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function rt(e){return(r,n)=>{const t=n?.context?String(n.context):"standalone";let a;if(t==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n?.width?String(n.width):s;a=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n?.width?String(n.width):e.defaultWidth;a=e.values[c]||e.values[s]}const i=e.argumentCallback?e.argumentCallback(r):r;return a[i]}}function nt(e){return(r,n={})=>{const t=n.width,a=t&&e.matchPatterns[t]||e.matchPatterns[e.defaultMatchWidth],i=r.match(a);if(!i)return null;const s=i[0],c=t&&e.parsePatterns[t]||e.parsePatterns[e.defaultParseWidth],m=Array.isArray(c)?be(c,g=>g.test(s)):ye(c,g=>g.test(s));let w;w=e.valueCallback?e.valueCallback(m):m,w=n.valueCallback?n.valueCallback(w):w;const y=r.slice(s.length);return{value:w,rest:y}}}function ye(e,r){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&r(e[n]))return n}function be(e,r){for(let n=0;n<e.length;n++)if(r(e[n]))return n}function ve(e){return(r,n={})=>{const t=r.match(e.matchPattern);if(!t)return null;const a=t[0],i=r.match(e.parsePattern);if(!i)return null;let s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;const c=r.slice(a.length);return{value:s,rest:c}}}const Ut=6048e5,we=864e5,Et=Symbol.for("constructDateFrom");function v(e,r){return typeof e=="function"?e(r):e&&typeof e=="object"&&Et in e?e[Et](r):e instanceof Date?new e.constructor(r):new Date(r)}function I(e,...r){const n=v.bind(null,r.find(t=>typeof t=="object"));return r.map(n)}let ke={};function ct(){return ke}function p(e,r){return v(r||e,e)}function z(e,r){const n=ct(),t=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=p(e,r?.in),i=a.getDay(),s=(i<t?7:0)+i-t;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}const Se={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"}},Me=(e,r,n)=>{let t;const a=Se[e];return typeof a=="string"?t=a:r===1?t=a.one:t=a.other.replace("{{count}}",r.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+t:t+" ago":t},Te={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Oe=(e,r,n,t)=>Te[e],De={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},xe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Pe={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"]},Ee={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"]},Ne={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"}},Ce={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"}},Ye=(e,r)=>{const n=Number(e),t=n%100;if(t>20||t<10)switch(t%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},je={ordinalNumber:Ye,era:rt({values:De,defaultWidth:"wide"}),quarter:rt({values:xe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:rt({values:Pe,defaultWidth:"wide"}),day:rt({values:Ee,defaultWidth:"wide"}),dayPeriod:rt({values:Ne,defaultWidth:"wide",formattingValues:Ce,defaultFormattingWidth:"wide"})},_e=/^(\d+)(th|st|nd|rd)?/i,We=/\d+/i,Re={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},Fe={any:[/^b/i,/^(a|c)/i]},Ae={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$e={any:[/1/i,/2/i,/3/i,/4/i]},Le={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},ze={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]},Ue={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},Ie={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]},He={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},qe={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}},Ze={ordinalNumber:ve({matchPattern:_e,parsePattern:We,valueCallback:e=>parseInt(e,10)}),era:nt({matchPatterns:Re,defaultMatchWidth:"wide",parsePatterns:Fe,defaultParseWidth:"any"}),quarter:nt({matchPatterns:Ae,defaultMatchWidth:"wide",parsePatterns:$e,defaultParseWidth:"any",valueCallback:e=>e+1}),month:nt({matchPatterns:Le,defaultMatchWidth:"wide",parsePatterns:ze,defaultParseWidth:"any"}),day:nt({matchPatterns:Ue,defaultMatchWidth:"wide",parsePatterns:Ie,defaultParseWidth:"any"}),dayPeriod:nt({matchPatterns:He,defaultMatchWidth:"any",parsePatterns:qe,defaultParseWidth:"any"})},Be={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ge={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Xe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Qe={date:kt({formats:Be,defaultWidth:"full"}),time:kt({formats:Ge,defaultWidth:"full"}),dateTime:kt({formats:Xe,defaultWidth:"full"})},L={code:"en-US",formatDistance:Me,formatLong:Qe,formatRelative:Oe,localize:je,match:Ze,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Je(e,r,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(r).split(/\s/g).slice(2).join(" ")}const Ve={},at={};function R(e,r){try{const n=(Ve[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(r).split("GMT")[1];return n in at?at[n]:Nt(n,n.split(":"))}catch{if(e in at)return at[e];const n=e?.match(Ke);return n?Nt(e,n.slice(1)):NaN}}const Ke=/([+-]\d\d):?(\d\d)?/;function Nt(e,r){const n=+(r[0]||0),t=+(r[1]||0),a=+(r[2]||0)/60;return at[e]=n*60+t>0?n*60+t+a:n*60-t-a}class T extends Date{constructor(...r){super(),r.length>1&&typeof r[r.length-1]=="string"&&(this.timeZone=r.pop()),this.internal=new Date,isNaN(R(this.timeZone,this))?this.setTime(NaN):r.length?typeof r[0]=="number"&&(r.length===1||r.length===2&&typeof r[1]!="number")?this.setTime(r[0]):typeof r[0]=="string"?this.setTime(+new Date(r[0])):r[0]instanceof Date?this.setTime(+r[0]):(this.setTime(+new Date(...r)),It(this),St(this)):this.setTime(Date.now())}static tz(r,...n){return n.length?new T(...n,r):new T(Date.now(),r)}withTimeZone(r){return new T(+this,r)}getTimezoneOffset(){const r=-R(this.timeZone,this);return r>0?Math.floor(r):Math.ceil(r)}setTime(r){return Date.prototype.setTime.apply(this,arguments),St(this),+this}[Symbol.for("constructDateFrom")](r){return new T(+new Date(r),this.timeZone)}}const Ct=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Ct.test(e))return;const r=e.replace(Ct,"$1UTC");T.prototype[r]&&(e.startsWith("get")?T.prototype[e]=function(){return this.internal[r]()}:(T.prototype[e]=function(){return Date.prototype[r].apply(this.internal,arguments),tr(this),+this},T.prototype[r]=function(){return Date.prototype[r].apply(this,arguments),St(this),+this}))});function St(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-R(e.timeZone,e)*60))}function tr(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),It(e)}function It(e){const r=R(e.timeZone,e),n=r>0?Math.floor(r):Math.ceil(r),t=new Date(+e);t.setUTCHours(t.getUTCHours()-1);const a=-new Date(+e).getTimezoneOffset(),i=-new Date(+t).getTimezoneOffset(),s=a-i,c=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();s&&c&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+s);const m=a-n;m&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+m);const w=new Date(+e);w.setUTCSeconds(0);const y=a>0?w.getSeconds():(w.getSeconds()-60)%60,g=Math.round(-(R(e.timeZone,e)*60))%60;(g||y)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+g),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+g+y));const k=R(e.timeZone,e),O=k>0?Math.floor(k):Math.ceil(k),H=-new Date(+e).getTimezoneOffset()-O,D=O!==n,A=H-m;if(D&&A){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+A);const P=R(e.timeZone,e),q=P>0?Math.floor(P):Math.ceil(P),E=O-q;E&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+E),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+E))}}class F extends T{static tz(r,...n){return n.length?new F(...n,r):new F(Date.now(),r)}toISOString(){const[r,n,t]=this.tzComponents(),a=`${r}${n}:${t}`;return this.internal.toISOString().slice(0,-1)+a}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[r,n,t,a]=this.internal.toUTCString().split(" ");return`${r?.slice(0,-1)} ${t} ${n} ${a}`}toTimeString(){const r=this.internal.toUTCString().split(" ")[4],[n,t,a]=this.tzComponents();return`${r} GMT${n}${t}${a} (${Je(this.timeZone,this)})`}toLocaleString(r,n){return Date.prototype.toLocaleString.call(this,r,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(r,n){return Date.prototype.toLocaleDateString.call(this,r,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(r,n){return Date.prototype.toLocaleTimeString.call(this,r,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const r=this.getTimezoneOffset(),n=r>0?"-":"+",t=String(Math.floor(Math.abs(r)/60)).padStart(2,"0"),a=String(Math.abs(r)%60).padStart(2,"0");return[n,t,a]}withTimeZone(r){return new F(+this,r)}[Symbol.for("constructDateFrom")](r){return new F(+new Date(r),this.timeZone)}}function Ht(e,r,n){const t=p(e,n?.in);return isNaN(r)?v(e,NaN):(r&&t.setDate(t.getDate()+r),t)}function qt(e,r,n){const t=p(e,n?.in);if(isNaN(r))return v(e,NaN);if(!r)return t;const a=t.getDate(),i=v(e,t.getTime());i.setMonth(t.getMonth()+r+1,0);const s=i.getDate();return a>=s?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function it(e,r){return z(e,{...r,weekStartsOn:1})}function Zt(e,r){const n=p(e,r?.in),t=n.getFullYear(),a=v(n,0);a.setFullYear(t+1,0,4),a.setHours(0,0,0,0);const i=it(a),s=v(n,0);s.setFullYear(t,0,4),s.setHours(0,0,0,0);const c=it(s);return n.getTime()>=i.getTime()?t+1:n.getTime()>=c.getTime()?t:t-1}function Yt(e){const r=p(e),n=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return n.setUTCFullYear(r.getFullYear()),+e-+n}function st(e,r){const n=p(e,r?.in);return n.setHours(0,0,0,0),n}function Bt(e,r,n){const[t,a]=I(n?.in,e,r),i=st(t),s=st(a),c=+i-Yt(i),m=+s-Yt(s);return Math.round((c-m)/we)}function er(e,r){const n=Zt(e,r),t=v(e,0);return t.setFullYear(n,0,4),t.setHours(0,0,0,0),it(t)}function rr(e,r,n){return Ht(e,r*7,n)}function nr(e,r,n){return qt(e,r*12,n)}function ar(e,r){let n,t=r?.in;return e.forEach(a=>{!t&&typeof a=="object"&&(t=v.bind(null,a));const i=p(a,t);(!n||n<i||isNaN(+i))&&(n=i)}),v(t,n||NaN)}function or(e,r){let n,t=r?.in;return e.forEach(a=>{!t&&typeof a=="object"&&(t=v.bind(null,a));const i=p(a,t);(!n||n>i||isNaN(+i))&&(n=i)}),v(t,n||NaN)}function ir(e,r,n){const[t,a]=I(n?.in,e,r);return+st(t)==+st(a)}function Gt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function sr(e){return!(!Gt(e)&&typeof e!="number"||isNaN(+p(e)))}function ur(e,r,n){const[t,a]=I(n?.in,e,r),i=t.getFullYear()-a.getFullYear(),s=t.getMonth()-a.getMonth();return i*12+s}function cr(e,r){const n=p(e,r?.in),t=n.getMonth();return n.setFullYear(n.getFullYear(),t+1,0),n.setHours(23,59,59,999),n}function Xt(e,r){const[n,t]=I(e,r.start,r.end);return{start:n,end:t}}function lr(e,r){const{start:n,end:t}=Xt(r?.in,e);let a=+n>+t;const i=a?+n:+t,s=a?t:n;s.setHours(0,0,0,0),s.setDate(1);let c=1;const m=[];for(;+s<=i;)m.push(v(n,s)),s.setMonth(s.getMonth()+c);return a?m.reverse():m}function dr(e,r){const n=p(e,r?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function fr(e,r){const n=p(e,r?.in),t=n.getFullYear();return n.setFullYear(t+1,0,0),n.setHours(23,59,59,999),n}function Qt(e,r){const n=p(e,r?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function hr(e,r){const{start:n,end:t}=Xt(r?.in,e);let a=+n>+t;const i=a?+n:+t,s=a?t:n;s.setHours(0,0,0,0),s.setMonth(0,1);let c=1;const m=[];for(;+s<=i;)m.push(v(n,s)),s.setFullYear(s.getFullYear()+c);return a?m.reverse():m}function Jt(e,r){const n=ct(),t=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=p(e,r?.in),i=a.getDay(),s=(i<t?-7:0)+6-(i-t);return a.setDate(a.getDate()+s),a.setHours(23,59,59,999),a}function mr(e,r){return Jt(e,{...r,weekStartsOn:1})}function gr(e,r){const n=p(e,r?.in);return Bt(n,Qt(n))+1}function Vt(e,r){const n=p(e,r?.in),t=+it(n)-+er(n);return Math.round(t/Ut)+1}function Kt(e,r){const n=p(e,r?.in),t=n.getFullYear(),a=ct(),i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=v(r?.in||e,0);s.setFullYear(t+1,0,i),s.setHours(0,0,0,0);const c=z(s,r),m=v(r?.in||e,0);m.setFullYear(t,0,i),m.setHours(0,0,0,0);const w=z(m,r);return+n>=+c?t+1:+n>=+w?t:t-1}function pr(e,r){const n=ct(),t=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=Kt(e,r),i=v(r?.in||e,0);return i.setFullYear(a,0,t),i.setHours(0,0,0,0),z(i,r)}function te(e,r){const n=p(e,r?.in),t=+z(n,r)-+pr(n,r);return Math.round(t/Ut)+1}function h(e,r){const n=e<0?"-":"",t=Math.abs(e).toString().padStart(r,"0");return n+t}const x={y(e,r){const n=e.getFullYear(),t=n>0?n:1-n;return h(r==="yy"?t%100:t,r.length)},M(e,r){const n=e.getMonth();return r==="M"?String(n+1):h(n+1,2)},d(e,r){return h(e.getDate(),r.length)},a(e,r){const n=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,r){return h(e.getHours()%12||12,r.length)},H(e,r){return h(e.getHours(),r.length)},m(e,r){return h(e.getMinutes(),r.length)},s(e,r){return h(e.getSeconds(),r.length)},S(e,r){const n=r.length,t=e.getMilliseconds(),a=Math.trunc(t*Math.pow(10,n-3));return h(a,r.length)}},$={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},jt={G:function(e,r,n){const t=e.getFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})}},y:function(e,r,n){if(r==="yo"){const t=e.getFullYear(),a=t>0?t:1-t;return n.ordinalNumber(a,{unit:"year"})}return x.y(e,r)},Y:function(e,r,n,t){const a=Kt(e,t),i=a>0?a:1-a;if(r==="YY"){const s=i%100;return h(s,2)}return r==="Yo"?n.ordinalNumber(i,{unit:"year"}):h(i,r.length)},R:function(e,r){const n=Zt(e);return h(n,r.length)},u:function(e,r){const n=e.getFullYear();return h(n,r.length)},Q:function(e,r,n){const t=Math.ceil((e.getMonth()+1)/3);switch(r){case"Q":return String(t);case"QQ":return h(t,2);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})}},q:function(e,r,n){const t=Math.ceil((e.getMonth()+1)/3);switch(r){case"q":return String(t);case"qq":return h(t,2);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})}},M:function(e,r,n){const t=e.getMonth();switch(r){case"M":case"MM":return x.M(e,r);case"Mo":return n.ordinalNumber(t+1,{unit:"month"});case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})}},L:function(e,r,n){const t=e.getMonth();switch(r){case"L":return String(t+1);case"LL":return h(t+1,2);case"Lo":return n.ordinalNumber(t+1,{unit:"month"});case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})}},w:function(e,r,n,t){const a=te(e,t);return r==="wo"?n.ordinalNumber(a,{unit:"week"}):h(a,r.length)},I:function(e,r,n){const t=Vt(e);return r==="Io"?n.ordinalNumber(t,{unit:"week"}):h(t,r.length)},d:function(e,r,n){return r==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):x.d(e,r)},D:function(e,r,n){const t=gr(e);return r==="Do"?n.ordinalNumber(t,{unit:"dayOfYear"}):h(t,r.length)},E:function(e,r,n){const t=e.getDay();switch(r){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})}},e:function(e,r,n,t){const a=e.getDay(),i=(a-t.weekStartsOn+8)%7||7;switch(r){case"e":return String(i);case"ee":return h(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,r,n,t){const a=e.getDay(),i=(a-t.weekStartsOn+8)%7||7;switch(r){case"c":return String(i);case"cc":return h(i,r.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,r,n){const t=e.getDay(),a=t===0?7:t;switch(r){case"i":return String(a);case"ii":return h(a,r.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(t,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(t,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(t,{width:"short",context:"formatting"});case"iiii":default:return n.day(t,{width:"wide",context:"formatting"})}},a:function(e,r,n){const t=e.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})}},b:function(e,r,n){const t=e.getHours();let a;switch(t===12?a=$.noon:t===0?a=$.midnight:a=t/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,r,n){const t=e.getHours();let a;switch(t>=17?a=$.evening:t>=12?a=$.afternoon:t>=4?a=$.morning:a=$.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,r,n){if(r==="ho"){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return x.h(e,r)},H:function(e,r,n){return r==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):x.H(e,r)},K:function(e,r,n){const t=e.getHours()%12;return r==="Ko"?n.ordinalNumber(t,{unit:"hour"}):h(t,r.length)},k:function(e,r,n){let t=e.getHours();return t===0&&(t=24),r==="ko"?n.ordinalNumber(t,{unit:"hour"}):h(t,r.length)},m:function(e,r,n){return r==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):x.m(e,r)},s:function(e,r,n){return r==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):x.s(e,r)},S:function(e,r){return x.S(e,r)},X:function(e,r,n){const t=e.getTimezoneOffset();if(t===0)return"Z";switch(r){case"X":return Wt(t);case"XXXX":case"XX":return W(t);case"XXXXX":case"XXX":default:return W(t,":")}},x:function(e,r,n){const t=e.getTimezoneOffset();switch(r){case"x":return Wt(t);case"xxxx":case"xx":return W(t);case"xxxxx":case"xxx":default:return W(t,":")}},O:function(e,r,n){const t=e.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+_t(t,":");case"OOOO":default:return"GMT"+W(t,":")}},z:function(e,r,n){const t=e.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+_t(t,":");case"zzzz":default:return"GMT"+W(t,":")}},t:function(e,r,n){const t=Math.trunc(+e/1e3);return h(t,r.length)},T:function(e,r,n){return h(+e,r.length)}};function _t(e,r=""){const n=e>0?"-":"+",t=Math.abs(e),a=Math.trunc(t/60),i=t%60;return i===0?n+String(a):n+String(a)+r+h(i,2)}function Wt(e,r){return e%60===0?(e>0?"-":"+")+h(Math.abs(e)/60,2):W(e,r)}function W(e,r=""){const n=e>0?"-":"+",t=Math.abs(e),a=h(Math.trunc(t/60),2),i=h(t%60,2);return n+a+r+i}const Rt=(e,r)=>{switch(e){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"})}},ee=(e,r)=>{switch(e){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"})}},yr=(e,r)=>{const n=e.match(/(P+)(p+)?/)||[],t=n[1],a=n[2];if(!a)return Rt(e,r);let i;switch(t){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;case"PPPP":default:i=r.dateTime({width:"full"});break}return i.replace("{{date}}",Rt(t,r)).replace("{{time}}",ee(a,r))},br={p:ee,P:yr},vr=/^D+$/,wr=/^Y+$/,kr=["D","DD","YY","YYYY"];function Sr(e){return vr.test(e)}function Mr(e){return wr.test(e)}function Tr(e,r,n){const t=Or(e,r,n);if(console.warn(t),kr.includes(e))throw new RangeError(t)}function Or(e,r,n){const t=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${r}\`) for formatting ${t} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Dr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pr=/^'([^]*?)'?$/,Er=/''/g,Nr=/[a-zA-Z]/;function ot(e,r,n){const t=ct(),a=n?.locale??t.locale??L,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??t.firstWeekContainsDate??t.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,c=p(e,n?.in);if(!sr(c))throw new RangeError("Invalid time value");let m=r.match(xr).map(y=>{const g=y[0];if(g==="p"||g==="P"){const k=br[g];return k(y,a.formatLong)}return y}).join("").match(Dr).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const g=y[0];if(g==="'")return{isToken:!1,value:Cr(y)};if(jt[g])return{isToken:!0,value:y};if(g.match(Nr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:y}});a.localize.preprocessor&&(m=a.localize.preprocessor(c,m));const w={firstWeekContainsDate:i,weekStartsOn:s,locale:a};return m.map(y=>{if(!y.isToken)return y.value;const g=y.value;(!n?.useAdditionalWeekYearTokens&&Mr(g)||!n?.useAdditionalDayOfYearTokens&&Sr(g))&&Tr(g,r,String(e));const k=jt[g[0]];return k(c,g,a.localize,w)}).join("")}function Cr(e){const r=e.match(Pr);return r?r[1].replace(Er,"'"):e}function Yr(e,r){const n=p(e,r?.in),t=n.getFullYear(),a=n.getMonth(),i=v(n,0);return i.setFullYear(t,a+1,0),i.setHours(0,0,0,0),i.getDate()}function jr(e,r){return p(e,r?.in).getMonth()}function _r(e,r){return p(e,r?.in).getFullYear()}function Wr(e,r){return+p(e)>+p(r)}function Rr(e,r){return+p(e)<+p(r)}function Fr(e,r,n){const[t,a]=I(n?.in,e,r);return t.getFullYear()===a.getFullYear()&&t.getMonth()===a.getMonth()}function Ar(e,r,n){const[t,a]=I(n?.in,e,r);return t.getFullYear()===a.getFullYear()}function $r(e,r,n){const t=p(e,n?.in),a=t.getFullYear(),i=t.getDate(),s=v(e,0);s.setFullYear(a,r,15),s.setHours(0,0,0,0);const c=Yr(s);return t.setMonth(r,Math.min(i,c)),t}function Lr(e,r,n){const t=p(e,n?.in);return isNaN(+t)?v(e,NaN):(t.setFullYear(r),t)}const Ft=5,zr=4;function Ur(e,r){const n=r.startOfMonth(e),t=n.getDay()>0?n.getDay():7,a=r.addDays(e,-t+1),i=r.addDays(a,Ft*7-1);return r.getMonth(e)===r.getMonth(i)?Ft:zr}function re(e,r){const n=r.startOfMonth(e),t=n.getDay();return t===1?n:t===0?r.addDays(n,-6):r.addDays(n,-1*(t-1))}function Ir(e,r){const n=re(e,r),t=Ur(e,r);return r.addDays(n,t*7-1)}const Hr={...L,labels:{labelDayButton:(e,r,n,t)=>{let a;t&&typeof t.format=="function"?a=t.format.bind(t):a=(s,c)=>ot(s,c,{locale:L,...n});let i=a(e,"PPPP");return r.today&&(i=`Today, ${i}`),r.selected&&(i=`${i}, selected`),i},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,r,n)=>{let t;return n&&typeof n.format=="function"?t=n.format.bind(n):t=(a,i)=>ot(a,i,{locale:L,...r}),t(e,"LLLL yyyy")},labelGridcell:(e,r,n,t)=>{let a;t&&typeof t.format=="function"?a=t.format.bind(t):a=(s,c)=>ot(s,c,{locale:L,...n});let i=a(e,"PPPP");return r?.today&&(i=`Today, ${i}`),i},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,r,n)=>{let t;return n&&typeof n.format=="function"?t=n.format.bind(n):t=(a,i)=>ot(a,i,{locale:L,...r}),t(e,"cccc")}}};class ut{constructor(r,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?F.tz(this.options.timeZone):new this.Date,this.newDate=(t,a,i)=>this.overrides?.newDate?this.overrides.newDate(t,a,i):this.options.timeZone?new F(t,a,i,this.options.timeZone):new Date(t,a,i),this.addDays=(t,a)=>this.overrides?.addDays?this.overrides.addDays(t,a):Ht(t,a),this.addMonths=(t,a)=>this.overrides?.addMonths?this.overrides.addMonths(t,a):qt(t,a),this.addWeeks=(t,a)=>this.overrides?.addWeeks?this.overrides.addWeeks(t,a):rr(t,a),this.addYears=(t,a)=>this.overrides?.addYears?this.overrides.addYears(t,a):nr(t,a),this.differenceInCalendarDays=(t,a)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(t,a):Bt(t,a),this.differenceInCalendarMonths=(t,a)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(t,a):ur(t,a),this.eachMonthOfInterval=t=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(t):lr(t),this.eachYearOfInterval=t=>{const a=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(t):hr(t),i=new Set(a.map(c=>this.getYear(c)));if(i.size===a.length)return a;const s=[];return i.forEach(c=>{s.push(new Date(c,0,1))}),s},this.endOfBroadcastWeek=t=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(t):Ir(t,this),this.endOfISOWeek=t=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(t):mr(t),this.endOfMonth=t=>this.overrides?.endOfMonth?this.overrides.endOfMonth(t):cr(t),this.endOfWeek=(t,a)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(t,a):Jt(t,this.options),this.endOfYear=t=>this.overrides?.endOfYear?this.overrides.endOfYear(t):fr(t),this.format=(t,a,i)=>{const s=this.overrides?.format?this.overrides.format(t,a,this.options):ot(t,a,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(s):s},this.getISOWeek=t=>this.overrides?.getISOWeek?this.overrides.getISOWeek(t):Vt(t),this.getMonth=(t,a)=>this.overrides?.getMonth?this.overrides.getMonth(t,this.options):jr(t,this.options),this.getYear=(t,a)=>this.overrides?.getYear?this.overrides.getYear(t,this.options):_r(t,this.options),this.getWeek=(t,a)=>this.overrides?.getWeek?this.overrides.getWeek(t,this.options):te(t,this.options),this.isAfter=(t,a)=>this.overrides?.isAfter?this.overrides.isAfter(t,a):Wr(t,a),this.isBefore=(t,a)=>this.overrides?.isBefore?this.overrides.isBefore(t,a):Rr(t,a),this.isDate=t=>this.overrides?.isDate?this.overrides.isDate(t):Gt(t),this.isSameDay=(t,a)=>this.overrides?.isSameDay?this.overrides.isSameDay(t,a):ir(t,a),this.isSameMonth=(t,a)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(t,a):Fr(t,a),this.isSameYear=(t,a)=>this.overrides?.isSameYear?this.overrides.isSameYear(t,a):Ar(t,a),this.max=t=>this.overrides?.max?this.overrides.max(t):ar(t),this.min=t=>this.overrides?.min?this.overrides.min(t):or(t),this.setMonth=(t,a)=>this.overrides?.setMonth?this.overrides.setMonth(t,a):$r(t,a),this.setYear=(t,a)=>this.overrides?.setYear?this.overrides.setYear(t,a):Lr(t,a),this.startOfBroadcastWeek=(t,a)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(t,this):re(t,this),this.startOfDay=t=>this.overrides?.startOfDay?this.overrides.startOfDay(t):st(t),this.startOfISOWeek=t=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(t):it(t),this.startOfMonth=t=>this.overrides?.startOfMonth?this.overrides.startOfMonth(t):dr(t),this.startOfWeek=(t,a)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(t,this.options):z(t,this.options),this.startOfYear=t=>this.overrides?.startOfYear?this.overrides.startOfYear(t):Qt(t),this.options={locale:Hr,...r},this.overrides=n}getDigitMap(){const{numerals:r="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:r}),t={};for(let a=0;a<10;a++)t[a.toString()]=n.format(a);return t}replaceDigits(r){const n=this.getDigitMap();return r.replace(/\d/g,t=>n[t]||t)}formatNumber(r){return this.replaceDigits(r.toString())}getMonthYearOrder(){const r=this.options.locale?.code;return r&&ut.yearFirstLocales.has(r)?"year-first":"month-first"}formatMonthYear(r){const{locale:n,timeZone:t,numerals:a}=this.options,i=n?.code;if(i&&ut.yearFirstLocales.has(i))try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric",timeZone:t,numberingSystem:a}).format(r)}catch{}const s=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(r,s)}}ut.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);new ut;const qr=U.createContext({locale:void 0});function Zr(){return U.useContext(qr)}exports.Button=le;exports._e=pe;exports.buttonVariants=$t;exports.cn=zt;exports.jsxRuntimeExports=At;exports.xn=Zr;