Plugin Directory

Changeset 3131031


Ignore:
Timestamp:
08/05/2024 12:24:37 PM (19 months ago)
Author:
kantbtrue
Message:

v0.3.0

Location:
wpnakama
Files:
110 added
25 deleted
14 edited

Legend:

Unmodified
Added
Removed
  • wpnakama/trunk/admin/app/build/index.asset.php

    r3044042 r3131031  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-primitives', 'wp-url'), 'version' => '53efa58447a1ce851f57');
     1<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-priority-queue', 'wp-url', 'wp-wordcount'), 'version' => '104f0e343e3ccbaae370');
  • wpnakama/trunk/admin/app/build/index.css

    r3044042 r3131031  
    11@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Open+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap);
    2 :root{--wp-admin-theme-color:#e67613;--wp-admin-theme-color--rgb:233,167,109;--wp-admin-theme-color-darker-10:#ea9a54;--wp-admin-theme-color-darker-10--rgb:234,153,83;--wp-admin-theme-color-darker-20:#e67613;--wp-admin-theme-color-darker-20--rgb:231,118,19;--nakama-admin-theme-color-light:#f7efe2;--gutenberg-gray-600:#797979}#wpnakama-app-admin{font-family:Open Sans,sans-serif;font-weight:400;min-height:85vh;position:relative}#wpnakama-app-admin h1,#wpnakama-app-admin h2,#wpnakama-app-admin h3{font-family:Inter,sans-serif}#wpnakama-app-admin h1{font-weight:700}#wpnakama-app-admin h2{font-weight:500}#wpnakama-app-admin h3{font-size:18px;font-weight:500}#wpnakama-app-admin .wpnakama-board-card .components-button:focus:not(:disabled){border:0!important;box-shadow:none!important}@keyframes react-loading-skeleton{to{transform:translateX(100%)}}.react-loading-skeleton{--base-color:#f0f0f1;--highlight-color:#dedede;--animation-duration:1.5s;--animation-direction:normal;--pseudo-element-display:block;background-color:var(--base-color)!important;border-radius:.25rem;display:inline-flex;line-height:1;overflow:hidden;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;z-index:1}.react-loading-skeleton.destructive{--base-color:#fedbdb;--highlight-color:#ffcfcf;box-shadow:0 0 0 1px rgba(163,0,0,.1)}.react-loading-skeleton:after{animation-direction:var(--animation-direction);animation-duration:var(--animation-duration);animation-iteration-count:infinite;animation-name:react-loading-skeleton;animation-timing-function:ease-in-out;background-image:linear-gradient(90deg,var(--base-color),var(--highlight-color),var(--base-color));background-repeat:no-repeat;content:" ";display:var(--pseudo-element-display);height:100%;left:0;position:absolute;right:0;top:0;transform:translateX(-100%)}@media(prefers-reduced-motion){.react-loading-skeleton{--pseudo-element-display:none}}svg.components-spinner.destructive{color:#cc1818}.wpnakama-notice{bottom:45px;right:50px}.wpnakama-notice .components-snackbar-list__notice-container{display:flex;flex-wrap:nowrap;justify-content:space-evenly}.components-navigation{background:#fff;border-radius:8px}.wpnakama-menu-logo__img{max-width:100px}.components-navigation__menu.wpnakama-menu{margin:0}.components-navigation__item.wpnakama-menu-item{background-color:transparent;color:#000;position:relative}.components-navigation__item.wpnakama-menu-item .components-button.is-link{font-size:14px;font-weight:500;height:50px;line-height:20px;padding:10px 15px;text-decoration:none}.components-navigation__item.wpnakama-menu-item .components-button.is-link:focus{box-shadow:none;outline:none}.components-navigation__item.wpnakama-menu-item.is-active{background-color:transparent;color:#000}.components-navigation__item.wpnakama-menu-item.is-active:after{background-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));bottom:0;content:"";height:4px;left:0;position:absolute;right:0;width:100%}.components-navigation__item.wpnakama-menu-item.is-active .components-button.is-link{color:#000}.components-button.components-dropdown-menu__toggle:focus,.components-button.has-icon.has-text,.components-menu-item__button:focus{box-shadow:none!important;outline:none!important}.components-menu-item__item{min-width:auto}.components-dropdown-menu__menu .components-menu-group,.components-dropdown-menu__menu .components-menu-group:first-child,.components-dropdown-menu__menu .components-menu-group:last-child{margin:0}.wpnakama-page-wrap{padding:16px}.wpnakama-board-card.components-card{border-radius:6px;height:125px;width:200px}.wpnakama-board-card.components-card:not(.react-loading-skeleton):hover{background-color:var(--gutenberg-gray-300);cursor:pointer}.wpnakama-board-card .components-card-header .components-flex-item{flex:0 0 auto}.wpnakama-board-card .components-card-header .components-flex-item:first-child{flex:0 1 100%}.wpnakama-board-card.wpnakama-board-addBtn{border:4px dashed var(--gutenberg-gray-600,#aaa);display:flex;font-size:8px;height:125px;line-height:20px;text-transform:uppercase;width:200px}.wpnakama-board-card.wpnakama-board-addBtn,.wpnakama-board-card.wpnakama-board-addBtn .wpnakama-board-addBtn__text.components-text{color:var(--gutenberg-gray-600,#aaa);font-weight:500}.wpnakama-board-card.wpnakama-board-addBtn:hover{border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.wpnakama-board-card.wpnakama-board-addBtn:hover,.wpnakama-board-card.wpnakama-board-addBtn:hover .wpnakama-board-addBtn__text.components-text{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.components-dropdown__content .components-popover__content{padding:0;width:150px}.wpnakama-phase-addBtn{border:2px dashed var(--gutenberg-gray-600,#aaa);font-size:8px;line-height:20px;text-transform:uppercase;width:300px}.wpnakama-phase-addBtn,.wpnakama-phase-addBtn .wpnakama-phase-addBtn__text.components-text{color:var(--gutenberg-gray-600,#aaa);font-weight:500}.wpnakama-phase-addBtn.active,.wpnakama-phase-addBtn:focus,.wpnakama-phase-addBtn:hover{border-color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9));color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.wpnakama-phase-addBtn.active .wpnakama-phase-addBtn__text.components-text,.wpnakama-phase-addBtn:focus .wpnakama-phase-addBtn__text.components-text,.wpnakama-phase-addBtn:hover .wpnakama-phase-addBtn__text.components-text{color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#3858e9))}.wpnakama-modal{margin:auto;max-width:300px}.wpnakama-modal__confirm .is-primary{background:#cc1818}.wpnakama-modal__confirm .is-primary:focus,.wpnakama-modal__confirm .is-primary:hover{background:#710d0d!important}#wpnakama-app-admin input:not([type=checkbox]){min-height:32px}#wpnakama-app-admin .components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color,#3858e9)!important;box-shadow:none;box-shadow:0 0 0 .5px var(--wp-admin-theme-color,#3858e9);outline:none}.wpnakama-board-card.is-link{align-items:center;background-color:#fff;border-radius:6px;display:flex;font-size:18px;font-weight:500;height:125px;justify-content:center;text-decoration:none;width:200px}.wpnakama-board-card:hover{background-color:#f7efe2}#wpnakama-app-admin label .components-text,.components-base-control__label{font-family:Open Sans,sans-serif;font-size:13px!important;letter-spacing:.3px}@media screen and (max-width:767.98px){.wpnakama-page-inner{padding:30px 15px!important}.wpnakama-boards-list,.wpnakama-templates-list{justify-content:space-around!important}.wpnakama-templates-list{flex-direction:column!important}.components-modal__frame{margin:auto;max-width:90%}}
     2@import url(https://fonts.googleapis.com/css2?family=Koulen&display=swap);
     3/*
     4! tailwindcss v3.4.7 | MIT License | https://tailwindcss.com
     5*//*
     61. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
     72. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
     8*/*,
     9::before,
     10::after {
     11  box-sizing: border-box; /* 1 */
     12  border-width: 0; /* 2 */
     13  border-style: solid; /* 2 */
     14  border-color: #e5e7eb; /* 2 */
     15}::before,
     16::after {
     17  --tw-content: '';
     18}/*
     191. Use a consistent sensible line-height in all browsers.
     202. Prevent adjustments of font size after orientation changes in iOS.
     213. Use a more readable tab size.
     224. Use the user's configured `sans` font-family by default.
     235. Use the user's configured `sans` font-feature-settings by default.
     246. Use the user's configured `sans` font-variation-settings by default.
     257. Disable tap highlights on iOS
     26*/html,
     27:host {
     28  line-height: 1.5; /* 1 */
     29  -webkit-text-size-adjust: 100%; /* 2 */
     30  -moz-tab-size: 4; /* 3 */
     31  -o-tab-size: 4;
     32     tab-size: 4; /* 3 */
     33  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
     34  font-feature-settings: normal; /* 5 */
     35  font-variation-settings: normal; /* 6 */
     36  -webkit-tap-highlight-color: transparent; /* 7 */
     37}/*
     381. Remove the margin in all browsers.
     392. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
     40*/body {
     41  margin: 0; /* 1 */
     42  line-height: inherit; /* 2 */
     43}/*
     441. Add the correct height in Firefox.
     452. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
     463. Ensure horizontal rules are visible by default.
     47*/hr {
     48  height: 0; /* 1 */
     49  color: inherit; /* 2 */
     50  border-top-width: 1px; /* 3 */
     51}/*
     52Add the correct text decoration in Chrome, Edge, and Safari.
     53*/abbr:where([title]) {
     54  -webkit-text-decoration: underline dotted;
     55          text-decoration: underline dotted;
     56}/*
     57Remove the default font size and weight for headings.
     58*/h1,
     59h2,
     60h3,
     61h4,
     62h5,
     63h6 {
     64  font-size: inherit;
     65  font-weight: inherit;
     66}/*
     67Reset links to optimize for opt-in styling instead of opt-out.
     68*/a {
     69  color: inherit;
     70  text-decoration: inherit;
     71}/*
     72Add the correct font weight in Edge and Safari.
     73*/b,
     74strong {
     75  font-weight: bolder;
     76}/*
     771. Use the user's configured `mono` font-family by default.
     782. Use the user's configured `mono` font-feature-settings by default.
     793. Use the user's configured `mono` font-variation-settings by default.
     804. Correct the odd `em` font sizing in all browsers.
     81*/code,
     82kbd,
     83samp,
     84pre {
     85  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
     86  font-feature-settings: normal; /* 2 */
     87  font-variation-settings: normal; /* 3 */
     88  font-size: 1em; /* 4 */
     89}/*
     90Add the correct font size in all browsers.
     91*/small {
     92  font-size: 80%;
     93}/*
     94Prevent `sub` and `sup` elements from affecting the line height in all browsers.
     95*/sub,
     96sup {
     97  font-size: 75%;
     98  line-height: 0;
     99  position: relative;
     100  vertical-align: baseline;
     101}sub {
     102  bottom: -0.25em;
     103}sup {
     104  top: -0.5em;
     105}/*
     1061. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
     1072. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
     1083. Remove gaps between table borders by default.
     109*/table {
     110  text-indent: 0; /* 1 */
     111  border-color: inherit; /* 2 */
     112  border-collapse: collapse; /* 3 */
     113}/*
     1141. Change the font styles in all browsers.
     1152. Remove the margin in Firefox and Safari.
     1163. Remove default padding in all browsers.
     117*/button,
     118input,
     119optgroup,
     120select,
     121textarea {
     122  font-family: inherit; /* 1 */
     123  font-feature-settings: inherit; /* 1 */
     124  font-variation-settings: inherit; /* 1 */
     125  font-size: 100%; /* 1 */
     126  font-weight: inherit; /* 1 */
     127  line-height: inherit; /* 1 */
     128  letter-spacing: inherit; /* 1 */
     129  color: inherit; /* 1 */
     130  margin: 0; /* 2 */
     131  padding: 0; /* 3 */
     132}/*
     133Remove the inheritance of text transform in Edge and Firefox.
     134*/button,
     135select {
     136  text-transform: none;
     137}/*
     1381. Correct the inability to style clickable types in iOS and Safari.
     1392. Remove default button styles.
     140*/button,
     141input:where([type='button']),
     142input:where([type='reset']),
     143input:where([type='submit']) {
     144  -webkit-appearance: button; /* 1 */
     145  background-color: transparent; /* 2 */
     146  background-image: none; /* 2 */
     147}/*
     148Use the modern Firefox focus style for all focusable elements.
     149*/:-moz-focusring {
     150  outline: auto;
     151}/*
     152Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
     153*/:-moz-ui-invalid {
     154  box-shadow: none;
     155}/*
     156Add the correct vertical alignment in Chrome and Firefox.
     157*/progress {
     158  vertical-align: baseline;
     159}/*
     160Correct the cursor style of increment and decrement buttons in Safari.
     161*/::-webkit-inner-spin-button,
     162::-webkit-outer-spin-button {
     163  height: auto;
     164}/*
     1651. Correct the odd appearance in Chrome and Safari.
     1662. Correct the outline style in Safari.
     167*/[type='search'] {
     168  -webkit-appearance: textfield; /* 1 */
     169  outline-offset: -2px; /* 2 */
     170}/*
     171Remove the inner padding in Chrome and Safari on macOS.
     172*/::-webkit-search-decoration {
     173  -webkit-appearance: none;
     174}/*
     1751. Correct the inability to style clickable types in iOS and Safari.
     1762. Change font properties to `inherit` in Safari.
     177*/::-webkit-file-upload-button {
     178  -webkit-appearance: button; /* 1 */
     179  font: inherit; /* 2 */
     180}/*
     181Add the correct display in Chrome and Safari.
     182*/summary {
     183  display: list-item;
     184}/*
     185Removes the default spacing and border for appropriate elements.
     186*/blockquote,
     187dl,
     188dd,
     189h1,
     190h2,
     191h3,
     192h4,
     193h5,
     194h6,
     195hr,
     196figure,
     197p,
     198pre {
     199  margin: 0;
     200}fieldset {
     201  margin: 0;
     202  padding: 0;
     203}legend {
     204  padding: 0;
     205}ol,
     206ul,
     207menu {
     208  list-style: none;
     209  margin: 0;
     210  padding: 0;
     211}/*
     212Reset default styling for dialogs.
     213*/dialog {
     214  padding: 0;
     215}/*
     216Prevent resizing textareas horizontally by default.
     217*/textarea {
     218  resize: vertical;
     219}/*
     2201. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
     2212. Set the default placeholder color to the user's configured gray 400 color.
     222*/input::-moz-placeholder, textarea::-moz-placeholder {
     223  opacity: 1; /* 1 */
     224  color: #9ca3af; /* 2 */
     225}input::placeholder,
     226textarea::placeholder {
     227  opacity: 1; /* 1 */
     228  color: #9ca3af; /* 2 */
     229}/*
     230Set the default cursor for buttons.
     231*/button,
     232[role="button"] {
     233  cursor: pointer;
     234}/*
     235Make sure disabled buttons don't get the pointer cursor.
     236*/:disabled {
     237  cursor: default;
     238}/*
     2391. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
     2402. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
     241   This can trigger a poorly considered lint error in some tools but is included by design.
     242*/img,
     243svg,
     244video,
     245canvas,
     246audio,
     247iframe,
     248embed,
     249object {
     250  display: block; /* 1 */
     251  vertical-align: middle; /* 2 */
     252}/*
     253Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
     254*/img,
     255video {
     256  max-width: 100%;
     257  height: auto;
     258}/* Make elements with the HTML hidden attribute stay hidden by default */[hidden] {
     259  display: none;
     260}:root{
     261  --wg-font-smooth--webkit: antialiased;
     262  --wg-font-smooth--moz: grayscale;
     263}html{
     264  color: hsl(var(--wg-foreground));
     265  background-color: hsl(var(--wg-background));
     266}*, ::before, ::after{
     267  --tw-border-spacing-x: 0;
     268  --tw-border-spacing-y: 0;
     269  --tw-translate-x: 0;
     270  --tw-translate-y: 0;
     271  --tw-rotate: 0;
     272  --tw-skew-x: 0;
     273  --tw-skew-y: 0;
     274  --tw-scale-x: 1;
     275  --tw-scale-y: 1;
     276  --tw-pan-x:  ;
     277  --tw-pan-y:  ;
     278  --tw-pinch-zoom:  ;
     279  --tw-scroll-snap-strictness: proximity;
     280  --tw-gradient-from-position:  ;
     281  --tw-gradient-via-position:  ;
     282  --tw-gradient-to-position:  ;
     283  --tw-ordinal:  ;
     284  --tw-slashed-zero:  ;
     285  --tw-numeric-figure:  ;
     286  --tw-numeric-spacing:  ;
     287  --tw-numeric-fraction:  ;
     288  --tw-ring-inset:  ;
     289  --tw-ring-offset-width: 0px;
     290  --tw-ring-offset-color: #fff;
     291  --tw-ring-color: rgb(59 130 246 / 0.5);
     292  --tw-ring-offset-shadow: 0 0 #0000;
     293  --tw-ring-shadow: 0 0 #0000;
     294  --tw-shadow: 0 0 #0000;
     295  --tw-shadow-colored: 0 0 #0000;
     296  --tw-blur:  ;
     297  --tw-brightness:  ;
     298  --tw-contrast:  ;
     299  --tw-grayscale:  ;
     300  --tw-hue-rotate:  ;
     301  --tw-invert:  ;
     302  --tw-saturate:  ;
     303  --tw-sepia:  ;
     304  --tw-drop-shadow:  ;
     305  --tw-backdrop-blur:  ;
     306  --tw-backdrop-brightness:  ;
     307  --tw-backdrop-contrast:  ;
     308  --tw-backdrop-grayscale:  ;
     309  --tw-backdrop-hue-rotate:  ;
     310  --tw-backdrop-invert:  ;
     311  --tw-backdrop-opacity:  ;
     312  --tw-backdrop-saturate:  ;
     313  --tw-backdrop-sepia:  ;
     314  --tw-contain-size:  ;
     315  --tw-contain-layout:  ;
     316  --tw-contain-paint:  ;
     317  --tw-contain-style:  ;
     318}::backdrop{
     319  --tw-border-spacing-x: 0;
     320  --tw-border-spacing-y: 0;
     321  --tw-translate-x: 0;
     322  --tw-translate-y: 0;
     323  --tw-rotate: 0;
     324  --tw-skew-x: 0;
     325  --tw-skew-y: 0;
     326  --tw-scale-x: 1;
     327  --tw-scale-y: 1;
     328  --tw-pan-x:  ;
     329  --tw-pan-y:  ;
     330  --tw-pinch-zoom:  ;
     331  --tw-scroll-snap-strictness: proximity;
     332  --tw-gradient-from-position:  ;
     333  --tw-gradient-via-position:  ;
     334  --tw-gradient-to-position:  ;
     335  --tw-ordinal:  ;
     336  --tw-slashed-zero:  ;
     337  --tw-numeric-figure:  ;
     338  --tw-numeric-spacing:  ;
     339  --tw-numeric-fraction:  ;
     340  --tw-ring-inset:  ;
     341  --tw-ring-offset-width: 0px;
     342  --tw-ring-offset-color: #fff;
     343  --tw-ring-color: rgb(59 130 246 / 0.5);
     344  --tw-ring-offset-shadow: 0 0 #0000;
     345  --tw-ring-shadow: 0 0 #0000;
     346  --tw-shadow: 0 0 #0000;
     347  --tw-shadow-colored: 0 0 #0000;
     348  --tw-blur:  ;
     349  --tw-brightness:  ;
     350  --tw-contrast:  ;
     351  --tw-grayscale:  ;
     352  --tw-hue-rotate:  ;
     353  --tw-invert:  ;
     354  --tw-saturate:  ;
     355  --tw-sepia:  ;
     356  --tw-drop-shadow:  ;
     357  --tw-backdrop-blur:  ;
     358  --tw-backdrop-brightness:  ;
     359  --tw-backdrop-contrast:  ;
     360  --tw-backdrop-grayscale:  ;
     361  --tw-backdrop-hue-rotate:  ;
     362  --tw-backdrop-invert:  ;
     363  --tw-backdrop-opacity:  ;
     364  --tw-backdrop-saturate:  ;
     365  --tw-backdrop-sepia:  ;
     366  --tw-contain-size:  ;
     367  --tw-contain-layout:  ;
     368  --tw-contain-paint:  ;
     369  --tw-contain-style:  ;
     370}.container{
     371  width: 100%;
     372}@media (min-width: 480px){.container{
     373    max-width: 480px;
     374  }
     375}@media (min-width: 640px){.container{
     376    max-width: 640px;
     377  }
     378}@media (min-width: 768px){.container{
     379    max-width: 768px;
     380  }
     381}@media (min-width: 1024px){.container{
     382    max-width: 1024px;
     383  }
     384}@media (min-width: 1280px){.container{
     385    max-width: 1280px;
     386  }
     387}@media (min-width: 1536px){.container{
     388    max-width: 1536px;
     389  }
     390}.pointer-events-none{
     391  pointer-events: none;
     392}.visible{
     393  visibility: visible;
     394}.fixed{
     395  position: fixed;
     396}.absolute{
     397  position: absolute;
     398}.relative{
     399  position: relative;
     400}.inset-0{
     401  inset: 0px;
     402}.-left-4{
     403  left: -1rem;
     404}.-right-\[20px\]{
     405  right: -20px;
     406}.-top-2{
     407  top: -0.5rem;
     408}.-top-\[0\.65rem\]{
     409  top: -0.65rem;
     410}.bottom-0{
     411  bottom: 0px;
     412}.bottom-6{
     413  bottom: 1.5rem;
     414}.left-0{
     415  left: 0px;
     416}.left-1\/2{
     417  left: 50%;
     418}.left-2{
     419  left: 0.5rem;
     420}.left-3{
     421  left: 0.75rem;
     422}.left-\[18px\]{
     423  left: 18px;
     424}.right-0{
     425  right: 0px;
     426}.right-1{
     427  right: 0.25rem;
     428}.right-2{
     429  right: 0.5rem;
     430}.right-4{
     431  right: 1rem;
     432}.right-5{
     433  right: 1.25rem;
     434}.right-6{
     435  right: 1.5rem;
     436}.top-0{
     437  top: 0px;
     438}.top-1\.5{
     439  top: 0.375rem;
     440}.top-1\/2{
     441  top: 50%;
     442}.top-2{
     443  top: 0.5rem;
     444}.top-2\.5{
     445  top: 0.625rem;
     446}.top-3{
     447  top: 0.75rem;
     448}.top-9{
     449  top: 2.25rem;
     450}.top-\[50px\]{
     451  top: 50px;
     452}.top-\[8px\]{
     453  top: 8px;
     454}.z-0{
     455  z-index: 0;
     456}.z-10{
     457  z-index: 10;
     458}.z-40{
     459  z-index: 40;
     460}.z-50{
     461  z-index: 50;
     462}.z-\[9991\]{
     463  z-index: 9991;
     464}.order-3{
     465  order: 3;
     466}.col-start-1{
     467  grid-column-start: 1;
     468}.col-start-2{
     469  grid-column-start: 2;
     470}.col-start-3{
     471  grid-column-start: 3;
     472}.col-start-4{
     473  grid-column-start: 4;
     474}.col-start-5{
     475  grid-column-start: 5;
     476}.col-start-6{
     477  grid-column-start: 6;
     478}.col-start-7{
     479  grid-column-start: 7;
     480}.m-auto{
     481  margin: auto;
     482}.-mx-4{
     483  margin-left: -1rem;
     484  margin-right: -1rem;
     485}.mx-auto{
     486  margin-left: auto;
     487  margin-right: auto;
     488}.my-0\.5{
     489  margin-top: 0.125rem;
     490  margin-bottom: 0.125rem;
     491}.-mb-px{
     492  margin-bottom: -1px;
     493}.mb-10{
     494  margin-bottom: 2.5rem;
     495}.mb-20{
     496  margin-bottom: 5rem;
     497}.mb-4{
     498  margin-bottom: 1rem;
     499}.ml-1{
     500  margin-left: 0.25rem;
     501}.ml-2{
     502  margin-left: 0.5rem;
     503}.ml-auto{
     504  margin-left: auto;
     505}.mr-1{
     506  margin-right: 0.25rem;
     507}.mr-\[-4\.5\%\]{
     508  margin-right: -4.5%;
     509}.ms-auto{
     510  margin-inline-start: auto;
     511}.mt-1{
     512  margin-top: 0.25rem;
     513}.mt-10{
     514  margin-top: 2.5rem;
     515}.mt-16{
     516  margin-top: 4rem;
     517}.mt-3{
     518  margin-top: 0.75rem;
     519}.mt-4{
     520  margin-top: 1rem;
     521}.mt-5{
     522  margin-top: 1.25rem;
     523}.mt-6{
     524  margin-top: 1.5rem;
     525}.mt-8{
     526  margin-top: 2rem;
     527}.mt-\[30px\]{
     528  margin-top: 30px;
     529}.mt-auto{
     530  margin-top: auto;
     531}.block{
     532  display: block;
     533}.inline-block{
     534  display: inline-block;
     535}.inline{
     536  display: inline;
     537}.flex{
     538  display: flex;
     539}.inline-flex{
     540  display: inline-flex;
     541}.table{
     542  display: table;
     543}.grid{
     544  display: grid;
     545}.hidden{
     546  display: none;
     547}.aspect-auto{
     548  aspect-ratio: auto;
     549}.aspect-square{
     550  aspect-ratio: 1 / 1;
     551}.size-10{
     552  width: 2.5rem;
     553  height: 2.5rem;
     554}.size-12{
     555  width: 3rem;
     556  height: 3rem;
     557}.size-14{
     558  width: 3.5rem;
     559  height: 3.5rem;
     560}.size-16{
     561  width: 4rem;
     562  height: 4rem;
     563}.size-3{
     564  width: 0.75rem;
     565  height: 0.75rem;
     566}.size-4{
     567  width: 1rem;
     568  height: 1rem;
     569}.size-5{
     570  width: 1.25rem;
     571  height: 1.25rem;
     572}.size-6{
     573  width: 1.5rem;
     574  height: 1.5rem;
     575}.size-7{
     576  width: 1.75rem;
     577  height: 1.75rem;
     578}.size-8{
     579  width: 2rem;
     580  height: 2rem;
     581}.size-\[88px\]{
     582  width: 88px;
     583  height: 88px;
     584}.size-auto{
     585  width: auto;
     586  height: auto;
     587}.size-full{
     588  width: 100%;
     589  height: 100%;
     590}.h-0\.5{
     591  height: 0.125rem;
     592}.h-1{
     593  height: 0.25rem;
     594}.h-10{
     595  height: 2.5rem;
     596}.h-12{
     597  height: 3rem;
     598}.h-14{
     599  height: 3.5rem;
     600}.h-16{
     601  height: 4rem;
     602}.h-2{
     603  height: 0.5rem;
     604}.h-3{
     605  height: 0.75rem;
     606}.h-32{
     607  height: 8rem;
     608}.h-4{
     609  height: 1rem;
     610}.h-5{
     611  height: 1.25rem;
     612}.h-6{
     613  height: 1.5rem;
     614}.h-8{
     615  height: 2rem;
     616}.h-\[159px\]{
     617  height: 159px;
     618}.h-\[320px\]{
     619  height: 320px;
     620}.h-\[40px\]{
     621  height: 40px;
     622}.h-\[42px\]{
     623  height: 42px;
     624}.h-\[50px\]{
     625  height: 50px;
     626}.h-\[72px\]{
     627  height: 72px;
     628}.h-\[var\(--wg-notification-size\2c 10px\)\]{
     629  height: var(--wg-notification-size,10px);
     630}.h-auto{
     631  height: auto;
     632}.h-dvh{
     633  height: 100dvh;
     634}.h-full{
     635  height: 100%;
     636}.h-px{
     637  height: 1px;
     638}.max-h-44{
     639  max-height: 11rem;
     640}.max-h-64{
     641  max-height: 16rem;
     642}.max-h-\[30px\]{
     643  max-height: 30px;
     644}.min-h-28{
     645  min-height: 7rem;
     646}.min-h-44{
     647  min-height: 11rem;
     648}.min-h-6{
     649  min-height: 24px;
     650}.min-h-\[112px\]{
     651  min-height: 112px;
     652}.min-h-\[139px\]{
     653  min-height: 139px;
     654}.min-h-\[159px\]{
     655  min-height: 159px;
     656}.w-1{
     657  width: 0.25rem;
     658}.w-1\/3{
     659  width: 33.333333%;
     660}.w-10{
     661  width: 2.5rem;
     662}.w-14{
     663  width: 3.5rem;
     664}.w-2\/3{
     665  width: 66.666667%;
     666}.w-2\/4{
     667  width: 50%;
     668}.w-2\/5{
     669  width: 40%;
     670}.w-3\/4{
     671  width: 75%;
     672}.w-4{
     673  width: 1rem;
     674}.w-5{
     675  width: 1.25rem;
     676}.w-52{
     677  width: 13rem;
     678}.w-56{
     679  width: 14rem;
     680}.w-6{
     681  width: 1.5rem;
     682}.w-60{
     683  width: 15rem;
     684}.w-64{
     685  width: 16rem;
     686}.w-7{
     687  width: 1.75rem;
     688}.w-72{
     689  width: 18rem;
     690}.w-96{
     691  width: 24rem;
     692}.w-\[114px\]{
     693  width: 114px;
     694}.w-\[140px\]{
     695  width: 140px;
     696}.w-\[15\.5rem\]{
     697  width: 15.5rem;
     698}.w-\[165px\]{
     699  width: 165px;
     700}.w-\[200px\]{
     701  width: 200px;
     702}.w-\[26rem\]{
     703  width: 26rem;
     704}.w-\[280px\]{
     705  width: 280px;
     706}.w-\[300px\]{
     707  width: 300px;
     708}.w-\[400px\]{
     709  width: 400px;
     710}.w-\[72px\]{
     711  width: 72px;
     712}.w-\[98\%\]{
     713  width: 98%;
     714}.w-auto{
     715  width: auto;
     716}.w-dvw{
     717  width: 100dvw;
     718}.w-fit{
     719  width: -moz-fit-content;
     720  width: fit-content;
     721}.w-full{
     722  width: 100%;
     723}.\!min-w-72{
     724  min-width: 18rem !important;
     725}.\!min-w-\[300px\]{
     726  min-width: 300px !important;
     727}.min-w-10{
     728  min-width: 40px;
     729}.min-w-12{
     730  min-width: 48px;
     731}.min-w-14{
     732  min-width: 56px;
     733}.min-w-16{
     734  min-width: 64px;
     735}.min-w-4{
     736  min-width: 16px;
     737}.min-w-6{
     738  min-width: 24px;
     739}.min-w-64{
     740  min-width: 16rem;
     741}.min-w-8{
     742  min-width: 32px;
     743}.min-w-80{
     744  min-width: 20rem;
     745}.min-w-\[140px\]{
     746  min-width: 140px;
     747}.min-w-\[200px\]{
     748  min-width: 200px;
     749}.min-w-\[250px\]{
     750  min-width: 250px;
     751}.min-w-\[9rem\]{
     752  min-width: 9rem;
     753}.\!max-w-72{
     754  max-width: 18rem !important;
     755}.max-w-56{
     756  max-width: 14rem;
     757}.max-w-64{
     758  max-width: 16rem;
     759}.max-w-72{
     760  max-width: 18rem;
     761}.max-w-\[18\.5rem\]{
     762  max-width: 18.5rem;
     763}.max-w-\[290px\]{
     764  max-width: 290px;
     765}.max-w-\[350px\]{
     766  max-width: 350px;
     767}.max-w-\[600px\]{
     768  max-width: 600px;
     769}.max-w-\[700px\]{
     770  max-width: 700px;
     771}.max-w-sm{
     772  max-width: 24rem;
     773}.max-w-xs{
     774  max-width: 20rem;
     775}.flex-shrink{
     776  flex-shrink: 1;
     777}.flex-shrink-0{
     778  flex-shrink: 0;
     779}.shrink-0{
     780  flex-shrink: 0;
     781}.flex-grow{
     782  flex-grow: 1;
     783}.grow{
     784  flex-grow: 1;
     785}.grow-0{
     786  flex-grow: 0;
     787}.origin-\[var\(--radix-popper-transform-origin\)\]{
     788  transform-origin: var(--radix-popper-transform-origin);
     789}.origin-center{
     790  transform-origin: center;
     791}.-translate-x-1\/2{
     792  --tw-translate-x: -50%;
     793  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
     794}.-translate-y-1\/2{
     795  --tw-translate-y: -50%;
     796  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
     797}.translate-x-0\.5{
     798  --tw-translate-x: 0.125rem;
     799  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
     800}.-rotate-45{
     801  --tw-rotate: -45deg;
     802  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
     803}.scale-100{
     804  --tw-scale-x: 1;
     805  --tw-scale-y: 1;
     806  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
     807}.transform{
     808  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
     809}.\!animate-none{
     810  animation: none !important;
     811}@keyframes spin{to{
     812    transform: rotate(360deg);
     813  }
     814}.animate-\[spin_\.6s_ease-in-out_infinite\]{
     815  animation: spin .6s ease-in-out infinite;
     816}@keyframes spin{to{
     817    transform: rotate(360deg);
     818  }
     819}.animate-\[spin_1\.25s_linear_infinite\]{
     820  animation: spin 1.25s linear infinite;
     821}@keyframes bounce{0%, 100%{
     822    transform: translateY(-25%);
     823    animation-timing-function: cubic-bezier(0.8,0,1,1);
     824  }50%{
     825    transform: none;
     826    animation-timing-function: cubic-bezier(0,0,0.2,1);
     827  }
     828}.animate-bounce{
     829  animation: bounce 1s infinite;
     830}@keyframes pulse{50%{
     831    opacity: .5;
     832  }
     833}.animate-pulse{
     834  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
     835}@keyframes spin{to{
     836    transform: rotate(360deg);
     837  }
     838}.animate-spin{
     839  animation: spin 1s linear infinite;
     840}@keyframes fadeOut{0%{
     841    opacity: 1;
     842    transform: scale(1);
     843  }100%{
     844    opacity: 0;
     845    transform: scale(.97);
     846  }
     847}.animate-wg-fade-out{
     848  animation: fadeOut 0.15s cubic-bezier(.2,1,.4,1);
     849}@keyframes lineSpinner{0%, 25%{
     850    stroke-dashoffset: var(--wg-dashoffset-97);
     851    transform: rotate(0);
     852  }50%, 75%{
     853    stroke-dashoffset: var(--wg-dashoffset-25);
     854    transform: rotate(45deg);
     855  }100%{
     856    stroke-dashoffset: var(--wg-dashoffset-97);
     857    transform: rotate(360deg);
     858  }
     859}.animate-wg-line-spinner{
     860  animation: lineSpinner 1.5s ease-in-out infinite both;
     861}.cursor-auto{
     862  cursor: auto;
     863}.cursor-default{
     864  cursor: default;
     865}.cursor-grab{
     866  cursor: grab;
     867}.cursor-not-allowed{
     868  cursor: not-allowed;
     869}.cursor-pointer{
     870  cursor: pointer;
     871}.cursor-text{
     872  cursor: text;
     873}.cursor-wait{
     874  cursor: wait;
     875}.touch-none{
     876  touch-action: none;
     877}.select-none{
     878  -webkit-user-select: none;
     879     -moz-user-select: none;
     880          user-select: none;
     881}.grid-cols-3{
     882  grid-template-columns: repeat(3, minmax(0, 1fr));
     883}.grid-cols-4{
     884  grid-template-columns: repeat(4, minmax(0, 1fr));
     885}.grid-cols-7{
     886  grid-template-columns: repeat(7, minmax(0, 1fr));
     887}.grid-rows-6{
     888  grid-template-rows: repeat(6, minmax(0, 1fr));
     889}.flex-row{
     890  flex-direction: row;
     891}.flex-col{
     892  flex-direction: column;
     893}.flex-wrap{
     894  flex-wrap: wrap;
     895}.flex-nowrap{
     896  flex-wrap: nowrap;
     897}.items-start{
     898  align-items: flex-start;
     899}.items-end{
     900  align-items: flex-end;
     901}.items-center{
     902  align-items: center;
     903}.items-stretch{
     904  align-items: stretch;
     905}.justify-start{
     906  justify-content: flex-start;
     907}.justify-end{
     908  justify-content: flex-end;
     909}.justify-center{
     910  justify-content: center;
     911}.justify-between{
     912  justify-content: space-between;
     913}.gap-0{
     914  gap: 0px;
     915}.gap-0\.5{
     916  gap: 0.125rem;
     917}.gap-1{
     918  gap: 0.25rem;
     919}.gap-1\.5{
     920  gap: 0.375rem;
     921}.gap-10{
     922  gap: 2.5rem;
     923}.gap-12{
     924  gap: 3rem;
     925}.gap-14{
     926  gap: 3.5rem;
     927}.gap-16{
     928  gap: 4rem;
     929}.gap-2{
     930  gap: 0.5rem;
     931}.gap-24{
     932  gap: 6rem;
     933}.gap-28{
     934  gap: 7rem;
     935}.gap-3{
     936  gap: 0.75rem;
     937}.gap-4{
     938  gap: 1rem;
     939}.gap-5{
     940  gap: 1.25rem;
     941}.gap-6{
     942  gap: 1.5rem;
     943}.gap-8{
     944  gap: 2rem;
     945}.gap-\[25px\]{
     946  gap: 25px;
     947}.gap-y-0{
     948  row-gap: 0px;
     949}.gap-y-1{
     950  row-gap: 0.25rem;
     951}.-space-x-1 > :not([hidden]) ~ :not([hidden]){
     952  --tw-space-x-reverse: 0;
     953  margin-right: calc(-0.25rem * var(--tw-space-x-reverse));
     954  margin-left: calc(-0.25rem * calc(1 - var(--tw-space-x-reverse)));
     955}.-space-x-2 > :not([hidden]) ~ :not([hidden]){
     956  --tw-space-x-reverse: 0;
     957  margin-right: calc(-0.5rem * var(--tw-space-x-reverse));
     958  margin-left: calc(-0.5rem * calc(1 - var(--tw-space-x-reverse)));
     959}.-space-x-3 > :not([hidden]) ~ :not([hidden]){
     960  --tw-space-x-reverse: 0;
     961  margin-right: calc(-0.75rem * var(--tw-space-x-reverse));
     962  margin-left: calc(-0.75rem * calc(1 - var(--tw-space-x-reverse)));
     963}.-space-x-4 > :not([hidden]) ~ :not([hidden]){
     964  --tw-space-x-reverse: 0;
     965  margin-right: calc(-1rem * var(--tw-space-x-reverse));
     966  margin-left: calc(-1rem * calc(1 - var(--tw-space-x-reverse)));
     967}.-space-x-5 > :not([hidden]) ~ :not([hidden]){
     968  --tw-space-x-reverse: 0;
     969  margin-right: calc(-1.25rem * var(--tw-space-x-reverse));
     970  margin-left: calc(-1.25rem * calc(1 - var(--tw-space-x-reverse)));
     971}.-space-x-6 > :not([hidden]) ~ :not([hidden]){
     972  --tw-space-x-reverse: 0;
     973  margin-right: calc(-1.5rem * var(--tw-space-x-reverse));
     974  margin-left: calc(-1.5rem * calc(1 - var(--tw-space-x-reverse)));
     975}.space-x-1 > :not([hidden]) ~ :not([hidden]){
     976  --tw-space-x-reverse: 0;
     977  margin-right: calc(0.25rem * var(--tw-space-x-reverse));
     978  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
     979}.space-x-6 > :not([hidden]) ~ :not([hidden]){
     980  --tw-space-x-reverse: 0;
     981  margin-right: calc(1.5rem * var(--tw-space-x-reverse));
     982  margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
     983}.space-y-6 > :not([hidden]) ~ :not([hidden]){
     984  --tw-space-y-reverse: 0;
     985  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
     986  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
     987}.divide-x > :not([hidden]) ~ :not([hidden]){
     988  --tw-divide-x-reverse: 0;
     989  border-right-width: calc(1px * var(--tw-divide-x-reverse));
     990  border-left-width: calc(1px * calc(1 - var(--tw-divide-x-reverse)));
     991}.divide-y > :not([hidden]) ~ :not([hidden]){
     992  --tw-divide-y-reverse: 0;
     993  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
     994  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
     995}.divide-surface-100 > :not([hidden]) ~ :not([hidden]){
     996  --tw-divide-opacity: 1;
     997  border-color: hsl(var(--wg-surface-100) / var(--wg-surface-100-opacity, var(--tw-divide-opacity)));
     998}.self-stretch{
     999  align-self: stretch;
     1000}.overflow-auto{
     1001  overflow: auto;
     1002}.overflow-hidden{
     1003  overflow: hidden;
     1004}.overflow-visible{
     1005  overflow: visible;
     1006}.truncate{
     1007  overflow: hidden;
     1008  text-overflow: ellipsis;
     1009  white-space: nowrap;
     1010}.whitespace-nowrap{
     1011  white-space: nowrap;
     1012}.text-nowrap{
     1013  text-wrap: nowrap;
     1014}.rounded{
     1015  border-radius: 0.25rem;
     1016}.rounded-2xl{
     1017  border-radius: 1rem;
     1018}.rounded-3xl{
     1019  border-radius: 1.5rem;
     1020}.rounded-\[9px\]{
     1021  border-radius: 9px;
     1022}.rounded-full{
     1023  border-radius: 9999px;
     1024}.rounded-lg{
     1025  border-radius: 0.5rem;
     1026}.rounded-md{
     1027  border-radius: 0.375rem;
     1028}.rounded-none{
     1029  border-radius: 0px;
     1030}.rounded-sm{
     1031  border-radius: 0.125rem;
     1032}.rounded-xl{
     1033  border-radius: 0.75rem;
     1034}.rounded-b-none{
     1035  border-bottom-right-radius: 0px;
     1036  border-bottom-left-radius: 0px;
     1037}.rounded-e-full{
     1038  border-start-end-radius: 9999px;
     1039  border-end-end-radius: 9999px;
     1040}.rounded-r-lg{
     1041  border-top-right-radius: 0.5rem;
     1042  border-bottom-right-radius: 0.5rem;
     1043}.rounded-t-xl{
     1044  border-top-left-radius: 0.75rem;
     1045  border-top-right-radius: 0.75rem;
     1046}.border{
     1047  border-width: 1px;
     1048}.border-0{
     1049  border-width: 0px;
     1050}.border-\[1px\]{
     1051  border-width: 1px;
     1052}.border-b{
     1053  border-bottom-width: 1px;
     1054}.border-b-2{
     1055  border-bottom-width: 2px;
     1056}.border-b-4{
     1057  border-bottom-width: 4px;
     1058}.border-b-\[1px\]{
     1059  border-bottom-width: 1px;
     1060}.border-l-2{
     1061  border-left-width: 2px;
     1062}.border-r{
     1063  border-right-width: 1px;
     1064}.border-t{
     1065  border-top-width: 1px;
     1066}.border-t-2{
     1067  border-top-width: 2px;
     1068}.border-t-\[1px\]{
     1069  border-top-width: 1px;
     1070}.border-none{
     1071  border-style: none;
     1072}.border-destructive{
     1073  --tw-border-opacity: 1;
     1074  border-color: hsl(var(--wg-destructive) / var(--wg-destructive-opacity, var(--tw-border-opacity)));
     1075}.border-primary{
     1076  --tw-border-opacity: 1;
     1077  border-color: rgb(60 32 172 / var(--tw-border-opacity));
     1078}.border-surface{
     1079  --tw-border-opacity: 1;
     1080  border-color: hsl(var(--wg-surface) / var(--wg-surface-opacity, var(--tw-border-opacity)));
     1081}.border-surface-100{
     1082  --tw-border-opacity: 1;
     1083  border-color: hsl(var(--wg-surface-100) / var(--wg-surface-100-opacity, var(--tw-border-opacity)));
     1084}.border-surface-200{
     1085  --tw-border-opacity: 1;
     1086  border-color: hsl(var(--wg-surface-200) / var(--wg-surface-200-opacity, var(--tw-border-opacity)));
     1087}.border-surface-50{
     1088  --tw-border-opacity: 1;
     1089  border-color: hsl(var(--wg-surface-50) / var(--wg-surface-50-opacity, var(--tw-border-opacity)));
     1090}.border-surface-600{
     1091  --tw-border-opacity: 1;
     1092  border-color: hsl(var(--wg-surface-600) / var(--wg-surface-600-opacity, var(--tw-border-opacity)));
     1093}.border-transparent{
     1094  border-color: transparent;
     1095}.border-wg-blue{
     1096  --tw-border-opacity: 1;
     1097  border-color: rgb(60 32 172 / var(--tw-border-opacity));
     1098}.border-wg-green{
     1099  --tw-border-opacity: 1;
     1100  border-color: rgb(45 202 114 / var(--tw-border-opacity));
     1101}.border-wg-red{
     1102  --tw-border-opacity: 1;
     1103  border-color: rgb(245 61 107 / var(--tw-border-opacity));
     1104}.border-wg-yellow{
     1105  --tw-border-opacity: 1;
     1106  border-color: rgb(255 196 58 / var(--tw-border-opacity));
     1107}.border-wg-yellow-500{
     1108  --tw-border-opacity: 1;
     1109  border-color: rgb(255 196 58 / var(--tw-border-opacity));
     1110}.border-white{
     1111  --tw-border-opacity: 1;
     1112  border-color: rgb(255 255 255 / var(--tw-border-opacity));
     1113}.border-b-primary{
     1114  --tw-border-opacity: 1;
     1115  border-bottom-color: rgb(60 32 172 / var(--tw-border-opacity));
     1116}.border-b-surface-200{
     1117  --tw-border-opacity: 1;
     1118  border-bottom-color: hsl(var(--wg-surface-200) / var(--wg-surface-200-opacity, var(--tw-border-opacity)));
     1119}.border-r-surface-100{
     1120  --tw-border-opacity: 1;
     1121  border-right-color: hsl(var(--wg-surface-100) / var(--wg-surface-100-opacity, var(--tw-border-opacity)));
     1122}.border-t-primary{
     1123  --tw-border-opacity: 1;
     1124  border-top-color: rgb(60 32 172 / var(--tw-border-opacity));
     1125}.bg-\[rgba\(0\2c 0\2c 0\2c 0\.1\)\]{
     1126  background-color: rgba(0,0,0,0.1);
     1127}.bg-background{
     1128  --tw-bg-opacity: 1;
     1129  background-color: hsl(var(--wg-background) / var(--wg-background-opacity, var(--tw-bg-opacity)));
     1130}.bg-destructive{
     1131  --tw-bg-opacity: 1;
     1132  background-color: hsl(var(--wg-destructive) / var(--wg-destructive-opacity, var(--tw-bg-opacity)));
     1133}.bg-destructive-50{
     1134  --tw-bg-opacity: 1;
     1135  background-color: hsl(var(--wg-destructive-50) / var(--wg-destructive-50-opacity, var(--tw-bg-opacity)));
     1136}.bg-gray-200{
     1137  --tw-bg-opacity: 1;
     1138  background-color: rgb(229 231 235 / var(--tw-bg-opacity));
     1139}.bg-green-50{
     1140  --tw-bg-opacity: 1;
     1141  background-color: rgb(240 253 244 / var(--tw-bg-opacity));
     1142}.bg-primary{
     1143  --tw-bg-opacity: 1;
     1144  background-color: rgb(60 32 172 / var(--tw-bg-opacity));
     1145}.bg-primary-100{
     1146  --tw-bg-opacity: 1;
     1147  background-color: rgb(221 210 250 / var(--tw-bg-opacity));
     1148}.bg-primary-100\/30{
     1149  background-color: rgb(221 210 250 / 0.3);
     1150}.bg-primary-100\/70{
     1151  background-color: rgb(221 210 250 / 0.7);
     1152}.bg-primary-50\/50{
     1153  background-color: hsl(var(--wg-primary-50) / 0.5);
     1154}.bg-primary-50\/75{
     1155  background-color: hsl(var(--wg-primary-50) / 0.75);
     1156}.bg-primary-500\/60{
     1157  background-color: rgb(60 32 172 / 0.6);
     1158}.bg-red-50{
     1159  --tw-bg-opacity: 1;
     1160  background-color: rgb(254 242 242 / var(--tw-bg-opacity));
     1161}.bg-secondary{
     1162  --tw-bg-opacity: 1;
     1163  background-color: rgb(255 196 58 / var(--tw-bg-opacity));
     1164}.bg-secondary-100\/0{
     1165  background-color: rgb(255 248 215 / 0);
     1166}.bg-secondary-100\/50{
     1167  background-color: rgb(255 248 215 / 0.5);
     1168}.bg-surface{
     1169  --tw-bg-opacity: 1;
     1170  background-color: hsl(var(--wg-surface) / var(--wg-surface-opacity, var(--tw-bg-opacity)));
     1171}.bg-surface-100{
     1172  --tw-bg-opacity: 1;
     1173  background-color: hsl(var(--wg-surface-100) / var(--wg-surface-100-opacity, var(--tw-bg-opacity)));
     1174}.bg-surface-200{
     1175  --tw-bg-opacity: 1;
     1176  background-color: hsl(var(--wg-surface-200) / var(--wg-surface-200-opacity, var(--tw-bg-opacity)));
     1177}.bg-surface-200\/25{
     1178  background-color: hsl(var(--wg-surface-200) / 0.25);
     1179}.bg-surface-200\/50{
     1180  background-color: hsl(var(--wg-surface-200) / 0.5);
     1181}.bg-surface-200\/60{
     1182  background-color: hsl(var(--wg-surface-200) / 0.6);
     1183}.bg-surface-50{
     1184  --tw-bg-opacity: 1;
     1185  background-color: hsl(var(--wg-surface-50) / var(--wg-surface-50-opacity, var(--tw-bg-opacity)));
     1186}.bg-surface-50\/50{
     1187  background-color: hsl(var(--wg-surface-50) / 0.5);
     1188}.bg-transparent{
     1189  background-color: transparent;
     1190}.bg-wg-blue{
     1191  --tw-bg-opacity: 1;
     1192  background-color: rgb(60 32 172 / var(--tw-bg-opacity));
     1193}.bg-wg-blue-50{
     1194  --tw-bg-opacity: 1;
     1195  background-color: rgb(240 250 255 / var(--tw-bg-opacity));
     1196}.bg-wg-gray{
     1197  --tw-bg-opacity: 1;
     1198  background-color: rgb(108 108 137 / var(--tw-bg-opacity));
     1199}.bg-wg-gray-300{
     1200  --tw-bg-opacity: 1;
     1201  background-color: rgb(169 169 188 / var(--tw-bg-opacity));
     1202}.bg-wg-green{
     1203  --tw-bg-opacity: 1;
     1204  background-color: rgb(45 202 114 / var(--tw-bg-opacity));
     1205}.bg-wg-green-50{
     1206  --tw-bg-opacity: 1;
     1207  background-color: rgb(238 251 244 / var(--tw-bg-opacity));
     1208}.bg-wg-green-500{
     1209  --tw-bg-opacity: 1;
     1210  background-color: rgb(45 202 114 / var(--tw-bg-opacity));
     1211}.bg-wg-orange{
     1212  --tw-bg-opacity: 1;
     1213  background-color: rgb(255 125 82 / var(--tw-bg-opacity));
     1214}.bg-wg-pink{
     1215  --tw-bg-opacity: 1;
     1216  background-color: rgb(247 95 222 / var(--tw-bg-opacity));
     1217}.bg-wg-purple{
     1218  --tw-bg-opacity: 1;
     1219  background-color: rgb(112 71 235 / var(--tw-bg-opacity));
     1220}.bg-wg-red{
     1221  --tw-bg-opacity: 1;
     1222  background-color: rgb(245 61 107 / var(--tw-bg-opacity));
     1223}.bg-wg-red-50{
     1224  --tw-bg-opacity: 1;
     1225  background-color: rgb(254 240 244 / var(--tw-bg-opacity));
     1226}.bg-wg-white{
     1227  --tw-bg-opacity: 1;
     1228  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
     1229}.bg-wg-yellow{
     1230  --tw-bg-opacity: 1;
     1231  background-color: rgb(255 196 58 / var(--tw-bg-opacity));
     1232}.bg-wg-yellow-50{
     1233  --tw-bg-opacity: 1;
     1234  background-color: rgb(255 249 235 / var(--tw-bg-opacity));
     1235}.bg-white{
     1236  --tw-bg-opacity: 1;
     1237  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
     1238}.bg-white\/5{
     1239  background-color: rgb(255 255 255 / 0.05);
     1240}.bg-cover{
     1241  background-size: cover;
     1242}.bg-clip-padding{
     1243  background-clip: padding-box;
     1244}.bg-center{
     1245  background-position: center;
     1246}.fill-current{
     1247  fill: currentColor;
     1248}.fill-none{
     1249  fill: none;
     1250}.fill-secondary-500{
     1251  fill: #FFC43A;
     1252}.fill-surface-50{
     1253  fill: hsl(var(--wg-surface-50) / var(--wg-surface-50-opacity, 1));
     1254}.stroke-current{
     1255  stroke: currentColor;
     1256}.stroke-inherit{
     1257  stroke: inherit;
     1258}.stroke-none{
     1259  stroke: none;
     1260}.stroke-surface-100{
     1261  stroke: hsl(var(--wg-surface-100) / var(--wg-surface-100-opacity, 1));
     1262}.stroke-1{
     1263  stroke-width: 1;
     1264}.object-cover{
     1265  -o-object-fit: cover;
     1266     object-fit: cover;
     1267}.object-center{
     1268  -o-object-position: center;
     1269     object-position: center;
     1270}.p-0{
     1271  padding: 0px;
     1272}.p-1{
     1273  padding: 0.25rem;
     1274}.p-2{
     1275  padding: 0.5rem;
     1276}.p-2px{
     1277  padding: calc(2px - var(--wg-border-width, 0px));
     1278}.p-3{
     1279  padding: 0.75rem;
     1280}.p-4{
     1281  padding: 1rem;
     1282}.p-5{
     1283  padding: 1.25rem;
     1284}.p-6px{
     1285  padding: calc(6px - var(--wg-border-width, 0px));
     1286}.p-8px{
     1287  padding: calc(8px - var(--wg-border-width, 0px));
     1288}.p-\[6px\]{
     1289  padding: 6px;
     1290}.px-0{
     1291  padding-left: 0px;
     1292  padding-right: 0px;
     1293}.px-0\.5{
     1294  padding-left: 0.125rem;
     1295  padding-right: 0.125rem;
     1296}.px-1{
     1297  padding-left: 0.25rem;
     1298  padding-right: 0.25rem;
     1299}.px-1\.5{
     1300  padding-left: 0.375rem;
     1301  padding-right: 0.375rem;
     1302}.px-10{
     1303  padding-left: 2.5rem;
     1304  padding-right: 2.5rem;
     1305}.px-12px{
     1306  padding-left: calc(12px - var(--wg-border-width, 0px));
     1307  padding-right: calc(12px - var(--wg-border-width, 0px));
     1308}.px-2{
     1309  padding-left: 0.5rem;
     1310  padding-right: 0.5rem;
     1311}.px-3{
     1312  padding-left: 0.75rem;
     1313  padding-right: 0.75rem;
     1314}.px-4{
     1315  padding-left: 1rem;
     1316  padding-right: 1rem;
     1317}.px-5{
     1318  padding-left: 1.25rem;
     1319  padding-right: 1.25rem;
     1320}.px-6{
     1321  padding-left: 1.5rem;
     1322  padding-right: 1.5rem;
     1323}.px-8px{
     1324  padding-left: calc(8px - var(--wg-border-width, 0px));
     1325  padding-right: calc(8px - var(--wg-border-width, 0px));
     1326}.px-\[6px\]{
     1327  padding-left: 6px;
     1328  padding-right: 6px;
     1329}.px-\[8px\]{
     1330  padding-left: 8px;
     1331  padding-right: 8px;
     1332}.py-0\.5{
     1333  padding-top: 0.125rem;
     1334  padding-bottom: 0.125rem;
     1335}.py-1{
     1336  padding-top: 0.25rem;
     1337  padding-bottom: 0.25rem;
     1338}.py-10{
     1339  padding-top: 2.5rem;
     1340  padding-bottom: 2.5rem;
     1341}.py-14px{
     1342  padding-top: 14px;
     1343  padding-bottom: 14px;
     1344}.py-2{
     1345  padding-top: 0.5rem;
     1346  padding-bottom: 0.5rem;
     1347}.py-3{
     1348  padding-top: 0.75rem;
     1349  padding-bottom: 0.75rem;
     1350}.py-4{
     1351  padding-top: 1rem;
     1352  padding-bottom: 1rem;
     1353}.py-4px{
     1354  padding-top: calc(4px - var(--wg-border-width, 0px));
     1355  padding-bottom: calc(4px - var(--wg-border-width, 0px));
     1356}.py-5{
     1357  padding-top: 1.25rem;
     1358  padding-bottom: 1.25rem;
     1359}.py-6px{
     1360  padding-top: calc(6px - var(--wg-border-width, 0px));
     1361  padding-bottom: calc(6px - var(--wg-border-width, 0px));
     1362}.py-8{
     1363  padding-top: 2rem;
     1364  padding-bottom: 2rem;
     1365}.py-8px{
     1366  padding-top: calc(8px - var(--wg-border-width, 0px));
     1367  padding-bottom: calc(8px - var(--wg-border-width, 0px));
     1368}.pb-1{
     1369  padding-bottom: 0.25rem;
     1370}.pb-2{
     1371  padding-bottom: 0.5rem;
     1372}.pb-3{
     1373  padding-bottom: 0.75rem;
     1374}.pl-1{
     1375  padding-left: 0.25rem;
     1376}.pl-10{
     1377  padding-left: 2.5rem;
     1378}.pl-14px{
     1379  padding-left: 14px;
     1380}.pl-\[var\(--wg-offset-padding-left\2c 1rem\)\]{
     1381  padding-left: var(--wg-offset-padding-left,1rem);
     1382}.pr-1{
     1383  padding-right: 0.25rem;
     1384}.pr-10{
     1385  padding-right: 2.5rem;
     1386}.pr-20{
     1387  padding-right: 5rem;
     1388}.ps-4{
     1389  padding-inline-start: 1rem;
     1390}.pt-1{
     1391  padding-top: 0.25rem;
     1392}.pt-2{
     1393  padding-top: 0.5rem;
     1394}.pt-4{
     1395  padding-top: 1rem;
     1396}.pt-5{
     1397  padding-top: 1.25rem;
     1398}.text-left{
     1399  text-align: left;
     1400}.text-center{
     1401  text-align: center;
     1402}.text-start{
     1403  text-align: start;
     1404}.font-sans{
     1405  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
     1406}.\!text-base{
     1407  font-size: 1rem !important;
     1408  line-height: 1.5rem !important;
     1409}.\!text-sm{
     1410  font-size: 0.875rem !important;
     1411  line-height: 1.25rem !important;
     1412}.text-2xl{
     1413  font-size: 1.5rem;
     1414  line-height: 2rem;
     1415}.text-\[72px\]{
     1416  font-size: 72px;
     1417}.text-base{
     1418  font-size: 1rem;
     1419  line-height: 1.5rem;
     1420}.text-lg{
     1421  font-size: 1.125rem;
     1422  line-height: 1.75rem;
     1423}.text-sm{
     1424  font-size: 0.875rem;
     1425  line-height: 1.25rem;
     1426}.text-xl{
     1427  font-size: 1.25rem;
     1428  line-height: 1.75rem;
     1429}.text-xs{
     1430  font-size: 0.75rem;
     1431  line-height: 1rem;
     1432}.text-xxs{
     1433  font-size: 0.625rem;
     1434  line-height: 1rem;
     1435}.\!font-medium{
     1436  font-weight: 500 !important;
     1437}.font-medium{
     1438  font-weight: 500;
     1439}.font-normal{
     1440  font-weight: 400;
     1441}.font-semibold{
     1442  font-weight: 600;
     1443}.uppercase{
     1444  text-transform: uppercase;
     1445}.italic{
     1446  font-style: italic;
     1447}.\!leading-\[0\]{
     1448  line-height: 0 !important;
     1449}.leading-4{
     1450  line-height: 1rem;
     1451}.leading-5{
     1452  line-height: 1.25rem;
     1453}.leading-6{
     1454  line-height: 1.5rem;
     1455}.leading-\[80px\]{
     1456  line-height: 80px;
     1457}.leading-tight{
     1458  line-height: 1.25;
     1459}.tracking-tighter{
     1460  letter-spacing: -0.05em;
     1461}.tracking-wider{
     1462  letter-spacing: 0.05em;
     1463}.\!text-blue-500{
     1464  --tw-text-opacity: 1 !important;
     1465  color: rgb(59 130 246 / var(--tw-text-opacity)) !important;
     1466}.\!text-green-500{
     1467  --tw-text-opacity: 1 !important;
     1468  color: rgb(34 197 94 / var(--tw-text-opacity)) !important;
     1469}.\!text-primary{
     1470  --tw-text-opacity: 1 !important;
     1471  color: rgb(60 32 172 / var(--tw-text-opacity)) !important;
     1472}.\!text-red-500{
     1473  --tw-text-opacity: 1 !important;
     1474  color: rgb(239 68 68 / var(--tw-text-opacity)) !important;
     1475}.\!text-secondary{
     1476  --tw-text-opacity: 1 !important;
     1477  color: rgb(255 196 58 / var(--tw-text-opacity)) !important;
     1478}.\!text-surface-700{
     1479  --tw-text-opacity: 1 !important;
     1480  color: hsl(var(--wg-surface-700) / var(--wg-surface-700-opacity, var(--tw-text-opacity))) !important;
     1481}.\!text-surface-900{
     1482  --tw-text-opacity: 1 !important;
     1483  color: hsl(var(--wg-surface-900) / var(--wg-surface-900-opacity, var(--tw-text-opacity))) !important;
     1484}.\!text-wg-red{
     1485  --tw-text-opacity: 1 !important;
     1486  color: rgb(245 61 107 / var(--tw-text-opacity)) !important;
     1487}.\!text-wg-red-500{
     1488  --tw-text-opacity: 1 !important;
     1489  color: rgb(245 61 107 / var(--tw-text-opacity)) !important;
     1490}.text-\[\#E67613\]{
     1491  --tw-text-opacity: 1;
     1492  color: rgb(230 118 19 / var(--tw-text-opacity));
     1493}.text-background{
     1494  --tw-text-opacity: 1;
     1495  color: hsl(var(--wg-background) / var(--wg-background-opacity, var(--tw-text-opacity)));
     1496}.text-black{
     1497  --tw-text-opacity: 1;
     1498  color: rgb(0 0 0 / var(--tw-text-opacity));
     1499}.text-body{
     1500  --tw-text-opacity: 1;
     1501  color: rgb(18 18 23 / var(--tw-text-opacity));
     1502}.text-current{
     1503  color: currentColor;
     1504}.text-destructive{
     1505  --tw-text-opacity: 1;
     1506  color: hsl(var(--wg-destructive) / var(--wg-destructive-opacity, var(--tw-text-opacity)));
     1507}.text-destructive-700{
     1508  --tw-text-opacity: 1;
     1509  color: hsl(var(--wg-destructive-700) / var(--wg-destructive-700-opacity, var(--tw-text-opacity)));
     1510}.text-destructive\/50{
     1511  color: hsl(var(--wg-destructive) / 0.5);
     1512}.text-gray-400{
     1513  --tw-text-opacity: 1;
     1514  color: rgb(156 163 175 / var(--tw-text-opacity));
     1515}.text-gray-500{
     1516  --tw-text-opacity: 1;
     1517  color: rgb(107 114 128 / var(--tw-text-opacity));
     1518}.text-gray-600{
     1519  --tw-text-opacity: 1;
     1520  color: rgb(75 85 99 / var(--tw-text-opacity));
     1521}.text-inherit{
     1522  color: inherit;
     1523}.text-primary{
     1524  --tw-text-opacity: 1;
     1525  color: rgb(60 32 172 / var(--tw-text-opacity));
     1526}.text-primary-300{
     1527  --tw-text-opacity: 1;
     1528  color: rgb(144 117 230 / var(--tw-text-opacity));
     1529}.text-primary-400{
     1530  --tw-text-opacity: 1;
     1531  color: rgb(107 79 205 / var(--tw-text-opacity));
     1532}.text-primary-500{
     1533  --tw-text-opacity: 1;
     1534  color: rgb(60 32 172 / var(--tw-text-opacity));
     1535}.text-primary-700{
     1536  --tw-text-opacity: 1;
     1537  color: rgb(33 16 123 / var(--tw-text-opacity));
     1538}.text-primary-800{
     1539  --tw-text-opacity: 1;
     1540  color: rgb(22 10 99 / var(--tw-text-opacity));
     1541}.text-secondary{
     1542  --tw-text-opacity: 1;
     1543  color: rgb(255 196 58 / var(--tw-text-opacity));
     1544}.text-secondary-500{
     1545  --tw-text-opacity: 1;
     1546  color: rgb(255 196 58 / var(--tw-text-opacity));
     1547}.text-secondary-800{
     1548  --tw-text-opacity: 1;
     1549  color: rgb(147 97 18 / var(--tw-text-opacity));
     1550}.text-secondary-900{
     1551  --tw-text-opacity: 1;
     1552  color: rgb(122 75 11 / var(--tw-text-opacity));
     1553}.text-slate-700{
     1554  --tw-text-opacity: 1;
     1555  color: rgb(51 65 85 / var(--tw-text-opacity));
     1556}.text-surface{
     1557  --tw-text-opacity: 1;
     1558  color: hsl(var(--wg-surface) / var(--wg-surface-opacity, var(--tw-text-opacity)));
     1559}.text-surface-100{
     1560  --tw-text-opacity: 1;
     1561  color: hsl(var(--wg-surface-100) / var(--wg-surface-100-opacity, var(--tw-text-opacity)));
     1562}.text-surface-200{
     1563  --tw-text-opacity: 1;
     1564  color: hsl(var(--wg-surface-200) / var(--wg-surface-200-opacity, var(--tw-text-opacity)));
     1565}.text-surface-300{
     1566  --tw-text-opacity: 1;
     1567  color: hsl(var(--wg-surface-300) / var(--wg-surface-300-opacity, var(--tw-text-opacity)));
     1568}.text-surface-400{
     1569  --tw-text-opacity: 1;
     1570  color: hsl(var(--wg-surface-400) / var(--wg-surface-400-opacity, var(--tw-text-opacity)));
     1571}.text-surface-50{
     1572  --tw-text-opacity: 1;
     1573  color: hsl(var(--wg-surface-50) / var(--wg-surface-50-opacity, var(--tw-text-opacity)));
     1574}.text-surface-500{
     1575  --tw-text-opacity: 1;
     1576  color: hsl(var(--wg-surface-500) / var(--wg-surface-500-opacity, var(--tw-text-opacity)));
     1577}.text-surface-600{
     1578  --tw-text-opacity: 1;
     1579  color: hsl(var(--wg-surface-600) / var(--wg-surface-600-opacity, var(--tw-text-opacity)));
     1580}.text-surface-700{
     1581  --tw-text-opacity: 1;
     1582  color: hsl(var(--wg-surface-700) / var(--wg-surface-700-opacity, var(--tw-text-opacity)));
     1583}.text-surface-900{
     1584  --tw-text-opacity: 1;
     1585  color: hsl(var(--wg-surface-900) / var(--wg-surface-900-opacity, var(--tw-text-opacity)));
     1586}.text-wg-blue{
     1587  --tw-text-opacity: 1;
     1588  color: rgb(60 32 172 / var(--tw-text-opacity));
     1589}.text-wg-blue-700{
     1590  --tw-text-opacity: 1;
     1591  color: rgb(33 16 123 / var(--tw-text-opacity));
     1592}.text-wg-blue-800{
     1593  --tw-text-opacity: 1;
     1594  color: rgb(22 10 99 / var(--tw-text-opacity));
     1595}.text-wg-gray-400{
     1596  --tw-text-opacity: 1;
     1597  color: rgb(138 138 163 / var(--tw-text-opacity));
     1598}.text-wg-gray-700{
     1599  --tw-text-opacity: 1;
     1600  color: rgb(63 63 80 / var(--tw-text-opacity));
     1601}.text-wg-green{
     1602  --tw-text-opacity: 1;
     1603  color: rgb(45 202 114 / var(--tw-text-opacity));
     1604}.text-wg-green-500{
     1605  --tw-text-opacity: 1;
     1606  color: rgb(45 202 114 / var(--tw-text-opacity));
     1607}.text-wg-green-600{
     1608  --tw-text-opacity: 1;
     1609  color: rgb(38 169 95 / var(--tw-text-opacity));
     1610}.text-wg-green-700{
     1611  --tw-text-opacity: 1;
     1612  color: rgb(30 135 76 / var(--tw-text-opacity));
     1613}.text-wg-green-800{
     1614  --tw-text-opacity: 1;
     1615  color: rgb(23 102 58 / var(--tw-text-opacity));
     1616}.text-wg-green\/50{
     1617  color: rgb(45 202 114 / 0.5);
     1618}.text-wg-orange{
     1619  --tw-text-opacity: 1;
     1620  color: rgb(255 125 82 / var(--tw-text-opacity));
     1621}.text-wg-orange-700{
     1622  --tw-text-opacity: 1;
     1623  color: rgb(235 58 0 / var(--tw-text-opacity));
     1624}.text-wg-orange-800{
     1625  --tw-text-opacity: 1;
     1626  color: rgb(184 46 0 / var(--tw-text-opacity));
     1627}.text-wg-pink{
     1628  --tw-text-opacity: 1;
     1629  color: rgb(247 95 222 / var(--tw-text-opacity));
     1630}.text-wg-pink-700{
     1631  --tw-text-opacity: 1;
     1632  color: rgb(219 11 185 / var(--tw-text-opacity));
     1633}.text-wg-pink-800{
     1634  --tw-text-opacity: 1;
     1635  color: rgb(165 8 140 / var(--tw-text-opacity));
     1636}.text-wg-purple{
     1637  --tw-text-opacity: 1;
     1638  color: rgb(112 71 235 / var(--tw-text-opacity));
     1639}.text-wg-purple-400{
     1640  --tw-text-opacity: 1;
     1641  color: rgb(141 108 239 / var(--tw-text-opacity));
     1642}.text-wg-purple-700{
     1643  --tw-text-opacity: 1;
     1644  color: rgb(67 22 202 / var(--tw-text-opacity));
     1645}.text-wg-red{
     1646  --tw-text-opacity: 1;
     1647  color: rgb(245 61 107 / var(--tw-text-opacity));
     1648}.text-wg-red-300{
     1649  --tw-text-opacity: 1;
     1650  color: rgb(249 139 166 / var(--tw-text-opacity));
     1651}.text-wg-red-500{
     1652  --tw-text-opacity: 1;
     1653  color: rgb(245 61 107 / var(--tw-text-opacity));
     1654}.text-wg-red-700{
     1655  --tw-text-opacity: 1;
     1656  color: rgb(213 11 62 / var(--tw-text-opacity));
     1657}.text-wg-red-800{
     1658  --tw-text-opacity: 1;
     1659  color: rgb(175 9 50 / var(--tw-text-opacity));
     1660}.text-wg-white-500{
     1661  color: rgba(255,255,255, 0.5);
     1662}.text-wg-yellow{
     1663  --tw-text-opacity: 1;
     1664  color: rgb(255 196 58 / var(--tw-text-opacity));
     1665}.text-wg-yellow-700{
     1666  --tw-text-opacity: 1;
     1667  color: rgb(183 127 29 / var(--tw-text-opacity));
     1668}.text-wg-yellow-800{
     1669  --tw-text-opacity: 1;
     1670  color: rgb(147 97 18 / var(--tw-text-opacity));
     1671}.text-white{
     1672  --tw-text-opacity: 1;
     1673  color: rgb(255 255 255 / var(--tw-text-opacity));
     1674}.underline{
     1675  text-decoration-line: underline;
     1676}.line-through{
     1677  text-decoration-line: line-through;
     1678}.no-underline{
     1679  text-decoration-line: none;
     1680}.decoration-secondary-500{
     1681  text-decoration-color: #FFC43A;
     1682}.decoration-wavy{
     1683  text-decoration-style: wavy;
     1684}.underline-offset-3{
     1685  text-underline-offset: 3px;
     1686}.antialiased{
     1687  -webkit-font-smoothing: antialiased;
     1688  -moz-osx-font-smoothing: grayscale;
     1689}.\!opacity-100{
     1690  opacity: 1 !important;
     1691}.\!opacity-70{
     1692  opacity: 0.7 !important;
     1693}.opacity-0{
     1694  opacity: 0;
     1695}.opacity-100{
     1696  opacity: 1;
     1697}.opacity-40{
     1698  opacity: 0.4;
     1699}.opacity-50{
     1700  opacity: 0.5;
     1701}.opacity-90{
     1702  opacity: 0.9;
     1703}.\!shadow-none{
     1704  --tw-shadow: 0 0 #0000 !important;
     1705  --tw-shadow-colored: 0 0 #0000 !important;
     1706  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
     1707}.shadow-nakama{
     1708  --tw-shadow: 0 9px 25px -5px rgba(18,18,23,0.1), 0 10px 10px -5px rgba(18, 18, 23, 0.04);
     1709  --tw-shadow-colored: 0 9px 25px -5px var(--tw-shadow-color), 0 10px 10px -5px var(--tw-shadow-color);
     1710  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
     1711}.shadow-none{
     1712  --tw-shadow: 0 0 #0000;
     1713  --tw-shadow-colored: 0 0 #0000;
     1714  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
     1715}.shadow-sm{
     1716  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
     1717  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
     1718  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
     1719}.shadow-wg-lg{
     1720  --tw-shadow: 0px 4px 6px -2px rgba(18, 18, 23, 0.05), 0px 10px 15px -3px rgba(18, 18, 23, 0.08);
     1721  --tw-shadow-colored: 0px 4px 6px -2px var(--tw-shadow-color), 0px 10px 15px -3px var(--tw-shadow-color);
     1722  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
     1723}.shadow-wg-overlay{
     1724  --tw-shadow: 0px 2px 4px 0px rgba(18, 18, 23, 0.04), 0px 5px 8px 0px rgba(18, 18, 23, 0.04), 0px 10px 18px 0px rgba(18, 18, 23, 0.03), 0px 24px 48px 0px rgba(18, 18, 23, 0.03), 0px 0px 0px 1px rgba(18, 18, 23, 0.10);
     1725  --tw-shadow-colored: 0px 2px 4px 0px var(--tw-shadow-color), 0px 5px 8px 0px var(--tw-shadow-color), 0px 10px 18px 0px var(--tw-shadow-color), 0px 24px 48px 0px var(--tw-shadow-color), 0px 0px 0px 1px var(--tw-shadow-color);
     1726  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
     1727}.shadow-wg-sm{
     1728  --tw-shadow: 0 1px 3px 0 rgba(18, 18, 23, 0.1), 0 1px 2px 0 rgba(18, 18, 23, 0.06);
     1729  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px 0 var(--tw-shadow-color);
     1730  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
     1731}.shadow-wg-xs{
     1732  --tw-shadow: 0 1px 2px 0 rgba(18, 18, 23, 0.05);
     1733  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
     1734  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
     1735}.outline-none{
     1736  outline: 2px solid transparent;
     1737  outline-offset: 2px;
     1738}.outline{
     1739  outline-style: solid;
     1740}.outline-1{
     1741  outline-width: 1px;
     1742}.outline-2{
     1743  outline-width: 2px;
     1744}.-outline-offset-1{
     1745  outline-offset: -1px;
     1746}.outline-destructive{
     1747  outline-color: hsl(var(--wg-destructive) / var(--wg-destructive-opacity, 1));
     1748}.outline-primary{
     1749  outline-color: #3C20AC;
     1750}.outline-primary-200{
     1751  outline-color: #BBA6F6;
     1752}.outline-secondary{
     1753  outline-color: #FFC43A;
     1754}.outline-surface-100{
     1755  outline-color: hsl(var(--wg-surface-100) / var(--wg-surface-100-opacity, 1));
     1756}.outline-surface-200{
     1757  outline-color: hsl(var(--wg-surface-200) / var(--wg-surface-200-opacity, 1));
     1758}.outline-surface-50{
     1759  outline-color: hsl(var(--wg-surface-50) / var(--wg-surface-50-opacity, 1));
     1760}.outline-transparent{
     1761  outline-color: transparent;
     1762}.outline-wg-blue-200{
     1763  outline-color: #BBA6F6;
     1764}.outline-wg-green-200{
     1765  outline-color: #B2EECC;
     1766}.outline-wg-orange-200{
     1767  outline-color: #FFCDBD;
     1768}.outline-wg-pink-200{
     1769  outline-color: #FCC5F3;
     1770}.outline-wg-purple-200{
     1771  outline-color: #C6B6F7;
     1772}.outline-wg-red-200{
     1773  outline-color: #FBB1C4;
     1774}.outline-wg-yellow-300{
     1775  outline-color: #FFE288;
     1776}.ring{
     1777  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
     1778  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
     1779  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
     1780}.ring-1{
     1781  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
     1782  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
     1783  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
     1784}.ring-2{
     1785  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
     1786  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
     1787  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
     1788}.ring-background{
     1789  --tw-ring-opacity: 1;
     1790  --tw-ring-color: hsl(var(--wg-background) / var(--wg-background-opacity, var(--tw-ring-opacity)));
     1791}.blur-0{
     1792  --tw-blur: blur(0);
     1793  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
     1794}.blur-\[2px\]{
     1795  --tw-blur: blur(2px);
     1796  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
     1797}.grayscale{
     1798  --tw-grayscale: grayscale(100%);
     1799  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
     1800}.filter{
     1801  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
     1802}.backdrop-blur-3xl{
     1803  --tw-backdrop-blur: blur(64px);
     1804  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
     1805  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
     1806}.backdrop-blur-md{
     1807  --tw-backdrop-blur: blur(12px);
     1808  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
     1809  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
     1810}.transition{
     1811  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
     1812  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
     1813  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
     1814  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
     1815  transition-duration: 150ms;
     1816}.transition-all{
     1817  transition-property: all;
     1818  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
     1819  transition-duration: 150ms;
     1820}.transition-colors{
     1821  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
     1822  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
     1823  transition-duration: 150ms;
     1824}.transition-opacity{
     1825  transition-property: opacity;
     1826  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
     1827  transition-duration: 150ms;
     1828}.transition-transform{
     1829  transition-property: transform;
     1830  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
     1831  transition-duration: 150ms;
     1832}.delay-200{
     1833  transition-delay: 200ms;
     1834}.duration-100{
     1835  transition-duration: 100ms;
     1836}.duration-150{
     1837  transition-duration: 150ms;
     1838}.duration-200{
     1839  transition-duration: 200ms;
     1840}.duration-300{
     1841  transition-duration: 300ms;
     1842}.duration-75{
     1843  transition-duration: 75ms;
     1844}.ease-in-out{
     1845  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
     1846}.ease-linear{
     1847  transition-timing-function: linear;
     1848}.will-change-transform{
     1849  will-change: transform;
     1850}:where(:root){
     1851  color-scheme: light;
     1852  --wg-background: 0 0% 100%;
     1853  --wg-background-opacity: 1.00;
     1854  --wg-foreground: 240 12% 8%;
     1855  --wg-foreground-opacity: 1.00;
     1856  --wg-primary-50: 255 75% 97%;
     1857  --wg-primary-50-opacity: 1.00;
     1858  --wg-primary-100: 255 80% 92%;
     1859  --wg-primary-100-opacity: 1.00;
     1860  --wg-primary-200: 255 80% 84%;
     1861  --wg-primary-200-opacity: 1.00;
     1862  --wg-primary-300: 255 80% 76%;
     1863  --wg-primary-300-opacity: 1.00;
     1864  --wg-primary-400: 255 80% 68%;
     1865  --wg-primary-400-opacity: 1.00;
     1866  --wg-primary-500: 255 80% 60%;
     1867  --wg-primary-500-opacity: 1.00;
     1868  --wg-primary-600: 255 80% 52%;
     1869  --wg-primary-600-opacity: 1.00;
     1870  --wg-primary-700: 255 80% 44%;
     1871  --wg-primary-700-opacity: 1.00;
     1872  --wg-primary-800: 255 80% 36%;
     1873  --wg-primary-800-opacity: 1.00;
     1874  --wg-primary-900: 255 80% 28%;
     1875  --wg-primary-900-opacity: 1.00;
     1876  --wg-primary: 255 80% 60%;
     1877  --wg-primary-opacity: 1.00;
     1878  --wg-secondary-50: 240 7% 97%;
     1879  --wg-secondary-50-opacity: 1.00;
     1880  --wg-secondary-100: 240 11% 93%;
     1881  --wg-secondary-100-opacity: 1.00;
     1882  --wg-secondary-200: 240 12% 84%;
     1883  --wg-secondary-200-opacity: 1.00;
     1884  --wg-secondary-300: 240 12% 70%;
     1885  --wg-secondary-300-opacity: 1.00;
     1886  --wg-secondary-400: 240 12% 59%;
     1887  --wg-secondary-400-opacity: 1.00;
     1888  --wg-secondary-500: 240 12% 48%;
     1889  --wg-secondary-500-opacity: 1.00;
     1890  --wg-secondary-600: 240 12% 38%;
     1891  --wg-secondary-600-opacity: 1.00;
     1892  --wg-secondary-700: 240 12% 28%;
     1893  --wg-secondary-700-opacity: 1.00;
     1894  --wg-secondary-800: 240 12% 18%;
     1895  --wg-secondary-800-opacity: 1.00;
     1896  --wg-secondary-900: 240 12% 8%;
     1897  --wg-secondary-900-opacity: 1.00;
     1898  --wg-secondary: 240 12% 8%;
     1899  --wg-secondary-opacity: 1.00;
     1900  --wg-surface-50: 240 7% 97%;
     1901  --wg-surface-50-opacity: 1.00;
     1902  --wg-surface-100: 240 11% 93%;
     1903  --wg-surface-100-opacity: 1.00;
     1904  --wg-surface-200: 240 12% 84%;
     1905  --wg-surface-200-opacity: 1.00;
     1906  --wg-surface-300: 240 12% 70%;
     1907  --wg-surface-300-opacity: 1.00;
     1908  --wg-surface-400: 240 12% 59%;
     1909  --wg-surface-400-opacity: 1.00;
     1910  --wg-surface-500: 240 12% 48%;
     1911  --wg-surface-500-opacity: 1.00;
     1912  --wg-surface-600: 240 12% 38%;
     1913  --wg-surface-600-opacity: 1.00;
     1914  --wg-surface-700: 240 12% 28%;
     1915  --wg-surface-700-opacity: 1.00;
     1916  --wg-surface-800: 240 12% 18%;
     1917  --wg-surface-800-opacity: 1.00;
     1918  --wg-surface-900: 240 12% 8%;
     1919  --wg-surface-900-opacity: 1.00;
     1920  --wg-surface: 240 7% 97%;
     1921  --wg-surface-opacity: 1.00;
     1922  --wg-destructive-50: 343 88% 97%;
     1923  --wg-destructive-50-opacity: 1.00;
     1924  --wg-destructive-100: 345 90% 92%;
     1925  --wg-destructive-100-opacity: 1.00;
     1926  --wg-destructive-200: 345 90% 84%;
     1927  --wg-destructive-200-opacity: 1.00;
     1928  --wg-destructive-300: 345 90% 76%;
     1929  --wg-destructive-300-opacity: 1.00;
     1930  --wg-destructive-400: 345 90% 68%;
     1931  --wg-destructive-400-opacity: 1.00;
     1932  --wg-destructive-500: 345 90% 60%;
     1933  --wg-destructive-500-opacity: 1.00;
     1934  --wg-destructive-600: 345 90% 52%;
     1935  --wg-destructive-600-opacity: 1.00;
     1936  --wg-destructive-700: 345 90% 44%;
     1937  --wg-destructive-700-opacity: 1.00;
     1938  --wg-destructive-800: 345 90% 36%;
     1939  --wg-destructive-800-opacity: 1.00;
     1940  --wg-destructive-900: 345 90% 28%;
     1941  --wg-destructive-900-opacity: 1.00;
     1942  --wg-destructive: 345 90% 60%;
     1943  --wg-destructive-opacity: 1.00;
     1944}.dark,[data-theme="dark"]{
     1945  color-scheme: dark;
     1946  --wg-background: 240 12% 8%;
     1947  --wg-background-opacity: 1.00;
     1948  --wg-foreground: 0 0% 100%;
     1949  --wg-foreground-opacity: 1.00;
     1950  --wg-primary-50: 255 75% 97%;
     1951  --wg-primary-50-opacity: 1.00;
     1952  --wg-primary-100: 255 80% 92%;
     1953  --wg-primary-100-opacity: 1.00;
     1954  --wg-primary-200: 255 80% 84%;
     1955  --wg-primary-200-opacity: 1.00;
     1956  --wg-primary-300: 255 80% 76%;
     1957  --wg-primary-300-opacity: 1.00;
     1958  --wg-primary-400: 255 80% 68%;
     1959  --wg-primary-400-opacity: 1.00;
     1960  --wg-primary-500: 255 80% 60%;
     1961  --wg-primary-500-opacity: 1.00;
     1962  --wg-primary-600: 255 80% 60%;
     1963  --wg-primary-600-opacity: 1.00;
     1964  --wg-primary-700: 255 80% 44%;
     1965  --wg-primary-700-opacity: 1.00;
     1966  --wg-primary-800: 255 80% 36%;
     1967  --wg-primary-800-opacity: 1.00;
     1968  --wg-primary-900: 255 80% 28%;
     1969  --wg-primary-900-opacity: 1.00;
     1970  --wg-primary: 255 80% 68%;
     1971  --wg-primary-opacity: 1.00;
     1972  --wg-secondary-50: 0 0% 100%;
     1973  --wg-secondary-50-opacity: 0.05;
     1974  --wg-secondary-100: 0 0% 100%;
     1975  --wg-secondary-100-opacity: 0.10;
     1976  --wg-secondary-200: 0 0% 100%;
     1977  --wg-secondary-200-opacity: 0.20;
     1978  --wg-secondary-300: 0 0% 100%;
     1979  --wg-secondary-300-opacity: 0.30;
     1980  --wg-secondary-400: 0 0% 100%;
     1981  --wg-secondary-400-opacity: 0.40;
     1982  --wg-secondary-500: 0 0% 100%;
     1983  --wg-secondary-500-opacity: 0.50;
     1984  --wg-secondary-600: 0 0% 100%;
     1985  --wg-secondary-600-opacity: 0.60;
     1986  --wg-secondary-700: 0 0% 100%;
     1987  --wg-secondary-700-opacity: 0.80;
     1988  --wg-secondary-800: 0 0% 100%;
     1989  --wg-secondary-800-opacity: 0.90;
     1990  --wg-secondary-900: 240 12% 8%;
     1991  --wg-secondary-900-opacity: 1.00;
     1992  --wg-secondary: 0 0% 100%;
     1993  --wg-secondary-opacity: 1.00;
     1994  --wg-surface-50: 0 0% 100%;
     1995  --wg-surface-50-opacity: 0.10;
     1996  --wg-surface-100: 0 0% 100%;
     1997  --wg-surface-100-opacity: 0.20;
     1998  --wg-surface-200: 0 0% 100%;
     1999  --wg-surface-200-opacity: 0.30;
     2000  --wg-surface-300: 0 0% 100%;
     2001  --wg-surface-300-opacity: 0.40;
     2002  --wg-surface-400: 0 0% 100%;
     2003  --wg-surface-400-opacity: 0.50;
     2004  --wg-surface-500: 0 0% 100%;
     2005  --wg-surface-500-opacity: 0.50;
     2006  --wg-surface-600: 0 0% 100%;
     2007  --wg-surface-600-opacity: 0.70;
     2008  --wg-surface-700: 0 0% 100%;
     2009  --wg-surface-700-opacity: 0.80;
     2010  --wg-surface-800: 0 0% 100%;
     2011  --wg-surface-800-opacity: 0.90;
     2012  --wg-surface-900: 0 0% 100%;
     2013  --wg-surface-900-opacity: 1.00;
     2014  --wg-surface: 0 0% 100%;
     2015  --wg-surface-opacity: 0.10;
     2016  --wg-destructive-50: 343 88% 97%;
     2017  --wg-destructive-50-opacity: 1.00;
     2018  --wg-destructive-100: 345 90% 92%;
     2019  --wg-destructive-100-opacity: 1.00;
     2020  --wg-destructive-200: 345 90% 84%;
     2021  --wg-destructive-200-opacity: 1.00;
     2022  --wg-destructive-300: 345 90% 76%;
     2023  --wg-destructive-300-opacity: 1.00;
     2024  --wg-destructive-400: 345 90% 68%;
     2025  --wg-destructive-400-opacity: 1.00;
     2026  --wg-destructive-500: 345 90% 60%;
     2027  --wg-destructive-500-opacity: 1.00;
     2028  --wg-destructive-600: 345 90% 52%;
     2029  --wg-destructive-600-opacity: 1.00;
     2030  --wg-destructive-700: 345 90% 44%;
     2031  --wg-destructive-700-opacity: 1.00;
     2032  --wg-destructive-800: 345 90% 36%;
     2033  --wg-destructive-800-opacity: 1.00;
     2034  --wg-destructive-900: 345 90% 28%;
     2035  --wg-destructive-900-opacity: 1.00;
     2036  --wg-destructive: 345 90% 60%;
     2037  --wg-destructive-opacity: 1.00;
     2038}.wg-antialiased{
     2039  -webkit-font-smoothing: var(--wg-font-smooth--webkit);
     2040  -moz-osx-font-smoothing: var(--wg-font-smooth--moz);
     2041}.wg-bg-primary{
     2042  background: hsl(var(--wg-background) / var(--wg-background-opacity, 1));
     2043  --wg-background: 252 69% 40%;
     2044}.wg-bg-primary-50{
     2045  background: hsl(var(--wg-primary-50) / var(--wg-primary-50-opacity, 1));
     2046  --wg-background: var(--wg-primary-50);
     2047}.wg-bg-secondary{
     2048  background: hsl(var(--wg-background) / var(--wg-background-opacity, 1));
     2049  --wg-background: 42 100% 61%;
     2050}.wg-bg-surface{
     2051  background: hsl(var(--wg-surface) / var(--wg-surface-opacity, 1));
     2052  --wg-background: var(--wg-surface);
     2053}.wg-bg-wg-blue-50{
     2054  background: hsl(var(--wg-background) / var(--wg-background-opacity, 1));
     2055  --wg-background: 200 100% 97%;
     2056}.wg-bg-wg-green-50{
     2057  background: hsl(var(--wg-background) / var(--wg-background-opacity, 1));
     2058  --wg-background: 148 62% 96%;
     2059}.wg-bg-wg-orange-50{
     2060  background: hsl(var(--wg-background) / var(--wg-background-opacity, 1));
     2061  --wg-background: 14 100% 97%;
     2062}.wg-bg-wg-pink-50{
     2063  background: hsl(var(--wg-background) / var(--wg-background-opacity, 1));
     2064  --wg-background: 310 90% 96%;
     2065}.wg-bg-wg-purple-50{
     2066  background: hsl(var(--wg-background) / var(--wg-background-opacity, 1));
     2067  --wg-background: 255 75% 97%;
     2068}.wg-bg-wg-red-50{
     2069  background: hsl(var(--wg-background) / var(--wg-background-opacity, 1));
     2070  --wg-background: 343 88% 97%;
     2071}.wg-bg-wg-yellow-50{
     2072  background: hsl(var(--wg-background) / var(--wg-background-opacity, 1));
     2073  --wg-background: 42 100% 96%;
     2074}.wg-bg-white{
     2075  background: hsl(var(--wg-background) / var(--wg-background-opacity, 1));
     2076  --wg-background: 0 0% 100%;
     2077}.\[--wg-border-width\:1px\]{
     2078  --wg-border-width: 1px;
     2079}.\[--wg-loading-stroke-width\:6px\]{
     2080  --wg-loading-stroke-width: 6px;
     2081}.\[--wg-notification-size\:10px\]{
     2082  --wg-notification-size: 10px;
     2083}.\[--wg-notification-size\:12px\]{
     2084  --wg-notification-size: 12px;
     2085}.\[--wg-notification-size\:14px\]{
     2086  --wg-notification-size: 14px;
     2087}.\[--wg-notification-size\:16px\]{
     2088  --wg-notification-size: 16px;
     2089}.\[--wg-notification-size\:4px\]{
     2090  --wg-notification-size: 4px;
     2091}.\[--wg-notification-size\:6px\]{
     2092  --wg-notification-size: 6px;
     2093}.\[--wg-notification-size\:8px\]{
     2094  --wg-notification-size: 8px;
     2095}.\[--wg-offset-padding-left\:32px\]{
     2096  --wg-offset-padding-left: 32px;
     2097}.\[--wg-offset-padding-left\:34px\]{
     2098  --wg-offset-padding-left: 34px;
     2099}html,body{background-color:#f0f0f0}.progress-line-animation::before,.progress-line-animation::after{animation-name:lines;animation-duration:8s;animation-iteration-count:infinite;transition:transform .35s}@keyframes lines{0%{opacity:0;transform:scale(0)}55%{opacity:.5;transform:scale(1)}100%{opacity:0;transform:scale(0)}}.components-external-link__icon{display:inline-block !important;margin-left:4px !important;vertical-align:super !important}.components-modal__content{padding:0 !important}.placeholder\:text-surface-300::-moz-placeholder{
     2100  --tw-text-opacity: 1;
     2101  color: hsl(var(--wg-surface-300) / var(--wg-surface-300-opacity, var(--tw-text-opacity)));
     2102}.placeholder\:text-surface-300::placeholder{
     2103  --tw-text-opacity: 1;
     2104  color: hsl(var(--wg-surface-300) / var(--wg-surface-300-opacity, var(--tw-text-opacity)));
     2105}.placeholder\:text-surface-500::-moz-placeholder{
     2106  --tw-text-opacity: 1;
     2107  color: hsl(var(--wg-surface-500) / var(--wg-surface-500-opacity, var(--tw-text-opacity)));
     2108}.placeholder\:text-surface-500::placeholder{
     2109  --tw-text-opacity: 1;
     2110  color: hsl(var(--wg-surface-500) / var(--wg-surface-500-opacity, var(--tw-text-opacity)));
     2111}.before\:absolute::before{
     2112  content: var(--tw-content);
     2113  position: absolute;
     2114}.before\:left-0::before{
     2115  content: var(--tw-content);
     2116  left: 0px;
     2117}.before\:right-0::before{
     2118  content: var(--tw-content);
     2119  right: 0px;
     2120}.before\:top-\[25\%\]::before{
     2121  content: var(--tw-content);
     2122  top: 25%;
     2123}.before\:top-\[50\%\]::before{
     2124  content: var(--tw-content);
     2125  top: 50%;
     2126}.before\:top-\[75\%\]::before{
     2127  content: var(--tw-content);
     2128  top: 75%;
     2129}.before\:z-0::before{
     2130  content: var(--tw-content);
     2131  z-index: 0;
     2132}.before\:h-\[1px\]::before{
     2133  content: var(--tw-content);
     2134  height: 1px;
     2135}.before\:bg-surface-100::before{
     2136  content: var(--tw-content);
     2137  --tw-bg-opacity: 1;
     2138  background-color: hsl(var(--wg-surface-100) / var(--wg-surface-100-opacity, var(--tw-bg-opacity)));
     2139}.before\:bg-surface-50::before{
     2140  content: var(--tw-content);
     2141  --tw-bg-opacity: 1;
     2142  background-color: hsl(var(--wg-surface-50) / var(--wg-surface-50-opacity, var(--tw-bg-opacity)));
     2143}.before\:transition-transform::before{
     2144  content: var(--tw-content);
     2145  transition-property: transform;
     2146  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
     2147  transition-duration: 150ms;
     2148}.before\:delay-\[35ms\]::before{
     2149  content: var(--tw-content);
     2150  transition-delay: 35ms;
     2151}.before\:delay-\[75ms\]::before{
     2152  content: var(--tw-content);
     2153  transition-delay: 75ms;
     2154}.before\:duration-75::before{
     2155  content: var(--tw-content);
     2156  transition-duration: 75ms;
     2157}.after\:absolute::after{
     2158  content: var(--tw-content);
     2159  position: absolute;
     2160}.after\:bottom-0::after{
     2161  content: var(--tw-content);
     2162  bottom: 0px;
     2163}.after\:left-\[25\%\]::after{
     2164  content: var(--tw-content);
     2165  left: 25%;
     2166}.after\:left-\[50\%\]::after{
     2167  content: var(--tw-content);
     2168  left: 50%;
     2169}.after\:left-\[75\%\]::after{
     2170  content: var(--tw-content);
     2171  left: 75%;
     2172}.after\:top-0::after{
     2173  content: var(--tw-content);
     2174  top: 0px;
     2175}.after\:z-0::after{
     2176  content: var(--tw-content);
     2177  z-index: 0;
     2178}.after\:w-\[1px\]::after{
     2179  content: var(--tw-content);
     2180  width: 1px;
     2181}.after\:bg-surface-100::after{
     2182  content: var(--tw-content);
     2183  --tw-bg-opacity: 1;
     2184  background-color: hsl(var(--wg-surface-100) / var(--wg-surface-100-opacity, var(--tw-bg-opacity)));
     2185}.after\:bg-surface-50::after{
     2186  content: var(--tw-content);
     2187  --tw-bg-opacity: 1;
     2188  background-color: hsl(var(--wg-surface-50) / var(--wg-surface-50-opacity, var(--tw-bg-opacity)));
     2189}.after\:transition-transform::after{
     2190  content: var(--tw-content);
     2191  transition-property: transform;
     2192  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
     2193  transition-duration: 150ms;
     2194}.after\:delay-\[35ms\]::after{
     2195  content: var(--tw-content);
     2196  transition-delay: 35ms;
     2197}.after\:delay-\[75ms\]::after{
     2198  content: var(--tw-content);
     2199  transition-delay: 75ms;
     2200}.after\:duration-75::after{
     2201  content: var(--tw-content);
     2202  transition-duration: 75ms;
     2203}.last\:border-r-0:last-child{
     2204  border-right-width: 0px;
     2205}.first-of-type\:rounded-s-lg:first-of-type{
     2206  border-start-start-radius: 0.5rem;
     2207  border-end-start-radius: 0.5rem;
     2208}.first-of-type\:rounded-t-lg:first-of-type{
     2209  border-top-left-radius: 0.5rem;
     2210  border-top-right-radius: 0.5rem;
     2211}.last-of-type\:rounded-b-lg:last-of-type{
     2212  border-bottom-right-radius: 0.5rem;
     2213  border-bottom-left-radius: 0.5rem;
     2214}.last-of-type\:rounded-e-lg:last-of-type{
     2215  border-start-end-radius: 0.5rem;
     2216  border-end-end-radius: 0.5rem;
     2217}.hover\:cursor-pointer:hover{
     2218  cursor: pointer;
     2219}.hover\:border-destructive:hover{
     2220  --tw-border-opacity: 1;
     2221  border-color: hsl(var(--wg-destructive) / var(--wg-destructive-opacity, var(--tw-border-opacity)));
     2222}.hover\:border-primary-100:hover{
     2223  --tw-border-opacity: 1;
     2224  border-color: rgb(221 210 250 / var(--tw-border-opacity));
     2225}.hover\:border-surface-200:hover{
     2226  --tw-border-opacity: 1;
     2227  border-color: hsl(var(--wg-surface-200) / var(--wg-surface-200-opacity, var(--tw-border-opacity)));
     2228}.hover\:border-surface-300:hover{
     2229  --tw-border-opacity: 1;
     2230  border-color: hsl(var(--wg-surface-300) / var(--wg-surface-300-opacity, var(--tw-border-opacity)));
     2231}.hover\:border-wg-red-500:hover{
     2232  --tw-border-opacity: 1;
     2233  border-color: rgb(245 61 107 / var(--tw-border-opacity));
     2234}.hover\:border-b-surface:hover{
     2235  --tw-border-opacity: 1;
     2236  border-bottom-color: hsl(var(--wg-surface) / var(--wg-surface-opacity, var(--tw-border-opacity)));
     2237}.hover\:border-t-surface:hover{
     2238  --tw-border-opacity: 1;
     2239  border-top-color: hsl(var(--wg-surface) / var(--wg-surface-opacity, var(--tw-border-opacity)));
     2240}.hover\:bg-destructive-100:hover{
     2241  --tw-bg-opacity: 1;
     2242  background-color: hsl(var(--wg-destructive-100) / var(--wg-destructive-100-opacity, var(--tw-bg-opacity)));
     2243}.hover\:bg-destructive-50:hover{
     2244  --tw-bg-opacity: 1;
     2245  background-color: hsl(var(--wg-destructive-50) / var(--wg-destructive-50-opacity, var(--tw-bg-opacity)));
     2246}.hover\:bg-destructive-600:hover{
     2247  --tw-bg-opacity: 1;
     2248  background-color: hsl(var(--wg-destructive-600) / var(--wg-destructive-600-opacity, var(--tw-bg-opacity)));
     2249}.hover\:bg-primary-50:hover{
     2250  --tw-bg-opacity: 1;
     2251  background-color: hsl(var(--wg-primary-50) / var(--wg-primary-50-opacity, var(--tw-bg-opacity)));
     2252}.hover\:bg-primary-600:hover{
     2253  --tw-bg-opacity: 1;
     2254  background-color: rgb(45 23 147 / var(--tw-bg-opacity));
     2255}.hover\:bg-secondary-700:hover{
     2256  --tw-bg-opacity: 1;
     2257  background-color: rgb(183 127 29 / var(--tw-bg-opacity));
     2258}.hover\:bg-surface:hover{
     2259  --tw-bg-opacity: 1;
     2260  background-color: hsl(var(--wg-surface) / var(--wg-surface-opacity, var(--tw-bg-opacity)));
     2261}.hover\:bg-surface-100:hover{
     2262  --tw-bg-opacity: 1;
     2263  background-color: hsl(var(--wg-surface-100) / var(--wg-surface-100-opacity, var(--tw-bg-opacity)));
     2264}.hover\:bg-surface-100\/50:hover{
     2265  background-color: hsl(var(--wg-surface-100) / 0.5);
     2266}.hover\:bg-surface-200\/50:hover{
     2267  background-color: hsl(var(--wg-surface-200) / 0.5);
     2268}.hover\:bg-surface-300:hover{
     2269  --tw-bg-opacity: 1;
     2270  background-color: hsl(var(--wg-surface-300) / var(--wg-surface-300-opacity, var(--tw-bg-opacity)));
     2271}.hover\:bg-surface-50:hover{
     2272  --tw-bg-opacity: 1;
     2273  background-color: hsl(var(--wg-surface-50) / var(--wg-surface-50-opacity, var(--tw-bg-opacity)));
     2274}.hover\:bg-wg-green-600:hover{
     2275  --tw-bg-opacity: 1;
     2276  background-color: rgb(38 169 95 / var(--tw-bg-opacity));
     2277}.hover\:bg-wg-yellow-50:hover{
     2278  --tw-bg-opacity: 1;
     2279  background-color: rgb(255 249 235 / var(--tw-bg-opacity));
     2280}.hover\:text-destructive-800:hover{
     2281  --tw-text-opacity: 1;
     2282  color: hsl(var(--wg-destructive-800) / var(--wg-destructive-800-opacity, var(--tw-text-opacity)));
     2283}.hover\:text-primary:hover{
     2284  --tw-text-opacity: 1;
     2285  color: rgb(60 32 172 / var(--tw-text-opacity));
     2286}.hover\:text-primary-700:hover{
     2287  --tw-text-opacity: 1;
     2288  color: rgb(33 16 123 / var(--tw-text-opacity));
     2289}.hover\:text-surface-300:hover{
     2290  --tw-text-opacity: 1;
     2291  color: hsl(var(--wg-surface-300) / var(--wg-surface-300-opacity, var(--tw-text-opacity)));
     2292}.hover\:text-surface-500:hover{
     2293  --tw-text-opacity: 1;
     2294  color: hsl(var(--wg-surface-500) / var(--wg-surface-500-opacity, var(--tw-text-opacity)));
     2295}.hover\:text-surface-600:hover{
     2296  --tw-text-opacity: 1;
     2297  color: hsl(var(--wg-surface-600) / var(--wg-surface-600-opacity, var(--tw-text-opacity)));
     2298}.hover\:text-surface-700:hover{
     2299  --tw-text-opacity: 1;
     2300  color: hsl(var(--wg-surface-700) / var(--wg-surface-700-opacity, var(--tw-text-opacity)));
     2301}.hover\:text-surface-900:hover{
     2302  --tw-text-opacity: 1;
     2303  color: hsl(var(--wg-surface-900) / var(--wg-surface-900-opacity, var(--tw-text-opacity)));
     2304}.hover\:text-wg-gray-600:hover{
     2305  --tw-text-opacity: 1;
     2306  color: rgb(85 85 109 / var(--tw-text-opacity));
     2307}.focus\:bg-surface:focus{
     2308  --tw-bg-opacity: 1;
     2309  background-color: hsl(var(--wg-surface) / var(--wg-surface-opacity, var(--tw-bg-opacity)));
     2310}.focus\:bg-wg-yellow-50:focus{
     2311  --tw-bg-opacity: 1;
     2312  background-color: rgb(255 249 235 / var(--tw-bg-opacity));
     2313}.focus\:text-surface-400:focus{
     2314  --tw-text-opacity: 1;
     2315  color: hsl(var(--wg-surface-400) / var(--wg-surface-400-opacity, var(--tw-text-opacity)));
     2316}.focus\:shadow-primary:focus{
     2317  --tw-shadow-color: #3C20AC;
     2318  --tw-shadow: var(--tw-shadow-colored);
     2319}.focus\:shadow-wg-red-500:focus{
     2320  --tw-shadow-color: #F53D6B;
     2321  --tw-shadow: var(--tw-shadow-colored);
     2322}.focus\:outline-none:focus{
     2323  outline: 2px solid transparent;
     2324  outline-offset: 2px;
     2325}.focus\:outline:focus{
     2326  outline-style: solid;
     2327}.focus\:outline-0:focus{
     2328  outline-width: 0px;
     2329}.focus\:outline-1:focus{
     2330  outline-width: 1px;
     2331}.focus\:outline-2:focus{
     2332  outline-width: 2px;
     2333}.focus\:-outline-offset-1:focus{
     2334  outline-offset: -1px;
     2335}.focus\:outline-primary:focus{
     2336  outline-color: #3C20AC;
     2337}.focus\:outline-surface:focus{
     2338  outline-color: hsl(var(--wg-surface) / var(--wg-surface-opacity, 1));
     2339}.focus\:outline-wg-red-500:focus{
     2340  outline-color: #F53D6B;
     2341}.focus-visible\:z-10:focus-visible{
     2342  z-index: 10;
     2343}.focus-visible\:border-primary:focus-visible{
     2344  --tw-border-opacity: 1;
     2345  border-color: rgb(60 32 172 / var(--tw-border-opacity));
     2346}.focus-visible\:text-destructive-400:focus-visible{
     2347  --tw-text-opacity: 1;
     2348  color: hsl(var(--wg-destructive-400) / var(--wg-destructive-400-opacity, var(--tw-text-opacity)));
     2349}.focus-visible\:text-destructive-800:focus-visible{
     2350  --tw-text-opacity: 1;
     2351  color: hsl(var(--wg-destructive-800) / var(--wg-destructive-800-opacity, var(--tw-text-opacity)));
     2352}.focus-visible\:text-primary:focus-visible{
     2353  --tw-text-opacity: 1;
     2354  color: rgb(60 32 172 / var(--tw-text-opacity));
     2355}.focus-visible\:outline:focus-visible{
     2356  outline-style: solid;
     2357}.focus-visible\:outline-0:focus-visible{
     2358  outline-width: 0px;
     2359}.focus-visible\:outline-2:focus-visible{
     2360  outline-width: 2px;
     2361}.focus-visible\:-outline-offset-1:focus-visible{
     2362  outline-offset: -1px;
     2363}.focus-visible\:-outline-offset-2:focus-visible{
     2364  outline-offset: -2px;
     2365}.focus-visible\:outline-offset-2:focus-visible{
     2366  outline-offset: 2px;
     2367}.focus-visible\:outline-primary:focus-visible{
     2368  outline-color: #3C20AC;
     2369}.first\:focus-visible\:rounded-s-\[7px\]:focus-visible:first-child{
     2370  border-start-start-radius: 7px;
     2371  border-end-start-radius: 7px;
     2372}.last\:focus-visible\:rounded-r-\[7px\]:focus-visible:last-child{
     2373  border-top-right-radius: 7px;
     2374  border-bottom-right-radius: 7px;
     2375}.disabled\:pointer-events-none:disabled{
     2376  pointer-events: none;
     2377}.disabled\:hidden:disabled{
     2378  display: none;
     2379}.disabled\:cursor-text:disabled{
     2380  cursor: text;
     2381}.disabled\:border-destructive-100:disabled{
     2382  --tw-border-opacity: 1;
     2383  border-color: hsl(var(--wg-destructive-100) / var(--wg-destructive-100-opacity, var(--tw-border-opacity)));
     2384}.disabled\:border-surface-50:disabled{
     2385  --tw-border-opacity: 1;
     2386  border-color: hsl(var(--wg-surface-50) / var(--wg-surface-50-opacity, var(--tw-border-opacity)));
     2387}.disabled\:bg-destructive:disabled{
     2388  --tw-bg-opacity: 1;
     2389  background-color: hsl(var(--wg-destructive) / var(--wg-destructive-opacity, var(--tw-bg-opacity)));
     2390}.disabled\:bg-destructive-50:disabled{
     2391  --tw-bg-opacity: 1;
     2392  background-color: hsl(var(--wg-destructive-50) / var(--wg-destructive-50-opacity, var(--tw-bg-opacity)));
     2393}.disabled\:bg-secondary-200:disabled{
     2394  --tw-bg-opacity: 1;
     2395  background-color: rgb(255 238 176 / var(--tw-bg-opacity));
     2396}.disabled\:text-destructive-300:disabled{
     2397  --tw-text-opacity: 1;
     2398  color: hsl(var(--wg-destructive-300) / var(--wg-destructive-300-opacity, var(--tw-text-opacity)));
     2399}.disabled\:text-surface-300:disabled{
     2400  --tw-text-opacity: 1;
     2401  color: hsl(var(--wg-surface-300) / var(--wg-surface-300-opacity, var(--tw-text-opacity)));
     2402}.disabled\:text-surface-400:disabled{
     2403  --tw-text-opacity: 1;
     2404  color: hsl(var(--wg-surface-400) / var(--wg-surface-400-opacity, var(--tw-text-opacity)));
     2405}.disabled\:opacity-50:disabled{
     2406  opacity: 0.5;
     2407}.disabled\:opacity-60:disabled{
     2408  opacity: 0.6;
     2409}.group:hover .group-hover\:opacity-100{
     2410  opacity: 1;
     2411}.group:hover .group-hover\:opacity-70{
     2412  opacity: 0.7;
     2413}.data-\[disabled\]\:pointer-events-none[data-disabled]{
     2414  pointer-events: none;
     2415}.data-\[orientation\=vertical\]\:left-0[data-orientation="vertical"]{
     2416  left: 0px;
     2417}.data-\[orientation\=horizontal\]\:h-full[data-orientation="horizontal"]{
     2418  height: 100%;
     2419}.data-\[orientation\=vertical\]\:h-72[data-orientation="vertical"]{
     2420  height: 18rem;
     2421}.data-\[orientation\=horizontal\]\:min-h-6[data-orientation="horizontal"]{
     2422  min-height: 24px;
     2423}.data-\[orientation\=vertical\]\:w-2[data-orientation="vertical"]{
     2424  width: 0.5rem;
     2425}.data-\[orientation\=vertical\]\:w-full[data-orientation="vertical"]{
     2426  width: 100%;
     2427}.data-\[state\=checked\]\:translate-x-\[14px\][data-state="checked"]{
     2428  --tw-translate-x: 14px;
     2429  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
     2430}.data-\[state\=unchecked\]\:translate-x-0\.5[data-state="unchecked"]{
     2431  --tw-translate-x: 0.125rem;
     2432  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
     2433}@keyframes fadeInDown{0%{
     2434    opacity: 0;
     2435    transform: translateY(-5px) scale(.97);
     2436  }100%{
     2437    opacity: 1;
     2438    transform: translateY(0px) scale(1);
     2439  }
     2440}.data-\[side\=bottom\]\:animate-wg-fade-in-down[data-side="bottom"]{
     2441  animation: fadeInDown 0.3s cubic-bezier(.2,1,.4,1);
     2442}@keyframes fadeInUp{0%{
     2443    opacity: 0;
     2444    transform: translateY(5px) scale(.97);
     2445  }100%{
     2446    opacity: 1;
     2447    transform: translateY(0px) scale(1);
     2448  }
     2449}.data-\[side\=bottom\]\:animate-wg-fade-in-up[data-side="bottom"]{
     2450  animation: fadeInUp 0.3s cubic-bezier(.2,1,.4,1);
     2451}@keyframes fadeInLeft{0%{
     2452    opacity: 0;
     2453    transform: translateX(5px) scale(.97);
     2454  }100%{
     2455    opacity: 1;
     2456    transform: translateX(0px) scale(1);
     2457  }
     2458}.data-\[side\=left\]\:animate-wg-fade-in-left[data-side="left"]{
     2459  animation: fadeInLeft 0.3s cubic-bezier(.2,1,.4,1);
     2460}@keyframes fadeInRight{0%{
     2461    opacity: 0;
     2462    transform: translateX(-5px) scale(.97);
     2463  }100%{
     2464    opacity: 1;
     2465    transform: translateX(0px) scale(1);
     2466  }
     2467}.data-\[side\=right\]\:animate-wg-fade-in-right[data-side="right"]{
     2468  animation: fadeInRight 0.3s cubic-bezier(.2,1,.4,1);
     2469}@keyframes fadeInUp{0%{
     2470    opacity: 0;
     2471    transform: translateY(5px) scale(.97);
     2472  }100%{
     2473    opacity: 1;
     2474    transform: translateY(0px) scale(1);
     2475  }
     2476}.data-\[side\=top\]\:animate-wg-fade-in-up[data-side="top"]{
     2477  animation: fadeInUp 0.3s cubic-bezier(.2,1,.4,1);
     2478}@keyframes fadeOut{0%{
     2479    opacity: 1;
     2480    transform: scale(1);
     2481  }100%{
     2482    opacity: 0;
     2483    transform: scale(.97);
     2484  }
     2485}.data-\[state\=closed\]\:animate-wg-fade-out[data-state="closed"]{
     2486  animation: fadeOut 0.15s cubic-bezier(.2,1,.4,1);
     2487}.data-\[state\=instant-open\]\:\!animate-none[data-state="instant-open"]{
     2488  animation: none !important;
     2489}.data-\[state\=active\]\:cursor-grabbing[data-state="active"]{
     2490  cursor: grabbing;
     2491}.data-\[orientation\=vertical\]\:flex-col[data-orientation="vertical"]{
     2492  flex-direction: column;
     2493}.data-\[orientation\=vertical\]\:justify-center[data-orientation="vertical"]{
     2494  justify-content: center;
     2495}.data-\[state\=active\]\:border-primary[data-state="active"]{
     2496  --tw-border-opacity: 1;
     2497  border-color: rgb(60 32 172 / var(--tw-border-opacity));
     2498}.data-\[state\=active\]\:border-b-primary[data-state="active"]{
     2499  --tw-border-opacity: 1;
     2500  border-bottom-color: rgb(60 32 172 / var(--tw-border-opacity));
     2501}.data-\[state\=active\]\:border-t-primary[data-state="active"]{
     2502  --tw-border-opacity: 1;
     2503  border-top-color: rgb(60 32 172 / var(--tw-border-opacity));
     2504}.data-\[state\=active\]\:bg-surface[data-state="active"]{
     2505  --tw-bg-opacity: 1;
     2506  background-color: hsl(var(--wg-surface) / var(--wg-surface-opacity, var(--tw-bg-opacity)));
     2507}.data-\[state\=checked\]\:bg-primary[data-state="checked"]{
     2508  --tw-bg-opacity: 1;
     2509  background-color: rgb(60 32 172 / var(--tw-bg-opacity));
     2510}.data-\[state\=checked\]\:bg-surface-100[data-state="checked"]{
     2511  --tw-bg-opacity: 1;
     2512  background-color: hsl(var(--wg-surface-100) / var(--wg-surface-100-opacity, var(--tw-bg-opacity)));
     2513}.data-\[state\=on\]\:bg-surface-50[data-state="on"]{
     2514  --tw-bg-opacity: 1;
     2515  background-color: hsl(var(--wg-surface-50) / var(--wg-surface-50-opacity, var(--tw-bg-opacity)));
     2516}.data-\[state\=open\]\:bg-surface[data-state="open"]{
     2517  --tw-bg-opacity: 1;
     2518  background-color: hsl(var(--wg-surface) / var(--wg-surface-opacity, var(--tw-bg-opacity)));
     2519}.data-\[orientation\=vertical\]\:px-3[data-orientation="vertical"]{
     2520  padding-left: 0.75rem;
     2521  padding-right: 0.75rem;
     2522}.data-\[state\=active\]\:font-medium[data-state="active"]{
     2523  font-weight: 500;
     2524}.data-\[state\=on\]\:font-medium[data-state="on"]{
     2525  font-weight: 500;
     2526}.data-\[state\=active\]\:text-primary[data-state="active"]{
     2527  --tw-text-opacity: 1;
     2528  color: rgb(60 32 172 / var(--tw-text-opacity));
     2529}.data-\[state\=active\]\:text-surface-500[data-state="active"]{
     2530  --tw-text-opacity: 1;
     2531  color: hsl(var(--wg-surface-500) / var(--wg-surface-500-opacity, var(--tw-text-opacity)));
     2532}.data-\[state\=active\]\:text-surface-900[data-state="active"]{
     2533  --tw-text-opacity: 1;
     2534  color: hsl(var(--wg-surface-900) / var(--wg-surface-900-opacity, var(--tw-text-opacity)));
     2535}.data-\[state\=checked\]\:text-primary[data-state="checked"]{
     2536  --tw-text-opacity: 1;
     2537  color: rgb(60 32 172 / var(--tw-text-opacity));
     2538}.data-\[state\=delayed-open\]\:text-primary[data-state="delayed-open"]{
     2539  --tw-text-opacity: 1;
     2540  color: rgb(60 32 172 / var(--tw-text-opacity));
     2541}.data-\[disabled\]\:opacity-40[data-disabled]{
     2542  opacity: 0.4;
     2543}.data-\[disabled\]\:opacity-50[data-disabled]{
     2544  opacity: 0.5;
     2545}.data-\[state\=instant-open\]\:\!transition-none[data-state="instant-open"]{
     2546  transition-property: none !important;
     2547}.group\/end[data-state="open"] .group-data-\[state\=open\]\/end\:outline{
     2548  outline-style: solid;
     2549}.group\/start[data-state="open"] .group-data-\[state\=open\]\/start\:outline{
     2550  outline-style: solid;
     2551}.group\/end[data-state="open"] .group-data-\[state\=open\]\/end\:outline-2{
     2552  outline-width: 2px;
     2553}.group\/start[data-state="open"] .group-data-\[state\=open\]\/start\:outline-2{
     2554  outline-width: 2px;
     2555}.group\/end[data-state="open"] .group-data-\[state\=open\]\/end\:outline-primary-500{
     2556  outline-color: #3C20AC;
     2557}.group\/end[data-state="open"] .group-data-\[state\=open\]\/end\:outline-wg-yellow-500{
     2558  outline-color: #FFC43A;
     2559}.group\/start[data-state="open"] .group-data-\[state\=open\]\/start\:outline-primary-500{
     2560  outline-color: #3C20AC;
     2561}.dark\:border:is(.dark *){
     2562  border-width: 1px;
     2563}.dark\:border-none:is(.dark *){
     2564  border-style: none;
     2565}.dark\:border-destructive:is(.dark *){
     2566  --tw-border-opacity: 1;
     2567  border-color: hsl(var(--wg-destructive) / var(--wg-destructive-opacity, var(--tw-border-opacity)));
     2568}.dark\:border-surface:is(.dark *){
     2569  --tw-border-opacity: 1;
     2570  border-color: hsl(var(--wg-surface) / var(--wg-surface-opacity, var(--tw-border-opacity)));
     2571}.dark\:border-surface-100:is(.dark *){
     2572  --tw-border-opacity: 1;
     2573  border-color: hsl(var(--wg-surface-100) / var(--wg-surface-100-opacity, var(--tw-border-opacity)));
     2574}.dark\:border-surface-50:is(.dark *){
     2575  --tw-border-opacity: 1;
     2576  border-color: hsl(var(--wg-surface-50) / var(--wg-surface-50-opacity, var(--tw-border-opacity)));
     2577}.dark\:bg-neutral-800:is(.dark *){
     2578  --tw-bg-opacity: 1;
     2579  background-color: rgb(38 38 38 / var(--tw-bg-opacity));
     2580}.dark\:bg-surface:is(.dark *){
     2581  --tw-bg-opacity: 1;
     2582  background-color: hsl(var(--wg-surface) / var(--wg-surface-opacity, var(--tw-bg-opacity)));
     2583}.dark\:bg-surface-200:is(.dark *){
     2584  --tw-bg-opacity: 1;
     2585  background-color: hsl(var(--wg-surface-200) / var(--wg-surface-200-opacity, var(--tw-bg-opacity)));
     2586}.dark\:bg-transparent:is(.dark *){
     2587  background-color: transparent;
     2588}.dark\:bg-white\/5:is(.dark *){
     2589  background-color: rgb(255 255 255 / 0.05);
     2590}.dark\:text-current:is(.dark *){
     2591  color: currentColor;
     2592}.dark\:text-destructive-500:is(.dark *){
     2593  --tw-text-opacity: 1;
     2594  color: hsl(var(--wg-destructive-500) / var(--wg-destructive-500-opacity, var(--tw-text-opacity)));
     2595}.dark\:text-primary-300:is(.dark *){
     2596  --tw-text-opacity: 1;
     2597  color: rgb(144 117 230 / var(--tw-text-opacity));
     2598}.dark\:text-secondary-900:is(.dark *){
     2599  --tw-text-opacity: 1;
     2600  color: rgb(122 75 11 / var(--tw-text-opacity));
     2601}.dark\:text-surface-100:is(.dark *){
     2602  --tw-text-opacity: 1;
     2603  color: hsl(var(--wg-surface-100) / var(--wg-surface-100-opacity, var(--tw-text-opacity)));
     2604}.dark\:text-surface-200:is(.dark *){
     2605  --tw-text-opacity: 1;
     2606  color: hsl(var(--wg-surface-200) / var(--wg-surface-200-opacity, var(--tw-text-opacity)));
     2607}.dark\:text-surface-50:is(.dark *){
     2608  --tw-text-opacity: 1;
     2609  color: hsl(var(--wg-surface-50) / var(--wg-surface-50-opacity, var(--tw-text-opacity)));
     2610}.dark\:text-surface-500:is(.dark *){
     2611  --tw-text-opacity: 1;
     2612  color: hsl(var(--wg-surface-500) / var(--wg-surface-500-opacity, var(--tw-text-opacity)));
     2613}.dark\:text-surface-700:is(.dark *){
     2614  --tw-text-opacity: 1;
     2615  color: hsl(var(--wg-surface-700) / var(--wg-surface-700-opacity, var(--tw-text-opacity)));
     2616}.dark\:text-surface-800:is(.dark *){
     2617  --tw-text-opacity: 1;
     2618  color: hsl(var(--wg-surface-800) / var(--wg-surface-800-opacity, var(--tw-text-opacity)));
     2619}.dark\:text-wg-blue:is(.dark *){
     2620  --tw-text-opacity: 1;
     2621  color: rgb(60 32 172 / var(--tw-text-opacity));
     2622}.dark\:text-wg-green:is(.dark *){
     2623  --tw-text-opacity: 1;
     2624  color: rgb(45 202 114 / var(--tw-text-opacity));
     2625}.dark\:text-wg-orange:is(.dark *){
     2626  --tw-text-opacity: 1;
     2627  color: rgb(255 125 82 / var(--tw-text-opacity));
     2628}.dark\:text-wg-pink:is(.dark *){
     2629  --tw-text-opacity: 1;
     2630  color: rgb(247 95 222 / var(--tw-text-opacity));
     2631}.dark\:text-wg-purple-400:is(.dark *){
     2632  --tw-text-opacity: 1;
     2633  color: rgb(141 108 239 / var(--tw-text-opacity));
     2634}.dark\:text-wg-red:is(.dark *){
     2635  --tw-text-opacity: 1;
     2636  color: rgb(245 61 107 / var(--tw-text-opacity));
     2637}.dark\:text-wg-white-500:is(.dark *){
     2638  color: rgba(255,255,255, 0.5);
     2639}.dark\:text-wg-yellow:is(.dark *){
     2640  --tw-text-opacity: 1;
     2641  color: rgb(255 196 58 / var(--tw-text-opacity));
     2642}.dark\:text-white:is(.dark *){
     2643  --tw-text-opacity: 1;
     2644  color: rgb(255 255 255 / var(--tw-text-opacity));
     2645}.dark\:shadow-none:is(.dark *){
     2646  --tw-shadow: 0 0 #0000;
     2647  --tw-shadow-colored: 0 0 #0000;
     2648  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
     2649}.dark\:outline-surface-100:is(.dark *){
     2650  outline-color: hsl(var(--wg-surface-100) / var(--wg-surface-100-opacity, 1));
     2651}.dark\:outline-surface-50:is(.dark *){
     2652  outline-color: hsl(var(--wg-surface-50) / var(--wg-surface-50-opacity, 1));
     2653}.dark\:wg-bg-surface\/5:is(.dark *){
     2654  background: hsl(var(--wg-surface) / 0.05);
     2655  --wg-background: var(--wg-surface);
     2656}.dark\:placeholder\:text-surface-200:is(.dark *)::-moz-placeholder{
     2657  --tw-text-opacity: 1;
     2658  color: hsl(var(--wg-surface-200) / var(--wg-surface-200-opacity, var(--tw-text-opacity)));
     2659}.dark\:placeholder\:text-surface-200:is(.dark *)::placeholder{
     2660  --tw-text-opacity: 1;
     2661  color: hsl(var(--wg-surface-200) / var(--wg-surface-200-opacity, var(--tw-text-opacity)));
     2662}.dark\:hover\:border-destructive:hover:is(.dark *){
     2663  --tw-border-opacity: 1;
     2664  border-color: hsl(var(--wg-destructive) / var(--wg-destructive-opacity, var(--tw-border-opacity)));
     2665}.dark\:hover\:border-surface-100:hover:is(.dark *){
     2666  --tw-border-opacity: 1;
     2667  border-color: hsl(var(--wg-surface-100) / var(--wg-surface-100-opacity, var(--tw-border-opacity)));
     2668}.dark\:hover\:border-surface-200:hover:is(.dark *){
     2669  --tw-border-opacity: 1;
     2670  border-color: hsl(var(--wg-surface-200) / var(--wg-surface-200-opacity, var(--tw-border-opacity)));
     2671}.dark\:hover\:bg-destructive-600:hover:is(.dark *){
     2672  --tw-bg-opacity: 1;
     2673  background-color: hsl(var(--wg-destructive-600) / var(--wg-destructive-600-opacity, var(--tw-bg-opacity)));
     2674}.dark\:hover\:bg-secondary-800:hover:is(.dark *){
     2675  --tw-bg-opacity: 1;
     2676  background-color: rgb(147 97 18 / var(--tw-bg-opacity));
     2677}.dark\:hover\:bg-surface:hover:is(.dark *){
     2678  --tw-bg-opacity: 1;
     2679  background-color: hsl(var(--wg-surface) / var(--wg-surface-opacity, var(--tw-bg-opacity)));
     2680}.dark\:hover\:bg-surface-200:hover:is(.dark *){
     2681  --tw-bg-opacity: 1;
     2682  background-color: hsl(var(--wg-surface-200) / var(--wg-surface-200-opacity, var(--tw-bg-opacity)));
     2683}.dark\:hover\:text-destructive-400:hover:is(.dark *){
     2684  --tw-text-opacity: 1;
     2685  color: hsl(var(--wg-destructive-400) / var(--wg-destructive-400-opacity, var(--tw-text-opacity)));
     2686}.dark\:hover\:text-primary:hover:is(.dark *){
     2687  --tw-text-opacity: 1;
     2688  color: rgb(60 32 172 / var(--tw-text-opacity));
     2689}.dark\:hover\:text-wg-white-700:hover:is(.dark *){
     2690  color: rgba(255,255,255, 0.8);
     2691}.dark\:focus\:bg-white\/5:focus:is(.dark *){
     2692  background-color: rgb(255 255 255 / 0.05);
     2693}.dark\:focus-visible\:border-white:focus-visible:is(.dark *){
     2694  --tw-border-opacity: 1;
     2695  border-color: rgb(255 255 255 / var(--tw-border-opacity));
     2696}.dark\:focus-visible\:text-destructive-400:focus-visible:is(.dark *){
     2697  --tw-text-opacity: 1;
     2698  color: hsl(var(--wg-destructive-400) / var(--wg-destructive-400-opacity, var(--tw-text-opacity)));
     2699}.dark\:focus-visible\:text-primary:focus-visible:is(.dark *){
     2700  --tw-text-opacity: 1;
     2701  color: rgb(60 32 172 / var(--tw-text-opacity));
     2702}.dark\:disabled\:border-destructive-900:disabled:is(.dark *){
     2703  --tw-border-opacity: 1;
     2704  border-color: hsl(var(--wg-destructive-900) / var(--wg-destructive-900-opacity, var(--tw-border-opacity)));
     2705}.dark\:disabled\:text-destructive\/50:disabled:is(.dark *){
     2706  color: hsl(var(--wg-destructive) / 0.5);
     2707}.dark\:disabled\:text-wg-white-500:disabled:is(.dark *){
     2708  color: rgba(255,255,255, 0.5);
     2709}.dark\:disabled\:text-white:disabled:is(.dark *){
     2710  --tw-text-opacity: 1;
     2711  color: rgb(255 255 255 / var(--tw-text-opacity));
     2712}.dark\:data-\[state\=active\]\:border-primary[data-state="active"]:is(.dark *){
     2713  --tw-border-opacity: 1;
     2714  border-color: rgb(60 32 172 / var(--tw-border-opacity));
     2715}.dark\:data-\[state\=active\]\:border-white[data-state="active"]:is(.dark *){
     2716  --tw-border-opacity: 1;
     2717  border-color: rgb(255 255 255 / var(--tw-border-opacity));
     2718}.dark\:data-\[state\=open\]\:bg-white\/5[data-state="open"]:is(.dark *){
     2719  background-color: rgb(255 255 255 / 0.05);
     2720}@media (min-width: 480px){.xs\:flex-nowrap{
     2721    flex-wrap: nowrap;
     2722  }.xs\:gap-4{
     2723    gap: 1rem;
     2724  }
     2725}@media (min-width: 640px){.sm\:ml-auto{
     2726    margin-left: auto;
     2727  }.sm\:mt-0{
     2728    margin-top: 0px;
     2729  }.sm\:flex-row{
     2730    flex-direction: row;
     2731  }.sm\:items-center{
     2732    align-items: center;
     2733  }.sm\:gap-2{
     2734    gap: 0.5rem;
     2735  }
     2736}@media (min-width: 768px){.md\:px-9{
     2737    padding-left: 2.25rem;
     2738    padding-right: 2.25rem;
     2739  }.md\:py-10{
     2740    padding-top: 2.5rem;
     2741    padding-bottom: 2.5rem;
     2742  }
     2743}.last-of-type\:\[\&\+span\]\:hidden+span:last-of-type{
     2744  display: none;
     2745}.\[\&\:has\(\:focus-visible\)\]\:overflow-visible:has(:focus-visible){
     2746  overflow: visible;
     2747}.\[\&\:has\(\>svg\:first-child\)\]\:pl-3:has(>svg:first-child){
     2748  padding-left: 0.75rem;
     2749}.\[\&\:has\(\[data-state\=checked\]\)\]\:outline:has([data-state=checked]){
     2750  outline-style: solid;
     2751}.\[\&\:has\(\[data-state\=checked\]\)_\.wg-unchecked\]\:hidden:has([data-state=checked]) .wg-unchecked{
     2752  display: none;
     2753}.\[\&\:has\(\[data-state\=unchecked\]\)_\.wg-label\]\:text-surface-700:has([data-state=unchecked]) .wg-label{
     2754  --tw-text-opacity: 1;
     2755  color: hsl(var(--wg-surface-700) / var(--wg-surface-700-opacity, var(--tw-text-opacity)));
     2756}.hover\:\[\&\:not\(\:disabled\)\]\:bg-surface:not(:disabled):hover{
     2757  --tw-bg-opacity: 1;
     2758  background-color: hsl(var(--wg-surface) / var(--wg-surface-opacity, var(--tw-bg-opacity)));
     2759}.hover\:\[\&\:not\(\:disabled\)\]\:text-surface-900:not(:disabled):hover{
     2760  --tw-text-opacity: 1;
     2761  color: hsl(var(--wg-surface-900) / var(--wg-surface-900-opacity, var(--tw-text-opacity)));
     2762}.\[\&\:not\(\[data-state\=closed\]\)\]\:text-primary:not([data-state=closed]){
     2763  --tw-text-opacity: 1;
     2764  color: rgb(60 32 172 / var(--tw-text-opacity));
     2765}.\[\&\>\*\]\:grow>*{
     2766  flex-grow: 1;
     2767}.\[\&\>abbr\]\:no-underline>abbr{
     2768  text-decoration-line: none;
     2769}.\[\&\>svg\]\:\!opacity-100>svg{
     2770  opacity: 1 !important;
     2771}.\[\&_svg\]\:text-surface-900 svg{
     2772  --tw-text-opacity: 1;
     2773  color: hsl(var(--wg-surface-900) / var(--wg-surface-900-opacity, var(--tw-text-opacity)));
     2774}.\[\&_svg\]\:opacity-40 svg{
     2775  opacity: 0.4;
     2776}
  • wpnakama/trunk/admin/app/build/index.js

    r3043708 r3131031  
    1 (()=>{"use strict";var e,t,r={512:(e,t,r)=>{function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},a.apply(this,arguments)}var n;r.d(t,{Cm:()=>v,En:()=>A,M5:()=>U,O8:()=>h,So:()=>n,_:()=>j,ay:()=>F,e8:()=>z,gv:()=>ee,iU:()=>i,mc:()=>C,q4:()=>l,sZ:()=>I}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}));const o="popstate";function i(e){return void 0===e&&(e={}),function(e,t,r,i){void 0===i&&(i={});let{window:s=document.defaultView,v5Compat:h=!1}=i,f=s.history,p=n.Pop,m=null,v=y();function y(){return(f.state||{idx:null}).idx}function g(){p=n.Pop;let e=y(),t=null==e?null:e-v;v=e,m&&m({action:p,location:b.location,delta:t})}function w(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,r="string"==typeof e?e:d(e);return l(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==v&&(v=0,f.replaceState(a({},f.state,{idx:v}),""));let b={get action(){return p},get location(){return e(s,f)},listen(e){if(m)throw new Error("A history only accepts one active listener");return s.addEventListener(o,g),m=e,()=>{s.removeEventListener(o,g),m=null}},createHref:e=>t(s,e),createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=n.Push;let a=u(b.location,e,t);r&&r(a,e),v=y()+1;let o=c(a,v),i=b.createHref(a);try{f.pushState(o,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(i)}h&&m&&m({action:p,location:b.location,delta:1})},replace:function(e,t){p=n.Replace;let a=u(b.location,e,t);r&&r(a,e),v=y();let o=c(a,v),i=b.createHref(a);f.replaceState(o,"",i),h&&m&&m({action:p,location:b.location,delta:0})},go:e=>f.go(e)};return b}((function(e,t){let{pathname:r,search:a,hash:n}=e.location;return u("",{pathname:r,search:a,hash:n},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:d(t)}),null,e)}function l(e,t){if(!1===e||null==e)throw new Error(t)}function s(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,r,n){return void 0===r&&(r=null),a({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?h(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:r="",hash:a=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),a&&"#"!==a&&(t+="#"===a.charAt(0)?a:"#"+a),t}function h(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}var f;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(f||(f={}));const p=new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map(((e,o)=>{let i=[...r,o],s="string"==typeof e.id?e.id:i.join("-");if(l(!0!==e.index||!e.children,"Cannot specify children on an index route"),l(!n[s],'Found a route id collision on id "'+s+"\".  Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let r=a({},e,t(e),{id:s});return n[s]=r,r}{let r=a({},e,t(e),{id:s,children:void 0});return n[s]=r,e.children&&(r.children=m(e.children,t,i,n)),r}}))}function v(e,t,r){void 0===r&&(r="/");let a=C(("string"==typeof t?h(t):t).pathname||"/",r);if(null==a)return null;let n=y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(n);let o=null;for(let e=0;null==o&&e<n.length;++e)o=P(n[e],L(a));return o}function y(e,t,r,a){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===a&&(a="");let n=(e,n,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:n,route:e};i.relativePath.startsWith("/")&&(l(i.relativePath.startsWith(a),'Absolute route path "'+i.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(a.length));let s=A([a,i.relativePath]),c=r.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),y(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:D(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of g(e.path))n(e,t,r);else n(e,t)})),t}function g(e){let t=e.split("/");if(0===t.length)return[];let[r,...a]=t,n=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===a.length)return n?[o,""]:[o];let i=g(a.join("/")),l=[];return l.push(...i.map((e=>""===e?o:[o,e].join("/")))),n&&l.push(...i),l.map((t=>e.startsWith("/")&&""===t?"/":t))}const w=/^:[\w-]+$/,b=3,E=2,x=1,k=10,S=-2,R=e=>"*"===e;function D(e,t){let r=e.split("/"),a=r.length;return r.some(R)&&(a+=S),t&&(a+=E),r.filter((e=>!R(e))).reduce(((e,t)=>e+(w.test(t)?b:""===t?x:k)),a)}function P(e,t){let{routesMeta:r}=e,a={},n="/",o=[];for(let e=0;e<r.length;++e){let i=r[e],l=e===r.length-1,s="/"===n?t:t.slice(n.length)||"/",c=_({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},s);if(!c)return null;Object.assign(a,c.params);let u=i.route;o.push({params:a,pathname:A([n,c.pathname]),pathnameBase:O(A([n,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(n=A([n,c.pathnameBase]))}return o}function _(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),s("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let a=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(a.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(a.push({paramName:"*"}),n+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":""!==e&&"/"!==e&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),a]}(e.path,e.caseSensitive,e.end),n=t.match(r);if(!n)return null;let o=n[0],i=o.replace(/(.)\/+$/,"$1"),l=n.slice(1);return{params:a.reduce(((e,t,r)=>{let{paramName:a,isOptional:n}=t;if("*"===a){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const c=l[r];return e[a]=n&&!c?void 0:function(e,t){try{return decodeURIComponent(e)}catch(r){return s(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+r+")."),e}}(c||"",a),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function L(e){try{return decodeURI(e)}catch(t){return s(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function C(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&"/"!==a?null:e.slice(r)||"/"}function T(e,t,r,a){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(a)+"].  Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function M(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function U(e,t){let r=M(e);return t?r.map(((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)):r.map((e=>e.pathnameBase))}function j(e,t,r,n){let o;void 0===n&&(n=!1),"string"==typeof e?o=h(e):(o=a({},e),l(!o.pathname||!o.pathname.includes("?"),T("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),T("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),T("#","search","hash",o)));let i,s=""===e||""===o.pathname,c=s?"/":o.pathname;if(null==c)i=r;else{let e=t.length-1;if(!n&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:r,search:a="",hash:n=""}="string"==typeof e?h(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:N(a),hash:B(n)}}(o,i),d=c&&"/"!==c&&c.endsWith("/"),f=(s||"."===c)&&r.endsWith("/");return u.pathname.endsWith("/")||!d&&!f||(u.pathname+="/"),u}const A=e=>e.join("/").replace(/\/\/+/g,"/"),O=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),N=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",B=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class F extends Error{}class I{constructor(e,t,r,a){void 0===a&&(a=!1),this.status=e,this.statusText=t||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function z(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const q=["post","put","patch","delete"],H=new Set(q),W=["get",...q],$=new Set(W),V=new Set([301,302,303,307,308]),J=new Set([307,308]),Y={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},X={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},G={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Q=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Z=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),K="remix-router-transitions";function ee(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,o=!r;let i;if(l(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;i=e=>({hasErrorBoundary:t(e)})}else i=Z;let c,d,h={},p=m(e.routes,i,void 0,h),y=e.basename||"/",g=a({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),w=null,b=new Set,E=null,x=null,k=null,S=null!=e.hydrationData,R=v(p,e.history.location,y),D=null;if(null==R){let t=me(404,{pathname:e.history.location.pathname}),{matches:r,route:a}=pe(p);R=r,D={[a.id]:t}}let P,_=R.some((e=>e.route.lazy)),L=R.some((e=>e.route.loader));if(_)d=!1;else if(L)if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;d=R.every((e=>e.route.loader&&!0!==e.route.loader.hydrate&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id])))}else d=null!=e.hydrationData;else d=!0;let T,M={historyAction:e.history.action,location:e.history.location,matches:R,initialized:d,navigation:Y,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||D,fetchers:new Map,blockers:new Map},U=n.Pop,j=!1,A=!1,O=new Map,N=null,B=!1,F=!1,I=[],z=[],q=new Map,H=0,W=-1,$=new Map,V=new Set,ee=new Map,ne=new Map,oe=new Set,ie=new Map,ce=new Map,ue=!1;function ye(e,t){void 0===t&&(t={}),M=a({},M,e);let r=[],n=[];g.v7_fetcherPersist&&M.fetchers.forEach(((e,t)=>{"idle"===e.state&&(oe.has(t)?n.push(t):r.push(t))})),[...b].forEach((e=>e(M,{deletedFetchers:n,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),g.v7_fetcherPersist&&(r.forEach((e=>M.fetchers.delete(e))),n.forEach((e=>Ne(e))))}function Se(t,r,o){var i,l;let s,{flushSync:u}=void 0===o?{}:o,d=null!=M.actionData&&null!=M.navigation.formMethod&&Ee(M.navigation.formMethod)&&"loading"===M.navigation.state&&!0!==(null==(i=t.state)?void 0:i._isRedirect);s=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:d?M.actionData:null;let h=r.loaderData?he(M.loaderData,r.loaderData,r.matches||[],r.errors):M.loaderData,f=M.blockers;f.size>0&&(f=new Map(f),f.forEach(((e,t)=>f.set(t,G))));let m,v=!0===j||null!=M.navigation.formMethod&&Ee(M.navigation.formMethod)&&!0!==(null==(l=t.state)?void 0:l._isRedirect);if(c&&(p=c,c=void 0),B||U===n.Pop||(U===n.Push?e.history.push(t,t.state):U===n.Replace&&e.history.replace(t,t.state)),U===n.Pop){let e=O.get(M.location.pathname);e&&e.has(t.pathname)?m={currentLocation:M.location,nextLocation:t}:O.has(t.pathname)&&(m={currentLocation:t,nextLocation:M.location})}else if(A){let e=O.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),O.set(M.location.pathname,e)),m={currentLocation:M.location,nextLocation:t}}ye(a({},r,{actionData:s,loaderData:h,historyAction:U,location:t,initialized:!0,navigation:Y,revalidation:"idle",restoreScrollPosition:Je(t,r.matches||M.matches),preventScrollReset:v,blockers:f}),{viewTransitionOpts:m,flushSync:!0===u}),U=n.Pop,j=!1,A=!1,B=!1,F=!1,I=[],z=[]}async function Ce(t,r,o){T&&T.abort(),T=null,U=t,B=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(E&&k){let r=Ve(e,t);E[r]=k()}}(M.location,M.matches),j=!0===(o&&o.preventScrollReset),A=!0===(o&&o.enableViewTransition);let l=c||p,s=o&&o.overrideNavigation,u=v(l,r,y),d=!0===(o&&o.flushSync);if(!u){let e=me(404,{pathname:r.pathname}),{matches:t,route:a}=pe(l);return $e(),void Se(r,{matches:t,loaderData:{},errors:{[a.id]:e}},{flushSync:d})}if(M.initialized&&!F&&(m=M.location,w=r,m.pathname===w.pathname&&m.search===w.search&&(""===m.hash?""!==w.hash:m.hash===w.hash||""!==w.hash))&&!(o&&o.submission&&Ee(o.submission.formMethod)))return void Se(r,{matches:u},{flushSync:d});var m,w;T=new AbortController;let b,x,S=se(e.history,r,T.signal,o&&o.submission);if(o&&o.pendingError)x={[fe(u).route.id]:o.pendingError};else if(o&&o.submission&&Ee(o.submission.formMethod)){let e=await async function(e,t,r,a,o){void 0===o&&(o={}),Ue();let l,s=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,r);ye({navigation:s},{flushSync:!0===o.flushSync});let c=Re(a,t);if(c.route.action||c.route.lazy){if(l=await le("action",e,c,a,h,i,y,g.v7_relativeSplatPath),e.signal.aborted)return{shortCircuited:!0}}else l={type:f.error,error:me(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(be(l)){let e;return e=o&&null!=o.replace?o.replace:l.location===M.location.pathname+M.location.search,await Te(M,l,{submission:r,replace:e}),{shortCircuited:!0}}if(we(l)){let e=fe(a,c.route.id);return!0!==(o&&o.replace)&&(U=n.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:l.error}}}if(ge(l))throw me(400,{type:"defer-action"});return{pendingActionData:{[c.route.id]:l.data}}}(S,r,o.submission,u,{replace:o.replace,flushSync:d});if(e.shortCircuited)return;b=e.pendingActionData,x=e.pendingActionError,s=Pe(r,o.submission),d=!1,S=new Request(S.url,{signal:S.signal})}let{shortCircuited:R,loaderData:D,errors:P}=await async function(t,r,n,o,i,l,s,u,d,h,f){let m=o||Pe(r,i),v=i||l||De(m),w=c||p,[b,E]=ae(e.history,M,n,v,r,g.v7_partialHydration&&!0===u,F,I,z,oe,ee,V,w,y,h,f);if($e((e=>!(n&&n.some((t=>t.route.id===e)))||b&&b.some((t=>t.route.id===e)))),W=++H,0===b.length&&0===E.length){let e=Ie();return Se(r,a({matches:n,loaderData:{},errors:f||null},h?{actionData:h}:{},e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:d}),{shortCircuited:!0}}if(!(B||g.v7_partialHydration&&u)){E.forEach((e=>{let t=M.fetchers.get(e.key),r=_e(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}));let e=h||M.actionData;ye(a({navigation:m},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},E.length>0?{fetchers:new Map(M.fetchers)}:{}),{flushSync:d})}E.forEach((e=>{q.has(e.key)&&Be(e.key),e.controller&&q.set(e.key,e.controller)}));let x=()=>E.forEach((e=>Be(e.key)));T&&T.signal.addEventListener("abort",x);let{results:k,loaderResults:S,fetcherResults:R}=await Me(M.matches,n,b,E,t);if(t.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",x),E.forEach((e=>q.delete(e.key)));let D=ve(k);if(D){if(D.idx>=b.length){let e=E[D.idx-b.length].key;V.add(e)}return await Te(M,D.result,{replace:s}),{shortCircuited:!0}}let{loaderData:P,errors:_}=de(M,n,b,S,f,E,R,ie);ie.forEach(((e,t)=>{e.subscribe((r=>{(r||e.done)&&ie.delete(t)}))}));let L=Ie(),C=ze(W);return a({loaderData:P,errors:_},L||C||E.length>0?{fetchers:new Map(M.fetchers)}:{})}(S,r,u,s,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,d,b,x);R||(T=null,Se(r,a({matches:u},b?{actionData:b}:{},{loaderData:D,errors:P})))}async function Te(o,i,s){let{submission:c,fetcherSubmission:d,replace:h}=void 0===s?{}:s;i.revalidate&&(F=!0);let f=u(o.location,i.location,{_isRedirect:!0});if(l(f,"Expected a location on the redirect navigation"),r){let r=!1;if(i.reloadDocument)r=!0;else if(Q.test(i.location)){const a=e.history.createURL(i.location);r=a.origin!==t.location.origin||null==C(a.pathname,y)}if(r)return void(h?t.location.replace(i.location):t.location.assign(i.location))}T=null;let p=!0===h?n.Replace:n.Push,{formMethod:m,formAction:v,formEncType:g}=o.navigation;!c&&!d&&m&&v&&g&&(c=De(o.navigation));let w=c||d;if(J.has(i.status)&&w&&Ee(w.formMethod))await Ce(p,f,{submission:a({},w,{formAction:i.location}),preventScrollReset:j});else{let e=Pe(f,c);await Ce(p,f,{overrideNavigation:e,fetcherSubmission:d,preventScrollReset:j})}}async function Me(t,r,a,n,o){let l=await Promise.all([...a.map((e=>le("loader",o,e,r,h,i,y,g.v7_relativeSplatPath))),...n.map((t=>t.matches&&t.match&&t.controller?le("loader",se(e.history,t.path,t.controller.signal),t.match,t.matches,h,i,y,g.v7_relativeSplatPath):{type:f.error,error:me(404,{pathname:t.path})}))]),s=l.slice(0,a.length),c=l.slice(a.length);return await Promise.all([xe(t,a,s,s.map((()=>o.signal)),!1,M.loaderData),xe(t,n.map((e=>e.match)),c,n.map((e=>e.controller?e.controller.signal:null)),!0)]),{results:l,loaderResults:s,fetcherResults:c}}function Ue(){F=!0,I.push(...$e()),ee.forEach(((e,t)=>{q.has(t)&&(z.push(t),Be(t))}))}function je(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),ye({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ae(e,t,r,a){void 0===a&&(a={});let n=fe(M.matches,t);Ne(e),ye({errors:{[n.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(a&&a.flushSync)})}function Oe(e){return g.v7_fetcherPersist&&(ne.set(e,(ne.get(e)||0)+1),oe.has(e)&&oe.delete(e)),M.fetchers.get(e)||X}function Ne(e){let t=M.fetchers.get(e);!q.has(e)||t&&"loading"===t.state&&$.has(e)||Be(e),ee.delete(e),$.delete(e),V.delete(e),oe.delete(e),M.fetchers.delete(e)}function Be(e){let t=q.get(e);l(t,"Expected fetch controller: "+e),t.abort(),q.delete(e)}function Fe(e){for(let t of e){let e=Le(Oe(t).data);M.fetchers.set(t,e)}}function Ie(){let e=[],t=!1;for(let r of V){let a=M.fetchers.get(r);l(a,"Expected fetcher: "+r),"loading"===a.state&&(V.delete(r),e.push(r),t=!0)}return Fe(e),t}function ze(e){let t=[];for(let[r,a]of $)if(a<e){let e=M.fetchers.get(r);l(e,"Expected fetcher: "+r),"loading"===e.state&&(Be(r),$.delete(r),t.push(r))}return Fe(t),t.length>0}function qe(e){M.blockers.delete(e),ce.delete(e)}function He(e,t){let r=M.blockers.get(e)||G;l("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let a=new Map(M.blockers);a.set(e,t),ye({blockers:a})}function We(e){let{currentLocation:t,nextLocation:r,historyAction:a}=e;if(0===ce.size)return;ce.size>1&&s(!1,"A router only supports one blocker at a time");let n=Array.from(ce.entries()),[o,i]=n[n.length-1],l=M.blockers.get(o);return l&&"proceeding"===l.state?void 0:i({currentLocation:t,nextLocation:r,historyAction:a})?o:void 0}function $e(e){let t=[];return ie.forEach(((r,a)=>{e&&!e(a)||(r.cancel(),t.push(a),ie.delete(a))})),t}function Ve(e,t){return x&&x(e,t.map((e=>function(e,t){let{route:r,pathname:a,params:n}=e;return{id:r.id,pathname:a,params:n,data:t[r.id],handle:r.handle}}(e,M.loaderData))))||e.key}function Je(e,t){if(E){let r=Ve(e,t),a=E[r];if("number"==typeof a)return a}return null}return P={get basename(){return y},get future(){return g},get state(){return M},get routes(){return p},get window(){return t},initialize:function(){if(w=e.history.listen((t=>{let{action:r,location:a,delta:n}=t;if(ue)return void(ue=!1);s(0===ce.size||null!=n,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=We({currentLocation:M.location,nextLocation:a,historyAction:r});return o&&null!=n?(ue=!0,e.history.go(-1*n),void He(o,{state:"blocked",location:a,proceed(){He(o,{state:"proceeding",proceed:void 0,reset:void 0,location:a}),e.history.go(n)},reset(){let e=new Map(M.blockers);e.set(o,G),ye({blockers:e})}})):Ce(r,a)})),r){!function(e,t){try{let r=e.sessionStorage.getItem(K);if(r){let e=JSON.parse(r);for(let[r,a]of Object.entries(e||{}))a&&Array.isArray(a)&&t.set(r,new Set(a||[]))}}catch(e){}}(t,O);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,a]of t)r[e]=[...a];try{e.sessionStorage.setItem(K,JSON.stringify(r))}catch(e){s(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,O);t.addEventListener("pagehide",e),N=()=>t.removeEventListener("pagehide",e)}return M.initialized||Ce(n.Pop,M.location,{initialHydration:!0}),P},subscribe:function(e){return b.add(e),()=>b.delete(e)},enableScrollRestoration:function(e,t,r){if(E=e,k=t,x=r||null,!S&&M.navigation===Y){S=!0;let e=Je(M.location,M.matches);null!=e&&ye({restoreScrollPosition:e})}return()=>{E=null,k=null,x=null}},navigate:async function t(r,o){if("number"==typeof r)return void e.history.go(r);let i=te(M.location,M.matches,y,g.v7_prependBasename,r,g.v7_relativeSplatPath,null==o?void 0:o.fromRouteId,null==o?void 0:o.relative),{path:l,submission:s,error:c}=re(g.v7_normalizeFormMethod,!1,i,o),d=M.location,h=u(M.location,l,o&&o.state);h=a({},h,e.history.encodeLocation(h));let f=o&&null!=o.replace?o.replace:void 0,p=n.Push;!0===f?p=n.Replace:!1===f||null!=s&&Ee(s.formMethod)&&s.formAction===M.location.pathname+M.location.search&&(p=n.Replace);let m=o&&"preventScrollReset"in o?!0===o.preventScrollReset:void 0,v=!0===(o&&o.unstable_flushSync),w=We({currentLocation:d,nextLocation:h,historyAction:p});if(!w)return await Ce(p,h,{submission:s,pendingError:c,preventScrollReset:m,replace:o&&o.replace,enableViewTransition:o&&o.unstable_viewTransition,flushSync:v});He(w,{state:"blocked",location:h,proceed(){He(w,{state:"proceeding",proceed:void 0,reset:void 0,location:h}),t(r,o)},reset(){let e=new Map(M.blockers);e.set(w,G),ye({blockers:e})}})},fetch:function(t,r,a,n){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");q.has(t)&&Be(t);let s=!0===(n&&n.unstable_flushSync),u=c||p,d=te(M.location,M.matches,y,g.v7_prependBasename,a,g.v7_relativeSplatPath,r,null==n?void 0:n.relative),f=v(u,d,y);if(!f)return void Ae(t,r,me(404,{pathname:d}),{flushSync:s});let{path:m,submission:w,error:b}=re(g.v7_normalizeFormMethod,!0,d,n);if(b)return void Ae(t,r,b,{flushSync:s});let E=Re(f,m);j=!0===(n&&n.preventScrollReset),w&&Ee(w.formMethod)?async function(t,r,a,n,o,s,u){if(Ue(),ee.delete(t),!n.route.action&&!n.route.lazy){let e=me(405,{method:u.formMethod,pathname:a,routeId:r});return void Ae(t,r,e,{flushSync:s})}let d=M.fetchers.get(t);je(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(u,d),{flushSync:s});let f=new AbortController,m=se(e.history,a,f.signal,u);q.set(t,f);let w=H,b=await le("action",m,n,o,h,i,y,g.v7_relativeSplatPath);if(m.signal.aborted)return void(q.get(t)===f&&q.delete(t));if(g.v7_fetcherPersist&&oe.has(t)){if(be(b)||we(b))return void je(t,Le(void 0))}else{if(be(b))return q.delete(t),W>w?void je(t,Le(void 0)):(V.add(t),je(t,_e(u)),Te(M,b,{fetcherSubmission:u}));if(we(b))return void Ae(t,r,b.error)}if(ge(b))throw me(400,{type:"defer-action"});let E=M.navigation.location||M.location,x=se(e.history,E,f.signal),k=c||p,S="idle"!==M.navigation.state?v(k,M.navigation.location,y):M.matches;l(S,"Didn't find any matches after fetcher action");let R=++H;$.set(t,R);let D=_e(u,b.data);M.fetchers.set(t,D);let[P,_]=ae(e.history,M,S,u,E,!1,F,I,z,oe,ee,V,k,y,{[n.route.id]:b.data},void 0);_.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,r=M.fetchers.get(t),a=_e(void 0,r?r.data:void 0);M.fetchers.set(t,a),q.has(t)&&Be(t),e.controller&&q.set(t,e.controller)})),ye({fetchers:new Map(M.fetchers)});let L=()=>_.forEach((e=>Be(e.key)));f.signal.addEventListener("abort",L);let{results:C,loaderResults:j,fetcherResults:A}=await Me(M.matches,S,P,_,x);if(f.signal.aborted)return;f.signal.removeEventListener("abort",L),$.delete(t),q.delete(t),_.forEach((e=>q.delete(e.key)));let O=ve(C);if(O){if(O.idx>=P.length){let e=_[O.idx-P.length].key;V.add(e)}return Te(M,O.result)}let{loaderData:N,errors:B}=de(M,M.matches,P,j,void 0,_,A,ie);if(M.fetchers.has(t)){let e=Le(b.data);M.fetchers.set(t,e)}ze(R),"loading"===M.navigation.state&&R>W?(l(U,"Expected pending action"),T&&T.abort(),Se(M.navigation.location,{matches:S,loaderData:N,errors:B,fetchers:new Map(M.fetchers)})):(ye({errors:B,loaderData:he(M.loaderData,N,S,B),fetchers:new Map(M.fetchers)}),F=!1)}(t,r,m,E,f,s,w):(ee.set(t,{routeId:r,path:m}),async function(t,r,a,n,o,s,c){let u=M.fetchers.get(t);je(t,_e(c,u?u.data:void 0),{flushSync:s});let d=new AbortController,f=se(e.history,a,d.signal);q.set(t,d);let p=H,m=await le("loader",f,n,o,h,i,y,g.v7_relativeSplatPath);if(ge(m)&&(m=await ke(m,f.signal,!0)||m),q.get(t)===d&&q.delete(t),!f.signal.aborted){if(!oe.has(t))return be(m)?W>p?void je(t,Le(void 0)):(V.add(t),void await Te(M,m)):void(we(m)?Ae(t,r,m.error):(l(!ge(m),"Unhandled fetcher deferred data"),je(t,Le(m.data))));je(t,Le(void 0))}}(t,r,m,E,f,s,w))},revalidate:function(){Ue(),ye({revalidation:"loading"}),"submitting"!==M.navigation.state&&("idle"!==M.navigation.state?Ce(U||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation}):Ce(M.historyAction,M.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Oe,deleteFetcher:function(e){if(g.v7_fetcherPersist){let t=(ne.get(e)||0)-1;t<=0?(ne.delete(e),oe.add(e)):ne.set(e,t)}else Ne(e);ye({fetchers:new Map(M.fetchers)})},dispose:function(){w&&w(),N&&N(),b.clear(),T&&T.abort(),M.fetchers.forEach(((e,t)=>Ne(t))),M.blockers.forEach(((e,t)=>qe(t)))},getBlocker:function(e,t){let r=M.blockers.get(e)||G;return ce.get(e)!==t&&ce.set(e,t),r},deleteBlocker:qe,_internalFetchControllers:q,_internalActiveDeferreds:ie,_internalSetRoutes:function(e){h={},c=m(e,i,void 0,h)}},P}function te(e,t,r,a,n,o,i,l){let s,c;if(i){s=[];for(let e of t)if(s.push(e),e.route.id===i){c=e;break}}else s=t,c=t[t.length-1];let u=j(n||".",U(s,o),C(e.pathname,r)||e.pathname,"path"===l);return null==n&&(u.search=e.search,u.hash=e.hash),null!=n&&""!==n&&"."!==n||!c||!c.route.index||Se(u.search)||(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),a&&"/"!==r&&(u.pathname="/"===u.pathname?r:A([r,u.pathname])),d(u)}function re(e,t,r,a){if(!a||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(a))return{path:r};if(a.formMethod&&(n=a.formMethod,!$.has(n.toLowerCase())))return{path:r,error:me(405,{method:a.formMethod})};var n;let o,i,s=()=>({path:r,error:me(400,{type:"invalid-body"})}),c=a.formMethod||"get",u=e?c.toUpperCase():c.toLowerCase(),f=ye(r);if(void 0!==a.body){if("text/plain"===a.formEncType){if(!Ee(u))return s();let e="string"==typeof a.body?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce(((e,t)=>{let[r,a]=t;return""+e+r+"="+a+"\n"}),""):String(a.body);return{path:r,submission:{formMethod:u,formAction:f,formEncType:a.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===a.formEncType){if(!Ee(u))return s();try{let e="string"==typeof a.body?JSON.parse(a.body):a.body;return{path:r,submission:{formMethod:u,formAction:f,formEncType:a.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return s()}}}if(l("function"==typeof FormData,"FormData is not available in this environment"),a.formData)o=ce(a.formData),i=a.formData;else if(a.body instanceof FormData)o=ce(a.body),i=a.body;else if(a.body instanceof URLSearchParams)o=a.body,i=ue(o);else if(null==a.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(a.body),i=ue(o)}catch(e){return s()}let p={formMethod:u,formAction:f,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(Ee(p.formMethod))return{path:r,submission:p};let m=h(r);return t&&m.search&&Se(m.search)&&o.append("index",""),m.search="?"+o,{path:d(m),submission:p}}function ae(e,t,r,n,o,i,l,s,c,u,d,h,f,p,m,y){let g=y?Object.values(y)[0]:m?Object.values(m)[0]:void 0,w=e.createURL(t.location),b=e.createURL(o),E=y?Object.keys(y)[0]:void 0,x=function(e,t){let r=e;if(t){let a=e.findIndex((e=>e.route.id===t));a>=0&&(r=e.slice(0,a))}return r}(r,E).filter(((e,r)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(i)return!!o.loader.hydrate||void 0===t.loaderData[o.id]&&(!t.errors||void 0===t.errors[o.id]);if(function(e,t,r){let a=!t||r.route.id!==t.route.id,n=void 0===e[r.route.id];return a||n}(t.loaderData,t.matches[r],e)||s.some((t=>t===e.route.id)))return!0;let c=t.matches[r],u=e;return oe(e,a({currentUrl:w,currentParams:c.params,nextUrl:b,nextParams:u.params},n,{actionResult:g,defaultShouldRevalidate:l||w.pathname+w.search===b.pathname+b.search||w.search!==b.search||ne(c,u)}))})),k=[];return d.forEach(((e,o)=>{if(i||!r.some((t=>t.route.id===e.routeId))||u.has(o))return;let s=v(f,e.path,p);if(!s)return void k.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let d=t.fetchers.get(o),m=Re(s,e.path),y=!1;y=!h.has(o)&&(!!c.includes(o)||(d&&"idle"!==d.state&&void 0===d.data?l:oe(m,a({currentUrl:w,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:g,defaultShouldRevalidate:l})))),y&&k.push({key:o,routeId:e.routeId,path:e.path,matches:s,match:m,controller:new AbortController})})),[x,k]}function ne(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function oe(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function ie(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let o=r[e.id];l(o,"No route found in manifest");let i={};for(let e in n){let t=void 0!==o[e]&&"hasErrorBoundary"!==e;s(!t,'Route "'+o.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||p.has(e)||(i[e]=n[e])}Object.assign(o,i),Object.assign(o,a({},t(o),{lazy:void 0}))}async function le(e,t,r,a,n,o,i,s,c){let u,d,h;void 0===c&&(c={});let p=e=>{let a,n=new Promise(((e,t)=>a=t));return h=()=>a(),t.signal.addEventListener("abort",h),Promise.race([e({request:t,params:r.params,context:c.requestContext}),n])};try{let a=r.route[e];if(r.route.lazy)if(a){let e,t=await Promise.all([p(a).catch((t=>{e=t})),ie(r.route,o,n)]);if(e)throw e;d=t[0]}else{if(await ie(r.route,o,n),a=r.route[e],!a){if("action"===e){let e=new URL(t.url),a=e.pathname+e.search;throw me(405,{method:t.method,pathname:a,routeId:r.route.id})}return{type:f.data,data:void 0}}d=await p(a)}else{if(!a){let e=new URL(t.url);throw me(404,{pathname:e.pathname+e.search})}d=await p(a)}l(void 0!==d,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){u=f.error,d=e}finally{h&&t.signal.removeEventListener("abort",h)}if(null!=(m=d)&&"number"==typeof m.status&&"string"==typeof m.statusText&&"object"==typeof m.headers&&void 0!==m.body){let e,n=d.status;if(V.has(n)){let e=d.headers.get("Location");if(l(e,"Redirects returned/thrown from loaders/actions must have a Location header"),Q.test(e)){if(!c.isStaticRequest){let r=new URL(t.url),a=e.startsWith("//")?new URL(r.protocol+e):new URL(e),n=null!=C(a.pathname,i);a.origin===r.origin&&n&&(e=a.pathname+a.search+a.hash)}}else e=te(new URL(t.url),a.slice(0,a.indexOf(r)+1),i,!0,e,s);if(c.isStaticRequest)throw d.headers.set("Location",e),d;return{type:f.redirect,status:n,location:e,revalidate:null!==d.headers.get("X-Remix-Revalidate"),reloadDocument:null!==d.headers.get("X-Remix-Reload-Document")}}if(c.isRouteRequest)throw{type:u===f.error?f.error:f.data,response:d};try{let t=d.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==d.body?null:await d.json():await d.text()}catch(e){return{type:f.error,error:e}}return u===f.error?{type:u,error:new I(n,d.statusText,e),headers:d.headers}:{type:f.data,data:e,statusCode:d.status,headers:d.headers}}var m,v,y;return u===f.error?{type:u,error:d}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(d)?{type:f.deferred,deferredData:d,statusCode:null==(v=d.init)?void 0:v.status,headers:(null==(y=d.init)?void 0:y.headers)&&new Headers(d.init.headers)}:{type:f.data,data:d}}function se(e,t,r,a){let n=e.createURL(ye(t)).toString(),o={signal:r};if(a&&Ee(a.formMethod)){let{formMethod:e,formEncType:t}=a;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(a.json)):"text/plain"===t?o.body=a.text:"application/x-www-form-urlencoded"===t&&a.formData?o.body=ce(a.formData):o.body=a.formData}return new Request(n,o)}function ce(e){let t=new URLSearchParams;for(let[r,a]of e.entries())t.append(r,"string"==typeof a?a:a.name);return t}function ue(e){let t=new FormData;for(let[r,a]of e.entries())t.append(r,a);return t}function de(e,t,r,n,o,i,s,c){let{loaderData:u,errors:d}=function(e,t,r,a,n){let o,i={},s=null,c=!1,u={};return r.forEach(((r,d)=>{let h=t[d].route.id;if(l(!be(r),"Cannot handle redirect results in processLoaderData"),we(r)){let t=fe(e,h),n=r.error;a&&(n=Object.values(a)[0],a=void 0),s=s||{},null==s[t.route.id]&&(s[t.route.id]=n),i[h]=void 0,c||(c=!0,o=z(r.error)?r.error.status:500),r.headers&&(u[h]=r.headers)}else ge(r)?(n.set(h,r.deferredData),i[h]=r.deferredData.data):i[h]=r.data,null==r.statusCode||200===r.statusCode||c||(o=r.statusCode),r.headers&&(u[h]=r.headers)})),a&&(s=a,i[Object.keys(a)[0]]=void 0),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:u}}(t,r,n,o,c);for(let t=0;t<i.length;t++){let{key:r,match:n,controller:o}=i[t];l(void 0!==s&&void 0!==s[t],"Did not find corresponding fetcher result");let c=s[t];if(!o||!o.signal.aborted)if(we(c)){let t=fe(e.matches,null==n?void 0:n.route.id);d&&d[t.route.id]||(d=a({},d,{[t.route.id]:c.error})),e.fetchers.delete(r)}else if(be(c))l(!1,"Unhandled fetcher revalidation redirect");else if(ge(c))l(!1,"Unhandled fetcher deferred data");else{let t=Le(c.data);e.fetchers.set(r,t)}}return{loaderData:u,errors:d}}function he(e,t,r,n){let o=a({},t);for(let a of r){let r=a.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(o[r]=t[r]):void 0!==e[r]&&a.route.loader&&(o[r]=e[r]),n&&n.hasOwnProperty(r))break}return o}function fe(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function pe(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function me(e,t){let{pathname:r,routeId:a,method:n,type:o}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request",n&&r&&a?l="You made a "+n+' request to "'+r+'" but did not provide a `loader` for route "'+a+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(i="Forbidden",l='Route "'+a+'" does not match URL "'+r+'"'):404===e?(i="Not Found",l='No route matches URL "'+r+'"'):405===e&&(i="Method Not Allowed",n&&r&&a?l="You made a "+n.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+a+'", so there is no way to handle the request.':n&&(l='Invalid request method "'+n.toUpperCase()+'"')),new I(e||500,i,new Error(l),!0)}function ve(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(be(r))return{result:r,idx:t}}}function ye(e){return d(a({},"string"==typeof e?h(e):e,{hash:""}))}function ge(e){return e.type===f.deferred}function we(e){return e.type===f.error}function be(e){return(e&&e.type)===f.redirect}function Ee(e){return H.has(e.toLowerCase())}async function xe(e,t,r,a,n,o){for(let i=0;i<r.length;i++){let s=r[i],c=t[i];if(!c)continue;let u=e.find((e=>e.route.id===c.route.id)),d=null!=u&&!ne(u,c)&&void 0!==(o&&o[c.route.id]);if(ge(s)&&(n||d)){let e=a[i];l(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await ke(s,e,n).then((e=>{e&&(r[i]=e||r[i])}))}}}async function ke(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:f.data,data:e.deferredData.unwrappedData}}catch(e){return{type:f.error,error:e}}return{type:f.data,data:e.deferredData.data}}}function Se(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Re(e,t){let r="string"==typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&Se(r||""))return e[e.length-1];let a=M(e);return a[a.length-1]}function De(e){let{formMethod:t,formAction:r,formEncType:a,text:n,formData:o,json:i}=e;if(t&&r&&a)return null!=n?{formMethod:t,formAction:r,formEncType:a,formData:void 0,json:void 0,text:n}:null!=o?{formMethod:t,formAction:r,formEncType:a,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:r,formEncType:a,formData:void 0,json:i,text:void 0}:void 0}function Pe(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function _e(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Le(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")},104:(e,t,r)=>{r.d(t,{c:()=>i});var a=r(280),n=r(287);const o=r.p+"images/wpnakama-icon.08551985.png";function i({message:e}){return(0,a.createElement)(n.Flex,{align:"center",justify:"center",direction:"column",style:{height:"320px"}},(0,a.createElement)(n.Flex,{align:"center",justify:"center",style:{width:"100%",position:"relative"}},(0,a.createElement)(n.Spinner,{style:{width:"80px",height:"80px",position:"absolute",left:"50%",top:"50%",transform:"translateY(-50%) translateX(-50%)",margin:"0"}}),(0,a.createElement)("img",{src:o,style:{width:"72px",height:"72px"}})),(0,a.createElement)(n.__experimentalSpacer,{padding:4,style:{marginLeft:"auto",marginRight:"auto",textAlign:"center",width:"400px"}},(0,a.createElement)(n.__experimentalText,{size:14,weight:500,color:"#797979"},e)))}},912:(e,t,r)=>{r.d(t,{O:()=>n});var a=r(204);function n(){return(0,a.getQueryArgs)(window.location.href)}},244:(e,t,r)=>{r.d(t,{G:()=>n,_:()=>o});var a=r(496);const n=(0,a.createContext)(null),o=(0,a.createContext)(null)},284:(e,t,r)=>{r.d(t,{Cu:()=>l,E5:()=>P,IT:()=>f,Mh:()=>i,_y:()=>_,i0:()=>L,i6:()=>m,kX:()=>D,oj:()=>v,y_:()=>S});var a=r(280),n=r(512);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},o.apply(this,arguments)}const i=a.createContext(null),l=a.createContext(null),s=a.createContext(null),c=a.createContext(null),u=a.createContext({outlet:null,matches:[],isDataRoute:!1}),d=a.createContext(null);function h(){return null!=a.useContext(c)}function f(){return h()||(0,n.q4)(!1),a.useContext(c).location}function p(e){a.useContext(s).static||a.useLayoutEffect(e)}function m(){let{isDataRoute:e}=a.useContext(u);return e?function(){let{router:e}=function(e){let t=a.useContext(i);return t||(0,n.q4)(!1),t}(E.UseNavigateStable),t=k(x.UseNavigateStable),r=a.useRef(!1);return p((()=>{r.current=!0})),a.useCallback((function(a,n){void 0===n&&(n={}),r.current&&("number"==typeof a?e.navigate(a):e.navigate(a,o({fromRouteId:t},n)))}),[e,t])}():function(){h()||(0,n.q4)(!1);let e=a.useContext(i),{basename:t,future:r,navigator:o}=a.useContext(s),{matches:l}=a.useContext(u),{pathname:c}=f(),d=JSON.stringify((0,n.M5)(l,r.v7_relativeSplatPath)),m=a.useRef(!1);return p((()=>{m.current=!0})),a.useCallback((function(r,a){if(void 0===a&&(a={}),!m.current)return;if("number"==typeof r)return void o.go(r);let i=(0,n._)(r,JSON.parse(d),c,"path"===a.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:(0,n.En)([t,i.pathname])),(a.replace?o.replace:o.push)(i,a.state,a)}),[t,o,d,c,e])}()}function v(e,t,r,i){h()||(0,n.q4)(!1);let{navigator:l}=a.useContext(s),{matches:d}=a.useContext(u),p=d[d.length-1],m=p?p.params:{},v=(p&&p.pathname,p?p.pathnameBase:"/");p&&p.route;let y,E=f();if(t){var x;let e="string"==typeof t?(0,n.O8)(t):t;"/"===v||(null==(x=e.pathname)?void 0:x.startsWith(v))||(0,n.q4)(!1),y=e}else y=E;let k=y.pathname||"/",S="/"===v?k:k.slice(v.length)||"/",D=(0,n.Cm)(e,{pathname:S}),P=function(e,t,r,o){var i;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===o&&(o=null),null==e){var l;if(null==(l=r)||!l.errors)return null;e=r.matches}let s=e,c=null==(i=r)?void 0:i.errors;if(null!=c){let e=s.findIndex((e=>e.route.id&&(null==c?void 0:c[e.route.id])));e>=0||(0,n.q4)(!1),s=s.slice(0,Math.min(s.length,e+1))}let u=!1,d=-1;if(r&&o&&o.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:a}=r,n=t.route.loader&&void 0===e[t.route.id]&&(!a||void 0===a[t.route.id]);if(t.route.lazy||n){u=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight(((e,n,o)=>{let i,l=!1,h=null,f=null;var p;r&&(i=c&&n.route.id?c[n.route.id]:void 0,h=n.route.errorElement||g,u&&(d<0&&0===o?(R[p="route-fallback"]||(R[p]=!0),l=!0,f=null):d===o&&(l=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,o+1)),v=()=>{let t;return t=i?h:l?f:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(b,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===o)?a.createElement(w,{location:r.location,revalidation:r.revalidation,component:h,error:i,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()}),null)}(D&&D.map((e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:(0,n.En)([v,l.encodeLocation?l.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?v:(0,n.En)([v,l.encodeLocation?l.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),d,r,i);return t&&P?a.createElement(c.Provider,{value:{location:o({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:n.So.Pop}},P):P}function y(){let e=S(),t=(0,n.e8)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),r?a.createElement("pre",{style:o},r):null,null)}const g=a.createElement(y,null);class w extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?a.createElement(u.Provider,{value:this.props.routeContext},a.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function b(e){let{routeContext:t,match:r,children:n}=e,o=a.useContext(i);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),a.createElement(u.Provider,{value:t},n)}var E=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(E||{}),x=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(x||{});function k(e){let t=function(e){let t=a.useContext(u);return t||(0,n.q4)(!1),t}(),r=t.matches[t.matches.length-1];return r.route.id||(0,n.q4)(!1),r.route.id}function S(){var e;let t=a.useContext(d),r=function(e){let t=a.useContext(l);return t||(0,n.q4)(!1),t}(x.UseRouteError),o=k(x.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[o]}const R={};function D(e){(0,n.q4)(!1)}function P(e){let{basename:t="/",children:r=null,location:i,navigationType:l=n.So.Pop,navigator:u,static:d=!1,future:f}=e;h()&&(0,n.q4)(!1);let p=t.replace(/^\/*/,"/"),m=a.useMemo((()=>({basename:p,navigator:u,static:d,future:o({v7_relativeSplatPath:!1},f)})),[p,f,u,d]);"string"==typeof i&&(i=(0,n.O8)(i));let{pathname:v="/",search:y="",hash:g="",state:w=null,key:b="default"}=i,E=a.useMemo((()=>{let e=(0,n.mc)(v,p);return null==e?null:{location:{pathname:e,search:y,hash:g,state:w,key:b},navigationType:l}}),[p,v,y,g,w,b,l]);return null==E?null:a.createElement(s.Provider,{value:m},a.createElement(c.Provider,{children:r,value:E}))}function _(e,t){void 0===t&&(t=[]);let r=[];return a.Children.forEach(e,((e,o)=>{if(!a.isValidElement(e))return;let i=[...t,o];if(e.type===a.Fragment)return void r.push.apply(r,_(e.props.children,i));e.type!==D&&(0,n.q4)(!1),e.props.index&&e.props.children&&(0,n.q4)(!1);let l={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(l.children=_(e.props.children,i)),r.push(l)})),r}function L(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:a.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}a.startTransition,new Promise((()=>{})),a.Component},280:e=>{e.exports=window.React},34:e=>{e.exports=window.ReactDOM},632:e=>{e.exports=window.wp.apiFetch},287:e=>{e.exports=window.wp.components},752:e=>{e.exports=window.wp.data},496:e=>{e.exports=window.wp.element},416:e=>{e.exports=window.wp.htmlEntities},396:e=>{e.exports=window.wp.i18n},628:e=>{e.exports=window.wp.primitives},204:e=>{e.exports=window.wp.url}},a={};function n(e){var t=a[e];if(void 0!==t)return t.exports;var o=a[e]={exports:{}};return r[e](o,o.exports,n),o.exports}n.m=r,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>e+".js",n.miniCssF=e=>e+".css",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="wpnakama:",n.l=(r,a,o,i)=>{if(e[r])e[r].push(a);else{var l,s;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){l=d;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",t+o),l.src=r),e[r]=[a];var h=(t,a)=>{l.onerror=l.onload=null,clearTimeout(f);var n=e[r];if(delete e[r],l.parentNode&&l.parentNode.removeChild(l),n&&n.forEach((e=>e(a))),t)return t(a)},f=setTimeout(h.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=h.bind(null,l.onerror),l.onload=h.bind(null,l.onload),s&&document.head.appendChild(l)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&!e;)e=r[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{if("undefined"!=typeof document){var e={656:0};n.f.miniCss=(t,r)=>{e[t]?r.push(e[t]):0!==e[t]&&{8:1}[t]&&r.push(e[t]=(e=>new Promise(((t,r)=>{var a=n.miniCssF(e),o=n.p+a;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),a=0;a<r.length;a++){var n=(i=r[a]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(n===e||n===t))return i}var o=document.getElementsByTagName("style");for(a=0;a<o.length;a++){var i;if((n=(i=o[a]).getAttribute("data-href"))===e||n===t)return i}})(a,o))return t();((e,t,r,a,n)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=r=>{if(o.onerror=o.onload=null,"load"===r.type)a();else{var i=r&&r.type,l=r&&r.target&&r.target.href||t,s=new Error("Loading CSS chunk "+e+" failed.\n("+i+": "+l+")");s.name="ChunkLoadError",s.code="CSS_CHUNK_LOAD_FAILED",s.type=i,s.request=l,o.parentNode&&o.parentNode.removeChild(o),n(s)}},o.href=t,document.head.appendChild(o)})(e,o,0,t,r)})))(t).then((()=>{e[t]=0}),(r=>{throw delete e[t],r})))}}})(),(()=>{var e={656:0};n.f.j=(t,r)=>{var a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{var o=new Promise(((r,n)=>a=e[t]=[r,n]));r.push(a[2]=o);var i=n.p+n.u(t),l=new Error;n.l(i,(r=>{if(n.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;l.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",l.name="ChunkLoadError",l.type=o,l.request=i,a[1](l)}}),"chunk-"+t,t)}};var t=(t,r)=>{var a,o,[i,l,s]=r,c=0;if(i.some((t=>0!==e[t]))){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);s&&s(n)}for(t&&t(r);c<i.length;c++)o=i[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=globalThis.webpackChunkwpnakama=globalThis.webpackChunkwpnakama||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{var e=n(280),t=n(496),r=n(104),a=n(287),o=n(912),i=n(284);const l=n.p+"images/wpnakama-logo.14fe02ca.png";function s({navLinks:t}){const r=(0,i.IT)(),n=(0,i.i6)(),s=new URLSearchParams(r.search),{page:c}=(0,o.O)();return(0,e.createElement)(a.__experimentalSurface,{style:{borderRadius:"8px"}},(0,e.createElement)(a.__experimentalNavigation,{activeItem:"wpnakama"===c?c+"_boards":c},(0,e.createElement)(a.__experimentalHStack,{className:"wpnakama-menu-wrap",justify:"space-between"},(0,e.createElement)("img",{src:l,className:"wpnakama-menu-logo__img"}),(0,e.createElement)(a.FlexItem,{className:"components-tab-panel"},(0,e.createElement)(a.__experimentalNavigationMenu,{className:"wpnakama-menu"},(0,e.createElement)(a.__experimentalHStack,null,t.map(((t,o)=>(0,e.createElement)(a.__experimentalNavigationItem,{className:"wpnakama-menu-item",variant:"link",item:"wpnakama_"+t.name,onClick:()=>function(e){const t="boards"===e?"wpnakama":"wpnakama_"+e;s.set("page",t),s.get("boardId")&&s.delete("boardId"),s.get("cardId")&&s.delete("cardId"),n(`${r.pathname}?${s}`)}(t.name),text:t.title})))))),(0,e.createElement)("div",{className:"wpnakama-autoSave"}))),(0,e.createElement)(a.__experimentalElevation,{value:1}))}var c=n(204);const u=window.wp.coreData,d=window.wp.notices;var h=n(244),f=n(752),p=n(396),m=n(34),v=n(512);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},y.apply(this,arguments)}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}function g(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,a]of t)if(a&&"RouteErrorResponse"===a.__type)r[e]=new v.sZ(a.status,a.statusText,a.data,!0===a.internal);else if(a&&"Error"===a.__type){if(a.__subType){let t=window[a.__subType];if("function"==typeof t)try{let n=new t(a.message);n.stack="",r[e]=n}catch(e){}}if(null==r[e]){let t=new Error(a.message);t.stack="",r[e]=t}}else r[e]=a;return r}const w=e.createContext({isTransitioning:!1}),b=e.createContext(new Map),E=e.startTransition,x=m.flushSync;function k(e){x?x(e):e()}e.useId;class S{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function R(e){let{routes:t,future:r,state:a}=e;return(0,i.oj)(t,void 0,a,r)}var D,P;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(D||(D={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(P||(P={}));const _=(L=(0,i._y)((0,e.createElement)(i.kX,{path:"/wp-admin/admin.php",element:(0,e.createElement)((function(){const{addEntities:a}=(0,f.useDispatch)(u.store),o=(0,c.getQueryArgs)(window.location.href);let i,l;switch(a([{kind:"WPNakama",name:"board",plural:"boards",baseURL:"/WPNakama/v1/boards",label:"Boards",key:"board_id"},{kind:"WPNakama",name:"phase",plural:"phases",baseURL:"/WPNakama/v1/phases",label:"Board Phases",key:"phase_id"},{kind:"WPNakama",name:"card",plural:"cards",baseURL:"/WPNakama/v1/cards",baseURLParams:{board_id:o.boardId?o.boardId:0},label:"Cards",key:"card_id"},{kind:"WPNakama",name:"searchpost",plural:"searchposts",baseURL:"/wp/v2/search",label:"Search Posts",key:"id"},{kind:"WPNakama",name:"task",plural:"tasks",baseURL:"/WPNakama/v1/tasks",baseURLParams:{board_id:o.boardId?o.boardId:0,card_id:o.cardId?o.cardId:0},label:"Tasks",key:"task_id"}]),o.page){case"wpnakama":case"wp-nakama_boards":i="Boards";break;default:i="Default"}return"Boards"===i&&(l=(0,t.lazy)((()=>Promise.all([n.e(480),n.e(8)]).then(n.bind(n,8))))),"Default"===i&&(l=(0,t.lazy)((()=>n.e(372).then(n.bind(n,372))))),(0,e.createElement)(h.G.Provider,{value:u.store},(0,e.createElement)("div",{className:"wrap"},(0,e.createElement)(s,{navLinks:[{name:"boards",title:"Boards",link:"wp-nakama_boards"}]}),(0,e.createElement)(h._.Provider,{value:d.store},(0,e.createElement)("div",{className:"wpnakama-page-wrap"},(0,e.createElement)(t.Suspense,{fallback:(0,e.createElement)(r.c,null)},(0,e.createElement)(l,null))))))}),null),errorElement:(0,e.createElement)((function(){const t=(0,i.y_)(),r=(0,i.IT)(),n=(0,i.i6)(),o=new URLSearchParams(r.search);return(0,e.createElement)(a.__experimentalVStack,{gap:8,align:"center",style:{padding:"40px"}},(0,e.createElement)(a.__experimentalHeading,{level:3},(0,p.__)("Something went wrong","wpnakama")),(0,e.createElement)("pre",{style:{color:"red"}},t.message),(0,e.createElement)(a.Button,{variant:"link",onClick:function(e){e.stopPropagation(),o.delete("boardId"),o.delete("cardId"),n(`${r.pathname}?${o}`)}},(0,p.__)("Back to WPNakama page","wpnakama")))}),null)})),C={basename:function(){let e,t=(0,c.getPath)(window.location.href),r=[];if((0,c.isValidPath)(t)){const e=(0,c.getFilename)(t);t=t.replace("wp-admin/"+e,""),r=(0,c.filterURLForDisplay)(t).split("/")}return 0!==r.length&&(e=r[0]),"/"+e}()},(0,v.gv)({basename:null==C?void 0:C.basename,future:y({},null==C?void 0:C.future,{v7_prependBasename:!0}),history:(0,v.iU)({window:null==C?void 0:C.window}),hydrationData:(null==C?void 0:C.hydrationData)||function(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=y({},t,{errors:g(t.errors)})),t}(),routes:L,mapRouteProperties:i.i0,window:null==C?void 0:C.window}).initialize());var L,C;(0,t.createRoot)(document.getElementById("wpnakama-app-admin")).render((0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.StrictMode,null,(0,e.createElement)((function(t){let{fallbackElement:r,router:a,future:n}=t,[o,l]=e.useState(a.state),[s,c]=e.useState(),[u,d]=e.useState({isTransitioning:!1}),[h,f]=e.useState(),[p,m]=e.useState(),[v,y]=e.useState(),g=e.useRef(new Map),{v7_startTransition:x}=n||{},D=e.useCallback((e=>{x?function(e){E?E(e):e()}(e):e()}),[x]),P=e.useCallback(((e,t)=>{let{deletedFetchers:r,unstable_flushSync:n,unstable_viewTransitionOpts:o}=t;r.forEach((e=>g.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)}));let i=null==a.window||"function"!=typeof a.window.document.startViewTransition;if(o&&!i){if(n){k((()=>{p&&(h&&h.resolve(),p.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})}));let t=a.window.document.startViewTransition((()=>{k((()=>l(e)))}));return t.finished.finally((()=>{k((()=>{f(void 0),m(void 0),c(void 0),d({isTransitioning:!1})}))})),void k((()=>m(t)))}p?(h&&h.resolve(),p.skipTransition(),y({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(c(e),d({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else n?k((()=>l(e))):D((()=>l(e)))}),[a.window,p,h,g,D]);e.useLayoutEffect((()=>a.subscribe(P)),[a,P]),e.useEffect((()=>{u.isTransitioning&&!u.flushSync&&f(new S)}),[u]),e.useEffect((()=>{if(h&&s&&a.window){let e=s,t=h.promise,r=a.window.document.startViewTransition((async()=>{D((()=>l(e))),await t}));r.finished.finally((()=>{f(void 0),m(void 0),c(void 0),d({isTransitioning:!1})})),m(r)}}),[D,s,h,a.window]),e.useEffect((()=>{h&&s&&o.location.key===s.location.key&&h.resolve()}),[h,p,o.location,s]),e.useEffect((()=>{!u.isTransitioning&&v&&(c(v.state),d({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))}),[u.isTransitioning,v]),e.useEffect((()=>{}),[]);let _=e.useMemo((()=>({createHref:a.createHref,encodeLocation:a.encodeLocation,go:e=>a.navigate(e),push:(e,t,r)=>a.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>a.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})})),[a]),L=a.basename||"/",C=e.useMemo((()=>({router:a,navigator:_,static:!1,basename:L})),[a,_,L]);return e.createElement(e.Fragment,null,e.createElement(i.Mh.Provider,{value:C},e.createElement(i.Cu.Provider,{value:o},e.createElement(b.Provider,{value:g.current},e.createElement(w.Provider,{value:u},e.createElement(i.E5,{basename:L,location:o.location,navigationType:o.historyAction,navigator:_,future:{v7_relativeSplatPath:a.future.v7_relativeSplatPath}},o.initialized||a.future.v7_partialHydration?e.createElement(R,{routes:a.routes,future:a.future,state:o}):r))))),null)}),{router:_}),(0,e.createElement)((function(){const t=(0,f.useSelect)((e=>e(d.store).getNotices()),[]).filter((({type:e})=>"snackbar"===e)),{removeNotice:r}=(0,f.useDispatch)(d.store);return(0,e.createElement)(a.SnackbarList,{className:"wpnakama-notice",notices:t,onRemove:r})}),null))))})()})();
     1(()=>{var e,t,r,n,o={6622:(e,t,r)=>{"use strict";r.d(t,{bML:()=>o,ZLN:()=>i,Qqg:()=>a,FnH:()=>s,fcq:()=>l,CTc:()=>c,C1y:()=>u,Srz:()=>d,D3D:()=>h,YJP:()=>p,vKP:()=>f,kUM:()=>m,USm:()=>g,TdU:()=>y,Mgv:()=>M,qUP:()=>L,STI:()=>w,oSV:()=>v,dsF:()=>x,YGH:()=>j,fCU:()=>N,C3E:()=>b,NTw:()=>C,uQc:()=>T,RYV:()=>D,XAi:()=>E,wUM:()=>k,b1v:()=>S,QGg:()=>I,uWN:()=>z,GYj:()=>O,c11:()=>P,WIv:()=>A,Zes:()=>Q,liv:()=>R,Nl1:()=>Y,Gg5:()=>U,ucK:()=>_,nys:()=>F,Rvf:()=>B,c2u:()=>G});var n=r(1609);const o=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M19.25 10C19.25 12.7289 17.85 15.25 16.5 15.25C15.15 15.25 13.75 12.7289 13.75 10C13.75 7.27106 15.15 4.75 16.5 4.75C17.85 4.75 19.25 7.27106 19.25 10Z"}),n.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M16.5 15.25C16.5 15.25 8 13.5 7 13.25C6 13 4.75 11.6893 4.75 10C4.75 8.31066 6 7 7 6.75C8 6.5 16.5 4.75 16.5 4.75"}),n.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M6.75 13.5V17.25C6.75 18.3546 7.64543 19.25 8.75 19.25H9.25C10.3546 19.25 11.25 18.3546 11.25 17.25V14.5"}))},i=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M17.25 13.75L12 19.25L6.75 13.75"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 18.25V4.75"}))},a=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M17.25 15.25V6.75H8.75"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M17 7L6.75 17.25"}))},s=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4.75 8L12 4.75L19.25 8L12 11.25L4.75 8Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4.75 16L12 19.25L19.25 16"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M19.25 8V16"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4.75 8V16"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 11.5V19"}))},l=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M6.75024 19.2502H17.2502C18.3548 19.2502 19.2502 18.3548 19.2502 17.2502V8.18322C19.2502 7.89772 19.1891 7.61553 19.071 7.35561L18.5332 6.17239C18.2086 5.45841 17.4967 5 16.7124 5H7.28807C6.50378 5 5.79188 5.45841 5.46734 6.1724L4.92951 7.35561C4.81137 7.61553 4.75024 7.89772 4.75024 8.18322V17.2502C4.75024 18.3548 5.64568 19.2502 6.75024 19.2502Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.5 7.75C9.5 8.99264 8.5 10.25 7 10.25C5.5 10.25 4.75 8.99264 4.75 7.75"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M19.25 7.75C19.25 8.99264 18.5 10.25 17 10.25C15.5 10.25 14.5 8.99264 14.5 7.75"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M14.5 7.75C14.5 8.99264 13.5 10.25 12 10.25C10.5 10.25 9.5 8.99264 9.5 7.75"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.74963 15.7493C9.74963 14.6447 10.6451 13.7493 11.7496 13.7493H12.2496C13.3542 13.7493 14.2496 14.6447 14.2496 15.7493V19.2493H9.74963V15.7493Z"}))},c=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4.75 8.75C4.75 7.64543 5.64543 6.75 6.75 6.75H17.25C18.3546 6.75 19.25 7.64543 19.25 8.75V17.25C19.25 18.3546 18.3546 19.25 17.25 19.25H6.75C5.64543 19.25 4.75 18.3546 4.75 17.25V8.75Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8 4.75V8.25"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M16 4.75V8.25"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7.75 10.75H16.25"}))},u=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4.75 12C4.75 7.99594 7.99594 4.75 12 4.75V4.75C16.0041 4.75 19.25 7.99594 19.25 12V12C19.25 16.0041 16.0041 19.25 12 19.25V19.25C7.99594 19.25 4.75 16.0041 4.75 12V12Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.75 12.75L10.1837 13.6744C10.5275 14.407 11.5536 14.4492 11.9564 13.7473L14.25 9.75"}))},d=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M5.75 12.8665L8.33995 16.4138C9.15171 17.5256 10.8179 17.504 11.6006 16.3715L18.25 6.75"}))},h=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15.25 10.75L12 14.25L8.75 10.75"}))},p=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M13.25 8.75L9.75 12L13.25 15.25"}))},f=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M10.75 8.75L14.25 12L10.75 15.25"}))},m=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4.75 12C4.75 7.99594 7.99594 4.75 12 4.75V4.75C16.0041 4.75 19.25 7.99594 19.25 12V12C19.25 16.0041 16.0041 19.25 12 19.25V19.25C7.99594 19.25 4.75 16.0041 4.75 12V12Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.75 9.75L14.25 14.25"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M14.25 9.75L9.75 14.25"}))},g=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M17.25 6.75L6.75 17.25"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M6.75 6.75L17.25 17.25"}))},y=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M6.5 15.25V15.25C5.5335 15.25 4.75 14.4665 4.75 13.5V6.75C4.75 5.64543 5.64543 4.75 6.75 4.75H13.5C14.4665 4.75 15.25 5.5335 15.25 6.5V6.5"}),n.createElement("rect",{width:10.5,height:10.5,x:8.75,y:8.75,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,rx:2}))},M=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{fill:"currentColor",d:"M13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z"}),n.createElement("path",{fill:"currentColor",d:"M13 8C13 8.55228 12.5523 9 12 9C11.4477 9 11 8.55228 11 8C11 7.44772 11.4477 7 12 7C12.5523 7 13 7.44772 13 8Z"}),n.createElement("path",{fill:"currentColor",d:"M13 16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16C11 15.4477 11.4477 15 12 15C12.5523 15 13 15.4477 13 16Z"}))},L=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4.75 19.25L9 18.25L18.2929 8.95711C18.6834 8.56658 18.6834 7.93342 18.2929 7.54289L16.4571 5.70711C16.0666 5.31658 15.4334 5.31658 15.0429 5.70711L5.75 15L4.75 19.25Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M19.25 19.25H13.75"}))},w=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8.75 4.75H15.25C17.4591 4.75 19.25 6.54086 19.25 8.75V15.25C19.25 17.4591 17.4591 19.25 15.25 19.25H8.75C6.54086 19.25 4.75 17.4591 4.75 15.25V8.75C4.75 6.54086 6.54086 4.75 8.75 4.75Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7.75 15.25C7.75 15.25 9 12.75 12 12.75C15 12.75 16.25 15.25 16.25 15.25"}),n.createElement("circle",{cx:14,cy:10,r:1,fill:"currentColor"}),n.createElement("circle",{cx:10,cy:10,r:1,fill:"currentColor"}))},x=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7.75 19.25H16.25C17.3546 19.25 18.25 18.3546 18.25 17.25V9L14 4.75H7.75C6.64543 4.75 5.75 5.64543 5.75 6.75V17.25C5.75 18.3546 6.64543 19.25 7.75 19.25Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M18 9.25H13.75V5"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.75 15.25H14.25"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.75 12.25H14.25"}))},v=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7.75 19.25H16.25C17.3546 19.25 18.25 18.3546 18.25 17.25V9L14 4.75H7.75C6.64543 4.75 5.75 5.64543 5.75 6.75V17.25C5.75 18.3546 6.64543 19.25 7.75 19.25Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M18 9.25H13.75V5"}))},j=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M19.25 4.75H4.75L9.31174 10.4522C9.59544 10.8068 9.75 11.2474 9.75 11.7016V18.25C9.75 18.8023 10.1977 19.25 10.75 19.25H13.25C13.8023 19.25 14.25 18.8023 14.25 18.25V11.7016C14.25 11.2474 14.4046 10.8068 14.6883 10.4522L19.25 4.75Z"}))},N=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("circle",{cx:12,cy:12,r:7.25,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15.25 12C15.25 16.5 13.2426 19.25 12 19.25C10.7574 19.25 8.75 16.5 8.75 12C8.75 7.5 10.7574 4.75 12 4.75C13.2426 4.75 15.25 7.5 15.25 12Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M5 12H12H19"}))},b=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M11.995 7.23319C10.5455 5.60999 8.12832 5.17335 6.31215 6.65972C4.49599 8.14609 4.2403 10.6312 5.66654 12.3892L11.995 18.25L18.3235 12.3892C19.7498 10.6312 19.5253 8.13046 17.6779 6.65972C15.8305 5.18899 13.4446 5.60999 11.995 7.23319Z",clipRule:"evenodd"}))},C=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("circle",{cx:12,cy:12,r:7.25,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}),n.createElement("circle",{cx:12,cy:12,r:3.25,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 17L9.5 14.5"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M17 17L14.5 14.5"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.5 9.5L7 7"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M14.5 9.5L17 7"}))},T=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 13V15"}),n.createElement("circle",{cx:12,cy:9,r:1,fill:"currentColor"}),n.createElement("circle",{cx:12,cy:12,r:7.25,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}))},D=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 13.25C17.3472 13.25 19.25 11.3472 19.25 9C19.25 6.65279 17.3472 4.75 15 4.75C12.6528 4.75 10.75 6.65279 10.75 9C10.75 9.31012 10.7832 9.61248 10.8463 9.90372L4.75 16V19.25H8L8.75 18.5V16.75H10.5L11.75 15.5V13.75H13.5L14.0963 13.1537C14.3875 13.2168 14.6899 13.25 15 13.25Z"}),n.createElement("path",{stroke:"currentColor",d:"M16.5 8C16.5 8.27614 16.2761 8.5 16 8.5C15.7239 8.5 15.5 8.27614 15.5 8C15.5 7.72386 15.7239 7.5 16 7.5C16.2761 7.5 16.5 7.72386 16.5 8Z"}))},k=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M5.75 11.75C5.75 11.1977 6.19772 10.75 6.75 10.75H17.25C17.8023 10.75 18.25 11.1977 18.25 11.75V17.25C18.25 18.3546 17.3546 19.25 16.25 19.25H7.75C6.64543 19.25 5.75 18.3546 5.75 17.25V11.75Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7.75 10.5V9.84343C7.75 8.61493 7.70093 7.29883 8.42416 6.30578C8.99862 5.51699 10.0568 4.75 12 4.75C14 4.75 15.25 6.25 15.25 6.25"}))},E=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M5.75 11.75C5.75 11.1977 6.19772 10.75 6.75 10.75H17.25C17.8023 10.75 18.25 11.1977 18.25 11.75V17.25C18.25 18.3546 17.3546 19.25 16.25 19.25H7.75C6.64543 19.25 5.75 18.3546 5.75 17.25V11.75Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7.75 10.5V10.3427C7.75 8.78147 7.65607 7.04125 8.74646 5.9239C9.36829 5.2867 10.3745 4.75 12 4.75C13.6255 4.75 14.6317 5.2867 15.2535 5.9239C16.3439 7.04125 16.25 8.78147 16.25 10.3427V10.5"}))},S=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 18.25C15.5 18.25 19.25 16.5 19.25 12C19.25 7.5 15.5 5.75 12 5.75C8.5 5.75 4.75 7.5 4.75 12C4.75 13.0298 4.94639 13.9156 5.29123 14.6693C5.50618 15.1392 5.62675 15.6573 5.53154 16.1651L5.26934 17.5635C5.13974 18.2547 5.74527 18.8603 6.43651 18.7307L9.64388 18.1293C9.896 18.082 10.1545 18.0861 10.4078 18.1263C10.935 18.2099 11.4704 18.25 12 18.25Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M9.5 12C9.5 12.2761 9.27614 12.5 9 12.5C8.72386 12.5 8.5 12.2761 8.5 12C8.5 11.7239 8.72386 11.5 9 11.5C9.27614 11.5 9.5 11.7239 9.5 12Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M12.5 12C12.5 12.2761 12.2761 12.5 12 12.5C11.7239 12.5 11.5 12.2761 11.5 12C11.5 11.7239 11.7239 11.5 12 11.5C12.2761 11.5 12.5 11.7239 12.5 12Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M15.5 12C15.5 12.2761 15.2761 12.5 15 12.5C14.7239 12.5 14.5 12.2761 14.5 12C14.5 11.7239 14.7239 11.5 15 11.5C15.2761 11.5 15.5 11.7239 15.5 12Z"}))},I=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M18.25 12.25L5.75 12.25"}))},z=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8.75 7.75L7.75 4.75H16.25L15.25 7.75V10C18.25 11 18.25 14.25 18.25 14.25H5.75C5.75 14.25 5.75 11 8.75 10V7.75Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 14.5V19.25"}))},O=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4.75 12C4.75 7.99594 7.99594 4.75 12 4.75V4.75C16.0041 4.75 19.25 7.99594 19.25 12V12C19.25 16.0041 16.0041 19.25 12 19.25V19.25C7.99594 19.25 4.75 16.0041 4.75 12V12Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 8.75003V15.25"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15.25 12L8.75 12"}))},P=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 5.75V18.25"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M18.25 12L5.75 12"}))},A=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M19.25 19.25L15.5 15.5M4.75 11C4.75 7.54822 7.54822 4.75 11 4.75C14.4518 4.75 17.25 7.54822 17.25 11C17.25 14.4518 14.4518 17.25 11 17.25C7.54822 17.25 4.75 14.4518 4.75 11Z"}))},Q=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M13.1191 5.61336C13.0508 5.11856 12.6279 4.75 12.1285 4.75H11.8715C11.3721 4.75 10.9492 5.11856 10.8809 5.61336L10.7938 6.24511C10.7382 6.64815 10.4403 6.96897 10.0622 7.11922C10.006 7.14156 9.95021 7.16484 9.89497 7.18905C9.52217 7.3524 9.08438 7.3384 8.75876 7.09419L8.45119 6.86351C8.05307 6.56492 7.49597 6.60451 7.14408 6.9564L6.95641 7.14408C6.60452 7.49597 6.56492 8.05306 6.86351 8.45118L7.09419 8.75876C7.33841 9.08437 7.3524 9.52216 7.18905 9.89497C7.16484 9.95021 7.14156 10.006 7.11922 10.0622C6.96897 10.4403 6.64815 10.7382 6.24511 10.7938L5.61336 10.8809C5.11856 10.9492 4.75 11.372 4.75 11.8715V12.1285C4.75 12.6279 5.11856 13.0508 5.61336 13.1191L6.24511 13.2062C6.64815 13.2618 6.96897 13.5597 7.11922 13.9378C7.14156 13.994 7.16484 14.0498 7.18905 14.105C7.3524 14.4778 7.3384 14.9156 7.09419 15.2412L6.86351 15.5488C6.56492 15.9469 6.60451 16.504 6.9564 16.8559L7.14408 17.0436C7.49597 17.3955 8.05306 17.4351 8.45118 17.1365L8.75876 16.9058C9.08437 16.6616 9.52216 16.6476 9.89496 16.811C9.95021 16.8352 10.006 16.8584 10.0622 16.8808C10.4403 17.031 10.7382 17.3519 10.7938 17.7549L10.8809 18.3866C10.9492 18.8814 11.3721 19.25 11.8715 19.25H12.1285C12.6279 19.25 13.0508 18.8814 13.1191 18.3866L13.2062 17.7549C13.2618 17.3519 13.5597 17.031 13.9378 16.8808C13.994 16.8584 14.0498 16.8352 14.105 16.8109C14.4778 16.6476 14.9156 16.6616 15.2412 16.9058L15.5488 17.1365C15.9469 17.4351 16.504 17.3955 16.8559 17.0436L17.0436 16.8559C17.3955 16.504 17.4351 15.9469 17.1365 15.5488L16.9058 15.2412C16.6616 14.9156 16.6476 14.4778 16.811 14.105C16.8352 14.0498 16.8584 13.994 16.8808 13.9378C17.031 13.5597 17.3519 13.2618 17.7549 13.2062L18.3866 13.1191C18.8814 13.0508 19.25 12.6279 19.25 12.1285V11.8715C19.25 11.3721 18.8814 10.9492 18.3866 10.8809L17.7549 10.7938C17.3519 10.7382 17.031 10.4403 16.8808 10.0622C16.8584 10.006 16.8352 9.95021 16.8109 9.89496C16.6476 9.52216 16.6616 9.08437 16.9058 8.75875L17.1365 8.4512C17.4351 8.05308 17.3955 7.49599 17.0436 7.1441L16.8559 6.95642C16.504 6.60453 15.9469 6.56494 15.5488 6.86353L15.2412 7.09419C14.9156 7.33841 14.4778 7.3524 14.105 7.18905C14.0498 7.16484 13.994 7.14156 13.9378 7.11922C13.5597 6.96897 13.2618 6.64815 13.2062 6.24511L13.1191 5.61336Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M13.25 12C13.25 12.6904 12.6904 13.25 12 13.25C11.3096 13.25 10.75 12.6904 10.75 12C10.75 11.3096 11.3096 10.75 12 10.75C12.6904 10.75 13.25 11.3096 13.25 12Z"}))},R=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.25 4.75H6.75C5.64543 4.75 4.75 5.64543 4.75 6.75V17.25C4.75 18.3546 5.64543 19.25 6.75 19.25H17.25C18.3546 19.25 19.25 18.3546 19.25 17.25V14.75"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M19.25 9.25V4.75H14.75"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M19 5L11.75 12.25"}))},Y=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 4.75V6.25"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M17.1266 6.87347L16.0659 7.93413"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M19.25 12L17.75 12"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M17.1266 17.1265L16.0659 16.0659"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 17.75V19.25"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7.9342 16.0659L6.87354 17.1265"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M6.25 12L4.75 12"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7.9342 7.93413L6.87354 6.87347"}))},U=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 4.75L13.75 10.25H19.25L14.75 13.75L16.25 19.25L12 15.75L7.75 19.25L9.25 13.75L4.75 10.25H10.25L12 4.75Z"}))},_=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M6.75 7.75L7.59115 17.4233C7.68102 18.4568 8.54622 19.25 9.58363 19.25H14.4164C15.4538 19.25 16.319 18.4568 16.4088 17.4233L17.25 7.75"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.75 7.5V6.75C9.75 5.64543 10.6454 4.75 11.75 4.75H12.25C13.3546 4.75 14.25 5.64543 14.25 6.75V7.5"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M5 7.75H19"}))},B=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("circle",{cx:12,cy:8,r:3.25,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12.25 19.25H6.94953C5.77004 19.25 4.88989 18.2103 5.49085 17.1954C6.36247 15.7234 8.23935 14 12.25 14"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M17 14.75V19.25"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M19.25 17L14.75 17"}))},F=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("circle",{cx:12,cy:8,r:3.25,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M6.8475 19.25H17.1525C18.2944 19.25 19.174 18.2681 18.6408 17.2584C17.8563 15.7731 16.068 14 12 14C7.93201 14 6.14367 15.7731 5.35924 17.2584C4.82597 18.2681 5.70558 19.25 6.8475 19.25Z"}))},G=function(e){return n.createElement("svg",Object.assign({width:24,height:24,fill:"none",viewBox:"0 0 24 24"},e),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M5.78168 19.25H13.2183C13.7828 19.25 14.227 18.7817 14.1145 18.2285C13.804 16.7012 12.7897 14 9.5 14C6.21031 14 5.19605 16.7012 4.88549 18.2285C4.773 18.7817 5.21718 19.25 5.78168 19.25Z"}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15.75 14C17.8288 14 18.6802 16.1479 19.0239 17.696C19.2095 18.532 18.5333 19.25 17.6769 19.25H16.75"}),n.createElement("circle",{cx:9.5,cy:7.5,r:2.75,stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}),n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M14.75 10.25C16.2688 10.25 17.25 9.01878 17.25 7.5C17.25 5.98122 16.2688 4.75 14.75 4.75"}))}},5588:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():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},n.apply(this,arguments)}var o;r.d(t,{Gh:()=>P,HS:()=>A,Oi:()=>s,Rr:()=>h,VV:()=>_,aE:()=>te,pX:()=>B,pb:()=>S,rc:()=>o,tH:()=>U,ue:()=>g,yD:()=>O,zR:()=>a}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(o||(o={}));const i="popstate";function a(e){return void 0===e&&(e={}),function(e,t,r,a){void 0===a&&(a={});let{window:l=document.defaultView,v5Compat:h=!1}=a,p=l.history,f=o.Pop,m=null,g=y();function y(){return(p.state||{idx:null}).idx}function M(){f=o.Pop;let e=y(),t=null==e?null:e-g;g=e,m&&m({action:f,location:w.location,delta:t})}function L(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,r="string"==typeof e?e:d(e);return r=r.replace(/ $/,"%20"),s(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==g&&(g=0,p.replaceState(n({},p.state,{idx:g}),""));let w={get action(){return f},get location(){return e(l,p)},listen(e){if(m)throw new Error("A history only accepts one active listener");return l.addEventListener(i,M),m=e,()=>{l.removeEventListener(i,M),m=null}},createHref:e=>t(l,e),createURL:L,encodeLocation(e){let t=L(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){f=o.Push;let n=u(w.location,e,t);r&&r(n,e),g=y()+1;let i=c(n,g),a=w.createHref(n);try{p.pushState(i,"",a)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(a)}h&&m&&m({action:f,location:w.location,delta:1})},replace:function(e,t){f=o.Replace;let n=u(w.location,e,t);r&&r(n,e),g=y();let i=c(n,g),a=w.createHref(n);p.replaceState(i,"",a),h&&m&&m({action:f,location:w.location,delta:0})},go:e=>p.go(e)};return w}((function(e,t){let{pathname:r,search:n,hash:o}=e.location;return u("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:d(t)}),null,e)}function s(e,t){if(!1===e||null==e)throw new Error(t)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,r,o){return void 0===r&&(r=null),n({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?h(t):t,{state:r,key:t&&t.key||o||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function h(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var p;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(p||(p={}));const f=new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,r,o){return void 0===r&&(r=[]),void 0===o&&(o={}),e.map(((e,i)=>{let a=[...r,String(i)],l="string"==typeof e.id?e.id:a.join("-");if(s(!0!==e.index||!e.children,"Cannot specify children on an index route"),s(!o[l],'Found a route id collision on id "'+l+"\".  Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let r=n({},e,t(e),{id:l});return o[l]=r,r}{let r=n({},e,t(e),{id:l,children:void 0});return o[l]=r,e.children&&(r.children=m(e.children,t,a,o)),r}}))}function g(e,t,r){return void 0===r&&(r="/"),y(e,t,r,!1)}function y(e,t,r,n){let o=S(("string"==typeof t?h(t):t).pathname||"/",r);if(null==o)return null;let i=M(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e<i.length;++e){let t=E(o);a=D(i[e],t,n)}return a}function M(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(s(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(n.length));let l=A([n,a.relativePath]),c=r.concat(a);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),M(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:T(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of L(e.path))o(e,t,r);else o(e,t)})),t}function L(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===n.length)return o?[i,""]:[i];let a=L(n.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const w=/^:[\w-]+$/,x=3,v=2,j=1,N=10,b=-2,C=e=>"*"===e;function T(e,t){let r=e.split("/"),n=r.length;return r.some(C)&&(n+=b),t&&(n+=v),r.filter((e=>!C(e))).reduce(((e,t)=>e+(w.test(t)?x:""===t?j:N)),n)}function D(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,o={},i="/",a=[];for(let e=0;e<n.length;++e){let s=n[e],l=e===n.length-1,c="/"===i?t:t.slice(i.length)||"/",u=k({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c),d=s.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=k({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),a.push({params:o,pathname:A([i,u.pathname]),pathnameBase:Q(A([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=A([i,u.pathnameBase]))}return a}function k(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),l("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:o}=t;if("*"===n){let e=s[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[r];return e[n]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function E(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function S(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function I(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function z(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function O(e,t){let r=z(e);return t?r.map(((e,t)=>t===r.length-1?e.pathname:e.pathnameBase)):r.map((e=>e.pathnameBase))}function P(e,t,r,o){let i;void 0===o&&(o=!1),"string"==typeof e?i=h(e):(i=n({},e),s(!i.pathname||!i.pathname.includes("?"),I("?","pathname","search",i)),s(!i.pathname||!i.pathname.includes("#"),I("#","pathname","hash",i)),s(!i.search||!i.search.includes("#"),I("#","search","hash",i)));let a,l=""===e||""===i.pathname,c=l?"/":i.pathname;if(null==c)a=r;else{let e=t.length-1;if(!o&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:o=""}="string"==typeof e?h(e):e,i=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:i,search:R(n),hash:Y(o)}}(i,a),d=c&&"/"!==c&&c.endsWith("/"),p=(l||"."===c)&&r.endsWith("/");return u.pathname.endsWith("/")||!d&&!p||(u.pathname+="/"),u}const A=e=>e.join("/").replace(/\/\/+/g,"/"),Q=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),R=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Y=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class U extends Error{}class _{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function B(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const F=["post","put","patch","delete"],G=new Set(F),V=["get",...F],W=new Set(V),J=new Set([301,302,303,307,308]),H=new Set([307,308]),Z={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},X={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},K=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,q=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ee="remix-router-transitions";function te(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,i=!r;let a;if(s(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;a=e=>({hasErrorBoundary:t(e)})}else a=q;let c,d,h,f={},M=m(e.routes,a,void 0,f),L=e.basename||"/",w=e.unstable_dataStrategy||ue,x=e.unstable_patchRoutesOnMiss,v=n({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),j=null,N=new Set,b=null,C=null,T=null,D=null!=e.hydrationData,k=g(M,e.history.location,L),E=null;if(null==k&&!x){let t=xe(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=we(M);k=r,E={[n.id]:t}}if(k&&x&&!e.hydrationData&&ut(k,M,e.history.location.pathname).active&&(k=null),k)if(k.some((e=>e.route.lazy)))d=!1;else if(k.some((e=>e.route.loader)))if(v.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null,n=e=>!e.route.loader||("function"!=typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id]);if(r){let e=k.findIndex((e=>void 0!==r[e.route.id]));d=k.slice(0,e+1).every(n)}else d=k.every(n)}else d=null!=e.hydrationData;else d=!0;else d=!1,k=[];let I,z={historyAction:e.history.action,location:e.history.location,matches:k,initialized:d,navigation:Z,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||E,fetchers:new Map,blockers:new Map},O=o.Pop,P=!1,A=!1,Q=new Map,R=null,Y=!1,U=!1,F=[],G=[],V=new Map,W=0,te=-1,ie=new Map,ae=new Set,fe=new Map,me=new Map,je=new Set,Se=new Map,Qe=new Map,Re=new Map,Ye=!1;function Ue(e,t){void 0===t&&(t={}),z=n({},z,e);let r=[],o=[];v.v7_fetcherPersist&&z.fetchers.forEach(((e,t)=>{"idle"===e.state&&(je.has(t)?o.push(t):r.push(t))})),[...N].forEach((e=>e(z,{deletedFetchers:o,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),v.v7_fetcherPersist&&(r.forEach((e=>z.fetchers.delete(e))),o.forEach((e=>Xe(e))))}function _e(t,r,i){var a,s;let l,{flushSync:u}=void 0===i?{}:i,d=null!=z.actionData&&null!=z.navigation.formMethod&&De(z.navigation.formMethod)&&"loading"===z.navigation.state&&!0!==(null==(a=t.state)?void 0:a._isRedirect);l=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:d?z.actionData:null;let h=r.loaderData?ye(z.loaderData,r.loaderData,r.matches||[],r.errors):z.loaderData,p=z.blockers;p.size>0&&(p=new Map(p),p.forEach(((e,t)=>p.set(t,X))));let f,m=!0===P||null!=z.navigation.formMethod&&De(z.navigation.formMethod)&&!0!==(null==(s=t.state)?void 0:s._isRedirect);if(c&&(M=c,c=void 0),Y||O===o.Pop||(O===o.Push?e.history.push(t,t.state):O===o.Replace&&e.history.replace(t,t.state)),O===o.Pop){let e=Q.get(z.location.pathname);e&&e.has(t.pathname)?f={currentLocation:z.location,nextLocation:t}:Q.has(t.pathname)&&(f={currentLocation:t,nextLocation:z.location})}else if(A){let e=Q.get(z.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),Q.set(z.location.pathname,e)),f={currentLocation:z.location,nextLocation:t}}Ue(n({},r,{actionData:l,loaderData:h,historyAction:O,location:t,initialized:!0,navigation:Z,revalidation:"idle",restoreScrollPosition:ct(t,r.matches||z.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:f,flushSync:!0===u}),O=o.Pop,P=!1,A=!1,Y=!1,U=!1,F=[],G=[]}async function Be(t,r,i){I&&I.abort(),I=null,O=t,Y=!0===(i&&i.startUninterruptedRevalidation),function(e,t){if(b&&T){let r=lt(e,t);b[r]=T()}}(z.location,z.matches),P=!0===(i&&i.preventScrollReset),A=!0===(i&&i.enableViewTransition);let a=c||M,s=i&&i.overrideNavigation,l=g(a,r,L),u=!0===(i&&i.flushSync),d=ut(l,a,r.pathname);if(d.active&&d.matches&&(l=d.matches),!l){let{error:e,notFoundMatches:t,route:n}=it(r.pathname);return void _e(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:u})}if(z.initialized&&!U&&(h=z.location,f=r,h.pathname===f.pathname&&h.search===f.search&&(""===h.hash?""!==f.hash:h.hash===f.hash||""!==f.hash))&&!(i&&i.submission&&De(i.submission.formMethod)))return void _e(r,{matches:l},{flushSync:u});var h,f;I=new AbortController;let m,y=pe(e.history,r,I.signal,i&&i.submission);if(i&&i.pendingError)m=[Le(l).route.id,{type:p.error,error:i.pendingError}];else if(i&&i.submission&&De(i.submission.formMethod)){let t=await async function(e,t,r,n,i,a){void 0===a&&(a={}),Je();let s,l=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,r);if(Ue({navigation:l},{flushSync:!0===a.flushSync}),i){let r=await dt(n,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let{boundaryId:e,error:n}=at(t.pathname,r);return{matches:r.partialMatches,pendingActionResult:[e,{type:p.error,error:n}]}}if(!r.matches){let{notFoundMatches:e,error:r,route:n}=it(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:p.error,error:r}]}}n=r.matches}let c=Ie(n,t);if(c.route.action||c.route.lazy){if(s=(await Ve("action",e,[c],n))[0],e.signal.aborted)return{shortCircuited:!0}}else s={type:p.error,error:xe(405,{method:e.method,pathname:t.pathname,routeId:c.route.id})};if(Ce(s)){let t;return t=a&&null!=a.replace?a.replace:he(s.response.headers.get("Location"),new URL(e.url),L)===z.location.pathname+z.location.search,await Ge(e,s,{submission:r,replace:t}),{shortCircuited:!0}}if(Ne(s))throw xe(400,{type:"defer-action"});if(be(s)){let e=Le(n,c.route.id);return!0!==(a&&a.replace)&&(O=o.Push),{matches:n,pendingActionResult:[e.route.id,s]}}return{matches:n,pendingActionResult:[c.route.id,s]}}(y,r,i.submission,l,d.active,{replace:i.replace,flushSync:u});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,n]=t.pendingActionResult;if(be(n)&&B(n.error)&&404===n.error.status)return I=null,void _e(r,{matches:t.matches,loaderData:{},errors:{[e]:n.error}})}l=t.matches||l,m=t.pendingActionResult,s=Oe(r,i.submission),u=!1,d.active=!1,y=pe(e.history,y.url,y.signal)}let{shortCircuited:w,matches:x,loaderData:j,errors:N}=await async function(t,r,o,i,a,s,l,u,d,h,p){let f=a||Oe(r,s),m=s||l||ze(f),g=!(Y||v.v7_partialHydration&&d);if(i){if(g){let e=Fe(p);Ue(n({navigation:f},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await dt(o,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{boundaryId:t,error:n}=at(r.pathname,e);return{matches:e.partialMatches,loaderData:{},errors:{[t]:n}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=it(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}o=e.matches}let y=c||M,[w,x]=oe(e.history,z,o,m,r,v.v7_partialHydration&&!0===d,v.v7_skipActionErrorRevalidation,U,F,G,je,fe,ae,y,L,p);if(st((e=>!(o&&o.some((t=>t.route.id===e)))||w&&w.some((t=>t.route.id===e)))),te=++W,0===w.length&&0===x.length){let e=et();return _e(r,n({matches:o,loaderData:{},errors:p&&be(p[1])?{[p[0]]:p[1].error}:null},Me(p),e?{fetchers:new Map(z.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(g){let e={};if(!i){e.navigation=f;let t=Fe(p);void 0!==t&&(e.actionData=t)}x.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=z.fetchers.get(e.key),r=Pe(void 0,t?t.data:void 0);z.fetchers.set(e.key,r)})),new Map(z.fetchers)}(x)),Ue(e,{flushSync:h})}x.forEach((e=>{V.has(e.key)&&Ke(e.key),e.controller&&V.set(e.key,e.controller)}));let j=()=>x.forEach((e=>Ke(e.key)));I&&I.signal.addEventListener("abort",j);let{loaderResults:N,fetcherResults:b}=await We(z.matches,o,w,x,t);if(t.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",j),x.forEach((e=>V.delete(e.key)));let C=ve([...N,...b]);if(C){if(C.idx>=w.length){let e=x[C.idx-w.length].key;ae.add(e)}return await Ge(t,C.result,{replace:u}),{shortCircuited:!0}}let{loaderData:T,errors:D}=ge(z,o,w,N,p,x,b,Se);Se.forEach(((e,t)=>{e.subscribe((r=>{(r||e.done)&&Se.delete(t)}))})),v.v7_partialHydration&&d&&z.errors&&Object.entries(z.errors).filter((e=>{let[t]=e;return!w.some((e=>e.route.id===t))})).forEach((e=>{let[t,r]=e;D=Object.assign(D||{},{[t]:r})}));let k=et(),E=tt(te),S=k||E||x.length>0;return n({matches:o,loaderData:T,errors:D},S?{fetchers:new Map(z.fetchers)}:{})}(y,r,l,d.active,s,i&&i.submission,i&&i.fetcherSubmission,i&&i.replace,i&&!0===i.initialHydration,u,m);w||(I=null,_e(r,n({matches:x||l},Me(m),{loaderData:j,errors:N})))}function Fe(e){return e&&!be(e[1])?{[e[0]]:e[1].data}:z.actionData?0===Object.keys(z.actionData).length?null:z.actionData:void 0}async function Ge(i,a,l){let{submission:c,fetcherSubmission:d,replace:h}=void 0===l?{}:l;a.response.headers.has("X-Remix-Revalidate")&&(U=!0);let p=a.response.headers.get("Location");s(p,"Expected a Location header on the redirect Response"),p=he(p,new URL(i.url),L);let f=u(z.location,p,{_isRedirect:!0});if(r){let r=!1;if(a.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(K.test(p)){const n=e.history.createURL(p);r=n.origin!==t.location.origin||null==S(n.pathname,L)}if(r)return void(h?t.location.replace(p):t.location.assign(p))}I=null;let m=!0===h?o.Replace:o.Push,{formMethod:g,formAction:y,formEncType:M}=z.navigation;!c&&!d&&g&&y&&M&&(c=ze(z.navigation));let w=c||d;if(H.has(a.response.status)&&w&&De(w.formMethod))await Be(m,f,{submission:n({},w,{formAction:p}),preventScrollReset:P});else{let e=Oe(f,c);await Be(m,f,{overrideNavigation:e,fetcherSubmission:d,preventScrollReset:P})}}async function Ve(e,t,r,o){try{let i=await async function(e,t,r,o,i,a,l,c){let u=o.reduce(((e,t)=>e.add(t.route.id)),new Set),d=new Set,h=await e({matches:i.map((e=>{let o=u.has(e.route.id);return n({},e,{shouldLoad:o,resolve:n=>(d.add(e.route.id),o?async function(e,t,r,n,o,i,a){let l,c,u=n=>{let o,s=new Promise(((e,t)=>o=t));c=()=>o(),t.signal.addEventListener("abort",c);let l,u=o=>"function"!=typeof n?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:a},...void 0!==o?[o]:[]);return l=i?i((e=>u(e))):(async()=>{try{return{type:"data",result:await u()}}catch(e){return{type:"error",result:e}}})(),Promise.race([l,s])};try{let i=r.route[e];if(r.route.lazy)if(i){let e,[t]=await Promise.all([u(i).catch((t=>{e=t})),ce(r.route,o,n)]);if(void 0!==e)throw e;l=t}else{if(await ce(r.route,o,n),i=r.route[e],!i){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw xe(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:p.data,result:void 0}}l=await u(i)}else{if(!i){let e=new URL(t.url);throw xe(404,{pathname:e.pathname+e.search})}l=await u(i)}s(void 0!==l.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:p.error,result:e}}finally{c&&t.signal.removeEventListener("abort",c)}return l}(t,r,e,a,l,n,c):Promise.resolve({type:p.data,result:void 0}))})})),request:r,params:i[0].params,context:c});return i.forEach((e=>s(d.has(e.route.id),'`match.resolve()` was not called for route id "'+e.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.'))),h.filter(((e,t)=>u.has(i[t].route.id)))}(w,e,t,r,o,f,a);return await Promise.all(i.map(((e,n)=>{if(function(e){return Te(e.result)&&J.has(e.result.status)}(e)){let i=e.result;return{type:p.redirect,response:de(i,t,r[n].route.id,o,L,v.v7_relativeSplatPath)}}return async function(e){let{result:t,type:r,status:n}=e;if(Te(t)){let e;try{let r=t.headers.get("Content-Type");e=r&&/\bapplication\/json\b/.test(r)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:p.error,error:e}}return r===p.error?{type:p.error,error:new _(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:p.data,data:e,statusCode:t.status,headers:t.headers}}return r===p.error?{type:p.error,error:t,statusCode:B(t)?t.status:n}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:p.deferred,deferredData:t,statusCode:null==(o=t.init)?void 0:o.status,headers:(null==(i=t.init)?void 0:i.headers)&&new Headers(t.init.headers)}:{type:p.data,data:t,statusCode:n};var o,i}(e)})))}catch(e){return r.map((()=>({type:p.error,error:e})))}}async function We(t,r,n,o,i){let[a,...s]=await Promise.all([n.length?Ve("loader",i,n,r):[],...o.map((t=>t.matches&&t.match&&t.controller?Ve("loader",pe(e.history,t.path,t.controller.signal),[t.match],t.matches).then((e=>e[0])):Promise.resolve({type:p.error,error:xe(404,{pathname:t.path})})))]);return await Promise.all([ke(t,n,a,a.map((()=>i.signal)),!1,z.loaderData),ke(t,o.map((e=>e.match)),s,o.map((e=>e.controller?e.controller.signal:null)),!0)]),{loaderResults:a,fetcherResults:s}}function Je(){U=!0,F.push(...st()),fe.forEach(((e,t)=>{V.has(t)&&(G.push(t),Ke(t))}))}function He(e,t,r){void 0===r&&(r={}),z.fetchers.set(e,t),Ue({fetchers:new Map(z.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Ze(e,t,r,n){void 0===n&&(n={});let o=Le(z.matches,t);Xe(e),Ue({errors:{[o.route.id]:r},fetchers:new Map(z.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function $e(e){return v.v7_fetcherPersist&&(me.set(e,(me.get(e)||0)+1),je.has(e)&&je.delete(e)),z.fetchers.get(e)||$}function Xe(e){let t=z.fetchers.get(e);!V.has(e)||t&&"loading"===t.state&&ie.has(e)||Ke(e),fe.delete(e),ie.delete(e),ae.delete(e),je.delete(e),z.fetchers.delete(e)}function Ke(e){let t=V.get(e);s(t,"Expected fetch controller: "+e),t.abort(),V.delete(e)}function qe(e){for(let t of e){let e=Ae($e(t).data);z.fetchers.set(t,e)}}function et(){let e=[],t=!1;for(let r of ae){let n=z.fetchers.get(r);s(n,"Expected fetcher: "+r),"loading"===n.state&&(ae.delete(r),e.push(r),t=!0)}return qe(e),t}function tt(e){let t=[];for(let[r,n]of ie)if(n<e){let e=z.fetchers.get(r);s(e,"Expected fetcher: "+r),"loading"===e.state&&(Ke(r),ie.delete(r),t.push(r))}return qe(t),t.length>0}function rt(e){z.blockers.delete(e),Qe.delete(e)}function nt(e,t){let r=z.blockers.get(e)||X;s("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(z.blockers);n.set(e,t),Ue({blockers:n})}function ot(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===Qe.size)return;Qe.size>1&&l(!1,"A router only supports one blocker at a time");let o=Array.from(Qe.entries()),[i,a]=o[o.length-1],s=z.blockers.get(i);return s&&"proceeding"===s.state?void 0:a({currentLocation:t,nextLocation:r,historyAction:n})?i:void 0}function it(e){let t=xe(404,{pathname:e}),r=c||M,{matches:n,route:o}=we(r);return st(),{notFoundMatches:n,route:o,error:t}}function at(e,t){return{boundaryId:Le(t.partialMatches).route.id,error:xe(400,{type:"route-discovery",pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function st(e){let t=[];return Se.forEach(((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),Se.delete(n))})),t}function lt(e,t){return C&&C(e,t.map((e=>function(e,t){let{route:r,pathname:n,params:o}=e;return{id:r.id,pathname:n,params:o,data:t[r.id],handle:r.handle}}(e,z.loaderData))))||e.key}function ct(e,t){if(b){let r=lt(e,t),n=b[r];if("number"==typeof n)return n}return null}function ut(e,t,r){if(x){if(!e)return{active:!0,matches:y(t,r,L,!0)||[]};{let n=e[e.length-1].route;if(n.path&&("*"===n.path||n.path.endsWith("/*")))return{active:!0,matches:y(t,r,L,!0)}}}return{active:!1,matches:null}}async function dt(e,t,r){let n=e,o=n.length>0?n[n.length-1].route:null;for(;;){let e=null==c,i=c||M;try{await se(x,t,n,i,f,a,Re,r)}catch(e){return{type:"error",error:e,partialMatches:n}}finally{e&&(M=[...M])}if(r.aborted)return{type:"aborted"};let s=g(i,t,L),l=!1;if(s){let e=s[s.length-1].route;if(e.index)return{type:"success",matches:s};if(e.path&&e.path.length>0){if("*"!==e.path)return{type:"success",matches:s};l=!0}}let u=y(i,t,L,!0);if(!u||n.map((e=>e.route.id)).join("-")===u.map((e=>e.route.id)).join("-"))return{type:"success",matches:l?s:null};if(n=u,o=n[n.length-1].route,"*"===o.path)return{type:"success",matches:n}}}return h={get basename(){return L},get future(){return v},get state(){return z},get routes(){return M},get window(){return t},initialize:function(){if(j=e.history.listen((t=>{let{action:r,location:n,delta:o}=t;if(Ye)return void(Ye=!1);l(0===Qe.size||null!=o,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=ot({currentLocation:z.location,nextLocation:n,historyAction:r});return i&&null!=o?(Ye=!0,e.history.go(-1*o),void nt(i,{state:"blocked",location:n,proceed(){nt(i,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(o)},reset(){let e=new Map(z.blockers);e.set(i,X),Ue({blockers:e})}})):Be(r,n)})),r){!function(e,t){try{let r=e.sessionStorage.getItem(ee);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(t,Q);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ee,JSON.stringify(r))}catch(e){l(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,Q);t.addEventListener("pagehide",e),R=()=>t.removeEventListener("pagehide",e)}return z.initialized||Be(o.Pop,z.location,{initialHydration:!0}),h},subscribe:function(e){return N.add(e),()=>N.delete(e)},enableScrollRestoration:function(e,t,r){if(b=e,T=t,C=r||null,!D&&z.navigation===Z){D=!0;let e=ct(z.location,z.matches);null!=e&&Ue({restoreScrollPosition:e})}return()=>{b=null,T=null,C=null}},navigate:async function t(r,i){if("number"==typeof r)return void e.history.go(r);let a=re(z.location,z.matches,L,v.v7_prependBasename,r,v.v7_relativeSplatPath,null==i?void 0:i.fromRouteId,null==i?void 0:i.relative),{path:s,submission:l,error:c}=ne(v.v7_normalizeFormMethod,!1,a,i),d=z.location,h=u(z.location,s,i&&i.state);h=n({},h,e.history.encodeLocation(h));let p=i&&null!=i.replace?i.replace:void 0,f=o.Push;!0===p?f=o.Replace:!1===p||null!=l&&De(l.formMethod)&&l.formAction===z.location.pathname+z.location.search&&(f=o.Replace);let m=i&&"preventScrollReset"in i?!0===i.preventScrollReset:void 0,g=!0===(i&&i.unstable_flushSync),y=ot({currentLocation:d,nextLocation:h,historyAction:f});if(!y)return await Be(f,h,{submission:l,pendingError:c,preventScrollReset:m,replace:i&&i.replace,enableViewTransition:i&&i.unstable_viewTransition,flushSync:g});nt(y,{state:"blocked",location:h,proceed(){nt(y,{state:"proceeding",proceed:void 0,reset:void 0,location:h}),t(r,i)},reset(){let e=new Map(z.blockers);e.set(y,X),Ue({blockers:e})}})},fetch:function(t,r,n,o){if(i)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");V.has(t)&&Ke(t);let a=!0===(o&&o.unstable_flushSync),l=c||M,u=re(z.location,z.matches,L,v.v7_prependBasename,n,v.v7_relativeSplatPath,r,null==o?void 0:o.relative),d=g(l,u,L),h=ut(d,l,u);if(h.active&&h.matches&&(d=h.matches),!d)return void Ze(t,r,xe(404,{pathname:u}),{flushSync:a});let{path:p,submission:f,error:m}=ne(v.v7_normalizeFormMethod,!0,u,o);if(m)return void Ze(t,r,m,{flushSync:a});let y=Ie(d,p);P=!0===(o&&o.preventScrollReset),f&&De(f.formMethod)?async function(t,r,n,o,i,a,l,u){function d(e){if(!e.route.action&&!e.route.lazy){let e=xe(405,{method:u.formMethod,pathname:n,routeId:r});return Ze(t,r,e,{flushSync:l}),!0}return!1}if(Je(),fe.delete(t),!a&&d(o))return;let h=z.fetchers.get(t);He(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(u,h),{flushSync:l});let p=new AbortController,f=pe(e.history,n,p.signal,u);if(a){let e=await dt(i,n,f.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:o}=at(n,e);return void Ze(t,r,o,{flushSync:l})}if(!e.matches)return void Ze(t,r,xe(404,{pathname:n}),{flushSync:l});if(d(o=Ie(i=e.matches,n)))return}V.set(t,p);let m=W,y=(await Ve("action",f,[o],i))[0];if(f.signal.aborted)return void(V.get(t)===p&&V.delete(t));if(v.v7_fetcherPersist&&je.has(t)){if(Ce(y)||be(y))return void He(t,Ae(void 0))}else{if(Ce(y))return V.delete(t),te>m?void He(t,Ae(void 0)):(ae.add(t),He(t,Pe(u)),Ge(f,y,{fetcherSubmission:u}));if(be(y))return void Ze(t,r,y.error)}if(Ne(y))throw xe(400,{type:"defer-action"});let w=z.navigation.location||z.location,x=pe(e.history,w,p.signal),j=c||M,N="idle"!==z.navigation.state?g(j,z.navigation.location,L):z.matches;s(N,"Didn't find any matches after fetcher action");let b=++W;ie.set(t,b);let C=Pe(u,y.data);z.fetchers.set(t,C);let[T,D]=oe(e.history,z,N,u,w,!1,v.v7_skipActionErrorRevalidation,U,F,G,je,fe,ae,j,L,[o.route.id,y]);D.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,r=z.fetchers.get(t),n=Pe(void 0,r?r.data:void 0);z.fetchers.set(t,n),V.has(t)&&Ke(t),e.controller&&V.set(t,e.controller)})),Ue({fetchers:new Map(z.fetchers)});let k=()=>D.forEach((e=>Ke(e.key)));p.signal.addEventListener("abort",k);let{loaderResults:E,fetcherResults:S}=await We(z.matches,N,T,D,x);if(p.signal.aborted)return;p.signal.removeEventListener("abort",k),ie.delete(t),V.delete(t),D.forEach((e=>V.delete(e.key)));let P=ve([...E,...S]);if(P){if(P.idx>=T.length){let e=D[P.idx-T.length].key;ae.add(e)}return Ge(x,P.result)}let{loaderData:A,errors:Q}=ge(z,z.matches,T,E,void 0,D,S,Se);if(z.fetchers.has(t)){let e=Ae(y.data);z.fetchers.set(t,e)}tt(b),"loading"===z.navigation.state&&b>te?(s(O,"Expected pending action"),I&&I.abort(),_e(z.navigation.location,{matches:N,loaderData:A,errors:Q,fetchers:new Map(z.fetchers)})):(Ue({errors:Q,loaderData:ye(z.loaderData,A,N,Q),fetchers:new Map(z.fetchers)}),U=!1)}(t,r,p,y,d,h.active,a,f):(fe.set(t,{routeId:r,path:p}),async function(t,r,n,o,i,a,l,c){let u=z.fetchers.get(t);He(t,Pe(c,u?u.data:void 0),{flushSync:l});let d=new AbortController,h=pe(e.history,n,d.signal);if(a){let e=await dt(i,n,h.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:o}=at(n,e);return void Ze(t,r,o,{flushSync:l})}if(!e.matches)return void Ze(t,r,xe(404,{pathname:n}),{flushSync:l});o=Ie(i=e.matches,n)}V.set(t,d);let p=W,f=(await Ve("loader",h,[o],i))[0];if(Ne(f)&&(f=await Ee(f,h.signal,!0)||f),V.get(t)===d&&V.delete(t),!h.signal.aborted){if(!je.has(t))return Ce(f)?te>p?void He(t,Ae(void 0)):(ae.add(t),void await Ge(h,f)):void(be(f)?Ze(t,r,f.error):(s(!Ne(f),"Unhandled fetcher deferred data"),He(t,Ae(f.data))));He(t,Ae(void 0))}}(t,r,p,y,d,h.active,a,f))},revalidate:function(){Je(),Ue({revalidation:"loading"}),"submitting"!==z.navigation.state&&("idle"!==z.navigation.state?Be(O||z.historyAction,z.navigation.location,{overrideNavigation:z.navigation}):Be(z.historyAction,z.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:$e,deleteFetcher:function(e){if(v.v7_fetcherPersist){let t=(me.get(e)||0)-1;t<=0?(me.delete(e),je.add(e)):me.set(e,t)}else Xe(e);Ue({fetchers:new Map(z.fetchers)})},dispose:function(){j&&j(),R&&R(),N.clear(),I&&I.abort(),z.fetchers.forEach(((e,t)=>Xe(t))),z.blockers.forEach(((e,t)=>rt(t)))},getBlocker:function(e,t){let r=z.blockers.get(e)||X;return Qe.get(e)!==t&&Qe.set(e,t),r},deleteBlocker:rt,patchRoutes:function(e,t){let r=null==c;le(e,t,c||M,f,a),r&&(M=[...M],Ue({}))},_internalFetchControllers:V,_internalActiveDeferreds:Se,_internalSetRoutes:function(e){f={},c=m(e,a,void 0,f)}},h}function re(e,t,r,n,o,i,a,s){let l,c;if(a){l=[];for(let e of t)if(l.push(e),e.route.id===a){c=e;break}}else l=t,c=t[t.length-1];let u=P(o||".",O(l,i),S(e.pathname,r)||e.pathname,"path"===s);return null==o&&(u.search=e.search,u.hash=e.hash),null!=o&&""!==o&&"."!==o||!c||!c.route.index||Se(u.search)||(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(u.pathname="/"===u.pathname?r:A([r,u.pathname])),d(u)}function ne(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&(o=n.formMethod,!W.has(o.toLowerCase())))return{path:r,error:xe(405,{method:n.formMethod})};var o;let i,a,l=()=>({path:r,error:xe(400,{type:"invalid-body"})}),c=n.formMethod||"get",u=e?c.toUpperCase():c.toLowerCase(),p=je(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!De(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"}),""):String(n.body);return{path:r,submission:{formMethod:u,formAction:p,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!De(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:p,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(s("function"==typeof FormData,"FormData is not available in this environment"),n.formData)i=fe(n.formData),a=n.formData;else if(n.body instanceof FormData)i=fe(n.body),a=n.body;else if(n.body instanceof URLSearchParams)i=n.body,a=me(i);else if(null==n.body)i=new URLSearchParams,a=new FormData;else try{i=new URLSearchParams(n.body),a=me(i)}catch(e){return l()}let f={formMethod:u,formAction:p,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:a,json:void 0,text:void 0};if(De(f.formMethod))return{path:r,submission:f};let m=h(r);return t&&m.search&&Se(m.search)&&i.append("index",""),m.search="?"+i,{path:d(m),submission:f}}function oe(e,t,r,o,i,a,s,l,c,u,d,h,p,f,m,y){let M=y?be(y[1])?y[1].error:y[1].data:void 0,L=e.createURL(t.location),w=e.createURL(i),x=y&&be(y[1])?y[0]:void 0,v=x?function(e,t){let r=e;if(t){let n=e.findIndex((e=>e.route.id===t));n>=0&&(r=e.slice(0,n))}return r}(r,x):r,j=y?y[1].statusCode:void 0,N=s&&j&&j>=400,b=v.filter(((e,r)=>{let{route:i}=e;if(i.lazy)return!0;if(null==i.loader)return!1;if(a)return!("function"==typeof i.loader&&!i.loader.hydrate&&(void 0!==t.loaderData[i.id]||t.errors&&void 0!==t.errors[i.id]));if(function(e,t,r){let n=!t||r.route.id!==t.route.id,o=void 0===e[r.route.id];return n||o}(t.loaderData,t.matches[r],e)||c.some((t=>t===e.route.id)))return!0;let s=t.matches[r],u=e;return ae(e,n({currentUrl:L,currentParams:s.params,nextUrl:w,nextParams:u.params},o,{actionResult:M,actionStatus:j,defaultShouldRevalidate:!N&&(l||L.pathname+L.search===w.pathname+w.search||L.search!==w.search||ie(s,u))}))})),C=[];return h.forEach(((e,i)=>{if(a||!r.some((t=>t.route.id===e.routeId))||d.has(i))return;let s=g(f,e.path,m);if(!s)return void C.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let c=t.fetchers.get(i),h=Ie(s,e.path),y=!1;y=!p.has(i)&&(!!u.includes(i)||(c&&"idle"!==c.state&&void 0===c.data?l:ae(h,n({currentUrl:L,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},o,{actionResult:M,actionStatus:j,defaultShouldRevalidate:!N&&l})))),y&&C.push({key:i,routeId:e.routeId,path:e.path,matches:s,match:h,controller:new AbortController})})),[b,C]}function ie(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ae(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function se(e,t,r,n,o,i,a,s){let l=[t,...r.map((e=>e.route.id))].join("-");try{let u=a.get(l);u||(u=e({path:t,matches:r,patch:(e,t)=>{s.aborted||le(e,t,n,o,i)}}),a.set(l,u)),u&&"object"==typeof(c=u)&&null!=c&&"then"in c&&await u}finally{a.delete(l)}var c}function le(e,t,r,n,o){if(e){var i;let r=n[e];s(r,"No route found to patch children into: routeId = "+e);let a=m(t,o,[e,"patch",String((null==(i=r.children)?void 0:i.length)||"0")],n);r.children?r.children.push(...a):r.children=a}else{let e=m(t,o,["patch",String(r.length||"0")],n);r.push(...e)}}async function ce(e,t,r){if(!e.lazy)return;let o=await e.lazy();if(!e.lazy)return;let i=r[e.id];s(i,"No route found in manifest");let a={};for(let e in o){let t=void 0!==i[e]&&"hasErrorBoundary"!==e;l(!t,'Route "'+i.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||f.has(e)||(a[e]=o[e])}Object.assign(i,a),Object.assign(i,n({},t(i),{lazy:void 0}))}function ue(e){return Promise.all(e.matches.map((e=>e.resolve())))}function de(e,t,r,n,o,i){let a=e.headers.get("Location");if(s(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!K.test(a)){let s=n.slice(0,n.findIndex((e=>e.route.id===r))+1);a=re(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function he(e,t,r){if(K.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n),i=null!=S(o.pathname,r);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function pe(e,t,r,n){let o=e.createURL(je(t)).toString(),i={signal:r};if(n&&De(n.formMethod)){let{formMethod:e,formEncType:t}=n;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(n.json)):"text/plain"===t?i.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?i.body=fe(n.formData):i.body=n.formData}return new Request(o,i)}function fe(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function me(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function ge(e,t,r,o,i,a,l,c){let{loaderData:u,errors:d}=function(e,t,r,n,o,i){let a,l={},c=null,u=!1,d={},h=n&&be(n[1])?n[1].error:void 0;return r.forEach(((r,n)=>{let p=t[n].route.id;if(s(!Ce(r),"Cannot handle redirect results in processLoaderData"),be(r)){let t=r.error;if(void 0!==h&&(t=h,h=void 0),c=c||{},i)c[p]=t;else{let r=Le(e,p);null==c[r.route.id]&&(c[r.route.id]=t)}l[p]=void 0,u||(u=!0,a=B(r.error)?r.error.status:500),r.headers&&(d[p]=r.headers)}else Ne(r)?(o.set(p,r.deferredData),l[p]=r.deferredData.data,null==r.statusCode||200===r.statusCode||u||(a=r.statusCode),r.headers&&(d[p]=r.headers)):(l[p]=r.data,r.statusCode&&200!==r.statusCode&&!u&&(a=r.statusCode),r.headers&&(d[p]=r.headers))})),void 0!==h&&n&&(c={[n[0]]:h},l[n[0]]=void 0),{loaderData:l,errors:c,statusCode:a||200,loaderHeaders:d}}(t,r,o,i,c,!1);for(let t=0;t<a.length;t++){let{key:r,match:o,controller:i}=a[t];s(void 0!==l&&void 0!==l[t],"Did not find corresponding fetcher result");let c=l[t];if(!i||!i.signal.aborted)if(be(c)){let t=Le(e.matches,null==o?void 0:o.route.id);d&&d[t.route.id]||(d=n({},d,{[t.route.id]:c.error})),e.fetchers.delete(r)}else if(Ce(c))s(!1,"Unhandled fetcher revalidation redirect");else if(Ne(c))s(!1,"Unhandled fetcher deferred data");else{let t=Ae(c.data);e.fetchers.set(r,t)}}return{loaderData:u,errors:d}}function ye(e,t,r,o){let i=n({},t);for(let n of r){let r=n.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(i[r]=t[r]):void 0!==e[r]&&n.route.loader&&(i[r]=e[r]),o&&o.hasOwnProperty(r))break}return i}function Me(e){return e?be(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Le(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function we(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function xe(e,t){let{pathname:r,routeId:n,method:o,type:i,message:a}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request","route-discovery"===i?l='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnMiss()` function threw the following error:\n'+a:o&&r&&n?l="You made a "+o+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===i?l="defer() is not supported in actions":"invalid-body"===i&&(l="Unable to encode submission body")):403===e?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(s="Not Found",l='No route matches URL "'+r+'"'):405===e&&(s="Method Not Allowed",o&&r&&n?l="You made a "+o.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new _(e||500,s,new Error(l),!0)}function ve(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(Ce(r))return{result:r,idx:t}}}function je(e){return d(n({},"string"==typeof e?h(e):e,{hash:""}))}function Ne(e){return e.type===p.deferred}function be(e){return e.type===p.error}function Ce(e){return(e&&e.type)===p.redirect}function Te(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function De(e){return G.has(e.toLowerCase())}async function ke(e,t,r,n,o,i){for(let a=0;a<r.length;a++){let l=r[a],c=t[a];if(!c)continue;let u=e.find((e=>e.route.id===c.route.id)),d=null!=u&&!ie(u,c)&&void 0!==(i&&i[c.route.id]);if(Ne(l)&&(o||d)){let e=n[a];s(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await Ee(l,e,o).then((e=>{e&&(r[a]=e||r[a])}))}}}async function Ee(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:p.data,data:e.deferredData.unwrappedData}}catch(e){return{type:p.error,error:e}}return{type:p.data,data:e.deferredData.data}}}function Se(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Ie(e,t){let r="string"==typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&Se(r||""))return e[e.length-1];let n=z(e);return n[n.length-1]}function ze(e){let{formMethod:t,formAction:r,formEncType:n,text:o,formData:i,json:a}=e;if(t&&r&&n)return null!=o?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}:void 0}function Oe(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Pe(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ae(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")},9e3:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(1609),o=r(9765);const i="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjU2IiBoZWlnaHQ9IjI1NiIgdmlld0JveD0iMCAwIDI1NiAyNTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxjaXJjbGUgY3g9IjEyOCIgY3k9IjEyOCIgcj0iMTI4IiBmaWxsPSIjRkZDNDNBIi8+CjxlbGxpcHNlIGN4PSIxMTAuMTM4IiBjeT0iMTIxLjgzMSIgcng9IjMuNTk4MzkiIHJ5PSI1LjY1NDYyIiBmaWxsPSIjM0MyMEFDIi8+CjxlbGxpcHNlIGN4PSIxNDQuMDY2IiBjeT0iMTIxLjgzMSIgcng9IjMuNTk4MzkiIHJ5PSI1LjY1NDYyIiBmaWxsPSIjM0MyMEFDIi8+CjxwYXRoIGQ9Ik0xMzMuMjYzIDE1Mi4wNTZDMTMxLjM0NyAxNTQuMDEgMTI4LjIxNiAxNTQuMDYgMTI2LjIzOCAxNTIuMTY5TDExNy4xOTMgMTQzLjUyQzExMy45NjIgMTQwLjQzMSAxMTYuMDk4IDEzNC45NzggMTIwLjU2OCAxMzQuOTA3TDEzOC4zNzcgMTM0LjYyMUMxNDIuODQ3IDEzNC41NDkgMTQ1LjE1NyAxMzkuOTMgMTQyLjAyNyAxNDMuMTIxTDEzMy4yNjMgMTUyLjA1NloiIGZpbGw9IiMzQzIwQUMiLz4KPHBhdGggZD0iTTk3Ljc1NDMgMTU4LjAwNEwxMDAuMzgyIDE2Ny4wNTFDMTAwLjYgMTY3LjgwMyAxMDAuODcyIDE2OC41MzkgMTAxLjE5NCAxNjkuMjUyTDEwMS4zNDkgMTY5LjU5NEMxMDIuNTQ0IDE3Mi4yMzkgMTA0LjQ2OSAxNzQuNDg4IDEwNi44OTcgMTc2LjA3N1YxNzYuMDc3QzEwOC44OCAxNzcuMzc0IDExMS4xMzcgMTc4LjE5MiAxMTMuNDkgMTc4LjQ2NkwxMTUuODcxIDE3OC43NDRDMTE3LjY1NyAxNzguOTUyIDExOS40NjYgMTc4LjcxMyAxMjEuMTM3IDE3OC4wNDlWMTc4LjA0OUMxMjQuMDA2IDE3Ni45MSAxMjYuMjU1IDE3NC42MDMgMTI3LjMyMiAxNzEuNzA2TDEyOS4xMDMgMTY2Ljg2N0MxMzAuMzA5IDE2My41OTEgMTMwLjYzNyAxNjAuMDU2IDEzMC4wNTQgMTU2LjYxNUwxMjguNzk2IDE0OS4xOTciIHN0cm9rZT0iIzIwMjZBQyIgc3Ryb2tlLXdpZHRoPSIyIi8+CjxwYXRoIGQ9Ik0xNjIuNTMyIDE1MS43MzRMMTYyLjE4NiAxNjEuMTQ5QzE2Mi4xNTcgMTYxLjkzMSAxNjIuMDczIDE2Mi43MTEgMTYxLjkzNCAxNjMuNDgxTDE2MS44NjcgMTYzLjg1MUMxNjEuMzUxIDE2Ni43MDcgMTYwLjAzMSAxNjkuMzU2IDE1OC4wNjMgMTcxLjQ4OVYxNzEuNDg5QzE1Ni40NTYgMTczLjIzIDE1NC40NjYgMTc0LjU3MiAxNTIuMjUgMTc1LjQxMUwxNTAuMDA4IDE3Ni4yNTlDMTQ4LjMyNiAxNzYuODk2IDE0Ni41MTMgMTc3LjEwNSAxNDQuNzMxIDE3Ni44NjhWMTc2Ljg2OEMxNDEuNjcxIDE3Ni40NjEgMTM4LjkyOCAxNzQuNzcxIDEzNy4xODkgMTcyLjIyTDEzNC4yODMgMTY3Ljk2QzEzMi4zMTYgMTY1LjA3NiAxMzEuMTM4IDE2MS43MjggMTMwLjg2NiAxNTguMjQ4TDEzMC4yOCAxNTAuNzQ2IiBzdHJva2U9IiMyMDI2QUMiIHN0cm9rZS13aWR0aD0iMiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTI1NiAxMjhDMjU2IDE5OC42OTIgMTk4LjY5MiAyNTYgMTI4IDI1NkM1Ny4zMDc2IDI1NiAwIDE5OC42OTIgMCAxMjhDMCA1Ny4zMDc2IDU3LjMwNzYgMCAxMjggMEMxOTguNjkyIDAgMjU2IDU3LjMwNzYgMjU2IDEyOFpNNzMuOTk5MSAyNy4wMjA5TDY5LjA5MTIgMzQuNDczOUM2OC44NjExIDM0LjgyMzQgNjguNjc1NyAzNS4yMDAzIDY4LjUzOTUgMzUuNTk1OUw2Mi43Mjk1IDUyLjQ2ODVDNjIuNTE3OCA1My4wODMyIDYyLjQyOCA1My43MzM0IDYyLjQ2NTIgNTQuMzgyNUw2My43Mjc5IDc2LjQxNTlDNjMuNzQ0NyA3Ni43MDg5IDYzLjczNTcgNzcuMDAyNyA2My43MDA5IDc3LjI5NDFMNjIuMzI4OSA4OC43OTkxQzYyLjE2MDUgOTAuMjExNCA2Mi41OTY0IDkxLjU0NjcgNjMuNDI0NSA5Mi41NTgxQzUzLjY0NDQgMTA3LjgxNyA0OS4yNTQzIDEyNi42MTIgNTIuNDI3MiAxNDUuOTEzQzUzLjcxNzUgMTUzLjc2MiA1Ni4xNjU5IDE2MS4xMzEgNTkuNTY4NyAxNjcuODc0TDU2Ljc4MTggMTcwLjE4NUM1Mi41MjE2IDE3My43MTcgNTEuOTM5OSAxODAuMDM3IDU1LjQ4MzkgMTg0LjI4N0w1Ni4yNjAyIDE4NS4yMThDNTguMzMwOSAxODcuNzAxIDU5LjA3MzEgMTkxLjAzMyA1OC4yNTI1IDE5NC4xNkw1Ny40ODA5IDE5Ny4xMDFDNTcuMTIzIDE5OC40NjUgNTcuMDU3NiAxOTkuODg5IDU3LjI4OSAyMDEuMjhMNTcuNTMwMiAyMDIuNzNDNTcuODQwMyAyMDQuNTk0IDU4LjY3MjYgMjA2LjMzMyA1OS45MzA1IDIwNy43NDRMNjIuODY3IDIxMS4wMzdMNjcuOTkzOCAyMTYuMDFDNzEuMjYyMSAyMTkuMTggNzYuNzE5NyAyMTcuODQ5IDc4LjE2MSAyMTMuNTNMNzguODQ2MyAyMTEuNDc2Qzc4Ljk0OTkgMjExLjE2NSA3OS4xNzczIDIxMC45MTIgNzkuNDc0NSAyMTAuNzc1QzgwLjEyMTMgMjEwLjQ3OCA4MC44ODI0IDIxMC44MTQgODEuMDk3MyAyMTEuNDkzTDgzLjYxNTggMjE5LjQ0NUM4My45NzI5IDIyMC41NzIgODQuNjUyNiAyMjEuNTcgODUuNTcwOSAyMjIuMzE1TDg4LjI2NDcgMjI0LjUwMUM5MC40Mzk2IDIyNi4yNjYgOTMuNzExNCAyMjUuMTc5IDk0LjM5NzggMjIyLjQ2NEM5NS4wNDE0IDIxOS45MTggOTcuOTk2NyAyMTguNzU4IDEwMC4yMDEgMjIwLjE4NkwxMDQuMDkzIDIyMi43MUMxMDYuNjMzIDIyNC4zNTYgMTA5Ljc1NyAyMjEuNjg1IDEwOC41MjQgMjE4LjkyTDEwOC4zMTQgMjE4LjQ0OEMxMDcuOTQ3IDIxNy42MjUgMTA4LjEwNSAyMTYuNjYzIDEwOC43MTUgMjE2QzEwOS41NTEgMjE1LjA5NCAxMTAuOTU5IDIxNS4wMjYgMTExLjg3OCAyMTUuODQ4TDEyMi40MjcgMjI1LjI4N0MxMjMuNjkxIDIyNi40MTggMTI1LjIyMyAyMjcuMjA5IDEyNi44NzggMjI3LjU4NUwxMzYuNTYxIDIyOS43ODZDMTM4LjIzMiAyMzAuMTY2IDEzOS45NDMgMjI5LjMyNyAxNDAuNjY2IDIyNy43NzNDMTQxLjY0OCAyMjUuNjU5IDE0NC4zMzcgMjI1LjAwMiAxNDYuMTg0IDIyNi40MjRMMTQ2LjgyIDIyNi45MTVDMTQ3LjM4OCAyMjcuMzUyIDE0OC4wNTYgMjI3LjYzOSAxNDguNzYzIDIyNy43NTFMMTUwLjEwOSAyMjcuOTY0QzE1Mi40MDEgMjI4LjMyNyAxNTQuNzIzIDIyNy41MiAxNTYuMjk2IDIyNS44MTRDMTU5LjAxNSAyMjIuODY2IDE2My42NTkgMjIyLjgyOSAxNjYuNDI1IDIyNS43MzNMMTY3Ljk3OSAyMjcuMzY1QzE2OC41NzkgMjI3Ljk5NSAxNjkuMzcgMjI4LjQxIDE3MC4yMjkgMjI4LjU0NkMxNzEuMzI2IDIyOC43MTkgMTcyLjQ0NiAyMjguNDI0IDE3My4zMTUgMjI3LjczM0wxODQuMDY1IDIxOS4xODJDMTg0LjcxOSAyMTguNjYzIDE4NS4zMDQgMjE4LjA2MyAxODUuODA5IDIxNy4zOThMMTk0LjE4IDIwNi4zNTdDMTk0LjY1NiAyMDUuNzMgMTk1LjMzIDIwNS4yODMgMTk2LjA5MyAyMDUuMDlDMTk3LjYzMiAyMDQuNyAxOTguNzEgMjAzLjMxNSAxOTguNzExIDIwMS43MjhMMTk4LjcxMiAxOTguNjM5QzE5OC43MTIgMTk2Ljc3IDIwMC42OTQgMTk1LjU2NyAyMDIuMzUzIDE5Ni40MjhDMjAzLjU0MyAxOTcuMDQ1IDIwNS4wMDggMTk2LjYxMSAyMDUuNjY5IDE5NS40NDRMMjA2LjMwNyAxOTQuMzE4QzIwNi41MzQgMTkzLjkxOCAyMDYuNjg3IDE5My40OCAyMDYuNzU5IDE5My4wMjZMMjA3LjIxOSAxOTAuMTE3QzIwNy40MjUgMTg4LjgxOSAyMDcuMjUyIDE4Ny40ODggMjA2LjcyIDE4Ni4yODZMMjAxLjkyMiAxNzUuNDI1QzIwMS4xNzcgMTczLjc0IDIwMi44NjQgMTcyLjAwNSAyMDQuNTY5IDE3Mi43MDJDMjA2LjA5NyAxNzMuMzI3IDIwNy42OTggMTcxLjk4IDIwNy4zNDQgMTcwLjM2OEwyMDUuODUyIDE2My41NzFDMjA1LjU5NiAxNjIuNDA1IDIwNC45OCAxNjEuMzQ4IDIwNC4wOTEgMTYwLjU1TDE5OS43OSAxNTYuNjkyTDE5OS43NTggMTU2LjY2M0MyMDMuMjg4IDE0NS41ODggMjA0LjMyNCAxMzMuNTMyIDIwMi4zMDkgMTIxLjI3M0MxOTkuOTggMTA3LjEwNiAxOTMuODc3IDk0LjUwMDcgMTg1LjE5OSA4NC4zMTg4QzE4NS45OTkgODMuNjA3IDE4Ni4zNzQgODIuNDc1MyAxODYuMDYyIDgxLjM2ODdMMTc4Ljg4MyA1NS45MDAxTDE2Ny4yMTYgMjYuMDI5NUMxNjYuODEzIDI0Ljk5OTEgMTY2LjA4IDI0LjEzMTIgMTY1LjEzMiAyMy41NjE4TDE2My4yMTggMjIuNDEyN0MxNjAuNDczIDIwLjc2NDggMTU2LjkwOCAyMi4wODUyIDE1NS44OTkgMjUuMTIzNUwxNDQuNDc2IDU5LjUxNzhDMTM1LjA5IDU3LjM0MDMgMTI1LjEzMyA1Ni45MjUzIDExNS4wMzcgNTguNTg0OUMxMTAuODI3IDU5LjI3NzEgMTA2Ljc1NCA2MC4zMDM1IDEwMi44NDMgNjEuNjMyNkwxMDQuMDY1IDUxLjM4ODJDMTA0LjIzOSA0OS45MjU0IDEwMy43NiA0OC40NjAxIDEwMi43NTQgNDcuMzgzNEw5MC4wNzc1IDMzLjgxMDFDODkuNzkzMSAzMy41MDU2IDg5LjU0NzkgMzMuMTY2NyA4OS4zNDc1IDMyLjgwMTNMODYuNjM0MSAyNy44NTI4Qzg1Ljg1NzggMjYuNDM3IDg0LjQ0NTQgMjUuNDgzMiA4Mi44NDIgMjUuMjkyTDc4Ljc2NzEgMjQuODA2Qzc2Ljg4NjYgMjQuNTgxNyA3NS4wNDA3IDI1LjQzOTIgNzMuOTk5MSAyNy4wMjA5WiIgZmlsbD0iIzNDMjBBQyIvPgo8L3N2Zz4K";var a=r(6427);function s({message:e=""}){return(0,n.createElement)("div",{className:"flex items-center justify-center flex-col h-[320px]"},(0,n.createElement)("div",{className:"flex items-center justify-center w-full relative"},(0,n.createElement)(a.Spinner,{style:{width:"80px",height:"80px",position:"absolute",left:"50%",top:"50%",transform:"translateY(-50%) translateX(-50%)",margin:"0"}}),(0,n.createElement)("img",{src:i,className:"w-[72px] h-[72px]"})),(0,o.A)(e)&&(0,n.createElement)("div",{className:"p-2 mx-auto text-center w-[400px]"},(0,n.createElement)("div",{className:"font-medium text-surface text-sm"},e)))}},6366:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(3832);function o(){let e,t=(0,n.getPath)(window.location.href),r=((0,n.getAuthority)(window.location.href),(0,n.getProtocol)(window.location.href),[]);if((0,n.isValidPath)(t)){const e=(0,n.getFilename)(t);t=t.replace("wp-admin/"+e,""),r=(0,n.filterURLForDisplay)(t).split("/")}return 0!==r.length&&(e=r[0]),{subfolder:"/"+e}}},2498:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(5727),o=r(5216),i=r(6062),a=r(8926),s=r(9739),l=r(2642);function c(e){return(0,l.a)(e).getFullYear()}function u(e){return(0,l.a)(e).getMonth()}function d(e){return(0,l.a)(e).getDate()}function h(){return{sqlDateFormat:p,displayDateFormat:f,isDeadLinePassed:m,areDatesEqual:g,isSecondBigThanFirst:y}}function p(e){let t=Number((0,n.GP)(e,"dd")),r=Number((0,n.GP)(e,"MM"));return`${Number((0,n.GP)(e,"yyyy"))}-${r}-${t} ${(0,o.q)(new Date)}:${(0,i.O)(new Date)}:${(0,a.S)(new Date)}`}function f(e){return Number((0,n.GP)(e,"dd")),Number((0,n.GP)(e,"MM")),(0,n.GP)(e,"MMMM"),Number((0,n.GP)(e,"yyyy")),(0,n.GP)(e,"d MMMM yyyy")}function m(e){let t=new Date((0,s.R)()),r=c(t),n=u(t),o=d(t),i=c(e),a=u(e),l=d(e);if(i<r)return!0;if(i===r){if(a<n)return!0;if(a===n&&l<o)return!0}return!1}function g(e,t){let r=Number(c(e)),n=Number(u(e)),o=Number(d(e)),i=Number(c(t)),a=Number(u(t)),s=Number(d(t));return r===i&&n===a&&o===s}function y(e,t){let r=Number(c(e)),n=Number(u(e)),o=Number(d(e)),i=Number(c(t)),a=Number(u(t)),s=Number(d(t));if(r<i)return!0;if(r===i){if(n<a)return!0;if(n===a&&o<=s)return!0}return!1}},6703:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(3832),o=r(7767),i=r(6366);function a(){const e=(0,o.zy)(),t=(0,o.Zp)(),{subfolder:r}=(0,i.A)(),a=new URLSearchParams(e.search);return{goToPage:(t,n={})=>{const o="page",i=null!=t?t:a.get(o);[...a.keys()].filter((e=>"page"!==e)).map((e=>a.delete(e))),Object.keys(n).length&&Object.keys(n).map((e=>a.set(e,n[e]))),a.set(o,i),r.length>1?window.location.href=`${r}/${e.pathname.replace("/","")}?${a}`:window.location.href=`${e.pathname}?${a}`},goToBoardPage:r=>{[...a.keys()].filter((e=>"page"!==e&&"boardId"!==e)).map((e=>a.delete(e))),a.set("boardId",r),t(`${e.pathname}?${a}`)},goToTaskPage:r=>{[...a.keys()].filter((e=>"page"!==e&&"taskId"!==e)).map((e=>a.delete(e))),a.set("taskId",r),t(`${e.pathname}?${a}`)},goToBoardsPage:()=>{[...a.keys()].filter((e=>"page"!==e)).map((e=>a.delete(e))),t(`${e.pathname}?${a}`)},goToPostEditPage:e=>{[...a.keys()].map((e=>a.delete(e))),a.set("post",e),a.set("action","edit");const t=(0,n.getPath)(window.location.href),r=(0,n.getFilename)(t);let o=t.replace(r,"");return o+="post.php",`/${o}?${a}`}}}},6744:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(6087),o=r(9730);function i(){const[e,t]=(0,n.useState)({});return(0,n.useEffect)((()=>{(async function(){let e=await(0,o.V0)("/WPNakama/v1/license");return e=e?await e.json():null,403===e?.code?{status:"not found"}:e})().then((e=>{t(e)}))}),[]),{license:e,setLicense:t}}},2506:(e,t,r)=>{"use strict";r.d(t,{S:()=>i});var n=r(6087),o=r(3832);function i(){return(0,n.useRef)((0,o.getQueryArgs)(window.location.href)).current}},9730:(e,t,r)=>{"use strict";r.d(t,{ZR:()=>c,wM:()=>l,kG:()=>u,V0:()=>a,Qt:()=>s});const n=window.wp.apiFetch;var o=r.n(n),i=r(3832);async function a(e,t){return await o()({path:(0,i.addQueryArgs)(e,t),method:"GET",parse:!1}).then((e=>e)).catch((e=>e))}async function s(e,t,r){return await o()({path:t?`${e}/${t}`:`${e}`,method:"PUT",data:r}).then((e=>e)).catch((e=>e))}async function l(e,t){return await o()({path:(0,i.addQueryArgs)(e,t),method:"DELETE",pasrse:!1}).then((e=>e)).catch((e=>e))}async function c(e,t){return await o()({path:`${e}/${t}`,method:"POST"}).then((e=>e)).catch((e=>e))}async function u(e,t){return await o()({path:`${e}/${t}`,method:"DELETE"}).then((e=>e)).catch((e=>e))}o().use(o().createNonceMiddleware(wpNakamaApiAuth.nonce))},9523:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});const n=(0,r(6087).createContext)(null)},4744:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,r,l){(l=l||{}).arrayMerge=l.arrayMerge||o,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=n;var c=Array.isArray(r);return c===Array.isArray(e)?c?l.arrayMerge(e,r,l):function(e,t,r){var o={};return r.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=n(e[t],r)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&r.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return s;var r=t.customMerge(e);return"function"==typeof r?r:s}(i,r)(e[i],t[i],r):o[i]=n(t[i],r))})),o}(e,r,l):n(r,l)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return s(e,r,t)}),{})};var l=s;e.exports=l},4687:(e,t,r)=>{var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Function]",s="[object GeneratorFunction]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,d="object"==typeof self&&self&&self.Object===Object&&self,h=u||d||Function("return this")();function p(e,t){return!(!e||!e.length)&&function(e,t){if(t!=t)return function(e,t){for(var r=e.length,n=-1;++n<r;)if(t(e[n],n,e))return n;return-1}(e,g);for(var r=-1,n=e.length;++r<n;)if(e[r]===t)return r;return-1}(e,t)>-1}function f(e,t){for(var r=-1,n=e?e.length:0,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function m(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function g(e){return e!=e}function y(e,t){return e.has(t)}function M(e,t){return function(r){return e(t(r))}}var L,w=Array.prototype,x=Function.prototype,v=Object.prototype,j=h["__core-js_shared__"],N=(L=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"",b=x.toString,C=v.hasOwnProperty,T=v.toString,D=RegExp("^"+b.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=h.Symbol,E=M(Object.getPrototypeOf,Object),S=v.propertyIsEnumerable,I=w.splice,z=k?k.isConcatSpreadable:void 0,O=Object.getOwnPropertySymbols,P=Math.max,A=V(h,"Map"),Q=V(Object,"create");function R(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Y(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function U(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function _(e){var t=-1,r=e?e.length:0;for(this.__data__=new U;++t<r;)this.add(e[t])}function B(e,t){for(var r,n,o=e.length;o--;)if((r=e[o][0])===(n=t)||r!=r&&n!=n)return o;return-1}function F(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=H),o||(o=[]);++i<a;){var s=e[i];t>0&&r(s)?t>1?F(s,t-1,r,n,o):m(o,s):n||(o[o.length]=s)}return o}function G(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function V(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!te(e)||N&&N in e)return!1;var t=ee(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?D:l;return t.test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(r)?r:void 0}R.prototype.clear=function(){this.__data__=Q?Q(null):{}},R.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},R.prototype.get=function(e){var t=this.__data__;if(Q){var r=t[e];return r===n?void 0:r}return C.call(t,e)?t[e]:void 0},R.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:C.call(t,e)},R.prototype.set=function(e,t){return this.__data__[e]=Q&&void 0===t?n:t,this},Y.prototype.clear=function(){this.__data__=[]},Y.prototype.delete=function(e){var t=this.__data__,r=B(t,e);return!(r<0||(r==t.length-1?t.pop():I.call(t,r,1),0))},Y.prototype.get=function(e){var t=this.__data__,r=B(t,e);return r<0?void 0:t[r][1]},Y.prototype.has=function(e){return B(this.__data__,e)>-1},Y.prototype.set=function(e,t){var r=this.__data__,n=B(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},U.prototype.clear=function(){this.__data__={hash:new R,map:new(A||Y),string:new R}},U.prototype.delete=function(e){return G(this,e).delete(e)},U.prototype.get=function(e){return G(this,e).get(e)},U.prototype.has=function(e){return G(this,e).has(e)},U.prototype.set=function(e,t){return G(this,e).set(e,t),this},_.prototype.add=_.prototype.push=function(e){return this.__data__.set(e,n),this},_.prototype.has=function(e){return this.__data__.has(e)};var W=O?M(O,Object):se,J=O?function(e){for(var t=[];e;)m(t,W(e)),e=E(e);return t}:se;function H(e){return K(e)||X(e)||!!(z&&e&&e[z])}function Z(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||c.test(e))&&e>-1&&e%1==0&&e<t}function $(e){if("string"==typeof e||function(e){return"symbol"==typeof e||re(e)&&"[object Symbol]"==T.call(e)}(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function X(e){return function(e){return re(e)&&q(e)}(e)&&C.call(e,"callee")&&(!S.call(e,"callee")||T.call(e)==i)}var K=Array.isArray;function q(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!ee(e)}function ee(e){var t=te(e)?T.call(e):"";return t==a||t==s}function te(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function re(e){return!!e&&"object"==typeof e}function ne(e){return q(e)?function(e,t){var r=K(e)||X(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,o=!!n;for(var i in e)!t&&!C.call(e,i)||o&&("length"==i||Z(i,n))||r.push(i);return r}(e,!0):function(e){if(!te(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t,r,n=(r=(t=e)&&t.constructor,t===("function"==typeof r&&r.prototype||v)),o=[];for(var i in e)("constructor"!=i||!n&&C.call(e,i))&&o.push(i);return o}(e)}var oe,ie,ae=(oe=function(e,t){return null==e?{}:(t=f(F(t,1),$),function(e,t){return function(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var a=t[n],s=e[a];r(0,a)&&(i[a]=s)}return i}(e=Object(e),t,(function(t,r){return r in e}))}(e,function(e,t,r,n){var o=-1,i=p,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;t.length>=200&&(i=y,a=!1,t=new _(t));e:for(;++o<s;){var u=e[o],d=u;if(u=0!==u?u:0,a&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else i(t,d,n)||l.push(u)}return l}(function(e){return function(e,t,r){var n=t(e);return K(e)?n:m(n,r(e))}(e,ne,J)}(e),t)))},ie=P(void 0===ie?oe.length-1:ie,0),function(){for(var e=arguments,t=-1,r=P(e.length-ie,0),n=Array(r);++t<r;)n[t]=e[ie+t];t=-1;for(var o=Array(ie+1);++t<ie;)o[t]=e[t];return o[ie]=n,function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(oe,this,o)});function se(){return[]}e.exports=ae},7767:(e,t,r)=>{"use strict";r.d(t,{Eu:()=>D,Ix:()=>T,Rq:()=>s,Zp:()=>m,ph:()=>g,qh:()=>C,r5:()=>N,sp:()=>a,wE:()=>k,zy:()=>p});var n=r(1609),o=r(5588);function i(){return i=Object.assign?Object.assign.bind():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},i.apply(this,arguments)}const a=n.createContext(null),s=n.createContext(null),l=n.createContext(null),c=n.createContext(null),u=n.createContext({outlet:null,matches:[],isDataRoute:!1}),d=n.createContext(null);function h(){return null!=n.useContext(c)}function p(){return h()||(0,o.Oi)(!1),n.useContext(c).location}function f(e){n.useContext(l).static||n.useLayoutEffect(e)}function m(){let{isDataRoute:e}=n.useContext(u);return e?function(){let{router:e}=function(){let e=n.useContext(a);return e||(0,o.Oi)(!1),e}(x.UseNavigateStable),t=j(v.UseNavigateStable),r=n.useRef(!1);return f((()=>{r.current=!0})),n.useCallback((function(n,o){void 0===o&&(o={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,i({fromRouteId:t},o)))}),[e,t])}():function(){h()||(0,o.Oi)(!1);let e=n.useContext(a),{basename:t,future:r,navigator:i}=n.useContext(l),{matches:s}=n.useContext(u),{pathname:c}=p(),d=JSON.stringify((0,o.yD)(s,r.v7_relativeSplatPath)),m=n.useRef(!1);return f((()=>{m.current=!0})),n.useCallback((function(r,n){if(void 0===n&&(n={}),!m.current)return;if("number"==typeof r)return void i.go(r);let a=(0,o.Gh)(r,JSON.parse(d),c,"path"===n.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:(0,o.HS)([t,a.pathname])),(n.replace?i.replace:i.push)(a,n.state,n)}),[t,i,d,c,e])}()}function g(e,t,r,a){h()||(0,o.Oi)(!1);let{navigator:s}=n.useContext(l),{matches:d}=n.useContext(u),f=d[d.length-1],m=f?f.params:{},g=(f&&f.pathname,f?f.pathnameBase:"/");f&&f.route;let y,x=p();if(t){var v;let e="string"==typeof t?(0,o.Rr)(t):t;"/"===g||(null==(v=e.pathname)?void 0:v.startsWith(g))||(0,o.Oi)(!1),y=e}else y=x;let j=y.pathname||"/",N=j;if("/"!==g){let e=g.replace(/^\//,"").split("/");N="/"+j.replace(/^\//,"").split("/").slice(e.length).join("/")}let C=(0,o.ue)(e,{pathname:N}),T=function(e,t,r,i){var a;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===i&&(i=null),null==e){var s;if(null==(s=r)||!s.errors)return null;e=r.matches}let l=e,c=null==(a=r)?void 0:a.errors;if(null!=c){let e=l.findIndex((e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id])));e>=0||(0,o.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,d=-1;if(r&&i&&i.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,o=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||o){u=!0,l=d>=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight(((e,o,i)=>{let a,s=!1,h=null,p=null;var f;r&&(a=c&&o.route.id?c[o.route.id]:void 0,h=o.route.errorElement||M,u&&(d<0&&0===i?(b[f="route-fallback"]||(b[f]=!0),s=!0,p=null):d===i&&(s=!0,p=o.route.hydrateFallbackElement||null)));let m=t.concat(l.slice(0,i+1)),g=()=>{let t;return t=a?h:s?p:o.route.Component?n.createElement(o.route.Component,null):o.route.element?o.route.element:e,n.createElement(w,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?n.createElement(L,{location:r.location,revalidation:r.revalidation,component:h,error:a,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}(C&&C.map((e=>Object.assign({},e,{params:Object.assign({},m,e.params),pathname:(0,o.HS)([g,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,o.HS)([g,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),d,r,a);return t&&T?n.createElement(c.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:o.rc.Pop}},T):T}function y(){let e=N(),t=(0,o.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),r?n.createElement("pre",{style:i},r):null,null)}const M=n.createElement(y,null);class L extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?n.createElement(u.Provider,{value:this.props.routeContext},n.createElement(d.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function w(e){let{routeContext:t,match:r,children:o}=e,i=n.useContext(a);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),n.createElement(u.Provider,{value:t},o)}var x=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(x||{}),v=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(v||{});function j(e){let t=function(){let e=n.useContext(u);return e||(0,o.Oi)(!1),e}(),r=t.matches[t.matches.length-1];return r.route.id||(0,o.Oi)(!1),r.route.id}function N(){var e;let t=n.useContext(d),r=function(){let e=n.useContext(s);return e||(0,o.Oi)(!1),e}(v.UseRouteError),i=j(v.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[i]}const b={};function C(e){(0,o.Oi)(!1)}function T(e){let{basename:t="/",children:r=null,location:a,navigationType:s=o.rc.Pop,navigator:u,static:d=!1,future:p}=e;h()&&(0,o.Oi)(!1);let f=t.replace(/^\/*/,"/"),m=n.useMemo((()=>({basename:f,navigator:u,static:d,future:i({v7_relativeSplatPath:!1},p)})),[f,p,u,d]);"string"==typeof a&&(a=(0,o.Rr)(a));let{pathname:g="/",search:y="",hash:M="",state:L=null,key:w="default"}=a,x=n.useMemo((()=>{let e=(0,o.pb)(g,f);return null==e?null:{location:{pathname:e,search:y,hash:M,state:L,key:w},navigationType:s}}),[f,g,y,M,L,w,s]);return null==x?null:n.createElement(l.Provider,{value:m},n.createElement(c.Provider,{children:r,value:x}))}function D(e,t){void 0===t&&(t=[]);let r=[];return n.Children.forEach(e,((e,i)=>{if(!n.isValidElement(e))return;let a=[...t,i];if(e.type===n.Fragment)return void r.push.apply(r,D(e.props.children,a));e.type!==C&&(0,o.Oi)(!1),e.props.index&&e.props.children&&(0,o.Oi)(!1);let s={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=D(e.props.children,a)),r.push(s)})),r}function k(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:n.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:n.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:n.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}n.startTransition,new Promise((()=>{})),n.Component},1020:(e,t,r)=>{"use strict";var n=r(1609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!l.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},4848:(e,t,r)=>{"use strict";e.exports=r(1020)},2668:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});const o=n(r(390)).default},390:(e,t)=>{"use strict";function r(e,t){return{handler:e,config:t}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.withOptions=function(e,t=()=>({})){const r=function(r){return{__options:r,handler:e(r),config:t(r)}};return r.__isOptionsFunction=!0,r.__pluginFunction=e,r.__configFunction=t,r};const n=r},8093:(e,t,r)=>{let n=r(2668);e.exports=(n.__esModule?n:{default:n}).default},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},6427:e=>{"use strict";e.exports=window.wp.components},7143:e=>{"use strict";e.exports=window.wp.data},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},923:e=>{"use strict";e.exports=window.wp.isShallowEqual},7494:e=>{"use strict";e.exports=window.wp.priorityQueue},3832:e=>{"use strict";e.exports=window.wp.url},9446:e=>{"use strict";e.exports=window.wp.wordcount},3845:(e,t,r)=>{"use strict";r.d(t,{Fc:()=>Au,Z7:()=>od,Ex:()=>cd,$n:()=>yu,e2:()=>pd,Sc:()=>Od,rI:()=>oh,pd:()=>ah,ue:()=>Ud,JU:()=>Td,Rh:()=>vh,AM:()=>Nh,dO:()=>Gh,tU:()=>ep,vw:()=>rp,TM:()=>op,m_:()=>Nd});var n=r(1609),o=r.t(n,2);function i(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function a(...e){return n.useCallback(i(...e),e)}var s=r(4848),l=n.forwardRef(((e,t)=>{const{children:r,...o}=e,i=n.Children.toArray(r),a=i.find(d);if(a){const e=a.props.children,r=i.map((t=>t===a?n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null:t));return(0,s.jsx)(c,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,s.jsx)(c,{...o,ref:t,children:r})}));l.displayName="Slot";var c=n.forwardRef(((e,t)=>{const{children:r,...o}=e;if(n.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}(r);return n.cloneElement(r,{...h(o,r.props),ref:t?i(t,e):e})}return n.Children.count(r)>1?n.Children.only(null):null}));c.displayName="SlotClone";var u=({children:e})=>(0,s.jsx)(s.Fragment,{children:e});function d(e){return n.isValidElement(e)&&e.type===u}function h(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{i(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function p(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=p(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}r(4744),r(4687);const f="-";function m(e){const t=function(e){const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]},o=function(e,t){return t?e.map((([e,r])=>[e,r.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,r])=>[t+e,r]))):e))])):e}(Object.entries(e.classGroups),r);return o.forEach((([e,r])=>{M(r,n,e,t)})),n}(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:function(e){const r=e.split(f);return""===r[0]&&1!==r.length&&r.shift(),g(r,t)||function(e){if(y.test(e)){const t=y.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}}function g(e,t){if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?g(e.slice(1),n):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join(f);return t.validators.find((({validator:e})=>e(i)))?.classGroupId}const y=/^\[(.+)\]$/;function M(e,t,r,n){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void M(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((([e,o])=>{M(o,L(t,e),r,n)}))}else(""===e?t:L(t,e)).classGroupId=r}))}function L(e,t){let r=e;return t.split(f).forEach((e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r}function w(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;function o(o,i){r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)}return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}}const x="!";function v(e){const{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],i=t.length;function a(e){const r=[];let a,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(n||e.slice(c,c+i)===t)){r.push(e.slice(l,c)),l=c+i;continue}if("/"===u){a=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===r.length?e:e.substring(l),u=c.startsWith(x);return{modifiers:r,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}}return r?function(e){return r({className:e,parseClassName:a})}:a}const j=/\s+/;function N(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=b(e))&&(n&&(n+=" "),n+=t);return n}function b(e){if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=b(e[n]))&&(r&&(r+=" "),r+=t);return r}function C(e,...t){let r,n,o,i=function(s){const l=t.reduce(((e,t)=>t(e)),e());return r=function(e){return{cache:w(e.cacheSize),parseClassName:v(e),...m(e)}}(l),n=r.cache.get,o=r.cache.set,i=a,a(s)};function a(e){const t=n(e);if(t)return t;const i=function(e,t){const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(j).map((e=>{const{modifiers:t,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a}=r(e);let s=Boolean(a),l=n(s?i.substring(0,a):i);if(!l){if(!s)return{isTailwindClass:!1,originalClassName:e};if(l=n(i),!l)return{isTailwindClass:!1,originalClassName:e};s=!1}const c=function(e){if(e.length<=1)return e;const t=[];let r=[];return e.forEach((e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)})),t.push(...r.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:o?c+x:c,classGroupId:l,originalClassName:e,hasPostfixModifier:s}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:r,hasPostfixModifier:n}=e,a=t+r;return!i.has(a)&&(i.add(a),o(r,n).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,r);return o(e,i),i}return function(){return i(N.apply(null,arguments))}}function T(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const D=/^\[(?:([a-z-]+):)?(.+)\]$/i,k=/^\d+\/\d+$/,E=new Set(["px","full","screen"]),S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,I=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,z=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,O=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,P=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function A(e){return R(e)||E.has(e)||k.test(e)}function Q(e){return X(e,"length",K)}function R(e){return Boolean(e)&&!Number.isNaN(Number(e))}function Y(e){return X(e,"number",R)}function U(e){return Boolean(e)&&Number.isInteger(Number(e))}function _(e){return e.endsWith("%")&&R(e.slice(0,-1))}function B(e){return D.test(e)}function F(e){return S.test(e)}const G=new Set(["length","size","percentage"]);function V(e){return X(e,G,q)}function W(e){return X(e,"position",q)}const J=new Set(["image","url"]);function H(e){return X(e,J,te)}function Z(e){return X(e,"",ee)}function $(){return!0}function X(e,t,r){const n=D.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))}function K(e){return I.test(e)&&!z.test(e)}function q(){return!1}function ee(e){return O.test(e)}function te(e){return P.test(e)}function re(){const e=T("colors"),t=T("spacing"),r=T("blur"),n=T("brightness"),o=T("borderColor"),i=T("borderRadius"),a=T("borderSpacing"),s=T("borderWidth"),l=T("contrast"),c=T("grayscale"),u=T("hueRotate"),d=T("invert"),h=T("gap"),p=T("gradientColorStops"),f=T("gradientColorStopPositions"),m=T("inset"),g=T("margin"),y=T("opacity"),M=T("padding"),L=T("saturate"),w=T("scale"),x=T("sepia"),v=T("skew"),j=T("space"),N=T("translate"),b=()=>["auto",B,t],C=()=>[B,t],D=()=>["",A,Q],k=()=>["auto",R,B],E=()=>["","0",B],S=()=>[R,Y],I=()=>[R,B];return{cacheSize:500,separator:":",theme:{colors:[$],spacing:[A,Q],blur:["none","",F,B],brightness:S(),borderColor:[e],borderRadius:["none","","full",F,B],borderSpacing:C(),borderWidth:D(),contrast:S(),grayscale:E(),hueRotate:I(),invert:E(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[_,Q],inset:b(),margin:b(),opacity:S(),padding:C(),saturate:S(),scale:S(),sepia:E(),skew:I(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",B]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",B]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",U,B]}],basis:[{basis:b()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",B]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",U,B]}],"grid-cols":[{"grid-cols":[$]}],"col-start-end":[{col:["auto",{span:["full",U,B]},B]}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":[$]}],"row-start-end":[{row:["auto",{span:[U,B]},B]}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",B]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",B]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",B,t]}],"min-w":[{"min-w":[B,t,"min","max","fit"]}],"max-w":[{"max-w":[B,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],h:[{h:[B,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[B,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,Q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Y]}],"font-family":[{font:[$]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",B]}],"line-clamp":[{"line-clamp":["none",R,Y]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",A,B]}],"list-image":[{"list-image":["none",B]}],"list-style-type":[{list:["none","disc","decimal",B]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",A,Q]}],"underline-offset":[{"underline-offset":["auto",A,B]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",W]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",V]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},H]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[A,B]}],"outline-w":[{outline:[A,Q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[A,Q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,Z]}],"shadow-color":[{shadow:[$]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",F,B]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[L]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",B]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",B]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",B]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[U,B]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[v]}],"skew-y":[{"skew-y":[v]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",B]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",B]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[A,Q,Y]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function ne(e,t,r){void 0!==r&&(e[t]=r)}function oe(e,t){if(t)for(const r in t)ne(e,r,t[r])}function ie(e,t){if(t)for(const r in t){const n=t[r];void 0!==n&&(e[r]=(e[r]||[]).concat(n))}}function ae(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=ae(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function se(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=ae(e))&&(n&&(n+=" "),n+=t);return n}Symbol.toStringTag,r(8093);const le=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,{compose:ce,cva:ue,cx:de}=(()=>{const e=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return se(t)};return{compose:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return t=>{const n=Object.fromEntries(Object.entries(t||{}).filter((e=>{let[t]=e;return!["class","className"].includes(t)})));return e(r.map((e=>e(n))),null==t?void 0:t.class,null==t?void 0:t.className)}},cva:t=>r=>{var n;if(null==(null==t?void 0:t.variants))return e(null==t?void 0:t.base,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map((e=>{const t=null==r?void 0:r[e],n=null==i?void 0:i[e],a=le(t)||le(n);return o[e][a]})),s={...i,...r&&Object.entries(r).reduce(((e,t)=>{let[r,n]=t;return void 0===n?e:{...e,[r]:n}}),{})},l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce(((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every((e=>{let[t,r]=e;const n=s[t];return Array.isArray(r)?r.includes(n):n===r}))?[...e,r,n]:e}),[]);return e(null==t?void 0:t.base,a,l,null==r?void 0:r.class,null==r?void 0:r.className)},cx:e}})();var he=r(6622);function pe(e,t=[]){let r=[];const o=()=>{const t=r.map((e=>n.createContext(e)));return function(r){const o=r?.[e]||t;return n.useMemo((()=>({[`__scope${e}`]:{...r,[e]:o}})),[r,o])}};return o.scopeName=e,[function(t,o){const i=n.createContext(o),a=r.length;function l(t){const{scope:r,children:o,...l}=t,c=r?.[e][a]||i,u=n.useMemo((()=>l),Object.values(l));return(0,s.jsx)(c.Provider,{value:u,children:o})}return r=[...r,o],l.displayName=t+"Provider",[l,function(r,s){const l=s?.[e][a]||i,c=n.useContext(l);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},fe(o,...t)]}function fe(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return n.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return r.scopeName=t.scopeName,r}function me(e){const t=n.useRef(e);return n.useEffect((()=>{t.current=e})),n.useMemo((()=>(...e)=>t.current?.(...e)),[])}var ge=Boolean(globalThis?.document)?n.useLayoutEffect:()=>{},ye=r(5795),Me=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const r=n.forwardRef(((e,r)=>{const{asChild:n,...o}=e,i=n?l:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(i,{...o,ref:r})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});function Le(e,t){e&&ye.flushSync((()=>e.dispatchEvent(t)))}var we="Avatar",[xe,ve]=pe(we),[je,Ne]=xe(we),be=n.forwardRef(((e,t)=>{const{__scopeAvatar:r,...o}=e,[i,a]=n.useState("idle");return(0,s.jsx)(je,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:(0,s.jsx)(Me.span,{...o,ref:t})})}));be.displayName=we;var Ce="AvatarImage",Te=n.forwardRef(((e,t)=>{const{__scopeAvatar:r,src:o,onLoadingStatusChange:i=()=>{},...a}=e,l=Ne(Ce,r),c=function(e){const[t,r]=n.useState("idle");return ge((()=>{if(!e)return void r("error");let t=!0;const n=new window.Image,o=e=>()=>{t&&r(e)};return r("loading"),n.onload=o("loaded"),n.onerror=o("error"),n.src=e,()=>{t=!1}}),[e]),t}(o),u=me((e=>{i(e),l.onImageLoadingStatusChange(e)}));return ge((()=>{"idle"!==c&&u(c)}),[c,u]),"loaded"===c?(0,s.jsx)(Me.img,{...a,ref:t,src:o}):null}));Te.displayName=Ce;var De="AvatarFallback",ke=n.forwardRef(((e,t)=>{const{__scopeAvatar:r,delayMs:o,...i}=e,a=Ne(De,r),[l,c]=n.useState(void 0===o);return n.useEffect((()=>{if(void 0!==o){const e=window.setTimeout((()=>c(!0)),o);return()=>window.clearTimeout(e)}}),[o]),l&&"loaded"!==a.imageLoadingStatus?(0,s.jsx)(Me.span,{...i,ref:t}):null}));ke.displayName=De;var Ee=be,Se=Te,Ie=ke;function ze(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function Oe({prop:e,defaultProp:t,onChange:r=()=>{}}){const[o,i]=function({defaultProp:e,onChange:t}){const r=n.useState(e),[o]=r,i=n.useRef(o),a=me(t);return n.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:t,onChange:r}),a=void 0!==e,s=a?e:o,l=me(r);return[s,n.useCallback((t=>{if(a){const r="function"==typeof t?t(e):t;r!==e&&l(r)}else i(t)}),[a,e,i,l])]}function Pe(e){const t=n.useRef({value:e,previous:e});return n.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}function Ae(e){const[t,r]=n.useState(void 0);return ge((()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;r({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)}),[e]),t}var Qe=e=>{const{present:t,children:r}=e,o=function(e){const[t,r]=n.useState(),o=n.useRef({}),i=n.useRef(e),a=n.useRef("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return n.useReducer(((e,r)=>t[e][r]??e),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return n.useEffect((()=>{const e=Re(o.current);a.current="mounted"===l?e:"none"}),[l]),ge((()=>{const t=o.current,r=i.current;if(r!==e){const n=a.current,o=Re(t);c(e?"MOUNT":"none"===o||"none"===t?.display?"UNMOUNT":r&&n!==o?"ANIMATION_OUT":"UNMOUNT"),i.current=e}}),[e,c]),ge((()=>{if(t){const e=e=>{const r=Re(o.current).includes(e.animationName);e.target===t&&r&&ye.flushSync((()=>c("ANIMATION_END")))},r=e=>{e.target===t&&(a.current=Re(o.current))};return t.addEventListener("animationstart",r),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",r),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:n.useCallback((e=>{e&&(o.current=getComputedStyle(e)),r(e)}),[])}}(t),i="function"==typeof r?r({present:o.isPresent}):n.Children.only(r),s=a(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}(i));return"function"==typeof r||o.isPresent?n.cloneElement(i,{ref:s}):null};function Re(e){return e?.animationName||"none"}Qe.displayName="Presence";var Ye="Checkbox",[Ue,_e]=pe(Ye),[Be,Fe]=Ue(Ye),Ge=n.forwardRef(((e,t)=>{const{__scopeCheckbox:r,name:o,checked:i,defaultChecked:l,required:c,disabled:u,value:d="on",onCheckedChange:h,...p}=e,[f,m]=n.useState(null),g=a(t,(e=>m(e))),y=n.useRef(!1),M=!f||Boolean(f.closest("form")),[L=!1,w]=Oe({prop:i,defaultProp:l,onChange:h}),x=n.useRef(L);return n.useEffect((()=>{const e=f?.form;if(e){const t=()=>w(x.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[f,w]),(0,s.jsxs)(Be,{scope:r,state:L,disabled:u,children:[(0,s.jsx)(Me.button,{type:"button",role:"checkbox","aria-checked":He(L)?"mixed":L,"aria-required":c,"data-state":Ze(L),"data-disabled":u?"":void 0,disabled:u,value:d,...p,ref:g,onKeyDown:ze(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:ze(e.onClick,(e=>{w((e=>!!He(e)||!e)),M&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())}))}),M&&(0,s.jsx)(Je,{control:f,bubbles:!y.current,name:o,value:d,checked:L,required:c,disabled:u,style:{transform:"translateX(-100%)"}})]})}));Ge.displayName=Ye;var Ve="CheckboxIndicator",We=n.forwardRef(((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,i=Fe(Ve,r);return(0,s.jsx)(Qe,{present:n||He(i.state)||!0===i.state,children:(0,s.jsx)(Me.span,{"data-state":Ze(i.state),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})}));We.displayName=Ve;var Je=e=>{const{control:t,checked:r,bubbles:o=!0,...i}=e,a=n.useRef(null),l=Pe(r),c=Ae(t);return n.useEffect((()=>{const e=a.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(l!==r&&n){const t=new Event("click",{bubbles:o});e.indeterminate=He(r),n.call(e,!He(r)&&r),e.dispatchEvent(t)}}),[l,r,o]),(0,s.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:!He(r)&&r,...i,tabIndex:-1,ref:a,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function He(e){return"indeterminate"===e}function Ze(e){return He(e)?"indeterminate":e?"checked":"unchecked"}var $e=Ge,Xe=We,Ke=n.forwardRef(((e,t)=>(0,s.jsx)(Me.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})));Ke.displayName="Label";var qe,et=Ke,tt="dismissableLayer.update",rt=n.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nt=n.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:c,onDismiss:u,...d}=e,h=n.useContext(rt),[p,f]=n.useState(null),m=p?.ownerDocument??globalThis?.document,[,g]=n.useState({}),y=a(t,(e=>f(e))),M=Array.from(h.layers),[L]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),w=M.indexOf(L),x=p?M.indexOf(p):-1,v=h.layersWithOutsidePointerEventsDisabled.size>0,j=x>=w,N=function(e,t=globalThis?.document){const r=me(e),o=n.useRef(!1),i=n.useRef((()=>{}));return n.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let n=function(){it("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=n,t.addEventListener("click",i.current,{once:!0})):n()}else t.removeEventListener("click",i.current);o.current=!1},n=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(n),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,r=[...h.branches].some((e=>e.contains(t)));j&&!r&&(i?.(e),c?.(e),e.defaultPrevented||u?.())}),m),b=function(e,t=globalThis?.document){const r=me(e),o=n.useRef(!1);return n.useEffect((()=>{const e=e=>{e.target&&!o.current&&it("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...h.branches].some((e=>e.contains(t)))||(l?.(e),c?.(e),e.defaultPrevented||u?.())}),m);return function(e,t=globalThis?.document){const r=me(e);n.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[r,t])}((e=>{x===h.layers.size-1&&(o?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),m),n.useEffect((()=>{if(p)return r&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(qe=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(p)),h.layers.add(p),ot(),()=>{r&&1===h.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=qe)}}),[p,m,r,h]),n.useEffect((()=>()=>{p&&(h.layers.delete(p),h.layersWithOutsidePointerEventsDisabled.delete(p),ot())}),[p,h]),n.useEffect((()=>{const e=()=>g({});return document.addEventListener(tt,e),()=>document.removeEventListener(tt,e)}),[]),(0,s.jsx)(Me.div,{...d,ref:y,style:{pointerEvents:v?j?"auto":"none":void 0,...e.style},onFocusCapture:ze(e.onFocusCapture,b.onFocusCapture),onBlurCapture:ze(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:ze(e.onPointerDownCapture,N.onPointerDownCapture)})}));function ot(){const e=new CustomEvent(tt);document.dispatchEvent(e)}function it(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Le(o,i):o.dispatchEvent(i)}nt.displayName="DismissableLayer",n.forwardRef(((e,t)=>{const r=n.useContext(rt),o=n.useRef(null),i=a(t,o);return n.useEffect((()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}),[r.branches]),(0,s.jsx)(Me.div,{...e,ref:i})})).displayName="DismissableLayerBranch";var at=o["useId".toString()]||(()=>{}),st=0;function lt(e){const[t,r]=n.useState(at());return ge((()=>{e||r((e=>e??String(st++)))}),[e]),e||(t?`radix-${t}`:"")}const ct=["top","right","bottom","left"],ut=Math.min,dt=Math.max,ht=Math.round,pt=Math.floor,ft=e=>({x:e,y:e}),mt={left:"right",right:"left",bottom:"top",top:"bottom"},gt={start:"end",end:"start"};function yt(e,t,r){return dt(e,ut(t,r))}function Mt(e,t){return"function"==typeof e?e(t):e}function Lt(e){return e.split("-")[0]}function wt(e){return e.split("-")[1]}function xt(e){return"x"===e?"y":"x"}function vt(e){return"y"===e?"height":"width"}function jt(e){return["top","bottom"].includes(Lt(e))?"y":"x"}function Nt(e){return xt(jt(e))}function bt(e){return e.replace(/start|end/g,(e=>gt[e]))}function Ct(e){return e.replace(/left|right|bottom|top/g,(e=>mt[e]))}function Tt(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Dt(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function kt(e,t,r){let{reference:n,floating:o}=e;const i=jt(t),a=Nt(t),s=vt(a),l=Lt(t),c="y"===i,u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,h=n[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-o.width,y:d};break;default:p={x:n.x,y:n.y}}switch(wt(t)){case"start":p[a]-=h*(r&&c?-1:1);break;case"end":p[a]+=h*(r&&c?-1:1)}return p}async function Et(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=Mt(t,e),f=Tt(p),m=s[h?"floating"===d?"reference":"floating":d],g=Dt(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(m)))||r?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,M=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),L=await(null==i.isElement?void 0:i.isElement(M))&&await(null==i.getScale?void 0:i.getScale(M))||{x:1,y:1},w=Dt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:M,strategy:l}):y);return{top:(g.top-w.top+f.top)/L.y,bottom:(w.bottom-g.bottom+f.bottom)/L.y,left:(g.left-w.left+f.left)/L.x,right:(w.right-g.right+f.right)/L.x}}function St(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function It(e){return ct.some((t=>e[t]>=0))}function zt(e){return At(e)?(e.nodeName||"").toLowerCase():"#document"}function Ot(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Pt(e){var t;return null==(t=(At(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function At(e){return e instanceof Node||e instanceof Ot(e).Node}function Qt(e){return e instanceof Element||e instanceof Ot(e).Element}function Rt(e){return e instanceof HTMLElement||e instanceof Ot(e).HTMLElement}function Yt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Ot(e).ShadowRoot)}function Ut(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function _t(e){return["table","td","th"].includes(zt(e))}function Bt(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Ft(e){const t=Gt(),r=Qt(e)?Wt(e):e;return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function Gt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Vt(e){return["html","body","#document"].includes(zt(e))}function Wt(e){return Ot(e).getComputedStyle(e)}function Jt(e){return Qt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ht(e){if("html"===zt(e))return e;const t=e.assignedSlot||e.parentNode||Yt(e)&&e.host||Pt(e);return Yt(t)?t.host:t}function Zt(e){const t=Ht(e);return Vt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rt(t)&&Ut(t)?t:Zt(t)}function $t(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=Zt(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Ot(o);return i?t.concat(a,a.visualViewport||[],Ut(o)?o:[],a.frameElement&&r?$t(a.frameElement):[]):t.concat(o,$t(o,[],r))}function Xt(e){const t=Wt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Rt(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=ht(r)!==i||ht(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Kt(e){return Qt(e)?e:e.contextElement}function qt(e){const t=Kt(e);if(!Rt(t))return ft(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Xt(t);let a=(i?ht(r.width):r.width)/n,s=(i?ht(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const er=ft(0);function tr(e){const t=Ot(e);return Gt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:er}function rr(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=Kt(e);let a=ft(1);t&&(n?Qt(n)&&(a=qt(n)):a=qt(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Ot(e))&&t}(i,r,n)?tr(i):ft(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Ot(i),t=n&&Qt(n)?Ot(n):n;let r=e,o=r.frameElement;for(;o&&n&&t!==r;){const e=qt(o),t=o.getBoundingClientRect(),n=Wt(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,r=Ot(o),o=r.frameElement}}return Dt({width:u,height:d,x:l,y:c})}function nr(e){return rr(Pt(e)).left+Jt(e).scrollLeft}function or(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Ot(e),n=Pt(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Gt();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=Pt(e),r=Jt(e),n=e.ownerDocument.body,o=dt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=dt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+nr(e);const s=-r.scrollTop;return"rtl"===Wt(n).direction&&(a+=dt(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Pt(e));else if(Qt(t))n=function(e,t){const r=rr(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Rt(e)?qt(e):ft(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=tr(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return Dt(n)}function ir(e,t){const r=Ht(e);return!(r===t||!Qt(r)||Vt(r))&&("fixed"===Wt(r).position||ir(r,t))}function ar(e,t,r){const n=Rt(t),o=Pt(t),i="fixed"===r,a=rr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=ft(0);if(n||!n&&!i)if(("body"!==zt(t)||Ut(o))&&(s=Jt(t)),n){const e=rr(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=nr(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function sr(e){return"static"===Wt(e).position}function lr(e,t){return Rt(e)&&"fixed"!==Wt(e).position?t?t(e):e.offsetParent:null}function cr(e,t){const r=Ot(e);if(Bt(e))return r;if(!Rt(e)){let t=Ht(e);for(;t&&!Vt(t);){if(Qt(t)&&!sr(t))return t;t=Ht(t)}return r}let n=lr(e,t);for(;n&&_t(n)&&sr(n);)n=lr(n,t);return n&&Vt(n)&&sr(n)&&!Ft(n)?r:n||function(e){let t=Ht(e);for(;Rt(t)&&!Vt(t);){if(Ft(t))return t;if(Bt(t))return null;t=Ht(t)}return null}(e)||r}const ur={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=Pt(n),s=!!t&&Bt(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=ft(1);const u=ft(0),d=Rt(n);if((d||!d&&!i)&&(("body"!==zt(n)||Ut(a))&&(l=Jt(n)),Rt(n))){const e=rr(n);c=qt(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x,y:r.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:Pt,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?Bt(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=$t(e,[],!1).filter((e=>Qt(e)&&"body"!==zt(e))),o=null;const i="fixed"===Wt(e).position;let a=i?Ht(e):e;for(;Qt(a)&&!Vt(a);){const t=Wt(a),r=Ft(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Ut(a)&&!r&&ir(e,a))?n=n.filter((e=>e!==a)):o=t,a=Ht(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=i[0],s=i.reduce(((e,r)=>{const n=or(t,r,o);return e.top=dt(n.top,e.top),e.right=ut(n.right,e.right),e.bottom=ut(n.bottom,e.bottom),e.left=dt(n.left,e.left),e}),or(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:cr,getElementRects:async function(e){const t=this.getOffsetParent||cr,r=this.getDimensions,n=await r(e.floating);return{reference:ar(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=Xt(e);return{width:t,height:r}},getScale:qt,isElement:Qt,isRTL:function(e){return"rtl"===Wt(e).direction}};const dr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),a=Lt(r),s=wt(r),l="y"===jt(r),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=Mt(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof f&&(p="end"===s?-1*f:f),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},hr=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=Mt(e,t),c={x:r,y:n},u=await Et(t,l),d=jt(Lt(o)),h=xt(d);let p=c[h],f=c[d];if(i){const e="y"===h?"bottom":"right";p=yt(p+u["y"===h?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";f=yt(f+u["y"===d?"top":"left"],f,f-u[e])}const m=s.fn({...t,[h]:p,[d]:f});return{...m,data:{x:m.x-r,y:m.y-n}}}}},pr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=Mt(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const y=Lt(o),M=jt(s),L=Lt(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(L||!m?[Ct(s)]:function(e){const t=Ct(e);return[bt(e),t,bt(t)]}(s)),v="none"!==f;!h&&v&&x.push(...function(e,t,r,n){const o=wt(e);let i=function(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}(Lt(e),"start"===r,n);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(bt)))),i}(s,m,f,w));const j=[s,...x],N=await Et(t,g),b=[];let C=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&b.push(N[y]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=wt(e),o=Nt(e),i=vt(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ct(a)),[a,Ct(a)]}(o,a,w);b.push(N[e[0]],N[e[1]])}if(C=[...C,{placement:o,overflows:b}],!b.every((e=>e<=0))){var T,D;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=j[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let r=null==(D=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:D.placement;if(!r)switch(p){case"bestFit":{var k;const e=null==(k=C.filter((e=>{if(v){const t=jt(e.placement);return t===M||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:k[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},fr=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:o,elements:i}=t,{apply:a=()=>{},...s}=Mt(e,t),l=await Et(t,s),c=Lt(r),u=wt(r),d="y"===jt(r),{width:h,height:p}=n.floating;let f,m;"top"===c||"bottom"===c?(f=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,f="end"===u?"top":"bottom");const g=p-l.top-l.bottom,y=h-l.left-l.right,M=ut(p-l[f],g),L=ut(h-l[m],y),w=!t.middlewareData.shift;let x=M,v=L;if(d?v=u||w?ut(L,y):y:x=u||w?ut(M,g):g,w&&!u){const e=dt(l.left,0),t=dt(l.right,0),r=dt(l.top,0),n=dt(l.bottom,0);d?v=h-2*(0!==e||0!==t?e+t:dt(l.left,l.right)):x=p-2*(0!==r||0!==n?r+n:dt(l.top,l.bottom))}await a({...t,availableWidth:v,availableHeight:x});const j=await o.getDimensions(i.floating);return h!==j.width||p!==j.height?{reset:{rects:!0}}:{}}}},mr=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Mt(e,t);switch(n){case"referenceHidden":{const e=St(await Et(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:It(e)}}}case"escaped":{const e=St(await Et(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:It(e)}}}default:return{}}}}},gr=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Mt(e,t)||{};if(null==c)return{};const d=Tt(u),h={x:r,y:n},p=Nt(o),f=vt(p),m=await a.getDimensions(c),g="y"===p,y=g?"top":"left",M=g?"bottom":"right",L=g?"clientHeight":"clientWidth",w=i.reference[f]+i.reference[p]-h[p]-i.floating[f],x=h[p]-i.reference[p],v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let j=v?v[L]:0;j&&await(null==a.isElement?void 0:a.isElement(v))||(j=s.floating[L]||i.floating[f]);const N=w/2-x/2,b=j/2-m[f]/2-1,C=ut(d[y],b),T=ut(d[M],b),D=C,k=j-m[f]-T,E=j/2-m[f]/2+N,S=yt(D,E,k),I=!l.arrow&&null!=wt(o)&&E!==S&&i.reference[f]/2-(E<D?C:T)-m[f]/2<0,z=I?E<D?E-D:E-k:0;return{[p]:h[p]+z,data:{[p]:S,centerOffset:E-S-z,...I&&{alignmentOffset:z}},reset:I}}}),yr=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Mt(e,t),u={x:r,y:n},d=jt(o),h=xt(d);let p=u[h],f=u[d];const m=Mt(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+g.mainAxis,r=i.reference[h]+i.reference[e]-g.mainAxis;p<t?p=t:p>r&&(p=r)}if(c){var y,M;const e="y"===h?"width":"height",t=["top","left"].includes(Lt(o)),r=i.reference[d]-i.floating[e]+(t&&(null==(y=a.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),n=i.reference[d]+i.reference[e]+(t?0:(null==(M=a.offset)?void 0:M[d])||0)-(t?g.crossAxis:0);f<r?f=r:f>n&&(f=n)}return{[h]:p,[d]:f}}}},Mr=(e,t,r)=>{const n=new Map,o={platform:ur,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=kt(c,n,l),h=n,p={},f=0;for(let r=0;r<s.length;r++){const{name:i,fn:m}=s[r],{x:g,y,data:M,reset:L}=await m({x:u,y:d,initialPlacement:n,placement:h,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,p={...p,[i]:{...p[i],...M}},L&&f<=50&&(f++,"object"==typeof L&&(L.placement&&(h=L.placement),L.rects&&(c=!0===L.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):L.rects),({x:u,y:d}=kt(c,h,l))),r=-1)}return{x:u,y:d,placement:h,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Lr="undefined"!=typeof document?n.useLayoutEffect:n.useEffect;function wr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!=n--;)if(!wr(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){const r=o[n];if(!("_owner"===r&&e.$$typeof||wr(e[r],t[r])))return!1}return!0}return e!=e&&t!=t}function xr(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vr(e,t){const r=xr(e);return Math.round(t*r)/r}function jr(e){const t=n.useRef(e);return Lr((()=>{t.current=e})),t}const Nr=e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(o=r,{}.hasOwnProperty.call(o,"current"))?null!=r.current?gr({element:r.current,padding:n}).fn(t):{}:r?gr({element:r,padding:n}).fn(t):{};var o}}),br=(e,t)=>({...dr(e),options:[e,t]}),Cr=(e,t)=>({...hr(e),options:[e,t]}),Tr=(e,t)=>({...yr(e),options:[e,t]}),Dr=(e,t)=>({...pr(e),options:[e,t]}),kr=(e,t)=>({...fr(e),options:[e,t]}),Er=(e,t)=>({...mr(e),options:[e,t]}),Sr=(e,t)=>({...Nr(e),options:[e,t]});var Ir=n.forwardRef(((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return(0,s.jsx)(Me.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,s.jsx)("polygon",{points:"0,0 30,0 15,10"})})}));Ir.displayName="Arrow";var zr=Ir,Or="Popper",[Pr,Ar]=pe(Or),[Qr,Rr]=Pr(Or),Yr=e=>{const{__scopePopper:t,children:r}=e,[o,i]=n.useState(null);return(0,s.jsx)(Qr,{scope:t,anchor:o,onAnchorChange:i,children:r})};Yr.displayName=Or;var Ur="PopperAnchor",_r=n.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:o,...i}=e,l=Rr(Ur,r),c=n.useRef(null),u=a(t,c);return n.useEffect((()=>{l.onAnchorChange(o?.current||c.current)})),o?null:(0,s.jsx)(Me.div,{...i,ref:u})}));_r.displayName=Ur;var Br="PopperContent",[Fr,Gr]=Pr(Br),Vr=n.forwardRef(((e,t)=>{const{__scopePopper:r,side:o="bottom",sideOffset:i=0,align:l="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:p=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:y,...M}=e,L=Rr(Br,r),[w,x]=n.useState(null),v=a(t,(e=>x(e))),[j,N]=n.useState(null),b=Ae(j),C=b?.width??0,T=b?.height??0,D=o+("center"!==l?"-"+l:""),k="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},E=Array.isArray(h)?h:[h],S=E.length>0,I={padding:k,boundary:E.filter(Zr),altBoundary:S},{refs:z,floatingStyles:O,placement:P,isPositioned:A,middlewareData:Q}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,h]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=n.useState(o);wr(p,o)||f(o);const[m,g]=n.useState(null),[y,M]=n.useState(null),L=n.useCallback((e=>{e!==j.current&&(j.current=e,g(e))}),[]),w=n.useCallback((e=>{e!==N.current&&(N.current=e,M(e))}),[]),x=a||m,v=s||y,j=n.useRef(null),N=n.useRef(null),b=n.useRef(d),C=null!=c,T=jr(c),D=jr(i),k=n.useCallback((()=>{if(!j.current||!N.current)return;const e={placement:t,strategy:r,middleware:p};D.current&&(e.platform=D.current),Mr(j.current,N.current,e).then((e=>{const t={...e,isPositioned:!0};E.current&&!wr(b.current,t)&&(b.current=t,ye.flushSync((()=>{h(t)})))}))}),[p,t,r,D]);Lr((()=>{!1===u&&b.current.isPositioned&&(b.current.isPositioned=!1,h((e=>({...e,isPositioned:!1}))))}),[u]);const E=n.useRef(!1);Lr((()=>(E.current=!0,()=>{E.current=!1})),[]),Lr((()=>{if(x&&(j.current=x),v&&(N.current=v),x&&v){if(T.current)return T.current(x,v,k);k()}}),[x,v,k,T,C]);const S=n.useMemo((()=>({reference:j,floating:N,setReference:L,setFloating:w})),[L,w]),I=n.useMemo((()=>({reference:x,floating:v})),[x,v]),z=n.useMemo((()=>{const e={position:r,left:0,top:0};if(!I.floating)return e;const t=vr(I.floating,d.x),n=vr(I.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...xr(I.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,l,I.floating,d.x,d.y]);return n.useMemo((()=>({...d,update:k,refs:S,elements:I,floatingStyles:z})),[d,k,S,I,z])}({strategy:"fixed",placement:D,whileElementsMounted:(...e)=>function(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=Kt(e),u=o||i?[...c?$t(c):[],...$t(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)}));const d=c&&s?function(e,t){let r,n=null;const o=Pt(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:h}=e.getBoundingClientRect();if(s||t(),!d||!h)return;const p={rootMargin:-pt(u)+"px "+-pt(o.clientWidth-(c+d))+"px "+-pt(o.clientHeight-(u+h))+"px "+-pt(c)+"px",threshold:dt(0,ut(1,l))||1};let f=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!f)return a();t?a(!1,t):r=setTimeout((()=>{a(!1,1e-7)}),1e3)}f=!1}try{n=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(m,p)}n.observe(e)}(!0),i}(c,r):null;let h,p=-1,f=null;a&&(f=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),r()})),c&&!l&&f.observe(c),f.observe(t));let m=l?rr(e):null;return l&&function t(){const n=rr(e);!m||n.x===m.x&&n.y===m.y&&n.width===m.width&&n.height===m.height||r(),m=n,h=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(h)}}(...e,{animationFrame:"always"===g}),elements:{reference:L.anchor},middleware:[br({mainAxis:i+T,alignmentAxis:c}),d&&Cr({mainAxis:!0,crossAxis:!1,limiter:"partial"===f?Tr():void 0,...I}),d&&Dr({...I}),kr({...I,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${r}px`),a.setProperty("--radix-popper-available-height",`${n}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),j&&Sr({element:j,padding:u}),$r({arrowWidth:C,arrowHeight:T}),m&&Er({strategy:"referenceHidden",...I})]}),[R,Y]=Xr(P),U=me(y);ge((()=>{A&&U?.()}),[A,U]);const _=Q.arrow?.x,B=Q.arrow?.y,F=0!==Q.arrow?.centerOffset,[G,V]=n.useState();return ge((()=>{w&&V(window.getComputedStyle(w).zIndex)}),[w]),(0,s.jsx)("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:A?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[Q.transformOrigin?.x,Q.transformOrigin?.y].join(" "),...Q.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,s.jsx)(Fr,{scope:r,placedSide:R,onArrowChange:N,arrowX:_,arrowY:B,shouldHideArrow:F,children:(0,s.jsx)(Me.div,{"data-side":R,"data-align":Y,...M,ref:v,style:{...M.style,animation:A?void 0:"none"}})})})}));Vr.displayName=Br;var Wr="PopperArrow",Jr={top:"bottom",right:"left",bottom:"top",left:"right"},Hr=n.forwardRef((function(e,t){const{__scopePopper:r,...n}=e,o=Gr(Wr,r),i=Jr[o.placedSide];return(0,s.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,s.jsx)(zr,{...n,ref:t,style:{...n.style,display:"block"}})})}));function Zr(e){return null!==e}Hr.displayName=Wr;var $r=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,a=i?0:e.arrowWidth,s=i?0:e.arrowHeight,[l,c]=Xr(r),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+a/2,h=(o.arrow?.y??0)+s/2;let p="",f="";return"bottom"===l?(p=i?u:`${d}px`,f=-s+"px"):"top"===l?(p=i?u:`${d}px`,f=`${n.floating.height+s}px`):"right"===l?(p=-s+"px",f=i?u:`${h}px`):"left"===l&&(p=`${n.floating.width+s}px`,f=i?u:`${h}px`),{data:{x:p,y:f}}}});function Xr(e){const[t,r="center"]=e.split("-");return[t,r]}var Kr=Yr,qr=_r,en=Vr,tn=Hr,rn=n.forwardRef(((e,t)=>{const{container:r,...o}=e,[i,a]=n.useState(!1);ge((()=>a(!0)),[]);const l=r||i&&globalThis?.document?.body;return l?ye.createPortal((0,s.jsx)(Me.div,{...o,ref:t}),l):null}));rn.displayName="Portal";var nn=n.forwardRef(((e,t)=>(0,s.jsx)(Me.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));nn.displayName="VisuallyHidden";var on=nn,[an,sn]=pe("Tooltip",[Ar]),ln=Ar(),cn="TooltipProvider",un=700,dn="tooltip.open",[hn,pn]=an(cn),fn=e=>{const{__scopeTooltip:t,delayDuration:r=un,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[l,c]=n.useState(!0),u=n.useRef(!1),d=n.useRef(0);return n.useEffect((()=>{const e=d.current;return()=>window.clearTimeout(e)}),[]),(0,s.jsx)(hn,{scope:t,isOpenDelayed:l,delayDuration:r,onOpen:n.useCallback((()=>{window.clearTimeout(d.current),c(!1)}),[]),onClose:n.useCallback((()=>{window.clearTimeout(d.current),d.current=window.setTimeout((()=>c(!0)),o)}),[o]),isPointerInTransitRef:u,onPointerInTransitChange:n.useCallback((e=>{u.current=e}),[]),disableHoverableContent:i,children:a})};fn.displayName=cn;var mn="Tooltip",[gn,yn]=an(mn),Mn=e=>{const{__scopeTooltip:t,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:l,delayDuration:c}=e,u=pn(mn,e.__scopeTooltip),d=ln(t),[h,p]=n.useState(null),f=lt(),m=n.useRef(0),g=l??u.disableHoverableContent,y=c??u.delayDuration,M=n.useRef(!1),[L=!1,w]=Oe({prop:o,defaultProp:i,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(dn))):u.onClose(),a?.(e)}}),x=n.useMemo((()=>L?M.current?"delayed-open":"instant-open":"closed"),[L]),v=n.useCallback((()=>{window.clearTimeout(m.current),M.current=!1,w(!0)}),[w]),j=n.useCallback((()=>{window.clearTimeout(m.current),w(!1)}),[w]),N=n.useCallback((()=>{window.clearTimeout(m.current),m.current=window.setTimeout((()=>{M.current=!0,w(!0)}),y)}),[y,w]);return n.useEffect((()=>()=>window.clearTimeout(m.current)),[]),(0,s.jsx)(Kr,{...d,children:(0,s.jsx)(gn,{scope:t,contentId:f,open:L,stateAttribute:x,trigger:h,onTriggerChange:p,onTriggerEnter:n.useCallback((()=>{u.isOpenDelayed?N():v()}),[u.isOpenDelayed,N,v]),onTriggerLeave:n.useCallback((()=>{g?j():window.clearTimeout(m.current)}),[j,g]),onOpen:v,onClose:j,disableHoverableContent:g,children:r})})};Mn.displayName=mn;var Ln="TooltipTrigger",wn=n.forwardRef(((e,t)=>{const{__scopeTooltip:r,...o}=e,i=yn(Ln,r),l=pn(Ln,r),c=ln(r),u=a(t,n.useRef(null),i.onTriggerChange),d=n.useRef(!1),h=n.useRef(!1),p=n.useCallback((()=>d.current=!1),[]);return n.useEffect((()=>()=>document.removeEventListener("pointerup",p)),[p]),(0,s.jsx)(qr,{asChild:!0,...c,children:(0,s.jsx)(Me.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...o,ref:u,onPointerMove:ze(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(h.current||l.isPointerInTransitRef.current||(i.onTriggerEnter(),h.current=!0))})),onPointerLeave:ze(e.onPointerLeave,(()=>{i.onTriggerLeave(),h.current=!1})),onPointerDown:ze(e.onPointerDown,(()=>{d.current=!0,document.addEventListener("pointerup",p,{once:!0})})),onFocus:ze(e.onFocus,(()=>{d.current||i.onOpen()})),onBlur:ze(e.onBlur,i.onClose),onClick:ze(e.onClick,i.onClose)})})}));wn.displayName=Ln;var xn="TooltipPortal",[vn,jn]=an(xn,{forceMount:void 0}),Nn=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=yn(xn,t);return(0,s.jsx)(vn,{scope:t,forceMount:r,children:(0,s.jsx)(Qe,{present:r||i.open,children:(0,s.jsx)(rn,{asChild:!0,container:o,children:n})})})};Nn.displayName=xn;var bn="TooltipContent",Cn=n.forwardRef(((e,t)=>{const r=jn(bn,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,a=yn(bn,e.__scopeTooltip);return(0,s.jsx)(Qe,{present:n||a.open,children:a.disableHoverableContent?(0,s.jsx)(En,{side:o,...i,ref:t}):(0,s.jsx)(Tn,{side:o,...i,ref:t})})})),Tn=n.forwardRef(((e,t)=>{const r=yn(bn,e.__scopeTooltip),o=pn(bn,e.__scopeTooltip),i=n.useRef(null),l=a(t,i),[c,u]=n.useState(null),{trigger:d,onClose:h}=r,p=i.current,{onPointerInTransitChange:f}=o,m=n.useCallback((()=>{u(null),f(!1)}),[f]),g=n.useCallback(((e,t)=>{const r=e.currentTarget,n={x:e.clientX,y:e.clientY},o=function(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,function(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}(n,r.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const r=[];for(let t=e.length-1;t>=0;t--){const n=e[t];for(;r.length>=2;){const e=r[r.length-1],t=r[r.length-2];if(!((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x)))break;r.pop()}r.push(n)}return r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}(t)}([...o,...function(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}(t.getBoundingClientRect())]);u(i),f(!0)}),[f]);return n.useEffect((()=>()=>m()),[m]),n.useEffect((()=>{if(d&&p){const e=e=>g(e,p),t=e=>g(e,d);return d.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}}),[d,p,g,m]),n.useEffect((()=>{if(c){const e=e=>{const t=e.target,r={x:e.clientX,y:e.clientY},n=d?.contains(t)||p?.contains(t),o=!function(e,t){const{x:r,y:n}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,c=t[i].y;s>n!=c>n&&r<(l-a)*(n-s)/(c-s)+a&&(o=!o)}return o}(r,c);n?m():o&&(m(),h())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[d,p,c,h,m]),(0,s.jsx)(En,{...e,ref:l})})),[Dn,kn]=an(mn,{isInside:!1}),En=n.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:l,...c}=e,d=yn(bn,r),h=ln(r),{onClose:p}=d;return n.useEffect((()=>(document.addEventListener(dn,p),()=>document.removeEventListener(dn,p))),[p]),n.useEffect((()=>{if(d.trigger){const e=e=>{const t=e.target;t?.contains(d.trigger)&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[d.trigger,p]),(0,s.jsx)(nt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,s.jsxs)(en,{"data-state":d.stateAttribute,...h,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,s.jsx)(u,{children:o}),(0,s.jsx)(Dn,{scope:r,isInside:!0,children:(0,s.jsx)(on,{id:d.contentId,role:"tooltip",children:i||o})})]})})}));Cn.displayName=bn;var Sn="TooltipArrow",In=n.forwardRef(((e,t)=>{const{__scopeTooltip:r,...n}=e,o=ln(r);return kn(Sn,r).isInside?null:(0,s.jsx)(tn,{...o,...n,ref:t})}));In.displayName=Sn;var zn=fn,On=Mn,Pn=Nn,An=Cn;function Qn(e){const t=e+"CollectionProvider",[r,o]=pe(t),[i,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{const{scope:t,children:r}=e,o=n.useRef(null),a=n.useRef(new Map).current;return(0,s.jsx)(i,{scope:t,itemMap:a,collectionRef:o,children:r})};u.displayName=t;const d=e+"CollectionSlot",h=n.forwardRef(((e,t)=>{const{scope:r,children:n}=e,o=a(t,c(d,r).collectionRef);return(0,s.jsx)(l,{ref:o,children:n})}));h.displayName=d;const p=e+"CollectionItemSlot",f="data-radix-collection-item",m=n.forwardRef(((e,t)=>{const{scope:r,children:o,...i}=e,u=n.useRef(null),d=a(t,u),h=c(p,r);return n.useEffect((()=>(h.itemMap.set(u,{ref:u,...i}),()=>{h.itemMap.delete(u)}))),(0,s.jsx)(l,{[f]:"",ref:d,children:o})}));return m.displayName=p,[{Provider:u,Slot:h,ItemSlot:m},function(t){const r=c(e+"CollectionConsumer",t);return n.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(r.itemMap.values()).sort(((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current)))}),[r.collectionRef,r.itemMap])},o]}var Rn=n.createContext(void 0);function Yn(e){const t=n.useContext(Rn);return e||t||"ltr"}var Un=0;function Bn(){n.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Fn()),document.body.insertAdjacentElement("beforeend",e[1]??Fn()),Un++,()=>{1===Un&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Un--}}),[])}function Fn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Gn="focusScope.autoFocusOnMount",Vn="focusScope.autoFocusOnUnmount",Wn={bubbles:!1,cancelable:!0},Jn=n.forwardRef(((e,t)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...c}=e,[u,d]=n.useState(null),h=me(i),p=me(l),f=n.useRef(null),m=a(t,(e=>d(e))),g=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect((()=>{if(o){let e=function(e){if(g.paused||!u)return;const t=e.target;u.contains(t)?f.current=t:Xn(f.current,{select:!0})},t=function(e){if(g.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||Xn(f.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Xn(u)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}}),[o,u,g.paused]),n.useEffect((()=>{if(u){Kn.add(g);const e=document.activeElement;if(!u.contains(e)){const t=new CustomEvent(Gn,Wn);u.addEventListener(Gn,h),u.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Xn(n,{select:t}),document.activeElement!==r)return}(Hn(u).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&Xn(u))}return()=>{u.removeEventListener(Gn,h),setTimeout((()=>{const t=new CustomEvent(Vn,Wn);u.addEventListener(Vn,p),u.dispatchEvent(t),t.defaultPrevented||Xn(e??document.body,{select:!0}),u.removeEventListener(Vn,p),Kn.remove(g)}),0)}}}),[u,h,p,g]);const y=n.useCallback((e=>{if(!r&&!o)return;if(g.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=Hn(e);return[Zn(t,e),Zn(t.reverse(),e)]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Xn(i,{select:!0})):(e.preventDefault(),r&&Xn(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,g.paused]);return(0,s.jsx)(Me.div,{tabIndex:-1,...c,ref:m,onKeyDown:y})}));function Hn(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Zn(e,t){for(const r of e)if(!$n(r,{upTo:t}))return r}function $n(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Xn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Jn.displayName="FocusScope";var Kn=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=qn(e,t),e.unshift(t)},remove(t){e=qn(e,t),e[0]?.resume()}}}();function qn(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var eo="rovingFocusGroup.onEntryFocus",to={bubbles:!1,cancelable:!0},ro="RovingFocusGroup",[no,oo,io]=Qn(ro),[ao,so]=pe(ro,[io]),[lo,co]=ao(ro),uo=n.forwardRef(((e,t)=>(0,s.jsx)(no.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,s.jsx)(no.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,s.jsx)(ho,{...e,ref:t})})})));uo.displayName=ro;var ho=n.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:l,currentTabStopId:c,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:p=!1,...f}=e,m=n.useRef(null),g=a(t,m),y=Yn(l),[M=null,L]=Oe({prop:c,defaultProp:u,onChange:d}),[w,x]=n.useState(!1),v=me(h),j=oo(r),N=n.useRef(!1),[b,C]=n.useState(0);return n.useEffect((()=>{const e=m.current;if(e)return e.addEventListener(eo,v),()=>e.removeEventListener(eo,v)}),[v]),(0,s.jsx)(lo,{scope:r,orientation:o,dir:y,loop:i,currentTabStopId:M,onItemFocus:n.useCallback((e=>L(e)),[L]),onItemShiftTab:n.useCallback((()=>x(!0)),[]),onFocusableItemAdd:n.useCallback((()=>C((e=>e+1))),[]),onFocusableItemRemove:n.useCallback((()=>C((e=>e-1))),[]),children:(0,s.jsx)(Me.div,{tabIndex:w||0===b?-1:0,"data-orientation":o,...f,ref:g,style:{outline:"none",...e.style},onMouseDown:ze(e.onMouseDown,(()=>{N.current=!0})),onFocus:ze(e.onFocus,(e=>{const t=!N.current;if(e.target===e.currentTarget&&t&&!w){const t=new CustomEvent(eo,to);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=j().filter((e=>e.focusable));go([e.find((e=>e.active)),e.find((e=>e.id===M)),...e].filter(Boolean).map((e=>e.ref.current)),p)}}N.current=!1})),onBlur:ze(e.onBlur,(()=>x(!1)))})})})),po="RovingFocusGroupItem",fo=n.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:a,...l}=e,c=lt(),u=a||c,d=co(po,r),h=d.currentTabStopId===u,p=oo(r),{onFocusableItemAdd:f,onFocusableItemRemove:m}=d;return n.useEffect((()=>{if(o)return f(),()=>m()}),[o,f,m]),(0,s.jsx)(no.ItemSlot,{scope:r,id:u,focusable:o,active:i,children:(0,s.jsx)(Me.span,{tabIndex:h?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:ze(e.onMouseDown,(e=>{o?d.onItemFocus(u):e.preventDefault()})),onFocus:ze(e.onFocus,(()=>d.onItemFocus(u))),onKeyDown:ze(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,r){const n=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,r);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(n)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(n)?void 0:mo[n]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=p().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=d.loop?(n=i+1,(r=o).map(((e,t)=>r[(n+t)%r.length]))):o.slice(i+1)}setTimeout((()=>go(o)))}var r,n}))})})}));fo.displayName=po;var mo={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function go(e,t=!1){const r=document.activeElement;for(const n of e){if(n===r)return;if(n.focus({preventScroll:t}),document.activeElement!==r)return}}var yo=uo,Mo=fo,Lo=new WeakMap,wo=new WeakMap,xo={},vo=0,jo=function(e){return e&&(e.host||jo(e.parentNode))},No=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),function(e,t,r,n){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var r=jo(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);xo[r]||(xo[r]=new WeakMap);var i=xo[r],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,l=(Lo.get(e)||0)+1,c=(i.get(e)||0)+1;Lo.set(e,l),i.set(e,c),a.push(e),1===l&&o&&wo.set(e,!0),1===c&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),s.clear(),vo++,function(){a.forEach((function(e){var t=Lo.get(e)-1,o=i.get(e)-1;Lo.set(e,t),i.set(e,o),t||(wo.has(e)||e.removeAttribute(n),wo.delete(e)),o||e.removeAttribute(r)})),--vo||(Lo=new WeakMap,Lo=new WeakMap,wo=new WeakMap,xo={})}}(n,o,r,"aria-hidden")):function(){return null}},bo=function(){return bo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bo.apply(this,arguments)};function Co(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var To="right-scroll-bar-position",Do="width-before-scroll-bar";function ko(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Eo="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,So=new WeakMap;function Io(e){return e}var zo=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Io);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var i=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}}(null);return t.options=bo({async:!0,ssr:!1},e),t}(),Oo=function(){},Po=n.forwardRef((function(e,t){var r=n.useRef(null),o=n.useState({onScrollCapture:Oo,onWheelCapture:Oo,onTouchMoveCapture:Oo}),i=o[0],a=o[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,p=e.sideCar,f=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,M=void 0===y?"div":y,L=e.gapMode,w=Co(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=p,v=function(e,t){var r,o,i,a=(r=t||null,o=function(t){return e.forEach((function(e){return ko(e,t)}))},(i=(0,n.useState)((function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}}))[0]).callback=o,i.facade);return Eo((function(){var t=So.get(a);if(t){var r=new Set(t),n=new Set(e),o=a.current;r.forEach((function(e){n.has(e)||ko(e,null)})),n.forEach((function(e){r.has(e)||ko(e,o)}))}So.set(a,e)}),[e]),a}([r,t]),j=bo(bo({},w),i);return n.createElement(n.Fragment,null,d&&n.createElement(x,{sideCar:zo,removeScrollBar:u,shards:h,noIsolation:f,inert:m,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:L}),s?n.cloneElement(n.Children.only(l),bo(bo({},j),{ref:v})):n.createElement(M,bo({},j,{className:c,ref:v}),l))}));Po.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Po.classNames={fullWidth:Do,zeroRight:To};var Ao=function(e){var t=e.sideCar,r=Co(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return n.createElement(o,bo({},r))};Ao.isSideCarExport=!0;var Qo=function(){var e=0,t=null;return{add:function(n){var o,i;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r.nc;return t&&e.setAttribute("nonce",t),e}())&&(i=n,(o=t).styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ro=function(){var e,t=(e=Qo(),function(t,r){n.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},Yo={left:0,top:0,right:0,gap:0},Uo=function(e){return parseInt(e||"",10)||0},_o=Ro(),Bo="data-scroll-locked",Fo=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(s,"px ").concat(n,";\n  }\n  body[").concat(Bo,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(To," {\n    right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(Do," {\n    margin-right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(To," .").concat(To," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(Do," .").concat(Do," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(Bo,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},Go=function(){var e=parseInt(document.body.getAttribute(Bo)||"0",10);return isFinite(e)?e:0},Vo=function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o;n.useEffect((function(){return document.body.setAttribute(Bo,(Go()+1).toString()),function(){var e=Go()-1;e<=0?document.body.removeAttribute(Bo):document.body.setAttribute(Bo,e.toString())}}),[]);var a=n.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Yo;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Uo(r),Uo(n),Uo(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}}(i)}),[i]);return n.createElement(_o,{styles:Fo(a,!t,i,r?"":"!important")})},Wo=!1;if("undefined"!=typeof window)try{var Jo=Object.defineProperty({},"passive",{get:function(){return Wo=!0,!0}});window.addEventListener("test",Jo,Jo),window.removeEventListener("test",Jo,Jo)}catch(e){Wo=!1}var Ho=!!Wo&&{passive:!1},Zo=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},$o=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Xo(e,n)){var o=Ko(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Xo=function(e,t){return"v"===e?function(e){return Zo(e,"overflowY")}(t):function(e){return Zo(e,"overflowX")}(t)},Ko=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},qo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ei=function(e){return[e.deltaX,e.deltaY]},ti=function(e){return e&&"current"in e?e.current:e},ri=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},ni=0,oi=[];function ii(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ai=(si=function(e){var t=n.useRef([]),r=n.useRef([0,0]),o=n.useRef(),i=n.useState(ni++)[0],a=n.useState(Ro)[0],s=n.useRef(e);n.useEffect((function(){s.current=e}),[e]),n.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(ti),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=n.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var n,i=qo(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=$o(d,u);if(!h)return!0;if(h?n=d:(n="v"===d?"h":"v",h=$o(d,u)),!h)return!1;if(!o.current&&"changedTouches"in e&&(l||c)&&(o.current=n),!n)return!0;var p=o.current||n;return function(e,t,r,n){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*n,a=r.target,s=t.contains(a),l=!1,c=i>0,u=0,d=0;do{var h=Ko(e,a),p=h[0],f=h[1]-h[2]-o*p;(p||f)&&Xo(e,a)&&(u+=f,d+=p),a=a instanceof ShadowRoot?a.host:a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(c&&(Math.abs(u)<1||!1)||!c&&(Math.abs(d)<1||!1))&&(l=!0),l}(p,t,e,"h"===p?l:c)}),[]),c=n.useCallback((function(e){var r=e;if(oi.length&&oi[oi.length-1]===a){var n="deltaY"in r?ei(r):qo(r),o=t.current.filter((function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var i=(s.current.shards||[]).map(ti).filter(Boolean).filter((function(e){return e.contains(r.target)}));(i.length>0?l(r,i[0]):!s.current.noIsolation)&&r.cancelable&&r.preventDefault()}}}),[]),u=n.useCallback((function(e,r,n,o){var i={name:e,delta:r,target:n,should:o,shadowParent:ii(n)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=n.useCallback((function(e){r.current=qo(e),o.current=void 0}),[]),h=n.useCallback((function(t){u(t.type,ei(t),t.target,l(t,e.lockRef.current))}),[]),p=n.useCallback((function(t){u(t.type,qo(t),t.target,l(t,e.lockRef.current))}),[]);n.useEffect((function(){return oi.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Ho),document.addEventListener("touchmove",c,Ho),document.addEventListener("touchstart",d,Ho),function(){oi=oi.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,Ho),document.removeEventListener("touchmove",c,Ho),document.removeEventListener("touchstart",d,Ho)}}),[]);var f=e.removeScrollBar,m=e.inert;return n.createElement(n.Fragment,null,m?n.createElement(a,{styles:ri(i)}):null,f?n.createElement(Vo,{gapMode:e.gapMode}):null)},zo.useMedium(si),Ao);var si,li=n.forwardRef((function(e,t){return n.createElement(Po,bo({},e,{ref:t,sideCar:ai}))}));li.classNames=Po.classNames;const ci=li;var ui=["Enter"," "],di=["ArrowUp","PageDown","End"],hi=["ArrowDown","PageUp","Home",...di],pi={ltr:[...ui,"ArrowRight"],rtl:[...ui,"ArrowLeft"]},fi={ltr:["ArrowLeft"],rtl:["ArrowRight"]},mi="Menu",[gi,yi,Mi]=Qn(mi),[Li,wi]=pe(mi,[Mi,Ar,so]),xi=Ar(),vi=so(),[ji,Ni]=Li(mi),[bi,Ci]=Li(mi),Ti=e=>{const{__scopeMenu:t,open:r=!1,children:o,dir:i,onOpenChange:a,modal:l=!0}=e,c=xi(t),[u,d]=n.useState(null),h=n.useRef(!1),p=me(a),f=Yn(i);return n.useEffect((()=>{const e=()=>{h.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>h.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,s.jsx)(Kr,{...c,children:(0,s.jsx)(ji,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:d,children:(0,s.jsx)(bi,{scope:t,onClose:n.useCallback((()=>p(!1)),[p]),isUsingKeyboardRef:h,dir:f,modal:l,children:o})})})};Ti.displayName=mi;var Di=n.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e,o=xi(r);return(0,s.jsx)(qr,{...o,...n,ref:t})}));Di.displayName="MenuAnchor";var ki="MenuPortal",[Ei,Si]=Li(ki,{forceMount:void 0}),Ii=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=Ni(ki,t);return(0,s.jsx)(Ei,{scope:t,forceMount:r,children:(0,s.jsx)(Qe,{present:r||i.open,children:(0,s.jsx)(rn,{asChild:!0,container:o,children:n})})})};Ii.displayName=ki;var zi="MenuContent",[Oi,Pi]=Li(zi),Ai=n.forwardRef(((e,t)=>{const r=Si(zi,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=Ni(zi,e.__scopeMenu),a=Ci(zi,e.__scopeMenu);return(0,s.jsx)(gi.Provider,{scope:e.__scopeMenu,children:(0,s.jsx)(Qe,{present:n||i.open,children:(0,s.jsx)(gi.Slot,{scope:e.__scopeMenu,children:a.modal?(0,s.jsx)(Qi,{...o,ref:t}):(0,s.jsx)(Ri,{...o,ref:t})})})})})),Qi=n.forwardRef(((e,t)=>{const r=Ni(zi,e.__scopeMenu),o=n.useRef(null),i=a(t,o);return n.useEffect((()=>{const e=o.current;if(e)return No(e)}),[]),(0,s.jsx)(Yi,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ze(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})})),Ri=n.forwardRef(((e,t)=>{const r=Ni(zi,e.__scopeMenu);return(0,s.jsx)(Yi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})})),Yi=n.forwardRef(((e,t)=>{const{__scopeMenu:r,loop:o=!1,trapFocus:i,onOpenAutoFocus:c,onCloseAutoFocus:u,disableOutsidePointerEvents:d,onEntryFocus:h,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:g,onDismiss:y,disableOutsideScroll:M,...L}=e,w=Ni(zi,r),x=Ci(zi,r),v=xi(r),j=vi(r),N=yi(r),[b,C]=n.useState(null),T=n.useRef(null),D=a(t,T,w.onContentChange),k=n.useRef(0),E=n.useRef(""),S=n.useRef(0),I=n.useRef(null),z=n.useRef("right"),O=n.useRef(0),P=M?ci:n.Fragment,A=M?{as:l,allowPinchZoom:!0}:void 0;n.useEffect((()=>()=>window.clearTimeout(k.current)),[]),Bn();const Q=n.useCallback((e=>z.current===I.current?.side&&function(e,t){if(!t)return!1;return function(e,t){const{x:r,y:n}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,c=t[i].y;s>n!=c>n&&r<(l-a)*(n-s)/(c-s)+a&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,I.current?.area)),[]);return(0,s.jsx)(Oi,{scope:r,searchRef:E,onItemEnter:n.useCallback((e=>{Q(e)&&e.preventDefault()}),[Q]),onItemLeave:n.useCallback((e=>{Q(e)||(T.current?.focus(),C(null))}),[Q]),onTriggerLeave:n.useCallback((e=>{Q(e)&&e.preventDefault()}),[Q]),pointerGraceTimerRef:S,onPointerGraceIntentChange:n.useCallback((e=>{I.current=e}),[]),children:(0,s.jsx)(P,{...A,children:(0,s.jsx)(Jn,{asChild:!0,trapped:i,onMountAutoFocus:ze(c,(e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})})),onUnmountAutoFocus:u,children:(0,s.jsx)(nt,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:g,onDismiss:y,children:(0,s.jsx)(yo,{asChild:!0,...j,dir:x.dir,orientation:"vertical",loop:o,currentTabStopId:b,onCurrentTabStopIdChange:C,onEntryFocus:ze(h,(e=>{x.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:(0,s.jsx)(en,{role:"menu","aria-orientation":"vertical","data-state":pa(w.open),"data-radix-menu-content":"",dir:x.dir,...v,...L,ref:D,style:{outline:"none",...L.style},onKeyDown:ze(L.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&(e=>{const t=E.current+e,r=N().filter((e=>!e.disabled)),n=document.activeElement,o=r.find((e=>e.ref.current===n))?.textValue,i=function(e,t,r){const n=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=r?e.indexOf(r):-1;let i=(a=e,s=Math.max(o,0),a.map(((e,t)=>a[(s+t)%a.length])));var a,s;1===n.length&&(i=i.filter((e=>e!==r)));const l=i.find((e=>e.toLowerCase().startsWith(n.toLowerCase())));return l!==r?l:void 0}(r.map((e=>e.textValue)),t,o),a=r.find((e=>e.textValue===i))?.ref.current;!function e(t){E.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout((()=>e("")),1e3))}(t),a&&setTimeout((()=>a.focus()))})(e.key));const o=T.current;if(e.target!==o)return;if(!hi.includes(e.key))return;e.preventDefault();const i=N().filter((e=>!e.disabled)).map((e=>e.ref.current));di.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const r of e){if(r===t)return;if(r.focus(),document.activeElement!==t)return}}(i)})),onBlur:ze(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),E.current="")})),onPointerMove:ze(e.onPointerMove,ga((e=>{const t=e.target,r=O.current!==e.clientX;if(e.currentTarget.contains(t)&&r){const t=e.clientX>O.current?"right":"left";z.current=t,O.current=e.clientX}})))})})})})})})}));Ai.displayName=zi;var Ui=n.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e;return(0,s.jsx)(Me.div,{role:"group",...n,ref:t})}));Ui.displayName="MenuGroup";var _i=n.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e;return(0,s.jsx)(Me.div,{...n,ref:t})}));_i.displayName="MenuLabel";var Bi="MenuItem",Fi="menu.itemSelect",Gi=n.forwardRef(((e,t)=>{const{disabled:r=!1,onSelect:o,...i}=e,l=n.useRef(null),c=Ci(Bi,e.__scopeMenu),u=Pi(Bi,e.__scopeMenu),d=a(t,l),h=n.useRef(!1);return(0,s.jsx)(Vi,{...i,ref:d,disabled:r,onClick:ze(e.onClick,(()=>{const e=l.current;if(!r&&e){const t=new CustomEvent(Fi,{bubbles:!0,cancelable:!0});e.addEventListener(Fi,(e=>o?.(e)),{once:!0}),Le(e,t),t.defaultPrevented?h.current=!1:c.onClose()}})),onPointerDown:t=>{e.onPointerDown?.(t),h.current=!0},onPointerUp:ze(e.onPointerUp,(e=>{h.current||e.currentTarget?.click()})),onKeyDown:ze(e.onKeyDown,(e=>{const t=""!==u.searchRef.current;r||t&&" "===e.key||ui.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));Gi.displayName=Bi;var Vi=n.forwardRef(((e,t)=>{const{__scopeMenu:r,disabled:o=!1,textValue:i,...l}=e,c=Pi(Bi,r),u=vi(r),d=n.useRef(null),h=a(t,d),[p,f]=n.useState(!1),[m,g]=n.useState("");return n.useEffect((()=>{const e=d.current;e&&g((e.textContent??"").trim())}),[l.children]),(0,s.jsx)(gi.ItemSlot,{scope:r,disabled:o,textValue:i??m,children:(0,s.jsx)(Mo,{asChild:!0,...u,focusable:!o,children:(0,s.jsx)(Me.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...l,ref:h,onPointerMove:ze(e.onPointerMove,ga((e=>{o?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))}))),onPointerLeave:ze(e.onPointerLeave,ga((e=>c.onItemLeave(e)))),onFocus:ze(e.onFocus,(()=>f(!0))),onBlur:ze(e.onBlur,(()=>f(!1)))})})})})),Wi=n.forwardRef(((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return(0,s.jsx)(ea,{scope:e.__scopeMenu,checked:r,children:(0,s.jsx)(Gi,{role:"menuitemcheckbox","aria-checked":fa(r)?"mixed":r,...o,ref:t,"data-state":ma(r),onSelect:ze(o.onSelect,(()=>n?.(!!fa(r)||!r)),{checkForDefaultPrevented:!1})})})}));Wi.displayName="MenuCheckboxItem";var Ji="MenuRadioGroup",[Hi,Zi]=Li(Ji,{value:void 0,onValueChange:()=>{}}),$i=n.forwardRef(((e,t)=>{const{value:r,onValueChange:n,...o}=e,i=me(n);return(0,s.jsx)(Hi,{scope:e.__scopeMenu,value:r,onValueChange:i,children:(0,s.jsx)(Ui,{...o,ref:t})})}));$i.displayName=Ji;var Xi="MenuRadioItem",Ki=n.forwardRef(((e,t)=>{const{value:r,...n}=e,o=Zi(Xi,e.__scopeMenu),i=r===o.value;return(0,s.jsx)(ea,{scope:e.__scopeMenu,checked:i,children:(0,s.jsx)(Gi,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":ma(i),onSelect:ze(n.onSelect,(()=>o.onValueChange?.(r)),{checkForDefaultPrevented:!1})})})}));Ki.displayName=Xi;var qi="MenuItemIndicator",[ea,ta]=Li(qi,{checked:!1}),ra=n.forwardRef(((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,i=ta(qi,r);return(0,s.jsx)(Qe,{present:n||fa(i.checked)||!0===i.checked,children:(0,s.jsx)(Me.span,{...o,ref:t,"data-state":ma(i.checked)})})}));ra.displayName=qi;var na=n.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e;return(0,s.jsx)(Me.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})}));na.displayName="MenuSeparator";var oa=n.forwardRef(((e,t)=>{const{__scopeMenu:r,...n}=e,o=xi(r);return(0,s.jsx)(tn,{...o,...n,ref:t})}));oa.displayName="MenuArrow";var ia="MenuSub",[aa,sa]=Li(ia),la=e=>{const{__scopeMenu:t,children:r,open:o=!1,onOpenChange:i}=e,a=Ni(ia,t),l=xi(t),[c,u]=n.useState(null),[d,h]=n.useState(null),p=me(i);return n.useEffect((()=>(!1===a.open&&p(!1),()=>p(!1))),[a.open,p]),(0,s.jsx)(Kr,{...l,children:(0,s.jsx)(ji,{scope:t,open:o,onOpenChange:p,content:d,onContentChange:h,children:(0,s.jsx)(aa,{scope:t,contentId:lt(),triggerId:lt(),trigger:c,onTriggerChange:u,children:r})})})};la.displayName=ia;var ca="MenuSubTrigger",ua=n.forwardRef(((e,t)=>{const r=Ni(ca,e.__scopeMenu),o=Ci(ca,e.__scopeMenu),a=sa(ca,e.__scopeMenu),l=Pi(ca,e.__scopeMenu),c=n.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:d}=l,h={__scopeMenu:e.__scopeMenu},p=n.useCallback((()=>{c.current&&window.clearTimeout(c.current),c.current=null}),[]);return n.useEffect((()=>p),[p]),n.useEffect((()=>{const e=u.current;return()=>{window.clearTimeout(e),d(null)}}),[u,d]),(0,s.jsx)(Di,{asChild:!0,...h,children:(0,s.jsx)(Vi,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":pa(r.open),...e,ref:i(t,a.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ze(e.onPointerMove,ga((t=>{l.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||c.current||(l.onPointerGraceIntentChange(null),c.current=window.setTimeout((()=>{r.onOpenChange(!0),p()}),100))}))),onPointerLeave:ze(e.onPointerLeave,ga((e=>{p();const t=r.content?.getBoundingClientRect();if(t){const n=r.content?.dataset.side,o="right"===n,i=o?-5:5,a=t[o?"left":"right"],s=t[o?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+i,y:e.clientY},{x:a,y:t.top},{x:s,y:t.top},{x:s,y:t.bottom},{x:a,y:t.bottom}],side:n}),window.clearTimeout(u.current),u.current=window.setTimeout((()=>l.onPointerGraceIntentChange(null)),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}}))),onKeyDown:ze(e.onKeyDown,(t=>{const n=""!==l.searchRef.current;e.disabled||n&&" "===t.key||pi[o.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())}))})})}));ua.displayName=ca;var da="MenuSubContent",ha=n.forwardRef(((e,t)=>{const r=Si(zi,e.__scopeMenu),{forceMount:o=r.forceMount,...i}=e,l=Ni(zi,e.__scopeMenu),c=Ci(zi,e.__scopeMenu),u=sa(da,e.__scopeMenu),d=n.useRef(null),h=a(t,d);return(0,s.jsx)(gi.Provider,{scope:e.__scopeMenu,children:(0,s.jsx)(Qe,{present:o||l.open,children:(0,s.jsx)(gi.Slot,{scope:e.__scopeMenu,children:(0,s.jsx)(Yi,{id:u.contentId,"aria-labelledby":u.triggerId,...i,ref:h,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{c.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:ze(e.onFocusOutside,(e=>{e.target!==u.trigger&&l.onOpenChange(!1)})),onEscapeKeyDown:ze(e.onEscapeKeyDown,(e=>{c.onClose(),e.preventDefault()})),onKeyDown:ze(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),r=fi[c.dir].includes(e.key);t&&r&&(l.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())}))})})})})}));function pa(e){return e?"open":"closed"}function fa(e){return"indeterminate"===e}function ma(e){return fa(e)?"indeterminate":e?"checked":"unchecked"}function ga(e){return t=>"mouse"===t.pointerType?e(t):void 0}ha.displayName=da;var ya=Ti,Ma=Di,La=Ii,wa=Ai,xa=Ui,va=_i,ja=Gi,Na=Wi,ba=$i,Ca=Ki,Ta=ra,Da=na,ka=oa,Ea=la,Sa=ua,Ia=ha,za="DropdownMenu",[Oa,Pa]=pe(za,[wi]),Aa=wi(),[Qa,Ra]=Oa(za),Ya=e=>{const{__scopeDropdownMenu:t,children:r,dir:o,open:i,defaultOpen:a,onOpenChange:l,modal:c=!0}=e,u=Aa(t),d=n.useRef(null),[h=!1,p]=Oe({prop:i,defaultProp:a,onChange:l});return(0,s.jsx)(Qa,{scope:t,triggerId:lt(),triggerRef:d,contentId:lt(),open:h,onOpenChange:p,onOpenToggle:n.useCallback((()=>p((e=>!e))),[p]),modal:c,children:(0,s.jsx)(ya,{...u,open:h,onOpenChange:p,dir:o,modal:c,children:r})})};Ya.displayName=za;var Ua="DropdownMenuTrigger",_a=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=Ra(Ua,r),l=Aa(r);return(0,s.jsx)(Ma,{asChild:!0,...l,children:(0,s.jsx)(Me.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:i(t,a.triggerRef),onPointerDown:ze(e.onPointerDown,(e=>{n||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())})),onKeyDown:ze(e.onKeyDown,(e=>{n||(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));_a.displayName=Ua;var Ba=e=>{const{__scopeDropdownMenu:t,...r}=e,n=Aa(t);return(0,s.jsx)(La,{...n,...r})};Ba.displayName="DropdownMenuPortal";var Fa="DropdownMenuContent",Ga=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...o}=e,i=Ra(Fa,r),a=Aa(r),l=n.useRef(!1);return(0,s.jsx)(wa,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...o,ref:t,onCloseAutoFocus:ze(e.onCloseAutoFocus,(e=>{l.current||i.triggerRef.current?.focus(),l.current=!1,e.preventDefault()})),onInteractOutside:ze(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;i.modal&&!n||(l.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));Ga.displayName=Fa;var Va=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Aa(r);return(0,s.jsx)(xa,{...o,...n,ref:t})}));Va.displayName="DropdownMenuGroup";var Wa=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Aa(r);return(0,s.jsx)(va,{...o,...n,ref:t})}));Wa.displayName="DropdownMenuLabel";var Ja=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Aa(r);return(0,s.jsx)(ja,{...o,...n,ref:t})}));Ja.displayName="DropdownMenuItem";var Ha=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Aa(r);return(0,s.jsx)(Na,{...o,...n,ref:t})}));Ha.displayName="DropdownMenuCheckboxItem";var Za=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Aa(r);return(0,s.jsx)(ba,{...o,...n,ref:t})}));Za.displayName="DropdownMenuRadioGroup";var $a=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Aa(r);return(0,s.jsx)(Ca,{...o,...n,ref:t})}));$a.displayName="DropdownMenuRadioItem";var Xa=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Aa(r);return(0,s.jsx)(Ta,{...o,...n,ref:t})}));Xa.displayName="DropdownMenuItemIndicator";var Ka=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Aa(r);return(0,s.jsx)(Da,{...o,...n,ref:t})}));Ka.displayName="DropdownMenuSeparator",n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Aa(r);return(0,s.jsx)(ka,{...o,...n,ref:t})})).displayName="DropdownMenuArrow";var qa=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Aa(r);return(0,s.jsx)(Sa,{...o,...n,ref:t})}));qa.displayName="DropdownMenuSubTrigger";var es=n.forwardRef(((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Aa(r);return(0,s.jsx)(Ia,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}));es.displayName="DropdownMenuSubContent";var ts=Ya,rs=_a,ns=Ba,os=Ga,is=Va,as=Wa,ss=Ja,ls=Ha,cs=Za,us=$a,ds=Xa,hs=Ka,ps=qa,fs=es,ms="Popover",[gs,ys]=pe(ms,[Ar]),Ms=Ar(),[Ls,ws]=gs(ms),xs=e=>{const{__scopePopover:t,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:l=!1}=e,c=Ms(t),u=n.useRef(null),[d,h]=n.useState(!1),[p=!1,f]=Oe({prop:o,defaultProp:i,onChange:a});return(0,s.jsx)(Kr,{...c,children:(0,s.jsx)(Ls,{scope:t,contentId:lt(),triggerRef:u,open:p,onOpenChange:f,onOpenToggle:n.useCallback((()=>f((e=>!e))),[f]),hasCustomAnchor:d,onCustomAnchorAdd:n.useCallback((()=>h(!0)),[]),onCustomAnchorRemove:n.useCallback((()=>h(!1)),[]),modal:l,children:r})})};xs.displayName=ms;var vs="PopoverAnchor",js=n.forwardRef(((e,t)=>{const{__scopePopover:r,...o}=e,i=ws(vs,r),a=Ms(r),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=i;return n.useEffect((()=>(l(),()=>c())),[l,c]),(0,s.jsx)(qr,{...a,...o,ref:t})}));js.displayName=vs;var Ns="PopoverTrigger",bs=n.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,o=ws(Ns,r),i=Ms(r),l=a(t,o.triggerRef),c=(0,s.jsx)(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Rs(o.open),...n,ref:l,onClick:ze(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:(0,s.jsx)(qr,{asChild:!0,...i,children:c})}));bs.displayName=Ns;var Cs="PopoverPortal",[Ts,Ds]=gs(Cs,{forceMount:void 0}),ks=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=ws(Cs,t);return(0,s.jsx)(Ts,{scope:t,forceMount:r,children:(0,s.jsx)(Qe,{present:r||i.open,children:(0,s.jsx)(rn,{asChild:!0,container:o,children:n})})})};ks.displayName=Cs;var Es="PopoverContent",Ss=n.forwardRef(((e,t)=>{const r=Ds(Es,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=ws(Es,e.__scopePopover);return(0,s.jsx)(Qe,{present:n||i.open,children:i.modal?(0,s.jsx)(Is,{...o,ref:t}):(0,s.jsx)(zs,{...o,ref:t})})}));Ss.displayName=Es;var Is=n.forwardRef(((e,t)=>{const r=ws(Es,e.__scopePopover),o=n.useRef(null),i=a(t,o),c=n.useRef(!1);return n.useEffect((()=>{const e=o.current;if(e)return No(e)}),[]),(0,s.jsx)(ci,{as:l,allowPinchZoom:!0,children:(0,s.jsx)(Os,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ze(e.onCloseAutoFocus,(e=>{e.preventDefault(),c.current||r.triggerRef.current?.focus()})),onPointerDownOutside:ze(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;c.current=n}),{checkForDefaultPrevented:!1}),onFocusOutside:ze(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})})})})),zs=n.forwardRef(((e,t)=>{const r=ws(Es,e.__scopePopover),o=n.useRef(!1),i=n.useRef(!1);return(0,s.jsx)(Os,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||r.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const n=t.target,a=r.triggerRef.current?.contains(n);a&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})})),Os=n.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...h}=e,p=ws(Es,r),f=Ms(r);return Bn(),(0,s.jsx)(Jn,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,s.jsx)(nt,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1),children:(0,s.jsx)(en,{"data-state":Rs(p.open),role:"dialog",id:p.contentId,...f,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})})),Ps="PopoverClose",As=n.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,o=ws(Ps,r);return(0,s.jsx)(Me.button,{type:"button",...n,ref:t,onClick:ze(e.onClick,(()=>o.onOpenChange(!1)))})}));As.displayName=Ps;var Qs=n.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,o=Ms(r);return(0,s.jsx)(tn,{...o,...n,ref:t})}));function Rs(e){return e?"open":"closed"}Qs.displayName="PopoverArrow";var Ys=xs,Us=js,_s=bs,Bs=ks,Fs=Ss,Gs=As,Vs=Qs,Ws="Progress",[Js,Hs]=pe(Ws),[Zs,$s]=Js(Ws),Xs=n.forwardRef(((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:i=el,...a}=e;!o&&0!==o||nl(o)||console.error(`Invalid prop \`max\` of value \`${o}\` supplied to \`Progress\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`);const l=nl(o)?o:100;null===n||ol(n,l)||console.error(`Invalid prop \`value\` of value \`${`${n}`}\` supplied to \`Progress\`. The \`value\` prop must be:\n  - a positive number\n  - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)\n  - \`null\` or \`undefined\` if the progress is indeterminate.\n\nDefaulting to \`null\`.`);const c=ol(n,l)?n:null,u=rl(c)?i(c,l):void 0;return(0,s.jsx)(Zs,{scope:r,value:c,max:l,children:(0,s.jsx)(Me.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":rl(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":tl(c,l),"data-value":c??void 0,"data-max":l,...a,ref:t})})}));Xs.displayName=Ws;var Ks="ProgressIndicator",qs=n.forwardRef(((e,t)=>{const{__scopeProgress:r,...n}=e,o=$s(Ks,r);return(0,s.jsx)(Me.div,{"data-state":tl(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})}));function el(e,t){return`${Math.round(e/t*100)}%`}function tl(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function rl(e){return"number"==typeof e}function nl(e){return rl(e)&&!isNaN(e)&&e>0}function ol(e,t){return rl(e)&&!isNaN(e)&&e<=t&&e>=0}qs.displayName=Ks;var il=Xs,al=qs,sl="Radio",[ll,cl]=pe(sl),[ul,dl]=ll(sl),hl=n.forwardRef(((e,t)=>{const{__scopeRadio:r,name:o,checked:i=!1,required:l,disabled:c,value:u="on",onCheck:d,...h}=e,[p,f]=n.useState(null),m=a(t,(e=>f(e))),g=n.useRef(!1),y=!p||Boolean(p.closest("form"));return(0,s.jsxs)(ul,{scope:r,checked:i,disabled:c,children:[(0,s.jsx)(Me.button,{type:"button",role:"radio","aria-checked":i,"data-state":gl(i),"data-disabled":c?"":void 0,disabled:c,value:u,...h,ref:m,onClick:ze(e.onClick,(e=>{i||d?.(),y&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())}))}),y&&(0,s.jsx)(ml,{control:p,bubbles:!g.current,name:o,value:u,checked:i,required:l,disabled:c,style:{transform:"translateX(-100%)"}})]})}));hl.displayName=sl;var pl="RadioIndicator",fl=n.forwardRef(((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,i=dl(pl,r);return(0,s.jsx)(Qe,{present:n||i.checked,children:(0,s.jsx)(Me.span,{"data-state":gl(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})}));fl.displayName=pl;var ml=e=>{const{control:t,checked:r,bubbles:o=!0,...i}=e,a=n.useRef(null),l=Pe(r),c=Ae(t);return n.useEffect((()=>{const e=a.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(l!==r&&n){const t=new Event("click",{bubbles:o});n.call(e,r),e.dispatchEvent(t)}}),[l,r,o]),(0,s.jsx)("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:a,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function gl(e){return e?"checked":"unchecked"}var yl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ml="RadioGroup",[Ll,wl]=pe(Ml,[so,cl]),xl=so(),vl=cl(),[jl,Nl]=Ll(Ml),bl=n.forwardRef(((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:i,required:a=!1,disabled:l=!1,orientation:c,dir:u,loop:d=!0,onValueChange:h,...p}=e,f=xl(r),m=Yn(u),[g,y]=Oe({prop:i,defaultProp:o,onChange:h});return(0,s.jsx)(jl,{scope:r,name:n,required:a,disabled:l,value:g,onValueChange:y,children:(0,s.jsx)(yo,{asChild:!0,...f,orientation:c,dir:m,loop:d,children:(0,s.jsx)(Me.div,{role:"radiogroup","aria-required":a,"aria-orientation":c,"data-disabled":l?"":void 0,dir:m,...p,ref:t})})})}));bl.displayName=Ml;var Cl="RadioGroupItem",Tl=n.forwardRef(((e,t)=>{const{__scopeRadioGroup:r,disabled:o,...i}=e,l=Nl(Cl,r),c=l.disabled||o,u=xl(r),d=vl(r),h=n.useRef(null),p=a(t,h),f=l.value===i.value,m=n.useRef(!1);return n.useEffect((()=>{const e=e=>{yl.includes(e.key)&&(m.current=!0)},t=()=>m.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),(0,s.jsx)(Mo,{asChild:!0,...u,focusable:!c,active:f,children:(0,s.jsx)(hl,{disabled:c,required:l.required,checked:f,...d,...i,name:l.name,ref:p,onCheck:()=>l.onValueChange(i.value),onKeyDown:ze((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:ze(i.onFocus,(()=>{m.current&&h.current?.click()}))})})}));Tl.displayName=Cl;var Dl=n.forwardRef(((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=vl(r);return(0,s.jsx)(fl,{...o,...n,ref:t})}));Dl.displayName="RadioGroupIndicator";var kl=bl,El=Tl,Sl=Dl;function Il(e,[t,r]){return Math.min(r,Math.max(t,e))}var zl=["PageUp","PageDown"],Ol=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Pl={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Al="Slider",[Ql,Rl,Yl]=Qn(Al),[Ul,_l]=pe(Al,[Yl]),[Bl,Fl]=Ul(Al),Gl=n.forwardRef(((e,t)=>{const{name:r,min:o=0,max:i=100,step:a=1,orientation:l="horizontal",disabled:c=!1,minStepsBetweenThumbs:u=0,defaultValue:d=[o],value:h,onValueChange:p=()=>{},onValueCommit:f=()=>{},inverted:m=!1,...g}=e,y=n.useRef(new Set),M=n.useRef(0),L="horizontal"===l?Jl:Hl,[w=[],x]=Oe({prop:h,defaultProp:d,onChange:e=>{const t=[...y.current];t[M.current]?.focus(),p(e)}}),v=n.useRef(w);function j(e,t,{commit:r}={commit:!1}){const n=function(e){return(String(e).split(".")[1]||"").length}(a),s=function(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}(Math.round((e-o)/a)*a+o,n),l=Il(s,[o,i]);x(((e=[])=>{const n=function(e=[],t,r){const n=[...e];return n[r]=t,n.sort(((e,t)=>e-t))}(e,l,t);if(function(e,t){if(t>0){const r=function(e){return e.slice(0,-1).map(((t,r)=>e[r+1]-t))}(e);return Math.min(...r)>=t}return!0}(n,u*a)){M.current=n.indexOf(l);const t=String(n)!==String(e);return t&&r&&f(n),t?n:e}return e}))}return(0,s.jsx)(Bl,{scope:e.__scopeSlider,name:r,disabled:c,min:o,max:i,valueIndexToChangeRef:M,thumbs:y.current,values:w,orientation:l,children:(0,s.jsx)(Ql.Provider,{scope:e.__scopeSlider,children:(0,s.jsx)(Ql.Slot,{scope:e.__scopeSlider,children:(0,s.jsx)(L,{"aria-disabled":c,"data-disabled":c?"":void 0,...g,ref:t,onPointerDown:ze(g.onPointerDown,(()=>{c||(v.current=w)})),min:o,max:i,inverted:m,onSlideStart:c?void 0:function(e){const t=function(e,t){if(1===e.length)return 0;const r=e.map((e=>Math.abs(e-t))),n=Math.min(...r);return r.indexOf(n)}(w,e);j(e,t)},onSlideMove:c?void 0:function(e){j(e,M.current)},onSlideEnd:c?void 0:function(){const e=v.current[M.current];w[M.current]!==e&&f(w)},onHomeKeyDown:()=>!c&&j(o,0,{commit:!0}),onEndKeyDown:()=>!c&&j(i,w.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!c){const r=zl.includes(e.key)||e.shiftKey&&Ol.includes(e.key)?10:1,n=M.current;j(w[n]+a*r*t,n,{commit:!0})}}})})})})}));Gl.displayName=Al;var[Vl,Wl]=Ul(Al,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Jl=n.forwardRef(((e,t)=>{const{min:r,max:o,dir:i,inverted:l,onSlideStart:c,onSlideMove:u,onSlideEnd:d,onStepKeyDown:h,...p}=e,[f,m]=n.useState(null),g=a(t,(e=>m(e))),y=n.useRef(),M=Yn(i),L="ltr"===M,w=L&&!l||!L&&l;function x(e){const t=y.current||f.getBoundingClientRect(),n=ic([0,t.width],w?[r,o]:[o,r]);return y.current=t,n(e-t.left)}return(0,s.jsx)(Vl,{scope:e.__scopeSlider,startEdge:w?"left":"right",endEdge:w?"right":"left",direction:w?1:-1,size:"width",children:(0,s.jsx)(Zl,{dir:M,"data-orientation":"horizontal",...p,ref:g,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=x(e.clientX);c?.(t)},onSlideMove:e=>{const t=x(e.clientX);u?.(t)},onSlideEnd:()=>{y.current=void 0,d?.()},onStepKeyDown:e=>{const t=Pl[w?"from-left":"from-right"].includes(e.key);h?.({event:e,direction:t?-1:1})}})})})),Hl=n.forwardRef(((e,t)=>{const{min:r,max:o,inverted:i,onSlideStart:l,onSlideMove:c,onSlideEnd:u,onStepKeyDown:d,...h}=e,p=n.useRef(null),f=a(t,p),m=n.useRef(),g=!i;function y(e){const t=m.current||p.current.getBoundingClientRect(),n=ic([0,t.height],g?[o,r]:[r,o]);return m.current=t,n(e-t.top)}return(0,s.jsx)(Vl,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1,children:(0,s.jsx)(Zl,{"data-orientation":"vertical",...h,ref:f,style:{...h.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=y(e.clientY);l?.(t)},onSlideMove:e=>{const t=y(e.clientY);c?.(t)},onSlideEnd:()=>{m.current=void 0,u?.()},onStepKeyDown:e=>{const t=Pl[g?"from-bottom":"from-top"].includes(e.key);d?.({event:e,direction:t?-1:1})}})})})),Zl=n.forwardRef(((e,t)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:l,onStepKeyDown:c,...u}=e,d=Fl(Al,r);return(0,s.jsx)(Me.span,{...u,ref:t,onKeyDown:ze(e.onKeyDown,(e=>{"Home"===e.key?(a(e),e.preventDefault()):"End"===e.key?(l(e),e.preventDefault()):zl.concat(Ol).includes(e.key)&&(c(e),e.preventDefault())})),onPointerDown:ze(e.onPointerDown,(e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():n(e)})),onPointerMove:ze(e.onPointerMove,(e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)})),onPointerUp:ze(e.onPointerUp,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(e))}))})})),$l="SliderTrack",Xl=n.forwardRef(((e,t)=>{const{__scopeSlider:r,...n}=e,o=Fl($l,r);return(0,s.jsx)(Me.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...n,ref:t})}));Xl.displayName=$l;var Kl="SliderRange",ql=n.forwardRef(((e,t)=>{const{__scopeSlider:r,...o}=e,i=Fl(Kl,r),l=Wl(Kl,r),c=a(t,n.useRef(null)),u=i.values.length,d=i.values.map((e=>oc(e,i.min,i.max))),h=u>1?Math.min(...d):0,p=100-Math.max(...d);return(0,s.jsx)(Me.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...o,ref:c,style:{...e.style,[l.startEdge]:h+"%",[l.endEdge]:p+"%"}})}));ql.displayName=Kl;var ec="SliderThumb",tc=n.forwardRef(((e,t)=>{const r=Rl(e.__scopeSlider),[o,i]=n.useState(null),l=a(t,(e=>i(e))),c=n.useMemo((()=>o?r().findIndex((e=>e.ref.current===o)):-1),[r,o]);return(0,s.jsx)(rc,{...e,ref:l,index:c})})),rc=n.forwardRef(((e,t)=>{const{__scopeSlider:r,index:o,name:i,...l}=e,c=Fl(ec,r),u=Wl(ec,r),[d,h]=n.useState(null),p=a(t,(e=>h(e))),f=!d||Boolean(d.closest("form")),m=Ae(d),g=c.values[o],y=void 0===g?0:oc(g,c.min,c.max),M=function(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}(o,c.values.length),L=m?.[u.size],w=L?function(e,t,r){const n=e/2;return(n-ic([0,50],[0,n])(t)*r)*r}(L,y,u.direction):0;return n.useEffect((()=>{if(d)return c.thumbs.add(d),()=>{c.thumbs.delete(d)}}),[d,c.thumbs]),(0,s.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[u.startEdge]:`calc(${y}% + ${w}px)`},children:[(0,s.jsx)(Ql.ItemSlot,{scope:e.__scopeSlider,children:(0,s.jsx)(Me.span,{role:"slider","aria-label":e["aria-label"]||M,"aria-valuemin":c.min,"aria-valuenow":g,"aria-valuemax":c.max,"aria-orientation":c.orientation,"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0,tabIndex:c.disabled?void 0:0,...l,ref:p,style:void 0===g?{display:"none"}:e.style,onFocus:ze(e.onFocus,(()=>{c.valueIndexToChangeRef.current=o}))})}),f&&(0,s.jsx)(nc,{name:i??(c.name?c.name+(c.values.length>1?"[]":""):void 0),value:g},o)]})}));tc.displayName=ec;var nc=e=>{const{value:t,...r}=e,o=n.useRef(null),i=Pe(t);return n.useEffect((()=>{const e=o.current,r=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(r,"value").set;if(i!==t&&n){const r=new Event("input",{bubbles:!0});n.call(e,t),e.dispatchEvent(r)}}),[i,t]),(0,s.jsx)("input",{style:{display:"none"},...r,ref:o,defaultValue:t})};function oc(e,t,r){return Il(100/(r-t)*(e-t),[0,100])}function ic(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}var ac=Gl,sc=Xl,lc=ql,cc=tc,uc="Switch",[dc,hc]=pe(uc),[pc,fc]=dc(uc),mc=n.forwardRef(((e,t)=>{const{__scopeSwitch:r,name:o,checked:i,defaultChecked:l,required:c,disabled:u,value:d="on",onCheckedChange:h,...p}=e,[f,m]=n.useState(null),g=a(t,(e=>m(e))),y=n.useRef(!1),M=!f||Boolean(f.closest("form")),[L=!1,w]=Oe({prop:i,defaultProp:l,onChange:h});return(0,s.jsxs)(pc,{scope:r,checked:L,disabled:u,children:[(0,s.jsx)(Me.button,{type:"button",role:"switch","aria-checked":L,"aria-required":c,"data-state":Lc(L),"data-disabled":u?"":void 0,disabled:u,value:d,...p,ref:g,onClick:ze(e.onClick,(e=>{w((e=>!e)),M&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())}))}),M&&(0,s.jsx)(Mc,{control:f,bubbles:!y.current,name:o,value:d,checked:L,required:c,disabled:u,style:{transform:"translateX(-100%)"}})]})}));mc.displayName=uc;var gc="SwitchThumb",yc=n.forwardRef(((e,t)=>{const{__scopeSwitch:r,...n}=e,o=fc(gc,r);return(0,s.jsx)(Me.span,{"data-state":Lc(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})}));yc.displayName=gc;var Mc=e=>{const{control:t,checked:r,bubbles:o=!0,...i}=e,a=n.useRef(null),l=Pe(r),c=Ae(t);return n.useEffect((()=>{const e=a.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(l!==r&&n){const t=new Event("click",{bubbles:o});n.call(e,r),e.dispatchEvent(t)}}),[l,r,o]),(0,s.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:a,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Lc(e){return e?"checked":"unchecked"}var wc=mc,xc=yc,vc="Tabs",[jc,Nc]=pe(vc,[so]),bc=so(),[Cc,Tc]=jc(vc),Dc=n.forwardRef(((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:c="automatic",...u}=e,d=Yn(l),[h,p]=Oe({prop:n,onChange:o,defaultProp:i});return(0,s.jsx)(Cc,{scope:r,baseId:lt(),value:h,onValueChange:p,orientation:a,dir:d,activationMode:c,children:(0,s.jsx)(Me.div,{dir:d,"data-orientation":a,...u,ref:t})})}));Dc.displayName=vc;var kc="TabsList",Ec=n.forwardRef(((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,i=Tc(kc,r),a=bc(r);return(0,s.jsx)(yo,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:n,children:(0,s.jsx)(Me.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})}));Ec.displayName=kc;var Sc="TabsTrigger",Ic=n.forwardRef(((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...i}=e,a=Tc(Sc,r),l=bc(r),c=Pc(a.baseId,n),u=Ac(a.baseId,n),d=n===a.value;return(0,s.jsx)(Mo,{asChild:!0,...l,focusable:!o,active:d,children:(0,s.jsx)(Me.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...i,ref:t,onMouseDown:ze(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(n)})),onKeyDown:ze(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(n)})),onFocus:ze(e.onFocus,(()=>{const e="manual"!==a.activationMode;d||o||!e||a.onValueChange(n)}))})})}));Ic.displayName=Sc;var zc="TabsContent",Oc=n.forwardRef(((e,t)=>{const{__scopeTabs:r,value:o,forceMount:i,children:a,...l}=e,c=Tc(zc,r),u=Pc(c.baseId,o),d=Ac(c.baseId,o),h=o===c.value,p=n.useRef(h);return n.useEffect((()=>{const e=requestAnimationFrame((()=>p.current=!1));return()=>cancelAnimationFrame(e)}),[]),(0,s.jsx)(Qe,{present:i||h,children:({present:r})=>(0,s.jsx)(Me.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,id:d,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:r&&a})})}));function Pc(e,t){return`${e}-trigger-${t}`}function Ac(e,t){return`${e}-content-${t}`}Oc.displayName=zc;var Qc=Dc,Rc=Ec,Yc=Ic,Uc=Oc,_c=n.forwardRef(((e,t)=>{const{pressed:r,defaultPressed:n=!1,onPressedChange:o,...i}=e,[a=!1,l]=Oe({prop:r,onChange:o,defaultProp:n});return(0,s.jsx)(Me.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:ze(e.onClick,(()=>{e.disabled||l(!a)}))})}));_c.displayName="Toggle";var Bc="ToggleGroup",[Fc,Gc]=pe(Bc,[so]),Vc=so(),Wc=n.forwardRef(((e,t)=>{const{type:r,...n}=e;if("single"===r){const e=n;return(0,s.jsx)(Zc,{...e,ref:t})}if("multiple"===r){const e=n;return(0,s.jsx)($c,{...e,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${Bc}\``)}));Wc.displayName=Bc;var[Jc,Hc]=Fc(Bc),Zc=n.forwardRef(((e,t)=>{const{value:r,defaultValue:o,onValueChange:i=()=>{},...a}=e,[l,c]=Oe({prop:r,defaultProp:o,onChange:i});return(0,s.jsx)(Jc,{scope:e.__scopeToggleGroup,type:"single",value:l?[l]:[],onItemActivate:c,onItemDeactivate:n.useCallback((()=>c("")),[c]),children:(0,s.jsx)(qc,{...a,ref:t})})})),$c=n.forwardRef(((e,t)=>{const{value:r,defaultValue:o,onValueChange:i=()=>{},...a}=e,[l=[],c]=Oe({prop:r,defaultProp:o,onChange:i}),u=n.useCallback((e=>c(((t=[])=>[...t,e]))),[c]),d=n.useCallback((e=>c(((t=[])=>t.filter((t=>t!==e))))),[c]);return(0,s.jsx)(Jc,{scope:e.__scopeToggleGroup,type:"multiple",value:l,onItemActivate:u,onItemDeactivate:d,children:(0,s.jsx)(qc,{...a,ref:t})})}));Wc.displayName=Bc;var[Xc,Kc]=Fc(Bc),qc=n.forwardRef(((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:i,dir:a,loop:l=!0,...c}=e,u=Vc(r),d=Yn(a),h={role:"group",dir:d,...c};return(0,s.jsx)(Xc,{scope:r,rovingFocus:o,disabled:n,children:o?(0,s.jsx)(yo,{asChild:!0,...u,orientation:i,dir:d,loop:l,children:(0,s.jsx)(Me.div,{...h,ref:t})}):(0,s.jsx)(Me.div,{...h,ref:t})})})),eu="ToggleGroupItem",tu=n.forwardRef(((e,t)=>{const r=Hc(eu,e.__scopeToggleGroup),o=Kc(eu,e.__scopeToggleGroup),i=Vc(e.__scopeToggleGroup),a=r.value.includes(e.value),l=o.disabled||e.disabled,c={...e,pressed:a,disabled:l},u=n.useRef(null);return o.rovingFocus?(0,s.jsx)(Mo,{asChild:!0,...i,focusable:!l,active:a,ref:u,children:(0,s.jsx)(ru,{...c,ref:t})}):(0,s.jsx)(ru,{...c,ref:t})}));tu.displayName=eu;var ru=n.forwardRef(((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,i=Hc(eu,r),a={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},l="single"===i.type?a:void 0;return(0,s.jsx)(_c,{...l,...o,ref:t,onPressedChange:e=>{e?i.onItemActivate(n):i.onItemDeactivate(n)}})})),nu=Wc,ou=tu,iu={50:"rgba(255,255,255, 0.05)",100:"rgba(255,255,255, 0.1)",200:"rgba(255,255,255, 0.2)",300:"rgba(255,255,255, 0.3)",400:"rgba(255,255,255, 0.4)",500:"rgba(255,255,255, 0.5)",600:"rgba(255,255,255, 0.6)",700:"rgba(255,255,255, 0.8)",800:"rgba(255,255,255, 0.9)",900:"#FFFFFF",DEFAULT:"#FFFFFF"},au={50:"#F7F7F8",100:"#EBEBEF",200:"#D1D1DB",300:"#A9A9BC",400:"#8A8AA3",500:"#6C6C89",600:"#55556D",700:"#3F3F50",800:"#282833",900:"#121217",DEFAULT:"#6C6C89"},su={50:"#F4F1FD",100:"#E2DAFB",200:"#C6B6F7",300:"#A991F3",400:"#8D6CEF",500:"#7047EB",600:"#5423E7",700:"#4316CA",800:"#3712A5",900:"#2B0E81",DEFAULT:"#7047EB"},lu=(au[900],su[500],au[900],au[50],au[900],su[400],su[500],au[900],iu[900],function(e,...t){return"function"==typeof e?C(re,e,...t):C((()=>function(e,{cacheSize:t,prefix:r,separator:n,experimentalParseClassName:o,extend:i={},override:a={}}){ne(e,"cacheSize",t),ne(e,"prefix",r),ne(e,"separator",n),ne(e,"experimentalParseClassName",o);for(const t in a)oe(e[t],a[t]);for(const t in i)ie(e[t],i[t]);return e}(re(),e)),...t)}({extend:{theme:{padding:["2px","4px","6px","8px","12px","14px","16px"]}}})),cu=(...e)=>lu(function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=p(e))&&(n&&(n+=" "),n+=t);return n}(e)),uu=e=>{let t=e.trim();if(0===t.length||1===t.length||2===t.length)return t.toUpperCase();let r=t.split(" ");return 1===r.length?t.charAt(0).toUpperCase():r.length>1?(r[0]?.charAt(0).toUpperCase()??"")+(r[r.length-1]?.charAt(0).toUpperCase()??""):e},du=e=>n.isValidElement(e),hu=e=>n.isValidElement(e)&&typeof e.props.children<"u",pu=ue({base:"group inline-flex shrink-0 select-none items-center justify-center text-sm font-medium leading-6 transition-colors duration-100 wg-antialiased focus:outline-0 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none",variants:{size:{"xs-icon":"gap-0 px-8px py-1",sm:"gap-0 px-8px py-1",md:"gap-1 px-12px py-2"},shape:{rounded:"rounded-lg",pill:"rounded-full"},variant:{primary:"bg-primary text-white outline-primary hover:bg-primary-600 disabled:opacity-50",secondary:"bg-secondary text-white outline-secondary hover:bg-secondary-700 disabled:bg-secondary-200 dark:text-secondary-900 dark:hover:bg-secondary-800 dark:disabled:text-wg-white-500",tertiary:"bg-surface hover:bg-surface-100",outline:"dark:shadow:none border border-surface-200 shadow-wg-xs [--wg-border-width:1px] hover:bg-surface disabled:border-surface-50 dark:border-surface-100",transparent:"bg-transparent hover:bg-surface",link:"p-0 underline underline-offset-3 focus-visible:text-primary"},destructive:{true:[],false:[]}},compoundVariants:[{variant:"outline",size:"md",class:"py-8px"},{variant:"outline",size:"sm",class:"py-4px"},{variant:["primary","secondary"],destructive:!0,class:"bg-destructive text-white outline-destructive hover:bg-destructive-600 disabled:bg-destructive disabled:opacity-50 dark:text-white dark:hover:bg-destructive-600 dark:disabled:text-white"},{variant:"tertiary",destructive:!0,class:"bg-destructive-50 hover:bg-destructive-100 disabled:bg-destructive-50 dark:bg-surface dark:hover:bg-surface-200"},{variant:"transparent",destructive:!0,class:"hover:bg-destructive-50 dark:hover:bg-surface"},{variant:"outline",destructive:!0,class:"border-destructive hover:bg-destructive-50 disabled:border-destructive-100 dark:border-destructive dark:hover:bg-surface dark:disabled:border-destructive-900"},{variant:"link",destructive:!0,class:"hover:text-destructive-800 focus-visible:text-destructive-800 dark:hover:text-destructive-400 dark:focus-visible:text-destructive-400"},{variant:["outline","tertiary","transparent","link"],class:"text-surface-900 outline-primary disabled:text-surface-300"},{variant:["outline","tertiary","transparent","link"],destructive:!0,class:"text-destructive-700 outline-destructive disabled:text-destructive-300 dark:text-destructive-500 dark:disabled:text-destructive/50"}],defaultVariants:{shape:"rounded",size:"md",variant:"primary"}}),fu=ue({base:"text-current",variants:{variant:{primary:"",secondary:"",tertiary:"",outline:"",transparent:"",link:""},destructive:{true:"text-current"},size:{"xs-icon":"size-5",sm:"size-5",md:"size-6"}},compoundVariants:[{variant:["tertiary","outline","transparent","link"],class:"opacity-50"}],defaultVariants:{variant:"primary",size:"md"}}),mu={md:"p-8px",sm:"p-6px","xs-icon":"p-2px"},gu=n.forwardRef((({after:e,asChild:t=!1,before:r,children:o,className:i,destructive:a=!1,disabled:c=!1,shape:u="rounded",size:d="md",variant:h="primary",isIconOnly:p=!1,...f},m)=>{let g=t&&du(o),y=g?l:"button",M=n.useMemo((()=>(r&&!e&&!o&&d)??(e&&!r&&!o&&d)??!0===p??!1),[r,e,o,d,p]),L=n.useMemo((()=>["link","outline","tertiary","transparent"].includes(h)),[h]),w=e=>{let t=n.isValidElement(e)?l:"span",r=h&&L&&M&&!a,o=cu(fu({size:d,variant:h,destructive:a}),r&&"group-hover:opacity-70",a&&"opacity-100",e.props?.className);return(0,s.jsx)(t,{className:o,children:e})},x=g?n.cloneElement(o,{children:(0,s.jsxs)(s.Fragment,{children:[r?w(r):null,hu(o)&&p&&w(o.props.children),hu(o)&&!p&&(0,s.jsx)(s.Fragment,{children:o.props.children}),e?w(e):null]})}):(0,s.jsxs)(s.Fragment,{children:[r?w(r):null,n.isValidElement(o)&&p&&w(o),o&&!p&&(0,s.jsx)("span",{className:"px-1",children:o}),e?w(e):null]});return(0,s.jsx)(y,{ref:m,className:cu(pu({size:d,variant:h,shape:u,destructive:a}),"link"===h&&o&&"focus-visible:outline-0",M&&mu[d],i),disabled:c,...f,children:x})}));gu.displayName="Button";var yu=gu,Mu=n.forwardRef(((e,t)=>{let{size:r,title:n,...o}=e,i=n?`wg-${Date.now()}-${Math.floor(1e4*Math.random())}`:void 0;return(0,s.jsxs)("svg",{ref:t,"aria-labelledby":i,className:"text-inherit",fill:"currentColor",height:r,stroke:"none",viewBox:"0 0 24 24",width:r,...o,children:[n&&(0,s.jsx)("title",{id:i,children:n}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M6.21967 6.21967C6.51256 5.92678 6.98744 5.92678 7.28033 6.21967L12 10.9393L16.7197 6.21967C17.0126 5.92678 17.4874 5.92678 17.7803 6.21967C18.0732 6.51256 18.0732 6.98744 17.7803 7.28033L13.0607 12L17.7803 16.7197C18.0732 17.0126 18.0732 17.4874 17.7803 17.7803C17.4874 18.0732 17.0126 18.0732 16.7197 17.7803L12 13.0607L7.28033 17.7803C6.98744 18.0732 6.51256 18.0732 6.21967 17.7803C5.92678 17.4874 5.92678 17.0126 6.21967 16.7197L10.9393 12L6.21967 7.28033C5.92678 6.98744 5.92678 6.51256 6.21967 6.21967Z",fillRule:"evenodd"})]})}));Mu.displayName="CloseIcon";var Lu=Mu,wu=n.forwardRef(((e,t)=>{let{size:r=24,title:n,...o}=e,i=n?`wg-${Date.now()}-${Math.floor(1e4*Math.random())}`:void 0;return(0,s.jsxs)("svg",{ref:t,"aria-labelledby":i,fill:"currentColor",height:r,viewBox:"0 0 24 24",width:r,...o,children:[n&&(0,s.jsx)("title",{id:i,children:n}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 9C11 8.44772 11.4477 8 12 8C12.5523 8 13 8.44772 13 9C13 9.55228 12.5523 10 12 10C11.4477 10 11 9.55228 11 9ZM12 12C12.5523 12 13 12.4477 13 13V15C13 15.5523 12.5523 16 12 16C11.4477 16 11 15.5523 11 15V13C11 12.4477 11.4477 12 12 12Z",fillRule:"evenodd"})]})}));wu.displayName="InfoIcon";var xu=wu,vu=n.forwardRef(((e,t)=>{let{size:r,title:n,...o}=e,i=n?`wg-${Date.now()}-${Math.floor(1e4*Math.random())}`:void 0;return(0,s.jsxs)("svg",{ref:t,"aria-labelledby":i,fill:"none",height:r,stroke:"currentColor",viewBox:"0 0 24 40",width:r,...o,children:[n&&(0,s.jsx)("title",{id:i,children:n}),(0,s.jsx)("path",{clipRule:"evenodd",d:"m6.944 23.185 7.528 3.473a3.85 3.85 0 0 1 1.947 1.982c.9 2.1-.33 4.247-2.26 5.019-1.93.772-3.988.275-4.923-1.908L5.96 24.086c-.254-.594.383-1.178.984-.9ZM7.396 20.938l7.77-2.931c2.583-.975 5.405.869 5.367 3.547l-.003.105c-.055 2.608-2.798 4.36-5.324 3.438l-7.803-2.85a.693.693 0 0 1-.007-1.31ZM6.962 19.922l7.64-3.238c2.538-1.077 3.182-4.307 1.194-6.174a9.046 9.046 0 0 0-.079-.073c-1.949-1.805-5.171-1.17-6.281 1.208l-3.428 7.346c-.273.586.345 1.19.954.931ZM4.995 18.642l2.777-7.598a3.67 3.67 0 0 0-.075-2.732C6.795 6.214 4.354 5.536 2.424 6.31c-1.93.773-3.02 2.53-2.083 4.713l3.298 7.656c.256.593 1.134.57 1.356-.037Z",fillRule:"evenodd"})]})}));vu.displayName="LemonSqueezy";var ju=vu,Nu=n.forwardRef(((e,t)=>{let{size:r=24,title:n,...o}=e,i=n?`wg-${Date.now()}-${Math.floor(1e4*Math.random())}`:void 0;return(0,s.jsxs)("svg",{ref:t,"aria-labelledby":i,fill:"currentColor",height:"8",width:r,...o,viewBox:"0 0 24 8",children:[n&&(0,s.jsx)("title",{id:i,children:n}),(0,s.jsx)("path",{d:"M4.55486 0H19.586C17.0713 0 14.5567 3.5825 13.1681 5.95276C12.7242 6.71045 11.4928 6.67361 11.0817 5.89769C9.82569 3.52743 7.46729 0 4.55486 0Z"})]})}));Nu.displayName="TippyIcon";var bu=Nu,Cu=ue({variants:{variant:{inline:"rounded-lg px-2 py-3 sm:items-center",expanded:"gap-1 rounded-r-lg border-l-2 p-4 pl-14px"},color:{gray:"border-surface-200 text-surface-500",primary:"border-primary text-surface-500",info:"border-wg-blue bg-wg-blue-50 text-wg-blue-700",success:"border-wg-green bg-wg-green-50 text-wg-green-700",error:"border-wg-red bg-wg-red-50 text-wg-red-700",warning:"border-wg-yellow bg-wg-yellow-50 text-wg-yellow-800"}},defaultVariants:{variant:"inline",color:"gray"}}),Tu=ue({base:"text-start font-medium",variants:{color:{gray:"text-surface-900",primary:"text-surface-900",info:"text-wg-blue-800 dark:text-wg-blue",success:"text-wg-green-800 dark:text-wg-green",error:"text-wg-red-800 dark:text-wg-red",warning:"text-wg-yellow-800 dark:text-wg-yellow"}},defaultVariants:{color:"gray"}}),Du=ue({variants:{color:{gray:"text-surface-200",primary:"text-primary",info:"text-wg-blue",success:"text-wg-green-600",error:"text-wg-red",warning:"text-wg-yellow"}},defaultVariants:{color:"gray"}}),ku=n.forwardRef((({after:e,before:t,className:r,closable:o,color:i,variant:a="inline",children:l,title:c,onClose:u,...d},h)=>{let[p,f]=n.useState(!0),m=n.useCallback((e=>{e.defaultPrevented||f(!1),u&&u(e)}),[u]);return p?(0,s.jsxs)(Eu,{ref:h,className:cu(Cu({variant:a,color:i}),r),...d,children:[(0,s.jsx)(Su,{className:cu("inline"===a&&"pl-1"),color:i,children:t}),(0,s.jsxs)("div",{className:cu("flex grow flex-col items-start","expanded"===a&&"items-start gap-3 px-2","inline"===a&&"px-2 sm:flex-row sm:items-center sm:gap-2","inline"===a&&o&&"pr-1"),children:[(0,s.jsxs)("div",{className:cu("flex grow flex-col items-start","expanded"===a&&"items-start","inline"===a&&"sm:flex-row sm:items-center sm:gap-2"),children:[c&&(0,s.jsx)(zu,{color:i,children:c}),l&&(0,s.jsx)(Ou,{children:l})]}),e&&(0,s.jsx)("div",{className:cu("inline"===a&&"mt-3 sm:ml-auto sm:mt-0"),children:(0,s.jsx)(Iu,{children:e})})]}),o&&(0,s.jsx)(Pu,{className:cu("inline"===a&&"pr-1"),onClick:m})]}):null})),Eu=n.forwardRef((({className:e,children:t,...r},n)=>(0,s.jsx)("div",{ref:n,className:cu("wg-antialiased flex text-sm leading-6 bg-surface dark:bg-surface dark:text-surface-500 items-start",e),role:"alert",...r,children:t}))),Su=n.forwardRef((({className:e,color:t,children:r,...n},o)=>{let i=du(r)?l:"span";return r?(0,s.jsx)(i,{ref:o,className:cu(Du({color:t}),e),...n,children:r}):(0,s.jsx)(xu,{className:cu("size-6 shrink-0",Du({color:t}),e)})})),Iu=n.forwardRef((({className:e,children:t,...r},n)=>{let o=du(t)?l:"span";return(0,s.jsx)(o,{ref:n,className:e,...r,children:t})})),zu=n.forwardRef((({className:e,color:t,children:r,...n},o)=>{let i=du(r)?l:"p";return(0,s.jsx)(i,{ref:o,className:cu(Tu({color:t}),e),...n,children:r})})),Ou=n.forwardRef((({className:e,children:t,...r},n)=>{let o=du(t)?l:"p";return(0,s.jsx)(o,{ref:n,className:cu("text-start",e),...r,children:t})})),Pu=n.forwardRef((({children:e,...t},r)=>{return(0,s.jsx)(yu,{ref:r,after:(n=e,du(n)?n:(0,s.jsx)(Lu,{"aria-label":"Close"})),shape:"rounded",size:"xs-icon",variant:"link",...t});var n}));ku.displayName="Alert",Eu.displayName="AlertRoot",Iu.displayName="AlertAfter",Su.displayName="AlertBefore",Pu.displayName="AlertCloseButton",Ou.displayName="AlertDescription",zu.displayName="AlertTitle";var Au=ku,Qu="h-10 min-w-10 [--wg-notification-size:10px] relative inline-flex aspect-square shrink-0 items-center wg-antialiased",Ru="absolute right-0 bottom-0 aspect-square bg-wg-gray-300 h-[var(--wg-notification-size,10px)] rounded-full ring-background",Yu="absolute right-0 top-0 aspect-square h-[var(--wg-notification-size,10px)] rounded-full ring-background",Uu=ue({base:Qu,variants:{size:{xxs:"h-4 min-w-4 text-xxs [--wg-notification-size:4px]",xs:"h-6 min-w-6 text-xs [--wg-notification-size:6px]",sm:"h-8 min-w-8 text-sm [--wg-notification-size:8px]",md:"h-10 min-w-10 text-base [--wg-notification-size:10px]",lg:"h-12 min-w-12 text-lg [--wg-notification-size:12px]",xl:"h-14 min-w-14 text-xl [--wg-notification-size:14px]","2xl":"h-16 min-w-16 text-2xl [--wg-notification-size:16px]"}},defaultVariants:{size:"md"}}),_u=ue({variants:{size:{xxs:"size-3",xs:"size-4",sm:"size-5",md:"size-6",lg:"size-7",xl:"size-8","2xl":"size-10"}},defaultVariants:{size:"md"}}),Bu=ue({base:Ru,variants:{status:{primary:"bg-primary",gray:"bg-wg-gray",green:"bg-wg-green",yellow:"bg-wg-yellow",red:"bg-wg-red"}},defaultVariants:{status:"gray"}}),Fu=ue({base:Yu,variants:{notification:{primary:"bg-primary",gray:"bg-wg-gray",green:"bg-wg-green",yellow:"bg-wg-yellow",red:"bg-wg-red"}},defaultVariants:{notification:"gray"}}),Gu=n.forwardRef((({className:e,...t},r)=>(0,s.jsx)(Ee,{ref:r,className:cu(Qu,e),...t}))),Vu=n.forwardRef((({className:e,...t},r)=>(0,s.jsx)(Se,{ref:r,className:cu("aspect-square w-full grow rounded-full object-cover object-center",e),...t}))),Wu=n.forwardRef((({className:e,ring:t,...r},n)=>(0,s.jsx)("span",{ref:n,className:cu(Ru,"bg-wg-gray",1===t?"ring-1":"ring-2",e),...r}))),Ju=n.forwardRef((({className:e,ring:t,...r},n)=>(0,s.jsx)("span",{ref:n,className:cu(Yu,"bg-wg-gray",1===t?"ring-1":"ring-2",e),...r}))),Hu=n.forwardRef((({className:e,...t},r)=>(0,s.jsx)(Ie,{ref:r,className:cu("flex aspect-square grow items-center justify-center rounded-full bg-surface-100 text-surface-400 dark:bg-neutral-800",e),...t}))),Zu=n.forwardRef(((e,t)=>{let{alt:r,children:o,className:i,initials:a,notification:l,size:c="md",src:u,delayMs:d,status:h,style:p,...f}=e,m=n.useMemo((()=>{let e=["bg-wg-blue","bg-wg-pink","bg-wg-purple","bg-wg-green","bg-wg-orange","bg-wg-yellow","bg-wg-red"];return((e,t)=>t[Math.abs(e)%t.length])((e=>{let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t})((a??"")+(c??"")+(h??"")+(l??"")+(u??"")),e)??!e[0]}),[a,l,c,u,h]);return(0,s.jsxs)(Gu,{className:cu(Uu({size:c}),!u&&!a&&o&&"aspect-auto w-auto"),children:[u&&(0,s.jsx)(Vu,{ref:t,alt:r,className:i,src:u,style:p,...f}),o&&(0,s.jsx)(Hu,{ref:t,"aria-label":r,delayMs:d,asChild:du(o),className:i,style:p,children:o}),!o&&u&&!a&&(0,s.jsx)(Hu,{"aria-label":r,className:cu("text-surface-300",i),style:p,children:(0,s.jsx)(ju,{"aria-hidden":"true",className:cu(_u({size:c}),"mr-[-4.5%] w-auto fill-current stroke-none")})}),!o&&a&&(0,s.jsx)(Ie,{ref:t,"aria-label":r,className:cu("flex aspect-square grow select-none items-center justify-center rounded-full uppercase text-white",m,i),style:p,...f,children:uu(a)}),!o&&!u&&!a&&(0,s.jsx)(Hu,{ref:t,"aria-label":r,className:i,role:"img",style:p,...f,children:(0,s.jsx)(he.nys,{className:_u({size:c})})}),h&&(0,s.jsx)(Wu,{className:Bu({status:h}),ring:"xxs"===c?1:2}),l&&(0,s.jsx)(Ju,{className:Fu({notification:l}),ring:"xxs"===c?1:2})]})}));Zu.displayName="Avatar",Gu.displayName="AvatarRoot",Hu.displayName=Ie.displayName,Vu.displayName="AvatarImage",Ju.displayName="AvatarNotification",Wu.displayName="AvatarStatus";var $u=Object.assign(Zu,{Fallback:Hu,Image:Vu,Notification:Ju,Root:Gu,Status:Wu}),Xu="wg-antialiased flex flex-wrap items-center gap-y-1 -space-x-3",Ku=ue({base:Xu,variants:{size:{xs:"-space-x-1",sm:"-space-x-2",md:"-space-x-3",lg:"-space-x-4",xl:"-space-x-5","2xl":"-space-x-6"}},defaultVariants:{size:"md"}}),qu=n.forwardRef((({children:e,className:t,...r},n)=>(0,s.jsx)("div",{ref:n,className:cu(Xu,t),...r,children:e}))),ed=n.forwardRef((({label:e,size:t,className:r,children:n,...o},i)=>(0,s.jsxs)($u,{ref:i,asChild:du(n),className:cu("aspect-auto h-full bg-surface-200 px-2 font-medium text-white ring-2 ring-background dark:text-white",r),size:t,...o,children:[!n&&(0,s.jsx)("span",{children:e}),n]}))),td=n.forwardRef((({children:e,className:t,initials:r,...n},o)=>(0,s.jsx)($u,{ref:o,className:cu("ring-2 ring-background backdrop-blur-3xl",t),initials:r,...n,children:e}))),rd=n.forwardRef(((e,t)=>{let{items:r,className:n,children:o,size:i,previousOnTop:a,moreLabel:l,...c}=e;return(0,s.jsx)(qu,{ref:t,className:cu(Ku({size:i}),n),...c,children:(0,s.jsxs)(s.Fragment,{children:[r.length>0?r.map(((e,t)=>{let{alt:n,className:o,src:l,style:c,...u}=e,d={zIndex:a?r.length-t:void 0,...c};return(0,s.jsx)(td,{alt:n,className:o,size:i,src:l,style:d,...u},`avatar-${t}`)})):null,o,l&&(0,s.jsx)(ed,{label:l,size:i})]})})})),nd=Object.assign(rd,{Root:qu,Item:td,Label:ed});qu.displayName="AvatarGroupRoot",td.displayName="AvatarGroupItem",ed.displayName="AvatarMoreLabel",rd.displayName="AvatarGroup";var od=nd,id="dark:wg-bg-surface/5 dark:outline-surface-50",ad=ue({base:"inline-flex items-center rounded-lg px-2 py-1 wg-antialiased",variants:{size:{sm:"text-xs leading-4",md:"text-sm leading-5"},color:{gray:["text-surface-900 outline-surface-200 wg-bg-surface dark:text-surface-800 dark:outline-surface-100",id],green:["text-wg-green-800 outline-wg-green-200 wg-bg-wg-green-50 dark:text-wg-green",id],purple:["text-wg-purple-700 outline-wg-purple-200 wg-bg-wg-purple-50 dark:text-wg-purple-400",id],orange:["text-wg-orange-800 outline-wg-orange-200 wg-bg-wg-orange-50 dark:text-wg-orange",id],red:["text-wg-red-700 outline-wg-red-200 wg-bg-wg-red-50 dark:text-wg-red",id],pink:["text-wg-pink-800 outline-wg-pink-200 wg-bg-wg-pink-50 dark:text-wg-pink",id],blue:["text-wg-blue-700 outline-wg-blue-200 wg-bg-wg-blue-50 dark:text-wg-blue",id],yellow:["text-wg-yellow-800 outline-wg-yellow-300 wg-bg-wg-yellow-50 dark:text-wg-yellow",id],primary:["text-primary-800 outline-primary-200 wg-bg-primary-50 dark:text-primary-300",id]},shape:{rounded:"rounded-lg",pill:"rounded-full"},stroke:{true:"outline outline-1 -outline-offset-1",false:""}},defaultVariants:{color:"gray",shape:"rounded"}}),sd=ue({base:"size-4",variants:{color:{gray:"text-surface-400",green:"text-wg-green-700",purple:"text-wg-purple-700",orange:"text-wg-orange-700",red:"text-wg-red-700",pink:"text-wg-pink-700",blue:"text-wg-blue-700",yellow:"text-wg-yellow-700",primary:"text-primary-700"}},compoundVariants:[{color:["green","purple","orange","red","pink","blue","yellow","primary"],class:"dark:text-current"}],defaultVariants:{color:"gray"}}),ld=n.forwardRef(((e,t)=>{let{after:r,before:o,children:i,className:a,color:c="gray",size:u="md",shape:d="rounded",stroke:h=!1,...p}=e,f=e=>{let t=n.isValidElement(e)?l:"span",r=cu(sd({color:c}),e.props?.className);return(0,s.jsx)(t,{className:r,children:e})};return(0,s.jsxs)("span",{ref:t,className:cu(ad({color:c,shape:d,size:u,stroke:h}),a),...p,children:[o&&f(o),i&&(0,s.jsx)("span",{className:cu("md"===u&&"px-1","sm"===u&&"px-0.5"),children:i}),r&&f(r)]})}));ld.displayName="Badge";var cd=ld,ud=n.createContext(null),dd=n.forwardRef(((e,t)=>{let{className:r,children:n,size:o="md",disabled:i=!1,orientation:a="horizontal",...l}=e;return(0,s.jsx)(ud.Provider,{value:{size:o,disabled:i,orientation:a},children:(0,s.jsx)("div",{ref:t,className:cu("dark:shadow:none inline-flex flex-wrap items-stretch divide-surface-100 rounded-[9px] border border-surface-200 shadow-wg-xs dark:border-surface-100","vertical"===a&&"flex-col divide-y","horizontal"===a&&"divide-x",r),...l,children:n})})})),hd=n.forwardRef(((e,t)=>{let{after:r,asChild:o=!1,before:i,children:a,className:c,disabled:u=!1,isIconOnly:d,...h}=e,p=function(){let e=n.useContext(ud);if(!e)throw new Error("ButtonGroup.Item must be used within a ButtonGroup or ButtonGroup.Root");return e}(),{disabled:f,orientation:m="horizontal",size:g="md"}=p||{},y=o&&du(a)?l:yu,M=n.useMemo((()=>(i&&!r&&!a&&g)??(r&&!i&&!a&&g)??!0===d??!1),[i,r,a,g,d]);return(0,s.jsx)(y,{ref:t,className:cu("flex items-center rounded-none bg-clip-padding focus-visible:z-10 focus-visible:-outline-offset-1","last-of-type:[&+span]:hidden","horizontal"===m?"first-of-type:rounded-s-lg last-of-type:rounded-e-lg":"first-of-type:rounded-t-lg last-of-type:rounded-b-lg","sm"===g&&"max-h-[30px]",M&&"sm"===g&&"px-2 py-6px [--wg-border-width:1px]",M&&"md"===g&&"px-3 py-8px [--wg-border-width:1px]",c),after:r,before:i,disabled:u||f,isIconOnly:d,size:g,variant:"transparent",...h,children:a})}));dd.displayName="ButtonGroup",hd.displayName="ButtonGroupItem";var pd=Object.assign(dd,{Root:dd,Item:hd}),fd=n.forwardRef((({className:e,children:t,asChild:r=(t?du(t):void 0===t),width:n=24,height:o=8,...i},a)=>(0,s.jsx)(In,{ref:a,asChild:r,className:cu(e),height:o,viewBox:"0 0 24 8",width:n,...i,children:t||(0,s.jsx)(bu,{className:"text-background"})})));fd.displayName=In.displayName;var md=fd,gd=n.forwardRef(((e,t)=>{let{children:r,asChild:n=(r?du(r):void 0===r),className:o,onClick:i,...a}=e;return(0,s.jsx)(wn,{ref:t,asChild:n,...a,children:r||(0,s.jsx)("span",{className:cu(i?"cursor-pointer":"cursor-default","inline-flex items-center justify-center rounded-full text-surface-200 transition-colors duration-100 focus:outline-none focus-visible:text-primary focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary data-[state=delayed-open]:text-primary data-[state=instant-open]:!transition-none dark:hover:text-primary dark:focus-visible:text-primary [&:not([data-state=closed])]:text-primary",o),onClick:i,role:i?"button":void 0,tabIndex:0,onKeyDown:e=>{("Enter"===e.key||"Space"===e.key)&&i&&i(e)},children:(0,s.jsx)(xu,{className:"scale-100"})})})}));gd.displayName=wn.displayName;var yd=gd,Md=["origin-[var(--radix-popper-transform-origin)]","data-[side=bottom]:animate-wg-fade-in-down data-[side=top]:animate-wg-fade-in-up data-[side=left]:animate-wg-fade-in-left data-[side=right]:animate-wg-fade-in-right data-[state=closed]:animate-wg-fade-out","data-[state=instant-open]:!animate-none"],Ld=ue({base:"z-50 rounded-md text-start text-white wg-antialiased",variants:{size:{sm:"max-w-xs px-3 py-2 text-xs",md:"max-w-[350px] p-4 text-sm"},color:{primary:"text-white wg-bg-primary",secondary:"text-white wg-bg-secondary dark:text-secondary-900",soft:"border border-transparent text-wg-gray-700 shadow-wg-overlay wg-bg-white dark:border-surface dark:bg-neutral-800 dark:text-surface-700 dark:shadow-none"}},defaultVariants:{size:"sm",color:"primary"}}),wd=n.forwardRef(((e,t)=>{let{delayDuration:r=200,skipDelayDuration:n=0,...o}=e;return(0,s.jsx)(zn,{delayDuration:r,skipDelayDuration:n,...o})})),xd=n.forwardRef(((e,t)=>{let{delayDuration:r=200,...n}=e;return(0,s.jsx)(On,{delayDuration:r,...n})})),vd=n.forwardRef(((e,t)=>{let{alignOffset:r=-12,animation:n=!0,arrow:o=!0,arrowPadding:i=12,children:a,content:l,className:c,collisionPadding:u=12,sideOffset:d=2,size:h,color:p,...f}=e;return(0,s.jsxs)(An,{ref:t,alignOffset:r,arrowPadding:i,className:cu(Ld({size:h,color:p}),n&&Md,c),collisionPadding:u,sideOffset:d,...f,children:[a??l,o?(0,s.jsx)(md,{}):null]})})),jd=n.forwardRef(((e,t)=>{let{defaultOpen:r,delayDuration:n=200,disableHoverableContent:o,onOpenChange:i,open:a,asChild:l,children:c,onClick:u,...d}=e;return(0,s.jsx)(wd,{children:(0,s.jsxs)(xd,{defaultOpen:r,delayDuration:n,disableHoverableContent:o,onOpenChange:i,open:a,children:[(0,s.jsx)(vd,{ref:t,...d}),(0,s.jsx)(yd,{asChild:l,onClick:u,children:c})]})})})),Nd=Object.assign(jd,{Arrow:md,Content:vd,Portal:Pn,Provider:wd,Root:xd,Trigger:yd}),bd=n.forwardRef((({asChild:e=!1,children:t,className:r,description:o,disabled:i,required:a=!1,tooltip:l,...c},u)=>{let d=e&&du(t),h=d?n.cloneElement(t,{children:(0,s.jsxs)(s.Fragment,{children:[hu(t)&&t.props.children,a&&(0,s.jsx)("span",{className:"text-destructive",children:"*"})]})}):(0,s.jsxs)(s.Fragment,{children:[t?(0,s.jsx)("span",{children:t}):null,o?(0,s.jsx)("span",{className:cu("font-normal text-surface-500",i&&"text-current"),children:o}):null,a?(0,s.jsx)("span",{className:"font-normal text-destructive",children:"*"}):null]});return t||l||o?(0,s.jsxs)("div",{className:"wg-label inline-flex shrink-0 items-center gap-1 text-surface-900 wg-antialiased",children:[(0,s.jsx)(et,{ref:u,asChild:d,className:cu("wg-label inline-flex cursor-pointer items-center gap-1 text-sm font-medium leading-6",i&&"pointer-events-none text-surface-300",r),...c,children:h}),l?(0,s.jsx)(Nd,{content:l}):null]}):null})),Cd=n.forwardRef((({children:e,error:t,disabled:r,className:n,...o},i)=>{let a=e&&du(e)?l:"span",c=o["aria-invalid"];return e?(0,s.jsx)(a,{ref:i,className:cu("wg-label__helper text-start text-sm leading-6 text-surface-500 wg-antialiased",(c??t)&&"text-destructive",r&&"text-surface-300",n),role:c?"alert":void 0,...o,children:e}):null}));bd.displayName="Label",Cd.displayName="HelperText";var Td=Object.assign(bd,{Helper:Cd}),Dd=n.createContext(null);function kd(e=!1){let t=n.useContext(Dd);if(!t&&!e)throw new Error("Checkbox.Item must be used within a CheckboxGroup or CheckboxGroup.Root");return t}var Ed=n.forwardRef((({children:e,description:t,disabled:r,helperText:o,id:i,label:a,orientation:l,required:c,tooltip:u,...d},h)=>{let p=n.useId(),f=i??p,m=d["aria-invalid"],g=a??t??u??o?(0,s.jsxs)("div",{className:"inline-flex flex-col",children:[(0,s.jsx)(Td,{className:"cursor-default",description:t,disabled:r,htmlFor:f,id:`${f}__label`,required:c,tooltip:u,children:a}),(0,s.jsx)(Td.Helper,{"aria-invalid":m,disabled:r,id:`${f}__describer`,children:o})]}):null;return(0,s.jsx)(Dd.Provider,{value:{disabled:r},children:(0,s.jsxs)("div",{ref:h,"aria-describedby":o?`${f}__describer`:void 0,"aria-labelledby":a?`${f}__label`:void 0,className:"flex flex-col gap-4",role:"group",...d,children:[a??o??t??u?(0,s.jsx)("div",{className:"flex flex-col",children:g}):null,e?(0,s.jsx)("div",{className:cu("flex flex-col gap-2","horizontal"===l&&"flex-row gap-6"),children:e}):null]})})})),Sd=n.forwardRef((({disabled:e,label:t,...r},n)=>{let o=kd(),{disabled:i}=o??{};return(0,s.jsx)(Od,{ref:n,className:"wg-checkbox-group__item",disabled:e??i,label:t,...r})}));Ed.displayName="CheckboxGroup",Sd.displayName="CheckboxGroup.Item",Object.assign(Ed,{Root:Ed,Item:Sd});var Id=n.forwardRef((({className:e,children:t,asChild:r,...n},o)=>{let i=r&&du(t)?l:"div";return(0,s.jsx)(i,{ref:o,className:cu("wg-checkbox flex gap-2",e),...n,children:t})})),zd=n.forwardRef((({checked:e,children:t,className:r,description:o,disabled:i,helperText:a,id:l,label:c,required:u,tooltip:d,...h},p)=>{let f=i,m=h["aria-invalid"],g="indeterminate"===e,y=n.useId(),M=l??y,L=!!kd(!0),w=(0,s.jsx)("svg",{className:"scale-100",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M8 4C5.79086 4 4 5.79086 4 8V16C4 18.2091 5.79086 20 8 20H16C18.2091 20 20 18.2091 20 16V8C20 5.79086 18.2091 4 16 4H8ZM9 11C8.44772 11 8 11.4477 8 12C8 12.5523 8.44772 13 9 13H15C15.5523 13 16 12.5523 16 12C16 11.4477 15.5523 11 15 11H9Z",fill:"currentColor",fillRule:"evenodd"})}),x=g?w:(0,s.jsx)("svg",{className:cu("wg-unchecked aspect-square w-full scale-100",f&&"text-surface-100 dark:text-surface-50"),fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",children:(0,s.jsx)("rect",{fill:"none",height:"14.5",rx:"3",ry:"3",stroke:"currentColor",strokeWidth:"1.5",width:"14.5",x:"4.75",y:"4.75"})}),v=g?w:(0,s.jsx)("svg",{className:cu("aspect-square w-full scale-100",f&&"text-surface-200 dark:text-surface-100"),fill:"none",height:"24",stroke:"none",viewBox:"0 0 24 24",width:"24",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M8 4C5.79086 4 4 5.79086 4 8V16C4 18.2091 5.79086 20 8 20H16C18.2091 20 20 18.2091 20 16V8C20 5.79086 18.2091 4 16 4H8ZM15.7902 10.2702C16.0776 9.97186 16.0686 9.49708 15.7702 9.20976C15.4719 8.92244 14.9971 8.9314 14.7098 9.22977L10.9458 13.1385L9.31677 11.2588C9.04549 10.9458 8.57182 10.912 8.2588 11.1832C7.94579 11.4545 7.91195 11.9282 8.18323 12.2412L10.3499 14.7412C10.4879 14.9004 10.6864 14.9942 10.897 14.9997C11.1076 15.0053 11.3108 14.922 11.4569 14.7702L15.7902 10.2702Z",fill:"currentColor",fillRule:"evenodd"})}),j=c??o??d??a?(0,s.jsxs)("div",{className:"inline-flex flex-col",children:[(0,s.jsx)(Td,{className:cu(L&&"font-normal"),description:o,disabled:f,htmlFor:M,id:`${M}__label`,required:u,tooltip:d,children:c}),(0,s.jsx)(Td.Helper,{"aria-invalid":m,disabled:f,id:`${M}__describer`,children:a})]}):null;return(0,s.jsxs)(Id,{children:[(0,s.jsxs)($e,{ref:p,"aria-labelledby":c?`${M}__label`:void 0,checked:e,className:cu("group relative flex size-6 items-center justify-center rounded-lg text-surface-200 outline-primary transition-colors duration-100 focus:outline-0 focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 [&:has([data-state=checked])_.wg-unchecked]:hidden",f&&"pointer-events-none text-surface-200 dark:text-surface-100",!f&&!g&&"hover:text-surface-300",!f&&g&&"text-primary",r),disabled:f,id:M,...h,children:[x,(0,s.jsx)(Xe,{asChild:!0,className:"absolute text-primary",children:v})]}),t||j]})}));zd.displayName="CheckboxWedges",Id.displayName="CheckboxRoot";var Od=Object.assign(zd,{Root:Id,Item:zd}),Pd={command:"⌘",shift:"⇧",ctrl:"⌃",option:"⌥",enter:"↵",delete:"⌫",escape:"⎋",tab:"⇥",capslock:"⇪",up:"↑",right:"→",down:"↓",left:"←",pageup:"⇞",pagedown:"⇟",home:"↖",end:"↘",help:"?",space:"␣"},Ad={command:"Command",shift:"Shift",ctrl:"Control",option:"Option",enter:"Enter",delete:"Delete",escape:"Escape",tab:"Tab",capslock:"Caps Lock",up:"Up",right:"Right",down:"Down",left:"Left",pageup:"Page Up",pagedown:"Page Down",home:"Home",end:"End",help:"Help",space:"Space"},Qd=ue({base:"border-1 inline-flex cursor-default items-center rounded-full border border-surface-200 px-2 font-sans text-surface-500 wg-antialiased dark:border-surface-100 [&>abbr]:no-underline",variants:{size:{xs:"text-xs leading-6",sm:"text-sm leading-6",md:"py-0.5 text-base leading-6",lg:"py-0.5 text-lg"}},defaultVariants:{size:"xs"}}),Rd=({keyName:e})=>"string"==typeof e&&e in Pd?(0,s.jsx)("abbr",{title:Ad[e],children:Pd[e]}):null,Yd=n.forwardRef((({children:e,className:t,keys:r,size:n="xs",...o},i)=>r&&0!==r.length||e?(0,s.jsxs)("kbd",{ref:i,className:cu(Qd({size:n}),t),...o,children:[r?Array.isArray(r)?r.map((e=>(0,s.jsx)(Rd,{keyName:e},e))):(0,s.jsx)(Rd,{keyName:r}):null,e?(0,s.jsx)("span",{children:e}):null]}):null));Yd.displayName="Kbd";var Ud=Yd,_d=ts,Bd=is,Fd=ns,Gd=cs,Vd=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,a=Aa(t),[l=!1,c]=Oe({prop:n,defaultProp:i,onChange:o});return(0,s.jsx)(Ea,{...a,open:l,onOpenChange:c,children:r})},Wd=rs,Jd=n.forwardRef((({align:e="start",collisionPadding:t=8,className:r,inset:n=!1,sideOffset:o=8,...i},a)=>(0,s.jsx)(os,{ref:a,align:e,className:cu("data-[side=bottom]:animate-wg-fade-in-down data-[side=left]:animate-wg-fade-in-left data-[side=right]:animate-wg-fade-in-right data-[side=top]:animate-wg-fade-in-up","flex origin-[var(--radix-popper-transform-origin)] flex-col gap-2 rounded-lg bg-white py-2 text-sm leading-6 text-surface-900 shadow-wg-overlay wg-antialiased dark:border dark:border-surface dark:bg-neutral-800 dark:text-surface-700 dark:shadow-none",n&&"[--wg-offset-padding-left:32px]",r),collisionPadding:t,sideOffset:o,...i}))),Hd=n.forwardRef((({className:e,...t},r)=>(0,s.jsx)(as,{ref:r,className:cu("flex select-none items-center gap-1 px-4 py-1 text-xxs font-medium uppercase tracking-wider opacity-50","pl-[var(--wg-offset-padding-left,1rem)]",e),...t}))),Zd=n.forwardRef((({className:e,destructive:t,...r},n)=>(0,s.jsx)(ss,{ref:n,className:cu("relative flex cursor-pointer select-none items-center gap-2 px-4 py-1 outline-none focus:bg-surface data-[disabled]:pointer-events-none data-[disabled]:opacity-40 dark:focus:bg-white/5 [&:has(>svg:first-child)]:pl-3",!t&&"text-surface-900 dark:text-surface-700 [&_svg]:text-surface-900 [&_svg]:opacity-40",t&&"text-destructive","pl-[var(--wg-offset-padding-left,1rem)]",e),...r}))),$d=n.forwardRef((({className:e,...t},r)=>(0,s.jsx)(Ud,{ref:r,className:cu("shadow-0 ms-auto border-0 bg-transparent p-0 ps-4 text-xs text-surface-500 dark:bg-transparent dark:text-surface-500",e),...t}))),Xd=n.forwardRef((({className:e,...t},r)=>(0,s.jsx)(hs,{ref:r,className:cu("h-px bg-surface-100 dark:bg-white/5",e),...t}))),Kd=({className:e,...t})=>(0,s.jsx)("svg",{...t,className:cu("!opacity-100",e),fill:"none",height:"24",stroke:"currentColor",viewBox:"0 0 24 24",width:"24",children:(0,s.jsx)("path",{d:"M7.75 12.75L10 15.25L16.25 8.75",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})}),qd=n.forwardRef((({className:e,children:t,checked:r,destructive:n,...o},i)=>(0,s.jsxs)(ls,{ref:i,checked:r,className:cu("wg-dropdown-menu__checkbox-item relative flex cursor-pointer select-none items-center px-4 py-1 pl-[var(--wg-offset-padding-left,1rem)] outline-none focus:bg-surface data-[disabled]:pointer-events-none data-[disabled]:opacity-40 dark:focus:bg-white/5",!n&&"text-surface-900 dark:text-surface-700 [&_svg]:text-surface-900 [&_svg]:opacity-40",n&&"text-destructive",e),...o,children:[(0,s.jsx)("span",{className:"flex items-center justify-center",children:(0,s.jsx)(ds,{className:"flex items-center justify-center",children:(0,s.jsx)(Kd,{className:"absolute left-2"})})}),t]}))),eh=({className:e,...t})=>(0,s.jsx)("svg",{...t,className:cu("!opacity-100",e),fill:"currentColor",height:"24",stroke:"none",viewBox:"0 0 24 24",width:"24",children:(0,s.jsx)("circle",{cx:"12",cy:"12",fill:"currentColor",r:"2.5"})}),th=n.forwardRef((({className:e,children:t,destructive:r,...n},o)=>(0,s.jsxs)(us,{ref:o,className:cu("wg-dropdown-menu__checkbox-item relative flex cursor-pointer select-none items-center px-4 py-1 pl-[var(--wg-offset-padding-left,1rem)] outline-none focus:bg-surface data-[disabled]:pointer-events-none data-[disabled]:opacity-40 dark:focus:bg-white/5",!r&&"text-surface-900 dark:text-surface-700 [&_svg]:text-surface-900 [&_svg]:opacity-40",r&&"text-destructive",e),...n,children:[(0,s.jsx)("span",{className:"flex items-center justify-center",children:(0,s.jsx)(ds,{className:"flex items-center justify-center",children:(0,s.jsx)(eh,{className:"absolute left-2"})})}),t]}))),rh=n.forwardRef((({className:e,collisionPadding:t=8,sideOffset:r=-4,alignOffset:n=-9,inset:o=!1,...i},a)=>(0,s.jsx)(fs,{ref:a,alignOffset:n,className:cu("data-[side=bottom]:animate-wg-fade-in-down data-[side=left]:animate-wg-fade-in-left data-[side=right]:animate-wg-fade-in-right data-[side=top]:animate-wg-fade-in-up data-[state=closed]:animate-wg-fade-out","z-50 flex min-w-[9rem] origin-[var(--radix-popper-transform-origin)] flex-col gap-2 rounded-lg bg-white py-2 shadow-wg-overlay dark:border dark:border-surface dark:bg-neutral-800 dark:shadow-none",o&&"[--wg-offset-padding-left:34px]",e),collisionPadding:t,sideOffset:r,...i}))),nh=n.forwardRef((({className:e,children:t,...r},n)=>(0,s.jsxs)(ps,{ref:n,className:cu("relative flex cursor-pointer select-none items-center gap-2 px-4 py-1 leading-6 text-surface-900 outline-none focus:bg-surface data-[disabled]:pointer-events-none data-[state=open]:bg-surface data-[disabled]:opacity-50 dark:text-surface-700 dark:focus:bg-white/5 dark:data-[state=open]:bg-white/5","[&_svg]:text-surface-900 [&_svg]:opacity-40",e),...r,children:[t,(0,s.jsx)("svg",{className:"ms-auto size-6 text-surface-500",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",children:(0,s.jsx)("path",{d:"M10.75 8.75L14.25 12L10.75 15.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})})]})));_d.displayName="DropdownMenu",Jd.displayName="DropdownMenuContent",Zd.displayName="DropdownMenuItem",Hd.displayName="DropdownMenuLabel",Xd.displayName="DropdownMenuSeparator",$d.displayName="DropdownMenuShortcut",rh.displayName="DropdownMenuSubContent",nh.displayName="DropdownMenuSubTrigger",qd.displayName="DropdownMenuCheckboxItem",th.displayName="DropdownMenuRadioItem";var oh=Object.assign(_d,{Content:Jd,Group:Bd,Item:Zd,Label:Hd,Portal:Fd,RadioGroup:Gd,Separator:Xd,SubTrigger:nh,SubContent:rh,CheckboxItem:qd,RadioItem:th,Shortcut:$d,Sub:Vd,Trigger:Wd}),ih=n.forwardRef((({className:e,description:t,destructive:r,disabled:o,helperText:i,id:a,label:l,required:c,tooltip:u,...d},h)=>{let p=n.useId(),f=a??p,m=d["aria-invalid"]??r;return(0,s.jsxs)("div",{className:"flex flex-col gap-2 wg-antialiased",children:[(0,s.jsx)(Td,{description:t,disabled:o,htmlFor:f,id:`${f}__label`,required:c,tooltip:u,children:l}),(0,s.jsx)("div",{className:"relative flex items-center",children:(0,s.jsx)("input",{ref:h,"aria-describedby":i?`${f}__describer`:void 0,"aria-invalid":m,"aria-labelledby":l?`${f}__label`:void 0,className:cu("flex grow rounded-lg border bg-background px-4 py-2 text-sm leading-6 shadow-wg-xs transition-colors duration-100 placeholder:text-surface-500","outline-primary focus:outline focus:outline-2 focus:-outline-offset-1",!o&&"text-surface-900 hover:border-surface-300 dark:hover:border-surface-200",o&&"cursor-not-allowed bg-surface-50 text-surface-300 placeholder:text-surface-300 dark:bg-white/5 dark:text-surface-200 dark:placeholder:text-surface-200",m&&"border-destructive outline-destructive hover:border-destructive dark:hover:border-destructive",!m&&"border-surface-200 dark:border-surface-100",e),disabled:o,id:f,...d})}),(0,s.jsx)(Td.Helper,{"aria-invalid":m,disabled:o,id:`${f}__describer`,children:i})]})}));ih.displayName="Input";var ah=ih,sh=e=>{switch(e){case"xxs":return 16;case"xs":return 24;case"sm":return 32;case"md":default:return 48;case"lg":return 56;case"xl":return 64;case"xxl":return 88}},lh=e=>{switch(e){case"xxs":case"xs":case"sm":return 4;case"md":case"lg":case"xl":default:return 6;case"xxl":return 8}},ch=[{cx:44,cy:6,r:6,opacity:1},{cx:63,cy:11,r:6,opacity:.05},{cx:77,cy:25,r:6,opacity:.1},{cx:82,cy:44,r:6,opacity:.1},{cx:77,cy:63,r:6,opacity:.2},{cx:63,cy:77,r:6,opacity:.3},{cx:44,cy:82,r:6,opacity:.4},{cx:25,cy:77,r:6,opacity:.5},{cx:11,cy:63,r:6,opacity:.6},{cx:6,cy:44,r:6,opacity:.7},{cx:11,cy:25,r:6,opacity:.8},{cx:25,cy:11,r:6,opacity:.9}],uh=[{cx:32,cy:4,r:4,opacity:1},{cx:46,cy:8,r:4,opacity:.05},{cx:56,cy:18,r:4,opacity:.1},{cx:60,cy:32,r:4,opacity:.1},{cx:56,cy:46,r:4,opacity:.2},{cx:46,cy:56,r:4,opacity:.3},{cx:32,cy:60,r:4,opacity:.4},{cx:18,cy:56,r:4,opacity:.5},{cx:8,cy:46,r:4,opacity:.6},{cx:4,cy:32,r:4,opacity:.7},{cx:8,cy:18,r:4,opacity:.8},{cx:18,cy:8,r:4,opacity:.9}],dh=[{cx:28,cy:3,r:3,opacity:1},{cx:40.5,cy:6.5,r:3,opacity:.05},{cx:49.5,cy:15.5,r:3,opacity:.1},{cx:53,cy:28,r:3,opacity:.1},{cx:49.5,cy:40.5,r:3,opacity:.2},{cx:40.5,cy:49.5,r:3,opacity:.3},{cx:28,cy:53,r:3,opacity:.4},{cx:15.5,cy:49.5,r:3,opacity:.5},{cx:6.5,cy:40.5,r:3,opacity:.6},{cx:3,cy:28,r:3,opacity:.7},{cx:6.5,cy:15.5,r:3,opacity:.8},{cx:15.5,cy:6.5,r:3,opacity:.9}],hh=[{cx:24,cy:3,r:3,opacity:1},{cx:34.5,cy:5.75,r:3,opacity:.05},{cx:42.25,cy:13.5,r:3,opacity:.1},{cx:45,cy:24,r:3,opacity:.1},{cx:42.25,cy:34.5,r:3,opacity:.2},{cx:34.5,cy:42.25,r:3,opacity:.3},{cx:24,cy:45,r:3,opacity:.4},{cx:13.5,cy:42.25,r:3,opacity:.5},{cx:5.75,cy:34.5,r:3,opacity:.6},{cx:3,cy:24,r:3,opacity:.7},{cx:5.75,cy:13.5,r:3,opacity:.8},{cx:13.5,cy:5.75,r:3,opacity:.9}],ph=[{cx:16,cy:2,r:2,opacity:1},{cx:23,cy:4,r:2,opacity:.05},{cx:28,cy:9,r:2,opacity:.1},{cx:30,cy:16,r:2,opacity:.1},{cx:28,cy:23,r:2,opacity:.2},{cx:23,cy:28,r:2,opacity:.3},{cx:16,cy:30,r:2,opacity:.4},{cx:9,cy:28,r:2,opacity:.5},{cx:4,cy:23,r:2,opacity:.6},{cx:2,cy:16,r:2,opacity:.7},{cx:4,cy:9,r:2,opacity:.8},{cx:9,cy:4,r:2,opacity:.9}],fh=[{cx:12,cy:1.5,r:1.5,opacity:1},{cx:17.25,cy:3,r:1.5,opacity:.05},{cx:21,cy:6.75,r:1.5,opacity:.1},{cx:22.5,cy:12,r:1.5,opacity:.1},{cx:21,cy:17.25,r:1.5,opacity:.2},{cx:17.25,cy:21,r:1.5,opacity:.3},{cx:12,cy:22.5,r:1.5,opacity:.4},{cx:6.75,cy:21,r:1.5,opacity:.5},{cx:3,cy:17.25,r:1.5,opacity:.6},{cx:1.5,cy:12,r:1.5,opacity:.7},{cx:3,cy:6.75,r:1.5,opacity:.8},{cx:6.75,cy:3,r:1.5,opacity:.9}],mh=[{cx:8,cy:1.5,r:1.5,opacity:1},{cx:12.5,cy:3.5,r:1.5,opacity:.05},{cx:14.5,cy:8,r:1.5,opacity:.1},{cx:12.5,cy:12.5,r:1.5,opacity:.3},{cx:8,cy:14.5,r:1.5,opacity:.4},{cx:3.5,cy:12.5,r:1.5,opacity:.6},{cx:1.5,cy:8,r:1.5,opacity:.7},{cx:3.5,cy:3.5,r:1.5,opacity:.8}],gh=n.forwardRef(((e,t)=>{let{size:r,...n}=e,o=sh(r);return(0,s.jsxs)("svg",{ref:t,"aria-hidden":"true",viewBox:`0 0 ${o} ${o}`,...n,children:["xxs"===r&&mh.map(((e,t)=>(0,s.jsx)("circle",{fill:"currentColor",stroke:"none",...e},t))),"xs"===r&&fh.map(((e,t)=>(0,s.jsx)("circle",{fill:"currentColor",stroke:"none",...e},t))),"sm"===r&&ph.map(((e,t)=>(0,s.jsx)("circle",{fill:"currentColor",stroke:"none",...e},t))),"md"===r&&hh.map(((e,t)=>(0,s.jsx)("circle",{fill:"currentColor",stroke:"none",...e},t))),"lg"===r&&dh.map(((e,t)=>(0,s.jsx)("circle",{fill:"currentColor",stroke:"none",...e},t))),"xl"===r&&uh.map(((e,t)=>(0,s.jsx)("circle",{fill:"currentColor",stroke:"none",...e},t))),"xxl"===r&&ch.map(((e,t)=>(0,s.jsx)("circle",{fill:"currentColor",stroke:"none",...e},t)))]})})),yh=n.forwardRef(((e,t)=>{let{size:r,...n}=e,o=sh(r),i=lh(r),a=o/2-i/2,l=2*Math.PI*a,c=e=>e/100*l,u={strokeDasharray:`${l}`,"--wg-dashoffset-97":`${c(97)}px`,"--wg-dashoffset-25":`${c(25)}px`};return(0,s.jsx)("svg",{"aria-hidden":"true",ref:t,viewBox:`0 0 ${o} ${o}`,...n,children:(0,s.jsx)("circle",{className:"origin-center animate-wg-line-spinner",cx:o/2,cy:o/2,r:o/2-i/2,stroke:"currentColor",strokeLinecap:"round",strokeWidth:i,style:u,fill:"none"})})})),Mh=e=>{switch(e){case"xxs":return"M14 8a6 6 0 00-6-6";case"xs":return"M22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2";case"sm":return"M30 16C30 14.1615 29.6379 12.341 28.9343 10.6424C28.2307 8.94387 27.1995 7.40052 25.8995 6.1005C24.5995 4.80048 23.0561 3.76925 21.3576 3.06569C19.659 2.36212 17.8385 2 16 2";case"md":default:return"M45 24C45 21.2422 44.4568 18.5115 43.4015 15.9636C42.3461 13.4158 40.7993 11.1008 38.8492 9.15076C36.8992 7.20073 34.5842 5.65388 32.0364 4.59853C29.4885 3.54318 26.7578 3 24 3";case"lg":return"M53 28C53 24.717 52.3534 21.4661 51.097 18.4329C49.8406 15.3998 47.9991 12.6438 45.6777 10.3223C43.3562 8.00087 40.6002 6.15938 37.5671 4.90301C34.5339 3.64664 31.283 3 28 3";case"xl":return"M61 32C61 28.1917 60.2499 24.4206 58.7925 20.9022C57.3351 17.3837 55.199 14.1868 52.5061 11.4939C49.8132 8.801 46.6163 6.66488 43.0978 5.20749C39.5794 3.75011 35.8083 3 32 3";case"xxl":return"M84 44C84 38.7471 82.9654 33.5457 80.9552 28.6927C78.945 23.8396 75.9986 19.4301 72.2843 15.7157C68.5699 12.0014 64.1604 9.05501 59.3073 7.04482C54.4543 5.03463 49.2529 4 44 4"}},Lh=n.forwardRef(((e,t)=>{let{size:r,...n}=e,o=sh(r),i=lh(r);return(0,s.jsxs)("svg",{ref:t,"aria-hidden":"true",viewBox:`0 0 ${o} ${o}`,...n,children:[(0,s.jsx)("circle",{cx:o/2,cy:o/2,fill:"none",r:o/2-i/2,strokeWidth:i}),(0,s.jsx)("path",{d:Mh(r),className:"stroke-current",fill:"none",strokeLinecap:"round",strokeWidth:i})]})})),wh=ue({base:"relative inline-flex items-center justify-center border-0",variants:{color:{primary:"stroke-surface-100 text-primary",secondary:"stroke-surface-100 text-secondary"},size:{xxs:"size-4",xs:"size-6",sm:"size-8",md:"size-12 [--wg-loading-stroke-width:6px]",lg:"size-14",xl:"size-16",xxl:"size-[88px]"},type:{line:"",spinner:"-rotate-45",dots:""}},defaultVariants:{color:"primary",size:"md",type:"line"}}),xh=n.forwardRef(((e,t)=>{let{"aria-label":r="Loading",className:n,color:o="primary",size:i="md",type:a="line",...l}=e,c=null;switch(a){case"line":c=(0,s.jsx)(yh,{className:"size-full animate-spin will-change-transform",size:i});break;case"spinner":c=(0,s.jsx)(Lh,{className:"size-full animate-[spin_.6s_ease-in-out_infinite] will-change-transform",size:i});break;case"dots":c=(0,s.jsx)(gh,{className:"size-full animate-[spin_1.25s_linear_infinite] will-change-transform",size:i})}return(0,s.jsx)("div",{ref:t,"aria-label":r,className:cu(wh({color:o,size:i,type:a}),n),...l,children:c})}));xh.displayName="Loading";var vh=xh,jh=n.forwardRef((({align:e="center",className:t,sideOffset:r=8,collisionPadding:n=8,...o},i)=>(0,s.jsx)(Fs,{ref:i,align:e,className:cu("data-[side=top]:wg-animate-fade-in-down data-[side=bottom]:animate-wg-fade-in-up data-[side=left]:animate-wg-fade-in-left data-[side=right]:animate-wg-fade-in-right data-[state=closed]:animate-wg-fade-out","flex origin-[var(--radix-popper-transform-origin)] flex-col gap-2 rounded-lg bg-white p-4 text-sm leading-6 text-surface-900 shadow-wg-overlay wg-antialiased dark:border dark:border-surface dark:bg-neutral-800 dark:text-surface-700 dark:shadow-none",t),collisionPadding:n,sideOffset:r,...o})));jh.displayName="PopoverContent";var Nh=Object.assign(Ys,{Trigger:_s,Content:jh,Portal:Bs,Anchor:Us,Arrow:Vs,Close:Gs}),bh=ue({base:"flex w-full text-sm wg-antialiased disabled:opacity-50",variants:{variant:{default:"flex-col gap-2",inline:"min-w-[200px] flex-wrap items-center gap-2 xs:flex-nowrap xs:gap-4"},color:{primary:["bg-primary"],purple:["bg-wg-purple"],green:["bg-wg-green"],blue:["bg-wg-blue"],orange:["bg-wg-orange"],pink:["bg-wg-pink"],yellow:["bg-wg-yellow"],red:["bg-wg-red"],secondary:["bg-secondary"]}},defaultVariants:{variant:"default"}}),Ch=n.forwardRef(((e,t)=>{let{afterIndicator:r,className:o,color:i="primary",description:a,disableAnimation:l,disabled:c,helperText:u,id:d,indicator:h,label:p,max:f=100,tooltip:m,value:g,variant:y="default",...M}=e,L=n.useId(),w=d??L;return(0,s.jsxs)("div",{className:bh({variant:y}),children:[(0,s.jsxs)((({children:e})=>"default"===y?(0,s.jsx)("div",{className:cu("flex items-center justify-between gap-4 self-stretch","default"===y&&"flex-wrap gap-y-0"),children:e}):(0,s.jsx)(s.Fragment,{children:e})),{children:[p??m??a?(0,s.jsx)(Td,{className:"shrink-0 cursor-default",description:a,disabled:c,id:`${w}__label`,tooltip:m,children:p}):"default"===y?(0,s.jsx)("span",{}):null,h??r?(0,s.jsxs)("span",{className:cu("flex shrink-0 items-center gap-1",c&&"opacity-50","inline"===y&&"order-3"),children:[h?(0,s.jsx)("span",{children:h}):null,r?(0,s.jsx)("span",{className:"flex items-center justify-center text-surface-400",children:r}):null]}):null]}),(0,s.jsx)(il,{ref:t,id:w,max:f,"aria-describedby":u&&"default"===y?`${w}__describer`:void 0,"aria-labelledby":p?`${w}__label`:void 0,className:cu("shrink-1 relative h-2 w-full overflow-hidden rounded-full bg-surface-100",c&&"opacity-50",o),...M,children:(0,s.jsx)(al,{className:cu("size-full rounded-e-full",!l&&"transition-transform duration-150 ease-in-out",bh({color:i})),style:{transform:`translateX(-${100-Math.min(g??0,f)/f*100}%)`}})}),"default"===y?(0,s.jsx)(Td.Helper,{disabled:c,className:"w-fit shrink-0",id:`${w}__describer`,children:u}):null]})}));Ch.displayName="ProgressBar";var Th={xl:{svgSize:160,stroke:12},lg:{svgSize:88,stroke:8},md:{svgSize:64,stroke:6},sm:{svgSize:32,stroke:4},xs:{svgSize:24,stroke:4}},Dh=ue({base:"scale-100 fill-none stroke-surface-100",variants:{size:{xs:"",sm:"",md:"",lg:"",xl:""},color:{primary:["text-primary"],purple:["text-wg-purple"],green:["text-wg-green"],blue:["text-wg-blue"],orange:["text-wg-orange"],pink:["text-wg-pink"],yellow:["text-wg-yellow"],red:["text-wg-red"],secondary:["text-secondary"]}},defaultVariants:{size:"md",color:"primary"}}),kh=n.forwardRef(((e,t)=>{let{className:r,color:n="primary",disableAnimation:o=!1,disabled:i,getLabelValue:a,max:l=100,size:c="md",value:u=0,...d}=e,{svgSize:h,stroke:p}=Th[c],f=(h-p)/2,m=2*Math.PI*f,g=u/l*100,y=a?a(u,l):void 0!==u?(M=u,L=l,`${Math.round(M/L*100)}%`):"";var M,L;return(0,s.jsxs)("div",{className:cu("relative",i&&"opacity-50"),style:{width:h,height:h},children:[(0,s.jsxs)("svg",{ref:t,width:h,height:h,viewBox:`0 0 ${h} ${h}`,className:cu(Dh({size:c,color:n}),r),role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":l,fill:"none","data-max":l,"data-value":u??null,"data-state":void 0===u?"indeterminate":g<100?"loading":"complete",...d,children:[(0,s.jsx)("circle",{cx:h/2,cy:h/2,r:f,className:"stroke-inherit",strokeWidth:p,fill:"none"}),(0,s.jsx)("circle",{cx:h/2,cy:h/2,r:f,stroke:"currentColor",strokeWidth:p,strokeDasharray:m,strokeDashoffset:m-u/100*m,strokeLinecap:"round",className:cu("h-full",!o&&"transition-all duration-300 ease-linear"),transform:`rotate(-90 ${h/2} ${h/2})`,fill:"none"})]}),(()=>{if(["xl","lg","md"].includes(c))return(0,s.jsx)("span",{className:cu("absolute inset-0 flex items-center justify-center","xl"===c&&"text-2xl","lg"===c&&"text-base","md"===c&&"text-xs"),children:y})})()]})}));kh.displayName="ProgressCircle";var Eh=n.createContext(null),Sh=n.forwardRef((({children:e,className:t,description:r,disabled:o,helperText:i,id:a,label:l,orientation:c="vertical",required:u,tooltip:d,...h},p)=>{let f=n.useId(),m=a??f,g=h["aria-invalid"],y=l??r??d??i?(0,s.jsxs)("div",{className:"inline-flex flex-col",children:[(0,s.jsx)(Td,{className:"cursor-auto",description:r,disabled:o,htmlFor:m,id:`${m}__label`,required:u,tooltip:d,children:l}),(0,s.jsx)(Td.Helper,{"aria-invalid":g,disabled:o,id:`${m}__describer`,children:i})]}):null;return(0,s.jsx)(Eh.Provider,{value:{disabled:o},children:(0,s.jsxs)(kl,{ref:p,className:cu("flex flex-col gap-4",t),disabled:o,...h,children:[y,e?(0,s.jsx)("div",{className:cu("flex flex-col gap-2","horizontal"===c&&"flex-row gap-6"),children:e}):null]})})})),Ih=n.forwardRef((({label:e,helperText:t,disabled:r,required:o,tooltip:i,id:a,...l},c)=>{let u=function(){let e=n.useContext(Eh);if(!e)throw new Error("RadioGroup.Item must be used within a RadioGroup or RadioGroup.Root");return e}(),{disabled:d}=u??{},h=d??r,p=l["aria-invalid"],f=n.useId(),m=a??f,g=(0,s.jsxs)("div",{className:"inline-flex flex-col",children:[e&&(0,s.jsx)(Td,{className:"font-normal",disabled:h,htmlFor:m,id:`${m}__label`,required:o,tooltip:i,...l,children:e}),t?(0,s.jsx)(Td.Helper,{"aria-invalid":p,disabled:h,id:`${m}__describer`,children:t}):null]});return(0,s.jsxs)("div",{className:"wg-radio-group__item flex gap-2",children:[(0,s.jsxs)(El,{ref:c,"aria-labelledby":e?`${m}__label`:void 0,className:cu("group relative flex size-6 items-center justify-center rounded-full text-surface-200 outline-primary transition-colors duration-100 focus:outline-0 focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 [&:has([data-state=checked])_.wg-unchecked]:hidden",h&&"pointer-events-none text-surface-200 dark:text-surface-100",!h&&"hover:text-surface-300 data-[state=checked]:text-primary"),disabled:h,id:m,...l,children:[(0,s.jsx)("svg",{className:cu("aspect-square w-full scale-100",h&&"fill-surface-50"),fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",children:(0,s.jsx)("path",{d:"M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z",stroke:"currentColor",strokeWidth:"1.5"})}),(0,s.jsx)(Sl,{asChild:!0,children:(0,s.jsxs)("svg",{className:cu("absolute aspect-square w-full scale-100 text-primary",h&&"text-surface-200 dark:text-surface-100"),fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",children:[(0,s.jsx)("path",{d:"M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z",stroke:"currentColor",strokeWidth:"1.5"}),(0,s.jsx)("path",{d:"M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z",fill:"currentColor"})]})})]}),g]})}));Sh.displayName="RadioGroup",Ih.displayName="RadioGroupItem",Object.assign(Sh,{Root:kl,Item:Ih});var zh=n.forwardRef(((e,t)=>{let{after:r,before:o,children:i,className:a,defaultValue:l,description:c,disabled:u,helperText:d,id:h,label:p,onValueChange:f,orientation:m="horizontal",renderTooltip:g=e=>e.toString(),required:y=!1,showTooltip:M="hover",tooltip:L,...w}=e,[x,v]=n.useState(l??[0]),j=n.useId(),N=h??j;return(0,s.jsxs)("div",{className:cu("flex flex-col gap-2",u&&"text-surface-300"),children:[(0,s.jsx)(Td,{description:c,disabled:u,htmlFor:N,id:`${N}__label`,required:y,tooltip:L,children:p}),(0,s.jsxs)("div",{className:cu("flex justify-between gap-4 self-stretch","vertical"===m&&"flex-col items-start","vertical"!==m&&"items-center"),children:[o?(0,s.jsx)("span",{children:o}):null,(0,s.jsxs)(Oh,{className:cu("relative flex w-full touch-none select-none items-center",a),defaultValue:l,disabled:u,id:N,onValueChange:e=>{v(e),f?.(e)},orientation:m,ref:t,...w,children:[(0,s.jsx)(Rh.Track,{children:(0,s.jsx)(Rh.Range,{"aria-disabled":u})}),x?.map(((e,t)=>(0,s.jsx)(Rh.Thumb,{"aria-disabled":u,orientation:m,showTooltip:M,tooltip:M&&"never"!==M&&g?.(e)},t))),i]}),r?(0,s.jsx)("span",{children:r}):null]}),(0,s.jsx)(Td.Helper,{disabled:u,id:`${N}__describer`,children:d})]})})),Oh=n.forwardRef(((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(ac,{ref:t,className:cu("relative flex w-full touch-none select-none items-center","data-[orientation=horizontal]:min-h-6","data-[orientation=vertical]:w-2 data-[orientation=vertical]:flex-col data-[orientation=vertical]:justify-center data-[orientation=vertical]:px-3",r),...n})})),Ph=n.forwardRef(((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(sc,{ref:t,className:cu("relative h-2 w-full grow overflow-hidden rounded-full bg-surface-100","data-[orientation=vertical]:h-72 data-[orientation=vertical]:w-2",r),...n})})),Ah=n.forwardRef(((e,t)=>{let{className:r,...n}=e,o=e["aria-disabled"]??!1;return(0,s.jsx)(lc,{ref:t,className:cu("absolute rounded-full bg-primary","data-[orientation=vertical]:left-0 data-[orientation=vertical]:w-full","data-[orientation=horizontal]:l-0 data-[orientation=horizontal]:h-full",o&&"bg-surface-200",r),...n})})),Qh=n.forwardRef(((e,t)=>{let{className:r,orientation:o="horizontal",onBlur:i,onFocus:a,onPointerDown:l,onPointerEnter:c,onPointerLeave:u,onPointerUp:d,showTooltip:h="hover",tooltip:p=!1,...f}=e,[m,g]=n.useState(!1),[y,M]=n.useState(!1),L=e["aria-disabled"]??!1,w="always"===h&&!!p||"hover"===h&&(m||y)&&!!p;return(0,s.jsx)(Nd.Provider,{children:(0,s.jsx)(Nd.Root,{delayDuration:0,open:w,children:(0,s.jsx)(Nd.Trigger,{asChild:!0,children:(0,s.jsx)(cc,{onPointerDown:e=>{g(!0),l?.(e)},onPointerUp:e=>{g(!1),d?.(e)},onFocus:e=>{g(!0),a?.(e)},onBlur:e=>{g(!1),i?.(e)},onPointerEnter:e=>{M(!0),c?.(e)},onPointerLeave:e=>{M(!1),u?.(e)},ref:t,"data-state":m?"active":"inactive",className:cu("block size-5 cursor-grab rounded-full border border-surface-200 bg-white shadow-wg-sm disabled:hidden","focus:outline-none focus-visible:border-primary dark:focus-visible:border-white","data-[state=active]:cursor-grabbing data-[state=active]:border-primary dark:data-[state=active]:border-white",L&&"hidden",r),...f,children:p?(0,s.jsx)(Nd.Content,{side:"horizontal"===o?"top":"left",content:p,className:"px-2 py-1 text-xs leading-4"}):null})})})})})),Rh=Object.assign(zh,{Root:Oh,Track:Ph,Range:Ah,Thumb:Qh});Rh.displayName="Slider";var Yh=n.createContext(null);function Uh(e=!1){let t=n.useContext(Yh);if(!t&&!e)throw new Error("SwitchGroup.Item must be used within a SwitchGroup or SwitchGroup.Root");return t}var _h=n.forwardRef((({alignLabels:e="end",children:t,description:r,disabled:o,helperText:i,id:a,label:l,required:c=!1,tooltip:u,...d},h)=>{let p=n.useId(),f=a??p,m=d["aria-invalid"],g=l??r??u??i?(0,s.jsxs)("div",{className:"inline-flex flex-col",children:[(0,s.jsx)(Td,{className:"cursor-default",description:r,disabled:o,htmlFor:f,id:`${f}__label`,required:c,tooltip:u,children:l}),(0,s.jsx)(Td.Helper,{"aria-invalid":m,disabled:o,id:`${f}__describer`,children:i})]}):null;return(0,s.jsx)(Yh.Provider,{value:{alignLabels:e,disabled:o},children:(0,s.jsxs)("div",{ref:h,"aria-describedby":i?`${f}__describer`:void 0,"aria-labelledby":l?`${f}__label`:void 0,className:"flex flex-col gap-4",role:"group",...d,children:[l??i??r??u?(0,s.jsx)("div",{className:"flex flex-col",children:g}):null,t?(0,s.jsx)("div",{className:"flex flex-col gap-2",children:t}):null]})})})),Bh=n.forwardRef((({label:e,className:t,disabled:r,...n},o)=>{let i=Uh(),{disabled:a=null,alignLabels:l}=i??{},c=a??r;return(0,s.jsx)(Gh,{ref:o,alignLabel:l,className:(cu("wg-switch-group__item","start"===l&&"flex w-full justify-between"),t),disabled:c,label:e,...n})}));_h.displayName="SwitchGroup",Bh.displayName="SwitchGroupItem",Object.assign(_h,{Root:_h,Item:Bh});var Fh=n.forwardRef((({alignLabel:e="end",children:t,className:r,description:o,disabled:i,helperText:a,id:l,label:c,required:u,tooltip:d,...h},p)=>{let f=c??a?"div":n.Fragment,m=!!Uh(!0),g=n.useId(),y=l??g,M=h["aria-invalid"],L=(0,s.jsx)("div",{className:"wg-switch inline-flex min-h-6 shrink-0 items-center",children:(0,s.jsx)(wc,{ref:p,"aria-describedby":a?`${y}__describer`:void 0,"aria-labelledby":c?`${y}__label`:void 0,className:cu("peer inline-flex h-4 w-7 items-center rounded-full bg-surface-200 outline-primary transition-colors duration-100 wg-antialiased hover:bg-surface-300 focus:outline-0 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:pointer-events-none data-[state=checked]:bg-primary",i&&"bg-surface-100 data-[state=checked]:bg-surface-100",r),disabled:i,id:y,required:u,...h,children:(0,s.jsx)(xc,{className:cu("size-3 rounded-full bg-white transition-transform duration-200 data-[state=checked]:translate-x-[14px] data-[state=unchecked]:translate-x-0.5",i&&"dark:bg-surface-200")})})}),w=(0,s.jsxs)(f,{className:"inline-flex flex-col",children:[(0,s.jsx)(Td,{className:cu(m&&"font-normal"),description:o,disabled:i,htmlFor:y,id:`${y}__label`,required:u,tooltip:d,children:c??t}),a?(0,s.jsx)(Td.Helper,{"aria-invalid":M,disabled:i,id:`${y}__describer`,children:a}):null]});return(0,s.jsxs)("div",{className:cu("inline-flex items-start gap-4",m&&"start"===e&&"flex justify-between",!i&&"[&:has([data-state=unchecked])_.wg-label]:text-surface-700"),children:["start"===e?w:null,L,"end"===e?w:null]})}));Fh.displayName="Switch";var Gh=Fh,Vh=ue({variants:{variant:{fill:"gap-2",underlined:"gap-2 border-b border-surface-100 dark:border-surface-50","contained-bottom":"","contained-top":""}},compoundVariants:[{variant:["contained-top","contained-bottom"],class:"overflow-hidden rounded-lg border border-surface-200 shadow-wg-xs dark:border-surface-100 [&:has(:focus-visible)]:overflow-visible"}],defaultVariants:{variant:"fill"}}),Wh=ue({base:"leading-6 data-[state=active]:font-medium",variants:{variant:{fill:["rounded-lg bg-transparent px-3 py-2 hover:bg-surface hover:text-surface-900","data-[state=active]:bg-surface data-[state=active]:text-surface-900"],underlined:["-mb-px border-b-2 border-transparent px-3 pb-3 pt-2 hover:border-surface-200 hover:text-surface-900 focus-visible:-outline-offset-2 dark:hover:border-surface-100","data-[state=active]:border-primary data-[state=active]:text-primary dark:data-[state=active]:border-primary"],"contained-bottom":"border-b-2 border-transparent hover:border-b-surface data-[state=active]:border-b-primary","contained-top":"border-t-2 border-transparent hover:border-t-surface data-[state=active]:border-t-primary"}},compoundVariants:[{variant:["contained-top","contained-bottom"],class:["border-r border-r-surface-100 bg-transparent bg-clip-padding px-4 py-14px [--wg-border-width:1px] last:border-r-0 focus-visible:-outline-offset-2 first:focus-visible:rounded-s-[7px] last:focus-visible:rounded-r-[7px] hover:[&:not(:disabled)]:bg-surface hover:[&:not(:disabled)]:text-surface-900","data-[state=active]:text-primary"]}],defaultVariants:{variant:"fill"}}),Jh=n.createContext(null);function Hh(){let e=n.useContext(Jh);if(!e)throw new Error("Tabs components must be used within a Tabs or Tabs.Root component");return e}var Zh=n.forwardRef((({children:e,className:t,orientation:r="horizontal",...n},o)=>(0,s.jsx)(Qc,{ref:o,className:cu("wg-antialiased","vertical"===r&&"flex flex-wrap space-x-6","horizontal"===r&&"space-y-6",t),orientation:r,...n,children:(0,s.jsx)(Jh.Provider,{value:{variant:n.variant},children:e})}))),$h=n.forwardRef((({className:e,stretch:t,...r},n)=>{let{variant:o}=Hh();return(0,s.jsx)(Rc,{ref:n,className:cu("flex items-center text-sm",t&&"w-full grow",("contained-bottom"===o||"contained-top"===o)&&!t&&"w-fit",t&&"[&>*]:grow",Vh({variant:o}),e),...r})})),Xh=n.forwardRef((({className:e,before:t,after:r,children:o,asChild:i,...a},l)=>{let{variant:c}=Hh(),u=i&&du(o)?n.cloneElement(o,{children:(0,s.jsxs)(s.Fragment,{children:[t,hu(o)&&o.props.children,r]})}):(0,s.jsxs)(s.Fragment,{children:[t,o?(0,s.jsx)("span",{className:"px-1",children:o}):null,r]});return(0,s.jsx)(Yc,{ref:l,asChild:i,className:cu("inline-flex items-center justify-center gap-1 whitespace-nowrap text-surface-500 outline-primary transition-colors duration-100 focus:outline-0 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:opacity-60",Wh({variant:c}),e),...a,children:u})})),Kh=n.forwardRef((({className:e,...t},r)=>(0,s.jsx)(Uc,{ref:r,className:cu("outline-primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",e),...t}))),qh=Object.assign(Zh,{Root:Zh,List:$h,Trigger:Xh,Content:Kh});Zh.displayName=Qc.displayName,$h.displayName=Rc.displayName,Xh.displayName=Yc.displayName,Kh.displayName=Uc.displayName;var ep=qh,tp=n.forwardRef(((e,t)=>{let{avatar:r,before:o,closeIcon:i,closable:a,onClose:l,...c}=e,[u,d]=n.useState(!0),h=n.useCallback((e=>{l&&l(e),e.defaultPrevented||d(!1)}),[l]),p=(0,s.jsxs)(s.Fragment,{children:[du(o)?n.cloneElement(o,{className:cu("size-4",o.props.className||"")}):o,r&&n.cloneElement(r,{size:"xxs"})]}),f=du(i)?i:(0,s.jsx)(Lu,{"aria-label":"Close",className:"size-4"}),m=a?(0,s.jsx)(yu,{before:f,className:"duration-180 size-auto p-0 text-wg-gray-400 transition-colors hover:text-wg-gray-600 focus:outline-1 dark:text-wg-white-500 dark:hover:text-wg-white-700 [&>svg]:!opacity-100",shape:"pill",size:"xs-icon",variant:"link",onClick:h}):void 0;return u?(0,s.jsx)(cd,{ref:t,before:p,...c,after:m}):null}));tp.displayName="Tag";var rp=tp,np=n.forwardRef((({className:e,description:t,destructive:r,disabled:o,helperText:i,id:a,label:l,required:c,tooltip:u,...d},h)=>{let p=n.useId(),f=a??p,m=d["aria-invalid"]??r;return(0,s.jsxs)("div",{className:"flex flex-col gap-2 wg-antialiased",children:[(0,s.jsx)(Td,{description:t,disabled:o,htmlFor:f,id:`${f}__label`,required:c,tooltip:u,children:l}),(0,s.jsx)("textarea",{ref:h,"aria-describedby":i?`${f}__describer`:void 0,"aria-invalid":m,"aria-labelledby":l?`${f}__label`:void 0,className:cu("flex min-h-[112px] rounded-lg border bg-background px-4 py-2 text-sm leading-6 shadow-wg-xs transition-colors duration-100 placeholder:text-surface-500","outline-primary focus:outline focus:outline-2 focus:-outline-offset-1",!o&&"text-surface-900 hover:border-surface-300 dark:hover:border-surface-200",o&&"cursor-not-allowed bg-surface-50 text-surface-300 placeholder:text-surface-300 dark:bg-white/5 dark:text-surface-200 dark:placeholder:text-surface-200",m&&"border-destructive outline-destructive hover:border-destructive dark:hover:border-destructive",!m&&"border-surface-200 dark:border-surface-100",e),disabled:o,id:f,required:c,...d}),(0,s.jsx)(Td.Helper,{"aria-invalid":m,disabled:o,id:`${f}__describer`,children:i})]})}));np.displayName="Textarea";var op=np;function ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ip.apply(null,arguments)}function ap(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function sp(e){let t=(0,n.useRef)(e);return(0,n.useEffect)((()=>{t.current=e})),(0,n.useMemo)((()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)}),[])}var lp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{let r=(0,n.forwardRef)(((e,r)=>{let{asChild:o,...i}=e,a=o?l:t;return(0,n.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,n.createElement)(a,ip({},i,{ref:r}))}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{}),cp=(0,n.forwardRef)(((e,t)=>{let{pressed:r,defaultPressed:o=!1,onPressedChange:i,...a}=e,[s=!1,l]=function({prop:e,defaultProp:t,onChange:r=()=>{}}){let[o,i]=function({defaultProp:e,onChange:t}){let r=(0,n.useState)(e),[o]=r,i=(0,n.useRef)(o),a=sp(t);return(0,n.useEffect)((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),r}({defaultProp:t,onChange:r}),a=void 0!==e,s=a?e:o,l=sp(r);return[s,(0,n.useCallback)((t=>{if(a){let r="function"==typeof t?t(e):t;r!==e&&l(r)}else i(t)}),[a,e,i,l])]}({prop:r,onChange:i,defaultProp:o});return(0,n.createElement)(lp.button,ip({type:"button","aria-pressed":s,"data-state":s?"on":"off","data-disabled":e.disabled?"":void 0},a,{ref:t,onClick:ap(e.onClick,(()=>{e.disabled||l(!s)}))}))})),up=cp,dp=n.forwardRef((({asChild:e=!1,after:t,before:r,children:n,className:o,disabled:i,isIconOnly:a=!1,shape:l="rounded",size:c="md",variant:u="outline",...d},h)=>(0,s.jsx)(up,{asChild:!0,...d,children:(0,s.jsx)(yu,{after:t,asChild:e,before:r,className:cu("font-normal data-[state=on]:bg-surface-50 data-[state=on]:font-medium",o),disabled:i,isIconOnly:a,ref:h,shape:l,size:c,variant:u,children:n})})));dp.displayName="Toggle";var hp=dp,pp=n.createContext(null),fp=n.forwardRef((({className:e,type:t="single",orientation:r="horizontal",disabled:n=!1,size:o="md",...i},a)=>(0,s.jsx)(pp.Provider,{value:{disabled:n,orientation:r,size:o},children:(0,s.jsx)(nu,{ref:a,className:cu("dark:shadow:none inline-flex flex-wrap items-stretch divide-surface-100 rounded-[9px] border border-surface-200 shadow-wg-xs dark:border-surface-100","vertical"===r&&"flex-col divide-y","horizontal"===r&&"divide-x",e),type:t,...i})}))),mp=n.forwardRef((({asChild:e,className:t,children:r,...o},i)=>{let a=n.useContext(pp),{size:l,disabled:c,orientation:u}=a??{};return(0,s.jsx)(ou,{asChild:!0,ref:i,disabled:c,...o,children:(0,s.jsx)(hp,{asChild:e,className:cu("flex items-center rounded-none bg-clip-padding focus-visible:z-10 focus-visible:-outline-offset-1 data-[state=on]:bg-surface-50",t,"horizontal"===u?"first-of-type:rounded-s-lg last-of-type:rounded-e-lg":"first-of-type:rounded-t-lg last-of-type:rounded-b-lg"),variant:"transparent",size:l,shape:"rounded",children:r})})}));fp.displayName="ToggleGroup",mp.displayName="ToggleGroupItem",Object.assign(fp,{Root:fp,Item:mp})},9765:(e,t,r)=>{"use strict";function n(e){let t;const r=typeof e;if("boolean"===r)t=e;else switch(r){case"undefined":case"null":case"NaN":t=!1;break;case"object":t=!Object.is(e,null)&&(Array.isArray(e)?0!==e.length:0!==Object.keys(e).length);break;case"number":case"string":if("string"===r)return 0!==e.length&&(!!Object.is(parseInt(e),NaN)||0!==parseInt(e));if(!Number.isFinite(e))return!1;if(function(e){return Number(e)===e&&e%1!=0}(e))return e>0;t=!(0>=Number(e));break;case"bigint":case"symbol":t=!0;break;case"function":t=!(typeof e()>"u")}return t}r.d(t,{A:()=>n})},2940:(e,t,r)=>{"use strict";r.d(t,{my:()=>n,w4:()=>o}),Math.pow(10,8);const n=6048e5,o=864e5},5840:(e,t,r)=>{"use strict";function n(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}r.d(t,{w:()=>n})},960:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});var n=r(2940),o=r(1730),i=r(2642);function a(e){const t=(0,i.a)(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function s(e,t){const r=(0,o.o)(e),i=(0,o.o)(t),s=+r-a(r),l=+i-a(i);return Math.round((s-l)/n.w4)}},5727:(e,t,r)=>{"use strict";r.d(t,{GP:()=>B});const n={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"}};function o(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const i={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=r?.width?String(r.width):t;n=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=r?.width?String(r.width):e.defaultWidth;n=e.values[o]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function l(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e){for(let t=0;t<e.length;t++)if(e[t].test(a))return t}(s):function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(a))return t}(s);let c;return c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c,{value:c,rest:t.slice(a.length)}}}var c;const u={code:"en-US",formatDistance:(e,t,r)=>{let o;const i=n[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o},formatLong:i,formatRelative:(e,t,r,n)=>a[e],localize:{ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:s({values:{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"]},defaultWidth:"wide"}),day:s({values:{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"]},defaultWidth:"wide"}),dayPeriod:s({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(c={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(c.matchPattern);if(!r)return null;const n=r[0],o=e.match(c.parsePattern);if(!o)return null;let i=c.valueCallback?c.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(n.length)}}),era:l({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:l({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:l({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};let d={};function h(){return d}var p=r(960),f=r(2642),m=r(5840);function g(e){const t=(0,f.a)(e);return(0,p.m)(t,function(e){const t=(0,f.a)(e),r=(0,m.w)(e,0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}(t))+1}var y=r(2940);function M(e,t){const r=h(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=(0,f.a)(e),i=o.getDay(),a=(i<n?7:0)+i-n;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function L(e){return M(e,{weekStartsOn:1})}function w(e){const t=(0,f.a)(e),r=t.getFullYear(),n=(0,m.w)(e,0);n.setFullYear(r+1,0,4),n.setHours(0,0,0,0);const o=L(n),i=(0,m.w)(e,0);i.setFullYear(r,0,4),i.setHours(0,0,0,0);const a=L(i);return t.getTime()>=o.getTime()?r+1:t.getTime()>=a.getTime()?r:r-1}function x(e){const t=(0,f.a)(e),r=+L(t)-+function(e){const t=w(e),r=(0,m.w)(e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),L(r)}(t);return Math.round(r/y.my)+1}function v(e,t){const r=(0,f.a)(e),n=r.getFullYear(),o=h(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=(0,m.w)(e,0);a.setFullYear(n+1,0,i),a.setHours(0,0,0,0);const s=M(a,t),l=(0,m.w)(e,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);const c=M(l,t);return r.getTime()>=s.getTime()?n+1:r.getTime()>=c.getTime()?n:n-1}function j(e,t){const r=(0,f.a)(e),n=+M(r,t)-+function(e,t){const r=h(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=v(e,t),i=(0,m.w)(e,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),M(i,t)}(r,t);return Math.round(n/y.my)+1}function N(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const b={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return N("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):N(r+1,2)},d:(e,t)=>N(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>N(e.getHours()%12||12,t.length),H:(e,t)=>N(e.getHours(),t.length),m:(e,t)=>N(e.getMinutes(),t.length),s:(e,t)=>N(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return N(Math.trunc(n*Math.pow(10,r-3)),t.length)}},C={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return b.y(e,t)},Y:function(e,t,r,n){const o=v(e,n),i=o>0?o:1-o;return"YY"===t?N(i%100,2):"Yo"===t?r.ordinalNumber(i,{unit:"year"}):N(i,t.length)},R:function(e,t){return N(w(e),t.length)},u:function(e,t){return N(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return N(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return N(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return b.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return N(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=j(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):N(o,t.length)},I:function(e,t,r){const n=x(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):N(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):b.d(e,t)},D:function(e,t,r){const n=g(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):N(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return N(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return N(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=0===n?7:n;switch(t){case"i":return String(o);case"ii":return N(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(o=12===n?"noon":0===n?"midnight":n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(o=n>=17?"evening":n>=12?"afternoon":n>=4?"morning":"night",t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return b.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):b.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):N(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):N(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):b.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):b.s(e,t)},S:function(e,t){return b.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return D(n);case"XXXX":case"XX":return k(n);default:return k(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return D(n);case"xxxx":case"xx":return k(n);default:return k(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+T(n,":");default:return"GMT"+k(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+T(n,":");default:return"GMT"+k(n,":")}},t:function(e,t,r){return N(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,r){return N(e.getTime(),t.length)}};function T(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),i=n%60;return 0===i?r+String(o):r+String(o)+t+N(i,2)}function D(e,t){return e%60==0?(e>0?"-":"+")+N(Math.abs(e)/60,2):k(e,t)}function k(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+N(Math.trunc(n/60),2)+t+N(n%60,2)}const E=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},S=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},I={p:S,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return E(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",E(n,t)).replace("{{time}}",S(o,t))}},z=/^D+$/,O=/^Y+$/,P=["D","DD","YY","YYYY"];var A=r(6074);const Q=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,R=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Y=/^'([^]*?)'?$/,U=/''/g,_=/[a-zA-Z]/;function B(e,t,r){const n=h(),o=r?.locale??n.locale??u,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=(0,f.a)(e);if(!(0,A.f)(s))throw new RangeError("Invalid time value");let l=t.match(R).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,I[t])(e,o.formatLong):e})).join("").match(Q).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:F(e)};if(C[t])return{isToken:!0,value:e};if(t.match(_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map((n=>{if(!n.isToken)return n.value;const i=n.value;return(!r?.useAdditionalWeekYearTokens&&function(e){return O.test(e)}(i)||!r?.useAdditionalDayOfYearTokens&&function(e){return z.test(e)}(i))&&function(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),P.includes(e))throw new RangeError(n)}(i,t,String(e)),(0,C[i[0]])(s,i,o.localize,c)})).join("")}function F(e){const t=e.match(Y);return t?t[1].replace(U,"'"):e}},5216:(e,t,r)=>{"use strict";r.d(t,{q:()=>o});var n=r(2642);function o(e){return(0,n.a)(e).getHours()}},6062:(e,t,r)=>{"use strict";r.d(t,{O:()=>o});var n=r(2642);function o(e){return(0,n.a)(e).getMinutes()}},8926:(e,t,r)=>{"use strict";r.d(t,{S:()=>o});var n=r(2642);function o(e){return(0,n.a)(e).getSeconds()}},6074:(e,t,r)=>{"use strict";r.d(t,{f:()=>o});var n=r(2642);function o(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const r=(0,n.a)(e);return!isNaN(Number(r))}},1730:(e,t,r)=>{"use strict";r.d(t,{o:()=>o});var n=r(2642);function o(e){const t=(0,n.a)(e);return t.setHours(0,0,0,0),t}},9739:(e,t,r)=>{"use strict";r.d(t,{R:()=>o});var n=r(1730);function o(){return(0,n.o)(Date.now())}},2642:(e,t,r)=>{"use strict";function n(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}r.d(t,{a:()=>n})},9473:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});const n=(0,r(1609).createContext)({})},5446:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});const n=(0,r(1609).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},6719:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});const n=(0,r(1609).createContext)(null)},8530:(e,t,r)=>{"use strict";r.d(t,{I:()=>a});var n=r(4668);const o=["read","resolveKeyframes","update","preRender","render","postRender"],i=40;function a(e,t){let r=!1,a=!0;const s={delta:0,timestamp:0,isProcessing:!1},l=()=>r=!0,c=o.reduce(((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,o=!1,a=!1)=>{const s=a&&n?t:r;return o&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),i.delete(e)},process:e=>{a=e,n?o=!0:(n=!0,[t,r]=[r,t],r.clear(),t.forEach(s),n=!1,o&&(o=!1,l.process(e)))}};return l}(l),e)),{}),{read:u,resolveKeyframes:d,update:h,preRender:p,render:f,postRender:m}=c,g=()=>{const o=n.W.useManualTiming?s.timestamp:performance.now();r=!1,s.delta=a?1e3/60:Math.max(Math.min(o-s.timestamp,i),1),s.timestamp=o,s.isProcessing=!0,u.process(s),d.process(s),h.process(s),p.process(s),f.process(s),m.process(s),s.isProcessing=!1,r&&t&&(a=!1,e(g))};return{schedule:o.reduce(((t,n)=>{const o=c[n];return t[n]=(t,n=!1,i=!1)=>(r||(r=!0,a=!0,s.isProcessing||e(g)),o.schedule(t,n,i)),t}),{}),cancel:e=>{for(let t=0;t<o.length;t++)c[o[t]].cancel(e)},state:s,steps:c}}},104:(e,t,r)=>{"use strict";r.d(t,{Ci:()=>l,Gt:()=>i,WG:()=>a,uv:()=>s});var n=r(3659),o=r(8530);const{schedule:i,cancel:a,state:s,steps:l}=(0,o.I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.l,!0)},2599:(e,t,r)=>{"use strict";r.d(t,{P:()=>Da});var n=r(4848),o=r(1609),i=r(5446);const a=(0,o.createContext)({});var s=r(6719),l=r(5128);const c=(0,o.createContext)({strict:!1}),u=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),d="data-"+u("framerAppearId");var h=r(8530);const{schedule:p,cancel:f}=(0,h.I)(queueMicrotask,!1);function m(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const g=(0,o.createContext)({});let y=!1;function M(e,t,r,n,u){const{visualElement:h}=(0,o.useContext)(a),f=(0,o.useContext)(c),M=(0,o.useContext)(s.t),x=(0,o.useContext)(i.Q).reducedMotion,v=(0,o.useRef)();n=n||f.renderer,!v.current&&n&&(v.current=n(e,{visualState:t,parent:h,props:r,presenceContext:M,blockInitialAnimation:!!M&&!1===M.initial,reducedMotionConfig:x}));const j=v.current,N=(0,o.useContext)(g);!j||j.projection||!u||"html"!==j.type&&"svg"!==j.type||function(e,t,r,n){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:w(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&m(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:c})}(v.current,r,u,N),(0,o.useInsertionEffect)((()=>{j&&j.update(r,M)}));const b=(0,o.useRef)(Boolean(r[d]&&!window.HandoffComplete));return(0,l.E)((()=>{j&&(j.updateFeatures(),p.render(j.render),b.current&&j.animationState&&j.animationState.animateChanges())})),(0,o.useEffect)((()=>{j&&(!b.current&&j.animationState&&j.animationState.animateChanges(),b.current&&(b.current=!1,y||(y=!0,queueMicrotask(L))))})),j}function L(){window.HandoffComplete=!0}function w(e){if(e)return!1!==e.options.allowProjection?e.projection:w(e.parent)}function x(e,t,r){return(0,o.useCallback)((n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&("function"==typeof r?r(n):m(r)&&(r.current=n))}),[t])}function v(e){return"string"==typeof e||Array.isArray(e)}function j(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const N=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],b=["initial",...N];function C(e){return j(e.animate)||b.some((t=>v(e[t])))}function T(e){return Boolean(C(e)||e.variants)}function D(e){return Array.isArray(e)?e.join(" "):e}const k={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},E={};for(const e in k)E[e]={isEnabled:t=>k[e].some((e=>!!t[e]))};var S=r(8288),I=r(9473);const z=Symbol.for("motionComponentSymbol");function O({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:s,Component:l}){e&&function(e){for(const t in e)E[t]={...E[t],...e[t]}}(e);const u=(0,o.forwardRef)((function(e,u){let d;const h={...(0,o.useContext)(i.Q),...e,layoutId:P(e)},{isStatic:p}=h,f=function(e){const{initial:t,animate:r}=function(e,t){if(C(e)){const{initial:t,animate:r}=e;return{initial:!1===t||v(t)?t:void 0,animate:v(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(a));return(0,o.useMemo)((()=>({initial:t,animate:r})),[D(t),D(r)])}(e),m=s(e,p);if(!p&&S.B){(0,o.useContext)(c).strict;const e=function(e){const{drag:t,layout:r}=E;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(h);d=e.MeasureLayout,f.visualElement=M(l,m,h,t,e.ProjectionNode)}return(0,n.jsxs)(a.Provider,{value:f,children:[d&&f.visualElement?(0,n.jsx)(d,{visualElement:f.visualElement,...h}):null,r(l,e,x(m,f.visualElement,u),m,p,f.visualElement)]})}));return u[z]=l,u}function P({layoutId:e}){const t=(0,o.useContext)(I.L).id;return t&&void 0!==e?t+"-"+e:e}function A(e){function t(t,r={}){return O(e(t,r))}if("undefined"==typeof Proxy)return t;const r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}const Q=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function R(e){return"string"==typeof e&&!e.includes("-")&&!!(Q.indexOf(e)>-1||/[A-Z]/u.test(e))}const Y={},U=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_=new Set(U);function B(e,{layout:t,layoutId:r}){return _.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!Y[e]||"opacity"===e)}const F=e=>Boolean(e&&e.getVelocity),G={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},V=U.length,W=e=>t=>"string"==typeof t&&t.startsWith(e),J=W("--"),H=W("var(--"),Z=e=>!!H(e)&&$.test(e.split("/*")[0].trim()),$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,X=(e,t)=>t&&"number"==typeof e?t.transform(e):e,K=(e,t,r)=>r>t?t:r<e?e:r,q={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ee={...q,transform:e=>K(0,1,e)},te={...q,default:1},re=e=>Math.round(1e5*e)/1e5,ne=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,oe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ie=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function ae(e){return"string"==typeof e}const se=e=>({test:t=>ae(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),le=se("deg"),ce=se("%"),ue=se("px"),de=se("vh"),he=se("vw"),pe={...ce,parse:e=>ce.parse(e)/100,transform:e=>ce.transform(100*e)},fe={...q,transform:Math.round},me={borderWidth:ue,borderTopWidth:ue,borderRightWidth:ue,borderBottomWidth:ue,borderLeftWidth:ue,borderRadius:ue,radius:ue,borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomRightRadius:ue,borderBottomLeftRadius:ue,width:ue,maxWidth:ue,height:ue,maxHeight:ue,size:ue,top:ue,right:ue,bottom:ue,left:ue,padding:ue,paddingTop:ue,paddingRight:ue,paddingBottom:ue,paddingLeft:ue,margin:ue,marginTop:ue,marginRight:ue,marginBottom:ue,marginLeft:ue,rotate:le,rotateX:le,rotateY:le,rotateZ:le,scale:te,scaleX:te,scaleY:te,scaleZ:te,skew:le,skewX:le,skewY:le,distance:ue,translateX:ue,translateY:ue,translateZ:ue,x:ue,y:ue,z:ue,perspective:ue,transformPerspective:ue,opacity:ee,originX:pe,originY:pe,originZ:ue,zIndex:fe,backgroundPositionX:ue,backgroundPositionY:ue,fillOpacity:ee,strokeOpacity:ee,numOctaves:fe};function ge(e,t,r){const{style:n,vars:o,transform:i,transformOrigin:a}=e;let s=!1,l=!1,c=!0;for(const e in t){const r=t[e];if(J(e)){o[e]=r;continue}const u=me[e],d=X(r,u);if(_.has(e)){if(s=!0,i[e]=d,!c)continue;r!==(u.default||0)&&(c=!1)}else e.startsWith("origin")?(l=!0,a[e]=d):n[e]=d}if(t.transform||(s||r?n.transform=function(e,t,r){let n="";for(let t=0;t<V;t++){const r=U[t];void 0!==e[r]&&(n+=`${G[r]||r}(${e[r]}) `)}return n=n.trim(),r?n=r(e,t?"":n):t&&(n="none"),n}(e.transform,c,r):n.transform&&(n.transform="none")),l){const{originX:e="50%",originY:t="50%",originZ:r=0}=a;n.transformOrigin=`${e} ${t} ${r}`}}const ye=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Me(e,t,r){for(const n in t)F(t[n])||B(n,r)||(e[n]=t[n])}function Le(e,t){const r={},n=function(e,t){const r={};return Me(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t){return(0,o.useMemo)((()=>{const r=ye();return ge(r,t,e),Object.assign({},r.vars,r.style)}),[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const we=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function xe(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||we.has(e)}let ve=e=>!xe(e);try{(je=require("@emotion/is-prop-valid").default)&&(ve=e=>e.startsWith("on")?!xe(e):je(e))}catch(e){}var je;function Ne(e,t,r){return"string"==typeof e?e:ue.transform(t+r*e)}const be={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ce={offset:"strokeDashoffset",array:"strokeDasharray"};function Te(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d){if(ge(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:h,style:p,dimensions:f}=e;h.transform&&(f&&(p.transform=h.transform),delete h.transform),f&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(e,t,r){return`${Ne(t,e.x,e.width)} ${Ne(r,e.y,e.height)}`}(f,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(h.x=t),void 0!==r&&(h.y=r),void 0!==n&&(h.scale=n),void 0!==a&&function(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?be:Ce;e[i.offset]=ue.transform(-n);const a=ue.transform(t),s=ue.transform(r);e[i.array]=`${a} ${s}`}(h,a,s,l,!1)}const De=()=>({...ye(),attrs:{}}),ke=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Ee(e,t,r,n){const i=(0,o.useMemo)((()=>{const r=De();return Te(r,t,ke(n),e.transformTemplate),{...r.attrs,style:{...r.style}}}),[t]);if(e.style){const t={};Me(t,e.style,e),i.style={...t,...i.style}}return i}function Se(e=!1){return(t,r,n,{latestValues:i},a)=>{const s=(R(t)?Ee:Le)(r,i,a,t),l=function(e,t,r){const n={};for(const o in e)"values"===o&&"object"==typeof e.values||(ve(o)||!0===r&&xe(o)||!t&&!xe(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}(r,"string"==typeof t,e),c=t!==o.Fragment?{...l,...s,ref:n}:{},{children:u}=r,d=(0,o.useMemo)((()=>F(u)?u.get():u),[u]);return(0,o.createElement)(t,{...c,children:d})}}function Ie(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const t in r)e.style.setProperty(t,r[t])}const ze=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Oe(e,t,r,n){Ie(e,t,void 0,n);for(const r in t.attrs)e.setAttribute(ze.has(r)?r:u(r),t.attrs[r])}function Pe(e,t,r){var n;const{style:o}=e,i={};for(const a in o)(F(o[a])||t.style&&F(t.style[a])||B(a,e)||void 0!==(null===(n=null==r?void 0:r.getValue(a))||void 0===n?void 0:n.liveStyle))&&(i[a]=o[a]);return r&&o&&"string"==typeof o.willChange&&(r.applyWillChange=!1),i}function Ae(e,t,r){const n=Pe(e,t,r);for(const r in e)(F(e[r])||F(t[r]))&&(n[-1!==U.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function Qe(e){const t=[{},{}];return null==e||e.values.forEach(((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()})),t}function Re(e,t,r,n){if("function"==typeof t){const[o,i]=Qe(n);t=t(void 0!==r?r:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=Qe(n);t=t(void 0!==r?r:e.custom,o,i)}return t}var Ye=r(8601);const Ue=e=>Array.isArray(e),_e=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),Be=e=>Ue(e)?e[e.length-1]||0:e;function Fe(e){const t=F(e)?e.get():e;return _e(t)?t.toValue():t}const Ge=new Set(["opacity","clipPath","filter","transform"]);function Ve(e){return _.has(e)?"transform":Ge.has(e)?u(e):void 0}function We(e,t){-1===e.indexOf(t)&&e.push(t)}function Je(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const He=e=>(t,r)=>{const n=(0,o.useContext)(a),i=(0,o.useContext)(s.t),l=()=>function({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:r,onMount:n},o,i,a,s){const l={latestValues:Xe(o,i,a,!s&&e,t),renderState:r()};return n&&(l.mount=e=>n(o,e,l)),l}(e,t,n,i,r);return r?l():(0,Ye.M)(l)};function Ze(e,t){const r=Ve(t);r&&We(e,r)}function $e(e,t,r){const n=Array.isArray(t)?t:[t];for(let t=0;t<n.length;t++){const o=Re(e,n[t]);if(o){const{transitionEnd:e,transition:t,...n}=o;r(n,e)}}}function Xe(e,t,r,n,o){var i;const a={},s=[],l=n&&void 0===(null===(i=e.style)||void 0===i?void 0:i.willChange),c=o(e,{});for(const e in c)a[e]=Fe(c[e]);let{initial:u,animate:d}=e;const h=C(e),p=T(e);t&&p&&!h&&!1!==e.inherit&&(void 0===u&&(u=t.initial),void 0===d&&(d=t.animate));let f=!!r&&!1===r.initial;f=f||!1===u;const m=f?d:u;return m&&"boolean"!=typeof m&&!j(m)&&$e(e,m,((e,t)=>{for(const t in e){let r=e[t];Array.isArray(r)&&(r=r[f?r.length-1:0]),null!==r&&(a[t]=r)}for(const e in t)a[e]=t[e]})),l&&(d&&!1!==u&&!j(d)&&$e(e,d,(e=>{for(const t in e)Ze(s,t)})),s.length&&(a.willChange=s.join(","))),a}var Ke=r(104);const qe={useVisualState:He({scrapeMotionValuesFromProps:Ae,createRenderState:De,onMount:(e,t,{renderState:r,latestValues:n})=>{Ke.Gt.read((()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}})),Ke.Gt.render((()=>{Te(r,n,ke(t.tagName),e.transformTemplate),Oe(t,r)}))}})},et={useVisualState:He({applyWillChange:!0,scrapeMotionValuesFromProps:Pe,createRenderState:ye})};function tt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}const rt=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function nt(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const ot=e=>t=>rt(t)&&e(t,nt(t));function it(e,t,r,n){return tt(e,t,ot(r),n)}const at=(e,t)=>r=>t(e(r)),st=(...e)=>e.reduce(at);function lt(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}const ct=lt("dragHorizontal"),ut=lt("dragVertical");function dt(e){let t=!1;if("y"===e)t=ut();else if("x"===e)t=ct();else{const e=ct(),r=ut();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function ht(){const e=dt(!0);return!e||(e(),!1)}class pt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function ft(e,t){const r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd";return it(e.current,r,((r,o)=>{if("touch"===r.pointerType||ht())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t);const a=i[n];a&&Ke.Gt.postRender((()=>a(r,o)))}),{passive:!e.getProps()[n]})}const mt=(e,t)=>!!t&&(e===t||mt(e,t.parentElement));var gt=r(3659);function yt(e,t){if(!t)return;const r=new PointerEvent("pointer"+e);t(r,nt(r))}const Mt=new WeakMap,Lt=new WeakMap,wt=e=>{const t=Mt.get(e.target);t&&t(e)},xt=e=>{e.forEach(wt)};const vt={some:0,all:1},jt={inView:{Feature:class extends pt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:vt[n]};return function(e,t,r){const n=function({root:e,...t}){const r=e||document;Lt.has(r)||Lt.set(r,{});const n=Lt.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(xt,{root:e,...t})),n[o]}(t);return Mt.set(e,r),n.observe(e),()=>{Mt.delete(e),n.unobserve(e)}}(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends pt{constructor(){super(...arguments),this.removeStartListeners=gt.l,this.removeEndListeners=gt.l,this.removeAccessibleListeners=gt.l,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),n=it(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:r,onTapCancel:n,globalTapTarget:o}=this.node.getProps(),i=o||mt(this.node.current,e.target)?r:n;i&&Ke.Gt.update((()=>i(e,t)))}),{passive:!(r.onTap||r.onPointerUp)}),o=it(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=st(n,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=tt(this.node.current,"keydown",(e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tt(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&yt("up",((e,t)=>{const{onTap:r}=this.node.getProps();r&&Ke.Gt.postRender((()=>r(e,t)))}))})),yt("down",((e,t)=>{this.startPress(e,t)})))})),t=tt(this.node.current,"blur",(()=>{this.isPressing&&yt("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=st(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ke.Gt.postRender((()=>r(e,t)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ht()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ke.Gt.postRender((()=>r(e,t)))}mount(){const e=this.node.getProps(),t=it(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=tt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=st(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends pt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=st(tt(this.node.current,"focus",(()=>this.onFocus())),tt(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends pt{mount(){this.unmount=st(ft(this.node,!0),ft(this.node,!1))}unmount(){}}}};function Nt(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function bt(e,t,r){const n=e.getProps();return Re(n,t,void 0!==r?r:n.custom,e)}const Ct=e=>1e3*e,Tt=e=>e/1e3,Dt={type:"spring",stiffness:500,damping:25,restSpeed:10},kt={type:"keyframes",duration:.8},Et={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},St=(e,{keyframes:t})=>t.length>2?kt:_.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Dt:Et;function It(e,t){return e[t]||e.default||e}var zt=r(4668);const Ot=e=>null!==e;function Pt(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(Ot),i=t&&"loop"!==r&&t%2==1?0:o.length-1;return i&&void 0!==n?n:o[i]}let At;function Qt(){At=void 0}const Rt={now:()=>(void 0===At&&Rt.set(Ke.uv.isProcessing||zt.W.useManualTiming?Ke.uv.timestamp:performance.now()),At),set:e=>{At=e,queueMicrotask(Qt)}},Yt=e=>/^0[^.\s]+$/u.test(e);var Ut=r(5238);const _t=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Bt=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ft(e,t,r=1){(0,Ut.V)(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,o]=function(e){const t=Bt.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${null!=r?r:n}`,o]}(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const e=i.trim();return _t(e)?parseFloat(e):e}return Z(o)?Ft(o,t,r+1):o}const Gt=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Vt=e=>e===q||e===ue,Wt=(e,t)=>parseFloat(e.split(", ")[t]),Jt=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/u);if(o)return Wt(o[1],t);{const t=n.match(/^matrix\((.+)\)$/u);return t?Wt(t[1],e):0}},Ht=new Set(["x","y","z"]),Zt=U.filter((e=>!Ht.has(e))),$t={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Jt(4,13),y:Jt(5,14)};$t.translateX=$t.x,$t.translateY=$t.y;const Xt=e=>t=>t.test(e),Kt=[q,ue,ce,le,he,de,{test:e=>"auto"===e,parse:e=>e}],qt=e=>Kt.find(Xt(e)),er=new Set;let tr=!1,rr=!1;function nr(){if(rr){const e=Array.from(er).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),r=new Map;t.forEach((e=>{const t=function(e){const t=[];return Zt.forEach((r=>{const n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))})),t}(e);t.length&&(r.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=r.get(e);t&&t.forEach((([t,r])=>{var n;null===(n=e.getValue(t))||void 0===n||n.set(r)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}rr=!1,tr=!1,er.forEach((e=>e.complete())),er.clear()}function or(){er.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(rr=!0)}))}class ir{constructor(e,t,r,n,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(er.add(this),tr||(tr=!0,Ke.Gt.read(or),Ke.Gt.resolveKeyframes(nr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==n?void 0:n.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(r&&t){const n=r.readValue(t,i);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=i),n&&void 0===o&&n.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),er.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,er.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ar=(e,t)=>r=>Boolean(ae(r)&&ie.test(r)&&r.startsWith(e)||t&&!function(e){return null==e}(r)&&Object.prototype.hasOwnProperty.call(r,t)),sr=(e,t,r)=>n=>{if(!ae(n))return n;const[o,i,a,s]=n.match(ne);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},lr={...q,transform:e=>Math.round((e=>K(0,255,e))(e))},cr={test:ar("rgb","red"),parse:sr("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+lr.transform(e)+", "+lr.transform(t)+", "+lr.transform(r)+", "+re(ee.transform(n))+")"},ur={test:ar("#"),parse:function(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:cr.transform},dr={test:ar("hsl","hue"),parse:sr("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ce.transform(re(t))+", "+ce.transform(re(r))+", "+re(ee.transform(n))+")"},hr={test:e=>cr.test(e)||ur.test(e)||dr.test(e),parse:e=>cr.test(e)?cr.parse(e):dr.test(e)?dr.parse(e):ur.parse(e),transform:e=>ae(e)?e:e.hasOwnProperty("red")?cr.transform(e):dr.transform(e)},pr="number",fr="color",mr="var",gr="var(",yr="${}",Mr=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Lr(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Mr,(e=>(hr.test(e)?(n.color.push(i),o.push(fr),r.push(hr.parse(e))):e.startsWith(gr)?(n.var.push(i),o.push(mr),r.push(e)):(n.number.push(i),o.push(pr),r.push(parseFloat(e))),++i,yr))).split(yr);return{values:r,split:a,indexes:n,types:o}}function wr(e){return Lr(e).values}function xr(e){const{split:t,types:r}=Lr(e),n=t.length;return e=>{let o="";for(let i=0;i<n;i++)if(o+=t[i],void 0!==e[i]){const t=r[i];o+=t===pr?re(e[i]):t===fr?hr.transform(e[i]):e[i]}return o}}const vr=e=>"number"==typeof e?0:e,jr={test:function(e){var t,r;return isNaN(e)&&ae(e)&&((null===(t=e.match(ne))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(oe))||void 0===r?void 0:r.length)||0)>0},parse:wr,createTransformer:xr,getAnimatableNone:function(e){const t=wr(e);return xr(e)(t.map(vr))}},Nr=new Set(["brightness","contrast","saturate","opacity"]);function br(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(ne)||[];if(!n)return e;const o=r.replace(n,"");let i=Nr.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const Cr=/\b([a-z-]*)\(.*?\)/gu,Tr={...jr,getAnimatableNone:e=>{const t=e.match(Cr);return t?t.map(br).join(" "):e}},Dr={...me,color:hr,backgroundColor:hr,outlineColor:hr,fill:hr,stroke:hr,borderColor:hr,borderTopColor:hr,borderRightColor:hr,borderBottomColor:hr,borderLeftColor:hr,filter:Tr,WebkitFilter:Tr},kr=e=>Dr[e];function Er(e,t){let r=kr(e);return r!==Tr&&(r=jr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const Sr=new Set(["auto","none","0"]);class Ir extends ir{constructor(e,t,r,n){super(e,t,r,n,null==n?void 0:n.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:r}=this;if(!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&(n=n.trim(),Z(n))){const o=Ft(n,t.current);void 0!==o&&(e[r]=o),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Gt.has(r)||2!==e.length)return;const[n,o]=e,i=qt(n),a=qt(o);if(i!==a)if(Vt(i)&&Vt(a))for(let t=0;t<e.length;t++){const r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++)("number"==typeof(n=e[t])?0===n:null===n||"none"===n||"0"===n||Yt(n))&&r.push(t);var n;r.length&&function(e,t,r){let n,o=0;for(;o<e.length&&!n;){const t=e[o];"string"==typeof t&&!Sr.has(t)&&Lr(t).values.length&&(n=e[o]),o++}if(n&&r)for(const o of t)e[o]=Er(r,n)}(e,r,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:r}=this;if(!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$t[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){var e;const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t.current)return;const o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);const i=n.length-1,a=n[i];n[i]=$t[r](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,r])=>{t.getValue(e).set(r)})),this.resolveNoneKeyframes()}}function zr(e){let t;return()=>(void 0===t&&(t=e()),t)}const Or=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!jr.test(e)&&"0"!==e||e.startsWith("url(")));class Pr{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:o,repeatType:i,...a},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(or(),nr()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;const{name:r,type:n,velocity:o,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,r,n){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=Or(o,t),s=Or(i,t);return(0,Ut.$)(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||"spring"===r&&n)}(e,r,n,o)){if(!i)return null==s||s(Pt(e,this.options,t)),null==a||a(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}function Ar(e,t){return t?e*(1e3/t):0}const Qr=5;function Rr(e,t,r){const n=Math.max(t-Qr,0);return Ar(r-e(n),t-n)}const Yr=.001,Ur=.01,_r=10,Br=.05,Fr=1;const Gr=12;function Vr(e,t){return e*Math.sqrt(1-t*t)}const Wr=["duration","bounce"],Jr=["stiffness","damping","mass"];function Hr(e,t){return t.some((t=>void 0!==e[t]))}function Zr({keyframes:e,restDelta:t,restSpeed:r,...n}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,duration:u,velocity:d,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Hr(e,Jr)&&Hr(e,Wr)){const r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;(0,Ut.$)(e<=Ct(_r),"Spring duration must be 10 seconds or less");let a=1-t;a=K(Br,Fr,a),e=K(Ur,_r,Tt(e)),a<1?(o=t=>{const n=t*a,o=n*e,i=n-r,s=Vr(t,a),l=Math.exp(-o);return Yr-i/s*l},i=t=>{const n=t*a*e,i=n*r+r,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-n),c=Vr(Math.pow(t,2),a);return(-o(t)+Yr>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-r)*e+1)-Yr,i=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let r=1;r<Gr;r++)n-=e(n)/t(n);return n}(o,i,5/e);if(e=Ct(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Tt(n.velocity||0)}),p=d||0,f=l/(2*Math.sqrt(s*c)),m=i-o,g=Tt(Math.sqrt(s/c)),y=Math.abs(m)<5;let M;if(r||(r=y?.01:2),t||(t=y?.005:.5),f<1){const e=Vr(g,f);M=t=>{const r=Math.exp(-f*g*t);return i-r*((p+f*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===f)M=e=>i-Math.exp(-g*e)*(m+(p+g*m)*e);else{const e=g*Math.sqrt(f*f-1);M=t=>{const r=Math.exp(-f*g*t),n=Math.min(e*t,300);return i-r*((p+f*g*m)*Math.sinh(n)+e*m*Math.cosh(n))/e}}return{calculatedDuration:h&&u||null,next:e=>{const n=M(e);if(h)a.done=e>=u;else{let o=p;0!==e&&(o=f<1?Rr(M,e,n):0);const s=Math.abs(o)<=r,l=Math.abs(i-n)<=t;a.done=s&&l}return a.value=a.done?i:n,a}}}function $r({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let f=r*t;const m=d+f,g=void 0===a?m:a(m);g!==m&&(f=g-d);const y=e=>-f*Math.exp(-e/n),M=e=>g+y(e),L=e=>{const t=y(e),r=M(e);h.done=Math.abs(t)<=c,h.value=h.done?g:r};let w,x;const v=e=>{var t;t=h.value,(void 0!==s&&t<s||void 0!==l&&t>l)&&(w=e,x=Zr({keyframes:[h.value,p(h.value)],velocity:Rr(M,e,h.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return v(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,L(e),v(e)),void 0!==w&&e>=w?x.next(e-w):(!t&&L(e),h)}}}const Xr=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function Kr(e,t,r,n){if(e===t&&r===n)return gt.l;return o=>0===o||1===o?o:Xr(function(e,t,r,n,o){let i,a,s=0;do{a=t+(r-t)/2,i=Xr(a,n,o)-e,i>0?r=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(o,0,1,e,r),t,n)}const qr=Kr(.42,0,1,1),en=Kr(0,0,.58,1),tn=Kr(.42,0,.58,1),rn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nn=e=>t=>1-e(1-t),on=e=>1-Math.sin(Math.acos(e)),an=nn(on),sn=rn(on),ln=Kr(.33,1.53,.69,.99),cn=nn(ln),un=rn(cn),dn={linear:gt.l,easeIn:qr,easeInOut:tn,easeOut:en,circIn:on,circInOut:sn,circOut:an,backIn:cn,backInOut:un,backOut:ln,anticipate:e=>(e*=2)<1?.5*cn(e):.5*(2-Math.pow(2,-10*(e-1)))},hn=e=>{if(Array.isArray(e)){(0,Ut.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,o]=e;return Kr(t,r,n,o)}return"string"==typeof e?((0,Ut.V)(void 0!==dn[e],`Invalid easing type '${e}'`),dn[e]):e},pn=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n},fn=(e,t,r)=>e+(t-e)*r;function mn(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function gn(e,t){return r=>r>0?t:e}const yn=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},Mn=[ur,cr,dr];function Ln(e){const t=(r=e,Mn.find((e=>e.test(r))));var r;if((0,Ut.$)(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let n=t.parse(e);return t===dr&&(n=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let o=0,i=0,a=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;o=mn(s,n,e+1/3),i=mn(s,n,e),a=mn(s,n,e-1/3)}else o=i=a=r;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:n}}(n)),n}const wn=(e,t)=>{const r=Ln(e),n=Ln(t);if(!r||!n)return gn(e,t);const o={...r};return e=>(o.red=yn(r.red,n.red,e),o.green=yn(r.green,n.green,e),o.blue=yn(r.blue,n.blue,e),o.alpha=fn(r.alpha,n.alpha,e),cr.transform(o))},xn=new Set(["none","hidden"]);function vn(e,t){return r=>fn(e,t,r)}function jn(e){return"number"==typeof e?vn:"string"==typeof e?Z(e)?gn:hr.test(e)?wn:Cn:Array.isArray(e)?Nn:"object"==typeof e?hr.test(e)?wn:bn:gn}function Nn(e,t){const r=[...e],n=r.length,o=e.map(((e,r)=>jn(e)(e,t[r])));return e=>{for(let t=0;t<n;t++)r[t]=o[t](e);return r}}function bn(e,t){const r={...e,...t},n={};for(const o in r)void 0!==e[o]&&void 0!==t[o]&&(n[o]=jn(e[o])(e[o],t[o]));return e=>{for(const t in n)r[t]=n[t](e);return r}}const Cn=(e,t)=>{const r=jr.createTransformer(t),n=Lr(e),o=Lr(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?xn.has(e)&&!o.values.length||xn.has(t)&&!n.values.length?function(e,t){return xn.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):st(Nn(function(e,t){var r;const n=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=null!==(r=e.values[s])&&void 0!==r?r:0;n[i]=l,o[a]++}return n}(n,o),o.values),r):((0,Ut.$)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),gn(e,t))};function Tn(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?fn(e,t,r):jn(e)(e,t)}function Dn({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(n)?n.map(hn):hn(n),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(r&&r.length===t.length?r:function(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=pn(0,t,n);e.push(fn(r,1,o))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if((0,Ut.V)(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,r){const n=[],o=r||Tn,i=e.length-1;for(let r=0;r<i;r++){let i=o(e[r],e[r+1]);if(t){const e=Array.isArray(t)?t[r]||gt.l:t;i=st(e,i)}n.push(i)}return n}(t,n,o),s=a.length,l=t=>{let r=0;if(s>1)for(;r<e.length-2&&!(t<e[r+1]);r++);const n=pn(e[r],e[r+1],t);return a[r](n)};return r?t=>l(K(e[0],e[i-1],t)):l}(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||tn)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const kn=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Ke.Gt.update(t,!0),stop:()=>(0,Ke.WG)(t),now:()=>Ke.uv.isProcessing?Ke.uv.timestamp:Rt.now()}},En={decay:$r,inertia:$r,tween:Dn,keyframes:Dn,spring:Zr},Sn=e=>e/100;class In extends Pr{constructor({KeyframeResolver:e=ir,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:r,motionValue:n,keyframes:o}=this.options,i=(e,t)=>this.onKeyframesResolved(e,t);r&&n&&n.owner?this.resolver=n.owner.resolveKeyframes(o,i,r,n):this.resolver=new e(o,i,r,n),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:o,velocity:i=0}=this.options,a=En[t]||Dn;let s,l;a!==Dn&&"number"!=typeof e[0]&&(s=st(Sn,Tn(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});"mirror"===o&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===c.calculatedDuration&&(c.calculatedDuration=function(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}(c));const{calculatedDuration:u}=c,d=u+n;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(r+1)-n}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:r}=this;if(!r){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:n,generator:o,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=r;if(null===this.startTime)return o.next(0);const{delay:d,repeat:h,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let M=this.currentTime,L=o;if(h){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,h+1),Boolean(t%2)&&("reverse"===p?(r=1-r,f&&(r-=f/u)):"mirror"===p&&(L=i)),M=K(0,1,r)*u}const w=y?{done:!1,value:s[0]}:L.next(M);a&&(w.value=a(w.value));let{done:x}=w;y||null===l||(x=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const v=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return v&&void 0!==n&&(w.value=Pt(s,this.options,n)),m&&m(w.value),v&&this.finish(),w}get duration(){const{resolved:e}=this;return e?Tt(e.calculatedDuration):0}get time(){return Tt(this.currentTime)}set time(e){e=Ct(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Tt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=kn,onPlay:t}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=r),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const zn=e=>Array.isArray(e)&&"number"==typeof e[0];function On(e){return Boolean(!e||"string"==typeof e&&e in An||zn(e)||Array.isArray(e)&&e.every(On))}const Pn=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,An={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pn([0,.65,.55,1]),circOut:Pn([.55,0,1,.45]),backIn:Pn([.31,.01,.66,-.59]),backOut:Pn([.33,1.53,.69,.99])};function Qn(e){return Rn(e)||An.easeOut}function Rn(e){return e?zn(e)?Pn(e):Array.isArray(e)?e.map(Qn):An[e]:void 0}const Yn=zr((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class Un extends Pr{constructor(e){super(e);const{name:t,motionValue:r,keyframes:n}=this.options;this.resolver=new Ir(n,((e,t)=>this.onKeyframesResolved(e,t)),t,r),this.resolver.scheduleResolve()}initPlayback(e,t){var r;let{duration:n=300,times:o,ease:i,type:a,motionValue:s,name:l}=this.options;if(!(null===(r=s.owner)||void 0===r?void 0:r.current))return!1;if("spring"===(c=this.options).type||!On(c.ease)){const{onComplete:t,onUpdate:r,motionValue:s,...l}=this.options,c=function(e,t){const r=new In({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const o=[];let i=0;for(;!n.done&&i<2e4;)n=r.sample(i),o.push(n.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,l);1===(e=c.keyframes).length&&(e[1]=e[0]),n=c.duration,o=c.times,i=c.ease,a="keyframes"}var c;const u=function(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:r};l&&(c.offset=l);const u=Rn(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:n,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(s.owner.current,l,e,{...this.options,duration:n,times:o,ease:i});return u.startTime=Rt.now(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:r}=this.options;s.set(Pt(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:o,type:a,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Tt(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Tt(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.currentTime=Ct(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return gt.l;const{animation:r}=t;r.timeline=e,r.onfinish=null}else this.pendingTimeline=e;return gt.l}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:r,duration:n,type:o,ease:i,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,...l}=this.options,c=new In({...l,keyframes:r,duration:n,type:o,ease:i,times:a,isGenerator:!0}),u=Ct(this.time);e.setWithVelocity(c.sample(u-10).value,c.sample(u).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:i,type:a}=e;return Yn()&&r&&Ge.has(r)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!n&&"mirror"!==o&&0!==i&&"inertia"!==a}}const Bn=zr((()=>void 0!==window.ScrollTimeline));class Fn{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e){const t=this.animations.map((t=>{if(!Bn()||!t.attachTimeline)return t.pause(),function(e,r){let n;const o=()=>{const{currentTime:e}=r,o=(null===e?0:e.value)/100;n!==o&&(e=>{t.time=t.duration*e})(o),n=o};return Ke.Gt.update(o,!0),()=>(0,Ke.WG)(o)}(0,e);t.attachTimeline(e)}));return()=>{t.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Gn=(e,t,r,n={},o,i,a)=>s=>{const l=It(n,e)||{},c=l.delay||n.delay||0;let{elapsed:u=0}=n;u-=Ct(c);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete(),a&&a()},onStop:a,name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(l)||(d={...d,...St(e,d)}),d.duration&&(d.duration=Ct(d.duration)),d.repeatDelay&&(d.repeatDelay=Ct(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let h=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(d.duration=0,0===d.delay&&(h=!0)),zt.W.skipAnimations&&(h=!0,d.duration=0,d.delay=0),h&&!i&&void 0!==t.get()){const e=Pt(d.keyframes,l);if(void 0!==e)return Ke.Gt.update((()=>{d.onUpdate(e),d.onComplete()})),new Fn([])}return!i&&Un.supports(d)?new Un(d):new In(d)};class Vn{constructor(){this.subscriptions=[]}add(e){return We(this.subscriptions,e),()=>Je(this.subscriptions,e)}notify(e,t,r){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let o=0;o<n;o++){const n=this.subscriptions[o];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Wn={current:void 0};class Jn{constructor(e,t={}){this.version="11.3.19",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const r=Rt.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Rt.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Vn);const r=this.events[e].add(t);return"change"===e?()=>{r(),Ke.Gt.read((()=>{this.events.change.getSize()||this.stop()}))}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Wn.current&&Wn.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Rt.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Ar(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Hn(e,t){return new Jn(e,t)}function Zn(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Hn(r))}function $n(e){return e.getProps()[d]}class Xn extends Jn{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){const t=Ve(e);if(!t)return;const r=this.counts.get(t)||0;this.counts.set(t,r+1),0===r&&(this.output.push(t),this.update());let n=!1;return()=>{if(n)return;n=!0;const e=this.counts.get(t)-1;this.counts.set(t,e),0===e&&(Je(this.output,t),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function Kn(e,t){var r;if(!e.applyWillChange)return;let n=e.getValue("willChange");return n||(null===(r=e.props.style)||void 0===r?void 0:r.willChange)||(n=new Xn("auto"),e.addValue("willChange",n)),o=n,Boolean(F(o)&&o.add)?n.add(t):void 0;var o}function qn({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function eo(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;n&&(a=n);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const n=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||u&&qn(u,t))continue;const s={delay:r,elapsed:0,...It(a||{},t)};let d=!1;if(window.HandoffAppearAnimations){const r=$n(e);if(r){const e=window.HandoffAppearAnimations(r,t,n,Ke.Gt);null!==e&&(s.elapsed=e,d=!0)}}n.start(Gn(t,n,o,e.shouldReduceMotion&&_.has(t)?{type:!1}:s,e,d,Kn(e,t)));const h=n.animation;h&&c.push(h)}return s&&Promise.all(c).then((()=>{Ke.Gt.update((()=>{s&&function(e,t){const r=bt(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const t in i)Zn(e,t,Be(i[t]))}(e,s)}))})),c}function to(e,t,r={}){var n;const o=bt(e,t,"exit"===r.type?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);const a=o?()=>Promise.all(eo(e,o,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(n=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,r=0,n=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*n,l=1===o?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(ro).forEach(((e,n)=>{e.notify("AnimationStart",t),a.push(to(e,t,{...i,delay:r+l(n)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,o+n,a,s,r)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(r.delay)])}function ro(e,t){return e.sortNodePosition(t)}const no=[...N].reverse(),oo=N.length;function io(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ao(){return{animate:io(!0),whileInView:io(),whileHover:io(),whileTap:io(),whileDrag:io(),whileFocus:io(),exit:io()}}let so=0;const lo={animation:{Feature:class extends pt{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:r})=>function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>to(e,t,r)));n=Promise.all(o)}else if("string"==typeof t)n=to(e,t,r);else{const o="function"==typeof t?bt(e,t,r.custom):t;n=Promise.all(eo(e,o,r))}return n.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,r))))}(e),r=ao(),n=!0;const o=t=>(r,n)=>{var o;const i=bt(e,n,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...n}=i;r={...r,...n,...t}}return r};function i(i){const a=e.getProps(),s=e.getVariantContext(!0)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<oo;t++){const f=no[t],m=r[f],g=void 0!==a[f]?a[f]:s[f],y=v(g),M=f===i?m.isActive:null;!1===M&&(d=t);let L=g===s[f]&&g!==a[f]&&y;if(L&&n&&e.manuallyAnimateOnMount&&(L=!1),m.protectedKeys={...u},!m.isActive&&null===M||!g&&!m.prevProp||j(g)||"boolean"==typeof g)continue;let w=(h=m.prevProp,("string"==typeof(p=g)?p!==h:!!Array.isArray(p)&&!Nt(p,h))||f===i&&m.isActive&&!L&&y||t>d&&y),x=!1;const N=Array.isArray(g)?g:[g];let b=N.reduce(o(f),{});!1===M&&(b={});const{prevResolvedValues:C={}}=m,T={...C,...b},D=t=>{w=!0,c.has(t)&&(x=!0,c.delete(t)),m.needsAnimating[t]=!0;const r=e.getValue(t);r&&(r.liveStyle=!1)};for(const e in T){const t=b[e],r=C[e];if(u.hasOwnProperty(e))continue;let n=!1;n=Ue(t)&&Ue(r)?!Nt(t,r):t!==r,n?null!=t?D(e):c.add(e):void 0!==t&&c.has(e)?D(e):m.protectedKeys[e]=!0}m.prevProp=g,m.prevResolvedValues=b,m.isActive&&(u={...u,...b}),n&&e.blockInitialAnimation&&(w=!1),!w||L&&!x||l.push(...N.map((e=>({animation:e,options:{type:f}}))))}var h,p;if(c.size){const t={};c.forEach((r=>{const n=e.getBaseTarget(r),o=e.getValue(r);o&&(o.liveStyle=!0),t[r]=null!=n?n:null})),l.push({animation:t})}let f=Boolean(l.length);return!n||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(f=!1),n=!1,f?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,n){var o;if(r[t].isActive===n)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;const a=i(t);for(const e in r)r[e].protectedKeys={};return a},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=ao(),n=!0}}}(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();j(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends pt{constructor(){super(...arguments),this.id=so++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},co=(e,t)=>Math.abs(e-t);class uo{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=fo(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=co(e.x,t.x),n=co(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:n}=e,{timestamp:o}=Ke.uv;this.history.push({...n,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=ho(t,this.transformPagePoint),Ke.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:r,onSessionEnd:n,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=fo("pointercancel"===e.type?this.lastMoveEventInfo:ho(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},!rt(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;const i=ho(nt(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=Ke.uv;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,fo(i,this.history)),this.removeListeners=st(it(this.contextWindow,"pointermove",this.handlePointerMove),it(this.contextWindow,"pointerup",this.handlePointerUp),it(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,Ke.WG)(this.updatePoint)}}function ho(e,t){return t?{point:t(e.point)}:e}function po(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fo({point:e},t){return{point:e,delta:po(e,go(t)),offset:po(e,mo(t)),velocity:yo(t,.1)}}function mo(e){return e[0]}function go(e){return e[e.length-1]}function yo(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=go(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Ct(t)));)r--;if(!n)return{x:0,y:0};const i=Tt(o.timestamp-n.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const Mo=.9999,Lo=1.0001,wo=-.01,xo=.01;function vo(e){return e.max-e.min}function jo(e,t,r,n=.5){e.origin=n,e.originPoint=fn(t.min,t.max,e.origin),e.scale=vo(r)/vo(t),e.translate=fn(r.min,r.max,e.origin)-e.originPoint,(e.scale>=Mo&&e.scale<=Lo||isNaN(e.scale))&&(e.scale=1),(e.translate>=wo&&e.translate<=xo||isNaN(e.translate))&&(e.translate=0)}function No(e,t,r,n){jo(e.x,t.x,r.x,n?n.originX:void 0),jo(e.y,t.y,r.y,n?n.originY:void 0)}function bo(e,t,r){e.min=r.min+t.min,e.max=e.min+vo(t)}function Co(e,t,r){e.min=t.min-r.min,e.max=e.min+vo(t)}function To(e,t,r){Co(e.x,t.x,r.x),Co(e.y,t.y,r.y)}function Do(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function ko(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}const Eo=.35;function So(e,t,r){return{min:Io(e,t),max:Io(e,r)}}function Io(e,t){return"number"==typeof e?e:e[t]||0}const zo=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Oo=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Po(e){return[e("x"),e("y")]}function Ao({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Qo(e){return void 0===e||1===e}function Ro({scale:e,scaleX:t,scaleY:r}){return!Qo(e)||!Qo(t)||!Qo(r)}function Yo(e){return Ro(e)||Uo(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Uo(e){return _o(e.x)||_o(e.y)}function _o(e){return e&&"0%"!==e}function Bo(e,t,r){return r+t*(e-r)}function Fo(e,t,r,n,o){return void 0!==o&&(e=Bo(e,o,n)),Bo(e,r,n)+t}function Go(e,t=0,r=1,n,o){e.min=Fo(e.min,t,r,n,o),e.max=Fo(e.max,t,r,n,o)}function Vo(e,{x:t,y:r}){Go(e.x,t.translate,t.scale,t.originPoint),Go(e.y,r.translate,r.scale,r.originPoint)}const Wo=.999999999999,Jo=1.0000000000001;function Ho(e,t){e.min=e.min+t,e.max=e.max+t}function Zo(e,t,r,n,o=.5){Go(e,t,r,fn(e.min,e.max,o),n)}function $o(e,t){Zo(e.x,t.x,t.scaleX,t.scale,t.originX),Zo(e.y,t.y,t.scaleY,t.scale,t.originY)}function Xo(e,t){return Ao(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}const Ko=({current:e})=>e?e.ownerDocument.defaultView:null,qo=new WeakMap;class ei{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Oo(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:n}=this.getProps();this.panSession=new uo(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(nt(e,"page").point)},onStart:(e,t)=>{var r;const{drag:n,dragPropagation:o,onDragStart:i}=this.getProps();if(n&&!o&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=dt(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Po((e=>{let t=this.getAxisMotionValue(e).get()||0;if(ce.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];n&&(t=vo(n)*(parseFloat(t)/100))}}this.originPoint[e]=t})),i&&Ke.Gt.postRender((()=>i(e,t))),null===(r=this.removeWillChange)||void 0===r||r.call(this),this.removeWillChange=Kn(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:n,onDirectionLock:o,onDrag:i}=this.getProps();if(!r&&!this.openGlobalLock)return;const{offset:a}=t;if(n&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Po((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:Ko(this.visualElement)})}stop(e,t){var r;null===(r=this.removeWillChange)||void 0===r||r.call(this);const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=t;this.startAnimation(o);const{onDragEnd:i}=this.getProps();i&&Ke.Gt.postRender((()=>i(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:n}=this.getProps();if(!r||!ti(e,n,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?fn(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?fn(r,e,n.max):Math.min(e,r)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&m(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(e,{top:t,left:r,bottom:n,right:o}){return{x:Do(e.x,r,o),y:Do(e.y,t,n)}}(n.layoutBox,t),this.elastic=function(e=Eo){return!1===e?e=0:!0===e&&(e=Eo),{x:So(e,"left","right"),y:So(e,"top","bottom")}}(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Po((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!m(e))return!1;const r=e.current;(0,Ut.V)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const o=function(e,t,r){const n=Xo(e,r),{scroll:o}=t;return o&&(Ho(n.x,o.offset.x),Ho(n.y,o.offset.y)),n}(r,n.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:ko(e.x,t.x),y:ko(e.y,t.y)}}(n.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Ao(e))}return i}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Po((a=>{if(!ti(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=n?200:1e6,u=n?40:1e7,d={type:"inertia",velocity:r?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return r.start(Gn(e,r,0,t,this.visualElement,!1,Kn(this.visualElement,e)))}stopAnimation(){Po((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Po((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Po((t=>{const{drag:r}=this.getProps();if(!ti(t,r,this.currentDirection))return;const{projection:n}=this.visualElement,o=this.getAxisMotionValue(t);if(n&&n.layout){const{min:r,max:i}=n.layout.layoutBox[t];o.set(e[t]-fn(r,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!m(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};Po((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const r=t.get();n[e]=function(e,t){let r=.5;const n=vo(e),o=vo(t);return o>n?r=pn(t.min,t.max-n,e.min):n>o&&(r=pn(e.min,e.max-o,t.min)),K(0,1,r)}({min:r,max:r},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Po((t=>{if(!ti(t,e,null))return;const r=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];r.set(fn(o,i,n[t]))}))}addListeners(){if(!this.visualElement.current)return;qo.set(this.visualElement,this);const e=it(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();m(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Ke.Gt.read(t);const o=tt(window,"resize",(()=>this.scalePositionWithinConstraints())),i=r.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Po((t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),n(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:i=Eo,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function ti(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}const ri=e=>(t,r)=>{e&&Ke.Gt.postRender((()=>e(t,r)))},ni={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function oi(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ii={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ue.test(e))return e;e=parseFloat(e)}return`${oi(e,t.target.x)}% ${oi(e,t.target.y)}%`}},ai={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=jr.parse(e);if(o.length>5)return n;const i=jr.createTransformer(e),a="number"!=typeof o[0]?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const c=fn(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=c),"number"==typeof o[3+a]&&(o[3+a]/=c),i(o)}};class si extends o.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:o}=e;var i;i=ci,Object.assign(Y,i),o&&(t.group&&t.group.add(o),r&&r.register&&n&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ni.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:o}=this.props,i=r.projection;return i?(i.isPresent=o,n||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Ke.Gt.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),p.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function li(e){const[t,r]=function(){const e=(0,o.useContext)(s.t);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,i=(0,o.useId)();(0,o.useEffect)((()=>n(i)),[]);const a=(0,o.useCallback)((()=>r&&r(i)),[i,r]);return!t&&r?[!1,a]:[!0]}(),i=(0,o.useContext)(I.L);return(0,n.jsx)(si,{...e,layoutGroup:i,switchLayoutGroup:(0,o.useContext)(g),isPresent:t,safeToRemove:r})}const ci={borderRadius:{...ii,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ii,borderTopRightRadius:ii,borderBottomLeftRadius:ii,borderBottomRightRadius:ii,boxShadow:ai},ui=["TopLeft","TopRight","BottomLeft","BottomRight"],di=ui.length,hi=e=>"string"==typeof e?parseFloat(e):e,pi=e=>"number"==typeof e||ue.test(e);function fi(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const mi=yi(0,.5,an),gi=yi(.5,.95,gt.l);function yi(e,t,r){return n=>n<e?0:n>t?1:r(pn(e,t,n))}function Mi(e,t){e.min=t.min,e.max=t.max}function Li(e,t){Mi(e.x,t.x),Mi(e.y,t.y)}function wi(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function xi(e,t,r,n,o){return e=Bo(e-=t,1/r,n),void 0!==o&&(e=Bo(e,1/o,n)),e}function vi(e,t,[r,n,o],i,a){!function(e,t=0,r=1,n=.5,o,i=e,a=e){if(ce.test(t)&&(t=parseFloat(t),t=fn(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=fn(i.min,i.max,n);e===i&&(s-=t),e.min=xi(e.min,t,r,s,o),e.max=xi(e.max,t,r,s,o)}(e,t[r],t[n],t[o],t.scale,i,a)}const ji=["x","scaleX","originX"],Ni=["y","scaleY","originY"];function bi(e,t,r,n){vi(e.x,t,ji,r?r.x:void 0,n?n.x:void 0),vi(e.y,t,Ni,r?r.y:void 0,n?n.y:void 0)}function Ci(e){return 0===e.translate&&1===e.scale}function Ti(e){return Ci(e.x)&&Ci(e.y)}function Di(e,t){return e.min===t.min&&e.max===t.max}function ki(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ei(e,t){return ki(e.x,t.x)&&ki(e.y,t.y)}function Si(e){return vo(e.x)/vo(e.y)}function Ii(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class zi{constructor(){this.members=[]}add(e){We(this.members,e),e.scheduleRender()}remove(e){if(Je(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let r;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){r=t;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Oi=(e,t)=>e.depth-t.depth;class Pi{constructor(){this.children=[],this.isDirty=!1}add(e){We(this.children,e),this.isDirty=!0}remove(e){Je(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Oi),this.isDirty=!1,this.children.forEach(e)}}const Ai={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Qi="undefined"!=typeof window&&void 0!==window.MotionDebug,Ri=["","X","Y","Z"],Yi={visibility:"hidden"};let Ui=0;function _i(e,t,r,n){const{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Bi(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return!!t&&(!!$n(t)||!(!e.parent||e.parent.hasCheckedOptimisedAppear)&&Bi(e.parent))}function Fi({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(e={},r=(null==t?void 0:t())){this.id=Ui++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Qi&&(Ai.totalNodes=Ai.resolvedTargetDeltas=Ai.recalculatedProjection=0),this.nodes.forEach(Wi),this.nodes.forEach(qi),this.nodes.forEach(ea),this.nodes.forEach(Ji),Qi&&window.MotionDebug.record(Ai)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Pi)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Vn),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;var n;this.isSVG=(n=t)instanceof SVGElement&&"svg"!==n.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||o)&&(this.isLayoutDirty=!0),e){let r;const n=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e){const t=Rt.now(),r=({timestamp:n})=>{const o=n-t;o>=250&&((0,Ke.WG)(r),e(o-250))};return Ke.Gt.read(r,!0),()=>(0,Ke.WG)(r)}(n),ni.hasAnimatedSinceResize&&(ni.hasAnimatedSinceResize=!1,this.nodes.forEach(Ki))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||aa,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Ei(this.targetLayout,n)||r,c=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...It(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Ki(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,Ke.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ta),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.HandoffCancelAllAnimations&&Bi(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;const n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Zi);this.isUpdating||this.nodes.forEach($i),this.isUpdating=!1,this.nodes.forEach(Xi),this.nodes.forEach(Gi),this.nodes.forEach(Vi),this.clearAllSnapshots();const e=Rt.now();Ke.uv.delta=K(0,1e3/60,e-Ke.uv.timestamp),Ke.uv.timestamp=e,Ke.uv.isProcessing=!0,Ke.Ci.update.process(Ke.uv),Ke.Ci.preRender.process(Ke.uv),Ke.Ci.render.process(Ke.uv),Ke.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,p.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Hi),this.sharedNodes.forEach(ra)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ke.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ke.Gt.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Oo(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Ti(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,i=n!==this.prevTransformTemplateValue;e&&(t||Yo(this.latestValues)||i)&&(o(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let r=this.removeElementScroll(t);var n;return e&&(r=this.removeTransform(r)),ca((n=r).x),ca(n.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return Oo();const r=t.measureViewportBox();if(!(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)&&!this.path.some(da)){const{scroll:e}=this.root;e&&(Ho(r.x,e.offset.x),Ho(r.y,e.offset.y))}return r}removeElementScroll(e){var t;const r=Oo();if(Li(r,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return r;for(let t=0;t<this.path.length;t++){const n=this.path[t],{scroll:o,options:i}=n;n!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&Li(r,e),Ho(r.x,o.offset.x),Ho(r.y,o.offset.y))}return r}applyTransform(e,t=!1){const r=Oo();Li(r,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&$o(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),Yo(n.latestValues)&&$o(r,n.latestValues)}return Yo(this.latestValues)&&$o(r,this.latestValues),r}removeTransform(e){const t=Oo();Li(t,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];if(!r.instance)continue;if(!Yo(r.latestValues))continue;Ro(r.latestValues)&&r.updateSnapshot();const n=Oo();Li(n,r.measurePageBox()),bi(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return Yo(this.latestValues)&&bi(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ke.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==r;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=Ke.uv.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Oo(),this.relativeTargetOrigin=Oo(),To(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Li(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=Oo(),this.targetWithTransforms=Oo()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,bo(a.x,s.x,l.x),bo(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Li(this.target,this.layout.layoutBox),Vo(this.target,this.targetDelta)):Li(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Oo(),this.relativeTargetOrigin=Oo(),To(this.relativeTargetOrigin,this.target,e.target),Li(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Qi&&Ai.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Ro(this.parent.latestValues)&&!Uo(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),r=Boolean(this.resumingFrom)||this!==t;let n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Ke.uv.timestamp&&(n=!1),n)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Li(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,n=!1){const o=r.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=r[s],a=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&$o(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Vo(e,a)),n&&Yo(i.latestValues)&&$o(e,i.latestValues))}t.x<Jo&&t.x>Wo&&(t.x=1),t.y<Jo&&t.y>Wo&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,r),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=Oo());const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(wi(this.prevProjectionDelta.x,this.projectionDelta.x),wi(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),No(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&Ii(this.projectionDelta.x,this.prevProjectionDelta.x)&&Ii(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Qi&&Ai.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zo(),this.projectionDelta=zo(),this.projectionDeltaWithTransform=zo()}setAnimationOrigin(e,t=!1){const r=this.snapshot,n=r?r.latestValues:{},o={...this.latestValues},i=zo();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=Oo(),s=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(ia));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const r=t/1e3;var l,h,p,f,m,g;na(i.x,e.x,r),na(i.y,e.y,r),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(To(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=a,g=r,oa(p.x,f.x,m.x,g),oa(p.y,f.y,m.y,g),d&&(l=this.relativeTarget,h=d,Di(l.x,h.x)&&Di(l.y,h.y))&&(this.isProjectionDirty=!1),d||(d=Oo()),Li(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,r,n,o,i){o?(e.opacity=fn(0,void 0!==r.opacity?r.opacity:1,mi(n)),e.opacityExit=fn(void 0!==t.opacity?t.opacity:1,0,gi(n))):i&&(e.opacity=fn(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let o=0;o<di;o++){const i=`border${ui[o]}Radius`;let a=fi(t,i),s=fi(r,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||pi(a)===pi(s)?(e[i]=Math.max(fn(hi(a),hi(s),n),0),(ce.test(s)||ce.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||r.rotate)&&(e.rotate=fn(t.rotate||0,r.rotate||0,n))}(o,n,this.latestValues,r,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,Ke.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ke.Gt.update((()=>{ni.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){const n=F(0)?0:Hn(0);return n.start(Gn("",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:n,latestValues:o}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&ua(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||Oo();const t=vo(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=vo(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}Li(t,r),$o(t,o),No(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new zi),this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;const n={};r.z&&_i("z",e,n,this.animationValues);for(let t=0;t<Ri.length;t++)_i(`rotate${Ri[t]}`,e,n,this.animationValues),_i(`skew${Ri[t]}`,e,n,this.animationValues);e.render();for(const t in n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Yi;const n={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=Fe(null==e?void 0:e.pointerEvents)||"",n.transform=o?o(this.latestValues,""):"none",n;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Fe(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!Yo(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),n.transform=function(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(null==r?void 0:r.z)||0;if((o||i||a)&&(n=`translate3d(${o}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),o&&(n+=`rotateX(${o}deg) `),i&&(n+=`rotateY(${i}deg) `),a&&(n+=`skewX(${a}deg) `),s&&(n+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(n+=`scale(${s}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),o&&(n.transform=o(a,n.transform));const{x:s,y:l}=this.projectionDelta;n.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?n.opacity=i===this?null!==(r=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in Y){if(void 0===a[e])continue;const{correct:t,applyTo:r}=Y[e],o="none"===n.transform?a[e]:t(a[e],i);if(r){const e=r.length;for(let t=0;t<e;t++)n[r[t]]=o}else n[e]=o}return this.options.layoutId&&(n.pointerEvents=i===this?Fe(null==e?void 0:e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Zi),this.root.sharedNodes.clear()}}}function Gi(e){e.updateLayout()}function Vi(e){var t;const r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:o}=e.options,i=r.source!==e.layout.source;"size"===o?Po((e=>{const n=i?r.measuredBox[e]:r.layoutBox[e],o=vo(n);n.min=t[e].min,n.max=n.min+o})):ua(o,r.layoutBox,t)&&Po((n=>{const o=i?r.measuredBox[n]:r.layoutBox[n],a=vo(t[n]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)}));const a=zo();No(a,t,r.layoutBox);const s=zo();i?No(s,e.applyTransform(n,!0),r.measuredBox):No(s,t,r.layoutBox);const l=!Ti(a);let c=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:o,layout:i}=n;if(o&&i){const a=Oo();To(a,r.layoutBox,o.layoutBox);const s=Oo();To(s,t,i.layoutBox),Ei(a,s)||(c=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Wi(e){Qi&&Ai.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Ji(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Hi(e){e.clearSnapshot()}function Zi(e){e.clearMeasurements()}function $i(e){e.isLayoutDirty=!1}function Xi(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ki(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qi(e){e.resolveTargetDelta()}function ea(e){e.calcProjection()}function ta(e){e.resetSkewAndRotation()}function ra(e){e.removeLeadSnapshot()}function na(e,t,r){e.translate=fn(t.translate,0,r),e.scale=fn(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function oa(e,t,r,n){e.min=fn(t.min,r.min,n),e.max=fn(t.max,r.max,n)}function ia(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const aa={duration:.45,ease:[.4,0,.1,1]},sa=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),la=sa("applewebkit/")&&!sa("chrome/")?Math.round:gt.l;function ca(e){e.min=la(e.min),e.max=la(e.max)}function ua(e,t,r){return"position"===e||"preserve-aspect"===e&&(n=Si(t),o=Si(r),!(Math.abs(n-o)<=.2));var n,o}function da(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const ha=Fi({attachResizeListener:(e,t)=>tt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),pa={current:void 0},fa=Fi({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!pa.current){const e=new ha({});e.mount(window),e.setOptions({layoutScroll:!0}),pa.current=e}return pa.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ma={pan:{Feature:class extends pt{constructor(){super(...arguments),this.removePointerDownListener=gt.l}onPointerDown(e){this.session=new uo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ko(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:ri(e),onStart:ri(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&Ke.Gt.postRender((()=>n(e,t)))}}}mount(){this.removePointerDownListener=it(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends pt{constructor(e){super(e),this.removeGroupControls=gt.l,this.removeListeners=gt.l,this.controls=new ei(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gt.l}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:fa,MeasureLayout:li}},ga={current:null},ya={current:!1},Ma=new WeakMap,La=[...Kt,hr,jr],wa=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],xa=b.length;class va{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:o,visualState:i},a={}){this.applyWillChange=!1,this.resolveKeyframes=(e,t,r,n)=>new this.KeyframeResolver(e,t,r,n,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ir,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,Ke.Gt.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=C(t),this.isVariantNode=T(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==s[e]&&F(t)&&t.set(s[e],!1)}}mount(e){this.current=e,Ma.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),ya.current||function(){if(ya.current=!0,S.B)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ga.current=e.matches;e.addListener(t),t()}else ga.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ga.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ma.delete(this.current),this.projection&&this.projection.unmount(),(0,Ke.WG)(this.notifyUpdate),(0,Ke.WG)(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){const r=_.has(e),n=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Ke.Gt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{n(),o(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in E){const t=E[e];if(!t)continue;const{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Oo()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<wa.length;t++){const r=wa[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(const n in t){const o=t[n],i=r[n];if(F(o))e.addValue(n,o);else if(F(i))e.addValue(n,Hn(o,{owner:e}));else if(i!==o)if(e.hasValue(n)){const t=e.getValue(n);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(n);e.addValue(n,Hn(void 0!==t?t:o,{owner:e}))}}for(const n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<xa;e++){const r=b[e],n=this.props[r];(v(n)||!1===n)&&(t[r]=n)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=Hn(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let n=void 0===this.latestValues[e]&&this.current?null!==(r=this.getBaseTargetFromProps(this.props,e))&&void 0!==r?r:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var o;return null!=n&&("string"==typeof n&&(_t(n)||Yt(n))?n=parseFloat(n):(o=n,!La.find(Xt(o))&&jr.test(t)&&(n=Er(e,t))),this.setBaseTarget(e,F(n)?n.get():n)),F(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:r}=this.props;let n;if("string"==typeof r||"object"==typeof r){const o=Re(this.props,r,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(n=o[e])}if(r&&void 0!==n)return n;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||F(o)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Vn),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class ja extends va{constructor(){super(...arguments),this.KeyframeResolver=Ir}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}}class Na extends ja{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=Ie}readValueFromInstance(e,t){if(_.has(t)){const e=kr(t);return e&&e.default||0}{const n=(r=e,window.getComputedStyle(r)),o=(J(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof o?o.trim():o}var r}measureInstanceViewportBox(e,{transformPagePoint:t}){return Xo(e,t)}build(e,t,r){ge(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return Pe(e,t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;F(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class ba extends ja{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Oo}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(_.has(t)){const e=kr(t);return e&&e.default||0}return t=ze.has(t)?t:u(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return Ae(e,t,r)}build(e,t,r){Te(e,t,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,r,n){Oe(e,t,0,n)}mount(e){this.isSVGTag=ke(e.tagName),super.mount(e)}}const Ca=(e,t)=>R(e)?new ba(t):new Na(t,{allowProjection:e!==o.Fragment}),Ta={...lo,...jt,...ma,layout:{ProjectionNode:fa,MeasureLayout:li}},Da=A(((e,t)=>function(e,{forwardMotionProps:t=!1},r,n){return{...R(e)?qe:et,preloadedFeatures:r,useRender:Se(t),createVisualElement:n,Component:e}}(e,t,Ta,Ca)))},4668:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});const n={skipAnimations:!1,useManualTiming:!1}},5238:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,V:()=>i});var n=r(3659);let o=n.l,i=n.l},8288:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});const n="undefined"!=typeof window},3659:(e,t,r)=>{"use strict";r.d(t,{l:()=>n});const n=e=>e},8601:(e,t,r)=>{"use strict";r.d(t,{M:()=>o});var n=r(1609);function o(e){const t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},5128:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var n=r(1609);const o=r(8288).B?n.useLayoutEffect:n.useEffect},5038:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>M,_k:()=>y,oR:()=>f});var n=r(1609),o=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,i=(()=>{let e=0;return()=>(++e).toString()})(),a=new Map,s=e=>{if(a.has(e))return;let t=setTimeout((()=>{a.delete(e),d({type:4,toastId:e})}),1e3);a.set(e,t)},l=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=a.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:r}=t;return e.toasts.find((e=>e.id===r.id))?l(e,{type:1,toast:r}):l(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?s(n):e.toasts.forEach((e=>{s(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===n||void 0===n?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},c=[],u={toasts:[],pausedAt:void 0},d=e=>{u=l(u,e),c.forEach((e=>{e(u)}))},h={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},p=e=>(t,r)=>{let n=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||i()}))(t,e,r);return d({type:2,toast:n}),n.id},f=(e,t)=>p("blank")(e,t);f.error=p("error"),f.success=p("success"),f.loading=p("loading"),f.custom=p("custom"),f.dismiss=e=>{d({type:3,toastId:e})},f.remove=e=>d({type:4,toastId:e}),f.promise=(e,t,r)=>{let n=f.loading(t.loading,{...r,...null==r?void 0:r.loading});return e.then((e=>(f.success(o(t.success,e),{id:n,...r,...null==r?void 0:r.success}),e))).catch((e=>{f.error(o(t.error,e),{id:n,...r,...null==r?void 0:r.error})})),e};var m=(e,t)=>{d({type:1,toast:{id:e,height:t}})},g=()=>{d({type:5,time:Date.now()})},y=e=>{let{toasts:t,pausedAt:r}=((e={})=>{let[t,r]=(0,n.useState)(u);(0,n.useEffect)((()=>(c.push(r),()=>{let e=c.indexOf(r);e>-1&&c.splice(e,1)})),[t]);let o=t.toasts.map((t=>{var r,n;return{...e,...e[t.type],...t,duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||h[t.type],style:{...e.style,...null==(n=e[t.type])?void 0:n.style,...t.style}}}));return{...t,toasts:o}})(e);(0,n.useEffect)((()=>{if(r)return;let e=Date.now(),n=t.map((t=>{if(t.duration===1/0)return;let r=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(r<0))return setTimeout((()=>f.dismiss(t.id)),r);t.visible&&f.dismiss(t.id)}));return()=>{n.forEach((e=>e&&clearTimeout(e)))}}),[t,r]);let o=(0,n.useCallback)((()=>{r&&d({type:6,time:Date.now()})}),[r]),i=(0,n.useCallback)(((e,r)=>{let{reverseOrder:n=!1,gutter:o=8,defaultPosition:i}=r||{},a=t.filter((t=>(t.position||i)===(e.position||i)&&t.height)),s=a.findIndex((t=>t.id===e.id)),l=a.filter(((e,t)=>t<s&&e.visible)).length;return a.filter((e=>e.visible)).slice(...n?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+o),0)}),[t]);return{toasts:t,handlers:{updateHeight:m,startPause:g,endPause:o,calculateOffset:i}}},M=f}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return o[e](r,r.exports,a),r.exports}a.m=o,a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);a.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,a.d(o,i),o},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>e+".js",a.miniCssF=e=>{},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="wpnakama:",a.l=(e,t,o,i)=>{if(r[e])r[e].push(t);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==n+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",n+o),s.src=e),r[e]=[t];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={57:0};a.f.j=(t,r)=>{var n=a.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(r=>{if(a.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[i,s,l]=r,c=0;if(i.some((t=>0!==e[t]))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);l&&l(a)}for(t&&t(r);c<i.length;c++)o=i[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=globalThis.webpackChunkwpnakama=globalThis.webpackChunkwpnakama||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),a.nc=void 0,(()=>{"use strict";var e=a(1609),t=a(6087),r=a(4848),n=a(6719),o=a(8601),i=a(5446);class s extends e.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function l({children:t,isPresent:n}){const o=(0,e.useId)(),a=(0,e.useRef)(null),l=(0,e.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,e.useContext)(i.Q);return(0,e.useInsertionEffect)((()=>{const{width:e,height:t,top:r,left:i}=l.current;if(n||!a.current||!e||!t)return;a.current.dataset.motionPopId=o;const s=document.createElement("style");return c&&(s.nonce=c),document.head.appendChild(s),s.sheet&&s.sheet.insertRule(`\n          [data-motion-pop-id="${o}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${t}px !important;\n            top: ${r}px !important;\n            left: ${i}px !important;\n          }\n        `),()=>{document.head.removeChild(s)}}),[n]),(0,r.jsx)(s,{isPresent:n,childRef:a,sizeRef:l,children:e.cloneElement(t,{ref:a})})}const c=({children:t,initial:i,isPresent:a,onExitComplete:s,custom:c,presenceAffectsLayout:d,mode:h})=>{const p=(0,o.M)(u),f=(0,e.useId)(),m=(0,e.useMemo)((()=>({id:f,initial:i,isPresent:a,custom:c,onExitComplete:e=>{p.set(e,!0);for(const e of p.values())if(!e)return;s&&s()},register:e=>(p.set(e,!1),()=>p.delete(e))})),d?[Math.random()]:[a]);return(0,e.useMemo)((()=>{p.forEach(((e,t)=>p.set(t,!1)))}),[a]),e.useEffect((()=>{!a&&!p.size&&s&&s()}),[a]),"popLayout"===h&&(t=(0,r.jsx)(l,{isPresent:a,children:t})),(0,r.jsx)(n.t.Provider,{value:m,children:t})};function u(){return new Map}var d=a(9473),h=a(5238);const p=e=>e.key||"";function f(t){const r=[];return e.Children.forEach(t,(t=>{(0,e.isValidElement)(t)&&r.push(t)})),r}var m=a(5128);const g=({children:t,exitBeforeEnter:n,custom:i,initial:a=!0,onExitComplete:s,presenceAffectsLayout:l=!0,mode:u="sync"})=>{(0,h.V)(!n,"Replace exitBeforeEnter with mode='wait'");const g=(0,e.useMemo)((()=>f(t)),[t]),y=g.map(p),M=(0,e.useRef)(!0),L=(0,e.useRef)(g),w=(0,o.M)((()=>new Map)),[x,v]=(0,e.useState)(g),[j,N]=(0,e.useState)(g);(0,m.E)((()=>{M.current=!1,L.current=g;for(let e=0;e<j.length;e++){const t=p(j[e]);y.includes(t)?w.delete(t):!0!==w.get(t)&&w.set(t,!1)}}),[j,y.length,y.join("-")]);const b=[];if(g!==x){let e=[...g];for(let t=0;t<j.length;t++){const r=j[t],n=p(r);y.includes(n)||(e.splice(t,0,r),b.push(r))}return"wait"===u&&b.length&&(e=b),N(f(e)),void v(g)}const{forceRender:C}=(0,e.useContext)(d.L);return(0,r.jsx)(r.Fragment,{children:j.map((e=>{const t=p(e),n=g===j||y.includes(t);return(0,r.jsx)(c,{isPresent:n,initial:!(M.current&&!a)&&void 0,custom:n?void 0:i,presenceAffectsLayout:l,mode:u,onExitComplete:n?void 0:()=>{if(!w.has(t))return;w.set(t,!0);let e=!0;w.forEach((t=>{t||(e=!1)})),e&&(null==C||C(),N(L.current),s&&s())},children:e},t)}))})};var y=a(9e3),M=a(7723),L=a(2506),w=a(6703),x=a(3845),v=a(6622);function j({width:t,height:r},n){return(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",width:t,height:r,className:n,viewBox:"0 0 170 72"},(0,e.createElement)("circle",{cx:"27.004",cy:"36",r:"26.504",fill:"#FFC43A"}),(0,e.createElement)("ellipse",{cx:"23.305",cy:"34.722",fill:"#3C20AC",rx:".745",ry:"1.171"}),(0,e.createElement)("ellipse",{cx:"30.33",cy:"34.722",fill:"#3C20AC",rx:".745",ry:"1.171"}),(0,e.createElement)("path",{fill:"#3C20AC",d:"M28.617 40.447c-.687.7-1.81.719-2.518.04-1.158-1.106-.392-3.06 1.21-3.087 1.602-.025 2.43 1.904 1.308 3.047Z"}),(0,e.createElement)("path",{stroke:"#2026AC","stroke-width":"1.247",d:"m20.74 42.213.545 1.874c.045.155.101.308.168.455l.032.071a3.16 3.16 0 0 0 2.514 1.837l.493.058a2.249 2.249 0 0 0 2.37-1.457l.341-.924c.269-.73.342-1.517.212-2.284l-.247-1.453m6.986.524-.072 1.95a3.433 3.433 0 0 1-.052.483l-.014.076a3.16 3.16 0 0 1-1.991 2.394l-.465.175a2.25 2.25 0 0 1-2.654-.836l-.555-.813a4.455 4.455 0 0 1-.76-2.163l-.115-1.47"}),(0,e.createElement)("path",{fill:"#3C20AC","fill-rule":"evenodd",d:"M53.507 36c0 14.637-11.866 26.504-26.503 26.504C12.366 62.504.5 50.636.5 36 .5 21.362 12.366 9.496 27.004 9.496 41.64 9.496 53.507 21.362 53.507 36Zm-37.94-20.522-.617.937a3.14 3.14 0 0 0-.344.7l-.984 2.857a3.118 3.118 0 0 0-.165 1.194l.228 3.973c.01.18.005.36-.017.54a3.06 3.06 0 0 0 .544 2.14 15.7 15.7 0 0 0-2.856 11.89c.267 1.625.774 3.15 1.478 4.547l-.449.372a2.236 2.236 0 0 0-.29 3.153c.463.556.629 1.3.445 2l-.105.401a2.676 2.676 0 0 0 .59 2.46l.492.551 1.062 1.03a1.28 1.28 0 0 0 2.105-.514l.142-.425a.245.245 0 0 1 .466.003l.522 1.647c.073.233.214.44.404.594l.558.453a.794.794 0 0 0 1.27-.422.794.794 0 0 1 1.202-.472l.806.523c.526.34 1.172-.212.917-.785l-.044-.098a.467.467 0 0 1 .739-.538l2.005 1.794a3 3 0 0 0 1.335.69l1.77.402c.346.079.7-.095.85-.417a.753.753 0 0 1 1.143-.279l.132.102c.117.09.256.15.402.173l.279.044c.474.075.955-.092 1.28-.445a1.437 1.437 0 0 1 2.098-.017l.322.338a.82.82 0 0 0 1.105.076l1.827-1.453c.4-.319.759-.686 1.068-1.093l1.425-1.88a.718.718 0 0 1 .396-.263.718.718 0 0 0 .542-.696v-.64c0-.386.41-.635.754-.457.247.128.55.038.687-.204l.132-.233a.796.796 0 0 0 .094-.267l.095-.603a1.415 1.415 0 0 0-.103-.793l-.994-2.249a.424.424 0 0 1 .548-.564c.317.13.648-.15.575-.483l-.31-1.407a1.18 1.18 0 0 0-.364-.626l-.89-.799-.007-.006c.731-2.293.945-4.789.528-7.327a15.677 15.677 0 0 0-3.543-7.652.6.6 0 0 0 .179-.61l-1.487-5.274-2.38-6.093a1.326 1.326 0 0 0-2.493.065l-2.25 6.777a15.814 15.814 0 0 0-8.62.438 3.75 3.75 0 0 1 .006-.067l.13-1.094a3.118 3.118 0 0 0-.816-2.497l-1.808-1.936a2.858 2.858 0 0 1-.418-.577l-.266-.485a1.786 1.786 0 0 0-3.057-.124Z","clip-rule":"evenodd"}),(0,e.createElement)("path",{fill:"#3C20AC",d:"M65.432 49h-3.995c-.208 0-.312-.09-.312-.273l-.04-27.186c0-.207.105-.311.313-.311h3.605l6.743 15.726-.195-15.415c0-.207.117-.311.35-.311h3.957c.156 0 .234.104.234.311l.039 27.225c0 .156-.065.234-.195.234h-3.508L65.51 34.306l.292 14.382c0 .208-.124.312-.37.312Zm12.823-.195 4.95-27.42c.026-.104.09-.155.195-.155h5.788c.103 0 .168.052.194.155l4.755 27.42c.013.13-.038.195-.155.195h-4.424c-.13 0-.202-.065-.215-.195l-.428-2.923h-5.437l-.43 2.923c-.012.13-.077.195-.194.195h-4.443c-.104 0-.156-.065-.156-.195Zm7.815-18.397-1.793 11.206h3.839l-1.637-11.206-.234-1.48-.175 1.48ZM101.309 49h-4.521c-.104 0-.156-.065-.156-.195l.078-27.38c0-.13.052-.195.156-.195h4.482c.104 0 .156.064.156.194v9.452l6.256-9.49c.104-.104.201-.156.292-.156h4.58c.117 0 .143.052.078.155l-6.899 11.011 7.737 16.448c.065.104 0 .156-.195.156h-4.872c-.13 0-.208-.052-.234-.156l-5.398-11.732-1.384 2.183v9.51c0 .13-.052.195-.156.195Zm12.687-.195 4.95-27.42c.026-.104.091-.155.195-.155h5.788c.104 0 .168.052.194.155l4.756 27.42c.013.13-.039.195-.156.195h-4.424c-.13 0-.202-.065-.214-.195l-.429-2.923h-5.437l-.429 2.923c-.013.13-.078.195-.195.195h-4.443c-.104 0-.156-.065-.156-.195Zm7.815-18.397-1.793 11.206h3.839l-1.637-11.206-.234-1.48-.175 1.48ZM137.05 49h-4.521c-.104 0-.156-.065-.156-.195l.078-27.42c0-.104.052-.155.156-.155h4.872c.104 0 .195.052.273.155l3.644 5.262 3.625-5.261a.352.352 0 0 1 .292-.156h4.892c.116 0 .175.052.175.155l.078 27.42c0 .13-.052.195-.156.195h-4.521c-.104 0-.156-.065-.156-.195l-.039-20.365-4.19 6.08-4.151-6.08-.039 20.365c0 .13-.052.195-.156.195Zm15.415-.195 4.95-27.42c.026-.104.091-.155.195-.155h5.788c.104 0 .169.052.195.155l4.755 27.42c.013.13-.039.195-.156.195h-4.424c-.13 0-.201-.065-.214-.195l-.429-2.923h-5.437l-.429 2.923c-.013.13-.078.195-.195.195h-4.443c-.104 0-.156-.065-.156-.195Zm7.815-18.397-1.793 11.206h3.839l-1.637-11.206-.234-1.48-.175 1.48Z"}))}var N=a(6744);function b({navLinks:r}){const{goToPage:n}=(0,w.A)(),[o,i]=(0,t.useState)(0),{license:a}=(0,N.A)();(0,t.useEffect)((()=>{wp.apiRequest({path:"/WPNakama/v1/options?option_name=wpnakama_update_indicator"}).then((e=>i(Number(e))))}),[]);const{page:s}=(0,L.S)();let l="wpnakama"===s?s+"_boards":s;return(0,e.createElement)(e.Fragment,null,r?(0,e.createElement)("div",{className:"header header-withLinks flex justify-center bg-white shadow-wg-lg container rounded-full px-5 md:px-9 py-2",as:"header"},(0,e.createElement)("div",{className:"flex justify-between w-full items-center"},(0,e.createElement)("div",{className:"cursor-pointer",onClick:()=>n("wpnakama")},(0,e.createElement)(j,{className:"header-logo",width:140,height:60})),(0,e.createElement)("div",{className:"flex gap-2"},r.map((t=>(0,e.createElement)("div",{className:"nav-item relative px-3 pt-2 pb-2 border-b-4 text-sm leading-6 font-medium hover:cursor-pointer".concat(l==="wpnakama_"+t.name?" border-primary":" border-transparent hover:border-primary-100"),onClick:()=>t.searchParams?n(t.link,t.searchParams):n(t.link)},t.title,"resources"===t.name&&o>=1&&(0,e.createElement)(x.Ex,{className:"absolute -top-2 -right-[20px] font-normal py-0.5 text-xxs",stroke:!0,shape:"pill",color:1===o?"yellow":2===o?"blue":"pink",size:"sm"},1===o?"major updates":2===o?"new":"minor"))))),a.hasOwnProperty("status")?(0,e.createElement)(x.$n,{before:(0,e.createElement)(v.RYV,null),variant:"primary",onClick:()=>n("wpnakama_license")},"not found"===a.status?(0,M.__)("License Upgrade","wpnakama"):(0,M.__)("Manage License","wpnakama")):(0,e.createElement)("div",{className:"w-[165px] h-[40px] rounded-lg bg-surface-100 animate-pulse"}))):(0,e.createElement)("div",{className:"header header-withoutLinks flex justify-center container px-5 md:px-9 py-2",as:"header"},(0,e.createElement)("div",{className:"flex justify-between w-full items-center"},(0,e.createElement)("div",{className:"cursor-pointer",onClick:()=>n("wpnakama")},(0,e.createElement)(j,{className:"header-logo",width:180,height:80})),(0,e.createElement)(x.$n,{before:(0,e.createElement)(v.RYV,null),variant:"primary",onClick:()=>n("wpnakama_license")},(0,M.__)("License Upgrade","wpnakama")))))}function C(){return(0,e.createElement)("div",{className:"flex justify-center items-center"},(0,e.createElement)("div",{className:"inline-flex gap-0.5 justify-center items-center text-base text-surface-500 leading-6"},(0,M.__)("Engineered with","wpnakama")," ",(0,e.createElement)(v.C3E,{fill:"rgb(138 138 163)",className:"text-surface"})," ",(0,M.__)("by","wpnakama")," ",(0,e.createElement)("a",{rel:"noopener noreferrer",href:"https://qdonow.com",className:"text-surface-500 no-underline hover:text-surface-700 inline-block"},"qdonow.com")))}function T(){const{goToPage:t}=(0,w.A)();return(0,e.createElement)("div",{className:"footer container px-5 md:px-9 mt-10",as:"footer"},(0,e.createElement)(C,null),(0,e.createElement)("div",{className:"fixed bottom-6 right-5 z-50"},(0,e.createElement)(x.$n,{variant:"secondary",before:(0,e.createElement)(v.NTw,null),shape:"pill",onClick:()=>t("wpnakama_resources",{tab:"helpCenter"})},(0,M.__)("Help","wpnakama"))))}function D({children:t}){return(0,e.createElement)("div",{className:"container main px-5 md:px-9 py-8 md:py-10 xxl:py-16",as:"main"},t)}var k=a(9739),E=a(2498),S=a(9730),I=a(2599);function z(){const[r,n]=(0,t.useState)({}),[o,i]=(0,t.useState)(!1),{isDeadLinePassed:a}=(0,E.A)();(0,t.useEffect)((()=>{wp.apiRequest({path:"/WPNakama/v1/options?option_name=wpnakama_rating"}).then((e=>n(e)))}),[]),(0,t.useEffect)((()=>{if(r&&"rated"!==r.status){const e=new Date(r.last_asked);a(e)&&i(!0)}}),[r]);let s=3*(1+r.times_asked);s>7&&(s=7);let l=r.times_asked+1,c=new Date((0,k.R)()).setDate(new Date((0,k.R)()).getDate()+s);return(0,e.createElement)(e.Fragment,null,o&&(0,e.createElement)(I.P.div,{className:"bg-white fixed z-50 bottom-6 right-6 max-w-[18.5rem] text-center p-4 flex flex-col gap-5 rounded-xl shadow-sm border-surface-200 border",variants:{hidden:{opacity:0,y:50},visible:{opacity:1,y:0,transition:{duration:.5}}},initial:"hidden",animate:"visible"},(0,e.createElement)("div",{className:"flex flex-col gap-2"},(0,e.createElement)("h3",{className:"text-base font-medium"},(0,M.__)("Did you know!","wpnakama")),(0,e.createElement)("p",{className:"text-sm text-surface-500"},(0,M.__)("Mostly people pick the products based on ratings. We’re no different. We need your help to reach out to as many people who are in need of a tool like ours","wpnakama"))),(0,e.createElement)("div",{className:"flex flex-col gap-1"},(0,e.createElement)(x.$n,{variant:"primary",before:(0,e.createElement)(v.Gg5,{className:"text-secondary-500 fill-secondary-500"}),onClick:async function(){await(0,S.Qt)("/WPNakama/v1/options","",{wpnakama_rating:{status:"not_rated",last_asked:c,times_asked:l,rate_btn_clicked:!0}}),window.open("https://wordpress.org/support/plugin/wpnakama/reviews/?rate=5#new-post")}},(0,M.__)("Rate us on WordPress.org","wpnakama")),r.rate_btn_clicked?(0,e.createElement)(x.$n,{variant:"link",className:"underline",onClick:async function(){i(!1),await(0,S.Qt)("/WPNakama/v1/options","",{wpnakama_rating:{status:"rated",last_asked:c,times_asked:l,rate_btn_clicked:!1}})},destructive:!0},(0,M.__)("I've already rated!","wpnakama")):(0,e.createElement)(x.$n,{variant:"link",className:"underline text-surface-500",onClick:async function(){i(!1),await(0,S.Qt)("/WPNakama/v1/options","",{wpnakama_rating:{status:"not_rated",last_asked:c,times_asked:l,rate_btn_clicked:!1}})}},(0,M.__)("I'll do it later","wpnakama")))))}var O=a(7767);const P=window.wp.coreData;var A=a(9523),Q=a(7143),R=a(5038),Y=a(5795),U=a(5588);function _(){return _=Object.assign?Object.assign.bind():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},_.apply(this,arguments)}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}function B(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new U.VV(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let o=new t(n.message);o.stack="",r[e]=o}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}const F=e.createContext({isTransitioning:!1}),G=e.createContext(new Map),V=e.startTransition,W=Y.flushSync;function J(e){W?W(e):e()}e.useId;class H{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}const Z=e.memo($);function $(e){let{routes:t,future:r,state:n}=e;return(0,O.ph)(t,void 0,n,r)}var X,K;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(X||(X={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(K||(K={}));var q=a(6366);const{subfolder:ee}=(0,q.A)(),te=(re=(0,O.Eu)((0,e.createElement)(O.qh,{path:"/wp-admin/admin.php",element:(0,e.createElement)((function(){const{addEntities:r}=(0,Q.useDispatch)(P.store),n=(0,O.zy)(),o=new URLSearchParams(n.search);let i,s;switch(r([{kind:"WPNakama",name:"board",plural:"boards",baseURL:"/WPNakama/v1/boards",label:"Boards",key:"board_id"},{kind:"WPNakama",name:"phase",plural:"phases",baseURL:"/WPNakama/v1/phases",label:"Board Phases",key:"phase_id"},{kind:"WPNakama",name:"card",plural:"cards",baseURL:"/WPNakama/v1/cards",baseURLParams:{board_id:o.boardId?o.boardId:0},label:"Cards",key:"card_id"},{kind:"WPNakama",name:"unionboardtask",plural:"unionboardstasks",baseURL:"/WPNakama/v1/cards",label:"Union Boards Tasks",key:"id"},{kind:"WPNakama",name:"searchpost",plural:"searchposts",baseURL:"/wp/v2/search",label:"Search Posts",key:"id"},{kind:"WPNakama",name:"post",plural:"posts",baseURL:"/wp/v2/posts",label:"Posts",key:"id"},{kind:"WPNakama",name:"task",plural:"tasks",baseURL:"/WPNakama/v1/tasks",baseURLParams:{board_id:o.boardId?o.boardId:0,card_id:o.cardId?o.cardId:0},label:"Tasks",key:"task_id"},{kind:"WPNakama",name:"user",plural:"users",baseURL:"/wp/v2/users",baseURLParams:{_fields:"id,name,avatar_urls"},label:"Users",key:"id"},{kind:"WPNakama",name:"public_board",plural:"public_boards",baseURL:"/WPNakama/v1/public_boards",baseURLParams:{_fields:"id,title,slug,content"},label:"Public Boards",key:"id"},{kind:"WPNakama",name:"boardaccess",plural:"boardsaccess",baseURL:"/WPNakama/v1/boardaccess",baseURLParams:{board_id:o.boardId?o.boardId:0},label:"Board Access",key:"access"}]),o.get("page")){case"wpnakama":case"wpnakama_boards":i=o.has("boardId")&&o.has("taskId")?"Task":o.has("boardId")?"Board":"Boards";break;case"wpnakama_resources":i="Resources";break;case"wpnakama_license":i="License";break;default:i="Default"}return"Boards"===i&&(s=(0,t.lazy)((()=>Promise.all([a.e(785),a.e(320)]).then(a.bind(a,9320))))),"Board"===i&&(s=(0,t.lazy)((()=>Promise.all([a.e(785),a.e(532),a.e(618)]).then(a.bind(a,3913))))),"Task"===i&&(s=(0,t.lazy)((()=>Promise.all([a.e(785),a.e(417)]).then(a.bind(a,3111))))),"Resources"===i&&(s=(0,t.lazy)((()=>a.e(788).then(a.bind(a,2788))))),"License"===i&&(s=(0,t.lazy)((()=>Promise.all([a.e(785),a.e(357)]).then(a.bind(a,357))))),"Default"===i&&(s=(0,t.lazy)((()=>a.e(734).then(a.bind(a,4734))))),(0,e.createElement)(A.t.Provider,{value:P.store},(0,e.createElement)("div",{className:"wrap text-body"},(0,e.createElement)(b,{navLinks:[{name:"boards",title:"Boards",link:"wpnakama"},{name:"resources",title:"Resources",link:"wpnakama_resources"}]}),(0,e.createElement)(D,null,(0,e.createElement)("div",{className:"wpnakama-page-wrap"},(0,e.createElement)(t.Suspense,{fallback:(0,e.createElement)(y.A,null)},(0,e.createElement)(g,null,(0,e.createElement)(s,null))))),(0,e.createElement)(T,null),(0,e.createElement)(z,null)))}),null),errorElement:(0,e.createElement)((function(){const t=(0,O.r5)(),{goToPage:r}=(0,w.A)();return(0,e.createElement)("div",{className:"flex flex-col gap-5 text-center"},(0,e.createElement)("div",{className:"max-w-72 mx-auto"},(0,e.createElement)("img",{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgdmlld0JveD0iMCAwIDMwMDAgMjI1MCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzAwMCAyMjUwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDp0cmFuc3BhcmVudDt9DQoJLnN0MXtmaWxsOiNGRkY4REM7fQ0KCS5zdDJ7ZmlsbDojRUJGMkZGO30NCgkuc3Qze2ZpbGw6bm9uZTtzdHJva2U6IzNDMjBBQztzdHJva2Utd2lkdGg6NTtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQ0KCS5zdDR7ZmlsbDojM0MyMEFDO30NCgkuc3Q1e2ZpbGw6bm9uZTtzdHJva2U6I0ZGQzQzQTtzdHJva2Utd2lkdGg6NTtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQ0KPC9zdHlsZT4NCjxnIGlkPSJiYWNrZ3JvdW5kIj4NCgk8cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMzAwMCIgaGVpZ2h0PSIyMjUwIi8+DQo8L2c+DQo8ZyBpZD0ic2hhZG93Ij4NCgk8Zz4NCgkJPHBhdGggY2xhc3M9InN0MSIgZD0iTTEzNzEuNSwzNDYuNGMtNywyLjItMTEuNCw4LjItMTcuMSwxMi41Yy0xMCw3LjYtMjEuMyw2LjItMzIuNiw5LjdjLTExLjksMy42LTIyLjgsMTAuOC0zMC42LDIwLjUNCgkJCWMtMTEuNSwxNC4yLTE4LjMsMzcuNi0xMC45LDU1LjFjLTEyLjIsOS4xLTE5LjcsMjQuMS0xOC4xLDM5LjRjMS4yLDExLjQsNywyMi4yLDE1LjgsMjkuNmMxMiwxMCwyNS4zLDcuMSwyNi43LTkuNw0KCQkJYzAuOC05LDYuNS03LjYsMTAuNS0xNS4xYzQtNy41LDAuNS0xNS43LDIuOC0yMy4zYzIuNS04LDEwLjItMTIuOCwxNC44LTE5LjRjNi4zLTksNC42LTE4LjYsOC40LTI4YzQuNCwyLjQsMTIuNCw5LjMsMjYuOSwzLjENCgkJCWM3LjgtMy4zLDEzLTExLjIsMTYuOC0xOC43YzIuNy01LjMsMS43LTUuNiw3LjctNS43YzguMS0wLjEsMTQuOS0zLjIsMTktMTAuM2M2LTEwLjEsMy4xLTIzLjUtNC42LTMxLjkNCgkJCUMxMzk4LjMsMzQ0LjQsMTM4My42LDM0Mi42LDEzNzEuNSwzNDYuNHoiLz4NCgkJPHBhdGggY2xhc3M9InN0MSIgZD0iTTExMTQuMiwzODIuNGMtMjUuNiw4LjktNDcuMywyNi4yLTYxLjMsNDkuNWMtNC43LDcuNyw0LjYsMTYuOCwxMi4zLDEyLjNjMTAuMS02LDIwLjUtMTEuNiwzMC0xOC42DQoJCQljNC40LTMuMiwyOS42LTI4LjQsMjkuOS0zNC45QzExMjUuNCwzODUsMTExOS43LDM4MC41LDExMTQuMiwzODIuNHoiLz4NCgkJPHBhdGggY2xhc3M9InN0MSIgZD0iTTE3NzYuOCw4MTYuOWMyMS43LTE1LjcsNTMuNi02NS44LDUwLjYtNzMuNGMtMS45LTUtOC4xLTcuMy0xMi45LTVjLTI3LDEzLjUtNDcuMSwzOS45LTUyLjgsNjkuNg0KCQkJQzE3NjAuMiw4MTYuNywxNzY5LjIsODIyLjQsMTc3Ni44LDgxNi45eiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNMjAxMC4xLDY1Ni42Yy02LjMsOS45LTEyLjMsMTkuOS0xNy45LDMwLjJjLTUuNSwxMC4yLDEwLDE5LjMsMTUuNSw5LjFjNS42LTEwLjMsMTEuNi0yMC4zLDE3LjktMzAuMg0KCQkJQzIwMzIsNjU1LjksMjAxNi40LDY0Ni45LDIwMTAuMSw2NTYuNnoiLz4NCgkJPHBhdGggY2xhc3M9InN0MSIgZD0iTTk5NC45LDExMjcuNGMtMi4yLTEuNC00LjQtMi43LTYuNi0zLjljLTktNC44LTMyLjYtMTkuMS00Mi41LTEzLjNjLTQuNSwyLjYtNS4zLDcuOS0zLjIsMTIuMw0KCQkJYzQuNiw5LjYsMTQsMTUsMjIuOSwyMGMxMC45LDYuMiwyMS44LDEyLjQsMzIuNywxOC41YzQuOSwyLjgsMTEuOSwwLjQsMTMuMi01LjRDMTAxNC41LDExNDMuMiwxMDA0LjksMTEzMy44LDk5NC45LDExMjcuNHoNCgkJCSBNOTk0LjEsMTE1MUM5OTQuMSwxMTUxLDk5NC4xLDExNTEsOTk0LjEsMTE1MWMwLDAsMC4xLDAuMSwwLjEsMC4xQzk5NC40LDExNTEuOCw5OTQuNCwxMTUxLjgsOTk0LjEsMTE1MXoiLz4NCgkJPHBhdGggY2xhc3M9InN0MSIgZD0iTTE4NDkuNCwxMTQ4LjFjNC42LTE1LjYtMTkuMy0yMS45LTMwLjItMjQuMWMtMTQuMy0yLjgtMzAuMS0xLjEtNDYuNSw3LjFjLTYuMiwzLjEtNS40LDE0LjEsMi42LDE2LjMNCgkJCWMxMy4yLDMuNywyNi42LDguMiw0MC4xLDEwLjZDMTgyNi4yLDExNTkuOSwxODQ1LjMsMTE2MS45LDE4NDkuNCwxMTQ4LjF6IE0xODMyLjMsMTE0MS40DQoJCQlDMTgzMi43LDExNDAuNCwxODMzLjIsMTE0MS41LDE4MzIuMywxMTQxLjRMMTgzMi4zLDExNDEuNHoiLz4NCgkJPHBhdGggY2xhc3M9InN0MSIgZD0iTTE4NTkuNSwxNTI3LjZjLTExLjUsMC43LTIzLjIsMjktMjcsNDEuM2MtNi43LDIyLjMtMiwxNS41LDguNyw2LjdjMTEuMS05LjIsMTIuOS0xOS43LDE3LjgtMzMuMw0KCQkJQzE4NjAuOCwxNTM3LjgsMTg2Ni40LDE1MjcuMiwxODU5LjUsMTUyNy42eiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNODI4LjgsMTUwNi4xYy0xNywxMi43LTMyLjUsMzAuMi0zOS43LDUwLjRjLTMuMSw4LjgtNC4zLDE3LjktMy42LDI3LjFjMC40LDUuOS0wLjQsMTIuOSwxLjIsMTguNg0KCQkJYzUuMSwxOC45LDMxLjQtMTcuNCwzNS4zLTIzYzYuNi05LjQsMTQuNy0xNiwyMC41LTI1LjljNS43LTkuNiwxMS0yMy43LDEyLjktMzYuMUM4NTYuNywxNTA4LjUsODUyLjUsMTQ4OC4zLDgyOC44LDE1MDYuMXoiLz4NCgk8L2c+DQo8L2c+DQo8ZyBpZD0iY29sb3Jfc2hhZG93Ij4NCgk8Zz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTEyNTAuNCw2NzUuOGMxNS4yLDcuOCwzMi43LDUuMyw0OC4yLTAuM2MxNC42LTUuMywyOC4xLTEzLjUsMzkuNC0yNC4xYzguNS03LjksMzEuMy0zMC4zLDEzLjYtMzkuOQ0KCQkJYy03LjUtNC0xOC40LTIuNS0yNi4yLTAuNGMtOC44LDIuMy0xNy4yLDYuNi0yNS4xLDExLjFDMTI4My42LDYzMS43LDEyNDIuMSw2NzEuNSwxMjUwLjQsNjc1Ljh6Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xNDEzLjQsNzEyLjhjMTEuNC03LjgsMTktMjAuMSwyNi44LTMxLjFjOC4yLTExLjUsMTcuMi0yMi41LDI2LjktMzIuN2M5LjEtOS43LDE5LjMtMTguMywyOC4yLTI4LjENCgkJCWM5LTEwLDE5LjgtMjQuMywxOS0zOC41Yy0wLjQtNy4yLTQuNi0xNC0xMi0xNS43Yy03LjQtMS43LTE1LjIsMi4xLTE3LjIsOS42Yy0wLjEsMC4xLTAuMiwwLjItMC4zLDAuNA0KCQkJYy03LjEsMTEuNC0xNS42LDIxLjgtMjUuMywzMS4xYy0xMC4zLDkuOS0yMi4xLDE3LjYtMzMuNywyNS43Yy0xMS41LDgtMjIuNiwxNi42LTMxLjIsMjcuOWMtOCwxMC40LTE1LjEsMjQuNS0xMi44LDM4DQoJCQlDMTM4NC40LDcxNC41LDE0MDAuNSw3MjEuNiwxNDEzLjQsNzEyLjh6Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xMzc5LjMsNTA5LjFjMi4xLTkuNC0xMS45LTEyLjktMTkuNC0xMi44Yy03LjEsMC4xLTE5LjIsNS41LTEyLDE0QzEzNTYuMiw1MjAsMTM3Ny44LDUxNiwxMzc5LjMsNTA5LjF6Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xNDE4LDQ4Ny44YzMuMywzLjIsMTAuMSwyLjMsMTMuNi02LjRjMS4yLTMtMC42LTguMS0yLjYtMTEuMUMxNDIxLjMsNDU4LjEsMTQwNi43LDQ3Ny4xLDE0MTgsNDg3Ljh6DQoJCQkgTTE0MzEuNCw0NzkuMmMwLDAsMC0wLjEsMC0wLjFDMTQzMS40LDQ3OS4xLDE0MzEuNCw0NzkuMSwxNDMxLjQsNDc5LjJDMTQzMS40LDQ3OS4yLDE0MzEuNCw0NzkuMiwxNDMxLjQsNDc5LjJ6Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xNDEwLjIsNTQ0LjRjNS4xLDEuMSwxMS4zLTEuNiwxNC40LTUuMmMzLjgtNC4zLDIuMy0xMS4yLTQuMy0xMi42Yy02LjgtMS40LTE3LjUsNC0xNi43LDEwLjkNCgkJCWMwLjQsMy4zLDIuOSw1LjksNi41LDYuOEMxNDEwLjEsNTQ0LjQsMTQxMC4xLDU0NC40LDE0MTAuMiw1NDQuNHoiLz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE1NjUuNyw2NzQuN2MtOC4zLDE2LjktMTcuMiw0MiwxLjcsNDkuNGMyLjgsMS4xLDYuOC0wLjIsOC44LTIuM2MxOC42LTE5LjksMzUuNy00MS4xLDUwLjktNjMuNw0KCQkJYzE0LTIwLjgsMjkuNy00NC40LDM1LjgtNjljNS4zLTIxLjEtMi45LTMwLjYtMTUuNC00Ny4zYy0xMy4yLTE3LjUtNDYuMi01OC44LTQ4LjEtNTguOGMtMC4xLTAuMS0wLjEtMC4yLTAuMi0wLjMNCgkJCWMtNS4zLTEwLjMtMjAuOC0xLjItMTUuNSw5LjFjMTUuNywzMC44LDMzLjMsNjUuOCwyNC4zLDEwMS4zQzE2MDEuNCw2MTkuMiwxNTY3LjgsNjcwLjQsMTU2NS43LDY3NC43eiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QyIiBkPSJNMTM1NC44LDk0Mi40Yy0xLjktNS4xLTQtMTAuMi02LTE1LjJjLTUuMy0xMy4xLTkuOC0yNy4yLTE4LjMtMzguN2MtNi4yLTguNC0xOC44LTEwLjItMjQuMy0wLjENCgkJCWMtMS42LDMtMy44LDUuNy01LjIsOC44Yy00LjIsOS4yLDEuNSwyMC40LDQuMSwyOS4zYzIuNyw4LjksNS4yLDE3LjcsOC42LDI2LjRjMy44LDkuNiw4LjMsMTkuMiwxNSwyNy4yDQoJCQljNiw3LjIsMTYuOCwxNy4xLDI3LjEsMTQuM2MxMS0zLDkuOS0xNSw4LTIzLjdDMTM2MS41LDk2MSwxMzU4LjMsOTUxLjYsMTM1NC44LDk0Mi40eiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QyIiBkPSJNMTU1My4xLDg1Ni41YzkuOS03LjYsMTQuMi0yMS44LDE4LjItMzMuMWM1LjEtMTQuMiw5LjctMjguNywxNC40LTQzLjFjMy43LTExLjEsOC40LTIzLjQsMC45LTMzLjkNCgkJCWMtNi45LTkuNy0xOC41LTcuNi0yNy42LTEuNmMtMTkuOSwxMy4zLTI2LjEsNDQuOS0zMS43LDY2LjNjLTIuOSwxMC45LTguNiwyNi4zLTQuOSwzNy42QzE1MjYuNyw4NjEuOSwxNTQyLjgsODY0LjUsMTU1My4xLDg1Ni41DQoJCQl6Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xNDg2LjEsOTg2LjZjLTYuMyw3LjMtOSwxOC0wLjUsMjQuOGM4LjQsNi42LDI0LjMsNS45LDM0LjQsNi41YzE5LjMsMS4yLDQ1LjUtMC4zLDU5LjQtMTYNCgkJCWMxNi4xLTE4LjItMi44LTQzLjItMjMuOS00MC41QzE1MzMuNCw5NjQuMSwxNTAxLjUsOTY4LjcsMTQ4Ni4xLDk4Ni42eiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QyIiBkPSJNMTIwNC44LDk0OC41YzEyLjMsMTEuMSwyNi42LDIxLjQsNDMuMiwyNC41YzgsMS41LDE2LjIsMS42LDI0LjItMC4yYzcuNC0xLjcsMTguNS01LjgsMTguNS0xNS4xDQoJCQljMC04LjYtOC45LTE0LTE1LjQtMTguMWMtNi4zLTMuOS0xMy4zLTctMjAuNC05LjFjLTE0LjktNC40LTMxLTQuMy00NS45LDBDMTIwMS44LDkzMi41LDExOTkuMyw5NDMuNSwxMjA0LjgsOTQ4LjV6Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xMDYzLjEsNzM3LjNjMi40LDcuNywxMS4yLDI2LjgsMjEuOCwxNy4xYzMuNi0zLjMsMy43LTksNC40LTEzLjZjMC43LTQuNywxLTkuNSwwLjYtMTQuMg0KCQkJYy0wLjgtOC4zLTUuMS0xOS4zLTEzLjktMjIuMkMxMDU5LjcsNjk5LjIsMTA2MC41LDcyOC44LDEwNjMuMSw3MzcuM3oiLz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTEwNDIuOCw3OTUuMWM0LjQsMi44LDE0LDcuNiwyNS45LDE5LjVjNS43LDUuNywxOS44LDguNSwyNy42LDMuOWM3LjMtNC4zLDYuNC0xMi43LDIuOS0xOS4yDQoJCQljLTYuMi0xMS42LTE3LjgtMTkuNy0zMC40LTIyLjljLTctMS43LTE1LjMtMi40LTIyLjMtMC41QzEwMzUuNSw3NzguOCwxMDMzLjgsNzg5LjQsMTA0Mi44LDc5NS4xeiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QyIiBkPSJNMTc0OS45LDQ5MC40YzEwLTMuNCwxNC43LTE3LjQsMTctMjYuNmMyLjktMTEuNiwyLjgtMjMuOS0wLjQtMzUuNGMtMS44LTYuNy00LjctMTMuMS04LjUtMTguOA0KCQkJYy0zLjEtNC43LTguNC0xMy42LTE1LTEzYy01LjgsMC41LTkuOSw3LjEtMTIuMywxMS43Yy01LjIsOS43LTguMSwyMC43LTguNywzMS43Yy0wLjcsMTQuMywyLjYsMjguOCw5LjksNDEuMQ0KCQkJQzE3MzUuOCw0ODcuNywxNzQxLjcsNDkzLjMsMTc0OS45LDQ5MC40eiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QyIiBkPSJNMTUwMy4yLDI4OC40YzQuNyw0LjEsMTAuNCw3LjIsMTUuOSw5LjhjOS4zLDQuNSwyMy45LDEzLjIsMzQsNy4yYzMwLjctMTguNi0yNS02NS00OC4zLTU0LjgNCgkJCWMtOS44LDQuMy0xNC40LDE1LTEwLjgsMjUuMUMxNDk1LjgsMjgwLjcsMTQ5OS4yLDI4NC45LDE1MDMuMiwyODguNHoiLz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTEwNjMuMywxMzg3LjNjLTUuMSwyNy40LTUuMyw1NS43LTAuMiw4My4xYzIuNCwxMyw2LjcsNTEsMjUuMyw1MC45YzIwLjItMC4xLDM2LjUtMjkuMSw0NC4zLTQ0DQoJCQljMTEuMi0yMS40LDE4LjUtNDQuNiwyMS42LTY4LjZjMy4xLTIzLjksMS45LTQ4LjMtMy41LTcxLjhjLTIuOC0xMi41LTYuOC0yNC42LTEyLTM2LjNjLTMuMy03LjYtOC43LTIzLjItMTUuOC0yNy43DQoJCQljLTE1LjMtOS44LTI2LjcsMjguOC0zMS4yLDM4QzEwNzkuNywxMzM1LjQsMTA2OC40LDEzNjAuMSwxMDYzLjMsMTM4Ny4zeiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QyIiBkPSJNMTMzMC4zLDE0ODIuOGM4LjIsMjMuMiwyMi4xLDQzLjgsMzYuOCw2My4zYzYuNSw4LjYsMTMuMiwxNywxOS43LDI1LjVjNS45LDcuNywxMi40LDE5LjIsMjIuOCwyMS4yDQoJCQljMjEuOSw0LjIsMjMuNC0zMi43LDI0LjUtNDYuMmMyLjEtMjUtMC44LTUwLjQtOC4xLTc0LjVjLTEyLjgtNDItNDAuOC04Ni4xLTgxLjktMTA1LjFjLTguNi00LTIxLjQtMTAuOS0yNi45LDAuMw0KCQkJYy00LjMsOC43LTAuOSwyNC40LTAuNCwzMy41QzEzMTguMSwxNDI4LjcsMTMyMSwxNDU2LjYsMTMzMC4zLDE0ODIuOHoiLz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE1NjYuNCwxMTAxLjRjLTEuNS0yMC43LTQwLjgtMjkuOC01Ni41LTM0LjFjLTI0LjQtNi44LTQ5LjgtOS41LTc1LTExLjJjLTI3LjctMS44LTU1LjQtMi04My4xLTQuMg0KCQkJYy0xMy45LTEuMS0yNy44LTIuNi00MS41LTUuMWMtMTMuOS0yLjUtMTUtMi4yLTIyLjgsNy4zYy0zLjksNC44LTEwLjIsMTEuMS0wLjcsMTYuMWM3LjMsMy44LDIwLjYtNC4xLDI5LjQtMy4yDQoJCQljMjMuOSwyLjMsNDQuNCwxNy43LDY4LjYsMTkuOWMxMi4zLDEuMiwyNC42LTAuMiwzNi45LTAuM2MxMy42LTAuMSwyNi4xLDIuNiwzOS4yLDYuMWMyNS4zLDYuOSw1MC40LDE0LjUsNzUuNiwyMS42DQoJCQljLTE2LjcsMTAuNi0zMy4xLDIxLjctNDkuMiwzMy4yYy00LjgsMy41LTQzLjEsMjcuNC0yMC41LDMzLjNjNy4zLDEuOSwxNi4xLTcuOSwyMS42LTExLjljNy44LTUuNywxNS43LTExLjMsMjMuNi0xNi44DQoJCQljOC42LTUuOSw0NS0yMi4zLDM4LjItMzUuMkMxNTU4LjksMTExNy4zLDE1NjcuMSwxMTEwLjYsMTU2Ni40LDExMDEuNHoiLz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTEzNDQuOSwxMTc1LjFjMy4zLDExLjEsMjAuNyw2LjMsMTcuNC00LjhjLTYuMS0yMC4zLTE3LjMtMzguNy0zMi42LTUzLjRjLTguNC04LTIxLjEsNC43LTEyLjcsMTIuNw0KCQkJQzEzMzAsMTE0Mi4yLDEzMzkuNiwxMTU3LjcsMTM0NC45LDExNzUuMXoiLz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE2MjguOSwxNTQ4LjljMC41LTAuNi03LjEsMC43LTcuOSwxLjFjLTQsMi03LjcsOS40LTEwLjEsMTMuMWMtNS42LDguMy0xMC41LDE2LjktMTQuOCwyNS45DQoJCQljLTYuMSwxMi43LTE2LjUsMzMuNSwwLjEsNDIuOGM3LjUsNC4yLDE3LjgtMC40LDI0LjQsMy42YzYuOSw0LjEsNC41LDE1LjksNi42LDIzYzUuNiwxOC44LDI0LjksMjMuNyw0Mi40LDI0LjcNCgkJCWMxOC44LDEuMSwzNS42LTYuMiwzOS42LTI2LjFjMy45LTE5LjMtNi4yLTM5LjYtMTUuNC01NS45QzE2ODcuNywxNTkwLjIsMTY0NywxNTI1LjksMTYyOC45LDE1NDguOXoiLz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTEyNjYuNiwxNTgzYy01LjQsMC04LjQsNC4yLTksOWMtMi45LDIzLjUtNy44LDQ2LjctMTQuNCw2OS40Yy02LjYsMjIuNS0xNyw0NC40LTE5LjQsNjgNCgkJCWMtMSwxMC40LDAuMSwyMywxMi40LDI1LjdjOS4xLDIsMTguNi0zLjEsMjMuOS0xMC4zYzYuNC04LjcsOC43LTE5LjYsMTAuOC0zMGMyLjQtMTIsNC4zLTI0LjEsNS42LTM2LjNjMi45LTI2LjYsMy01My40LDAuNC03OS45DQoJCQljLTAuMi0xLjctMC43LTMuMy0xLjUtNC42YzAuMS0wLjcsMC4yLTEuMywwLjMtMS45QzEyNzYuMiwxNTg3LjIsMTI3MS4xLDE1ODMsMTI2Ni42LDE1ODN6IE0xMjM5LjcsMTczNy41YzAsMCwwLjUsMCwxLjEsMA0KCQkJQzEyNDEsMTczNy45LDEyMzksMTc0NC43LDEyMzkuNywxNzM3LjV6IE0xMjQxLjQsMTczOC4zYzAsMCwwLTAuMSwwLTAuMUMxMjQyLjEsMTczOC4zLDEyNDAuMiwxNzM5LjksMTI0MS40LDE3MzguM3oNCgkJCSBNMTI0MS41LDE3MzguMmMwLTAuMiwwLTAuNCwwLTAuN0MxMjQyLjMsMTczNy42LDEyNDIuNywxNzM3LjcsMTI0MS41LDE3MzguMnogTTEyNTEsMTcyMS4xYy0xLDMuOS0yLjIsNy44LTQuMywxMS4zDQoJCQljLTAuNywxLjItMS40LDIuNC0yLjQsMy4zYy0wLjgsMC43LTEuOSwwLjktMi44LDEuM2MwLTEtMC4xLTIuMi0wLjEtMi4xYzAuMS00LjgsMC44LTkuNCwxLjgtMTQuMWMzLjktMTcuNywxMS0zNC42LDE2LjQtNTEuOQ0KCQkJQzEyNTguMiwxNjg2LjYsMTI1NS40LDE3MDQuMSwxMjUxLDE3MjEuMXoiLz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTEyODguOCwxODA5LjNjMS43LTE2LjMtMjguNS00LjUtMzYuMS0zLjljLTIwLjgsMS44LTM4LjEtNS41LTU3LjItMTJjLTE0LjgtNS0zMS42LTE2LTMyLjMsMy4xDQoJCQljLTIuNCw2OC4xLTcwLjQsNzIuNy0xMTguNiw4OC44Yy0yMy45LDgtNDkuMywyNC41LTU5LjcsNDkuMmMtMy41LDguNC04LjgsMjUuMSwzLjEsMjguOGM1LjYsMS43LDE1LjUtMC41LDIxLjItMC45DQoJCQljOC40LTAuNSwxNi43LTEsMjUuMS0xLjVjNjQtMy45LDEyOC03LjksMTkyLTExLjhjMTcuMS0xLjEsMzQuMy0xLjYsNTEuMy0zLjJjMCwwLDAsMCwwLDBjMjIuNC0yLDE0LjgtMzYuNiwxMi41LTUwLjYNCgkJCUMxMjg1LjMsMTg2Ni41LDEyODUuOCwxODM4LjYsMTI4OC44LDE4MDkuM3oiLz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE3NDYuMiwxNjg1LjRjLTAuNywwLjQtMS40LDAuOC0yLjIsMS40Yy04LjYsNi4xLTE3LDEyLjMtMjYuMSwxNy41Yy0yMS40LDEyLjItNDQuMSwxOC42LTY3LjgsMjQuMg0KCQkJYy0xMS40LDIuNy05LjgsOC4zLTEwLjIsMTcuNmMtMS4xLDIzLjItMTQuMyw0OS41LTI2LjcsNjguNWMtMTIuOSwxOS44LTMyLDM1LjMtNDYsNTQuNWMtNi45LDkuNC0xMi43LDE5LjktMTUuMSwzMS40DQoJCQljLTEuOSw5LjItMy43LDI5LDcuMywzMy42YzkuMSwzLjgsMjMuOC03LjcsMzEuMi0xMi41YzU5LjctMzguNCwxMTgtNzguOSwxNzcuNi0xMTcuM2MxMS43LTcuNSwyOC40LTE0LjYsMzcuNy0yNS4xDQoJCQljMTUuNS0xNy41LTkuOS00MS4xLTE5LjgtNTQuNEMxNzc4LjIsMTcxNC40LDE3NjQuNiwxNjc1LjQsMTc0Ni4yLDE2ODUuNHoiLz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTk1MC45LDE5NzUuM2M0LjgsMC44LDkuNy0xLjIsMTEuMS02LjNjMS4yLTQuMy0xLjUtMTAuMy02LjMtMTEuMWMtMzYuMi01LjctNzIuNi01LjYtMTA4LjgsMC4zDQoJCQljLTguMiwxLjMtMTYuNSwyLjgtMjQuOSwxLjljLTguNi0xLTE2LjctNC41LTI1LjItNi4yYy0xNy40LTMuNS0zNC42LTEuMS01MC44LDUuOWMtNC41LDEuOS01LjUsOC41LTMuMiwxMi4zDQoJCQljMi43LDQuNiw3LjgsNS4yLDEyLjMsMy4yYzE0LjUtNi4zLDMwLjEtNi4zLDQ1LTIuMWM4LDIuMywxNS45LDQuNiwyNC4zLDVjOC41LDAuNCwxNy0xLjEsMjUuMy0yLjQNCgkJCUM4ODMuMiwxOTcwLjUsOTE3LjQsMTk3MCw5NTAuOSwxOTc1LjN6Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik04MjguNiwyMDE4LjRjLTguNSwwLTE3LDAtMjUuNiwwYy0xMS42LDAtMTEuNiwxOCwwLDE4YzguNSwwLDE3LDAsMjUuNiwwDQoJCQlDODQwLjIsMjAzNi40LDg0MC4yLDIwMTguNCw4MjguNiwyMDE4LjR6Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xMDAxLjcsMjAwMC4yYy0yMC4zLDIuNy00MC43LDMuMy02MS4xLDEuNmMtMTYuOC0xLjQtMzctNy45LTUyLjEsMi45Yy00LDIuOC01LjgsNy44LTMuMiwxMi4zDQoJCQljMi4zLDMuOSw4LjMsNi4xLDEyLjMsMy4yYzYtNC4zLDEzLTMuOSwyMC4xLTMuMmM4LjksMC45LDE3LjgsMi40LDI2LjcsM2MxOS4xLDEuMywzOC4zLDAuNyw1Ny4zLTEuOWM0LjgtMC42LDktMy43LDktOQ0KCQkJQzEwMTAuNywyMDA0LjgsMTAwNi41LDE5OTkuNSwxMDAxLjcsMjAwMC4yeiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QyIiBkPSJNMTQ3MC4zLDE5NjRjNC44LTAuOCw3LjUtNi43LDYuMy0xMS4xYy0xLjQtNS4xLTYuMy03LjEtMTEuMS02LjNjLTQ1LjQsOC05Mi0xMS4zLTEzNi43LDQuNA0KCQkJYy0xMC45LDMuOC02LjIsMjEuMiw0LjgsMTcuNGMyMS43LTcuNiw0NC41LTYuMyw2Ny00LjVDMTQyMy45LDE5NjUuOCwxNDQ3LjEsMTk2OCwxNDcwLjMsMTk2NHoiLz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTEyMTAuOCwxOTkyLjJjLTEzLjMsMi4zLTI2LjktMi4xLTQwLTQuMWMtMTQuMS0yLjEtMjguNi0yLjQtNDEsNS42Yy05LjcsNi4yLTAuNywyMS44LDkuMSwxNS41DQoJCQljMTAuNS02LjgsMjMuMS00LjYsMzQuNy0yLjVjMTQsMi42LDI3LjcsNS4yLDQyLDIuOGM0LjgtMC44LDcuNS02LjcsNi4zLTExLjFDMTIyMC41LDE5OTMuNCwxMjE1LjYsMTk5MS40LDEyMTAuOCwxOTkyLjJ6Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xMjc0LjUsMjAxOC4yYy03LjYsMC45LTE1LjEsMS45LTIyLjcsMi44Yy00LjgsMC42LTksMy43LTksOWMwLDQuNCw0LjEsOS42LDksOWM3LjYtMC45LDE1LjEtMS45LDIyLjctMi44DQoJCQljNC44LTAuNiw5LTMuNyw5LTlDMTI4My41LDIwMjIuOCwxMjc5LjMsMjAxNy42LDEyNzQuNSwyMDE4LjJ6Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik05ODguOCwyMDUwLjhjLTEuOSwwLjktMy44LDEuOS01LjcsMi44Yy0xLjksMS0zLjYsMy4zLTQuMSw1LjRjLTAuNiwyLjItMC4zLDUsMC45LDYuOQ0KCQkJYzIuOCw0LjMsNy44LDUuNSwxMi4zLDMuMmMxLjktMC45LDMuOC0xLjksNS43LTIuOGMxLjktMSwzLjYtMy4zLDQuMS01LjRjMC42LTIuMiwwLjMtNS0wLjktNi45DQoJCQlDOTk4LjMsMjA0OS44LDk5My4zLDIwNDguNiw5ODguOCwyMDUwLjh6Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xNzIwLjQsMTk0NC4yYy02Ny4zLTItMTM0LjYtMC40LTIwMS44LDQuN2MtNC44LDAuNC05LDMuOS05LDljMCw0LjYsNC4xLDkuNCw5LDkNCgkJCWM2Ny4xLTUuMSwxMzQuNS02LjcsMjAxLjgtNC43QzE3MzIsMTk2Mi42LDE3MzIsMTk0NC42LDE3MjAuNCwxOTQ0LjJ6Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xOTY0LjUsMTk0NmMtNjgtNi4yLTEzNi41LTYuMS0yMDQuNSwwLjJjLTQuOCwwLjQtOSwzLjgtOSw5YzAsNC41LDQuMSw5LjUsOSw5YzY4LTYuMywxMzYuNS02LjQsMjA0LjUtMC4yDQoJCQljNC44LDAuNCw5LTQuNSw5LTlDMTk3My41LDE5NDkuOCwxOTY5LjQsMTk0Ni41LDE5NjQuNSwxOTQ2eiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QyIiBkPSJNMTg5OCwxOTg0LjZjLTQtMS4yLTcuOS0wLjQtMTEuNiwxLjJjLTEuOSwwLjgtMy42LDMuNC00LjEsNS40Yy0wLjYsMi4yLTAuMyw1LDAuOSw2LjkNCgkJCWMxLjIsMS45LDMuMSwzLjYsNS40LDQuMWMxLjYsMC40LDIuOSwwLjMsNC4zLDBjMi44LDIuOSw3LjQsNCwxMSwxLjdjNC0yLjYsNS45LTguMSwzLjItMTIuMw0KCQkJQzE5MDUsMTk4OC4yLDE5MDEuOSwxOTg1LjcsMTg5OCwxOTg0LjZ6IE0xODk0LjIsMjAwMS44YzAuMSwwLDAuMSwwLDAuMi0wLjFDMTg5NC4zLDIwMDEuOCwxODk0LjMsMjAwMS44LDE4OTQuMiwyMDAxLjgNCgkJCUMxODk0LjIsMjAwMS44LDE4OTQuMiwyMDAxLjgsMTg5NC4yLDIwMDEuOHoiLz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE4MDIuOCwxOTc2LjljLTI3LjUtMC44LTU1LTEuNy04Mi41LTIuNWMtMTEuNi0wLjQtMTEuNiwxNy42LDAsMThjMjcuNSwwLjgsNTUsMS43LDgyLjUsMi41DQoJCQlDMTgxNC40LDE5OTUuMywxODE0LjQsMTk3Ny4zLDE4MDIuOCwxOTc2Ljl6Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xNzExLjksMjA0MS4xYy0xOC45LDAtMzcuOSwwLTU2LjgsMGMtMTEuNiwwLTExLjYsMTgsMCwxOGMxOC45LDAsMzcuOSwwLDU2LjgsMA0KCQkJQzE3MjMuNSwyMDU5LjEsMTcyMy41LDIwNDEuMSwxNzExLjksMjA0MS4xeiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QyIiBkPSJNMTUzMy4xLDIwMDAuNGMtMjkuMy0zLjMtNTguOC0yLjItODcuOSwzYy00LjgsMC45LTcuNSw2LjctNi4zLDExLjFjMS40LDUsNi4zLDcuMSwxMS4xLDYuMw0KCQkJYzI3LjQtNC45LDU1LjUtNS41LDgzLjEtMi40YzQuOCwwLjYsOS00LjUsOS05QzE1NDIuMSwyMDA0LDE1MzcuOSwyMDAwLjksMTUzMy4xLDIwMDAuNHoiLz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE2NjAuNywxOTk2LjZjMTEuNiwwLDExLjYtMTgsMC0xOEMxNjQ5LjIsMTk3OC42LDE2NDkuMSwxOTk2LjYsMTY2MC43LDE5OTYuNnoiLz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE0MDIuMywxOTgxLjVjLTEuOSwwLTMuOCwwLTUuNywwYy00LjcsMC05LjIsNC4xLTksOWMwLjIsNC45LDQsOSw5LDljMS45LDAsMy44LDAsNS43LDBjNC43LDAsOS4yLTQuMSw5LTkNCgkJCUMxNDExLjEsMTk4NS42LDE0MDcuMywxOTgxLjUsMTQwMi4zLDE5ODEuNXoiLz4NCgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTkyNC4yLDY1Ni41YzE2LjIsMjAuNywzMi41LDQxLjMsNDguOSw2MS44YzcuNiw5LjUsMTQuNSwyMy40LDI0LjksMzAuMmMyMS40LDE0LjIsNTItMTksMzcuNy00MC4xDQoJCQljLTYuMi05LjItMTQtMTcuMy0xOS4zLTI3Yy01LjctMTAuNC02LjEtMjIuNy0xMi4yLTMyLjhjLTcuMi0xMS45LTI3LjUtNDMuOC00NC42LTM3LjhDOTQ3LjEsNjE1LjMsOTExLjMsNjQwLDkyNC4yLDY1Ni41eiIvPg0KCTwvZz4NCjwvZz4NCjxnIGlkPSJvdXRsaW5lIj4NCgk8Zz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTEzMjMuMSw0OTkuOWMtNy0xLTE0LjEsNC40LTE1LjgsMTEuM2MtMS43LDYuOSwxLjUsMTQuNSw3LDE4LjljNS41LDQuNSwxMyw2LDIwLjEsNS4yIi8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xMzIwLDUxNi4yYzIuOCwwLDUuNiwwLjUsOC4zLDEuNCIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTM0Nyw0NjkuM2M0LjQtNi40LDEwLjItMTEuNywxNy0xNS41Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xMzY0LjksNDc3YzAuOSwyLjQsMi4xLDQuNywzLjUsNi45QzEzNjguMSw0ODEuMiwxMzY3LjEsNDc4LjcsMTM2NC45LDQ3NyIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTQwNC42LDQ0Mi4xYy00LjMtMS41LTEyLjctMS4zLTE3LjItMC4yYy0wLjgsMC4yLTEuNSwwLjQtMiwxLjFjLTAuNSwwLjYtMC41LDEuNS0wLjQsMi4zDQoJCQljMC41LDEyLjMsNi4yLDI0LjIsMTUuMywzMi41YzIuNywyLjUsNi4xLDUuNCw1LjQsOS4xYy0wLjYsMy41LTQuOCw2LTQuMiw5LjQiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE0MDMuNSw0NTcuM2MwLjMsMS41LDEuMSwzLjYsMi4xLDUuN0MxNDA1LjksNDYxLjUsMTQwNC40LDQ1OC40LDE0MDMuNSw0NTcuMyIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTQwNi4xLDQyMy40YzguOCwxNy4zLDE2LjcsMzUsMjMuNyw1M2M1LjYsMTQuMywxMC42LDI5LjEsMTEuOCw0NC40YzAuNSw1LjgsMC4zLDExLjgtMS45LDE3LjINCgkJCWMtMi45LDctOSwxMi4zLTE1LjgsMTUuNGMtNi45LDMuMS0xNC40LDQuMi0yMiw0LjdjLTguMiwwLjUtMTYuNSwwLjMtMjQuNy0wLjciLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTEzMzQuMyw1NDVjMTAuMSwyMi40LDE3LjMsNDYuMiwyMS4yLDcwLjUiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE0MzUuOSw1NDhjNC4yLDguOSw5LjEsMTcuNCwxNC43LDI1LjQiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE0MTUuMSw1MDUuNWMtOC44LDEuMS0xNi44LDYuNy0yMC45LDE0LjZjLTAuOCwxLjYtMS4xLDQuMSwwLjUsNC43YzAuOSwwLjMsMS44LTAuMSwyLjYtMC42DQoJCQljNS44LTMuMSwxMS42LTYuMiwxNy40LTkuNCIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTI3NC42LDcwMy4yYy01LjQsNDIuOS0xMC43LDg2LjEtNy44LDEyOS4yYzEuNiwyNC42LDUuOCw0OSwxMCw3My40YzcuNCw0MywxNC45LDg1LjksMjIuMywxMjguOSIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTMwOC41LDg4OS4yYy0wLjEsMzcuOSwxNS40LDc1LjcsNDIuMiwxMDIuNiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTMzMS40LDkzNi44YzguNiwxNC44LDE4LjUsMjguOCwyOS42LDQxLjgiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE1MDIuMSw1NjQuN2MtNS4xLDI4LjgtMjgsNTAuOS01MS4yLDY4LjZjLTIzLjIsMTcuOC00OC44LDM0LjItNjMuOSw1OS4yIi8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDU4LjksNjQwLjNjLTE2LjQsMTUuOS0yOS44LDM0LjktMzkuNCw1NS42Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDE3LjYsNzEwLjYiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTEzNTUsNjIwYzI4LjYsNSw1Ni44LTkuMyw4MC44LTI1LjZjNy40LTUuMSwxNS41LTExLjYsMTUuOC0yMC42Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xMzQ3LjksNjEyLjljLTI1LjItMi43LTUwLjUsOC40LTY5LjQsMjUuMmMtMTksMTYuOC0zMi40LDM5LTQzLjgsNjEuNmMtMTQuNSwyOS0yNi4yLDU5LjUtMzQuNyw5MC44DQoJCQljMTkuNy0wLjcsMzkuNSw2LjQsNTQuMywxOS40Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDU5LjksNTY4YzQxLjctMjkuMiw4My43LTU4LDEyNS45LTg2LjUiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE1NzkuNSw0NjMuOGM0OCw0Mi40LDg1LjYsOTYuNCwxMDguNiwxNTYuMiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTY2My42LDU5MS4xYy0xOC41LDQ5LjktNTUuNiw5MC4zLTg2LjIsMTMzLjgiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE2MDkuMyw2OTkuMmMtMjguOSw3Mi41LTQuNSwxNTQtNywyMzJjLTEuNiw1MC4xLTE0LjQsOTkuMi0yNy4yLDE0Ny43Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNTgzLjUsNzQzLjFjLTguNiwyOS4yLTE0LjIsNTkuMi0xNi41LDg5LjUiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE1NTcuOCw3NzQuOGMtOC4yLDE3LjctMTYuNCwzNS41LTI0LjUsNTMuMiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTU2Ni40LDk3NS4yYy0xOC41LDEuNC0zNi43LDUuNS01NCwxMi4yYy03LjMsMi44LTE1LDYuNy0xOC4zLDEzLjhjMTkuMSwyLjMsMzguMiwzLjYsNTcuNCwzLjkiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTEyOTkuMiwxMDM4YzUwLjUsMTksMTA2LjgsMTAuOSwxNjAuMSwxOWMzNi4yLDUuNSw3MC45LDE4LjUsMTA1LjIsMzEuNCIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTYxMC4zLDQ2Ny44YzEyLTEzLjQsMjYuMi0yNC43LDQxLjktMzMuNGM0LTIuMiw4LjUtNC40LDEzLTMuOGMxLjcsMC4yLDMuNCwwLjksNC4zLDIuMw0KCQkJYzEuOSwyLjgtMC43LDYuOC00LDcuNWMtMy4zLDAuNy02LjYtMC45LTkuNC0yLjdjLTE0LTktMjMuMS0yMy43LTMzLjYtMzYuNmMtMTktMjMuNC00OC45LTQ1LjktNzYuNy01Ny40Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNTc5LjIsMjg1LjNjNDQuNywzOC44LDk5LjUsNjMuNywxNDcuOSw5Ny43YzExLjUsOC4xLDIyLjcsMTYuOCwzMS4yLDI3LjljOC41LDExLjEsMTQuMSwyNS4xLDEyLjksMzkNCgkJCWMtMS40LDE2LjItMTEuNiwzMC4yLTIxLjcsNDIuOWMtMjAuOSwyNi4yLTQzLjQsNTEuMi02Ny4zLDc0LjciLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE3NDguOSw0MjYuMWMyLjIsNSwyLjEsMTEtMC4yLDE1LjkiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE1MTguNywzMDAuN2MtNy40LTUuOC0xNy4xLTguNy0yNi41LTcuOWMtMy40LDAuMy02LjcsMS0xMC4xLDAuN2MtMi45LTAuMy01LjctMS40LTguNS0yLjMNCgkJCWMtNy45LTIuNi0xNy41LTMuNS0yMy44LDJjLTAuOCwwLjctMS41LDEuNS0xLjYsMi41Yy0wLjIsMS45LDEuNiwzLjMsMy4zLDQuM2MyMS41LDEyLjgsNDQsMjQsNjcuMiwzMy40DQoJCQljMy4zLDEuMyw2LjYsMi43LDEwLjIsMi44YzMuNSwwLjIsNy4zLTEuMSw5LjQtMy45Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDc2LjQsMjc2LjNjNC43LTguMSwxMC4xLTE1LjgsMTUuOS0yMy4yIi8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDQ4LjMsMjMwLjhjMS41LTQuNSw2LjEtNS4zLDEwLjgtNmM0LjctMC43LDkuNCwwLjUsMTMuOSwxLjljOS4zLDMsMTguMiw3LjQsMjYuMiwxMyIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTUxMy4yLDIzOS4zYzEwLjMsNSwyMC42LDEwLDMwLjksMTUuMWMzLjUsMS43LDcsMy41LDEwLjIsNS45YzguNSw2LjQsMTMuNywxNywxMy40LDI3LjciLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE0NDcuOCwyODNjLTguMS01LjUtMTgtNy42LTI2LjgtMTEuOGMtNi4zLTMtMTItNy0xNy42LTExLjJjLTEuMi0wLjktMi40LTEuOS0yLjctMy4zDQoJCQljLTAuNy0yLjksMi42LTUsNS40LTUuOGM1LjgtMS41LDEyLjEtMC43LDE3LjQsMi4xIi8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDMwLjcsMjU0LjRjMTIuOCwzLDI1LjUsNi42LDM3LjksMTAuOCIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTQwNy41LDI0My4zYzAuMi0xLjYsMi0yLjMsMy42LTIuNWM4LjItMS41LDE2LjktMC4zLDI0LjUsMy4yIi8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDIyLjYsMjMxLjFjMi42LTMuMyw3LjctMywxMS45LTIuM2MxOS43LDMuNywzOC43LDExLDU1LjgsMjEuNiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTA2OC41LDc1OC40Yy03LjktMTIuNS0xMi43LTI2LjktMTMuNy00MS43Yy0wLjQtNS4zLTAuNC0xMC45LTMtMTUuNWMtNS04LjktMTcuNC0xMC41LTI0LjQtMTcuOQ0KCQkJYy0yLjMtMi41LTMuOC02LjgtMS4yLTguOWMxLjEtMC45LDIuNS0xLjEsMy45LTEuMmMxMi40LTAuOCwyNC4xLDUuMSwzNC44LDExLjRjNS41LDMuMywxMS4xLDYuOCwxNC45LDEyDQoJCQljMy4yLDQuMyw0LjksOS41LDYuNSwxNC42YzQsMTIuOSw3LjEsMjUuOSwxMC4zLDM5Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xMDI0LjUsNzg3LjJjNC45LDIuMiw5LjgsNC40LDE0LjcsNi42Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xMDU2LjgsODAyLjdjNDYuMyw1My43LDk3LjcsMTAzLDE1My4yLDE0Ny4xYzguOCw3LDE3LjcsMTMuOSwyNy45LDE4LjZzMjEuNyw3LjIsMzIuNyw0LjgiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTExMDUuNyw3NTkuNmMxMi45LDE3LDMxLjksMjguMiw1MS4xLDM3LjRzMzkuMywxNi45LDU3LjEsMjguNmMxNC4yLDkuNCwyNi43LDIxLjMsMzYuOCwzNSIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTE5OS40LDgwNi44YzAuMy0yLjQsMC41LTQuOSwwLjgtNy4zIi8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik05MjAuOSw3MjguMmMxMy4yLDYuNywyNy4zLDExLjYsNDEuNywxNC40Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik05MzkuMiw3NTEuMmMxMS41LDIuOCwyMi45LDUuNSwzNC40LDguMyIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNOTU4LjIsNzY3LjdjOS4xLDAuOCwxOC4xLDEuNywyNy4yLDIuNSIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNOTQyLjksNzIxLjNjLTUtMi42LTEwLTUuMi0xNC40LTguOGMtNC4zLTMuNi04LTguMy05LjQtMTMuN2MtMC4zLTEuMi0wLjMtMi44LDAuOC0zLjMiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTEyODcuNywxMDQ3LjdjLTQ4LjIsNjMuMS05Ni40LDEyNi4xLTE0NC41LDE4OS4yYy0zNiw0Ny4xLTczLjIsOTYuOS04Mi44LDE1NS40DQoJCQljLTkuNyw1OS4xLDEwLDExOC41LDI0LjgsMTc2LjVjMTcuMSw2Ny4xLDI3LjksMTM1LjgsMzIuMiwyMDQuOSIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTEzMS43LDE3ODEuMWMxOC44LTguMiw0MC41LTMuMyw1OS45LDMuNWMxOS4zLDYuOCwzOC43LDE1LjYsNTkuMiwxNWMxOC4zLTAuNSwzNy45LTguMyw1My45LDAuNSIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTMxOC4xLDEyNzIuN2MtMjQuNyw0OC4zLTQ5LjMsOTYuNi03NCwxNDQuOGMtMS4zLDIuNi0yLjgsNS4zLTUuNCw2LjdjLTUuNiwzLTEyLjktMy43LTExLjYtOS45DQoJCQljMS4yLTYuMiw4LjQtMTAsMTQuNy05LjNjNi4zLDAuNywxMS43LDQuOSwxNS45LDkuN2MxNC43LDE2LjcsMTcuOCw0MC4zLDIwLjMsNjIuM2MxMS4zLDEwMC44LDIyLjcsMjAxLjYsMzQsMzAyLjQiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTEyNjkuNSwxNTk0LjJjMS42LDI1LjUsMSw1MS40LTUuNyw3Ni4xYy00LjMsMTUuOS0xMSwzMS0xNy43LDQ2LjFjLTQuMSw5LjMtOC4zLDE4LjYtMTIuNCwyNy45Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xMjY3LjksMTcwNC45Yy0wLjMsMTUuNS0zLjYsMzEtOS41LDQ1LjMiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTEwNzEuOSwxNDM0LjFjMTQuNSwxMSwzMC4zLDIwLjMsNDYuOSwyNy42Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xMzE4LjksMTEyOC4xYzQuNiwxOS44LDI3LjEsMzEuOSwzMC45LDUxLjljMS40LDcuNi0wLjEsMTUuNC0xLjYsMjNjLTcuOCwzOC43LTE1LjYsNzcuNS0yMy40LDExNi4yDQoJCQljLTkuOSw0OS4zLTE5LjgsMTAwLjgtNi41LDE0OS4zYzkuOSwzNS45LDMxLjgsNjcuMiw1NSw5Ni40YzYwLjcsNzYuMywxMzIuNCwxNDMsMjAzLjcsMjA5LjMiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE1OTQsMTc2NS40YzEwLTE3LjQsMjgtMjksNDYuNi0zNi42czM4LjQtMTIuMSw1Ny4xLTE5LjNjMjEuMy04LjIsNDEuMy0yMC4xLDU4LjctMzQuOSIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTc1MS44LDE2NTVjLTc0LTk3LjktMTU3LjYtMTg4LjUtMjQ5LjMtMjcwLjJjLTUuNC00LjgtMTMuNy05LjYtMTguOS00LjdjLTYuNiw2LjIsNSwxNy41LDEzLjMsMTMuNw0KCQkJYzguMy0zLjgsMTEuMS0xMy45LDEzLTIyLjhjMTgtODUuMywzNi0xNzAuNiw1NC0yNTUuOCIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTM0NC42LDExMjYuNGM1LTIwLjksMTUuMS00MC42LDI5LTU3Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNTQ3LjIsMTExMi42Yy0yNC45LDIwLTUxLjcsMzcuNi03OS44LDUyLjciLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE1NDUsMTEzMC43Yy0yMy4yLDE3LjgtNDYuOCwzNS4xLTcwLjksNTEuNyIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTY0NS4yLDE1NTdjLTEuNCwzMC40LTIuOCw2MC43LTQuMiw5MS4xYy0wLjMsNi4zLDEuNiwxNC45LDcuOCwxNC43YzMuMS0wLjEsNS41LTIuNSw3LjUtNC45DQoJCQljNy45LTkuNSwxNC4yLTIwLjMsMTguNS0zMS44YzMuNC05LDctMjAsMTYuNC0yMi40YzMsMjEsMy44LDQyLjMsMi4zLDYzLjUiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE2MTksMTU2OS41Yy02LjcsMTUuMy0xNC42LDMwLjEtMjMuNiw0NC4yIi8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xMzM2LjgsMTQ1OS4xYzEzLjksMy44LDI4LjUsNS4yLDQyLjksNCIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTE2My4yLDE3OTYuNmM0LjUsMTcuOC0zLjcsMzctMTcsNDkuNmMtMTMuMywxMi42LTMxLDE5LjYtNDguNiwyNC41Yy0xNy43LDQuOS0zNS44LDguMi01MywxNC43DQoJCQljLTE3LjQsNi42LTMzLjcsMTYuOC00NiwzMC45Yy0xMi4zLDE0LjEtMjAuMywzMi4yLTIwLjYsNTAuOCIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNOTgyLDE5NjcuMmMxMDQuOC0wLjIsMjA5LjUtMywzMTQuMS04LjQiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTk4OC45LDE5NDIuN2M5NS41LTIuMSwxOTctNS4zLDI5Mi41LTUuNiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTI5Mi4xLDE4MTAuNWMxLDQ2LjcsMC43LDkzLjUtMC43LDE0MC4yIi8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xMTY1LjUsMTgzNi41YzExLjQsMC4xLDIyLjksMS43LDMzLjksNC44Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xMTQ5LjgsMTg1NC4yYzEzLTEuOSwyNi4zLTEuMSwzOSwyLjIiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTExNDQuOSwxOTQxYzAsNy4xLDAsMTQuMywwLDIxLjQiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTExNTkuOSwxOTQxYzAuMyw4LjQsMC42LDEzLjksMC45LDIyLjMiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTEwNTMuNywxOTQxLjhjMC42LDYuOSwxLjEsMTMuNywxLjcsMjAuNiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTAxOSwxOTQxLjhjLTAuNCw2LjMtMC4yLDEyLjcsMC43LDE5Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xMjQyLjMsMTkzNy45YzAsNS41LDAsMTEuMSwwLDE2LjYiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE2MzQuNiwxNzQ0LjRjNC4yLDE4LjYtMy4zLDM4LjItMTQuNSw1My43Yy0xMS4yLDE1LjUtMjYsMjcuOS0zOSw0MS45Yy0xMy44LDE0LjktMjUuOCwzMS45LTMxLjUsNTEuMw0KCQkJYy01LjcsMTkuNC00LjYsNDEuNSw2LjQsNTguNiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTU2MC43LDE5NDcuM2M4NS40LTU1LjEsMTcwLjgtMTEwLjEsMjU2LjItMTY1LjIiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE1NDguNywxOTI2LjljODAuOC01NywxNjQuMi0xMTAuMiwyNDkuOS0xNTkuMyIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTc1NC40LDE2ODEuOGMyMy44LDI5LjUsNDUuMSw2MS4xLDYzLjQsOTQuMyIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTYzMy40LDE3NzguNGM5LjEtNywxOS40LTEyLjQsMzAuMi0xNi4xIi8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNjI0LjIsMTc5NS45YzEwLjctOC4xLDIyLjktMTQuMiwzNS43LTE4Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNjA4LjMsMTg4Ny4zYzMuOCw3LDcuNSwxNCwxMS4zLDIxIi8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNjI1LjMsMTg3NC43YzQuNCw3LjMsOC44LDE0LjUsMTMuMSwyMS44Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNzM1LjUsMTgwNS4xYzIuNSw4LjEsNiwxNiwxMC40LDIzLjIiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE3NzEuNSwxNzg0LjJjMi4zLDUsNC42LDEwLjEsNywxNS4xIi8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNzAzLDE4MjcuMWMxLjcsNi41LDMuMywxMy4xLDUsMTkuNiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTcwNC42LDEwNDEuN2MyNS00LjYsNDguMy0xNy4xLDY2LjQtMzVjNS44LTUuNywxMS4xLTEyLjIsMTQtMTkuOGMyLjktNy42LDIuOS0xNi42LTEuNS0yMy41DQoJCQljLTQuNC02LjktMTMuNy0xMC43LTIxLjItNy40Yy03LjQsMy4zLTEwLjYsMTQuNC01LDIwLjNjMy43LDMuOSw5LjYsNC42LDE0LjksNC4yYzE1LjktMS4yLDMwLjEtMTAuNSw0MS45LTIxLjINCgkJCWMxNC40LTEzLDI2LjctMjguNCwzNi4xLTQ1LjQiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE4MzMuMyw1NDUuNWMxMC42LTI1LjUsMzEuOC00Ni4yLDU3LjMtNTYuNmMzMC43LTEyLjUsNjUuMS01LjYsOTYuMS0xNi44YzE0LjctNS4zLDI4LjItMTMuOCwzOS41LTI0LjYiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE4NTEuNSw1NjMuM2MxNS41LTIyLDQwLjQtMzcuMSw2Ny00MC45YzE1LjEtMi4xLDMwLjctMC44LDQ1LjYtMy45YzEyLjMtMi42LDIzLjgtOC4xLDM1LjEtMTMuNSIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTcxMS43LDEzNjguM2MxMi45LTE2LjgsMjkuNy0zMC4zLDQ3LjktNDFjMTguNS0xMC44LDM4LjQtMTguOSw1OC43LTI1LjdjMjIuNi03LjYsNDUuNi0xMy42LDY4LjMtMjAuNg0KCQkJYzIyLjctNyw0NS4zLTE1LjEsNjYuMy0yNi41YzE4LjktMTAuMywzNi4zLTIzLjMsNTEuNy0zOC41YzEuOS0xLjksMy43LTMuNyw1LjYtNS43Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNzM0LjUsMTQwOC42YzMxLjktMzguOCw3OC45LTYxLjgsMTI2LTc5LjUiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE2MjQuOCwxNDI1LjhjLTEuNSwwLjItMS43LDIuOC0wLjMsMy4zYzEuNCwwLjUsMi45LTEuNSwxLjktMi43Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNjU3LjcsODM2LjEiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTEyMDMuOCw2MzQuNGMtMC43LDAuNy0xLjUsMS41LTIuMiwyLjIiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTExNDAuMiwxMTUzLjdjLTEuMSwwLjItMS0yLjEsMC4xLTEuOCIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTAzNC44LDE4NTAuMWMtMC45LDAtMS44LDAtMi42LDAiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTgyNy45LDEwNDguMmMzOS41LDEzLjQsODMuOS02LjMsMTEzLTM2LjJjOC40LTguNiwxNi0xOC4zLDE5LjYtMjkuOGMzLjUtMTEuNSwyLjMtMjUtNS41LTM0DQoJCQljLTcuOS05LjEtMjMuMS0xMS43LTMyLjItMy45Yy0xMi40LDEwLjYtNS45LDMzLDguNiw0MC43czMyLjIsNC4zLDQ3LjUtMS42YzE5LjktNy43LDM4LjEtMTkuNCw1My40LTM0LjIiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTc3OC4yLDEzODQuOGMxMC0yNS42LDMwLjctNDYuNCw1NS41LTU4LjJjMjQuOC0xMS44LDUzLjMtMTQuOSw4MC40LTEwLjZjMTcuMSwyLjcsMzQuNCw4LjQsNTEuNSw1LjUNCgkJCWMxOC4xLTMuMSwzMy4zLTE1LjIsNDcuNS0yNi45Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik04MDIuMSwxMzkyLjhjMTAuNy0xNiwyNi44LTI4LjMsNDUtMzQuNSIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTA1MC42LDczOS4zbC0zNS44LDI1LjhjLTUuNiw0LjEtMTMuNSwzLjEtMTgtMi4ybC04OC4yLTEwMy44Yy01LTUuOS00LTE0LjksMi4zLTE5LjVsNTAuNi0zNi42DQoJCQljNS42LTQuMSwxMy41LTMuMSwxOCwyLjJsNDUuMyw1My4zIi8+DQoJCTxsaW5lIGNsYXNzPSJzdDMiIHgxPSI4OTkuNiIgeTE9IjY2My4zIiB4Mj0iMTAwMC42IiB5Mj0iNzc5LjMiLz4NCgkJPGxpbmUgY2xhc3M9InN0MyIgeDE9IjEwMTAuNiIgeTE9Ijc4Mi4zIiB4Mj0iMTA1NC42IiB5Mj0iNzUwLjMiLz4NCgkJPGxpbmUgY2xhc3M9InN0MyIgeDE9IjkzNi42IiB5MT0iNjM2LjMiIHgyPSI5NTIuNiIgeTI9IjYyNC4zIi8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik05ODAsNTc2LjljLTMuMS0xMC41LTQuMS0yMS43LTMtMzIuNiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTAwOC41LDU4Mi44YzEuNi05LDMuOS0xNy45LDYuOC0yNi41Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xMDI3LjIsNTk2LjNjNy40LTUuMywxNC43LTEwLjgsMjEuOC0xNi42Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik03NTEuOSwxOTY0LjNjMTAuOC04LjEsMjUuNC0xMC45LDM4LjUtNy4zYzcuNSwyLDE0LjUsNi4xLDIyLjIsNy40YzE2LjgsMi44LDMzLjQtNy41LDUwLjMtNi4zDQoJCQljNi40LDAuNSwxMi42LDIuNiwxOSwzLjFjOC41LDAuNiwxNi45LTEuNywyNS4zLTNjMTkuOS0zLjIsNDAuMi0xLjEsNjAuMywxLjEiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTEzMzAuNywxOTU4LjljMTIuNy01LjYsMjYuOC03LjksNDAuNi02LjZjNywwLjYsMTQsMi4yLDIxLjEsMmM1LjgtMC4yLDExLjUtMS41LDE3LjMtMi4zDQoJCQljMTQuNS0yLDI5LjMtMC41LDQzLjgsMWM2LjYsMC43LDEzLjEsMS40LDE5LjcsMiIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTUyMS43LDE5NTQuN2MyNi40LTMuMSw1My4xLTUsNzkuNy0yLjZjNi4xLDAuNSwxMi4xLDEuMywxOC4yLDAuNmMxMC45LTEuMywyMS03LjQsMzItNy42DQoJCQljOC4zLTAuMSwxNi4zLDMuMSwyNC41LDMuMWM2LjYsMCwxMy4xLTIuMiwxOS43LTNjNi42LTAuOSwxNC0wLjIsMTguNyw0LjUiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE3NjQuNywxOTU0LjJjOS00LjcsMTkuNy02LjEsMjkuNy00LjFjNy41LDEuNiwxNC44LDUuMSwyMi41LDQuOGMxMS40LTAuNCwyMC45LTksMzIuMi0xMC42DQoJCQljMTEuMy0xLjcsMjIuNCwzLjgsMzMuOCw0LjVjNy40LDAuNCwxNC43LTEuMSwyMi0xLjdjMTAuMy0wLjgsMjAuNiwwLjMsMzAuOSwxLjVjMTEsMS4yLDIyLDIuNCwzMywzLjciLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE3MjEuNiwxOTg2LjhjMTEuNS03LjUsMjYuOS04LjUsMzkuMi0yLjRjMS40LDAuNywyLjksMS41LDQuNCwxLjVjMS41LDAuMSwyLjktMC42LDQuMy0xLjENCgkJCWMxMy40LTUuMiwyOS4xLTQsNDEuNSwzLjIiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE2NTMuNCwxOTg4LjZjNC42LTEsOS41LTAuOCwxNCwwLjYiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE2NTEuNCwyMDUyLjdjOC00LjYsMTguNS00LjgsMjYuNy0wLjVjMi42LDEuMyw1LDMuMSw3LjksMy41YzIuMSwwLjMsNC4yLTAuMyw2LjMtMC43DQoJCQljNy42LTEuNCwxNS42LTAuOCwyMi45LDEuOSIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMTQ0NS44LDIwMTYuMmMxMi4zLTcuOCwyOC40LTkuMiw0MS45LTMuN2MxLjksMC44LDMuNywxLjcsNS44LDEuOGMyLjUsMC4yLDUtMC44LDcuMy0xLjgNCgkJCWM3LjktMy4zLDE2LjgtNi40LDI0LjgtMy40YzYuMywyLjMsMTIuNSw4LjMsMTguNyw1LjUiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTEyNDMuMSwyMDI4LjdjMTIuNi0zLjcsMjYuMy0zLjgsMzktMC4zIi8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xMzg3LjksMTk5MS4xYzUuMi0yLjIsMTEuMy0xLjksMTYuMywwLjciLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTExMzEsMjAwMWMxMC42LTguNCwyNi40LTkuNSwzOC4xLTIuOGMxLjksMS4xLDMuOSwyLjUsNi4xLDIuNmMxLjcsMC4xLDMuNS0wLjUsNS4xLTENCgkJCWMxMC4yLTMuMSwyMS4zLTMuMywzMS42LTAuNCIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNODkyLjgsMjAxMy4xYzExLjktOSwyOS40LTkuOSw0Mi0yYzIsMS4yLDQsMi43LDYuMywyLjVjMi4zLTAuMSw0LjEtMS44LDYtMy4xYzQuMi0yLjksOS41LTQuNCwxNC43LTQNCgkJCWM2LjEsMC40LDExLjksMy4zLDE4LjEsMy45YzkuNywwLjgsMTkuNC00LjIsMjguOS0yLjQiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTEwMjkuMywyMDI2LjdjNCwwLDcuOSwwLDExLjksMCIvPg0KCQk8cGF0aCBjbGFzcz0ic3QzIiBkPSJNOTg4LjIsMjA1OGMyLTEuMSw0LjMtMS40LDYuNS0xIi8+DQoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik04MDUuOCwyMDI3LjhjNi0yLjksMTIuOC00LjEsMTkuNC0zLjQiLz4NCgkJPHBhdGggY2xhc3M9InN0MyIgZD0iTTE4OTIuMiwxOTk4LjVjMy4yLDAuNCw2LjUsMC44LDkuNywxLjIiLz4NCgk8L2c+DQoJPHBhdGggY2xhc3M9InN0NCIgZD0iTTE0MzQuNSw1NDZjLTcuMyw1LTE0LjMsOS4yLTIzLjEsMTAuOGMtOC40LDEuNS0xNy4xLDEuMi0yNS42LDAuOWMtMC45LDAtMS40LDAuNi0xLjQsMS40DQoJCWMtMS4yLTAuNC0yLjUtMC44LTMuNy0xLjNjLTEuOC0wLjYtMi42LDIuMi0wLjgsMi45YzExLjUsNC4xLDI1LjMsOCwzNy42LDYuN2MxMS43LTEuMiwxNC4zLTEwLjIsMTkuMi0xOS4zDQoJCUMxNDM3LjIsNTQ2LjgsMTQzNS44LDU0NS4xLDE0MzQuNSw1NDZ6Ii8+DQo8L2c+DQo8ZyBpZD0iY29sb3Jfb3V0bGluZSI+DQoJPGc+DQoJCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik0xMzM0LjMsNTAzLjVjLTEuOC0xMC4xLTYuMi0xOS44LTEyLjctMjcuOCIvPg0KCQk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNMTMwNS4xLDQ4MC4zYzEyLjktMS42LDIzLjYtMTEuNywyOC44LTIzLjZjNS4xLTExLjksNS40LTI1LjQsMy44LTM4LjMiLz4NCgkJPHBhdGggY2xhc3M9InN0NSIgZD0iTTEzNDUuNyw0MzRjNS42LTQuMyw5LjItMTEuMyw5LjMtMTguNCIvPg0KCQk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNMTM1OC43LDQzMy45YzYuNy0wLjEsMTIuOC0zLjcsMTcuOS03LjljOS41LTgsMTYuNS0xOSwxOS43LTMxYzEuNS01LjgsMi4yLTEyLDAuMi0xNy43Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik0xMzc3LDM2Ni44YzUuOSw3LjUsOS4xLDE3LjEsOC44LDI2LjYiLz4NCgkJPHBhdGggY2xhc3M9InN0NSIgZD0iTTE0MDMsNDExLjljMTMuMi0xMC41LDIyLjktMjcuNywxOC44LTQ0LjFjLTMuMi0xMy0xNC45LTIzLTI3LjktMjYuMXMtMjcuMSwwLjItMzguNiw3DQoJCQljLTkuNiw1LjctMTguMywxNS44LTE2LjYsMjYuOGMwLjQsMi42LDEuNiw1LjQsNC4xLDYuNmM0LjksMi4zLDEwLjItNC43LDguMi05LjhjLTEuOS01LjEtNy43LTcuNi0xMy4xLTguNQ0KCQkJYy0xNC0yLjQtMjguNiwyLjEtMzkuOSwxMC43Yy0xMS4zLDguNi0xOS4zLDIwLjktMjQuMywzNC4yYy0zLDcuOC01LDE2LjMtMy41LDI0LjVjMS41LDguMiw3LjEsMTYuMSwxNS4yLDE4LjMNCgkJCWMwLjksMC4yLDEuOCwwLjQsMi43LDAuMWMyLjYtMSwxLjUtNS4xLTAuNS03Yy01LjUtNS4xLTE0LjQtNS4yLTIwLjktMS42cy0xMC44LDEwLjQtMTMuMSwxNy41Yy00LjYsMTQuNS0xLjUsMzEsNy40LDQzLjQNCgkJCXMyMywyMC42LDM4LDIzLjEiLz4NCgkJPHBhdGggY2xhc3M9InN0NSIgZD0iTTEyNjguOCw0NzIuMWMtMi40LDQuMS0yLjIsOS4zLTAuNiwxMy44czQuNiw4LjMsNy41LDEyLjEiLz4NCgkJPHBhdGggY2xhc3M9InN0NSIgZD0iTTEyODQuNiw0MjEuM2MtMC45LTcuNSwyLjEtMTUuNCw3LjgtMjAuMyIvPg0KCQk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNMTEzMi40LDM5MS43Yy00LTQtMTAtNS4xLTE1LjctNS4yYy0xNS42LTAuMi0zMC45LDYuNC00Mi4zLDE3LjFjLTExLjQsMTAuNi0xOC44LDI1LjEtMjIsNDAuNA0KCQkJYy0wLjIsMS4xLTAuNCwyLjQsMC4xLDMuNGMxLjEsMi4xLDQuMSwxLjgsNi40LDEuMWMyNS42LTcuOSw0OC4zLTI1LDYyLjktNDcuNCIvPg0KCQk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNMTA1NC42LDQ0NmMxMC45LTE2LjIsMjUuMi0zMC4yLDQxLjctNDAuNyIvPg0KCQk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNMTAxNS4yLDExNDdjLTguNC0xMi42LTIxLTIyLTM0LjgtMjhjLTEzLjktNi0yOS04LjctNDQuMS05LjVjOS40LDEzLjcsMjAuMywyNi43LDM0LDM2LjINCgkJCWMxMy43LDkuNSwzMC41LDE1LjEsNDcsMTMuMmMtMTMuNC0xMC44LTI3LjgtMjAuMy00My0yOC40Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik0xODMzLjIsNzM3LjJjLTIxLjUsMi41LTQxLjgsMTMuNy01NS4zLDMwLjZjLTEzLjUsMTYuOS0yMC4xLDM5LjEtMTcuOSw2MC42YzM0LjgtMTUuMSw2MS41LTQ3LjgsNjkuNC04NC45Ig0KCQkJLz4NCgkJPHBhdGggY2xhc3M9InN0NSIgZD0iTTE3NjEuNSw4MjRjOC44LTIyLjIsMjIuMy00Mi41LDM5LjQtNTkuMSIvPg0KCQk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNMjAyNC40LDY0OS41Yy0yMS4zLDcuMi0zNC40LDMyLjctMjcuOSw1NC4yYzE4LjMtMTAuMSwzMC44LTMwLDMxLjktNTAuOSIvPg0KCQk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNMTc2MS4xLDExNDEuNWMyMC43LTIuMiwzOC40LDE1LjIsNTksMTguNWMxNC4zLDIuMywyOS42LTIuOSwzOS42LTEzLjVjLTEzLjItMTMuNC0zMS41LTIxLjUtNTAuMi0yMi40DQoJCQlzLTM3LjcsNS42LTUyLDE3LjciLz4NCgkJPHBhdGggY2xhc3M9InN0NSIgZD0iTTg4My45LDE0ODcuMWMtMTkuNC04LjUtNDEuNSw0LjItNTcuMiwxOC42Yy0xNC42LDEzLjQtMjcuOCwyOS4xLTM1LjEsNDcuNXMtOC41LDQwLDAuMiw1Ny45DQoJCQljMzAuNS0yOC4zLDYzLjItNjEsNjQuOS0xMDIuNmMtMjAuNiwxMC45LTM3LjMsMjktNDYuNSw1MC40Ii8+DQoJCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik0xODU4LjYsMTUyNi44Yy0xOC45LDEyLjktMjkuOSwzNi42LTI3LjYsNTkuM2MyMi40LTcuMiwzNC44LTM3LjQsMjguOS02MC4yIi8+DQoJPC9nPg0KPC9nPg0KPC9zdmc+DQo=",alt:(0,M.__)("Something went wrong","wpnakama"),className:"w-full h-auto"}),(0,e.createElement)("h1",{className:"text-lg text-wg-red-500 font-medium"},404===t.code?(0,M.__)("Page not found","wpnakama"):(0,M.__)("An error occurred","wpnakama")),(0,e.createElement)("p",{className:"text-surface-500 text-base"},404===t.code?(0,M.__)("The page you are looking for does not exist.","wpnakama"):(0,M.__)("Copy the message from the below field, describe the scenario, and send us to","wpnakama")," ",(0,e.createElement)("a",{className:"text-primary-500 underline hover:text-primary-700",href:"mailto:[email protected]"},"[email protected]"))),(0,e.createElement)("div",null,404===t.code?(0,e.createElement)(x.$n,{variant:"primary",onClick:()=>r("wpnakama")},(0,M.__)("Go to homepage","wpnakama")):(0,e.createElement)(x.TM,{className:"w-2/4 mx-auto cursor-text !text-wg-red-500",defaultValue:t.message,disabled:!0,destructive:!0})))}),null)})),ne={basename:ee},(0,U.aE)({basename:null==ne?void 0:ne.basename,future:_({},null==ne?void 0:ne.future,{v7_prependBasename:!0}),history:(0,U.zR)({window:null==ne?void 0:ne.window}),hydrationData:(null==ne?void 0:ne.hydrationData)||function(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=_({},t,{errors:B(t.errors)})),t}(),routes:re,mapRouteProperties:O.wE,unstable_dataStrategy:null==ne?void 0:ne.unstable_dataStrategy,unstable_patchRoutesOnMiss:null==ne?void 0:ne.unstable_patchRoutesOnMiss,window:null==ne?void 0:ne.window}).initialize());var re,ne;(0,t.createRoot)(document.getElementById("wpnakama-app-admin")).render((0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.StrictMode,null,(0,e.createElement)((function(t){let{fallbackElement:r,router:n,future:o}=t,[i,a]=e.useState(n.state),[s,l]=e.useState(),[c,u]=e.useState({isTransitioning:!1}),[d,h]=e.useState(),[p,f]=e.useState(),[m,g]=e.useState(),y=e.useRef(new Map),{v7_startTransition:M}=o||{},L=e.useCallback((e=>{M?function(e){V?V(e):e()}(e):e()}),[M]),w=e.useCallback(((e,t)=>{let{deletedFetchers:r,unstable_flushSync:o,unstable_viewTransitionOpts:i}=t;r.forEach((e=>y.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}));let s=null==n.window||null==n.window.document||"function"!=typeof n.window.document.startViewTransition;if(i&&!s){if(o){J((()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})}));let t=n.window.document.startViewTransition((()=>{J((()=>a(e)))}));return t.finished.finally((()=>{J((()=>{h(void 0),f(void 0),l(void 0),u({isTransitioning:!1})}))})),void J((()=>f(t)))}p?(d&&d.resolve(),p.skipTransition(),g({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),u({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))}else o?J((()=>a(e))):L((()=>a(e)))}),[n.window,p,d,y,L]);e.useLayoutEffect((()=>n.subscribe(w)),[n,w]),e.useEffect((()=>{c.isTransitioning&&!c.flushSync&&h(new H)}),[c]),e.useEffect((()=>{if(d&&s&&n.window){let e=s,t=d.promise,r=n.window.document.startViewTransition((async()=>{L((()=>a(e))),await t}));r.finished.finally((()=>{h(void 0),f(void 0),l(void 0),u({isTransitioning:!1})})),f(r)}}),[L,s,d,n.window]),e.useEffect((()=>{d&&s&&i.location.key===s.location.key&&d.resolve()}),[d,p,i.location,s]),e.useEffect((()=>{!c.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))}),[c.isTransitioning,m]),e.useEffect((()=>{}),[]);let x=e.useMemo((()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})})),[n]),v=n.basename||"/",j=e.useMemo((()=>({router:n,navigator:x,static:!1,basename:v})),[n,x,v]),N=e.useMemo((()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath})),[n.future.v7_relativeSplatPath]);return e.createElement(e.Fragment,null,e.createElement(O.sp.Provider,{value:j},e.createElement(O.Rq.Provider,{value:i},e.createElement(G.Provider,{value:y.current},e.createElement(F.Provider,{value:c},e.createElement(O.Ix,{basename:v,location:i.location,navigationType:i.historyAction,navigator:x,future:N},i.initialized||n.future.v7_partialHydration?e.createElement(Z,{routes:n.routes,future:n.future,state:i}):r))))),null)}),{router:te}),(0,e.createElement)((function(){const{toasts:t,handlers:r}=(0,R._k)(),{startPause:n,endPause:o,updateHeight:i}=r;return(0,e.createElement)("div",{className:"fixed p-2 top-9 right-4 flex gap-2 flex-col",onMouseEnter:n,onMouseLeave:o},t.map((t=>(0,e.createElement)("div",{key:t.id,ref:e=>{if(e&&"number"!=typeof t.height){const r=e.getBoundingClientRect().height;i(t.id,r)}},...t.ariaProps,className:`relative flex rounded-md items-start justify-between w-[280px] p-2 gap-1 shadow-nakama ${t.visible?"animate-enter":"animate-leave"} ${"success"===t.type?"bg-green-50":"error"===t.type?"bg-red-50":"bg-white"}`},(0,e.createElement)("div",{className:"flex gap-1 items-start"},(0,e.createElement)("div",{className:"grow-0 p-1"},"loading"===t.type?(0,e.createElement)(x.Rh,{type:"line",size:"xxs",className:"text-surface-300 stroke-1"}):"success"===t.type?(0,e.createElement)(v.C1y,{className:"!text-green-500"}):"error"===t.type?(0,e.createElement)(v.kUM,{className:"!text-red-500"}):(0,e.createElement)(v.uQc,{className:"!text-blue-500"})),(0,e.createElement)("div",{className:"text-sm leading-5 p-1"},t.message)),"loading"!==t.type&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(x.$n,{size:"xs-icon",before:(0,e.createElement)(v.USm,null),variant:"link",onClick:()=>R.oR.dismiss(t.id),className:"cursor-pointer"}))))))}),null))))})()})();
  • wpnakama/trunk/admin/class-wpnakama-admin.php

    r3035072 r3131031  
    8080                ),
    8181                array(
    82                     'title' => __( 'Documentation', 'wpnakama' ),
    83                     'link'  => 'https://wpnakama.com/docs',
    84                 ),
    85                 array(
    8682                    'title' => __( 'Support', 'wpnakama' ),
    8783                    'link'  => 'https://wordpress.org/support/plugin/wpnakama/',
     
    9187            // Initializing plugin pages.
    9288            $this->plugin_pages = array(
    93                 'boards' => array(
     89                'boards'    => array(
    9490                    'page_title'       => __( 'Boards', 'wpnakama' ),
    9591                    'admin_menu_title' => __( 'Boards', 'wpnakama' ),
    9692                ),
    97             );
    98 
    99             // Add extra submenus and menu options to the admin panel's menu structure.
    100             add_action( 'admin_menu', array( $this, 'menu_pages' ) );
    101 
    102             // Add admin actions, to process user interaction.
    103             add_action( 'admin_init', array( $this, 'admin_actions' ) );
    104 
    105             // Enqueuing scripts and styles that are meant to be used in the administration panel.
    106             add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles_scripts' ) );
     93                'resources' => array(
     94                    'page_title'       => __( 'Releases, Updates, Help Center on WPNakama', 'wpnakama' ),
     95                    'admin_menu_title' => __( 'Resources', 'wpnakama' ),
     96                ),
     97                'license'   => array(
     98                    'page_title'       => __( 'License Upgrade', 'wpnakama' ),
     99                    'admin_menu_title' => __( 'License', 'wpnakama' ),
     100                ),
     101            );
    107102        }
    108103
     
    142137                    return;
    143138                },
    144                 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAxMjAgMTIwIj48ZWxsaXBzZSBjeD0iNTEuNjI3MiIgY3k9IjU3LjEwODQiIGZpbGw9ImN1cnJlbnRDb2xvciIgcng9IjEuNjg2NzUiIHJ5PSIyLjY1MDYiLz48ZWxsaXBzZSBjeD0iNjcuNTMwOCIgY3k9IjU3LjEwODQiIGZpbGw9ImN1cnJlbnRDb2xvciIgcng9IjEuNjg2NzUiIHJ5PSIyLjY1MDYiLz48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik02My42NTE5IDcwLjA2ODRjLTEuNTU1IDEuNTg1My00LjA5NTUgMS42MjYxLTUuNzAwNS4wOTE1LTIuNjIxNy0yLjUwNjYtLjg4OC02LjkzMTIgMi43Mzg4LTYuOTg5NCAzLjYyNjctLjA1ODIgNS41MDE2IDQuMzA4NCAyLjk2MTcgNi44OTc5WiIvPjxwYXRoIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2Utd2lkdGg9IjIiIGQ9Im00NS44MjIzIDc0LjA2NDEgMS4yMzE3IDQuMjQxMWMuMTAyMy4zNTI1LjIyOTYuNjk3My4zODA4IDEuMDMxOGwuMDcyNC4xNjAyYy41NjAzIDEuMjM5NiAxLjQ2MjYgMi4yOTM4IDIuNjAwOSAzLjAzODguOTI5Mi42MDgyIDEuOTg3Mi45OTE3IDMuMDkwMiAxLjEyMDFsMS4xMTY0LjEyOTljLjgzNzEuMDk3NSAxLjY4NTItLjAxNDQgMi40Njg0LS4zMjU0IDEuMzQ0OS0uNTM0MSAyLjM5OS0xLjYxNTMgMi44OTktMi45NzMzbC43Ny0yLjA5MTdjLjYwNzktMS42NTE1Ljc3MzEtMy40MzMzLjQ3OS01LjE2ODRsLS41NTc5LTMuMjkxNE03Ni4xODcgNzEuMTI1MmwtLjE2MjQgNC40MTMzYy0uMDEzNS4zNjY4LS4wNTMuNzMyMi0uMTE4MiAxLjA5MzRsLS4wMzEzLjE3M2MtLjI0MTggMS4zMzg4LS44NjAzIDIuNTgwOC0xLjc4MzEgMy41ODA1LS43NTMyLjgxNi0xLjY4NjEgMS40NDU0LTIuNzI0NyAxLjgzODRsLTEuMDUxMi4zOTc4Yy0uNzg4Mi4yOTgyLTEuNjM4LjM5NjEtMi40NzM0LjI4NTEtMS40MzQ0LS4xOTA4LTIuNzItLjk4MjktMy41MzU0LTIuMTc4NGwtMS4yNTU5LTEuODQxNGMtLjk5MTctMS40NTM4LTEuNTg1NS0zLjE0MTktMS43MjI1LTQuODk2NGwtLjI1OTktMy4zMjgyIi8+PHBhdGggZmlsbD0iY3VycmVudENvbG9yIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMjAgNjBjMCAzMy4xMzcxLTI2Ljg2MjkgNjAtNjAgNjAtMzMuMTM3MSAwLTYwLTI2Ljg2MjktNjAtNjBDMCAyNi44NjI5IDI2Ljg2MjkgMCA2MCAwYzMzLjEzNzEgMCA2MCAyNi44NjI5IDYwIDYwWk0zNC4xMDk4IDEzLjU0MjdsLTEuNTM5MiAyLjMzNzRjLS4yMzAxLjM0OTQtLjQxNTUuNzI2NC0uNTUxNyAxLjEyMkwyOS41NzQ3IDI0LjFjLS4yMTE2LjYxNDgtLjMwMTQgMS4yNjQ5LS4yNjQyIDEuOTE0bC41NDg2IDkuNTcyMWMuMDE2Ny4yOTI5LjAwNzcuNTg2OC0uMDI3Ljg3ODFsLS4yNzI1IDIuMjg1MmMtLjE1NTcgMS4zMDUzLjIwNDggMi41NDQ4LjkxNDEgMy41MjM2LTUuMTAxOCA3LjM0MTItNy40NjM4IDE2LjYwMTItNS44OTg0IDI2LjEyMzYuNjA0OCAzLjY3OTEgMS43NTI1IDcuMTMzNCAzLjM0NzYgMTAuMjk0M2wtMS4wMTc1Ljg0MzZjLTIuMTU2NCAxLjc4NzgtMi40NTA4IDQuOTg3LS42NTY5IDcuMTM4MyAxLjA0ODEgMS4yNTcgMS40MjM4IDIuOTQzMiAxLjAwODUgNC41MjYzbC0uMjM4NS45MDg3Yy0uMjE2Ny44MjYxLS4yNTYzIDEuNjg4Ni0uMTE2MiAyLjUzMDkuMTg3OSAxLjEyOTQuNjkxOSAyLjE4MjQgMS40NTM4IDMuMDM3bDEuMTEyOSAxLjI0ODEgMi40MDMxIDIuMzMxMmMxLjUzMiAxLjQ4NiA0LjA5MDMuODYyIDQuNzY1OS0xLjE2M2wuMzIxMy0uOTYyOGMuMDQ4NS0uMTQ1NS4xNTUxLS4yNjQzLjI5NDQtLjMyODQuMzAzMi0uMTM5NS42Ni4wMTg0Ljc2MDcuMzM2NWwxLjE4MDUgMy43Mjc3Yy4xNjc0LjUyOC40ODYxLjk5Ni45MTY1IDEuMzQ1bDEuMjYyNyAxLjAyNWMxLjAxOTUuODI3IDIuNTUzMi4zMTggMi44NzQ5LS45NTUuMzAxNy0xLjE5NCAxLjY4Ny0xLjczNyAyLjcyLTEuMDY4bDEuODI0NiAxLjE4M2MxLjE5MDYuNzcyIDIuNjU0OS0uNDggMi4wNzcxLTEuNzc2bC0uMDk4Ny0uMjIyYy0uMTcyLS4zODUtLjA5NzktLjgzNi4xODg0LTEuMTQ3LjM5MTctLjQyNSAxLjA1MTgtLjQ1NiAxLjQ4MjMtLjA3MWw0LjUzODkgNC4wNjFjLjg1OTEuNzY5IDEuODk5NiAxLjMwNiAzLjAyMzYgMS41NjFsNC4wMDc3LjkxMWMuNzgzNi4xNzggMS41ODUzLS4yMTUgMS45MjQxLS45NDQuNDYwNy0uOTkgMS43MjExLTEuMjk4IDIuNTg2Ny0uNjMybC4yOTg0LjIzYy4yNjYuMjA1LjU3OTIuMzQuOTEwOC4zOTJsLjYzMDguMWMxLjA3NDUuMTcgMi4xNjI4LS4yMDggMi45MDAzLTEuMDA4IDEuMjc0My0xLjM4MiAzLjQ1MTItMS4zOTkgNC43NDc3LS4wMzhsLjcyODYuNzY1Yy4yODEyLjI5NS42NTE5LjQ5IDEuMDU0Ny41NTQuNTE0Mi4wODEgMS4wMzg5LS4wNTcgMS40NDY0LS4zODFsNC41MTY1LTMuNTkzYy42NTM0LS41MTkgMS4yMzkxLTEuMTE5IDEuNzQzNS0xLjc4NGwzLjUyMDYtNC42NDMzYy4yMjI5LS4yOTQuNTM5MS0uNTAzNC44OTY3LS41OTM5LjcyMTQtLjE4MjcgMS4yMjY4LS44MzE3IDEuMjI3LTEuNTc1OWwuMDAwNS0xLjQ0NzdjLjAwMDMtLjg3NjEuOTI5LTEuNDQwMiAxLjcwNjYtMS4wMzY3LjU1NzguMjg5NSAxLjI0NDcuMDg1OCAxLjU1NDctLjQ2MDlsLjI5OTItLjUyNzljLjEwNjMtLjE4NzYuMTc4MS0uMzkyNy4yMTE3LS42MDU3bC4yMTU4LTEuMzYzNWMuMDk2My0uNjA4Ny4wMTUxLTEuMjMyMy0uMjM0LTEuNzk2bC0yLjI0OTQtNS4wOTFjLS4zNDkxLS43OTAxLjQ0MTUtMS42MDMyIDEuMjQxMS0xLjI3NjQuNzE2MS4yOTI3IDEuNDY2NC0uMzM4NiAxLjMwMDYtMS4wOTQybC0uNjk5My0zLjE4NTljLS4xMi0uNTQ2OC0uNDA4OC0xLjA0MjEtLjgyNTUtMS40MTZsLTIuMDE2MS0xLjgwODctLjAxNS0uMDEzNmMxLjY1NDktNS4xOTE0IDIuMTQwNS0xMC44NDI0IDEuMTk1OC0xNi41ODg5LTEuMDkxNy02LjY0MS0zLjk1MjMtMTIuNTQ5Ni04LjAyMDItMTcuMzIyNC4zNzQ4LS4zMzM2LjU1MDgtLjg2NDEuNDA0Ni0xLjM4MjhsLTMuMzY1My0xMS45Mzg0LTUuMzg3NC0xMy43OTI2Yy0uMjQxNi0uNjE4Ny0uNjgxNi0xLjEzOTgtMS4yNTExLTEuNDgxNi0xLjY0OC0uOTg5NDUtMy43ODg0LS4xOTY3LTQuMzk0MyAxLjYyNzZMNjcuNzIzIDI3Ljg5OWMtNC4zOTkzLTEuMDIwNy05LjA2Ny0xLjIxNTMtMTMuNzk5Mi0uNDM3My0xLjk3MzguMzI0NC0zLjg4MjcuODA1Ni01LjcxNjIgMS40Mjg2bC40MjY1LTMuNTc2NWMuMTc0NS0xLjQ2MjktLjMwNTEtMi45MjgyLTEuMzEwNi00LjAwNDlsLTQuODcyMS01LjIxNjhjLS4yODQ0LS4zMDQ1LS41Mjk3LS42NDM0LS43My0xLjAwODhsLS42OTE0LTEuMjYwOWMtLjYyNzctMS4xNDQ3LTEuNzY5NC0xLjkxNTctMy4wNjU3LTIuMDcwMy0xLjUyMDItLjE4MTMtMy4wMTI0LjUxMTktMy44NTQ1IDEuNzkwNloiIGNsaXAtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==',
     139                WPNAKAMA_PLUGIN_URL . 'admin/images/wpnakama-logo.svg',
    145140                58
    146141            );
     
    199194         */
    200195        public function plugin_action_links( array $links ) {
     196
    201197            if ( current_user_can( 'edit_theme_options' ) ) {
    202198                $links[] = '<a href="' . admin_url( 'admin.php?page=' . $this->plugin_uid ) . '">' . __( 'WPNakama plugin page', 'wpnakama' ) . '</a>';
     
    217213         */
    218214        public function enqueue_styles_scripts( $hook_suffix ) {
     215            // Adds a update indicator on admin menu in plugin title.
     216            wp_register_script(
     217                $this->plugin_uid . '_common',
     218                WPNAKAMA_PLUGIN_URL . 'admin/common/indicator.js',
     219                array( 'wp-api' ),
     220                // $this->version,
     221                time(), // To avoid cache.
     222                array(
     223                    'strategy'  => 'defer',
     224                    'in_footer' => true,
     225                )
     226            );
     227            wp_enqueue_script( $this->plugin_uid . '_common' );
     228
     229            // Check for the plugin version.
    219230            $pages = array(
    220231                'toplevel_page_' . $this->plugin_uid,
    221232            );
    222233            foreach ( $this->plugin_pages as $action => $type ) {
    223                 if ( 'home' !== $action ) {
    224                     $pages[] = strtolower( $this->menu_title ) . '_page_' . $this->plugin_uid . '_' . $action;
     234                if ( 'boards' !== $action ) {
     235                    $pages[] = str_replace( ' ', '-', strtolower( $this->menu_title ) ) . '_page_' . $this->plugin_uid . '_' . $action;
    225236                }
    226237            }
     
    230241
    231242            // Automatically load imported dependencies and assets version.
    232             $asset_file = include WPNAKAMA_PLUGIN_PATH . 'admin/app/build/index.asset.php';
     243            $admin_app_files = include WPNAKAMA_PLUGIN_PATH . 'admin/app/build/index.asset.php';
    233244
    234245            // Enqueue dependencies.
    235             foreach ( $asset_file['dependencies'] as $style ) {
     246            foreach ( $admin_app_files['dependencies'] as $style ) {
    236247                wp_enqueue_style( $style );
    237248            }
     
    241252                WPNAKAMA_PLUGIN_URL . 'admin/app/build/index.css',
    242253                array(),
    243                 $asset_file['version'],
     254                // $admin_app_files['version'],
     255                time(), // To avoid cache.
    244256                'all'
    245257            );
     
    249261                $this->plugin_uid . '_app',
    250262                WPNAKAMA_PLUGIN_URL . 'admin/app/build/index.js',
    251                 $asset_file['dependencies'],
    252                 $asset_file['version'],
     263                $admin_app_files['dependencies'],
     264                // $admin_app_files['version'],
     265                time(), // To avoid cache.
    253266                array(
    254267                    'strategy'  => 'defer',
     
    270283            return true;
    271284        }
     285
     286        /**
     287         * Enqueue block editor styles and scripts.
     288         *
     289         * @uses wp_enqueue_script()
     290         * @uses wp_register_script()
     291         * @uses wp_localize_script()
     292         *
     293         * @return bool
     294         */
     295        public function enqueue_block_editor_styles_scripts() {
     296
     297            if ( function_exists( 'get_current_screen' ) ) {
     298                // Check for the current screen is post editing only not page.
     299                $current_screen = get_current_screen();
     300                if ( $current_screen->base !== 'post' && $current_screen->post_type !== 'post' ) {
     301                    return;
     302                }
     303            }
     304
     305            // Automatically load imported dependencies and assets version.
     306            $block_editor_files = include WPNAKAMA_PLUGIN_PATH . 'admin/block-editor/build/index.asset.php';
     307
     308            // Enqueue dependencies.
     309            foreach ( $block_editor_files['dependencies'] as $style ) {
     310                wp_enqueue_style( $style );
     311            }
     312
     313            wp_register_style(
     314                $this->plugin_uid . '_block_editor',
     315                WPNAKAMA_PLUGIN_URL . 'admin/block-editor/build/index.css',
     316                array(),
     317                // $block_editor_files['version'],
     318                time(), // To avoid cache.
     319                'all'
     320            );
     321            wp_enqueue_style( $this->plugin_uid . '_block_editor' );
     322
     323            wp_register_script(
     324                $this->plugin_uid . '_block_editor',
     325                WPNAKAMA_PLUGIN_URL . 'admin/block-editor/build/index.js',
     326                $block_editor_files['dependencies'],
     327                // $block_editor_files['version'],
     328                time(), // To avoid cache.
     329                array(
     330                    'strategy'  => 'defer',
     331                    'in_footer' => true,
     332                )
     333            );
     334            wp_enqueue_script( $this->plugin_uid . '_block_editor' );
     335            return true;
     336        }
     337
     338        /**
     339         * Register WPNakama post meta fields.
     340         *
     341         * @uses register_post_meta()
     342         *
     343         * @return bool
     344         */
     345        public function register_post_meta_fields() {
     346            $res = register_post_meta(
     347                'post',
     348                'wpnakama_tasks',
     349                array(
     350                    'single'       => true,
     351                    'type'         => 'array',
     352                    'show_in_rest' => array(
     353                        'schema' => array(
     354                            'type'  => 'array',
     355                            'items' => array(
     356                                'type' => 'number',
     357                            ),
     358                        ),
     359                    ),
     360                )
     361            );
     362            return $res;
     363        }
    272364    }
    273365}
  • wpnakama/trunk/changelog.txt

    r3044042 r3131031  
     1April 2024 - Version 0.3.0
     2    * New: Complete redesign of the plugin
     3    * New: To-do list on Post editor
     4    * New: Subtask as ToDos
     5    * New: Public board view
     6    * New: Notes in Task
     7    * New: Deadlines
     8    * New: Update indicator
     9    * New: Resource page
     10    * Update: Support latest WordPress version.
     11    * Update: Production dependencies
     12
    11302 March 2024 - Version 0.2.4
    214    * Fix: Mobile layout issues
  • wpnakama/trunk/inc/activate.php

    r3044042 r3131031  
    2727         * for the plugin to run.
    2828         */
    29         if ( ! is_wp_version_compatible( '6.4' ) ) {
     29        if ( ! is_wp_version_compatible( '6.2' ) ) {
    3030            wp_die(
    3131                esc_html__( 'To use this plugin, upgrade your WordPress version', 'wpnakama' ),
     
    4545                500
    4646            );
     47        }
     48
     49        /**
     50         * Clear plugin related cache upon activation.
     51         */
     52
     53        // Clear the plugin cache.
     54        if ( function_exists( 'wp_cache_clear_cache' ) ) {
     55            wp_cache_clear_cache( true );
     56        }
     57
     58        // Clear the entire WordPress cache.
     59        if ( function_exists( 'wp_cache_flush' ) ) {
     60            wp_cache_flush();
    4761        }
    4862
     
    7084                    board_date datetime NOT NULL DEFAULT "0000-00-00 00:00:00",
    7185                    board_date_gmt datetime NOT NULL DEFAULT "0000-00-00 00:00:00",
     86                    start_date datetime NOT NULL DEFAULT "0000-00-00 00:00:00",
     87                    end_date datetime NOT NULL DEFAULT "0000-00-00 00:00:00",
    7288                    workspace_id BIGINT(20) NOT NULL DEFAULT 0,
    7389                    PRIMARY KEY (board_id),
     
    115131                )',
    116132            ),
     133            array(
     134                'name'  => $database->table_prefix( 'wpnakama_cards' ),
     135                'query' => 'CREATE TABLE ' . $database->table_prefix( 'wpnakama_cards' ) . ' (
     136                    id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
     137                    board_id BIGINT(20) NOT NULL DEFAULT 0,
     138                    card_id BIGINT(20) NOT NULL DEFAULT 0,
     139                    PRIMARY KEY (id),
     140                    KEY board_id (board_id),
     141                    KEY card_id (card_id)
     142                )',
     143            ),
     144            array(
     145                'name'  => $database->table_prefix( 'wpnakama_boards_access' ),
     146                'query' => 'CREATE TABLE ' . $database->table_prefix( 'wpnakama_boards_access' ) . ' (
     147                    id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
     148                    board_id BIGINT(20) NOT NULL UNIQUE DEFAULT 0,
     149                    access_value LONGTEXT,
     150                    PRIMARY KEY (id),
     151                    KEY board_id (board_id)
     152                )',
     153            ),
    117154        );
    118155        foreach ( $database_tables_arr as $table ) {
     
    120157        }
    121158
     159        /**
     160         * Update indicator tells what type if update is this.
     161         *
     162         * 0 - No update or updates are checked
     163         * 1 - Major or Security update
     164         * 2 - New feature update
     165         * 3 - Bug fix update
     166         */
     167        update_option( 'wpnakama_update_indicator', 2 );
     168
     169        /**
     170         * Rating the plugin.
     171         *
     172         * status: not_rated, rated
     173         */
     174        update_option(
     175            'wpnakama_rating',
     176            array(
     177                'status'           => 'not_rated',
     178                'last_asked'       => time() + (1 * DAY_IN_SECONDS),
     179                'times_asked'      => 0,
     180                'rate_btn_clicked' => false,
     181            )
     182        );
    122183    }
    123184}
  • wpnakama/trunk/inc/class-wpnakama-api.php

    r3044042 r3131031  
    66 * @subpackage  Ingredient
    77 * @since       0.1.0
    8  * @version     0.1.1
     8 * @version     0.3.0
    99 * @author      kantbtrue, qdonow, designthingy, savydv
    1010 * @license     GPL-2.0-or-later
     
    7979         * @param mixed  $permission_cb API route permission callback function.
    8080         * @param array  $args          Arguments.
     81         * @param array  $schema        Schema.
    8182         *
    8283         * @return bool
    8384         */
    84         public function create_rest_route( $api_route, $method, $cb, $permission_cb, $args = array() ) {
     85        public function create_rest_route( $api_route, $method, $cb, $permission_cb, $args = array(), $schema = array(), $override = false ) {
     86            // Assing the schema.
     87            $this->schema = $schema;
     88
     89            // API rest base.
     90            $this->rest_base = $api_route;
     91
    8592            register_rest_route(
    8693                $this->namespace . '/' . $this->api_version,
     
    9198                    'args'                => $this->get_record_params( $args ),
    9299                    'permission_callback' => $permission_cb,
    93                 )
    94             );
     100                    'schema'              => $schema,
     101                ),
     102                $override
     103            );
     104
    95105            return true;
    96106        }
     
    105115         * @param string $path_var_name Path vairable name.
    106116         * @param array  $args          Arguments.
     117         * @param array  $schema        Schema.
    107118         *
    108119         * @return bool
    109120         */
    110         public function create_rest_route_pathVar( $api_route, $method, $cb, $permission_cb, $path_var_name = 'id', $args = array() ) {
     121        public function create_rest_route_pathVar( $api_route, $method, $cb, $permission_cb, $path_var_name = 'id', $args = array(), $schema = array() ) {
     122            // Assing the schema.
     123            $this->schema = $schema;
     124
    111125            register_rest_route(
    112126                $this->namespace . '/' . $this->api_version,
     
    117131                    'args'                => $args,
    118132                    'permission_callback' => $permission_cb,
     133                    'schema'              => $schema,
    119134                )
    120135            );
     136
    121137            return true;
    122138        }
     
    287303                );
    288304            }
     305
    289306            return rest_filter_response_fields( $res, new WP_REST_Server(), $req );
    290307        }
     
    298315         */
    299316        public function get_record( $req, $table_name, $field_name = 'id' ) {
    300             $query  = 'SELECT * FROM ' . $table_name . ' WHERE ' . $field_name . ' = ' . $req[ $field_name ];
     317            if ( is_array( $field_name ) ) {
     318                $query = 'SELECT * FROM ' . $table_name . ' WHERE id = ' . $field_name['id'];
     319
     320            } else {
     321                $query = 'SELECT * FROM ' . $table_name . ' WHERE ' . $field_name . ' = ' . $req[ $field_name ];
     322            }
    301323            $result = $this->db->get_row(
    302324                $query,
     
    335357                $date_modify_field = 'card_modify_date';
    336358            }
    337             if ( preg_match( '/_boards/', $table_name ) ) {
     359            if ( preg_match( '/_boards$/', $table_name ) ) {
    338360                $date_field     = 'board_date';
    339361                $date_gmt_field = 'board_date_gmt';
     
    384406         */
    385407        public function delete_record( $req, $table_name, $field_name = 'id' ) {
    386             $result = $this->db->delete(
    387                 $table_name,
    388                 array(
    389                     $field_name => $req[ $field_name ],
    390                 ),
    391                 array(
    392                     '%d',
    393                 )
    394             );
     408            if ( is_array( $field_name ) ) {
     409                $where = array();
     410                foreach ( $field_name as $key => $value ) {
     411                    $where[ $key ] = $value;
     412                }
     413                $result = $this->db->delete(
     414                    $table_name,
     415                    $where
     416                );
     417            } else {
     418                $result = $this->db->delete(
     419                    $table_name,
     420                    array(
     421                        $field_name => $req[ $field_name ],
     422                    ),
     423                    array(
     424                        '%d',
     425                    )
     426                );
     427            }
    395428            if ( false === $result ) {
    396429                $this->db->query( 'ROLLBACK' );
     
    523556            );
    524557        }
     558
     559        /**
     560         * Retrieves the item's schema, conforming to JSON Schema.
     561         *
     562         * @since 0.3.0
     563         *
     564         * @return array Item schema data.
     565         */
     566        public function get_item_schema() {
     567            return $this->add_additional_fields_schema( $this->schema );
     568        }
    525569    }
    526570}
  • wpnakama/trunk/inc/class-wpnakama-database.php

    r3043592 r3131031  
    5050            include_once ABSPATH . 'wp-admin/includes/upgrade.php';
    5151            $this->db      = $wpdb;
    52             $this->version = '0.2.0';
     52            $this->version = '0.3.0';
    5353        }
    5454
     
    8686
    8787        /**
     88         * Check table column exists.
     89         *
     90         * @param string $table_name Name of table with WP prefix.
     91         * @param string $column_name Name of column.
     92         *
     93         * @return bool
     94         */
     95        public function column_exists( $table_name, $column_name ) {
     96            $quired_column_names = $this->db->get_results( "SHOW COLUMNS FROM {$table_name}" );
     97            foreach ( $quired_column_names as $columns_data ) {
     98                if ( $column_name === $columns_data->Field ) {
     99                    return true;
     100                }
     101            }
     102
     103            return false;
     104        }
     105
     106        /**
    88107         * Create table.
    89108         *
    90109         * @param string $table_name Name of table with WP prefix.
    91110         * @param string $sql_query SQL query.
    92          *
    93          * @uses dbDelta()
    94111         *
    95112         * @return boolean
     
    108125
    109126        /**
     127         * Alter table by dropping and adding columns.
     128         *
     129         * @param string $table_name Name of table with WP prefix.
     130         * @param string $column_name Name of the column.
     131         * @param string $column_type Data type of the column.
     132         * @param string $operation SQL operation run on alter command - ADD, DROP. Default set to ADD.
     133         * @param string $default_value Default value for column.
     134         * @param string $not_null Value be null or not.
     135         *
     136         * @return boolean
     137         */
     138        public function alter_table( $table_name, $column_name = '', $column_type = 'varchar(255)', $operation = 'ADD', $default_value = '', $not_null = true ) {
     139            // Check table exists.
     140            if ( ! $this->table_exists( $table_name ) || $this->column_exists( $table_name, $column_name ) ) {
     141                return false;
     142            }
     143
     144            // SQL query.
     145            switch ( $operation ) {
     146                case 'DROP':
     147                    $query = "ALTER TABLE {$table_name} {$operation} {$column_name}";
     148                    break;
     149
     150                default:
     151                    if ( ! empty( $default_value ) ) {
     152                        if ( $not_null ) {
     153                            $query = $this->db->prepare(
     154                                "ALTER TABLE {$table_name} {$operation} {$column_name} {$column_type} NOT NULL DEFAULT %s",
     155                                $default_value
     156                            );
     157                        } else {
     158                            $query = $this->db->prepare(
     159                                "ALTER TABLE {$table_name} {$operation} {$column_name} {$column_type} DEFAULT %s",
     160                                $default_value
     161                            );
     162                        }
     163                    } else {
     164                        if ( $not_null ) {
     165                            $query = "ALTER TABLE {$table_name} {$operation} {$column_name} {$column_type} NOT NULL";
     166                        } else {
     167                            $query = "ALTER TABLE {$table_name} {$operation} {$column_name} {$column_type}";
     168                        }
     169                    }
     170                    break;
     171            };
     172
     173            $altered = $this->db->query( $query );
     174            if ( ! $altered ) {
     175                return false;
     176            }
     177            return true;
     178        }
     179
     180        /**
    110181         * Delete table.
    111182         *
    112183         * @param string $name Name of table without WP prefix.
    113          *
    114          * @uses query()
    115184         *
    116185         * @return boolean
     
    133202        /**
    134203         * Delete all the tables.
    135          *
    136          * @uses query()
    137          * @uses prepare()
    138204         *
    139205         * @return boolean
     
    143209                $this->table_prefix( 'wpnakama_workspaces' ),
    144210                $this->table_prefix( 'wpnakama_boards' ),
     211                $this->table_prefix( 'wpnakama_board_access' ),
    145212                $this->table_prefix( 'wpnakama_phases' ),
    146213                $this->table_prefix( 'wpnakama_tasks' ),
    147214                $this->table_prefix( 'wpnakama_taskslists' ),
     215                $this->table_prefix( 'wpnakama_cards' ),
    148216            );
    149217
     
    159227                // Check table exists.
    160228                if ( ! $this->table_exists( $table_name ) ) {
    161                     return false;
     229                    error . log( 'Table does not exist: ' . $table_name );
     230                    continue;
    162231                }
    163232                $result = $this->db->query( "DROP TABLE IF EXISTS {$table_name}" );
  • wpnakama/trunk/inc/class-wpnakama.php

    r3044042 r3131031  
    66 * @subpackage  Core
    77 * @since       0.1.0
    8  * @version     0.2.2
     8 * @version     0.3.0
    99 * @author      kantbtrue, qdonow, designthingy, savydv
    1010 * @license     GPL-2.0-or-later
     
    2929
    3030        /**
     31         * API schema helper functions.
     32         */
     33        use WPNakama_API_Schema;
     34
     35        /**
    3136         * Plugin unique identifier.
    3237         *
     
    5560         */
    5661        protected $db;
     62
     63        /**
     64         * License server API URL.
     65         *
     66         * @var string
     67         */
     68        protected $license_server_api_url;
    5769
    5870        /**
     
    7486            }
    7587
     88            // Set license server API URL.
     89            $this->license_server_api_url = 'https://updater.qdonow.com/wp-json/lsq/v1';
     90
    7691            // Load plugin dependencies.
    7792            $this->load_dependencies();
     
    8297         */
    8398        public function load_dependencies() {
     99            require_once WPNAKAMA_PLUGIN_PATH . 'inc/class-wpnakama-cache.php';
     100            require_once WPNAKAMA_PLUGIN_PATH . 'inc/class-wpnakama-updater.php';
    84101            require_once WPNAKAMA_PLUGIN_PATH . 'inc/class-wpnakama-api.php';
    85102            require_once WPNAKAMA_PLUGIN_PATH . 'inc/class-wpnakama-database.php';
     103            require_once WPNAKAMA_PLUGIN_PATH . 'inc/class-wpnakama-cpt.php';
    86104            require_once WPNAKAMA_PLUGIN_PATH . 'admin/class-wpnakama-admin.php';
     105            require_once WPNAKAMA_PLUGIN_PATH . 'frontend/class-wpnakama-frontend.php';
    87106        }
    88107
     
    152171                            $table_name = $this->db->table_prefix( 'wpnakama_boards' );
    153172
    154                             return $this->api->get_record( $req, $table_name, $field_name );
     173                            $res = $this->api->get_record( $req, $table_name, $field_name );
     174
     175                            // Get board access.
     176                            if ( ! is_wp_error( $res ) ) {
     177                                $table_name2 = $this->db->table_prefix( 'wpnakama_boards_access' );
     178
     179                                $res2 = $this->api->get_record( $req, $table_name2, 'board_id' );
     180
     181                                if ( array_key_exists( 'access_value', $res2->data ) ) {
     182                                    $access_data = $this->escape_value( $res2->data['access_value'], 'array' );
     183
     184                                    $res->data['is_global']  = $access_data['global'];
     185                                    $res->data['global_id']  = $access_data['global_id'];
     186                                    $res->data['public_url'] = get_permalink( $access_data['global_id'] );
     187                                }
     188
     189                                return rest_filter_response_fields( $res, new WP_REST_Server(), $req );
     190                            } else {
     191                                return $res;
     192                            }
    155193                        },
    156194                        $this->api->get_record_permissions_check(),
    157195                        'board_id'
    158196                    );
    159                     // Endpoint - Add new board.
     197                    // Endpoint - Add a new board.
    160198                    $this->api->create_rest_route(
    161199                        'boards',
     
    168206                            // Sanitize data.
    169207                            $data = array(
    170                                 'title'        => $this->sanitize_value( $req['title'], 'text' ),
    171                                 'description'  => $this->sanitize_value( $req['description'], 'textarea' ),
     208                                'title'        => $this->sanitize_value( $req['title'] ?? '', 'title' ),
     209                                'description'  => $this->sanitize_value( $req['description'] ?? '', 'textarea' ),
     210                                'start_date'   => $this->sanitize_value( $req['start_date'] ?? '0000-00-00 00:00:00', 'date' ),
     211                                'end_date'     => $this->sanitize_value( $req['end_date'] ?? '0000-00-00 00:00:00', 'date' ),
    172212                                'workspace_id' => 0,
    173213                            );
     
    176216                            $table_name = $this->db->table_prefix( 'wpnakama_boards' );
    177217
    178                             return $this->api->add_record( $data, $table_name, 'board_id' );
     218                            // Get the response from the boards table.
     219                            $res = $this->api->add_record( $data, $table_name, 'board_id' );
     220
     221                            // Add a default boards access in access table.
     222                            if ( ! is_wp_error( $res ) ) {
     223                                $global_id             = wp_insert_post(
     224                                    array(
     225                                        'post_title'  => $data['title'],
     226                                        'post_status' => 'private',
     227                                        'post_type'   => 'wpn_boards',
     228                                        'post_date'   => date( 'Y-m-d h:i:s', strtotime( '+100 years' ) ),
     229                                        'post_name'   => substr( base64_encode( $data['title'] . random_bytes( 2 ) ), 0, 8 ),
     230                                    )
     231                                );
     232                                $table_name2           = $this->db->table_prefix( 'wpnakama_boards_access' );
     233                                $data2                 = array();
     234                                $data2['board_id']     = $this->sanitize_value( $res->data['data']['board_id'], 'number' );
     235                                $data2['access_value'] = $this->sanitize_value(
     236                                    array(
     237                                        'global'    => false,
     238                                        'global_id' => $global_id,
     239                                    ),
     240                                    'array'
     241                                );
     242
     243                                add_post_meta( $global_id, 'wpnakama_board_id', $data2['board_id'], true );
     244
     245                                $this->api->add_record( $data2, $table_name2 );
     246                            }
     247
     248                            return $res;
    179249                        },
    180250                        function () {
    181251                            return $this->api->create_record_permissions_check();
    182                         }
     252                        },
     253                        array(),
     254                        $this->boards_schema()
     255                    );
     256                    // Enpoint - Edit a board by board_id.
     257                    $this->api->create_rest_route_pathVar(
     258                        'boards',
     259                        WP_REST_Server::EDITABLE,
     260                        function ( $req ) {
     261
     262                            // Check valid source using nonce validation.
     263                            $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     264
     265                            $field_name = 'board_id';
     266
     267                            // Check the record identifier is an integer.
     268                            $id = (int) $req[ $field_name ];
     269                            if ( 0 === $id ) {
     270                                return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
     271                            }
     272
     273                            // Data that need to added in database.
     274                            $data = array(
     275                                $field_name => $req[ $field_name ],
     276                            );
     277
     278                            // Sanitize data.
     279                            if ( isset( $req['title'] ) ) {
     280                                $data['title'] = $this->sanitize_value( $req['title'], 'text' );
     281                            }
     282                            if ( isset( $req['description'] ) ) {
     283                                $data['description'] = $this->sanitize_value( $req['description'], 'textarea' );
     284                            }
     285                            if ( isset( $req['start_date'] ) ) {
     286                                $data['start_date'] = $this->sanitize_value( $req['start_date'], 'text' );
     287                            }
     288                            if ( isset( $req['end_date'] ) ) {
     289                                $data['end_date'] = $this->sanitize_value( $req['end_date'], 'text' );
     290                            }
     291
     292                            // Prefix table name.
     293                            $table_name = $this->db->table_prefix( 'wpnakama_boards' );
     294
     295                            $res = $this->api->update_record( $data, $table_name, $field_name );
     296
     297                            // update board access.
     298                            if ( ! is_wp_error( $res ) && isset( $req['is_global'] ) ) {
     299                                // Get access table.
     300                                $table_name2      = $this->db->table_prefix( 'wpnakama_boards_access' );
     301                                $get_access_table = $this->api->get_record( $req, $table_name2, $field_name );
     302                                $access_data      = $this->escape_value( $get_access_table->data['access_value'], 'array' );
     303
     304                                // Update the CPT status.
     305                                if ( $req['is_global'] ) {
     306                                    wp_publish_post( $access_data['global_id'] );
     307                                } else {
     308                                    wp_update_post(
     309                                        array(
     310                                            'ID'          => $access_data['global_id'],
     311                                            'post_status' => 'private',
     312                                            'post_date'   => date( 'Y-m-d h:i:s' ),
     313                                        )
     314                                    );
     315                                }
     316
     317                                $data2                 = array();
     318                                $data2['access_value'] = $this->sanitize_value(
     319                                    array(
     320                                        'global'    => $req['is_global'],
     321                                        'global_id' => $access_data['global_id'],
     322                                    ),
     323                                    'array'
     324                                );
     325                                $data2['board_id']     = $req['board_id'];
     326
     327                                $res2 = $this->api->update_record( $data2, $table_name2, $field_name );
     328
     329                                return rest_filter_response_fields( $res, new WP_REST_Server(), $req );
     330                            } else {
     331                                return $res;
     332                            }
     333                        },
     334                        function () {
     335                            return $this->api->update_record_permissions_check();
     336                        },
     337                        'board_id'
     338                    );
     339                    // Enpoint - Delete a board by board_id.
     340                    $this->api->create_rest_route_pathVar(
     341                        'boards',
     342                        WP_REST_Server::DELETABLE,
     343                        function ( $req ) {
     344
     345                            // Check valid source using nonce validation.
     346                            $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     347
     348                            $field_name = 'board_id';
     349
     350                            // Check the record identifier is an integer.
     351                            $id = (int) $req[ $field_name ];
     352                            if ( 0 === $id ) {
     353                                return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
     354                            }
     355
     356                            // Prefix table name.
     357                            $table_name = $this->db->table_prefix( 'wpnakama_boards' );
     358
     359                            // Get the response from the boards table.
     360                            $res = $this->api->delete_record( $req, $table_name, $field_name );
     361
     362                            // Delete the board access from the access table and CPT.
     363                            if ( ! is_wp_error( $res ) ) {
     364                                $table_name2      = $this->db->table_prefix( 'wpnakama_boards_access' );
     365                                $get_access_table = $this->api->get_record( $req, $table_name2, $field_name );
     366                                $access_data      = $this->escape_value( $get_access_table->data['access_value'], 'array' );
     367                                $delete_cpt       = wp_delete_post( $access_data['global_id'], true );
     368                                delete_post_meta( $access_data['global_id'], 'wpnakama_board_id' );
     369                                return $this->api->delete_record( $req, $table_name2, $field_name );
     370                            } else {
     371                                return;
     372                            }
     373                        },
     374                        function () {
     375                            return $this->api->delete_record_permissions_check();
     376                        },
     377                        'board_id'
    183378                    );
    184379                    // Endpoint - Create a board table by board_id.
     
    206401                            $table_name = $this->db->table_prefix( 'wpnakama_board_' . $req[ $field_name ] . '_cards' );
    207402
     403                            // From version 0.3.0, the description field is replaced with notes from the table
    208404                            $result = $this->db->create_table(
    209405                                $table_name,
     
    211407                                card_id BIGINT(20) NOT NULL AUTO_INCREMENT,
    212408                                title TEXT,
    213                                 description VARCHAR(250),
     409                                notes LONGTEXT,
    214410                                card_date datetime NOT NULL DEFAULT "0000-00-00 00:00:00",
    215411                                card_date_gmt datetime NOT NULL DEFAULT "0000-00-00 00:00:00",
    216412                                card_modify_date datetime NOT NULL DEFAULT "0000-00-00 00:00:00",
     413                                card_deadline_date datetime NOT NULL DEFAULT "0000-00-00 00:00:00",
    217414                                phase_id BIGINT(20) NOT NULL DEFAULT 0,
    218415                                post_ids LONGTEXT,
    219416                                position BIGINT(20) NOT NULL DEFAULT 0,
    220                                 is_archived SMALLINT NOT NULL DEFAULT 0,
     417                                is_completed SMALLINT NOT NULL DEFAULT "0",
    221418                                PRIMARY KEY (card_id),
    222419                                KEY phase_id (phase_id),
    223420                                KEY card_date_gmt (card_date_gmt),
    224                                 KEY position (position)
     421                                KEY position (position),
     422                                KEY is_completed (is_completed)
    225423                                )'
    226424                            );
     
    239437                        function () {
    240438                            return $this->api->create_record_permissions_check();
    241                         },
    242                         'board_id'
    243                     );
    244                     // Enpoint - Edit a board by board_id.
    245                     $this->api->create_rest_route_pathVar(
    246                         'boards',
    247                         WP_REST_Server::EDITABLE,
    248                         function ( $req ) {
    249 
    250                             // Check valid source using nonce validation.
    251                             $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
    252 
    253                             $field_name = 'board_id';
    254 
    255                             // Check the record identifier is an integer.
    256                             $id = (int) $req[ $field_name ];
    257                             if ( 0 === $id ) {
    258                                 return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
    259                             }
    260 
    261                             // Data that need to added in database.
    262                             $data = array(
    263                                 $field_name => $req[ $field_name ],
    264                             );
    265 
    266                             // Sanitize data.
    267                             if ( isset( $req['title'] ) ) {
    268                                 $data['title'] = $this->sanitize_value( $req['title'], 'text' );
    269                             }
    270                             if ( isset( $req['description'] ) ) {
    271                                 $data['description'] = $this->sanitize_value( $req['description'], 'textarea' );
    272                             }
    273 
    274                             // Prefix table name.
    275                             $table_name = $this->db->table_prefix( 'wpnakama_boards' );
    276 
    277                             return $this->api->update_record( $data, $table_name, $field_name );
    278                         },
    279                         function () {
    280                             return $this->api->update_record_permissions_check();
    281                         },
    282                         'board_id'
    283                     );
    284                     // Enpoint - Delete a board by board_id.
    285                     $this->api->create_rest_route_pathVar(
    286                         'boards',
    287                         WP_REST_Server::DELETABLE,
    288                         function ( $req ) {
    289 
    290                             // Check valid source using nonce validation.
    291                             $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
    292 
    293                             $field_name = 'board_id';
    294 
    295                             // Check the record identifier is an integer.
    296                             $id = (int) $req[ $field_name ];
    297                             if ( 0 === $id ) {
    298                                 return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
    299                             }
    300 
    301                             // Prefix table name.
    302                             $table_name = $this->db->table_prefix( 'wpnakama_boards' );
    303 
    304                             return $this->api->delete_record( $req, $table_name, $field_name );
    305                         },
    306                         function () {
    307                             return $this->api->delete_record_permissions_check();
    308439                        },
    309440                        'board_id'
     
    432563                            // Sanitize data.
    433564                            $data = array(
    434                                 'title'    => $this->sanitize_value( $req['title'], 'text' ),
     565                                'title'    => $this->sanitize_value( $req['title'], 'title' ),
    435566                                'board_id' => $this->sanitize_value( $req['board_id'], 'number' ),
    436567                                'position' => $this->sanitize_value( $req['position'], 'number' ),
     
    556687                            // Sanitize data.
    557688                            if ( isset( $req['title'] ) ) {
    558                                 $data['title'] = $this->sanitize_value( $req['title'], 'text' );
     689                                $data['title'] = $this->sanitize_value( $req['title'], 'title' );
    559690                            }
    560691                            if ( isset( $req['position'] ) ) {
     
    573704                    );
    574705                    // Endpoint - Get all cards with a specific board_id.
    575                     $this->api->create_rest_route(
    576                         'cards',
    577                         WP_REST_Server::READABLE,
    578                         function ( $req ) {
    579 
    580                             // Check valid source using nonce validation.
    581                             $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
    582 
    583                             $field_name = 'board_id';
    584 
    585                             // Check the record identifier is an integer.
    586                             $id = (int) $req[ $field_name ];
    587                             if ( 0 === $id ) {
    588                                 return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
    589                             }
    590 
    591                             if ( isset( $req['order_by'] ) ) {
    592                                 $order_by = (string) $req['order_by'];
    593                                 if ( empty( $order_by ) ) {
    594                                     return new WP_Error( 403, __( 'Invaild order field passed.', 'wpnakama' ) );
    595                                 }
    596                             } else {
    597                                 $order_by = false;
    598                             }
    599 
    600                             if ( isset( $req['order'] ) ) {
    601                                 $order = (string) $req['order'];
    602                                 if ( empty( $order ) ) {
    603                                     return new WP_Error( 403, __( 'Invaild order passed.', 'wpnakama' ) );
    604                                 }
    605                             } else {
    606                                 $order = 'asc';
    607                             }
    608 
    609                             // Prefix table name.
    610                             $table_name = $this->db->table_prefix( 'wpnakama_board_' . $req[ $field_name ] . '_cards' );
    611 
    612                             return $this->api->get_records( $req, $table_name, '', $order_by, $order );
    613                         },
    614                         $this->api->get_records_permissions_check()
    615                     );
     706                    if ( '0.2.0' < $this->db->version ) {
     707                        $this->api->create_rest_route(
     708                            'cards',
     709                            WP_REST_Server::READABLE,
     710                            function ( $req ) {
     711
     712                                // Check valid source using nonce validation.
     713                                $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     714
     715                                if ( isset( $req['order_by'] ) ) {
     716                                    $order_by = (string) $req['order_by'];
     717                                    if ( empty( $order_by ) ) {
     718                                        return new WP_Error( 403, __( 'Invaild order field passed.', 'wpnakama' ) );
     719                                    }
     720                                } else {
     721                                    $order_by = false;
     722                                }
     723
     724                                if ( isset( $req['order'] ) ) {
     725                                    $order = (string) $req['order'];
     726                                    if ( empty( $order ) ) {
     727                                        return new WP_Error( 403, __( 'Invaild order passed.', 'wpnakama' ) );
     728                                    }
     729                                } else {
     730                                    $order = 'asc';
     731                                }
     732
     733                                if ( $req['board_id'] ) {
     734                                    $field_name = 'board_id';
     735
     736                                    // Check the record identifier is an integer.
     737                                    $id = (int) $req[ $field_name ];
     738                                    if ( 0 === $id ) {
     739                                        return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
     740                                    }
     741
     742                                    // Prefix table name.
     743                                    $table_name = $this->db->table_prefix( 'wpnakama_board_' . $req[ $field_name ] . '_cards' );
     744                                } else {
     745
     746                                    // Prefix table name.
     747                                    $table_name = $this->db->table_prefix( 'wpnakama_cards' );
     748                                }
     749
     750                                if ( $this->db->table_exists( $table_name ) ) {
     751                                    return $this->api->get_records( $req, $table_name, '', $order_by, $order );
     752                                } else {
     753                                    return new WP_Error( 500, __( 'Table doesn\'t exists.', 'wpnakama' ) );
     754                                }
     755
     756                            },
     757                            $this->api->get_records_permissions_check(),
     758                            array(
     759                                'board_id' => array(
     760                                    'require'           => false,
     761                                    'description'       => __( 'Argument required to add the record by board id.', 'wpnakama' ),
     762                                    'type'              => 'number',
     763                                    'validate_callback' => function ( $value, $req, $param ) {
     764                                        // Check the record identifier is an integer.
     765                                        $id = (int) $value;
     766                                        if ( 0 === $id ) {
     767                                            return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
     768                                        }
     769                                    },
     770                                    'sanitize_callback' => function ( $value, $req, $param ) {
     771                                        return $this->sanitize_value( $value, 'number' );
     772                                    },
     773                                ),
     774                            )
     775                        );
     776                    } else {
     777                        $this->api->create_rest_route(
     778                            'cards',
     779                            WP_REST_Server::READABLE,
     780                            function ( $req ) {
     781
     782                                // Check valid source using nonce validation.
     783                                $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     784
     785                                $field_name = 'board_id';
     786
     787                                // Check the record identifier is an integer.
     788                                $id = (int) $req[ $field_name ];
     789                                if ( 0 === $id ) {
     790                                    return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
     791                                }
     792
     793                                if ( isset( $req['order_by'] ) ) {
     794                                    $order_by = (string) $req['order_by'];
     795                                    if ( empty( $order_by ) ) {
     796                                        return new WP_Error( 403, __( 'Invaild order field passed.', 'wpnakama' ) );
     797                                    }
     798                                } else {
     799                                    $order_by = false;
     800                                }
     801
     802                                if ( isset( $req['order'] ) ) {
     803                                    $order = (string) $req['order'];
     804                                    if ( empty( $order ) ) {
     805                                        return new WP_Error( 403, __( 'Invaild order passed.', 'wpnakama' ) );
     806                                    }
     807                                } else {
     808                                    $order = 'asc';
     809                                }
     810
     811                                // Prefix table name.
     812                                $table_name = $this->db->table_prefix( 'wpnakama_board_' . $req[ $field_name ] . '_cards' );
     813
     814                                return $this->api->get_records( $req, $table_name, '', $order_by, $order );
     815                            },
     816                            $this->api->get_records_permissions_check()
     817                        );
     818                    }
    616819                    // Endpoint - Get all cards with a specific board_id in object form.
    617820                    $this->api->create_rest_route(
     
    718921                            }
    719922
    720                             // Prefix table name.
    721                             $table_name = $this->db->table_prefix( 'wpnakama_board_' . $req['board_id'] . '_cards' );
    722 
    723                             return $this->api->get_record( $req, $table_name, $field_name );
     923                            if ( '0.2.0' < $this->db->version && ( ! isset( $req['board_id'] ) || empty( $req['board_id'] ) ) ) {
     924                                // Prefix table name.
     925                                $table_name2 = $this->db->table_prefix( 'wpnakama_cards' );
     926                                return $this->api->get_record(
     927                                    $req,
     928                                    $table_name2,
     929                                    array(
     930                                        'id' => $req['card_id'],
     931                                    )
     932                                );
     933                            } else {
     934                                // Prefix table name.
     935                                $table_name = $this->db->table_prefix( 'wpnakama_board_' . $req['board_id'] . '_cards' );
     936                                return $this->api->get_record( $req, $table_name, $field_name );
     937
     938                            }
    724939                        },
    725940                        $this->api->get_record_permissions_check(),
    726941                        'card_id'
    727942                    );
    728                     // Endpoint - Add card with a specific board_id.
     943                    // Endpoint - Add a card with a specific board_id.
    729944                    $this->api->create_rest_route(
    730945                        'cards',
     
    739954
    740955                            if ( isset( $req['title'] ) && ! empty( $req['title'] ) ) {
    741                                 $data['title'] = $this->sanitize_value( $req['title'], 'text' );
    742                             }
    743                             if ( isset( $req['description'] ) && ! empty( $req['description'] ) ) {
    744                                 $data['description'] = $this->sanitize_value( $req['description'], 'textarea' );
     956                                $data['title'] = $this->sanitize_value( $req['title'], 'title' );
     957                            }
     958                            if ( isset( $req['notes'] ) && ! empty( $req['notes'] ) ) {
     959                                $data['notes'] = $this->sanitize_value( $req['notes'], 'textarea' );
    745960                            }
    746961                            if ( isset( $req['phase_id'] ) && ! empty( $req['phase_id'] ) ) {
     
    753968                                $data['position'] = $this->sanitize_value( $req['position'], 'number' );
    754969                            }
     970                            if ( isset( $req['card_deadline_date'] ) && ! empty( $req['card_deadline_date'] ) ) {
     971                                $data['card_deadline_date'] = $this->sanitize_value( $req['card_deadline_date'] ?? '0000-00-00 00:00:00', 'date' );
     972                            }
     973                            if ( isset( $req['is_completed'] ) && ! empty( $req['is_completed'] ) ) {
     974                                $data['is_completed'] = $this->sanitize_value( $req['is_completed'], 'number' );
     975                            }
    755976
    756977                            // Prefix table name.
    757978                            $table_name = $this->db->table_prefix( 'wpnakama_board_' . $req['board_id'] . '_cards' );
    758979
    759                             return $this->api->add_record( $data, $table_name, 'card_id' );
     980                            $res = $this->api->add_record( $data, $table_name, 'card_id' );
     981
     982                            if ( '0.2.0' < $this->db->version ) {
     983                                $table_name2                   = $this->db->table_prefix( 'wpnakama_cards' );
     984                                $data2                         = array();
     985                                $data2['card_id']              = $this->sanitize_value( $res->data['data']['card_id'], 'number' );
     986                                $data2['board_id']             = $this->sanitize_value( $req['board_id'], 'number' );
     987                                $res2                          = $this->api->add_record( $data2, $table_name2 );
     988                                $res2->data['data']['card_id'] = $this->sanitize_value( $res->data['data']['card_id'], 'number' );
     989                                return $res2;
     990                            } else {
     991                                return $res;
     992                            }
     993
     994                            return $res;
    760995                        },
    761996                        function () {
    762997                            return $this->api->create_record_permissions_check();
    763998                        },
     999                        array(
     1000                            'board_id' => array(
     1001                                'require'           => true,
     1002                                'description'       => __( 'Argument required to add the record by board id.', 'wpnakama' ),
     1003                                'type'              => 'number',
     1004                                'validate_callback' => function ( $value, $req, $param ) {
     1005                                    // Check the record identifier is an integer.
     1006                                    $id = (int) $value;
     1007                                    if ( 0 === $id ) {
     1008                                        return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
     1009                                    }
     1010                                },
     1011                                'sanitize_callback' => function ( $value, $req, $param ) {
     1012                                    return $this->sanitize_value( $value, 'number' );
     1013                                },
     1014                            ),
     1015                        )
    7641016                    );
    7651017                    // Endpoint - Delete card by card_id with a specific board_id.
     
    7831035                            $table_name = $this->db->table_prefix( 'wpnakama_board_' . $req['board_id'] . '_cards' );
    7841036
    785                             return $this->api->delete_record( $req, $table_name, $field_name );
     1037                            $res = $this->api->delete_record( $req, $table_name, $field_name );
     1038
     1039                            if ( '0.2.0' < $this->db->version ) {
     1040                                $table_name2 = $this->db->table_prefix( 'wpnakama_cards' );
     1041                                return $this->api->delete_record(
     1042                                    $req,
     1043                                    $table_name2,
     1044                                    array(
     1045                                        'card_id'  => $req[ $field_name ],
     1046                                        'board_id' => $req['board_id'],
     1047                                    )
     1048                                );
     1049                            } else {
     1050                                return $res;
     1051                            }
    7861052                        },
    7871053                        function () {
    7881054                            return $this->api->delete_record_permissions_check();
    7891055                        },
    790                         'card_id'
     1056                        'card_id',
     1057                        array(
     1058                            'board_id' => array(
     1059                                'require'           => true,
     1060                                'description'       => __( 'Argument use to delete the record by board id.', 'wpnakama' ),
     1061                                'type'              => 'number',
     1062                                'validate_callback' => function ( $value, $req, $param ) {
     1063                                    // Check the record identifier is an integer.
     1064                                    $id = (int) $value;
     1065                                    if ( 0 === $id ) {
     1066                                        return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
     1067                                    }
     1068                                },
     1069                                'sanitize_callback' => function ( $value, $req, $param ) {
     1070                                    return $this->sanitize_value( $value, 'number' );
     1071                                },
     1072                            ),
     1073                        )
     1074                    );
     1075                    // Endpoint - Delete card by card_id with a specific board_id.
     1076                    $this->api->create_rest_route(
     1077                        'uniquecards',
     1078                        WP_REST_Server::DELETABLE,
     1079                        function ( $req ) {
     1080
     1081                            // Check valid source using nonce validation.
     1082                            $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     1083
     1084                            $field_name = 'board_id';
     1085
     1086                            // Check the record identifier is an integer.
     1087                            $id = (int) $req[ $field_name ];
     1088
     1089                            if ( 0 === $id ) {
     1090                                return new WP_Error( 403, __( 'Invaild value passed. A valid board_id required.', 'wpnakama' ) );
     1091                            }
     1092
     1093                            // Prefix table name.
     1094                            $table_name = $this->db->table_prefix( 'wpnakama_cards' );
     1095
     1096                            return $this->api->delete_record(
     1097                                $req,
     1098                                $table_name,
     1099                                array(
     1100                                    'board_id' => $req[ $field_name ],
     1101                                )
     1102                            );
     1103                        },
     1104                        function () {
     1105                            return $this->api->delete_record_permissions_check();
     1106                        },
     1107                        array(
     1108                            'board_id' => array(
     1109                                'require'           => true,
     1110                                'description'       => __( 'Argument use to delete the record by board id.', 'wpnakama' ),
     1111                                'type'              => 'number',
     1112                                'validate_callback' => function ( $value, $req, $param ) {
     1113                                    // Check the record identifier is an integer.
     1114                                    $id = (int) $value;
     1115                                    if ( 0 === $id ) {
     1116                                        return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
     1117                                    }
     1118                                },
     1119                                'sanitize_callback' => function ( $value, $req, $param ) {
     1120                                    return $this->sanitize_value( $value, 'number' );
     1121                                },
     1122                            ),
     1123                        )
    7911124                    );
    7921125                    // Enpoint - Edit a card by card_id with a specific board_id..
     
    8131146                            // Sanitize data.
    8141147                            if ( isset( $req['title'] ) ) {
    815                                 $data['title'] = $this->sanitize_value( $req['title'], 'text' );
    816                             }
    817                             if ( isset( $req['description'] ) ) {
    818                                 $data['description'] = $this->sanitize_value( $req['description'], 'textarea' );
     1148                                $data['title'] = $this->sanitize_value( $req['title'], 'title' );
     1149                            }
     1150                            if ( isset( $req['notes'] ) ) {
     1151                                $data['notes'] = $this->sanitize_value( $req['notes'], 'textarea' );
    8191152                            }
    8201153                            if ( isset( $req['position'] ) ) {
     
    8271160                                $data['post_ids'] = $this->sanitize_value( $req['post_ids'], 'text' );
    8281161                            }
     1162                            if ( isset( $req['card_deadline_date'] ) ) {
     1163                                $data['card_deadline_date'] = $this->sanitize_value( $req['card_deadline_date'] ?? '0000-00-00 00:00:00', 'date' );
     1164                            }
     1165                            if ( isset( $req['is_completed'] ) ) {
     1166                                $data['is_completed'] = $this->sanitize_value( $req['is_completed'], 'number' );
     1167                            }
    8291168
    8301169                            // Prefix table name.
     
    8361175                            return $this->api->update_record_permissions_check();
    8371176                        },
    838                         'card_id'
     1177                        'card_id',
     1178                        array(
     1179                            'board_id' => array(
     1180                                'require'           => true,
     1181                                'description'       => __( 'Argument use to delete the record by board id.', 'wpnakama' ),
     1182                                'type'              => 'number',
     1183                                'validate_callback' => function ( $value, $req, $param ) {
     1184                                    // Check the record identifier is an integer.
     1185                                    $id = (int) $value;
     1186                                    if ( 0 === $id ) {
     1187                                        return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
     1188                                    }
     1189                                },
     1190                                'sanitize_callback' => function ( $value, $req, $param ) {
     1191                                    return $this->sanitize_value( $value, 'number' );
     1192                                },
     1193                            ),
     1194                        )
    8391195                    );
    8401196                    // Endpoint - Add task with specific board_id and card_id.
     
    10011357                            return $this->api->delete_record_permissions_check();
    10021358                        },
     1359                        'task_id'
     1360                    );
     1361                    // Endpoint - Get a task with specific board_id and card_id.
     1362                    $this->api->create_rest_route_pathVar(
     1363                        'tasks',
     1364                        WP_REST_Server::READABLE,
     1365                        function ( $req ) {
     1366
     1367                            // Check valid source using nonce validation.
     1368                            $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     1369
     1370                            $field_name = 'task_id';
     1371
     1372                            // Check the record identifier is an integer.
     1373                            $id = (int) $req[ $field_name ];
     1374                            if ( 0 === $id ) {
     1375                                return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
     1376                            }
     1377
     1378                            // Prefix table name.
     1379                            $table_name = $this->db->table_prefix( 'wpnakama_tasks' );
     1380
     1381                            return $this->api->get_record( $req, $table_name, $field_name );
     1382                        },
     1383                        $this->api->get_record_permissions_check(),
    10031384                        'task_id'
    10041385                    );
     
    11111492
    11121493                            if ( isset( $req['title'] ) && ! empty( $req['title'] ) ) {
    1113                                 $data['title'] = $this->sanitize_value( $req['title'], 'text' );
     1494                                $data['title'] = $this->sanitize_value( $req['title'], 'title' );
    11141495                            }
    11151496                            if ( isset( $req['tasks'] ) && ! empty( $req['tasks'] ) ) {
     
    11491530                            // Sanitize data.
    11501531                            if ( isset( $req['title'] ) ) {
    1151                                 $data['title'] = $this->sanitize_value( $req['title'], 'text' );
     1532                                $data['title'] = $this->sanitize_value( $req['title'], 'title' );
    11521533                            }
    11531534                            if ( isset( $req['tasks'] ) ) {
     
    12081589                        $this->api->get_records_permissions_check()
    12091590                    );
     1591                    if ( '0.2.0' < $this->db->version ) {
     1592                        // Endpoint - Get the option as per the option name.
     1593                        $this->api->create_rest_route(
     1594                            'options',
     1595                            WP_REST_Server::READABLE,
     1596                            function ( $req ) {
     1597
     1598                                // Check valid source using nonce validation.
     1599                                $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     1600
     1601                                $option_name = (string) $req['option_name'];
     1602                                if ( $option_name ) {
     1603                                    // Check for the option name passed a string.
     1604                                    if ( ! isset( $option_name ) || empty( $option_name ) ) {
     1605                                        return new WP_Error( 403, __( 'Must pass an option\'s name.', 'wpnakama' ) );
     1606                                    }
     1607                                    // Valid option name related to the plugin.
     1608                                    $valid_options_arr = array(
     1609                                        'wpnakama_update_indicator',
     1610                                        'blogname',
     1611                                        'wpnakama_rating',
     1612                                    );
     1613                                    if ( ! in_array( $option_name, $valid_options_arr ) ) {
     1614                                        return new WP_Error( 403, __( 'Invaild options name passed.', 'wpnakama' ) );
     1615                                    }
     1616
     1617                                    $option_value = get_option( $req['option_name'] );
     1618                                    if ( $option_name === 'wpnakama_rating' ) {
     1619                                        $option_value = $this->escape_value( $option_value, 'array' );
     1620                                    } else {
     1621                                        $option_value = $this->escape_value( $option_value, 'text' );
     1622                                    }
     1623                                    $res = new WP_REST_Response( $option_value, 200 );
     1624                                } else {
     1625                                    $rewrite = new WP_Rewrite();
     1626                                    $res     = new WP_REST_Response(
     1627                                        array(
     1628                                            'wpnakama_update_indicator' => get_option( 'wpnakama_update_indicator' ),
     1629                                            'using_permalinks' => $rewrite->using_permalinks(),
     1630                                            'wpnakama_rating' => $this->escape_value( get_option( 'wpnakama_rating' ), 'array' ),
     1631                                        ),
     1632                                        200
     1633                                    );
     1634                                }
     1635
     1636                                // return valid option value.
     1637                                return rest_filter_response_fields( $res, new WP_REST_Server(), $req );
     1638                            },
     1639                            $this->api->get_records_permissions_check()
     1640                        );
     1641                        // Endpoint - Update the option as per the option name.
     1642                        $this->api->create_rest_route(
     1643                            'options',
     1644                            WP_REST_Server::EDITABLE,
     1645                            function ( $req ) {
     1646
     1647                                // Check valid source using nonce validation.
     1648                                $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     1649
     1650                                // update the valid plugin option value.
     1651                                $data = array(
     1652                                    'wpnakama_update_indicator' => $this->sanitize_value( $req['wpnakama_update_indicator'], 'text' ),
     1653                                    'wpnakama_rating' => $this->sanitize_value( $req['wpnakama_rating'], 'array' ),
     1654                                );
     1655
     1656                                $successfully_updated = false;
     1657                                foreach ( $data as $option_name => $option_value ) {
     1658                                    $successfully_updated = update_option( $option_name, $option_value );
     1659                                }
     1660                                if ( ! $successfully_updated ) {
     1661                                    return new WP_Error( 403, __( 'Something, went wrong, while update the option.', 'wpnakama' ) );
     1662                                }
     1663
     1664                                $res = new WP_REST_Response( 'Successfully updated!', 200 );
     1665                                return rest_filter_response_fields( $res, new WP_REST_Server(), $req );
     1666                            },
     1667                            function () {
     1668                                return $this->api->update_record_permissions_check();
     1669                            },
     1670                        );
     1671                        // Endpoint - Edit board access by board_id.
     1672                        $this->api->create_rest_route_pathVar(
     1673                            'boardaccess',
     1674                            WP_REST_Server::EDITABLE,
     1675                            function ( $req ) {
     1676
     1677                                // Check valid source using nonce validation.
     1678                                $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     1679
     1680                                $field_name = 'board_id';
     1681
     1682                                // Check the record identifier is an integer.
     1683                                $id = (int) $req[ $field_name ];
     1684                                if ( 0 === $id ) {
     1685                                    return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
     1686                                }
     1687
     1688                                // Sanitize data.
     1689                                $data = array();
     1690
     1691                                if ( isset( $req['access_value'] ) && ! empty( $req['access_value'] ) ) {
     1692                                    $data['access_value'] = $this->sanitize_value( $req['access_value'], 'array' );
     1693                                }
     1694
     1695                                // Prefix table name.
     1696                                $table_name = $this->db->table_prefix( 'wpnakama_board_access' );
     1697
     1698                                return $this->api->update_record( $data, $table_name, $field_name );
     1699                            },
     1700                            function () {
     1701                                return $this->api->update_record_permissions_check();
     1702                            },
     1703                            'board_id'
     1704                        );
     1705                        // Endpoint - Get the license information.
     1706                        $this->api->create_rest_route(
     1707                            'license',
     1708                            WP_REST_Server::READABLE,
     1709                            function ( $req ) {
     1710
     1711                                // Check valid source using nonce validation.
     1712                                $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     1713
     1714                                $license = get_option( 'wpnakama_license' );
     1715                                // Check the license key.
     1716                                if ( isset( $license['key'] ) ) {
     1717                                    $license_message = json_decode( get_option( 'wpnakama_license_message' ) );
     1718                                } else {
     1719                                    $res = new WP_REST_Response(
     1720                                        array(
     1721                                            'status' => 'not found',
     1722                                        ),
     1723                                        200
     1724                                    );
     1725                                }
     1726
     1727                                /**
     1728                                 * License status:
     1729                                 * inactive: The license key is valid but has no activations.
     1730                                 * active: The license key has one or more activations.
     1731                                 * expired: The license key's expiry date has passed.
     1732                                 * disabled: The license key has been manually disabled (now not supported in the app)
     1733                                 */
     1734                                if ( isset( $license_message->data->activated ) || ! empty( $license_message->data->activated ) ) {
     1735                                    $res = new WP_REST_Response(
     1736                                        array(
     1737                                            'status' => $license_message->data->license_key->status,
     1738                                            'usage'  => $license_message->data->license_key->activation_usage,
     1739                                            'limit'  => $license_message->data->license_key->activation_limit,
     1740                                        ),
     1741                                        200
     1742                                    );
     1743                                } else {
     1744                                    if ( isset( $license['key'] ) && isset( $this->license_server_api_url ) ) {
     1745                                        $res = new WP_REST_Response(
     1746                                            array(
     1747                                                'status' => 'inactive',
     1748                                                'usage'  => 0,
     1749                                                'limit'  => 0,
     1750                                            ),
     1751                                            200
     1752                                        );
     1753                                    } else {
     1754                                        $res = new WP_REST_Response(
     1755                                            array(
     1756                                                'status' => 'not found',
     1757                                                'usage'  => 0,
     1758                                                'limit'  => 0,
     1759                                            ),
     1760                                            200
     1761                                        );
     1762                                    }
     1763                                }
     1764
     1765                                // return valid option value.
     1766                                return rest_filter_response_fields( $res, new WP_REST_Server(), $req );
     1767                            },
     1768                            $this->api->get_records_permissions_check()
     1769                        );
     1770                        // Endpoint - Delete the license.
     1771                        $this->api->create_rest_route(
     1772                            'license',
     1773                            WP_REST_Server::DELETABLE,
     1774                            function ( $req ) {
     1775
     1776                                // Check valid source using nonce validation.
     1777                                $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     1778
     1779                                $license = get_option( 'wpnakama_license' );
     1780                                if ( isset( $license['key'] ) ) {
     1781                                    delete_option( 'wpnakama_license' );
     1782                                    $res = array(
     1783                                        'code'    => 200,
     1784                                        'message' => 'Successfully deleted the license key!',
     1785                                    );
     1786                                } else {
     1787                                    return new WP_Error( 403, __( 'License key is missing.', 'wpnakama' ) );
     1788                                }
     1789
     1790                                // return valid option value.
     1791                                return rest_filter_response_fields( $res, new WP_REST_Server(), $req );
     1792                            },
     1793                            function () {
     1794                                return $this->api->delete_record_permissions_check();
     1795                            }
     1796                        );
     1797                        // Endpoint - Update/Add the license key.
     1798                        $this->api->create_rest_route(
     1799                            'license',
     1800                            WP_REST_Server::EDITABLE,
     1801                            function ( $req ) {
     1802
     1803                                // Check valid source using nonce validation.
     1804                                $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     1805
     1806                                if ( ! isset( $req['license_key'] ) || empty( $req['license_key'] ) ) {
     1807                                    return new WP_Error( 403, __( 'License key is required.', 'wpnakama' ) );
     1808                                }
     1809                                // Check the license key.
     1810                                $validate_license = $this->check_license( $req['license_key'], $this->license_server_api_url );
     1811                                if ( ! $validate_license ) {
     1812                                    return new WP_Error( 403, __( 'Invalid License Key.', 'wpnakama' ) );
     1813                                }
     1814
     1815                                // Check the license key already exists.
     1816                                $license = get_option( 'wpnakama_license' );
     1817                                if ( isset( $license['key'] ) ) {
     1818                                    if ( $license['key'] === $req['license_key'] ) {
     1819                                        return new WP_Error( 403, __( 'License key already exists.', 'wpnakama' ) );
     1820                                    }
     1821                                }
     1822
     1823                                $successfully_updated = update_option(
     1824                                    'wpnakama_license',
     1825                                    array(
     1826                                        'key' => $this->sanitize_value( $req['license_key'], 'text' ),
     1827                                    )
     1828                                );
     1829                                if ( ! $successfully_updated ) {
     1830                                    return new WP_Error( 403, __( 'Something, went wrong, while update the option.', 'wpnakama' ) );
     1831                                }
     1832
     1833                                $res = array(
     1834                                    'code'    => 200,
     1835                                    'message' => 'Successfully added the license key!',
     1836                                );
     1837                                return rest_filter_response_fields( $res, new WP_REST_Server(), $req );
     1838                            },
     1839                            function () {
     1840                                return $this->api->update_record_permissions_check();
     1841                            }
     1842                        );
     1843                        // Endpoint - Activate license.
     1844                        $this->api->create_rest_route(
     1845                            'license/activate',
     1846                            WP_REST_Server::EDITABLE,
     1847                            function ( $req ) {
     1848
     1849                                // Check valid source using nonce validation.
     1850                                $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     1851
     1852                                $license         = get_option( 'wpnakama_license' );
     1853                                $license_message = json_decode( get_option( 'wpnakama_license_message' ) );
     1854
     1855                                if ( isset( $license['key'] ) && isset( $this->license_server_api_url ) ) {
     1856                                    if ( isset( $license_message ) ) {
     1857                                        if ( $license_message->data->activated ) {
     1858                                            return new WP_Error( 403, __( 'License key already activated.', 'wpnakama' ) );
     1859                                        }
     1860                                    }
     1861
     1862                                    $activated = json_decode( $this->activate_license( $license['key'], $this->license_server_api_url ) );
     1863                                    $res       = array(
     1864                                        'code'    => 200,
     1865                                        'message' => 'Successfully activated the license key!',
     1866                                    );
     1867                                } else {
     1868                                    return new WP_Error( 403, __( 'Key is missing.', 'wpnakama' ) );
     1869                                }
     1870
     1871                                // return valid option value.
     1872                                return rest_filter_response_fields( $res, new WP_REST_Server(), $req );
     1873                            },
     1874                            function () {
     1875                                return $this->api->update_record_permissions_check();
     1876                            },
     1877                        );
     1878                        // Endpoint - Deactivate license.
     1879                        $this->api->create_rest_route(
     1880                            'license/deactivate',
     1881                            WP_REST_Server::EDITABLE,
     1882                            function ( $req ) {
     1883
     1884                                // Check valid source using nonce validation.
     1885                                $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     1886
     1887                                $license         = get_option( 'wpnakama_license' );
     1888                                $license_message = json_decode( get_option( 'wpnakama_license_message' ) );
     1889
     1890                                if ( ! $license_message ) {
     1891                                    return new WP_Error( 403, __( 'License key already deactivated.', 'wpnakama' ) );
     1892                                }
     1893                                if ( isset( $license['key'] ) && isset( $license_message->data->instance->id ) && isset( $this->license_server_api_url ) ) {
     1894                                    $this->deactivate_license( $license['key'], $license_message->data->instance->id, $this->license_server_api_url );
     1895                                    $res = array(
     1896                                        'code'    => 200,
     1897                                        'message' => 'Successfully deactivated the license key!',
     1898                                    );
     1899                                } else {
     1900                                    if ( ! isset( $license_message->data->instance->id ) ) {
     1901                                        return new WP_Error( 403, __( 'Instance id is missing.', 'wpnakama' ) );
     1902                                    } else {
     1903                                        return new WP_Error( 403, __( 'Key or instance id is missing.', 'wpnakama' ) );
     1904                                    }
     1905                                }
     1906
     1907                                // return valid option value.
     1908                                return rest_filter_response_fields( $res, new WP_REST_Server(), $req );
     1909                            },
     1910                            function () {
     1911                                return $this->api->update_record_permissions_check();
     1912                            },
     1913                        );
     1914                        // Endpoint - Edit board access by board_id.
     1915                        $this->api->create_rest_route_pathVar(
     1916                            'boardaccess',
     1917                            WP_REST_Server::EDITABLE,
     1918                            function ( $req ) {
     1919
     1920                                // Check valid source using nonce validation.
     1921                                $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     1922
     1923                                $field_name = 'board_id';
     1924
     1925                                // Check the record identifier is an integer.
     1926                                $id = (int) $req[ $field_name ];
     1927                                if ( 0 === $id ) {
     1928                                    return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
     1929                                }
     1930
     1931                                // Sanitize data.
     1932                                $data = array();
     1933
     1934                                if ( isset( $req['access_value'] ) && ! empty( $req['access_value'] ) ) {
     1935                                    $data['access_value'] = $this->sanitize_value( $req['access_value'], 'array' );
     1936                                }
     1937
     1938                                // Prefix table name.
     1939                                $table_name = $this->db->table_prefix( 'wpnakama_board_access' );
     1940
     1941                                return $this->api->update_record( $data, $table_name, $field_name );
     1942                            },
     1943                            function () {
     1944                                return $this->api->update_record_permissions_check();
     1945                            },
     1946                            'board_id'
     1947                        );
     1948                        // Endpoint - Delete board access by board_id.
     1949                        $this->api->create_rest_route_pathVar(
     1950                            'boardaccess',
     1951                            WP_REST_Server::DELETABLE,
     1952                            function ( $req ) {
     1953
     1954                                // Check valid source using nonce validation.
     1955                                $this->api->checkRestNonce( $req->get_header( 'X-WP-Nonce' ), 'wp_rest' );
     1956
     1957                                $field_name = 'board_id';
     1958
     1959                                // Check the record identifier is an integer.
     1960                                $id = (int) $req[ $field_name ];
     1961                                if ( 0 === $id ) {
     1962                                    return new WP_Error( 403, __( 'Invaild value passed.', 'wpnakama' ) );
     1963                                }
     1964
     1965                                // Prefix table name.
     1966                                $table_name = $this->db->table_prefix( 'wpnakama_board_access' );
     1967
     1968                                return $this->api->delete_record( $req, $table_name, $field_name );
     1969                            },
     1970                            function () {
     1971                                return $this->api->delete_record_permissions_check();
     1972                            },
     1973                            'board_id'
     1974                        );
     1975                    }
    12101976                }
    12111977            );
     
    12392005                'plugins_loaded',
    12402006                function () {
    1241                     if ( '0.2.0' === $this->db->version ) {
    1242                         $database_tables_arr = array(
    1243                             array(
    1244                                 'name'  => $this->db->table_prefix( 'wpnakama_tasks' ),
    1245                                 'query' => 'CREATE TABLE ' . $this->db->table_prefix( 'wpnakama_tasks' ) . ' (
     2007                    $database_tables_arr = array();
     2008
     2009                    // Create tables as per versions.
     2010                    if ( '0.2.0' <= $this->db->version ) {
     2011                        $database_tables_arr[] = array(
     2012                            'name'  => $this->db->table_prefix( 'wpnakama_tasks' ),
     2013                            'query' => 'CREATE TABLE ' . $this->db->table_prefix( 'wpnakama_tasks' ) . ' (
    12462014                                task_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
    12472015                                content VARCHAR(250),
     
    12582026                                KEY is_completed (is_completed)
    12592027                            )',
    1260                             ),
    1261                             array(
    1262                                 'name'  => $this->db->table_prefix( 'wpnakama_taskslists' ),
    1263                                 'query' => 'CREATE TABLE ' . $this->db->table_prefix( 'wpnakama_taskslists' ) . ' (
     2028                        );
     2029                        $database_tables_arr[] = array(
     2030                            'name'  => $this->db->table_prefix( 'wpnakama_taskslists' ),
     2031                            'query' => 'CREATE TABLE ' . $this->db->table_prefix( 'wpnakama_taskslists' ) . ' (
    12642032                                taskslist_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
    12652033                                title TEXT,
     
    12672035                                PRIMARY KEY (taskslist_id)
    12682036                            )',
    1269                             ),
    12702037                        );
    1271 
    1272                         foreach ( $database_tables_arr as $table ) {
    1273                             $this->db->create_table( $table['name'], $table['query'] );
    1274                         }
     2038                        $database_tables_arr[] = array(
     2039                            'name'  => $this->db->table_prefix( 'wpnakama_cards' ),
     2040                            'query' => 'CREATE TABLE ' . $this->db->table_prefix( 'wpnakama_cards' ) . ' (
     2041                                id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
     2042                                board_id BIGINT(20) NOT NULL DEFAULT 0,
     2043                                card_id BIGINT(20) NOT NULL DEFAULT 0,
     2044                                PRIMARY KEY (id),
     2045                                KEY board_id (board_id),
     2046                                KEY card_id (card_id)
     2047                            )',
     2048                        );
    12752049                    }
     2050                    if ( '0.3.0' <= $this->db->version ) {
     2051                        $database_tables_arr[] = array(
     2052                            'name'  => $this->db->table_prefix( 'wpnakama_boards_access' ),
     2053                            'query' => 'CREATE TABLE ' . $this->db->table_prefix( 'wpnakama_boards_access' ) . ' (
     2054                                id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
     2055                                board_id BIGINT(20) NOT NULL DEFAULT 0,
     2056                                access_value LONGTEXT,
     2057                                PRIMARY KEY (id),
     2058                                KEY board_id (board_id)
     2059                            )',
     2060                        );
     2061                    }
     2062
     2063                    // If multisite.
     2064                    if ( is_multisite() ) {
     2065                        $database_tables_arr[] = array(
     2066                            'name'  => $this->db->table_prefix( 'wpnakama_workspaces' ),
     2067                            'query' => 'CREATE TABLE ' . $this->db->table_prefix( 'wpnakama_workspaces' ) . ' (
     2068                                workspace_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
     2069                                title TEXT,
     2070                                description VARCHAR(250),
     2071                                PRIMARY KEY (workspace_id)
     2072                            )',
     2073                        );
     2074                        $database_tables_arr[] = array(
     2075                            'name'  => $this->db->table_prefix( 'wpnakama_boards' ),
     2076                            'query' => 'CREATE TABLE ' . $this->db->table_prefix( 'wpnakama_boards' ) . ' (
     2077                                board_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
     2078                                title TEXT,
     2079                                description VARCHAR(250),
     2080                                board_date datetime NOT NULL DEFAULT "0000-00-00 00:00:00",
     2081                                board_date_gmt datetime NOT NULL DEFAULT "0000-00-00 00:00:00",
     2082                                start_date datetime NOT NULL DEFAULT "0000-00-00 00:00:00",
     2083                                end_date datetime NOT NULL DEFAULT "0000-00-00 00:00:00",
     2084                                workspace_id BIGINT(20) NOT NULL DEFAULT 0,
     2085                                PRIMARY KEY (board_id),
     2086                                KEY workspace_id (workspace_id),
     2087                                KEY board_date_gmt (board_date_gmt)
     2088                            )',
     2089                        );
     2090                        $database_tables_arr[] = array(
     2091                            'name'  => $this->db->table_prefix( 'wpnakama_phases' ),
     2092                            'query' => 'CREATE TABLE ' . $this->db->table_prefix( 'wpnakama_phases' ) . ' (
     2093                                phase_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
     2094                                board_id BIGINT(20) NOT NULL DEFAULT 0,
     2095                                title TEXT,
     2096                                position BIGINT(20) NOT NULL DEFAULT 0,
     2097                                PRIMARY KEY (phase_id),
     2098                                KEY board_id (board_id),
     2099                                KEY position (position)
     2100                            )',
     2101                        );
     2102                    }
     2103
     2104                    foreach ( $database_tables_arr as $table ) {
     2105                        $this->db->create_table( $table['name'], $table['query'] );
     2106                    }
     2107
     2108                    // Alter table by adding or droping columns from tables.
     2109                    if ( '0.3.0' <= $this->db->version ) {
     2110                        $this->db->alter_table(
     2111                            $this->db->table_prefix( 'wpnakama_boards' ),
     2112                            'start_date',
     2113                            'datetime',
     2114                            'ADD',
     2115                            '0000-00-00 00:00:00'
     2116                        );
     2117                        $this->db->alter_table(
     2118                            $this->db->table_prefix( 'wpnakama_boards' ),
     2119                            'end_date',
     2120                            'datetime',
     2121                            'ADD',
     2122                            '0000-00-00 00:00:00'
     2123                        );
     2124                    }
     2125
    12762126                    return true;
     2127                }
     2128            );
     2129
     2130            return true;
     2131        }
     2132
     2133        /**
     2134         * Define custom post type.
     2135         *
     2136         * @uses WPNakama_CPT
     2137         *
     2138         * @return bool
     2139         */
     2140        public function define_cpt() {
     2141            if ( ! class_exists( 'WPNakama_CPT' ) ) {
     2142                return false;
     2143            }
     2144
     2145            // CPT object.
     2146            $cpt_cards = new WPNakama_CPT(
     2147                array(
     2148                    'slug'          => 'wpn_boards', // Custom post type slug i.e cpt_slug.
     2149                    'plural_name'   => 'WPNakama Boards',  // Custom post type plural name i.e cpt plural name
     2150                    'singular_name' => 'WPNakama Board',  // Custom post type singular name i.e cpt singular name
     2151                    'description'   => 'Boards those are public in view.', // Custom post type description.
     2152                )
     2153            );
     2154
     2155            /** This filter is documented in inc/class-wpnakama-cpt.php */
     2156            add_filter(
     2157                'wpn_boards_cpt_args',
     2158                function ( $args ) {
     2159                    $custom_args             = $args;
     2160                    $custom_args['supports'] = array(
     2161                        'editor',
     2162                    );
     2163                    // Remove from admin area.
     2164                    $custom_args['show_ui']           = false;
     2165                    $custom_args['show_in_menu']      = false;
     2166                    $custom_args['show_in_nav_menus'] = false;
     2167                    $custom_args['show_in_admin_bar'] = false;
     2168                    $custom_args['has_archive']       = false;
     2169
     2170                    // Controlling the REST route i.e. /WPNakama/v1/public_boards
     2171                    $custom_args['rest_base']      = 'public_boards';
     2172                    $custom_args['rest_namespace'] = 'WPNakama/v1';
     2173                    $custom_args['pages']          = true;
     2174
     2175                    // Scrifice the default front view for custom view.
     2176                    $custom_args['public'] = false;
     2177
     2178                    // Controlling the slug.
     2179                    $custom_args['publicly_queryable'] = true;
     2180                    $custom_args['rewrite']            = array(
     2181                        'slug'       => 'wpn/boards',
     2182                        'with_front' => false,
     2183                        'ep_mask'    => EP_ROOT,
     2184                    );
     2185
     2186                    // CPT security and listing.
     2187                    $custom_args['delete_with_user']    = false;
     2188                    $custom_args['exclude_from_search'] = false;
     2189
     2190                    // Flush the previous rewrite rules.
     2191                    flush_rewrite_rules();
     2192
     2193                    // Templating for
     2194                    return $custom_args;
    12772195                }
    12782196            );
     
    13062224            add_action( 'admin_menu', array( $admin, 'menu_pages' ) );
    13072225
     2226            // Add admin actions, to process user interaction.
     2227            add_action( 'admin_init', array( $admin, 'admin_actions' ) );
     2228
    13082229            // Enqueuing scripts and styles that are meant to be used in the administration panel.
    13092230            add_action( 'admin_enqueue_scripts', array( $admin, 'enqueue_styles_scripts' ) );
     2231
     2232            // Enqueuing scripts and styles that are meant to be used in the block sidebar or toolbar.
     2233            add_action( 'enqueue_block_editor_assets', array( $admin, 'enqueue_block_editor_styles_scripts' ) );
     2234
     2235            // Register WPNakama post meta fields.
     2236            add_action( 'init', array( $admin, 'register_post_meta_fields' ) );
     2237
     2238            return true;
     2239        }
     2240
     2241        /**
     2242         * Custom endpoint or query variables as per the permalinks
     2243         * availability.
     2244         *
     2245         * A detailed tutorial on endpoints.
     2246         *
     2247         * @link https://make.wordpress.org/plugins/2012/06/07/rewrite-endpoints-api/
     2248         *
     2249         * @uses add_action()
     2250         * @uses add_filter()
     2251         * @uses add_rewrite_endpoint
     2252         * @uses WP_Rewrite()
     2253         * @uses WP_Rewrite::using_permalinks()
     2254         * @uses status_header()
     2255         * @uses $wp_query
     2256         */
     2257        public function define_endpoints() {
     2258            // List of endpoints.
     2259            $endpoints = array( 'wpn/boards' );
     2260
     2261            // Check pretty permalinks are enabled or not.
     2262            $rewrite              = new WP_Rewrite();
     2263            $is_permalink_enabled = $rewrite->using_permalinks();
     2264
     2265            /**
     2266             * If permalinks enabled, add the custom endpoints otherwise
     2267             * create custom query variables from same name of endpoints with
     2268             * an underscore `_` in place of `/`
     2269             */
     2270            if ( $is_permalink_enabled ) {
     2271                add_action(
     2272                    'init',
     2273                    function () use ( $endpoints ) {
     2274                        foreach ( $endpoints as $endpoint ) {
     2275                            add_rewrite_endpoint( $endpoint, EP_ROOT );
     2276                        }
     2277                    }
     2278                );
     2279            } else {
     2280                $fallback_query_vars = array();
     2281                foreach ( $endpoints as $endpoint ) {
     2282                    $fallback_query_vars[] = str_replace( '/', '_', $endpoint );
     2283                }
     2284                if ( 0 === count( $fallback_query_vars ) ) {
     2285                    add_filter(
     2286                        'query_vars',
     2287                        function ( $arr ) {
     2288                            array_merge( $arr, $fallback_query_vars );
     2289                            return $arr;
     2290                        }
     2291                    );
     2292                }
     2293            }
     2294
     2295            /**
     2296             * Show custom template, as per the endpoint.
     2297             *
     2298             * The reason behind using `template_redirect` is, we know
     2299             * the content we are going to render for specific endpoints.
     2300             * alternativly we can use `template_include` filter.
     2301             */
     2302            add_action(
     2303                'template_redirect',
     2304                function () {
     2305                    global $wp_query;
     2306
     2307                    status_header( 200 );
     2308                    // if this is not a request for specific endpoint then do nothing.
     2309                    if ( isset( $wp_query->query_vars['wpn/boards'] ) || isset( $wp_query->query_vars['wpn_boards'] ) ) {
     2310                        include WPNAKAMA_PLUGIN_PATH . '/frontend/templates/wpn-boards.php';
     2311                        exit;
     2312                    } else {
     2313                        return;
     2314                    }
     2315                }
     2316            );
     2317        }
     2318
     2319        /**
     2320         * Define front end functionalities.
     2321         *
     2322         * @uses add_action()
     2323         * @uses WPNakama_Frontend
     2324         * @uses WPNakama_Frontend::enqueue_styles_scripts()
     2325         *
     2326         * @return bool
     2327         */
     2328        public function define_frontend() {
     2329            if ( ! class_exists( 'WPNakama_Frontend' ) ) {
     2330                return false;
     2331            }
     2332
     2333            // Instantiate the front class.
     2334            $frontend = new WPNakama_Frontend( $this->plugin_uid, $this->version );
     2335
     2336            // Enqueuing scripts and styles that are meant to appear on the front end.
     2337            add_action( 'wp_enqueue_scripts', array( $frontend, 'enqueue_styles_scripts' ), 99 );
     2338
     2339            // Register WPNakama post meta fields.
     2340            add_action( 'init', array( $frontend, 'register_post_meta_fields' ) );
     2341
     2342            return true;
     2343        }
     2344
     2345        /**
     2346         * Define cache.
     2347         * The core purpose of this function is to clear the cache
     2348         * and prevent to show the stale data to the user.
     2349         *
     2350         * @uses WPNakama_Cache
     2351         * @uses WPNakama_Cache::clear_cache()
     2352         * @uses add_action()
     2353         *
     2354         * @return bool
     2355         */
     2356        public function define_cache() {
     2357            if ( ! class_exists( 'WPNakama_Cache' ) ) {
     2358                return false;
     2359            }
     2360
     2361            // Instantiate the cache class.
     2362            $cache = new WPNakama_Cache( $this->plugin_uid, $this->version );
     2363
     2364            // On plugin load, clear the cache on slected Nakama admin pages.
     2365            add_action( 'plugins_loaded', array( $cache, 'clear_cache' ) );
     2366
     2367            return true;
     2368        }
     2369
     2370        /**
     2371         * Define updater.
     2372         * The core purpose of this function is to update the plugin
     2373         * from the remote server.
     2374         * It'll check the plugin version and update the plugin if
     2375         * the new version is available.
     2376         *
     2377         * @uses WPNakama_Updater
     2378         * @uses WPNakama_Updater::info()
     2379         * @uses WPNakama_Updater::update()
     2380         * @uses WPNakama_Updater::purge()
     2381         * @uses add_filter()
     2382         * @uses add_action()
     2383         *
     2384         * @return bool
     2385         */
     2386        public function define_updater() {
     2387            if ( ! class_exists( 'WPNakama_Updater' ) ) {
     2388                return false;
     2389            }
     2390
     2391            // Instantiate the updater class.
     2392            $updater = new WPNakama_Updater( $this->plugin_uid, $this->version, $this->license_server_api_url );
     2393
     2394            // Extend the plugin information.
     2395            add_filter( 'plugins_api', array( $updater, 'info' ), 20, 3 );
     2396
     2397            // Override the transient data of plugin.
     2398            add_filter( 'site_transient_update_plugins', array( $updater, 'update' ) );
     2399            add_filter( 'transient_update_plugins', array( $updater, 'update' ) );
     2400
     2401            // Clear the transient data after plugin update.
     2402            add_action( 'upgrader_process_complete', array( $updater, 'purge' ), 10, 2 );
    13102403
    13112404            return true;
     
    13172410        public function run() {
    13182411
     2412            // Adding updater.
     2413            $this->define_updater();
     2414
    13192415            // Adding database.
    13202416            $this->define_database();
     
    13232419            $this->define_api();
    13242420
     2421            // Calling custom post type.
     2422            $this->define_cpt();
     2423
    13252424            // Calling admin functionalities.
    13262425            $this->define_admin();
     2426
     2427            // Adding cache.
     2428            $this->define_cache();
     2429
     2430            // Calling front end functionalities.
     2431            $this->define_frontend();
     2432
     2433            // Custom endpoints for frontend.
     2434            $this->define_endpoints();
     2435
    13272436        }
    13282437    }
  • wpnakama/trunk/inc/wpnakama-helper-trait.php

    r3044042 r3131031  
    4141
    4242            switch ( $form_ele ) {
     43                case 'title':
     44                    $sanitized_val = sanitize_text_field( $val );
     45                    break;
    4346                case 'text':
    4447                    $sanitized_val = sanitize_text_field( $val );
     
    98101                    break;
    99102                case 'textarea':
    100                     $escaped_val = esc_textarea( $val );
     103                    $escaped_val = wp_kses_post( $val );
    101104                    break;
    102105                case 'content':
     
    104107                    break;
    105108                case 'array':
    106                     $escaped_val = maybe_unserialize( array_map( 'maybe_unserialize', $val ) );
     109                    $unserialized_value = maybe_unserialize( $val );
     110                    $escaped_val        = array_map( 'maybe_unserialize', $unserialized_value );
    107111                    break;
    108112                case 'checkbox':
     
    125129            return $escaped_val;
    126130        }
     131
     132        /**
     133         * Check the license key.
     134         *
     135         * @param string $license_key License key.
     136         * @param string $api_url License server API URL.
     137         */
     138        public static function check_license( $license_key, $api_url ) {
     139            $activation_url = add_query_arg(
     140                array(
     141                    'license_key'   => $license_key,
     142                    'instance_name' => home_url(),
     143                ),
     144                $api_url . '/update'
     145            );
     146
     147            $response = wp_remote_get(
     148                $activation_url,
     149                array(
     150                    'sslverify' => false,
     151                    'timeout'   => 10,
     152                )
     153            );
     154
     155            return json_decode( wp_remote_retrieve_body( $response ) )->success;
     156        }
     157
     158        /**
     159         * Activate the license key.
     160         *
     161         * @param string $license_key License key.
     162         * @param string $api_url License server API URL.
     163         *
     164         * @return void
     165         */
     166        public static function activate_license( $license_key, $api_url ) {
     167            $activation_url = add_query_arg(
     168                array(
     169                    'license_key'   => $license_key,
     170                    'instance_name' => home_url(),
     171                ),
     172                $api_url . '/activate'
     173            );
     174
     175            $response = wp_remote_get(
     176                $activation_url,
     177                array(
     178                    'sslverify' => false,
     179                    'timeout'   => 10,
     180                )
     181            );
     182
     183            if (
     184                is_wp_error( $response )
     185                || ( 200 !== wp_remote_retrieve_response_code( $response ) && 400 !== wp_remote_retrieve_response_code( $response ) )
     186                || empty( wp_remote_retrieve_body( $response ) || ! json_decode( wp_remote_retrieve_body( $response ) )->activated )
     187            ) {
     188                return false;
     189            }
     190
     191            update_option( 'wpnakama_license_message', wp_remote_retrieve_body( $response ) );
     192            return wp_remote_retrieve_body( $response );
     193        }
     194
     195        /**
     196         * Deactivate the license key.
     197         *
     198         * @param string $license_key License key.
     199         * @param string $instance_id Instance ID.
     200         * @param string $api_url License server API URL.
     201         *
     202         * @return void
     203         */
     204        public function deactivate_license( $license_key, $instance_id, $api_url ) {
     205            $deactivation_url = add_query_arg(
     206                array(
     207                    'license_key' => $license_key,
     208                    'instance_id' => $instance_id,
     209                ),
     210                $api_url . '/deactivate'
     211            );
     212
     213            $response = wp_remote_get(
     214                $deactivation_url,
     215                array(
     216                    'sslverify' => false,
     217                    'timeout'   => 10,
     218                )
     219            );
     220
     221            if ( is_wp_error( $response ) ) {
     222                return false;
     223            }
     224
     225            if ( 200 === wp_remote_retrieve_response_code( $response ) ) {
     226                delete_option( 'wpnakama_license_message' );
     227            }
     228            return true;
     229        }
    127230    }
    128231}
  • wpnakama/trunk/languages/wpnakama.pot

    r3034489 r3131031  
    1 # Copyright (C) 2023 WPNAKAMA.COM This file is distributed under the same license as the WPNakama package
     1# Copyright (C) 2024 kantbtrue, qdonow, designthingy, savydv
     2# This file is distributed under the GPLv2 or later.
    23msgid ""
    34msgstr ""
    4 "Project-Id-Version: WPNakama - Fast and Simple Project Management Tool 0.1.0\n"
    5 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpnakama\n"
    6 "Last-Translator: Shashikant Yadav <[email protected]>\n"
     5"Project-Id-Version: WPNakama - Team and client collaboration Starts Here 0.3.0\n"
     6"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpnakama-main\n"
     7"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    78"Language-Team: LANGUAGE <[email protected]>\n"
    89"MIME-Version: 1.0\n"
    910"Content-Type: text/plain; charset=UTF-8\n"
    1011"Content-Transfer-Encoding: 8bit\n"
    11 "POT-Creation-Date: 2023-12-19T06:03:09+00:00\n"
     12"POT-Creation-Date: 2024-08-05T08:06:01+00:00\n"
    1213"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1314"X-Generator: WP-CLI 2.9.0\n"
     
    1516
    1617#. Plugin Name of the plugin
    17 msgid "WPNakama - Fast and Simple Project Management Tool"
     18msgid "WPNakama - Team and client collaboration Starts Here"
    1819msgstr ""
    1920
    2021#. Description of the plugin
    21 msgid "A management tool right into your WordPress dashboard."
     22msgid "Do you have Clients, a Team, & deadlines? OR Struggling with Productivity and Transparency? Then WPNakama is just meant for you."
    2223msgstr ""
    2324
    2425#. Author of the plugin
    25 msgid "kantbtrue, qdonow, designthingy"
     26msgid "kantbtrue, qdonow, designthingy, savydv"
    2627msgstr ""
    2728
     
    3536
    3637#: admin/class-wpnakama-admin.php:82
    37 msgid "Documentaton"
     38msgid "Documentation"
    3839msgstr ""
    3940
     
    4445#: admin/class-wpnakama-admin.php:94
    4546#: admin/class-wpnakama-admin.php:95
     47#: admin/app/build/417.js:171
     48#: admin/app/build/618.js:1
    4649msgid "Boards"
     50msgstr ""
     51
     52#: admin/class-wpnakama-admin.php:98
     53msgid "Releases, Updates, Help Center on WPNakama"
     54msgstr ""
     55
     56#: admin/class-wpnakama-admin.php:99
     57msgid "Resources"
     58msgstr ""
     59
     60#: admin/class-wpnakama-admin.php:102
     61#: admin/app/build/index.js:1
     62msgid "License Upgrade"
     63msgstr ""
     64
     65#: admin/class-wpnakama-admin.php:103
     66msgid "License"
    4767msgstr ""
    4868
     
    5171msgstr ""
    5272
     73#: frontend/templates/parts/board.php:28
     74msgid "Skip to content"
     75msgstr ""
     76
     77#: frontend/templates/parts/board.php:144
     78#: admin/app/build/417.js:171
     79#: admin/app/build/618.js:1
     80#: admin/block-editor/build/index.js:1
     81msgid "Completed"
     82msgstr ""
     83
     84#: frontend/templates/parts/board.php:197
     85msgid "Visible to all logged in members."
     86msgstr ""
     87
    5388#: inc/activate.php:31
    5489msgid "To use this plugin, upgrade your WordPress version"
     
    67102msgstr ""
    68103
    69 #: inc/class-wpnakama-api.php:191
    70 #: inc/class-wpnakama-api.php:224
    71 #: inc/class-wpnakama-api.php:274
    72 #: inc/class-wpnakama-api.php:315
    73 #: inc/class-wpnakama-api.php:358
     104#: inc/class-wpnakama-api.php:291
     105#: inc/class-wpnakama-api.php:330
     106#: inc/class-wpnakama-api.php:380
     107#: inc/class-wpnakama-api.php:432
     108#: inc/class-wpnakama-api.php:475
    74109msgid "Not Found"
    75110msgstr ""
    76111
    77 #: inc/class-wpnakama.php:148
    78 #: inc/class-wpnakama.php:258
    79 #: inc/class-wpnakama.php:298
    80 #: inc/class-wpnakama.php:325
     112#: inc/class-wpnakama.php:167
     113#: inc/class-wpnakama.php:270
    81114#: inc/class-wpnakama.php:353
    82 #: inc/class-wpnakama.php:389
    83 #: inc/class-wpnakama.php:412
    84 #: inc/class-wpnakama.php:462
    85 #: inc/class-wpnakama.php:482
    86 #: inc/class-wpnakama.php:505
    87 #: inc/class-wpnakama.php:526
    88 #: inc/class-wpnakama.php:549
    89 #: inc/class-wpnakama.php:588
    90 #: inc/class-wpnakama.php:630
    91 #: inc/class-wpnakama.php:674
    92 #: inc/class-wpnakama.php:694
    93 #: inc/class-wpnakama.php:717
    94 #: inc/class-wpnakama.php:779
    95 #: inc/class-wpnakama.php:806
     115#: inc/class-wpnakama.php:456
     116#: inc/class-wpnakama.php:484
     117#: inc/class-wpnakama.php:520
     118#: inc/class-wpnakama.php:543
     119#: inc/class-wpnakama.php:593
     120#: inc/class-wpnakama.php:613
     121#: inc/class-wpnakama.php:636
     122#: inc/class-wpnakama.php:657
     123#: inc/class-wpnakama.php:680
     124#: inc/class-wpnakama.php:739
     125#: inc/class-wpnakama.php:767
     126#: inc/class-wpnakama.php:790
     127#: inc/class-wpnakama.php:833
     128#: inc/class-wpnakama.php:877
     129#: inc/class-wpnakama.php:897
     130#: inc/class-wpnakama.php:920
     131#: inc/class-wpnakama.php:1008
     132#: inc/class-wpnakama.php:1031
     133#: inc/class-wpnakama.php:1066
     134#: inc/class-wpnakama.php:1116
     135#: inc/class-wpnakama.php:1139
     136#: inc/class-wpnakama.php:1187
     137#: inc/class-wpnakama.php:1244
     138#: inc/class-wpnakama.php:1259
     139#: inc/class-wpnakama.php:1274
     140#: inc/class-wpnakama.php:1297
     141#: inc/class-wpnakama.php:1348
     142#: inc/class-wpnakama.php:1375
     143#: inc/class-wpnakama.php:1442
     144#: inc/class-wpnakama.php:1457
     145#: inc/class-wpnakama.php:1472
     146#: inc/class-wpnakama.php:1523
     147#: inc/class-wpnakama.php:1562
     148#: inc/class-wpnakama.php:1685
     149#: inc/class-wpnakama.php:1928
     150#: inc/class-wpnakama.php:1962
    96151msgid "Invaild value passed."
    97152msgstr ""
    98153
    99 #: inc/class-wpnakama.php:359
    100 #: inc/class-wpnakama.php:594
    101 #: inc/class-wpnakama.php:636
     154#: inc/class-wpnakama.php:490
     155#: inc/class-wpnakama.php:718
     156#: inc/class-wpnakama.php:796
     157#: inc/class-wpnakama.php:839
     158#: inc/class-wpnakama.php:1412
    102159msgid "Invaild order field passed."
    103160msgstr ""
    104161
    105 #: inc/class-wpnakama.php:368
    106 #: inc/class-wpnakama.php:603
    107 #: inc/class-wpnakama.php:645
     162#: inc/class-wpnakama.php:499
     163#: inc/class-wpnakama.php:727
     164#: inc/class-wpnakama.php:805
     165#: inc/class-wpnakama.php:848
     166#: inc/class-wpnakama.php:1421
    108167msgid "Invaild order passed."
    109168msgstr ""
    110169
    111 #: inc/class-wpnakama.php:383
    112 #: inc/class-wpnakama.php:476
    113 #: inc/class-wpnakama.php:520
    114 #: inc/class-wpnakama.php:688
     170#: inc/class-wpnakama.php:514
     171#: inc/class-wpnakama.php:607
     172#: inc/class-wpnakama.php:651
     173#: inc/class-wpnakama.php:891
     174#: inc/class-wpnakama.php:1238
     175#: inc/class-wpnakama.php:1436
    115176msgid "Argument use to filter the records by board id."
    116177msgstr ""
    117178
    118 #: admin/app/src/components/Error.jsx:29
     179#: inc/class-wpnakama.php:753
     180msgid "Table doesn't exists."
     181msgstr ""
     182
     183#: inc/class-wpnakama.php:761
     184#: inc/class-wpnakama.php:1002
     185msgid "Argument required to add the record by board id."
     186msgstr ""
     187
     188#: inc/class-wpnakama.php:1060
     189#: inc/class-wpnakama.php:1110
     190#: inc/class-wpnakama.php:1181
     191msgid "Argument use to delete the record by board id."
     192msgstr ""
     193
     194#: inc/class-wpnakama.php:1090
     195msgid "Invaild value passed. A valid board_id required."
     196msgstr ""
     197
     198#: inc/class-wpnakama.php:1253
     199#: inc/class-wpnakama.php:1451
     200#: inc/class-wpnakama.php:1466
     201msgid "Argument use to filter the records by card id."
     202msgstr ""
     203
     204#: inc/class-wpnakama.php:1268
     205msgid "Argument use to filter the records by user id."
     206msgstr ""
     207
     208#: inc/class-wpnakama.php:1605
     209msgid "Must pass an option's name."
     210msgstr ""
     211
     212#: inc/class-wpnakama.php:1614
     213msgid "Invaild options name passed."
     214msgstr ""
     215
     216#: inc/class-wpnakama.php:1661
     217#: inc/class-wpnakama.php:1830
     218msgid "Something, went wrong, while update the option."
     219msgstr ""
     220
     221#: inc/class-wpnakama.php:1787
     222msgid "License key is missing."
     223msgstr ""
     224
     225#: inc/class-wpnakama.php:1807
     226#: admin/app/build/357.js:1
     227msgid "License key is required."
     228msgstr ""
     229
     230#: inc/class-wpnakama.php:1812
     231msgid "Invalid License Key."
     232msgstr ""
     233
     234#: inc/class-wpnakama.php:1819
     235msgid "License key already exists."
     236msgstr ""
     237
     238#: inc/class-wpnakama.php:1858
     239msgid "License key already activated."
     240msgstr ""
     241
     242#: inc/class-wpnakama.php:1868
     243msgid "Key is missing."
     244msgstr ""
     245
     246#: inc/class-wpnakama.php:1891
     247msgid "License key already deactivated."
     248msgstr ""
     249
     250#: inc/class-wpnakama.php:1901
     251msgid "Instance id is missing."
     252msgstr ""
     253
     254#: inc/class-wpnakama.php:1903
     255msgid "Key or instance id is missing."
     256msgstr ""
     257
     258#: admin/app/build/320.js:1
     259#: admin/app/build/417.js:1
     260#: admin/app/build/618.js:1
     261msgid "soon"
     262msgstr ""
     263
     264#: admin/app/build/320.js:1
     265#: admin/app/build/618.js:1
     266msgid "Rename"
     267msgstr ""
     268
     269#: admin/app/build/320.js:1
     270msgid "Invite Team"
     271msgstr ""
     272
     273#: admin/app/build/320.js:1
     274msgid "Pin"
     275msgstr ""
     276
     277#: admin/app/build/320.js:1
     278msgid "Clone"
     279msgstr ""
     280
     281#: admin/app/build/320.js:1
     282msgid "From"
     283msgstr ""
     284
     285#: admin/app/build/320.js:1
     286msgid "Due Today"
     287msgstr ""
     288
     289#: admin/app/build/320.js:1
     290msgid "days"
     291msgstr ""
     292
     293#: admin/app/build/320.js:1
     294#: admin/block-editor/build/index.js:1
     295msgid "Overdue"
     296msgstr ""
     297
     298#: admin/app/build/320.js:1
     299msgid "Public board"
     300msgstr ""
     301
     302#: admin/app/build/320.js:1
     303msgid "Successfuly renamed the board"
     304msgstr ""
     305
     306#: admin/app/build/320.js:1
     307#: admin/app/build/417.js:171
     308#: admin/app/build/618.js:1
     309msgid "Something went wrong!"
     310msgstr ""
     311
     312#: admin/app/build/320.js:1
     313#: admin/app/build/417.js:171
     314#: admin/app/build/618.js:1
     315msgid "Save the edited board title"
     316msgstr ""
     317
     318#: admin/app/build/320.js:1
     319#: admin/app/build/417.js:171
     320#: admin/app/build/618.js:1
     321msgid "Disable rename mode"
     322msgstr ""
     323
     324#: admin/app/build/320.js:1
     325#: admin/app/build/417.js:171
     326#: admin/app/build/618.js:1
     327msgid "There was a problem with your submission"
     328msgstr ""
     329
     330#: admin/app/build/320.js:1
     331#: admin/app/build/417.js:171
     332#: admin/app/build/618.js:1
     333msgid "Title is required."
     334msgstr ""
     335
     336#: admin/app/build/320.js:1
     337#: admin/app/build/417.js:171
     338#: admin/app/build/618.js:1
     339msgid "At least have 3 characters."
     340msgstr ""
     341
     342#: admin/app/build/320.js:1
     343#: admin/app/build/618.js:1
     344msgid "Not more than 50 charaters."
     345msgstr ""
     346
     347#: admin/app/build/320.js:1
     348msgid "Add Board"
     349msgstr ""
     350
     351#: admin/app/build/320.js:1
     352msgid "Close the modal"
     353msgstr ""
     354
     355#: admin/app/build/320.js:1
     356#: admin/app/build/618.js:1
     357msgid "Title"
     358msgstr ""
     359
     360#: admin/app/build/320.js:1
     361msgid "Board title is required."
     362msgstr ""
     363
     364#: admin/app/build/320.js:1
     365msgid "At most 50 charaters."
     366msgstr ""
     367
     368#: admin/app/build/320.js:1
     369#: admin/app/build/417.js:171
     370#: admin/app/build/618.js:1
     371msgid "A self explanatory title is more searchable."
     372msgstr ""
     373
     374#: admin/app/build/320.js:1
     375msgid "Description"
     376msgstr ""
     377
     378#: admin/app/build/320.js:1
     379msgid "At most 250 charaters"
     380msgstr ""
     381
     382#: admin/app/build/320.js:1
     383#: admin/app/build/618.js:1
     384msgid "A short description will help others to understand the purpose of the board."
     385msgstr ""
     386
     387#: admin/app/build/320.js:1
     388#: admin/app/build/618.js:1
     389msgid "Board Description"
     390msgstr ""
     391
     392#: admin/app/build/320.js:1
     393msgid "Board added"
     394msgstr ""
     395
     396#: admin/app/build/320.js:1
     397msgid "Something went wrong while saving the board"
     398msgstr ""
     399
     400#: admin/app/build/320.js:1
     401#: admin/app/build/618.js:1
     402msgid "Adding"
     403msgstr ""
     404
     405#: admin/app/build/320.js:1
     406#: admin/app/build/357.js:1
     407#: admin/app/build/618.js:1
     408msgid "Add"
     409msgstr ""
     410
     411#: admin/app/build/320.js:1
     412#: admin/app/build/417.js:171
     413#: admin/app/build/618.js:1
     414msgid "Are you sure?"
     415msgstr ""
     416
     417#: admin/app/build/320.js:1
     418msgid "Deleting a board will delete all its data from server."
     419msgstr ""
     420
     421#: admin/app/build/320.js:1
     422#: admin/app/build/618.js:1
     423msgid "Something went wrong while deleting board."
     424msgstr ""
     425
     426#: admin/app/build/320.js:1
     427#: admin/app/build/357.js:1
     428#: admin/app/build/417.js:171
     429#: admin/app/build/618.js:1
     430#: admin/app/build/788.js:1
     431msgid "Cancel"
     432msgstr ""
     433
     434#: admin/app/build/320.js:1
     435msgid "Board deleted"
     436msgstr ""
     437
     438#: admin/app/build/320.js:1
     439msgid "Something went wrong while deleting the board"
     440msgstr ""
     441
     442#: admin/app/build/320.js:1
     443#: admin/app/build/417.js:171
     444#: admin/app/build/618.js:1
     445msgid "Delete"
     446msgstr ""
     447
     448#: admin/app/build/320.js:1
     449msgid "Effective collaboration starts with project board"
     450msgstr ""
     451
     452#: admin/app/build/320.js:1
     453msgid "Create Board"
     454msgstr ""
     455
     456#: admin/app/build/320.js:1
     457msgid "Processing..."
     458msgstr ""
     459
     460#: admin/app/build/320.js:1
     461msgid "Team and Client Collaboration"
     462msgstr ""
     463
     464#: admin/app/build/320.js:1
     465msgid "Starts Here"
     466msgstr ""
     467
     468#: admin/app/build/357.js:1
     469msgid "Client Management"
     470msgstr ""
     471
     472#: admin/app/build/357.js:1
     473msgid "Manage your clients and their projects with ease."
     474msgstr ""
     475
     476#: admin/app/build/357.js:1
     477msgid "Upcoming feature"
     478msgstr ""
     479
     480#: admin/app/build/357.js:1
     481msgid "Agency Management"
     482msgstr ""
     483
     484#: admin/app/build/357.js:1
     485msgid "Manage your various teams and do seamless project management."
     486msgstr ""
     487
     488#: admin/app/build/357.js:1
     489msgid "Editorial Management"
     490msgstr ""
     491
     492#: admin/app/build/357.js:1
     493msgid "Discuss, plan and execute your content strategy with ease."
     494msgstr ""
     495
     496#: admin/app/build/357.js:1
     497msgid "Message board"
     498msgstr ""
     499
     500#: admin/app/build/357.js:1
     501msgid "Share notes, ideas and feedback with your team members and clients."
     502msgstr ""
     503
     504#: admin/app/build/357.js:1
     505msgid "File Attachment"
     506msgstr ""
     507
     508#: admin/app/build/357.js:1
     509msgid "Attach files to your boards and cards for better collaboration."
     510msgstr ""
     511
     512#: admin/app/build/357.js:1
     513msgid "Testing"
     514msgstr ""
     515
     516#: admin/app/build/357.js:1
     517msgid "Team management"
     518msgstr ""
     519
     520#: admin/app/build/357.js:1
     521msgid "Create teams and manage their access to boards and cards."
     522msgstr ""
     523
     524#: admin/app/build/357.js:1
     525msgid "Restrict board access with Password"
     526msgstr ""
     527
     528#: admin/app/build/357.js:1
     529msgid "Add password to your boards to restrict access to only authorized users."
     530msgstr ""
     531
     532#: admin/app/build/357.js:1
     533msgid "Activity log"
     534msgstr ""
     535
     536#: admin/app/build/357.js:1
     537msgid "Keep track of every activity on your boards and cards."
     538msgstr ""
     539
     540#: admin/app/build/357.js:1
     541msgid "Unlock All Pro Features"
     542msgstr ""
     543
     544#: admin/app/build/357.js:1
     545msgid "Enter your license key to unlock all advanced features to power up your workspace."
     546msgstr ""
     547
     548#: admin/app/build/357.js:1
     549msgid "Manage your license key"
     550msgstr ""
     551
     552#: admin/app/build/357.js:1
     553msgid "You can activate or deactivate license on this site."
     554msgstr ""
     555
     556#: admin/app/build/357.js:1
     557msgid "At least have 16 characters."
     558msgstr ""
     559
     560#: admin/app/build/357.js:1
     561msgid "I don't have any license key"
     562msgstr ""
     563
     564#: admin/app/build/357.js:1
     565msgid "Early Patron Discount"
     566msgstr ""
     567
     568#: admin/app/build/357.js:1
     569msgid "Pro features are under-development and testing. By becoming an early patron you will get all pro features, support and updates for lifetime."
     570msgstr ""
     571
     572#: admin/app/build/357.js:1
     573msgid "Buy now"
     574msgstr ""
     575
     576#: admin/app/build/357.js:1
     577msgid "Remove and deactivate license"
     578msgstr ""
     579
     580#: admin/app/build/357.js:1
     581msgid "xxxx-xxxx-xxxx-xxxx"
     582msgstr ""
     583
     584#: admin/app/build/357.js:1
     585msgid "1 site license"
     586msgstr ""
     587
     588#: admin/app/build/357.js:1
     589msgid "Activate"
     590msgstr ""
     591
     592#: admin/app/build/357.js:1
     593msgid "Deactivate"
     594msgstr ""
     595
     596#: admin/app/build/357.js:1
     597msgid "Upcoming pro features"
     598msgstr ""
     599
     600#: admin/app/build/417.js:1
     601msgid "Upgrade to Pro"
     602msgstr ""
     603
     604#: admin/app/build/417.js:1
     605msgid "Share with Client"
     606msgstr ""
     607
     608#: admin/app/build/417.js:1
     609msgid "Let your client create task, attach files, leave messages and see the progress."
     610msgstr ""
     611
     612#: admin/app/build/417.js:1
     613msgid "Protect with Password"
     614msgstr ""
     615
     616#: admin/app/build/417.js:1
     617msgid "Restrict who can access your board publicly using passwords."
     618msgstr ""
     619
     620#: admin/app/build/417.js:1
     621msgid "Team Collaboration"
     622msgstr ""
     623
     624#: admin/app/build/417.js:1
     625msgid "Assign tasks, share files and drop message right from your board’s dashboard. Create teams, assign and start collaborating."
     626msgstr ""
     627
     628#: admin/app/build/417.js:171
     629#: admin/app/build/618.js:1
     630msgid "Upcoming Pro Feature"
     631msgstr ""
     632
     633#: admin/app/build/417.js:171
     634msgid "Deleting a todo will delete all its data from server."
     635msgstr ""
     636
     637#: admin/app/build/417.js:171
     638msgid "Successfully deleted the todo."
     639msgstr ""
     640
     641#: admin/app/build/417.js:171
     642msgid "Something went wrong while deleting the todo"
     643msgstr ""
     644
     645#: admin/app/build/417.js:171
     646msgid "Something went wrong while deleting this list."
     647msgstr ""
     648
     649#: admin/app/build/417.js:171
     650msgid "Successfuly renamed the todo"
     651msgstr ""
     652
     653#: admin/app/build/417.js:171
     654msgid "Filter by"
     655msgstr ""
     656
     657#: admin/app/build/417.js:171
     658msgid "Complete"
     659msgstr ""
     660
     661#: admin/app/build/417.js:171
     662msgid "Incomplete"
     663msgstr ""
     664
     665#: admin/app/build/417.js:171
     666msgid "Successfully added the todo."
     667msgstr ""
     668
     669#: admin/app/build/417.js:171
     670msgid "Something went wrong while saving the todo"
     671msgstr ""
     672
     673#: admin/app/build/417.js:171
     674msgid "Empty todo is not allowed."
     675msgstr ""
     676
     677#: admin/app/build/417.js:171
     678msgid "Type and enter to create a ToDo"
     679msgstr ""
     680
     681#: admin/app/build/417.js:171
     682msgid "enter"
     683msgstr ""
     684
     685#: admin/app/build/417.js:171
     686msgid "Search posts"
     687msgstr ""
     688
     689#: admin/app/build/417.js:171
     690msgid "Fetching Data"
     691msgstr ""
     692
     693#: admin/app/build/417.js:171
     694msgid "to close"
     695msgstr ""
     696
     697#: admin/app/build/417.js:171
     698#: admin/app/build/618.js:1
     699msgid "Select deadline"
     700msgstr ""
     701
     702#: admin/app/build/417.js:171
     703msgid "Someting went wrong while saving."
     704msgstr ""
     705
     706#: admin/app/build/417.js:171
     707msgid "Mark as complete"
     708msgstr ""
     709
     710#: admin/app/build/417.js:171
     711msgid "Move to"
     712msgstr ""
     713
     714#: admin/app/build/417.js:171
     715msgid "Todos"
     716msgstr ""
     717
     718#: admin/app/build/417.js:171
     719#: admin/app/build/618.js:1
     720msgid "Settings"
     721msgstr ""
     722
     723#: admin/app/build/417.js:171
     724msgid "Activity Log"
     725msgstr ""
     726
     727#: admin/app/build/417.js:171
     728#: admin/block-editor/build/index.js:1
     729msgid "Notes"
     730msgstr ""
     731
     732#: admin/app/build/417.js:171
     733msgid "Informative text will help others to understand the purpose."
     734msgstr ""
     735
     736#: admin/app/build/417.js:171
     737msgid "Successfully saved the notes."
     738msgstr ""
     739
     740#: admin/app/build/417.js:171
     741msgid "Saving notes"
     742msgstr ""
     743
     744#: admin/app/build/417.js:171
     745msgid "Save notes"
     746msgstr ""
     747
     748#: admin/app/build/417.js:171
     749msgid "Add notes here"
     750msgstr ""
     751
     752#: admin/app/build/417.js:171
     753msgid "Add a list of todos in your task."
     754msgstr ""
     755
     756#: admin/app/build/417.js:171
     757msgid "Save as template"
     758msgstr ""
     759
     760#: admin/app/build/417.js:171
     761msgid "Posts"
     762msgstr ""
     763
     764#: admin/app/build/417.js:171
     765msgid "Add a list of posts in your task."
     766msgstr ""
     767
     768#: admin/app/build/417.js:171
     769msgid "Successfully saved the posts."
     770msgstr ""
     771
     772#: admin/app/build/417.js:171
     773msgid "Someting went wrong while saving the posts in the task."
     774msgstr ""
     775
     776#: admin/app/build/417.js:171
     777msgid "Saving posts"
     778msgstr ""
     779
     780#: admin/app/build/417.js:171
     781msgid "Save posts"
     782msgstr ""
     783
     784#: admin/app/build/417.js:171
     785msgid "Update task settings"
     786msgstr ""
     787
     788#: admin/app/build/417.js:171
     789#: admin/app/build/618.js:1
     790msgid "Successfully saved the changes."
     791msgstr ""
     792
     793#: admin/app/build/417.js:171
     794msgid "Something went wrong while saving the task, please refresh the page and try again."
     795msgstr ""
     796
     797#: admin/app/build/417.js:171
     798msgid "Saving"
     799msgstr ""
     800
     801#: admin/app/build/417.js:171
     802#: admin/app/build/618.js:1
     803msgid "Save changes"
     804msgstr ""
     805
     806#: admin/app/build/417.js:171
     807msgid "Task Title"
     808msgstr ""
     809
     810#: admin/app/build/417.js:171
     811msgid "Task title"
     812msgstr ""
     813
     814#: admin/app/build/417.js:171
     815#: admin/app/build/618.js:1
     816msgid "Field is required."
     817msgstr ""
     818
     819#: admin/app/build/417.js:171
     820#: admin/app/build/618.js:1
     821msgid "At least 3 characters required."
     822msgstr ""
     823
     824#: admin/app/build/417.js:171
     825#: admin/app/build/618.js:1
     826msgid "At most 50 characters allowed."
     827msgstr ""
     828
     829#: admin/app/build/417.js:171
     830#: admin/app/build/618.js:1
     831msgid "Deadline"
     832msgstr ""
     833
     834#: admin/app/build/417.js:171
     835msgid "Set the ending date for task."
     836msgstr ""
     837
     838#: admin/app/build/417.js:171
     839#: admin/app/build/618.js:1
     840msgid "Select date"
     841msgstr ""
     842
     843#: admin/app/build/618.js:1
     844msgid "Successfuly renamed the kanban list"
     845msgstr ""
     846
     847#: admin/app/build/618.js:1
     848msgid "Not more than 15 charaters."
     849msgstr ""
     850
     851#: admin/app/build/618.js:1
     852msgid "List title is required."
     853msgstr ""
     854
     855#: admin/app/build/618.js:1
     856msgid "At most have 25 characters."
     857msgstr ""
     858
     859#: admin/app/build/618.js:1
     860msgid "A self explanatory title is good to have for a list."
     861msgstr ""
     862
     863#: admin/app/build/618.js:1
     864msgid "Something went wrong while saving list."
     865msgstr ""
     866
     867#: admin/app/build/618.js:1
     868msgid "List added"
     869msgstr ""
     870
     871#: admin/app/build/618.js:1
     872msgid "Something went wrong while saving the kanban list"
     873msgstr ""
     874
     875#: admin/app/build/618.js:1
     876msgid "Deleting a list will delete all its data from server."
     877msgstr ""
     878
     879#: admin/app/build/618.js:1
     880msgid "Something went wrong while deleting list."
     881msgstr ""
     882
     883#: admin/app/build/618.js:1
     884msgid "List deleted"
     885msgstr ""
     886
     887#: admin/app/build/618.js:1
     888msgid "Something went wrong while deleting the list"
     889msgstr ""
     890
     891#: admin/app/build/618.js:1
     892msgid "Create list"
     893msgstr ""
     894
     895#: admin/app/build/618.js:1
     896msgid "No empty task please."
     897msgstr ""
     898
     899#: admin/app/build/618.js:1
     900msgid "Task added"
     901msgstr ""
     902
     903#: admin/app/build/618.js:1
     904msgid "Something went wrong while saving the task"
     905msgstr ""
     906
     907#: admin/app/build/618.js:1
     908msgid "Save the task"
     909msgstr ""
     910
     911#: admin/app/build/618.js:1
     912msgid "Add task"
     913msgstr ""
     914
     915#: admin/app/build/618.js:1
     916msgid "Back"
     917msgstr ""
     918
     919#: admin/app/build/618.js:1
     920msgid "Select Board Style"
     921msgstr ""
     922
     923#: admin/app/build/618.js:1
     924msgid "Deadline is not set, showing current date by default."
     925msgstr ""
     926
     927#: admin/app/build/618.js:1
     928msgid "Task"
     929msgstr ""
     930
     931#: admin/app/build/618.js:1
     932msgid "Successfuly renamed the task"
     933msgstr ""
     934
     935#: admin/app/build/618.js:1
     936msgid "Deleting a task will delete all its data from server."
     937msgstr ""
     938
     939#: admin/app/build/618.js:1
     940msgid "Task deleted"
     941msgstr ""
     942
     943#: admin/app/build/618.js:1
     944msgid "Something went wrong while deleting the task"
     945msgstr ""
     946
     947#: admin/app/build/618.js:1
     948msgid "Something went wrong while impleting the board style."
     949msgstr ""
     950
     951#: admin/app/build/618.js:1
     952msgid "Implementing the board style"
     953msgstr ""
     954
     955#: admin/app/build/618.js:1
     956msgid "Use Style"
     957msgstr ""
     958
     959#: admin/app/build/618.js:1
     960msgid "Something went wrong while doing auto updating."
     961msgstr ""
     962
     963#: admin/app/build/618.js:1
     964msgid "Ending date have to greater than starting date."
     965msgstr ""
     966
     967#: admin/app/build/618.js:1
     968msgid "Message Board"
     969msgstr ""
     970
     971#: admin/app/build/618.js:1
     972msgid "Tasks"
     973msgstr ""
     974
     975#: admin/app/build/618.js:1
     976msgid "Files Attached"
     977msgstr ""
     978
     979#: admin/app/build/618.js:1
     980msgid "Public"
     981msgstr ""
     982
     983#: admin/app/build/618.js:1
     984msgid "Private"
     985msgstr ""
     986
     987#: admin/app/build/618.js:1
     988msgid "Share"
     989msgstr ""
     990
     991#: admin/app/build/618.js:1
     992msgid "Share Public Link"
     993msgstr ""
     994
     995#: admin/app/build/618.js:1
     996msgid "Something went wrong while saving the board, please refresh the page and try again."
     997msgstr ""
     998
     999#: admin/app/build/618.js:1
     1000msgid "Board public URL copied to clipboard."
     1001msgstr ""
     1002
     1003#: admin/app/build/618.js:1
     1004msgid "Failed to copy the board public URL to clipboard."
     1005msgstr ""
     1006
     1007#: admin/app/build/618.js:1
     1008msgid "No board style found"
     1009msgstr ""
     1010
     1011#: admin/app/build/618.js:1
     1012msgid "Please select a style to the board before sharing it with clients."
     1013msgstr ""
     1014
     1015#: admin/app/build/618.js:1
     1016msgid "Pro"
     1017msgstr ""
     1018
     1019#: admin/app/build/618.js:1
     1020msgid " Restrict Access with Password"
     1021msgstr ""
     1022
     1023#: admin/app/build/618.js:1
     1024msgid "Update board settings"
     1025msgstr ""
     1026
     1027#: admin/app/build/618.js:1
     1028msgid "Saving changes"
     1029msgstr ""
     1030
     1031#: admin/app/build/618.js:1
     1032msgid "Board Title"
     1033msgstr ""
     1034
     1035#: admin/app/build/618.js:1
     1036msgid "Board title"
     1037msgstr ""
     1038
     1039#: admin/app/build/618.js:1
     1040msgid "At most 250 characters allowed."
     1041msgstr ""
     1042
     1043#: admin/app/build/618.js:1
     1044msgid "Set the deadline from when you are start working and finishing this board."
     1045msgstr ""
     1046
     1047#: admin/app/build/618.js:1
     1048msgid "From when to start working"
     1049msgstr ""
     1050
     1051#: admin/app/build/618.js:1
     1052msgid "Start Date"
     1053msgstr ""
     1054
     1055#: admin/app/build/618.js:1
     1056msgid "Work must end before or on"
     1057msgstr ""
     1058
     1059#: admin/app/build/618.js:1
     1060msgid "End Date"
     1061msgstr ""
     1062
     1063#: admin/app/build/618.js:1
     1064msgid "Ending date have to be greater than starting date."
     1065msgstr ""
     1066
     1067#: admin/app/build/788.js:1
     1068msgid "minor updates"
     1069msgstr ""
     1070
     1071#: admin/app/build/788.js:1
     1072msgid "Releases"
     1073msgstr ""
     1074
     1075#: admin/app/build/788.js:1
     1076msgid "Help Center"
     1077msgstr ""
     1078
     1079#: admin/app/build/788.js:1
     1080msgid "Latest features released"
     1081msgstr ""
     1082
     1083#: admin/app/build/788.js:1
     1084msgid "Request Feature"
     1085msgstr ""
     1086
     1087#: admin/app/build/788.js:1
     1088msgid "Report bug"
     1089msgstr ""
     1090
     1091#: admin/app/build/788.js:1
     1092msgid "New"
     1093msgstr ""
     1094
     1095#: admin/app/build/788.js:1
     1096msgid "Updates released"
     1097msgstr ""
     1098
     1099#: admin/app/build/788.js:1
     1100msgid "Add Feature or Report Bug"
     1101msgstr ""
     1102
     1103#: admin/app/build/788.js:1
     1104msgid "Please provide a detailed description of the feature you would like to request or the bug you would like to report at "
     1105msgstr ""
     1106
     1107#: admin/app/build/index.js:1
     1108msgid "Manage License"
     1109msgstr ""
     1110
     1111#: admin/app/build/index.js:1
     1112msgid "Engineered with"
     1113msgstr ""
     1114
     1115#: admin/app/build/index.js:1
     1116msgid "by"
     1117msgstr ""
     1118
     1119#: admin/app/build/index.js:1
     1120msgid "Help"
     1121msgstr ""
     1122
     1123#: admin/app/build/index.js:1
     1124msgid "Did you know!"
     1125msgstr ""
     1126
     1127#: admin/app/build/index.js:1
     1128msgid "Mostly people pick the products based on ratings. We’re no different. We need your help to reach out to as many people who are in need of a tool like ours"
     1129msgstr ""
     1130
     1131#: admin/app/build/index.js:1
     1132msgid "Rate us on WordPress.org"
     1133msgstr ""
     1134
     1135#: admin/app/build/index.js:1
     1136msgid "I've already rated!"
     1137msgstr ""
     1138
     1139#: admin/app/build/index.js:1
     1140msgid "I'll do it later"
     1141msgstr ""
     1142
     1143#: admin/app/build/index.js:1
    1191144msgid "Something went wrong"
    1201145msgstr ""
    1211146
    122 #: admin/app/src/components/Error.jsx:33
    123 #: admin/app/src/components/NoBoard.jsx:29
    124 #: admin/app/src/components/NoCard.jsx:30
    125 msgid "Back to WPNakama page"
    126 msgstr ""
    127 
    128 #: admin/app/src/components/NoBoard.jsx:26
    129 msgid "Board is not found"
    130 msgstr ""
    131 
    132 #: admin/app/src/components/NoCard.jsx:27
    133 msgid "Card is not found"
    134 msgstr ""
    135 
    136 #: admin/app/src/components/SearchPosts.jsx:84
    137 msgid "type and press enter"
    138 msgstr ""
    139 
    140 #: admin/app/src/lib/messages.js:5
    141 #: admin/app/src/lib/messages.js:75
    142 msgid "A management tool right into your WordPress dashboard"
    143 msgstr ""
    144 
    145 #: admin/app/src/lib/messages.js:9
    146 #: admin/app/src/lib/messages.js:79
    147 msgid "WP Nakama brings all your content, tasks, sprints, teammates and strategies together, right in the WordPress dashboard."
    148 msgstr ""
    149 
    150 #: admin/app/src/lib/messages.js:16
    151 #: admin/app/src/lib/messages.js:84
    152 #: admin/app/src/lib/messages.js:146
    153 msgid "Edit"
    154 msgstr ""
    155 
    156 #: admin/app/src/lib/messages.js:17
    157 #: admin/app/src/lib/messages.js:22
    158 #: admin/app/src/lib/messages.js:85
    159 #: admin/app/src/lib/messages.js:90
    160 #: admin/app/src/lib/messages.js:147
    161 #: admin/app/src/lib/messages.js:156
    162 msgid "Delete"
    163 msgstr ""
    164 
    165 #: admin/app/src/lib/messages.js:18
    166 #: admin/app/src/lib/messages.js:86
    167 #: admin/app/src/lib/messages.js:149
    168 msgid "Save"
    169 msgstr ""
    170 
    171 #: admin/app/src/lib/messages.js:19
    172 #: admin/app/src/lib/messages.js:87
    173 #: admin/app/src/lib/messages.js:150
    174 msgid "Saving"
    175 msgstr ""
    176 
    177 #: admin/app/src/lib/messages.js:20
    178 #: admin/app/src/lib/messages.js:88
    179 #: admin/app/src/lib/messages.js:151
    180 msgid "Cancel"
    181 msgstr ""
    182 
    183 #: admin/app/src/lib/messages.js:21
    184 msgid "Create new board"
    185 msgstr ""
    186 
    187 #: admin/app/src/lib/messages.js:26
    188 #: admin/app/src/lib/messages.js:97
    189 msgid "Edit Board"
    190 msgstr ""
    191 
    192 #: admin/app/src/lib/messages.js:28
    193 #: admin/app/src/lib/messages.js:61
    194 #: admin/app/src/lib/messages.js:99
    195 msgid "Board Title"
    196 msgstr ""
    197 
    198 #: admin/app/src/lib/messages.js:29
    199 #: admin/app/src/lib/messages.js:62
    200 #: admin/app/src/lib/messages.js:100
    201 msgid "Board description"
    202 msgstr ""
    203 
    204 #: admin/app/src/lib/messages.js:32
    205 msgid "Successfully, edited the board."
    206 msgstr ""
    207 
    208 #: admin/app/src/lib/messages.js:36
    209 msgid "Something went wrong while editing the board."
    210 msgstr ""
    211 
    212 #: admin/app/src/lib/messages.js:44
    213 msgid "Successfully, deleted the board."
    214 msgstr ""
    215 
    216 #: admin/app/src/lib/messages.js:48
    217 msgid "Something went wrong while deleting the board."
    218 msgstr ""
    219 
    220 #: admin/app/src/lib/messages.js:52
    221 msgid "Are you sure you want to delete this board?"
    222 msgstr ""
    223 
    224 #: admin/app/src/lib/messages.js:59
    225 msgid "Create Board"
    226 msgstr ""
    227 
    228 #: admin/app/src/lib/messages.js:65
    229 msgid "Successfully, added the board."
    230 msgstr ""
    231 
    232 #: admin/app/src/lib/messages.js:66
    233 #: admin/app/src/lib/messages.js:135
    234 #: admin/app/src/lib/messages.js:200
    235 msgid "There was an error. Please refresh the page and try again."
    236 msgstr ""
    237 
    238 #: admin/app/src/lib/messages.js:89
    239 msgid "Create new phase"
    240 msgstr ""
    241 
    242 #: admin/app/src/lib/messages.js:93
    243 msgid "Select Template"
    244 msgstr ""
    245 
    246 #: admin/app/src/lib/messages.js:103
    247 msgid "Successfully, edited the phase."
    248 msgstr ""
    249 
    250 #: admin/app/src/lib/messages.js:107
    251 msgid "Something went wrong while editing the phase."
    252 msgstr ""
    253 
    254 #: admin/app/src/lib/messages.js:115
    255 msgid "Successfully, deleted the phase from kanban."
    256 msgstr ""
    257 
    258 #: admin/app/src/lib/messages.js:119
    259 msgid "Something went wrong while deleting the phase from kanban."
    260 msgstr ""
    261 
    262 #: admin/app/src/lib/messages.js:123
    263 msgid "Are you sure you want to delete this phase from kanban?"
    264 msgstr ""
    265 
    266 #: admin/app/src/lib/messages.js:131
    267 msgid "Phase Title"
    268 msgstr ""
    269 
    270 #: admin/app/src/lib/messages.js:134
    271 msgid "Successfully, added the phase."
    272 msgstr ""
    273 
    274 #: admin/app/src/lib/messages.js:148
    275 msgid "Deleting"
    276 msgstr ""
    277 
    278 #: admin/app/src/lib/messages.js:152
    279 msgid "Create card"
    280 msgstr ""
    281 
    282 #: admin/app/src/lib/messages.js:153
    283 msgid "Add"
    284 msgstr ""
    285 
    286 #: admin/app/src/lib/messages.js:154
    287 msgid "Added"
    288 msgstr ""
    289 
    290 #: admin/app/src/lib/messages.js:155
    291 msgid "Remove"
    292 msgstr ""
    293 
    294 #: admin/app/src/lib/messages.js:161
    295 #: admin/app/src/lib/messages.js:196
    296 msgid "Card Title"
    297 msgstr ""
    298 
    299 #: admin/app/src/lib/messages.js:162
    300 msgid "Card description"
    301 msgstr ""
    302 
    303 #: admin/app/src/lib/messages.js:163
    304 msgid "Selected posts"
    305 msgstr ""
    306 
    307 #: admin/app/src/lib/messages.js:164
    308 msgid "Select posts"
    309 msgstr ""
    310 
    311 #: admin/app/src/lib/messages.js:167
    312 msgid "No post added"
    313 msgstr ""
    314 
    315 #: admin/app/src/lib/messages.js:168
    316 msgid "No posts found!"
    317 msgstr ""
    318 
    319 #: admin/app/src/lib/messages.js:171
    320 msgid "Successfully, edited the card."
    321 msgstr ""
    322 
    323 #: admin/app/src/lib/messages.js:172
    324 msgid "Something went wrong while editing the card."
    325 msgstr ""
    326 
    327 #: admin/app/src/lib/messages.js:180
    328 msgid "Successfully, deleted the card."
    329 msgstr ""
    330 
    331 #: admin/app/src/lib/messages.js:184
    332 msgid "Something went wrong while deleting the card."
    333 msgstr ""
    334 
    335 #: admin/app/src/lib/messages.js:188
    336 msgid "Are you sure you want to delete this card?"
    337 msgstr ""
    338 
    339 #: admin/app/src/lib/messages.js:199
    340 msgid "Successfully, added the card."
    341 msgstr ""
    342 
    343 #: admin/app/src/lib/messages.js:209
    344 msgid "For horizontal scroll, SHIFT+(mouse scroll)"
    345 msgstr ""
    346 
    347 #: admin/app/src/modules/Kanban.jsx:74
    348 msgid "To Do"
    349 msgstr ""
    350 
    351 #: admin/app/src/modules/Kanban.jsx:78
    352 msgid "Initial"
    353 msgstr ""
    354 
    355 #: admin/app/src/modules/Kanban.jsx:82
    356 msgid "Doing"
    357 msgstr ""
    358 
    359 #: admin/app/src/modules/Kanban.jsx:86
    360 msgid "Done"
    361 msgstr ""
    362 
    363 #: admin/app/src/modules/Kanban.jsx:477
    364 msgid "Empty"
    365 msgstr ""
     1147#: admin/app/build/index.js:1
     1148msgid "Page not found"
     1149msgstr ""
     1150
     1151#: admin/app/build/index.js:1
     1152msgid "An error occurred"
     1153msgstr ""
     1154
     1155#: admin/app/build/index.js:1
     1156msgid "The page you are looking for does not exist."
     1157msgstr ""
     1158
     1159#: admin/app/build/index.js:1
     1160msgid "Copy the message from the below field, describe the scenario, and send us to"
     1161msgstr ""
     1162
     1163#: admin/app/build/index.js:1
     1164msgid "Go to homepage"
     1165msgstr ""
     1166
     1167#: admin/block-editor/build/index.js:1
     1168msgid "Successfully, mark the to-do completed."
     1169msgstr ""
     1170
     1171#: admin/block-editor/build/index.js:1
     1172msgid "Successfully, mark the to-do uncompleted."
     1173msgstr ""
     1174
     1175#: admin/block-editor/build/index.js:1
     1176msgid "Something went wrong while marking the to-do complete."
     1177msgstr ""
     1178
     1179#: admin/block-editor/build/index.js:1
     1180msgid "Something went wrong while marking the to-do uncomplete."
     1181msgstr ""
     1182
     1183#: admin/block-editor/build/index.js:1
     1184msgid "No Task found"
     1185msgstr ""
     1186
     1187#: admin/block-editor/build/index.js:1
     1188msgid "Show/hide todos"
     1189msgstr ""
     1190
     1191#: admin/block-editor/build/index.js:1
     1192msgid "No boards found. Create a board on WP Nakama."
     1193msgstr ""
  • wpnakama/trunk/readme.txt

    r3044042 r3131031  
    1 === WPNakama - Fast and Simple Project Management Tool ===
     1=== WPNakama - Team and client collaboration Starts Here ===
    22Contributors: kantbtrue, qdonow, designthingy, savydv
    33Tags: management tool, project management, kanban, task manager
    4 Tested up to: 6.4.3
    5 Requires PHP: 7.0
    6 Requires at least: 6.4.0
    7 Stable Tag: 0.2.4
     4Tested up to: 6.6.1
     5Requires PHP: 7.4
     6Requires at least: 6.2.0
     7Stable Tag: 0.3.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 A management tool right into your WordPress dashboard.
     11Do you have Clients, a Team, & deadlines? OR Struggling with Productivity and Transparency? Then this management tool is just meant for you.
    1212
    1313== Description ==
    14 WP Nakama brings all your content, tasks, sprints, teammates, and strategies together in the WordPress dashboard. WPNakama helps WordPress design teams, developer teams, marketing teams, editorial teams, etc., manage and collaborate in your WordPress dashboard.
     14WPNakama is built by a studio for studios and agencies. We know the pain of handling an agency. We need to take care of clients, work allocation, hierarchy, deadlines, files, transparency, team productivity, clarity, marketing, etc.
    1515
    16 **Best Management Tool for the following:**
    17 - Editorial Team
    18 - WordPress Design Teams
    19 - WordPress Developer Team
    20 - Content Marketing Teams
    21 - Bloggers
    22 - Writers
    23 - Publications
     16All of this is not just limited to digital agencies but all kinds of service businesses as law firms, accounting firms, distributors, etc. We all share the same pain points.
    2417
    25 **Key Features of WP Nakama FREE**
    26 - Board Dashboard
    27 - Kanban Board
    28 - Task Card
    29 - Direct Post Connect (Add blog posts directly to your Tasks)
    30 - Subtask
     18Unfortunately, we need to depend on hundreds of tools and give up our autonomy and of course a chunk of revenue.
    3119
    32 **WPNakama is a work in progress. We’re releasing new features every day.**
     20**On average an agency spends $2500 USD yearly on digital tools for agency management.**
    3321
    34 **Upcoming Features: (Pro)**
    35 - Multiple Board Views **(Pro)**
    36 - Multiple workplaces **(Pro)**
    37 - Timer **(Pro)**
    38 - Assign team members to tasks
    39 - Team Communication
    40 - Post/Page editor with subtasks sidebar
    41 - Calendar **(Pro)**
    42 - File Attachments & Management
    43 - Integrations **(Pro)**
    44 - User Activities Log **(Pro)**
    45 - Planner **(Pro)**
    46 - Notification **(Pro)**
    47 - Reports with Insights **(Pro)**
     22WPNakama is our attempt to bring this bill down significantly and bring productivity and transparency at the core.
     23
     24## Features
     25WPNakama brings all your content, tasks, sprints, teammates, and strategies together in the WordPress dashboard. WPNakama helps WordPress design teams, developer teams, marketing teams, editorial teams, etc., manage and collaborate in your WordPress dashboard.
     26
     27### 😍 Best Management Tool for the following:
     281. Publications
     291. Agencies
     301. Firms
     311. Editorial Team
     321. WordPress Design Teams
     331. WordPress Developer Team
     341. Content Marketing Teams
     351. Bloggers
     361. Writers
     37
     38### 🗝️ Key Features of WPNakama **(FREE)**
     39* **Board Dashboard**: Manage all your boards in a single dashboard.
     40* **Kanban Board**: Manage your tasks in a Kanban board style.
     41* **Public board view (New)**: Share your boards with clients or the entire world with read-only access.
     42* **Direct Post Connect**: Add blog posts directly to your Tasks and manage subtasks from post editor.
     43* **Subtask as ToDos (New)**: Break tasks into subtasks and manage them as to-dos.
     44* **To-do list on Post editor (New)**: Now user can check and mark todos directly from the post editor.
     45* **Deadlines (New)**: Add a deadline to your tasks and boards.
     46* **Notes in Task (New)**: A new section in the task modal to add notes and comments.
     47
     48> **WPNakama is a work in progress. We’re releasing new features every day.**
     49
     50## Upcoming Features: (Pro)
     51
     52* **Multiple Board Views (Pro)**: Manage your boards in List, Calendar, Gantt, Timeline, etc.
     53* **Multiple workplaces (Pro)**: Manage yours board in different workplaces.
     54* **Assign team members to tasks**: Assign tasks to team members.
     55* **Team Communication**: Share notes, ideas and feedback with your team members and clients.
     56* **File Attachments & Management**: Attach files to your boards and cards for better collaboration.
     57* **Integrations (Pro)**
     58* **User Activities Log (Pro)**: Keep track of every activity on your boards and cards.
     59* **Planner (Pro)**
     60* **Email Notification (Pro)**
     61* **Reports with Insights (Pro)**
    4862
    4963
     
    7589
    7690== Screenshots ==
    77 1. Board Dashboard
    78 2. Kanban Board
    79 3. Task Card
     911. Welcome screen
     922. Board Dashboard - Overview of the board dashboard with menu.
     933. Add Board - Add a new board to the dashboard.
     944. Board Template - Select a template for your board.
     955. Kanban Board - Visual representation of tasks in a kanban style.
     966. Public Board View - Share your boards with clients or the entire world with read-only access.
     977. Task Page - Detailed view of a task with all the details like notes, to-dos, deadline, assign posts, etc.
     988. Todos on Post Editor - Manage to-dos from post editor.
     999. Resource Page - A page to get all the updates, lastest features, changelog.
     10010. Help Center Page - A page to get help and support.
    80101
    81102== Changelog ==
    82103
    83 = Version 0.2.0 =
     104= 0.3.0 =
     105    * New: Complete redesign of the plugin
     106    * New: To-do list on Post editor
     107    * New: Subtask as ToDos
     108    * New: Public board view
     109    * New: Notes in Task
     110    * New: Deadlines
     111    * New: Update indicator
     112    * New: Resource page
     113    * Update: Support latest WordPress version
     114    * Update: Production dependencies
     115
     116= 0.2.4 =
     117    * Fix: Mobile layout issues
     118
     119= 0.2.3 =
     120    * Fix: Routing issues
     121    * Update: Production dependencies
     122
     123= 0.2.2 =
     124    * Fix: Database update on plugin updation
     125
     126= 0.2.0 =
    84127* New: Add tasks to working cards
    85128* New: Add tasks indicator on kanban cards
    86129* Fix: Kanban card ordering
    87130
    88 = Version 0.1.2 =
     131= 0.1.2 =
    89132* Fix: Kanban draggable element stick to top on drop
    90133
     
    95138= 0.1.0 =
    96139* Initial release
     140
     141== Upgrade Notice ==
     142
     143= 0.3.0 =
     144Mega update! new UI, new features, new experience. Update now!
     1451. New and refined look
     1461. Break tasks into subtasks as to-dos
     1471. Manage to-dos from post editor
     1481. Add deadlines
     1491. Share board with clients
     1501. Add notes to tasks
     1511. Support for latest WP version 6.6.1
     152
     153**WARNING**
     154Note down your tasks somewhere offline first as there is a bleak chance of loosing your WPNakama data on update.
  • wpnakama/trunk/uninstall.php

    r3034489 r3131031  
    2121$database = new WPNakama_Database();
    2222$database->delete_all_tables();
     23delete_option( 'wpnakama_rating' );
     24delete_site_option( 'wpnakama_rating' );
     25delete_option( 'wpnakama_update_indicator' );
     26delete_site_option( 'wpnakama_update_indicator' );
     27delete_option( 'wpnakama_update_indicator' );
     28delete_site_option( 'wpnakama_update_indicator' );
     29delete_option( 'wpnakama_license' );
     30delete_site_option( 'wpnakama_license' );
     31delete_option( 'wpnakama_license_message' );
     32delete_site_option( 'wpnakama_license_message' );
     33delete_post_meta_by_key( 'wpnakama_board_id' );
     34delete_post_meta_by_key( 'wpnakama_tasks' );
  • wpnakama/trunk/wpnakama.php

    r3044042 r3131031  
    99 *
    1010 * @wordpress-plugin
    11  * Plugin Name:       WPNakama - Fast and Simple Project Management Tool
    12  * Description:       A management tool right into your WordPress dashboard.
    13  * Version:           0.2.4
    14  * Requires at least: 6.4
    15  * Requires PHP:      7.0
     11 * Plugin Name:       WPNakama - Team and client collaboration Starts Here
     12 * Description:       Do you have Clients, a Team, & deadlines? OR Struggling with Productivity and Transparency? Then WPNakama is just meant for you.
     13 * Version:           0.3.0
     14 * Requires at least: 6.2.0
     15 * Requires PHP:      7.4
    1616 * Author:            kantbtrue, qdonow, designthingy, savydv
    1717 * Author URI:        https://wpnakama.com
     
    6666        // Load core plugin files.
    6767        require_once WPNAKAMA_PLUGIN_PATH . 'inc/wpnakama-helper-trait.php';
     68        require_once WPNAKAMA_PLUGIN_PATH . 'inc/wpnakama-api-schema-trait.php';
    6869        require_once WPNAKAMA_PLUGIN_PATH . 'inc/class-wpnakama.php';
    6970
Note: See TracChangeset for help on using the changeset viewer.