diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 000000000..e69de29bb diff --git a/404.html b/404.html new file mode 100644 index 000000000..d50e036d7 --- /dev/null +++ b/404.html @@ -0,0 +1,22 @@ + + + + + +Page Not Found | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

+ + + + \ No newline at end of file diff --git a/CNAME b/CNAME new file mode 100644 index 000000000..a6becf89f --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +uniforms.tools diff --git a/assets/arrow-left.svg b/assets/arrow-left.svg new file mode 100644 index 000000000..d7b68f076 --- /dev/null +++ b/assets/arrow-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/arrow-right.svg b/assets/arrow-right.svg new file mode 100644 index 000000000..ff4db8b18 --- /dev/null +++ b/assets/arrow-right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/border-01.svg b/assets/border-01.svg new file mode 100644 index 000000000..6cfc42e3b --- /dev/null +++ b/assets/border-01.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/assets/border-02.svg b/assets/border-02.svg new file mode 100644 index 000000000..b38bc6145 --- /dev/null +++ b/assets/border-02.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/assets/border-03.svg b/assets/border-03.svg new file mode 100644 index 000000000..cd9f5527a --- /dev/null +++ b/assets/border-03.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/assets/border-1.svg b/assets/border-1.svg new file mode 100644 index 000000000..5707fa679 --- /dev/null +++ b/assets/border-1.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/assets/border-2.svg b/assets/border-2.svg new file mode 100644 index 000000000..536e25975 --- /dev/null +++ b/assets/border-2.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/assets/companies/aerogear.png b/assets/companies/aerogear.png new file mode 100644 index 000000000..2df726d3d Binary files /dev/null and b/assets/companies/aerogear.png differ diff --git a/assets/companies/boulder.svg b/assets/companies/boulder.svg new file mode 100644 index 000000000..9d5e13397 --- /dev/null +++ b/assets/companies/boulder.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/companies/cleverbeagle.png b/assets/companies/cleverbeagle.png new file mode 100644 index 000000000..7f19166c9 Binary files /dev/null and b/assets/companies/cleverbeagle.png differ diff --git a/assets/companies/deskpro.png b/assets/companies/deskpro.png new file mode 100644 index 000000000..2715612d0 Binary files /dev/null and b/assets/companies/deskpro.png differ diff --git a/assets/companies/graphback.png b/assets/companies/graphback.png new file mode 100644 index 000000000..193cc473b Binary files /dev/null and b/assets/companies/graphback.png differ diff --git a/assets/companies/nokia.png b/assets/companies/nokia.png new file mode 100644 index 000000000..1b9de7821 Binary files /dev/null and b/assets/companies/nokia.png differ diff --git a/assets/companies/onyx-one.png b/assets/companies/onyx-one.png new file mode 100644 index 000000000..355234dfb Binary files /dev/null and b/assets/companies/onyx-one.png differ diff --git a/assets/companies/orionjs.png b/assets/companies/orionjs.png new file mode 100644 index 000000000..d3380d637 Binary files /dev/null and b/assets/companies/orionjs.png differ diff --git a/assets/companies/react-page.png b/assets/companies/react-page.png new file mode 100644 index 000000000..366520465 Binary files /dev/null and b/assets/companies/react-page.png differ diff --git a/assets/css/styles.b3567292.css b/assets/css/styles.b3567292.css new file mode 100644 index 000000000..780452660 --- /dev/null +++ b/assets/css/styles.b3567292.css @@ -0,0 +1 @@ +@import url(https://fonts.googleapis.com/css?family=Poppins:400,700&display=swap);@import url(https://fonts.googleapis.com/css?family=Muli:400,600&display=swap);.col,.container{padding:0 var(--ifm-spacing-horizontal);width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown li,body{word-wrap:break-word}body,ol ol,ol ul,ul ol,ul ul{margin:0}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.DocSearch-Button,.button{-webkit-user-select:none;-moz-user-select:none}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}.toggleButton_MMFG,html{-webkit-tap-highlight-color:transparent}*,.DocSearch-Container,.DocSearch-Container *{box-sizing:border-box}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:transparent;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:rgba(0,0,0,.05);--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 rgba(0,0,0,.1);--ifm-global-shadow-md:0 5px 40px rgba(0,0,0,.2);--ifm-global-shadow-tl:0 12px 28px 0 rgba(0,0,0,.2),0 2px 4px 0 rgba(0,0,0,.1);--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:transparent;--ifm-table-stripe-background:rgba(0,0,0,.03);--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:transparent}html{-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);text-rendering:optimizelegibility}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.discussions_nna8,.margin-top--none,.margin-vert--none{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_BiEj,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width)}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-top--md,.margin-vert--md{margin-top:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid rgba(0,0,0,.1);border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal)}.landing_JSVC table thead tr th a,a code{color:inherit}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:transparent;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}img{max-width:100%}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin)}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table{border-collapse:collapse;margin-bottom:var(--ifm-spacing-vertical);overflow:auto;display:inline-table}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary,.wordWrapButtonEnabled_XzR1 .wordWrapButtonIcon_HV9T{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.text--center{text-align:center}.text--left{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_P5_N,.alert__heading,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;color:inherit;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{list-style:none;padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:rgba(53,120,229,.15);--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:rgba(235,237,240,.15);--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:rgba(0,164,0,.15);--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:rgba(84,199,236,.15);--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:rgba(255,186,0,.15);--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:rgba(250,56,62,.15);--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover,.hash-link:focus,:hover>.hash-link{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{-moz-column-gap:var(--ifm-avatar-intro-margin);column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);overflow:hidden;width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);color:var(--ifm-font-color-base);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area.breadcrumbs__link[href]:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs__link:-moz-any-link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs__link:any-link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;user-select:none;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:transparent;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}.button.button--secondary.button--outline:not(.button--active):not(:hover),.section-bgwhite_xc3Y{color:var(--ifm-font-color-base)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column;overflow:hidden}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{font-size:.8rem;margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);text-decoration:none}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.theme-code-block-highlighted-line .codeLineNumber_BE9Z:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}#nprogress,.dropdown__menu,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;list-style:none;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color);text-decoration:none}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor transparent;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__links{margin-bottom:1rem}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.docItemContainer_tjFy article>:first-child,.docItemContainer_tjFy header+*,.footer__item{margin-top:0}.admonitionContent_yySL>:last-child,.bullets_YLT6 li,.collapsibleContent_Fd2D>:last-child,.footer__items{margin-bottom:0}.codeBlockStandalone_wQog,.no-padding_WjVH,[type=checkbox]{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__title{font-size:3rem}.hero__subtitle{font-size:1.5rem}.menu__list{list-style:none;margin:0;padding-left:0}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_IpIu[data-collapsed=false].isBrowser_QD4r>summary:before,.details_IpIu[open]:not(.isBrowser_QD4r)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color);text-decoration:none}.menu__caret:before,.menu__link--sublist-caret:after{height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;width:1.25rem;filter:var(--ifm-menu-link-sublist-icon-filter);content:""}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.menu__link--active,.menu__link--active:hover,.toggler_LMZW.header_kKxo .item_Lknm.active_R6La{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.docsWrapper_ct1J,.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0;z-index:var(--ifm-z-index-fixed)}.navbar-sidebar,.navbar-sidebar__backdrop{bottom:0;opacity:0;position:fixed;transition-timing-function:ease-in-out;left:0;top:0;visibility:hidden}.announcementBar_zJRd,.skipToContent_oPtH{z-index:calc(var(--ifm-z-index-fixed) + 1)}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;margin-right:1rem;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.announcementBarContent_t7IR,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center .navbar__brand{margin:0}.navbar__items--center+.navbar__items--right,.playground-column_btgY,.playground-toolbar_jwg0 select,.playground_p2wD iframe{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:hsla(0,0%,100%,.1);--ifm-navbar-search-input-placeholder-color:hsla(0,0%,100%,.5);color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:hsla(0,0%,100%,.05);--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.blue-accent_R2MP,.green-accent_H4ZV{--ifm-menu-color-active:var(--uni-border-color)}.navbar__search-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:.9rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.navbar__search-input::-moz-placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);transform:translate3d(-100%,0,0);transition-duration:.25s;transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:rgba(0,0,0,.6);right:0;transition-duration:.1s;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{-moz-column-gap:var(--ifm-pagination-page-spacing);column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination__link:hover{text-decoration:none}.pagination-nav{grid-gap:var(--ifm-spacing-horizontal);display:grid;gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover);text-decoration:none}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;cursor:pointer;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.markdown img,.tabs__item{border-radius:var(--ifm-global-radius)}.tabs,:not(.containsTaskList_QWGu>li)>.containsTaskList_QWGu{padding-left:0}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto}.tabs__item{border-bottom:3px solid transparent;cursor:pointer;display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:hsla(0,0%,100%,.05);--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:hsla(0,0%,100%,.1);--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:hsla(0,0%,100%,.07);--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec;--docsearch-text-color:#f5f6f7;--docsearch-container-background:rgba(9,10,17,.8);--docsearch-modal-background:#15172a;--docsearch-modal-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--docsearch-searchbox-background:#090a11;--docsearch-searchbox-focus-background:#000;--docsearch-hit-color:#bec3c9;--docsearch-hit-shadow:none;--docsearch-hit-background:#090a11;--docsearch-key-gradient:linear-gradient(-26.5deg,#565872,#31355b);--docsearch-key-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 2px 2px 0 rgba(3,4,9,.3);--docsearch-footer-background:#1e2136;--docsearch-footer-shadow:inset 0 1px 0 0 rgba(73,76,106,.5),0 -4px 8px 0 rgba(0,0,0,.2);--docsearch-logo-color:#fff;--docsearch-muted-color:#7f8497}:root{--docusaurus-progress-bar-color:var(--ifm-color-primary);--docusaurus-announcement-bar-height:auto;--docusaurus-tag-list-border:var(--ifm-color-emphasis-300);--docusaurus-collapse-button-bg:transparent;--docusaurus-collapse-button-bg-hover:rgba(0,0,0,.1);--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px;--docsearch-primary-color:#5468ff;--docsearch-text-color:#1c1e21;--docsearch-spacing:12px;--docsearch-icon-stroke-width:1.4;--docsearch-highlight-color:var(--docsearch-primary-color);--docsearch-muted-color:#969faf;--docsearch-container-background:rgba(101,108,133,.8);--docsearch-logo-color:#5468ff;--docsearch-modal-width:560px;--docsearch-modal-height:600px;--docsearch-modal-background:#f5f6f7;--docsearch-modal-shadow:inset 1px 1px 0 0 hsla(0,0%,100%,.5),0 3px 8px 0 #555a64;--docsearch-searchbox-height:56px;--docsearch-searchbox-background:#ebedf0;--docsearch-searchbox-focus-background:#fff;--docsearch-searchbox-shadow:inset 0 0 0 2px var(--docsearch-primary-color);--docsearch-hit-height:56px;--docsearch-hit-color:#444950;--docsearch-hit-active-color:#fff;--docsearch-hit-background:#fff;--docsearch-hit-shadow:0 1px 3px 0 #d4d9e1;--docsearch-key-gradient:linear-gradient(-225deg,#d5dbe4,#f8f8f8);--docsearch-key-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px rgba(30,35,90,.4);--docsearch-footer-height:44px;--docsearch-footer-background:#fff;--docsearch-footer-shadow:0 -1px 0 0 #e0e3e8,0 -3px 6px 0 rgba(69,98,155,.12);--docsearch-primary-color:var(--ifm-color-primary);--docsearch-text-color:var(--ifm-font-color-base);--black:#000;--bright-cyan-50:rgba(63,196,254,.2);--bright-cyan:#3fc4fe;--dark-blue-grey:#211b50;--dark-slate-blue:#2d2665;--dodger-blue-10:rgba(63,187,254,.1);--dodger-blue:#3fbbfe;--dusk-blue:#412a94;--greenblue-10:rgba(31,216,152,.1);--greenblue:#1fd898;--grey:#eee;--greyish-brown:#474747;--pale-grey:#e8e6f5;--periwinkle-50:rgba(136,89,255,.2);--periwinkle:#8759ff;--sea-green-50:rgba(66,255,172,.2);--sea-green:#42ffac;--white:#fff;--uni-background-color:var(--white);--uni-heading-color:var(--dusk-blue);--uni-heading-helper-color:var(--dusk-blue);--uni-hero-bgcolor:var(--dark-blue-grey);--uni-oval-background-color:var(--white);--uni-oval-shadow-color:var(--pale-grey);--uni-testimonial-text-color:var(--greyish-brown);--uni-toolbar-bgcolor:var(--grey);--ifm-button-color:var(--white)}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}pre{border-radius:var(--ifm-global-radius)!important;overflow:auto!important;white-space:pre!important}.markdown img{background:#fff;padding:var(--ifm-pre-padding)}.menu>.menu__list>.menu__list-item>.menu__link:hover{background:initial;cursor:default}body:not(.navigation-with-keyboard) :not(input):focus{outline:0}#docusaurus-base-url-issue-banner-container,.collapseSidebarButton_oTwn,.docSidebarContainer_y0RQ,.sidebarLogo_CYvI,.themedImage_BQGR,[data-theme=dark] .lightToggleIcon_lgto,[data-theme=light] .darkToggleIcon_U96C,html[data-announcement-bar-initially-dismissed=true] .announcementBar_zJRd{display:none}.skipToContent_oPtH{background-color:var(--ifm-background-surface-color);color:var(--ifm-color-emphasis-900);left:100%;padding:calc(var(--ifm-global-spacing)/2) var(--ifm-global-spacing);position:fixed;top:1rem}.skipToContent_oPtH:focus{box-shadow:var(--ifm-global-shadow-md);left:1rem}.closeButton_J5rP{line-height:0;padding:0}.content_bSb_{font-size:85%;padding:5px 0;text-align:center}.content_bSb_ a{color:inherit;text-decoration:underline}.DocSearch-Container a,.tag_otG2:hover{text-decoration:none}.announcementBar_zJRd{align-items:center;background-color:var(--ifm-color-white);box-shadow:var(--ifm-global-shadow-lw);color:var(--ifm-color-black);display:flex;height:var(--docusaurus-announcement-bar-height)}.announcementBarPlaceholder_NpUd{flex:0 0 10px}.announcementBarClose_Jjdj{align-self:stretch;flex:0 0 30px}.toggle_ki11{height:2rem;width:2rem}.toggleButton_MMFG{align-items:center;border-radius:50%;display:flex;height:100%;justify-content:center;transition:background var(--ifm-transition-fast);width:100%}.toggleButton_MMFG:hover{background:var(--ifm-color-emphasis-200)}.toggleButtonDisabled_Uw7m{cursor:not-allowed}[data-theme=dark] .themedImage--dark_bGx0,[data-theme=light] .themedImage--light_HAxW{display:initial}.iconExternalLink_nPrP{margin-left:.3rem}.iconLanguage_kvP7{margin-right:5px;vertical-align:text-bottom}.navbarHideable_hhpl{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_nmcs{transform:translate3d(0,calc(-100% - 2px),0)}.mainWrapper_MB5r{flex:1 0 auto}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.iconEdit_bHB7{margin-right:.3em;vertical-align:sub}.tag_otG2{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_otG2:hover{--docusaurus-tag-list-border:var(--ifm-link-color)}.tagRegular_s0E1{border-radius:.5rem;font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_PGyn{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_PGyn:after,.tagWithCount_PGyn:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_PGyn:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_PGyn:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_PGyn span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.tags_Ow0B{display:inline}.tag_DFxh{display:inline-block;margin:0 .4rem .5rem 0}.lastUpdated_pbO5{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_iI2p{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.DocSearch-Button,.DocSearch-Button-Container{align-items:center;display:flex}.tocCollapsibleButton_iI2p:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_cHjC:after,.tocCollapsibleExpanded_BbRn{transform:none}.tocCollapsible_wXna{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.tocCollapsibleContent_vea0>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_vea0 ul li{margin:.4rem .8rem}.tocCollapsibleContent_vea0 a{display:block}.tableOfContents_XG6w{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem);overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.backToTopButton_iEvu{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.backToTopButton_iEvu:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_DO8w{opacity:1;transform:scale(1);visibility:visible}[data-theme=dark]:root{--docusaurus-collapse-button-bg:hsla(0,0%,100%,.05);--docusaurus-collapse-button-bg-hover:hsla(0,0%,100%,.1)}.docMainContainer_sTIZ,.docPage_KLoz{display:flex;width:100%}.DocSearch-Button{background:var(--docsearch-searchbox-background);border:0;border-radius:40px;color:var(--docsearch-muted-color);cursor:pointer;font-weight:500;height:36px;justify-content:space-between;padding:0 8px;user-select:none}.DocSearch-Footer,.DocSearch-Help{-webkit-user-select:none;-moz-user-select:none}.DocSearch-Button:active,.DocSearch-Button:focus,.DocSearch-Button:hover{background:var(--docsearch-searchbox-focus-background);box-shadow:var(--docsearch-searchbox-shadow);color:var(--docsearch-text-color);outline:0}.DocSearch-Search-Icon{stroke-width:1.6}.DocSearch-Hit-Tree,.DocSearch-Hit-action,.DocSearch-Hit-icon,.DocSearch-Reset{stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Button .DocSearch-Search-Icon{color:var(--docsearch-text-color)}.DocSearch-Button-Placeholder{font-size:1rem;padding:0 12px 0 6px}.DocSearch-Input,.DocSearch-Link{-webkit-appearance:none;-moz-appearance:none;font:inherit}.DocSearch-Button-Keys{display:flex;min-width:calc(40px + .8em)}.DocSearch-Button-Key{align-items:center;background:var(--docsearch-key-gradient);border:0;border-radius:3px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;height:18px;justify-content:center;margin-right:.4em;padding:0 0 2px;position:relative;top:-1px;width:20px}.DocSearch--active{overflow:hidden!important}.DocSearch-Container{background-color:var(--docsearch-container-background);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:200}.DocSearch-Link{appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;margin:0;padding:0}.DocSearch-Modal{background:var(--docsearch-modal-background);border-radius:6px;box-shadow:var(--docsearch-modal-shadow);flex-direction:column;margin:60px auto auto;max-width:var(--docsearch-modal-width);position:relative}.DocSearch-SearchBar{display:flex;padding:var(--docsearch-spacing) var(--docsearch-spacing) 0}.DocSearch-Form{align-items:center;background:var(--docsearch-searchbox-focus-background);border-radius:4px;box-shadow:var(--docsearch-searchbox-shadow);display:flex;height:var(--docsearch-searchbox-height);margin:0;padding:0 var(--docsearch-spacing);position:relative;width:100%}.DocSearch-Input{appearance:none;background:0 0;border:0;color:var(--docsearch-text-color);flex:1;font-size:1.2em;height:100%;outline:0;padding:0 0 0 8px;width:80%}.DocSearch-Hit-action-button,.DocSearch-Reset{-webkit-appearance:none;-moz-appearance:none;border:0;cursor:pointer}.DocSearch-Input::-moz-placeholder{color:var(--docsearch-muted-color);opacity:1}.DocSearch-Input::placeholder{color:var(--docsearch-muted-color);opacity:1}.DocSearch-Input::-webkit-search-cancel-button,.DocSearch-Input::-webkit-search-decoration,.DocSearch-Input::-webkit-search-results-button,.DocSearch-Input::-webkit-search-results-decoration{display:none}.DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{margin:0;padding:0}.DocSearch-Container--Stalled .DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}.DocSearch-Cancel,.DocSearch-Container--Stalled .DocSearch-MagnifierLabel,.DocSearch-LoadingIndicator,.DocSearch-Reset[hidden]{display:none}.DocSearch-Reset{animation:.1s ease-in forwards a;appearance:none;background:none;border-radius:50%;color:var(--docsearch-icon-color);padding:2px;right:0}.DocSearch-Help,.DocSearch-HitsFooter,.DocSearch-Label{color:var(--docsearch-muted-color)}.DocSearch-Reset:focus{outline:0}.DocSearch-Reset:hover{color:var(--docsearch-highlight-color)}.DocSearch-LoadingIndicator svg,.DocSearch-MagnifierLabel svg{height:24px;width:24px}.DocSearch-Dropdown{max-height:calc(var(--docsearch-modal-height) - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height));min-height:var(--docsearch-spacing);overflow-y:auto;overflow-y:overlay;padding:0 var(--docsearch-spacing);scrollbar-color:var(--docsearch-muted-color) var(--docsearch-modal-background);scrollbar-width:thin}.DocSearch-Dropdown::-webkit-scrollbar{width:12px}.DocSearch-Dropdown::-webkit-scrollbar-track{background:0 0}.DocSearch-Dropdown::-webkit-scrollbar-thumb{background-color:var(--docsearch-muted-color);border:3px solid var(--docsearch-modal-background);border-radius:20px}.DocSearch-Dropdown ul{list-style:none;margin:0;padding:0}.DocSearch-Label{font-size:.75em;line-height:1.6em}.DocSearch-Help{font-size:.9em;margin:0;user-select:none}.DocSearch-Title{font-size:1.2em}.DocSearch-Logo a,.playground-column_btgY,.playground-toolbar_jwg0,.playground_p2wD{display:flex}.DocSearch-Logo svg{color:var(--docsearch-logo-color);margin-left:8px}.DocSearch-Hits:last-of-type{margin-bottom:24px}.DocSearch-Hits mark{background:none;color:var(--docsearch-highlight-color)}.DocSearch-HitsFooter{display:flex;font-size:.85em;justify-content:center;margin-bottom:var(--docsearch-spacing);padding:var(--docsearch-spacing)}.DocSearch-HitsFooter a{border-bottom:1px solid;color:inherit}.DocSearch-Hit{border-radius:4px;display:flex;padding-bottom:4px;position:relative}.DocSearch-Hit--deleting{opacity:0;transition:.25s linear}.DocSearch-Hit--favoriting{transform:scale(0);transform-origin:top center;transition:.25s linear .25s}.DocSearch-Hit a{background:var(--docsearch-hit-background);border-radius:4px;box-shadow:var(--docsearch-hit-shadow);display:block;padding-left:var(--docsearch-spacing);width:100%}.DocSearch-Hit-source{background:var(--docsearch-modal-background);color:var(--docsearch-highlight-color);font-size:.85em;font-weight:600;line-height:32px;margin:0 -4px;padding:8px 4px 0;position:sticky;top:0;z-index:10}.DocSearch-Hit-Tree{color:var(--docsearch-muted-color);height:var(--docsearch-hit-height);opacity:.5;width:24px}.DocSearch-Hit[aria-selected=true] a{background-color:var(--docsearch-highlight-color)}.DocSearch-Hit[aria-selected=true] mark{text-decoration:underline}.DocSearch-Hit-Container{align-items:center;color:var(--docsearch-hit-color);display:flex;flex-direction:row;height:var(--docsearch-hit-height);padding:0 var(--docsearch-spacing) 0 0}.DocSearch-Hit-icon{height:20px;width:20px}.DocSearch-Hit-action,.DocSearch-Hit-icon{color:var(--docsearch-muted-color)}.DocSearch-Hit-action{align-items:center;display:flex;height:22px;width:22px}.DocSearch-Hit-action svg{display:block;height:18px;width:18px}.DocSearch-Hit-action+.DocSearch-Hit-action{margin-left:6px}.DocSearch-Hit-action-button{appearance:none;background:none;border-radius:50%;color:inherit;padding:2px}svg.DocSearch-Hit-Select-Icon{display:none}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Select-Icon{display:block}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:rgba(0,0,0,.2);transition:background-color .1s ease-in}.DocSearch-Hit-action-button:focus path,.DocSearch-Hit-action-button:hover path{fill:#fff}.DocSearch-Hit-content-wrapper{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;line-height:1.2em;margin:0 8px;overflow-x:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;width:80%}.DocSearch-Hit-title{font-size:.9em}.DocSearch-Hit-path{color:var(--docsearch-muted-color);font-size:.75em}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-action,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-icon,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-text,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-title,.DocSearch-Hit[aria-selected=true] mark{color:var(--docsearch-hit-active-color)!important}.DocSearch-ErrorScreen,.DocSearch-NoResults,.DocSearch-StartScreen{font-size:.9em;margin:0 auto;padding:36px 0;text-align:center;width:80%}.DocSearch-Screen-Icon{color:var(--docsearch-muted-color);padding-bottom:12px}.DocSearch-NoResults-Prefill-List{display:inline-block;padding-bottom:24px;text-align:left}.DocSearch-NoResults-Prefill-List ul{display:inline-block;padding:8px 0 0}.DocSearch-NoResults-Prefill-List li{list-style-position:inside;list-style-type:"» "}.DocSearch-Prefill{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:1em;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;font-size:1em;font-weight:700;padding:0}.DocSearch-Prefill:focus,.DocSearch-Prefill:hover{outline:0;text-decoration:underline}.DocSearch-Footer{align-items:center;background:var(--docsearch-footer-background);border-radius:0 0 8px 8px;box-shadow:var(--docsearch-footer-shadow);display:flex;flex-direction:row-reverse;flex-shrink:0;height:var(--docsearch-footer-height);justify-content:space-between;padding:0 var(--docsearch-spacing);position:relative;user-select:none;width:100%;z-index:300}.DocSearch-Commands{color:var(--docsearch-muted-color);display:flex;list-style:none;margin:0;padding:0}.DocSearch-Commands li{align-items:center;display:flex}.DocSearch-Commands li:not(:last-of-type){margin-right:.8em}.DocSearch-Commands-Key{align-items:center;background:var(--docsearch-key-gradient);border:0;border-radius:2px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;height:18px;justify-content:center;margin-right:.4em;padding:0 0 1px;width:20px}.buttonGroup_aaMX button,.codeBlockContainer_mQmQ{background:var(--prism-background-color);color:var(--prism-color)}@keyframes a{0%{opacity:0}to{opacity:1}}.DocSearch-Button{margin:0;transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.DocSearch-Container{z-index:calc(var(--ifm-z-index-fixed) + 1)}.codeBlockContainer_mQmQ{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.codeBlockContent_D5yF{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_x_ju{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_RMoD{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_x_ju+.codeBlockContent_D5yF .codeBlock_RMoD{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_AclH{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_O625{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup_aaMX{-moz-column-gap:.2rem;column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup_aaMX button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity .2s ease-in-out}.buttonGroup_aaMX button:focus-visible,.buttonGroup_aaMX button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup_aaMX button{opacity:.4}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine_FAqz{counter-increment:a;display:table-row}.codeLineNumber_BE9Z{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_BE9Z:before{content:counter(a);opacity:.4}.codeLineContent_EF2y{padding-right:var(--ifm-pre-padding)}.theme-code-block:hover .copyButtonCopied_TYdd{opacity:1!important}.copyButtonIcons_z5j7{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_FoOz,.copyButtonSuccessIcon_L0B6{fill:currentColor;height:inherit;left:0;opacity:inherit;position:absolute;top:0;transition:.15s;width:inherit}.floating-example_NeZB,.grid3x3_yu8a,.landing_JSVC .section-content_dsyA .row,.landing_JSVC ul li,.preview_Ea2L{position:relative}.copyButtonSuccessIcon_L0B6{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_TYdd .copyButtonIcon_FoOz{opacity:0;transform:scale(.33)}.copyButtonCopied_TYdd .copyButtonSuccessIcon_L0B6{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}.wordWrapButtonIcon_HV9T{height:1.2rem;width:1.2rem}.details_IpIu{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_IpIu>summary{cursor:pointer;list-style:none;padding-left:1rem;position:relative}.details_IpIu>summary::-webkit-details-marker{display:none}.details_IpIu>summary:before{border-color:transparent transparent transparent var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_Fd2D{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.details_jERq{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.anchorWithStickyNavbar_JmGV{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_pMLv{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;-moz-user-select:none;user-select:none}.hash-link:before{content:"#"}.containsTaskList_QWGu{list-style:none}.img_SS3x{height:auto}.admonition_uH4V{margin-bottom:1em}.admonitionHeading_P5_N{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.3rem}.admonitionHeading_P5_N code{text-transform:none}.admonitionIcon_MF44{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_MF44 svg{fill:var(--ifm-alert-foreground-color);display:inline-block;height:1.6em;width:1.6em}:root[data-theme=dark]{--uni-background-color:var(--ifm-background-color);--uni-heading-color:var(--ifm-font-color-base);--uni-heading-helper-color:var(--ifm-font-color-base);--uni-oval-shadow-color:var(--black);--uni-testimonial-text-color:var(--ifm-font-color-base);--uni-toolbar-bgcolor:var(--ifm-background-color)}.padding_u3oQ{padding-top:2em}.landing_JSVC table thead{background-attachment:fixed;background-image:linear-gradient(to right,var(--periwinkle),var(--bright-cyan),var(--sea-green));color:var(--black)}.landing_JSVC table thead tr th{width:15%}.landing_JSVC table thead tr th:first-child{width:30%}.landing_JSVC table tr td{background-color:var(--dark-slate-blue);color:var(--white)}.landing_JSVC table tr td:first-child,.landing_JSVC table tr th:first-child{padding-left:4em}.landing_JSVC table tr td>img{width:1em}.landing_JSVC tr:nth-child(odd) td{background-color:var(--dark-blue-grey)}.landing_JSVC ul{font-family:Muli;font-size:1em;font-weight:600;line-height:1.33;opacity:.7;padding:0}.landing_JSVC ul li{list-style:none;margin-bottom:1em;padding-left:1em}.landing_JSVC ul li:before{background-color:var(--ifm-font-color-base);content:"";height:4px;left:0;position:absolute;top:.5em;width:4px}.landing_JSVC .hero.hero--primary{--ifm-hero-background-color:var(--dark-blue-grey)}.overflow-hidden_pgKL{overflow:hidden}.landing_JSVC .hero .container{margin-bottom:0;margin-top:0}.landing_JSVC .container{margin-bottom:4em;margin-top:4em}.system-window_utQO{--ifm-leading:0;background:#211b50;border-radius:1em;overflow:hidden;padding:0;width:95%}.playground_p2wD .playground-wrap_FoP6,.system-window_utQO iframe{border-radius:unset}.system-top-bar_ZKOK{background-image:linear-gradient(to right,var(--periwinkle-50),var(--bright-cyan-50) 90%,var(--sea-green-50));padding:.25em 1em}.system-top-bar-circle_TDqe{border-radius:50%;display:inline-block;filter:brightness(100%);height:.5em;margin-left:.3em;width:.5em}.showcase-card_hJCa{align-items:center;display:flex;justify-content:space-between;margin-bottom:1em;padding:1.5em}.showcase-card_hJCa img{height:4em;margin:1em}.showcase-card_hJCa p{display:block;margin-left:1em}.footer_V71b .bullets_YLT6,.footer_V71b li{color:var(--white)}.footer_V71b .bullets_YLT6 li:before{background-color:var(--dodger-blue)}.footer_V71b .offset-column_Fx18{margin-left:2em!important}.simple-yet-powerful-text__cJc{margin-left:-5em;margin-top:-8em}.fully-customizable-text_ka9o{margin-right:-5em;margin-top:-8em}.reverse-wrap_wEMw{flex-wrap:wrap-reverse}.example_fVIp+.example_fVIp{margin-bottom:4em}.preview-border_OFQs{border:1px solid var(--uni-border-color);box-shadow:0 6px 58px 0 var(--uni-box-shadow-color)}.preview_Ea2L{background-color:var(--uni-background-color);padding:2em}.solid-border-box_A28F{border:6px solid var(--uni-border-color);padding:4em}.green-accent_H4ZV{--uni-border-color:var(--greenblue);--uni-box-shadow-color:var(--greenblue-10)}.blue-accent_R2MP{--uni-border-color:var(--dodger-blue);--uni-box-shadow-color:var(--dodger-blue-10)}.grid3x3_yu8a{display:flex;flex-wrap:wrap;height:100%;justify-content:space-evenly;padding:4em 0;text-align:center}.item3x3_dug1{align-self:center;padding:1.5em 1em;width:33%}.company_dMmf{transition:filter .2s;width:100%}.company_dMmf:hover{filter:none}.border-dashed_OHF8{border:2px dashed var(--pale-grey)}.border-gradient_gHdq{border-image-slice:1;border-image-source:linear-gradient(var(--uni-border-gradient-degrees),var(--periwinkle),var(--bright-cyan) 51%,var(--sea-green));border-style:solid;border-width:6px}.border-disable-top-right_GH8c{--uni-border-gradient-degrees:41deg;border-right:0;border-top:0}.border-disable-bottom-left_uiZP{--uni-border-gradient-degrees:221deg;border-bottom:0;border-left:0}.arrow-button_hF_x{background-color:transparent;border:none;cursor:pointer;transition:.2s linear}.left-arrow-button_Zn9b:hover{transform:translateX(-5px)}.right-arrow-button_J0NN:hover{transform:translateX(5px)}.arrow_d93H{height:35px;width:35px}.carousel-container_uFWT{max-width:968px;overflow:hidden}.carousel_vfTV{display:flex;transition:transform .3s}.testimonials__H4G{align-items:center;display:flex;justify-content:center}.testimonials-pair-active_W4Qz{display:flex;height:auto;justify-content:center}.testimonials-pair-inactive_OeWi{display:none}.testimonial_JqOm{background:var(--ifm-background-surface-color);margin:2em}.testimonial-content_yyK0{align-items:center;display:flex;flex-direction:column;height:100%;padding:4em 2em;width:420px}.testimonial-links-wrapper_aCzC{color:var(--dusk-blue);display:flex;justify-content:space-between;margin-bottom:30px;max-width:140px;width:140px}.testimonial-links-wrapper_aCzC a{color:var(--dusk-blue)}.testimonial-description_HpGg:before{content:"„"}.testimonial-description_HpGg:after{content:"”"}.testimonial-avatar_OiX2{border-radius:50%;margin:15px 0 10px;width:100px}.section-heading_Wwdu{margin:1.5em 0}.section-bgwhite-block_wuyP{height:100%;left:0;position:absolute;top:0;width:200%}.section-bgwhite-block-left_R077{background:var(--white);margin-left:-100%}.section-bgwhite-block-right_XL2o{background:var(--uni-background-color);margin-right:-100%}.section-content_dsyA{padding:0 4em!important;position:relative}.section-content_dsyA.logos_slhi{padding-left:unset!important}.fluid_k_Hd{padding:8em 0}.whyus_bBI7{--ifm-hero-background-color:var(--dusk-blue)!important;color:#000}.oval_S291{display:inline-block;height:64px;padding:20px;width:64px}.link-icon-container_Iy8Z,.oval_S291{background-color:var(--uni-oval-background-color);border-radius:50%;box-shadow:0 8px 23px 0 var(--uni-oval-shadow-color)}.link-icon-container_Iy8Z{align-items:center;display:flex;height:37px;justify-content:center;width:37px}.link-icon-container_Iy8Z svg:hover{filter:brightness(1.6);transition:filter .15s ease-in}.oval_S291.white_k7iJ{background-color:var(--white);height:100px;width:100px}.top-right-corner_hrD6{position:absolute;right:0;transform:translate(45%,-45%)}.badges_sK0n{display:flex;flex-wrap:wrap;justify-content:center}.badge-number_FlCf{font-size:3em;font-weight:700}.badge_Cv7E{height:170px;margin:2em;position:relative;width:260px}.badge-image_V8QJ{display:block;position:absolute}.badge-centered_Cl70{left:50%;position:absolute;top:55%;transform:translate(-50%,-50%)}.call-to-action_fHoz{--ifm-button-background-color:var(--periwinkle)!important;--ifm-button-border-color:var(--periwinkle)!important;--ifm-color-primary-darker:var(--bright-cyan)!important;border-radius:2em;margin-top:4em;min-width:240px}.theme-icon_VaE8{display:inline-block;height:40px;margin-right:25px;width:40px}.theme-icon_VaE8:last-child{margin-right:0}.section_SnfD{margin-bottom:8em}.flex-center_VHPe{display:flex;justify-content:center}.top-margin_xVhu{margin-top:70px}.long-button_efAi{max-width:100%;white-space:pre-line}.text_U9e4{color:var(--ifm-font-color-base);font-family:Poppins,sans-serif;font-stretch:normal;font-style:normal;letter-spacing:normal;line-height:normal}.text-big_oDLV{font-size:1.5em;font-weight:700}.text-huge_zgdY{font-size:2.5em;font-weight:700;line-height:1.25}.text_U9e4.heading-helper_fnxq{color:var(--uni-heading-helper-color);font-family:Muli;font-size:1em;font-weight:600;letter-spacing:1px;opacity:.6}.heading_Tyjn{color:var(--uni-heading-color);font-family:Poppins;font-size:2em;font-weight:700;line-height:1.31;margin-bottom:2em}.heading-white_SkAD{--uni-heading-color:var(--white)}.text_U9e4.emphasis_T58q{color:var(--dodger-blue);font-family:Poppins;font-size:24px;font-weight:600;line-height:1.42}.text_U9e4.paragraph_pxCb{color:var(--white);font-family:Muli;font-size:1em;line-height:1.75;margin-bottom:.8em;opacity:.8}.supported_k5lB,.text_U9e4.section-subtitle_etM3{font-weight:600;opacity:.6;color:var(--white);font-family:Muli}.text_U9e4.section-subtitle_etM3{font-size:1em;letter-spacing:1px}.text_U9e4.footer-heading_wvTE{color:var(--dodger-blue);font-family:Muli;font-size:18px;font-weight:600}.supported_k5lB{font-size:.85em;line-height:2;margin-top:3em}.title_L62U{color:var(--white);display:block}.description_aTRG{color:var(--bright-cyan);display:block;margin:24px 0}@supports ((-webkit-background-clip:text) or (background-clip:text)){.description_aTRG{-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;background-image:linear-gradient(81deg,var(--periwinkle),var(--bright-cyan),var(--sea-green))}}.text_U9e4.testimonial-description_HpGg{color:var(--uni-testimonial-text-color);font-family:Muli;font-size:1.2em;line-height:1.75;opacity:.8;text-align:center}.bullets_YLT6{color:var(--white)!important}.bullets_YLT6 li:before{background-color:var(--periwinkle)!important}.commercial-bullets_o7pP>li{font-weight:400}.commercial-box_wLXy{align-items:center;display:flex;justify-content:center;padding:0}.vazco_f6cf{height:2em;margin-top:2em}.form-wrapper_kccZ{border:1px solid var(--ifm-color-emphasis-alpha-30);border-radius:5px}.playground_p2wD{height:calc(100vh - var(--ifm-navbar-height))}.playground-wrap_FoP6{background-color:#fff;border:none;border-radius:5px;color:#0e0e0e;display:block;flex:1;margin:0;overflow-y:auto;padding:0;width:100%}.playground-toolbar_jwg0 select,.playground_p2wD iframe{border:0}.playground-column_btgY{flex-direction:column}.playground-toolbar_jwg0,.playground-toolbar_jwg0 select{background-color:var(--uni-toolbar-bgcolor)}.playground-toolbar_jwg0 select{font-size:1rem;margin:.25em;padding:.5em}.tabs_DJzW{display:flex;flex-wrap:wrap;font-weight:700;margin:0 0 .25em -.2em}.tabs_DJzW .item_Lknm{border:1px solid var(--ifm-menu-color-active);border-radius:3px;cursor:pointer;flex:1;font-size:.8em;margin:.25em;padding:.8em;text-align:center}.tabs_DJzW .item_Lknm.active_R6La{background-color:var(--ifm-menu-color-active);color:#fff}.toggler_LMZW.header_kKxo{display:flex;justify-content:flex-end}.toggler_LMZW.header_kKxo .item_Lknm{cursor:pointer;margin:.5em 0 .5em 1em}.toggler_LMZW .tooltip_OOD_{display:inline-block;position:relative}.toggler_LMZW .tooltip_OOD_ .tooltip-text_GGXA{background-color:#000;border-radius:6px;bottom:150%;color:#fff;font-size:.7em;left:50%;margin-left:-60px;padding:5px 0;position:absolute;text-align:center;visibility:hidden;width:120px;z-index:1}.toggler_LMZW .tooltip_OOD_ .tooltip-text_GGXA:after{border:5px solid transparent;border-top-color:#000;content:"";left:50%;margin-left:-5px;position:absolute;top:100%}.toggler_LMZW .tooltip_OOD_:hover .tooltip-text_GGXA{visibility:visible}.toggler-tabs_UzN0 .header_kKxo{align-items:center;display:flex;justify-content:space-between}.breadcrumbsContainer_T5ub{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}.breadcrumbHomeIcon_GlTw{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}@media (min-width:997px){.collapseSidebarButton_oTwn,.expandButton_YOoA{background-color:var(--docusaurus-collapse-button-bg);position:sticky}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_Jjdj,.announcementBarPlaceholder_NpUd{flex-basis:50px}.searchBox_WqAV{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.lastUpdated_pbO5{text-align:right}.tocMobile_Ojys{display:none}.collapseSidebarButton_oTwn{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px}.collapseSidebarButtonIcon_pMEX{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_GZLG,[dir=rtl] .collapseSidebarButtonIcon_pMEX{transform:rotate(0)}.collapseSidebarButton_oTwn:focus,.collapseSidebarButton_oTwn:hover,.expandButton_YOoA:focus,.expandButton_YOoA:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_OniL{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_jmj1{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_jmj1{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_YufC{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_CUen{display:flex;flex-direction:column;height:100%;max-height:100vh;padding-top:var(--ifm-navbar-height);position:sticky;top:0;transition:opacity 50ms;width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_w4KB{padding-top:0}.sidebarHidden_k6VE{height:0;opacity:0;overflow:hidden;visibility:hidden}.sidebarLogo_CYvI{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);text-decoration:none!important}.sidebarLogo_CYvI img{height:2rem;margin-right:.5rem}.expandButton_YOoA{align-items:center;display:flex;height:100%;justify-content:center;max-height:100vh;top:0;transition:background-color var(--ifm-transition-fast) ease}[dir=rtl] .expandButtonIcon_GZLG{transform:rotate(180deg)}.docSidebarContainer_y0RQ{border-right:1px solid var(--ifm-toc-border-color);-webkit-clip-path:inset(0);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_uArb{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.docMainContainer_sTIZ{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_iSjt{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_PxMR{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}.landing_JSVC .section{margin-top:4em}.landing_JSVC .container{scroll-margin-top:200px}.floating-example_NeZB>div:last-child{left:40%;position:absolute;top:12.5%}.showcase-card_hJCa{flex-direction:column}.example_fVIp{margin:16em 0!important}.example_fVIp+.example_fVIp{margin-bottom:0!important}.section-bgwhite-block-left_R077,.section-bgwhite-block-right_XL2o{height:200%}.docItemCol_Qr34{max-width:75%!important}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_Hewu,.footer__link-separator,.navbar__item,.tableOfContents_XG6w{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.searchBox_WqAV{position:absolute;right:var(--ifm-navbar-padding-horizontal)}.docItemContainer_Tr6w{padding:0 .3rem}.center-if-sm_fQBP{text-align:center}.landing_JSVC .col{margin-bottom:2em}.landing_JSVC .col:last-of-type{margin-bottom:0}.floating-example_NeZB>:first-child{margin-bottom:4em}.floating-example_NeZB .system-window_utQO{margin-left:auto;margin-right:auto}.solid-border-box_A28F{margin:4em 0}.section-content_dsyA,.section-content_dsyA.logos_slhi{margin-top:0;padding:4em!important}}@media (max-width:768px){.testimonials-pair-active_W4Qz,.testimonials-pair-inactive_OeWi{flex-direction:column}.DocSearch-Button-Keys,.DocSearch-Button-Placeholder,.DocSearch-Commands,.DocSearch-Hit-Tree{display:none}:root{--docsearch-spacing:10px;--docsearch-footer-height:40px}.DocSearch-Dropdown{height:100%;max-height:calc(var(--docsearch-vh,1vh)*100 - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height))}.DocSearch-Container{height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh,1vh)*100);position:absolute}.DocSearch-Footer{border-radius:0;bottom:0;position:absolute}.DocSearch-Hit-content-wrapper{display:flex;position:relative;width:80%}.DocSearch-Modal{border-radius:0;box-shadow:none;height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh,1vh)*100);margin:0;max-width:100%;width:100%}.DocSearch-Cancel{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;flex:none;font:inherit;font-size:1em;font-weight:500;margin-left:var(--docsearch-spacing);outline:0;overflow:hidden;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}}@media only screen and (max-width:600px){table{display:block!important}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}}@media (max-width:500px){.preview_Ea2L{padding:1em}}@media (max-width:400px){.solid-border-box_A28F{padding:4em 1em}.section-content_dsyA{margin-top:0;padding:0 1em!important}}@media (hover:hover){.backToTopButton_iEvu:hover{background-color:var(--ifm-color-emphasis-300)}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Reset{stroke-width:var(--docsearch-icon-stroke-width);animation:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;right:0}.DocSearch-Hit--deleting,.DocSearch-Hit--favoriting{transition:none}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:rgba(0,0,0,.2);transition:none}}@media print{.announcementBar_zJRd,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_Ojys{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_AclH{white-space:pre-wrap}} \ No newline at end of file diff --git a/assets/forminer-screenshot.png b/assets/forminer-screenshot.png new file mode 100644 index 000000000..1f687ca2a Binary files /dev/null and b/assets/forminer-screenshot.png differ diff --git a/assets/icon-01.svg b/assets/icon-01.svg new file mode 100644 index 000000000..845ec0525 --- /dev/null +++ b/assets/icon-01.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/assets/icon-02.svg b/assets/icon-02.svg new file mode 100644 index 000000000..d302f683d --- /dev/null +++ b/assets/icon-02.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/assets/js/0ba16cac.d541e51a.js b/assets/js/0ba16cac.d541e51a.js new file mode 100644 index 000000000..db9ca57e2 --- /dev/null +++ b/assets/js/0ba16cac.d541e51a.js @@ -0,0 +1,128 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[784],{73633:function(e,n,t){"use strict";t.d(n,{j:function(){return j}}),t(11561).z.register("minCount","maxCount");var a=t(59312),r=t(3996),l=t.n(r),i=t(30454),s=t.n(i),o=t(99729),u=t.n(o),c=t(90104),d=t.n(c),m=t(1883),p=t.n(m),f=t(16651),v=t.n(f),h=t(76744),_=t.n(h),g=t(98949),b=t(65507);function E(e,n){l()(n,'Field not found in schema: "%s"',e)}function y(e,n){if(!("$ref"in e))return e;const{$ref:t}=e,r=(0,a._T)(e,["$ref"]);return y(Object.assign({},r,function(e,n){l()(e.startsWith("#"),'Reference is not an internal reference, and only such are allowed: "%s"',e);const t=e.split("/").filter((e=>e&&"#"!==e)).reduce(((e,n)=>e[n]),n);return l()(t,'Reference not found in schema: "%s"',e),t}(t,n)),n)}const O=["allOf","anyOf","oneOf"],C=["default","enum","format","isRequired","title","uniforms"],k=[["maxItems","maxCount"],["maximum","max"],["minItems","minCount"],["minimum","min"],["multipleOf","step"]];function x(e){return"object"==typeof e&&null!==e&&Array.isArray(e.details)}class j extends g.k{constructor(e){let{provideDefaultLabelFromFieldName:n=!0,schema:t,validator:a}=e;super(),this.provideDefaultLabelFromFieldName=n,this.schema=y(t,t),this._compiledSchema={"":this.schema},this.validator=a,this.getField=v()(this.getField.bind(this)),this.getInitialValue=v()(this.getInitialValue.bind(this)),this.getSubfields=v()(this.getSubfields.bind(this)),this.getType=v()(this.getType.bind(this))}getError(e,n){const t=x(n)&&n.details;if(!t)return null;const a=(0,b.m)(null,e).map(b.m.unescape),r=(0,b.m)(a),l=(0,b.m)(a.slice(0,-1)),i=a[a.length-1],s=t.find((e=>{var n;const t=null!==(n=e.instancePath)&&void 0!==n?n:e.dataPath,a=t?function(e){return(e=e.startsWith("/")?e.replace(/\//g,".").replace(/~0/g,"~").replace(/~1/g,"/"):e.replace(/\[('|")(.+?)\1\]/g,".$2").replace(/\[(.+?)\]/g,".$1").replace(/\\'/g,"'")).slice(1)}(t):"";return r===a||l===a&&e.params&&i===e.params.missingProperty}));return s||null}getErrorMessage(e,n){const t=this.getError(e,n);return(null==t?void 0:t.message)||""}getErrorMessages(e){if(!e)return[];if(x(e)){const{details:n}=e;return n.map((e=>e.message||""))}return e instanceof Error?[e.message]:"object"==typeof e?[]:[String(e)]}getField(e){return(0,b.m)(null,e).reduce(((n,t,a,r)=>{var l,i,s,o;const u=(0,b.m)(r.slice(0,a)),c=(0,b.m)(u,t),m=null!==(l=(o=this._compiledSchema)[c])&&void 0!==l?l:o[c]={};if(m.isRequired=!(!(null===(i=n.required)||void 0===i?void 0:i.includes(t))&&!(null===(s=this._compiledSchema[u].required)||void 0===s?void 0:s.includes(t))),"$"===t||t===""+parseInt(t,10))E(e,"array"===n.type),n=Array.isArray(n.items)?n.items[parseInt(t,10)]:n.items,E(e,!!n);else if("object"===n.type)E(e,!!n.properties),n=n.properties[b.m.unescape(t)],E(e,!!n);else{let a=!1;O.forEach((e=>{var r;null===(r=n[e])||void 0===r||r.forEach((e=>{a||(e=y(e,this.schema),t in e.properties&&(n=e.properties[t],a=!0))}))})),E(e,a)}const p=(n=y(n,this.schema)).required?n.required.slice():[],f=n.properties?Object.assign({},n.properties):{};return O.forEach((e=>{var t;null===(t=n[e])||void 0===t||t.forEach((e=>{(e=y(e,this.schema)).required&&p.push(...e.required),Object.assign(f,e.properties),!m.type&&e.type&&(m.type=e.type)}))})),p.length>0&&(m.required=p),d()(f)||(m.properties=f),n}),this.schema)}getInitialValue(e){var n;const t=this.getField(e),{default:a=(null!==(n=t.default)&&void 0!==n?n:u()(this.schema.default,e)),type:r=t.type}=this._compiledSchema[e];if(void 0!==a)return s()(a);if("array"===r){const n=this.getInitialValue((0,b.m)(e,"$"));if(void 0===n)return[];const a=t.minItems||0;return Array.from({length:a},(()=>n))}if("object"===r){const n={};return this.getSubfields(e).forEach((t=>{const a=this.getInitialValue((0,b.m)(e,t));void 0!==a&&(n[t]=a)})),n}}getProps(e){var n,t;const a=this.getField(e),r=Object.assign({},a,a.uniforms,this._compiledSchema[e]);null!==(n=r.label)&&void 0!==n||(r.label=r.title),this.provideDefaultLabelFromFieldName&&void 0===r.label&&(r.label=_()(p()((0,b.m)(null,e).slice(-1)[0]))),"number"===a.type&&(r.decimal=!0),void 0!==(null===(t=a.uniforms)||void 0===t?void 0:t.type)&&(r.type=a.uniforms.type),void 0===r.required&&(r.required=r.isRequired),r.type===a.type&&delete r.type;let l=r.options;return l?Array.isArray(l)||(l=Object.entries(l).map((e=>{let[n,t]=e;return{key:n,label:n,value:t}}))):r.enum&&(l=Object.values(r.enum).map((e=>({value:e})))),k.forEach((e=>{let[n,t]=e;n in r&&(r[t]=r[n],delete r[n])})),C.forEach((e=>{e in r&&delete r[e]})),Object.assign(r,{options:l})}getSubfields(e){void 0===e&&(e="");const n=this.getField(e),{properties:t=n.properties,type:a=n.type}=this._compiledSchema[e];return"object"===a&&t?Object.keys(t).map(b.m.escape):[]}getType(e){const{type:n,format:t}=this.getField(e),{type:a=n}=this._compiledSchema[e];return"date-time"===t?Date:"string"===a?String:"number"===a||"integer"===a?Number:"object"===a?Object:"array"===a?Array:"boolean"===a?Boolean:(l()("null"!==a,'Field "%s" can not be represented as a type null',e),a)}getValidator(){return this.validator}}},12005:function(e,n,t){"use strict";t.d(n,{V:function(){return h}});var a=t(13762),r=t.n(a),l=t(11561);r().extendOptions(["uniforms"]),l.z.register("autoValue","blackbox","custom","decimal","defaultValue","exclusiveMax","exclusiveMin","max","maxCount","min","minCount","optional","regEx","trim","type");var i=t(59312),s=t(3996),o=t.n(s),u=t(30454),c=t.n(u),d=t(16651),m=t.n(d),p=t(98949),f=t(65507);const v=["optional","uniforms","allowedValues"];class h extends p.k{constructor(e){let{schema:n}=e;super(),this.schema=n,this.getField=m()(this.getField.bind(this)),this.getInitialValue=m()(this.getInitialValue.bind(this)),this.getProps=m()(this.getProps.bind(this)),this.getSubfields=m()(this.getSubfields.bind(this)),this.getType=m()(this.getType.bind(this))}getError(e,n){const t=null==n?void 0:n.details;return Array.isArray(t)&&t.find((n=>n.name===e))||null}getErrorMessage(e,n){const t=this.getError(e,n);return t?this.schema.messageForError(t):""}getErrorMessages(e){if(!e)return[];const{details:n}=e;return Array.isArray(n)?n.map((e=>this.schema.messageForError(e))):[e.message||e]}getField(e){const n=this.schema.getDefinition(e);o()(n,'Field not found in schema: "%s"',e);const t=Object.assign(Object.assign({},n),n.type[0]);if(t.autoValue&&("defaultAutoValueFunction"===t.autoValue.name||-1!==t.autoValue.toString().indexOf("$setOnInsert:")))try{t.defaultValue=t.autoValue.call({operator:null})}catch(a){}return t}getInitialValue(e){const n=this.getField(e),t=n.defaultValue;if(void 0!==t)return c()(t);if(n.type===Array){const t=this.getInitialValue((0,f.m)(e,"$"));if(void 0===t)return[];const a=n.minCount||0;return Array.from({length:a},(()=>t))}if(n.type===Object||n.type instanceof r()){const n={};return this.getSubfields(e).forEach((t=>{const a=this.getInitialValue((0,f.m)(e,t));void 0!==a&&(n[t]=a)})),n}}getProps(e){const n=this.getField(e),{type:t}=n,a=(0,i._T)(n,["type"]);a.required=!a.optional,"function"==typeof a.uniforms||"string"==typeof a.uniforms?a.component=a.uniforms:Object.assign(a,a.uniforms),t===Number&&(a.decimal=!0);let r=a.options,l=a.allowedValues;if("function"==typeof r&&(r=r()),r||"function"!=typeof l||(l=l()),!r&&Array.isArray(l))r=l.map((e=>({value:e})));else if(t===Array)try{const n=this.getProps(`${e}.$`);n.options&&(r=n.options)}catch(s){}return v.forEach((e=>{e in a&&delete a[e]})),Object.assign(a,{options:r})}getSubfields(e){return this.schema.objectKeys(function(e){return null==e?void 0:e.replace(/\.\d+(\.|$)/g,".$$$1")}(e))}getType(e){const n=this.getField(e).type;return n===r().Integer?Number:n instanceof r()?Object:n}getValidator(e){void 0===e&&(e={clean:!0,mutate:!0});const n=this.schema.validator(e);return t=>{try{return n(e.clean?c()(Object.assign({},t)):t),null}catch(a){return a}}}}},48616:function(e,n,t){"use strict";t.d(n,{K:function(){return b}});var a=t(11561),r=t(84200);a.z.register("minCount","maxCount"),r.z.ZodType.prototype.uniforms=function(e){return this._uniforms=e,this};var l=t(3996),i=t.n(l),s=t(1883),o=t.n(s),u=t(16651),c=t.n(u),d=t(76744),m=t.n(d),p=t(65507),f=t(98949);function v(e,n){i()(n,'Field not found in schema: "%s"',e)}function h(e){return"string"!=typeof e}function _(e){return m()(o()((0,p.m)(null,e).slice(-1)[0]))}function g(e,n){void 0===n&&(n=[]);const t=e[e.length-1];if("number"==typeof t){return g(e.slice(0,e.length-1),[t,...n])}return n.length>0?`${_(e)} (${n.join(", ")})`:_(e)}class b extends f.k{constructor(e){let{schema:n,provideDefaultLabelFromFieldName:t=!0}=e;super(),this.schema=n,this.provideDefaultLabelFromFieldName=t,this.getField=c()(this.getField.bind(this)),this.getInitialValue=c()(this.getInitialValue.bind(this)),this.getProps=c()(this.getProps.bind(this)),this.getSubfields=c()(this.getSubfields.bind(this)),this.getType=c()(this.getType.bind(this))}getError(e,n){return n instanceof r.jm&&n.issues.find((n=>e===(0,p.m)(n.path)))||null}getErrorMessage(e,n){var t;return(null===(t=this.getError(e,n))||void 0===t?void 0:t.message)||""}getErrorMessages(e){return e instanceof r.jm?e.issues.map((e=>`${g(e.path)}: ${e.message}`)):e instanceof Error?[e.message]:[]}getField(e){let n=this.schema;this.schema instanceof r.Xc&&(n=this.schema._def.schema);for(const t of(0,p.m)(null,e))n instanceof r.uE?n=n.removeDefault():n instanceof r.ak&&(n=n.unwrap()),"$"===t||t===""+parseInt(t,10)?(v(e,n instanceof r.p5),n=n.element):(v(e,n instanceof r.CQ),n=n.shape[p.m.unescape(t)]);return n}getInitialValue(e){var n,t;const a=this.getField(e);if(a instanceof r.p5){const t=this.getInitialValue((0,p.m)(e,"$"));if(void 0===t)return[];const r=(null===(n=a._def.minLength)||void 0===n?void 0:n.value)||0;return Array.from({length:r},(()=>t))}if(a instanceof r.uE)return a._def.defaultValue();if(a instanceof r.K7)return a.options[0];if(a instanceof r.Zl){const e=Object.values(a.enum);return null!==(t=e.find(h))&&void 0!==t?t:e[0]}if(a instanceof r.CQ){const n={};return this.getSubfields(e).forEach((t=>{const a=this.getInitialValue((0,p.m)(e,t));void 0!==a&&(n[t]=a)})),n}}getProps(e){const n=Object.assign(Object.assign({},this.provideDefaultLabelFromFieldName&&{label:_(e)}),{required:!0});let t=this.getField(e);const a=t._uniforms;if("function"==typeof a?n.component=a:Object.assign(n,a),t instanceof r.uE?(t=t.removeDefault(),n.required=!1):t instanceof r.ak&&(t=t.unwrap(),n.required=!1),t instanceof r.p5)t._def.maxLength&&(n.maxCount=t._def.maxLength.value),t._def.minLength&&(n.minCount=t._def.minLength.value);else if(t instanceof r.K7)n.options=t.options.map((e=>({value:e})));else if(t instanceof r.Zl){const e=Object.values(t.enum),a=e.filter(h);n.options=(a.length?a:e).map((e=>({value:e})))}else if(t instanceof r.IV){t.isInt||(n.decimal=!0);const e=t.maxValue;null!==e&&(n.max=e);const a=t.minValue;null!==a&&(n.min=a);const r=t._def.checks.find((e=>"multipleOf"===e.kind));r&&(n.step=r.value)}return n}getSubfields(e){void 0===e&&(e="");let n=this.getField(e);return n instanceof r.uE?n=n.removeDefault():n instanceof r.ak&&(n=n.unwrap()),n instanceof r.p5?["$"]:n instanceof r.CQ?Object.keys(n.shape):[]}getType(e){let n=this.getField(e);if(n instanceof r.uE?n=n.removeDefault():n instanceof r.ak&&(n=n.unwrap()),n instanceof r.p5)return Array;if(n instanceof r.pZ)return Boolean;if(n instanceof r.$s)return Date;if(n instanceof r.K7||n instanceof r.$T)return String;if(n instanceof r.Zl){return"number"==typeof Object.values(n.enum).find(h)?Number:String}return n instanceof r.IV?Number:n instanceof r.CQ?Object:void i()(!1,'Field "%s" has an unknown type',e)}getValidator(){return e=>{const n=this.schema.safeParse(e);return n.success?null:n.error}}}},68599:function(e,n,t){"use strict";var a=t(3996),r=t.n(a),l=t(6846),i=t(12138),s=t(14449),o=t(64694),u=t(80661),c=t(59492),d=t(44591),m=t(47822),p=t(99086);const f=(0,l.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?d.Z:m.Z;switch(e.fieldType){case Array:return o.Z;case Boolean:return i.Z;case Date:return s.Z;case Number:return c.Z;case Object:return u.Z;case String:return p.Z}return r()(!1,"Unsupported field type: %s",e.fieldType)}));n.Z=f},2310:function(e,n,t){"use strict";var a=t(39850),r=t(79904);n.Z=function e(n){class t extends(a.N.Auto(n)){}return t.Auto=e,t}(r.Z)},99574:function(e,n,t){"use strict";var a=t(60042),r=t.n(a),l=t(6820);n.Z=function e(n){class t extends n{getNativeFormProps(){const e=super.getNativeFormProps(),n=this.getContextError();return Object.assign(Object.assign({},e),{className:r()("ui",e.className,{error:n},"form")})}}return t.Semantic=e,t.displayName=`Semantic${n.displayName}`,t}(l.I)},12138:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424);n.Z=(0,o.e)((function(e){var{className:n,disabled:t,error:r,errorMessage:o,id:u,inputRef:c,label:d,name:m,onChange:p,readOnly:f,required:v,showInlineError:h,value:_,wrapClassName:g}=e,b=(0,a._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","readOnly","required","showInlineError","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:t,error:r,required:v},"field")},(0,s.z)(b)),i.createElement("div",{className:l()("ui",g,!d&&"fitted","checkbox")},i.createElement("input",{checked:_||!1,className:"hidden",disabled:t,id:u,name:m,onChange:()=>{f||p(!_)},ref:c,type:"checkbox"}),i.createElement("label",{htmlFor:u},d||null)),!(!r||!h)&&i.createElement("div",null,i.createElement("div",{className:"ui red basic pointing label"},o)))}),{kind:"leaf"})},14449:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424);const u=("object"==typeof t.g?t.g:window).Date,c=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};n.Z=(0,o.e)((function(e){var n,{className:t,disabled:r,error:o,errorMessage:d,icon:m,iconLeft:p,iconProps:f,id:v,inputRef:h,label:_,max:g,min:b,name:E,onChange:y,placeholder:O,readOnly:C,required:k,showInlineError:x,value:j,wrapClassName:P,type:N="datetime-local"}=e,F=(0,a._T)(e,["className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","value","wrapClassName","type"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:r,error:o,required:k},"field")},(0,s.z)(F)),_&&i.createElement("label",{htmlFor:v},_),i.createElement("div",{className:l()("ui",P,{left:p,icon:m||p},"input")},i.createElement("input",{disabled:r,id:v,max:c(g),min:c(b),name:E,onChange:e=>{const n=new u(e.target.valueAsNumber);n.getFullYear()<1e4?y(n):isNaN(e.target.valueAsNumber)&&y(void 0)},placeholder:O,readOnly:C,ref:h,type:N,value:null!==(n=c(j,N))&&void 0!==n?n:""}),(m||p)&&i.createElement("i",Object.assign({className:`${m||p} icon`},f))),!(!o||!x)&&i.createElement("div",{className:"ui red basic pointing label"},d))}),{kind:"leaf"})},43351:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(55201),o=t(11561);n.Z=function(e){var{children:n,className:t}=e,r=(0,a._T)(e,["children","className"]);const{error:u,schema:c}=(0,s.c)();return u||n?i.createElement("div",Object.assign({className:l()("ui",t,"error message")},(0,o.z)(r)),n,i.createElement("ul",{className:"list"},c.getErrorMessages(u).map(((e,n)=>i.createElement("li",{key:n},e))))):null}},77900:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(30454),s=t.n(i),o=t(27378),u=t(65507),c=t(68591),d=t(11561),m=t(76424);n.Z=(0,m.e)((function(e){var{disabled:n,name:t,readOnly:r,value:i}=e,m=(0,a._T)(e,["disabled","name","readOnly","value"]);const p=(0,u.m)(null,t),f=(0,u.m)(p.slice(0,-1)),v=(0,c.U)(f,{},{absoluteName:!0})[0],h=!(n||v.maxCount<=v.value.length);function _(e){!h||r||"key"in e&&"Enter"!==e.key||v.onChange(v.value.concat([s()(i)]))}return o.createElement("i",Object.assign({},(0,d.z)(m),{className:l()("ui",m.className,h?"link":"disabled","fitted add icon"),onClick:_,onKeyDown:_,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},960:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(65507),o=t(68591),u=t(11561),c=t(76424);n.Z=(0,c.e)((function(e){var{disabled:n,name:t,readOnly:r}=e,c=(0,a._T)(e,["disabled","name","readOnly"]);const d=(0,s.m)(null,t),m=+d[d.length-1],p=(0,s.m)(d.slice(0,-1)),f=(0,o.U)(p,{},{absoluteName:!0})[0];function v(e){if(!(n||"key"in e&&"Enter"!==e.key)){const e=f.value.slice();e.splice(m,1),f.onChange(e)}}return n||(n=r||f.minCount>=f.value.length),i.createElement("i",Object.assign({},(0,u.z)(c),{className:l()("ui",c.className,n?"link":"disabled","fitted close icon"),onClick:v,onKeyDown:v,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},64694:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424),u=t(77900),c=t(18747);n.Z=(0,o.e)((function(e){var{children:n=i.createElement(c.Z,{name:"$"}),className:t,disabled:r,error:o,errorMessage:d,itemProps:m,label:p,required:f,showInlineError:v,value:h}=e,_=(0,a._T)(e,["children","className","disabled","error","errorMessage","itemProps","label","required","showInlineError","value"]);return i.createElement("div",Object.assign({className:l()("ui",t,{disabled:r},"grouped fitted fields list")},(0,s.z)(_)),p&&i.createElement("div",{className:l()({error:o,required:f},"field item")},i.createElement("label",{className:"left floated"},p),i.createElement(u.Z,{className:"right floated",name:"$"})),p&&i.createElement("div",{className:"ui fitted hidden clearing horizontal divider"}),!(!o||!v)&&i.createElement("div",{className:"ui red basic label"},d),null==h?void 0:h.map(((e,t)=>i.Children.map(n,((e,n)=>{var a;return(0,i.isValidElement)(e)?(0,i.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+t)},m)):e})))))}))},18747:function(e,n,t){"use strict";var a=t(27378),r=t(76424),l=t(68599),i=t(960);n.Z=(0,r.e)((function(e){let{children:n=a.createElement(l.Z,{label:null,name:""})}=e;return a.createElement("div",{className:"item"},a.createElement(i.Z,{className:"top aligned",name:""}),a.createElement("div",{className:"middle aligned content",style:{width:"100%"}},n))}),{initialValue:!1})},80661:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424),u=t(68599);function c(e){var{children:n,className:t,disabled:r,error:o,errorMessage:c,fields:d,grouped:m,itemProps:p,label:f,showInlineError:v}=e,h=(0,a._T)(e,["children","className","disabled","error","errorMessage","fields","grouped","itemProps","label","showInlineError"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:r,error:o,grouped:m},"fields")},(0,s.z)(h)),f&&i.createElement("div",{className:"field"},i.createElement("label",null,f)),!(!o||!v)&&i.createElement("div",{className:"ui red basic label"},c),n||d.map((e=>i.createElement(u.Z,Object.assign({key:e,name:e},p)))))}c.defaultProps={grouped:!0},n.Z=(0,o.e)(c)},59492:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424);n.Z=(0,o.e)((function(e){var{className:n,decimal:t,disabled:r,error:o,errorMessage:u,icon:c,iconLeft:d,iconProps:m,id:p,inputRef:f,label:v,max:h,min:_,name:g,onChange:b,placeholder:E,readOnly:y,required:O,showInlineError:C,step:k,value:x,wrapClassName:j}=e,P=(0,a._T)(e,["className","decimal","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","step","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:r,error:o,required:O},"field")},(0,s.z)(P)),v&&i.createElement("label",{htmlFor:p},v),i.createElement("div",{className:l()("ui",j,{left:d,icon:c||d},"input")},i.createElement("input",{disabled:r,id:p,max:h,min:_,name:g,onChange:e=>{const n=(t?parseFloat:parseInt)(e.target.value);b(isNaN(n)?void 0:n)},placeholder:E,readOnly:y,ref:f,step:k||(t?.01:1),type:"number",value:null!=x?x:""}),(c||d)&&i.createElement("i",Object.assign({className:`${c||d} icon`},m))),!(!o||!C)&&i.createElement("div",{className:"ui red basic pointing label"},u))}),{kind:"leaf"})},52559:function(e,n,t){"use strict";var a=t(51674),r=t(68599),l=t(99574),i=t(43351),s=t(82986);n.Z=function e(n){class t extends(a.X.Quick(n)){getAutoField(){return r.Z}getErrorsField(){return i.Z}getSubmitField(){return s.Z}}return t.Quick=e,t}(l.Z)},44591:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(48159),s=t.n(i),o=t(27378),u=t(11561),c=t(76424);const d="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>d(encodeURIComponent(e)).replace(/=+$/,"");n.Z=(0,c.e)((function(e){var{options:n,className:t,disabled:r,error:i,errorMessage:c,id:d,label:p,name:f,onChange:v,readOnly:h,required:_,showInlineError:g,value:b}=e,E=(0,a._T)(e,["options","className","disabled","error","errorMessage","id","label","name","onChange","readOnly","required","showInlineError","value"]);return o.createElement("div",Object.assign({className:l()(t,{disabled:r,error:i},"grouped fields")},s()((0,u.z)(E),["checkboxes"])),p&&o.createElement("div",{className:l()({required:_},"field")},o.createElement("label",null,p)),null==n?void 0:n.map((e=>{var n,t,a,l;return o.createElement("div",{className:"field",key:null!==(n=e.key)&&void 0!==n?n:e.value},o.createElement("div",{className:"ui radio checkbox"},o.createElement("input",{checked:e.value===b,disabled:e.disabled||r,id:`${d}-${null!==(t=e.key)&&void 0!==t?t:m(e.value)}`,name:f,onChange:()=>{h||v(e.value)},type:"radio"}),o.createElement("label",{htmlFor:`${d}-${null!==(a=e.key)&&void 0!==a?a:m(e.value)}`},null!==(l=e.label)&&void 0!==l?l:e.value)))})),!(!i||!g)&&o.createElement("div",{className:"ui red basic pointing label"},c))}),{kind:"leaf"})},47822:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(20098),s=t.n(i),o=t(27378),u=t(11561),c=t(76424);const d="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>d(encodeURIComponent(e)).replace(/=+$/,""),p={paddingBottom:0,paddingTop:0};n.Z=(0,c.e)((function(e){var{options:n,checkboxes:t,className:r,disabled:i,error:c,errorMessage:d,fieldType:f,id:v,inputRef:h,label:_,name:g,onChange:b,placeholder:E,readOnly:y,required:O,showInlineError:C,value:k}=e,x=(0,a._T)(e,["options","checkboxes","className","disabled","error","errorMessage","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);const j=f===Array;return o.createElement("div",Object.assign({className:l()({disabled:i,error:c,required:O},r,"field")},(0,u.z)(x)),_&&o.createElement("label",{htmlFor:v},_),t?null==n?void 0:n.map((e=>{var n,t,a,r;return o.createElement("div",{className:"field",key:null!==(n=e.key)&&void 0!==n?n:e.value},o.createElement("div",{className:"ui checkbox"},o.createElement("input",{checked:j?null==k?void 0:k.includes(e.value):k===e.value,disabled:e.disabled||i,id:`${v}-${null!==(t=e.key)&&void 0!==t?t:m(e.value)}`,name:g,onChange:()=>{y||b(j?s()([e.value],k):e.value)},type:"checkbox"}),o.createElement("label",{htmlFor:`${v}-${null!==(a=e.key)&&void 0!==a?a:m(e.value)}`},null!==(r=e.label)&&void 0!==r?r:e.value)))})):o.createElement("select",{className:"ui selection dropdown",disabled:i,id:v,multiple:j,name:g,onChange:e=>{if(!y){const n=e.target.value;if(j){const t=-1===e.target.selectedIndex;b(t?[]:s()([n],k))}else b(""!==n?n:void 0)}},ref:h,style:p,value:null!=k?k:""},(!!E||!O||void 0===k)&&!j&&o.createElement("option",{value:"",disabled:O,hidden:O},E||_),null==n?void 0:n.map((e=>{var n,t;return o.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))),!(!c||!C)&&o.createElement("div",{className:"ui red basic pointing label"},d))}),{kind:"leaf"})},82986:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(55201),o=t(11561);function u(e){var{className:n,disabled:t,inputRef:r,readOnly:u,value:c}=e,d=(0,a._T)(e,["className","disabled","inputRef","readOnly","value"]);const{error:m,state:p}=(0,s.c)();return i.createElement("input",Object.assign({className:l()("ui",n,"button"),disabled:void 0===t?!(!m&&!p.disabled):t,readOnly:u,ref:r,type:"submit"},c?{value:c}:{},(0,o.z)(d)))}},99086:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424);function u(e){var{autoComplete:n,className:t,disabled:r,error:o,errorMessage:u,icon:c,iconLeft:d,iconProps:m,id:p,inputRef:f,label:v,name:h,onChange:_,placeholder:g,readOnly:b,required:E,showInlineError:y,type:O,value:C,wrapClassName:k}=e,x=(0,a._T)(e,["autoComplete","className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","type","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:r,error:o,required:E},"field")},(0,s.z)(x)),v&&i.createElement("label",{htmlFor:p},v),i.createElement("div",{className:l()("ui",k,{left:d,icon:c||d},"input")},i.createElement("input",{autoComplete:n,disabled:r,id:p,name:h,onChange:e=>_(e.target.value),placeholder:g,readOnly:b,ref:f,type:O,value:null!=C?C:""}),(c||d)&&i.createElement("i",Object.assign({className:`${c||d} icon`},m))),!(!o||!y)&&i.createElement("div",{className:"ui red basic pointing label"},u))}u.defaultProps={type:"text"},n.Z=(0,o.e)(u,{kind:"leaf"})},3684:function(e,n,t){"use strict";var a=t(23674),r=t(99574);n.Z=function e(n){class t extends(a.O.Validated(n)){}return t.Validated=e,t}(r.Z)},79904:function(e,n,t){"use strict";var a=t(99574),r=t(52559),l=t(3684);n.Z=l.Z.Validated(r.Z.Quick(a.Z))},96614:function(e,n,t){"use strict";var a=t(59312),r=t(27378),l=t(11561),i=t(76424);n.Z=(0,i.e)((function(e){var{disabled:n,id:t,inputRef:i,label:s,name:o,onChange:u,placeholder:c,readOnly:d,value:m}=e,p=(0,a._T)(e,["disabled","id","inputRef","label","name","onChange","placeholder","readOnly","value"]);return r.createElement("div",Object.assign({},(0,l.z)(p)),s&&r.createElement("label",{htmlFor:t},s),r.createElement("textarea",{disabled:n,id:t,name:o,onChange:e=>u(e.target.value),placeholder:c,readOnly:d,ref:i,value:null!=m?m:""}))}),{kind:"leaf"})},39850:function(e,n,t){"use strict";t.d(n,{N:function(){return p}});var a=t(13784),r=t.n(a),l=t(56141),i=t.n(l),s=t(48159),o=t.n(s),u=t(96498),c=t.n(u),d=t(6820),m=t(51674);const p=function e(n){class t extends n{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{model:this.mergeSchemaAndPropsModel(this.props.schema,this.props.model)})}mergeSchemaAndPropsModel(e,n){const t=e.getInitialModel();return Object.assign(t,n)}componentDidUpdate(e,n,t){const{model:a,schema:r}=this.props;i()(a,e.model)||this.setState({model:this.mergeSchemaAndPropsModel(r,a)}),super.componentDidUpdate(e,n,t)}getNativeFormProps(){const e=super.getNativeFormProps();return o()(e,["onChangeModel"])}getModel(e){return this.state.model}onChange(e,n){super.onChange(e,n),this.setState((t=>({model:c()(r()(t.model),e,n,r())})),(()=>{this.props.onChangeModel&&this.props.onChangeModel(this.state.model)}))}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{model:this.props.model})}}return t.Auto=e,t.displayName=`Auto${n.displayName}`,t}((0,t(23674).u)((0,m.s)(d.I)))},6820:function(e,n,t){"use strict";t.d(n,{I:function(){return b}});var a=t(13784),r=t.n(a),l=t(99729),i=t.n(l),s=t(48159),o=t.n(s),u=t(96498),c=t.n(u),d=t(27378),m=t(56141),p=t.n(m),f=t(65507);function v(e){return!(!e||e!==Object(e)||e instanceof Date)}var h=t(34361);function _(e){let n=0;return()=>`${e}-${("000"+(n++).toString(36)).slice(-4)}`}const g=_("uniforms");class b extends d.Component{constructor(e){var n,t;super(e),n=this,this.state={changed:!1,changedMap:Object.create(null),resetCount:0,submitted:!1,submitting:!1},this.mounted=!1,this.randomId=(void 0===(t=this.props.id)&&(t=g()),_(t)),this.onReset=this.reset=this.onReset.bind(this),this.onChange=this.change=this.onChange.bind(this),this.onSubmit=this.submit=this.onSubmit.bind(this);const a=this.getModel.bind(this);this.getModel=function(e,t){return void 0===t&&(t=a(e)),void 0!==e&&n.props.modelTransform?n.props.modelTransform(e,t):t}}componentDidMount(){this.mounted=!0}componentDidUpdate(e,n,t){}componentWillUnmount(){this.mounted=!1,this.delayId&&clearTimeout(this.delayId)}getContext(){return{changed:this.state.changed,changedMap:this.state.changedMap,error:this.getContextError(),formRef:this,model:this.getContextModel(),name:this.getContextName(),onChange:this.getContextOnChange(),onSubmit:this.getContextOnSubmit(),randomId:this.randomId,schema:this.getContextSchema(),state:this.getContextState(),submitted:this.state.submitted,submitting:this.state.submitting,validating:!1}}getContextName(){return[]}getContextError(){return this.props.error}getContextModel(){return this.getModel("form")}getContextState(){return{disabled:!!this.props.disabled,readOnly:!!this.props.readOnly,showInlineError:!!this.props.showInlineError}}getContextSchema(){return this.props.schema}getContextOnChange(){return this.onChange}getContextOnSubmit(){return this.onSubmit}getModel(e,n){return void 0===n&&(n=this.props.model),n}getNativeFormProps(){const e=o()(this.props,["autosave","autosaveDelay","disabled","error","model","modelTransform","onChange","onSubmit","readOnly","schema","showInlineError"]);return Object.assign(Object.assign({},e),{onSubmit:this.onSubmit,key:`reset-${this.state.resetCount}`})}onChange(e,n){if(this.mounted){const t=function(e,n,t){if(!v(n)||t&&typeof n!=typeof t)return p()(n,t)?[]:[e];const a=[e];if(v(t)){for(const r in n)r in t&&p()(n[r],t[r])||a.push((0,f.m)(e,r));for(const r in t)r in n||a.push((0,f.m)(e,r));1===a.length&&a.pop()}else for(const r in n)a.push((0,f.m)(e,r));return a}(e,n,i()(this.getModel(),e));0!==t.length&&this.setState((e=>e.changed&&t.every((n=>!!i()(e.changedMap,n)))?null:{changed:!0,changedMap:t.reduce(((e,n)=>c()(e,n,{},r())),r()(e.changedMap))}))}this.props.onChange&&this.props.onChange(e,n),this.mounted&&this.props.autosave&&(this.delayId&&clearTimeout(this.delayId),this.delayId=setTimeout((()=>{this.mounted&&this.setState((()=>null),(()=>{this.onSubmit()}))}),this.props.autosaveDelay))}__reset(e){return{changed:!1,changedMap:Object.create(null),resetCount:e.resetCount+1,submitted:!1,submitting:!1}}onReset(){this.mounted&&this.setState(this.__reset)}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.mounted&&this.setState((e=>e.submitted?null:{submitted:!0}));const n=this.props.onSubmit(this.getModel("submit"));return n instanceof Promise?(this.mounted&&this.setState({submitting:!0}),n.finally((()=>{this.mounted&&this.setState({submitting:!1})}))):Promise.resolve()}render(){return d.createElement(h.D.Provider,{value:this.getContext()},d.createElement("form",Object.assign({},this.getNativeFormProps())))}}b.displayName="Form",b.defaultProps={autosave:!1,autosaveDelay:0,error:null,model:Object.create(null),noValidate:!0,onSubmit(){}}},98949:function(e,n,t){"use strict";t.d(n,{k:function(){return s}});var a=t(3996),r=t.n(a),l=t(47215),i=t.n(l);class s{constructor(){for(var e=arguments.length,n=new Array(e),t=0;tr.createElement(i,{key:e,name:e}))).concat([r.createElement(n,{key:"$ErrorsField"}),r.createElement(t,{key:"$SubmitField"})])),l}getAutoField(){return()=>null}getErrorsField(){return()=>null}getSubmitField(){return()=>null}}return n.Quick=l,n.displayName=`Quick${e.displayName}`,n}const i=l(t(6820).I)},23674:function(e,n,t){"use strict";t.d(n,{O:function(){return _},u:function(){return v}});var a=t(13784),r=t.n(a),l=t(30454),i=t.n(l),s=t(56141),o=t.n(s),u=t(50344),c=t.n(u),d=t(48159),m=t.n(d),p=t(96498),f=t.n(p);function v(e){class n extends e{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{error:null,validate:!1,validating:!1,validator:this.getContextSchema().getValidator(e.validator)}),this.onValidate=this.validate=this.onValidate.bind(this),this.onValidateModel=this.validateModel=this.onValidateModel.bind(this)}getContextError(){var e;return null!==(e=super.getContextError())&&void 0!==e?e:this.state.error}getContext(){return Object.assign(Object.assign({},super.getContext()),{validating:this.state.validating})}getNativeFormProps(){const e=super.getNativeFormProps();return m()(e,["onValidate","validate","validator"])}componentDidUpdate(e,n,t){super.componentDidUpdate(e,n,t);const{model:a,schema:r,validate:l,validator:i}=this.props;r!==e.schema||i!==e.validator?this.setState({validator:r.getValidator(i)},(()=>{h(l,this.state.validate)&&this.onValidate()})):!o()(a,e.model)&&h(l,this.state.validate)&&this.onValidateModel(a)}onChange(e,n){h(this.props.validate,this.state.validate)&&this.onValidate(e,n),super.onChange(e,n)}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{error:null,validate:!1,validating:!1})}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.setState({submitted:!0,validate:!0});const n=this.onValidate().then((e=>null!==e?Promise.reject(e):super.onSubmit().catch((e=>{throw this.setState({error:e}),e}))));return n.catch(c()),n}onValidate(e,n){let t=this.getContextModel();return t&&e&&(t=f()(r()(t),e,i()(n),r())),this.onValidateModel(t)}onValidateModel(e){var n=this;const t=this.getModel("validate",e),a=function(e){function n(n,t){return n instanceof Promise?(e(),n.then(t)):t(n)}return n}((()=>{this.setState({validating:!0})}));return a(this.state.validator(t),(function(e){return void 0===e&&(e=null),a(n.props.onValidate(t,e),(function(e){var t;return void 0===e&&(e=null),e=n.props.error===e?null:e,n.setState((n=>n.error!==e||n.validating?{error:e,validating:!1}:null)),Promise.resolve(null!==(t=n.props.error)&&void 0!==t?t:e)}))}))}}return n.Validated=v,n.displayName=`Validated${e.displayName}`,n.defaultProps=Object.assign(Object.assign({},e.defaultProps),{onValidate(e,n){return n},validate:"onChangeAfterSubmit"}),n}function h(e,n){return"onChange"===e||"onChangeAfterSubmit"===e&&n}const _=v(t(6820).I)},76424:function(e,n,t){"use strict";t.d(n,{e:function(){return o}});var a=t(25389),r=t.n(a),l=t(27378),i=t(34361),s=t(68591);function o(e,n){function t(t){const[a,o]=(0,s.U)(t.name,t,n),u=function(e,n,t){if("leaf"===(null==t?void 0:t.kind))return e;const a=""!==n.name,l=Object.keys(e.state).some((e=>null!=n[e]));if(!a&&!l)return e;const i=Object.assign({},e);return a&&(i.name=i.name.concat(n.name)),l&&(i.state=r()(i.state,((e,t)=>{const a=n[t];return null!=a?!!a:e}))),i}(o,t,n),c=l.createElement(e,Object.assign({},t,a));return o===u?c:l.createElement(i.D.Provider,{children:c,value:u})}return t.displayName=`${e.displayName||e.name}Field`,Object.assign(t,{Component:e,options:n})}},34361:function(e,n,t){"use strict";t.d(n,{D:function(){return a}});const a=(0,t(27378).createContext)(null)},6846:function(e,n,t){"use strict";t.d(n,{a:function(){return o}});var a=t(59312),r=t(3996),l=t.n(r),i=t(27378),s=t(68591);function o(e){const n=(0,i.createContext)(e);return Object.assign((function(e){var t,{experimental_absoluteName:r}=e,o=(0,a._T)(e,["experimental_absoluteName"]);const u={absoluteName:r},[c,d]=(0,s.U)(o.name,o,u),m=(0,i.useContext)(n)(c,d);return l()(m,"AutoField received no component for: %s",c.name),"options"in m&&"leaf"===(null===(t=m.options)||void 0===t?void 0:t.kind)?(0,i.createElement)(m.Component,c):(0,i.createElement)(m,o)}),{componentDetectorContext:n,defaultComponentDetector:e})}},11561:function(e,n,t){"use strict";t.d(n,{z:function(){return l}});const a=[],r=new Set,l=Object.assign((function(e){const n=Object.assign({},e);for(const t in e)r.has(t)&&delete n[t];return n}),{register(){for(var e=arguments.length,n=new Array(e),t=0;t{r.has(e)||(a.push(e),r.add(e))})),a.sort()},registered:a});l.register("changed","error","errorMessage","field","fieldType","fields","name","onChange","value","disabled","showInlineError","component")},65507:function(e,n,t){"use strict";t.d(n,{m:function(){return d}});const a=/[.[\]]/,r=/"/g;function l(e){return""===e||a.test(e)?`["${e.replace(r,'\\"')}"]`:e}function i(e,n){const t=l(e);return t===e?n?`.${e}`:e:t}const s=/^\["(.*)"]$/,o=/\\"/g;function u(e){const n=s.exec(e);return n?n[1].replace(o,'"'):e}const c=/^([^.[\]]*(?:\.[^.[\]]+)*)(?:\.?(\["(?:(?:[^"]|\\")*?[^\\])?"])\.?(.*))?$/;const d=Object.assign((function(){for(var e=arguments.length,n=new Array(e),t=0;t{const a=n[t];return null!=a?!!a:e})),_=!!r()(d.changedMap,m),g=d.schema.getError(m,d.error),b=d.schema.getErrorMessage(m,d.error),E=d.schema.getType(m),y=d.schema.getSubfields(m),O=d.schema.getProps(m),C=null!==(l=null!==(a=n.label)&&void 0!==a?a:O.label)&&void 0!==l?l:"",k=(0,s.useMemo)((()=>d.randomId()),[]),x=(0,s.useCallback)((function(e,n){void 0===n&&(n=m),v.current=!0,d.onChange(n,e)}),[d.onChange,m]),j=r()(d.model,m);let P,N=null!==(c=n.value)&&void 0!==c?c:j;f&&(v.current||(void 0===N?(N=d.schema.getInitialValue(m),P=N):void 0!==n.value&&n.value!==j&&(P=n.value)),(0,s.useEffect)((()=>{void 0!==P&&x(P)}),[]));return[Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:k},h),{changed:_,error:g,errorMessage:b,field:p,fieldType:E,fields:y,onChange:x,value:N}),O),n),{label:C,name:m}),d]}},55201:function(e,n,t){"use strict";t.d(n,{c:function(){return s}});var a=t(3996),r=t.n(a),l=t(27378),i=t(34361);function s(){const e=(0,l.useContext)(i.D);return r()(null!==e,"useForm must be used within a form.\n\nTwo most common reasons for this error are:\n1. Component calling this function doesn't have a parent Form component in the tree.\n2. A duplicate uniforms dependency is installed in node_modules.\n\nFor more info check FAQ: https://uniforms.tools/docs/faq/#useform-must-be-used-within-a-form\n "),e}},57292:function(e,n,t){"use strict";t.d(n,{f:function(){return l}});var a=t(95256),r=t(27378);function l(e){let{language:n,replace:t,section:l,source:i}=e;if("object"==typeof i&&"default"in i&&(i=i.default),l){const e=new RegExp(`// <${l}>\\s([\\s\\S]*?)\\s// \\s`,"g");i=i.split(e).reduce(((e,n,t)=>t%2==0?e:`${e}\n\n${n}`),"")}if(i=i.replace(/\/\/ <.*?\n/g,""),t)for(const[a,r]of Object.entries(t))i=i.replace(new RegExp(a,"gs"),r);return i=i.trim(),i.includes("\n")||(i+="\n"),r.createElement(a.Z.pre,null,r.createElement(a.Z.code,{children:i,className:`language-${n}`,mdxType:"code",originalType:"code",parentName:"pre"}))}},633:function(e,n,t){"use strict";t.d(n,{n:function(){return d}});var a=t(25773),r=t(27378),l=t(4940),i=t(99729),s=t.n(i);function o(e){const[n,t]=(0,r.useState)(300),a=(0,r.useRef)(),l=(0,r.useCallback)((()=>function(e,n){const t=s()(e.current,"node.contentDocument.body.scrollHeight",0);0!==t&&n(t)}(a,t)),[a,t]);return(0,r.useEffect)((()=>{const e=setInterval(l,1e3);return()=>clearInterval(e)}),[l,...e]),{onLoad:l,ref:a,style:{height:n}}}var u=t(80912),c=t(37126);function d(e){const n=(0,r.useContext)(u.nN),t=o([e.children]);return r.createElement("div",{className:l.Z["form-wrapper"]},r.createElement(c.d,(0,a.Z)({frameProps:t,theme:n},e)))}},37126:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return Playground},d:function(){return PlaygroundWrap}});var _home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(25773),antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(64222),classnames__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(60042),classnames__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__),lodash_omit__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(48159),lodash_omit__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(27378),react_frame_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5766),uniforms__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23674),uniforms__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(34361),uniforms__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(55201),uniforms__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(76424),_index_module_css__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4940),_lib_presets__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5037),_lib_schema__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5413),_lib_styles__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(27611),_lib_universal__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(80912),_lib_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(37309);class Playground extends react__WEBPACK_IMPORTED_MODULE_2__.Component{static getDerivedStateFromError(e){return{error:e}}constructor(){super(...arguments);const e=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.clean((0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.mB)());try{_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.validate(e)}catch(n){n.details.forEach((n=>{let{name:t}=n;e[t]=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.getDefinition(t).defaultValue}))}this.state=e,this.onChange=this.onChange.bind(this)}componentDidMount(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}componentDidUpdate(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}onChange(e,n){"preset"===e&&this.setState((e=>({props:{...e.props,schema:_lib_presets__WEBPACK_IMPORTED_MODULE_5__.Z[n]}}))),this.setState({error:void 0,[e]:n})}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundForm,{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z.playground,model:this.state,onChange:this.onChange,schema:_lib_schema__WEBPACK_IMPORTED_MODULE_6__.J},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-column"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement("nav",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-toolbar"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"preset"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"theme"})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPropsField,{name:"props",spellCheck:!1})),this.state.error?react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",{children:""+this.state.error}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPreviewField,{name:"props",nameTheme:"theme"}))}}class PlaygroundForm extends uniforms__WEBPACK_IMPORTED_MODULE_10__.O{getContextState(){return{...super.getContextState(),theme:this.props.model.theme}}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(uniforms__WEBPACK_IMPORTED_MODULE_11__.D.Provider,{value:this.getContext()},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",lodash_omit__WEBPACK_IMPORTED_MODULE_1___default()(this.getNativeFormProps(),["onSubmit"])))}}const PlaygroundModelDebug=()=>{const{model:e}=(0,uniforms__WEBPACK_IMPORTED_MODULE_12__.c)();return react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("code",null,`const model = ${JSON.stringify(e,null,2)};`)))};class PlaygroundPreview extends react__WEBPACK_IMPORTED_MODULE_2__.Component{constructor(){super(...arguments),this._schema=eval(`(${this.props.value.schema})`)}UNSAFE_componentWillReceiveProps(props){this.props.value.schema!==props.value.schema&&(this._schema=eval(`(${props.value.schema})`))}render(){const{AutoFields:e,AutoForm:n,ErrorsField:t,SubmitField:a}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[this.props.theme||"unstyled"],{asyncOnSubmit:r,asyncOnValidate:l,schema:i,...s}=this.props.value;return s.schema=this._schema,r&&(s.onSubmit=()=>new Promise((e=>{setTimeout(e,1e3)}))),l&&(s.onValidate=(e,n)=>new Promise((e=>{setTimeout((()=>{e(n)}),1e3)}))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:this.props.theme},this.props.errorMessage?react__WEBPACK_IMPORTED_MODULE_2__.createElement("span",{children:this.props.errorMessage}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(n,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({key:(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.nN)(i)},s),react__WEBPACK_IMPORTED_MODULE_2__.createElement(e,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(t,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(a,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundModelDebug,null)))}}const PlaygroundPreviewField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundPreview);class PlaygroundProps extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{onChange:e,schema:n,theme:t,value:a}=this.props,r="antd"===t,l="bootstrap4"===t,i="material"===t,s="semantic"===t,{AutoForm:o,BoolField:u,ErrorsField:c,LongTextField:d,NumField:m}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[t||"unstyled"];return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:t},react__WEBPACK_IMPORTED_MODULE_2__.createElement(o,{autosave:!0,autosaveDelay:100,model:a,onSubmit:e,schema:n},react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"autosave"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(m,{name:"autosaveDelay",disabled:!a.autosave}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"disabled"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"readOnly"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"label"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"placeholder"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"showInlineError",disabled:!(r||l||i||s)}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"asyncOnSubmit"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"asyncOnValidate"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(d,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({name:"schema"},i&&{fullWidth:!0,rowsMax:20})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,null)))}}const PlaygroundPropsField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundProps);class PlaygroundSelect extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{options:e,onChange:n,value:t}=this.props;return react__WEBPACK_IMPORTED_MODULE_2__.createElement("select",{onChange:e=>n(e.target.value),value:t},e.map((e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement("option",{key:e.key??e.value,value:e.value},e.label??e.value))))}}const PlaygroundSelectField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundSelect);class PlaygroundWrap extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{children:e,frameProps:n,theme:t}=this.props,a=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,e,_lib_styles__WEBPACK_IMPORTED_MODULE_7__.Z[t]);if("material"===t||"mui"===t)return react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{children:a,className:classnames__WEBPACK_IMPORTED_MODULE_0___default()("frame-root",_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"])});let r=a;return"antd"===t&&(r=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.Kr,null,(e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__.default,{getPopupContainer:()=>e.document.body},a)))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.ZP,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({children:r,className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"]},n))}}},46867:function(e,n,t){"use strict";t.d(n,{TX:function(){return o},mQ:function(){return c}});var a=t(60042),r=t.n(a),l=t(27378),i=t(4940),s=t(59150);function o(e){let{activeTab:n,items:t,onTab:a}=e;return l.createElement("div",{className:i.Z.tabs},t.map(((e,t)=>{let{name:r}=e;return l.createElement(u,{active:n===t,key:t,onClick:()=>a(t)},r)})))}function u(e){let{active:n,children:t,onClick:a}=e;return l.createElement("span",{className:r()(i.Z.item,n&&i.Z.active),onClick:a,onKeyDown:e=>"Enter"===e.key&&a(),role:"button",tabIndex:0},t)}function c(e){let{children:n,group:t,tabs:a}=e;const{activeTab:r,onTab:i}=(0,s.Y)(t);return l.createElement(l.Fragment,null,l.createElement(o,{activeTab:r,items:a,onTab:i}),n(a[r]))}},53009:function(e,n,t){"use strict";t.d(n,{R:function(){return o}});var a=t(27378),r=t(80912),l=t(633),i=t(46867);const s=[{name:"Semantic",value:"semantic"},{name:"Material",value:"material"},{name:"MUI",value:"mui"},{name:"Bootstrap4",value:"bootstrap4"},{name:"Bootstrap5",value:"bootstrap5"},{name:"AntD",value:"antd"},{name:"Unstyled",value:"unstyled"}];function o(e){let{children:n}=e;return a.createElement(i.mQ,{group:"tutorial",tabs:s},(e=>{let{value:t}=e;return a.createElement(r.nN.Provider,{value:t},a.createElement(l.n,null,n))}))}},5037:function(e,n){"use strict";const t=e=>e[0].slice(5,-3).replace(/([\r\n]+) {4}/g,"$1"),a={"Welcome!":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + date: { type: Date, defaultValue: new Date() }, + adult: Boolean, + size: { + type: String, + defaultValue: 'm', + allowedValues: ['xs', 's', 'm', 'l', 'xl'], + }, + rating: { + type: Number, + allowedValues: [1, 2, 3, 4, 5], + uniforms: { checkboxes: true }, + }, + friends: { type: Array, minCount: 1 }, + 'friends.$': Object, + 'friends.$.name': { type: String, min: 3 }, + 'friends.$.age': { type: Number, min: 0, max: 150 }, + }) + }) + `,"Address (JSONSchema)":t` + (() => { + const ajv = new Ajv({ allErrors: true, useDefaults: true, keywords: ["uniforms"] }); + const schema = { + title: 'Address', + type: 'object', + properties: { + city: { type: 'string' }, + state: { type: 'string' }, + street: { type: 'string' }, + zip: { type: 'string', pattern: '[0-9]{5}' }, + }, + required: ['street', 'zip', 'state'], + }; + + function createValidator(schema) { + const validator = ajv.compile(schema); + + return (model) => { + validator(model); + + if (validator.errors && validator.errors.length) { + return { details: validator.errors }; + } + }; + } + + const validator = createValidator(schema); + + return new JSONSchemaBridge({ schema, validator }); + })() + `,"Address (SimpleSchema)":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + city: { + type: String, + optional: true, + max: 50, + }, + state: String, + street: { type: String, max: 100 }, + zip: { + type: String, + regEx: /^[0-9]{5}$/, + }, + }) + }) + `,"Address (Zod)":t` + new ZodBridge({ + schema: z.object({ + city: z.string().max(50).optional(), + state: z.string(), + street: z.string().max(100), + zip: z.string().regex(/^[0-9]{5}$/), + }) + }) + `,"All Fields (SimpleSchema)":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + text: { type: String }, + num: { type: Number }, + bool: { type: Boolean }, + nested: { type: Object }, + 'nested.text': { type: String }, + date: { type: Date }, + list: { type: Array }, + 'list.$': { + type: String, + uniforms: { label: 'List Text', placeholder: 'List Text Placeholder' }, + }, + select: { + type: String, + uniforms: { + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + radio: { + type: String, + uniforms: { + checkboxes: true, + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + }) + }) + `,"All Fields (Zod)":t` + new ZodBridge({ + schema: z.object({ + text: z.string(), + num: z.number(), + bool: z.boolean(), + nested: z.object({ text: z.string() }), + date: z.date(), + // TODO: Custom label and placeholder. + list: z.array(z.string()), + select: z.enum(['a', 'b']), + // TODO: Enums with custom props. + radio: z.enum(['a', 'b']), + }) + }) + `};n.Z=a},5413:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return bridge},f:function(){return schema}});var ajv__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(86236),ajv__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(ajv__WEBPACK_IMPORTED_MODULE_0__),message_box__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(28622),simpl_schema__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(13762),simpl_schema__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(simpl_schema__WEBPACK_IMPORTED_MODULE_2__),uniforms__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(11561),uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(73633),uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(12005),uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(48616),zod__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(84200),_presets__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5037),_universal__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(80912);uniforms__WEBPACK_IMPORTED_MODULE_8__.z.register("const");const scope="undefined"==typeof window?__webpack_require__.g:window;simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().extendOptions(["uniforms"]),scope.Ajv=ajv__WEBPACK_IMPORTED_MODULE_0___default(),scope.JSONSchemaBridge=uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__.j,scope.SimpleSchema=simpl_schema__WEBPACK_IMPORTED_MODULE_2___default(),scope.SimpleSchema2Bridge=uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V,scope.ZodBridge=uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__.K,scope.z=zod__WEBPACK_IMPORTED_MODULE_9__.z,message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:""}}});const propsSchema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({autosave:{optional:!0,type:Boolean},autosaveDelay:{optional:!0,type:simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().Integer},disabled:{optional:!0,type:Boolean},label:{optional:!0,type:Boolean},placeholder:{optional:!0,type:Boolean},readOnly:{optional:!0,type:Boolean},showInlineError:{optional:!0,type:Boolean},asyncOnSubmit:{optional:!0,type:Boolean,label:"Async onSubmit (1 sec)"},asyncOnValidate:{optional:!0,type:Boolean,label:"Async onValidate (1 sec)"},schema:{optional:!0,type:String,custom(){try{return void eval(`(${this.value??""})`)}catch(error){const e=error instanceof Error?error.message:String(error);return message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:e}}}),"syntax"}}}}),propsBridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:propsSchema}),schema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({preset:{type:String,defaultValue:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0],allowedValues:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)},props:{type:Object,blackbox:!0,defaultValue:{autosave:!1,autosaveDelay:100,disabled:!1,label:!0,placeholder:!1,readOnly:!1,schema:_presets__WEBPACK_IMPORTED_MODULE_6__.Z[Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0]],showInlineError:!1,asyncOnSubmit:!1,asyncOnValidate:!1},uniforms:{schema:propsBridge}},theme:{type:String,uniforms:{transform:e=>`uniforms-${e}`},defaultValue:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)[0],allowedValues:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)}}),bridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:schema})},27611:function(e,n,t){"use strict";var a=t(27378);const r=a.createElement("style",{children:'\n body {\n margin: 0;\n }\n\n textarea[name="schema"] {\n font-family: monospace !important;\n min-height: 20em !important;\n }\n\n .frame-root {\n padding: 1rem !important;\n }\n',key:"common"}),l=e=>e.map(((e,n)=>a.createElement("link",{key:n,rel:"stylesheet",href:e}))).concat(r),i={antd:l(["https://cdnjs.cloudflare.com/ajax/libs/antd/4.4.0/antd.min.css"]),bootstrap4:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css"]),bootstrap5:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css"]),material:l([]),mui:l([]),semantic:l(["https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.7/semantic.min.css"]),unstyled:l([])};n.Z=i},59150:function(e,n,t){"use strict";t.d(n,{Y:function(){return i}});var a=t(27378);const r=Object.create(null),l=Object.create(null);function i(e){const[n,t]=(0,a.useState)(r[e]||0),i=(0,a.useCallback)((n=>function(e,n){r[e]=n,l[e].forEach((e=>{e(n)}))}(e,n)),[e]);return(0,a.useEffect)((()=>function(e,n){return void 0===l[e]&&(r[e]=0,l[e]=[]),l[e].push(n),()=>{l[e].splice(l[e].indexOf(n),1)}}(e,t)),[e]),{activeTab:n,onTab:i}}},80912:function(e,n,t){"use strict";t.d(n,{Pt:function(){return Hr},UE:function(){return Qr},NE:function(){return Jr},ME:function(){return Gr},yc:function(){return Yr},hI:function(){return Xr},mg:function(){return el},hl:function(){return nl},nv:function(){return tl},nN:function(){return rl},np:function(){return al}});var a={};t.r(a),t.d(a,{AutoField:function(){return _e},AutoFields:function(){return be},AutoForm:function(){return Ie},BaseForm:function(){return Oe},BoolField:function(){return M},DateField:function(){return A},ErrorField:function(){return Ae},ErrorsField:function(){return je},HiddenField:function(){return Re},ListAddField:function(){return K},ListDelField:function(){return H},ListField:function(){return ae},ListItemField:function(){return ee},LongTextField:function(){return Le},NestField:function(){return re},NumField:function(){return ie},QuickForm:function(){return Ne},RadioField:function(){return ce},SelectField:function(){return fe},SubmitField:function(){return Pe},TextField:function(){return he},ValidatedForm:function(){return Me},ValidatedQuickForm:function(){return Te},wrapField:function(){return F}});var r={};t.r(r),t.d(r,{AutoField:function(){return fn},AutoFields:function(){return vn},AutoForm:function(){return Cn},BaseForm:function(){return hn},BoolField:function(){return Ke},DateField:function(){return He},ErrorField:function(){return kn},ErrorsField:function(){return _n},HiddenField:function(){return xn},ListAddField:function(){return Ge},ListDelField:function(){return Xe},ListField:function(){return nn},ListItemField:function(){return en},LongTextField:function(){return jn},NestField:function(){return tn},NumField:function(){return an},QuickForm:function(){return En},RadioField:function(){return sn},SelectField:function(){return mn},SubmitField:function(){return bn},TextField:function(){return pn},ValidatedForm:function(){return yn},ValidatedQuickForm:function(){return On},gridClassName:function(){return Ve},wrapField:function(){return ze}});var l={};t.r(l),t.d(l,{AutoField:function(){return Gn},AutoFields:function(){return Yn},AutoForm:function(){return it},BaseForm:function(){return Xn},BoolField:function(){return In},DateField:function(){return An},ErrorField:function(){return st},ErrorsField:function(){return et},HiddenField:function(){return ot},ListAddField:function(){return Sn},ListDelField:function(){return Bn},ListField:function(){return Un},ListItemField:function(){return Wn},LongTextField:function(){return ut},NestField:function(){return Zn},NumField:function(){return $n},QuickForm:function(){return at},RadioField:function(){return Kn},SelectField:function(){return Hn},SubmitField:function(){return tt},TextField:function(){return Jn},ValidatedForm:function(){return rt},ValidatedQuickForm:function(){return lt},gridClassName:function(){return Mn},wrapField:function(){return Tn}});var i={};t.r(i),t.d(i,{AutoField:function(){return Vt},AutoFields:function(){return zt},AutoForm:function(){return Xt},BaseForm:function(){return Kt},BoolField:function(){return bt},DateField:function(){return Ct},ErrorField:function(){return ea},ErrorsField:function(){return qt},HiddenField:function(){return na},ListAddField:function(){return Pt},ListDelField:function(){return Ft},ListField:function(){return Tt},ListItemField:function(){return Mt},LongTextField:function(){return ta},NestField:function(){return It},NumField:function(){return wt},QuickForm:function(){return Jt},RadioField:function(){return Lt},SelectField:function(){return Zt},SubmitField:function(){return Ht},TextField:function(){return $t},ValidatedForm:function(){return Gt},ValidatedQuickForm:function(){return Yt},wrapField:function(){return gt}});var s={};t.r(s),t.d(s,{AutoField:function(){return Sa},AutoFields:function(){return La},AutoForm:function(){return za},BaseForm:function(){return Ba},BoolField:function(){return da},DateField:function(){return va},ErrorField:function(){return Ka},ErrorsField:function(){return Wa},HiddenField:function(){return qa},ListAddField:function(){return ba},ListDelField:function(){return Oa},ListField:function(){return ka},ListItemField:function(){return Ca},LongTextField:function(){return Qa},NestField:function(){return xa},NumField:function(){return ja},QuickForm:function(){return Za},RadioField:function(){return Ta},SelectField:function(){return Aa},SubmitField:function(){return Ua},TextField:function(){return Ra},ValidatedForm:function(){return $a},ValidatedQuickForm:function(){return Va},wrapField:function(){return ca}});var o={};t.r(o),t.d(o,{AutoField:function(){return Ha.Z},AutoFields:function(){return Ja},AutoForm:function(){return Ga.Z},BaseForm:function(){return Ya.Z},BoolField:function(){return Xa.Z},DateField:function(){return er.Z},ErrorField:function(){return nr},ErrorsField:function(){return tr.Z},HiddenField:function(){return ar},ListAddField:function(){return rr.Z},ListDelField:function(){return lr.Z},ListField:function(){return ir.Z},ListItemField:function(){return sr.Z},LongTextField:function(){return or},NestField:function(){return ur.Z},NumField:function(){return cr.Z},QuickForm:function(){return dr.Z},RadioField:function(){return mr.Z},SelectField:function(){return pr.Z},SubmitField:function(){return fr.Z},TextField:function(){return vr.Z},ValidatedForm:function(){return hr.Z},ValidatedQuickForm:function(){return _r.Z}});var u={};t.r(u),t.d(u,{AutoField:function(){return Rr},AutoFields:function(){return Sr},AutoForm:function(){return Vr},BaseForm:function(){return Lr},BoolField:function(){return gr},DateField:function(){return yr},ErrorField:function(){return zr},ErrorsField:function(){return Br},HiddenField:function(){return Kr},ListAddField:function(){return Or},ListDelField:function(){return Cr},ListField:function(){return xr},ListItemField:function(){return kr},LongTextField:function(){return qr.Z},NestField:function(){return jr},NumField:function(){return Pr},QuickForm:function(){return Ur},RadioField:function(){return Mr},SelectField:function(){return wr},SubmitField:function(){return Wr},TextField:function(){return Ar},ValidatedForm:function(){return Zr},ValidatedQuickForm:function(){return $r}});var c=t(25773),d=t(27378),m=t(3996),p=t.n(m),f=t(6846),v=t(59312),h=t(30219),_=t.n(h),g=t(21473),b=t.n(g),E=t(98591),y=t(56369),O=t(11561),C=t(76424),k=t(31115),x=t.n(k),j=t(5041),P=t(62004);const N={marginBottom:"12px"};function F(e,n){let{colon:t,error:a,errorMessage:r,extra:l,help:i,id:s,info:o,label:u,labelCol:c,required:m,showInlineError:p,validateStatus:f,wrapperCol:v,wrapperStyle:h=N}=e;const _=!!u&&d.createElement("span",null,u,!!o&&d.createElement("span",null,"\xa0",d.createElement(P.default,{title:o},d.createElement(x(),null))));return d.createElement(j.Z.Item,{colon:t,hasFeedback:!0,help:i||p&&!!a&&r,extra:l,htmlFor:s,label:_,labelCol:c,required:m,style:h,validateStatus:a?"error":f,wrapperCol:v},n)}O.z.register("checkboxes","colon","disableItem","labelCol","validateStatus","wrapperCol","wrapperStyle");var M=(0,C.e)((function(e){var{checkbox:n=!1,checkedChildren:t=d.createElement(_(),null),disabled:a,inputRef:r,name:l,onChange:i,readOnly:s,unCheckedChildren:o=d.createElement(b(),null),value:u}=e,c=(0,v._T)(e,["checkbox","checkedChildren","disabled","inputRef","name","onChange","readOnly","unCheckedChildren","value"]);const m=n?E.Z:y.Z;return F(c,d.createElement(m,Object.assign({checked:u||!1,checkedChildren:t,disabled:a,name:l,onChange:()=>s?void 0:i(!u),ref:r,unCheckedChildren:o},(0,O.z)(c))))}),{kind:"leaf"}),T=t(82290),I=t(61320),w=t.n(I);const D={width:"100%"};var A=(0,C.e)((function(e){var{showTime:n=!0,style:t=D}=e,a=(0,v._T)(e,["showTime","style"]);return F(a,d.createElement(T.Z,Object.assign({disabled:a.disabled,inputReadOnly:a.readOnly,name:a.name,onChange:e=>{a.readOnly||a.onChange(e?e.toDate():void 0)},placeholder:a.placeholder,ref:a.inputRef,showTime:n,style:t,value:a.value&&w()(a.value)},(0,O.z)(a))))}),{kind:"leaf"}),R=t(60042),S=t.n(R),L=t(94037),B=t.n(L),W=t(76676),U=t(30454),Z=t.n(U),$=t(65507),V=t(68591);const z={width:"100%"};var K=(0,C.e)((function(e){var{disabled:n,icon:t=d.createElement(B(),null),name:a,readOnly:r,size:l="small",style:i=z,type:s="dashed",value:o}=e,u=(0,v._T)(e,["disabled","icon","name","readOnly","size","style","type","value"]);const c=(0,$.m)(null,a),m=(0,$.m)(c.slice(0,-1)),p=(0,V.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return d.createElement(W.default,Object.assign({},(0,O.z)(u),{disabled:!f,icon:t,onClick:()=>{r||p.onChange(p.value.concat([Z()(o)]))},size:l,style:i,type:s}))}),{initialValue:!1,kind:"leaf"}),q=t(85221),Q=t.n(q);var H=(0,C.e)((function(e){var{disabled:n,icon:t=d.createElement(Q(),null),name:a,readOnly:r,shape:l="circle",size:i="small",type:s="ghost"}=e,o=(0,v._T)(e,["disabled","icon","name","readOnly","shape","size","type"]);const u=(0,$.m)(null,a),c=+u[u.length-1],m=(0,$.m)(u.slice(0,-1)),p=(0,V.U)(m,{},{absoluteName:!0})[0];return n||(n=r||p.minCount>=p.value.length),d.createElement(W.default,Object.assign({},(0,O.z)(o),{disabled:n,icon:t,onClick:()=>{const e=p.value.slice();e.splice(c,1),p.onChange(e)},shape:l,size:i,type:s}))}),{initialValue:!1,kind:"leaf"});const J={float:"right",marginBottom:"10px",marginLeft:"10px",marginRight:"6px",width:"20px"},G={marginBottom:"24px",overflow:"hidden"},Y={borderBottom:"1px solid #DDD",height:"20px",marginTop:"-8px"},X={width:"100%"};var ee=(0,C.e)((function(e){let{children:n=d.createElement(_e,{label:null,name:""})}=e;return d.createElement("div",null,d.createElement("div",{style:J},d.createElement(H,{className:"top aligned",name:""})),d.createElement("div",{style:G},d.createElement("div",{style:Y})),d.createElement("div",{style:X},n))}));const ne={marginBottom:"5px",marginTop:"5px",padding:"10px"},te={borderColor:"rgb(255, 85, 0)"};var ae=(0,C.e)((function(e){var{children:n=d.createElement(ee,{name:"$"}),className:t,error:a,errorMessage:r,info:l,itemProps:i,label:s,labelCol:o,showInlineError:u,style:c=ne,value:m,wrapperCol:p}=e,f=(0,v._T)(e,["children","className","error","errorMessage","info","itemProps","label","labelCol","showInlineError","style","value","wrapperCol"]);const h=a?c?Object.assign(Object.assign({},te),c):te:c;return d.createElement("div",Object.assign({},(0,O.z)(f),{style:h,className:S()([t,"ant-list","ant-list-bordered"])}),!!s&&d.createElement("div",null,s,!!l&&d.createElement("span",null,"\xa0",d.createElement(P.default,{title:l},d.createElement(x(),null)))),!(!a||!u)&&d.createElement("div",null,r),null==m?void 0:m.map(((e,t)=>d.Children.map(n,((e,n)=>{var a;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+t),labelCol:o,wrapperCol:p},i)):e})))),d.createElement(K,{name:"$"}))}));var re=(0,C.e)((function(e){var{children:n,error:t,errorMessage:a,fields:r,itemProps:l,label:i,showInlineError:s}=e,o=(0,v._T)(e,["children","error","errorMessage","fields","itemProps","label","showInlineError"]);return d.createElement("div",Object.assign({},(0,O.z)(o)),i&&d.createElement("label",null,i),!(!t||!s)&&d.createElement("div",null,a),n||r.map((e=>d.createElement(_e,Object.assign({key:e,name:e},l)))))})),le=t(15425);var ie=(0,C.e)((function(e){return F(e,d.createElement(le.Z,Object.assign({disabled:e.disabled,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(""+n);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),style:{width:"100%"},value:e.value},(0,O.z)(e))))}),{kind:"leaf"}),se=t(58946);const oe="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,ue={display:"block"};var ce=(0,C.e)((function(e){var n,t,a;return F(e,d.createElement(se.ZP.Group,Object.assign({},(0,O.z)(e),{disabled:e.disabled,name:e.name,onChange:n=>{e.readOnly||e.onChange(n.target.value)},value:null!==(n=e.value)&&void 0!==n?n:"",options:null===(t=e.options)||void 0===t?void 0:t.map((e=>{var n;return Object.assign(Object.assign({},e),{label:null!==(n=e.label)&&void 0!==n?n:e.value})}))}),null===(a=e.options)||void 0===a?void 0:a.map((n=>{var t,a,r;return d.createElement(se.ZP,{id:`${e.id}-${r=n.value,oe(encodeURIComponent(r)).replace(/=+$/,"")}`,key:null!==(t=n.key)&&void 0!==t?t:n.value,style:ue,value:n.value,disabled:n.disabled},null!==(a=n.label)&&void 0!==a?a:n.value)}))))}),{kind:"leaf"}),de=t(99388),me=t(69601),pe=t(92049);var fe=(0,C.e)((function(e){var n,t;const a=e.fieldType===Array?de.default:me.default,r=(0,O.z)(e);return F(e,e.checkboxes?d.createElement("span",Object.assign({},r),d.createElement(a,Object.assign({},r,{disabled:e.disabled,name:e.name,onChange:n=>{e.readOnly||e.onChange(e.fieldType===Array?n:n.target.value)},options:null===(n=e.options)||void 0===n?void 0:n.map((e=>{var n;return Object.assign(Object.assign({},e),{label:null!==(n=e.label)&&void 0!==n?n:e.value})})),value:e.value}))):d.createElement(pe.Z,Object.assign({allowClear:!e.required,disabled:e.disabled,mode:e.fieldType===Array?"multiple":void 0,name:e.name,onChange:n=>{e.readOnly||e.onChange(n)},placeholder:e.placeholder,ref:e.inputRef,value:e.fieldType===Array?Array.isArray(e.value)?e.value.filter((e=>void 0!==e)):[]:e.value},r),null===(t=e.options)||void 0===t?void 0:t.map((n=>{var t,a,r;return d.createElement(pe.Z.Option,{disabled:n.disabled,key:null!==(t=n.key)&&void 0!==t?t:n.value,value:n.value,id:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:escape(n.value)}`},null!==(r=n.label)&&void 0!==r?r:n.value)}))))}),{kind:"leaf"}),ve=t(74105);var he=(0,C.e)((function(e){var n,t;return F(e,d.createElement(ve.Z,Object.assign({disabled:e.disabled,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""},(0,O.z)(e))))}),{kind:"leaf"});var _e=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?ce:fe;switch(e.fieldType){case Array:return ae;case Boolean:return M;case Date:return A;case Number:return ie;case Object:return re;case String:return he}return p()(!1,"Unsupported field type: %s",e.fieldType)})),ge=t(55201);function be(e){var{element:n=d.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(_e,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Ee=t(39850),ye=t(6820);var Oe=function e(n){class t extends n{getNativeFormProps(){const e=super.getNativeFormProps(),{className:n,layout:t="vertical"}=e,a=(0,v._T)(e,["className","layout"]);return Object.assign(Object.assign({},a),{className:S()("ant-form","ant-form-"+t,n)})}}return t.AntD=e,t.displayName=`AntD${n.displayName}`,t}(ye.I),Ce=t(51674);const ke={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},xe={margin:"3px"};var je=function(e){var{children:n,style:t=ke}=e,a=(0,v._T)(e,["children","style"]);const{error:r,schema:l}=(0,ge.c)();return r||n?d.createElement("div",Object.assign({style:t},(0,O.z)(a)),n,d.createElement("ul",null,l.getErrorMessages(r).map(((e,n)=>d.createElement("li",{key:n,style:xe},e))))):null};var Pe=function(e){var{disabled:n,inputRef:t,value:a="Submit"}=e,r=(0,v._T)(e,["disabled","inputRef","value"]);const{error:l,state:i}=(0,ge.c)();return d.createElement(W.default,Object.assign({disabled:void 0===n?!(!l&&!i.disabled):n,htmlType:"submit",ref:t,type:"primary"},r),a)};var Ne=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return _e}getErrorsField(){return je}getSubmitField(){return Pe}}return t.Quick=e,t}(Oe),Fe=t(23674);var Me=function e(n){class t extends(Fe.O.Validated(n)){}return t.Validated=e,t}(Oe),Te=Me.Validated(Ne.Quick(Oe));var Ie=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Te);const we={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},De={margin:"3px"};var Ae=(0,C.e)((function(e){var{children:n,error:t,errorMessage:a,style:r=we}=e,l=(0,v._T)(e,["children","error","errorMessage","style"]);return t?d.createElement("div",Object.assign({style:r},(0,O.z)(l)),n||d.createElement("div",{style:De},a)):null}),{initialValue:!1,kind:"leaf"});function Re(e){var n,{value:t}=e,a=(0,v._T)(e,["value"]);const r=(0,V.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var Se=t(10777);var Le=(0,C.e)((function(e){var n,{rows:t=5}=e,a=(0,v._T)(e,["rows"]);return F(a,d.createElement(Se.default,Object.assign({disabled:a.disabled,name:a.name,onChange:e=>a.onChange(e.target.value),placeholder:a.placeholder,readOnly:a.readOnly,ref:a.inputRef,rows:t,value:null!==(n=a.value)&&void 0!==n?n:""},(0,O.z)(a))))}),{kind:"leaf"}),Be=t(48159),We=t.n(Be);function Ue(e,n,t){const a="xs"===e?"":`${e}-`;return"label"===t?`col-${a}${n}`:`col-${a}${12-n}`}const Ze={xs:1,sm:2,md:3,lg:4,xl:5};function $e(e,n){return Ze[e]-Ze[n]}function Ve(e,n){return"number"==typeof e?Ue("xs",e,n):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl},e)),Object.keys(e).sort($e).map((t=>Ue(t,e[t],n))).join(" ")):"":Ue("xs",parseInt(e),n)}function ze(e,n){var{changed:t,className:a,disabled:r,error:l,errorMessage:i,grid:s,help:o,helpClassName:u,id:c,label:m,labelClassName:p,required:f,showInlineError:h,wrapClassName:_}=e,g=(0,v._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const b=!(!s&&!_),E=!(!l||!h)&&d.createElement("span",{className:"form-text text-danger"},i),y=!!o&&d.createElement("span",{className:S()("form-text",u||"text-muted")},o),C=!l&&t;return d.createElement("div",Object.assign({className:S()(a,"form-group",{"is-invalid":l,"is-valid":C,disabled:r,required:f,row:s})},We()((0,O.z)(g),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&d.createElement("label",{htmlFor:c,className:S()({"col-form-label":s,"text-danger":l,"text-success":C},Ve(s,"label"),p)},m),b&&d.createElement("div",{className:S()(_,Ve(s,"input"))},n,y,E),!b&&n,!b&&y,!b&&E)}var Ke=(0,C.e)((function(e){var{onChange:n}=e,t=(0,v._T)(e,["onChange"]);const{disabled:a,error:r,inline:l,inputClassName:i,inputRef:s,label:o,labelBefore:u,name:c,readOnly:m,value:p}=t;return ze(Object.assign(Object.assign({},t),{label:u,value:t.value}),d.createElement("div",{className:S()(i,"form-check","checkbox",{"custom-control-inline":l,"text-danger":r,"text-success":!r&&t.changed})},d.createElement("label",{htmlFor:t.id,className:"form-check-label"},d.createElement("input",{checked:p||!1,className:"form-check-input",disabled:a,id:t.id,name:c,onChange:()=>{m||n(!p)},ref:s,type:"checkbox"}),"\xa0",o)))}),{kind:"leaf"});const qe=("object"==typeof t.g?t.g:window).Date,Qe=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var He=(0,C.e)((function(e){var n,{disabled:t,error:a,id:r,inputClassName:l,inputRef:i,max:s,min:o,name:u,onChange:c,placeholder:m,readOnly:p,value:f,type:h="datetime-local"}=e,_=(0,v._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return ze(Object.assign(Object.assign({},_),{id:r}),d.createElement("input",{className:S()(l,"form-control",{"is-invalid":a,"is-valid":!a&&_.changed}),disabled:t,id:r,max:Qe(s),min:Qe(o),name:u,onChange:e=>{const n=new qe(e.target.valueAsNumber);n.getFullYear()<1e4?c(n):isNaN(e.target.valueAsNumber)&&c(void 0)},placeholder:m,readOnly:p,ref:i,type:h,value:null!==(n=Qe(f,h))&&void 0!==n?n:""}))}),{kind:"leaf"});function Je(e){var{addIcon:n,className:t,disabled:a,name:r,readOnly:l,value:i}=e,s=(0,v._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const o=(0,$.m)(null,r),u=(0,$.m)(o.slice(0,-1)),c=(0,V.U)(u,{},{absoluteName:!0})[0],m=!(a||c.maxCount<=c.value.length);function p(e){!m||l||"key"in e&&"Enter"!==e.key||c.onChange(c.value.concat([Z()(i)]))}return d.createElement("div",Object.assign({},(0,O.z)(s),{className:S()("badge badge-pill float-right",t),onClick:p,onKeyDown:p,role:"button",tabIndex:0}),n)}Je.defaultProps={addIcon:d.createElement("i",{className:"octicon octicon-plus"})};var Ge=(0,C.e)(Je,{initialValue:!1,kind:"leaf"});function Ye(e){var{className:n,disabled:t,name:a,readOnly:r,removeIcon:l}=e,i=(0,v._T)(e,["className","disabled","name","readOnly","removeIcon"]);const s=(0,$.m)(null,a),o=+s[s.length-1],u=(0,$.m)(s.slice(0,-1)),c=(0,V.U)(u,{},{absoluteName:!0})[0];function m(e){if(!(t||"key"in e&&"Enter"!==e.key)){const e=c.value.slice();e.splice(o,1),c.onChange(e)}}return t||(t=r||c.minCount>=c.value.length),d.createElement("span",Object.assign({},(0,O.z)(i),{className:S()("badge badge-pill",n),onClick:m,onKeyDown:m,role:"button",tabIndex:0}),l)}Ye.defaultProps={removeIcon:d.createElement("i",{className:"octicon octicon-dash"})};var Xe=(0,C.e)(Ye,{initialValue:!1,kind:"leaf"});var en=(0,C.e)((function(e){let{children:n=d.createElement(fn,{className:"col-11",label:null,name:""}),removeIcon:t}=e;return d.createElement("div",{className:"row"},d.createElement("div",{className:"col-1"},d.createElement(Xe,{name:"",removeIcon:t})),n)}),{initialValue:!1});var nn=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(en,{name:"$"}),className:a,error:r,errorMessage:l,itemProps:i,label:s,removeIcon:o,showInlineError:u,value:c}=e,m=(0,v._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return d.createElement("div",Object.assign({className:S()("card mb-3",a)},(0,O.z)(m)),d.createElement("div",{className:"card-body"},s&&d.createElement("div",{className:"card-title"},d.createElement("label",{className:"col-form-label"},s,"\xa0"),d.createElement(Ge,{addIcon:n,name:"$"}),!(!r||!u)&&d.createElement("span",{className:"text-danger"},l)),null==c?void 0:c.map(((e,n)=>d.Children.map(t,((e,t)=>{var a;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign(Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n)},i),{removeIcon:o})):e}))))))}));var tn=(0,C.e)((function(e){var{children:n,className:t,error:a,errorMessage:r,fields:l,itemProps:i,label:s,showInlineError:o}=e,u=(0,v._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return d.createElement("div",Object.assign({className:S()(t,{"has-error":a})},(0,O.z)(u)),s&&d.createElement("label",null,s),!(!a||!o)&&d.createElement("span",{className:"text-danger"},r),n||l.map((e=>d.createElement(fn,Object.assign({key:e,name:e},i)))))}));var an=(0,C.e)((function(e){var n;return ze(e,d.createElement("input",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(n.target.value);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});const rn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,ln=e=>rn(encodeURIComponent(e)).replace(/=+$/,"");var sn=(0,C.e)((function(e){var n;return ze(e,null===(n=e.options)||void 0===n?void 0:n.map((n=>{var t,a,r,l;return d.createElement("div",{key:null!==(t=n.key)&&void 0!==t?t:n.value,className:S()(e.inputClassName,"form-check","radio",{"custom-control-inline":e.inline,"text-danger":e.error,"text-success":!e.error&&e.changed})},d.createElement("label",{htmlFor:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:ln(n.value)}`,className:"form-check-label"},d.createElement("input",{checked:n.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:ln(n.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(n.value)},type:"radio"})," ",null!==(l=n.label)&&void 0!==l?l:n.value))})))}),{kind:"leaf"}),on=t(20098),un=t.n(on);const cn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,dn=e=>cn(encodeURIComponent(e)).replace(/=+$/,"");var mn=(0,C.e)((function(e){var{options:n,checkboxes:t,disabled:a,error:r,fieldType:l,id:i,inline:s,inputClassName:o,inputRef:u,label:c,name:m,onChange:p,placeholder:f,readOnly:h,required:_,value:g}=e,b=(0,v._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return ze(Object.assign(Object.assign({},b),{disabled:a,error:r,id:i,label:c,required:_}),t?null==n?void 0:n.map((e=>{var n,t,r,l;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value,className:S()(o,"checkbox"+(s?"-inline":""))},d.createElement("label",{htmlFor:`${i}-${null!==(t=e.key)&&void 0!==t?t:dn(e.value)}`},d.createElement("input",{checked:E?null==g?void 0:g.includes(e.value):g===e.value,disabled:e.disabled||a,id:`${i}-${null!==(r=e.key)&&void 0!==r?r:dn(e.value)}`,name:m,onChange:()=>{h||p(E?un()([e.value],g):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):d.createElement("select",{className:S()(o,"c-select form-control",{"is-invalid":r,"is-valid":!r&&b.changed}),disabled:a,id:i,multiple:E,name:m,onChange:e=>{if(!h){const n=e.target.value;if(E){const t=-1===e.target.selectedIndex;p(t?[]:un()([n],g))}else p(""!==n?n:void 0)}},ref:u,value:null!=g?g:""},(!!f||!_||void 0===g)&&!E&&d.createElement("option",{value:"",disabled:_,hidden:_},f||c),null==n?void 0:n.map((e=>{var n,t;return d.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});var pn=(0,C.e)((function(e){var n,t;return ze(We()(e,["autoComplete"]),d.createElement("input",{autoComplete:e.autoComplete,className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});var fn=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?sn:mn;switch(e.fieldType){case Array:return nn;case Boolean:return Ke;case Date:return He;case Number:return an;case Object:return tn;case String:return pn}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function vn(e){var{element:n=d.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(fn,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var hn=function e(n){class t extends n{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),n=super.getNativeFormProps();return Object.assign(Object.assign({},We()(n,["grid"])),{className:S()("form",{error:e},n.className)})}}return t.Bootstrap4=e,t.displayName=`Bootstrap4${n.displayName}`,t}(ye.I);var _n=function(e){var{children:n,className:t}=e,a=(0,v._T)(e,["children","className"]);const{error:r,schema:l}=(0,ge.c)();return r||n?d.createElement("div",Object.assign({className:S()("card border-danger mb-3 text-danger",t)},(0,O.z)(a)),d.createElement("div",{className:"card-body"},n,l.getErrorMessages(r).map(((e,n)=>d.createElement("div",{key:n,className:"disabled"},e))))):null};function gn(e){var{className:n,disabled:t,inputClassName:a,inputRef:r,readOnly:l,value:i,wrapClassName:s}=e,o=(0,v._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:u,state:c}=(0,ge.c)(),m=c,p=!(!m.grid&&!s),f=d.createElement("input",Object.assign({className:a,disabled:void 0===t?!(!u&&!m.disabled):t,readOnly:l,ref:r,type:"submit"},i?{value:i}:{}));return d.createElement("div",Object.assign({className:S()(n,{"is-invalid":u,row:m.grid})},(0,O.z)(o)),p&&d.createElement("span",{className:S()("col-form-label",Ve(m.grid,"label"))},"\xa0"),p&&d.createElement("div",{className:S()(s,Ve(m.grid,"input"))},f),!p&&f)}gn.defaultProps={inputClassName:"btn btn-primary"};var bn=gn;var En=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return fn}getErrorsField(){return _n}getSubmitField(){return bn}}return t.Quick=e,t}(hn);var yn=function e(n){class t extends(Fe.O.Validated(n)){}return t.Validated=e,t}(hn),On=yn.Validated(En.Quick(hn));var Cn=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(On);var kn=(0,C.e)((function(e){var{children:n,className:t,error:a,errorMessage:r}=e,l=(0,v._T)(e,["children","className","error","errorMessage"]);return a?d.createElement("div",Object.assign({className:S()("card","mb-3",t)},(0,O.z)(l)),d.createElement("div",{className:"card-body"},n||d.createElement("h4",{className:"card-title"},r))):null}),{initialValue:!1,kind:"leaf"});function xn(e){var n,{value:t}=e,a=(0,v._T)(e,["value"]);const r=(0,V.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var jn=(0,C.e)((function(e){var n;return ze(e,d.createElement("textarea",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});function Pn(e,n,t){const a="xs"===e?"":`${e}-`;return"label"===t?`col-${a}${n}`:`col-${a}${12-n}`}const Nn={xs:1,sm:2,md:3,lg:4,xl:5,xxl:6};function Fn(e,n){return Nn[e]-Nn[n]}function Mn(e,n){return"number"==typeof e?Pn("xs",e,n):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl||e.xxl},e)),Object.keys(e).sort(Fn).map((t=>Pn(t,e[t],n))).join(" ")):"":Pn("xs",parseInt(e),n)}function Tn(e,n){var{changed:t,className:a,disabled:r,error:l,errorMessage:i,grid:s,help:o,helpClassName:u,id:c,label:m,labelClassName:p,required:f,showInlineError:h,wrapClassName:_}=e,g=(0,v._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const b=!(!s&&!_),E=!(!l||!h)&&d.createElement("span",{className:"form-text text-danger"},i),y=!!o&&d.createElement("span",{className:S()("form-text",u||"text-muted")},o);return d.createElement("div",Object.assign({className:S()(a,"mb-3",{"is-invalid":l,disabled:r,required:f,row:s})},We()((0,O.z)(g),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&d.createElement("label",{htmlFor:c,className:S()({"col-form-label":s,"text-danger":l,"text-success":!l&&t},Mn(s,"label"),p)},m),b&&d.createElement("div",{className:S()(_,Mn(s,"input"))},n,y,E),!b&&n,!b&&y,!b&&E)}var In=(0,C.e)((function(e){var{onChange:n}=e,t=(0,v._T)(e,["onChange"]);const{disabled:a,error:r,inline:l,inputClassName:i,inputRef:s,label:o,labelBefore:u,name:c,readOnly:m,value:p}=t;return Tn(Object.assign(Object.assign({},t),{label:u,value:t.value}),d.createElement("div",{className:S()(i,"form-check",{"text-danger":r,"text-success":!r&&t.changed,"form-check-inline":l})},d.createElement("input",{checked:p||!1,className:"form-check-input",disabled:a,id:t.id,name:c,onChange:()=>{m||n(!p)},ref:s,type:"checkbox"}),d.createElement("label",{htmlFor:t.id,className:"form-check-label"},o)))}),{kind:"leaf"});const wn=("object"==typeof t.g?t.g:window).Date,Dn=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var An=(0,C.e)((function(e){var n,{disabled:t,error:a,id:r,inputClassName:l,inputRef:i,max:s,min:o,name:u,onChange:c,placeholder:m,readOnly:p,value:f,type:h="datetime-local"}=e,_=(0,v._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return Tn(Object.assign(Object.assign({},_),{id:r}),d.createElement("input",{className:S()(l,"form-control",{"is-invalid":a,"is-valid":!a&&_.changed}),disabled:t,id:r,max:Dn(s),min:Dn(o),name:u,onChange:e=>{const n=new wn(e.target.valueAsNumber);n.getFullYear()<1e4?c(n):isNaN(e.target.valueAsNumber)&&c(void 0)},placeholder:m,readOnly:p,ref:i,type:h,value:null!==(n=Dn(f,h))&&void 0!==n?n:""}))}),{kind:"leaf"});function Rn(e){var{addIcon:n,className:t,disabled:a,name:r,readOnly:l,value:i}=e,s=(0,v._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const o=(0,$.m)(null,r),u=(0,$.m)(o.slice(0,-1)),c=(0,V.U)(u,{},{absoluteName:!0})[0];return a||(a=l||c.maxCount<=c.value.length),d.createElement("button",Object.assign({},(0,O.z)(s),{className:S()("btn btn-secondary btn-sm float-end",t),disabled:a,onClick:function(){a||c.onChange(c.value.concat([Z()(i)]))},tabIndex:0,type:"button"}),n)}Rn.defaultProps={addIcon:d.createElement("i",{className:"octicon octicon-plus"})};var Sn=(0,C.e)(Rn,{initialValue:!1,kind:"leaf"});function Ln(e){var{className:n,disabled:t,name:a,readOnly:r,removeIcon:l}=e,i=(0,v._T)(e,["className","disabled","name","readOnly","removeIcon"]);const s=(0,$.m)(null,a),o=+s[s.length-1],u=(0,$.m)(s.slice(0,-1)),c=(0,V.U)(u,{},{absoluteName:!0})[0];return t||(t=r||c.minCount>=c.value.length),d.createElement("button",Object.assign({},(0,O.z)(i),{className:S()("btn btn-secondary btn-sm",n),disabled:t,onClick:()=>{const e=c.value.slice();e.splice(o,1),c.onChange(e)},tabIndex:0,type:"button"}),l)}Ln.defaultProps={removeIcon:d.createElement("i",{className:"octicon octicon-dash"})};var Bn=(0,C.e)(Ln,{initialValue:!1,kind:"leaf"});var Wn=(0,C.e)((function(e){let{children:n=d.createElement(Gn,{className:"col",label:null,name:""}),removeIcon:t}=e;return d.createElement("div",{className:"row"},d.createElement("div",{className:"col-auto"},d.createElement(Bn,{name:"",removeIcon:t})),n)}),{initialValue:!1});var Un=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(Wn,{name:"$"}),className:a,error:r,errorMessage:l,itemProps:i,label:s,removeIcon:o,showInlineError:u,value:c}=e,m=(0,v._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return d.createElement("div",Object.assign({className:S()("card mb-3",a)},(0,O.z)(m)),d.createElement("div",{className:"card-body"},s&&d.createElement("div",{className:"card-title"},d.createElement("label",{className:"col-form-label"},s,"\xa0"),d.createElement(Sn,{addIcon:n,name:"$"}),!(!r||!u)&&d.createElement("span",{className:"text-danger"},l)),null==c?void 0:c.map(((e,n)=>d.Children.map(t,((e,t)=>{var a;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign(Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n)},i),{removeIcon:o})):e}))))))}));var Zn=(0,C.e)((function(e){var{children:n,className:t,error:a,errorMessage:r,fields:l,itemProps:i,label:s,showInlineError:o}=e,u=(0,v._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return d.createElement("div",Object.assign({className:S()(t,{"has-error":a})},(0,O.z)(u)),s&&d.createElement("label",null,s),!(!a||!o)&&d.createElement("span",{className:"text-danger"},r),n||l.map((e=>d.createElement(Gn,Object.assign({key:e,name:e},i)))))}));var $n=(0,C.e)((function(e){var n;return Tn(e,d.createElement("input",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(n.target.value);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});const Vn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,zn=e=>Vn(encodeURIComponent(e)).replace(/=+$/,"");var Kn=(0,C.e)((function(e){var n;return Tn(e,null===(n=e.options)||void 0===n?void 0:n.map((n=>{var t,a,r,l;return d.createElement("div",{key:null!==(t=n.key)&&void 0!==t?t:n.value,className:S()(e.inputClassName,"form-check",{"text-danger":e.error,"text-success":!e.error&&e.changed,"form-check-inline":e.inline})},d.createElement("label",{htmlFor:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:zn(n.value)}`,className:"form-check-label"},d.createElement("input",{checked:n.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:zn(n.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(n.value)},type:"radio"})," ",null!==(l=n.label)&&void 0!==l?l:n.value))})))}),{kind:"leaf"});const qn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Qn=e=>qn(encodeURIComponent(e)).replace(/=+$/,"");var Hn=(0,C.e)((function(e){var{options:n,checkboxes:t,disabled:a,error:r,fieldType:l,id:i,inline:s,inputClassName:o,inputRef:u,label:c,name:m,onChange:p,placeholder:f,readOnly:h,required:_,value:g}=e,b=(0,v._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return Tn(Object.assign(Object.assign({},b),{disabled:a,error:r,id:i,label:c,required:_}),t?null==n?void 0:n.map((e=>{var n,t,r,l;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value,className:S()(o,"form-check"+(s?" form-check-inline":""))},d.createElement("label",{htmlFor:`${i}-${null!==(t=e.key)&&void 0!==t?t:Qn(e.value)}`},d.createElement("input",{checked:E?null==g?void 0:g.includes(e.value):g===e.value,disabled:e.disabled||a,id:`${i}-${null!==(r=e.key)&&void 0!==r?r:Qn(e.value)}`,name:m,onChange:()=>{h||p(E?un()([e.value],g):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):d.createElement("select",{className:S()(o,"form-control",{"is-invalid":r,"is-valid":!r&&b.changed}),disabled:a,id:i,multiple:E,name:m,onChange:e=>{if(!h){const n=e.target.value;if(E){const t=-1===e.target.selectedIndex;p(t?[]:un()([n],g))}else p(""!==n?n:void 0)}},ref:u,value:null!=g?g:""},(!!f||!_||void 0===g)&&!E&&d.createElement("option",{value:"",disabled:_,hidden:_},f||c),null==n?void 0:n.map((e=>{var n,t;return d.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});var Jn=(0,C.e)((function(e){var n,t;return Tn(We()(e,["autoComplete","minLength","maxLength"]),d.createElement("input",{autoComplete:e.autoComplete,className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});var Gn=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Kn:Hn;switch(e.fieldType){case Array:return Un;case Boolean:return In;case Date:return An;case Number:return $n;case Object:return Zn;case String:return Jn}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Yn(e){var{element:n=d.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(Gn,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Xn=function e(n){class t extends n{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),n=super.getNativeFormProps();return Object.assign(Object.assign({},We()(n,["grid"])),{className:S()({error:e},n.className)})}}return t.Bootstrap5=e,t.displayName=`Bootstrap5${n.displayName}`,t}(ye.I);var et=function(e){var{children:n,className:t}=e,a=(0,v._T)(e,["children","className"]);const{error:r,schema:l}=(0,ge.c)();return r||n?d.createElement("div",Object.assign({className:S()("card border-danger mb-3 text-danger",t)},(0,O.z)(a)),d.createElement("div",{className:"card-body"},n,l.getErrorMessages(r).map(((e,n)=>d.createElement("div",{key:n,className:"disabled"},e))))):null};function nt(e){var{className:n,disabled:t,inputClassName:a,inputRef:r,readOnly:l,value:i,wrapClassName:s}=e,o=(0,v._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:u,state:c}=(0,ge.c)(),m=c,p=!(!m.grid&&!s),f=d.createElement("input",Object.assign({className:a,disabled:void 0===t?!(!u&&!m.disabled):t,readOnly:l,ref:r,type:"submit"},i?{value:i}:{}));return d.createElement("div",Object.assign({className:S()(n,{"is-invalid":u,row:m.grid})},(0,O.z)(o)),p&&d.createElement("span",{className:S()("col-form-label",Mn(m.grid,"label"))},"\xa0"),p&&d.createElement("div",{className:S()(s,Mn(m.grid,"input"))},f),!p&&f)}nt.defaultProps={inputClassName:"btn btn-primary"};var tt=nt;var at=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Gn}getErrorsField(){return et}getSubmitField(){return tt}}return t.Quick=e,t}(Xn);var rt=function e(n){class t extends(Fe.O.Validated(n)){}return t.Validated=e,t}(Xn),lt=rt.Validated(at.Quick(Xn));var it=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(lt);var st=(0,C.e)((function(e){var{children:n,className:t,error:a,errorMessage:r}=e,l=(0,v._T)(e,["children","className","error","errorMessage"]);return a?d.createElement("div",Object.assign({className:S()("card","mb-3",t)},(0,O.z)(l)),d.createElement("div",{className:"card-body"},n||d.createElement("h4",{className:"card-title"},r))):null}),{initialValue:!1,kind:"leaf"});function ot(e){var n,{value:t}=e,a=(0,v._T)(e,["value"]);const r=(0,V.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var ut=(0,C.e)((function(e){var n;return Tn(We()(e,["autoComplete","minLength","maxLength"]),d.createElement("textarea",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"}),ct=t(80342),dt=t(21807),mt=t(61247),pt=t(35311),ft=t(82693),vt=t(82956),ht=t(54139),_t=t(74533);function gt(e){let{component:n,disabled:t,error:a,errorMessage:r,fullWidth:l,helperText:i,margin:s,readOnly:o,required:u,showInlineError:c,variant:m}=e;const p=c&&a?r:i,f={component:n,disabled:!!t,error:!!a,fullWidth:!!l,margin:s,readOnly:o,required:u,variant:m};for(var v=arguments.length,h=new Array(v>1?v-1:0),_=1;_!a&&!u&&o&&o(e.target.checked),ref:r,value:s},We()((0,O.z)(e),["helperText","fullWidth"]))),label:l})))}),{kind:"leaf"}),Et=t(38725);const yt=("object"==typeof t.g?t.g:window).Date,Ot=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var Ct=(0,C.e)((function(e){var n,t,a,r,{disabled:l,error:i,errorMessage:s,helperText:o,InputLabelProps:u,inputRef:c,label:m,labelProps:p,max:f,min:h,name:_,onChange:g,placeholder:b,readOnly:E,showInlineError:y,value:C,type:k="datetime-local"}=e,x=(0,v._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);const j=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(t=null==j?void 0:j.fullWidth)||void 0===t||t,helperText:!!i&&y&&s||o,label:m,InputLabelProps:Object.assign(Object.assign({shrink:!0},p),u),inputProps:Object.assign({max:Ot(f),min:Ot(h),readOnly:E},x.inputProps),margin:null!==(a=null==j?void 0:j.margin)&&void 0!==a?a:"dense",name:_,onChange:e=>l||((e,n)=>{const t=new yt(e);t.getFullYear()<1e4?n(t):isNaN(e)&&n(void 0)})(e.target.valueAsNumber,g),placeholder:b,ref:c,type:k,value:null!==(r=Ot(C,k))&&void 0!==r?r:""},(0,O.z)(x)))}),{kind:"leaf"}),kt=t(50755),xt=t(44920),jt=t(90547);var Pt=(0,C.e)((function(e){var{disabled:n,fullWidth:t=!0,icon:a="+",margin:r="dense",name:l,readOnly:i,value:s,variant:o}=e,u=(0,v._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const c=(0,$.m)(null,l),m=(0,$.m)(c.slice(0,-1)),p=(0,V.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return d.createElement(ht.Z,{fullWidth:t,margin:r,variant:o},d.createElement(jt.Z,Object.assign({},(0,O.z)(u),{disabled:!f,onClick:()=>{i||p.onChange(p.value.concat([Z()(s)]))}}),a))}),{initialValue:!1,kind:"leaf"}),Nt=t(53332);var Ft=(0,C.e)((function(e){var{disabled:n,icon:t="-",name:a,readOnly:r}=e,l=(0,v._T)(e,["disabled","icon","name","readOnly"]);const i=(0,$.m)(null,a),s=+i[i.length-1],o=(0,$.m)(i.slice(0,-1)),u=(0,V.U)(o,{},{absoluteName:!0})[0];return n||(n=r||u.minCount>=u.value.length),d.createElement(jt.Z,Object.assign({},(0,O.z)(l),{disabled:n,onClick:()=>{const e=u.value.slice();e.splice(s,1),u.onChange(e)}}),t)}),{initialValue:!1,kind:"leaf"});var Mt=(0,C.e)((function(e){let{children:n=d.createElement(Vt,{label:null,name:""}),dense:t=!0,disableGutters:a,divider:r,removeIcon:l}=e;return d.createElement(Nt.Z,{dense:t,disableGutters:a,divider:r},n,d.createElement(Ft,{name:"",icon:l}))}),{initialValue:!1});var Tt=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(Mt,{name:"$"}),itemProps:a,label:r,value:l}=e,i=(0,v._T)(e,["addIcon","children","itemProps","label","value"]);return d.createElement(d.Fragment,null,d.createElement(kt.Z,Object.assign({dense:!0,subheader:r?d.createElement(xt.Z,{disableSticky:!0},r):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,n)=>d.Children.map(t,((e,t)=>{var r;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+n)},a)):e}))))),d.createElement(Pt,{icon:n,name:"$"}))}));var It=(0,C.e)((function(e){var n,t,a,{children:r,fields:l,itemProps:i,label:s}=e,o=(0,v._T)(e,["children","fields","itemProps","label"]);const u=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl;return gt(Object.assign(Object.assign({fullWidth:null===(t=null==u?void 0:u.fullWidth)||void 0===t||t,margin:null!==(a=null==u?void 0:u.margin)&&void 0!==a?a:"dense"},o),{component:void 0}),s&&d.createElement(pt.Z,{component:"legend"},s),r||l.map((e=>d.createElement(Vt,Object.assign({key:e,name:e},i)))))}));var wt=(0,C.e)((function(e){var n,t,a,r,{decimal:l,disabled:i,error:s,errorMessage:o,helperText:u,inputProps:c,inputRef:m,label:p,max:f,min:h,name:_,onChange:g,readOnly:b,placeholder:E,showInlineError:y,step:C=(l?.01:1),value:k}=e,x=(0,v._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);const j=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:i,error:!!s,fullWidth:null===(t=null==j?void 0:j.fullWidth)||void 0===t||t,helperText:!!s&&y&&o||u,inputProps:Object.assign(Object.assign(Object.assign({},null!==(a=null==j?void 0:j.inputProps)&&void 0!==a?a:{}),{min:h,max:f,readOnly:b,step:C}),c),label:p,margin:null!==(r=null==j?void 0:j.margin)&&void 0!==r?r:"dense",name:_,onChange:e=>{const n=(l?parseFloat:parseInt)(e.target.value);g(isNaN(n)?void 0:n)},placeholder:E,ref:m,type:"number",value:null!=k?k:""},(0,O.z)(x)))}),{kind:"leaf"}),Dt=t(76709),At=t(70043);const Rt="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,St=e=>Rt(encodeURIComponent(e)).replace(/=+$/,"");var Lt=(0,C.e)((function(e){var n,t,a,{options:r,disabled:l,id:i,inputRef:s,label:o,name:u,onChange:c,readOnly:m,row:p,value:f}=e,h=(0,v._T)(e,["options","disabled","id","inputRef","label","name","onChange","readOnly","row","value"]);const _=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl;return gt(Object.assign(Object.assign({fullWidth:null===(t=null==_?void 0:_.fullWidth)||void 0===t||t,margin:null!==(a=null==_?void 0:_.margin)&&void 0!==a?a:"dense"},h),{component:"fieldset",disabled:l}),o&&d.createElement(pt.Z,{component:"legend",htmlFor:u},o),d.createElement(At.Z,{id:i,name:u,onChange:e=>l||m||c(e.target.value),ref:s,row:p,value:null!=f?f:""},null==r?void 0:r.map((e=>{var n,t;return d.createElement(dt.Z,{control:d.createElement(Dt.Z,Object.assign({id:`${i}-${St(e.value)}`},We()((0,O.z)(h),["checkboxes","helperText"]))),htmlFor:`${i}-${St(e.value)}`,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(t=e.label)&&void 0!==t?t:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),Bt=t(5633);const Wt="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Ut=e=>Wt(encodeURIComponent(e)).replace(/=+$/,"");var Zt=(0,C.e)((function(e){var n,t,a,r,l,i;const s=(0,vt.Z)(),o=null===(n=s.props)||void 0===n?void 0:n.MuiFormControl,u=null!==(t=e.value)&&void 0!==t?t:"";if(e.checkboxes){const{options:n,disabled:t,fieldType:r,id:l,inputRef:i,label:s,legend:c,name:m,onChange:p,readOnly:f}=e,v="checkbox"===(null!==(a=e.appearance)&&void 0!==a?a:"checkbox")?ct.Z:ft.Z,h=We()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),_=r!==Array?d.createElement(At.Z,{id:l,name:m,onChange:e=>t||f||p(e.target.value),ref:i,value:null!=u?u:""},null==n?void 0:n.map((e=>{var n,a,r;return d.createElement(dt.Z,{control:d.createElement(Dt.Z,Object.assign({id:`${l}-${null!==(n=e.key)&&void 0!==n?n:Ut(e.value)}`},h)),disabled:e.disabled||t,key:null!==(a=e.key)&&void 0!==a?a:e.value,label:null!==(r=e.label)&&void 0!==r?r:e.value,value:e.value})}))):d.createElement(mt.Z,{id:l},null==n?void 0:n.map((e=>{var n,a,r;return d.createElement(dt.Z,{control:d.createElement(v,Object.assign({checked:u.includes(e.value),id:`${l}-${null!==(n=e.key)&&void 0!==n?n:Ut(e.value)}`,name:m,onChange:()=>t||f||p(un()([e.value],u)),ref:i,value:m},h)),disabled:e.disabled||t,key:null!==(a=e.key)&&void 0!==a?a:e.value,label:null!==(r=e.label)&&void 0!==r?r:e.value})})));return gt(Object.assign(Object.assign(Object.assign({},o),e),{component:"fieldset"}),(c||s)&&d.createElement(pt.Z,{component:"legend"},c||s),_)}const c=null===(r=s.props)||void 0===r?void 0:r.MuiTextField,{options:m,disabled:p,error:f,errorMessage:v,fieldType:h,fullWidth:_=null===(l=null==c?void 0:c.fullWidth)||void 0===l||l,helperText:g,id:b,InputLabelProps:E,inputProps:y,label:C,labelProps:k,margin:x=(null!==(i=null==c?void 0:c.margin)&&void 0!==i?i:"dense"),name:j,native:P,onChange:N,placeholder:F,readOnly:M,required:T,showInlineError:I,variant:w,textFieldProps:D}=e,A=P?"option":Bt.Z,R=!!F,S=""!==u&&void 0!==u,L=We()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return d.createElement(Et.Z,Object.assign({disabled:p,error:!!f,fullWidth:_,helperText:!!f&&I&&v||g,InputLabelProps:Object.assign(Object.assign({shrink:!!C&&(R||S)},k),E),label:C,margin:x,onChange:e=>p||M||N(""!==e.target.value?e.target.value:void 0),required:T,select:!0,SelectProps:Object.assign({displayEmpty:R,inputProps:Object.assign({name:j,id:b},y),multiple:h===Array||void 0,native:P},L),value:P&&!u?"":u,variant:w},D),(R||!T||!S)&&d.createElement(A,{value:"",disabled:!!T},F||C),null==m?void 0:m.map((e=>{var n,t;return d.createElement(A,{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)})))}),{kind:"leaf"});var $t=(0,C.e)((function(e){var n,t,a,r,{disabled:l,error:i,errorMessage:s,helperText:o,inputRef:u,label:c,name:m,onChange:p,placeholder:f,readOnly:h,showInlineError:_,type:g="text",value:b=""}=e,E=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const y=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(t=null==y?void 0:y.fullWidth)||void 0===t||t,helperText:!!i&&_&&s||o,inputProps:Object.assign({readOnly:h},null!==(a=null==y?void 0:y.inputProps)&&void 0!==a?a:{}),label:c,margin:null!==(r=null==y?void 0:y.margin)&&void 0!==r?r:"dense",name:m,onChange:e=>l||p(e.target.value),placeholder:f,ref:u,type:g,value:b},(0,O.z)(E)))}),{kind:"leaf"});var Vt=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Lt:Zt;switch(e.fieldType){case Array:return Tt;case Boolean:return bt;case Date:return Ct;case Number:return wt;case Object:return It;case String:return $t}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function zt(e){var{element:n=d.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(Vt,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Kt=function e(n){class t extends n{}return t.Material=e,t.displayName=`Material${n.displayName}`,t}(ye.I);var qt=function(e){var n,t,a,{children:r,fullWidth:l,margin:i,variant:s}=e,o=(0,v._T)(e,["children","fullWidth","margin","variant"]);const u=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl,{error:c,schema:m}=(0,ge.c)();return c||r?d.createElement(ht.Z,{error:!!c,fullWidth:null===(t=null!=l?l:null==u?void 0:u.fullWidth)||void 0===t||t,margin:null!==(a=null!=i?i:null==u?void 0:u.margin)&&void 0!==a?a:"dense",variant:null!=s?s:null==u?void 0:u.variant},!!r&&d.createElement(_t.Z,Object.assign({},(0,O.z)(o)),r),m.getErrorMessages(c).map(((e,n)=>d.createElement(_t.Z,Object.assign({key:n},(0,O.z)(o)),e)))):null},Qt=t(9334);var Ht=function(e){var n,t,{children:a,disabled:r,inputRef:l,label:i="Submit",value:s}=e,o=(0,v._T)(e,["children","disabled","inputRef","label","value"]);const{error:u,state:c}=(0,ge.c)(),m=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiButton;return d.createElement(Qt.Z,Object.assign({disabled:void 0===r?!(!u&&!c.disabled):r,ref:l,type:"submit",value:s,variant:null!==(t=null==m?void 0:m.variant)&&void 0!==t?t:"contained"},(0,O.z)(o)),a||i)};var Jt=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Vt}getErrorsField(){return qt}getSubmitField(){return Ht}}return t.Quick=e,t}(Kt);var Gt=function e(n){class t extends(Fe.O.Validated(n)){}return t.Validated=e,t}(Kt),Yt=Gt.Validated(Jt.Quick(Kt));var Xt=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Yt);var ea=(0,C.e)((function(e){var n,t,a,{children:r,error:l,errorMessage:i,fullWidth:s,margin:o,variant:u}=e,c=(0,v._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);const m=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl;return l?d.createElement(ht.Z,{error:!!l,fullWidth:null===(t=null!=s?s:null==m?void 0:m.fullWidth)||void 0===t||t,margin:null!==(a=null!=o?o:null==m?void 0:m.margin)&&void 0!==a?a:"dense",variant:null!=u?u:null==m?void 0:m.variant},d.createElement(_t.Z,Object.assign({},(0,O.z)(c)),r||i)):null}),{initialValue:!1,kind:"leaf"});function na(e){var n,{value:t}=e,a=(0,v._T)(e,["value"]);const r=(0,V.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var ta=(0,C.e)((e=>{var n,t,a,{disabled:r,error:l,errorMessage:i,helperText:s,inputRef:o,label:u,name:c,onChange:m,placeholder:p,readOnly:f,showInlineError:h,type:_="text",value:g}=e,b=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const E=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:r,error:!!l,fullWidth:null===(t=null==E?void 0:E.fullWidth)||void 0===t||t,helperText:!!l&&h&&i||s,inputProps:Object.assign(Object.assign({},null==E?void 0:E.inputProps),{readOnly:f}),label:u,margin:null!==(a=null==E?void 0:E.margin)&&void 0!==a?a:"dense",multiline:!0,name:c,onChange:e=>r||m(e.target.value),placeholder:p,ref:o,type:_,value:null!=g?g:""},(0,O.z)(b)))}),{kind:"leaf"}),aa=t(56213),ra=t(64251),la=t(64281),ia=t(23626),sa=t(22013),oa=t(61230),ua=t(56274);function ca(e){let{component:n,disabled:t,error:a,errorMessage:r,fullWidth:l,helperText:i,margin:s,readOnly:o,required:u,showInlineError:c,variant:m}=e;const p=c&&a?r:i,f={component:n,disabled:!!t,error:!!a,fullWidth:!!l,margin:s,readOnly:o,required:u,variant:m};for(var v=arguments.length,h=new Array(v>1?v-1:0),_=1;_!t&&!o&&s&&s(e.target.checked),ref:a,value:i},We()((0,O.z)(e),["helperText","fullWidth"]))),label:r})))}),{kind:"leaf"}),ma=t(60929);const pa=("object"==typeof t.g?t.g:window).Date,fa=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var va=(0,C.e)((function(e){var n,{disabled:t,error:a,errorMessage:r,helperText:l,InputLabelProps:i,inputRef:s,label:o,labelProps:u,max:c,min:m,name:p,onChange:f,placeholder:h,readOnly:_,showInlineError:g,value:b,type:E="datetime-local"}=e,y=(0,v._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);return d.createElement(ma.Z,Object.assign({disabled:t,error:!!a,fullWidth:!0,helperText:!!a&&g&&r||l,label:o,InputLabelProps:Object.assign(Object.assign({shrink:!0},u),i),inputProps:Object.assign({max:fa(c),min:fa(m),readOnly:_},y.inputProps),margin:"dense",name:p,onChange:e=>t||((e,n)=>{const t=new pa(e);t.getFullYear()<1e4?n(t):isNaN(e)&&n(void 0)})(e.target.valueAsNumber,f),placeholder:h,ref:s,type:E,value:null!==(n=fa(b,E))&&void 0!==n?n:""},(0,O.z)(y)))}),{kind:"leaf"}),ha=t(10872),_a=t(5420),ga=t(68666);var ba=(0,C.e)((function(e){var{disabled:n,fullWidth:t=!0,icon:a="+",margin:r="dense",name:l,readOnly:i,value:s,variant:o}=e,u=(0,v._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const c=(0,$.m)(null,l),m=(0,$.m)(c.slice(0,-1)),p=(0,V.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return d.createElement(oa.Z,{fullWidth:t,margin:r,variant:o},d.createElement(ga.Z,Object.assign({size:"large",variant:"outlined"},(0,O.z)(u),{disabled:!f,onClick:()=>{i||p.onChange(p.value.concat([Z()(s)]))}}),a))}),{initialValue:!1,kind:"leaf"}),Ea=t(88483),ya=t(92133);var Oa=(0,C.e)((function(e){var{disabled:n,icon:t="-",name:a,readOnly:r}=e,l=(0,v._T)(e,["disabled","icon","name","readOnly"]);const i=(0,$.m)(null,a),s=+i[i.length-1],o=(0,$.m)(i.slice(0,-1)),u=(0,V.U)(o,{},{absoluteName:!0})[0];return n||(n=r||u.minCount>=u.value.length),d.createElement(ya.Z,Object.assign({},(0,O.z)(l),{disabled:n,onClick:()=>{const e=u.value.slice();e.splice(s,1),u.onChange(e)},size:"large"}),t)}),{initialValue:!1,kind:"leaf"});var Ca=(0,C.e)((function(e){let{children:n=d.createElement(Sa,{label:null,name:""}),dense:t=!0,disableGutters:a,divider:r,removeIcon:l}=e;return d.createElement(Ea.ZP,{dense:t,disableGutters:a,divider:r},n,d.createElement(Oa,{name:"",icon:l}))}),{initialValue:!1});var ka=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(Ca,{name:"$"}),itemProps:a,label:r,value:l}=e,i=(0,v._T)(e,["addIcon","children","itemProps","label","value"]);return d.createElement(d.Fragment,null,d.createElement(ha.Z,Object.assign({dense:!0,subheader:r?d.createElement(_a.Z,{disableSticky:!0},r):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,n)=>d.Children.map(t,((e,t)=>{var r;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+n)},a)):e}))))),d.createElement(ba,{icon:n,name:"$"}))}));var xa=(0,C.e)((function(e){var{children:n,fields:t,fullWidth:a=!0,itemProps:r,label:l,margin:i="dense"}=e,s=(0,v._T)(e,["children","fields","fullWidth","itemProps","label","margin"]);return ca(Object.assign(Object.assign({fullWidth:a,margin:i},s),{component:void 0}),l&&d.createElement(ia.Z,{component:"legend"},l),n||t.map((e=>d.createElement(Sa,Object.assign({key:e,name:e},r)))))}));var ja=(0,C.e)((function(e){var{decimal:n,disabled:t,error:a,errorMessage:r,helperText:l,inputProps:i,inputRef:s,label:o,max:u,min:c,name:m,onChange:p,readOnly:f,placeholder:h,showInlineError:_,step:g=(n?.01:1),value:b}=e,E=(0,v._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);return d.createElement(ma.Z,Object.assign({disabled:t,error:!!a,fullWidth:!0,helperText:!!a&&_&&r||l,inputProps:Object.assign({min:c,max:u,readOnly:f,step:g},i),label:o,margin:"dense",name:m,onChange:e=>{const t=(n?parseFloat:parseInt)(e.target.value);p(isNaN(t)?void 0:t)},placeholder:h,ref:s,type:"number",value:null!=b?b:""},(0,O.z)(E)))}),{kind:"leaf"}),Pa=t(8993),Na=t(20750);const Fa="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Ma=e=>Fa(encodeURIComponent(e)).replace(/=+$/,"");var Ta=(0,C.e)((function(e){var{options:n,disabled:t,fullWidth:a=!0,id:r,inputRef:l,label:i,margin:s="dense",name:o,onChange:u,readOnly:c,row:m,value:p}=e,f=(0,v._T)(e,["options","disabled","fullWidth","id","inputRef","label","margin","name","onChange","readOnly","row","value"]);return ca(Object.assign(Object.assign({},f),{component:"fieldset",disabled:t,fullWidth:a,margin:s}),i&&d.createElement(ia.Z,{component:"legend",htmlFor:o},i),d.createElement(Na.Z,{id:r,name:o,onChange:e=>t||c||u(e.target.value),ref:l,row:m,value:null!=p?p:""},null==n?void 0:n.map((e=>{var n,t;return d.createElement(ra.Z,{control:d.createElement(Pa.Z,Object.assign({id:`${r}-${Ma(e.value)}`},We()((0,O.z)(f),["checkboxes","helperText"]))),htmlFor:`${r}-${Ma(e.value)}`,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(t=e.label)&&void 0!==t?t:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),Ia=t(13455);const wa="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Da=e=>wa(encodeURIComponent(e)).replace(/=+$/,"");var Aa=(0,C.e)((function(e){var n,t;const a=null!==(n=e.value)&&void 0!==n?n:"";if(e.checkboxes){const{options:n,disabled:r,fieldType:l,id:i,inputRef:s,label:o,legend:u,name:c,onChange:m,readOnly:p}=e,f="checkbox"===(null!==(t=e.appearance)&&void 0!==t?t:"checkbox")?aa.Z:sa.Z,v=We()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),h=l!==Array?d.createElement(Na.Z,{id:i,name:c,onChange:e=>r||p||m(e.target.value),ref:s,value:null!=a?a:""},n.map((e=>{var n,t,a;return d.createElement(ra.Z,{control:d.createElement(Pa.Z,Object.assign({id:`${i}-${null!==(n=e.key)&&void 0!==n?n:Da(e.value)}`},v)),disabled:e.disabled||r,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(a=e.label)&&void 0!==a?a:e.value,value:e.value})}))):d.createElement(la.Z,{id:i},n.map((e=>{var n,t,l;return d.createElement(ra.Z,{control:d.createElement(f,Object.assign({checked:a.includes(e.value),id:`${i}-${null!==(n=e.key)&&void 0!==n?n:Da(e.value)}`,name:c,onChange:()=>r||p||m(un()([e.value],a)),ref:s,value:c},v)),disabled:e.disabled||r,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(l=e.label)&&void 0!==l?l:e.value})})));return ca(Object.assign(Object.assign({},e),{component:"fieldset"}),(u||o)&&d.createElement(ia.Z,{component:"legend"},u||o),h)}const{options:r,disabled:l,error:i,errorMessage:s,fieldType:o,fullWidth:u=!0,helperText:c,id:m,InputLabelProps:p,inputProps:f,label:v,labelProps:h,margin:_="dense",name:g,native:b,onChange:E,placeholder:y,readOnly:C,required:k,showInlineError:x,variant:j,textFieldProps:P}=e,N=b?"option":Ia.Z,F=!!y,M=""!==a&&void 0!==a,T=We()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return d.createElement(ma.Z,Object.assign({disabled:l,error:!!i,fullWidth:u,helperText:!!i&&x&&s||c,InputLabelProps:Object.assign(Object.assign({shrink:!!v&&(F||M)},h),p),label:v,margin:_,onChange:e=>l||C||E(""!==e.target.value?e.target.value:void 0),required:k,select:!0,SelectProps:Object.assign({displayEmpty:F,inputProps:Object.assign({name:g,id:m},f),multiple:o===Array||void 0,native:b},T),value:b&&!a?"":a,variant:j},P),(F||!k||!M)&&d.createElement(N,{value:"",disabled:!!k},y||v),r.map((e=>{var n,t;return d.createElement(N,{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)})))}),{kind:"leaf"});var Ra=(0,C.e)((function(e){var{disabled:n,error:t,errorMessage:a,helperText:r,inputRef:l,label:i,name:s,onChange:o,placeholder:u,readOnly:c,showInlineError:m,type:p="text",value:f=""}=e,h=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return d.createElement(ma.Z,Object.assign({disabled:n,error:!!t,fullWidth:!0,helperText:!!t&&m&&a||r,inputProps:{readOnly:c},label:i,margin:"dense",name:s,onChange:e=>n||o(e.target.value),placeholder:u,ref:l,type:p,value:f},(0,O.z)(h)))}),{kind:"leaf"});var Sa=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Ta:Aa;switch(e.fieldType){case Array:return ka;case Boolean:return da;case Date:return va;case Number:return ja;case Object:return xa;case String:return Ra}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function La(e){var{element:n=d.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(Sa,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Ba=function e(n){class t extends n{}return t.Material=e,t.displayName=`Material${n.displayName}`,t}(ye.I);var Wa=function(e){var{children:n,fullWidth:t=!0,margin:a,variant:r}=e,l=(0,v._T)(e,["children","fullWidth","margin","variant"]);const{error:i,schema:s}=(0,ge.c)();return i||n?d.createElement(oa.Z,{error:!!i,fullWidth:!!t,margin:a,variant:r},!!n&&d.createElement(ua.Z,Object.assign({},(0,O.z)(l)),n),s.getErrorMessages(i).map(((e,n)=>d.createElement(ua.Z,Object.assign({key:n},(0,O.z)(l)),e)))):null};var Ua=function(e){var{children:n,disabled:t,inputRef:a,label:r="Submit",value:l}=e,i=(0,v._T)(e,["children","disabled","inputRef","label","value"]);const{error:s,state:o}=(0,ge.c)();return d.createElement(ga.Z,Object.assign({disabled:void 0===t?!(!s&&!o.disabled):t,ref:a,type:"submit",value:l,variant:"contained"},(0,O.z)(i)),n||r)};var Za=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Sa}getErrorsField(){return Wa}getSubmitField(){return Ua}}return t.Quick=e,t}(Ba);var $a=function e(n){class t extends(Fe.O.Validated(n)){}return t.Validated=e,t}(Ba),Va=$a.Validated(Za.Quick(Ba));var za=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Va);var Ka=(0,C.e)((function(e){var{children:n,error:t,errorMessage:a,fullWidth:r,margin:l,variant:i}=e,s=(0,v._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);return t?d.createElement(oa.Z,{error:!!t,fullWidth:!!r,margin:"dense"===l?l:void 0,variant:i},d.createElement(ua.Z,Object.assign({},(0,O.z)(s)),n||a)):null}),{initialValue:!1,kind:"leaf"});function qa(e){var n,{value:t}=e,a=(0,v._T)(e,["value"]);const r=(0,V.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var Qa=(0,C.e)((e=>{var{disabled:n,error:t,errorMessage:a,helperText:r,inputRef:l,label:i,name:s,onChange:o,placeholder:u,readOnly:c,showInlineError:m,type:p="text",value:f}=e,h=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return d.createElement(ma.Z,Object.assign({disabled:n,error:!!t,fullWidth:!0,helperText:!!t&&m&&a||r,inputProps:{readOnly:c},label:i,margin:"dense",multiline:!0,name:s,onChange:e=>n||o(e.target.value),placeholder:u,ref:l,type:p,value:null!=f?f:""},(0,O.z)(h)))}),{kind:"leaf"}),Ha=t(68599);function Ja(e){var{element:n=d.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(Ha.Z,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Ga=t(2310),Ya=t(99574),Xa=t(12138),er=t(14449);var nr=(0,C.e)((function(e){var{children:n,className:t,error:a,errorMessage:r}=e,l=(0,v._T)(e,["children","className","error","errorMessage"]);return a?d.createElement("div",Object.assign({className:S()("ui",t,"error message")},(0,O.z)(l)),n||d.createElement("div",{className:"header"},r)):null}),{initialValue:!1,kind:"leaf"}),tr=t(43351);function ar(e){var n,{value:t}=e,a=(0,v._T)(e,["value"]);const r=(0,V.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var rr=t(77900),lr=t(960),ir=t(64694),sr=t(18747);var or=(0,C.e)((function(e){var{className:n,disabled:t,error:a,errorMessage:r,id:l,inputRef:i,label:s,name:o,onChange:u,placeholder:c,readOnly:m,required:p,showInlineError:f,value:h}=e,_=(0,v._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);return d.createElement("div",Object.assign({className:S()(n,{disabled:t,error:a,required:p},"field")},(0,O.z)(_)),s&&d.createElement("label",{htmlFor:l},s),d.createElement("textarea",{disabled:t,id:l,name:o,onChange:e=>u(e.target.value),placeholder:c,readOnly:m,ref:i,value:null!=h?h:""}),!(!a||!f)&&d.createElement("div",{className:"ui red basic pointing label"},r))}),{kind:"leaf"}),ur=t(80661),cr=t(59492),dr=t(52559),mr=t(44591),pr=t(47822),fr=t(82986),vr=t(99086),hr=t(3684),_r=t(79904);var gr=(0,C.e)((function(e){var{disabled:n,id:t,inputRef:a,label:r,name:l,onChange:i,readOnly:s,value:o}=e,u=(0,v._T)(e,["disabled","id","inputRef","label","name","onChange","readOnly","value"]);return d.createElement("div",Object.assign({},(0,O.z)(u)),d.createElement("input",{checked:o||!1,disabled:n,id:t,name:l,onChange:()=>!n&&!s&&i(!o),ref:a,type:"checkbox"}),r&&d.createElement("label",{htmlFor:t},r))}),{kind:"leaf"});const br=("object"==typeof t.g?t.g:window).Date,Er=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var yr=(0,C.e)((function(e){var n,{disabled:t,id:a,inputRef:r,label:l,max:i,min:s,name:o,onChange:u,placeholder:c,readOnly:m,value:p,type:f="datetime-local"}=e,h=(0,v._T)(e,["disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","value","type"]);return d.createElement("div",Object.assign({},(0,O.z)(h)),l&&d.createElement("label",{htmlFor:a},l),d.createElement("input",{disabled:t,id:a,max:Er(i),min:Er(s),name:o,onChange:e=>{const n=new br(e.target.valueAsNumber);n.getFullYear()<1e4?u(n):isNaN(e.target.valueAsNumber)&&u(void 0)},placeholder:c,readOnly:m,ref:r,type:f,value:null!==(n=Er(p,f))&&void 0!==n?n:""}))}),{kind:"leaf"});var Or=(0,C.e)((function(e){var{disabled:n,name:t,readOnly:a,value:r}=e,l=(0,v._T)(e,["disabled","name","readOnly","value"]);const i=(0,$.m)(null,t),s=(0,$.m)(i.slice(0,-1)),o=(0,V.U)(s,{},{absoluteName:!0})[0],u=!(n||o.maxCount<=o.value.length);function c(e){!u||a||"key"in e&&"Enter"!==e.key||o.onChange(o.value.concat([Z()(r)]))}return d.createElement("span",Object.assign({},(0,O.z)(l),{onClick:c,onKeyDown:c,role:"button",tabIndex:0}),"+")}),{initialValue:!1,kind:"leaf"});var Cr=(0,C.e)((function(e){var{disabled:n,name:t,readOnly:a}=e,r=(0,v._T)(e,["disabled","name","readOnly"]);const l=(0,$.m)(null,t),i=+l[l.length-1],s=(0,$.m)(l.slice(0,-1)),o=(0,V.U)(s,{},{absoluteName:!0})[0];function u(e){if(!(n||"key"in e&&"Enter"!==e.key)){const e=o.value.slice();e.splice(i,1),o.onChange(e)}}return n||(n=a||o.minCount>=o.value.length),d.createElement("span",Object.assign({},(0,O.z)(r),{onClick:u,onKeyDown:u,role:"button",tabIndex:0}),"-")}),{initialValue:!1,kind:"leaf"});var kr=(0,C.e)((function(e){let{children:n=d.createElement(Rr,{label:null,name:""})}=e;return d.createElement("div",null,d.createElement(Cr,{name:""}),n)}),{initialValue:!1});var xr=(0,C.e)((function(e){var{children:n=d.createElement(kr,{name:"$"}),itemProps:t,label:a,value:r}=e,l=(0,v._T)(e,["children","itemProps","label","value"]);return d.createElement("ul",Object.assign({},(0,O.z)(l)),a&&d.createElement("label",null,a,d.createElement(Or,{name:"$"})),null==r?void 0:r.map(((e,a)=>d.Children.map(n,((e,n)=>{var r;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${a}-${n}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+a)},t)):e})))))}));var jr=(0,C.e)((function(e){var{children:n,fields:t,itemProps:a,label:r}=e,l=(0,v._T)(e,["children","fields","itemProps","label"]);return d.createElement("div",Object.assign({},(0,O.z)(l)),r&&d.createElement("label",null,r),n||t.map((e=>d.createElement(Rr,Object.assign({key:e,name:e},a)))))}));var Pr=(0,C.e)((function(e){var{decimal:n,disabled:t,id:a,inputRef:r,label:l,max:i,min:s,name:o,onChange:u,placeholder:c,readOnly:m,step:p,value:f}=e,h=(0,v._T)(e,["decimal","disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","step","value"]);return d.createElement("div",Object.assign({},(0,O.z)(h)),l&&d.createElement("label",{htmlFor:a},l),d.createElement("input",{disabled:t,id:a,max:i,min:s,name:o,onChange:e=>{const t=(n?parseFloat:parseInt)(e.target.value);u(isNaN(t)?void 0:t)},placeholder:c,readOnly:m,ref:r,step:p||(n?.01:1),type:"number",value:null!=f?f:""}))}),{kind:"leaf"});const Nr="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Fr=e=>Nr(encodeURIComponent(e)).replace(/=+$/,"");var Mr=(0,C.e)((function(e){var{options:n,disabled:t,id:a,label:r,name:l,onChange:i,readOnly:s,value:o}=e,u=(0,v._T)(e,["options","disabled","id","label","name","onChange","readOnly","value"]);return d.createElement("div",Object.assign({},We()((0,O.z)(u),["checkboxes"])),r&&d.createElement("label",null,r),null==n?void 0:n.map((e=>{var n,r,u,c;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value},d.createElement("input",{checked:e.value===o,disabled:e.disabled||t,id:`${a}-${null!==(r=e.key)&&void 0!==r?r:Fr(e.value)}`,name:l,onChange:()=>{s||i(e.value)},type:"radio"}),d.createElement("label",{htmlFor:`${a}-${null!==(u=e.key)&&void 0!==u?u:Fr(e.value)}`},null!==(c=e.label)&&void 0!==c?c:e.value))})))}),{kind:"leaf"});const Tr="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Ir=e=>Tr(encodeURIComponent(e)).replace(/=+$/,"");var wr=(0,C.e)((function(e){var{checkboxes:n,disabled:t,fieldType:a,id:r,inputRef:l,label:i,name:s,onChange:o,placeholder:u,readOnly:c,required:m,value:p,options:f}=e,h=(0,v._T)(e,["checkboxes","disabled","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","value","options"]);const _=a===Array;return d.createElement("div",Object.assign({},(0,O.z)(h)),i&&d.createElement("label",{htmlFor:r},i),n?null==f?void 0:f.map((e=>{var n,l,i,u,m;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value},d.createElement("input",{checked:a===Array?null==p?void 0:p.includes(e.value):p===e.value,disabled:null!==(l=e.disabled)&&void 0!==l?l:t,id:`${r}-${null!==(i=e.key)&&void 0!==i?i:Ir(e.value)}`,name:s,onChange:()=>{c||o(a===Array?un()([e.value],p):e.value)},type:"checkbox"}),d.createElement("label",{htmlFor:`${r}-${null!==(u=e.key)&&void 0!==u?u:Ir(e.value)}`},null!==(m=e.label)&&void 0!==m?m:e.value))})):d.createElement("select",{disabled:t,id:r,multiple:_,name:s,onChange:e=>{if(!c){const n=e.target.value;if(_){const t=-1===e.target.selectedIndex;o(t?[]:un()([n],p))}else o(""!==n?n:void 0)}},ref:l,value:null!=p?p:""},(!!u||!m||void 0===p)&&!_&&d.createElement("option",{value:"",disabled:m,hidden:m},u||i),null==f?void 0:f.map((e=>{var n,t;return d.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});function Dr(e){var{autoComplete:n,disabled:t,id:a,inputRef:r,label:l,name:i,onChange:s,placeholder:o,readOnly:u,type:c,value:m}=e,p=(0,v._T)(e,["autoComplete","disabled","id","inputRef","label","name","onChange","placeholder","readOnly","type","value"]);return d.createElement("div",Object.assign({},(0,O.z)(p)),l&&d.createElement("label",{htmlFor:a},l),d.createElement("input",{autoComplete:n,disabled:t,id:a,name:i,onChange:e=>s(e.target.value),placeholder:o,readOnly:u,ref:r,type:c,value:null!=m?m:""}))}Dr.defaultProps={type:"text"};var Ar=(0,C.e)(Dr,{kind:"leaf"});var Rr=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Mr:wr;switch(e.fieldType){case Array:return xr;case Boolean:return gr;case Date:return yr;case Number:return Pr;case Object:return jr;case String:return Ar}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Sr(e){var{element:n=d.Fragment,fields:t,omitFields:a=[]}=e,r=(0,v._T)(e,["element","fields","omitFields"]);const{schema:l}=(0,ge.c)();return(0,d.createElement)(n,r,(null!=t?t:l.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(Rr,{key:e,name:e}))))}var Lr=function e(n){class t extends n{}return t.Unstyled=e,t.displayName=`Unstyled${n.displayName}`,t}(ye.I);function Br(e){const{error:n,schema:t}=(0,ge.c)();return n||e.children?d.createElement("div",Object.assign({},(0,O.z)(e)),e.children,d.createElement("ul",null,t.getErrorMessages(n).map(((e,n)=>d.createElement("li",{key:n},e))))):null}function Wr(e){var{disabled:n,inputRef:t,readOnly:a,value:r}=e,l=(0,v._T)(e,["disabled","inputRef","readOnly","value"]);const{error:i,state:s}=(0,ge.c)();return d.createElement("input",Object.assign({disabled:void 0===n?!(!i&&!s.disabled):n,readOnly:a,ref:t,type:"submit"},r?{value:r}:{},(0,O.z)(l)))}var Ur=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Rr}getErrorsField(){return Br}getSubmitField(){return Wr}}return t.Quick=e,t}(Lr);var Zr=function e(n){class t extends(Fe.O.Validated(n)){}return t.Validated=e,t}(Lr),$r=Zr.Validated(Ur.Quick(Lr));var Vr=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}($r);var zr=(0,C.e)((function(e){var{children:n,error:t,errorMessage:a}=e,r=(0,v._T)(e,["children","error","errorMessage"]);return t?d.createElement("div",Object.assign({},(0,O.z)(r)),n||a):null}),{initialValue:!1,kind:"leaf"});function Kr(e){var n,{value:t}=e,a=(0,v._T)(e,["value"]);const r=(0,V.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var qr=t(96614);const Qr=ll("AutoFields"),Hr=ll("AutoField"),Jr=ll("AutoForm"),Gr=(ll("BaseForm"),ll("BoolField"),ll("DateField"),ll("ErrorField")),Yr=ll("ErrorsField"),Xr=(ll("HiddenField"),ll("ListAddField"),ll("ListDelField"),ll("ListField"),ll("ListItemField"),ll("LongTextField")),el=(ll("NestField"),ll("NumField"),ll("QuickForm"),ll("RadioField"),ll("SelectField")),nl=ll("SubmitField"),tl=ll("TextField"),al=(ll("ValidatedForm"),ll("ValidatedQuickForm"),{antd:a,bootstrap4:r,bootstrap5:l,material:i,mui:s,semantic:o,unstyled:u}),rl=(0,d.createContext)("unstyled");function ll(e){return function(n){const t=(0,d.useContext)(rl),a=al[t][e];return d.createElement(a,(0,c.Z)({key:t},n))}}},37309:function(e,n,t){"use strict";t.d(n,{mB:function(){return c},nN:function(){return o},rh:function(){return u}});var a=t(14648),r=t.n(a),l=t(17728),i=t.n(l);const s=["preset","props","theme"],o=e=>i().compressToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");function u(e){try{const n=r()(e,s),t=JSON.stringify(n),a=o(t),l="?"+encodeURIComponent(a);window.location.hash=l}catch(n){}}function c(){try{const n=document.location.hash.replace(/^#\?/,""),t=decodeURIComponent(n),a=(e=t,i().decompressFromBase64(e.replace(/-/g,"+").replace(/_/g,"/"))),l=JSON.parse(a??"");return r()(l,s)}catch(n){return{}}var e}},82974:function(e,n,t){"use strict";t.r(n),t.d(n,{assets:function(){return O},contentTitle:function(){return E},default:function(){return x},frontMatter:function(){return b},metadata:function(){return y},toc:function(){return C}});var a=t(25773),r=t(27378),l=t(35318),i=t(57292),s=t(80912),o=t(86236),u=t.n(o),c=t(73633),d=t(96614);var m=(0,t(76424).e)((function(e){let{onChange:n,value:t}=e;return r.createElement("div",{className:"ImageField"},r.createElement("label",{htmlFor:"file-input"},r.createElement("div",null,"Choose your photo"),r.createElement("img",{alt:"",style:{cursor:"pointer",width:"150px",height:"150px"},src:t||"https://picsum.photos/150?grayscale"})),r.createElement("input",{accept:"image/*",id:"file-input",onChange:e=>{let{target:{files:t}}=e;t&&t[0]&&n(URL.createObjectURL(t[0]))},style:{display:"none"},type:"file"}))}));const p=new(u())({allErrors:!0,useDefaults:!0});p.addVocabulary(["options","uniforms"]);const f={title:"Guest",type:"object",properties:{firstName:{type:"string"},lastName:{type:"string"},workExperience:{description:"Work experience in years",type:"integer",minimum:0,maximum:100},profession:{type:"string",options:[{label:"Developer",value:"developer"},{label:"Tester",value:"tester"},{label:"Product owner",value:"product-owner"},{label:"Project manager",value:"project-manager"},{label:"Businessman",value:"businessman"}]},additionalInfo:{type:"string",uniforms:{component:d.Z}},pictureUrl:{type:"string",uniforms:{component:m}}},required:["firstName","lastName"]};const v=function(e){const n=p.compile(e);return e=>{var t;return n(e),null!=(t=n.errors)&&t.length?{details:n.errors}:null}}(f),h=new c.j({schema:f,validator:v});function _(){return r.createElement(s.NE,{schema:h,onSubmit:console.log},r.createElement("h4",null,"IT meeting guest questionnaire"),r.createElement(s.Pt,{name:"lastName"}),r.createElement(s.ME,{name:"lastName"},r.createElement("span",null,"You have to provide your last name!")),r.createElement(s.Pt,{name:"firstName"}),r.createElement(s.ME,{name:"firstName",errorMessage:"You have to provide your first name!"}),r.createElement("span",null,"Do you want to share your work experience with us?"),r.createElement(s.Pt,{name:"workExperience"}),r.createElement(s.ME,{name:"workExperience",errorMessage:"Your work experience cannot be \\ lesser than 0 or greater than 100 years!"}),r.createElement(s.Pt,{name:"profession"}),r.createElement(s.Pt,{name:"additionalInfo"}),r.createElement(s.Pt,{name:"pictureUrl"}),r.createElement(s.hl,null))}var g=t(53009);const b={id:"tutorials-creating-custom-field",title:"Creating a custom field"},E=void 0,y={unversionedId:"tutorials-creating-custom-field",id:"tutorials-creating-custom-field",title:"Creating a custom field",description:"Great! We have a perfect form designed for collecting the data about our guests!",source:"@site/../docs/tutorials-creating-custom-field.mdx",sourceDirName:".",slug:"/tutorials-creating-custom-field",permalink:"/docs/tutorials-creating-custom-field",draft:!1,tags:[],version:"current",frontMatter:{id:"tutorials-creating-custom-field",title:"Creating a custom field"},sidebar:"docs",previous:{title:"Using predefined fields",permalink:"/docs/tutorials-using-predefined-fields"},next:{title:"Creating a custom theme",permalink:"/docs/tutorials-creating-custom-theme"}},O={},C=[],k={toc:C};function x(e){let{components:n,...r}=e;return(0,l.kt)("wrapper",(0,a.Z)({},k,r,{components:n,mdxType:"MDXLayout"}),(0,l.kt)("p",null,"Great! We have a perfect form designed for collecting the data about our guests!\nIn the previous chapters, we've learned how to use the ",(0,l.kt)("inlineCode",{parentName:"p"},"AutoForm")," and redesign its layout, by changing the order of the fields and error messages (if any).\nWe've also found out how to change the fields' types, by using predefined ones, such as ",(0,l.kt)("inlineCode",{parentName:"p"},"SelectField")," or ",(0,l.kt)("inlineCode",{parentName:"p"},"LongTextField"),"."),(0,l.kt)("p",null,"Now we're going to learn how to define a custom field."),(0,l.kt)("p",null,"Let's assume that our conference has a limited number of attendees.\nWhat we need is to prepare special passes, with the first name, last name and the photo of the person.\nTherefore, we need to add one more field to our form - an image field, which should enable our guests to choose a photo.\nAs there isn't such field provided, we have to create it ourselves."),(0,l.kt)("p",null,"Let's add a new property to our schema - ",(0,l.kt)("inlineCode",{parentName:"p"},"pictureUrl"),", which will store an URL string containing guest's picture,\nand declare that it will be managed by our newly created custom ",(0,l.kt)("inlineCode",{parentName:"p"},"ImageField")," component:"),(0,l.kt)(i.f,{language:"tsx",section:"schema",source:t(78899),mdxType:"CodeSection"}),(0,l.kt)("p",null,"We can prepare the custom field by creating a React component and wrapping it in a ",(0,l.kt)("inlineCode",{parentName:"p"},"connectField")," helper.\n",(0,l.kt)("inlineCode",{parentName:"p"},"connectField")," will pass various props related to the form management, such as ",(0,l.kt)("inlineCode",{parentName:"p"},"onChange()")," function, current field's value, errors an so on.\nYou can find the whole list of guaranteed props inside the ",(0,l.kt)("a",{parentName:"p",href:"/docs/api-helpers#connectfieldcomponent-options"},"helpers")," section.\nIt's worth noting, that it will also add the ",(0,l.kt)("inlineCode",{parentName:"p"},"Field")," suffix to the name of our component."),(0,l.kt)("p",null,"Our newly created ",(0,l.kt)("inlineCode",{parentName:"p"},"ImageField")," looks like this:"),(0,l.kt)(i.f,{language:"tsx",replace:{"'[^']*?/universal'":"'uniforms-semantic'"},source:t(70125),mdxType:"CodeSection"}),(0,l.kt)("p",null,"The component itself is a file input that accepts only images.\nAfter the file is selected, it is converted to the DOMString that contains a URL representing the user's picture.\nPlease pay attention to what props the ",(0,l.kt)("inlineCode",{parentName:"p"},"Image")," component uses: ",(0,l.kt)("inlineCode",{parentName:"p"},"onChange")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"value")," are provided by a ",(0,l.kt)("inlineCode",{parentName:"p"},"connectField")," helper.\nBy using these, we don't have to worry about managing the field's state."),(0,l.kt)("p",null,"Take a look at the form code:"),(0,l.kt)(i.f,{language:"tsx",replace:{"'[^']*?/universal'":"'uniforms-semantic'","./GuestSchema\\d":"./GuestSchema"},source:t(32830),mdxType:"CodeSection"}),(0,l.kt)("p",null,"and the form itself:"),(0,l.kt)(g.R,{mdxType:"TutorialForm"},(0,l.kt)(_,{mdxType:"GuestFormFinal"})))}x.isMDXComponent=!0},4940:function(e,n){"use strict";n.Z={"center-if-sm":"center-if-sm_fQBP",padding:"padding_u3oQ",landing:"landing_JSVC","overflow-hidden":"overflow-hidden_pgKL","section-content":"section-content_dsyA",discussions:"discussions_nna8","floating-example":"floating-example_NeZB","system-window":"system-window_utQO","system-top-bar":"system-top-bar_ZKOK","system-top-bar-circle":"system-top-bar-circle_TDqe","showcase-card":"showcase-card_hJCa",footer:"footer_V71b",bullets:"bullets_YLT6","offset-column":"offset-column_Fx18","simple-yet-powerful-text":"simple-yet-powerful-text__cJc","fully-customizable-text":"fully-customizable-text_ka9o","reverse-wrap":"reverse-wrap_wEMw",example:"example_fVIp","preview-border":"preview-border_OFQs",preview:"preview_Ea2L","no-padding":"no-padding_WjVH","solid-border-box":"solid-border-box_A28F","green-accent":"green-accent_H4ZV","blue-accent":"blue-accent_R2MP",grid3x3:"grid3x3_yu8a",item3x3:"item3x3_dug1",company:"company_dMmf","border-dashed":"border-dashed_OHF8","border-gradient":"border-gradient_gHdq","border-disable-top-right":"border-disable-top-right_GH8c","border-disable-bottom-left":"border-disable-bottom-left_uiZP","arrow-button":"arrow-button_hF_x","left-arrow-button":"left-arrow-button_Zn9b","right-arrow-button":"right-arrow-button_J0NN",arrow:"arrow_d93H","carousel-container":"carousel-container_uFWT",carousel:"carousel_vfTV",testimonials:"testimonials__H4G","testimonials-pair-active":"testimonials-pair-active_W4Qz","testimonials-pair-inactive":"testimonials-pair-inactive_OeWi",testimonial:"testimonial_JqOm","testimonial-content":"testimonial-content_yyK0","testimonial-links-wrapper":"testimonial-links-wrapper_aCzC","testimonial-description":"testimonial-description_HpGg","testimonial-avatar":"testimonial-avatar_OiX2","section-heading":"section-heading_Wwdu","section-bgwhite":"section-bgwhite_xc3Y","section-bgwhite-block":"section-bgwhite-block_wuyP","section-bgwhite-block-left":"section-bgwhite-block-left_R077","section-bgwhite-block-right":"section-bgwhite-block-right_XL2o",logos:"logos_slhi",fluid:"fluid_k_Hd",whyus:"whyus_bBI7",oval:"oval_S291","link-icon-container":"link-icon-container_Iy8Z",white:"white_k7iJ","top-right-corner":"top-right-corner_hrD6",badges:"badges_sK0n","badge-number":"badge-number_FlCf",badge:"badge_Cv7E","badge-image":"badge-image_V8QJ","badge-centered":"badge-centered_Cl70","call-to-action":"call-to-action_fHoz","theme-icon":"theme-icon_VaE8",section:"section_SnfD","flex-center":"flex-center_VHPe","top-margin":"top-margin_xVhu","long-button":"long-button_efAi",text:"text_U9e4","text-big":"text-big_oDLV","text-huge":"text-huge_zgdY","heading-helper":"heading-helper_fnxq",heading:"heading_Tyjn","heading-white":"heading-white_SkAD",emphasis:"emphasis_T58q",paragraph:"paragraph_pxCb","section-subtitle":"section-subtitle_etM3","footer-heading":"footer-heading_wvTE",supported:"supported_k5lB",title:"title_L62U",description:"description_aTRG","commercial-bullets":"commercial-bullets_o7pP","commercial-box":"commercial-box_wLXy",vazco:"vazco_f6cf","form-wrapper":"form-wrapper_kccZ",playground:"playground_p2wD","playground-wrap":"playground-wrap_FoP6","playground-column":"playground-column_btgY","playground-toolbar":"playground-toolbar_jwg0",tabs:"tabs_DJzW",item:"item_Lknm",active:"active_R6La",toggler:"toggler_LMZW",header:"header_kKxo",tooltip:"tooltip_OOD_","tooltip-text":"tooltip-text_GGXA","toggler-tabs":"toggler-tabs_UzN0"}},95126:function(e,n,t){var a={"./af":1009,"./af.js":1009,"./ar":88769,"./ar-dz":23739,"./ar-dz.js":23739,"./ar-kw":93745,"./ar-kw.js":93745,"./ar-ly":99576,"./ar-ly.js":99576,"./ar-ma":67408,"./ar-ma.js":67408,"./ar-sa":48781,"./ar-sa.js":48781,"./ar-tn":87856,"./ar-tn.js":87856,"./ar.js":88769,"./az":2030,"./az.js":2030,"./be":56476,"./be.js":56476,"./bg":25304,"./bg.js":25304,"./bm":48125,"./bm.js":48125,"./bn":34,"./bn-bd":29835,"./bn-bd.js":29835,"./bn.js":34,"./bo":64082,"./bo.js":64082,"./br":8317,"./br.js":8317,"./bs":93107,"./bs.js":93107,"./ca":68272,"./ca.js":68272,"./cs":98567,"./cs.js":98567,"./cv":61583,"./cv.js":61583,"./cy":10076,"./cy.js":10076,"./da":31760,"./da.js":31760,"./de":8973,"./de-at":63214,"./de-at.js":63214,"./de-ch":74728,"./de-ch.js":74728,"./de.js":8973,"./dv":54053,"./dv.js":54053,"./el":7499,"./el.js":7499,"./en-au":67876,"./en-au.js":67876,"./en-ca":47010,"./en-ca.js":47010,"./en-gb":34239,"./en-gb.js":34239,"./en-ie":99830,"./en-ie.js":99830,"./en-il":28438,"./en-il.js":28438,"./en-in":25322,"./en-in.js":25322,"./en-nz":43264,"./en-nz.js":43264,"./en-sg":55449,"./en-sg.js":55449,"./eo":39486,"./eo.js":39486,"./es":32430,"./es-do":16310,"./es-do.js":16310,"./es-mx":27038,"./es-mx.js":27038,"./es-us":73099,"./es-us.js":73099,"./es.js":32430,"./et":34975,"./et.js":34975,"./eu":87063,"./eu.js":87063,"./fa":68073,"./fa.js":68073,"./fi":50957,"./fi.js":50957,"./fil":8764,"./fil.js":8764,"./fo":81775,"./fo.js":81775,"./fr":74179,"./fr-ca":14306,"./fr-ca.js":14306,"./fr-ch":73791,"./fr-ch.js":73791,"./fr.js":74179,"./fy":47014,"./fy.js":47014,"./ga":46911,"./ga.js":46911,"./gd":62958,"./gd.js":62958,"./gl":87344,"./gl.js":87344,"./gom-deva":33161,"./gom-deva.js":33161,"./gom-latn":35798,"./gom-latn.js":35798,"./gu":68485,"./gu.js":68485,"./he":27917,"./he.js":27917,"./hi":52159,"./hi.js":52159,"./hr":95842,"./hr.js":95842,"./hu":30005,"./hu.js":30005,"./hy-am":51312,"./hy-am.js":51312,"./id":60781,"./id.js":60781,"./is":64101,"./is.js":64101,"./it":43467,"./it-ch":4759,"./it-ch.js":4759,"./it.js":43467,"./ja":44164,"./ja.js":44164,"./jv":70079,"./jv.js":70079,"./ka":57036,"./ka.js":57036,"./kk":92022,"./kk.js":92022,"./km":63418,"./km.js":63418,"./kn":43655,"./kn.js":43655,"./ko":30986,"./ko.js":30986,"./ku":91902,"./ku.js":91902,"./ky":4604,"./ky.js":4604,"./lb":99026,"./lb.js":99026,"./lo":20537,"./lo.js":20537,"./lt":22288,"./lt.js":22288,"./lv":1495,"./lv.js":1495,"./me":60690,"./me.js":60690,"./mi":2571,"./mi.js":2571,"./mk":93959,"./mk.js":93959,"./ml":97225,"./ml.js":97225,"./mn":88,"./mn.js":88,"./mr":46622,"./mr.js":46622,"./ms":11070,"./ms-my":48899,"./ms-my.js":48899,"./ms.js":11070,"./mt":63931,"./mt.js":63931,"./my":95393,"./my.js":95393,"./nb":4274,"./nb.js":4274,"./ne":8914,"./ne.js":8914,"./nl":33114,"./nl-be":68479,"./nl-be.js":68479,"./nl.js":33114,"./nn":4513,"./nn.js":4513,"./oc-lnc":46549,"./oc-lnc.js":46549,"./pa-in":28264,"./pa-in.js":28264,"./pl":32848,"./pl.js":32848,"./pt":90899,"./pt-br":55077,"./pt-br.js":55077,"./pt.js":90899,"./ro":92512,"./ro.js":92512,"./ru":21753,"./ru.js":21753,"./sd":16840,"./sd.js":16840,"./se":78362,"./se.js":78362,"./si":50464,"./si.js":50464,"./sk":66324,"./sk.js":66324,"./sl":41963,"./sl.js":41963,"./sq":53039,"./sq.js":53039,"./sr":93454,"./sr-cyrl":10466,"./sr-cyrl.js":10466,"./sr.js":93454,"./ss":95158,"./ss.js":95158,"./sv":28859,"./sv.js":28859,"./sw":57594,"./sw.js":57594,"./ta":26915,"./ta.js":26915,"./te":15677,"./te.js":15677,"./tet":92154,"./tet.js":92154,"./tg":74098,"./tg.js":74098,"./th":89071,"./th.js":89071,"./tk":49381,"./tk.js":49381,"./tl-ph":1869,"./tl-ph.js":1869,"./tlh":92346,"./tlh.js":92346,"./tr":71483,"./tr.js":71483,"./tzl":30266,"./tzl.js":30266,"./tzm":33138,"./tzm-latn":32960,"./tzm-latn.js":32960,"./tzm.js":33138,"./ug-cn":29456,"./ug-cn.js":29456,"./uk":50805,"./uk.js":50805,"./ur":61127,"./ur.js":61127,"./uz":29628,"./uz-latn":80840,"./uz-latn.js":80840,"./uz.js":29628,"./vi":56962,"./vi.js":56962,"./x-pseudo":49257,"./x-pseudo.js":49257,"./yo":62423,"./yo.js":62423,"./zh-cn":61002,"./zh-cn.js":61002,"./zh-hk":6046,"./zh-hk.js":6046,"./zh-mo":36903,"./zh-mo.js":36903,"./zh-tw":24710,"./zh-tw.js":24710};function r(e){var n=l(e);return t(n)}function l(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=l,e.exports=r,r.id=95126},32830:function(e,n,t){"use strict";t.r(n),n.default='import React from \'react\';\nimport {\n AutoField,\n AutoForm,\n ErrorField,\n SubmitField,\n} from \'../../lib/universal\';\n\nimport { bridge as schema } from \'./GuestSchema4\';\n\nexport function GuestFormFinal() {\n return (\n \n

IT meeting guest questionnaire

\n \n \n You have to provide your last name!\n \n \n \n Do you want to share your work experience with us?\n \n \n \n \n \n \n
\n );\n}\n'},78899:function(e,n,t){"use strict";t.r(n),n.default="// \nimport Ajv, { JSONSchemaType } from 'ajv';\n// \nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\nimport { LongTextField } from 'uniforms-unstyled';\n\nimport ImageField from './ImageField';\n\nconst ajv = new Ajv({ allErrors: true, useDefaults: true });\najv.addVocabulary(['options', 'uniforms']);\n\n// \ntype FormData = {\n firstName: string;\n lastName: string;\n workExperience: number;\n profession: string;\n additionalInfo: string;\n pictureUrl: string;\n};\n\nconst schema: JSONSchemaType = {\n title: 'Guest',\n type: 'object',\n properties: {\n firstName: { type: 'string' },\n lastName: { type: 'string' },\n workExperience: {\n description: 'Work experience in years',\n type: 'integer',\n minimum: 0,\n maximum: 100,\n },\n profession: {\n type: 'string',\n options: [\n {\n label: 'Developer',\n value: 'developer',\n },\n {\n label: 'Tester',\n value: 'tester',\n },\n {\n label: 'Product owner',\n value: 'product-owner',\n },\n {\n label: 'Project manager',\n value: 'project-manager',\n },\n {\n label: 'Businessman',\n value: 'businessman',\n },\n ],\n },\n additionalInfo: {\n type: 'string',\n uniforms: { component: LongTextField },\n },\n pictureUrl: {\n type: 'string',\n uniforms: { component: ImageField },\n },\n },\n required: ['firstName', 'lastName'],\n};\n// \n\nfunction createValidator(schema: JSONSchemaType) {\n const validator = ajv.compile(schema);\n\n return (model: Record) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst validator = createValidator(schema);\n\nexport const bridge = new JSONSchemaBridge({ schema, validator });\n"},70125:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { HTMLFieldProps, connectField } from 'uniforms';\n\nexport type ImageFieldProps = HTMLFieldProps;\n\nfunction Image({ onChange, value }: ImageFieldProps) {\n return (\n
\n \n {\n if (files && files[0]) {\n onChange(URL.createObjectURL(files[0]));\n }\n }}\n style={{ display: 'none' }}\n type=\"file\"\n />\n
\n );\n}\n\nexport default connectField(Image);\n"}}]); \ No newline at end of file diff --git a/assets/js/0ec54675.cd112745.js b/assets/js/0ec54675.cd112745.js new file mode 100644 index 000000000..cba145e5d --- /dev/null +++ b/assets/js/0ec54675.cd112745.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[773],{35318:function(e,t,n){n.d(t,{Zo:function(){return m},kt:function(){return l}});var r=n(27378);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s=r.createContext({}),u=function(e){var t=r.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},m=function(e){var t=u(e.components);return r.createElement(s.Provider,{value:t},e.children)},f={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,s=e.parentName,m=a(e,["components","mdxType","originalType","parentName"]),d=u(n),l=o,p=d["".concat(s,".").concat(l)]||d[l]||f[l]||i;return n?r.createElement(p,c(c({ref:t},m),{},{components:n})):r.createElement(p,c({ref:t},m))}));function l(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,c=new Array(i);c[0]=d;var a={};for(var s in t)hasOwnProperty.call(t,s)&&(a[s]=t[s]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var u=2;uModifierForm",id:"modifierform",level:3}],m={toc:u};function f(e){let{components:t,...n}=e;return(0,o.kt)("wrapper",(0,r.Z)({},m,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("p",null,"In uniforms, every form is just an injectable set of functionalities.\nThus, we can live without many higher order components, using composed ones instead.\nIf you want to get a deeper dive into it, we encourage you to read the source of AutoForm or QuickForm in the core package."),(0,o.kt)("h3",{id:"modifierform"},(0,o.kt)("inlineCode",{parentName:"h3"},"ModifierForm")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"import { BaseForm } from 'uniforms';\n\nconst Modifier = parent =>\n class extends parent {\n // Expose injector.\n // It's not required, but recommended.\n static Modifier = Modifier;\n\n // Alter component display name.\n // It's not required, but recommended.\n static displayName = `Modifier${parent.displayName}`;\n\n // Here you can override any form methods or create additional ones.\n getModel(mode) {\n if (mode === 'submit') {\n const doc = super.getModel('submit');\n const keys = this.getContextSchema().getSubfields();\n\n const update = keys.filter(key => doc[key] !== undefined);\n const remove = keys.filter(key => doc[key] === undefined);\n\n // It's a good idea to omit empty modifiers.\n const $set = update.reduce(\n (acc, key) => ({ ...acc, [key]: doc[key] }),\n {},\n );\n const $unset = remove.reduce((acc, key) => ({ ...acc, [key]: '' }), {});\n\n return { $set, $unset };\n }\n\n return super.getModel(mode);\n }\n };\n\n// Now we have to inject our functionality. This one is a ModifierForm. Use any\n// form component you want.\nconst ModifierForm = Modifier(BaseForm);\n")))}f.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/127.68612a8b.js b/assets/js/127.68612a8b.js new file mode 100644 index 000000000..99f854bcc --- /dev/null +++ b/assets/js/127.68612a8b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[127],{89127:function(e,s,t){t.r(s)}}]); \ No newline at end of file diff --git a/assets/js/17896441.42ccf507.js b/assets/js/17896441.42ccf507.js new file mode 100644 index 000000000..aaba3fec3 --- /dev/null +++ b/assets/js/17896441.42ccf507.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[918],{20586:function(e,t,n){n.r(t),n.d(t,{default:function(){return Ae}});var a=n(27378),l=n(98831),r=n(41763);const s=a.createContext(null);function o(e){let{children:t,content:n}=e;const l=function(e){return(0,a.useMemo)((()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,contentTitle:e.contentTitle,toc:e.toc})),[e])}(n);return a.createElement(s.Provider,{value:l},t)}function i(){const e=(0,a.useContext)(s);if(null===e)throw new r.i6("DocProvider");return e}function c(){const{metadata:e,frontMatter:t,assets:n}=i();return a.createElement(l.d,{title:e.title,description:e.description,keywords:t.keywords,image:n.image??t.image})}var d=n(38944),m=n(58357),u=n(25773),v=n(99213),b=n(81884);function h(e){const{permalink:t,title:n,subLabel:l,isNext:r}=e;return a.createElement(b.Z,{className:(0,d.Z)("pagination-nav__link",r?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t},l&&a.createElement("div",{className:"pagination-nav__sublabel"},l),a.createElement("div",{className:"pagination-nav__label"},n))}function p(e){const{previous:t,next:n}=e;return a.createElement("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,v.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages navigation",description:"The ARIA label for the docs pagination"})},t&&a.createElement(h,(0,u.Z)({},t,{subLabel:a.createElement(v.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc"},"Previous")})),n&&a.createElement(h,(0,u.Z)({},n,{subLabel:a.createElement(v.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc"},"Next"),isNext:!0})))}function f(){const{metadata:e}=i();return a.createElement(p,{previous:e.previous,next:e.next})}var E=n(50353),g=n(62935),L=n(75484),N=n(24453),_=n(25611);const k={unreleased:function(e){let{siteTitle:t,versionMetadata:n}=e;return a.createElement(v.Z,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:a.createElement("b",null,n.label)}},"This is unreleased documentation for {siteTitle} {versionLabel} version.")},unmaintained:function(e){let{siteTitle:t,versionMetadata:n}=e;return a.createElement(v.Z,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:a.createElement("b",null,n.label)}},"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.")}};function Z(e){const t=k[e.versionMetadata.banner];return a.createElement(t,e)}function C(e){let{versionLabel:t,to:n,onClick:l}=e;return a.createElement(v.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:a.createElement("b",null,a.createElement(b.Z,{to:n,onClick:l},a.createElement(v.Z,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label"},"latest version")))}},"For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).")}function x(e){let{className:t,versionMetadata:n}=e;const{siteConfig:{title:l}}=(0,E.Z)(),{pluginId:r}=(0,g.gA)({failfast:!0}),{savePreferredVersionName:s}=(0,N.J)(r),{latestDocSuggestion:o,latestVersionSuggestion:i}=(0,g.Jo)(r),c=o??(m=i).docs.find((e=>e.id===m.mainDocId));var m;return a.createElement("div",{className:(0,d.Z)(t,L.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert"},a.createElement("div",null,a.createElement(Z,{siteTitle:l,versionMetadata:n})),a.createElement("div",{className:"margin-top--md"},a.createElement(C,{versionLabel:i.label,to:c.path,onClick:()=>s(i.name)})))}function T(e){let{className:t}=e;const n=(0,_.E)();return n.banner?a.createElement(x,{className:t,versionMetadata:n}):null}function H(e){let{className:t}=e;const n=(0,_.E)();return n.badge?a.createElement("span",{className:(0,d.Z)(t,L.k.docs.docVersionBadge,"badge badge--secondary")},a.createElement(v.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label}},"Version: {versionLabel}")):null}function w(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n}=e;return a.createElement(v.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:a.createElement("b",null,a.createElement("time",{dateTime:new Date(1e3*t).toISOString()},n))}}," on {date}")}function y(e){let{lastUpdatedBy:t}=e;return a.createElement(v.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:a.createElement("b",null,t)}}," by {user}")}function U(e){let{lastUpdatedAt:t,formattedLastUpdatedAt:n,lastUpdatedBy:l}=e;return a.createElement("span",{className:L.k.common.lastUpdated},a.createElement(v.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t&&n?a.createElement(w,{lastUpdatedAt:t,formattedLastUpdatedAt:n}):"",byUser:l?a.createElement(y,{lastUpdatedBy:l}):""}},"Last updated{atDate}{byUser}"),!1)}var A="iconEdit_bHB7";function M(e){let{className:t,...n}=e;return a.createElement("svg",(0,u.Z)({fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,d.Z)(A,t),"aria-hidden":"true"},n),a.createElement("g",null,a.createElement("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})))}function B(e){let{editUrl:t}=e;return a.createElement("a",{href:t,target:"_blank",rel:"noreferrer noopener",className:L.k.common.editThisPage},a.createElement(M,null),a.createElement(v.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page"},"Edit this page"))}var I="tag_otG2",O="tagRegular_s0E1",P="tagWithCount_PGyn";function S(e){let{permalink:t,label:n,count:l}=e;return a.createElement(b.Z,{href:t,className:(0,d.Z)(I,l?P:O)},n,l&&a.createElement("span",null,l))}var V="tags_Ow0B",D="tag_DFxh";function R(e){let{tags:t}=e;return a.createElement(a.Fragment,null,a.createElement("b",null,a.createElement(v.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list"},"Tags:")),a.createElement("ul",{className:(0,d.Z)(V,"padding--none","margin-left--sm")},t.map((e=>{let{label:t,permalink:n}=e;return a.createElement("li",{key:n,className:D},a.createElement(S,{label:t,permalink:n}))}))))}var F="lastUpdated_pbO5";function z(e){return a.createElement("div",{className:(0,d.Z)(L.k.docs.docFooterTagsRow,"row margin-bottom--sm")},a.createElement("div",{className:"col"},a.createElement(R,e)))}function q(e){let{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:l,formattedLastUpdatedAt:r}=e;return a.createElement("div",{className:(0,d.Z)(L.k.docs.docFooterEditMetaRow,"row")},a.createElement("div",{className:"col"},t&&a.createElement(B,{editUrl:t})),a.createElement("div",{className:(0,d.Z)("col",F)},(n||l)&&a.createElement(U,{lastUpdatedAt:n,formattedLastUpdatedAt:r,lastUpdatedBy:l})))}function G(){const{metadata:e}=i(),{editUrl:t,lastUpdatedAt:n,formattedLastUpdatedAt:l,lastUpdatedBy:r,tags:s}=e,o=s.length>0,c=!!(t||n||r);return o||c?a.createElement("footer",{className:(0,d.Z)(L.k.docs.docFooter,"docusaurus-mt-lg")},o&&a.createElement(z,{tags:s}),c&&a.createElement(q,{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:r,formattedLastUpdatedAt:l})):null}var j=n(80376),$=n(20624);function J(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const a=n.slice(2,e.level);e.parentIndex=Math.max(...a),n[e.level]=t}));const a=[];return t.forEach((e=>{const{parentIndex:n,...l}=e;n>=0?t[n].children.push(l):a.push(l)})),a}function X(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:a}=e;return t.flatMap((e=>{const t=X({toc:e.children,minHeadingLevel:n,maxHeadingLevel:a});return function(e){return e.level>=n&&e.level<=a}(e)?[{...e,children:t}]:t}))}function Q(e){const t=e.getBoundingClientRect();return t.top===t.bottom?Q(e.parentNode):t}function W(e,t){let{anchorTopOffset:n}=t;const a=e.find((e=>Q(e).top>=n));if(a){return function(e){return e.top>0&&e.bottom{e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function Y(e){const t=(0,a.useRef)(void 0),n=K();(0,a.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:a,linkActiveClassName:l,minHeadingLevel:r,maxHeadingLevel:s}=e;function o(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(a),o=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const a=[];for(let l=t;l<=n;l+=1)a.push(`h${l}.anchor`);return Array.from(document.querySelectorAll(a.join()))}({minHeadingLevel:r,maxHeadingLevel:s}),i=W(o,{anchorTopOffset:n.current}),c=e.find((e=>i&&i.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(l),e.classList.add(l),t.current=e):e.classList.remove(l)}(e,e===c)}))}return document.addEventListener("scroll",o),document.addEventListener("resize",o),o(),()=>{document.removeEventListener("scroll",o),document.removeEventListener("resize",o)}}),[e,n])}function ee(e){let{toc:t,className:n,linkClassName:l,isChild:r}=e;return t.length?a.createElement("ul",{className:r?void 0:n},t.map((e=>a.createElement("li",{key:e.id},a.createElement("a",{href:`#${e.id}`,className:l??void 0,dangerouslySetInnerHTML:{__html:e.value}}),a.createElement(ee,{isChild:!0,toc:e.children,className:n,linkClassName:l}))))):null}var te=a.memo(ee);function ne(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:l="table-of-contents__link",linkActiveClassName:r,minHeadingLevel:s,maxHeadingLevel:o,...i}=e;const c=(0,$.L)(),d=s??c.tableOfContents.minHeadingLevel,m=o??c.tableOfContents.maxHeadingLevel,v=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:l}=e;return(0,a.useMemo)((()=>X({toc:J(t),minHeadingLevel:n,maxHeadingLevel:l})),[t,n,l])}({toc:t,minHeadingLevel:d,maxHeadingLevel:m});return Y((0,a.useMemo)((()=>{if(l&&r)return{linkClassName:l,linkActiveClassName:r,minHeadingLevel:d,maxHeadingLevel:m}}),[l,r,d,m])),a.createElement(te,(0,u.Z)({toc:v,className:n,linkClassName:l},i))}var ae="tocCollapsibleButton_iI2p",le="tocCollapsibleButtonExpanded_cHjC";function re(e){let{collapsed:t,...n}=e;return a.createElement("button",(0,u.Z)({type:"button"},n,{className:(0,d.Z)("clean-btn",ae,!t&&le,n.className)}),a.createElement(v.Z,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component"},"On this page"))}var se="tocCollapsible_wXna",oe="tocCollapsibleContent_vea0",ie="tocCollapsibleExpanded_BbRn";function ce(e){let{toc:t,className:n,minHeadingLevel:l,maxHeadingLevel:r}=e;const{collapsed:s,toggleCollapsed:o}=(0,j.u)({initialState:!0});return a.createElement("div",{className:(0,d.Z)(se,!s&&ie,n)},a.createElement(re,{collapsed:s,onClick:o}),a.createElement(j.z,{lazy:!0,className:oe,collapsed:s},a.createElement(ne,{toc:t,minHeadingLevel:l,maxHeadingLevel:r})))}var de="tocMobile_Ojys";function me(){const{toc:e,frontMatter:t}=i();return a.createElement(ce,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,d.Z)(L.k.docs.docTocMobile,de)})}var ue="tableOfContents_XG6w";function ve(e){let{className:t,...n}=e;return a.createElement("div",{className:(0,d.Z)(ue,"thin-scrollbar",t)},a.createElement(ne,(0,u.Z)({},n,{linkClassName:"table-of-contents__link toc-highlight",linkActiveClassName:"table-of-contents__link--active"})))}function be(){const{toc:e,frontMatter:t}=i();return a.createElement(ve,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:L.k.docs.docTocDesktop})}var he=n(1999),pe=n(35318),fe=n(95256);function Ee(e){let{children:t}=e;return a.createElement(pe.Zo,{components:fe.Z},t)}function ge(e){let{children:t}=e;const n=function(){const{metadata:e,frontMatter:t,contentTitle:n}=i();return t.hide_title||void 0!==n?null:e.title}();return a.createElement("div",{className:(0,d.Z)(L.k.docs.docMarkdown,"markdown")},n&&a.createElement("header",null,a.createElement(he.Z,{as:"h1"},n)),a.createElement(Ee,null,t))}var Le=n(76100),Ne=n(8862),_e=n(98948);function ke(e){return a.createElement("svg",(0,u.Z)({viewBox:"0 0 24 24"},e),a.createElement("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"}))}var Ze={breadcrumbsContainer:"breadcrumbsContainer_T5ub",breadcrumbHomeIcon:"breadcrumbHomeIcon_GlTw"};function Ce(e){let{children:t,href:n,isLast:l}=e;const r="breadcrumbs__link";return l?a.createElement("span",{className:r,itemProp:"name"},t):n?a.createElement(b.Z,{className:r,href:n,itemProp:"item"},a.createElement("span",{itemProp:"name"},t)):a.createElement("span",{className:r},t)}function xe(e){let{children:t,active:n,index:l,addMicrodata:r}=e;return a.createElement("li",(0,u.Z)({},r&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},{className:(0,d.Z)("breadcrumbs__item",{"breadcrumbs__item--active":n})}),t,a.createElement("meta",{itemProp:"position",content:String(l+1)}))}function Te(){const e=(0,_e.Z)("/");return a.createElement("li",{className:"breadcrumbs__item"},a.createElement(b.Z,{"aria-label":(0,v.I)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:(0,d.Z)("breadcrumbs__link",Ze.breadcrumbsItemLink),href:e},a.createElement(ke,{className:Ze.breadcrumbHomeIcon})))}function He(){const e=(0,Le.s1)(),t=(0,Ne.Ns)();return e?a.createElement("nav",{className:(0,d.Z)(L.k.docs.docBreadcrumbs,Ze.breadcrumbsContainer),"aria-label":(0,v.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"})},a.createElement("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList"},t&&a.createElement(Te,null),e.map(((t,n)=>{const l=n===e.length-1;return a.createElement(xe,{key:n,active:l,index:n,addMicrodata:!!t.href},a.createElement(Ce,{href:t.href,isLast:l},t.label))})))):null}var we="docItemContainer_tjFy",ye="docItemCol_Qr34";function Ue(e){let{children:t}=e;const n=function(){const{frontMatter:e,toc:t}=i(),n=(0,m.i)(),l=e.hide_table_of_contents,r=!l&&t.length>0;return{hidden:l,mobile:r?a.createElement(me,null):void 0,desktop:!r||"desktop"!==n&&"ssr"!==n?void 0:a.createElement(be,null)}}();return a.createElement("div",{className:"row"},a.createElement("div",{className:(0,d.Z)("col",!n.hidden&&ye)},a.createElement(T,null),a.createElement("div",{className:we},a.createElement("article",null,a.createElement(He,null),a.createElement(H,null),n.mobile,a.createElement(ge,null,t),a.createElement(G,null)),a.createElement(f,null))),n.desktop&&a.createElement("div",{className:"col col--3"},n.desktop))}function Ae(e){const t=`docs-doc-id-${e.content.metadata.unversionedId}`,n=e.content;return a.createElement(o,{content:e.content},a.createElement(l.FG,{className:t},a.createElement(c,null),a.createElement(Ue,null,a.createElement(n,null))))}},25611:function(e,t,n){n.d(t,{E:function(){return o},q:function(){return s}});var a=n(27378),l=n(41763);const r=a.createContext(null);function s(e){let{children:t,version:n}=e;return a.createElement(r.Provider,{value:n},t)}function o(){const e=(0,a.useContext)(r);if(null===e)throw new l.i6("DocsVersionProvider");return e}}}]); \ No newline at end of file diff --git a/assets/js/1be78505.3b63d0a6.js b/assets/js/1be78505.3b63d0a6.js new file mode 100644 index 000000000..3ce33b601 --- /dev/null +++ b/assets/js/1be78505.3b63d0a6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[514,893],{65553:function(e,t,n){n.r(t),n.d(t,{default:function(){return Ie}});var a=n(27378),l=n(38944),r=n(98831),o=n(75484),c=n(13149),i=n(76100),s=n(25611),d=n(52095),m=n(38703),u=n(99213),b=n(83457),p=n(24993);var h="backToTopButton_iEvu",E="backToTopButtonShow_DO8w";function f(){const{shown:e,scrollToTop:t}=function(e){let{threshold:t}=e;const[n,l]=(0,a.useState)(!1),r=(0,a.useRef)(!1),{startScroll:o,cancelScroll:c}=(0,b.Ct)();return(0,b.RF)(((e,n)=>{let{scrollY:a}=e;const o=null==n?void 0:n.scrollY;o&&(r.current?r.current=!1:a>=o?(c(),l(!1)):a{e.location.hash&&(r.current=!0,l(!1))})),{shown:n,scrollToTop:()=>o(0)}}({threshold:300});return a.createElement("button",{"aria-label":(0,u.I)({id:"theme.BackToTopButton.buttonAriaLabel",message:"Scroll back to top",description:"The ARIA label for the back to top button"}),className:(0,l.Z)("clean-btn",o.k.common.backToTopButton,h,e&&E),type:"button",onClick:t})}var v=n(3620),g=n(58357),k=n(20624),_=n(8585),C=n(25773);function I(e){return a.createElement("svg",(0,C.Z)({width:"20",height:"20","aria-hidden":"true"},e),a.createElement("g",{fill:"#7a7a7a"},a.createElement("path",{d:"M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0"}),a.createElement("path",{d:"M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0"})))}var N="collapseSidebarButton_oTwn",S="collapseSidebarButtonIcon_pMEX";function Z(e){let{onClick:t}=e;return a.createElement("button",{type:"button",title:(0,u.I)({id:"theme.docs.sidebar.collapseButtonTitle",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),"aria-label":(0,u.I)({id:"theme.docs.sidebar.collapseButtonAriaLabel",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),className:(0,l.Z)("button button--secondary button--outline",N),onClick:t},a.createElement(I,{className:S}))}var x=n(10),T=n(41763);const y=Symbol("EmptyContext"),w=a.createContext(y);function L(e){let{children:t}=e;const[n,l]=(0,a.useState)(null),r=(0,a.useMemo)((()=>({expandedItem:n,setExpandedItem:l})),[n]);return a.createElement(w.Provider,{value:r},t)}var A=n(80376),M=n(8862),B=n(81884),F=n(76457);function P(e){let{categoryLabel:t,onClick:n}=e;return a.createElement("button",{"aria-label":(0,u.I)({id:"theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel",message:"Toggle the collapsible sidebar category '{label}'",description:"The ARIA label to toggle the collapsible sidebar category"},{label:t}),type:"button",className:"clean-btn menu__caret",onClick:n})}function H(e){let{item:t,onItemClick:n,activePath:r,level:c,index:s,...d}=e;const{items:m,label:u,collapsible:b,className:p,href:h}=t,{docs:{sidebar:{autoCollapseCategories:E}}}=(0,k.L)(),f=function(e){const t=(0,F.Z)();return(0,a.useMemo)((()=>e.href?e.href:!t&&e.collapsible?(0,i.Wl)(e):void 0),[e,t])}(t),v=(0,i._F)(t,r),g=(0,M.Mg)(h,r),{collapsed:_,setCollapsed:I}=(0,A.u)({initialState:()=>!!b&&(!v&&t.collapsed)}),{expandedItem:N,setExpandedItem:S}=function(){const e=(0,a.useContext)(w);if(e===y)throw new T.i6("DocSidebarItemsExpandedStateProvider");return e}(),Z=function(e){void 0===e&&(e=!_),S(e?null:s),I(e)};return function(e){let{isActive:t,collapsed:n,updateCollapsed:l}=e;const r=(0,T.D9)(t);(0,a.useEffect)((()=>{t&&!r&&n&&l(!1)}),[t,r,n,l])}({isActive:v,collapsed:_,updateCollapsed:Z}),(0,a.useEffect)((()=>{b&&null!=N&&N!==s&&E&&I(!0)}),[b,N,s,I,E]),a.createElement("li",{className:(0,l.Z)(o.k.docs.docSidebarItemCategory,o.k.docs.docSidebarItemCategoryLevel(c),"menu__list-item",{"menu__list-item--collapsed":_},p)},a.createElement("div",{className:(0,l.Z)("menu__list-item-collapsible",{"menu__list-item-collapsible--active":g})},a.createElement(B.Z,(0,C.Z)({className:(0,l.Z)("menu__link",{"menu__link--sublist":b,"menu__link--sublist-caret":!h&&b,"menu__link--active":v}),onClick:b?e=>{null==n||n(t),h?Z(!1):(e.preventDefault(),Z())}:()=>{null==n||n(t)},"aria-current":g?"page":void 0,"aria-expanded":b?!_:void 0,href:b?f??"#":f},d),u),h&&b&&a.createElement(P,{categoryLabel:u,onClick:e=>{e.preventDefault(),Z()}})),a.createElement(A.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:_},a.createElement(U,{items:m,tabIndex:_?-1:0,onItemClick:n,activePath:r,level:c+1})))}var R=n(45626),D=n(6125),W="menuExternalLink_BiEj";function Y(e){let{item:t,onItemClick:n,activePath:r,level:c,index:s,...d}=e;const{href:m,label:u,className:b,autoAddBaseUrl:p}=t,h=(0,i._F)(t,r),E=(0,R.Z)(m);return a.createElement("li",{className:(0,l.Z)(o.k.docs.docSidebarItemLink,o.k.docs.docSidebarItemLinkLevel(c),"menu__list-item",b),key:u},a.createElement(B.Z,(0,C.Z)({className:(0,l.Z)("menu__link",!E&&W,{"menu__link--active":h}),autoAddBaseUrl:p,"aria-current":h?"page":void 0,to:m},E&&{onClick:n?()=>n(t):void 0},d),u,!E&&a.createElement(D.Z,null)))}var z="menuHtmlItem_OniL";function V(e){let{item:t,level:n,index:r}=e;const{value:c,defaultStyle:i,className:s}=t;return a.createElement("li",{className:(0,l.Z)(o.k.docs.docSidebarItemLink,o.k.docs.docSidebarItemLinkLevel(n),i&&[z,"menu__list-item"],s),key:r,dangerouslySetInnerHTML:{__html:c}})}function j(e){let{item:t,...n}=e;switch(t.type){case"category":return a.createElement(H,(0,C.Z)({item:t},n));case"html":return a.createElement(V,(0,C.Z)({item:t},n));default:return a.createElement(Y,(0,C.Z)({item:t},n))}}function O(e){let{items:t,...n}=e;return a.createElement(L,null,t.map(((e,t)=>a.createElement(j,(0,C.Z)({key:t,item:e,index:t},n)))))}var U=(0,a.memo)(O),G="menu_jmj1",K="menuWithAnnouncementBar_YufC";function q(e){let{path:t,sidebar:n,className:r}=e;const c=function(){const{isActive:e}=(0,x.nT)(),[t,n]=(0,a.useState)(e);return(0,b.RF)((t=>{let{scrollY:a}=t;e&&n(0===a)}),[e]),e&&t}();return a.createElement("nav",{className:(0,l.Z)("menu thin-scrollbar",G,c&&K,r)},a.createElement("ul",{className:(0,l.Z)(o.k.docs.docSidebarMenu,"menu__list")},a.createElement(U,{items:n,activePath:t,level:1})))}var J="sidebar_CUen",Q="sidebarWithHideableNavbar_w4KB",X="sidebarHidden_k6VE",$="sidebarLogo_CYvI";function ee(e){let{path:t,sidebar:n,onCollapse:r,isHidden:o}=e;const{navbar:{hideOnScroll:c},docs:{sidebar:{hideable:i}}}=(0,k.L)();return a.createElement("div",{className:(0,l.Z)(J,c&&Q,o&&X)},c&&a.createElement(_.Z,{tabIndex:-1,className:$}),a.createElement(q,{path:t,sidebar:n}),i&&a.createElement(Z,{onClick:r}))}var te=a.memo(ee),ne=n(63471),ae=n(52335);const le=e=>{let{sidebar:t,path:n}=e;const r=(0,ae.e)();return a.createElement("ul",{className:(0,l.Z)(o.k.docs.docSidebarMenu,"menu__list")},a.createElement(U,{items:t,activePath:n,onItemClick:e=>{"category"===e.type&&e.href&&r.toggle(),"link"===e.type&&r.toggle()},level:1}))};function re(e){return a.createElement(ne.Zo,{component:le,props:e})}var oe=a.memo(re);function ce(e){const t=(0,g.i)(),n="desktop"===t||"ssr"===t,l="mobile"===t;return a.createElement(a.Fragment,null,n&&a.createElement(te,e),l&&a.createElement(oe,e))}var ie="expandButton_YOoA",se="expandButtonIcon_GZLG";function de(e){let{toggleSidebar:t}=e;return a.createElement("div",{className:ie,title:(0,u.I)({id:"theme.docs.sidebar.expandButtonTitle",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),"aria-label":(0,u.I)({id:"theme.docs.sidebar.expandButtonAriaLabel",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),tabIndex:0,role:"button",onKeyDown:t,onClick:t},a.createElement(I,{className:se}))}var me="docSidebarContainer_y0RQ",ue="docSidebarContainerHidden_uArb";function be(e){let{children:t}=e;const n=(0,d.V)();return a.createElement(a.Fragment,{key:(null==n?void 0:n.name)??"noSidebar"},t)}function pe(e){let{sidebar:t,hiddenSidebarContainer:n,setHiddenSidebarContainer:r}=e;const{pathname:c}=(0,v.TH)(),[i,s]=(0,a.useState)(!1),d=(0,a.useCallback)((()=>{i&&s(!1),r((e=>!e))}),[r,i]);return a.createElement("aside",{className:(0,l.Z)(o.k.docs.docSidebarContainer,me,n&&ue),onTransitionEnd:e=>{e.currentTarget.classList.contains(me)&&n&&s(!0)}},a.createElement(be,null,a.createElement(ce,{sidebar:t,path:c,onCollapse:d,isHidden:i})),i&&a.createElement(de,{toggleSidebar:d}))}var he={docMainContainer:"docMainContainer_sTIZ",docMainContainerEnhanced:"docMainContainerEnhanced_iSjt",docItemWrapperEnhanced:"docItemWrapperEnhanced_PxMR"};function Ee(e){let{hiddenSidebarContainer:t,children:n}=e;const r=(0,d.V)();return a.createElement("main",{className:(0,l.Z)(he.docMainContainer,(t||!r)&&he.docMainContainerEnhanced)},a.createElement("div",{className:(0,l.Z)("container padding-top--md padding-bottom--lg",he.docItemWrapper,t&&he.docItemWrapperEnhanced)},n))}var fe="docPage_KLoz",ve="docsWrapper_ct1J";function ge(e){let{children:t}=e;const n=(0,d.V)(),[l,r]=(0,a.useState)(!1);return a.createElement(m.Z,{wrapperClassName:ve},a.createElement(f,null),a.createElement("div",{className:fe},n&&a.createElement(pe,{sidebar:n.items,hiddenSidebarContainer:l,setHiddenSidebarContainer:r}),a.createElement(Ee,{hiddenSidebarContainer:l},t)))}var ke=n(53893),_e=n(60505);function Ce(e){const{versionMetadata:t}=e;return a.createElement(a.Fragment,null,a.createElement(_e.Z,{version:t.version,tag:(0,c.os)(t.pluginId,t.version)}),a.createElement(r.d,null,t.noIndex&&a.createElement("meta",{name:"robots",content:"noindex, nofollow"})))}function Ie(e){const{versionMetadata:t}=e,n=(0,i.hI)(e);if(!n)return a.createElement(ke.default,null);const{docElement:c,sidebarName:m,sidebarItems:u}=n;return a.createElement(a.Fragment,null,a.createElement(Ce,e),a.createElement(r.FG,{className:(0,l.Z)(o.k.wrapper.docsPages,o.k.page.docsDocPage,e.versionMetadata.className)},a.createElement(s.q,{version:t},a.createElement(d.b,{name:m,items:u},a.createElement(ge,null,c)))))}},53893:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}});var a=n(27378),l=n(99213),r=n(98831),o=n(38703);function c(){return a.createElement(a.Fragment,null,a.createElement(r.d,{title:(0,l.I)({id:"theme.NotFound.title",message:"Page Not Found"})}),a.createElement(o.Z,null,a.createElement("main",{className:"container margin-vert--xl"},a.createElement("div",{className:"row"},a.createElement("div",{className:"col col--6 col--offset-3"},a.createElement("h1",{className:"hero__title"},a.createElement(l.Z,{id:"theme.NotFound.title",description:"The title of the 404 page"},"Page Not Found")),a.createElement("p",null,a.createElement(l.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page"},"We could not find what you were looking for.")),a.createElement("p",null,a.createElement(l.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page"},"Please contact the owner of the site that linked you to the original URL and let them know their link is broken.")))))))}},25611:function(e,t,n){n.d(t,{E:function(){return c},q:function(){return o}});var a=n(27378),l=n(41763);const r=a.createContext(null);function o(e){let{children:t,version:n}=e;return a.createElement(r.Provider,{value:n},t)}function c(){const e=(0,a.useContext)(r);if(null===e)throw new l.i6("DocsVersionProvider");return e}}}]); \ No newline at end of file diff --git a/assets/js/1f7065eb.5d950a7d.js b/assets/js/1f7065eb.5d950a7d.js new file mode 100644 index 000000000..3eb2d86a2 --- /dev/null +++ b/assets/js/1f7065eb.5d950a7d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[566],{35318:function(e,t,n){n.d(t,{Zo:function(){return s},kt:function(){return u}});var a=n(27378);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var d=a.createContext({}),c=function(e){var t=a.useContext(d),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},s=function(e){var t=c(e.components);return a.createElement(d.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,d=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),m=c(n),u=r,h=m["".concat(d,".").concat(u)]||m[u]||p[u]||o;return n?a.createElement(h,i(i({ref:t},s),{},{components:n})):a.createElement(h,i({ref:t},s))}));function u(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,i=new Array(o);i[0]=m;var l={};for(var d in t)hasOwnProperty.call(t,d)&&(l[d]=t[d]);l.originalType=e,l.mdxType="string"==typeof e?e:r,i[1]=l;for(var c=2;cchanged",id:"changed",level:3},{value:"changedMap",id:"changedmap",level:3},{value:"error",id:"error",level:3},{value:"formRef",id:"formref",level:3},{value:"model",id:"model",level:3},{value:"name",id:"name",level:3},{value:"onChange",id:"onchange",level:3},{value:"onSubmit",id:"onsubmit",level:3},{value:"randomId",id:"randomid",level:3},{value:"schema",id:"schema",level:3},{value:"state",id:"state",level:3},{value:"submitted",id:"submitted",level:3},{value:"submitting",id:"submitting",level:3},{value:"validating",id:"validating",level:3}],s={toc:c};function p(e){let{components:t,...n}=e;return(0,r.kt)("wrapper",(0,a.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("p",null,"Some components might need to know a current form state, which is passed as ",(0,r.kt)("a",{parentName:"p",href:"https://reactjs.org/docs/context.html"},"React context"),".\nProperties stored in the context relates either to the form values or the form instance itself.\nThat means, besides current form state, you can access form methods or encounter some metadata, e.g. about the used schema.\nSome of them were designed for internal use, but you can still take advantage of them."),(0,r.kt)("h2",{id:"accessing-context-data"},"Accessing context data"),(0,r.kt)("p",null,"A direct way of accessing the context data is to use the ",(0,r.kt)("a",{parentName:"p",href:"/docs/api-helpers/#useform"},(0,r.kt)("inlineCode",{parentName:"a"},"useForm"))," hook:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { useForm } from 'uniforms';\n\nfunction Example() {\n const context = useForm();\n}\n")),(0,r.kt)("p",null,"For convenience, it's also accessible through the ",(0,r.kt)("a",{parentName:"p",href:"/docs/api-helpers/#usefield"},(0,r.kt)("inlineCode",{parentName:"a"},"useField"))," hook:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { useField } from 'uniforms';\n\nfunction Example(rawProps) {\n const [props, context] = useField(rawProps.name, rawProps);\n}\n")),(0,r.kt)("h2",{id:"available-context-data"},"Available context data"),(0,r.kt)("h3",{id:"changed"},(0,r.kt)("inlineCode",{parentName:"h3"},"changed")),(0,r.kt)("p",null,"Indicates whether there was a change on form."),(0,r.kt)("h3",{id:"changedmap"},(0,r.kt)("inlineCode",{parentName:"h3"},"changedMap")),(0,r.kt)("p",null,"A map of changed fields. Rather internal one, used for checking if ",(0,r.kt)("em",{parentName:"p"},"other")," fields has changed."),(0,r.kt)("h3",{id:"error"},(0,r.kt)("inlineCode",{parentName:"h3"},"error")),(0,r.kt)("p",null,"An object with a ",(0,r.kt)("inlineCode",{parentName:"p"},"details")," field, which is an array of any validation errors."),(0,r.kt)("h3",{id:"formref"},(0,r.kt)("inlineCode",{parentName:"h3"},"formRef")),(0,r.kt)("p",null,"Contains reference to the form component that gives access to ",(0,r.kt)("a",{parentName:"p",href:"/docs/api-forms#methods"},"the form methods"),"."),(0,r.kt)("h3",{id:"model"},(0,r.kt)("inlineCode",{parentName:"h3"},"model")),(0,r.kt)("p",null,"An object with current form fields values structured ",(0,r.kt)("inlineCode",{parentName:"p"},"{field: value}"),"."),(0,r.kt)("h3",{id:"name"},(0,r.kt)("inlineCode",{parentName:"h3"},"name")),(0,r.kt)("p",null,"It is an array of the parent fields names:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"\n // name = []\n \n // name = ['x']\n // name = ['x', 'y', 'z']\n \n\n")),(0,r.kt)("p",null,"For example if we define a ",(0,r.kt)("inlineCode",{parentName:"p"},"CompositeField"),":"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},'const Composite = () => (\n
\n \n \n
\n);\n')),(0,r.kt)("p",null,"And use it like that:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},'\n \n \n\n')),(0,r.kt)("p",null,"The ",(0,r.kt)("inlineCode",{parentName:"p"},"name")," array of the nested ",(0,r.kt)("inlineCode",{parentName:"p"},"AutoFields")," will store a ",(0,r.kt)("inlineCode",{parentName:"p"},"personA")," value."),(0,r.kt)("h3",{id:"onchange"},(0,r.kt)("inlineCode",{parentName:"h3"},"onChange")),(0,r.kt)("p",null,"You can directly access to the ",(0,r.kt)("inlineCode",{parentName:"p"},"onChange")," method. E.g. ",(0,r.kt)("inlineCode",{parentName:"p"},"onChange(field, value)"),"."),(0,r.kt)("h3",{id:"onsubmit"},(0,r.kt)("inlineCode",{parentName:"h3"},"onSubmit")),(0,r.kt)("p",null,"Access to ",(0,r.kt)("inlineCode",{parentName:"p"},"onSubmit")," method."),(0,r.kt)("h3",{id:"randomid"},(0,r.kt)("inlineCode",{parentName:"h3"},"randomId")),(0,r.kt)("p",null,"Access to ",(0,r.kt)("inlineCode",{parentName:"p"},"randomId")," method, created using the ",(0,r.kt)("a",{parentName:"p",href:"/docs/api-helpers#randomids"},(0,r.kt)("inlineCode",{parentName:"a"},"randomIds()"))," helper."),(0,r.kt)("h3",{id:"schema"},(0,r.kt)("inlineCode",{parentName:"h3"},"schema")),(0,r.kt)("p",null,"A bridge class instance with ",(0,r.kt)("inlineCode",{parentName:"p"},"schema")," and ",(0,r.kt)("inlineCode",{parentName:"p"},"validator")," properties."),(0,r.kt)("p",null,"The ",(0,r.kt)("inlineCode",{parentName:"p"},"schema")," is simply your schema object and ",(0,r.kt)("inlineCode",{parentName:"p"},"validator")," is your validating function."),(0,r.kt)("h3",{id:"state"},(0,r.kt)("inlineCode",{parentName:"h3"},"state")),(0,r.kt)("p",null,"The ",(0,r.kt)("inlineCode",{parentName:"p"},"state")," is an object representing your current form status."),(0,r.kt)("p",null,"The state properties are:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"disabled")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Indicates whether the form is disabled.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"readOnly")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Indicates whether the form is read-only.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"showInlineError")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Indicates whether the inline errors should be shown.")))),(0,r.kt)("h3",{id:"submitted"},(0,r.kt)("inlineCode",{parentName:"h3"},"submitted")),(0,r.kt)("p",null,"Indicates whether the form was submitted."),(0,r.kt)("h3",{id:"submitting"},(0,r.kt)("inlineCode",{parentName:"h3"},"submitting")),(0,r.kt)("p",null,"Indicates whether the form is in the ",(0,r.kt)("inlineCode",{parentName:"p"},"submitting")," state. Helpful when handling asynchronous submission."),(0,r.kt)("h3",{id:"validating"},(0,r.kt)("inlineCode",{parentName:"h3"},"validating")),(0,r.kt)("p",null,"Indicates whether the form is in the ",(0,r.kt)("inlineCode",{parentName:"p"},"validating")," state. Helpful when handling asynchronous validation."))}p.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/290.f467e503.js b/assets/js/290.f467e503.js new file mode 100644 index 000000000..4eb98d13f --- /dev/null +++ b/assets/js/290.f467e503.js @@ -0,0 +1 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[290],{35318:function(e,t,n){"use strict";n.d(t,{Zo:function(){return u},kt:function(){return p}});var o=n(27378);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var i=o.createContext({}),s=function(e){var t=o.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=s(e.components);return o.createElement(i.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return o.createElement(o.Fragment,{},t)}},d=o.forwardRef((function(e,t){var n=e.components,r=e.mdxType,a=e.originalType,i=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),d=s(n),p=r,f=d["".concat(i,".").concat(p)]||d[p]||m[p]||a;return n?o.createElement(f,l(l({ref:t},u),{},{components:n})):o.createElement(f,l({ref:t},u))}));function p(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var a=n.length,l=new Array(a);l[0]=d;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c.mdxType="string"==typeof e?e:r,l[1]=c;for(var s=2;s["'])(?.*?)\1/,h=/\{(?<range>[\d,-]+)\}/,g={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}};function y(e,t){const n=e.map((e=>{const{start:n,end:o}=g[e];return`(?:${n}\\s*(${t.flatMap((e=>{var t,n;return[e.line,null==(t=e.block)?void 0:t.start,null==(n=e.block)?void 0:n.end].filter(Boolean)})).join("|")})\\s*${o})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function v(e,t){let n=e.replace(/\n$/,"");const{language:o,magicComments:r,metastring:a}=t;if(a&&h.test(a)){const e=a.match(h).groups.range;if(0===r.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${a}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const t=r[0].className,o=p()(e).filter((e=>e>0)).map((e=>[e-1,[t]]));return{lineClassNames:Object.fromEntries(o),code:n}}if(void 0===o)return{lineClassNames:{},code:n};const l=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return y(["js","jsBlock"],t);case"jsx":case"tsx":return y(["js","jsBlock","jsx"],t);case"html":return y(["js","jsBlock","html"],t);case"python":case"py":case"bash":return y(["bash"],t);case"markdown":case"md":return y(["html","jsx","bash"],t);default:return y(Object.keys(g),t)}}(o,r),c=n.split("\n"),i=Object.fromEntries(r.map((e=>[e.className,{start:0,range:""}]))),s=Object.fromEntries(r.filter((e=>e.line)).map((e=>{let{className:t,line:n}=e;return[n,t]}))),u=Object.fromEntries(r.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.start,t]}))),m=Object.fromEntries(r.filter((e=>e.block)).map((e=>{let{className:t,block:n}=e;return[n.end,t]})));for(let p=0;p<c.length;){const e=c[p].match(l);if(!e){p+=1;continue}const t=e.slice(1).find((e=>void 0!==e));s[t]?i[s[t]].range+=`${p},`:u[t]?i[u[t]].start=p:m[t]&&(i[m[t]].range+=`${i[m[t]].start}-${p-1},`),c.splice(p,1)}n=c.join("\n");const d={};return Object.entries(i).forEach((e=>{let[t,{range:n}]=e;p()(n).forEach((e=>{d[e]??=[],d[e].push(t)}))})),{lineClassNames:d,code:n}}var b="codeBlockContainer_mQmQ";function E(e){let{as:t,...n}=e;const a=function(e){const t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach((e=>{let[o,r]=e;const a=t[o];a&&"string"==typeof r&&(n[a]=r)})),n}(u());return r.createElement(t,(0,o.Z)({},n,{style:a,className:(0,c.Z)(n.className,b,m.k.common.codeBlock)}))}var k={codeBlockContent:"codeBlockContent_D5yF",codeBlockTitle:"codeBlockTitle_x_ju",codeBlock:"codeBlock_RMoD",codeBlockStandalone:"codeBlockStandalone_wQog",codeBlockLines:"codeBlockLines_AclH",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_O625",buttonGroup:"buttonGroup_aaMX"};function N(e){let{children:t,className:n}=e;return r.createElement(E,{as:"pre",tabIndex:0,className:(0,c.Z)(k.codeBlockStandalone,"thin-scrollbar",n)},r.createElement("code",{className:k.codeBlockLines},t))}var C=n(41763);const w={attributes:!0,characterData:!0,childList:!0,subtree:!0};function B(e,t){const[n,o]=(0,r.useState)(),a=(0,r.useCallback)((()=>{var t;o(null==(t=e.current)?void 0:t.closest("[role=tabpanel][hidden]"))}),[e,o]);(0,r.useEffect)((()=>{a()}),[a]),function(e,t,n){void 0===n&&(n=w);const o=(0,C.zX)(t),a=(0,C.Ql)(n);(0,r.useEffect)((()=>{const t=new MutationObserver(o);return e&&t.observe(e,a),()=>t.disconnect()}),[e,o,a])}(n,(e=>{e.forEach((e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),a())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}var T={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},j={Prism:n(52349).Z,theme:T};function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(){return Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Z.apply(this,arguments)}var L=/\r\n|\r|\n/,x=function(e){0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},S=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},_=function(e,t){var n=e.plain,o=Object.create(null),r=e.styles.reduce((function(e,n){var o=n.languages,r=n.style;return o&&!o.includes(t)||n.types.forEach((function(t){var n=Z({},e[t],r);e[t]=n})),e}),o);return r.root=n,r.plain=Z({},n,{backgroundColor:null}),r};function z(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&-1===t.indexOf(o)&&(n[o]=e[o]);return n}var P=function(e){function t(){for(var t=this,n=[],o=arguments.length;o--;)n[o]=arguments[o];e.apply(this,n),O(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?_(e.theme,e.language):void 0;return t.themeDict=n})),O(this,"getLineProps",(function(e){var n=e.key,o=e.className,r=e.style,a=Z({},z(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),l=t.getThemeDict(t.props);return void 0!==l&&(a.style=l.plain),void 0!==r&&(a.style=void 0!==a.style?Z({},a.style,r):r),void 0!==n&&(a.key=n),o&&(a.className+=" "+o),a})),O(this,"getStyleForToken",(function(e){var n=e.types,o=e.empty,r=n.length,a=t.getThemeDict(t.props);if(void 0!==a){if(1===r&&"plain"===n[0])return o?{display:"inline-block"}:void 0;if(1===r&&!o)return a[n[0]];var l=o?{display:"inline-block"}:{},c=n.map((function(e){return a[e]}));return Object.assign.apply(Object,[l].concat(c))}})),O(this,"getTokenProps",(function(e){var n=e.key,o=e.className,r=e.style,a=e.token,l=Z({},z(e,["key","className","style","token"]),{className:"token "+a.types.join(" "),children:a.content,style:t.getStyleForToken(a),key:void 0});return void 0!==r&&(l.style=void 0!==l.style?Z({},l.style,r):r),void 0!==n&&(l.key=n),o&&(l.className+=" "+o),l})),O(this,"tokenize",(function(e,t,n,o){var r={code:t,grammar:n,language:o,tokens:[]};e.hooks.run("before-tokenize",r);var a=r.tokens=e.tokenize(r.code,r.grammar,r.language);return e.hooks.run("after-tokenize",r),a}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,o=e.code,r=e.children,a=this.getThemeDict(this.props),l=t.languages[n];return r({tokens:function(e){for(var t=[[]],n=[e],o=[0],r=[e.length],a=0,l=0,c=[],i=[c];l>-1;){for(;(a=o[l]++)<r[l];){var s=void 0,u=t[l],m=n[l][a];if("string"==typeof m?(u=l>0?u:["plain"],s=m):(u=S(u,m.type),m.alias&&(u=S(u,m.alias)),s=m.content),"string"==typeof s){var d=s.split(L),p=d.length;c.push({types:u,content:d[0]});for(var f=1;f<p;f++)x(c),i.push(c=[]),c.push({types:u,content:d[f]})}else l++,t.push(u),n.push(s),o.push(0),r.push(s.length)}l--,t.pop(),n.pop(),o.pop(),r.pop()}return x(c),i}(void 0!==l?this.tokenize(t,o,l,n):[o]),className:"prism-code language-"+n,style:void 0!==a?a.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(r.Component),A=P,I="codeLine_FAqz",D="codeLineNumber_BE9Z",M="codeLineContent_EF2y";function H(e){let{line:t,classNames:n,showLineNumbers:a,getLineProps:l,getTokenProps:i}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");const s=l({line:t,className:(0,c.Z)(n,a&&I)}),u=t.map(((e,t)=>r.createElement("span",(0,o.Z)({key:t},i({token:e,key:t})))));return r.createElement("span",s,a?r.createElement(r.Fragment,null,r.createElement("span",{className:D}),r.createElement("span",{className:M},u)):r.createElement(r.Fragment,null,u,r.createElement("br",null)))}var R=n(99213),V={copyButtonCopied:"copyButtonCopied_TYdd",copyButtonIcons:"copyButtonIcons_z5j7",copyButtonIcon:"copyButtonIcon_FoOz",copyButtonSuccessIcon:"copyButtonSuccessIcon_L0B6"};function $(e){let{code:t,className:n}=e;const[o,a]=(0,r.useState)(!1),l=(0,r.useRef)(void 0),i=(0,r.useCallback)((()=>{!function(e,t){let{target:n=document.body}=void 0===t?{}:t;const o=document.createElement("textarea"),r=document.activeElement;o.value=e,o.setAttribute("readonly",""),o.style.contain="strict",o.style.position="absolute",o.style.left="-9999px",o.style.fontSize="12pt";const a=document.getSelection();let l=!1;a.rangeCount>0&&(l=a.getRangeAt(0)),n.append(o),o.select(),o.selectionStart=0,o.selectionEnd=e.length;let c=!1;try{c=document.execCommand("copy")}catch{}o.remove(),l&&(a.removeAllRanges(),a.addRange(l)),r&&r.focus()}(t),a(!0),l.current=window.setTimeout((()=>{a(!1)}),1e3)}),[t]);return(0,r.useEffect)((()=>()=>window.clearTimeout(l.current)),[]),r.createElement("button",{type:"button","aria-label":o?(0,R.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,R.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,R.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,c.Z)("clean-btn",n,V.copyButton,o&&V.copyButtonCopied),onClick:i},r.createElement("span",{className:V.copyButtonIcons,"aria-hidden":"true"},r.createElement("svg",{className:V.copyButtonIcon,viewBox:"0 0 24 24"},r.createElement("path",{d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})),r.createElement("svg",{className:V.copyButtonSuccessIcon,viewBox:"0 0 24 24"},r.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))))}var F="wordWrapButtonIcon_HV9T",W="wordWrapButtonEnabled_XzR1";function Q(e){let{className:t,onClick:n,isEnabled:o}=e;const a=(0,R.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return r.createElement("button",{type:"button",onClick:n,className:(0,c.Z)("clean-btn",t,o&&W),"aria-label":a,title:a},r.createElement("svg",{className:F,viewBox:"0 0 24 24","aria-hidden":"true"},r.createElement("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})))}function q(e){let{children:t,className:n="",metastring:a,title:l,showLineNumbers:i,language:m}=e;const{prism:{defaultLanguage:d,magicComments:p}}=(0,s.L)(),h=m??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return null==t?void 0:t.replace(/language-/,"")}(n)??d,g=u(),y=function(){const[e,t]=(0,r.useState)(!1),[n,o]=(0,r.useState)(!1),a=(0,r.useRef)(null),l=(0,r.useCallback)((()=>{const n=a.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[a,e]),c=(0,r.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=a.current,n=e>t||a.current.querySelector("code").hasAttribute("style");o(n)}),[a]);return B(a,c),(0,r.useEffect)((()=>{c()}),[e,c]),(0,r.useEffect)((()=>(window.addEventListener("resize",c,{passive:!0}),()=>{window.removeEventListener("resize",c)})),[c]),{codeBlockRef:a,isEnabled:e,isCodeScrollable:n,toggle:l}}(),b=function(e){var t;return(null==e||null==(t=e.match(f))?void 0:t.groups.title)??""}(a)||l,{lineClassNames:N,code:C}=v(t,{metastring:a,language:h,magicComments:p}),w=i??function(e){return Boolean(null==e?void 0:e.includes("showLineNumbers"))}(a);return r.createElement(E,{as:"div",className:(0,c.Z)(n,h&&!n.includes(`language-${h}`)&&`language-${h}`)},b&&r.createElement("div",{className:k.codeBlockTitle},b),r.createElement("div",{className:k.codeBlockContent},r.createElement(A,(0,o.Z)({},j,{theme:g,code:C,language:h??"text"}),(e=>{let{className:t,tokens:n,getLineProps:o,getTokenProps:a}=e;return r.createElement("pre",{tabIndex:0,ref:y.codeBlockRef,className:(0,c.Z)(t,k.codeBlock,"thin-scrollbar")},r.createElement("code",{className:(0,c.Z)(k.codeBlockLines,w&&k.codeBlockLinesWithNumbering)},n.map(((e,t)=>r.createElement(H,{key:t,line:e,getLineProps:o,getTokenProps:a,classNames:N[t],showLineNumbers:w})))))})),r.createElement("div",{className:k.buttonGroup},(y.isEnabled||y.isCodeScrollable)&&r.createElement(Q,{className:k.codeButton,onClick:()=>y.toggle(),isEnabled:y.isEnabled}),r.createElement($,{className:k.codeButton,code:C}))))}function G(e){let{children:t,...n}=e;const a=(0,l.Z)(),c=function(e){return r.Children.toArray(e).some((e=>(0,r.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),i="string"==typeof c?q:N;return r.createElement(i,(0,o.Z)({key:String(a)},n),c)}var X=n(81884);var U=n(80376),Y="details_IpIu",J="isBrowser_QD4r",K="collapsibleContent_Fd2D";function ee(e){return!!e&&("SUMMARY"===e.tagName||ee(e.parentElement))}function te(e,t){return!!e&&(e===t||te(e.parentElement,t))}function ne(e){let{summary:t,children:n,...a}=e;const i=(0,l.Z)(),s=(0,r.useRef)(null),{collapsed:u,setCollapsed:m}=(0,U.u)({initialState:!a.open}),[d,p]=(0,r.useState)(a.open);return r.createElement("details",(0,o.Z)({},a,{ref:s,open:d,"data-collapsed":u,className:(0,c.Z)(Y,i&&J,a.className),onMouseDown:e=>{ee(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;ee(t)&&te(t,s.current)&&(e.preventDefault(),u?(m(!1),p(!0)):m(!0))}}),t??r.createElement("summary",null,"Details"),r.createElement(U.z,{lazy:!1,collapsed:u,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{m(e),p(!e)}},r.createElement("div",{className:K},n)))}var oe="details_jERq";function re(e){let{...t}=e;return r.createElement(ne,(0,o.Z)({},t,{className:(0,c.Z)("alert alert--info",oe,t.className)}))}var ae=n(1999);function le(e){return r.createElement(ae.Z,e)}var ce="containsTaskList_QWGu";var ie="img_SS3x";var se="admonition_uH4V",ue="admonitionHeading_P5_N",me="admonitionIcon_MF44",de="admonitionContent_yySL";const pe={note:{infimaClassName:"secondary",iconComponent:function(){return r.createElement("svg",{viewBox:"0 0 14 16"},r.createElement("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))},label:r.createElement(R.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)"},"note")},tip:{infimaClassName:"success",iconComponent:function(){return r.createElement("svg",{viewBox:"0 0 12 16"},r.createElement("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"}))},label:r.createElement(R.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)"},"tip")},danger:{infimaClassName:"danger",iconComponent:function(){return r.createElement("svg",{viewBox:"0 0 12 16"},r.createElement("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"}))},label:r.createElement(R.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)"},"danger")},info:{infimaClassName:"info",iconComponent:function(){return r.createElement("svg",{viewBox:"0 0 14 16"},r.createElement("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))},label:r.createElement(R.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)"},"info")},caution:{infimaClassName:"warning",iconComponent:function(){return r.createElement("svg",{viewBox:"0 0 16 16"},r.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))},label:r.createElement(R.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)"},"caution")}},fe={secondary:"note",important:"info",success:"tip",warning:"danger"};function he(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=r.Children.toArray(e),n=t.find((e=>{var t;return r.isValidElement(e)&&"mdxAdmonitionTitle"===(null==(t=e.props)?void 0:t.mdxType)})),o=r.createElement(r.Fragment,null,t.filter((e=>e!==n)));return{mdxAdmonitionTitle:n,rest:o}}(e.children);return{...e,title:e.title??t,children:n}}var ge={head:function(e){const t=r.Children.map(e.children,(e=>r.isValidElement(e)?function(e){var t;if(null!=(t=e.props)&&t.mdxType&&e.props.originalType){const{mdxType:t,originalType:n,...o}=e.props;return r.createElement(e.props.originalType,o)}return e}(e):e));return r.createElement(a.Z,e,t)},code:function(e){const t=["a","b","big","i","span","em","strong","sup","sub","small"];return r.Children.toArray(e.children).every((e=>{var n;return"string"==typeof e&&!e.includes("\n")||(0,r.isValidElement)(e)&&t.includes(null==(n=e.props)?void 0:n.mdxType)}))?r.createElement("code",e):r.createElement(G,e)},a:function(e){return r.createElement(X.Z,e)},pre:function(e){var t;return r.createElement(G,(0,r.isValidElement)(e.children)&&"code"===(null==(t=e.children.props)?void 0:t.originalType)?e.children.props:{...e})},details:function(e){const t=r.Children.toArray(e.children),n=t.find((e=>{var t;return r.isValidElement(e)&&"summary"===(null==(t=e.props)?void 0:t.mdxType)})),a=r.createElement(r.Fragment,null,t.filter((e=>e!==n)));return r.createElement(re,(0,o.Z)({},e,{summary:n}),a)},ul:function(e){return r.createElement("ul",(0,o.Z)({},e,{className:(t=e.className,(0,c.Z)(t,(null==t?void 0:t.includes("contains-task-list"))&&ce))}));var t},img:function(e){return r.createElement("img",(0,o.Z)({loading:"lazy"},e,{className:(t=e.className,(0,c.Z)(t,ie))}));var t},h1:e=>r.createElement(le,(0,o.Z)({as:"h1"},e)),h2:e=>r.createElement(le,(0,o.Z)({as:"h2"},e)),h3:e=>r.createElement(le,(0,o.Z)({as:"h3"},e)),h4:e=>r.createElement(le,(0,o.Z)({as:"h4"},e)),h5:e=>r.createElement(le,(0,o.Z)({as:"h5"},e)),h6:e=>r.createElement(le,(0,o.Z)({as:"h6"},e)),admonition:function(e){const{children:t,type:n,title:o,icon:a}=he(e),l=function(e){const t=fe[e]??e;return pe[t]||(console.warn(`No admonition config found for admonition type "${t}". Using Info as fallback.`),pe.info)}(n),i=o??l.label,{iconComponent:s}=l,u=a??r.createElement(s,null);return r.createElement("div",{className:(0,c.Z)(m.k.common.admonition,m.k.common.admonitionType(e.type),"alert",`alert--${l.infimaClassName}`,se)},r.createElement("div",{className:ue},r.createElement("span",{className:me},u),i),r.createElement("div",{className:de},t))}}},6324:function(e,t){function n(e){let t,n=[];for(let o of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(o))n.push(parseInt(o,10));else if(t=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,o,r,a]=t;if(o&&a){o=parseInt(o),a=parseInt(a);const e=o<a?1:-1;"-"!==r&&".."!==r&&"\u2025"!==r||(a+=e);for(let t=o;t!==a;t+=e)n.push(t)}}return n}t.default=n,e.exports=n}}]); \ No newline at end of file diff --git a/assets/js/3d70cde6.9b18a802.js b/assets/js/3d70cde6.9b18a802.js new file mode 100644 index 000000000..88e6ae046 --- /dev/null +++ b/assets/js/3d70cde6.9b18a802.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[529],{35318:function(e,t,n){n.d(t,{Zo:function(){return p},kt:function(){return c}});var a=n(27378);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,a,o=function(e,t){if(null==e)return{};var n,a,o={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s=a.createContext({}),m=function(e){var t=a.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},p=function(e){var t=m(e.components);return a.createElement(s.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},d=a.forwardRef((function(e,t){var n=e.components,o=e.mdxType,r=e.originalType,s=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),d=m(n),c=o,h=d["".concat(s,".").concat(c)]||d[c]||u[c]||r;return n?a.createElement(h,i(i({ref:t},p),{},{components:n})):a.createElement(h,i({ref:t},p))}));function c(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var r=n.length,i=new Array(r);i[0]=d;var l={};for(var s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l.mdxType="string"==typeof e?e:o,i[1]=l;for(var m=2;m<r;m++)i[m]=n[m];return a.createElement.apply(null,i)}return a.createElement.apply(null,n)}d.displayName="MDXCreateElement"},20679:function(e,t,n){n.r(t),n.d(t,{assets:function(){return s},contentTitle:function(){return i},default:function(){return u},frontMatter:function(){return r},metadata:function(){return l},toc:function(){return m}});var a=n(25773),o=(n(27378),n(35318));const r={id:"faq",title:"FAQ"},i=void 0,l={unversionedId:"faq",id:"faq",title:"FAQ",description:"Can I use React v18?",source:"@site/../docs/faq.md",sourceDirName:".",slug:"/faq",permalink:"/docs/faq",draft:!1,tags:[],version:"current",frontMatter:{id:"faq",title:"FAQ"},sidebar:"docs",previous:{title:"Installation",permalink:"/docs/installation"},next:{title:"Migrating v3 to v4",permalink:"/docs/migrating-3-to-4"}},s={},m=[{value:"Can I use React v18?",id:"can-i-use-react-v18",level:3},{value:"How can I customize/style my form fields?",id:"how-can-i-customizestyle-my-form-fields",level:3},{value:"How can I create custom fields?",id:"how-can-i-create-custom-fields",level:3},{value:"How can I use a custom field in my form?",id:"how-can-i-use-a-custom-field-in-my-form",level:3},{value:"How can I pass additional props to the custom field?",id:"how-can-i-pass-additional-props-to-the-custom-field",level:3},{value:"How can I have a dynamic label? (e.g. handling i18n)",id:"how-can-i-have-a-dynamic-label-eg-handling-i18n",level:3},{value:"How can I change the way my form validates?",id:"how-can-i-change-the-way-my-form-validates",level:3},{value:"How can I reset my form state?",id:"how-can-i-reset-my-form-state",level:3},{value:"I want my form to be prefilled with data. How can I do that?",id:"i-want-my-form-to-be-prefilled-with-data-how-can-i-do-that",level:3},{value:"How can I transform my model?",id:"how-can-i-transform-my-model",level:3},{value:"How can I make my form autofocused?",id:"how-can-i-make-my-form-autofocused",level:3},{value:"How can I create a multi-step form?",id:"how-can-i-create-a-multi-step-form",level:3},{value:"How can I know a current form state?",id:"how-can-i-know-a-current-form-state",level:3},{value:"Example usage:",id:"example-usage",level:5},{value:"I want to disable a submit button until there is a difference between the current form state and my model. How can I do it?",id:"i-want-to-disable-a-submit-button-until-there-is-a-difference-between-the-current-form-state-and-my-model-how-can-i-do-it",level:3},{value:"Why am I suddenly getting type errors in my form components?",id:"why-am-i-suddenly-getting-type-errors-in-my-form-components",level:3},{value:""<code>useForm</code> must be used within a form"",id:"useform-must-be-used-within-a-form",level:3}],p={toc:m};function u(e){let{components:t,...n}=e;return(0,o.kt)("wrapper",(0,a.Z)({},p,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h3",{id:"can-i-use-react-v18"},"Can I use React v18?"),(0,o.kt)("p",null,(0,o.kt)("em",{parentName:"p"},"Yes"),", but be cautious about it."),(0,o.kt)("p",null,"Our test suite is incompatible with it (we're using Enzyme; see ",(0,o.kt)("a",{parentName:"p",href:"https://github.com/enzymejs/enzyme/issues/2429"},"enzymejs/enzyme#2429")," and ",(0,o.kt)("a",{parentName:"p",href:"https://github.com/enzymejs/enzyme/issues/2524"},"enzymejs/enzyme#2524"),"), therefore we are not certain that everything works as it should. Based on the ",(0,o.kt)("a",{parentName:"p",href:"https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html"},"official upgrade guide"),", there's nothing you should worry about. A few people (including some of our projects) are already doing that (see ",(0,o.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/issues/1109"},"#1109"),")."),(0,o.kt)("p",null,"If you'll encounter any issues, do file an issue."),(0,o.kt)("h3",{id:"how-can-i-customizestyle-my-form-fields"},"How can I customize/style my form fields?"),(0,o.kt)("p",null,"You can style your form fields simply by passing a ",(0,o.kt)("inlineCode",{parentName:"p"},"className")," property."),(0,o.kt)("h3",{id:"how-can-i-create-custom-fields"},"How can I create custom fields?"),(0,o.kt)("p",null,"You can create a custom field by wrapping your component inside the ",(0,o.kt)("a",{parentName:"p",href:"/docs/api-helpers#connectfieldcomponent-options"},(0,o.kt)("inlineCode",{parentName:"a"},"connectField")),"."),(0,o.kt)("p",null,"The ",(0,o.kt)("inlineCode",{parentName:"p"},"connectField")," will pass various props related to the form management, such as ",(0,o.kt)("inlineCode",{parentName:"p"},"onChange()")," function, current field's value, errors and so on, to your component."),(0,o.kt)("p",null,"Please visit the ",(0,o.kt)("a",{parentName:"p",href:"/docs/tutorials-creating-custom-field"},"Tutorials > Creating a custom field")," tutorial to see how to create your own fields."),(0,o.kt)("h3",{id:"how-can-i-use-a-custom-field-in-my-form"},"How can I use a custom field in my form?"),(0,o.kt)("p",null,"You can tell your schema to use your custom field by adding the ",(0,o.kt)("inlineCode",{parentName:"p"},"uniforms")," property."),(0,o.kt)("p",null,"Example in JSONSchema:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"const schema = {\n /*...*/\n firstName: {\n type: 'string',\n uniforms: MyCustomFirstNameField,\n },\n /*...*/\n};\n")),(0,o.kt)("p",null,"We say that the component used for the ",(0,o.kt)("inlineCode",{parentName:"p"},"firstName")," property will be the ",(0,o.kt)("inlineCode",{parentName:"p"},"MyCustomFirstNameField"),"."),(0,o.kt)("p",null,"You can also leave the schema untouched and pass your custom field directly to the ",(0,o.kt)("inlineCode",{parentName:"p"},"AutoField")," in a ",(0,o.kt)("inlineCode",{parentName:"p"},"component")," property instead:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},'<AutoForm schema={schema} onSubmit={onSubmit}>\n /*...*/\n <AutoField component={MyCustomFirstNameField} name="firstName" />\n /*...*/\n</AutoForm>\n')),(0,o.kt)("h3",{id:"how-can-i-pass-additional-props-to-the-custom-field"},"How can I pass additional props to the custom field?"),(0,o.kt)("p",null,"You can pass any additional props to your custom field, by converting the ",(0,o.kt)("inlineCode",{parentName:"p"},"uniforms")," property to the type of object, with the ",(0,o.kt)("inlineCode",{parentName:"p"},"component")," key. Any other keys will be treated as props."),(0,o.kt)("p",null,"E.g. in JSONSchema:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"const schema = {\n /*...*/\n firstName: {\n type: 'string',\n uniforms: {\n component: MyCustomFirstNameField,\n propA: 1,\n propB: 2,\n },\n },\n /*...*/\n};\n")),(0,o.kt)("p",null,"We say that the component used for the ",(0,o.kt)("inlineCode",{parentName:"p"},"firstName")," property will be the ",(0,o.kt)("inlineCode",{parentName:"p"},"MyCustomFirstNameField")," and it will receive 2 additonal props: ",(0,o.kt)("inlineCode",{parentName:"p"},"propA")," and ",(0,o.kt)("inlineCode",{parentName:"p"},"propB"),"."),(0,o.kt)("p",null,"You can also leave the schema untouched and pass your custom field with props directly to the ",(0,o.kt)("inlineCode",{parentName:"p"},"AutoField")," instead:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},'<AutoForm schema={schema} onSubmit={onSubmit}>\n /*...*/\n <AutoField\n component={MyCustomFirstNameField}\n name="firstName"\n propA={1}\n propB={2}\n />\n /*...*/\n</AutoForm>\n')),(0,o.kt)("h3",{id:"how-can-i-have-a-dynamic-label-eg-handling-i18n"},"How can I have a dynamic label? (e.g. handling i18n)"),(0,o.kt)("p",null,"There are few ways to handle that, depending on the level of abstraction you want to do it - schema, field or ",(0,o.kt)("inlineCode",{parentName:"p"},"AutoField")," component."),(0,o.kt)("p",null,"On the ",(0,o.kt)("strong",{parentName:"p"},"schema")," level, you can use ",(0,o.kt)("inlineCode",{parentName:"p"},"uniforms: {...}")," object property to pass extra props to the field.\nA function returning it (",(0,o.kt)("inlineCode",{parentName:"p"},"uniforms: () => ({...})"),") is also accepted. With it, dynamic labels can be fetched from any source."),(0,o.kt)("p",null,"On the ",(0,o.kt)("strong",{parentName:"p"},"field")," level, you can prepare your own component set, where you will use ",(0,o.kt)("inlineCode",{parentName:"p"},"<Translate>{label}</Translate>")," instead of ",(0,o.kt)("inlineCode",{parentName:"p"},"{label}"),"."),(0,o.kt)("p",null,"While the first one is schema-dependent and the second is theme-dependent, there's an additional option, somewhere in between. You can create a custom ",(0,o.kt)("inlineCode",{parentName:"p"},"AutoField")," component, based on a builtin one, where you provide some additional props and label might be one of them (based on other props, like name or some schema field)."),(0,o.kt)("h3",{id:"how-can-i-change-the-way-my-form-validates"},"How can I change the way my form validates?"),(0,o.kt)("p",null,"Any form can be validated in one of those three styles:"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("p",{parentName:"li"},(0,o.kt)("inlineCode",{parentName:"p"},"onChange"),"\nValidate on every change.")),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("p",{parentName:"li"},(0,o.kt)("inlineCode",{parentName:"p"},"onChangeAfterSubmit")," ",(0,o.kt)("em",{parentName:"p"},"(default)"),"\nValidate on every change, but only after first submit.")),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("p",{parentName:"li"},(0,o.kt)("inlineCode",{parentName:"p"},"onSubmit"),"\nValidate on every submit."))),(0,o.kt)("p",null,"You change the way your form validates by setting ",(0,o.kt)("inlineCode",{parentName:"p"},"validate")," prop:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},'<AutoForm validate="onChange" schema={schema} onSubmit={onSubmit} />\n')),(0,o.kt)("p",null,(0,o.kt)("strong",{parentName:"p"},"Note:")," If your schema validator accepts any options, those can be passed in ",(0,o.kt)("inlineCode",{parentName:"p"},"validator")," prop:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"<AutoForm validator={validatorOptions} />\n")),(0,o.kt)("h3",{id:"how-can-i-reset-my-form-state"},"How can I reset my form state?"),(0,o.kt)("p",null,"You can use ",(0,o.kt)("a",{parentName:"p",href:"https://facebook.github.io/react/docs/more-about-refs.html"},"React ",(0,o.kt)("inlineCode",{parentName:"a"},"ref")," prop")," or ",(0,o.kt)("a",{parentName:"p",href:"/docs/api-context-data#formref"},(0,o.kt)("inlineCode",{parentName:"a"},"formRef"))," to manually access form methods."),(0,o.kt)("p",null,"These methods are:"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("inlineCode",{parentName:"li"},"change(key, value)")),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("inlineCode",{parentName:"li"},"reset()")),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("inlineCode",{parentName:"li"},"submit()")),(0,o.kt)("li",{parentName:"ul"},(0,o.kt)("inlineCode",{parentName:"li"},"validate()")," ",(0,o.kt)("em",{parentName:"li"},"(added in ",(0,o.kt)("inlineCode",{parentName:"em"},"ValidatedForm"),")"))),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"import { useRef } from 'react';\n\nconst MyForm = ({ schema, onSubmit }) => {\n const formRef = useRef();\n\n return (\n <section>\n <AutoForm ref={formRef} schema={schema} onSubmit={onSubmit} />\n <small onClick={() => formRef.reset()}>Reset</small>\n <small onClick={() => formRef.submit()}>Submit</small>\n </section>\n );\n};\n")),(0,o.kt)("p",null,"or the hook way:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"function FormControls() {\n const { formRef } = useForm();\n\n return (\n <>\n <button onClick={() => formRef.reset()}>Reset</button>\n <button onClick={() => formRef.submit()}>Submit</button>\n </>\n );\n}\n\nfunction App() {\n return (\n <AutoForm>\n <FormControls />\n </AutoForm>\n );\n}\n")),(0,o.kt)("p",null,"You can find more about form methods ",(0,o.kt)("a",{parentName:"p",href:"/docs/api-forms"},"here"),"."),(0,o.kt)("h3",{id:"i-want-my-form-to-be-prefilled-with-data-how-can-i-do-that"},"I want my form to be prefilled with data. How can I do that?"),(0,o.kt)("p",null,"You can pass the initial data to the form by using the ",(0,o.kt)("inlineCode",{parentName:"p"},"model")," prop."),(0,o.kt)("p",null,"The ",(0,o.kt)("inlineCode",{parentName:"p"},"model")," is an object with ",(0,o.kt)("inlineCode",{parentName:"p"},"{field: value}")," structure. It doesn't matter if it has a prototype or not, but keep in mind that in ",(0,o.kt)("inlineCode",{parentName:"p"},"onSubmit")," or in ",(0,o.kt)("inlineCode",{parentName:"p"},"onChangeModel")," you'll receive a plain object. If you treat form as an input, then this is a value."),(0,o.kt)("h3",{id:"how-can-i-transform-my-model"},"How can I transform my model?"),(0,o.kt)("p",null,"You should ",(0,o.kt)("inlineCode",{parentName:"p"},"modelTransform"),". It is a function transforming one model into another. It's used in a few situations (called 'modes') described below."),(0,o.kt)("p",null,(0,o.kt)("strong",{parentName:"p"},"Remember not to mutate a given model!")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"function transform(mode, model) {\n // This model will be passed to the fields.\n if (mode === 'form') {\n /* ... */\n }\n\n // This model will be submitted.\n if (mode === 'submit') {\n /* ... */\n }\n\n // This model will be validated.\n if (mode === 'validate') {\n /* ... */\n }\n\n // Otherwise, return unaltered model.\n return model;\n}\n\n<AutoForm modelTransform={transform} schema={schema} onSubmit={onSubmit} />;\n")),(0,o.kt)("h3",{id:"how-can-i-make-my-form-autofocused"},"How can I make my form autofocused?"),(0,o.kt)("p",null,"You can take a reference to the field and manually trigger ",(0,o.kt)("inlineCode",{parentName:"p"},".focus()"),":"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"import { useRef } from 'react';\n\nconst inputRef = useRef();\n\n<AutoField name=\"firstName\" inputRef={inputRef} />;\n")),(0,o.kt)("h3",{id:"how-can-i-create-a-multi-step-form"},"How can I create a multi-step form?"),(0,o.kt)("p",null,"What is a multi-step form? Well, one can imagine at least two completely separate definitions:"),(0,o.kt)("ol",null,(0,o.kt)("li",{parentName:"ol"},(0,o.kt)("p",{parentName:"li"},(0,o.kt)("strong",{parentName:"p"},"A set of independent forms with a shared state.")," That's the ",(0,o.kt)("em",{parentName:"p"},"easier")," one as it's always possible. Each step renders a separate form, with a different schema/validator/style and moves to the next one when submitted, accumulating submitted data."),(0,o.kt)("p",{parentName:"li"},"This handles not only multi-step forms but also ",(0,o.kt)("s",null,"forms")," wizards with a tree-like structure (i.e. next step bases on the answers). Optional steps (",(0,o.kt)("em",{parentName:"p"},"skip step 2 if age < 40"),") and contextual validation (",(0,o.kt)("em",{parentName:"p"},"field Y in step 2 has to be greater than the value of X in step 1"),") is also possible."),(0,o.kt)("p",{parentName:"li"},"But it gets even better - each step may use a different forms library! It makes no sense but is definitely possible - each form is independent, and the orchestration happens in the application.")),(0,o.kt)("li",{parentName:"ol"},(0,o.kt)("p",{parentName:"li"},(0,o.kt)("strong",{parentName:"p"},"A single form displayed in parts.")," It is, of course, possible to implement it, but the number of all configurations and options is ",(0,o.kt)("em",{parentName:"p"},"massive"),". But let's skip that and see where a bigger problem is: the validation. In ",(0,o.kt)("strong",{parentName:"p"},"1.")," each step is validated separately (i.e. can have a separate schema). Here, we have only one schema, and the schema itself has to know that ",(0,o.kt)("em",{parentName:"p"},"some")," fields were not yet visible."),(0,o.kt)("p",{parentName:"li"},"Let's make an example. The schema is very basic: ",(0,o.kt)("inlineCode",{parentName:"p"},"{ a: string, b: string }")," (TypeScript notation). Now, as both ",(0,o.kt)("inlineCode",{parentName:"p"},"a")," and ",(0,o.kt)("inlineCode",{parentName:"p"},"b")," are required, a ",(0,o.kt)("em",{parentName:"p"},"valid")," model has to have both. If the first step will render only the ",(0,o.kt)("inlineCode",{parentName:"p"},"a")," field (",(0,o.kt)("inlineCode",{parentName:"p"},"b")," is on the next page), it's impossible to validate the form. This leads to a situation where the schema (logic) depends on the steps (UI). On the other hand, the form could be validated only at the end. The UX of this solution is terrible though - imagine a ",(0,o.kt)("em",{parentName:"p"},"there's an error ten pages back")," error!"))),(0,o.kt)("p",null,"We are not planning to provide any out-of-the-box support for multi-step forms as option ",(0,o.kt)("strong",{parentName:"p"},"1.")," is most of the time the best. It's not only the cleanest but also less complicated as well as doesn't rely on any library."),(0,o.kt)("h3",{id:"how-can-i-know-a-current-form-state"},"How can I know a current form state?"),(0,o.kt)("p",null,"A current form state is available in ",(0,o.kt)("a",{parentName:"p",href:"https://reactjs.org/docs/context.html"},"React context"),", accessible through ",(0,o.kt)("inlineCode",{parentName:"p"},"useForm")," and ",(0,o.kt)("inlineCode",{parentName:"p"},"useField(name)")," hooks."),(0,o.kt)("p",null,"The context data consists of various properties which can be found in ",(0,o.kt)("a",{parentName:"p",href:"/docs/api-context-data"},"here"),"."),(0,o.kt)("h5",{id:"example-usage"},"Example usage:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"function SubmittingState() {\n const uniforms = useForm();\n return uniforms.submitting ? 'Submitting...' : null;\n}\n\n<AutoForm>\n <SubmittingState />\n</AutoForm>;\n")),(0,o.kt)("h3",{id:"i-want-to-disable-a-submit-button-until-there-is-a-difference-between-the-current-form-state-and-my-model-how-can-i-do-it"},"I want to disable a submit button until there is a difference between the current form state and my model. How can I do it?"),(0,o.kt)("p",null,"Basically, you have to find out whether there is a difference between a current form state and your model, e.g. by calling lodash's ",(0,o.kt)("inlineCode",{parentName:"p"},"isEqual")," function.\nCurrent form state can be accessed through the context (see ",(0,o.kt)("a",{parentName:"p",href:"/docs/faq#how-can-i-know-a-current-form-state"},"How can I know a current form state?"),") and form model can be passed as an ordinary prop:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"function DifferentSubmitField({ initialModel }) {\n const { model } = useForm();\n return <SubmitField disabled={isEqual(uniforms.model, initialModel)} />;\n}\n\nconst ChangedForm = ({ model }) => (\n <AutoForm model={model}>\n <DifferentSubmitField initialModel={model} />\n </AutoForm>\n);\n")),(0,o.kt)("h3",{id:"why-am-i-suddenly-getting-type-errors-in-my-form-components"},"Why am I suddenly getting type errors in my form components?"),(0,o.kt)("p",null,"After introduction of TypeScript in ",(0,o.kt)("inlineCode",{parentName:"p"},"uniforms@3.0.0"),", in the initial versions all form components in theme packages were typed as ",(0,o.kt)("inlineCode",{parentName:"p"},"any"),".\nNatural strict typing is not possible due to TypeScript constraints. In one of the versions we have decided to change this approach and explicitly cast all of the form types.\nIf you experience any errors regarding form types, please ",(0,o.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/issues/new?assignees=&labels=&template=bug-report.md"},"file us a bug report")," and use one of the following workarounds for the time being in your project."),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"const AnyAutoForm: any = AutoForm;\n<AnyAutoForm untypedProp={1} />;\n\n// or\n\nconst anyProps: any = {\n untypedProp: 1\n}\n<AutoForm {...anyProps} />\n")),(0,o.kt)("h3",{id:"useform-must-be-used-within-a-form"},'"',(0,o.kt)("inlineCode",{parentName:"h3"},"useForm"),' must be used within a form"'),(0,o.kt)("p",null,"uniforms uses a ",(0,o.kt)("inlineCode",{parentName:"p"},"React.Context")," in order to keep the state of the whole form.\nThe provider for this context is rendered by ",(0,o.kt)("inlineCode",{parentName:"p"},"BaseForm"),", and in turn all the other form components inheriting it."),(0,o.kt)("p",null,"There are two most common issues causing this problem:"),(0,o.kt)("ol",null,(0,o.kt)("li",{parentName:"ol"},(0,o.kt)("p",{parentName:"li"},(0,o.kt)("strong",{parentName:"p"},"The component calling this function does not have a Form component above it anywhere in the component tree.")),(0,o.kt)("p",{parentName:"li"},"To fix this, wrap this component within a parent Form component (does not have to be direct).")),(0,o.kt)("li",{parentName:"ol"},(0,o.kt)("p",{parentName:"li"},(0,o.kt)("strong",{parentName:"p"},"There are multiple versions of ",(0,o.kt)("inlineCode",{parentName:"strong"},"uniforms")," installed in your ",(0,o.kt)("inlineCode",{parentName:"strong"},"node_modules")),"."),(0,o.kt)("p",{parentName:"li"},"This usually happens when you have installed more than one version of the core ",(0,o.kt)("inlineCode",{parentName:"p"},"uniforms")," package. It can happen when you have a mismatch of versions between any of your ",(0,o.kt)("inlineCode",{parentName:"p"},"uniforms")," related dependencies."),(0,o.kt)("p",{parentName:"li"},"Ensure all your uniforms packages versions, clean any ",(0,o.kt)("inlineCode",{parentName:"p"},"node_modules")," directories and reinstall dependencies to resolve this error."))))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4fd05c72.253a55ad.js b/assets/js/4fd05c72.253a55ad.js new file mode 100644 index 000000000..8bb2bb780 --- /dev/null +++ b/assets/js/4fd05c72.253a55ad.js @@ -0,0 +1,128 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[316],{73633:function(e,t,n){"use strict";n.d(t,{j:function(){return C}}),n(11561).z.register("minCount","maxCount");var a=n(59312),r=n(3996),l=n.n(r),i=n(30454),s=n.n(i),o=n(99729),c=n.n(o),u=n(90104),d=n.n(u),m=n(1883),p=n.n(m),h=n(16651),f=n.n(h),g=n(76744),v=n.n(g),b=n(98949),_=n(65507);function E(e,t){l()(t,'Field not found in schema: "%s"',e)}function y(e,t){if(!("$ref"in e))return e;const{$ref:n}=e,r=(0,a._T)(e,["$ref"]);return y(Object.assign({},r,function(e,t){l()(e.startsWith("#"),'Reference is not an internal reference, and only such are allowed: "%s"',e);const n=e.split("/").filter((e=>e&&"#"!==e)).reduce(((e,t)=>e[t]),t);return l()(n,'Reference not found in schema: "%s"',e),n}(n,t)),t)}const O=["allOf","anyOf","oneOf"],k=["default","enum","format","isRequired","title","uniforms"],N=[["maxItems","maxCount"],["maximum","max"],["minItems","minCount"],["minimum","min"],["multipleOf","step"]];function w(e){return"object"==typeof e&&null!==e&&Array.isArray(e.details)}class C extends b.k{constructor(e){let{provideDefaultLabelFromFieldName:t=!0,schema:n,validator:a}=e;super(),this.provideDefaultLabelFromFieldName=t,this.schema=y(n,n),this._compiledSchema={"":this.schema},this.validator=a,this.getField=f()(this.getField.bind(this)),this.getInitialValue=f()(this.getInitialValue.bind(this)),this.getSubfields=f()(this.getSubfields.bind(this)),this.getType=f()(this.getType.bind(this))}getError(e,t){const n=w(t)&&t.details;if(!n)return null;const a=(0,_.m)(null,e).map(_.m.unescape),r=(0,_.m)(a),l=(0,_.m)(a.slice(0,-1)),i=a[a.length-1],s=n.find((e=>{var t;const n=null!==(t=e.instancePath)&&void 0!==t?t:e.dataPath,a=n?function(e){return(e=e.startsWith("/")?e.replace(/\//g,".").replace(/~0/g,"~").replace(/~1/g,"/"):e.replace(/\[('|")(.+?)\1\]/g,".$2").replace(/\[(.+?)\]/g,".$1").replace(/\\'/g,"'")).slice(1)}(n):"";return r===a||l===a&&e.params&&i===e.params.missingProperty}));return s||null}getErrorMessage(e,t){const n=this.getError(e,t);return(null==n?void 0:n.message)||""}getErrorMessages(e){if(!e)return[];if(w(e)){const{details:t}=e;return t.map((e=>e.message||""))}return e instanceof Error?[e.message]:"object"==typeof e?[]:[String(e)]}getField(e){return(0,_.m)(null,e).reduce(((t,n,a,r)=>{var l,i,s,o;const c=(0,_.m)(r.slice(0,a)),u=(0,_.m)(c,n),m=null!==(l=(o=this._compiledSchema)[u])&&void 0!==l?l:o[u]={};if(m.isRequired=!(!(null===(i=t.required)||void 0===i?void 0:i.includes(n))&&!(null===(s=this._compiledSchema[c].required)||void 0===s?void 0:s.includes(n))),"$"===n||n===""+parseInt(n,10))E(e,"array"===t.type),t=Array.isArray(t.items)?t.items[parseInt(n,10)]:t.items,E(e,!!t);else if("object"===t.type)E(e,!!t.properties),t=t.properties[_.m.unescape(n)],E(e,!!t);else{let a=!1;O.forEach((e=>{var r;null===(r=t[e])||void 0===r||r.forEach((e=>{a||(e=y(e,this.schema),n in e.properties&&(t=e.properties[n],a=!0))}))})),E(e,a)}const p=(t=y(t,this.schema)).required?t.required.slice():[],h=t.properties?Object.assign({},t.properties):{};return O.forEach((e=>{var n;null===(n=t[e])||void 0===n||n.forEach((e=>{(e=y(e,this.schema)).required&&p.push(...e.required),Object.assign(h,e.properties),!m.type&&e.type&&(m.type=e.type)}))})),p.length>0&&(m.required=p),d()(h)||(m.properties=h),t}),this.schema)}getInitialValue(e){var t;const n=this.getField(e),{default:a=(null!==(t=n.default)&&void 0!==t?t:c()(this.schema.default,e)),type:r=n.type}=this._compiledSchema[e];if(void 0!==a)return s()(a);if("array"===r){const t=this.getInitialValue((0,_.m)(e,"$"));if(void 0===t)return[];const a=n.minItems||0;return Array.from({length:a},(()=>t))}if("object"===r){const t={};return this.getSubfields(e).forEach((n=>{const a=this.getInitialValue((0,_.m)(e,n));void 0!==a&&(t[n]=a)})),t}}getProps(e){var t,n;const a=this.getField(e),r=Object.assign({},a,a.uniforms,this._compiledSchema[e]);null!==(t=r.label)&&void 0!==t||(r.label=r.title),this.provideDefaultLabelFromFieldName&&void 0===r.label&&(r.label=v()(p()((0,_.m)(null,e).slice(-1)[0]))),"number"===a.type&&(r.decimal=!0),void 0!==(null===(n=a.uniforms)||void 0===n?void 0:n.type)&&(r.type=a.uniforms.type),void 0===r.required&&(r.required=r.isRequired),r.type===a.type&&delete r.type;let l=r.options;return l?Array.isArray(l)||(l=Object.entries(l).map((e=>{let[t,n]=e;return{key:t,label:t,value:n}}))):r.enum&&(l=Object.values(r.enum).map((e=>({value:e})))),N.forEach((e=>{let[t,n]=e;t in r&&(r[n]=r[t],delete r[t])})),k.forEach((e=>{e in r&&delete r[e]})),Object.assign(r,{options:l})}getSubfields(e){void 0===e&&(e="");const t=this.getField(e),{properties:n=t.properties,type:a=t.type}=this._compiledSchema[e];return"object"===a&&n?Object.keys(n).map(_.m.escape):[]}getType(e){const{type:t,format:n}=this.getField(e),{type:a=t}=this._compiledSchema[e];return"date-time"===n?Date:"string"===a?String:"number"===a||"integer"===a?Number:"object"===a?Object:"array"===a?Array:"boolean"===a?Boolean:(l()("null"!==a,'Field "%s" can not be represented as a type null',e),a)}getValidator(){return this.validator}}},12005:function(e,t,n){"use strict";n.d(t,{V:function(){return g}});var a=n(13762),r=n.n(a),l=n(11561);r().extendOptions(["uniforms"]),l.z.register("autoValue","blackbox","custom","decimal","defaultValue","exclusiveMax","exclusiveMin","max","maxCount","min","minCount","optional","regEx","trim","type");var i=n(59312),s=n(3996),o=n.n(s),c=n(30454),u=n.n(c),d=n(16651),m=n.n(d),p=n(98949),h=n(65507);const f=["optional","uniforms","allowedValues"];class g extends p.k{constructor(e){let{schema:t}=e;super(),this.schema=t,this.getField=m()(this.getField.bind(this)),this.getInitialValue=m()(this.getInitialValue.bind(this)),this.getProps=m()(this.getProps.bind(this)),this.getSubfields=m()(this.getSubfields.bind(this)),this.getType=m()(this.getType.bind(this))}getError(e,t){const n=null==t?void 0:t.details;return Array.isArray(n)&&n.find((t=>t.name===e))||null}getErrorMessage(e,t){const n=this.getError(e,t);return n?this.schema.messageForError(n):""}getErrorMessages(e){if(!e)return[];const{details:t}=e;return Array.isArray(t)?t.map((e=>this.schema.messageForError(e))):[e.message||e]}getField(e){const t=this.schema.getDefinition(e);o()(t,'Field not found in schema: "%s"',e);const n=Object.assign(Object.assign({},t),t.type[0]);if(n.autoValue&&("defaultAutoValueFunction"===n.autoValue.name||-1!==n.autoValue.toString().indexOf("$setOnInsert:")))try{n.defaultValue=n.autoValue.call({operator:null})}catch(a){}return n}getInitialValue(e){const t=this.getField(e),n=t.defaultValue;if(void 0!==n)return u()(n);if(t.type===Array){const n=this.getInitialValue((0,h.m)(e,"$"));if(void 0===n)return[];const a=t.minCount||0;return Array.from({length:a},(()=>n))}if(t.type===Object||t.type instanceof r()){const t={};return this.getSubfields(e).forEach((n=>{const a=this.getInitialValue((0,h.m)(e,n));void 0!==a&&(t[n]=a)})),t}}getProps(e){const t=this.getField(e),{type:n}=t,a=(0,i._T)(t,["type"]);a.required=!a.optional,"function"==typeof a.uniforms||"string"==typeof a.uniforms?a.component=a.uniforms:Object.assign(a,a.uniforms),n===Number&&(a.decimal=!0);let r=a.options,l=a.allowedValues;if("function"==typeof r&&(r=r()),r||"function"!=typeof l||(l=l()),!r&&Array.isArray(l))r=l.map((e=>({value:e})));else if(n===Array)try{const t=this.getProps(`${e}.$`);t.options&&(r=t.options)}catch(s){}return f.forEach((e=>{e in a&&delete a[e]})),Object.assign(a,{options:r})}getSubfields(e){return this.schema.objectKeys(function(e){return null==e?void 0:e.replace(/\.\d+(\.|$)/g,".$$$1")}(e))}getType(e){const t=this.getField(e).type;return t===r().Integer?Number:t instanceof r()?Object:t}getValidator(e){void 0===e&&(e={clean:!0,mutate:!0});const t=this.schema.validator(e);return n=>{try{return t(e.clean?u()(Object.assign({},n)):n),null}catch(a){return a}}}}},48616:function(e,t,n){"use strict";n.d(t,{K:function(){return _}});var a=n(11561),r=n(84200);a.z.register("minCount","maxCount"),r.z.ZodType.prototype.uniforms=function(e){return this._uniforms=e,this};var l=n(3996),i=n.n(l),s=n(1883),o=n.n(s),c=n(16651),u=n.n(c),d=n(76744),m=n.n(d),p=n(65507),h=n(98949);function f(e,t){i()(t,'Field not found in schema: "%s"',e)}function g(e){return"string"!=typeof e}function v(e){return m()(o()((0,p.m)(null,e).slice(-1)[0]))}function b(e,t){void 0===t&&(t=[]);const n=e[e.length-1];if("number"==typeof n){return b(e.slice(0,e.length-1),[n,...t])}return t.length>0?`${v(e)} (${t.join(", ")})`:v(e)}class _ extends h.k{constructor(e){let{schema:t,provideDefaultLabelFromFieldName:n=!0}=e;super(),this.schema=t,this.provideDefaultLabelFromFieldName=n,this.getField=u()(this.getField.bind(this)),this.getInitialValue=u()(this.getInitialValue.bind(this)),this.getProps=u()(this.getProps.bind(this)),this.getSubfields=u()(this.getSubfields.bind(this)),this.getType=u()(this.getType.bind(this))}getError(e,t){return t instanceof r.jm&&t.issues.find((t=>e===(0,p.m)(t.path)))||null}getErrorMessage(e,t){var n;return(null===(n=this.getError(e,t))||void 0===n?void 0:n.message)||""}getErrorMessages(e){return e instanceof r.jm?e.issues.map((e=>`${b(e.path)}: ${e.message}`)):e instanceof Error?[e.message]:[]}getField(e){let t=this.schema;this.schema instanceof r.Xc&&(t=this.schema._def.schema);for(const n of(0,p.m)(null,e))t instanceof r.uE?t=t.removeDefault():t instanceof r.ak&&(t=t.unwrap()),"$"===n||n===""+parseInt(n,10)?(f(e,t instanceof r.p5),t=t.element):(f(e,t instanceof r.CQ),t=t.shape[p.m.unescape(n)]);return t}getInitialValue(e){var t,n;const a=this.getField(e);if(a instanceof r.p5){const n=this.getInitialValue((0,p.m)(e,"$"));if(void 0===n)return[];const r=(null===(t=a._def.minLength)||void 0===t?void 0:t.value)||0;return Array.from({length:r},(()=>n))}if(a instanceof r.uE)return a._def.defaultValue();if(a instanceof r.K7)return a.options[0];if(a instanceof r.Zl){const e=Object.values(a.enum);return null!==(n=e.find(g))&&void 0!==n?n:e[0]}if(a instanceof r.CQ){const t={};return this.getSubfields(e).forEach((n=>{const a=this.getInitialValue((0,p.m)(e,n));void 0!==a&&(t[n]=a)})),t}}getProps(e){const t=Object.assign(Object.assign({},this.provideDefaultLabelFromFieldName&&{label:v(e)}),{required:!0});let n=this.getField(e);const a=n._uniforms;if("function"==typeof a?t.component=a:Object.assign(t,a),n instanceof r.uE?(n=n.removeDefault(),t.required=!1):n instanceof r.ak&&(n=n.unwrap(),t.required=!1),n instanceof r.p5)n._def.maxLength&&(t.maxCount=n._def.maxLength.value),n._def.minLength&&(t.minCount=n._def.minLength.value);else if(n instanceof r.K7)t.options=n.options.map((e=>({value:e})));else if(n instanceof r.Zl){const e=Object.values(n.enum),a=e.filter(g);t.options=(a.length?a:e).map((e=>({value:e})))}else if(n instanceof r.IV){n.isInt||(t.decimal=!0);const e=n.maxValue;null!==e&&(t.max=e);const a=n.minValue;null!==a&&(t.min=a);const r=n._def.checks.find((e=>"multipleOf"===e.kind));r&&(t.step=r.value)}return t}getSubfields(e){void 0===e&&(e="");let t=this.getField(e);return t instanceof r.uE?t=t.removeDefault():t instanceof r.ak&&(t=t.unwrap()),t instanceof r.p5?["$"]:t instanceof r.CQ?Object.keys(t.shape):[]}getType(e){let t=this.getField(e);if(t instanceof r.uE?t=t.removeDefault():t instanceof r.ak&&(t=t.unwrap()),t instanceof r.p5)return Array;if(t instanceof r.pZ)return Boolean;if(t instanceof r.$s)return Date;if(t instanceof r.K7||t instanceof r.$T)return String;if(t instanceof r.Zl){return"number"==typeof Object.values(t.enum).find(g)?Number:String}return t instanceof r.IV?Number:t instanceof r.CQ?Object:void i()(!1,'Field "%s" has an unknown type',e)}getValidator(){return e=>{const t=this.schema.safeParse(e);return t.success?null:t.error}}}},68599:function(e,t,n){"use strict";var a=n(3996),r=n.n(a),l=n(6846),i=n(12138),s=n(14449),o=n(64694),c=n(80661),u=n(59492),d=n(44591),m=n(47822),p=n(99086);const h=(0,l.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?d.Z:m.Z;switch(e.fieldType){case Array:return o.Z;case Boolean:return i.Z;case Date:return s.Z;case Number:return u.Z;case Object:return c.Z;case String:return p.Z}return r()(!1,"Unsupported field type: %s",e.fieldType)}));t.Z=h},2310:function(e,t,n){"use strict";var a=n(39850),r=n(79904);t.Z=function e(t){class n extends(a.N.Auto(t)){}return n.Auto=e,n}(r.Z)},99574:function(e,t,n){"use strict";var a=n(60042),r=n.n(a),l=n(6820);t.Z=function e(t){class n extends t{getNativeFormProps(){const e=super.getNativeFormProps(),t=this.getContextError();return Object.assign(Object.assign({},e),{className:r()("ui",e.className,{error:t},"form")})}}return n.Semantic=e,n.displayName=`Semantic${t.displayName}`,n}(l.I)},12138:function(e,t,n){"use strict";var a=n(59312),r=n(60042),l=n.n(r),i=n(27378),s=n(11561),o=n(76424);t.Z=(0,o.e)((function(e){var{className:t,disabled:n,error:r,errorMessage:o,id:c,inputRef:u,label:d,name:m,onChange:p,readOnly:h,required:f,showInlineError:g,value:v,wrapClassName:b}=e,_=(0,a._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","readOnly","required","showInlineError","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:n,error:r,required:f},"field")},(0,s.z)(_)),i.createElement("div",{className:l()("ui",b,!d&&"fitted","checkbox")},i.createElement("input",{checked:v||!1,className:"hidden",disabled:n,id:c,name:m,onChange:()=>{h||p(!v)},ref:u,type:"checkbox"}),i.createElement("label",{htmlFor:c},d||null)),!(!r||!g)&&i.createElement("div",null,i.createElement("div",{className:"ui red basic pointing label"},o)))}),{kind:"leaf"})},14449:function(e,t,n){"use strict";var a=n(59312),r=n(60042),l=n.n(r),i=n(27378),s=n(11561),o=n(76424);const c=("object"==typeof n.g?n.g:window).Date,u=function(e,t){return void 0===t&&(t="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===t?-8:-14)};t.Z=(0,o.e)((function(e){var t,{className:n,disabled:r,error:o,errorMessage:d,icon:m,iconLeft:p,iconProps:h,id:f,inputRef:g,label:v,max:b,min:_,name:E,onChange:y,placeholder:O,readOnly:k,required:N,showInlineError:w,value:C,wrapClassName:j,type:x="datetime-local"}=e,P=(0,a._T)(e,["className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","value","wrapClassName","type"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:r,error:o,required:N},"field")},(0,s.z)(P)),v&&i.createElement("label",{htmlFor:f},v),i.createElement("div",{className:l()("ui",j,{left:p,icon:m||p},"input")},i.createElement("input",{disabled:r,id:f,max:u(b),min:u(_),name:E,onChange:e=>{const t=new c(e.target.valueAsNumber);t.getFullYear()<1e4?y(t):isNaN(e.target.valueAsNumber)&&y(void 0)},placeholder:O,readOnly:k,ref:g,type:x,value:null!==(t=u(C,x))&&void 0!==t?t:""}),(m||p)&&i.createElement("i",Object.assign({className:`${m||p} icon`},h))),!(!o||!w)&&i.createElement("div",{className:"ui red basic pointing label"},d))}),{kind:"leaf"})},43351:function(e,t,n){"use strict";var a=n(59312),r=n(60042),l=n.n(r),i=n(27378),s=n(55201),o=n(11561);t.Z=function(e){var{children:t,className:n}=e,r=(0,a._T)(e,["children","className"]);const{error:c,schema:u}=(0,s.c)();return c||t?i.createElement("div",Object.assign({className:l()("ui",n,"error message")},(0,o.z)(r)),t,i.createElement("ul",{className:"list"},u.getErrorMessages(c).map(((e,t)=>i.createElement("li",{key:t},e))))):null}},77900:function(e,t,n){"use strict";var a=n(59312),r=n(60042),l=n.n(r),i=n(30454),s=n.n(i),o=n(27378),c=n(65507),u=n(68591),d=n(11561),m=n(76424);t.Z=(0,m.e)((function(e){var{disabled:t,name:n,readOnly:r,value:i}=e,m=(0,a._T)(e,["disabled","name","readOnly","value"]);const p=(0,c.m)(null,n),h=(0,c.m)(p.slice(0,-1)),f=(0,u.U)(h,{},{absoluteName:!0})[0],g=!(t||f.maxCount<=f.value.length);function v(e){!g||r||"key"in e&&"Enter"!==e.key||f.onChange(f.value.concat([s()(i)]))}return o.createElement("i",Object.assign({},(0,d.z)(m),{className:l()("ui",m.className,g?"link":"disabled","fitted add icon"),onClick:v,onKeyDown:v,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},960:function(e,t,n){"use strict";var a=n(59312),r=n(60042),l=n.n(r),i=n(27378),s=n(65507),o=n(68591),c=n(11561),u=n(76424);t.Z=(0,u.e)((function(e){var{disabled:t,name:n,readOnly:r}=e,u=(0,a._T)(e,["disabled","name","readOnly"]);const d=(0,s.m)(null,n),m=+d[d.length-1],p=(0,s.m)(d.slice(0,-1)),h=(0,o.U)(p,{},{absoluteName:!0})[0];function f(e){if(!(t||"key"in e&&"Enter"!==e.key)){const e=h.value.slice();e.splice(m,1),h.onChange(e)}}return t||(t=r||h.minCount>=h.value.length),i.createElement("i",Object.assign({},(0,c.z)(u),{className:l()("ui",u.className,t?"link":"disabled","fitted close icon"),onClick:f,onKeyDown:f,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},64694:function(e,t,n){"use strict";var a=n(59312),r=n(60042),l=n.n(r),i=n(27378),s=n(11561),o=n(76424),c=n(77900),u=n(18747);t.Z=(0,o.e)((function(e){var{children:t=i.createElement(u.Z,{name:"$"}),className:n,disabled:r,error:o,errorMessage:d,itemProps:m,label:p,required:h,showInlineError:f,value:g}=e,v=(0,a._T)(e,["children","className","disabled","error","errorMessage","itemProps","label","required","showInlineError","value"]);return i.createElement("div",Object.assign({className:l()("ui",n,{disabled:r},"grouped fitted fields list")},(0,s.z)(v)),p&&i.createElement("div",{className:l()({error:o,required:h},"field item")},i.createElement("label",{className:"left floated"},p),i.createElement(c.Z,{className:"right floated",name:"$"})),p&&i.createElement("div",{className:"ui fitted hidden clearing horizontal divider"}),!(!o||!f)&&i.createElement("div",{className:"ui red basic label"},d),null==g?void 0:g.map(((e,n)=>i.Children.map(t,((e,t)=>{var a;return(0,i.isValidElement)(e)?(0,i.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n)},m)):e})))))}))},18747:function(e,t,n){"use strict";var a=n(27378),r=n(76424),l=n(68599),i=n(960);t.Z=(0,r.e)((function(e){let{children:t=a.createElement(l.Z,{label:null,name:""})}=e;return a.createElement("div",{className:"item"},a.createElement(i.Z,{className:"top aligned",name:""}),a.createElement("div",{className:"middle aligned content",style:{width:"100%"}},t))}),{initialValue:!1})},80661:function(e,t,n){"use strict";var a=n(59312),r=n(60042),l=n.n(r),i=n(27378),s=n(11561),o=n(76424),c=n(68599);function u(e){var{children:t,className:n,disabled:r,error:o,errorMessage:u,fields:d,grouped:m,itemProps:p,label:h,showInlineError:f}=e,g=(0,a._T)(e,["children","className","disabled","error","errorMessage","fields","grouped","itemProps","label","showInlineError"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:r,error:o,grouped:m},"fields")},(0,s.z)(g)),h&&i.createElement("div",{className:"field"},i.createElement("label",null,h)),!(!o||!f)&&i.createElement("div",{className:"ui red basic label"},u),t||d.map((e=>i.createElement(c.Z,Object.assign({key:e,name:e},p)))))}u.defaultProps={grouped:!0},t.Z=(0,o.e)(u)},59492:function(e,t,n){"use strict";var a=n(59312),r=n(60042),l=n.n(r),i=n(27378),s=n(11561),o=n(76424);t.Z=(0,o.e)((function(e){var{className:t,decimal:n,disabled:r,error:o,errorMessage:c,icon:u,iconLeft:d,iconProps:m,id:p,inputRef:h,label:f,max:g,min:v,name:b,onChange:_,placeholder:E,readOnly:y,required:O,showInlineError:k,step:N,value:w,wrapClassName:C}=e,j=(0,a._T)(e,["className","decimal","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","step","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:r,error:o,required:O},"field")},(0,s.z)(j)),f&&i.createElement("label",{htmlFor:p},f),i.createElement("div",{className:l()("ui",C,{left:d,icon:u||d},"input")},i.createElement("input",{disabled:r,id:p,max:g,min:v,name:b,onChange:e=>{const t=(n?parseFloat:parseInt)(e.target.value);_(isNaN(t)?void 0:t)},placeholder:E,readOnly:y,ref:h,step:N||(n?.01:1),type:"number",value:null!=w?w:""}),(u||d)&&i.createElement("i",Object.assign({className:`${u||d} icon`},m))),!(!o||!k)&&i.createElement("div",{className:"ui red basic pointing label"},c))}),{kind:"leaf"})},52559:function(e,t,n){"use strict";var a=n(51674),r=n(68599),l=n(99574),i=n(43351),s=n(82986);t.Z=function e(t){class n extends(a.X.Quick(t)){getAutoField(){return r.Z}getErrorsField(){return i.Z}getSubmitField(){return s.Z}}return n.Quick=e,n}(l.Z)},44591:function(e,t,n){"use strict";var a=n(59312),r=n(60042),l=n.n(r),i=n(48159),s=n.n(i),o=n(27378),c=n(11561),u=n(76424);const d="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>d(encodeURIComponent(e)).replace(/=+$/,"");t.Z=(0,u.e)((function(e){var{options:t,className:n,disabled:r,error:i,errorMessage:u,id:d,label:p,name:h,onChange:f,readOnly:g,required:v,showInlineError:b,value:_}=e,E=(0,a._T)(e,["options","className","disabled","error","errorMessage","id","label","name","onChange","readOnly","required","showInlineError","value"]);return o.createElement("div",Object.assign({className:l()(n,{disabled:r,error:i},"grouped fields")},s()((0,c.z)(E),["checkboxes"])),p&&o.createElement("div",{className:l()({required:v},"field")},o.createElement("label",null,p)),null==t?void 0:t.map((e=>{var t,n,a,l;return o.createElement("div",{className:"field",key:null!==(t=e.key)&&void 0!==t?t:e.value},o.createElement("div",{className:"ui radio checkbox"},o.createElement("input",{checked:e.value===_,disabled:e.disabled||r,id:`${d}-${null!==(n=e.key)&&void 0!==n?n:m(e.value)}`,name:h,onChange:()=>{g||f(e.value)},type:"radio"}),o.createElement("label",{htmlFor:`${d}-${null!==(a=e.key)&&void 0!==a?a:m(e.value)}`},null!==(l=e.label)&&void 0!==l?l:e.value)))})),!(!i||!b)&&o.createElement("div",{className:"ui red basic pointing label"},u))}),{kind:"leaf"})},47822:function(e,t,n){"use strict";var a=n(59312),r=n(60042),l=n.n(r),i=n(20098),s=n.n(i),o=n(27378),c=n(11561),u=n(76424);const d="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>d(encodeURIComponent(e)).replace(/=+$/,""),p={paddingBottom:0,paddingTop:0};t.Z=(0,u.e)((function(e){var{options:t,checkboxes:n,className:r,disabled:i,error:u,errorMessage:d,fieldType:h,id:f,inputRef:g,label:v,name:b,onChange:_,placeholder:E,readOnly:y,required:O,showInlineError:k,value:N}=e,w=(0,a._T)(e,["options","checkboxes","className","disabled","error","errorMessage","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);const C=h===Array;return o.createElement("div",Object.assign({className:l()({disabled:i,error:u,required:O},r,"field")},(0,c.z)(w)),v&&o.createElement("label",{htmlFor:f},v),n?null==t?void 0:t.map((e=>{var t,n,a,r;return o.createElement("div",{className:"field",key:null!==(t=e.key)&&void 0!==t?t:e.value},o.createElement("div",{className:"ui checkbox"},o.createElement("input",{checked:C?null==N?void 0:N.includes(e.value):N===e.value,disabled:e.disabled||i,id:`${f}-${null!==(n=e.key)&&void 0!==n?n:m(e.value)}`,name:b,onChange:()=>{y||_(C?s()([e.value],N):e.value)},type:"checkbox"}),o.createElement("label",{htmlFor:`${f}-${null!==(a=e.key)&&void 0!==a?a:m(e.value)}`},null!==(r=e.label)&&void 0!==r?r:e.value)))})):o.createElement("select",{className:"ui selection dropdown",disabled:i,id:f,multiple:C,name:b,onChange:e=>{if(!y){const t=e.target.value;if(C){const n=-1===e.target.selectedIndex;_(n?[]:s()([t],N))}else _(""!==t?t:void 0)}},ref:g,style:p,value:null!=N?N:""},(!!E||!O||void 0===N)&&!C&&o.createElement("option",{value:"",disabled:O,hidden:O},E||v),null==t?void 0:t.map((e=>{var t,n;return o.createElement("option",{disabled:e.disabled,key:null!==(t=e.key)&&void 0!==t?t:e.value,value:e.value},null!==(n=e.label)&&void 0!==n?n:e.value)}))),!(!u||!k)&&o.createElement("div",{className:"ui red basic pointing label"},d))}),{kind:"leaf"})},82986:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var a=n(59312),r=n(60042),l=n.n(r),i=n(27378),s=n(55201),o=n(11561);function c(e){var{className:t,disabled:n,inputRef:r,readOnly:c,value:u}=e,d=(0,a._T)(e,["className","disabled","inputRef","readOnly","value"]);const{error:m,state:p}=(0,s.c)();return i.createElement("input",Object.assign({className:l()("ui",t,"button"),disabled:void 0===n?!(!m&&!p.disabled):n,readOnly:c,ref:r,type:"submit"},u?{value:u}:{},(0,o.z)(d)))}},99086:function(e,t,n){"use strict";var a=n(59312),r=n(60042),l=n.n(r),i=n(27378),s=n(11561),o=n(76424);function c(e){var{autoComplete:t,className:n,disabled:r,error:o,errorMessage:c,icon:u,iconLeft:d,iconProps:m,id:p,inputRef:h,label:f,name:g,onChange:v,placeholder:b,readOnly:_,required:E,showInlineError:y,type:O,value:k,wrapClassName:N}=e,w=(0,a._T)(e,["autoComplete","className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","type","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:r,error:o,required:E},"field")},(0,s.z)(w)),f&&i.createElement("label",{htmlFor:p},f),i.createElement("div",{className:l()("ui",N,{left:d,icon:u||d},"input")},i.createElement("input",{autoComplete:t,disabled:r,id:p,name:g,onChange:e=>v(e.target.value),placeholder:b,readOnly:_,ref:h,type:O,value:null!=k?k:""}),(u||d)&&i.createElement("i",Object.assign({className:`${u||d} icon`},m))),!(!o||!y)&&i.createElement("div",{className:"ui red basic pointing label"},c))}c.defaultProps={type:"text"},t.Z=(0,o.e)(c,{kind:"leaf"})},3684:function(e,t,n){"use strict";var a=n(23674),r=n(99574);t.Z=function e(t){class n extends(a.O.Validated(t)){}return n.Validated=e,n}(r.Z)},79904:function(e,t,n){"use strict";var a=n(99574),r=n(52559),l=n(3684);t.Z=l.Z.Validated(r.Z.Quick(a.Z))},96614:function(e,t,n){"use strict";var a=n(59312),r=n(27378),l=n(11561),i=n(76424);t.Z=(0,i.e)((function(e){var{disabled:t,id:n,inputRef:i,label:s,name:o,onChange:c,placeholder:u,readOnly:d,value:m}=e,p=(0,a._T)(e,["disabled","id","inputRef","label","name","onChange","placeholder","readOnly","value"]);return r.createElement("div",Object.assign({},(0,l.z)(p)),s&&r.createElement("label",{htmlFor:n},s),r.createElement("textarea",{disabled:t,id:n,name:o,onChange:e=>c(e.target.value),placeholder:u,readOnly:d,ref:i,value:null!=m?m:""}))}),{kind:"leaf"})},39850:function(e,t,n){"use strict";n.d(t,{N:function(){return p}});var a=n(13784),r=n.n(a),l=n(56141),i=n.n(l),s=n(48159),o=n.n(s),c=n(96498),u=n.n(c),d=n(6820),m=n(51674);const p=function e(t){class n extends t{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{model:this.mergeSchemaAndPropsModel(this.props.schema,this.props.model)})}mergeSchemaAndPropsModel(e,t){const n=e.getInitialModel();return Object.assign(n,t)}componentDidUpdate(e,t,n){const{model:a,schema:r}=this.props;i()(a,e.model)||this.setState({model:this.mergeSchemaAndPropsModel(r,a)}),super.componentDidUpdate(e,t,n)}getNativeFormProps(){const e=super.getNativeFormProps();return o()(e,["onChangeModel"])}getModel(e){return this.state.model}onChange(e,t){super.onChange(e,t),this.setState((n=>({model:u()(r()(n.model),e,t,r())})),(()=>{this.props.onChangeModel&&this.props.onChangeModel(this.state.model)}))}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{model:this.props.model})}}return n.Auto=e,n.displayName=`Auto${t.displayName}`,n}((0,n(23674).u)((0,m.s)(d.I)))},6820:function(e,t,n){"use strict";n.d(t,{I:function(){return _}});var a=n(13784),r=n.n(a),l=n(99729),i=n.n(l),s=n(48159),o=n.n(s),c=n(96498),u=n.n(c),d=n(27378),m=n(56141),p=n.n(m),h=n(65507);function f(e){return!(!e||e!==Object(e)||e instanceof Date)}var g=n(34361);function v(e){let t=0;return()=>`${e}-${("000"+(t++).toString(36)).slice(-4)}`}const b=v("uniforms");class _ extends d.Component{constructor(e){var t,n;super(e),t=this,this.state={changed:!1,changedMap:Object.create(null),resetCount:0,submitted:!1,submitting:!1},this.mounted=!1,this.randomId=(void 0===(n=this.props.id)&&(n=b()),v(n)),this.onReset=this.reset=this.onReset.bind(this),this.onChange=this.change=this.onChange.bind(this),this.onSubmit=this.submit=this.onSubmit.bind(this);const a=this.getModel.bind(this);this.getModel=function(e,n){return void 0===n&&(n=a(e)),void 0!==e&&t.props.modelTransform?t.props.modelTransform(e,n):n}}componentDidMount(){this.mounted=!0}componentDidUpdate(e,t,n){}componentWillUnmount(){this.mounted=!1,this.delayId&&clearTimeout(this.delayId)}getContext(){return{changed:this.state.changed,changedMap:this.state.changedMap,error:this.getContextError(),formRef:this,model:this.getContextModel(),name:this.getContextName(),onChange:this.getContextOnChange(),onSubmit:this.getContextOnSubmit(),randomId:this.randomId,schema:this.getContextSchema(),state:this.getContextState(),submitted:this.state.submitted,submitting:this.state.submitting,validating:!1}}getContextName(){return[]}getContextError(){return this.props.error}getContextModel(){return this.getModel("form")}getContextState(){return{disabled:!!this.props.disabled,readOnly:!!this.props.readOnly,showInlineError:!!this.props.showInlineError}}getContextSchema(){return this.props.schema}getContextOnChange(){return this.onChange}getContextOnSubmit(){return this.onSubmit}getModel(e,t){return void 0===t&&(t=this.props.model),t}getNativeFormProps(){const e=o()(this.props,["autosave","autosaveDelay","disabled","error","model","modelTransform","onChange","onSubmit","readOnly","schema","showInlineError"]);return Object.assign(Object.assign({},e),{onSubmit:this.onSubmit,key:`reset-${this.state.resetCount}`})}onChange(e,t){if(this.mounted){const n=function(e,t,n){if(!f(t)||n&&typeof t!=typeof n)return p()(t,n)?[]:[e];const a=[e];if(f(n)){for(const r in t)r in n&&p()(t[r],n[r])||a.push((0,h.m)(e,r));for(const r in n)r in t||a.push((0,h.m)(e,r));1===a.length&&a.pop()}else for(const r in t)a.push((0,h.m)(e,r));return a}(e,t,i()(this.getModel(),e));0!==n.length&&this.setState((e=>e.changed&&n.every((t=>!!i()(e.changedMap,t)))?null:{changed:!0,changedMap:n.reduce(((e,t)=>u()(e,t,{},r())),r()(e.changedMap))}))}this.props.onChange&&this.props.onChange(e,t),this.mounted&&this.props.autosave&&(this.delayId&&clearTimeout(this.delayId),this.delayId=setTimeout((()=>{this.mounted&&this.setState((()=>null),(()=>{this.onSubmit()}))}),this.props.autosaveDelay))}__reset(e){return{changed:!1,changedMap:Object.create(null),resetCount:e.resetCount+1,submitted:!1,submitting:!1}}onReset(){this.mounted&&this.setState(this.__reset)}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.mounted&&this.setState((e=>e.submitted?null:{submitted:!0}));const t=this.props.onSubmit(this.getModel("submit"));return t instanceof Promise?(this.mounted&&this.setState({submitting:!0}),t.finally((()=>{this.mounted&&this.setState({submitting:!1})}))):Promise.resolve()}render(){return d.createElement(g.D.Provider,{value:this.getContext()},d.createElement("form",Object.assign({},this.getNativeFormProps())))}}_.displayName="Form",_.defaultProps={autosave:!1,autosaveDelay:0,error:null,model:Object.create(null),noValidate:!0,onSubmit(){}}},98949:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});var a=n(3996),r=n.n(a),l=n(47215),i=n.n(l);class s{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r()(this.constructor!==s,"Bridge cannot be instantiated (args=%o).",{args:t})}getError(e,t){return r()(!1,"%s have not implemented `getError` method (args=%o).",this.constructor.name,{name:e,error:t})}getErrorMessage(e,t){return r()(!1,"%s have not implemented `getErrorMessage` method (args=%o).",this.constructor.name,{name:e,error:t})}getErrorMessages(e){return r()(!1,"%s have not implemented `getErrorMessages` method (args=%o).",this.constructor.name,{error:e})}getField(e){return r()(!1,"%s have not implemented `getField` method (args=%o).",this.constructor.name,{name:e})}getInitialValue(e){return r()(!1,"%s have not implemented `getInitialValue` method (args=%o).",this.constructor.name,{name:e})}getInitialModel(){const e={},t=this.getSubfields();for(const n of t){const t=this.getInitialValue(n);i()(e,n,t)}return e}getProps(e){return r()(!1,"%s have not implemented `getProps` method (args=%o).",this.constructor.name,{name:e})}getSubfields(e){return r()(!1,"%s have not implemented `getSubfields` method (args=%o).",this.constructor.name,{name:e})}getType(e){return r()(!1,"%s have not implemented `getType` method (args=%o).",this.constructor.name,{name:e})}getValidator(e){return r()(!1,"%s have not implemented `getValidator` method (args=%o).",this.constructor.name,{options:e})}}},51674:function(e,t,n){"use strict";n.d(t,{X:function(){return i},s:function(){return l}});var a=n(59312),r=n(27378);function l(e){class t extends e{getNativeFormProps(){const e=super.getNativeFormProps(),{errorsField:t=this.getErrorsField(),submitField:n=this.getSubmitField()}=e,l=(0,a._T)(e,["errorsField","submitField"]),i=this.getAutoField();return l.children||(l.children=this.getContextSchema().getSubfields().map((e=>r.createElement(i,{key:e,name:e}))).concat([r.createElement(t,{key:"$ErrorsField"}),r.createElement(n,{key:"$SubmitField"})])),l}getAutoField(){return()=>null}getErrorsField(){return()=>null}getSubmitField(){return()=>null}}return t.Quick=l,t.displayName=`Quick${e.displayName}`,t}const i=l(n(6820).I)},23674:function(e,t,n){"use strict";n.d(t,{O:function(){return v},u:function(){return f}});var a=n(13784),r=n.n(a),l=n(30454),i=n.n(l),s=n(56141),o=n.n(s),c=n(50344),u=n.n(c),d=n(48159),m=n.n(d),p=n(96498),h=n.n(p);function f(e){class t extends e{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{error:null,validate:!1,validating:!1,validator:this.getContextSchema().getValidator(e.validator)}),this.onValidate=this.validate=this.onValidate.bind(this),this.onValidateModel=this.validateModel=this.onValidateModel.bind(this)}getContextError(){var e;return null!==(e=super.getContextError())&&void 0!==e?e:this.state.error}getContext(){return Object.assign(Object.assign({},super.getContext()),{validating:this.state.validating})}getNativeFormProps(){const e=super.getNativeFormProps();return m()(e,["onValidate","validate","validator"])}componentDidUpdate(e,t,n){super.componentDidUpdate(e,t,n);const{model:a,schema:r,validate:l,validator:i}=this.props;r!==e.schema||i!==e.validator?this.setState({validator:r.getValidator(i)},(()=>{g(l,this.state.validate)&&this.onValidate()})):!o()(a,e.model)&&g(l,this.state.validate)&&this.onValidateModel(a)}onChange(e,t){g(this.props.validate,this.state.validate)&&this.onValidate(e,t),super.onChange(e,t)}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{error:null,validate:!1,validating:!1})}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.setState({submitted:!0,validate:!0});const t=this.onValidate().then((e=>null!==e?Promise.reject(e):super.onSubmit().catch((e=>{throw this.setState({error:e}),e}))));return t.catch(u()),t}onValidate(e,t){let n=this.getContextModel();return n&&e&&(n=h()(r()(n),e,i()(t),r())),this.onValidateModel(n)}onValidateModel(e){var t=this;const n=this.getModel("validate",e),a=function(e){function t(t,n){return t instanceof Promise?(e(),t.then(n)):n(t)}return t}((()=>{this.setState({validating:!0})}));return a(this.state.validator(n),(function(e){return void 0===e&&(e=null),a(t.props.onValidate(n,e),(function(e){var n;return void 0===e&&(e=null),e=t.props.error===e?null:e,t.setState((t=>t.error!==e||t.validating?{error:e,validating:!1}:null)),Promise.resolve(null!==(n=t.props.error)&&void 0!==n?n:e)}))}))}}return t.Validated=f,t.displayName=`Validated${e.displayName}`,t.defaultProps=Object.assign(Object.assign({},e.defaultProps),{onValidate(e,t){return t},validate:"onChangeAfterSubmit"}),t}function g(e,t){return"onChange"===e||"onChangeAfterSubmit"===e&&t}const v=f(n(6820).I)},76424:function(e,t,n){"use strict";n.d(t,{e:function(){return o}});var a=n(25389),r=n.n(a),l=n(27378),i=n(34361),s=n(68591);function o(e,t){function n(n){const[a,o]=(0,s.U)(n.name,n,t),c=function(e,t,n){if("leaf"===(null==n?void 0:n.kind))return e;const a=""!==t.name,l=Object.keys(e.state).some((e=>null!=t[e]));if(!a&&!l)return e;const i=Object.assign({},e);return a&&(i.name=i.name.concat(t.name)),l&&(i.state=r()(i.state,((e,n)=>{const a=t[n];return null!=a?!!a:e}))),i}(o,n,t),u=l.createElement(e,Object.assign({},n,a));return o===c?u:l.createElement(i.D.Provider,{children:u,value:c})}return n.displayName=`${e.displayName||e.name}Field`,Object.assign(n,{Component:e,options:t})}},34361:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});const a=(0,n(27378).createContext)(null)},6846:function(e,t,n){"use strict";n.d(t,{a:function(){return o}});var a=n(59312),r=n(3996),l=n.n(r),i=n(27378),s=n(68591);function o(e){const t=(0,i.createContext)(e);return Object.assign((function(e){var n,{experimental_absoluteName:r}=e,o=(0,a._T)(e,["experimental_absoluteName"]);const c={absoluteName:r},[u,d]=(0,s.U)(o.name,o,c),m=(0,i.useContext)(t)(u,d);return l()(m,"AutoField received no component for: %s",u.name),"options"in m&&"leaf"===(null===(n=m.options)||void 0===n?void 0:n.kind)?(0,i.createElement)(m.Component,u):(0,i.createElement)(m,o)}),{componentDetectorContext:t,defaultComponentDetector:e})}},11561:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});const a=[],r=new Set,l=Object.assign((function(e){const t=Object.assign({},e);for(const n in e)r.has(n)&&delete t[n];return t}),{register(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach((e=>{r.has(e)||(a.push(e),r.add(e))})),a.sort()},registered:a});l.register("changed","error","errorMessage","field","fieldType","fields","name","onChange","value","disabled","showInlineError","component")},65507:function(e,t,n){"use strict";n.d(t,{m:function(){return d}});const a=/[.[\]]/,r=/"/g;function l(e){return""===e||a.test(e)?`["${e.replace(r,'\\"')}"]`:e}function i(e,t){const n=l(e);return n===e?t?`.${e}`:e:n}const s=/^\["(.*)"]$/,o=/\\"/g;function c(e){const t=s.exec(e);return t?t[1].replace(o,'"'):e}const u=/^([^.[\]]*(?:\.[^.[\]]+)*)(?:\.?(\["(?:(?:[^"]|\\")*?[^\\])?"])\.?(.*))?$/;const d=Object.assign((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=null===t[0],r=[];for(let l=0;l!==t.length;++l){const e=t[l];if(e||0===e)if("string"==typeof e){const n=u.exec(e);if(n){const[,e,a,i]=n;e&&(e.includes(".")?r.push(...e.split(".")):r.push(e)),a&&(r.push(c(a)),i&&(t[l--]=i))}else r.push(e)}else if(Array.isArray(e)){if(e.length){const n=Math.min(l+1,e.length);l-=n,t.splice(l+1,n,...e)}}else r.push(""+e)}return a?r.map(l):r.map(i).join("")}),{escape:l,unescape:c})},68591:function(e,t,n){"use strict";n.d(t,{U:function(){return u}});var a=n(99729),r=n.n(a),l=n(25389),i=n.n(l),s=n(27378),o=n(65507),c=n(55201);function u(e,t,n){var a,l,u;const d=(0,c.c)(),m=(0,o.m)((null==n?void 0:n.absoluteName)?"":d.name,e),p=d.schema.getField(m),h=!1!==(null==n?void 0:n.initialValue),f=h?(0,s.useRef)(!1):{current:!1},g=i()(d.state,((e,n)=>{const a=t[n];return null!=a?!!a:e})),v=!!r()(d.changedMap,m),b=d.schema.getError(m,d.error),_=d.schema.getErrorMessage(m,d.error),E=d.schema.getType(m),y=d.schema.getSubfields(m),O=d.schema.getProps(m),k=null!==(l=null!==(a=t.label)&&void 0!==a?a:O.label)&&void 0!==l?l:"",N=(0,s.useMemo)((()=>d.randomId()),[]),w=(0,s.useCallback)((function(e,t){void 0===t&&(t=m),f.current=!0,d.onChange(t,e)}),[d.onChange,m]),C=r()(d.model,m);let j,x=null!==(u=t.value)&&void 0!==u?u:C;h&&(f.current||(void 0===x?(x=d.schema.getInitialValue(m),j=x):void 0!==t.value&&t.value!==C&&(j=t.value)),(0,s.useEffect)((()=>{void 0!==j&&w(j)}),[]));return[Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:N},g),{changed:v,error:b,errorMessage:_,field:p,fieldType:E,fields:y,onChange:w,value:x}),O),t),{label:k,name:m}),d]}},55201:function(e,t,n){"use strict";n.d(t,{c:function(){return s}});var a=n(3996),r=n.n(a),l=n(27378),i=n(34361);function s(){const e=(0,l.useContext)(i.D);return r()(null!==e,"useForm must be used within a form.\n\nTwo most common reasons for this error are:\n1. Component calling this function doesn't have a parent Form component in the tree.\n2. A duplicate uniforms dependency is installed in node_modules.\n\nFor more info check FAQ: https://uniforms.tools/docs/faq/#useform-must-be-used-within-a-form\n "),e}},57292:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var a=n(95256),r=n(27378);function l(e){let{language:t,replace:n,section:l,source:i}=e;if("object"==typeof i&&"default"in i&&(i=i.default),l){const e=new RegExp(`// <${l}>\\s([\\s\\S]*?)\\s// </${l}>\\s`,"g");i=i.split(e).reduce(((e,t,n)=>n%2==0?e:`${e}\n\n${t}`),"")}if(i=i.replace(/\/\/ <.*?\n/g,""),n)for(const[a,r]of Object.entries(n))i=i.replace(new RegExp(a,"gs"),r);return i=i.trim(),i.includes("\n")||(i+="\n"),r.createElement(a.Z.pre,null,r.createElement(a.Z.code,{children:i,className:`language-${t}`,mdxType:"code",originalType:"code",parentName:"pre"}))}},23197:function(e,t,n){"use strict";n.d(t,{T:function(){return T}});var a=n(27378),r=n(23615),l=n.n(r);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var o=(0,a.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,l=e.size,o=void 0===l?24:l,c=s(e,["color","size"]);return a.createElement("svg",i({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},c),a.createElement("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),a.createElement("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),a.createElement("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"}))}));o.propTypes={color:l().string,size:l().oneOfType([l().string,l().number])},o.displayName="Box";var c=o;function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},u.apply(this,arguments)}function d(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var m=(0,a.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,l=e.size,i=void 0===l?24:l,s=d(e,["color","size"]);return a.createElement("svg",u({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),a.createElement("polyline",{points:"16 18 22 12 16 6"}),a.createElement("polyline",{points:"8 6 2 12 8 18"}))}));m.propTypes={color:l().string,size:l().oneOfType([l().string,l().number])},m.displayName="Code";var p=m;function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},h.apply(this,arguments)}function f(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var g=(0,a.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,l=e.size,i=void 0===l?24:l,s=f(e,["color","size"]);return a.createElement("svg",h({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),a.createElement("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),a.createElement("path",{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"}),a.createElement("path",{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"}))}));g.propTypes={color:l().string,size:l().oneOfType([l().string,l().number])},g.displayName="Database";var v=g,b=n(80912),_=n(57292),E=n(633),y=n(4940),O=n(59150),k=n(46867),N=n(25773),w=n(60042),C=n.n(w);function j(e){let{active:t,icon:n,tooltipText:r,...l}=e;return a.createElement("span",(0,N.Z)({},l,{className:C()(y.Z.tooltip,y.Z.item,t&&y.Z.active)}),r&&a.createElement("span",{className:y.Z["tooltip-text"]},r),n)}function x(e){let{activeToggle:t,items:n,onClick:r}=e;return a.createElement("section",{className:C()(y.Z.toggler,y.Z.header)},n.map(((e,n)=>a.createElement(j,(0,N.Z)({active:t===n,key:n,onClick:r(n)},e)))))}function P(e){let{children:t,group:n,tabsItems:r,togglerItems:l}=e;const{activeTab:i,onTab:s}=(0,O.Y)(n),[o,c]=(0,a.useState)(0);return a.createElement("section",{className:y.Z["toggler-tabs"]},a.createElement("section",{className:y.Z.header},a.createElement(k.TX,{items:r,onTab:s,activeTab:i}),a.createElement(x,{items:l,onClick:e=>()=>{c(e)},activeToggle:o})),t({tab:r[i],toggle:l[o]}))}const F=[{name:"Semantic",value:"semantic"},{name:"Material",value:"material"},{name:"MUI",value:"mui"},{name:"Bootstrap4",value:"bootstrap4"},{name:"Bootstrap5",value:"bootstrap5"},{name:"AntD",value:"antd"},{name:"Unstyled",value:"unstyled"}],M=[{icon:a.createElement(c,null),name:"Example",tooltipText:"Show example"},{icon:a.createElement(p,null),name:"Code",tooltipText:"Show source code"},{icon:a.createElement(v,null),name:"Schema",tooltipText:"Show schema"}];function T(e){let{code:{default:t},example:n,schema:{default:r}}=e;return a.createElement(P,{group:"examples",tabsItems:F,togglerItems:M},(e=>{let{tab:{value:l},toggle:{name:i}}=e;switch(i){case"Code":return a.createElement(_.f,{language:"tsx",replace:{"'[^']*?/universal'":`'uniforms-${l}'`},source:t});case"Example":return a.createElement(b.nN.Provider,{value:l},a.createElement(E.n,null,a.createElement(n,null)));case"Schema":return a.createElement(_.f,{language:"tsx",source:r});default:return null}}))}},633:function(e,t,n){"use strict";n.d(t,{n:function(){return d}});var a=n(25773),r=n(27378),l=n(4940),i=n(99729),s=n.n(i);function o(e){const[t,n]=(0,r.useState)(300),a=(0,r.useRef)(),l=(0,r.useCallback)((()=>function(e,t){const n=s()(e.current,"node.contentDocument.body.scrollHeight",0);0!==n&&t(n)}(a,n)),[a,n]);return(0,r.useEffect)((()=>{const e=setInterval(l,1e3);return()=>clearInterval(e)}),[l,...e]),{onLoad:l,ref:a,style:{height:t}}}var c=n(80912),u=n(37126);function d(e){const t=(0,r.useContext)(c.nN),n=o([e.children]);return r.createElement("div",{className:l.Z["form-wrapper"]},r.createElement(u.d,(0,a.Z)({frameProps:n,theme:t},e)))}},37126:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return Playground},d:function(){return PlaygroundWrap}});var _home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(25773),antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(64222),classnames__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(60042),classnames__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__),lodash_omit__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(48159),lodash_omit__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(27378),react_frame_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5766),uniforms__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23674),uniforms__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(34361),uniforms__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(55201),uniforms__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(76424),_index_module_css__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4940),_lib_presets__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5037),_lib_schema__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5413),_lib_styles__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(27611),_lib_universal__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(80912),_lib_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(37309);class Playground extends react__WEBPACK_IMPORTED_MODULE_2__.Component{static getDerivedStateFromError(e){return{error:e}}constructor(){super(...arguments);const e=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.clean((0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.mB)());try{_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.validate(e)}catch(t){t.details.forEach((t=>{let{name:n}=t;e[n]=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.getDefinition(n).defaultValue}))}this.state=e,this.onChange=this.onChange.bind(this)}componentDidMount(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}componentDidUpdate(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}onChange(e,t){"preset"===e&&this.setState((e=>({props:{...e.props,schema:_lib_presets__WEBPACK_IMPORTED_MODULE_5__.Z[t]}}))),this.setState({error:void 0,[e]:t})}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundForm,{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z.playground,model:this.state,onChange:this.onChange,schema:_lib_schema__WEBPACK_IMPORTED_MODULE_6__.J},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-column"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement("nav",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-toolbar"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"preset"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"theme"})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPropsField,{name:"props",spellCheck:!1})),this.state.error?react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",{children:""+this.state.error}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPreviewField,{name:"props",nameTheme:"theme"}))}}class PlaygroundForm extends uniforms__WEBPACK_IMPORTED_MODULE_10__.O{getContextState(){return{...super.getContextState(),theme:this.props.model.theme}}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(uniforms__WEBPACK_IMPORTED_MODULE_11__.D.Provider,{value:this.getContext()},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",lodash_omit__WEBPACK_IMPORTED_MODULE_1___default()(this.getNativeFormProps(),["onSubmit"])))}}const PlaygroundModelDebug=()=>{const{model:e}=(0,uniforms__WEBPACK_IMPORTED_MODULE_12__.c)();return react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("code",null,`const model = ${JSON.stringify(e,null,2)};`)))};class PlaygroundPreview extends react__WEBPACK_IMPORTED_MODULE_2__.Component{constructor(){super(...arguments),this._schema=eval(`(${this.props.value.schema})`)}UNSAFE_componentWillReceiveProps(props){this.props.value.schema!==props.value.schema&&(this._schema=eval(`(${props.value.schema})`))}render(){const{AutoFields:e,AutoForm:t,ErrorsField:n,SubmitField:a}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[this.props.theme||"unstyled"],{asyncOnSubmit:r,asyncOnValidate:l,schema:i,...s}=this.props.value;return s.schema=this._schema,r&&(s.onSubmit=()=>new Promise((e=>{setTimeout(e,1e3)}))),l&&(s.onValidate=(e,t)=>new Promise((e=>{setTimeout((()=>{e(t)}),1e3)}))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:this.props.theme},this.props.errorMessage?react__WEBPACK_IMPORTED_MODULE_2__.createElement("span",{children:this.props.errorMessage}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(t,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({key:(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.nN)(i)},s),react__WEBPACK_IMPORTED_MODULE_2__.createElement(e,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(n,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(a,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundModelDebug,null)))}}const PlaygroundPreviewField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundPreview);class PlaygroundProps extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{onChange:e,schema:t,theme:n,value:a}=this.props,r="antd"===n,l="bootstrap4"===n,i="material"===n,s="semantic"===n,{AutoForm:o,BoolField:c,ErrorsField:u,LongTextField:d,NumField:m}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[n||"unstyled"];return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:n},react__WEBPACK_IMPORTED_MODULE_2__.createElement(o,{autosave:!0,autosaveDelay:100,model:a,onSubmit:e,schema:t},react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"autosave"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(m,{name:"autosaveDelay",disabled:!a.autosave}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"disabled"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"readOnly"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"label"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"placeholder"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"showInlineError",disabled:!(r||l||i||s)}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"asyncOnSubmit"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"asyncOnValidate"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(d,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({name:"schema"},i&&{fullWidth:!0,rowsMax:20})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,null)))}}const PlaygroundPropsField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundProps);class PlaygroundSelect extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{options:e,onChange:t,value:n}=this.props;return react__WEBPACK_IMPORTED_MODULE_2__.createElement("select",{onChange:e=>t(e.target.value),value:n},e.map((e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement("option",{key:e.key??e.value,value:e.value},e.label??e.value))))}}const PlaygroundSelectField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundSelect);class PlaygroundWrap extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{children:e,frameProps:t,theme:n}=this.props,a=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,e,_lib_styles__WEBPACK_IMPORTED_MODULE_7__.Z[n]);if("material"===n||"mui"===n)return react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{children:a,className:classnames__WEBPACK_IMPORTED_MODULE_0___default()("frame-root",_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"])});let r=a;return"antd"===n&&(r=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.Kr,null,(e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__.default,{getPopupContainer:()=>e.document.body},a)))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.ZP,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({children:r,className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"]},t))}}},46867:function(e,t,n){"use strict";n.d(t,{TX:function(){return o},mQ:function(){return u}});var a=n(60042),r=n.n(a),l=n(27378),i=n(4940),s=n(59150);function o(e){let{activeTab:t,items:n,onTab:a}=e;return l.createElement("div",{className:i.Z.tabs},n.map(((e,n)=>{let{name:r}=e;return l.createElement(c,{active:t===n,key:n,onClick:()=>a(n)},r)})))}function c(e){let{active:t,children:n,onClick:a}=e;return l.createElement("span",{className:r()(i.Z.item,t&&i.Z.active),onClick:a,onKeyDown:e=>"Enter"===e.key&&a(),role:"button",tabIndex:0},n)}function u(e){let{children:t,group:n,tabs:a}=e;const{activeTab:r,onTab:i}=(0,s.Y)(n);return l.createElement(l.Fragment,null,l.createElement(o,{activeTab:r,items:a,onTab:i}),t(a[r]))}},5037:function(e,t){"use strict";const n=e=>e[0].slice(5,-3).replace(/([\r\n]+) {4}/g,"$1"),a={"Welcome!":n` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + date: { type: Date, defaultValue: new Date() }, + adult: Boolean, + size: { + type: String, + defaultValue: 'm', + allowedValues: ['xs', 's', 'm', 'l', 'xl'], + }, + rating: { + type: Number, + allowedValues: [1, 2, 3, 4, 5], + uniforms: { checkboxes: true }, + }, + friends: { type: Array, minCount: 1 }, + 'friends.$': Object, + 'friends.$.name': { type: String, min: 3 }, + 'friends.$.age': { type: Number, min: 0, max: 150 }, + }) + }) + `,"Address (JSONSchema)":n` + (() => { + const ajv = new Ajv({ allErrors: true, useDefaults: true, keywords: ["uniforms"] }); + const schema = { + title: 'Address', + type: 'object', + properties: { + city: { type: 'string' }, + state: { type: 'string' }, + street: { type: 'string' }, + zip: { type: 'string', pattern: '[0-9]{5}' }, + }, + required: ['street', 'zip', 'state'], + }; + + function createValidator(schema) { + const validator = ajv.compile(schema); + + return (model) => { + validator(model); + + if (validator.errors && validator.errors.length) { + return { details: validator.errors }; + } + }; + } + + const validator = createValidator(schema); + + return new JSONSchemaBridge({ schema, validator }); + })() + `,"Address (SimpleSchema)":n` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + city: { + type: String, + optional: true, + max: 50, + }, + state: String, + street: { type: String, max: 100 }, + zip: { + type: String, + regEx: /^[0-9]{5}$/, + }, + }) + }) + `,"Address (Zod)":n` + new ZodBridge({ + schema: z.object({ + city: z.string().max(50).optional(), + state: z.string(), + street: z.string().max(100), + zip: z.string().regex(/^[0-9]{5}$/), + }) + }) + `,"All Fields (SimpleSchema)":n` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + text: { type: String }, + num: { type: Number }, + bool: { type: Boolean }, + nested: { type: Object }, + 'nested.text': { type: String }, + date: { type: Date }, + list: { type: Array }, + 'list.$': { + type: String, + uniforms: { label: 'List Text', placeholder: 'List Text Placeholder' }, + }, + select: { + type: String, + uniforms: { + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + radio: { + type: String, + uniforms: { + checkboxes: true, + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + }) + }) + `,"All Fields (Zod)":n` + new ZodBridge({ + schema: z.object({ + text: z.string(), + num: z.number(), + bool: z.boolean(), + nested: z.object({ text: z.string() }), + date: z.date(), + // TODO: Custom label and placeholder. + list: z.array(z.string()), + select: z.enum(['a', 'b']), + // TODO: Enums with custom props. + radio: z.enum(['a', 'b']), + }) + }) + `};t.Z=a},5413:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return bridge},f:function(){return schema}});var ajv__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(86236),ajv__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(ajv__WEBPACK_IMPORTED_MODULE_0__),message_box__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(28622),simpl_schema__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(13762),simpl_schema__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(simpl_schema__WEBPACK_IMPORTED_MODULE_2__),uniforms__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(11561),uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(73633),uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(12005),uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(48616),zod__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(84200),_presets__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5037),_universal__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(80912);uniforms__WEBPACK_IMPORTED_MODULE_8__.z.register("const");const scope="undefined"==typeof window?__webpack_require__.g:window;simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().extendOptions(["uniforms"]),scope.Ajv=ajv__WEBPACK_IMPORTED_MODULE_0___default(),scope.JSONSchemaBridge=uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__.j,scope.SimpleSchema=simpl_schema__WEBPACK_IMPORTED_MODULE_2___default(),scope.SimpleSchema2Bridge=uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V,scope.ZodBridge=uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__.K,scope.z=zod__WEBPACK_IMPORTED_MODULE_9__.z,message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:""}}});const propsSchema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({autosave:{optional:!0,type:Boolean},autosaveDelay:{optional:!0,type:simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().Integer},disabled:{optional:!0,type:Boolean},label:{optional:!0,type:Boolean},placeholder:{optional:!0,type:Boolean},readOnly:{optional:!0,type:Boolean},showInlineError:{optional:!0,type:Boolean},asyncOnSubmit:{optional:!0,type:Boolean,label:"Async onSubmit (1 sec)"},asyncOnValidate:{optional:!0,type:Boolean,label:"Async onValidate (1 sec)"},schema:{optional:!0,type:String,custom(){try{return void eval(`(${this.value??""})`)}catch(error){const e=error instanceof Error?error.message:String(error);return message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:e}}}),"syntax"}}}}),propsBridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:propsSchema}),schema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({preset:{type:String,defaultValue:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0],allowedValues:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)},props:{type:Object,blackbox:!0,defaultValue:{autosave:!1,autosaveDelay:100,disabled:!1,label:!0,placeholder:!1,readOnly:!1,schema:_presets__WEBPACK_IMPORTED_MODULE_6__.Z[Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0]],showInlineError:!1,asyncOnSubmit:!1,asyncOnValidate:!1},uniforms:{schema:propsBridge}},theme:{type:String,uniforms:{transform:e=>`uniforms-${e}`},defaultValue:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)[0],allowedValues:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)}}),bridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:schema})},27611:function(e,t,n){"use strict";var a=n(27378);const r=a.createElement("style",{children:'\n body {\n margin: 0;\n }\n\n textarea[name="schema"] {\n font-family: monospace !important;\n min-height: 20em !important;\n }\n\n .frame-root {\n padding: 1rem !important;\n }\n',key:"common"}),l=e=>e.map(((e,t)=>a.createElement("link",{key:t,rel:"stylesheet",href:e}))).concat(r),i={antd:l(["https://cdnjs.cloudflare.com/ajax/libs/antd/4.4.0/antd.min.css"]),bootstrap4:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css"]),bootstrap5:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css"]),material:l([]),mui:l([]),semantic:l(["https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.7/semantic.min.css"]),unstyled:l([])};t.Z=i},59150:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var a=n(27378);const r=Object.create(null),l=Object.create(null);function i(e){const[t,n]=(0,a.useState)(r[e]||0),i=(0,a.useCallback)((t=>function(e,t){r[e]=t,l[e].forEach((e=>{e(t)}))}(e,t)),[e]);return(0,a.useEffect)((()=>function(e,t){return void 0===l[e]&&(r[e]=0,l[e]=[]),l[e].push(t),()=>{l[e].splice(l[e].indexOf(t),1)}}(e,n)),[e]),{activeTab:t,onTab:i}}},80912:function(e,t,n){"use strict";n.d(t,{Pt:function(){return Gr},UE:function(){return Qr},NE:function(){return Hr},ME:function(){return Jr},yc:function(){return Xr},hI:function(){return Yr},mg:function(){return el},hl:function(){return tl},nv:function(){return nl},nN:function(){return rl},np:function(){return al}});var a={};n.r(a),n.d(a,{AutoField:function(){return ve},AutoFields:function(){return _e},AutoForm:function(){return Te},BaseForm:function(){return Oe},BoolField:function(){return F},DateField:function(){return Z},ErrorField:function(){return Ze},ErrorsField:function(){return Ce},HiddenField:function(){return Se},ListAddField:function(){return K},ListDelField:function(){return G},ListField:function(){return ae},ListItemField:function(){return ee},LongTextField:function(){return Re},NestField:function(){return re},NumField:function(){return ie},QuickForm:function(){return xe},RadioField:function(){return ue},SelectField:function(){return he},SubmitField:function(){return je},TextField:function(){return ge},ValidatedForm:function(){return Fe},ValidatedQuickForm:function(){return Me},wrapField:function(){return P}});var r={};n.r(r),n.d(r,{AutoField:function(){return pt},AutoFields:function(){return ht},AutoForm:function(){return Ot},BaseForm:function(){return ft},BoolField:function(){return Ke},DateField:function(){return Ge},ErrorField:function(){return kt},ErrorsField:function(){return gt},HiddenField:function(){return Nt},ListAddField:function(){return Je},ListDelField:function(){return Ye},ListField:function(){return tt},ListItemField:function(){return et},LongTextField:function(){return wt},NestField:function(){return nt},NumField:function(){return at},QuickForm:function(){return _t},RadioField:function(){return it},SelectField:function(){return dt},SubmitField:function(){return bt},TextField:function(){return mt},ValidatedForm:function(){return Et},ValidatedQuickForm:function(){return yt},gridClassName:function(){return $e},wrapField:function(){return Ve}});var l={};n.r(l),n.d(l,{AutoField:function(){return Ht},AutoFields:function(){return Jt},AutoForm:function(){return ln},BaseForm:function(){return Xt},BoolField:function(){return Mt},DateField:function(){return Dt},ErrorField:function(){return sn},ErrorsField:function(){return Yt},HiddenField:function(){return on},ListAddField:function(){return St},ListDelField:function(){return Rt},ListField:function(){return Bt},ListItemField:function(){return Lt},LongTextField:function(){return cn},NestField:function(){return zt},NumField:function(){return Wt},QuickForm:function(){return nn},RadioField:function(){return Vt},SelectField:function(){return Qt},SubmitField:function(){return tn},TextField:function(){return Gt},ValidatedForm:function(){return an},ValidatedQuickForm:function(){return rn},gridClassName:function(){return Pt},wrapField:function(){return Ft}});var i={};n.r(i),n.d(i,{AutoField:function(){return $n},AutoFields:function(){return Vn},AutoForm:function(){return Yn},BaseForm:function(){return Kn},BoolField:function(){return _n},DateField:function(){return kn},ErrorField:function(){return ea},ErrorsField:function(){return qn},HiddenField:function(){return ta},ListAddField:function(){return jn},ListDelField:function(){return Pn},ListField:function(){return Mn},ListItemField:function(){return Fn},LongTextField:function(){return na},NestField:function(){return Tn},NumField:function(){return In},QuickForm:function(){return Hn},RadioField:function(){return Rn},SelectField:function(){return Wn},SubmitField:function(){return Gn},TextField:function(){return Un},ValidatedForm:function(){return Jn},ValidatedQuickForm:function(){return Xn},wrapField:function(){return bn}});var s={};n.r(s),n.d(s,{AutoField:function(){return Aa},AutoFields:function(){return Ra},AutoForm:function(){return Va},BaseForm:function(){return La},BoolField:function(){return da},DateField:function(){return fa},ErrorField:function(){return Ka},ErrorsField:function(){return Ba},HiddenField:function(){return qa},ListAddField:function(){return _a},ListDelField:function(){return Oa},ListField:function(){return Na},ListItemField:function(){return ka},LongTextField:function(){return Qa},NestField:function(){return wa},NumField:function(){return Ca},QuickForm:function(){return Wa},RadioField:function(){return Ma},SelectField:function(){return Za},SubmitField:function(){return za},TextField:function(){return Sa},ValidatedForm:function(){return Ua},ValidatedQuickForm:function(){return $a},wrapField:function(){return ua}});var o={};n.r(o),n.d(o,{AutoField:function(){return Ga.Z},AutoFields:function(){return Ha},AutoForm:function(){return Ja.Z},BaseForm:function(){return Xa.Z},BoolField:function(){return Ya.Z},DateField:function(){return er.Z},ErrorField:function(){return tr},ErrorsField:function(){return nr.Z},HiddenField:function(){return ar},ListAddField:function(){return rr.Z},ListDelField:function(){return lr.Z},ListField:function(){return ir.Z},ListItemField:function(){return sr.Z},LongTextField:function(){return or},NestField:function(){return cr.Z},NumField:function(){return ur.Z},QuickForm:function(){return dr.Z},RadioField:function(){return mr.Z},SelectField:function(){return pr.Z},SubmitField:function(){return hr.Z},TextField:function(){return fr.Z},ValidatedForm:function(){return gr.Z},ValidatedQuickForm:function(){return vr.Z}});var c={};n.r(c),n.d(c,{AutoField:function(){return Sr},AutoFields:function(){return Ar},AutoForm:function(){return $r},BaseForm:function(){return Rr},BoolField:function(){return br},DateField:function(){return yr},ErrorField:function(){return Vr},ErrorsField:function(){return Lr},HiddenField:function(){return Kr},ListAddField:function(){return Or},ListDelField:function(){return kr},ListField:function(){return wr},ListItemField:function(){return Nr},LongTextField:function(){return qr.Z},NestField:function(){return Cr},NumField:function(){return jr},QuickForm:function(){return zr},RadioField:function(){return Fr},SelectField:function(){return Ir},SubmitField:function(){return Br},TextField:function(){return Zr},ValidatedForm:function(){return Wr},ValidatedQuickForm:function(){return Ur}});var u=n(25773),d=n(27378),m=n(3996),p=n.n(m),h=n(6846),f=n(59312),g=n(30219),v=n.n(g),b=n(21473),_=n.n(b),E=n(98591),y=n(56369),O=n(11561),k=n(76424),N=n(31115),w=n.n(N),C=n(5041),j=n(62004);const x={marginBottom:"12px"};function P(e,t){let{colon:n,error:a,errorMessage:r,extra:l,help:i,id:s,info:o,label:c,labelCol:u,required:m,showInlineError:p,validateStatus:h,wrapperCol:f,wrapperStyle:g=x}=e;const v=!!c&&d.createElement("span",null,c,!!o&&d.createElement("span",null,"\xa0",d.createElement(j.default,{title:o},d.createElement(w(),null))));return d.createElement(C.Z.Item,{colon:n,hasFeedback:!0,help:i||p&&!!a&&r,extra:l,htmlFor:s,label:v,labelCol:u,required:m,style:g,validateStatus:a?"error":h,wrapperCol:f},t)}O.z.register("checkboxes","colon","disableItem","labelCol","validateStatus","wrapperCol","wrapperStyle");var F=(0,k.e)((function(e){var{checkbox:t=!1,checkedChildren:n=d.createElement(v(),null),disabled:a,inputRef:r,name:l,onChange:i,readOnly:s,unCheckedChildren:o=d.createElement(_(),null),value:c}=e,u=(0,f._T)(e,["checkbox","checkedChildren","disabled","inputRef","name","onChange","readOnly","unCheckedChildren","value"]);const m=t?E.Z:y.Z;return P(u,d.createElement(m,Object.assign({checked:c||!1,checkedChildren:n,disabled:a,name:l,onChange:()=>s?void 0:i(!c),ref:r,unCheckedChildren:o},(0,O.z)(u))))}),{kind:"leaf"}),M=n(82290),T=n(61320),I=n.n(T);const D={width:"100%"};var Z=(0,k.e)((function(e){var{showTime:t=!0,style:n=D}=e,a=(0,f._T)(e,["showTime","style"]);return P(a,d.createElement(M.Z,Object.assign({disabled:a.disabled,inputReadOnly:a.readOnly,name:a.name,onChange:e=>{a.readOnly||a.onChange(e?e.toDate():void 0)},placeholder:a.placeholder,ref:a.inputRef,showTime:t,style:n,value:a.value&&I()(a.value)},(0,O.z)(a))))}),{kind:"leaf"}),S=n(60042),A=n.n(S),R=n(94037),L=n.n(R),B=n(76676),z=n(30454),W=n.n(z),U=n(65507),$=n(68591);const V={width:"100%"};var K=(0,k.e)((function(e){var{disabled:t,icon:n=d.createElement(L(),null),name:a,readOnly:r,size:l="small",style:i=V,type:s="dashed",value:o}=e,c=(0,f._T)(e,["disabled","icon","name","readOnly","size","style","type","value"]);const u=(0,U.m)(null,a),m=(0,U.m)(u.slice(0,-1)),p=(0,$.U)(m,{},{absoluteName:!0})[0],h=!(t||p.maxCount<=p.value.length);return d.createElement(B.default,Object.assign({},(0,O.z)(c),{disabled:!h,icon:n,onClick:()=>{r||p.onChange(p.value.concat([W()(o)]))},size:l,style:i,type:s}))}),{initialValue:!1,kind:"leaf"}),q=n(85221),Q=n.n(q);var G=(0,k.e)((function(e){var{disabled:t,icon:n=d.createElement(Q(),null),name:a,readOnly:r,shape:l="circle",size:i="small",type:s="ghost"}=e,o=(0,f._T)(e,["disabled","icon","name","readOnly","shape","size","type"]);const c=(0,U.m)(null,a),u=+c[c.length-1],m=(0,U.m)(c.slice(0,-1)),p=(0,$.U)(m,{},{absoluteName:!0})[0];return t||(t=r||p.minCount>=p.value.length),d.createElement(B.default,Object.assign({},(0,O.z)(o),{disabled:t,icon:n,onClick:()=>{const e=p.value.slice();e.splice(u,1),p.onChange(e)},shape:l,size:i,type:s}))}),{initialValue:!1,kind:"leaf"});const H={float:"right",marginBottom:"10px",marginLeft:"10px",marginRight:"6px",width:"20px"},J={marginBottom:"24px",overflow:"hidden"},X={borderBottom:"1px solid #DDD",height:"20px",marginTop:"-8px"},Y={width:"100%"};var ee=(0,k.e)((function(e){let{children:t=d.createElement(ve,{label:null,name:""})}=e;return d.createElement("div",null,d.createElement("div",{style:H},d.createElement(G,{className:"top aligned",name:""})),d.createElement("div",{style:J},d.createElement("div",{style:X})),d.createElement("div",{style:Y},t))}));const te={marginBottom:"5px",marginTop:"5px",padding:"10px"},ne={borderColor:"rgb(255, 85, 0)"};var ae=(0,k.e)((function(e){var{children:t=d.createElement(ee,{name:"$"}),className:n,error:a,errorMessage:r,info:l,itemProps:i,label:s,labelCol:o,showInlineError:c,style:u=te,value:m,wrapperCol:p}=e,h=(0,f._T)(e,["children","className","error","errorMessage","info","itemProps","label","labelCol","showInlineError","style","value","wrapperCol"]);const g=a?u?Object.assign(Object.assign({},ne),u):ne:u;return d.createElement("div",Object.assign({},(0,O.z)(h),{style:g,className:A()([n,"ant-list","ant-list-bordered"])}),!!s&&d.createElement("div",null,s,!!l&&d.createElement("span",null,"\xa0",d.createElement(j.default,{title:l},d.createElement(w(),null)))),!(!a||!c)&&d.createElement("div",null,r),null==m?void 0:m.map(((e,n)=>d.Children.map(t,((e,t)=>{var a;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n),labelCol:o,wrapperCol:p},i)):e})))),d.createElement(K,{name:"$"}))}));var re=(0,k.e)((function(e){var{children:t,error:n,errorMessage:a,fields:r,itemProps:l,label:i,showInlineError:s}=e,o=(0,f._T)(e,["children","error","errorMessage","fields","itemProps","label","showInlineError"]);return d.createElement("div",Object.assign({},(0,O.z)(o)),i&&d.createElement("label",null,i),!(!n||!s)&&d.createElement("div",null,a),t||r.map((e=>d.createElement(ve,Object.assign({key:e,name:e},l)))))})),le=n(15425);var ie=(0,k.e)((function(e){return P(e,d.createElement(le.Z,Object.assign({disabled:e.disabled,max:e.max,min:e.min,name:e.name,onChange:t=>{const n=(e.decimal?parseFloat:parseInt)(""+t);e.onChange(isNaN(n)?void 0:n)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),style:{width:"100%"},value:e.value},(0,O.z)(e))))}),{kind:"leaf"}),se=n(58946);const oe="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,ce={display:"block"};var ue=(0,k.e)((function(e){var t,n,a;return P(e,d.createElement(se.ZP.Group,Object.assign({},(0,O.z)(e),{disabled:e.disabled,name:e.name,onChange:t=>{e.readOnly||e.onChange(t.target.value)},value:null!==(t=e.value)&&void 0!==t?t:"",options:null===(n=e.options)||void 0===n?void 0:n.map((e=>{var t;return Object.assign(Object.assign({},e),{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),null===(a=e.options)||void 0===a?void 0:a.map((t=>{var n,a,r;return d.createElement(se.ZP,{id:`${e.id}-${r=t.value,oe(encodeURIComponent(r)).replace(/=+$/,"")}`,key:null!==(n=t.key)&&void 0!==n?n:t.value,style:ce,value:t.value,disabled:t.disabled},null!==(a=t.label)&&void 0!==a?a:t.value)}))))}),{kind:"leaf"}),de=n(99388),me=n(69601),pe=n(92049);var he=(0,k.e)((function(e){var t,n;const a=e.fieldType===Array?de.default:me.default,r=(0,O.z)(e);return P(e,e.checkboxes?d.createElement("span",Object.assign({},r),d.createElement(a,Object.assign({},r,{disabled:e.disabled,name:e.name,onChange:t=>{e.readOnly||e.onChange(e.fieldType===Array?t:t.target.value)},options:null===(t=e.options)||void 0===t?void 0:t.map((e=>{var t;return Object.assign(Object.assign({},e),{label:null!==(t=e.label)&&void 0!==t?t:e.value})})),value:e.value}))):d.createElement(pe.Z,Object.assign({allowClear:!e.required,disabled:e.disabled,mode:e.fieldType===Array?"multiple":void 0,name:e.name,onChange:t=>{e.readOnly||e.onChange(t)},placeholder:e.placeholder,ref:e.inputRef,value:e.fieldType===Array?Array.isArray(e.value)?e.value.filter((e=>void 0!==e)):[]:e.value},r),null===(n=e.options)||void 0===n?void 0:n.map((t=>{var n,a,r;return d.createElement(pe.Z.Option,{disabled:t.disabled,key:null!==(n=t.key)&&void 0!==n?n:t.value,value:t.value,id:`${e.id}-${null!==(a=t.key)&&void 0!==a?a:escape(t.value)}`},null!==(r=t.label)&&void 0!==r?r:t.value)}))))}),{kind:"leaf"}),fe=n(74105);var ge=(0,k.e)((function(e){var t,n;return P(e,d.createElement(fe.Z,Object.assign({disabled:e.disabled,name:e.name,onChange:t=>e.onChange(t.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(t=e.type)&&void 0!==t?t:"text",value:null!==(n=e.value)&&void 0!==n?n:""},(0,O.z)(e))))}),{kind:"leaf"});var ve=(0,h.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?ue:he;switch(e.fieldType){case Array:return ae;case Boolean:return F;case Date:return Z;case Number:return ie;case Object:return re;case String:return ge}return p()(!1,"Unsupported field type: %s",e.fieldType)})),be=n(55201);function _e(e){var{element:t=d.Fragment,fields:n,omitFields:a=[],showInlineError:r}=e,l=(0,f._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(t,l,(null!=n?n:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(ve,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Ee=n(39850),ye=n(6820);var Oe=function e(t){class n extends t{getNativeFormProps(){const e=super.getNativeFormProps(),{className:t,layout:n="vertical"}=e,a=(0,f._T)(e,["className","layout"]);return Object.assign(Object.assign({},a),{className:A()("ant-form","ant-form-"+n,t)})}}return n.AntD=e,n.displayName=`AntD${t.displayName}`,n}(ye.I),ke=n(51674);const Ne={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},we={margin:"3px"};var Ce=function(e){var{children:t,style:n=Ne}=e,a=(0,f._T)(e,["children","style"]);const{error:r,schema:l}=(0,be.c)();return r||t?d.createElement("div",Object.assign({style:n},(0,O.z)(a)),t,d.createElement("ul",null,l.getErrorMessages(r).map(((e,t)=>d.createElement("li",{key:t,style:we},e))))):null};var je=function(e){var{disabled:t,inputRef:n,value:a="Submit"}=e,r=(0,f._T)(e,["disabled","inputRef","value"]);const{error:l,state:i}=(0,be.c)();return d.createElement(B.default,Object.assign({disabled:void 0===t?!(!l&&!i.disabled):t,htmlType:"submit",ref:n,type:"primary"},r),a)};var xe=function e(t){class n extends(ke.X.Quick(t)){getAutoField(){return ve}getErrorsField(){return Ce}getSubmitField(){return je}}return n.Quick=e,n}(Oe),Pe=n(23674);var Fe=function e(t){class n extends(Pe.O.Validated(t)){}return n.Validated=e,n}(Oe),Me=Fe.Validated(xe.Quick(Oe));var Te=function e(t){class n extends(Ee.N.Auto(t)){}return n.Auto=e,n}(Me);const Ie={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},De={margin:"3px"};var Ze=(0,k.e)((function(e){var{children:t,error:n,errorMessage:a,style:r=Ie}=e,l=(0,f._T)(e,["children","error","errorMessage","style"]);return n?d.createElement("div",Object.assign({style:r},(0,O.z)(l)),t||d.createElement("div",{style:De},a)):null}),{initialValue:!1,kind:"leaf"});function Se(e){var t,{value:n}=e,a=(0,f._T)(e,["value"]);const r=(0,$.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==n&&n!==r.value&&r.onChange(n)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(t=null!=n?n:r.value)&&void 0!==t?t:""},(0,O.z)(r)))}var Ae=n(10777);var Re=(0,k.e)((function(e){var t,{rows:n=5}=e,a=(0,f._T)(e,["rows"]);return P(a,d.createElement(Ae.default,Object.assign({disabled:a.disabled,name:a.name,onChange:e=>a.onChange(e.target.value),placeholder:a.placeholder,readOnly:a.readOnly,ref:a.inputRef,rows:n,value:null!==(t=a.value)&&void 0!==t?t:""},(0,O.z)(a))))}),{kind:"leaf"}),Le=n(48159),Be=n.n(Le);function ze(e,t,n){const a="xs"===e?"":`${e}-`;return"label"===n?`col-${a}${t}`:`col-${a}${12-t}`}const We={xs:1,sm:2,md:3,lg:4,xl:5};function Ue(e,t){return We[e]-We[t]}function $e(e,t){return"number"==typeof e?ze("xs",e,t):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl},e)),Object.keys(e).sort(Ue).map((n=>ze(n,e[n],t))).join(" ")):"":ze("xs",parseInt(e),t)}function Ve(e,t){var{changed:n,className:a,disabled:r,error:l,errorMessage:i,grid:s,help:o,helpClassName:c,id:u,label:m,labelClassName:p,required:h,showInlineError:g,wrapClassName:v}=e,b=(0,f._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const _=!(!s&&!v),E=!(!l||!g)&&d.createElement("span",{className:"form-text text-danger"},i),y=!!o&&d.createElement("span",{className:A()("form-text",c||"text-muted")},o),k=!l&&n;return d.createElement("div",Object.assign({className:A()(a,"form-group",{"is-invalid":l,"is-valid":k,disabled:r,required:h,row:s})},Be()((0,O.z)(b),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&d.createElement("label",{htmlFor:u,className:A()({"col-form-label":s,"text-danger":l,"text-success":k},$e(s,"label"),p)},m),_&&d.createElement("div",{className:A()(v,$e(s,"input"))},t,y,E),!_&&t,!_&&y,!_&&E)}var Ke=(0,k.e)((function(e){var{onChange:t}=e,n=(0,f._T)(e,["onChange"]);const{disabled:a,error:r,inline:l,inputClassName:i,inputRef:s,label:o,labelBefore:c,name:u,readOnly:m,value:p}=n;return Ve(Object.assign(Object.assign({},n),{label:c,value:n.value}),d.createElement("div",{className:A()(i,"form-check","checkbox",{"custom-control-inline":l,"text-danger":r,"text-success":!r&&n.changed})},d.createElement("label",{htmlFor:n.id,className:"form-check-label"},d.createElement("input",{checked:p||!1,className:"form-check-input",disabled:a,id:n.id,name:u,onChange:()=>{m||t(!p)},ref:s,type:"checkbox"}),"\xa0",o)))}),{kind:"leaf"});const qe=("object"==typeof n.g?n.g:window).Date,Qe=function(e,t){return void 0===t&&(t="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===t?-8:-14)};var Ge=(0,k.e)((function(e){var t,{disabled:n,error:a,id:r,inputClassName:l,inputRef:i,max:s,min:o,name:c,onChange:u,placeholder:m,readOnly:p,value:h,type:g="datetime-local"}=e,v=(0,f._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return Ve(Object.assign(Object.assign({},v),{id:r}),d.createElement("input",{className:A()(l,"form-control",{"is-invalid":a,"is-valid":!a&&v.changed}),disabled:n,id:r,max:Qe(s),min:Qe(o),name:c,onChange:e=>{const t=new qe(e.target.valueAsNumber);t.getFullYear()<1e4?u(t):isNaN(e.target.valueAsNumber)&&u(void 0)},placeholder:m,readOnly:p,ref:i,type:g,value:null!==(t=Qe(h,g))&&void 0!==t?t:""}))}),{kind:"leaf"});function He(e){var{addIcon:t,className:n,disabled:a,name:r,readOnly:l,value:i}=e,s=(0,f._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const o=(0,U.m)(null,r),c=(0,U.m)(o.slice(0,-1)),u=(0,$.U)(c,{},{absoluteName:!0})[0],m=!(a||u.maxCount<=u.value.length);function p(e){!m||l||"key"in e&&"Enter"!==e.key||u.onChange(u.value.concat([W()(i)]))}return d.createElement("div",Object.assign({},(0,O.z)(s),{className:A()("badge badge-pill float-right",n),onClick:p,onKeyDown:p,role:"button",tabIndex:0}),t)}He.defaultProps={addIcon:d.createElement("i",{className:"octicon octicon-plus"})};var Je=(0,k.e)(He,{initialValue:!1,kind:"leaf"});function Xe(e){var{className:t,disabled:n,name:a,readOnly:r,removeIcon:l}=e,i=(0,f._T)(e,["className","disabled","name","readOnly","removeIcon"]);const s=(0,U.m)(null,a),o=+s[s.length-1],c=(0,U.m)(s.slice(0,-1)),u=(0,$.U)(c,{},{absoluteName:!0})[0];function m(e){if(!(n||"key"in e&&"Enter"!==e.key)){const e=u.value.slice();e.splice(o,1),u.onChange(e)}}return n||(n=r||u.minCount>=u.value.length),d.createElement("span",Object.assign({},(0,O.z)(i),{className:A()("badge badge-pill",t),onClick:m,onKeyDown:m,role:"button",tabIndex:0}),l)}Xe.defaultProps={removeIcon:d.createElement("i",{className:"octicon octicon-dash"})};var Ye=(0,k.e)(Xe,{initialValue:!1,kind:"leaf"});var et=(0,k.e)((function(e){let{children:t=d.createElement(pt,{className:"col-11",label:null,name:""}),removeIcon:n}=e;return d.createElement("div",{className:"row"},d.createElement("div",{className:"col-1"},d.createElement(Ye,{name:"",removeIcon:n})),t)}),{initialValue:!1});var tt=(0,k.e)((function(e){var{addIcon:t,children:n=d.createElement(et,{name:"$"}),className:a,error:r,errorMessage:l,itemProps:i,label:s,removeIcon:o,showInlineError:c,value:u}=e,m=(0,f._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return d.createElement("div",Object.assign({className:A()("card mb-3",a)},(0,O.z)(m)),d.createElement("div",{className:"card-body"},s&&d.createElement("div",{className:"card-title"},d.createElement("label",{className:"col-form-label"},s,"\xa0"),d.createElement(Je,{addIcon:t,name:"$"}),!(!r||!c)&&d.createElement("span",{className:"text-danger"},l)),null==u?void 0:u.map(((e,t)=>d.Children.map(n,((e,n)=>{var a;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign(Object.assign({key:`${t}-${n}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+t)},i),{removeIcon:o})):e}))))))}));var nt=(0,k.e)((function(e){var{children:t,className:n,error:a,errorMessage:r,fields:l,itemProps:i,label:s,showInlineError:o}=e,c=(0,f._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return d.createElement("div",Object.assign({className:A()(n,{"has-error":a})},(0,O.z)(c)),s&&d.createElement("label",null,s),!(!a||!o)&&d.createElement("span",{className:"text-danger"},r),t||l.map((e=>d.createElement(pt,Object.assign({key:e,name:e},i)))))}));var at=(0,k.e)((function(e){var t;return Ve(e,d.createElement("input",{className:A()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:t=>{const n=(e.decimal?parseFloat:parseInt)(t.target.value);e.onChange(isNaN(n)?void 0:n)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});const rt="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,lt=e=>rt(encodeURIComponent(e)).replace(/=+$/,"");var it=(0,k.e)((function(e){var t;return Ve(e,null===(t=e.options)||void 0===t?void 0:t.map((t=>{var n,a,r,l;return d.createElement("div",{key:null!==(n=t.key)&&void 0!==n?n:t.value,className:A()(e.inputClassName,"form-check","radio",{"custom-control-inline":e.inline,"text-danger":e.error,"text-success":!e.error&&e.changed})},d.createElement("label",{htmlFor:`${e.id}-${null!==(a=t.key)&&void 0!==a?a:lt(t.value)}`,className:"form-check-label"},d.createElement("input",{checked:t.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(r=t.key)&&void 0!==r?r:lt(t.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(t.value)},type:"radio"})," ",null!==(l=t.label)&&void 0!==l?l:t.value))})))}),{kind:"leaf"}),st=n(20098),ot=n.n(st);const ct="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,ut=e=>ct(encodeURIComponent(e)).replace(/=+$/,"");var dt=(0,k.e)((function(e){var{options:t,checkboxes:n,disabled:a,error:r,fieldType:l,id:i,inline:s,inputClassName:o,inputRef:c,label:u,name:m,onChange:p,placeholder:h,readOnly:g,required:v,value:b}=e,_=(0,f._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return Ve(Object.assign(Object.assign({},_),{disabled:a,error:r,id:i,label:u,required:v}),n?null==t?void 0:t.map((e=>{var t,n,r,l;return d.createElement("div",{key:null!==(t=e.key)&&void 0!==t?t:e.value,className:A()(o,"checkbox"+(s?"-inline":""))},d.createElement("label",{htmlFor:`${i}-${null!==(n=e.key)&&void 0!==n?n:ut(e.value)}`},d.createElement("input",{checked:E?null==b?void 0:b.includes(e.value):b===e.value,disabled:e.disabled||a,id:`${i}-${null!==(r=e.key)&&void 0!==r?r:ut(e.value)}`,name:m,onChange:()=>{g||p(E?ot()([e.value],b):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):d.createElement("select",{className:A()(o,"c-select form-control",{"is-invalid":r,"is-valid":!r&&_.changed}),disabled:a,id:i,multiple:E,name:m,onChange:e=>{if(!g){const t=e.target.value;if(E){const n=-1===e.target.selectedIndex;p(n?[]:ot()([t],b))}else p(""!==t?t:void 0)}},ref:c,value:null!=b?b:""},(!!h||!v||void 0===b)&&!E&&d.createElement("option",{value:"",disabled:v,hidden:v},h||u),null==t?void 0:t.map((e=>{var t,n;return d.createElement("option",{disabled:e.disabled,key:null!==(t=e.key)&&void 0!==t?t:e.value,value:e.value},null!==(n=e.label)&&void 0!==n?n:e.value)}))))}),{kind:"leaf"});var mt=(0,k.e)((function(e){var t,n;return Ve(Be()(e,["autoComplete"]),d.createElement("input",{autoComplete:e.autoComplete,className:A()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:t=>e.onChange(t.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(t=e.type)&&void 0!==t?t:"text",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});var pt=(0,h.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?it:dt;switch(e.fieldType){case Array:return tt;case Boolean:return Ke;case Date:return Ge;case Number:return at;case Object:return nt;case String:return mt}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function ht(e){var{element:t=d.Fragment,fields:n,omitFields:a=[],showInlineError:r}=e,l=(0,f._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(t,l,(null!=n?n:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(pt,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var ft=function e(t){class n extends t{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),t=super.getNativeFormProps();return Object.assign(Object.assign({},Be()(t,["grid"])),{className:A()("form",{error:e},t.className)})}}return n.Bootstrap4=e,n.displayName=`Bootstrap4${t.displayName}`,n}(ye.I);var gt=function(e){var{children:t,className:n}=e,a=(0,f._T)(e,["children","className"]);const{error:r,schema:l}=(0,be.c)();return r||t?d.createElement("div",Object.assign({className:A()("card border-danger mb-3 text-danger",n)},(0,O.z)(a)),d.createElement("div",{className:"card-body"},t,l.getErrorMessages(r).map(((e,t)=>d.createElement("div",{key:t,className:"disabled"},e))))):null};function vt(e){var{className:t,disabled:n,inputClassName:a,inputRef:r,readOnly:l,value:i,wrapClassName:s}=e,o=(0,f._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:c,state:u}=(0,be.c)(),m=u,p=!(!m.grid&&!s),h=d.createElement("input",Object.assign({className:a,disabled:void 0===n?!(!c&&!m.disabled):n,readOnly:l,ref:r,type:"submit"},i?{value:i}:{}));return d.createElement("div",Object.assign({className:A()(t,{"is-invalid":c,row:m.grid})},(0,O.z)(o)),p&&d.createElement("span",{className:A()("col-form-label",$e(m.grid,"label"))},"\xa0"),p&&d.createElement("div",{className:A()(s,$e(m.grid,"input"))},h),!p&&h)}vt.defaultProps={inputClassName:"btn btn-primary"};var bt=vt;var _t=function e(t){class n extends(ke.X.Quick(t)){getAutoField(){return pt}getErrorsField(){return gt}getSubmitField(){return bt}}return n.Quick=e,n}(ft);var Et=function e(t){class n extends(Pe.O.Validated(t)){}return n.Validated=e,n}(ft),yt=Et.Validated(_t.Quick(ft));var Ot=function e(t){class n extends(Ee.N.Auto(t)){}return n.Auto=e,n}(yt);var kt=(0,k.e)((function(e){var{children:t,className:n,error:a,errorMessage:r}=e,l=(0,f._T)(e,["children","className","error","errorMessage"]);return a?d.createElement("div",Object.assign({className:A()("card","mb-3",n)},(0,O.z)(l)),d.createElement("div",{className:"card-body"},t||d.createElement("h4",{className:"card-title"},r))):null}),{initialValue:!1,kind:"leaf"});function Nt(e){var t,{value:n}=e,a=(0,f._T)(e,["value"]);const r=(0,$.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==n&&n!==r.value&&r.onChange(n)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(t=null!=n?n:r.value)&&void 0!==t?t:""},(0,O.z)(r)))}var wt=(0,k.e)((function(e){var t;return Ve(e,d.createElement("textarea",{className:A()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:t=>e.onChange(t.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});function Ct(e,t,n){const a="xs"===e?"":`${e}-`;return"label"===n?`col-${a}${t}`:`col-${a}${12-t}`}const jt={xs:1,sm:2,md:3,lg:4,xl:5,xxl:6};function xt(e,t){return jt[e]-jt[t]}function Pt(e,t){return"number"==typeof e?Ct("xs",e,t):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl||e.xxl},e)),Object.keys(e).sort(xt).map((n=>Ct(n,e[n],t))).join(" ")):"":Ct("xs",parseInt(e),t)}function Ft(e,t){var{changed:n,className:a,disabled:r,error:l,errorMessage:i,grid:s,help:o,helpClassName:c,id:u,label:m,labelClassName:p,required:h,showInlineError:g,wrapClassName:v}=e,b=(0,f._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const _=!(!s&&!v),E=!(!l||!g)&&d.createElement("span",{className:"form-text text-danger"},i),y=!!o&&d.createElement("span",{className:A()("form-text",c||"text-muted")},o);return d.createElement("div",Object.assign({className:A()(a,"mb-3",{"is-invalid":l,disabled:r,required:h,row:s})},Be()((0,O.z)(b),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&d.createElement("label",{htmlFor:u,className:A()({"col-form-label":s,"text-danger":l,"text-success":!l&&n},Pt(s,"label"),p)},m),_&&d.createElement("div",{className:A()(v,Pt(s,"input"))},t,y,E),!_&&t,!_&&y,!_&&E)}var Mt=(0,k.e)((function(e){var{onChange:t}=e,n=(0,f._T)(e,["onChange"]);const{disabled:a,error:r,inline:l,inputClassName:i,inputRef:s,label:o,labelBefore:c,name:u,readOnly:m,value:p}=n;return Ft(Object.assign(Object.assign({},n),{label:c,value:n.value}),d.createElement("div",{className:A()(i,"form-check",{"text-danger":r,"text-success":!r&&n.changed,"form-check-inline":l})},d.createElement("input",{checked:p||!1,className:"form-check-input",disabled:a,id:n.id,name:u,onChange:()=>{m||t(!p)},ref:s,type:"checkbox"}),d.createElement("label",{htmlFor:n.id,className:"form-check-label"},o)))}),{kind:"leaf"});const Tt=("object"==typeof n.g?n.g:window).Date,It=function(e,t){return void 0===t&&(t="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===t?-8:-14)};var Dt=(0,k.e)((function(e){var t,{disabled:n,error:a,id:r,inputClassName:l,inputRef:i,max:s,min:o,name:c,onChange:u,placeholder:m,readOnly:p,value:h,type:g="datetime-local"}=e,v=(0,f._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return Ft(Object.assign(Object.assign({},v),{id:r}),d.createElement("input",{className:A()(l,"form-control",{"is-invalid":a,"is-valid":!a&&v.changed}),disabled:n,id:r,max:It(s),min:It(o),name:c,onChange:e=>{const t=new Tt(e.target.valueAsNumber);t.getFullYear()<1e4?u(t):isNaN(e.target.valueAsNumber)&&u(void 0)},placeholder:m,readOnly:p,ref:i,type:g,value:null!==(t=It(h,g))&&void 0!==t?t:""}))}),{kind:"leaf"});function Zt(e){var{addIcon:t,className:n,disabled:a,name:r,readOnly:l,value:i}=e,s=(0,f._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const o=(0,U.m)(null,r),c=(0,U.m)(o.slice(0,-1)),u=(0,$.U)(c,{},{absoluteName:!0})[0];return a||(a=l||u.maxCount<=u.value.length),d.createElement("button",Object.assign({},(0,O.z)(s),{className:A()("btn btn-secondary btn-sm float-end",n),disabled:a,onClick:function(){a||u.onChange(u.value.concat([W()(i)]))},tabIndex:0,type:"button"}),t)}Zt.defaultProps={addIcon:d.createElement("i",{className:"octicon octicon-plus"})};var St=(0,k.e)(Zt,{initialValue:!1,kind:"leaf"});function At(e){var{className:t,disabled:n,name:a,readOnly:r,removeIcon:l}=e,i=(0,f._T)(e,["className","disabled","name","readOnly","removeIcon"]);const s=(0,U.m)(null,a),o=+s[s.length-1],c=(0,U.m)(s.slice(0,-1)),u=(0,$.U)(c,{},{absoluteName:!0})[0];return n||(n=r||u.minCount>=u.value.length),d.createElement("button",Object.assign({},(0,O.z)(i),{className:A()("btn btn-secondary btn-sm",t),disabled:n,onClick:()=>{const e=u.value.slice();e.splice(o,1),u.onChange(e)},tabIndex:0,type:"button"}),l)}At.defaultProps={removeIcon:d.createElement("i",{className:"octicon octicon-dash"})};var Rt=(0,k.e)(At,{initialValue:!1,kind:"leaf"});var Lt=(0,k.e)((function(e){let{children:t=d.createElement(Ht,{className:"col",label:null,name:""}),removeIcon:n}=e;return d.createElement("div",{className:"row"},d.createElement("div",{className:"col-auto"},d.createElement(Rt,{name:"",removeIcon:n})),t)}),{initialValue:!1});var Bt=(0,k.e)((function(e){var{addIcon:t,children:n=d.createElement(Lt,{name:"$"}),className:a,error:r,errorMessage:l,itemProps:i,label:s,removeIcon:o,showInlineError:c,value:u}=e,m=(0,f._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return d.createElement("div",Object.assign({className:A()("card mb-3",a)},(0,O.z)(m)),d.createElement("div",{className:"card-body"},s&&d.createElement("div",{className:"card-title"},d.createElement("label",{className:"col-form-label"},s,"\xa0"),d.createElement(St,{addIcon:t,name:"$"}),!(!r||!c)&&d.createElement("span",{className:"text-danger"},l)),null==u?void 0:u.map(((e,t)=>d.Children.map(n,((e,n)=>{var a;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign(Object.assign({key:`${t}-${n}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+t)},i),{removeIcon:o})):e}))))))}));var zt=(0,k.e)((function(e){var{children:t,className:n,error:a,errorMessage:r,fields:l,itemProps:i,label:s,showInlineError:o}=e,c=(0,f._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return d.createElement("div",Object.assign({className:A()(n,{"has-error":a})},(0,O.z)(c)),s&&d.createElement("label",null,s),!(!a||!o)&&d.createElement("span",{className:"text-danger"},r),t||l.map((e=>d.createElement(Ht,Object.assign({key:e,name:e},i)))))}));var Wt=(0,k.e)((function(e){var t;return Ft(e,d.createElement("input",{className:A()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:t=>{const n=(e.decimal?parseFloat:parseInt)(t.target.value);e.onChange(isNaN(n)?void 0:n)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});const Ut="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,$t=e=>Ut(encodeURIComponent(e)).replace(/=+$/,"");var Vt=(0,k.e)((function(e){var t;return Ft(e,null===(t=e.options)||void 0===t?void 0:t.map((t=>{var n,a,r,l;return d.createElement("div",{key:null!==(n=t.key)&&void 0!==n?n:t.value,className:A()(e.inputClassName,"form-check",{"text-danger":e.error,"text-success":!e.error&&e.changed,"form-check-inline":e.inline})},d.createElement("label",{htmlFor:`${e.id}-${null!==(a=t.key)&&void 0!==a?a:$t(t.value)}`,className:"form-check-label"},d.createElement("input",{checked:t.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(r=t.key)&&void 0!==r?r:$t(t.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(t.value)},type:"radio"})," ",null!==(l=t.label)&&void 0!==l?l:t.value))})))}),{kind:"leaf"});const Kt="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,qt=e=>Kt(encodeURIComponent(e)).replace(/=+$/,"");var Qt=(0,k.e)((function(e){var{options:t,checkboxes:n,disabled:a,error:r,fieldType:l,id:i,inline:s,inputClassName:o,inputRef:c,label:u,name:m,onChange:p,placeholder:h,readOnly:g,required:v,value:b}=e,_=(0,f._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return Ft(Object.assign(Object.assign({},_),{disabled:a,error:r,id:i,label:u,required:v}),n?null==t?void 0:t.map((e=>{var t,n,r,l;return d.createElement("div",{key:null!==(t=e.key)&&void 0!==t?t:e.value,className:A()(o,"form-check"+(s?" form-check-inline":""))},d.createElement("label",{htmlFor:`${i}-${null!==(n=e.key)&&void 0!==n?n:qt(e.value)}`},d.createElement("input",{checked:E?null==b?void 0:b.includes(e.value):b===e.value,disabled:e.disabled||a,id:`${i}-${null!==(r=e.key)&&void 0!==r?r:qt(e.value)}`,name:m,onChange:()=>{g||p(E?ot()([e.value],b):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):d.createElement("select",{className:A()(o,"form-control",{"is-invalid":r,"is-valid":!r&&_.changed}),disabled:a,id:i,multiple:E,name:m,onChange:e=>{if(!g){const t=e.target.value;if(E){const n=-1===e.target.selectedIndex;p(n?[]:ot()([t],b))}else p(""!==t?t:void 0)}},ref:c,value:null!=b?b:""},(!!h||!v||void 0===b)&&!E&&d.createElement("option",{value:"",disabled:v,hidden:v},h||u),null==t?void 0:t.map((e=>{var t,n;return d.createElement("option",{disabled:e.disabled,key:null!==(t=e.key)&&void 0!==t?t:e.value,value:e.value},null!==(n=e.label)&&void 0!==n?n:e.value)}))))}),{kind:"leaf"});var Gt=(0,k.e)((function(e){var t,n;return Ft(Be()(e,["autoComplete","minLength","maxLength"]),d.createElement("input",{autoComplete:e.autoComplete,className:A()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:t=>e.onChange(t.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,type:null!==(t=e.type)&&void 0!==t?t:"text",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});var Ht=(0,h.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Vt:Qt;switch(e.fieldType){case Array:return Bt;case Boolean:return Mt;case Date:return Dt;case Number:return Wt;case Object:return zt;case String:return Gt}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Jt(e){var{element:t=d.Fragment,fields:n,omitFields:a=[],showInlineError:r}=e,l=(0,f._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(t,l,(null!=n?n:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(Ht,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Xt=function e(t){class n extends t{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),t=super.getNativeFormProps();return Object.assign(Object.assign({},Be()(t,["grid"])),{className:A()({error:e},t.className)})}}return n.Bootstrap5=e,n.displayName=`Bootstrap5${t.displayName}`,n}(ye.I);var Yt=function(e){var{children:t,className:n}=e,a=(0,f._T)(e,["children","className"]);const{error:r,schema:l}=(0,be.c)();return r||t?d.createElement("div",Object.assign({className:A()("card border-danger mb-3 text-danger",n)},(0,O.z)(a)),d.createElement("div",{className:"card-body"},t,l.getErrorMessages(r).map(((e,t)=>d.createElement("div",{key:t,className:"disabled"},e))))):null};function en(e){var{className:t,disabled:n,inputClassName:a,inputRef:r,readOnly:l,value:i,wrapClassName:s}=e,o=(0,f._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:c,state:u}=(0,be.c)(),m=u,p=!(!m.grid&&!s),h=d.createElement("input",Object.assign({className:a,disabled:void 0===n?!(!c&&!m.disabled):n,readOnly:l,ref:r,type:"submit"},i?{value:i}:{}));return d.createElement("div",Object.assign({className:A()(t,{"is-invalid":c,row:m.grid})},(0,O.z)(o)),p&&d.createElement("span",{className:A()("col-form-label",Pt(m.grid,"label"))},"\xa0"),p&&d.createElement("div",{className:A()(s,Pt(m.grid,"input"))},h),!p&&h)}en.defaultProps={inputClassName:"btn btn-primary"};var tn=en;var nn=function e(t){class n extends(ke.X.Quick(t)){getAutoField(){return Ht}getErrorsField(){return Yt}getSubmitField(){return tn}}return n.Quick=e,n}(Xt);var an=function e(t){class n extends(Pe.O.Validated(t)){}return n.Validated=e,n}(Xt),rn=an.Validated(nn.Quick(Xt));var ln=function e(t){class n extends(Ee.N.Auto(t)){}return n.Auto=e,n}(rn);var sn=(0,k.e)((function(e){var{children:t,className:n,error:a,errorMessage:r}=e,l=(0,f._T)(e,["children","className","error","errorMessage"]);return a?d.createElement("div",Object.assign({className:A()("card","mb-3",n)},(0,O.z)(l)),d.createElement("div",{className:"card-body"},t||d.createElement("h4",{className:"card-title"},r))):null}),{initialValue:!1,kind:"leaf"});function on(e){var t,{value:n}=e,a=(0,f._T)(e,["value"]);const r=(0,$.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==n&&n!==r.value&&r.onChange(n)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(t=null!=n?n:r.value)&&void 0!==t?t:""},(0,O.z)(r)))}var cn=(0,k.e)((function(e){var t;return Ft(Be()(e,["autoComplete","minLength","maxLength"]),d.createElement("textarea",{className:A()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:t=>e.onChange(t.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"}),un=n(80342),dn=n(21807),mn=n(61247),pn=n(35311),hn=n(82693),fn=n(82956),gn=n(54139),vn=n(74533);function bn(e){let{component:t,disabled:n,error:a,errorMessage:r,fullWidth:l,helperText:i,margin:s,readOnly:o,required:c,showInlineError:u,variant:m}=e;const p=u&&a?r:i,h={component:t,disabled:!!n,error:!!a,fullWidth:!!l,margin:s,readOnly:o,required:c,variant:m};for(var f=arguments.length,g=new Array(f>1?f-1:0),v=1;v<f;v++)g[v-1]=arguments[v];return(0,d.createElement)(gn.Z,h,...g,!!p&&d.createElement(vn.Z,null,p))}var _n=(0,k.e)((function(e){var t;const{appearance:n,disabled:a,inputRef:r,label:l,legend:i,name:s,onChange:o,readOnly:c,value:u}=e,m=null===(t=(0,fn.Z)().props)||void 0===t?void 0:t.MuiFormControl,p="checkbox"===n||void 0===n?un.Z:hn.Z;return bn(Object.assign(Object.assign(Object.assign(Object.assign({},void 0===(null==m?void 0:m.fullWidth)&&{fullWidth:!0}),void 0===(null==m?void 0:m.margin)&&{margin:"dense"}),e),{component:"fieldset"}),i&&d.createElement(pn.Z,{component:"legend",htmlFor:s},i),d.createElement(mn.Z,null,d.createElement(dn.Z,{control:d.createElement(p,Object.assign({checked:!!u,name:s,onChange:e=>!a&&!c&&o&&o(e.target.checked),ref:r,value:s},Be()((0,O.z)(e),["helperText","fullWidth"]))),label:l})))}),{kind:"leaf"}),En=n(38725);const yn=("object"==typeof n.g?n.g:window).Date,On=function(e,t){return void 0===t&&(t="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===t?-8:-14)};var kn=(0,k.e)((function(e){var t,n,a,r,{disabled:l,error:i,errorMessage:s,helperText:o,InputLabelProps:c,inputRef:u,label:m,labelProps:p,max:h,min:g,name:v,onChange:b,placeholder:_,readOnly:E,showInlineError:y,value:k,type:N="datetime-local"}=e,w=(0,f._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);const C=null===(t=(0,fn.Z)().props)||void 0===t?void 0:t.MuiTextField;return d.createElement(En.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(n=null==C?void 0:C.fullWidth)||void 0===n||n,helperText:!!i&&y&&s||o,label:m,InputLabelProps:Object.assign(Object.assign({shrink:!0},p),c),inputProps:Object.assign({max:On(h),min:On(g),readOnly:E},w.inputProps),margin:null!==(a=null==C?void 0:C.margin)&&void 0!==a?a:"dense",name:v,onChange:e=>l||((e,t)=>{const n=new yn(e);n.getFullYear()<1e4?t(n):isNaN(e)&&t(void 0)})(e.target.valueAsNumber,b),placeholder:_,ref:u,type:N,value:null!==(r=On(k,N))&&void 0!==r?r:""},(0,O.z)(w)))}),{kind:"leaf"}),Nn=n(50755),wn=n(44920),Cn=n(90547);var jn=(0,k.e)((function(e){var{disabled:t,fullWidth:n=!0,icon:a="+",margin:r="dense",name:l,readOnly:i,value:s,variant:o}=e,c=(0,f._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const u=(0,U.m)(null,l),m=(0,U.m)(u.slice(0,-1)),p=(0,$.U)(m,{},{absoluteName:!0})[0],h=!(t||p.maxCount<=p.value.length);return d.createElement(gn.Z,{fullWidth:n,margin:r,variant:o},d.createElement(Cn.Z,Object.assign({},(0,O.z)(c),{disabled:!h,onClick:()=>{i||p.onChange(p.value.concat([W()(s)]))}}),a))}),{initialValue:!1,kind:"leaf"}),xn=n(53332);var Pn=(0,k.e)((function(e){var{disabled:t,icon:n="-",name:a,readOnly:r}=e,l=(0,f._T)(e,["disabled","icon","name","readOnly"]);const i=(0,U.m)(null,a),s=+i[i.length-1],o=(0,U.m)(i.slice(0,-1)),c=(0,$.U)(o,{},{absoluteName:!0})[0];return t||(t=r||c.minCount>=c.value.length),d.createElement(Cn.Z,Object.assign({},(0,O.z)(l),{disabled:t,onClick:()=>{const e=c.value.slice();e.splice(s,1),c.onChange(e)}}),n)}),{initialValue:!1,kind:"leaf"});var Fn=(0,k.e)((function(e){let{children:t=d.createElement($n,{label:null,name:""}),dense:n=!0,disableGutters:a,divider:r,removeIcon:l}=e;return d.createElement(xn.Z,{dense:n,disableGutters:a,divider:r},t,d.createElement(Pn,{name:"",icon:l}))}),{initialValue:!1});var Mn=(0,k.e)((function(e){var{addIcon:t,children:n=d.createElement(Fn,{name:"$"}),itemProps:a,label:r,value:l}=e,i=(0,f._T)(e,["addIcon","children","itemProps","label","value"]);return d.createElement(d.Fragment,null,d.createElement(Nn.Z,Object.assign({dense:!0,subheader:r?d.createElement(wn.Z,{disableSticky:!0},r):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,t)=>d.Children.map(n,((e,n)=>{var r;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+t)},a)):e}))))),d.createElement(jn,{icon:t,name:"$"}))}));var Tn=(0,k.e)((function(e){var t,n,a,{children:r,fields:l,itemProps:i,label:s}=e,o=(0,f._T)(e,["children","fields","itemProps","label"]);const c=null===(t=(0,fn.Z)().props)||void 0===t?void 0:t.MuiFormControl;return bn(Object.assign(Object.assign({fullWidth:null===(n=null==c?void 0:c.fullWidth)||void 0===n||n,margin:null!==(a=null==c?void 0:c.margin)&&void 0!==a?a:"dense"},o),{component:void 0}),s&&d.createElement(pn.Z,{component:"legend"},s),r||l.map((e=>d.createElement($n,Object.assign({key:e,name:e},i)))))}));var In=(0,k.e)((function(e){var t,n,a,r,{decimal:l,disabled:i,error:s,errorMessage:o,helperText:c,inputProps:u,inputRef:m,label:p,max:h,min:g,name:v,onChange:b,readOnly:_,placeholder:E,showInlineError:y,step:k=(l?.01:1),value:N}=e,w=(0,f._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);const C=null===(t=(0,fn.Z)().props)||void 0===t?void 0:t.MuiTextField;return d.createElement(En.Z,Object.assign({disabled:i,error:!!s,fullWidth:null===(n=null==C?void 0:C.fullWidth)||void 0===n||n,helperText:!!s&&y&&o||c,inputProps:Object.assign(Object.assign(Object.assign({},null!==(a=null==C?void 0:C.inputProps)&&void 0!==a?a:{}),{min:g,max:h,readOnly:_,step:k}),u),label:p,margin:null!==(r=null==C?void 0:C.margin)&&void 0!==r?r:"dense",name:v,onChange:e=>{const t=(l?parseFloat:parseInt)(e.target.value);b(isNaN(t)?void 0:t)},placeholder:E,ref:m,type:"number",value:null!=N?N:""},(0,O.z)(w)))}),{kind:"leaf"}),Dn=n(76709),Zn=n(70043);const Sn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,An=e=>Sn(encodeURIComponent(e)).replace(/=+$/,"");var Rn=(0,k.e)((function(e){var t,n,a,{options:r,disabled:l,id:i,inputRef:s,label:o,name:c,onChange:u,readOnly:m,row:p,value:h}=e,g=(0,f._T)(e,["options","disabled","id","inputRef","label","name","onChange","readOnly","row","value"]);const v=null===(t=(0,fn.Z)().props)||void 0===t?void 0:t.MuiFormControl;return bn(Object.assign(Object.assign({fullWidth:null===(n=null==v?void 0:v.fullWidth)||void 0===n||n,margin:null!==(a=null==v?void 0:v.margin)&&void 0!==a?a:"dense"},g),{component:"fieldset",disabled:l}),o&&d.createElement(pn.Z,{component:"legend",htmlFor:c},o),d.createElement(Zn.Z,{id:i,name:c,onChange:e=>l||m||u(e.target.value),ref:s,row:p,value:null!=h?h:""},null==r?void 0:r.map((e=>{var t,n;return d.createElement(dn.Z,{control:d.createElement(Dn.Z,Object.assign({id:`${i}-${An(e.value)}`},Be()((0,O.z)(g),["checkboxes","helperText"]))),htmlFor:`${i}-${An(e.value)}`,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(n=e.label)&&void 0!==n?n:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),Ln=n(5633);const Bn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,zn=e=>Bn(encodeURIComponent(e)).replace(/=+$/,"");var Wn=(0,k.e)((function(e){var t,n,a,r,l,i;const s=(0,fn.Z)(),o=null===(t=s.props)||void 0===t?void 0:t.MuiFormControl,c=null!==(n=e.value)&&void 0!==n?n:"";if(e.checkboxes){const{options:t,disabled:n,fieldType:r,id:l,inputRef:i,label:s,legend:u,name:m,onChange:p,readOnly:h}=e,f="checkbox"===(null!==(a=e.appearance)&&void 0!==a?a:"checkbox")?un.Z:hn.Z,g=Be()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),v=r!==Array?d.createElement(Zn.Z,{id:l,name:m,onChange:e=>n||h||p(e.target.value),ref:i,value:null!=c?c:""},null==t?void 0:t.map((e=>{var t,a,r;return d.createElement(dn.Z,{control:d.createElement(Dn.Z,Object.assign({id:`${l}-${null!==(t=e.key)&&void 0!==t?t:zn(e.value)}`},g)),disabled:e.disabled||n,key:null!==(a=e.key)&&void 0!==a?a:e.value,label:null!==(r=e.label)&&void 0!==r?r:e.value,value:e.value})}))):d.createElement(mn.Z,{id:l},null==t?void 0:t.map((e=>{var t,a,r;return d.createElement(dn.Z,{control:d.createElement(f,Object.assign({checked:c.includes(e.value),id:`${l}-${null!==(t=e.key)&&void 0!==t?t:zn(e.value)}`,name:m,onChange:()=>n||h||p(ot()([e.value],c)),ref:i,value:m},g)),disabled:e.disabled||n,key:null!==(a=e.key)&&void 0!==a?a:e.value,label:null!==(r=e.label)&&void 0!==r?r:e.value})})));return bn(Object.assign(Object.assign(Object.assign({},o),e),{component:"fieldset"}),(u||s)&&d.createElement(pn.Z,{component:"legend"},u||s),v)}const u=null===(r=s.props)||void 0===r?void 0:r.MuiTextField,{options:m,disabled:p,error:h,errorMessage:f,fieldType:g,fullWidth:v=null===(l=null==u?void 0:u.fullWidth)||void 0===l||l,helperText:b,id:_,InputLabelProps:E,inputProps:y,label:k,labelProps:N,margin:w=(null!==(i=null==u?void 0:u.margin)&&void 0!==i?i:"dense"),name:C,native:j,onChange:x,placeholder:P,readOnly:F,required:M,showInlineError:T,variant:I,textFieldProps:D}=e,Z=j?"option":Ln.Z,S=!!P,A=""!==c&&void 0!==c,R=Be()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return d.createElement(En.Z,Object.assign({disabled:p,error:!!h,fullWidth:v,helperText:!!h&&T&&f||b,InputLabelProps:Object.assign(Object.assign({shrink:!!k&&(S||A)},N),E),label:k,margin:w,onChange:e=>p||F||x(""!==e.target.value?e.target.value:void 0),required:M,select:!0,SelectProps:Object.assign({displayEmpty:S,inputProps:Object.assign({name:C,id:_},y),multiple:g===Array||void 0,native:j},R),value:j&&!c?"":c,variant:I},D),(S||!M||!A)&&d.createElement(Z,{value:"",disabled:!!M},P||k),null==m?void 0:m.map((e=>{var t,n;return d.createElement(Z,{disabled:e.disabled,key:null!==(t=e.key)&&void 0!==t?t:e.value,value:e.value},null!==(n=e.label)&&void 0!==n?n:e.value)})))}),{kind:"leaf"});var Un=(0,k.e)((function(e){var t,n,a,r,{disabled:l,error:i,errorMessage:s,helperText:o,inputRef:c,label:u,name:m,onChange:p,placeholder:h,readOnly:g,showInlineError:v,type:b="text",value:_=""}=e,E=(0,f._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const y=null===(t=(0,fn.Z)().props)||void 0===t?void 0:t.MuiTextField;return d.createElement(En.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(n=null==y?void 0:y.fullWidth)||void 0===n||n,helperText:!!i&&v&&s||o,inputProps:Object.assign({readOnly:g},null!==(a=null==y?void 0:y.inputProps)&&void 0!==a?a:{}),label:u,margin:null!==(r=null==y?void 0:y.margin)&&void 0!==r?r:"dense",name:m,onChange:e=>l||p(e.target.value),placeholder:h,ref:c,type:b,value:_},(0,O.z)(E)))}),{kind:"leaf"});var $n=(0,h.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Rn:Wn;switch(e.fieldType){case Array:return Mn;case Boolean:return _n;case Date:return kn;case Number:return In;case Object:return Tn;case String:return Un}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Vn(e){var{element:t=d.Fragment,fields:n,omitFields:a=[],showInlineError:r}=e,l=(0,f._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(t,l,(null!=n?n:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)($n,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Kn=function e(t){class n extends t{}return n.Material=e,n.displayName=`Material${t.displayName}`,n}(ye.I);var qn=function(e){var t,n,a,{children:r,fullWidth:l,margin:i,variant:s}=e,o=(0,f._T)(e,["children","fullWidth","margin","variant"]);const c=null===(t=(0,fn.Z)().props)||void 0===t?void 0:t.MuiFormControl,{error:u,schema:m}=(0,be.c)();return u||r?d.createElement(gn.Z,{error:!!u,fullWidth:null===(n=null!=l?l:null==c?void 0:c.fullWidth)||void 0===n||n,margin:null!==(a=null!=i?i:null==c?void 0:c.margin)&&void 0!==a?a:"dense",variant:null!=s?s:null==c?void 0:c.variant},!!r&&d.createElement(vn.Z,Object.assign({},(0,O.z)(o)),r),m.getErrorMessages(u).map(((e,t)=>d.createElement(vn.Z,Object.assign({key:t},(0,O.z)(o)),e)))):null},Qn=n(9334);var Gn=function(e){var t,n,{children:a,disabled:r,inputRef:l,label:i="Submit",value:s}=e,o=(0,f._T)(e,["children","disabled","inputRef","label","value"]);const{error:c,state:u}=(0,be.c)(),m=null===(t=(0,fn.Z)().props)||void 0===t?void 0:t.MuiButton;return d.createElement(Qn.Z,Object.assign({disabled:void 0===r?!(!c&&!u.disabled):r,ref:l,type:"submit",value:s,variant:null!==(n=null==m?void 0:m.variant)&&void 0!==n?n:"contained"},(0,O.z)(o)),a||i)};var Hn=function e(t){class n extends(ke.X.Quick(t)){getAutoField(){return $n}getErrorsField(){return qn}getSubmitField(){return Gn}}return n.Quick=e,n}(Kn);var Jn=function e(t){class n extends(Pe.O.Validated(t)){}return n.Validated=e,n}(Kn),Xn=Jn.Validated(Hn.Quick(Kn));var Yn=function e(t){class n extends(Ee.N.Auto(t)){}return n.Auto=e,n}(Xn);var ea=(0,k.e)((function(e){var t,n,a,{children:r,error:l,errorMessage:i,fullWidth:s,margin:o,variant:c}=e,u=(0,f._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);const m=null===(t=(0,fn.Z)().props)||void 0===t?void 0:t.MuiFormControl;return l?d.createElement(gn.Z,{error:!!l,fullWidth:null===(n=null!=s?s:null==m?void 0:m.fullWidth)||void 0===n||n,margin:null!==(a=null!=o?o:null==m?void 0:m.margin)&&void 0!==a?a:"dense",variant:null!=c?c:null==m?void 0:m.variant},d.createElement(vn.Z,Object.assign({},(0,O.z)(u)),r||i)):null}),{initialValue:!1,kind:"leaf"});function ta(e){var t,{value:n}=e,a=(0,f._T)(e,["value"]);const r=(0,$.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==n&&n!==r.value&&r.onChange(n)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(t=null!=n?n:r.value)&&void 0!==t?t:""},(0,O.z)(r)))}var na=(0,k.e)((e=>{var t,n,a,{disabled:r,error:l,errorMessage:i,helperText:s,inputRef:o,label:c,name:u,onChange:m,placeholder:p,readOnly:h,showInlineError:g,type:v="text",value:b}=e,_=(0,f._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const E=null===(t=(0,fn.Z)().props)||void 0===t?void 0:t.MuiTextField;return d.createElement(En.Z,Object.assign({disabled:r,error:!!l,fullWidth:null===(n=null==E?void 0:E.fullWidth)||void 0===n||n,helperText:!!l&&g&&i||s,inputProps:Object.assign(Object.assign({},null==E?void 0:E.inputProps),{readOnly:h}),label:c,margin:null!==(a=null==E?void 0:E.margin)&&void 0!==a?a:"dense",multiline:!0,name:u,onChange:e=>r||m(e.target.value),placeholder:p,ref:o,type:v,value:null!=b?b:""},(0,O.z)(_)))}),{kind:"leaf"}),aa=n(56213),ra=n(64251),la=n(64281),ia=n(23626),sa=n(22013),oa=n(61230),ca=n(56274);function ua(e){let{component:t,disabled:n,error:a,errorMessage:r,fullWidth:l,helperText:i,margin:s,readOnly:o,required:c,showInlineError:u,variant:m}=e;const p=u&&a?r:i,h={component:t,disabled:!!n,error:!!a,fullWidth:!!l,margin:s,readOnly:o,required:c,variant:m};for(var f=arguments.length,g=new Array(f>1?f-1:0),v=1;v<f;v++)g[v-1]=arguments[v];return(0,d.createElement)(oa.Z,h,...g,!!p&&d.createElement(ca.Z,null,p))}var da=(0,k.e)((function(e){const{appearance:t,disabled:n,inputRef:a,label:r,legend:l,name:i,onChange:s,readOnly:o,value:c}=e,u="checkbox"===t||void 0===t?aa.Z:sa.Z;return ua(Object.assign({fullWidth:!0},e),l&&d.createElement(ia.Z,{component:"legend",htmlFor:i},l),d.createElement(la.Z,null,d.createElement(ra.Z,{control:d.createElement(u,Object.assign({checked:!!c,name:i,onChange:e=>!n&&!o&&s&&s(e.target.checked),ref:a,value:i},Be()((0,O.z)(e),["helperText","fullWidth"]))),label:r})))}),{kind:"leaf"}),ma=n(60929);const pa=("object"==typeof n.g?n.g:window).Date,ha=function(e,t){return void 0===t&&(t="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===t?-8:-14)};var fa=(0,k.e)((function(e){var t,{disabled:n,error:a,errorMessage:r,helperText:l,InputLabelProps:i,inputRef:s,label:o,labelProps:c,max:u,min:m,name:p,onChange:h,placeholder:g,readOnly:v,showInlineError:b,value:_,type:E="datetime-local"}=e,y=(0,f._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);return d.createElement(ma.Z,Object.assign({disabled:n,error:!!a,fullWidth:!0,helperText:!!a&&b&&r||l,label:o,InputLabelProps:Object.assign(Object.assign({shrink:!0},c),i),inputProps:Object.assign({max:ha(u),min:ha(m),readOnly:v},y.inputProps),margin:"dense",name:p,onChange:e=>n||((e,t)=>{const n=new pa(e);n.getFullYear()<1e4?t(n):isNaN(e)&&t(void 0)})(e.target.valueAsNumber,h),placeholder:g,ref:s,type:E,value:null!==(t=ha(_,E))&&void 0!==t?t:""},(0,O.z)(y)))}),{kind:"leaf"}),ga=n(10872),va=n(5420),ba=n(68666);var _a=(0,k.e)((function(e){var{disabled:t,fullWidth:n=!0,icon:a="+",margin:r="dense",name:l,readOnly:i,value:s,variant:o}=e,c=(0,f._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const u=(0,U.m)(null,l),m=(0,U.m)(u.slice(0,-1)),p=(0,$.U)(m,{},{absoluteName:!0})[0],h=!(t||p.maxCount<=p.value.length);return d.createElement(oa.Z,{fullWidth:n,margin:r,variant:o},d.createElement(ba.Z,Object.assign({size:"large",variant:"outlined"},(0,O.z)(c),{disabled:!h,onClick:()=>{i||p.onChange(p.value.concat([W()(s)]))}}),a))}),{initialValue:!1,kind:"leaf"}),Ea=n(88483),ya=n(92133);var Oa=(0,k.e)((function(e){var{disabled:t,icon:n="-",name:a,readOnly:r}=e,l=(0,f._T)(e,["disabled","icon","name","readOnly"]);const i=(0,U.m)(null,a),s=+i[i.length-1],o=(0,U.m)(i.slice(0,-1)),c=(0,$.U)(o,{},{absoluteName:!0})[0];return t||(t=r||c.minCount>=c.value.length),d.createElement(ya.Z,Object.assign({},(0,O.z)(l),{disabled:t,onClick:()=>{const e=c.value.slice();e.splice(s,1),c.onChange(e)},size:"large"}),n)}),{initialValue:!1,kind:"leaf"});var ka=(0,k.e)((function(e){let{children:t=d.createElement(Aa,{label:null,name:""}),dense:n=!0,disableGutters:a,divider:r,removeIcon:l}=e;return d.createElement(Ea.ZP,{dense:n,disableGutters:a,divider:r},t,d.createElement(Oa,{name:"",icon:l}))}),{initialValue:!1});var Na=(0,k.e)((function(e){var{addIcon:t,children:n=d.createElement(ka,{name:"$"}),itemProps:a,label:r,value:l}=e,i=(0,f._T)(e,["addIcon","children","itemProps","label","value"]);return d.createElement(d.Fragment,null,d.createElement(ga.Z,Object.assign({dense:!0,subheader:r?d.createElement(va.Z,{disableSticky:!0},r):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,t)=>d.Children.map(n,((e,n)=>{var r;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+t)},a)):e}))))),d.createElement(_a,{icon:t,name:"$"}))}));var wa=(0,k.e)((function(e){var{children:t,fields:n,fullWidth:a=!0,itemProps:r,label:l,margin:i="dense"}=e,s=(0,f._T)(e,["children","fields","fullWidth","itemProps","label","margin"]);return ua(Object.assign(Object.assign({fullWidth:a,margin:i},s),{component:void 0}),l&&d.createElement(ia.Z,{component:"legend"},l),t||n.map((e=>d.createElement(Aa,Object.assign({key:e,name:e},r)))))}));var Ca=(0,k.e)((function(e){var{decimal:t,disabled:n,error:a,errorMessage:r,helperText:l,inputProps:i,inputRef:s,label:o,max:c,min:u,name:m,onChange:p,readOnly:h,placeholder:g,showInlineError:v,step:b=(t?.01:1),value:_}=e,E=(0,f._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);return d.createElement(ma.Z,Object.assign({disabled:n,error:!!a,fullWidth:!0,helperText:!!a&&v&&r||l,inputProps:Object.assign({min:u,max:c,readOnly:h,step:b},i),label:o,margin:"dense",name:m,onChange:e=>{const n=(t?parseFloat:parseInt)(e.target.value);p(isNaN(n)?void 0:n)},placeholder:g,ref:s,type:"number",value:null!=_?_:""},(0,O.z)(E)))}),{kind:"leaf"}),ja=n(8993),xa=n(20750);const Pa="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Fa=e=>Pa(encodeURIComponent(e)).replace(/=+$/,"");var Ma=(0,k.e)((function(e){var{options:t,disabled:n,fullWidth:a=!0,id:r,inputRef:l,label:i,margin:s="dense",name:o,onChange:c,readOnly:u,row:m,value:p}=e,h=(0,f._T)(e,["options","disabled","fullWidth","id","inputRef","label","margin","name","onChange","readOnly","row","value"]);return ua(Object.assign(Object.assign({},h),{component:"fieldset",disabled:n,fullWidth:a,margin:s}),i&&d.createElement(ia.Z,{component:"legend",htmlFor:o},i),d.createElement(xa.Z,{id:r,name:o,onChange:e=>n||u||c(e.target.value),ref:l,row:m,value:null!=p?p:""},null==t?void 0:t.map((e=>{var t,n;return d.createElement(ra.Z,{control:d.createElement(ja.Z,Object.assign({id:`${r}-${Fa(e.value)}`},Be()((0,O.z)(h),["checkboxes","helperText"]))),htmlFor:`${r}-${Fa(e.value)}`,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(n=e.label)&&void 0!==n?n:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),Ta=n(13455);const Ia="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Da=e=>Ia(encodeURIComponent(e)).replace(/=+$/,"");var Za=(0,k.e)((function(e){var t,n;const a=null!==(t=e.value)&&void 0!==t?t:"";if(e.checkboxes){const{options:t,disabled:r,fieldType:l,id:i,inputRef:s,label:o,legend:c,name:u,onChange:m,readOnly:p}=e,h="checkbox"===(null!==(n=e.appearance)&&void 0!==n?n:"checkbox")?aa.Z:sa.Z,f=Be()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),g=l!==Array?d.createElement(xa.Z,{id:i,name:u,onChange:e=>r||p||m(e.target.value),ref:s,value:null!=a?a:""},t.map((e=>{var t,n,a;return d.createElement(ra.Z,{control:d.createElement(ja.Z,Object.assign({id:`${i}-${null!==(t=e.key)&&void 0!==t?t:Da(e.value)}`},f)),disabled:e.disabled||r,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(a=e.label)&&void 0!==a?a:e.value,value:e.value})}))):d.createElement(la.Z,{id:i},t.map((e=>{var t,n,l;return d.createElement(ra.Z,{control:d.createElement(h,Object.assign({checked:a.includes(e.value),id:`${i}-${null!==(t=e.key)&&void 0!==t?t:Da(e.value)}`,name:u,onChange:()=>r||p||m(ot()([e.value],a)),ref:s,value:u},f)),disabled:e.disabled||r,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(l=e.label)&&void 0!==l?l:e.value})})));return ua(Object.assign(Object.assign({},e),{component:"fieldset"}),(c||o)&&d.createElement(ia.Z,{component:"legend"},c||o),g)}const{options:r,disabled:l,error:i,errorMessage:s,fieldType:o,fullWidth:c=!0,helperText:u,id:m,InputLabelProps:p,inputProps:h,label:f,labelProps:g,margin:v="dense",name:b,native:_,onChange:E,placeholder:y,readOnly:k,required:N,showInlineError:w,variant:C,textFieldProps:j}=e,x=_?"option":Ta.Z,P=!!y,F=""!==a&&void 0!==a,M=Be()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return d.createElement(ma.Z,Object.assign({disabled:l,error:!!i,fullWidth:c,helperText:!!i&&w&&s||u,InputLabelProps:Object.assign(Object.assign({shrink:!!f&&(P||F)},g),p),label:f,margin:v,onChange:e=>l||k||E(""!==e.target.value?e.target.value:void 0),required:N,select:!0,SelectProps:Object.assign({displayEmpty:P,inputProps:Object.assign({name:b,id:m},h),multiple:o===Array||void 0,native:_},M),value:_&&!a?"":a,variant:C},j),(P||!N||!F)&&d.createElement(x,{value:"",disabled:!!N},y||f),r.map((e=>{var t,n;return d.createElement(x,{disabled:e.disabled,key:null!==(t=e.key)&&void 0!==t?t:e.value,value:e.value},null!==(n=e.label)&&void 0!==n?n:e.value)})))}),{kind:"leaf"});var Sa=(0,k.e)((function(e){var{disabled:t,error:n,errorMessage:a,helperText:r,inputRef:l,label:i,name:s,onChange:o,placeholder:c,readOnly:u,showInlineError:m,type:p="text",value:h=""}=e,g=(0,f._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return d.createElement(ma.Z,Object.assign({disabled:t,error:!!n,fullWidth:!0,helperText:!!n&&m&&a||r,inputProps:{readOnly:u},label:i,margin:"dense",name:s,onChange:e=>t||o(e.target.value),placeholder:c,ref:l,type:p,value:h},(0,O.z)(g)))}),{kind:"leaf"});var Aa=(0,h.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Ma:Za;switch(e.fieldType){case Array:return Na;case Boolean:return da;case Date:return fa;case Number:return Ca;case Object:return wa;case String:return Sa}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Ra(e){var{element:t=d.Fragment,fields:n,omitFields:a=[],showInlineError:r}=e,l=(0,f._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(t,l,(null!=n?n:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(Aa,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var La=function e(t){class n extends t{}return n.Material=e,n.displayName=`Material${t.displayName}`,n}(ye.I);var Ba=function(e){var{children:t,fullWidth:n=!0,margin:a,variant:r}=e,l=(0,f._T)(e,["children","fullWidth","margin","variant"]);const{error:i,schema:s}=(0,be.c)();return i||t?d.createElement(oa.Z,{error:!!i,fullWidth:!!n,margin:a,variant:r},!!t&&d.createElement(ca.Z,Object.assign({},(0,O.z)(l)),t),s.getErrorMessages(i).map(((e,t)=>d.createElement(ca.Z,Object.assign({key:t},(0,O.z)(l)),e)))):null};var za=function(e){var{children:t,disabled:n,inputRef:a,label:r="Submit",value:l}=e,i=(0,f._T)(e,["children","disabled","inputRef","label","value"]);const{error:s,state:o}=(0,be.c)();return d.createElement(ba.Z,Object.assign({disabled:void 0===n?!(!s&&!o.disabled):n,ref:a,type:"submit",value:l,variant:"contained"},(0,O.z)(i)),t||r)};var Wa=function e(t){class n extends(ke.X.Quick(t)){getAutoField(){return Aa}getErrorsField(){return Ba}getSubmitField(){return za}}return n.Quick=e,n}(La);var Ua=function e(t){class n extends(Pe.O.Validated(t)){}return n.Validated=e,n}(La),$a=Ua.Validated(Wa.Quick(La));var Va=function e(t){class n extends(Ee.N.Auto(t)){}return n.Auto=e,n}($a);var Ka=(0,k.e)((function(e){var{children:t,error:n,errorMessage:a,fullWidth:r,margin:l,variant:i}=e,s=(0,f._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);return n?d.createElement(oa.Z,{error:!!n,fullWidth:!!r,margin:"dense"===l?l:void 0,variant:i},d.createElement(ca.Z,Object.assign({},(0,O.z)(s)),t||a)):null}),{initialValue:!1,kind:"leaf"});function qa(e){var t,{value:n}=e,a=(0,f._T)(e,["value"]);const r=(0,$.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==n&&n!==r.value&&r.onChange(n)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(t=null!=n?n:r.value)&&void 0!==t?t:""},(0,O.z)(r)))}var Qa=(0,k.e)((e=>{var{disabled:t,error:n,errorMessage:a,helperText:r,inputRef:l,label:i,name:s,onChange:o,placeholder:c,readOnly:u,showInlineError:m,type:p="text",value:h}=e,g=(0,f._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return d.createElement(ma.Z,Object.assign({disabled:t,error:!!n,fullWidth:!0,helperText:!!n&&m&&a||r,inputProps:{readOnly:u},label:i,margin:"dense",multiline:!0,name:s,onChange:e=>t||o(e.target.value),placeholder:c,ref:l,type:p,value:null!=h?h:""},(0,O.z)(g)))}),{kind:"leaf"}),Ga=n(68599);function Ha(e){var{element:t=d.Fragment,fields:n,omitFields:a=[],showInlineError:r}=e,l=(0,f._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(t,l,(null!=n?n:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(Ga.Z,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Ja=n(2310),Xa=n(99574),Ya=n(12138),er=n(14449);var tr=(0,k.e)((function(e){var{children:t,className:n,error:a,errorMessage:r}=e,l=(0,f._T)(e,["children","className","error","errorMessage"]);return a?d.createElement("div",Object.assign({className:A()("ui",n,"error message")},(0,O.z)(l)),t||d.createElement("div",{className:"header"},r)):null}),{initialValue:!1,kind:"leaf"}),nr=n(43351);function ar(e){var t,{value:n}=e,a=(0,f._T)(e,["value"]);const r=(0,$.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==n&&n!==r.value&&r.onChange(n)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(t=null!=n?n:r.value)&&void 0!==t?t:""},(0,O.z)(r)))}var rr=n(77900),lr=n(960),ir=n(64694),sr=n(18747);var or=(0,k.e)((function(e){var{className:t,disabled:n,error:a,errorMessage:r,id:l,inputRef:i,label:s,name:o,onChange:c,placeholder:u,readOnly:m,required:p,showInlineError:h,value:g}=e,v=(0,f._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);return d.createElement("div",Object.assign({className:A()(t,{disabled:n,error:a,required:p},"field")},(0,O.z)(v)),s&&d.createElement("label",{htmlFor:l},s),d.createElement("textarea",{disabled:n,id:l,name:o,onChange:e=>c(e.target.value),placeholder:u,readOnly:m,ref:i,value:null!=g?g:""}),!(!a||!h)&&d.createElement("div",{className:"ui red basic pointing label"},r))}),{kind:"leaf"}),cr=n(80661),ur=n(59492),dr=n(52559),mr=n(44591),pr=n(47822),hr=n(82986),fr=n(99086),gr=n(3684),vr=n(79904);var br=(0,k.e)((function(e){var{disabled:t,id:n,inputRef:a,label:r,name:l,onChange:i,readOnly:s,value:o}=e,c=(0,f._T)(e,["disabled","id","inputRef","label","name","onChange","readOnly","value"]);return d.createElement("div",Object.assign({},(0,O.z)(c)),d.createElement("input",{checked:o||!1,disabled:t,id:n,name:l,onChange:()=>!t&&!s&&i(!o),ref:a,type:"checkbox"}),r&&d.createElement("label",{htmlFor:n},r))}),{kind:"leaf"});const _r=("object"==typeof n.g?n.g:window).Date,Er=function(e,t){return void 0===t&&(t="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===t?-8:-14)};var yr=(0,k.e)((function(e){var t,{disabled:n,id:a,inputRef:r,label:l,max:i,min:s,name:o,onChange:c,placeholder:u,readOnly:m,value:p,type:h="datetime-local"}=e,g=(0,f._T)(e,["disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","value","type"]);return d.createElement("div",Object.assign({},(0,O.z)(g)),l&&d.createElement("label",{htmlFor:a},l),d.createElement("input",{disabled:n,id:a,max:Er(i),min:Er(s),name:o,onChange:e=>{const t=new _r(e.target.valueAsNumber);t.getFullYear()<1e4?c(t):isNaN(e.target.valueAsNumber)&&c(void 0)},placeholder:u,readOnly:m,ref:r,type:h,value:null!==(t=Er(p,h))&&void 0!==t?t:""}))}),{kind:"leaf"});var Or=(0,k.e)((function(e){var{disabled:t,name:n,readOnly:a,value:r}=e,l=(0,f._T)(e,["disabled","name","readOnly","value"]);const i=(0,U.m)(null,n),s=(0,U.m)(i.slice(0,-1)),o=(0,$.U)(s,{},{absoluteName:!0})[0],c=!(t||o.maxCount<=o.value.length);function u(e){!c||a||"key"in e&&"Enter"!==e.key||o.onChange(o.value.concat([W()(r)]))}return d.createElement("span",Object.assign({},(0,O.z)(l),{onClick:u,onKeyDown:u,role:"button",tabIndex:0}),"+")}),{initialValue:!1,kind:"leaf"});var kr=(0,k.e)((function(e){var{disabled:t,name:n,readOnly:a}=e,r=(0,f._T)(e,["disabled","name","readOnly"]);const l=(0,U.m)(null,n),i=+l[l.length-1],s=(0,U.m)(l.slice(0,-1)),o=(0,$.U)(s,{},{absoluteName:!0})[0];function c(e){if(!(t||"key"in e&&"Enter"!==e.key)){const e=o.value.slice();e.splice(i,1),o.onChange(e)}}return t||(t=a||o.minCount>=o.value.length),d.createElement("span",Object.assign({},(0,O.z)(r),{onClick:c,onKeyDown:c,role:"button",tabIndex:0}),"-")}),{initialValue:!1,kind:"leaf"});var Nr=(0,k.e)((function(e){let{children:t=d.createElement(Sr,{label:null,name:""})}=e;return d.createElement("div",null,d.createElement(kr,{name:""}),t)}),{initialValue:!1});var wr=(0,k.e)((function(e){var{children:t=d.createElement(Nr,{name:"$"}),itemProps:n,label:a,value:r}=e,l=(0,f._T)(e,["children","itemProps","label","value"]);return d.createElement("ul",Object.assign({},(0,O.z)(l)),a&&d.createElement("label",null,a,d.createElement(Or,{name:"$"})),null==r?void 0:r.map(((e,a)=>d.Children.map(t,((e,t)=>{var r;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${a}-${t}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+a)},n)):e})))))}));var Cr=(0,k.e)((function(e){var{children:t,fields:n,itemProps:a,label:r}=e,l=(0,f._T)(e,["children","fields","itemProps","label"]);return d.createElement("div",Object.assign({},(0,O.z)(l)),r&&d.createElement("label",null,r),t||n.map((e=>d.createElement(Sr,Object.assign({key:e,name:e},a)))))}));var jr=(0,k.e)((function(e){var{decimal:t,disabled:n,id:a,inputRef:r,label:l,max:i,min:s,name:o,onChange:c,placeholder:u,readOnly:m,step:p,value:h}=e,g=(0,f._T)(e,["decimal","disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","step","value"]);return d.createElement("div",Object.assign({},(0,O.z)(g)),l&&d.createElement("label",{htmlFor:a},l),d.createElement("input",{disabled:n,id:a,max:i,min:s,name:o,onChange:e=>{const n=(t?parseFloat:parseInt)(e.target.value);c(isNaN(n)?void 0:n)},placeholder:u,readOnly:m,ref:r,step:p||(t?.01:1),type:"number",value:null!=h?h:""}))}),{kind:"leaf"});const xr="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Pr=e=>xr(encodeURIComponent(e)).replace(/=+$/,"");var Fr=(0,k.e)((function(e){var{options:t,disabled:n,id:a,label:r,name:l,onChange:i,readOnly:s,value:o}=e,c=(0,f._T)(e,["options","disabled","id","label","name","onChange","readOnly","value"]);return d.createElement("div",Object.assign({},Be()((0,O.z)(c),["checkboxes"])),r&&d.createElement("label",null,r),null==t?void 0:t.map((e=>{var t,r,c,u;return d.createElement("div",{key:null!==(t=e.key)&&void 0!==t?t:e.value},d.createElement("input",{checked:e.value===o,disabled:e.disabled||n,id:`${a}-${null!==(r=e.key)&&void 0!==r?r:Pr(e.value)}`,name:l,onChange:()=>{s||i(e.value)},type:"radio"}),d.createElement("label",{htmlFor:`${a}-${null!==(c=e.key)&&void 0!==c?c:Pr(e.value)}`},null!==(u=e.label)&&void 0!==u?u:e.value))})))}),{kind:"leaf"});const Mr="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Tr=e=>Mr(encodeURIComponent(e)).replace(/=+$/,"");var Ir=(0,k.e)((function(e){var{checkboxes:t,disabled:n,fieldType:a,id:r,inputRef:l,label:i,name:s,onChange:o,placeholder:c,readOnly:u,required:m,value:p,options:h}=e,g=(0,f._T)(e,["checkboxes","disabled","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","value","options"]);const v=a===Array;return d.createElement("div",Object.assign({},(0,O.z)(g)),i&&d.createElement("label",{htmlFor:r},i),t?null==h?void 0:h.map((e=>{var t,l,i,c,m;return d.createElement("div",{key:null!==(t=e.key)&&void 0!==t?t:e.value},d.createElement("input",{checked:a===Array?null==p?void 0:p.includes(e.value):p===e.value,disabled:null!==(l=e.disabled)&&void 0!==l?l:n,id:`${r}-${null!==(i=e.key)&&void 0!==i?i:Tr(e.value)}`,name:s,onChange:()=>{u||o(a===Array?ot()([e.value],p):e.value)},type:"checkbox"}),d.createElement("label",{htmlFor:`${r}-${null!==(c=e.key)&&void 0!==c?c:Tr(e.value)}`},null!==(m=e.label)&&void 0!==m?m:e.value))})):d.createElement("select",{disabled:n,id:r,multiple:v,name:s,onChange:e=>{if(!u){const t=e.target.value;if(v){const n=-1===e.target.selectedIndex;o(n?[]:ot()([t],p))}else o(""!==t?t:void 0)}},ref:l,value:null!=p?p:""},(!!c||!m||void 0===p)&&!v&&d.createElement("option",{value:"",disabled:m,hidden:m},c||i),null==h?void 0:h.map((e=>{var t,n;return d.createElement("option",{disabled:e.disabled,key:null!==(t=e.key)&&void 0!==t?t:e.value,value:e.value},null!==(n=e.label)&&void 0!==n?n:e.value)}))))}),{kind:"leaf"});function Dr(e){var{autoComplete:t,disabled:n,id:a,inputRef:r,label:l,name:i,onChange:s,placeholder:o,readOnly:c,type:u,value:m}=e,p=(0,f._T)(e,["autoComplete","disabled","id","inputRef","label","name","onChange","placeholder","readOnly","type","value"]);return d.createElement("div",Object.assign({},(0,O.z)(p)),l&&d.createElement("label",{htmlFor:a},l),d.createElement("input",{autoComplete:t,disabled:n,id:a,name:i,onChange:e=>s(e.target.value),placeholder:o,readOnly:c,ref:r,type:u,value:null!=m?m:""}))}Dr.defaultProps={type:"text"};var Zr=(0,k.e)(Dr,{kind:"leaf"});var Sr=(0,h.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Fr:Ir;switch(e.fieldType){case Array:return wr;case Boolean:return br;case Date:return yr;case Number:return jr;case Object:return Cr;case String:return Zr}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Ar(e){var{element:t=d.Fragment,fields:n,omitFields:a=[]}=e,r=(0,f._T)(e,["element","fields","omitFields"]);const{schema:l}=(0,be.c)();return(0,d.createElement)(t,r,(null!=n?n:l.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(Sr,{key:e,name:e}))))}var Rr=function e(t){class n extends t{}return n.Unstyled=e,n.displayName=`Unstyled${t.displayName}`,n}(ye.I);function Lr(e){const{error:t,schema:n}=(0,be.c)();return t||e.children?d.createElement("div",Object.assign({},(0,O.z)(e)),e.children,d.createElement("ul",null,n.getErrorMessages(t).map(((e,t)=>d.createElement("li",{key:t},e))))):null}function Br(e){var{disabled:t,inputRef:n,readOnly:a,value:r}=e,l=(0,f._T)(e,["disabled","inputRef","readOnly","value"]);const{error:i,state:s}=(0,be.c)();return d.createElement("input",Object.assign({disabled:void 0===t?!(!i&&!s.disabled):t,readOnly:a,ref:n,type:"submit"},r?{value:r}:{},(0,O.z)(l)))}var zr=function e(t){class n extends(ke.X.Quick(t)){getAutoField(){return Sr}getErrorsField(){return Lr}getSubmitField(){return Br}}return n.Quick=e,n}(Rr);var Wr=function e(t){class n extends(Pe.O.Validated(t)){}return n.Validated=e,n}(Rr),Ur=Wr.Validated(zr.Quick(Rr));var $r=function e(t){class n extends(Ee.N.Auto(t)){}return n.Auto=e,n}(Ur);var Vr=(0,k.e)((function(e){var{children:t,error:n,errorMessage:a}=e,r=(0,f._T)(e,["children","error","errorMessage"]);return n?d.createElement("div",Object.assign({},(0,O.z)(r)),t||a):null}),{initialValue:!1,kind:"leaf"});function Kr(e){var t,{value:n}=e,a=(0,f._T)(e,["value"]);const r=(0,$.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==n&&n!==r.value&&r.onChange(n)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(t=null!=n?n:r.value)&&void 0!==t?t:""},(0,O.z)(r)))}var qr=n(96614);const Qr=ll("AutoFields"),Gr=ll("AutoField"),Hr=ll("AutoForm"),Jr=(ll("BaseForm"),ll("BoolField"),ll("DateField"),ll("ErrorField")),Xr=ll("ErrorsField"),Yr=(ll("HiddenField"),ll("ListAddField"),ll("ListDelField"),ll("ListField"),ll("ListItemField"),ll("LongTextField")),el=(ll("NestField"),ll("NumField"),ll("QuickForm"),ll("RadioField"),ll("SelectField")),tl=ll("SubmitField"),nl=ll("TextField"),al=(ll("ValidatedForm"),ll("ValidatedQuickForm"),{antd:a,bootstrap4:r,bootstrap5:l,material:i,mui:s,semantic:o,unstyled:c}),rl=(0,d.createContext)("unstyled");function ll(e){return function(t){const n=(0,d.useContext)(rl),a=al[n][e];return d.createElement(a,(0,u.Z)({key:n},t))}}},37309:function(e,t,n){"use strict";n.d(t,{mB:function(){return u},nN:function(){return o},rh:function(){return c}});var a=n(14648),r=n.n(a),l=n(17728),i=n.n(l);const s=["preset","props","theme"],o=e=>i().compressToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");function c(e){try{const t=r()(e,s),n=JSON.stringify(t),a=o(n),l="?"+encodeURIComponent(a);window.location.hash=l}catch(t){}}function u(){try{const t=document.location.hash.replace(/^#\?/,""),n=decodeURIComponent(t),a=(e=n,i().decompressFromBase64(e.replace(/-/g,"+").replace(/_/g,"/"))),l=JSON.parse(a??"");return r()(l,s)}catch(t){return{}}var e}},69403:function(e,t,n){"use strict";n.d(t,{M:function(){return m}});var a=n(27378),r=n(80912),l=n(86236),i=n.n(l),s=n(73633);const o=new(i())({allErrors:!0,useDefaults:!0,$data:!0});o.addKeyword("uniforms");const c={title:"Guest",type:"object",properties:{fullname:{type:"string"},email:{type:"string"},confirmEmail:{type:"string",const:{$data:"1/email"}},password:{type:"string",uniforms:{type:"password"}},confirmPassword:{type:"string",const:{$data:"1/password"},uniforms:{type:"password"}},acceptTermsOfUse:{type:"boolean",const:!0}},required:["fullname","email","confirmEmail","password","confirmPassword","acceptTermsOfUse"]};const u=function(e){const t=o.compile(e);return e=>{var n;return t(e),null!=(n=t.errors)&&n.length?{details:t.errors}:null}}(c),d=new s.j({schema:c,validator:u});function m(){return a.createElement(r.NE,{schema:d,onSubmit:e=>alert(JSON.stringify(e,null,2))})}},85576:function(e,t,n){"use strict";n.d(t,{K:function(){return h}});var a=n(27378),r=n(80912),l=n(76424),i=n(86236),s=n.n(i),o=n(73633);const c=new(s())({allErrors:!0,useDefaults:!0}),u={title:"Guest",type:"object",properties:{pictureUrl:{type:"string"}}};const d=function(e){const t=c.compile(e);return e=>{var n;return t(e),null!=(n=t.errors)&&n.length?{details:t.errors}:null}}(u),m=new o.j({schema:u,validator:d});const p=(0,l.e)((function(e){let{onChange:t,value:n}=e;return a.createElement("div",{className:"ImageField"},a.createElement("label",{htmlFor:"file-input"},a.createElement("div",null,"Choose your photo"),a.createElement("img",{alt:"",src:n||"https://picsum.photos/150?grayscale",style:{cursor:"pointer",width:"150px",height:"150px"}})),a.createElement("input",{accept:"image/*",id:"file-input",onChange:e=>{let{target:{files:n}}=e;n&&n[0]&&t(URL.createObjectURL(n[0]))},style:{display:"none"},type:"file"}))}));function h(){return a.createElement(r.NE,{schema:m,onSubmit:e=>alert(JSON.stringify(e,null,2))},a.createElement("div",{style:{textAlign:"center"}},a.createElement(p,{name:"pictureUrl"}),a.createElement(r.hl,null)))}},24942:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return xe}});var a=n(50353),r=n(38703),l=n(27378),i=n(60042),s=n.n(i),o=n(4940),c=n(25773),u=n(81884);function d(e){let{children:t,className:n,to:a,...r}=e;return l.createElement(u.Z,{to:a},l.createElement("button",(0,c.Z)({},r,{className:s()("button button--lg button--primary",o.Z["call-to-action"],n)}),t))}function m(e){let{children:t,className:n,...a}=e;return l.createElement("h2",(0,c.Z)({},a,{className:s()(o.Z.heading,n)}),t)}const p="https://forminer.com/?utm_source=uniforms&utm_medium=Section_CTA&utm_campaign=Forminer_uniforms_section_CTA&utm_id=Forminer_uniforms_section";function h(){return l.createElement("div",{className:s()("section",o.Z.example)},l.createElement("div",{className:s()("row",o.Z["blue-accent"],o.Z["reverse-wrap"])},l.createElement("div",{className:"col"},l.createElement("div",{className:s()(o.Z["preview-border"],o.Z.preview,o.Z["no-padding"])},l.createElement("a",{className:o.Z["flex-center"],href:p,target:"_blank",rel:"noopener noreferrer"},l.createElement("img",{alt:"Forminer UI",className:o.Z.company,src:"assets/forminer-screenshot.png"})))),l.createElement("div",{className:"col col--4"},l.createElement("div",{className:s()(o.Z["solid-border-box"],o.Z["simple-yet-powerful-text"])},l.createElement("h3",{className:s()(o.Z.centered,o.Z.text,o.Z["heading-helper"])},"Commercial support"),l.createElement(m,null,"Forminer"),l.createElement("p",{className:s()(o.Z.centered,o.Z.text,o.Z["heading-helper"])},"A commercial implementation of uniforms, which can save you up to 1500 hours of work."),l.createElement("ul",{className:s()(o.Z["commercial-bullets"])},l.createElement("li",null,l.createElement("b",null,"Ideal for building no-code tools")," - thanks to a schema-first approach"),l.createElement("li",null,l.createElement("b",null,"Package")," - easy to integrate with your project and design system"),l.createElement("li",null,l.createElement("b",null,"Powerful solution")," - custom fields, full state machine"),l.createElement("li",null,l.createElement("b",null,"Good level of support")," - based on our popular OS solution, uniforms")),l.createElement("div",{className:s()(o.Z["flex-center"],o.Z["top-margin"])},l.createElement(d,{to:p,className:s()(o.Z.discussions,o.Z["long-button"])},"Check Forminer in action"))))))}var f=n(86163);function g(){return l.createElement("div",{className:"section text--center"},l.createElement(m,null,"Comparison",l.createElement("br",null),"with similar libraries"),l.createElement("div",{className:"col col--8 col--offset-2"},l.createElement(f.default,null),l.createElement("div",{className:o.Z.centered},l.createElement(d,{to:"/docs/compare-matrix"},"Read more"))))}function v(){return l.createElement("div",{className:"section text--center"},l.createElement(m,null,"If You want to know more \u2013 join us at GitHub Discussions!"),l.createElement(d,{className:o.Z.discussions,to:"https://github.com/vazco/uniforms/discussions"},"GitHub Discussions"))}var b=n(23197);function _(){return l.createElement("div",{className:s()("section",o.Z.example)},l.createElement("div",{className:"row"},l.createElement("div",{className:"col col--4"},l.createElement("div",{className:s()(o.Z["solid-border-box"],o.Z["green-accent"],o.Z["fully-customizable-text"])},l.createElement(m,null,"Fully",l.createElement("br",null),"customizable"),l.createElement("ul",null,l.createElement("li",null,"One-line helper for creating custom fields"),l.createElement("li",null,"Supports all types of objects"),l.createElement("li",null,"Freedom of choice when defining custom fields depending on the abstraction level-schema or theme dependent approach")))),l.createElement("div",{className:"col"},l.createElement("div",{className:s()(o.Z["preview-border"],o.Z["green-accent"],o.Z.preview)},l.createElement(b.T,{code:n(60319),example:n(85576).K,schema:n(80386)})))))}function E(){return l.createElement("div",{className:s()("section",o.Z.example)},l.createElement("div",{className:s()("row",o.Z["blue-accent"],o.Z["reverse-wrap"])},l.createElement("div",{className:"col"},l.createElement("div",{className:s()(o.Z["preview-border"],o.Z.preview)},l.createElement(b.T,{code:n(26569),example:n(69403).M,schema:n(77066)}))),l.createElement("div",{className:"col col--4"},l.createElement("div",{className:s()(o.Z["solid-border-box"],o.Z["simple-yet-powerful-text"])},l.createElement(m,null,"Simple,",l.createElement("br",null),"yet powerful"),l.createElement("ul",null,l.createElement("li",null,"Abbreviates form code by 51%"),l.createElement("li",null,"Out-of-the box built-in fields capable of rendering every schema"),l.createElement("li",null,"Automatic state management"),l.createElement("li",null,"Inline and asynchronous form validation"),l.createElement("li",null,"Clean-looking components while keeping extensibility and separation of concerns"))))))}function y(){return l.createElement("div",{className:s()(o.Z["showcase-card"],o.Z["border-dashed"])},l.createElement("img",{alt:"",src:"img/uniforms.svg"}),l.createElement("p",{className:s()(o.Z.text,o.Z.paragraph)},"A React library for building forms. Integrates with every schema and wide range of themes."))}function O(){const e=(0,a.Z)(),{email:t}=e.siteConfig.customFields,n=(new Date).getFullYear();return l.createElement("footer",{className:s()("hero hero--primary",o.Z.footer)},l.createElement("div",{className:"container"},l.createElement("div",{className:"row"},l.createElement("div",{className:"col"},l.createElement(y,null)),l.createElement("div",{className:s()("col",o.Z["offset-column"])},l.createElement("h2",{className:s()(o.Z.text,o.Z["footer-heading"])},"Always free",l.createElement("br",null),"and open source"),l.createElement("ul",{className:o.Z.bullets},l.createElement(u.Z,{to:"/docs/installation"},l.createElement("li",null,"Introduction")),l.createElement(u.Z,{to:"/docs/examples-common-forms"},l.createElement("li",null,"Examples")),l.createElement(u.Z,{to:"/docs/api-forms"},l.createElement("li",null,"API Reference")))),l.createElement("div",{className:s()("col",o.Z["offset-column"])},l.createElement("h2",{className:s()(o.Z.text,o.Z["footer-heading"])},"Join the Community!"),l.createElement("ul",{className:o.Z.bullets},l.createElement(u.Z,{to:"https://github.com/vazco/uniforms/discussions"},l.createElement("li",null,"GitHub Discussions")),l.createElement(u.Z,{to:"https://github.com/vazco/uniforms"},l.createElement("li",null,"GitHub")))),l.createElement("div",{className:s()("col",o.Z["offset-column"])},l.createElement("h2",{className:s()(o.Z.text,o.Z["footer-heading"])},"Start a conversation!"),l.createElement(u.Z,{to:`mailto:${t}`},l.createElement("p",{className:s()(o.Z.text,o.Z.paragraph)},t)),l.createElement(u.Z,{to:"https://www.vazco.eu/open-source"},l.createElement("h2",{className:s()(o.Z.text,o.Z["footer-heading"])},"Meet the creators!")),l.createElement("a",{href:"https://vazco.eu"},l.createElement("img",{alt:"Vazco homepage",className:o.Z.vazco,src:"assets/vazco.svg"})),l.createElement("br",null),l.createElement("p",{style:{fontSize:"0.8em",display:"inline-block"},className:s()(o.Z.text,o.Z.paragraph)},"Copyright \xa9 2016 - ",n," Vazco.",l.createElement("br",null)," All Rights Reserved.")))))}var k=n(57292),N=n(633),w=n(80912),C=n(2310),j=n(68599),x=n(82986),P=n(43351),F=n(13762),M=n.n(F),T=n(12005);const I=new(M())({firstName:{type:String},lastName:{type:String},country:{type:String,allowedValues:["Poland","England"],defaultValue:"Poland"},state:{type:String,optional:!0},useThisAddressForPaymentDetails:{type:Boolean,defaultValue:!1},addressLine:{type:String},city:{type:String},zip:{type:String}}),D=new T.V({schema:I}),Z={firstName:"John",lastName:"Doe",addressLine:"7 Podwale st.",city:"Wroclaw"};function S(){return l.createElement(C.Z,{schema:D,onSubmit:e=>alert(JSON.stringify(e,null,2)),model:Z},l.createElement("div",{className:"ui grid"},l.createElement("div",{className:"row"},l.createElement("div",{className:"column"},l.createElement("h1",null,"Shipping address"))),l.createElement("div",{className:"two column row"},l.createElement("div",{className:"column"},l.createElement(j.Z,{name:"firstName"})),l.createElement("div",{className:"column"},l.createElement(j.Z,{name:"lastName"}))),l.createElement("div",{className:"row"},l.createElement("div",{className:"column"},l.createElement(j.Z,{name:"addressLine"}))),l.createElement("div",{className:"two column row"},l.createElement("div",{className:"column"},l.createElement(j.Z,{name:"city"})),l.createElement("div",{className:"column"},l.createElement(j.Z,{name:"state",placeholder:"State/Province/Region"}))),l.createElement("div",{className:"two column row"},l.createElement("div",{className:"column"},l.createElement(j.Z,{name:"zip",placeholder:"Zip / Postal code"})),l.createElement("div",{className:"column"},l.createElement(j.Z,{name:"country"}))),l.createElement("div",{className:"row"},l.createElement("div",{className:"column"},l.createElement(j.Z,{name:"useThisAddressForPaymentDetails"}))),l.createElement("div",{className:"row"},l.createElement("div",{className:"column"},l.createElement(x.Z,{value:"Ship it!",className:"blue fluid"}),l.createElement(P.Z,null)))))}function A(e){let{children:t,className:n,...a}=e;return l.createElement("div",(0,c.Z)({},a,{className:s()(o.Z["system-window"],o.Z["blue-accent"],o.Z["preview-border"],n)}),l.createElement("div",{className:o.Z["system-top-bar"]},l.createElement("span",{className:o.Z["system-top-bar-circle"],style:{backgroundColor:"var(--periwinkle)"}}),l.createElement("span",{className:o.Z["system-top-bar-circle"],style:{backgroundColor:"var(--bright-cyan)"}}),l.createElement("span",{className:o.Z["system-top-bar-circle"],style:{backgroundColor:"var(--sea-green)"}})),t)}function R(){return l.createElement("div",{className:s()(o.Z["floating-example"])},l.createElement(A,null,l.createElement(k.f,{language:"tsx",section:"schema",source:n(71292)})),l.createElement(A,null,l.createElement(w.nN.Provider,{value:"semantic"},l.createElement(N.n,null,l.createElement(S,null)))))}const L=[{alt:"Semantic UI",src:"themes/semantic.svg",to:"https://semantic-ui.com/"},{alt:"Ant Design",src:"themes/antd.png",to:"https://ant.design/"},{alt:"MUI",src:"themes/mui.png",to:"https://mui.com/"},{alt:"Bootstrap",src:"themes/bootstrap.svg",to:"https://getbootstrap.com/"}];function B(){return l.createElement("div",{className:"hero hero--primary"},l.createElement("div",{className:"container"},l.createElement("div",{className:"row"},l.createElement("div",{className:"col"},l.createElement("span",{className:s()(o.Z.text,o.Z["text-big"],o.Z.title)},"uniforms"),l.createElement("h1",{className:s()(o.Z.description,o.Z.text,o.Z["text-huge"])},"A React library for building forms from any schema"),l.createElement("ul",{className:s()(o.Z.text,o.Z.bullets)},l.createElement("li",null,"support of all schemas and themes"),l.createElement("li",null,"instant prototyping"),l.createElement("li",null,"simplifies separation of concerns")),l.createElement("div",{className:o.Z["center-if-sm"]},l.createElement("p",{className:s()(o.Z.text,o.Z.supported)},"Supported design libraries:"),L.map((e=>{let{alt:t,src:n,to:a}=e;return l.createElement(u.Z,{className:o.Z["theme-icon"],key:t,to:a},l.createElement("img",{alt:t,src:`assets/${n}`}))}))),l.createElement("div",{className:o.Z["center-if-sm"]},l.createElement(d,{to:"/docs/tutorials-basic-uniforms-usage"},"Get Started"))),l.createElement("div",{className:"col"},l.createElement(R,null)))))}var z=n(23615),W=n.n(z);function U(){return U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},U.apply(this,arguments)}function $(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var V=(0,l.forwardRef)((function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=e.size,i=void 0===r?24:r,s=$(e,["color","size"]);return l.createElement("svg",U({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),l.createElement("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"}))}));V.propTypes={color:W().string,size:W().oneOfType([W().string,W().number])},V.displayName="Star";var K=V;function q(){return q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},q.apply(this,arguments)}function Q(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var G=(0,l.forwardRef)((function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=e.size,i=void 0===r?24:r,s=Q(e,["color","size"]);return l.createElement("svg",q({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),l.createElement("line",{x1:"6",y1:"3",x2:"6",y2:"15"}),l.createElement("circle",{cx:"18",cy:"6",r:"3"}),l.createElement("circle",{cx:"6",cy:"18",r:"3"}),l.createElement("path",{d:"M18 9a9 9 0 0 1-9 9"}))}));G.propTypes={color:W().string,size:W().oneOfType([W().string,W().number])},G.displayName="GitBranch";var H=G;function J(){return J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},J.apply(this,arguments)}function X(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Y=(0,l.forwardRef)((function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=e.size,i=void 0===r?24:r,s=X(e,["color","size"]);return l.createElement("svg",J({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),l.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),l.createElement("polyline",{points:"7 10 12 15 17 10"}),l.createElement("line",{x1:"12",y1:"15",x2:"12",y2:"3"}))}));Y.propTypes={color:W().string,size:W().oneOfType([W().string,W().number])},Y.displayName="Download";var ee=Y;function te(e){let{children:t,className:n,...a}=e;return l.createElement("span",(0,c.Z)({},a,{className:s()(o.Z.oval,n)}),t)}function ne(e){let{border:t,color:n,icon:a,number:r,text:i,to:c}=e;return l.createElement(u.Z,{to:c,className:s()(o.Z.badge)},l.createElement("img",{className:o.Z["badge-image"],src:`assets/border-0${t}.svg`,alt:""}),a&&l.createElement(te,{className:o.Z["top-right-corner"]},l.createElement(a,{color:n})),l.createElement("div",{className:s()(o.Z["badge-centered"],o.Z.centered)},l.createElement("div",{style:{color:n},className:o.Z["badge-number"]},r),l.createElement("p",{className:o.Z.text},i)))}function ae(e){return`__cached-fetch-${e}`}function re(e,t,n){void 0===n&&(n=0);const{expired:a,data:r}=function(e){try{const t=localStorage.getItem(ae(e)),{expires:n,data:a}=JSON.parse(t??"");return{expired:!n||n<Date.now(),data:a}}catch(t){return{expired:!0,data:null}}}(e);return a?t().then((t=>(function(e,t,n){try{localStorage.setItem(ae(e),JSON.stringify({data:t,expires:n}))}catch(a){}}(e,t,n),t))).catch((()=>r||0)):Promise.resolve(r)}function le(e){return e.toISOString().slice(0,10)}function ie(e){return e.toLocaleString("en-US")}function se(e){const t=function(e){const t=new Date(e);return t.setFullYear(t.getFullYear()+1),t.setDate(t.getDate()-1),t}(e);return`${le(e)}:${le(t)}`}function oe(e,t){return re(`npm-${e}`,(()=>async function(e){const t=await fetch(`https://api.npmjs.org/downloads/point/${e}/uniforms`),{downloads:n}=await t.json();return n||0}(e)),t)}function ce(e,t){const n=function(e,t){const n=[];for(;e<t;)n.push(se(e)),e.setFullYear(e.getFullYear()+1);return n}(e,t),a=n.pop();return Promise.all(n.map((e=>oe(e,Date.now()+321408e5))).concat(oe(a,Date.now()+864e5))).then((e=>e.reduce(((e,t)=>e+t),0)))}function ue(){const[e,t]=(0,l.useState)(),[n,a]=(0,l.useState)(),[r,i]=(0,l.useState)();return(0,l.useEffect)((()=>{re("github",(()=>fetch("https://api.github.com/repos/vazco/uniforms").then((e=>e.json())).then((e=>{let{forks_count:t,stargazers_count:n}=e;return{forks:t,stars:n}}))),Date.now()+12e4).then((e=>{let{forks:n,stars:r}=e;n&&a(ie(n)),r&&t(ie(r))}))}),[e,n]),(0,l.useEffect)((()=>{ce(new Date("2015-01-01"),new Date).then((e=>i(ie(e))))}),[r]),{downloads:r,forks:n,stars:e}}function de(){const{stars:e,forks:t,downloads:n}=ue();return l.createElement("div",{className:"section text--center"},l.createElement("h2",{className:s()(o.Z.centered,o.Z.text,o.Z["heading-helper"])},"Always Open Source."),l.createElement(m,null,"React form library ",l.createElement("br",null)," trusted by GitHub community"),l.createElement("div",{className:s()("row",o.Z.badges)},l.createElement(ne,{border:1,color:"#723CFF",icon:K,number:e,text:"Stars",to:"https://github.com/vazco/uniforms/stargazers"}),l.createElement(ne,{border:2,color:"#3FBBFE",icon:H,number:t,text:"Forks",to:"https://github.com/vazco/uniforms/network/members"}),l.createElement(ne,{border:3,color:"#1FD898",icon:ee,number:n,text:"Downloads",to:"https://www.npmjs.com/package/uniforms"})))}function me(){return me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},me.apply(this,arguments)}function pe(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var he=(0,l.forwardRef)((function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=e.size,i=void 0===r?24:r,s=pe(e,["color","size"]);return l.createElement("svg",me({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),l.createElement("path",{d:"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"}))}));he.propTypes={color:W().string,size:W().oneOfType([W().string,W().number])},he.displayName="GitHub";var fe=he;function ge(){return ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ge.apply(this,arguments)}function ve(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var be=(0,l.forwardRef)((function(e,t){var n=e.color,a=void 0===n?"currentColor":n,r=e.size,i=void 0===r?24:r,s=ve(e,["color","size"]);return l.createElement("svg",ge({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),l.createElement("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),l.createElement("rect",{x:"2",y:"9",width:"4",height:"12"}),l.createElement("circle",{cx:"4",cy:"4",r:"2"}))}));be.propTypes={color:W().string,size:W().oneOfType([W().string,W().number])},be.displayName="Linkedin";var _e=be;function Ee(e){let{className:t,icon:n,to:a,...r}=e;return l.createElement(u.Z,{to:a},l.createElement("div",(0,c.Z)({},r,{className:s()(o.Z["link-icon-container"],t)}),l.createElement(n,null)))}const ye=[{company:"Resolve",description:l.createElement(l.Fragment,null,"uniforms is the backbone of our data-intensive web-applications. We have about 200 different forms, from very simple ones, to ones that are filled with complex data-loading conditional form components, which create an incredible UX for our users. And if you really need to push the limits of what you can do with forms, I would highly recommend"," ",l.createElement("b",null,l.createElement("a",{href:"https://www.vazco.eu/",target:"blank"},"reaching out to Vazco"))," ","themselves for expert advice."),position:"CTO and Co-Founder",who:"Florian Bienefelt",avatar:"img/avatar/florian-bienefelt.jpg",linkGithub:"https://github.com/Floriferous",linkLinkedin:"https://ch.linkedin.com/in/florianbienefelt"},{company:"Mindtree",description:l.createElement(l.Fragment,null,"Vazco's uniforms is a developer's go-to solution for simplifying form creation and validation in JavaScript applications. With its intuitive APIs and extensive feature set, uniforms streamlines the process of building complex forms. It offers a wide range of input types, validation options, and customization possibilities. Backed by an active community, Vazco's uniforms ensures ongoing support and updates, empowering developers to enhance productivity and deliver polished, user-friendly applications."),position:"Senior Technical Specialist",who:"Lorant Vajda",avatar:"img/avatar/lorant-vajda.jpg",linkGithub:"https://github.com/lortschi",linkLinkedin:"https://www.linkedin.com/in/lorant-vajda-596372181/"},{company:"Simple Commerce",description:l.createElement(l.Fragment,null,"We were looking for a forms library that was compatible with React and would help us build forms quicker with built-in logic without having to create it from scratch. And the addition of a GraphQL schema bridge was a no-brainer for us. We added a custom method to help validate required fields based on our GraphQL schema which made it even more practical and quick to use with the built-in features and extensibility. The support for the library is also great, I have never had issues asking questions and getting answers to point me in the right direction."),position:"Software Developer",who:"Kheang Hok Chin",avatar:"img/avatar/kheang-hok-chin.jpg",linkGithub:"https://github.com/simplecommerce",linkLinkedin:"https://www.linkedin.com/in/khokchin"},{company:"Okra",description:l.createElement(l.Fragment,null,"I used uniforms extensively during the height of Meteor.js as a replacement for the dominant forms solution which hadn't caught up with React. The flexibility to leverage different schema solutions coupled with a thoughtfully architected API with a very clean source implementation quickly made it my go-to solution for multiple forms-heavy applications that probably shaved off significant development time and directly boosted my productivity."),position:"Head of Engineering",who:"Serkan Durusoy",avatar:"img/avatar/serkan-durusoy.jpg",linkGithub:"https://github.com/serkandurusoy",linkLinkedin:"https://www.linkedin.com/in/serkandurusoy/"},{company:"Toptal",description:l.createElement(l.Fragment,null,"uniforms is my go-to solution for quite a while. Great holistic approach to tackle forms. I especially love the approach to making custom form layouts. Developer experience par-excellence."),position:"Front-end Platform Architect",who:"Viktor Bezdek",avatar:"img/avatar/viktor-bezdek.jpg",linkGithub:"https://github.com/viktorbezdek",linkLinkedin:"https://www.linkedin.com/in/viktorbezdek/"},{company:"MongoDB",description:l.createElement(l.Fragment,null,"Vazco's uniforms is one and the only library that allows you to have greater flexibility on top of the React platform to building forms you like."),position:"Software Engineer",who:"Wojciech Trocki",avatar:"img/avatar/wojciech-trocki.jpg",linkGithub:"https://github.com/wtrocki",linkLinkedin:"https://www.linkedin.com/in/wojciech-t-39574526/"}];function Oe(e){let{testimonial:t,mirror:n}=e;const{avatar:a,company:r,description:i,linkGithub:c,linkLinkedin:u,position:d,who:m}=t;return l.createElement("div",{className:s()(o.Z.testimonial,o.Z["border-dashed"],n?o.Z["border-disable-top-right"]:o.Z["border-disable-bottom-left"])},l.createElement("div",{className:s()("text--center",o.Z["testimonial-content"],o.Z["border-gradient"],n?o.Z["border-disable-bottom-left"]:o.Z["border-disable-top-right"])},l.createElement("img",{src:a,alt:m,className:o.Z["testimonial-avatar"]}),l.createElement("p",null,l.createElement("b",null,m),l.createElement("br",null),d," at ",l.createElement("b",null,r),l.createElement("br",null)),l.createElement("div",{className:o.Z["testimonial-links-wrapper"]},l.createElement(Ee,{icon:fe,to:c}),l.createElement(Ee,{icon:_e,to:u})),l.createElement("p",{className:s()(o.Z.text,o.Z["testimonial-description"])},i)))}function ke(){const[e,t]=(0,l.useState)(0);return l.createElement("div",{className:"section text--center"},l.createElement("h3",{className:s()(o.Z.centered,o.Z.text,o.Z["heading-helper"])},"They speak about us"),l.createElement(m,null,"Testimonials"),l.createElement("div",{className:o.Z.testimonials},l.createElement("button",{className:s()(o.Z["arrow-button"],o.Z["left-arrow-button"]),onClick:()=>{t((e=>0===e?ye.length-2:e-1))}},l.createElement("img",{alt:"arrow-left",src:"assets/arrow-left.svg",className:o.Z.arrow})),l.createElement("div",{className:o.Z["carousel-container"]},l.createElement("div",{className:o.Z.carousel,style:{transform:`translate(-${50*e}%)`}},ye.map(((t,n)=>l.createElement(Oe,{key:n,testimonial:t,mirror:n!==e}))))),l.createElement("button",{className:s()(o.Z["arrow-button"],o.Z["right-arrow-button"]),onClick:()=>{t((e=>e===ye.length-2?0:e+1))}},l.createElement("img",{alt:"arrow-right",src:"assets/arrow-right.svg",className:o.Z.arrow}))))}function Ne(e){let{children:t,className:n,...a}=e;return l.createElement("h3",(0,c.Z)({},a,{className:s()(o.Z.text,o.Z["section-subtitle"],n)}),t)}function we(){const e=(0,a.Z)(),{companies:t,email:n}=e.siteConfig.customFields;return l.createElement("div",{className:s()("hero hero--primary",o.Z["overflow-hidden"])},l.createElement("div",{className:"container"},l.createElement("div",{className:"section"},l.createElement("div",{className:"row"},l.createElement("div",{className:s()("col",o.Z["section-content"],o.Z.logos)},l.createElement("span",{className:s()(o.Z["section-bgwhite-block"],o.Z["section-bgwhite-block-left"])}),l.createElement("div",{className:o.Z.grid3x3},t.map((e=>{let{image:t,url:n,alt:a}=e;return l.createElement("a",{className:o.Z.item3x3,href:n,key:t},l.createElement("img",{alt:a,className:o.Z.company,src:`assets/companies/${t}`}))})))),l.createElement("div",{className:s()("col col--5",o.Z["section-content"])},l.createElement(Ne,null,"References"),l.createElement(m,{className:o.Z["heading-white"]},"Who uses uniforms"),l.createElement("p",{className:s()(o.Z.text,o.Z.paragraph)},"Our package has been used in several projects worldwide. From small to the corporate business solutions and well-known enterprises. Companies trusted us in the development of both simple forms and sophisticated management systems."),l.createElement("div",{className:o.Z["center-if-sm"]},l.createElement(d,{to:`mailto:${n}`},"Add your company")))))))}function Ce(){return l.createElement("div",{className:s()("hero hero--primary",o.Z["overflow-hidden"],o.Z.whyus)},l.createElement("div",{className:"container"},l.createElement("div",{className:"section"},l.createElement("div",{className:"row"},l.createElement("div",{className:s()("col col--5",o.Z["section-content"])},l.createElement(Ne,null,"Why choose us"),l.createElement(m,{className:o.Z["heading-white"]},"Easy and ready",l.createElement("br",null),"to implement solution"),l.createElement("p",{className:s()(o.Z.text,o.Z.paragraph)},"A set of open-source libraries capable of instantly generating any given form in React."),l.createElement("h2",{className:s()(o.Z.text,o.Z.emphasis)},"Carried out by the global community of 50+ developers."),l.createElement("p",{className:s()(o.Z.text,o.Z.paragraph)},"Focused on providing a ready-to-implement solution, and effortless development experience. Keeps your code simple.")),l.createElement("div",{className:s()("col",o.Z["section-content"],o.Z["section-bgwhite"])},l.createElement("span",{className:s()(o.Z["section-bgwhite-block"],o.Z["section-bgwhite-block-right"])}),l.createElement("div",{className:s()("row",o.Z.padding)},l.createElement("div",{className:"col"},l.createElement(te,{className:o.Z.white},l.createElement("img",{alt:"",src:"assets/icon-01.svg",className:o.Z["small-image"]})),l.createElement("h2",{className:o.Z["section-heading"]},"Integrations with various schemas:"),l.createElement("ul",null,l.createElement("li",null,"JSON Schema"),l.createElement("li",null,"GraphQL"),l.createElement("li",null,"SimpleSchema"),l.createElement("li",null,"SimpleSchema2"),l.createElement("li",null,"Zod"),l.createElement("li",null,"And any other - only a small wrapper is needed!"))),l.createElement("div",{className:"col"},l.createElement(te,{className:o.Z.white},l.createElement("img",{alt:"",src:"assets/icon-02.svg",className:o.Z["small-image"]})),l.createElement("h2",{className:o.Z["section-heading"]},"Wide range of themes:"),l.createElement("ul",null,l.createElement("li",null,"AntD theme"),l.createElement("li",null,"Bootstrap4"),l.createElement("li",null,"Bootstrap5"),l.createElement("li",null,"Material-UI"),l.createElement("li",null,"MUI"),l.createElement("li",null,"Semantic UI"),l.createElement("li",null,"Plain HTML")))))))))}function je(){return l.createElement("div",{className:s()(o.Z.landing,o.Z["overflow-hidden"])},l.createElement(B,null),l.createElement("div",{className:"main"},l.createElement("div",{className:"container"},l.createElement(de,null),l.createElement(ke,null)),l.createElement(Ce,null),l.createElement("div",{className:"container"},l.createElement(E,null),l.createElement(_,null),l.createElement(v,null)),l.createElement(we,null),l.createElement("div",{className:"container"},l.createElement(g,null)),l.createElement("div",{className:"container",id:"commercial-services"},l.createElement(h,null)),l.createElement(O,null)))}function xe(){const e=(0,a.Z)(),{customFields:{keywords:t},tagline:n}=e.siteConfig;return l.createElement(r.Z,{description:n,keywords:t},l.createElement(je,null))}},86163:function(e,t,n){"use strict";n.r(t),n.d(t,{assets:function(){return o},contentTitle:function(){return i},default:function(){return d},frontMatter:function(){return l},metadata:function(){return s},toc:function(){return c}});var a=n(25773),r=(n(27378),n(35318));const l={},i=void 0,s={unversionedId:"compare-matrix-landing",id:"compare-matrix-landing",title:"compare-matrix-landing",description:"| Feature | uniforms | Formik | redux-form | React Final Form | react-hook-form |",source:"@site/../docs/compare-matrix-landing.md",sourceDirName:".",slug:"/compare-matrix-landing",permalink:"/docs/compare-matrix-landing",draft:!1,tags:[],version:"current",frontMatter:{}},o={},c=[],u={toc:c};function d(e){let{components:t,...n}=e;return(0,r.kt)("wrapper",(0,a.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Feature"),(0,r.kt)("th",{parentName:"tr",align:"center"},(0,r.kt)("a",{parentName:"th",href:"https://github.com/vazco/uniforms"},"uniforms")),(0,r.kt)("th",{parentName:"tr",align:"center"},(0,r.kt)("a",{parentName:"th",href:"https://github.com/jaredpalmer/formik"},"Formik")),(0,r.kt)("th",{parentName:"tr",align:"center"},(0,r.kt)("a",{parentName:"th",href:"https://github.com/erikras/redux-form"},"redux-form")),(0,r.kt)("th",{parentName:"tr",align:"center"},(0,r.kt)("a",{parentName:"th",href:"https://github.com/final-form/react-final-form"},"React Final Form")),(0,r.kt)("th",{parentName:"tr",align:null},(0,r.kt)("a",{parentName:"th",href:"https://github.com/react-hook-form/react-hook-form"},"react-hook-form")))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},"Automatic form layout"),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"}))),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},"Manual state management"),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"}))),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},"Manually trigger validation"),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"}))),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},"AntD, Bootstrap 3, Bootstrap 4, Bootstrap 5, Material, MUI, Semantic UI themes"),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"}))),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},"JSON, GraphQL, SimpleSchema, Zod and custom schema support"),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"}))),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},"Field level validation"),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"}))))))}d.isMDXComponent=!0},4940:function(e,t){"use strict";t.Z={"center-if-sm":"center-if-sm_fQBP",padding:"padding_u3oQ",landing:"landing_JSVC","overflow-hidden":"overflow-hidden_pgKL","section-content":"section-content_dsyA",discussions:"discussions_nna8","floating-example":"floating-example_NeZB","system-window":"system-window_utQO","system-top-bar":"system-top-bar_ZKOK","system-top-bar-circle":"system-top-bar-circle_TDqe","showcase-card":"showcase-card_hJCa",footer:"footer_V71b",bullets:"bullets_YLT6","offset-column":"offset-column_Fx18","simple-yet-powerful-text":"simple-yet-powerful-text__cJc","fully-customizable-text":"fully-customizable-text_ka9o","reverse-wrap":"reverse-wrap_wEMw",example:"example_fVIp","preview-border":"preview-border_OFQs",preview:"preview_Ea2L","no-padding":"no-padding_WjVH","solid-border-box":"solid-border-box_A28F","green-accent":"green-accent_H4ZV","blue-accent":"blue-accent_R2MP",grid3x3:"grid3x3_yu8a",item3x3:"item3x3_dug1",company:"company_dMmf","border-dashed":"border-dashed_OHF8","border-gradient":"border-gradient_gHdq","border-disable-top-right":"border-disable-top-right_GH8c","border-disable-bottom-left":"border-disable-bottom-left_uiZP","arrow-button":"arrow-button_hF_x","left-arrow-button":"left-arrow-button_Zn9b","right-arrow-button":"right-arrow-button_J0NN",arrow:"arrow_d93H","carousel-container":"carousel-container_uFWT",carousel:"carousel_vfTV",testimonials:"testimonials__H4G","testimonials-pair-active":"testimonials-pair-active_W4Qz","testimonials-pair-inactive":"testimonials-pair-inactive_OeWi",testimonial:"testimonial_JqOm","testimonial-content":"testimonial-content_yyK0","testimonial-links-wrapper":"testimonial-links-wrapper_aCzC","testimonial-description":"testimonial-description_HpGg","testimonial-avatar":"testimonial-avatar_OiX2","section-heading":"section-heading_Wwdu","section-bgwhite":"section-bgwhite_xc3Y","section-bgwhite-block":"section-bgwhite-block_wuyP","section-bgwhite-block-left":"section-bgwhite-block-left_R077","section-bgwhite-block-right":"section-bgwhite-block-right_XL2o",logos:"logos_slhi",fluid:"fluid_k_Hd",whyus:"whyus_bBI7",oval:"oval_S291","link-icon-container":"link-icon-container_Iy8Z",white:"white_k7iJ","top-right-corner":"top-right-corner_hrD6",badges:"badges_sK0n","badge-number":"badge-number_FlCf",badge:"badge_Cv7E","badge-image":"badge-image_V8QJ","badge-centered":"badge-centered_Cl70","call-to-action":"call-to-action_fHoz","theme-icon":"theme-icon_VaE8",section:"section_SnfD","flex-center":"flex-center_VHPe","top-margin":"top-margin_xVhu","long-button":"long-button_efAi",text:"text_U9e4","text-big":"text-big_oDLV","text-huge":"text-huge_zgdY","heading-helper":"heading-helper_fnxq",heading:"heading_Tyjn","heading-white":"heading-white_SkAD",emphasis:"emphasis_T58q",paragraph:"paragraph_pxCb","section-subtitle":"section-subtitle_etM3","footer-heading":"footer-heading_wvTE",supported:"supported_k5lB",title:"title_L62U",description:"description_aTRG","commercial-bullets":"commercial-bullets_o7pP","commercial-box":"commercial-box_wLXy",vazco:"vazco_f6cf","form-wrapper":"form-wrapper_kccZ",playground:"playground_p2wD","playground-wrap":"playground-wrap_FoP6","playground-column":"playground-column_btgY","playground-toolbar":"playground-toolbar_jwg0",tabs:"tabs_DJzW",item:"item_Lknm",active:"active_R6La",toggler:"toggler_LMZW",header:"header_kKxo",tooltip:"tooltip_OOD_","tooltip-text":"tooltip-text_GGXA","toggler-tabs":"toggler-tabs_UzN0"}},95126:function(e,t,n){var a={"./af":1009,"./af.js":1009,"./ar":88769,"./ar-dz":23739,"./ar-dz.js":23739,"./ar-kw":93745,"./ar-kw.js":93745,"./ar-ly":99576,"./ar-ly.js":99576,"./ar-ma":67408,"./ar-ma.js":67408,"./ar-sa":48781,"./ar-sa.js":48781,"./ar-tn":87856,"./ar-tn.js":87856,"./ar.js":88769,"./az":2030,"./az.js":2030,"./be":56476,"./be.js":56476,"./bg":25304,"./bg.js":25304,"./bm":48125,"./bm.js":48125,"./bn":34,"./bn-bd":29835,"./bn-bd.js":29835,"./bn.js":34,"./bo":64082,"./bo.js":64082,"./br":8317,"./br.js":8317,"./bs":93107,"./bs.js":93107,"./ca":68272,"./ca.js":68272,"./cs":98567,"./cs.js":98567,"./cv":61583,"./cv.js":61583,"./cy":10076,"./cy.js":10076,"./da":31760,"./da.js":31760,"./de":8973,"./de-at":63214,"./de-at.js":63214,"./de-ch":74728,"./de-ch.js":74728,"./de.js":8973,"./dv":54053,"./dv.js":54053,"./el":7499,"./el.js":7499,"./en-au":67876,"./en-au.js":67876,"./en-ca":47010,"./en-ca.js":47010,"./en-gb":34239,"./en-gb.js":34239,"./en-ie":99830,"./en-ie.js":99830,"./en-il":28438,"./en-il.js":28438,"./en-in":25322,"./en-in.js":25322,"./en-nz":43264,"./en-nz.js":43264,"./en-sg":55449,"./en-sg.js":55449,"./eo":39486,"./eo.js":39486,"./es":32430,"./es-do":16310,"./es-do.js":16310,"./es-mx":27038,"./es-mx.js":27038,"./es-us":73099,"./es-us.js":73099,"./es.js":32430,"./et":34975,"./et.js":34975,"./eu":87063,"./eu.js":87063,"./fa":68073,"./fa.js":68073,"./fi":50957,"./fi.js":50957,"./fil":8764,"./fil.js":8764,"./fo":81775,"./fo.js":81775,"./fr":74179,"./fr-ca":14306,"./fr-ca.js":14306,"./fr-ch":73791,"./fr-ch.js":73791,"./fr.js":74179,"./fy":47014,"./fy.js":47014,"./ga":46911,"./ga.js":46911,"./gd":62958,"./gd.js":62958,"./gl":87344,"./gl.js":87344,"./gom-deva":33161,"./gom-deva.js":33161,"./gom-latn":35798,"./gom-latn.js":35798,"./gu":68485,"./gu.js":68485,"./he":27917,"./he.js":27917,"./hi":52159,"./hi.js":52159,"./hr":95842,"./hr.js":95842,"./hu":30005,"./hu.js":30005,"./hy-am":51312,"./hy-am.js":51312,"./id":60781,"./id.js":60781,"./is":64101,"./is.js":64101,"./it":43467,"./it-ch":4759,"./it-ch.js":4759,"./it.js":43467,"./ja":44164,"./ja.js":44164,"./jv":70079,"./jv.js":70079,"./ka":57036,"./ka.js":57036,"./kk":92022,"./kk.js":92022,"./km":63418,"./km.js":63418,"./kn":43655,"./kn.js":43655,"./ko":30986,"./ko.js":30986,"./ku":91902,"./ku.js":91902,"./ky":4604,"./ky.js":4604,"./lb":99026,"./lb.js":99026,"./lo":20537,"./lo.js":20537,"./lt":22288,"./lt.js":22288,"./lv":1495,"./lv.js":1495,"./me":60690,"./me.js":60690,"./mi":2571,"./mi.js":2571,"./mk":93959,"./mk.js":93959,"./ml":97225,"./ml.js":97225,"./mn":88,"./mn.js":88,"./mr":46622,"./mr.js":46622,"./ms":11070,"./ms-my":48899,"./ms-my.js":48899,"./ms.js":11070,"./mt":63931,"./mt.js":63931,"./my":95393,"./my.js":95393,"./nb":4274,"./nb.js":4274,"./ne":8914,"./ne.js":8914,"./nl":33114,"./nl-be":68479,"./nl-be.js":68479,"./nl.js":33114,"./nn":4513,"./nn.js":4513,"./oc-lnc":46549,"./oc-lnc.js":46549,"./pa-in":28264,"./pa-in.js":28264,"./pl":32848,"./pl.js":32848,"./pt":90899,"./pt-br":55077,"./pt-br.js":55077,"./pt.js":90899,"./ro":92512,"./ro.js":92512,"./ru":21753,"./ru.js":21753,"./sd":16840,"./sd.js":16840,"./se":78362,"./se.js":78362,"./si":50464,"./si.js":50464,"./sk":66324,"./sk.js":66324,"./sl":41963,"./sl.js":41963,"./sq":53039,"./sq.js":53039,"./sr":93454,"./sr-cyrl":10466,"./sr-cyrl.js":10466,"./sr.js":93454,"./ss":95158,"./ss.js":95158,"./sv":28859,"./sv.js":28859,"./sw":57594,"./sw.js":57594,"./ta":26915,"./ta.js":26915,"./te":15677,"./te.js":15677,"./tet":92154,"./tet.js":92154,"./tg":74098,"./tg.js":74098,"./th":89071,"./th.js":89071,"./tk":49381,"./tk.js":49381,"./tl-ph":1869,"./tl-ph.js":1869,"./tlh":92346,"./tlh.js":92346,"./tr":71483,"./tr.js":71483,"./tzl":30266,"./tzl.js":30266,"./tzm":33138,"./tzm-latn":32960,"./tzm-latn.js":32960,"./tzm.js":33138,"./ug-cn":29456,"./ug-cn.js":29456,"./uk":50805,"./uk.js":50805,"./ur":61127,"./ur.js":61127,"./uz":29628,"./uz-latn":80840,"./uz-latn.js":80840,"./uz.js":29628,"./vi":56962,"./vi.js":56962,"./x-pseudo":49257,"./x-pseudo.js":49257,"./yo":62423,"./yo.js":62423,"./zh-cn":61002,"./zh-cn.js":61002,"./zh-hk":6046,"./zh-hk.js":6046,"./zh-mo":36903,"./zh-mo.js":36903,"./zh-tw":24710,"./zh-tw.js":24710};function r(e){var t=l(e);return n(t)}function l(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=l,e.exports=r,r.id=95126},71292:function(e,t,n){"use strict";n.r(t),t.default="import SimpleSchema from 'simpl-schema';\nimport { SimpleSchema2Bridge } from 'uniforms-bridge-simple-schema-2';\n\n// <schema>\nconst schema = new SimpleSchema({\n firstName: { type: String },\n lastName: { type: String },\n country: {\n type: String,\n allowedValues: ['Poland', 'England'],\n defaultValue: 'Poland',\n },\n state: {\n type: String,\n optional: true,\n },\n useThisAddressForPaymentDetails: {\n type: Boolean,\n defaultValue: false,\n },\n addressLine: { type: String },\n city: { type: String },\n zip: { type: String },\n});\n\nexport const bridge = new SimpleSchema2Bridge({ schema });\n// </schema>\n"},26569:function(e,t,n){"use strict";n.r(t),t.default="import React from 'react';\nimport { AutoForm } from '../../lib/universal';\n\nimport { bridge as schema } from './SignUpSchema';\n\nexport function SignUp() {\n return (\n <AutoForm\n schema={schema}\n onSubmit={(model: any) => alert(JSON.stringify(model, null, 2))}\n />\n );\n}\n"},77066:function(e,t,n){"use strict";n.r(t),t.default="import Ajv from 'ajv';\nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\n\nconst ajv = new Ajv({ allErrors: true, useDefaults: true, $data: true });\najv.addKeyword('uniforms');\n\nconst schema = {\n title: 'Guest',\n type: 'object',\n properties: {\n fullname: { type: 'string' },\n email: { type: 'string' },\n confirmEmail: { type: 'string', const: { $data: '1/email' } },\n password: {\n type: 'string',\n uniforms: { type: 'password' },\n },\n confirmPassword: {\n type: 'string',\n const: { $data: '1/password' },\n uniforms: { type: 'password' },\n },\n acceptTermsOfUse: { type: 'boolean', const: true },\n },\n required: [\n 'fullname',\n 'email',\n 'confirmEmail',\n 'password',\n 'confirmPassword',\n 'acceptTermsOfUse',\n ],\n};\n\nfunction createValidator(schema: object) {\n const validator = ajv.compile(schema);\n\n return (model: object) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst validator = createValidator(schema);\n\nexport const bridge = new JSONSchemaBridge({ schema, validator });\n"},60319:function(e,t,n){"use strict";n.r(t),t.default="import React from 'react';\nimport { AutoForm, SubmitField } from '../../lib/universal';\nimport { HTMLFieldProps, connectField } from 'uniforms';\n\nimport { bridge as schema } from './ImageFieldSchema';\n\ntype ImageProps = HTMLFieldProps<string, HTMLDivElement>;\n\nfunction Image({ onChange, value }: ImageProps) {\n return (\n <div className=\"ImageField\">\n <label htmlFor=\"file-input\">\n <div>Choose your photo</div>\n <img\n alt=\"\"\n src={value || 'https://picsum.photos/150?grayscale'}\n style={{ cursor: 'pointer', width: '150px', height: '150px' }}\n />\n </label>\n <input\n accept=\"image/*\"\n id=\"file-input\"\n onChange={({ target: { files } }) => {\n if (files && files[0]) {\n onChange(URL.createObjectURL(files[0]));\n }\n }}\n style={{ display: 'none' }}\n type=\"file\"\n />\n </div>\n );\n}\n\nconst ImageField = connectField(Image);\n\nexport function ImageFieldForm() {\n return (\n <AutoForm\n schema={schema}\n onSubmit={(model: any) => alert(JSON.stringify(model, null, 2))}\n >\n <div style={{ textAlign: 'center' }}>\n <ImageField name=\"pictureUrl\" />\n <SubmitField />\n </div>\n </AutoForm>\n );\n}\n"},80386:function(e,t,n){"use strict";n.r(t),t.default="import Ajv from 'ajv';\nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\n\nconst ajv = new Ajv({ allErrors: true, useDefaults: true });\n\nconst schema = {\n title: 'Guest',\n type: 'object',\n properties: {\n pictureUrl: { type: 'string' },\n },\n};\n\nfunction createValidator(schema: object) {\n const validator = ajv.compile(schema);\n\n return (model: object) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst validator = createValidator(schema);\n\nexport const bridge = new JSONSchemaBridge({ schema, validator });\n"}}]); \ No newline at end of file diff --git a/assets/js/58c1b389.221f45ea.js b/assets/js/58c1b389.221f45ea.js new file mode 100644 index 000000000..e813d7eff --- /dev/null +++ b/assets/js/58c1b389.221f45ea.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[48],{35318:function(e,t,n){n.d(t,{Zo:function(){return s},kt:function(){return c}});var a=n(27378);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var d=a.createContext({}),m=function(e){var t=a.useContext(d),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},s=function(e){var t=m(e.components);return a.createElement(d.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},u=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,d=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=m(n),c=r,k=u["".concat(d,".").concat(c)]||u[c]||p[c]||o;return n?a.createElement(k,i(i({ref:t},s),{},{components:n})):a.createElement(k,i({ref:t},s))}));function c(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,i=new Array(o);i[0]=u;var l={};for(var d in t)hasOwnProperty.call(t,d)&&(l[d]=t[d]);l.originalType=e,l.mdxType="string"==typeof e?e:r,i[1]=l;for(var m=2;m<o;m++)i[m]=n[m];return a.createElement.apply(null,i)}return a.createElement.apply(null,n)}u.displayName="MDXCreateElement"},66486:function(e,t,n){n.r(t),n.d(t,{assets:function(){return d},contentTitle:function(){return i},default:function(){return p},frontMatter:function(){return o},metadata:function(){return l},toc:function(){return m}});var a=n(25773),r=(n(27378),n(35318));const o={id:"api-forms",title:"Forms"},i=void 0,l={unversionedId:"api-forms",id:"api-forms",title:"Forms",description:"Forms components",source:"@site/../docs/api-forms.md",sourceDirName:".",slug:"/api-forms",permalink:"/docs/api-forms",draft:!1,tags:[],version:"current",frontMatter:{id:"api-forms",title:"Forms"},sidebar:"docs",previous:{title:"Custom form",permalink:"/docs/examples-custom-form"},next:{title:"Fields",permalink:"/docs/api-fields"}},d={},m=[{value:"Forms components",id:"forms-components",level:2},{value:"<code>AutoForm</code>",id:"autoform",level:3},{value:"Props:",id:"props",level:5},{value:"Props usage:",id:"props-usage",level:5},{value:"<code>ValidatedQuickForm</code>",id:"validatedquickform",level:3},{value:"<code>ValidatedForm</code>",id:"validatedform",level:3},{value:"Props:",id:"props-1",level:5},{value:"Props usage:",id:"props-usage-1",level:5},{value:"<code>QuickForm</code>",id:"quickform",level:3},{value:"Props:",id:"props-2",level:5},{value:"Props usage:",id:"props-usage-2",level:5},{value:"<code>BaseForm</code>",id:"baseform",level:3},{value:"Props:",id:"props-3",level:5},{value:"Props usage:",id:"props-usage-3",level:5},{value:"Form features",id:"form-features",level:2},{value:"Asynchronous validation",id:"asynchronous-validation",level:3},{value:"Autosave",id:"autosave",level:3},{value:"Methods",id:"methods",level:3},{value:"<code>change(key, value)</code>",id:"changekey-value",level:4},{value:"<code>reset()</code>",id:"reset",level:4},{value:"<code>submit()</code>",id:"submit",level:4},{value:"<code>validate()</code>",id:"validate",level:4},{value:"<code>validate(key, value)</code>",id:"validatekey-value",level:4},{value:"<code>validateModel(model)</code>",id:"validatemodelmodel",level:4},{value:"Change reactions",id:"change-reactions",level:3},{value:"Model transformations",id:"model-transformations",level:3},{value:"Validation options and modes",id:"validation-options-and-modes",level:3}],s={toc:m};function p(e){let{components:t,...n}=e;return(0,r.kt)("wrapper",(0,a.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h2",{id:"forms-components"},"Forms components"),(0,r.kt)("p",null,"Most of the time you'll be using either ",(0,r.kt)("inlineCode",{parentName:"p"},"AutoForm")," or ",(0,r.kt)("inlineCode",{parentName:"p"},"ValidatedForm"),", but there are also other form components (rather low-level ones) with different capabilities."),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Component"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Self-generated?"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Self-managed?"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Self-validated?"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"AutoForm")),(0,r.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,r.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,r.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"ValidatedQuickForm")),(0,r.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,r.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,r.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"ValidatedForm")),(0,r.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,r.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,r.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"QuickForm")),(0,r.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,r.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,r.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"BaseForm")),(0,r.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,r.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,r.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f")))),(0,r.kt)("h3",{id:"autoform"},(0,r.kt)("inlineCode",{parentName:"h3"},"AutoForm")),(0,r.kt)("p",null,(0,r.kt)("inlineCode",{parentName:"p"},"AutoForm")," extends ",(0,r.kt)("inlineCode",{parentName:"p"},"ValidatedQuickForm")," with state management.\nIt is the most user-friendly and commonly used form.\nIt's self-generated so if you provide a schema, the fields will be automatically rendered.\nThese fields will be also validated.\nBy default, the validation will take place ",(0,r.kt)("inlineCode",{parentName:"p"},"onSubmit"),", and ",(0,r.kt)("inlineCode",{parentName:"p"},"onChange")," ",(0,r.kt)("strong",{parentName:"p"},"after the first submission"),"."),(0,r.kt)("h5",{id:"props"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"onChangeModel")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Like ",(0,r.kt)("inlineCode",{parentName:"td"},"onChange")," but for the whole model. Triggered just after ",(0,r.kt)("inlineCode",{parentName:"td"},"onChange")," but with the next model instead of (key, value) pair.")))),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Note:")," All ",(0,r.kt)("inlineCode",{parentName:"p"},"ValidatedQuickForm")," props are also accepted and all methods are available.\nIn other words, that means that ",(0,r.kt)("inlineCode",{parentName:"p"},"AutoForm")," receives all props listed on this page."),(0,r.kt)("h5",{id:"props-usage"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { AutoForm } from 'uniforms'; // Or from the theme package.\n\n<AutoForm onChangeModel={model => console.log(model)} />;\n")),(0,r.kt)("h3",{id:"validatedquickform"},(0,r.kt)("inlineCode",{parentName:"h3"},"ValidatedQuickForm")),(0,r.kt)("p",null,"This form combines both ",(0,r.kt)("inlineCode",{parentName:"p"},"QuickForm")," and ",(0,r.kt)("inlineCode",{parentName:"p"},"ValidatedForm")," features.\nIt is not self-managed, however, it will automatically generate fields based on the provided schema and validate them."),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Note:")," All ",(0,r.kt)("inlineCode",{parentName:"p"},"QuickForm")," props are also accepted and all methods are available.",(0,r.kt)("br",null),"\n",(0,r.kt)("strong",{parentName:"p"},"Note:")," All ",(0,r.kt)("inlineCode",{parentName:"p"},"ValidatedForm")," props are also accepted and all methods are available."),(0,r.kt)("h3",{id:"validatedform"},(0,r.kt)("inlineCode",{parentName:"h3"},"ValidatedForm")),(0,r.kt)("p",null,"(",(0,r.kt)("em",{parentName:"p"},"It's rather an internal form, but it's still exported."),")"),(0,r.kt)("p",null,"It's based on ",(0,r.kt)("inlineCode",{parentName:"p"},"BaseForm")," and extends its functionality by enabling automatic form validation.\nIts purpose is providing validation functions.\nIt's not autogenerated, so if you want to see any fields rendered, you have to manually add them.\n",(0,r.kt)("inlineCode",{parentName:"p"},"ValidatedForm")," is not self-managed, so you won't be able to type anything until there is no ",(0,r.kt)("inlineCode",{parentName:"p"},"onChange")," handler,\nhowever, there will be validation checks."),(0,r.kt)("h5",{id:"props-1"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"onValidate")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Additional asynchronous validation. Schema validation has to be sync, so this is the only way to achieve async validation.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"validate")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Validation mode. By default, the form will start to validate from the time of the first submit and then revalidate on every change. It's ",(0,r.kt)("inlineCode",{parentName:"td"},"onChangeAfterSubmit"),". There are also ",(0,r.kt)("inlineCode",{parentName:"td"},"onChange")," and ",(0,r.kt)("inlineCode",{parentName:"td"},"onSubmit")," modes, but those are quite self-explanatory.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"validator")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Validator options. It's passed to ",(0,r.kt)("inlineCode",{parentName:"td"},"getValidator")," of your schema bridge. It really depends on your schema.")))),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Note:")," All ",(0,r.kt)("inlineCode",{parentName:"p"},"BaseForm")," props are also accepted and all methods are available."),(0,r.kt)("h5",{id:"props-usage-1"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { ValidatedForm } from 'uniforms'; // Or from the theme package.\nimport { useRef } from 'react';\n\nconst formRef = useRef();\n\nconst formAction = () => {\n // Reset form.\n // It will reset changed state, model state in AutoForm, validation\n // state in ValidatedForm and rerender.\n formRef.reset();\n\n // Trigger form change.\n // It's a programmatic equivalent of a change event.\n formRef.change(key, value);\n\n // Submit form.\n // It's a programmatic equivalent of a submit event. Returns a promise,\n // which will either resolve with submitted form or reject with\n // validation error in ValidatedForm.\n formRef.submit();\n};\n\n<ValidatedForm\n onValidate={async (model, error) => {\n // You can either ignore validation error...\n if (omitValidation(model)) {\n return null;\n }\n\n // ...or any additional validation if an error is already there...\n if (isSomeSpecialCase(error)) {\n return MyAPI.checkOtherCondition(model);\n }\n\n // ...or feed it with another error.\n return MyAPI.validate(model);\n }}\n validate=\"onChangeAfterSubmit\"\n validator={{ clean: true }}\n ref={formRef}\n/>;\n")),(0,r.kt)("h3",{id:"quickform"},(0,r.kt)("inlineCode",{parentName:"h3"},"QuickForm")),(0,r.kt)("p",null,"(",(0,r.kt)("em",{parentName:"p"},"It's rather an internal form, but it's still exported."),")"),(0,r.kt)("p",null,"It's based on ",(0,r.kt)("inlineCode",{parentName:"p"},"BaseForm")," and extends its functionality by enabling automatic form generation.\nIf you provide a schema, the fields will be automatically rendered.\nHowever, ",(0,r.kt)("inlineCode",{parentName:"p"},"QuickForm")," is not self-managed, so you won't be able to type anything until there is no ",(0,r.kt)("inlineCode",{parentName:"p"},"onChange")," handler.\nYou can customize which ",(0,r.kt)("inlineCode",{parentName:"p"},"AutoField")," should be used with ",(0,r.kt)("a",{parentName:"p",href:"/docs/uth-autofield-algorithm#overriding-autofield"},(0,r.kt)("inlineCode",{parentName:"a"},"AutoField.componentDetectorContext")),"."),(0,r.kt)("h5",{id:"props-2"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"errorsField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Custom ",(0,r.kt)("inlineCode",{parentName:"td"},"ErrorsField"),". It should be anything that will pass through ",(0,r.kt)("inlineCode",{parentName:"td"},"React.createElement"),".")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"submitField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Custom ",(0,r.kt)("inlineCode",{parentName:"td"},"SubmitField"),". It should be anything that will pass through ",(0,r.kt)("inlineCode",{parentName:"td"},"React.createElement"),".")))),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Note:")," All ",(0,r.kt)("inlineCode",{parentName:"p"},"BaseForm")," props are also accepted and all methods are available."),(0,r.kt)("h5",{id:"props-usage-2"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { QuickForm } from 'uniforms'; // Or from the theme package.\n\n<QuickForm errorsField={CustomErrorsField} submitField={CustomSubmitField} />;\n")),(0,r.kt)("h3",{id:"baseform"},(0,r.kt)("inlineCode",{parentName:"h3"},"BaseForm")),(0,r.kt)("p",null,"(",(0,r.kt)("em",{parentName:"p"},"It's rather an internal form, but it's still exported."),")"),(0,r.kt)("p",null,"It's the very basic form & foundation for the other forms.\nIt's not autogenerated, so if you want to see any fields rendered, you have to manually add them.\nHowever, ",(0,r.kt)("inlineCode",{parentName:"p"},"BaseForm")," is not self-managed, so you won't be able to type anything until there is no ",(0,r.kt)("inlineCode",{parentName:"p"},"onChange")," handler."),(0,r.kt)("h5",{id:"props-3"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"autosaveDelay")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Autosave delay. Set 0 for an instant autosave.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"autosave")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Enable autosave. Every change triggers ",(0,r.kt)("inlineCode",{parentName:"td"},"onSubmit"),".")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"disabled")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Default ",(0,r.kt)("inlineCode",{parentName:"td"},"disabled")," prop for all fields. By default it's ",(0,r.kt)("inlineCode",{parentName:"td"},"false")," - set it to ",(0,r.kt)("inlineCode",{parentName:"td"},"true")," to disable the whole form.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"error")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Validation error. Current validation state. It should be either compatible with your schema or an ",(0,r.kt)("inlineCode",{parentName:"td"},"Error")," object.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"grid")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Bootstrap grid layout style. Passing a number is an equivalent of ",(0,r.kt)("inlineCode",{parentName:"td"},"{sm: n}"),". Object is a ",(0,r.kt)("inlineCode",{parentName:"td"},"{mode: size}")," object. Complete string is simply passed through. Available in: bootstrap3, bootstrap4.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"model")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Form model. An object with ",(0,r.kt)("inlineCode",{parentName:"td"},"{field: value}")," structure. It doesn't matter if it has a prototype or not, but keep in mind that in ",(0,r.kt)("inlineCode",{parentName:"td"},"onSubmit")," or in ",(0,r.kt)("inlineCode",{parentName:"td"},"onChangeModel")," you'll receive a plain object. If you treat form as an input, then this is a value.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"modelTransform")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Model transform. Function transforming one model into another. It's used in a few situations (modes) described below. Do not mutate a given model!")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"onChange")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field change action. It receives two arguments: key and value, where the key is a dot-separated path to the changed field and value is a requested value.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"onSubmit")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Submit action. When the form is submitted manually or by an HTML5 event, then it's called with the current model. ",(0,r.kt)("strong",{parentName:"td"},"Note:")," use ",(0,r.kt)("inlineCode",{parentName:"td"},"Promise")," to return values and errors - synchronous ",(0,r.kt)("inlineCode",{parentName:"td"},"return")," and ",(0,r.kt)("inlineCode",{parentName:"td"},"throw")," are disallowed.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"readOnly")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Default ",(0,r.kt)("inlineCode",{parentName:"td"},"readOnly")," prop for all fields. By default it's ",(0,r.kt)("inlineCode",{parentName:"td"},"false")," - set it to ",(0,r.kt)("inlineCode",{parentName:"td"},"true")," to make the whole form read-only.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"schema")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Form schema. It's used for form generation in QuickForm and validation in ValidatedForm.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"showInlineError")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Default ",(0,r.kt)("inlineCode",{parentName:"td"},"showInlineError")," prop for all fields. By default it's ",(0,r.kt)("inlineCode",{parentName:"td"},"false")," - set it to ",(0,r.kt)("inlineCode",{parentName:"td"},"true")," to enable inline errors for the whole form. Available in: antd, bootstrap3, bootstrap4, semantic.")))),(0,r.kt)("h5",{id:"props-usage-3"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { BaseForm } from 'uniforms'; // Or from the theme package.\nimport { useRef } from 'react';\n\nconst formRef = useRef();\n\nconst formAction = () => {\n // Reset form.\n // It will reset changed state, model state in AutoForm, validation\n // state in ValidatedForm and rerender.\n formRef.reset();\n\n // Trigger form change.\n // It's a programmatic equivalent of a change event.\n formRef.change(key, value);\n\n // Submit form.\n // It's a programmatic equivalent of a submit event. Returns a promise,\n // which will either resolve with submitted form or reject with\n // validation error in ValidatedForm.\n formRef.submit();\n};\n\n<BaseForm\n autosaveDelay={0}\n autosave={false}\n disabled={false}\n error={new Error('Nope.')}\n grid={3} // 'col-3-sm' on label, 'col-9-sm' on input\n grid=\"4\" // 'col-4-sm' on label, 'col-8-sm' on input\n grid={{ md: 5 }} // 'col-5-md' on label, 'col-7-md' on input\n grid=\"col-6-xl\" // 'col-6-xl' on label, 'col-6-xl' on input\n model={{ fieldA: 1 }}\n modelTransform={(mode, model) => {\n // This model will be passed to the fields.\n if (mode === 'form') {\n /* ... */\n }\n\n // This model will be submitted.\n if (mode === 'submit') {\n /* ... */\n }\n\n // This model will be validated.\n if (mode === 'validate') {\n /* ... */\n }\n\n // Otherwise, return unaltered model.\n return model;\n }}\n onChange={(key, value) => console.log(key, value)}\n onSubmit={model => db.saveThatReturnsPromiseOrNothing(model)}\n readOnly={false}\n schema={myFormSchema}\n showInlineError\n ref={formRef}\n/>;\n")),(0,r.kt)("h2",{id:"form-features"},"Form features"),(0,r.kt)("h3",{id:"asynchronous-validation"},"Asynchronous validation"),(0,r.kt)("p",null,(0,r.kt)("inlineCode",{parentName:"p"},"AutoForm")," and ",(0,r.kt)("inlineCode",{parentName:"p"},"ValidatedForm")," both accept an ",(0,r.kt)("inlineCode",{parentName:"p"},"onValidate")," prop. It can be used to create an asynchronous validation:"),(0,r.kt)("p",null,"The ",(0,r.kt)("inlineCode",{parentName:"p"},"onValidate")," should return ",(0,r.kt)("inlineCode",{parentName:"p"},"null")," if the ",(0,r.kt)("inlineCode",{parentName:"p"},"model")," is valid, otherwise return any error value. The error can be either ",(0,r.kt)("inlineCode",{parentName:"p"},"Promise")," for asynchronous validation or any other value for synchronous validation (",(0,r.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/blob/d557f90e6807e34c1ebb9803d44fd799174175f8/packages/uniforms/src/ValidatedForm.tsx#L118-L142"},"https://github.com/vazco/uniforms/blob/d557f90e6807e34c1ebb9803d44fd799174175f8/packages/uniforms/src/ValidatedForm.tsx#L118-L142"),")."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"const MyAPI = {\n checkOtherCondition(model): Error | null {\n if (model.age < 18) {\n return new Error('Too young')\n }\n return null\n }\n\n async validate(model): Error | null {\n const result = await fetch('...', { body: JSON.stringify(model) })\n const { error } = await result.json()\n return error\n }\n}\n\nconst onValidate = async (model, error) => {\n // You can either ignore validation error...\n if (omitValidation(model)) {\n return null;\n }\n\n // ...or any additional validation if an error is already there...\n if (isSomeSpecialCase(error)) {\n return MyAPI.checkOtherCondition(model);\n }\n\n // ...or feed it with another error.\n return MyAPI.validate(model);\n};\n\n// Later...\n\n<ValidatedForm {...props} onValidate={onValidate} />;\n")),(0,r.kt)("h3",{id:"autosave"},"Autosave"),(0,r.kt)("p",null,"Every form has autosave functionality. If you set an ",(0,r.kt)("inlineCode",{parentName:"p"},"autosave")," prop, then every change will trigger a submit. There's also an ",(0,r.kt)("inlineCode",{parentName:"p"},"autosaveDelay")," prop - a minimum time between saves in milliseconds (default: ",(0,r.kt)("inlineCode",{parentName:"p"},"0"),")."),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Example:")),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"<AutoForm\n autosave\n autosaveDelay={5000} // 5 seconds\n schema={schema}\n onSubmit={onSubmit}\n/>\n")),(0,r.kt)("h3",{id:"methods"},"Methods"),(0,r.kt)("p",null,"You can use ",(0,r.kt)("a",{parentName:"p",href:"https://facebook.github.io/react/docs/more-about-refs.html"},"React ",(0,r.kt)("inlineCode",{parentName:"a"},"ref")," prop")," to manually access form methods. Example usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { useRef } from 'react';\n\nconst MyForm = ({ schema, onSubmit }) => {\n const formRef = useRef();\n\n return (\n <section>\n <AutoForm ref={formRef} schema={schema} onSubmit={onSubmit} />\n <small onClick={() => formRef.reset()}>Reset</small>\n <small onClick={() => formRef.submit()}>Submit</small>\n </section>\n );\n};\n")),(0,r.kt)("p",null,"You can do the same by using the ",(0,r.kt)("a",{parentName:"p",href:"/docs/api-context-data#accessing-context-data"},(0,r.kt)("inlineCode",{parentName:"a"},"useForm"))," hook and the ",(0,r.kt)("a",{parentName:"p",href:"/docs/api-context-data#formref"},(0,r.kt)("inlineCode",{parentName:"a"},"formRef"))," property."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"function FormControls() {\n const { formRef } = useForm();\n\n return (\n <>\n <button onClick={() => formRef.reset()}>Reset</button>\n <button onClick={() => formRef.submit()}>Submit</button>\n </>\n );\n}\n\nfunction App() {\n return (\n <AutoForm>\n <FormControls />\n </AutoForm>\n );\n}\n")),(0,r.kt)("p",null,"All available methods:"),(0,r.kt)("h4",{id:"changekey-value"},(0,r.kt)("inlineCode",{parentName:"h4"},"change(key, value)")),(0,r.kt)("p",null,"Triggers a form change. It's a programmatic equivalent of a change event."),(0,r.kt)("h4",{id:"reset"},(0,r.kt)("inlineCode",{parentName:"h4"},"reset()")),(0,r.kt)("p",null,"Resets a form. It will also reset changed state, model state (only in AutoForm), validation state (only in ValidatedForm) and trigger a rerender."),(0,r.kt)("h4",{id:"submit"},(0,r.kt)("inlineCode",{parentName:"h4"},"submit()")),(0,r.kt)("p",null,"Submits a form. It's a programmatic equivalent of a submit event. Returns a promise, which will either resolve with a submitted model or reject with validation error in ValidatedForm."),(0,r.kt)("h4",{id:"validate"},(0,r.kt)("inlineCode",{parentName:"h4"},"validate()")),(0,r.kt)("p",null,(0,r.kt)("em",{parentName:"p"},"(added in ",(0,r.kt)("inlineCode",{parentName:"em"},"ValidatedForm"),")")),(0,r.kt)("p",null,"Validates a form with the current model. Returns a Promise, which rejects with a validation error or resolves without any value. Note, that it resolves/rejects ",(0,r.kt)("strong",{parentName:"p"},"after")," the component is rerendered."),(0,r.kt)("h4",{id:"validatekey-value"},(0,r.kt)("inlineCode",{parentName:"h4"},"validate(key, value)")),(0,r.kt)("p",null,(0,r.kt)("em",{parentName:"p"},"(added in ",(0,r.kt)("inlineCode",{parentName:"em"},"ValidatedForm"),")")),(0,r.kt)("p",null,"Validates a form with key set to value. You can use it to check, if a given value will pass the validation or not. Returns validation Promise, as described above."),(0,r.kt)("h4",{id:"validatemodelmodel"},(0,r.kt)("inlineCode",{parentName:"h4"},"validateModel(model)")),(0,r.kt)("p",null,(0,r.kt)("em",{parentName:"p"},"(added in ",(0,r.kt)("inlineCode",{parentName:"em"},"ValidatedForm"),")")),(0,r.kt)("p",null,"Validates a form with the given model. Returns validation Promise, as described above."),(0,r.kt)("h3",{id:"change-reactions"},"Change reactions"),(0,r.kt)("p",null,"If you want to make one field to influence others, simply extend ",(0,r.kt)("inlineCode",{parentName:"p"},"AutoForm")," and override ",(0,r.kt)("inlineCode",{parentName:"p"},"onChange")," method."),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Example:")),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"class ChainForm extends AutoForm {\n onChange(key, value) {\n if (key === 'key_to_intercept') return;\n if (key === 'key_to_translate') return super.onChange('another_key', value);\n if (key === 'key_to_mutate') {\n super.onChange('another_key1', value * 2);\n super.onChange('another_key2', value / 2);\n return;\n }\n\n super.onChange(key, value);\n }\n}\n")),(0,r.kt)("p",null,"It can be easily applied multiple times to make your forms even more reusable."),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Example:")),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"const withMultipliedField = (fieldA, fieldB, Form) =>\n class withMultipliedFieldForm extends Form {\n onChange(key, value) {\n // Multiply fieldA\n if (key === fieldA) super.onChange(fieldB, value + value);\n\n // Pass every change\n super.onChange(key, value);\n }\n };\n")),(0,r.kt)("h3",{id:"model-transformations"},"Model transformations"),(0,r.kt)("p",null,"If you need to transform model before it will be validated, submitted or passed down to the fields, there's a ",(0,r.kt)("inlineCode",{parentName:"p"},"modelTransform")," prop, which should be used in those use cases."),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Example:")),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"<AutoForm\n // Do not mutate given model!\n modelTransform={(mode, model) => {\n // This model will be passed to the fields.\n if (mode === 'form') {\n /* ... */\n }\n\n // This model will be submitted.\n if (mode === 'submit') {\n /* ... */\n }\n\n // This model will be validated.\n if (mode === 'validate') {\n /* ... */\n }\n\n // Otherwise, return unaltered model.\n return model;\n }}\n onSubmit={onSubmit}\n schema={schema}\n/>\n")),(0,r.kt)("h3",{id:"validation-options-and-modes"},"Validation options and modes"),(0,r.kt)("p",null,"Any form can be validated in one those three styles:"),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("inlineCode",{parentName:"p"},"onChange"),"\nValidate on every change.")),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("inlineCode",{parentName:"p"},"onChangeAfterSubmit")," ",(0,r.kt)("em",{parentName:"p"},"(default)"),"\nValidate on every change, but only after first submit.")),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("p",{parentName:"li"},(0,r.kt)("inlineCode",{parentName:"p"},"onSubmit"),"\nValidate on every submit."))),(0,r.kt)("p",null,"If your schema validator accepts any options, those can be passed in ",(0,r.kt)("inlineCode",{parentName:"p"},"validator")," prop."),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Example:")),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},'<AutoForm\n validate="onChange"\n validator={validatorOptions}\n schema={schema}\n onSubmit={onSubmit}\n/>\n')))}p.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/60b54014.1b55a4bd.js b/assets/js/60b54014.1b55a4bd.js new file mode 100644 index 000000000..b2b1e3396 --- /dev/null +++ b/assets/js/60b54014.1b55a4bd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[21],{35318:function(t,e,a){a.d(e,{Zo:function(){return p},kt:function(){return k}});var r=a(27378);function n(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function i(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function l(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?i(Object(a),!0).forEach((function(e){n(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function m(t,e){if(null==t)return{};var a,r,n=function(t,e){if(null==t)return{};var a,r,n={},i=Object.keys(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)>=0||(n[a]=t[a]);return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)a=i[r],e.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}var o=r.createContext({}),d=function(t){var e=r.useContext(o),a=e;return t&&(a="function"==typeof t?t(e):l(l({},e),t)),a},p=function(t){var e=d(t.components);return r.createElement(o.Provider,{value:e},t.children)},c={inlineCode:"code",wrapper:function(t){var e=t.children;return r.createElement(r.Fragment,{},e)}},g=r.forwardRef((function(t,e){var a=t.components,n=t.mdxType,i=t.originalType,o=t.parentName,p=m(t,["components","mdxType","originalType","parentName"]),g=d(a),k=n,u=g["".concat(o,".").concat(k)]||g[k]||c[k]||i;return a?r.createElement(u,l(l({ref:e},p),{},{components:a})):r.createElement(u,l({ref:e},p))}));function k(t,e){var a=arguments,n=e&&e.mdxType;if("string"==typeof t||n){var i=a.length,l=new Array(i);l[0]=g;var m={};for(var o in e)hasOwnProperty.call(e,o)&&(m[o]=e[o]);m.originalType=t,m.mdxType="string"==typeof t?t:n,l[1]=m;for(var d=2;d<i;d++)l[d]=a[d];return r.createElement.apply(null,l)}return r.createElement.apply(null,a)}g.displayName="MDXCreateElement"},69296:function(t,e,a){a.r(e),a.d(e,{assets:function(){return o},contentTitle:function(){return l},default:function(){return c},frontMatter:function(){return i},metadata:function(){return m},toc:function(){return d}});var r=a(25773),n=(a(27378),a(35318));const i={id:"compare-matrix",title:"Comparison matrix"},l=void 0,m={unversionedId:"compare-matrix",id:"compare-matrix",title:"Comparison matrix",description:"| Feature | uniforms | Formik | redux-form | React Final Form | react-hook-form | react-jsonschema-form |",source:"@site/../docs/compare-matrix.md",sourceDirName:".",slug:"/compare-matrix",permalink:"/docs/compare-matrix",draft:!1,tags:[],version:"current",frontMatter:{id:"compare-matrix",title:"Comparison matrix"},sidebar:"docs",previous:{title:"Motivation",permalink:"/docs/motivation"},next:{title:"Installation",permalink:"/docs/installation"}},o={},d=[{value:"Feature descriptions",id:"feature-descriptions",level:3},{value:"Synchronous validation",id:"synchronous-validation",level:4},{value:"Asynchronous validation",id:"asynchronous-validation",level:4},{value:"Field-level validation",id:"field-level-validation",level:4},{value:"Manual form layout",id:"manual-form-layout",level:4},{value:"Automatic form layout",id:"automatic-form-layout",level:4},{value:"Manual state management mode",id:"manual-state-management-mode",level:4},{value:"Automatic state management mode",id:"automatic-state-management-mode",level:4},{value:"Manually trigger change",id:"manually-trigger-change",level:4},{value:"Manually trigger reset",id:"manually-trigger-reset",level:4},{value:"Manually trigger validation",id:"manually-trigger-validation",level:4},{value:"Built in focus state management",id:"built-in-focus-state-management",level:4}],p={toc:d};function c(t){let{components:e,...a}=t;return(0,n.kt)("wrapper",(0,r.Z)({},p,a,{components:e,mdxType:"MDXLayout"}),(0,n.kt)("table",null,(0,n.kt)("thead",{parentName:"table"},(0,n.kt)("tr",{parentName:"thead"},(0,n.kt)("th",{parentName:"tr",align:"right"},"Feature"),(0,n.kt)("th",{parentName:"tr",align:"center"},(0,n.kt)("a",{parentName:"th",href:"https://github.com/vazco/uniforms"},"uniforms")),(0,n.kt)("th",{parentName:"tr",align:"center"},(0,n.kt)("a",{parentName:"th",href:"https://github.com/jaredpalmer/formik"},"Formik")),(0,n.kt)("th",{parentName:"tr",align:"center"},(0,n.kt)("a",{parentName:"th",href:"https://github.com/erikras/redux-form"},"redux-form")),(0,n.kt)("th",{parentName:"tr",align:"center"},(0,n.kt)("a",{parentName:"th",href:"https://github.com/final-form/react-final-form"},"React Final Form")),(0,n.kt)("th",{parentName:"tr",align:"center"},(0,n.kt)("a",{parentName:"th",href:"https://github.com/react-hook-form/react-hook-form"},"react-hook-form")),(0,n.kt)("th",{parentName:"tr",align:"center"},(0,n.kt)("a",{parentName:"th",href:"https://github.com/rjsf-team/react-jsonschema-form"},"react-jsonschema-form")))),(0,n.kt)("tbody",{parentName:"table"},(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},(0,n.kt)("a",{parentName:"td",href:"#synchronous-validation"},"Synchronous validation")),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},(0,n.kt)("a",{parentName:"td",href:"#asynchronous-validation"},"Asynchronous validation")),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f",(0,n.kt)("sup",{parentName:"td",id:"fnref-1"},(0,n.kt)("a",{parentName:"sup",href:"#fn-1",className:"footnote-ref"},"1")))),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},(0,n.kt)("a",{parentName:"td",href:"#field-level-validation"},"Field level validation")),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},(0,n.kt)("a",{parentName:"td",href:"#manual-form-layout"},"Manual form layout")),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},(0,n.kt)("a",{parentName:"td",href:"#automatic-form-layout"},"Automatic form layout")),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},(0,n.kt)("a",{parentName:"td",href:"#manual-state-management-mode"},"Manual state management mode")),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},(0,n.kt)("a",{parentName:"td",href:"#automatic-state-management-mode"},"Automatic state management mode")),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},(0,n.kt)("a",{parentName:"td",href:"#manually-trigger-change"},"Manually trigger change")),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},(0,n.kt)("a",{parentName:"td",href:"#manually-trigger-reset"},"Manually trigger reset")),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},(0,n.kt)("a",{parentName:"td",href:"#manually-trigger-validation"},"Manually trigger validation")),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},(0,n.kt)("a",{parentName:"td",href:"#built-in-focus-state-management"},"Built in focus state management")),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},"Ant Design theme"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},"Bootstrap 3 theme"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},"Bootstrap 4 theme"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},"Bootstrap 5 theme"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},"Chakra UI theme"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},"Fluent UI theme"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},"Semantic UI theme"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},"Material theme"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},"MUI theme"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},"Your custom theme"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},"JSON Schema support"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},"GraphQL schema support"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},"SimpleSchema support"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},"Zod schema support"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f")),(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:"right"},"Your custom schema support"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2714\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f"),(0,n.kt)("td",{parentName:"tr",align:"center"},"\u2716\ufe0f")))),(0,n.kt)("h3",{id:"feature-descriptions"},"Feature descriptions"),(0,n.kt)("h4",{id:"synchronous-validation"},"Synchronous validation"),(0,n.kt)("p",null,"This type of validation checks user input immediately as it is entered in a form field."),(0,n.kt)("h4",{id:"asynchronous-validation"},"Asynchronous validation"),(0,n.kt)("p",null,"This type of validation checks user input after it has been submitted."),(0,n.kt)("h4",{id:"field-level-validation"},"Field-level validation"),(0,n.kt)("p",null,"Refers to the process of validating individual form fields against predefined rules or requirements."),(0,n.kt)("h4",{id:"manual-form-layout"},"Manual form layout"),(0,n.kt)("p",null,"Allows the structure of form elements to be defined manually."),(0,n.kt)("h4",{id:"automatic-form-layout"},"Automatic form layout"),(0,n.kt)("p",null,"Allows autogenerating the structure of form elements depending on a provided schema."),(0,n.kt)("h4",{id:"manual-state-management-mode"},"Manual state management mode"),(0,n.kt)("p",null,"The ability to manually control and update the state or values of form elements (such as input fields, checkboxes, or radio buttons)."),(0,n.kt)("h4",{id:"automatic-state-management-mode"},"Automatic state management mode"),(0,n.kt)("p",null,"Automatically manage the state or values of form elements (such as input fields, checkboxes, or radio buttons) without requiring explicit manual updates by developers."),(0,n.kt)("h4",{id:"manually-trigger-change"},"Manually trigger change"),(0,n.kt)("p",null,"Allows to initiate changes of form values manually."),(0,n.kt)("h4",{id:"manually-trigger-reset"},"Manually trigger reset"),(0,n.kt)("p",null,"Allows to reset form values manually."),(0,n.kt)("h4",{id:"manually-trigger-validation"},"Manually trigger validation"),(0,n.kt)("p",null,"Allows to validate form values manually."),(0,n.kt)("h4",{id:"built-in-focus-state-management"},"Built in focus state management"),(0,n.kt)("p",null,"Automatically manage the visual state of form elements when they are focused or blurred (i.e., when the user clicks on or navigates away from an element)."),(0,n.kt)("div",{className:"footnotes"},(0,n.kt)("hr",{parentName:"div"}),(0,n.kt)("ol",{parentName:"div"},(0,n.kt)("li",{parentName:"ol",id:"fn-1"},"There's no built-in flow for that, but you can handle it yourself and pass it to the display.",(0,n.kt)("a",{parentName:"li",href:"#fnref-1",className:"footnote-backref"},"\u21a9")))))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/670.a380bf04.js b/assets/js/670.a380bf04.js new file mode 100644 index 000000000..dbef02fb7 --- /dev/null +++ b/assets/js/670.a380bf04.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[670],{34670:function(e,s,t){t.r(s)}}]); \ No newline at end of file diff --git a/assets/js/6f53493e.4130b5ba.js b/assets/js/6f53493e.4130b5ba.js new file mode 100644 index 000000000..4903d4afe --- /dev/null +++ b/assets/js/6f53493e.4130b5ba.js @@ -0,0 +1,128 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[50],{73633:function(e,n,t){"use strict";t.d(n,{j:function(){return F}}),t(11561).z.register("minCount","maxCount");var r=t(59312),a=t(3996),l=t.n(a),i=t(30454),o=t.n(i),s=t(99729),u=t.n(s),d=t(90104),c=t.n(d),m=t(1883),p=t.n(m),f=t(16651),h=t.n(f),_=t(76744),v=t.n(_),g=t(98949),b=t(65507);function E(e,n){l()(n,'Field not found in schema: "%s"',e)}function y(e,n){if(!("$ref"in e))return e;const{$ref:t}=e,a=(0,r._T)(e,["$ref"]);return y(Object.assign({},a,function(e,n){l()(e.startsWith("#"),'Reference is not an internal reference, and only such are allowed: "%s"',e);const t=e.split("/").filter((e=>e&&"#"!==e)).reduce(((e,n)=>e[n]),n);return l()(t,'Reference not found in schema: "%s"',e),t}(t,n)),n)}const O=["allOf","anyOf","oneOf"],C=["default","enum","format","isRequired","title","uniforms"],k=[["maxItems","maxCount"],["maximum","max"],["minItems","minCount"],["minimum","min"],["multipleOf","step"]];function x(e){return"object"==typeof e&&null!==e&&Array.isArray(e.details)}class F extends g.k{constructor(e){let{provideDefaultLabelFromFieldName:n=!0,schema:t,validator:r}=e;super(),this.provideDefaultLabelFromFieldName=n,this.schema=y(t,t),this._compiledSchema={"":this.schema},this.validator=r,this.getField=h()(this.getField.bind(this)),this.getInitialValue=h()(this.getInitialValue.bind(this)),this.getSubfields=h()(this.getSubfields.bind(this)),this.getType=h()(this.getType.bind(this))}getError(e,n){const t=x(n)&&n.details;if(!t)return null;const r=(0,b.m)(null,e).map(b.m.unescape),a=(0,b.m)(r),l=(0,b.m)(r.slice(0,-1)),i=r[r.length-1],o=t.find((e=>{var n;const t=null!==(n=e.instancePath)&&void 0!==n?n:e.dataPath,r=t?function(e){return(e=e.startsWith("/")?e.replace(/\//g,".").replace(/~0/g,"~").replace(/~1/g,"/"):e.replace(/\[('|")(.+?)\1\]/g,".$2").replace(/\[(.+?)\]/g,".$1").replace(/\\'/g,"'")).slice(1)}(t):"";return a===r||l===r&&e.params&&i===e.params.missingProperty}));return o||null}getErrorMessage(e,n){const t=this.getError(e,n);return(null==t?void 0:t.message)||""}getErrorMessages(e){if(!e)return[];if(x(e)){const{details:n}=e;return n.map((e=>e.message||""))}return e instanceof Error?[e.message]:"object"==typeof e?[]:[String(e)]}getField(e){return(0,b.m)(null,e).reduce(((n,t,r,a)=>{var l,i,o,s;const u=(0,b.m)(a.slice(0,r)),d=(0,b.m)(u,t),m=null!==(l=(s=this._compiledSchema)[d])&&void 0!==l?l:s[d]={};if(m.isRequired=!(!(null===(i=n.required)||void 0===i?void 0:i.includes(t))&&!(null===(o=this._compiledSchema[u].required)||void 0===o?void 0:o.includes(t))),"$"===t||t===""+parseInt(t,10))E(e,"array"===n.type),n=Array.isArray(n.items)?n.items[parseInt(t,10)]:n.items,E(e,!!n);else if("object"===n.type)E(e,!!n.properties),n=n.properties[b.m.unescape(t)],E(e,!!n);else{let r=!1;O.forEach((e=>{var a;null===(a=n[e])||void 0===a||a.forEach((e=>{r||(e=y(e,this.schema),t in e.properties&&(n=e.properties[t],r=!0))}))})),E(e,r)}const p=(n=y(n,this.schema)).required?n.required.slice():[],f=n.properties?Object.assign({},n.properties):{};return O.forEach((e=>{var t;null===(t=n[e])||void 0===t||t.forEach((e=>{(e=y(e,this.schema)).required&&p.push(...e.required),Object.assign(f,e.properties),!m.type&&e.type&&(m.type=e.type)}))})),p.length>0&&(m.required=p),c()(f)||(m.properties=f),n}),this.schema)}getInitialValue(e){var n;const t=this.getField(e),{default:r=(null!==(n=t.default)&&void 0!==n?n:u()(this.schema.default,e)),type:a=t.type}=this._compiledSchema[e];if(void 0!==r)return o()(r);if("array"===a){const n=this.getInitialValue((0,b.m)(e,"$"));if(void 0===n)return[];const r=t.minItems||0;return Array.from({length:r},(()=>n))}if("object"===a){const n={};return this.getSubfields(e).forEach((t=>{const r=this.getInitialValue((0,b.m)(e,t));void 0!==r&&(n[t]=r)})),n}}getProps(e){var n,t;const r=this.getField(e),a=Object.assign({},r,r.uniforms,this._compiledSchema[e]);null!==(n=a.label)&&void 0!==n||(a.label=a.title),this.provideDefaultLabelFromFieldName&&void 0===a.label&&(a.label=v()(p()((0,b.m)(null,e).slice(-1)[0]))),"number"===r.type&&(a.decimal=!0),void 0!==(null===(t=r.uniforms)||void 0===t?void 0:t.type)&&(a.type=r.uniforms.type),void 0===a.required&&(a.required=a.isRequired),a.type===r.type&&delete a.type;let l=a.options;return l?Array.isArray(l)||(l=Object.entries(l).map((e=>{let[n,t]=e;return{key:n,label:n,value:t}}))):a.enum&&(l=Object.values(a.enum).map((e=>({value:e})))),k.forEach((e=>{let[n,t]=e;n in a&&(a[t]=a[n],delete a[n])})),C.forEach((e=>{e in a&&delete a[e]})),Object.assign(a,{options:l})}getSubfields(e){void 0===e&&(e="");const n=this.getField(e),{properties:t=n.properties,type:r=n.type}=this._compiledSchema[e];return"object"===r&&t?Object.keys(t).map(b.m.escape):[]}getType(e){const{type:n,format:t}=this.getField(e),{type:r=n}=this._compiledSchema[e];return"date-time"===t?Date:"string"===r?String:"number"===r||"integer"===r?Number:"object"===r?Object:"array"===r?Array:"boolean"===r?Boolean:(l()("null"!==r,'Field "%s" can not be represented as a type null',e),r)}getValidator(){return this.validator}}},12005:function(e,n,t){"use strict";t.d(n,{V:function(){return _}});var r=t(13762),a=t.n(r),l=t(11561);a().extendOptions(["uniforms"]),l.z.register("autoValue","blackbox","custom","decimal","defaultValue","exclusiveMax","exclusiveMin","max","maxCount","min","minCount","optional","regEx","trim","type");var i=t(59312),o=t(3996),s=t.n(o),u=t(30454),d=t.n(u),c=t(16651),m=t.n(c),p=t(98949),f=t(65507);const h=["optional","uniforms","allowedValues"];class _ extends p.k{constructor(e){let{schema:n}=e;super(),this.schema=n,this.getField=m()(this.getField.bind(this)),this.getInitialValue=m()(this.getInitialValue.bind(this)),this.getProps=m()(this.getProps.bind(this)),this.getSubfields=m()(this.getSubfields.bind(this)),this.getType=m()(this.getType.bind(this))}getError(e,n){const t=null==n?void 0:n.details;return Array.isArray(t)&&t.find((n=>n.name===e))||null}getErrorMessage(e,n){const t=this.getError(e,n);return t?this.schema.messageForError(t):""}getErrorMessages(e){if(!e)return[];const{details:n}=e;return Array.isArray(n)?n.map((e=>this.schema.messageForError(e))):[e.message||e]}getField(e){const n=this.schema.getDefinition(e);s()(n,'Field not found in schema: "%s"',e);const t=Object.assign(Object.assign({},n),n.type[0]);if(t.autoValue&&("defaultAutoValueFunction"===t.autoValue.name||-1!==t.autoValue.toString().indexOf("$setOnInsert:")))try{t.defaultValue=t.autoValue.call({operator:null})}catch(r){}return t}getInitialValue(e){const n=this.getField(e),t=n.defaultValue;if(void 0!==t)return d()(t);if(n.type===Array){const t=this.getInitialValue((0,f.m)(e,"$"));if(void 0===t)return[];const r=n.minCount||0;return Array.from({length:r},(()=>t))}if(n.type===Object||n.type instanceof a()){const n={};return this.getSubfields(e).forEach((t=>{const r=this.getInitialValue((0,f.m)(e,t));void 0!==r&&(n[t]=r)})),n}}getProps(e){const n=this.getField(e),{type:t}=n,r=(0,i._T)(n,["type"]);r.required=!r.optional,"function"==typeof r.uniforms||"string"==typeof r.uniforms?r.component=r.uniforms:Object.assign(r,r.uniforms),t===Number&&(r.decimal=!0);let a=r.options,l=r.allowedValues;if("function"==typeof a&&(a=a()),a||"function"!=typeof l||(l=l()),!a&&Array.isArray(l))a=l.map((e=>({value:e})));else if(t===Array)try{const n=this.getProps(`${e}.$`);n.options&&(a=n.options)}catch(o){}return h.forEach((e=>{e in r&&delete r[e]})),Object.assign(r,{options:a})}getSubfields(e){return this.schema.objectKeys(function(e){return null==e?void 0:e.replace(/\.\d+(\.|$)/g,".$$$1")}(e))}getType(e){const n=this.getField(e).type;return n===a().Integer?Number:n instanceof a()?Object:n}getValidator(e){void 0===e&&(e={clean:!0,mutate:!0});const n=this.schema.validator(e);return t=>{try{return n(e.clean?d()(Object.assign({},t)):t),null}catch(r){return r}}}}},48616:function(e,n,t){"use strict";t.d(n,{K:function(){return b}});var r=t(11561),a=t(84200);r.z.register("minCount","maxCount"),a.z.ZodType.prototype.uniforms=function(e){return this._uniforms=e,this};var l=t(3996),i=t.n(l),o=t(1883),s=t.n(o),u=t(16651),d=t.n(u),c=t(76744),m=t.n(c),p=t(65507),f=t(98949);function h(e,n){i()(n,'Field not found in schema: "%s"',e)}function _(e){return"string"!=typeof e}function v(e){return m()(s()((0,p.m)(null,e).slice(-1)[0]))}function g(e,n){void 0===n&&(n=[]);const t=e[e.length-1];if("number"==typeof t){return g(e.slice(0,e.length-1),[t,...n])}return n.length>0?`${v(e)} (${n.join(", ")})`:v(e)}class b extends f.k{constructor(e){let{schema:n,provideDefaultLabelFromFieldName:t=!0}=e;super(),this.schema=n,this.provideDefaultLabelFromFieldName=t,this.getField=d()(this.getField.bind(this)),this.getInitialValue=d()(this.getInitialValue.bind(this)),this.getProps=d()(this.getProps.bind(this)),this.getSubfields=d()(this.getSubfields.bind(this)),this.getType=d()(this.getType.bind(this))}getError(e,n){return n instanceof a.jm&&n.issues.find((n=>e===(0,p.m)(n.path)))||null}getErrorMessage(e,n){var t;return(null===(t=this.getError(e,n))||void 0===t?void 0:t.message)||""}getErrorMessages(e){return e instanceof a.jm?e.issues.map((e=>`${g(e.path)}: ${e.message}`)):e instanceof Error?[e.message]:[]}getField(e){let n=this.schema;this.schema instanceof a.Xc&&(n=this.schema._def.schema);for(const t of(0,p.m)(null,e))n instanceof a.uE?n=n.removeDefault():n instanceof a.ak&&(n=n.unwrap()),"$"===t||t===""+parseInt(t,10)?(h(e,n instanceof a.p5),n=n.element):(h(e,n instanceof a.CQ),n=n.shape[p.m.unescape(t)]);return n}getInitialValue(e){var n,t;const r=this.getField(e);if(r instanceof a.p5){const t=this.getInitialValue((0,p.m)(e,"$"));if(void 0===t)return[];const a=(null===(n=r._def.minLength)||void 0===n?void 0:n.value)||0;return Array.from({length:a},(()=>t))}if(r instanceof a.uE)return r._def.defaultValue();if(r instanceof a.K7)return r.options[0];if(r instanceof a.Zl){const e=Object.values(r.enum);return null!==(t=e.find(_))&&void 0!==t?t:e[0]}if(r instanceof a.CQ){const n={};return this.getSubfields(e).forEach((t=>{const r=this.getInitialValue((0,p.m)(e,t));void 0!==r&&(n[t]=r)})),n}}getProps(e){const n=Object.assign(Object.assign({},this.provideDefaultLabelFromFieldName&&{label:v(e)}),{required:!0});let t=this.getField(e);const r=t._uniforms;if("function"==typeof r?n.component=r:Object.assign(n,r),t instanceof a.uE?(t=t.removeDefault(),n.required=!1):t instanceof a.ak&&(t=t.unwrap(),n.required=!1),t instanceof a.p5)t._def.maxLength&&(n.maxCount=t._def.maxLength.value),t._def.minLength&&(n.minCount=t._def.minLength.value);else if(t instanceof a.K7)n.options=t.options.map((e=>({value:e})));else if(t instanceof a.Zl){const e=Object.values(t.enum),r=e.filter(_);n.options=(r.length?r:e).map((e=>({value:e})))}else if(t instanceof a.IV){t.isInt||(n.decimal=!0);const e=t.maxValue;null!==e&&(n.max=e);const r=t.minValue;null!==r&&(n.min=r);const a=t._def.checks.find((e=>"multipleOf"===e.kind));a&&(n.step=a.value)}return n}getSubfields(e){void 0===e&&(e="");let n=this.getField(e);return n instanceof a.uE?n=n.removeDefault():n instanceof a.ak&&(n=n.unwrap()),n instanceof a.p5?["$"]:n instanceof a.CQ?Object.keys(n.shape):[]}getType(e){let n=this.getField(e);if(n instanceof a.uE?n=n.removeDefault():n instanceof a.ak&&(n=n.unwrap()),n instanceof a.p5)return Array;if(n instanceof a.pZ)return Boolean;if(n instanceof a.$s)return Date;if(n instanceof a.K7||n instanceof a.$T)return String;if(n instanceof a.Zl){return"number"==typeof Object.values(n.enum).find(_)?Number:String}return n instanceof a.IV?Number:n instanceof a.CQ?Object:void i()(!1,'Field "%s" has an unknown type',e)}getValidator(){return e=>{const n=this.schema.safeParse(e);return n.success?null:n.error}}}},68599:function(e,n,t){"use strict";var r=t(3996),a=t.n(r),l=t(6846),i=t(12138),o=t(14449),s=t(64694),u=t(80661),d=t(59492),c=t(44591),m=t(47822),p=t(99086);const f=(0,l.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?c.Z:m.Z;switch(e.fieldType){case Array:return s.Z;case Boolean:return i.Z;case Date:return o.Z;case Number:return d.Z;case Object:return u.Z;case String:return p.Z}return a()(!1,"Unsupported field type: %s",e.fieldType)}));n.Z=f},2310:function(e,n,t){"use strict";var r=t(39850),a=t(79904);n.Z=function e(n){class t extends(r.N.Auto(n)){}return t.Auto=e,t}(a.Z)},99574:function(e,n,t){"use strict";var r=t(60042),a=t.n(r),l=t(6820);n.Z=function e(n){class t extends n{getNativeFormProps(){const e=super.getNativeFormProps(),n=this.getContextError();return Object.assign(Object.assign({},e),{className:a()("ui",e.className,{error:n},"form")})}}return t.Semantic=e,t.displayName=`Semantic${n.displayName}`,t}(l.I)},12138:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(11561),s=t(76424);n.Z=(0,s.e)((function(e){var{className:n,disabled:t,error:a,errorMessage:s,id:u,inputRef:d,label:c,name:m,onChange:p,readOnly:f,required:h,showInlineError:_,value:v,wrapClassName:g}=e,b=(0,r._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","readOnly","required","showInlineError","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:t,error:a,required:h},"field")},(0,o.z)(b)),i.createElement("div",{className:l()("ui",g,!c&&"fitted","checkbox")},i.createElement("input",{checked:v||!1,className:"hidden",disabled:t,id:u,name:m,onChange:()=>{f||p(!v)},ref:d,type:"checkbox"}),i.createElement("label",{htmlFor:u},c||null)),!(!a||!_)&&i.createElement("div",null,i.createElement("div",{className:"ui red basic pointing label"},s)))}),{kind:"leaf"})},14449:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(11561),s=t(76424);const u=("object"==typeof t.g?t.g:window).Date,d=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};n.Z=(0,s.e)((function(e){var n,{className:t,disabled:a,error:s,errorMessage:c,icon:m,iconLeft:p,iconProps:f,id:h,inputRef:_,label:v,max:g,min:b,name:E,onChange:y,placeholder:O,readOnly:C,required:k,showInlineError:x,value:F,wrapClassName:N,type:j="datetime-local"}=e,P=(0,r._T)(e,["className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","value","wrapClassName","type"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:a,error:s,required:k},"field")},(0,o.z)(P)),v&&i.createElement("label",{htmlFor:h},v),i.createElement("div",{className:l()("ui",N,{left:p,icon:m||p},"input")},i.createElement("input",{disabled:a,id:h,max:d(g),min:d(b),name:E,onChange:e=>{const n=new u(e.target.valueAsNumber);n.getFullYear()<1e4?y(n):isNaN(e.target.valueAsNumber)&&y(void 0)},placeholder:O,readOnly:C,ref:_,type:j,value:null!==(n=d(F,j))&&void 0!==n?n:""}),(m||p)&&i.createElement("i",Object.assign({className:`${m||p} icon`},f))),!(!s||!x)&&i.createElement("div",{className:"ui red basic pointing label"},c))}),{kind:"leaf"})},43351:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(55201),s=t(11561);n.Z=function(e){var{children:n,className:t}=e,a=(0,r._T)(e,["children","className"]);const{error:u,schema:d}=(0,o.c)();return u||n?i.createElement("div",Object.assign({className:l()("ui",t,"error message")},(0,s.z)(a)),n,i.createElement("ul",{className:"list"},d.getErrorMessages(u).map(((e,n)=>i.createElement("li",{key:n},e))))):null}},77900:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(30454),o=t.n(i),s=t(27378),u=t(65507),d=t(68591),c=t(11561),m=t(76424);n.Z=(0,m.e)((function(e){var{disabled:n,name:t,readOnly:a,value:i}=e,m=(0,r._T)(e,["disabled","name","readOnly","value"]);const p=(0,u.m)(null,t),f=(0,u.m)(p.slice(0,-1)),h=(0,d.U)(f,{},{absoluteName:!0})[0],_=!(n||h.maxCount<=h.value.length);function v(e){!_||a||"key"in e&&"Enter"!==e.key||h.onChange(h.value.concat([o()(i)]))}return s.createElement("i",Object.assign({},(0,c.z)(m),{className:l()("ui",m.className,_?"link":"disabled","fitted add icon"),onClick:v,onKeyDown:v,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},960:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(65507),s=t(68591),u=t(11561),d=t(76424);n.Z=(0,d.e)((function(e){var{disabled:n,name:t,readOnly:a}=e,d=(0,r._T)(e,["disabled","name","readOnly"]);const c=(0,o.m)(null,t),m=+c[c.length-1],p=(0,o.m)(c.slice(0,-1)),f=(0,s.U)(p,{},{absoluteName:!0})[0];function h(e){if(!(n||"key"in e&&"Enter"!==e.key)){const e=f.value.slice();e.splice(m,1),f.onChange(e)}}return n||(n=a||f.minCount>=f.value.length),i.createElement("i",Object.assign({},(0,u.z)(d),{className:l()("ui",d.className,n?"link":"disabled","fitted close icon"),onClick:h,onKeyDown:h,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},64694:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(11561),s=t(76424),u=t(77900),d=t(18747);n.Z=(0,s.e)((function(e){var{children:n=i.createElement(d.Z,{name:"$"}),className:t,disabled:a,error:s,errorMessage:c,itemProps:m,label:p,required:f,showInlineError:h,value:_}=e,v=(0,r._T)(e,["children","className","disabled","error","errorMessage","itemProps","label","required","showInlineError","value"]);return i.createElement("div",Object.assign({className:l()("ui",t,{disabled:a},"grouped fitted fields list")},(0,o.z)(v)),p&&i.createElement("div",{className:l()({error:s,required:f},"field item")},i.createElement("label",{className:"left floated"},p),i.createElement(u.Z,{className:"right floated",name:"$"})),p&&i.createElement("div",{className:"ui fitted hidden clearing horizontal divider"}),!(!s||!h)&&i.createElement("div",{className:"ui red basic label"},c),null==_?void 0:_.map(((e,t)=>i.Children.map(n,((e,n)=>{var r;return(0,i.isValidElement)(e)?(0,i.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+t)},m)):e})))))}))},18747:function(e,n,t){"use strict";var r=t(27378),a=t(76424),l=t(68599),i=t(960);n.Z=(0,a.e)((function(e){let{children:n=r.createElement(l.Z,{label:null,name:""})}=e;return r.createElement("div",{className:"item"},r.createElement(i.Z,{className:"top aligned",name:""}),r.createElement("div",{className:"middle aligned content",style:{width:"100%"}},n))}),{initialValue:!1})},80661:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(11561),s=t(76424),u=t(68599);function d(e){var{children:n,className:t,disabled:a,error:s,errorMessage:d,fields:c,grouped:m,itemProps:p,label:f,showInlineError:h}=e,_=(0,r._T)(e,["children","className","disabled","error","errorMessage","fields","grouped","itemProps","label","showInlineError"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:a,error:s,grouped:m},"fields")},(0,o.z)(_)),f&&i.createElement("div",{className:"field"},i.createElement("label",null,f)),!(!s||!h)&&i.createElement("div",{className:"ui red basic label"},d),n||c.map((e=>i.createElement(u.Z,Object.assign({key:e,name:e},p)))))}d.defaultProps={grouped:!0},n.Z=(0,s.e)(d)},59492:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(11561),s=t(76424);n.Z=(0,s.e)((function(e){var{className:n,decimal:t,disabled:a,error:s,errorMessage:u,icon:d,iconLeft:c,iconProps:m,id:p,inputRef:f,label:h,max:_,min:v,name:g,onChange:b,placeholder:E,readOnly:y,required:O,showInlineError:C,step:k,value:x,wrapClassName:F}=e,N=(0,r._T)(e,["className","decimal","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","step","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:a,error:s,required:O},"field")},(0,o.z)(N)),h&&i.createElement("label",{htmlFor:p},h),i.createElement("div",{className:l()("ui",F,{left:c,icon:d||c},"input")},i.createElement("input",{disabled:a,id:p,max:_,min:v,name:g,onChange:e=>{const n=(t?parseFloat:parseInt)(e.target.value);b(isNaN(n)?void 0:n)},placeholder:E,readOnly:y,ref:f,step:k||(t?.01:1),type:"number",value:null!=x?x:""}),(d||c)&&i.createElement("i",Object.assign({className:`${d||c} icon`},m))),!(!s||!C)&&i.createElement("div",{className:"ui red basic pointing label"},u))}),{kind:"leaf"})},52559:function(e,n,t){"use strict";var r=t(51674),a=t(68599),l=t(99574),i=t(43351),o=t(82986);n.Z=function e(n){class t extends(r.X.Quick(n)){getAutoField(){return a.Z}getErrorsField(){return i.Z}getSubmitField(){return o.Z}}return t.Quick=e,t}(l.Z)},44591:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(48159),o=t.n(i),s=t(27378),u=t(11561),d=t(76424);const c="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>c(encodeURIComponent(e)).replace(/=+$/,"");n.Z=(0,d.e)((function(e){var{options:n,className:t,disabled:a,error:i,errorMessage:d,id:c,label:p,name:f,onChange:h,readOnly:_,required:v,showInlineError:g,value:b}=e,E=(0,r._T)(e,["options","className","disabled","error","errorMessage","id","label","name","onChange","readOnly","required","showInlineError","value"]);return s.createElement("div",Object.assign({className:l()(t,{disabled:a,error:i},"grouped fields")},o()((0,u.z)(E),["checkboxes"])),p&&s.createElement("div",{className:l()({required:v},"field")},s.createElement("label",null,p)),null==n?void 0:n.map((e=>{var n,t,r,l;return s.createElement("div",{className:"field",key:null!==(n=e.key)&&void 0!==n?n:e.value},s.createElement("div",{className:"ui radio checkbox"},s.createElement("input",{checked:e.value===b,disabled:e.disabled||a,id:`${c}-${null!==(t=e.key)&&void 0!==t?t:m(e.value)}`,name:f,onChange:()=>{_||h(e.value)},type:"radio"}),s.createElement("label",{htmlFor:`${c}-${null!==(r=e.key)&&void 0!==r?r:m(e.value)}`},null!==(l=e.label)&&void 0!==l?l:e.value)))})),!(!i||!g)&&s.createElement("div",{className:"ui red basic pointing label"},d))}),{kind:"leaf"})},47822:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(20098),o=t.n(i),s=t(27378),u=t(11561),d=t(76424);const c="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>c(encodeURIComponent(e)).replace(/=+$/,""),p={paddingBottom:0,paddingTop:0};n.Z=(0,d.e)((function(e){var{options:n,checkboxes:t,className:a,disabled:i,error:d,errorMessage:c,fieldType:f,id:h,inputRef:_,label:v,name:g,onChange:b,placeholder:E,readOnly:y,required:O,showInlineError:C,value:k}=e,x=(0,r._T)(e,["options","checkboxes","className","disabled","error","errorMessage","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);const F=f===Array;return s.createElement("div",Object.assign({className:l()({disabled:i,error:d,required:O},a,"field")},(0,u.z)(x)),v&&s.createElement("label",{htmlFor:h},v),t?null==n?void 0:n.map((e=>{var n,t,r,a;return s.createElement("div",{className:"field",key:null!==(n=e.key)&&void 0!==n?n:e.value},s.createElement("div",{className:"ui checkbox"},s.createElement("input",{checked:F?null==k?void 0:k.includes(e.value):k===e.value,disabled:e.disabled||i,id:`${h}-${null!==(t=e.key)&&void 0!==t?t:m(e.value)}`,name:g,onChange:()=>{y||b(F?o()([e.value],k):e.value)},type:"checkbox"}),s.createElement("label",{htmlFor:`${h}-${null!==(r=e.key)&&void 0!==r?r:m(e.value)}`},null!==(a=e.label)&&void 0!==a?a:e.value)))})):s.createElement("select",{className:"ui selection dropdown",disabled:i,id:h,multiple:F,name:g,onChange:e=>{if(!y){const n=e.target.value;if(F){const t=-1===e.target.selectedIndex;b(t?[]:o()([n],k))}else b(""!==n?n:void 0)}},ref:_,style:p,value:null!=k?k:""},(!!E||!O||void 0===k)&&!F&&s.createElement("option",{value:"",disabled:O,hidden:O},E||v),null==n?void 0:n.map((e=>{var n,t;return s.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))),!(!d||!C)&&s.createElement("div",{className:"ui red basic pointing label"},c))}),{kind:"leaf"})},82986:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(55201),s=t(11561);function u(e){var{className:n,disabled:t,inputRef:a,readOnly:u,value:d}=e,c=(0,r._T)(e,["className","disabled","inputRef","readOnly","value"]);const{error:m,state:p}=(0,o.c)();return i.createElement("input",Object.assign({className:l()("ui",n,"button"),disabled:void 0===t?!(!m&&!p.disabled):t,readOnly:u,ref:a,type:"submit"},d?{value:d}:{},(0,s.z)(c)))}},99086:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(11561),s=t(76424);function u(e){var{autoComplete:n,className:t,disabled:a,error:s,errorMessage:u,icon:d,iconLeft:c,iconProps:m,id:p,inputRef:f,label:h,name:_,onChange:v,placeholder:g,readOnly:b,required:E,showInlineError:y,type:O,value:C,wrapClassName:k}=e,x=(0,r._T)(e,["autoComplete","className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","type","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:a,error:s,required:E},"field")},(0,o.z)(x)),h&&i.createElement("label",{htmlFor:p},h),i.createElement("div",{className:l()("ui",k,{left:c,icon:d||c},"input")},i.createElement("input",{autoComplete:n,disabled:a,id:p,name:_,onChange:e=>v(e.target.value),placeholder:g,readOnly:b,ref:f,type:O,value:null!=C?C:""}),(d||c)&&i.createElement("i",Object.assign({className:`${d||c} icon`},m))),!(!s||!y)&&i.createElement("div",{className:"ui red basic pointing label"},u))}u.defaultProps={type:"text"},n.Z=(0,s.e)(u,{kind:"leaf"})},3684:function(e,n,t){"use strict";var r=t(23674),a=t(99574);n.Z=function e(n){class t extends(r.O.Validated(n)){}return t.Validated=e,t}(a.Z)},79904:function(e,n,t){"use strict";var r=t(99574),a=t(52559),l=t(3684);n.Z=l.Z.Validated(a.Z.Quick(r.Z))},96614:function(e,n,t){"use strict";var r=t(59312),a=t(27378),l=t(11561),i=t(76424);n.Z=(0,i.e)((function(e){var{disabled:n,id:t,inputRef:i,label:o,name:s,onChange:u,placeholder:d,readOnly:c,value:m}=e,p=(0,r._T)(e,["disabled","id","inputRef","label","name","onChange","placeholder","readOnly","value"]);return a.createElement("div",Object.assign({},(0,l.z)(p)),o&&a.createElement("label",{htmlFor:t},o),a.createElement("textarea",{disabled:n,id:t,name:s,onChange:e=>u(e.target.value),placeholder:d,readOnly:c,ref:i,value:null!=m?m:""}))}),{kind:"leaf"})},39850:function(e,n,t){"use strict";t.d(n,{N:function(){return p}});var r=t(13784),a=t.n(r),l=t(56141),i=t.n(l),o=t(48159),s=t.n(o),u=t(96498),d=t.n(u),c=t(6820),m=t(51674);const p=function e(n){class t extends n{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{model:this.mergeSchemaAndPropsModel(this.props.schema,this.props.model)})}mergeSchemaAndPropsModel(e,n){const t=e.getInitialModel();return Object.assign(t,n)}componentDidUpdate(e,n,t){const{model:r,schema:a}=this.props;i()(r,e.model)||this.setState({model:this.mergeSchemaAndPropsModel(a,r)}),super.componentDidUpdate(e,n,t)}getNativeFormProps(){const e=super.getNativeFormProps();return s()(e,["onChangeModel"])}getModel(e){return this.state.model}onChange(e,n){super.onChange(e,n),this.setState((t=>({model:d()(a()(t.model),e,n,a())})),(()=>{this.props.onChangeModel&&this.props.onChangeModel(this.state.model)}))}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{model:this.props.model})}}return t.Auto=e,t.displayName=`Auto${n.displayName}`,t}((0,t(23674).u)((0,m.s)(c.I)))},6820:function(e,n,t){"use strict";t.d(n,{I:function(){return b}});var r=t(13784),a=t.n(r),l=t(99729),i=t.n(l),o=t(48159),s=t.n(o),u=t(96498),d=t.n(u),c=t(27378),m=t(56141),p=t.n(m),f=t(65507);function h(e){return!(!e||e!==Object(e)||e instanceof Date)}var _=t(34361);function v(e){let n=0;return()=>`${e}-${("000"+(n++).toString(36)).slice(-4)}`}const g=v("uniforms");class b extends c.Component{constructor(e){var n,t;super(e),n=this,this.state={changed:!1,changedMap:Object.create(null),resetCount:0,submitted:!1,submitting:!1},this.mounted=!1,this.randomId=(void 0===(t=this.props.id)&&(t=g()),v(t)),this.onReset=this.reset=this.onReset.bind(this),this.onChange=this.change=this.onChange.bind(this),this.onSubmit=this.submit=this.onSubmit.bind(this);const r=this.getModel.bind(this);this.getModel=function(e,t){return void 0===t&&(t=r(e)),void 0!==e&&n.props.modelTransform?n.props.modelTransform(e,t):t}}componentDidMount(){this.mounted=!0}componentDidUpdate(e,n,t){}componentWillUnmount(){this.mounted=!1,this.delayId&&clearTimeout(this.delayId)}getContext(){return{changed:this.state.changed,changedMap:this.state.changedMap,error:this.getContextError(),formRef:this,model:this.getContextModel(),name:this.getContextName(),onChange:this.getContextOnChange(),onSubmit:this.getContextOnSubmit(),randomId:this.randomId,schema:this.getContextSchema(),state:this.getContextState(),submitted:this.state.submitted,submitting:this.state.submitting,validating:!1}}getContextName(){return[]}getContextError(){return this.props.error}getContextModel(){return this.getModel("form")}getContextState(){return{disabled:!!this.props.disabled,readOnly:!!this.props.readOnly,showInlineError:!!this.props.showInlineError}}getContextSchema(){return this.props.schema}getContextOnChange(){return this.onChange}getContextOnSubmit(){return this.onSubmit}getModel(e,n){return void 0===n&&(n=this.props.model),n}getNativeFormProps(){const e=s()(this.props,["autosave","autosaveDelay","disabled","error","model","modelTransform","onChange","onSubmit","readOnly","schema","showInlineError"]);return Object.assign(Object.assign({},e),{onSubmit:this.onSubmit,key:`reset-${this.state.resetCount}`})}onChange(e,n){if(this.mounted){const t=function(e,n,t){if(!h(n)||t&&typeof n!=typeof t)return p()(n,t)?[]:[e];const r=[e];if(h(t)){for(const a in n)a in t&&p()(n[a],t[a])||r.push((0,f.m)(e,a));for(const a in t)a in n||r.push((0,f.m)(e,a));1===r.length&&r.pop()}else for(const a in n)r.push((0,f.m)(e,a));return r}(e,n,i()(this.getModel(),e));0!==t.length&&this.setState((e=>e.changed&&t.every((n=>!!i()(e.changedMap,n)))?null:{changed:!0,changedMap:t.reduce(((e,n)=>d()(e,n,{},a())),a()(e.changedMap))}))}this.props.onChange&&this.props.onChange(e,n),this.mounted&&this.props.autosave&&(this.delayId&&clearTimeout(this.delayId),this.delayId=setTimeout((()=>{this.mounted&&this.setState((()=>null),(()=>{this.onSubmit()}))}),this.props.autosaveDelay))}__reset(e){return{changed:!1,changedMap:Object.create(null),resetCount:e.resetCount+1,submitted:!1,submitting:!1}}onReset(){this.mounted&&this.setState(this.__reset)}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.mounted&&this.setState((e=>e.submitted?null:{submitted:!0}));const n=this.props.onSubmit(this.getModel("submit"));return n instanceof Promise?(this.mounted&&this.setState({submitting:!0}),n.finally((()=>{this.mounted&&this.setState({submitting:!1})}))):Promise.resolve()}render(){return c.createElement(_.D.Provider,{value:this.getContext()},c.createElement("form",Object.assign({},this.getNativeFormProps())))}}b.displayName="Form",b.defaultProps={autosave:!1,autosaveDelay:0,error:null,model:Object.create(null),noValidate:!0,onSubmit(){}}},98949:function(e,n,t){"use strict";t.d(n,{k:function(){return o}});var r=t(3996),a=t.n(r),l=t(47215),i=t.n(l);class o{constructor(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];a()(this.constructor!==o,"Bridge cannot be instantiated (args=%o).",{args:n})}getError(e,n){return a()(!1,"%s have not implemented `getError` method (args=%o).",this.constructor.name,{name:e,error:n})}getErrorMessage(e,n){return a()(!1,"%s have not implemented `getErrorMessage` method (args=%o).",this.constructor.name,{name:e,error:n})}getErrorMessages(e){return a()(!1,"%s have not implemented `getErrorMessages` method (args=%o).",this.constructor.name,{error:e})}getField(e){return a()(!1,"%s have not implemented `getField` method (args=%o).",this.constructor.name,{name:e})}getInitialValue(e){return a()(!1,"%s have not implemented `getInitialValue` method (args=%o).",this.constructor.name,{name:e})}getInitialModel(){const e={},n=this.getSubfields();for(const t of n){const n=this.getInitialValue(t);i()(e,t,n)}return e}getProps(e){return a()(!1,"%s have not implemented `getProps` method (args=%o).",this.constructor.name,{name:e})}getSubfields(e){return a()(!1,"%s have not implemented `getSubfields` method (args=%o).",this.constructor.name,{name:e})}getType(e){return a()(!1,"%s have not implemented `getType` method (args=%o).",this.constructor.name,{name:e})}getValidator(e){return a()(!1,"%s have not implemented `getValidator` method (args=%o).",this.constructor.name,{options:e})}}},51674:function(e,n,t){"use strict";t.d(n,{X:function(){return i},s:function(){return l}});var r=t(59312),a=t(27378);function l(e){class n extends e{getNativeFormProps(){const e=super.getNativeFormProps(),{errorsField:n=this.getErrorsField(),submitField:t=this.getSubmitField()}=e,l=(0,r._T)(e,["errorsField","submitField"]),i=this.getAutoField();return l.children||(l.children=this.getContextSchema().getSubfields().map((e=>a.createElement(i,{key:e,name:e}))).concat([a.createElement(n,{key:"$ErrorsField"}),a.createElement(t,{key:"$SubmitField"})])),l}getAutoField(){return()=>null}getErrorsField(){return()=>null}getSubmitField(){return()=>null}}return n.Quick=l,n.displayName=`Quick${e.displayName}`,n}const i=l(t(6820).I)},23674:function(e,n,t){"use strict";t.d(n,{O:function(){return v},u:function(){return h}});var r=t(13784),a=t.n(r),l=t(30454),i=t.n(l),o=t(56141),s=t.n(o),u=t(50344),d=t.n(u),c=t(48159),m=t.n(c),p=t(96498),f=t.n(p);function h(e){class n extends e{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{error:null,validate:!1,validating:!1,validator:this.getContextSchema().getValidator(e.validator)}),this.onValidate=this.validate=this.onValidate.bind(this),this.onValidateModel=this.validateModel=this.onValidateModel.bind(this)}getContextError(){var e;return null!==(e=super.getContextError())&&void 0!==e?e:this.state.error}getContext(){return Object.assign(Object.assign({},super.getContext()),{validating:this.state.validating})}getNativeFormProps(){const e=super.getNativeFormProps();return m()(e,["onValidate","validate","validator"])}componentDidUpdate(e,n,t){super.componentDidUpdate(e,n,t);const{model:r,schema:a,validate:l,validator:i}=this.props;a!==e.schema||i!==e.validator?this.setState({validator:a.getValidator(i)},(()=>{_(l,this.state.validate)&&this.onValidate()})):!s()(r,e.model)&&_(l,this.state.validate)&&this.onValidateModel(r)}onChange(e,n){_(this.props.validate,this.state.validate)&&this.onValidate(e,n),super.onChange(e,n)}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{error:null,validate:!1,validating:!1})}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.setState({submitted:!0,validate:!0});const n=this.onValidate().then((e=>null!==e?Promise.reject(e):super.onSubmit().catch((e=>{throw this.setState({error:e}),e}))));return n.catch(d()),n}onValidate(e,n){let t=this.getContextModel();return t&&e&&(t=f()(a()(t),e,i()(n),a())),this.onValidateModel(t)}onValidateModel(e){var n=this;const t=this.getModel("validate",e),r=function(e){function n(n,t){return n instanceof Promise?(e(),n.then(t)):t(n)}return n}((()=>{this.setState({validating:!0})}));return r(this.state.validator(t),(function(e){return void 0===e&&(e=null),r(n.props.onValidate(t,e),(function(e){var t;return void 0===e&&(e=null),e=n.props.error===e?null:e,n.setState((n=>n.error!==e||n.validating?{error:e,validating:!1}:null)),Promise.resolve(null!==(t=n.props.error)&&void 0!==t?t:e)}))}))}}return n.Validated=h,n.displayName=`Validated${e.displayName}`,n.defaultProps=Object.assign(Object.assign({},e.defaultProps),{onValidate(e,n){return n},validate:"onChangeAfterSubmit"}),n}function _(e,n){return"onChange"===e||"onChangeAfterSubmit"===e&&n}const v=h(t(6820).I)},76424:function(e,n,t){"use strict";t.d(n,{e:function(){return s}});var r=t(25389),a=t.n(r),l=t(27378),i=t(34361),o=t(68591);function s(e,n){function t(t){const[r,s]=(0,o.U)(t.name,t,n),u=function(e,n,t){if("leaf"===(null==t?void 0:t.kind))return e;const r=""!==n.name,l=Object.keys(e.state).some((e=>null!=n[e]));if(!r&&!l)return e;const i=Object.assign({},e);return r&&(i.name=i.name.concat(n.name)),l&&(i.state=a()(i.state,((e,t)=>{const r=n[t];return null!=r?!!r:e}))),i}(s,t,n),d=l.createElement(e,Object.assign({},t,r));return s===u?d:l.createElement(i.D.Provider,{children:d,value:u})}return t.displayName=`${e.displayName||e.name}Field`,Object.assign(t,{Component:e,options:n})}},34361:function(e,n,t){"use strict";t.d(n,{D:function(){return r}});const r=(0,t(27378).createContext)(null)},6846:function(e,n,t){"use strict";t.d(n,{a:function(){return s}});var r=t(59312),a=t(3996),l=t.n(a),i=t(27378),o=t(68591);function s(e){const n=(0,i.createContext)(e);return Object.assign((function(e){var t,{experimental_absoluteName:a}=e,s=(0,r._T)(e,["experimental_absoluteName"]);const u={absoluteName:a},[d,c]=(0,o.U)(s.name,s,u),m=(0,i.useContext)(n)(d,c);return l()(m,"AutoField received no component for: %s",d.name),"options"in m&&"leaf"===(null===(t=m.options)||void 0===t?void 0:t.kind)?(0,i.createElement)(m.Component,d):(0,i.createElement)(m,s)}),{componentDetectorContext:n,defaultComponentDetector:e})}},11561:function(e,n,t){"use strict";t.d(n,{z:function(){return l}});const r=[],a=new Set,l=Object.assign((function(e){const n=Object.assign({},e);for(const t in e)a.has(t)&&delete n[t];return n}),{register(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];n.forEach((e=>{a.has(e)||(r.push(e),a.add(e))})),r.sort()},registered:r});l.register("changed","error","errorMessage","field","fieldType","fields","name","onChange","value","disabled","showInlineError","component")},65507:function(e,n,t){"use strict";t.d(n,{m:function(){return c}});const r=/[.[\]]/,a=/"/g;function l(e){return""===e||r.test(e)?`["${e.replace(a,'\\"')}"]`:e}function i(e,n){const t=l(e);return t===e?n?`.${e}`:e:t}const o=/^\["(.*)"]$/,s=/\\"/g;function u(e){const n=o.exec(e);return n?n[1].replace(s,'"'):e}const d=/^([^.[\]]*(?:\.[^.[\]]+)*)(?:\.?(\["(?:(?:[^"]|\\")*?[^\\])?"])\.?(.*))?$/;const c=Object.assign((function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];const r=null===n[0],a=[];for(let l=0;l!==n.length;++l){const e=n[l];if(e||0===e)if("string"==typeof e){const t=d.exec(e);if(t){const[,e,r,i]=t;e&&(e.includes(".")?a.push(...e.split(".")):a.push(e)),r&&(a.push(u(r)),i&&(n[l--]=i))}else a.push(e)}else if(Array.isArray(e)){if(e.length){const t=Math.min(l+1,e.length);l-=t,n.splice(l+1,t,...e)}}else a.push(""+e)}return r?a.map(l):a.map(i).join("")}),{escape:l,unescape:u})},68591:function(e,n,t){"use strict";t.d(n,{U:function(){return d}});var r=t(99729),a=t.n(r),l=t(25389),i=t.n(l),o=t(27378),s=t(65507),u=t(55201);function d(e,n,t){var r,l,d;const c=(0,u.c)(),m=(0,s.m)((null==t?void 0:t.absoluteName)?"":c.name,e),p=c.schema.getField(m),f=!1!==(null==t?void 0:t.initialValue),h=f?(0,o.useRef)(!1):{current:!1},_=i()(c.state,((e,t)=>{const r=n[t];return null!=r?!!r:e})),v=!!a()(c.changedMap,m),g=c.schema.getError(m,c.error),b=c.schema.getErrorMessage(m,c.error),E=c.schema.getType(m),y=c.schema.getSubfields(m),O=c.schema.getProps(m),C=null!==(l=null!==(r=n.label)&&void 0!==r?r:O.label)&&void 0!==l?l:"",k=(0,o.useMemo)((()=>c.randomId()),[]),x=(0,o.useCallback)((function(e,n){void 0===n&&(n=m),h.current=!0,c.onChange(n,e)}),[c.onChange,m]),F=a()(c.model,m);let N,j=null!==(d=n.value)&&void 0!==d?d:F;f&&(h.current||(void 0===j?(j=c.schema.getInitialValue(m),N=j):void 0!==n.value&&n.value!==F&&(N=n.value)),(0,o.useEffect)((()=>{void 0!==N&&x(N)}),[]));return[Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:k},_),{changed:v,error:g,errorMessage:b,field:p,fieldType:E,fields:y,onChange:x,value:j}),O),n),{label:C,name:m}),c]}},55201:function(e,n,t){"use strict";t.d(n,{c:function(){return o}});var r=t(3996),a=t.n(r),l=t(27378),i=t(34361);function o(){const e=(0,l.useContext)(i.D);return a()(null!==e,"useForm must be used within a form.\n\nTwo most common reasons for this error are:\n1. Component calling this function doesn't have a parent Form component in the tree.\n2. A duplicate uniforms dependency is installed in node_modules.\n\nFor more info check FAQ: https://uniforms.tools/docs/faq/#useform-must-be-used-within-a-form\n "),e}},57292:function(e,n,t){"use strict";t.d(n,{f:function(){return l}});var r=t(95256),a=t(27378);function l(e){let{language:n,replace:t,section:l,source:i}=e;if("object"==typeof i&&"default"in i&&(i=i.default),l){const e=new RegExp(`// <${l}>\\s([\\s\\S]*?)\\s// </${l}>\\s`,"g");i=i.split(e).reduce(((e,n,t)=>t%2==0?e:`${e}\n\n${n}`),"")}if(i=i.replace(/\/\/ <.*?\n/g,""),t)for(const[r,a]of Object.entries(t))i=i.replace(new RegExp(r,"gs"),a);return i=i.trim(),i.includes("\n")||(i+="\n"),a.createElement(r.Z.pre,null,a.createElement(r.Z.code,{children:i,className:`language-${n}`,mdxType:"code",originalType:"code",parentName:"pre"}))}},633:function(e,n,t){"use strict";t.d(n,{n:function(){return c}});var r=t(25773),a=t(27378),l=t(4940),i=t(99729),o=t.n(i);function s(e){const[n,t]=(0,a.useState)(300),r=(0,a.useRef)(),l=(0,a.useCallback)((()=>function(e,n){const t=o()(e.current,"node.contentDocument.body.scrollHeight",0);0!==t&&n(t)}(r,t)),[r,t]);return(0,a.useEffect)((()=>{const e=setInterval(l,1e3);return()=>clearInterval(e)}),[l,...e]),{onLoad:l,ref:r,style:{height:n}}}var u=t(80912),d=t(37126);function c(e){const n=(0,a.useContext)(u.nN),t=s([e.children]);return a.createElement("div",{className:l.Z["form-wrapper"]},a.createElement(d.d,(0,r.Z)({frameProps:t,theme:n},e)))}},37126:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return Playground},d:function(){return PlaygroundWrap}});var _home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(25773),antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(64222),classnames__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(60042),classnames__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__),lodash_omit__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(48159),lodash_omit__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(27378),react_frame_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5766),uniforms__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23674),uniforms__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(34361),uniforms__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(55201),uniforms__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(76424),_index_module_css__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4940),_lib_presets__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5037),_lib_schema__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5413),_lib_styles__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(27611),_lib_universal__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(80912),_lib_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(37309);class Playground extends react__WEBPACK_IMPORTED_MODULE_2__.Component{static getDerivedStateFromError(e){return{error:e}}constructor(){super(...arguments);const e=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.clean((0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.mB)());try{_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.validate(e)}catch(n){n.details.forEach((n=>{let{name:t}=n;e[t]=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.getDefinition(t).defaultValue}))}this.state=e,this.onChange=this.onChange.bind(this)}componentDidMount(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}componentDidUpdate(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}onChange(e,n){"preset"===e&&this.setState((e=>({props:{...e.props,schema:_lib_presets__WEBPACK_IMPORTED_MODULE_5__.Z[n]}}))),this.setState({error:void 0,[e]:n})}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundForm,{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z.playground,model:this.state,onChange:this.onChange,schema:_lib_schema__WEBPACK_IMPORTED_MODULE_6__.J},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-column"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement("nav",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-toolbar"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"preset"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"theme"})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPropsField,{name:"props",spellCheck:!1})),this.state.error?react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",{children:""+this.state.error}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPreviewField,{name:"props",nameTheme:"theme"}))}}class PlaygroundForm extends uniforms__WEBPACK_IMPORTED_MODULE_10__.O{getContextState(){return{...super.getContextState(),theme:this.props.model.theme}}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(uniforms__WEBPACK_IMPORTED_MODULE_11__.D.Provider,{value:this.getContext()},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",lodash_omit__WEBPACK_IMPORTED_MODULE_1___default()(this.getNativeFormProps(),["onSubmit"])))}}const PlaygroundModelDebug=()=>{const{model:e}=(0,uniforms__WEBPACK_IMPORTED_MODULE_12__.c)();return react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("code",null,`const model = ${JSON.stringify(e,null,2)};`)))};class PlaygroundPreview extends react__WEBPACK_IMPORTED_MODULE_2__.Component{constructor(){super(...arguments),this._schema=eval(`(${this.props.value.schema})`)}UNSAFE_componentWillReceiveProps(props){this.props.value.schema!==props.value.schema&&(this._schema=eval(`(${props.value.schema})`))}render(){const{AutoFields:e,AutoForm:n,ErrorsField:t,SubmitField:r}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[this.props.theme||"unstyled"],{asyncOnSubmit:a,asyncOnValidate:l,schema:i,...o}=this.props.value;return o.schema=this._schema,a&&(o.onSubmit=()=>new Promise((e=>{setTimeout(e,1e3)}))),l&&(o.onValidate=(e,n)=>new Promise((e=>{setTimeout((()=>{e(n)}),1e3)}))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:this.props.theme},this.props.errorMessage?react__WEBPACK_IMPORTED_MODULE_2__.createElement("span",{children:this.props.errorMessage}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(n,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({key:(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.nN)(i)},o),react__WEBPACK_IMPORTED_MODULE_2__.createElement(e,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(t,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(r,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundModelDebug,null)))}}const PlaygroundPreviewField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundPreview);class PlaygroundProps extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{onChange:e,schema:n,theme:t,value:r}=this.props,a="antd"===t,l="bootstrap4"===t,i="material"===t,o="semantic"===t,{AutoForm:s,BoolField:u,ErrorsField:d,LongTextField:c,NumField:m}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[t||"unstyled"];return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:t},react__WEBPACK_IMPORTED_MODULE_2__.createElement(s,{autosave:!0,autosaveDelay:100,model:r,onSubmit:e,schema:n},react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"autosave"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(m,{name:"autosaveDelay",disabled:!r.autosave}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"disabled"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"readOnly"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"label"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"placeholder"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"showInlineError",disabled:!(a||l||i||o)}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"asyncOnSubmit"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"asyncOnValidate"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({name:"schema"},i&&{fullWidth:!0,rowsMax:20})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(d,null)))}}const PlaygroundPropsField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundProps);class PlaygroundSelect extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{options:e,onChange:n,value:t}=this.props;return react__WEBPACK_IMPORTED_MODULE_2__.createElement("select",{onChange:e=>n(e.target.value),value:t},e.map((e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement("option",{key:e.key??e.value,value:e.value},e.label??e.value))))}}const PlaygroundSelectField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundSelect);class PlaygroundWrap extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{children:e,frameProps:n,theme:t}=this.props,r=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,e,_lib_styles__WEBPACK_IMPORTED_MODULE_7__.Z[t]);if("material"===t||"mui"===t)return react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{children:r,className:classnames__WEBPACK_IMPORTED_MODULE_0___default()("frame-root",_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"])});let a=r;return"antd"===t&&(a=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.Kr,null,(e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__.default,{getPopupContainer:()=>e.document.body},r)))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.ZP,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({children:a,className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"]},n))}}},46867:function(e,n,t){"use strict";t.d(n,{TX:function(){return s},mQ:function(){return d}});var r=t(60042),a=t.n(r),l=t(27378),i=t(4940),o=t(59150);function s(e){let{activeTab:n,items:t,onTab:r}=e;return l.createElement("div",{className:i.Z.tabs},t.map(((e,t)=>{let{name:a}=e;return l.createElement(u,{active:n===t,key:t,onClick:()=>r(t)},a)})))}function u(e){let{active:n,children:t,onClick:r}=e;return l.createElement("span",{className:a()(i.Z.item,n&&i.Z.active),onClick:r,onKeyDown:e=>"Enter"===e.key&&r(),role:"button",tabIndex:0},t)}function d(e){let{children:n,group:t,tabs:r}=e;const{activeTab:a,onTab:i}=(0,o.Y)(t);return l.createElement(l.Fragment,null,l.createElement(s,{activeTab:a,items:r,onTab:i}),n(r[a]))}},53009:function(e,n,t){"use strict";t.d(n,{R:function(){return s}});var r=t(27378),a=t(80912),l=t(633),i=t(46867);const o=[{name:"Semantic",value:"semantic"},{name:"Material",value:"material"},{name:"MUI",value:"mui"},{name:"Bootstrap4",value:"bootstrap4"},{name:"Bootstrap5",value:"bootstrap5"},{name:"AntD",value:"antd"},{name:"Unstyled",value:"unstyled"}];function s(e){let{children:n}=e;return r.createElement(i.mQ,{group:"tutorial",tabs:o},(e=>{let{value:t}=e;return r.createElement(a.nN.Provider,{value:t},r.createElement(l.n,null,n))}))}},5037:function(e,n){"use strict";const t=e=>e[0].slice(5,-3).replace(/([\r\n]+) {4}/g,"$1"),r={"Welcome!":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + date: { type: Date, defaultValue: new Date() }, + adult: Boolean, + size: { + type: String, + defaultValue: 'm', + allowedValues: ['xs', 's', 'm', 'l', 'xl'], + }, + rating: { + type: Number, + allowedValues: [1, 2, 3, 4, 5], + uniforms: { checkboxes: true }, + }, + friends: { type: Array, minCount: 1 }, + 'friends.$': Object, + 'friends.$.name': { type: String, min: 3 }, + 'friends.$.age': { type: Number, min: 0, max: 150 }, + }) + }) + `,"Address (JSONSchema)":t` + (() => { + const ajv = new Ajv({ allErrors: true, useDefaults: true, keywords: ["uniforms"] }); + const schema = { + title: 'Address', + type: 'object', + properties: { + city: { type: 'string' }, + state: { type: 'string' }, + street: { type: 'string' }, + zip: { type: 'string', pattern: '[0-9]{5}' }, + }, + required: ['street', 'zip', 'state'], + }; + + function createValidator(schema) { + const validator = ajv.compile(schema); + + return (model) => { + validator(model); + + if (validator.errors && validator.errors.length) { + return { details: validator.errors }; + } + }; + } + + const validator = createValidator(schema); + + return new JSONSchemaBridge({ schema, validator }); + })() + `,"Address (SimpleSchema)":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + city: { + type: String, + optional: true, + max: 50, + }, + state: String, + street: { type: String, max: 100 }, + zip: { + type: String, + regEx: /^[0-9]{5}$/, + }, + }) + }) + `,"Address (Zod)":t` + new ZodBridge({ + schema: z.object({ + city: z.string().max(50).optional(), + state: z.string(), + street: z.string().max(100), + zip: z.string().regex(/^[0-9]{5}$/), + }) + }) + `,"All Fields (SimpleSchema)":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + text: { type: String }, + num: { type: Number }, + bool: { type: Boolean }, + nested: { type: Object }, + 'nested.text': { type: String }, + date: { type: Date }, + list: { type: Array }, + 'list.$': { + type: String, + uniforms: { label: 'List Text', placeholder: 'List Text Placeholder' }, + }, + select: { + type: String, + uniforms: { + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + radio: { + type: String, + uniforms: { + checkboxes: true, + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + }) + }) + `,"All Fields (Zod)":t` + new ZodBridge({ + schema: z.object({ + text: z.string(), + num: z.number(), + bool: z.boolean(), + nested: z.object({ text: z.string() }), + date: z.date(), + // TODO: Custom label and placeholder. + list: z.array(z.string()), + select: z.enum(['a', 'b']), + // TODO: Enums with custom props. + radio: z.enum(['a', 'b']), + }) + }) + `};n.Z=r},5413:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return bridge},f:function(){return schema}});var ajv__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(86236),ajv__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(ajv__WEBPACK_IMPORTED_MODULE_0__),message_box__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(28622),simpl_schema__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(13762),simpl_schema__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(simpl_schema__WEBPACK_IMPORTED_MODULE_2__),uniforms__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(11561),uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(73633),uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(12005),uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(48616),zod__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(84200),_presets__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5037),_universal__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(80912);uniforms__WEBPACK_IMPORTED_MODULE_8__.z.register("const");const scope="undefined"==typeof window?__webpack_require__.g:window;simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().extendOptions(["uniforms"]),scope.Ajv=ajv__WEBPACK_IMPORTED_MODULE_0___default(),scope.JSONSchemaBridge=uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__.j,scope.SimpleSchema=simpl_schema__WEBPACK_IMPORTED_MODULE_2___default(),scope.SimpleSchema2Bridge=uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V,scope.ZodBridge=uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__.K,scope.z=zod__WEBPACK_IMPORTED_MODULE_9__.z,message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:""}}});const propsSchema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({autosave:{optional:!0,type:Boolean},autosaveDelay:{optional:!0,type:simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().Integer},disabled:{optional:!0,type:Boolean},label:{optional:!0,type:Boolean},placeholder:{optional:!0,type:Boolean},readOnly:{optional:!0,type:Boolean},showInlineError:{optional:!0,type:Boolean},asyncOnSubmit:{optional:!0,type:Boolean,label:"Async onSubmit (1 sec)"},asyncOnValidate:{optional:!0,type:Boolean,label:"Async onValidate (1 sec)"},schema:{optional:!0,type:String,custom(){try{return void eval(`(${this.value??""})`)}catch(error){const e=error instanceof Error?error.message:String(error);return message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:e}}}),"syntax"}}}}),propsBridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:propsSchema}),schema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({preset:{type:String,defaultValue:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0],allowedValues:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)},props:{type:Object,blackbox:!0,defaultValue:{autosave:!1,autosaveDelay:100,disabled:!1,label:!0,placeholder:!1,readOnly:!1,schema:_presets__WEBPACK_IMPORTED_MODULE_6__.Z[Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0]],showInlineError:!1,asyncOnSubmit:!1,asyncOnValidate:!1},uniforms:{schema:propsBridge}},theme:{type:String,uniforms:{transform:e=>`uniforms-${e}`},defaultValue:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)[0],allowedValues:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)}}),bridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:schema})},27611:function(e,n,t){"use strict";var r=t(27378);const a=r.createElement("style",{children:'\n body {\n margin: 0;\n }\n\n textarea[name="schema"] {\n font-family: monospace !important;\n min-height: 20em !important;\n }\n\n .frame-root {\n padding: 1rem !important;\n }\n',key:"common"}),l=e=>e.map(((e,n)=>r.createElement("link",{key:n,rel:"stylesheet",href:e}))).concat(a),i={antd:l(["https://cdnjs.cloudflare.com/ajax/libs/antd/4.4.0/antd.min.css"]),bootstrap4:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css"]),bootstrap5:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css"]),material:l([]),mui:l([]),semantic:l(["https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.7/semantic.min.css"]),unstyled:l([])};n.Z=i},59150:function(e,n,t){"use strict";t.d(n,{Y:function(){return i}});var r=t(27378);const a=Object.create(null),l=Object.create(null);function i(e){const[n,t]=(0,r.useState)(a[e]||0),i=(0,r.useCallback)((n=>function(e,n){a[e]=n,l[e].forEach((e=>{e(n)}))}(e,n)),[e]);return(0,r.useEffect)((()=>function(e,n){return void 0===l[e]&&(a[e]=0,l[e]=[]),l[e].push(n),()=>{l[e].splice(l[e].indexOf(n),1)}}(e,t)),[e]),{activeTab:n,onTab:i}}},80912:function(e,n,t){"use strict";t.d(n,{Pt:function(){return Ga},UE:function(){return Qa},NE:function(){return Ha},ME:function(){return Ja},yc:function(){return Ya},hI:function(){return Xa},mg:function(){return el},hl:function(){return nl},nv:function(){return tl},nN:function(){return al},np:function(){return rl}});var r={};t.r(r),t.d(r,{AutoField:function(){return ve},AutoFields:function(){return be},AutoForm:function(){return we},BaseForm:function(){return Oe},BoolField:function(){return M},DateField:function(){return A},ErrorField:function(){return Ae},ErrorsField:function(){return Fe},HiddenField:function(){return Re},ListAddField:function(){return K},ListDelField:function(){return G},ListField:function(){return re},ListItemField:function(){return ee},LongTextField:function(){return Le},NestField:function(){return ae},NumField:function(){return ie},QuickForm:function(){return je},RadioField:function(){return de},SelectField:function(){return fe},SubmitField:function(){return Ne},TextField:function(){return _e},ValidatedForm:function(){return Me},ValidatedQuickForm:function(){return Te},wrapField:function(){return P}});var a={};t.r(a),t.d(a,{AutoField:function(){return fn},AutoFields:function(){return hn},AutoForm:function(){return Cn},BaseForm:function(){return _n},BoolField:function(){return Ke},DateField:function(){return Ge},ErrorField:function(){return kn},ErrorsField:function(){return vn},HiddenField:function(){return xn},ListAddField:function(){return Je},ListDelField:function(){return Xe},ListField:function(){return nn},ListItemField:function(){return en},LongTextField:function(){return Fn},NestField:function(){return tn},NumField:function(){return rn},QuickForm:function(){return En},RadioField:function(){return on},SelectField:function(){return mn},SubmitField:function(){return bn},TextField:function(){return pn},ValidatedForm:function(){return yn},ValidatedQuickForm:function(){return On},gridClassName:function(){return $e},wrapField:function(){return Ve}});var l={};t.r(l),t.d(l,{AutoField:function(){return Jn},AutoFields:function(){return Yn},AutoForm:function(){return it},BaseForm:function(){return Xn},BoolField:function(){return wn},DateField:function(){return An},ErrorField:function(){return ot},ErrorsField:function(){return et},HiddenField:function(){return st},ListAddField:function(){return Sn},ListDelField:function(){return Bn},ListField:function(){return Zn},ListItemField:function(){return Wn},LongTextField:function(){return ut},NestField:function(){return Un},NumField:function(){return zn},QuickForm:function(){return rt},RadioField:function(){return Kn},SelectField:function(){return Gn},SubmitField:function(){return tt},TextField:function(){return Hn},ValidatedForm:function(){return at},ValidatedQuickForm:function(){return lt},gridClassName:function(){return Mn},wrapField:function(){return Tn}});var i={};t.r(i),t.d(i,{AutoField:function(){return $t},AutoFields:function(){return Vt},AutoForm:function(){return Xt},BaseForm:function(){return Kt},BoolField:function(){return bt},DateField:function(){return Ct},ErrorField:function(){return er},ErrorsField:function(){return qt},HiddenField:function(){return nr},ListAddField:function(){return Nt},ListDelField:function(){return Pt},ListField:function(){return Tt},ListItemField:function(){return Mt},LongTextField:function(){return tr},NestField:function(){return wt},NumField:function(){return It},QuickForm:function(){return Ht},RadioField:function(){return Lt},SelectField:function(){return Ut},SubmitField:function(){return Gt},TextField:function(){return zt},ValidatedForm:function(){return Jt},ValidatedQuickForm:function(){return Yt},wrapField:function(){return gt}});var o={};t.r(o),t.d(o,{AutoField:function(){return Sr},AutoFields:function(){return Lr},AutoForm:function(){return Vr},BaseForm:function(){return Br},BoolField:function(){return cr},DateField:function(){return hr},ErrorField:function(){return Kr},ErrorsField:function(){return Wr},HiddenField:function(){return qr},ListAddField:function(){return br},ListDelField:function(){return Or},ListField:function(){return kr},ListItemField:function(){return Cr},LongTextField:function(){return Qr},NestField:function(){return xr},NumField:function(){return Fr},QuickForm:function(){return Ur},RadioField:function(){return Tr},SelectField:function(){return Ar},SubmitField:function(){return Zr},TextField:function(){return Rr},ValidatedForm:function(){return zr},ValidatedQuickForm:function(){return $r},wrapField:function(){return dr}});var s={};t.r(s),t.d(s,{AutoField:function(){return Gr.Z},AutoFields:function(){return Hr},AutoForm:function(){return Jr.Z},BaseForm:function(){return Yr.Z},BoolField:function(){return Xr.Z},DateField:function(){return ea.Z},ErrorField:function(){return na},ErrorsField:function(){return ta.Z},HiddenField:function(){return ra},ListAddField:function(){return aa.Z},ListDelField:function(){return la.Z},ListField:function(){return ia.Z},ListItemField:function(){return oa.Z},LongTextField:function(){return sa},NestField:function(){return ua.Z},NumField:function(){return da.Z},QuickForm:function(){return ca.Z},RadioField:function(){return ma.Z},SelectField:function(){return pa.Z},SubmitField:function(){return fa.Z},TextField:function(){return ha.Z},ValidatedForm:function(){return _a.Z},ValidatedQuickForm:function(){return va.Z}});var u={};t.r(u),t.d(u,{AutoField:function(){return Ra},AutoFields:function(){return Sa},AutoForm:function(){return $a},BaseForm:function(){return La},BoolField:function(){return ga},DateField:function(){return ya},ErrorField:function(){return Va},ErrorsField:function(){return Ba},HiddenField:function(){return Ka},ListAddField:function(){return Oa},ListDelField:function(){return Ca},ListField:function(){return xa},ListItemField:function(){return ka},LongTextField:function(){return qa.Z},NestField:function(){return Fa},NumField:function(){return Na},QuickForm:function(){return Za},RadioField:function(){return Ma},SelectField:function(){return Ia},SubmitField:function(){return Wa},TextField:function(){return Aa},ValidatedForm:function(){return Ua},ValidatedQuickForm:function(){return za}});var d=t(25773),c=t(27378),m=t(3996),p=t.n(m),f=t(6846),h=t(59312),_=t(30219),v=t.n(_),g=t(21473),b=t.n(g),E=t(98591),y=t(56369),O=t(11561),C=t(76424),k=t(31115),x=t.n(k),F=t(5041),N=t(62004);const j={marginBottom:"12px"};function P(e,n){let{colon:t,error:r,errorMessage:a,extra:l,help:i,id:o,info:s,label:u,labelCol:d,required:m,showInlineError:p,validateStatus:f,wrapperCol:h,wrapperStyle:_=j}=e;const v=!!u&&c.createElement("span",null,u,!!s&&c.createElement("span",null,"\xa0",c.createElement(N.default,{title:s},c.createElement(x(),null))));return c.createElement(F.Z.Item,{colon:t,hasFeedback:!0,help:i||p&&!!r&&a,extra:l,htmlFor:o,label:v,labelCol:d,required:m,style:_,validateStatus:r?"error":f,wrapperCol:h},n)}O.z.register("checkboxes","colon","disableItem","labelCol","validateStatus","wrapperCol","wrapperStyle");var M=(0,C.e)((function(e){var{checkbox:n=!1,checkedChildren:t=c.createElement(v(),null),disabled:r,inputRef:a,name:l,onChange:i,readOnly:o,unCheckedChildren:s=c.createElement(b(),null),value:u}=e,d=(0,h._T)(e,["checkbox","checkedChildren","disabled","inputRef","name","onChange","readOnly","unCheckedChildren","value"]);const m=n?E.Z:y.Z;return P(d,c.createElement(m,Object.assign({checked:u||!1,checkedChildren:t,disabled:r,name:l,onChange:()=>o?void 0:i(!u),ref:a,unCheckedChildren:s},(0,O.z)(d))))}),{kind:"leaf"}),T=t(82290),w=t(61320),I=t.n(w);const D={width:"100%"};var A=(0,C.e)((function(e){var{showTime:n=!0,style:t=D}=e,r=(0,h._T)(e,["showTime","style"]);return P(r,c.createElement(T.Z,Object.assign({disabled:r.disabled,inputReadOnly:r.readOnly,name:r.name,onChange:e=>{r.readOnly||r.onChange(e?e.toDate():void 0)},placeholder:r.placeholder,ref:r.inputRef,showTime:n,style:t,value:r.value&&I()(r.value)},(0,O.z)(r))))}),{kind:"leaf"}),R=t(60042),S=t.n(R),L=t(94037),B=t.n(L),W=t(76676),Z=t(30454),U=t.n(Z),z=t(65507),$=t(68591);const V={width:"100%"};var K=(0,C.e)((function(e){var{disabled:n,icon:t=c.createElement(B(),null),name:r,readOnly:a,size:l="small",style:i=V,type:o="dashed",value:s}=e,u=(0,h._T)(e,["disabled","icon","name","readOnly","size","style","type","value"]);const d=(0,z.m)(null,r),m=(0,z.m)(d.slice(0,-1)),p=(0,$.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return c.createElement(W.default,Object.assign({},(0,O.z)(u),{disabled:!f,icon:t,onClick:()=>{a||p.onChange(p.value.concat([U()(s)]))},size:l,style:i,type:o}))}),{initialValue:!1,kind:"leaf"}),q=t(85221),Q=t.n(q);var G=(0,C.e)((function(e){var{disabled:n,icon:t=c.createElement(Q(),null),name:r,readOnly:a,shape:l="circle",size:i="small",type:o="ghost"}=e,s=(0,h._T)(e,["disabled","icon","name","readOnly","shape","size","type"]);const u=(0,z.m)(null,r),d=+u[u.length-1],m=(0,z.m)(u.slice(0,-1)),p=(0,$.U)(m,{},{absoluteName:!0})[0];return n||(n=a||p.minCount>=p.value.length),c.createElement(W.default,Object.assign({},(0,O.z)(s),{disabled:n,icon:t,onClick:()=>{const e=p.value.slice();e.splice(d,1),p.onChange(e)},shape:l,size:i,type:o}))}),{initialValue:!1,kind:"leaf"});const H={float:"right",marginBottom:"10px",marginLeft:"10px",marginRight:"6px",width:"20px"},J={marginBottom:"24px",overflow:"hidden"},Y={borderBottom:"1px solid #DDD",height:"20px",marginTop:"-8px"},X={width:"100%"};var ee=(0,C.e)((function(e){let{children:n=c.createElement(ve,{label:null,name:""})}=e;return c.createElement("div",null,c.createElement("div",{style:H},c.createElement(G,{className:"top aligned",name:""})),c.createElement("div",{style:J},c.createElement("div",{style:Y})),c.createElement("div",{style:X},n))}));const ne={marginBottom:"5px",marginTop:"5px",padding:"10px"},te={borderColor:"rgb(255, 85, 0)"};var re=(0,C.e)((function(e){var{children:n=c.createElement(ee,{name:"$"}),className:t,error:r,errorMessage:a,info:l,itemProps:i,label:o,labelCol:s,showInlineError:u,style:d=ne,value:m,wrapperCol:p}=e,f=(0,h._T)(e,["children","className","error","errorMessage","info","itemProps","label","labelCol","showInlineError","style","value","wrapperCol"]);const _=r?d?Object.assign(Object.assign({},te),d):te:d;return c.createElement("div",Object.assign({},(0,O.z)(f),{style:_,className:S()([t,"ant-list","ant-list-bordered"])}),!!o&&c.createElement("div",null,o,!!l&&c.createElement("span",null,"\xa0",c.createElement(N.default,{title:l},c.createElement(x(),null)))),!(!r||!u)&&c.createElement("div",null,a),null==m?void 0:m.map(((e,t)=>c.Children.map(n,((e,n)=>{var r;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+t),labelCol:s,wrapperCol:p},i)):e})))),c.createElement(K,{name:"$"}))}));var ae=(0,C.e)((function(e){var{children:n,error:t,errorMessage:r,fields:a,itemProps:l,label:i,showInlineError:o}=e,s=(0,h._T)(e,["children","error","errorMessage","fields","itemProps","label","showInlineError"]);return c.createElement("div",Object.assign({},(0,O.z)(s)),i&&c.createElement("label",null,i),!(!t||!o)&&c.createElement("div",null,r),n||a.map((e=>c.createElement(ve,Object.assign({key:e,name:e},l)))))})),le=t(15425);var ie=(0,C.e)((function(e){return P(e,c.createElement(le.Z,Object.assign({disabled:e.disabled,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(""+n);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),style:{width:"100%"},value:e.value},(0,O.z)(e))))}),{kind:"leaf"}),oe=t(58946);const se="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,ue={display:"block"};var de=(0,C.e)((function(e){var n,t,r;return P(e,c.createElement(oe.ZP.Group,Object.assign({},(0,O.z)(e),{disabled:e.disabled,name:e.name,onChange:n=>{e.readOnly||e.onChange(n.target.value)},value:null!==(n=e.value)&&void 0!==n?n:"",options:null===(t=e.options)||void 0===t?void 0:t.map((e=>{var n;return Object.assign(Object.assign({},e),{label:null!==(n=e.label)&&void 0!==n?n:e.value})}))}),null===(r=e.options)||void 0===r?void 0:r.map((n=>{var t,r,a;return c.createElement(oe.ZP,{id:`${e.id}-${a=n.value,se(encodeURIComponent(a)).replace(/=+$/,"")}`,key:null!==(t=n.key)&&void 0!==t?t:n.value,style:ue,value:n.value,disabled:n.disabled},null!==(r=n.label)&&void 0!==r?r:n.value)}))))}),{kind:"leaf"}),ce=t(99388),me=t(69601),pe=t(92049);var fe=(0,C.e)((function(e){var n,t;const r=e.fieldType===Array?ce.default:me.default,a=(0,O.z)(e);return P(e,e.checkboxes?c.createElement("span",Object.assign({},a),c.createElement(r,Object.assign({},a,{disabled:e.disabled,name:e.name,onChange:n=>{e.readOnly||e.onChange(e.fieldType===Array?n:n.target.value)},options:null===(n=e.options)||void 0===n?void 0:n.map((e=>{var n;return Object.assign(Object.assign({},e),{label:null!==(n=e.label)&&void 0!==n?n:e.value})})),value:e.value}))):c.createElement(pe.Z,Object.assign({allowClear:!e.required,disabled:e.disabled,mode:e.fieldType===Array?"multiple":void 0,name:e.name,onChange:n=>{e.readOnly||e.onChange(n)},placeholder:e.placeholder,ref:e.inputRef,value:e.fieldType===Array?Array.isArray(e.value)?e.value.filter((e=>void 0!==e)):[]:e.value},a),null===(t=e.options)||void 0===t?void 0:t.map((n=>{var t,r,a;return c.createElement(pe.Z.Option,{disabled:n.disabled,key:null!==(t=n.key)&&void 0!==t?t:n.value,value:n.value,id:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:escape(n.value)}`},null!==(a=n.label)&&void 0!==a?a:n.value)}))))}),{kind:"leaf"}),he=t(74105);var _e=(0,C.e)((function(e){var n,t;return P(e,c.createElement(he.Z,Object.assign({disabled:e.disabled,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""},(0,O.z)(e))))}),{kind:"leaf"});var ve=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?de:fe;switch(e.fieldType){case Array:return re;case Boolean:return M;case Date:return A;case Number:return ie;case Object:return ae;case String:return _e}return p()(!1,"Unsupported field type: %s",e.fieldType)})),ge=t(55201);function be(e){var{element:n=c.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,c.createElement)(ve,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var Ee=t(39850),ye=t(6820);var Oe=function e(n){class t extends n{getNativeFormProps(){const e=super.getNativeFormProps(),{className:n,layout:t="vertical"}=e,r=(0,h._T)(e,["className","layout"]);return Object.assign(Object.assign({},r),{className:S()("ant-form","ant-form-"+t,n)})}}return t.AntD=e,t.displayName=`AntD${n.displayName}`,t}(ye.I),Ce=t(51674);const ke={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},xe={margin:"3px"};var Fe=function(e){var{children:n,style:t=ke}=e,r=(0,h._T)(e,["children","style"]);const{error:a,schema:l}=(0,ge.c)();return a||n?c.createElement("div",Object.assign({style:t},(0,O.z)(r)),n,c.createElement("ul",null,l.getErrorMessages(a).map(((e,n)=>c.createElement("li",{key:n,style:xe},e))))):null};var Ne=function(e){var{disabled:n,inputRef:t,value:r="Submit"}=e,a=(0,h._T)(e,["disabled","inputRef","value"]);const{error:l,state:i}=(0,ge.c)();return c.createElement(W.default,Object.assign({disabled:void 0===n?!(!l&&!i.disabled):n,htmlType:"submit",ref:t,type:"primary"},a),r)};var je=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return ve}getErrorsField(){return Fe}getSubmitField(){return Ne}}return t.Quick=e,t}(Oe),Pe=t(23674);var Me=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(Oe),Te=Me.Validated(je.Quick(Oe));var we=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Te);const Ie={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},De={margin:"3px"};var Ae=(0,C.e)((function(e){var{children:n,error:t,errorMessage:r,style:a=Ie}=e,l=(0,h._T)(e,["children","error","errorMessage","style"]);return t?c.createElement("div",Object.assign({style:a},(0,O.z)(l)),n||c.createElement("div",{style:De},r)):null}),{initialValue:!1,kind:"leaf"});function Re(e){var n,{value:t}=e,r=(0,h._T)(e,["value"]);const a=(0,$.U)(r.name,r,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:c.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var Se=t(10777);var Le=(0,C.e)((function(e){var n,{rows:t=5}=e,r=(0,h._T)(e,["rows"]);return P(r,c.createElement(Se.default,Object.assign({disabled:r.disabled,name:r.name,onChange:e=>r.onChange(e.target.value),placeholder:r.placeholder,readOnly:r.readOnly,ref:r.inputRef,rows:t,value:null!==(n=r.value)&&void 0!==n?n:""},(0,O.z)(r))))}),{kind:"leaf"}),Be=t(48159),We=t.n(Be);function Ze(e,n,t){const r="xs"===e?"":`${e}-`;return"label"===t?`col-${r}${n}`:`col-${r}${12-n}`}const Ue={xs:1,sm:2,md:3,lg:4,xl:5};function ze(e,n){return Ue[e]-Ue[n]}function $e(e,n){return"number"==typeof e?Ze("xs",e,n):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl},e)),Object.keys(e).sort(ze).map((t=>Ze(t,e[t],n))).join(" ")):"":Ze("xs",parseInt(e),n)}function Ve(e,n){var{changed:t,className:r,disabled:a,error:l,errorMessage:i,grid:o,help:s,helpClassName:u,id:d,label:m,labelClassName:p,required:f,showInlineError:_,wrapClassName:v}=e,g=(0,h._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const b=!(!o&&!v),E=!(!l||!_)&&c.createElement("span",{className:"form-text text-danger"},i),y=!!s&&c.createElement("span",{className:S()("form-text",u||"text-muted")},s),C=!l&&t;return c.createElement("div",Object.assign({className:S()(r,"form-group",{"is-invalid":l,"is-valid":C,disabled:a,required:f,row:o})},We()((0,O.z)(g),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&c.createElement("label",{htmlFor:d,className:S()({"col-form-label":o,"text-danger":l,"text-success":C},$e(o,"label"),p)},m),b&&c.createElement("div",{className:S()(v,$e(o,"input"))},n,y,E),!b&&n,!b&&y,!b&&E)}var Ke=(0,C.e)((function(e){var{onChange:n}=e,t=(0,h._T)(e,["onChange"]);const{disabled:r,error:a,inline:l,inputClassName:i,inputRef:o,label:s,labelBefore:u,name:d,readOnly:m,value:p}=t;return Ve(Object.assign(Object.assign({},t),{label:u,value:t.value}),c.createElement("div",{className:S()(i,"form-check","checkbox",{"custom-control-inline":l,"text-danger":a,"text-success":!a&&t.changed})},c.createElement("label",{htmlFor:t.id,className:"form-check-label"},c.createElement("input",{checked:p||!1,className:"form-check-input",disabled:r,id:t.id,name:d,onChange:()=>{m||n(!p)},ref:o,type:"checkbox"}),"\xa0",s)))}),{kind:"leaf"});const qe=("object"==typeof t.g?t.g:window).Date,Qe=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var Ge=(0,C.e)((function(e){var n,{disabled:t,error:r,id:a,inputClassName:l,inputRef:i,max:o,min:s,name:u,onChange:d,placeholder:m,readOnly:p,value:f,type:_="datetime-local"}=e,v=(0,h._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return Ve(Object.assign(Object.assign({},v),{id:a}),c.createElement("input",{className:S()(l,"form-control",{"is-invalid":r,"is-valid":!r&&v.changed}),disabled:t,id:a,max:Qe(o),min:Qe(s),name:u,onChange:e=>{const n=new qe(e.target.valueAsNumber);n.getFullYear()<1e4?d(n):isNaN(e.target.valueAsNumber)&&d(void 0)},placeholder:m,readOnly:p,ref:i,type:_,value:null!==(n=Qe(f,_))&&void 0!==n?n:""}))}),{kind:"leaf"});function He(e){var{addIcon:n,className:t,disabled:r,name:a,readOnly:l,value:i}=e,o=(0,h._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const s=(0,z.m)(null,a),u=(0,z.m)(s.slice(0,-1)),d=(0,$.U)(u,{},{absoluteName:!0})[0],m=!(r||d.maxCount<=d.value.length);function p(e){!m||l||"key"in e&&"Enter"!==e.key||d.onChange(d.value.concat([U()(i)]))}return c.createElement("div",Object.assign({},(0,O.z)(o),{className:S()("badge badge-pill float-right",t),onClick:p,onKeyDown:p,role:"button",tabIndex:0}),n)}He.defaultProps={addIcon:c.createElement("i",{className:"octicon octicon-plus"})};var Je=(0,C.e)(He,{initialValue:!1,kind:"leaf"});function Ye(e){var{className:n,disabled:t,name:r,readOnly:a,removeIcon:l}=e,i=(0,h._T)(e,["className","disabled","name","readOnly","removeIcon"]);const o=(0,z.m)(null,r),s=+o[o.length-1],u=(0,z.m)(o.slice(0,-1)),d=(0,$.U)(u,{},{absoluteName:!0})[0];function m(e){if(!(t||"key"in e&&"Enter"!==e.key)){const e=d.value.slice();e.splice(s,1),d.onChange(e)}}return t||(t=a||d.minCount>=d.value.length),c.createElement("span",Object.assign({},(0,O.z)(i),{className:S()("badge badge-pill",n),onClick:m,onKeyDown:m,role:"button",tabIndex:0}),l)}Ye.defaultProps={removeIcon:c.createElement("i",{className:"octicon octicon-dash"})};var Xe=(0,C.e)(Ye,{initialValue:!1,kind:"leaf"});var en=(0,C.e)((function(e){let{children:n=c.createElement(fn,{className:"col-11",label:null,name:""}),removeIcon:t}=e;return c.createElement("div",{className:"row"},c.createElement("div",{className:"col-1"},c.createElement(Xe,{name:"",removeIcon:t})),n)}),{initialValue:!1});var nn=(0,C.e)((function(e){var{addIcon:n,children:t=c.createElement(en,{name:"$"}),className:r,error:a,errorMessage:l,itemProps:i,label:o,removeIcon:s,showInlineError:u,value:d}=e,m=(0,h._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return c.createElement("div",Object.assign({className:S()("card mb-3",r)},(0,O.z)(m)),c.createElement("div",{className:"card-body"},o&&c.createElement("div",{className:"card-title"},c.createElement("label",{className:"col-form-label"},o,"\xa0"),c.createElement(Je,{addIcon:n,name:"$"}),!(!a||!u)&&c.createElement("span",{className:"text-danger"},l)),null==d?void 0:d.map(((e,n)=>c.Children.map(t,((e,t)=>{var r;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign(Object.assign({key:`${n}-${t}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+n)},i),{removeIcon:s})):e}))))))}));var tn=(0,C.e)((function(e){var{children:n,className:t,error:r,errorMessage:a,fields:l,itemProps:i,label:o,showInlineError:s}=e,u=(0,h._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return c.createElement("div",Object.assign({className:S()(t,{"has-error":r})},(0,O.z)(u)),o&&c.createElement("label",null,o),!(!r||!s)&&c.createElement("span",{className:"text-danger"},a),n||l.map((e=>c.createElement(fn,Object.assign({key:e,name:e},i)))))}));var rn=(0,C.e)((function(e){var n;return Ve(e,c.createElement("input",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(n.target.value);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});const an="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,ln=e=>an(encodeURIComponent(e)).replace(/=+$/,"");var on=(0,C.e)((function(e){var n;return Ve(e,null===(n=e.options)||void 0===n?void 0:n.map((n=>{var t,r,a,l;return c.createElement("div",{key:null!==(t=n.key)&&void 0!==t?t:n.value,className:S()(e.inputClassName,"form-check","radio",{"custom-control-inline":e.inline,"text-danger":e.error,"text-success":!e.error&&e.changed})},c.createElement("label",{htmlFor:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:ln(n.value)}`,className:"form-check-label"},c.createElement("input",{checked:n.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:ln(n.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(n.value)},type:"radio"})," ",null!==(l=n.label)&&void 0!==l?l:n.value))})))}),{kind:"leaf"}),sn=t(20098),un=t.n(sn);const dn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,cn=e=>dn(encodeURIComponent(e)).replace(/=+$/,"");var mn=(0,C.e)((function(e){var{options:n,checkboxes:t,disabled:r,error:a,fieldType:l,id:i,inline:o,inputClassName:s,inputRef:u,label:d,name:m,onChange:p,placeholder:f,readOnly:_,required:v,value:g}=e,b=(0,h._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return Ve(Object.assign(Object.assign({},b),{disabled:r,error:a,id:i,label:d,required:v}),t?null==n?void 0:n.map((e=>{var n,t,a,l;return c.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value,className:S()(s,"checkbox"+(o?"-inline":""))},c.createElement("label",{htmlFor:`${i}-${null!==(t=e.key)&&void 0!==t?t:cn(e.value)}`},c.createElement("input",{checked:E?null==g?void 0:g.includes(e.value):g===e.value,disabled:e.disabled||r,id:`${i}-${null!==(a=e.key)&&void 0!==a?a:cn(e.value)}`,name:m,onChange:()=>{_||p(E?un()([e.value],g):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):c.createElement("select",{className:S()(s,"c-select form-control",{"is-invalid":a,"is-valid":!a&&b.changed}),disabled:r,id:i,multiple:E,name:m,onChange:e=>{if(!_){const n=e.target.value;if(E){const t=-1===e.target.selectedIndex;p(t?[]:un()([n],g))}else p(""!==n?n:void 0)}},ref:u,value:null!=g?g:""},(!!f||!v||void 0===g)&&!E&&c.createElement("option",{value:"",disabled:v,hidden:v},f||d),null==n?void 0:n.map((e=>{var n,t;return c.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});var pn=(0,C.e)((function(e){var n,t;return Ve(We()(e,["autoComplete"]),c.createElement("input",{autoComplete:e.autoComplete,className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});var fn=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?on:mn;switch(e.fieldType){case Array:return nn;case Boolean:return Ke;case Date:return Ge;case Number:return rn;case Object:return tn;case String:return pn}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function hn(e){var{element:n=c.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,c.createElement)(fn,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var _n=function e(n){class t extends n{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),n=super.getNativeFormProps();return Object.assign(Object.assign({},We()(n,["grid"])),{className:S()("form",{error:e},n.className)})}}return t.Bootstrap4=e,t.displayName=`Bootstrap4${n.displayName}`,t}(ye.I);var vn=function(e){var{children:n,className:t}=e,r=(0,h._T)(e,["children","className"]);const{error:a,schema:l}=(0,ge.c)();return a||n?c.createElement("div",Object.assign({className:S()("card border-danger mb-3 text-danger",t)},(0,O.z)(r)),c.createElement("div",{className:"card-body"},n,l.getErrorMessages(a).map(((e,n)=>c.createElement("div",{key:n,className:"disabled"},e))))):null};function gn(e){var{className:n,disabled:t,inputClassName:r,inputRef:a,readOnly:l,value:i,wrapClassName:o}=e,s=(0,h._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:u,state:d}=(0,ge.c)(),m=d,p=!(!m.grid&&!o),f=c.createElement("input",Object.assign({className:r,disabled:void 0===t?!(!u&&!m.disabled):t,readOnly:l,ref:a,type:"submit"},i?{value:i}:{}));return c.createElement("div",Object.assign({className:S()(n,{"is-invalid":u,row:m.grid})},(0,O.z)(s)),p&&c.createElement("span",{className:S()("col-form-label",$e(m.grid,"label"))},"\xa0"),p&&c.createElement("div",{className:S()(o,$e(m.grid,"input"))},f),!p&&f)}gn.defaultProps={inputClassName:"btn btn-primary"};var bn=gn;var En=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return fn}getErrorsField(){return vn}getSubmitField(){return bn}}return t.Quick=e,t}(_n);var yn=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(_n),On=yn.Validated(En.Quick(_n));var Cn=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(On);var kn=(0,C.e)((function(e){var{children:n,className:t,error:r,errorMessage:a}=e,l=(0,h._T)(e,["children","className","error","errorMessage"]);return r?c.createElement("div",Object.assign({className:S()("card","mb-3",t)},(0,O.z)(l)),c.createElement("div",{className:"card-body"},n||c.createElement("h4",{className:"card-title"},a))):null}),{initialValue:!1,kind:"leaf"});function xn(e){var n,{value:t}=e,r=(0,h._T)(e,["value"]);const a=(0,$.U)(r.name,r,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:c.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var Fn=(0,C.e)((function(e){var n;return Ve(e,c.createElement("textarea",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});function Nn(e,n,t){const r="xs"===e?"":`${e}-`;return"label"===t?`col-${r}${n}`:`col-${r}${12-n}`}const jn={xs:1,sm:2,md:3,lg:4,xl:5,xxl:6};function Pn(e,n){return jn[e]-jn[n]}function Mn(e,n){return"number"==typeof e?Nn("xs",e,n):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl||e.xxl},e)),Object.keys(e).sort(Pn).map((t=>Nn(t,e[t],n))).join(" ")):"":Nn("xs",parseInt(e),n)}function Tn(e,n){var{changed:t,className:r,disabled:a,error:l,errorMessage:i,grid:o,help:s,helpClassName:u,id:d,label:m,labelClassName:p,required:f,showInlineError:_,wrapClassName:v}=e,g=(0,h._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const b=!(!o&&!v),E=!(!l||!_)&&c.createElement("span",{className:"form-text text-danger"},i),y=!!s&&c.createElement("span",{className:S()("form-text",u||"text-muted")},s);return c.createElement("div",Object.assign({className:S()(r,"mb-3",{"is-invalid":l,disabled:a,required:f,row:o})},We()((0,O.z)(g),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&c.createElement("label",{htmlFor:d,className:S()({"col-form-label":o,"text-danger":l,"text-success":!l&&t},Mn(o,"label"),p)},m),b&&c.createElement("div",{className:S()(v,Mn(o,"input"))},n,y,E),!b&&n,!b&&y,!b&&E)}var wn=(0,C.e)((function(e){var{onChange:n}=e,t=(0,h._T)(e,["onChange"]);const{disabled:r,error:a,inline:l,inputClassName:i,inputRef:o,label:s,labelBefore:u,name:d,readOnly:m,value:p}=t;return Tn(Object.assign(Object.assign({},t),{label:u,value:t.value}),c.createElement("div",{className:S()(i,"form-check",{"text-danger":a,"text-success":!a&&t.changed,"form-check-inline":l})},c.createElement("input",{checked:p||!1,className:"form-check-input",disabled:r,id:t.id,name:d,onChange:()=>{m||n(!p)},ref:o,type:"checkbox"}),c.createElement("label",{htmlFor:t.id,className:"form-check-label"},s)))}),{kind:"leaf"});const In=("object"==typeof t.g?t.g:window).Date,Dn=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var An=(0,C.e)((function(e){var n,{disabled:t,error:r,id:a,inputClassName:l,inputRef:i,max:o,min:s,name:u,onChange:d,placeholder:m,readOnly:p,value:f,type:_="datetime-local"}=e,v=(0,h._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return Tn(Object.assign(Object.assign({},v),{id:a}),c.createElement("input",{className:S()(l,"form-control",{"is-invalid":r,"is-valid":!r&&v.changed}),disabled:t,id:a,max:Dn(o),min:Dn(s),name:u,onChange:e=>{const n=new In(e.target.valueAsNumber);n.getFullYear()<1e4?d(n):isNaN(e.target.valueAsNumber)&&d(void 0)},placeholder:m,readOnly:p,ref:i,type:_,value:null!==(n=Dn(f,_))&&void 0!==n?n:""}))}),{kind:"leaf"});function Rn(e){var{addIcon:n,className:t,disabled:r,name:a,readOnly:l,value:i}=e,o=(0,h._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const s=(0,z.m)(null,a),u=(0,z.m)(s.slice(0,-1)),d=(0,$.U)(u,{},{absoluteName:!0})[0];return r||(r=l||d.maxCount<=d.value.length),c.createElement("button",Object.assign({},(0,O.z)(o),{className:S()("btn btn-secondary btn-sm float-end",t),disabled:r,onClick:function(){r||d.onChange(d.value.concat([U()(i)]))},tabIndex:0,type:"button"}),n)}Rn.defaultProps={addIcon:c.createElement("i",{className:"octicon octicon-plus"})};var Sn=(0,C.e)(Rn,{initialValue:!1,kind:"leaf"});function Ln(e){var{className:n,disabled:t,name:r,readOnly:a,removeIcon:l}=e,i=(0,h._T)(e,["className","disabled","name","readOnly","removeIcon"]);const o=(0,z.m)(null,r),s=+o[o.length-1],u=(0,z.m)(o.slice(0,-1)),d=(0,$.U)(u,{},{absoluteName:!0})[0];return t||(t=a||d.minCount>=d.value.length),c.createElement("button",Object.assign({},(0,O.z)(i),{className:S()("btn btn-secondary btn-sm",n),disabled:t,onClick:()=>{const e=d.value.slice();e.splice(s,1),d.onChange(e)},tabIndex:0,type:"button"}),l)}Ln.defaultProps={removeIcon:c.createElement("i",{className:"octicon octicon-dash"})};var Bn=(0,C.e)(Ln,{initialValue:!1,kind:"leaf"});var Wn=(0,C.e)((function(e){let{children:n=c.createElement(Jn,{className:"col",label:null,name:""}),removeIcon:t}=e;return c.createElement("div",{className:"row"},c.createElement("div",{className:"col-auto"},c.createElement(Bn,{name:"",removeIcon:t})),n)}),{initialValue:!1});var Zn=(0,C.e)((function(e){var{addIcon:n,children:t=c.createElement(Wn,{name:"$"}),className:r,error:a,errorMessage:l,itemProps:i,label:o,removeIcon:s,showInlineError:u,value:d}=e,m=(0,h._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return c.createElement("div",Object.assign({className:S()("card mb-3",r)},(0,O.z)(m)),c.createElement("div",{className:"card-body"},o&&c.createElement("div",{className:"card-title"},c.createElement("label",{className:"col-form-label"},o,"\xa0"),c.createElement(Sn,{addIcon:n,name:"$"}),!(!a||!u)&&c.createElement("span",{className:"text-danger"},l)),null==d?void 0:d.map(((e,n)=>c.Children.map(t,((e,t)=>{var r;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign(Object.assign({key:`${n}-${t}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+n)},i),{removeIcon:s})):e}))))))}));var Un=(0,C.e)((function(e){var{children:n,className:t,error:r,errorMessage:a,fields:l,itemProps:i,label:o,showInlineError:s}=e,u=(0,h._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return c.createElement("div",Object.assign({className:S()(t,{"has-error":r})},(0,O.z)(u)),o&&c.createElement("label",null,o),!(!r||!s)&&c.createElement("span",{className:"text-danger"},a),n||l.map((e=>c.createElement(Jn,Object.assign({key:e,name:e},i)))))}));var zn=(0,C.e)((function(e){var n;return Tn(e,c.createElement("input",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(n.target.value);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});const $n="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Vn=e=>$n(encodeURIComponent(e)).replace(/=+$/,"");var Kn=(0,C.e)((function(e){var n;return Tn(e,null===(n=e.options)||void 0===n?void 0:n.map((n=>{var t,r,a,l;return c.createElement("div",{key:null!==(t=n.key)&&void 0!==t?t:n.value,className:S()(e.inputClassName,"form-check",{"text-danger":e.error,"text-success":!e.error&&e.changed,"form-check-inline":e.inline})},c.createElement("label",{htmlFor:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:Vn(n.value)}`,className:"form-check-label"},c.createElement("input",{checked:n.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:Vn(n.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(n.value)},type:"radio"})," ",null!==(l=n.label)&&void 0!==l?l:n.value))})))}),{kind:"leaf"});const qn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Qn=e=>qn(encodeURIComponent(e)).replace(/=+$/,"");var Gn=(0,C.e)((function(e){var{options:n,checkboxes:t,disabled:r,error:a,fieldType:l,id:i,inline:o,inputClassName:s,inputRef:u,label:d,name:m,onChange:p,placeholder:f,readOnly:_,required:v,value:g}=e,b=(0,h._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return Tn(Object.assign(Object.assign({},b),{disabled:r,error:a,id:i,label:d,required:v}),t?null==n?void 0:n.map((e=>{var n,t,a,l;return c.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value,className:S()(s,"form-check"+(o?" form-check-inline":""))},c.createElement("label",{htmlFor:`${i}-${null!==(t=e.key)&&void 0!==t?t:Qn(e.value)}`},c.createElement("input",{checked:E?null==g?void 0:g.includes(e.value):g===e.value,disabled:e.disabled||r,id:`${i}-${null!==(a=e.key)&&void 0!==a?a:Qn(e.value)}`,name:m,onChange:()=>{_||p(E?un()([e.value],g):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):c.createElement("select",{className:S()(s,"form-control",{"is-invalid":a,"is-valid":!a&&b.changed}),disabled:r,id:i,multiple:E,name:m,onChange:e=>{if(!_){const n=e.target.value;if(E){const t=-1===e.target.selectedIndex;p(t?[]:un()([n],g))}else p(""!==n?n:void 0)}},ref:u,value:null!=g?g:""},(!!f||!v||void 0===g)&&!E&&c.createElement("option",{value:"",disabled:v,hidden:v},f||d),null==n?void 0:n.map((e=>{var n,t;return c.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});var Hn=(0,C.e)((function(e){var n,t;return Tn(We()(e,["autoComplete","minLength","maxLength"]),c.createElement("input",{autoComplete:e.autoComplete,className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});var Jn=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Kn:Gn;switch(e.fieldType){case Array:return Zn;case Boolean:return wn;case Date:return An;case Number:return zn;case Object:return Un;case String:return Hn}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Yn(e){var{element:n=c.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,c.createElement)(Jn,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var Xn=function e(n){class t extends n{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),n=super.getNativeFormProps();return Object.assign(Object.assign({},We()(n,["grid"])),{className:S()({error:e},n.className)})}}return t.Bootstrap5=e,t.displayName=`Bootstrap5${n.displayName}`,t}(ye.I);var et=function(e){var{children:n,className:t}=e,r=(0,h._T)(e,["children","className"]);const{error:a,schema:l}=(0,ge.c)();return a||n?c.createElement("div",Object.assign({className:S()("card border-danger mb-3 text-danger",t)},(0,O.z)(r)),c.createElement("div",{className:"card-body"},n,l.getErrorMessages(a).map(((e,n)=>c.createElement("div",{key:n,className:"disabled"},e))))):null};function nt(e){var{className:n,disabled:t,inputClassName:r,inputRef:a,readOnly:l,value:i,wrapClassName:o}=e,s=(0,h._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:u,state:d}=(0,ge.c)(),m=d,p=!(!m.grid&&!o),f=c.createElement("input",Object.assign({className:r,disabled:void 0===t?!(!u&&!m.disabled):t,readOnly:l,ref:a,type:"submit"},i?{value:i}:{}));return c.createElement("div",Object.assign({className:S()(n,{"is-invalid":u,row:m.grid})},(0,O.z)(s)),p&&c.createElement("span",{className:S()("col-form-label",Mn(m.grid,"label"))},"\xa0"),p&&c.createElement("div",{className:S()(o,Mn(m.grid,"input"))},f),!p&&f)}nt.defaultProps={inputClassName:"btn btn-primary"};var tt=nt;var rt=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Jn}getErrorsField(){return et}getSubmitField(){return tt}}return t.Quick=e,t}(Xn);var at=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(Xn),lt=at.Validated(rt.Quick(Xn));var it=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(lt);var ot=(0,C.e)((function(e){var{children:n,className:t,error:r,errorMessage:a}=e,l=(0,h._T)(e,["children","className","error","errorMessage"]);return r?c.createElement("div",Object.assign({className:S()("card","mb-3",t)},(0,O.z)(l)),c.createElement("div",{className:"card-body"},n||c.createElement("h4",{className:"card-title"},a))):null}),{initialValue:!1,kind:"leaf"});function st(e){var n,{value:t}=e,r=(0,h._T)(e,["value"]);const a=(0,$.U)(r.name,r,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:c.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var ut=(0,C.e)((function(e){var n;return Tn(We()(e,["autoComplete","minLength","maxLength"]),c.createElement("textarea",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"}),dt=t(80342),ct=t(21807),mt=t(61247),pt=t(35311),ft=t(82693),ht=t(82956),_t=t(54139),vt=t(74533);function gt(e){let{component:n,disabled:t,error:r,errorMessage:a,fullWidth:l,helperText:i,margin:o,readOnly:s,required:u,showInlineError:d,variant:m}=e;const p=d&&r?a:i,f={component:n,disabled:!!t,error:!!r,fullWidth:!!l,margin:o,readOnly:s,required:u,variant:m};for(var h=arguments.length,_=new Array(h>1?h-1:0),v=1;v<h;v++)_[v-1]=arguments[v];return(0,c.createElement)(_t.Z,f,..._,!!p&&c.createElement(vt.Z,null,p))}var bt=(0,C.e)((function(e){var n;const{appearance:t,disabled:r,inputRef:a,label:l,legend:i,name:o,onChange:s,readOnly:u,value:d}=e,m=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiFormControl,p="checkbox"===t||void 0===t?dt.Z:ft.Z;return gt(Object.assign(Object.assign(Object.assign(Object.assign({},void 0===(null==m?void 0:m.fullWidth)&&{fullWidth:!0}),void 0===(null==m?void 0:m.margin)&&{margin:"dense"}),e),{component:"fieldset"}),i&&c.createElement(pt.Z,{component:"legend",htmlFor:o},i),c.createElement(mt.Z,null,c.createElement(ct.Z,{control:c.createElement(p,Object.assign({checked:!!d,name:o,onChange:e=>!r&&!u&&s&&s(e.target.checked),ref:a,value:o},We()((0,O.z)(e),["helperText","fullWidth"]))),label:l})))}),{kind:"leaf"}),Et=t(38725);const yt=("object"==typeof t.g?t.g:window).Date,Ot=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var Ct=(0,C.e)((function(e){var n,t,r,a,{disabled:l,error:i,errorMessage:o,helperText:s,InputLabelProps:u,inputRef:d,label:m,labelProps:p,max:f,min:_,name:v,onChange:g,placeholder:b,readOnly:E,showInlineError:y,value:C,type:k="datetime-local"}=e,x=(0,h._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);const F=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiTextField;return c.createElement(Et.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(t=null==F?void 0:F.fullWidth)||void 0===t||t,helperText:!!i&&y&&o||s,label:m,InputLabelProps:Object.assign(Object.assign({shrink:!0},p),u),inputProps:Object.assign({max:Ot(f),min:Ot(_),readOnly:E},x.inputProps),margin:null!==(r=null==F?void 0:F.margin)&&void 0!==r?r:"dense",name:v,onChange:e=>l||((e,n)=>{const t=new yt(e);t.getFullYear()<1e4?n(t):isNaN(e)&&n(void 0)})(e.target.valueAsNumber,g),placeholder:b,ref:d,type:k,value:null!==(a=Ot(C,k))&&void 0!==a?a:""},(0,O.z)(x)))}),{kind:"leaf"}),kt=t(50755),xt=t(44920),Ft=t(90547);var Nt=(0,C.e)((function(e){var{disabled:n,fullWidth:t=!0,icon:r="+",margin:a="dense",name:l,readOnly:i,value:o,variant:s}=e,u=(0,h._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const d=(0,z.m)(null,l),m=(0,z.m)(d.slice(0,-1)),p=(0,$.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return c.createElement(_t.Z,{fullWidth:t,margin:a,variant:s},c.createElement(Ft.Z,Object.assign({},(0,O.z)(u),{disabled:!f,onClick:()=>{i||p.onChange(p.value.concat([U()(o)]))}}),r))}),{initialValue:!1,kind:"leaf"}),jt=t(53332);var Pt=(0,C.e)((function(e){var{disabled:n,icon:t="-",name:r,readOnly:a}=e,l=(0,h._T)(e,["disabled","icon","name","readOnly"]);const i=(0,z.m)(null,r),o=+i[i.length-1],s=(0,z.m)(i.slice(0,-1)),u=(0,$.U)(s,{},{absoluteName:!0})[0];return n||(n=a||u.minCount>=u.value.length),c.createElement(Ft.Z,Object.assign({},(0,O.z)(l),{disabled:n,onClick:()=>{const e=u.value.slice();e.splice(o,1),u.onChange(e)}}),t)}),{initialValue:!1,kind:"leaf"});var Mt=(0,C.e)((function(e){let{children:n=c.createElement($t,{label:null,name:""}),dense:t=!0,disableGutters:r,divider:a,removeIcon:l}=e;return c.createElement(jt.Z,{dense:t,disableGutters:r,divider:a},n,c.createElement(Pt,{name:"",icon:l}))}),{initialValue:!1});var Tt=(0,C.e)((function(e){var{addIcon:n,children:t=c.createElement(Mt,{name:"$"}),itemProps:r,label:a,value:l}=e,i=(0,h._T)(e,["addIcon","children","itemProps","label","value"]);return c.createElement(c.Fragment,null,c.createElement(kt.Z,Object.assign({dense:!0,subheader:a?c.createElement(xt.Z,{disableSticky:!0},a):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,n)=>c.Children.map(t,((e,t)=>{var a;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n)},r)):e}))))),c.createElement(Nt,{icon:n,name:"$"}))}));var wt=(0,C.e)((function(e){var n,t,r,{children:a,fields:l,itemProps:i,label:o}=e,s=(0,h._T)(e,["children","fields","itemProps","label"]);const u=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiFormControl;return gt(Object.assign(Object.assign({fullWidth:null===(t=null==u?void 0:u.fullWidth)||void 0===t||t,margin:null!==(r=null==u?void 0:u.margin)&&void 0!==r?r:"dense"},s),{component:void 0}),o&&c.createElement(pt.Z,{component:"legend"},o),a||l.map((e=>c.createElement($t,Object.assign({key:e,name:e},i)))))}));var It=(0,C.e)((function(e){var n,t,r,a,{decimal:l,disabled:i,error:o,errorMessage:s,helperText:u,inputProps:d,inputRef:m,label:p,max:f,min:_,name:v,onChange:g,readOnly:b,placeholder:E,showInlineError:y,step:C=(l?.01:1),value:k}=e,x=(0,h._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);const F=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiTextField;return c.createElement(Et.Z,Object.assign({disabled:i,error:!!o,fullWidth:null===(t=null==F?void 0:F.fullWidth)||void 0===t||t,helperText:!!o&&y&&s||u,inputProps:Object.assign(Object.assign(Object.assign({},null!==(r=null==F?void 0:F.inputProps)&&void 0!==r?r:{}),{min:_,max:f,readOnly:b,step:C}),d),label:p,margin:null!==(a=null==F?void 0:F.margin)&&void 0!==a?a:"dense",name:v,onChange:e=>{const n=(l?parseFloat:parseInt)(e.target.value);g(isNaN(n)?void 0:n)},placeholder:E,ref:m,type:"number",value:null!=k?k:""},(0,O.z)(x)))}),{kind:"leaf"}),Dt=t(76709),At=t(70043);const Rt="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,St=e=>Rt(encodeURIComponent(e)).replace(/=+$/,"");var Lt=(0,C.e)((function(e){var n,t,r,{options:a,disabled:l,id:i,inputRef:o,label:s,name:u,onChange:d,readOnly:m,row:p,value:f}=e,_=(0,h._T)(e,["options","disabled","id","inputRef","label","name","onChange","readOnly","row","value"]);const v=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiFormControl;return gt(Object.assign(Object.assign({fullWidth:null===(t=null==v?void 0:v.fullWidth)||void 0===t||t,margin:null!==(r=null==v?void 0:v.margin)&&void 0!==r?r:"dense"},_),{component:"fieldset",disabled:l}),s&&c.createElement(pt.Z,{component:"legend",htmlFor:u},s),c.createElement(At.Z,{id:i,name:u,onChange:e=>l||m||d(e.target.value),ref:o,row:p,value:null!=f?f:""},null==a?void 0:a.map((e=>{var n,t;return c.createElement(ct.Z,{control:c.createElement(Dt.Z,Object.assign({id:`${i}-${St(e.value)}`},We()((0,O.z)(_),["checkboxes","helperText"]))),htmlFor:`${i}-${St(e.value)}`,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(t=e.label)&&void 0!==t?t:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),Bt=t(5633);const Wt="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Zt=e=>Wt(encodeURIComponent(e)).replace(/=+$/,"");var Ut=(0,C.e)((function(e){var n,t,r,a,l,i;const o=(0,ht.Z)(),s=null===(n=o.props)||void 0===n?void 0:n.MuiFormControl,u=null!==(t=e.value)&&void 0!==t?t:"";if(e.checkboxes){const{options:n,disabled:t,fieldType:a,id:l,inputRef:i,label:o,legend:d,name:m,onChange:p,readOnly:f}=e,h="checkbox"===(null!==(r=e.appearance)&&void 0!==r?r:"checkbox")?dt.Z:ft.Z,_=We()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),v=a!==Array?c.createElement(At.Z,{id:l,name:m,onChange:e=>t||f||p(e.target.value),ref:i,value:null!=u?u:""},null==n?void 0:n.map((e=>{var n,r,a;return c.createElement(ct.Z,{control:c.createElement(Dt.Z,Object.assign({id:`${l}-${null!==(n=e.key)&&void 0!==n?n:Zt(e.value)}`},_)),disabled:e.disabled||t,key:null!==(r=e.key)&&void 0!==r?r:e.value,label:null!==(a=e.label)&&void 0!==a?a:e.value,value:e.value})}))):c.createElement(mt.Z,{id:l},null==n?void 0:n.map((e=>{var n,r,a;return c.createElement(ct.Z,{control:c.createElement(h,Object.assign({checked:u.includes(e.value),id:`${l}-${null!==(n=e.key)&&void 0!==n?n:Zt(e.value)}`,name:m,onChange:()=>t||f||p(un()([e.value],u)),ref:i,value:m},_)),disabled:e.disabled||t,key:null!==(r=e.key)&&void 0!==r?r:e.value,label:null!==(a=e.label)&&void 0!==a?a:e.value})})));return gt(Object.assign(Object.assign(Object.assign({},s),e),{component:"fieldset"}),(d||o)&&c.createElement(pt.Z,{component:"legend"},d||o),v)}const d=null===(a=o.props)||void 0===a?void 0:a.MuiTextField,{options:m,disabled:p,error:f,errorMessage:h,fieldType:_,fullWidth:v=null===(l=null==d?void 0:d.fullWidth)||void 0===l||l,helperText:g,id:b,InputLabelProps:E,inputProps:y,label:C,labelProps:k,margin:x=(null!==(i=null==d?void 0:d.margin)&&void 0!==i?i:"dense"),name:F,native:N,onChange:j,placeholder:P,readOnly:M,required:T,showInlineError:w,variant:I,textFieldProps:D}=e,A=N?"option":Bt.Z,R=!!P,S=""!==u&&void 0!==u,L=We()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return c.createElement(Et.Z,Object.assign({disabled:p,error:!!f,fullWidth:v,helperText:!!f&&w&&h||g,InputLabelProps:Object.assign(Object.assign({shrink:!!C&&(R||S)},k),E),label:C,margin:x,onChange:e=>p||M||j(""!==e.target.value?e.target.value:void 0),required:T,select:!0,SelectProps:Object.assign({displayEmpty:R,inputProps:Object.assign({name:F,id:b},y),multiple:_===Array||void 0,native:N},L),value:N&&!u?"":u,variant:I},D),(R||!T||!S)&&c.createElement(A,{value:"",disabled:!!T},P||C),null==m?void 0:m.map((e=>{var n,t;return c.createElement(A,{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)})))}),{kind:"leaf"});var zt=(0,C.e)((function(e){var n,t,r,a,{disabled:l,error:i,errorMessage:o,helperText:s,inputRef:u,label:d,name:m,onChange:p,placeholder:f,readOnly:_,showInlineError:v,type:g="text",value:b=""}=e,E=(0,h._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const y=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiTextField;return c.createElement(Et.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(t=null==y?void 0:y.fullWidth)||void 0===t||t,helperText:!!i&&v&&o||s,inputProps:Object.assign({readOnly:_},null!==(r=null==y?void 0:y.inputProps)&&void 0!==r?r:{}),label:d,margin:null!==(a=null==y?void 0:y.margin)&&void 0!==a?a:"dense",name:m,onChange:e=>l||p(e.target.value),placeholder:f,ref:u,type:g,value:b},(0,O.z)(E)))}),{kind:"leaf"});var $t=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Lt:Ut;switch(e.fieldType){case Array:return Tt;case Boolean:return bt;case Date:return Ct;case Number:return It;case Object:return wt;case String:return zt}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Vt(e){var{element:n=c.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,c.createElement)($t,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var Kt=function e(n){class t extends n{}return t.Material=e,t.displayName=`Material${n.displayName}`,t}(ye.I);var qt=function(e){var n,t,r,{children:a,fullWidth:l,margin:i,variant:o}=e,s=(0,h._T)(e,["children","fullWidth","margin","variant"]);const u=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiFormControl,{error:d,schema:m}=(0,ge.c)();return d||a?c.createElement(_t.Z,{error:!!d,fullWidth:null===(t=null!=l?l:null==u?void 0:u.fullWidth)||void 0===t||t,margin:null!==(r=null!=i?i:null==u?void 0:u.margin)&&void 0!==r?r:"dense",variant:null!=o?o:null==u?void 0:u.variant},!!a&&c.createElement(vt.Z,Object.assign({},(0,O.z)(s)),a),m.getErrorMessages(d).map(((e,n)=>c.createElement(vt.Z,Object.assign({key:n},(0,O.z)(s)),e)))):null},Qt=t(9334);var Gt=function(e){var n,t,{children:r,disabled:a,inputRef:l,label:i="Submit",value:o}=e,s=(0,h._T)(e,["children","disabled","inputRef","label","value"]);const{error:u,state:d}=(0,ge.c)(),m=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiButton;return c.createElement(Qt.Z,Object.assign({disabled:void 0===a?!(!u&&!d.disabled):a,ref:l,type:"submit",value:o,variant:null!==(t=null==m?void 0:m.variant)&&void 0!==t?t:"contained"},(0,O.z)(s)),r||i)};var Ht=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return $t}getErrorsField(){return qt}getSubmitField(){return Gt}}return t.Quick=e,t}(Kt);var Jt=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(Kt),Yt=Jt.Validated(Ht.Quick(Kt));var Xt=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Yt);var er=(0,C.e)((function(e){var n,t,r,{children:a,error:l,errorMessage:i,fullWidth:o,margin:s,variant:u}=e,d=(0,h._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);const m=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiFormControl;return l?c.createElement(_t.Z,{error:!!l,fullWidth:null===(t=null!=o?o:null==m?void 0:m.fullWidth)||void 0===t||t,margin:null!==(r=null!=s?s:null==m?void 0:m.margin)&&void 0!==r?r:"dense",variant:null!=u?u:null==m?void 0:m.variant},c.createElement(vt.Z,Object.assign({},(0,O.z)(d)),a||i)):null}),{initialValue:!1,kind:"leaf"});function nr(e){var n,{value:t}=e,r=(0,h._T)(e,["value"]);const a=(0,$.U)(r.name,r,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:c.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var tr=(0,C.e)((e=>{var n,t,r,{disabled:a,error:l,errorMessage:i,helperText:o,inputRef:s,label:u,name:d,onChange:m,placeholder:p,readOnly:f,showInlineError:_,type:v="text",value:g}=e,b=(0,h._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const E=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiTextField;return c.createElement(Et.Z,Object.assign({disabled:a,error:!!l,fullWidth:null===(t=null==E?void 0:E.fullWidth)||void 0===t||t,helperText:!!l&&_&&i||o,inputProps:Object.assign(Object.assign({},null==E?void 0:E.inputProps),{readOnly:f}),label:u,margin:null!==(r=null==E?void 0:E.margin)&&void 0!==r?r:"dense",multiline:!0,name:d,onChange:e=>a||m(e.target.value),placeholder:p,ref:s,type:v,value:null!=g?g:""},(0,O.z)(b)))}),{kind:"leaf"}),rr=t(56213),ar=t(64251),lr=t(64281),ir=t(23626),or=t(22013),sr=t(61230),ur=t(56274);function dr(e){let{component:n,disabled:t,error:r,errorMessage:a,fullWidth:l,helperText:i,margin:o,readOnly:s,required:u,showInlineError:d,variant:m}=e;const p=d&&r?a:i,f={component:n,disabled:!!t,error:!!r,fullWidth:!!l,margin:o,readOnly:s,required:u,variant:m};for(var h=arguments.length,_=new Array(h>1?h-1:0),v=1;v<h;v++)_[v-1]=arguments[v];return(0,c.createElement)(sr.Z,f,..._,!!p&&c.createElement(ur.Z,null,p))}var cr=(0,C.e)((function(e){const{appearance:n,disabled:t,inputRef:r,label:a,legend:l,name:i,onChange:o,readOnly:s,value:u}=e,d="checkbox"===n||void 0===n?rr.Z:or.Z;return dr(Object.assign({fullWidth:!0},e),l&&c.createElement(ir.Z,{component:"legend",htmlFor:i},l),c.createElement(lr.Z,null,c.createElement(ar.Z,{control:c.createElement(d,Object.assign({checked:!!u,name:i,onChange:e=>!t&&!s&&o&&o(e.target.checked),ref:r,value:i},We()((0,O.z)(e),["helperText","fullWidth"]))),label:a})))}),{kind:"leaf"}),mr=t(60929);const pr=("object"==typeof t.g?t.g:window).Date,fr=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var hr=(0,C.e)((function(e){var n,{disabled:t,error:r,errorMessage:a,helperText:l,InputLabelProps:i,inputRef:o,label:s,labelProps:u,max:d,min:m,name:p,onChange:f,placeholder:_,readOnly:v,showInlineError:g,value:b,type:E="datetime-local"}=e,y=(0,h._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);return c.createElement(mr.Z,Object.assign({disabled:t,error:!!r,fullWidth:!0,helperText:!!r&&g&&a||l,label:s,InputLabelProps:Object.assign(Object.assign({shrink:!0},u),i),inputProps:Object.assign({max:fr(d),min:fr(m),readOnly:v},y.inputProps),margin:"dense",name:p,onChange:e=>t||((e,n)=>{const t=new pr(e);t.getFullYear()<1e4?n(t):isNaN(e)&&n(void 0)})(e.target.valueAsNumber,f),placeholder:_,ref:o,type:E,value:null!==(n=fr(b,E))&&void 0!==n?n:""},(0,O.z)(y)))}),{kind:"leaf"}),_r=t(10872),vr=t(5420),gr=t(68666);var br=(0,C.e)((function(e){var{disabled:n,fullWidth:t=!0,icon:r="+",margin:a="dense",name:l,readOnly:i,value:o,variant:s}=e,u=(0,h._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const d=(0,z.m)(null,l),m=(0,z.m)(d.slice(0,-1)),p=(0,$.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return c.createElement(sr.Z,{fullWidth:t,margin:a,variant:s},c.createElement(gr.Z,Object.assign({size:"large",variant:"outlined"},(0,O.z)(u),{disabled:!f,onClick:()=>{i||p.onChange(p.value.concat([U()(o)]))}}),r))}),{initialValue:!1,kind:"leaf"}),Er=t(88483),yr=t(92133);var Or=(0,C.e)((function(e){var{disabled:n,icon:t="-",name:r,readOnly:a}=e,l=(0,h._T)(e,["disabled","icon","name","readOnly"]);const i=(0,z.m)(null,r),o=+i[i.length-1],s=(0,z.m)(i.slice(0,-1)),u=(0,$.U)(s,{},{absoluteName:!0})[0];return n||(n=a||u.minCount>=u.value.length),c.createElement(yr.Z,Object.assign({},(0,O.z)(l),{disabled:n,onClick:()=>{const e=u.value.slice();e.splice(o,1),u.onChange(e)},size:"large"}),t)}),{initialValue:!1,kind:"leaf"});var Cr=(0,C.e)((function(e){let{children:n=c.createElement(Sr,{label:null,name:""}),dense:t=!0,disableGutters:r,divider:a,removeIcon:l}=e;return c.createElement(Er.ZP,{dense:t,disableGutters:r,divider:a},n,c.createElement(Or,{name:"",icon:l}))}),{initialValue:!1});var kr=(0,C.e)((function(e){var{addIcon:n,children:t=c.createElement(Cr,{name:"$"}),itemProps:r,label:a,value:l}=e,i=(0,h._T)(e,["addIcon","children","itemProps","label","value"]);return c.createElement(c.Fragment,null,c.createElement(_r.Z,Object.assign({dense:!0,subheader:a?c.createElement(vr.Z,{disableSticky:!0},a):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,n)=>c.Children.map(t,((e,t)=>{var a;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n)},r)):e}))))),c.createElement(br,{icon:n,name:"$"}))}));var xr=(0,C.e)((function(e){var{children:n,fields:t,fullWidth:r=!0,itemProps:a,label:l,margin:i="dense"}=e,o=(0,h._T)(e,["children","fields","fullWidth","itemProps","label","margin"]);return dr(Object.assign(Object.assign({fullWidth:r,margin:i},o),{component:void 0}),l&&c.createElement(ir.Z,{component:"legend"},l),n||t.map((e=>c.createElement(Sr,Object.assign({key:e,name:e},a)))))}));var Fr=(0,C.e)((function(e){var{decimal:n,disabled:t,error:r,errorMessage:a,helperText:l,inputProps:i,inputRef:o,label:s,max:u,min:d,name:m,onChange:p,readOnly:f,placeholder:_,showInlineError:v,step:g=(n?.01:1),value:b}=e,E=(0,h._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);return c.createElement(mr.Z,Object.assign({disabled:t,error:!!r,fullWidth:!0,helperText:!!r&&v&&a||l,inputProps:Object.assign({min:d,max:u,readOnly:f,step:g},i),label:s,margin:"dense",name:m,onChange:e=>{const t=(n?parseFloat:parseInt)(e.target.value);p(isNaN(t)?void 0:t)},placeholder:_,ref:o,type:"number",value:null!=b?b:""},(0,O.z)(E)))}),{kind:"leaf"}),Nr=t(8993),jr=t(20750);const Pr="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Mr=e=>Pr(encodeURIComponent(e)).replace(/=+$/,"");var Tr=(0,C.e)((function(e){var{options:n,disabled:t,fullWidth:r=!0,id:a,inputRef:l,label:i,margin:o="dense",name:s,onChange:u,readOnly:d,row:m,value:p}=e,f=(0,h._T)(e,["options","disabled","fullWidth","id","inputRef","label","margin","name","onChange","readOnly","row","value"]);return dr(Object.assign(Object.assign({},f),{component:"fieldset",disabled:t,fullWidth:r,margin:o}),i&&c.createElement(ir.Z,{component:"legend",htmlFor:s},i),c.createElement(jr.Z,{id:a,name:s,onChange:e=>t||d||u(e.target.value),ref:l,row:m,value:null!=p?p:""},null==n?void 0:n.map((e=>{var n,t;return c.createElement(ar.Z,{control:c.createElement(Nr.Z,Object.assign({id:`${a}-${Mr(e.value)}`},We()((0,O.z)(f),["checkboxes","helperText"]))),htmlFor:`${a}-${Mr(e.value)}`,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(t=e.label)&&void 0!==t?t:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),wr=t(13455);const Ir="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Dr=e=>Ir(encodeURIComponent(e)).replace(/=+$/,"");var Ar=(0,C.e)((function(e){var n,t;const r=null!==(n=e.value)&&void 0!==n?n:"";if(e.checkboxes){const{options:n,disabled:a,fieldType:l,id:i,inputRef:o,label:s,legend:u,name:d,onChange:m,readOnly:p}=e,f="checkbox"===(null!==(t=e.appearance)&&void 0!==t?t:"checkbox")?rr.Z:or.Z,h=We()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),_=l!==Array?c.createElement(jr.Z,{id:i,name:d,onChange:e=>a||p||m(e.target.value),ref:o,value:null!=r?r:""},n.map((e=>{var n,t,r;return c.createElement(ar.Z,{control:c.createElement(Nr.Z,Object.assign({id:`${i}-${null!==(n=e.key)&&void 0!==n?n:Dr(e.value)}`},h)),disabled:e.disabled||a,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(r=e.label)&&void 0!==r?r:e.value,value:e.value})}))):c.createElement(lr.Z,{id:i},n.map((e=>{var n,t,l;return c.createElement(ar.Z,{control:c.createElement(f,Object.assign({checked:r.includes(e.value),id:`${i}-${null!==(n=e.key)&&void 0!==n?n:Dr(e.value)}`,name:d,onChange:()=>a||p||m(un()([e.value],r)),ref:o,value:d},h)),disabled:e.disabled||a,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(l=e.label)&&void 0!==l?l:e.value})})));return dr(Object.assign(Object.assign({},e),{component:"fieldset"}),(u||s)&&c.createElement(ir.Z,{component:"legend"},u||s),_)}const{options:a,disabled:l,error:i,errorMessage:o,fieldType:s,fullWidth:u=!0,helperText:d,id:m,InputLabelProps:p,inputProps:f,label:h,labelProps:_,margin:v="dense",name:g,native:b,onChange:E,placeholder:y,readOnly:C,required:k,showInlineError:x,variant:F,textFieldProps:N}=e,j=b?"option":wr.Z,P=!!y,M=""!==r&&void 0!==r,T=We()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return c.createElement(mr.Z,Object.assign({disabled:l,error:!!i,fullWidth:u,helperText:!!i&&x&&o||d,InputLabelProps:Object.assign(Object.assign({shrink:!!h&&(P||M)},_),p),label:h,margin:v,onChange:e=>l||C||E(""!==e.target.value?e.target.value:void 0),required:k,select:!0,SelectProps:Object.assign({displayEmpty:P,inputProps:Object.assign({name:g,id:m},f),multiple:s===Array||void 0,native:b},T),value:b&&!r?"":r,variant:F},N),(P||!k||!M)&&c.createElement(j,{value:"",disabled:!!k},y||h),a.map((e=>{var n,t;return c.createElement(j,{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)})))}),{kind:"leaf"});var Rr=(0,C.e)((function(e){var{disabled:n,error:t,errorMessage:r,helperText:a,inputRef:l,label:i,name:o,onChange:s,placeholder:u,readOnly:d,showInlineError:m,type:p="text",value:f=""}=e,_=(0,h._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return c.createElement(mr.Z,Object.assign({disabled:n,error:!!t,fullWidth:!0,helperText:!!t&&m&&r||a,inputProps:{readOnly:d},label:i,margin:"dense",name:o,onChange:e=>n||s(e.target.value),placeholder:u,ref:l,type:p,value:f},(0,O.z)(_)))}),{kind:"leaf"});var Sr=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Tr:Ar;switch(e.fieldType){case Array:return kr;case Boolean:return cr;case Date:return hr;case Number:return Fr;case Object:return xr;case String:return Rr}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Lr(e){var{element:n=c.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,c.createElement)(Sr,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var Br=function e(n){class t extends n{}return t.Material=e,t.displayName=`Material${n.displayName}`,t}(ye.I);var Wr=function(e){var{children:n,fullWidth:t=!0,margin:r,variant:a}=e,l=(0,h._T)(e,["children","fullWidth","margin","variant"]);const{error:i,schema:o}=(0,ge.c)();return i||n?c.createElement(sr.Z,{error:!!i,fullWidth:!!t,margin:r,variant:a},!!n&&c.createElement(ur.Z,Object.assign({},(0,O.z)(l)),n),o.getErrorMessages(i).map(((e,n)=>c.createElement(ur.Z,Object.assign({key:n},(0,O.z)(l)),e)))):null};var Zr=function(e){var{children:n,disabled:t,inputRef:r,label:a="Submit",value:l}=e,i=(0,h._T)(e,["children","disabled","inputRef","label","value"]);const{error:o,state:s}=(0,ge.c)();return c.createElement(gr.Z,Object.assign({disabled:void 0===t?!(!o&&!s.disabled):t,ref:r,type:"submit",value:l,variant:"contained"},(0,O.z)(i)),n||a)};var Ur=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Sr}getErrorsField(){return Wr}getSubmitField(){return Zr}}return t.Quick=e,t}(Br);var zr=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(Br),$r=zr.Validated(Ur.Quick(Br));var Vr=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}($r);var Kr=(0,C.e)((function(e){var{children:n,error:t,errorMessage:r,fullWidth:a,margin:l,variant:i}=e,o=(0,h._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);return t?c.createElement(sr.Z,{error:!!t,fullWidth:!!a,margin:"dense"===l?l:void 0,variant:i},c.createElement(ur.Z,Object.assign({},(0,O.z)(o)),n||r)):null}),{initialValue:!1,kind:"leaf"});function qr(e){var n,{value:t}=e,r=(0,h._T)(e,["value"]);const a=(0,$.U)(r.name,r,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:c.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var Qr=(0,C.e)((e=>{var{disabled:n,error:t,errorMessage:r,helperText:a,inputRef:l,label:i,name:o,onChange:s,placeholder:u,readOnly:d,showInlineError:m,type:p="text",value:f}=e,_=(0,h._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return c.createElement(mr.Z,Object.assign({disabled:n,error:!!t,fullWidth:!0,helperText:!!t&&m&&r||a,inputProps:{readOnly:d},label:i,margin:"dense",multiline:!0,name:o,onChange:e=>n||s(e.target.value),placeholder:u,ref:l,type:p,value:null!=f?f:""},(0,O.z)(_)))}),{kind:"leaf"}),Gr=t(68599);function Hr(e){var{element:n=c.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,c.createElement)(Gr.Z,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var Jr=t(2310),Yr=t(99574),Xr=t(12138),ea=t(14449);var na=(0,C.e)((function(e){var{children:n,className:t,error:r,errorMessage:a}=e,l=(0,h._T)(e,["children","className","error","errorMessage"]);return r?c.createElement("div",Object.assign({className:S()("ui",t,"error message")},(0,O.z)(l)),n||c.createElement("div",{className:"header"},a)):null}),{initialValue:!1,kind:"leaf"}),ta=t(43351);function ra(e){var n,{value:t}=e,r=(0,h._T)(e,["value"]);const a=(0,$.U)(r.name,r,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:c.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var aa=t(77900),la=t(960),ia=t(64694),oa=t(18747);var sa=(0,C.e)((function(e){var{className:n,disabled:t,error:r,errorMessage:a,id:l,inputRef:i,label:o,name:s,onChange:u,placeholder:d,readOnly:m,required:p,showInlineError:f,value:_}=e,v=(0,h._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);return c.createElement("div",Object.assign({className:S()(n,{disabled:t,error:r,required:p},"field")},(0,O.z)(v)),o&&c.createElement("label",{htmlFor:l},o),c.createElement("textarea",{disabled:t,id:l,name:s,onChange:e=>u(e.target.value),placeholder:d,readOnly:m,ref:i,value:null!=_?_:""}),!(!r||!f)&&c.createElement("div",{className:"ui red basic pointing label"},a))}),{kind:"leaf"}),ua=t(80661),da=t(59492),ca=t(52559),ma=t(44591),pa=t(47822),fa=t(82986),ha=t(99086),_a=t(3684),va=t(79904);var ga=(0,C.e)((function(e){var{disabled:n,id:t,inputRef:r,label:a,name:l,onChange:i,readOnly:o,value:s}=e,u=(0,h._T)(e,["disabled","id","inputRef","label","name","onChange","readOnly","value"]);return c.createElement("div",Object.assign({},(0,O.z)(u)),c.createElement("input",{checked:s||!1,disabled:n,id:t,name:l,onChange:()=>!n&&!o&&i(!s),ref:r,type:"checkbox"}),a&&c.createElement("label",{htmlFor:t},a))}),{kind:"leaf"});const ba=("object"==typeof t.g?t.g:window).Date,Ea=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var ya=(0,C.e)((function(e){var n,{disabled:t,id:r,inputRef:a,label:l,max:i,min:o,name:s,onChange:u,placeholder:d,readOnly:m,value:p,type:f="datetime-local"}=e,_=(0,h._T)(e,["disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","value","type"]);return c.createElement("div",Object.assign({},(0,O.z)(_)),l&&c.createElement("label",{htmlFor:r},l),c.createElement("input",{disabled:t,id:r,max:Ea(i),min:Ea(o),name:s,onChange:e=>{const n=new ba(e.target.valueAsNumber);n.getFullYear()<1e4?u(n):isNaN(e.target.valueAsNumber)&&u(void 0)},placeholder:d,readOnly:m,ref:a,type:f,value:null!==(n=Ea(p,f))&&void 0!==n?n:""}))}),{kind:"leaf"});var Oa=(0,C.e)((function(e){var{disabled:n,name:t,readOnly:r,value:a}=e,l=(0,h._T)(e,["disabled","name","readOnly","value"]);const i=(0,z.m)(null,t),o=(0,z.m)(i.slice(0,-1)),s=(0,$.U)(o,{},{absoluteName:!0})[0],u=!(n||s.maxCount<=s.value.length);function d(e){!u||r||"key"in e&&"Enter"!==e.key||s.onChange(s.value.concat([U()(a)]))}return c.createElement("span",Object.assign({},(0,O.z)(l),{onClick:d,onKeyDown:d,role:"button",tabIndex:0}),"+")}),{initialValue:!1,kind:"leaf"});var Ca=(0,C.e)((function(e){var{disabled:n,name:t,readOnly:r}=e,a=(0,h._T)(e,["disabled","name","readOnly"]);const l=(0,z.m)(null,t),i=+l[l.length-1],o=(0,z.m)(l.slice(0,-1)),s=(0,$.U)(o,{},{absoluteName:!0})[0];function u(e){if(!(n||"key"in e&&"Enter"!==e.key)){const e=s.value.slice();e.splice(i,1),s.onChange(e)}}return n||(n=r||s.minCount>=s.value.length),c.createElement("span",Object.assign({},(0,O.z)(a),{onClick:u,onKeyDown:u,role:"button",tabIndex:0}),"-")}),{initialValue:!1,kind:"leaf"});var ka=(0,C.e)((function(e){let{children:n=c.createElement(Ra,{label:null,name:""})}=e;return c.createElement("div",null,c.createElement(Ca,{name:""}),n)}),{initialValue:!1});var xa=(0,C.e)((function(e){var{children:n=c.createElement(ka,{name:"$"}),itemProps:t,label:r,value:a}=e,l=(0,h._T)(e,["children","itemProps","label","value"]);return c.createElement("ul",Object.assign({},(0,O.z)(l)),r&&c.createElement("label",null,r,c.createElement(Oa,{name:"$"})),null==a?void 0:a.map(((e,r)=>c.Children.map(n,((e,n)=>{var a;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign({key:`${r}-${n}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+r)},t)):e})))))}));var Fa=(0,C.e)((function(e){var{children:n,fields:t,itemProps:r,label:a}=e,l=(0,h._T)(e,["children","fields","itemProps","label"]);return c.createElement("div",Object.assign({},(0,O.z)(l)),a&&c.createElement("label",null,a),n||t.map((e=>c.createElement(Ra,Object.assign({key:e,name:e},r)))))}));var Na=(0,C.e)((function(e){var{decimal:n,disabled:t,id:r,inputRef:a,label:l,max:i,min:o,name:s,onChange:u,placeholder:d,readOnly:m,step:p,value:f}=e,_=(0,h._T)(e,["decimal","disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","step","value"]);return c.createElement("div",Object.assign({},(0,O.z)(_)),l&&c.createElement("label",{htmlFor:r},l),c.createElement("input",{disabled:t,id:r,max:i,min:o,name:s,onChange:e=>{const t=(n?parseFloat:parseInt)(e.target.value);u(isNaN(t)?void 0:t)},placeholder:d,readOnly:m,ref:a,step:p||(n?.01:1),type:"number",value:null!=f?f:""}))}),{kind:"leaf"});const ja="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Pa=e=>ja(encodeURIComponent(e)).replace(/=+$/,"");var Ma=(0,C.e)((function(e){var{options:n,disabled:t,id:r,label:a,name:l,onChange:i,readOnly:o,value:s}=e,u=(0,h._T)(e,["options","disabled","id","label","name","onChange","readOnly","value"]);return c.createElement("div",Object.assign({},We()((0,O.z)(u),["checkboxes"])),a&&c.createElement("label",null,a),null==n?void 0:n.map((e=>{var n,a,u,d;return c.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value},c.createElement("input",{checked:e.value===s,disabled:e.disabled||t,id:`${r}-${null!==(a=e.key)&&void 0!==a?a:Pa(e.value)}`,name:l,onChange:()=>{o||i(e.value)},type:"radio"}),c.createElement("label",{htmlFor:`${r}-${null!==(u=e.key)&&void 0!==u?u:Pa(e.value)}`},null!==(d=e.label)&&void 0!==d?d:e.value))})))}),{kind:"leaf"});const Ta="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,wa=e=>Ta(encodeURIComponent(e)).replace(/=+$/,"");var Ia=(0,C.e)((function(e){var{checkboxes:n,disabled:t,fieldType:r,id:a,inputRef:l,label:i,name:o,onChange:s,placeholder:u,readOnly:d,required:m,value:p,options:f}=e,_=(0,h._T)(e,["checkboxes","disabled","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","value","options"]);const v=r===Array;return c.createElement("div",Object.assign({},(0,O.z)(_)),i&&c.createElement("label",{htmlFor:a},i),n?null==f?void 0:f.map((e=>{var n,l,i,u,m;return c.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value},c.createElement("input",{checked:r===Array?null==p?void 0:p.includes(e.value):p===e.value,disabled:null!==(l=e.disabled)&&void 0!==l?l:t,id:`${a}-${null!==(i=e.key)&&void 0!==i?i:wa(e.value)}`,name:o,onChange:()=>{d||s(r===Array?un()([e.value],p):e.value)},type:"checkbox"}),c.createElement("label",{htmlFor:`${a}-${null!==(u=e.key)&&void 0!==u?u:wa(e.value)}`},null!==(m=e.label)&&void 0!==m?m:e.value))})):c.createElement("select",{disabled:t,id:a,multiple:v,name:o,onChange:e=>{if(!d){const n=e.target.value;if(v){const t=-1===e.target.selectedIndex;s(t?[]:un()([n],p))}else s(""!==n?n:void 0)}},ref:l,value:null!=p?p:""},(!!u||!m||void 0===p)&&!v&&c.createElement("option",{value:"",disabled:m,hidden:m},u||i),null==f?void 0:f.map((e=>{var n,t;return c.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});function Da(e){var{autoComplete:n,disabled:t,id:r,inputRef:a,label:l,name:i,onChange:o,placeholder:s,readOnly:u,type:d,value:m}=e,p=(0,h._T)(e,["autoComplete","disabled","id","inputRef","label","name","onChange","placeholder","readOnly","type","value"]);return c.createElement("div",Object.assign({},(0,O.z)(p)),l&&c.createElement("label",{htmlFor:r},l),c.createElement("input",{autoComplete:n,disabled:t,id:r,name:i,onChange:e=>o(e.target.value),placeholder:s,readOnly:u,ref:a,type:d,value:null!=m?m:""}))}Da.defaultProps={type:"text"};var Aa=(0,C.e)(Da,{kind:"leaf"});var Ra=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Ma:Ia;switch(e.fieldType){case Array:return xa;case Boolean:return ga;case Date:return ya;case Number:return Na;case Object:return Fa;case String:return Aa}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Sa(e){var{element:n=c.Fragment,fields:t,omitFields:r=[]}=e,a=(0,h._T)(e,["element","fields","omitFields"]);const{schema:l}=(0,ge.c)();return(0,c.createElement)(n,a,(null!=t?t:l.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,c.createElement)(Ra,{key:e,name:e}))))}var La=function e(n){class t extends n{}return t.Unstyled=e,t.displayName=`Unstyled${n.displayName}`,t}(ye.I);function Ba(e){const{error:n,schema:t}=(0,ge.c)();return n||e.children?c.createElement("div",Object.assign({},(0,O.z)(e)),e.children,c.createElement("ul",null,t.getErrorMessages(n).map(((e,n)=>c.createElement("li",{key:n},e))))):null}function Wa(e){var{disabled:n,inputRef:t,readOnly:r,value:a}=e,l=(0,h._T)(e,["disabled","inputRef","readOnly","value"]);const{error:i,state:o}=(0,ge.c)();return c.createElement("input",Object.assign({disabled:void 0===n?!(!i&&!o.disabled):n,readOnly:r,ref:t,type:"submit"},a?{value:a}:{},(0,O.z)(l)))}var Za=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Ra}getErrorsField(){return Ba}getSubmitField(){return Wa}}return t.Quick=e,t}(La);var Ua=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(La),za=Ua.Validated(Za.Quick(La));var $a=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(za);var Va=(0,C.e)((function(e){var{children:n,error:t,errorMessage:r}=e,a=(0,h._T)(e,["children","error","errorMessage"]);return t?c.createElement("div",Object.assign({},(0,O.z)(a)),n||r):null}),{initialValue:!1,kind:"leaf"});function Ka(e){var n,{value:t}=e,r=(0,h._T)(e,["value"]);const a=(0,$.U)(r.name,r,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:c.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var qa=t(96614);const Qa=ll("AutoFields"),Ga=ll("AutoField"),Ha=ll("AutoForm"),Ja=(ll("BaseForm"),ll("BoolField"),ll("DateField"),ll("ErrorField")),Ya=ll("ErrorsField"),Xa=(ll("HiddenField"),ll("ListAddField"),ll("ListDelField"),ll("ListField"),ll("ListItemField"),ll("LongTextField")),el=(ll("NestField"),ll("NumField"),ll("QuickForm"),ll("RadioField"),ll("SelectField")),nl=ll("SubmitField"),tl=ll("TextField"),rl=(ll("ValidatedForm"),ll("ValidatedQuickForm"),{antd:r,bootstrap4:a,bootstrap5:l,material:i,mui:o,semantic:s,unstyled:u}),al=(0,c.createContext)("unstyled");function ll(e){return function(n){const t=(0,c.useContext)(al),r=rl[t][e];return c.createElement(r,(0,d.Z)({key:t},n))}}},37309:function(e,n,t){"use strict";t.d(n,{mB:function(){return d},nN:function(){return s},rh:function(){return u}});var r=t(14648),a=t.n(r),l=t(17728),i=t.n(l);const o=["preset","props","theme"],s=e=>i().compressToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");function u(e){try{const n=a()(e,o),t=JSON.stringify(n),r=s(t),l="?"+encodeURIComponent(r);window.location.hash=l}catch(n){}}function d(){try{const n=document.location.hash.replace(/^#\?/,""),t=decodeURIComponent(n),r=(e=t,i().decompressFromBase64(e.replace(/-/g,"+").replace(/_/g,"/"))),l=JSON.parse(r??"");return a()(l,o)}catch(n){return{}}var e}},32054:function(e,n,t){"use strict";t.d(n,{J:function(){return u}});var r=t(86236),a=t.n(r),l=t(73633);const i={title:"Guest",type:"object",properties:{firstName:{type:"string"},lastName:{type:"string"},workExperience:{description:"Work experience in years",type:"integer",minimum:0,maximum:100}},required:["firstName","lastName"]},o=new(a())({allErrors:!0,useDefaults:!0,keywords:["uniforms"]});const s=function(e){const n=o.compile(e);return e=>{var t;return n(e),null!=(t=n.errors)&&t.length?{details:n.errors}:null}}(i),u=new l.j({schema:i,validator:s})},21359:function(e,n,t){"use strict";t.r(n),t.d(n,{assets:function(){return v},contentTitle:function(){return h},default:function(){return E},frontMatter:function(){return f},metadata:function(){return _},toc:function(){return g}});var r=t(25773),a=t(27378),l=t(35318),i=t(57292),o=t(80912),s=t(32054);function u(){return a.createElement(o.NE,{schema:s.J,onSubmit:console.log},a.createElement("h4",null,"IT meeting guest questionnaire"),a.createElement(o.Pt,{name:"lastName"}),a.createElement(o.Pt,{name:"firstName"}),a.createElement("span",null,"Do you want to share your work experience with us?"),a.createElement(o.Pt,{name:"workExperience"}),a.createElement(o.yc,null),a.createElement(o.hl,null))}function d(){return a.createElement(o.NE,{schema:s.J,onSubmit:console.log},a.createElement("h4",null,"IT meeting guest questionnaire"),a.createElement(o.Pt,{name:"lastName"}),a.createElement(o.ME,{name:"lastName"},a.createElement("span",null,"You have to provide your last name!")),a.createElement(o.Pt,{name:"firstName"}),a.createElement(o.ME,{name:"firstName",errorMessage:"You have to provide your first name!"}),a.createElement("span",null,"Do you want to share your work experience with us?"),a.createElement(o.Pt,{name:"workExperience"}),a.createElement(o.ME,{name:"workExperience",errorMessage:"Your work experience cannot be lesser than 0 or greater than 100 years!"}),a.createElement(o.hl,null))}function c(){return a.createElement(o.NE,{schema:s.J,onSubmit:console.log},a.createElement("h4",null,"IT meeting guest questionnaire"),a.createElement(o.Pt,{name:"lastName"}),a.createElement(o.ME,{name:"lastName"}),a.createElement(o.Pt,{name:"firstName"}),a.createElement(o.ME,{name:"firstName"}),a.createElement("span",null,"Do you want to share your work experience with us?"),a.createElement(o.Pt,{name:"workExperience"}),a.createElement(o.ME,{name:"workExperience"}),a.createElement(o.hl,null))}function m(){return a.createElement(o.NE,{schema:s.J,onSubmit:console.log},a.createElement("h4",null,"IT meeting guest questionnaire"),a.createElement(o.UE,null),a.createElement(o.yc,null),a.createElement(o.hl,null))}var p=t(53009);const f={id:"tutorials-customizing-your-form-layout",title:"Customizing your form layout"},h=void 0,_={unversionedId:"tutorials-customizing-your-form-layout",id:"tutorials-customizing-your-form-layout",title:"Customizing your form layout",description:"Great! Now that we have our form up and running, it's time to think about how we can customize it and adjust to our needs.",source:"@site/../docs/tutorials-customizing-your-form-layout.mdx",sourceDirName:".",slug:"/tutorials-customizing-your-form-layout",permalink:"/docs/tutorials-customizing-your-form-layout",draft:!1,tags:[],version:"current",frontMatter:{id:"tutorials-customizing-your-form-layout",title:"Customizing your form layout"},sidebar:"docs",previous:{title:"Basic uniforms usage",permalink:"/docs/tutorials-basic-uniforms-usage"},next:{title:"Using predefined fields",permalink:"/docs/tutorials-using-predefined-fields"}},v={},g=[{value:"Adding a heading to the form",id:"adding-a-heading-to-the-form",level:3},{value:"Changing the order of the fields",id:"changing-the-order-of-the-fields",level:3},{value:"Changing the order of the error messages",id:"changing-the-order-of-the-error-messages",level:3},{value:"Changing the error message",id:"changing-the-error-message",level:3}],b={toc:g};function E(e){let{components:n,...a}=e;return(0,l.kt)("wrapper",(0,r.Z)({},b,a,{components:n,mdxType:"MDXLayout"}),(0,l.kt)("p",null,"Great! Now that we have our form up and running, it's time to think about how we can customize it and adjust to our needs."),(0,l.kt)("p",null,"Let's say we would like to add a heading \"IT meeting guest questionnaire\" and change the order of the fields - the field asking for a guest's last name should come first.\nWe also want to ask for their work experience more politely."),(0,l.kt)("p",null,"How can we do it? That's where ",(0,l.kt)("inlineCode",{parentName:"p"},"Autofield")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"AutoFields")," components come into action."),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Note:")," Both ",(0,l.kt)("inlineCode",{parentName:"p"},"AutoFields")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"AutoField")," components generate, no more and no less, only form fields.\nThat means we have to manually add the submit button (",(0,l.kt)("inlineCode",{parentName:"p"},"SubmitField"),") and the error messages (",(0,l.kt)("inlineCode",{parentName:"p"},"ErrorsField"),")."),(0,l.kt)("h3",{id:"adding-a-heading-to-the-form"},"Adding a heading to the form"),(0,l.kt)("p",null,"If you need to add heading to your form, using ",(0,l.kt)("inlineCode",{parentName:"p"},"AutoFields")," seems to be a perfect solution.\n",(0,l.kt)("inlineCode",{parentName:"p"},"AutoFields")," will automatically render form fields based on the schema within the ",(0,l.kt)("inlineCode",{parentName:"p"},"AutoForm"),"."),(0,l.kt)(i.f,{language:"tsx",replace:{"'[^']*?/universal'":"'uniforms-semantic'"},source:t(40791),mdxType:"CodeSection"}),(0,l.kt)(p.R,{mdxType:"TutorialForm"},(0,l.kt)(m,{mdxType:"GuestFormWithHeading"})),(0,l.kt)("h3",{id:"changing-the-order-of-the-fields"},"Changing the order of the fields"),(0,l.kt)("p",null,"If you need to reorder your fields, ",(0,l.kt)("inlineCode",{parentName:"p"},"AutoField")," is your best friend.\n",(0,l.kt)("inlineCode",{parentName:"p"},"AutoField")," will automatically render any field based on the field name provided in the schema.\nUsing AutoFields allows you to freely manipulate your form's layout."),(0,l.kt)("p",null,"Here we've changed the order of the ",(0,l.kt)("inlineCode",{parentName:"p"},"lastName")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"firstName")," field and added a polite question,\nasking whether the people filling the form would like to share with us their work experience."),(0,l.kt)(i.f,{language:"tsx",replace:{"'[^']*?/universal'":"'uniforms-semantic'"},source:t(19172),mdxType:"CodeSection"}),(0,l.kt)(p.R,{mdxType:"TutorialForm"},(0,l.kt)(u,{mdxType:"GuestFormWithAutoFields"})),(0,l.kt)("h3",{id:"changing-the-order-of-the-error-messages"},"Changing the order of the error messages"),(0,l.kt)("p",null,"Similarly to the fields, we can also change the order of the displayed errors.\nInstead of using the ",(0,l.kt)("inlineCode",{parentName:"p"},"ErrorsField")," component, which renders one stack block of errors,\nwe can use the ",(0,l.kt)("inlineCode",{parentName:"p"},"ErrorField")," and just place it directly where want in our form."),(0,l.kt)(i.f,{language:"tsx",replace:{"'[^']*?/universal'":"'uniforms-semantic'"},source:t(83689),mdxType:"CodeSection"}),(0,l.kt)(p.R,{mdxType:"TutorialForm"},(0,l.kt)(c,{mdxType:"GuestFormWithErrorFields"})),(0,l.kt)("h3",{id:"changing-the-error-message"},"Changing the error message"),(0,l.kt)("p",null,"The default error messages are rather unfriendly. Hopefully, we can easily modify them,\neither by passing the ",(0,l.kt)("inlineCode",{parentName:"p"},"children")," to the ",(0,l.kt)("inlineCode",{parentName:"p"},"ErrorField")," or by using the ",(0,l.kt)("inlineCode",{parentName:"p"},"errorMessage")," prop:"),(0,l.kt)(i.f,{language:"tsx",replace:{"'[^']*?/universal'":"'uniforms-semantic'"},source:t(46763),mdxType:"CodeSection"}),(0,l.kt)(p.R,{mdxType:"TutorialForm"},(0,l.kt)(d,{mdxType:"GuestFormWithChangedErrors"})))}E.isMDXComponent=!0},4940:function(e,n){"use strict";n.Z={"center-if-sm":"center-if-sm_fQBP",padding:"padding_u3oQ",landing:"landing_JSVC","overflow-hidden":"overflow-hidden_pgKL","section-content":"section-content_dsyA",discussions:"discussions_nna8","floating-example":"floating-example_NeZB","system-window":"system-window_utQO","system-top-bar":"system-top-bar_ZKOK","system-top-bar-circle":"system-top-bar-circle_TDqe","showcase-card":"showcase-card_hJCa",footer:"footer_V71b",bullets:"bullets_YLT6","offset-column":"offset-column_Fx18","simple-yet-powerful-text":"simple-yet-powerful-text__cJc","fully-customizable-text":"fully-customizable-text_ka9o","reverse-wrap":"reverse-wrap_wEMw",example:"example_fVIp","preview-border":"preview-border_OFQs",preview:"preview_Ea2L","no-padding":"no-padding_WjVH","solid-border-box":"solid-border-box_A28F","green-accent":"green-accent_H4ZV","blue-accent":"blue-accent_R2MP",grid3x3:"grid3x3_yu8a",item3x3:"item3x3_dug1",company:"company_dMmf","border-dashed":"border-dashed_OHF8","border-gradient":"border-gradient_gHdq","border-disable-top-right":"border-disable-top-right_GH8c","border-disable-bottom-left":"border-disable-bottom-left_uiZP","arrow-button":"arrow-button_hF_x","left-arrow-button":"left-arrow-button_Zn9b","right-arrow-button":"right-arrow-button_J0NN",arrow:"arrow_d93H","carousel-container":"carousel-container_uFWT",carousel:"carousel_vfTV",testimonials:"testimonials__H4G","testimonials-pair-active":"testimonials-pair-active_W4Qz","testimonials-pair-inactive":"testimonials-pair-inactive_OeWi",testimonial:"testimonial_JqOm","testimonial-content":"testimonial-content_yyK0","testimonial-links-wrapper":"testimonial-links-wrapper_aCzC","testimonial-description":"testimonial-description_HpGg","testimonial-avatar":"testimonial-avatar_OiX2","section-heading":"section-heading_Wwdu","section-bgwhite":"section-bgwhite_xc3Y","section-bgwhite-block":"section-bgwhite-block_wuyP","section-bgwhite-block-left":"section-bgwhite-block-left_R077","section-bgwhite-block-right":"section-bgwhite-block-right_XL2o",logos:"logos_slhi",fluid:"fluid_k_Hd",whyus:"whyus_bBI7",oval:"oval_S291","link-icon-container":"link-icon-container_Iy8Z",white:"white_k7iJ","top-right-corner":"top-right-corner_hrD6",badges:"badges_sK0n","badge-number":"badge-number_FlCf",badge:"badge_Cv7E","badge-image":"badge-image_V8QJ","badge-centered":"badge-centered_Cl70","call-to-action":"call-to-action_fHoz","theme-icon":"theme-icon_VaE8",section:"section_SnfD","flex-center":"flex-center_VHPe","top-margin":"top-margin_xVhu","long-button":"long-button_efAi",text:"text_U9e4","text-big":"text-big_oDLV","text-huge":"text-huge_zgdY","heading-helper":"heading-helper_fnxq",heading:"heading_Tyjn","heading-white":"heading-white_SkAD",emphasis:"emphasis_T58q",paragraph:"paragraph_pxCb","section-subtitle":"section-subtitle_etM3","footer-heading":"footer-heading_wvTE",supported:"supported_k5lB",title:"title_L62U",description:"description_aTRG","commercial-bullets":"commercial-bullets_o7pP","commercial-box":"commercial-box_wLXy",vazco:"vazco_f6cf","form-wrapper":"form-wrapper_kccZ",playground:"playground_p2wD","playground-wrap":"playground-wrap_FoP6","playground-column":"playground-column_btgY","playground-toolbar":"playground-toolbar_jwg0",tabs:"tabs_DJzW",item:"item_Lknm",active:"active_R6La",toggler:"toggler_LMZW",header:"header_kKxo",tooltip:"tooltip_OOD_","tooltip-text":"tooltip-text_GGXA","toggler-tabs":"toggler-tabs_UzN0"}},95126:function(e,n,t){var r={"./af":1009,"./af.js":1009,"./ar":88769,"./ar-dz":23739,"./ar-dz.js":23739,"./ar-kw":93745,"./ar-kw.js":93745,"./ar-ly":99576,"./ar-ly.js":99576,"./ar-ma":67408,"./ar-ma.js":67408,"./ar-sa":48781,"./ar-sa.js":48781,"./ar-tn":87856,"./ar-tn.js":87856,"./ar.js":88769,"./az":2030,"./az.js":2030,"./be":56476,"./be.js":56476,"./bg":25304,"./bg.js":25304,"./bm":48125,"./bm.js":48125,"./bn":34,"./bn-bd":29835,"./bn-bd.js":29835,"./bn.js":34,"./bo":64082,"./bo.js":64082,"./br":8317,"./br.js":8317,"./bs":93107,"./bs.js":93107,"./ca":68272,"./ca.js":68272,"./cs":98567,"./cs.js":98567,"./cv":61583,"./cv.js":61583,"./cy":10076,"./cy.js":10076,"./da":31760,"./da.js":31760,"./de":8973,"./de-at":63214,"./de-at.js":63214,"./de-ch":74728,"./de-ch.js":74728,"./de.js":8973,"./dv":54053,"./dv.js":54053,"./el":7499,"./el.js":7499,"./en-au":67876,"./en-au.js":67876,"./en-ca":47010,"./en-ca.js":47010,"./en-gb":34239,"./en-gb.js":34239,"./en-ie":99830,"./en-ie.js":99830,"./en-il":28438,"./en-il.js":28438,"./en-in":25322,"./en-in.js":25322,"./en-nz":43264,"./en-nz.js":43264,"./en-sg":55449,"./en-sg.js":55449,"./eo":39486,"./eo.js":39486,"./es":32430,"./es-do":16310,"./es-do.js":16310,"./es-mx":27038,"./es-mx.js":27038,"./es-us":73099,"./es-us.js":73099,"./es.js":32430,"./et":34975,"./et.js":34975,"./eu":87063,"./eu.js":87063,"./fa":68073,"./fa.js":68073,"./fi":50957,"./fi.js":50957,"./fil":8764,"./fil.js":8764,"./fo":81775,"./fo.js":81775,"./fr":74179,"./fr-ca":14306,"./fr-ca.js":14306,"./fr-ch":73791,"./fr-ch.js":73791,"./fr.js":74179,"./fy":47014,"./fy.js":47014,"./ga":46911,"./ga.js":46911,"./gd":62958,"./gd.js":62958,"./gl":87344,"./gl.js":87344,"./gom-deva":33161,"./gom-deva.js":33161,"./gom-latn":35798,"./gom-latn.js":35798,"./gu":68485,"./gu.js":68485,"./he":27917,"./he.js":27917,"./hi":52159,"./hi.js":52159,"./hr":95842,"./hr.js":95842,"./hu":30005,"./hu.js":30005,"./hy-am":51312,"./hy-am.js":51312,"./id":60781,"./id.js":60781,"./is":64101,"./is.js":64101,"./it":43467,"./it-ch":4759,"./it-ch.js":4759,"./it.js":43467,"./ja":44164,"./ja.js":44164,"./jv":70079,"./jv.js":70079,"./ka":57036,"./ka.js":57036,"./kk":92022,"./kk.js":92022,"./km":63418,"./km.js":63418,"./kn":43655,"./kn.js":43655,"./ko":30986,"./ko.js":30986,"./ku":91902,"./ku.js":91902,"./ky":4604,"./ky.js":4604,"./lb":99026,"./lb.js":99026,"./lo":20537,"./lo.js":20537,"./lt":22288,"./lt.js":22288,"./lv":1495,"./lv.js":1495,"./me":60690,"./me.js":60690,"./mi":2571,"./mi.js":2571,"./mk":93959,"./mk.js":93959,"./ml":97225,"./ml.js":97225,"./mn":88,"./mn.js":88,"./mr":46622,"./mr.js":46622,"./ms":11070,"./ms-my":48899,"./ms-my.js":48899,"./ms.js":11070,"./mt":63931,"./mt.js":63931,"./my":95393,"./my.js":95393,"./nb":4274,"./nb.js":4274,"./ne":8914,"./ne.js":8914,"./nl":33114,"./nl-be":68479,"./nl-be.js":68479,"./nl.js":33114,"./nn":4513,"./nn.js":4513,"./oc-lnc":46549,"./oc-lnc.js":46549,"./pa-in":28264,"./pa-in.js":28264,"./pl":32848,"./pl.js":32848,"./pt":90899,"./pt-br":55077,"./pt-br.js":55077,"./pt.js":90899,"./ro":92512,"./ro.js":92512,"./ru":21753,"./ru.js":21753,"./sd":16840,"./sd.js":16840,"./se":78362,"./se.js":78362,"./si":50464,"./si.js":50464,"./sk":66324,"./sk.js":66324,"./sl":41963,"./sl.js":41963,"./sq":53039,"./sq.js":53039,"./sr":93454,"./sr-cyrl":10466,"./sr-cyrl.js":10466,"./sr.js":93454,"./ss":95158,"./ss.js":95158,"./sv":28859,"./sv.js":28859,"./sw":57594,"./sw.js":57594,"./ta":26915,"./ta.js":26915,"./te":15677,"./te.js":15677,"./tet":92154,"./tet.js":92154,"./tg":74098,"./tg.js":74098,"./th":89071,"./th.js":89071,"./tk":49381,"./tk.js":49381,"./tl-ph":1869,"./tl-ph.js":1869,"./tlh":92346,"./tlh.js":92346,"./tr":71483,"./tr.js":71483,"./tzl":30266,"./tzl.js":30266,"./tzm":33138,"./tzm-latn":32960,"./tzm-latn.js":32960,"./tzm.js":33138,"./ug-cn":29456,"./ug-cn.js":29456,"./uk":50805,"./uk.js":50805,"./ur":61127,"./ur.js":61127,"./uz":29628,"./uz-latn":80840,"./uz-latn.js":80840,"./uz.js":29628,"./vi":56962,"./vi.js":56962,"./x-pseudo":49257,"./x-pseudo.js":49257,"./yo":62423,"./yo.js":62423,"./zh-cn":61002,"./zh-cn.js":61002,"./zh-hk":6046,"./zh-hk.js":6046,"./zh-mo":36903,"./zh-mo.js":36903,"./zh-tw":24710,"./zh-tw.js":24710};function a(e){var n=l(e);return t(n)}function l(e){if(!t.o(r,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=l,e.exports=a,a.id=95126},19172:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport {\n AutoField,\n AutoForm,\n ErrorsField,\n SubmitField,\n} from '../../lib/universal';\n\nimport { bridge as schema } from './GuestSchema';\n\nexport function GuestFormWithAutoFields() {\n return (\n <AutoForm schema={schema} onSubmit={console.log}>\n <h4>IT meeting guest questionnaire</h4>\n <AutoField name=\"lastName\" />\n <AutoField name=\"firstName\" />\n <span>Do you want to share your work experience with us?</span>\n <AutoField name=\"workExperience\" />\n <ErrorsField />\n <SubmitField />\n </AutoForm>\n );\n}\n"},46763:function(e,n,t){"use strict";t.r(n),n.default='import React from \'react\';\nimport {\n AutoField,\n AutoForm,\n ErrorField,\n SubmitField,\n} from \'../../lib/universal\';\n\nimport { bridge as schema } from \'./GuestSchema\';\n\nexport function GuestFormWithChangedErrors() {\n return (\n <AutoForm schema={schema} onSubmit={console.log}>\n <h4>IT meeting guest questionnaire</h4>\n <AutoField name="lastName" />\n <ErrorField name="lastName">\n <span>You have to provide your last name!</span>\n </ErrorField>\n <AutoField name="firstName" />\n <ErrorField\n name="firstName"\n errorMessage="You have to provide your first name!"\n />\n <span>Do you want to share your work experience with us?</span>\n <AutoField name="workExperience" />\n <ErrorField\n name="workExperience"\n errorMessage="Your work experience cannot be lesser than 0 or greater than 100 years!"\n />\n <SubmitField />\n </AutoForm>\n );\n}\n'},83689:function(e,n,t){"use strict";t.r(n),n.default='import React from \'react\';\nimport {\n AutoForm,\n AutoField,\n ErrorField,\n SubmitField,\n} from \'../../lib/universal\';\n\nimport { bridge as schema } from \'./GuestSchema\';\n\nexport function GuestFormWithErrorFields() {\n return (\n <AutoForm schema={schema} onSubmit={console.log}>\n <h4>IT meeting guest questionnaire</h4>\n <AutoField name="lastName" />\n <ErrorField name="lastName" />\n <AutoField name="firstName" />\n <ErrorField name="firstName" />\n <span>Do you want to share your work experience with us?</span>\n <AutoField name="workExperience" />\n <ErrorField name="workExperience" />\n <SubmitField />\n </AutoForm>\n );\n}\n'},40791:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport {\n AutoForm,\n AutoFields,\n ErrorsField,\n SubmitField,\n} from '../../lib/universal';\n\nimport { bridge as schema } from './GuestSchema';\n\nexport function GuestFormWithHeading() {\n return (\n <AutoForm schema={schema} onSubmit={console.log}>\n <h4>IT meeting guest questionnaire</h4>\n <AutoFields />\n <ErrorsField />\n <SubmitField />\n </AutoForm>\n );\n}\n"}}]); \ No newline at end of file diff --git a/assets/js/724b70da.69a1f3fa.js b/assets/js/724b70da.69a1f3fa.js new file mode 100644 index 000000000..a762d2057 --- /dev/null +++ b/assets/js/724b70da.69a1f3fa.js @@ -0,0 +1,128 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[332],{73633:function(e,n,t){"use strict";t.d(n,{j:function(){return P}}),t(11561).z.register("minCount","maxCount");var a=t(59312),r=t(3996),l=t.n(r),i=t(30454),s=t.n(i),o=t(99729),d=t.n(o),u=t(90104),c=t.n(u),m=t(1883),p=t.n(m),_=t(16651),v=t.n(_),f=t(76744),h=t.n(f),b=t(98949),g=t(65507);function E(e,n){l()(n,'Field not found in schema: "%s"',e)}function y(e,n){if(!("$ref"in e))return e;const{$ref:t}=e,r=(0,a._T)(e,["$ref"]);return y(Object.assign({},r,function(e,n){l()(e.startsWith("#"),'Reference is not an internal reference, and only such are allowed: "%s"',e);const t=e.split("/").filter((e=>e&&"#"!==e)).reduce(((e,n)=>e[n]),n);return l()(t,'Reference not found in schema: "%s"',e),t}(t,n)),n)}const O=["allOf","anyOf","oneOf"],C=["default","enum","format","isRequired","title","uniforms"],k=[["maxItems","maxCount"],["maximum","max"],["minItems","minCount"],["minimum","min"],["multipleOf","step"]];function j(e){return"object"==typeof e&&null!==e&&Array.isArray(e.details)}class P extends b.k{constructor(e){let{provideDefaultLabelFromFieldName:n=!0,schema:t,validator:a}=e;super(),this.provideDefaultLabelFromFieldName=n,this.schema=y(t,t),this._compiledSchema={"":this.schema},this.validator=a,this.getField=v()(this.getField.bind(this)),this.getInitialValue=v()(this.getInitialValue.bind(this)),this.getSubfields=v()(this.getSubfields.bind(this)),this.getType=v()(this.getType.bind(this))}getError(e,n){const t=j(n)&&n.details;if(!t)return null;const a=(0,g.m)(null,e).map(g.m.unescape),r=(0,g.m)(a),l=(0,g.m)(a.slice(0,-1)),i=a[a.length-1],s=t.find((e=>{var n;const t=null!==(n=e.instancePath)&&void 0!==n?n:e.dataPath,a=t?function(e){return(e=e.startsWith("/")?e.replace(/\//g,".").replace(/~0/g,"~").replace(/~1/g,"/"):e.replace(/\[('|")(.+?)\1\]/g,".$2").replace(/\[(.+?)\]/g,".$1").replace(/\\'/g,"'")).slice(1)}(t):"";return r===a||l===a&&e.params&&i===e.params.missingProperty}));return s||null}getErrorMessage(e,n){const t=this.getError(e,n);return(null==t?void 0:t.message)||""}getErrorMessages(e){if(!e)return[];if(j(e)){const{details:n}=e;return n.map((e=>e.message||""))}return e instanceof Error?[e.message]:"object"==typeof e?[]:[String(e)]}getField(e){return(0,g.m)(null,e).reduce(((n,t,a,r)=>{var l,i,s,o;const d=(0,g.m)(r.slice(0,a)),u=(0,g.m)(d,t),m=null!==(l=(o=this._compiledSchema)[u])&&void 0!==l?l:o[u]={};if(m.isRequired=!(!(null===(i=n.required)||void 0===i?void 0:i.includes(t))&&!(null===(s=this._compiledSchema[d].required)||void 0===s?void 0:s.includes(t))),"$"===t||t===""+parseInt(t,10))E(e,"array"===n.type),n=Array.isArray(n.items)?n.items[parseInt(t,10)]:n.items,E(e,!!n);else if("object"===n.type)E(e,!!n.properties),n=n.properties[g.m.unescape(t)],E(e,!!n);else{let a=!1;O.forEach((e=>{var r;null===(r=n[e])||void 0===r||r.forEach((e=>{a||(e=y(e,this.schema),t in e.properties&&(n=e.properties[t],a=!0))}))})),E(e,a)}const p=(n=y(n,this.schema)).required?n.required.slice():[],_=n.properties?Object.assign({},n.properties):{};return O.forEach((e=>{var t;null===(t=n[e])||void 0===t||t.forEach((e=>{(e=y(e,this.schema)).required&&p.push(...e.required),Object.assign(_,e.properties),!m.type&&e.type&&(m.type=e.type)}))})),p.length>0&&(m.required=p),c()(_)||(m.properties=_),n}),this.schema)}getInitialValue(e){var n;const t=this.getField(e),{default:a=(null!==(n=t.default)&&void 0!==n?n:d()(this.schema.default,e)),type:r=t.type}=this._compiledSchema[e];if(void 0!==a)return s()(a);if("array"===r){const n=this.getInitialValue((0,g.m)(e,"$"));if(void 0===n)return[];const a=t.minItems||0;return Array.from({length:a},(()=>n))}if("object"===r){const n={};return this.getSubfields(e).forEach((t=>{const a=this.getInitialValue((0,g.m)(e,t));void 0!==a&&(n[t]=a)})),n}}getProps(e){var n,t;const a=this.getField(e),r=Object.assign({},a,a.uniforms,this._compiledSchema[e]);null!==(n=r.label)&&void 0!==n||(r.label=r.title),this.provideDefaultLabelFromFieldName&&void 0===r.label&&(r.label=h()(p()((0,g.m)(null,e).slice(-1)[0]))),"number"===a.type&&(r.decimal=!0),void 0!==(null===(t=a.uniforms)||void 0===t?void 0:t.type)&&(r.type=a.uniforms.type),void 0===r.required&&(r.required=r.isRequired),r.type===a.type&&delete r.type;let l=r.options;return l?Array.isArray(l)||(l=Object.entries(l).map((e=>{let[n,t]=e;return{key:n,label:n,value:t}}))):r.enum&&(l=Object.values(r.enum).map((e=>({value:e})))),k.forEach((e=>{let[n,t]=e;n in r&&(r[t]=r[n],delete r[n])})),C.forEach((e=>{e in r&&delete r[e]})),Object.assign(r,{options:l})}getSubfields(e){void 0===e&&(e="");const n=this.getField(e),{properties:t=n.properties,type:a=n.type}=this._compiledSchema[e];return"object"===a&&t?Object.keys(t).map(g.m.escape):[]}getType(e){const{type:n,format:t}=this.getField(e),{type:a=n}=this._compiledSchema[e];return"date-time"===t?Date:"string"===a?String:"number"===a||"integer"===a?Number:"object"===a?Object:"array"===a?Array:"boolean"===a?Boolean:(l()("null"!==a,'Field "%s" can not be represented as a type null',e),a)}getValidator(){return this.validator}}},12005:function(e,n,t){"use strict";t.d(n,{V:function(){return f}});var a=t(13762),r=t.n(a),l=t(11561);r().extendOptions(["uniforms"]),l.z.register("autoValue","blackbox","custom","decimal","defaultValue","exclusiveMax","exclusiveMin","max","maxCount","min","minCount","optional","regEx","trim","type");var i=t(59312),s=t(3996),o=t.n(s),d=t(30454),u=t.n(d),c=t(16651),m=t.n(c),p=t(98949),_=t(65507);const v=["optional","uniforms","allowedValues"];class f extends p.k{constructor(e){let{schema:n}=e;super(),this.schema=n,this.getField=m()(this.getField.bind(this)),this.getInitialValue=m()(this.getInitialValue.bind(this)),this.getProps=m()(this.getProps.bind(this)),this.getSubfields=m()(this.getSubfields.bind(this)),this.getType=m()(this.getType.bind(this))}getError(e,n){const t=null==n?void 0:n.details;return Array.isArray(t)&&t.find((n=>n.name===e))||null}getErrorMessage(e,n){const t=this.getError(e,n);return t?this.schema.messageForError(t):""}getErrorMessages(e){if(!e)return[];const{details:n}=e;return Array.isArray(n)?n.map((e=>this.schema.messageForError(e))):[e.message||e]}getField(e){const n=this.schema.getDefinition(e);o()(n,'Field not found in schema: "%s"',e);const t=Object.assign(Object.assign({},n),n.type[0]);if(t.autoValue&&("defaultAutoValueFunction"===t.autoValue.name||-1!==t.autoValue.toString().indexOf("$setOnInsert:")))try{t.defaultValue=t.autoValue.call({operator:null})}catch(a){}return t}getInitialValue(e){const n=this.getField(e),t=n.defaultValue;if(void 0!==t)return u()(t);if(n.type===Array){const t=this.getInitialValue((0,_.m)(e,"$"));if(void 0===t)return[];const a=n.minCount||0;return Array.from({length:a},(()=>t))}if(n.type===Object||n.type instanceof r()){const n={};return this.getSubfields(e).forEach((t=>{const a=this.getInitialValue((0,_.m)(e,t));void 0!==a&&(n[t]=a)})),n}}getProps(e){const n=this.getField(e),{type:t}=n,a=(0,i._T)(n,["type"]);a.required=!a.optional,"function"==typeof a.uniforms||"string"==typeof a.uniforms?a.component=a.uniforms:Object.assign(a,a.uniforms),t===Number&&(a.decimal=!0);let r=a.options,l=a.allowedValues;if("function"==typeof r&&(r=r()),r||"function"!=typeof l||(l=l()),!r&&Array.isArray(l))r=l.map((e=>({value:e})));else if(t===Array)try{const n=this.getProps(`${e}.$`);n.options&&(r=n.options)}catch(s){}return v.forEach((e=>{e in a&&delete a[e]})),Object.assign(a,{options:r})}getSubfields(e){return this.schema.objectKeys(function(e){return null==e?void 0:e.replace(/\.\d+(\.|$)/g,".$$$1")}(e))}getType(e){const n=this.getField(e).type;return n===r().Integer?Number:n instanceof r()?Object:n}getValidator(e){void 0===e&&(e={clean:!0,mutate:!0});const n=this.schema.validator(e);return t=>{try{return n(e.clean?u()(Object.assign({},t)):t),null}catch(a){return a}}}}},48616:function(e,n,t){"use strict";t.d(n,{K:function(){return g}});var a=t(11561),r=t(84200);a.z.register("minCount","maxCount"),r.z.ZodType.prototype.uniforms=function(e){return this._uniforms=e,this};var l=t(3996),i=t.n(l),s=t(1883),o=t.n(s),d=t(16651),u=t.n(d),c=t(76744),m=t.n(c),p=t(65507),_=t(98949);function v(e,n){i()(n,'Field not found in schema: "%s"',e)}function f(e){return"string"!=typeof e}function h(e){return m()(o()((0,p.m)(null,e).slice(-1)[0]))}function b(e,n){void 0===n&&(n=[]);const t=e[e.length-1];if("number"==typeof t){return b(e.slice(0,e.length-1),[t,...n])}return n.length>0?`${h(e)} (${n.join(", ")})`:h(e)}class g extends _.k{constructor(e){let{schema:n,provideDefaultLabelFromFieldName:t=!0}=e;super(),this.schema=n,this.provideDefaultLabelFromFieldName=t,this.getField=u()(this.getField.bind(this)),this.getInitialValue=u()(this.getInitialValue.bind(this)),this.getProps=u()(this.getProps.bind(this)),this.getSubfields=u()(this.getSubfields.bind(this)),this.getType=u()(this.getType.bind(this))}getError(e,n){return n instanceof r.jm&&n.issues.find((n=>e===(0,p.m)(n.path)))||null}getErrorMessage(e,n){var t;return(null===(t=this.getError(e,n))||void 0===t?void 0:t.message)||""}getErrorMessages(e){return e instanceof r.jm?e.issues.map((e=>`${b(e.path)}: ${e.message}`)):e instanceof Error?[e.message]:[]}getField(e){let n=this.schema;this.schema instanceof r.Xc&&(n=this.schema._def.schema);for(const t of(0,p.m)(null,e))n instanceof r.uE?n=n.removeDefault():n instanceof r.ak&&(n=n.unwrap()),"$"===t||t===""+parseInt(t,10)?(v(e,n instanceof r.p5),n=n.element):(v(e,n instanceof r.CQ),n=n.shape[p.m.unescape(t)]);return n}getInitialValue(e){var n,t;const a=this.getField(e);if(a instanceof r.p5){const t=this.getInitialValue((0,p.m)(e,"$"));if(void 0===t)return[];const r=(null===(n=a._def.minLength)||void 0===n?void 0:n.value)||0;return Array.from({length:r},(()=>t))}if(a instanceof r.uE)return a._def.defaultValue();if(a instanceof r.K7)return a.options[0];if(a instanceof r.Zl){const e=Object.values(a.enum);return null!==(t=e.find(f))&&void 0!==t?t:e[0]}if(a instanceof r.CQ){const n={};return this.getSubfields(e).forEach((t=>{const a=this.getInitialValue((0,p.m)(e,t));void 0!==a&&(n[t]=a)})),n}}getProps(e){const n=Object.assign(Object.assign({},this.provideDefaultLabelFromFieldName&&{label:h(e)}),{required:!0});let t=this.getField(e);const a=t._uniforms;if("function"==typeof a?n.component=a:Object.assign(n,a),t instanceof r.uE?(t=t.removeDefault(),n.required=!1):t instanceof r.ak&&(t=t.unwrap(),n.required=!1),t instanceof r.p5)t._def.maxLength&&(n.maxCount=t._def.maxLength.value),t._def.minLength&&(n.minCount=t._def.minLength.value);else if(t instanceof r.K7)n.options=t.options.map((e=>({value:e})));else if(t instanceof r.Zl){const e=Object.values(t.enum),a=e.filter(f);n.options=(a.length?a:e).map((e=>({value:e})))}else if(t instanceof r.IV){t.isInt||(n.decimal=!0);const e=t.maxValue;null!==e&&(n.max=e);const a=t.minValue;null!==a&&(n.min=a);const r=t._def.checks.find((e=>"multipleOf"===e.kind));r&&(n.step=r.value)}return n}getSubfields(e){void 0===e&&(e="");let n=this.getField(e);return n instanceof r.uE?n=n.removeDefault():n instanceof r.ak&&(n=n.unwrap()),n instanceof r.p5?["$"]:n instanceof r.CQ?Object.keys(n.shape):[]}getType(e){let n=this.getField(e);if(n instanceof r.uE?n=n.removeDefault():n instanceof r.ak&&(n=n.unwrap()),n instanceof r.p5)return Array;if(n instanceof r.pZ)return Boolean;if(n instanceof r.$s)return Date;if(n instanceof r.K7||n instanceof r.$T)return String;if(n instanceof r.Zl){return"number"==typeof Object.values(n.enum).find(f)?Number:String}return n instanceof r.IV?Number:n instanceof r.CQ?Object:void i()(!1,'Field "%s" has an unknown type',e)}getValidator(){return e=>{const n=this.schema.safeParse(e);return n.success?null:n.error}}}},68599:function(e,n,t){"use strict";var a=t(3996),r=t.n(a),l=t(6846),i=t(12138),s=t(14449),o=t(64694),d=t(80661),u=t(59492),c=t(44591),m=t(47822),p=t(99086);const _=(0,l.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?c.Z:m.Z;switch(e.fieldType){case Array:return o.Z;case Boolean:return i.Z;case Date:return s.Z;case Number:return u.Z;case Object:return d.Z;case String:return p.Z}return r()(!1,"Unsupported field type: %s",e.fieldType)}));n.Z=_},2310:function(e,n,t){"use strict";var a=t(39850),r=t(79904);n.Z=function e(n){class t extends(a.N.Auto(n)){}return t.Auto=e,t}(r.Z)},99574:function(e,n,t){"use strict";var a=t(60042),r=t.n(a),l=t(6820);n.Z=function e(n){class t extends n{getNativeFormProps(){const e=super.getNativeFormProps(),n=this.getContextError();return Object.assign(Object.assign({},e),{className:r()("ui",e.className,{error:n},"form")})}}return t.Semantic=e,t.displayName=`Semantic${n.displayName}`,t}(l.I)},12138:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424);n.Z=(0,o.e)((function(e){var{className:n,disabled:t,error:r,errorMessage:o,id:d,inputRef:u,label:c,name:m,onChange:p,readOnly:_,required:v,showInlineError:f,value:h,wrapClassName:b}=e,g=(0,a._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","readOnly","required","showInlineError","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:t,error:r,required:v},"field")},(0,s.z)(g)),i.createElement("div",{className:l()("ui",b,!c&&"fitted","checkbox")},i.createElement("input",{checked:h||!1,className:"hidden",disabled:t,id:d,name:m,onChange:()=>{_||p(!h)},ref:u,type:"checkbox"}),i.createElement("label",{htmlFor:d},c||null)),!(!r||!f)&&i.createElement("div",null,i.createElement("div",{className:"ui red basic pointing label"},o)))}),{kind:"leaf"})},14449:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424);const d=("object"==typeof t.g?t.g:window).Date,u=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};n.Z=(0,o.e)((function(e){var n,{className:t,disabled:r,error:o,errorMessage:c,icon:m,iconLeft:p,iconProps:_,id:v,inputRef:f,label:h,max:b,min:g,name:E,onChange:y,placeholder:O,readOnly:C,required:k,showInlineError:j,value:P,wrapClassName:x,type:M="datetime-local"}=e,N=(0,a._T)(e,["className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","value","wrapClassName","type"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:r,error:o,required:k},"field")},(0,s.z)(N)),h&&i.createElement("label",{htmlFor:v},h),i.createElement("div",{className:l()("ui",x,{left:p,icon:m||p},"input")},i.createElement("input",{disabled:r,id:v,max:u(b),min:u(g),name:E,onChange:e=>{const n=new d(e.target.valueAsNumber);n.getFullYear()<1e4?y(n):isNaN(e.target.valueAsNumber)&&y(void 0)},placeholder:O,readOnly:C,ref:f,type:M,value:null!==(n=u(P,M))&&void 0!==n?n:""}),(m||p)&&i.createElement("i",Object.assign({className:`${m||p} icon`},_))),!(!o||!j)&&i.createElement("div",{className:"ui red basic pointing label"},c))}),{kind:"leaf"})},43351:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(55201),o=t(11561);n.Z=function(e){var{children:n,className:t}=e,r=(0,a._T)(e,["children","className"]);const{error:d,schema:u}=(0,s.c)();return d||n?i.createElement("div",Object.assign({className:l()("ui",t,"error message")},(0,o.z)(r)),n,i.createElement("ul",{className:"list"},u.getErrorMessages(d).map(((e,n)=>i.createElement("li",{key:n},e))))):null}},77900:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(30454),s=t.n(i),o=t(27378),d=t(65507),u=t(68591),c=t(11561),m=t(76424);n.Z=(0,m.e)((function(e){var{disabled:n,name:t,readOnly:r,value:i}=e,m=(0,a._T)(e,["disabled","name","readOnly","value"]);const p=(0,d.m)(null,t),_=(0,d.m)(p.slice(0,-1)),v=(0,u.U)(_,{},{absoluteName:!0})[0],f=!(n||v.maxCount<=v.value.length);function h(e){!f||r||"key"in e&&"Enter"!==e.key||v.onChange(v.value.concat([s()(i)]))}return o.createElement("i",Object.assign({},(0,c.z)(m),{className:l()("ui",m.className,f?"link":"disabled","fitted add icon"),onClick:h,onKeyDown:h,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},960:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(65507),o=t(68591),d=t(11561),u=t(76424);n.Z=(0,u.e)((function(e){var{disabled:n,name:t,readOnly:r}=e,u=(0,a._T)(e,["disabled","name","readOnly"]);const c=(0,s.m)(null,t),m=+c[c.length-1],p=(0,s.m)(c.slice(0,-1)),_=(0,o.U)(p,{},{absoluteName:!0})[0];function v(e){if(!(n||"key"in e&&"Enter"!==e.key)){const e=_.value.slice();e.splice(m,1),_.onChange(e)}}return n||(n=r||_.minCount>=_.value.length),i.createElement("i",Object.assign({},(0,d.z)(u),{className:l()("ui",u.className,n?"link":"disabled","fitted close icon"),onClick:v,onKeyDown:v,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},64694:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424),d=t(77900),u=t(18747);n.Z=(0,o.e)((function(e){var{children:n=i.createElement(u.Z,{name:"$"}),className:t,disabled:r,error:o,errorMessage:c,itemProps:m,label:p,required:_,showInlineError:v,value:f}=e,h=(0,a._T)(e,["children","className","disabled","error","errorMessage","itemProps","label","required","showInlineError","value"]);return i.createElement("div",Object.assign({className:l()("ui",t,{disabled:r},"grouped fitted fields list")},(0,s.z)(h)),p&&i.createElement("div",{className:l()({error:o,required:_},"field item")},i.createElement("label",{className:"left floated"},p),i.createElement(d.Z,{className:"right floated",name:"$"})),p&&i.createElement("div",{className:"ui fitted hidden clearing horizontal divider"}),!(!o||!v)&&i.createElement("div",{className:"ui red basic label"},c),null==f?void 0:f.map(((e,t)=>i.Children.map(n,((e,n)=>{var a;return(0,i.isValidElement)(e)?(0,i.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+t)},m)):e})))))}))},18747:function(e,n,t){"use strict";var a=t(27378),r=t(76424),l=t(68599),i=t(960);n.Z=(0,r.e)((function(e){let{children:n=a.createElement(l.Z,{label:null,name:""})}=e;return a.createElement("div",{className:"item"},a.createElement(i.Z,{className:"top aligned",name:""}),a.createElement("div",{className:"middle aligned content",style:{width:"100%"}},n))}),{initialValue:!1})},80661:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424),d=t(68599);function u(e){var{children:n,className:t,disabled:r,error:o,errorMessage:u,fields:c,grouped:m,itemProps:p,label:_,showInlineError:v}=e,f=(0,a._T)(e,["children","className","disabled","error","errorMessage","fields","grouped","itemProps","label","showInlineError"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:r,error:o,grouped:m},"fields")},(0,s.z)(f)),_&&i.createElement("div",{className:"field"},i.createElement("label",null,_)),!(!o||!v)&&i.createElement("div",{className:"ui red basic label"},u),n||c.map((e=>i.createElement(d.Z,Object.assign({key:e,name:e},p)))))}u.defaultProps={grouped:!0},n.Z=(0,o.e)(u)},59492:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424);n.Z=(0,o.e)((function(e){var{className:n,decimal:t,disabled:r,error:o,errorMessage:d,icon:u,iconLeft:c,iconProps:m,id:p,inputRef:_,label:v,max:f,min:h,name:b,onChange:g,placeholder:E,readOnly:y,required:O,showInlineError:C,step:k,value:j,wrapClassName:P}=e,x=(0,a._T)(e,["className","decimal","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","step","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:r,error:o,required:O},"field")},(0,s.z)(x)),v&&i.createElement("label",{htmlFor:p},v),i.createElement("div",{className:l()("ui",P,{left:c,icon:u||c},"input")},i.createElement("input",{disabled:r,id:p,max:f,min:h,name:b,onChange:e=>{const n=(t?parseFloat:parseInt)(e.target.value);g(isNaN(n)?void 0:n)},placeholder:E,readOnly:y,ref:_,step:k||(t?.01:1),type:"number",value:null!=j?j:""}),(u||c)&&i.createElement("i",Object.assign({className:`${u||c} icon`},m))),!(!o||!C)&&i.createElement("div",{className:"ui red basic pointing label"},d))}),{kind:"leaf"})},52559:function(e,n,t){"use strict";var a=t(51674),r=t(68599),l=t(99574),i=t(43351),s=t(82986);n.Z=function e(n){class t extends(a.X.Quick(n)){getAutoField(){return r.Z}getErrorsField(){return i.Z}getSubmitField(){return s.Z}}return t.Quick=e,t}(l.Z)},44591:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(48159),s=t.n(i),o=t(27378),d=t(11561),u=t(76424);const c="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>c(encodeURIComponent(e)).replace(/=+$/,"");n.Z=(0,u.e)((function(e){var{options:n,className:t,disabled:r,error:i,errorMessage:u,id:c,label:p,name:_,onChange:v,readOnly:f,required:h,showInlineError:b,value:g}=e,E=(0,a._T)(e,["options","className","disabled","error","errorMessage","id","label","name","onChange","readOnly","required","showInlineError","value"]);return o.createElement("div",Object.assign({className:l()(t,{disabled:r,error:i},"grouped fields")},s()((0,d.z)(E),["checkboxes"])),p&&o.createElement("div",{className:l()({required:h},"field")},o.createElement("label",null,p)),null==n?void 0:n.map((e=>{var n,t,a,l;return o.createElement("div",{className:"field",key:null!==(n=e.key)&&void 0!==n?n:e.value},o.createElement("div",{className:"ui radio checkbox"},o.createElement("input",{checked:e.value===g,disabled:e.disabled||r,id:`${c}-${null!==(t=e.key)&&void 0!==t?t:m(e.value)}`,name:_,onChange:()=>{f||v(e.value)},type:"radio"}),o.createElement("label",{htmlFor:`${c}-${null!==(a=e.key)&&void 0!==a?a:m(e.value)}`},null!==(l=e.label)&&void 0!==l?l:e.value)))})),!(!i||!b)&&o.createElement("div",{className:"ui red basic pointing label"},u))}),{kind:"leaf"})},47822:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(20098),s=t.n(i),o=t(27378),d=t(11561),u=t(76424);const c="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>c(encodeURIComponent(e)).replace(/=+$/,""),p={paddingBottom:0,paddingTop:0};n.Z=(0,u.e)((function(e){var{options:n,checkboxes:t,className:r,disabled:i,error:u,errorMessage:c,fieldType:_,id:v,inputRef:f,label:h,name:b,onChange:g,placeholder:E,readOnly:y,required:O,showInlineError:C,value:k}=e,j=(0,a._T)(e,["options","checkboxes","className","disabled","error","errorMessage","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);const P=_===Array;return o.createElement("div",Object.assign({className:l()({disabled:i,error:u,required:O},r,"field")},(0,d.z)(j)),h&&o.createElement("label",{htmlFor:v},h),t?null==n?void 0:n.map((e=>{var n,t,a,r;return o.createElement("div",{className:"field",key:null!==(n=e.key)&&void 0!==n?n:e.value},o.createElement("div",{className:"ui checkbox"},o.createElement("input",{checked:P?null==k?void 0:k.includes(e.value):k===e.value,disabled:e.disabled||i,id:`${v}-${null!==(t=e.key)&&void 0!==t?t:m(e.value)}`,name:b,onChange:()=>{y||g(P?s()([e.value],k):e.value)},type:"checkbox"}),o.createElement("label",{htmlFor:`${v}-${null!==(a=e.key)&&void 0!==a?a:m(e.value)}`},null!==(r=e.label)&&void 0!==r?r:e.value)))})):o.createElement("select",{className:"ui selection dropdown",disabled:i,id:v,multiple:P,name:b,onChange:e=>{if(!y){const n=e.target.value;if(P){const t=-1===e.target.selectedIndex;g(t?[]:s()([n],k))}else g(""!==n?n:void 0)}},ref:f,style:p,value:null!=k?k:""},(!!E||!O||void 0===k)&&!P&&o.createElement("option",{value:"",disabled:O,hidden:O},E||h),null==n?void 0:n.map((e=>{var n,t;return o.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))),!(!u||!C)&&o.createElement("div",{className:"ui red basic pointing label"},c))}),{kind:"leaf"})},82986:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(55201),o=t(11561);function d(e){var{className:n,disabled:t,inputRef:r,readOnly:d,value:u}=e,c=(0,a._T)(e,["className","disabled","inputRef","readOnly","value"]);const{error:m,state:p}=(0,s.c)();return i.createElement("input",Object.assign({className:l()("ui",n,"button"),disabled:void 0===t?!(!m&&!p.disabled):t,readOnly:d,ref:r,type:"submit"},u?{value:u}:{},(0,o.z)(c)))}},99086:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424);function d(e){var{autoComplete:n,className:t,disabled:r,error:o,errorMessage:d,icon:u,iconLeft:c,iconProps:m,id:p,inputRef:_,label:v,name:f,onChange:h,placeholder:b,readOnly:g,required:E,showInlineError:y,type:O,value:C,wrapClassName:k}=e,j=(0,a._T)(e,["autoComplete","className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","type","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:r,error:o,required:E},"field")},(0,s.z)(j)),v&&i.createElement("label",{htmlFor:p},v),i.createElement("div",{className:l()("ui",k,{left:c,icon:u||c},"input")},i.createElement("input",{autoComplete:n,disabled:r,id:p,name:f,onChange:e=>h(e.target.value),placeholder:b,readOnly:g,ref:_,type:O,value:null!=C?C:""}),(u||c)&&i.createElement("i",Object.assign({className:`${u||c} icon`},m))),!(!o||!y)&&i.createElement("div",{className:"ui red basic pointing label"},d))}d.defaultProps={type:"text"},n.Z=(0,o.e)(d,{kind:"leaf"})},3684:function(e,n,t){"use strict";var a=t(23674),r=t(99574);n.Z=function e(n){class t extends(a.O.Validated(n)){}return t.Validated=e,t}(r.Z)},79904:function(e,n,t){"use strict";var a=t(99574),r=t(52559),l=t(3684);n.Z=l.Z.Validated(r.Z.Quick(a.Z))},96614:function(e,n,t){"use strict";var a=t(59312),r=t(27378),l=t(11561),i=t(76424);n.Z=(0,i.e)((function(e){var{disabled:n,id:t,inputRef:i,label:s,name:o,onChange:d,placeholder:u,readOnly:c,value:m}=e,p=(0,a._T)(e,["disabled","id","inputRef","label","name","onChange","placeholder","readOnly","value"]);return r.createElement("div",Object.assign({},(0,l.z)(p)),s&&r.createElement("label",{htmlFor:t},s),r.createElement("textarea",{disabled:n,id:t,name:o,onChange:e=>d(e.target.value),placeholder:u,readOnly:c,ref:i,value:null!=m?m:""}))}),{kind:"leaf"})},39850:function(e,n,t){"use strict";t.d(n,{N:function(){return p}});var a=t(13784),r=t.n(a),l=t(56141),i=t.n(l),s=t(48159),o=t.n(s),d=t(96498),u=t.n(d),c=t(6820),m=t(51674);const p=function e(n){class t extends n{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{model:this.mergeSchemaAndPropsModel(this.props.schema,this.props.model)})}mergeSchemaAndPropsModel(e,n){const t=e.getInitialModel();return Object.assign(t,n)}componentDidUpdate(e,n,t){const{model:a,schema:r}=this.props;i()(a,e.model)||this.setState({model:this.mergeSchemaAndPropsModel(r,a)}),super.componentDidUpdate(e,n,t)}getNativeFormProps(){const e=super.getNativeFormProps();return o()(e,["onChangeModel"])}getModel(e){return this.state.model}onChange(e,n){super.onChange(e,n),this.setState((t=>({model:u()(r()(t.model),e,n,r())})),(()=>{this.props.onChangeModel&&this.props.onChangeModel(this.state.model)}))}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{model:this.props.model})}}return t.Auto=e,t.displayName=`Auto${n.displayName}`,t}((0,t(23674).u)((0,m.s)(c.I)))},6820:function(e,n,t){"use strict";t.d(n,{I:function(){return g}});var a=t(13784),r=t.n(a),l=t(99729),i=t.n(l),s=t(48159),o=t.n(s),d=t(96498),u=t.n(d),c=t(27378),m=t(56141),p=t.n(m),_=t(65507);function v(e){return!(!e||e!==Object(e)||e instanceof Date)}var f=t(34361);function h(e){let n=0;return()=>`${e}-${("000"+(n++).toString(36)).slice(-4)}`}const b=h("uniforms");class g extends c.Component{constructor(e){var n,t;super(e),n=this,this.state={changed:!1,changedMap:Object.create(null),resetCount:0,submitted:!1,submitting:!1},this.mounted=!1,this.randomId=(void 0===(t=this.props.id)&&(t=b()),h(t)),this.onReset=this.reset=this.onReset.bind(this),this.onChange=this.change=this.onChange.bind(this),this.onSubmit=this.submit=this.onSubmit.bind(this);const a=this.getModel.bind(this);this.getModel=function(e,t){return void 0===t&&(t=a(e)),void 0!==e&&n.props.modelTransform?n.props.modelTransform(e,t):t}}componentDidMount(){this.mounted=!0}componentDidUpdate(e,n,t){}componentWillUnmount(){this.mounted=!1,this.delayId&&clearTimeout(this.delayId)}getContext(){return{changed:this.state.changed,changedMap:this.state.changedMap,error:this.getContextError(),formRef:this,model:this.getContextModel(),name:this.getContextName(),onChange:this.getContextOnChange(),onSubmit:this.getContextOnSubmit(),randomId:this.randomId,schema:this.getContextSchema(),state:this.getContextState(),submitted:this.state.submitted,submitting:this.state.submitting,validating:!1}}getContextName(){return[]}getContextError(){return this.props.error}getContextModel(){return this.getModel("form")}getContextState(){return{disabled:!!this.props.disabled,readOnly:!!this.props.readOnly,showInlineError:!!this.props.showInlineError}}getContextSchema(){return this.props.schema}getContextOnChange(){return this.onChange}getContextOnSubmit(){return this.onSubmit}getModel(e,n){return void 0===n&&(n=this.props.model),n}getNativeFormProps(){const e=o()(this.props,["autosave","autosaveDelay","disabled","error","model","modelTransform","onChange","onSubmit","readOnly","schema","showInlineError"]);return Object.assign(Object.assign({},e),{onSubmit:this.onSubmit,key:`reset-${this.state.resetCount}`})}onChange(e,n){if(this.mounted){const t=function(e,n,t){if(!v(n)||t&&typeof n!=typeof t)return p()(n,t)?[]:[e];const a=[e];if(v(t)){for(const r in n)r in t&&p()(n[r],t[r])||a.push((0,_.m)(e,r));for(const r in t)r in n||a.push((0,_.m)(e,r));1===a.length&&a.pop()}else for(const r in n)a.push((0,_.m)(e,r));return a}(e,n,i()(this.getModel(),e));0!==t.length&&this.setState((e=>e.changed&&t.every((n=>!!i()(e.changedMap,n)))?null:{changed:!0,changedMap:t.reduce(((e,n)=>u()(e,n,{},r())),r()(e.changedMap))}))}this.props.onChange&&this.props.onChange(e,n),this.mounted&&this.props.autosave&&(this.delayId&&clearTimeout(this.delayId),this.delayId=setTimeout((()=>{this.mounted&&this.setState((()=>null),(()=>{this.onSubmit()}))}),this.props.autosaveDelay))}__reset(e){return{changed:!1,changedMap:Object.create(null),resetCount:e.resetCount+1,submitted:!1,submitting:!1}}onReset(){this.mounted&&this.setState(this.__reset)}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.mounted&&this.setState((e=>e.submitted?null:{submitted:!0}));const n=this.props.onSubmit(this.getModel("submit"));return n instanceof Promise?(this.mounted&&this.setState({submitting:!0}),n.finally((()=>{this.mounted&&this.setState({submitting:!1})}))):Promise.resolve()}render(){return c.createElement(f.D.Provider,{value:this.getContext()},c.createElement("form",Object.assign({},this.getNativeFormProps())))}}g.displayName="Form",g.defaultProps={autosave:!1,autosaveDelay:0,error:null,model:Object.create(null),noValidate:!0,onSubmit(){}}},98949:function(e,n,t){"use strict";t.d(n,{k:function(){return s}});var a=t(3996),r=t.n(a),l=t(47215),i=t.n(l);class s{constructor(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];r()(this.constructor!==s,"Bridge cannot be instantiated (args=%o).",{args:n})}getError(e,n){return r()(!1,"%s have not implemented `getError` method (args=%o).",this.constructor.name,{name:e,error:n})}getErrorMessage(e,n){return r()(!1,"%s have not implemented `getErrorMessage` method (args=%o).",this.constructor.name,{name:e,error:n})}getErrorMessages(e){return r()(!1,"%s have not implemented `getErrorMessages` method (args=%o).",this.constructor.name,{error:e})}getField(e){return r()(!1,"%s have not implemented `getField` method (args=%o).",this.constructor.name,{name:e})}getInitialValue(e){return r()(!1,"%s have not implemented `getInitialValue` method (args=%o).",this.constructor.name,{name:e})}getInitialModel(){const e={},n=this.getSubfields();for(const t of n){const n=this.getInitialValue(t);i()(e,t,n)}return e}getProps(e){return r()(!1,"%s have not implemented `getProps` method (args=%o).",this.constructor.name,{name:e})}getSubfields(e){return r()(!1,"%s have not implemented `getSubfields` method (args=%o).",this.constructor.name,{name:e})}getType(e){return r()(!1,"%s have not implemented `getType` method (args=%o).",this.constructor.name,{name:e})}getValidator(e){return r()(!1,"%s have not implemented `getValidator` method (args=%o).",this.constructor.name,{options:e})}}},51674:function(e,n,t){"use strict";t.d(n,{X:function(){return i},s:function(){return l}});var a=t(59312),r=t(27378);function l(e){class n extends e{getNativeFormProps(){const e=super.getNativeFormProps(),{errorsField:n=this.getErrorsField(),submitField:t=this.getSubmitField()}=e,l=(0,a._T)(e,["errorsField","submitField"]),i=this.getAutoField();return l.children||(l.children=this.getContextSchema().getSubfields().map((e=>r.createElement(i,{key:e,name:e}))).concat([r.createElement(n,{key:"$ErrorsField"}),r.createElement(t,{key:"$SubmitField"})])),l}getAutoField(){return()=>null}getErrorsField(){return()=>null}getSubmitField(){return()=>null}}return n.Quick=l,n.displayName=`Quick${e.displayName}`,n}const i=l(t(6820).I)},23674:function(e,n,t){"use strict";t.d(n,{O:function(){return h},u:function(){return v}});var a=t(13784),r=t.n(a),l=t(30454),i=t.n(l),s=t(56141),o=t.n(s),d=t(50344),u=t.n(d),c=t(48159),m=t.n(c),p=t(96498),_=t.n(p);function v(e){class n extends e{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{error:null,validate:!1,validating:!1,validator:this.getContextSchema().getValidator(e.validator)}),this.onValidate=this.validate=this.onValidate.bind(this),this.onValidateModel=this.validateModel=this.onValidateModel.bind(this)}getContextError(){var e;return null!==(e=super.getContextError())&&void 0!==e?e:this.state.error}getContext(){return Object.assign(Object.assign({},super.getContext()),{validating:this.state.validating})}getNativeFormProps(){const e=super.getNativeFormProps();return m()(e,["onValidate","validate","validator"])}componentDidUpdate(e,n,t){super.componentDidUpdate(e,n,t);const{model:a,schema:r,validate:l,validator:i}=this.props;r!==e.schema||i!==e.validator?this.setState({validator:r.getValidator(i)},(()=>{f(l,this.state.validate)&&this.onValidate()})):!o()(a,e.model)&&f(l,this.state.validate)&&this.onValidateModel(a)}onChange(e,n){f(this.props.validate,this.state.validate)&&this.onValidate(e,n),super.onChange(e,n)}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{error:null,validate:!1,validating:!1})}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.setState({submitted:!0,validate:!0});const n=this.onValidate().then((e=>null!==e?Promise.reject(e):super.onSubmit().catch((e=>{throw this.setState({error:e}),e}))));return n.catch(u()),n}onValidate(e,n){let t=this.getContextModel();return t&&e&&(t=_()(r()(t),e,i()(n),r())),this.onValidateModel(t)}onValidateModel(e){var n=this;const t=this.getModel("validate",e),a=function(e){function n(n,t){return n instanceof Promise?(e(),n.then(t)):t(n)}return n}((()=>{this.setState({validating:!0})}));return a(this.state.validator(t),(function(e){return void 0===e&&(e=null),a(n.props.onValidate(t,e),(function(e){var t;return void 0===e&&(e=null),e=n.props.error===e?null:e,n.setState((n=>n.error!==e||n.validating?{error:e,validating:!1}:null)),Promise.resolve(null!==(t=n.props.error)&&void 0!==t?t:e)}))}))}}return n.Validated=v,n.displayName=`Validated${e.displayName}`,n.defaultProps=Object.assign(Object.assign({},e.defaultProps),{onValidate(e,n){return n},validate:"onChangeAfterSubmit"}),n}function f(e,n){return"onChange"===e||"onChangeAfterSubmit"===e&&n}const h=v(t(6820).I)},76424:function(e,n,t){"use strict";t.d(n,{e:function(){return o}});var a=t(25389),r=t.n(a),l=t(27378),i=t(34361),s=t(68591);function o(e,n){function t(t){const[a,o]=(0,s.U)(t.name,t,n),d=function(e,n,t){if("leaf"===(null==t?void 0:t.kind))return e;const a=""!==n.name,l=Object.keys(e.state).some((e=>null!=n[e]));if(!a&&!l)return e;const i=Object.assign({},e);return a&&(i.name=i.name.concat(n.name)),l&&(i.state=r()(i.state,((e,t)=>{const a=n[t];return null!=a?!!a:e}))),i}(o,t,n),u=l.createElement(e,Object.assign({},t,a));return o===d?u:l.createElement(i.D.Provider,{children:u,value:d})}return t.displayName=`${e.displayName||e.name}Field`,Object.assign(t,{Component:e,options:n})}},34361:function(e,n,t){"use strict";t.d(n,{D:function(){return a}});const a=(0,t(27378).createContext)(null)},6846:function(e,n,t){"use strict";t.d(n,{a:function(){return o}});var a=t(59312),r=t(3996),l=t.n(r),i=t(27378),s=t(68591);function o(e){const n=(0,i.createContext)(e);return Object.assign((function(e){var t,{experimental_absoluteName:r}=e,o=(0,a._T)(e,["experimental_absoluteName"]);const d={absoluteName:r},[u,c]=(0,s.U)(o.name,o,d),m=(0,i.useContext)(n)(u,c);return l()(m,"AutoField received no component for: %s",u.name),"options"in m&&"leaf"===(null===(t=m.options)||void 0===t?void 0:t.kind)?(0,i.createElement)(m.Component,u):(0,i.createElement)(m,o)}),{componentDetectorContext:n,defaultComponentDetector:e})}},11561:function(e,n,t){"use strict";t.d(n,{z:function(){return l}});const a=[],r=new Set,l=Object.assign((function(e){const n=Object.assign({},e);for(const t in e)r.has(t)&&delete n[t];return n}),{register(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];n.forEach((e=>{r.has(e)||(a.push(e),r.add(e))})),a.sort()},registered:a});l.register("changed","error","errorMessage","field","fieldType","fields","name","onChange","value","disabled","showInlineError","component")},65507:function(e,n,t){"use strict";t.d(n,{m:function(){return c}});const a=/[.[\]]/,r=/"/g;function l(e){return""===e||a.test(e)?`["${e.replace(r,'\\"')}"]`:e}function i(e,n){const t=l(e);return t===e?n?`.${e}`:e:t}const s=/^\["(.*)"]$/,o=/\\"/g;function d(e){const n=s.exec(e);return n?n[1].replace(o,'"'):e}const u=/^([^.[\]]*(?:\.[^.[\]]+)*)(?:\.?(\["(?:(?:[^"]|\\")*?[^\\])?"])\.?(.*))?$/;const c=Object.assign((function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];const a=null===n[0],r=[];for(let l=0;l!==n.length;++l){const e=n[l];if(e||0===e)if("string"==typeof e){const t=u.exec(e);if(t){const[,e,a,i]=t;e&&(e.includes(".")?r.push(...e.split(".")):r.push(e)),a&&(r.push(d(a)),i&&(n[l--]=i))}else r.push(e)}else if(Array.isArray(e)){if(e.length){const t=Math.min(l+1,e.length);l-=t,n.splice(l+1,t,...e)}}else r.push(""+e)}return a?r.map(l):r.map(i).join("")}),{escape:l,unescape:d})},68591:function(e,n,t){"use strict";t.d(n,{U:function(){return u}});var a=t(99729),r=t.n(a),l=t(25389),i=t.n(l),s=t(27378),o=t(65507),d=t(55201);function u(e,n,t){var a,l,u;const c=(0,d.c)(),m=(0,o.m)((null==t?void 0:t.absoluteName)?"":c.name,e),p=c.schema.getField(m),_=!1!==(null==t?void 0:t.initialValue),v=_?(0,s.useRef)(!1):{current:!1},f=i()(c.state,((e,t)=>{const a=n[t];return null!=a?!!a:e})),h=!!r()(c.changedMap,m),b=c.schema.getError(m,c.error),g=c.schema.getErrorMessage(m,c.error),E=c.schema.getType(m),y=c.schema.getSubfields(m),O=c.schema.getProps(m),C=null!==(l=null!==(a=n.label)&&void 0!==a?a:O.label)&&void 0!==l?l:"",k=(0,s.useMemo)((()=>c.randomId()),[]),j=(0,s.useCallback)((function(e,n){void 0===n&&(n=m),v.current=!0,c.onChange(n,e)}),[c.onChange,m]),P=r()(c.model,m);let x,M=null!==(u=n.value)&&void 0!==u?u:P;_&&(v.current||(void 0===M?(M=c.schema.getInitialValue(m),x=M):void 0!==n.value&&n.value!==P&&(x=n.value)),(0,s.useEffect)((()=>{void 0!==x&&j(x)}),[]));return[Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:k},f),{changed:h,error:b,errorMessage:g,field:p,fieldType:E,fields:y,onChange:j,value:M}),O),n),{label:C,name:m}),c]}},55201:function(e,n,t){"use strict";t.d(n,{c:function(){return s}});var a=t(3996),r=t.n(a),l=t(27378),i=t(34361);function s(){const e=(0,l.useContext)(i.D);return r()(null!==e,"useForm must be used within a form.\n\nTwo most common reasons for this error are:\n1. Component calling this function doesn't have a parent Form component in the tree.\n2. A duplicate uniforms dependency is installed in node_modules.\n\nFor more info check FAQ: https://uniforms.tools/docs/faq/#useform-must-be-used-within-a-form\n "),e}},37126:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return Playground},d:function(){return PlaygroundWrap}});var _home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(25773),antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(64222),classnames__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(60042),classnames__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__),lodash_omit__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(48159),lodash_omit__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(27378),react_frame_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5766),uniforms__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23674),uniforms__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(34361),uniforms__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(55201),uniforms__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(76424),_index_module_css__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4940),_lib_presets__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5037),_lib_schema__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5413),_lib_styles__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(27611),_lib_universal__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(80912),_lib_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(37309);class Playground extends react__WEBPACK_IMPORTED_MODULE_2__.Component{static getDerivedStateFromError(e){return{error:e}}constructor(){super(...arguments);const e=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.clean((0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.mB)());try{_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.validate(e)}catch(n){n.details.forEach((n=>{let{name:t}=n;e[t]=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.getDefinition(t).defaultValue}))}this.state=e,this.onChange=this.onChange.bind(this)}componentDidMount(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}componentDidUpdate(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}onChange(e,n){"preset"===e&&this.setState((e=>({props:{...e.props,schema:_lib_presets__WEBPACK_IMPORTED_MODULE_5__.Z[n]}}))),this.setState({error:void 0,[e]:n})}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundForm,{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z.playground,model:this.state,onChange:this.onChange,schema:_lib_schema__WEBPACK_IMPORTED_MODULE_6__.J},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-column"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement("nav",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-toolbar"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"preset"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"theme"})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPropsField,{name:"props",spellCheck:!1})),this.state.error?react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",{children:""+this.state.error}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPreviewField,{name:"props",nameTheme:"theme"}))}}class PlaygroundForm extends uniforms__WEBPACK_IMPORTED_MODULE_10__.O{getContextState(){return{...super.getContextState(),theme:this.props.model.theme}}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(uniforms__WEBPACK_IMPORTED_MODULE_11__.D.Provider,{value:this.getContext()},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",lodash_omit__WEBPACK_IMPORTED_MODULE_1___default()(this.getNativeFormProps(),["onSubmit"])))}}const PlaygroundModelDebug=()=>{const{model:e}=(0,uniforms__WEBPACK_IMPORTED_MODULE_12__.c)();return react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("code",null,`const model = ${JSON.stringify(e,null,2)};`)))};class PlaygroundPreview extends react__WEBPACK_IMPORTED_MODULE_2__.Component{constructor(){super(...arguments),this._schema=eval(`(${this.props.value.schema})`)}UNSAFE_componentWillReceiveProps(props){this.props.value.schema!==props.value.schema&&(this._schema=eval(`(${props.value.schema})`))}render(){const{AutoFields:e,AutoForm:n,ErrorsField:t,SubmitField:a}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[this.props.theme||"unstyled"],{asyncOnSubmit:r,asyncOnValidate:l,schema:i,...s}=this.props.value;return s.schema=this._schema,r&&(s.onSubmit=()=>new Promise((e=>{setTimeout(e,1e3)}))),l&&(s.onValidate=(e,n)=>new Promise((e=>{setTimeout((()=>{e(n)}),1e3)}))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:this.props.theme},this.props.errorMessage?react__WEBPACK_IMPORTED_MODULE_2__.createElement("span",{children:this.props.errorMessage}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(n,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({key:(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.nN)(i)},s),react__WEBPACK_IMPORTED_MODULE_2__.createElement(e,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(t,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(a,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundModelDebug,null)))}}const PlaygroundPreviewField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundPreview);class PlaygroundProps extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{onChange:e,schema:n,theme:t,value:a}=this.props,r="antd"===t,l="bootstrap4"===t,i="material"===t,s="semantic"===t,{AutoForm:o,BoolField:d,ErrorsField:u,LongTextField:c,NumField:m}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[t||"unstyled"];return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:t},react__WEBPACK_IMPORTED_MODULE_2__.createElement(o,{autosave:!0,autosaveDelay:100,model:a,onSubmit:e,schema:n},react__WEBPACK_IMPORTED_MODULE_2__.createElement(d,{name:"autosave"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(m,{name:"autosaveDelay",disabled:!a.autosave}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(d,{name:"disabled"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(d,{name:"readOnly"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(d,{name:"label"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(d,{name:"placeholder"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(d,{name:"showInlineError",disabled:!(r||l||i||s)}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(d,{name:"asyncOnSubmit"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(d,{name:"asyncOnValidate"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({name:"schema"},i&&{fullWidth:!0,rowsMax:20})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,null)))}}const PlaygroundPropsField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundProps);class PlaygroundSelect extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{options:e,onChange:n,value:t}=this.props;return react__WEBPACK_IMPORTED_MODULE_2__.createElement("select",{onChange:e=>n(e.target.value),value:t},e.map((e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement("option",{key:e.key??e.value,value:e.value},e.label??e.value))))}}const PlaygroundSelectField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundSelect);class PlaygroundWrap extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{children:e,frameProps:n,theme:t}=this.props,a=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,e,_lib_styles__WEBPACK_IMPORTED_MODULE_7__.Z[t]);if("material"===t||"mui"===t)return react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{children:a,className:classnames__WEBPACK_IMPORTED_MODULE_0___default()("frame-root",_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"])});let r=a;return"antd"===t&&(r=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.Kr,null,(e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__.default,{getPopupContainer:()=>e.document.body},a)))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.ZP,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({children:r,className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"]},n))}}},5037:function(e,n){"use strict";const t=e=>e[0].slice(5,-3).replace(/([\r\n]+) {4}/g,"$1"),a={"Welcome!":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + date: { type: Date, defaultValue: new Date() }, + adult: Boolean, + size: { + type: String, + defaultValue: 'm', + allowedValues: ['xs', 's', 'm', 'l', 'xl'], + }, + rating: { + type: Number, + allowedValues: [1, 2, 3, 4, 5], + uniforms: { checkboxes: true }, + }, + friends: { type: Array, minCount: 1 }, + 'friends.$': Object, + 'friends.$.name': { type: String, min: 3 }, + 'friends.$.age': { type: Number, min: 0, max: 150 }, + }) + }) + `,"Address (JSONSchema)":t` + (() => { + const ajv = new Ajv({ allErrors: true, useDefaults: true, keywords: ["uniforms"] }); + const schema = { + title: 'Address', + type: 'object', + properties: { + city: { type: 'string' }, + state: { type: 'string' }, + street: { type: 'string' }, + zip: { type: 'string', pattern: '[0-9]{5}' }, + }, + required: ['street', 'zip', 'state'], + }; + + function createValidator(schema) { + const validator = ajv.compile(schema); + + return (model) => { + validator(model); + + if (validator.errors && validator.errors.length) { + return { details: validator.errors }; + } + }; + } + + const validator = createValidator(schema); + + return new JSONSchemaBridge({ schema, validator }); + })() + `,"Address (SimpleSchema)":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + city: { + type: String, + optional: true, + max: 50, + }, + state: String, + street: { type: String, max: 100 }, + zip: { + type: String, + regEx: /^[0-9]{5}$/, + }, + }) + }) + `,"Address (Zod)":t` + new ZodBridge({ + schema: z.object({ + city: z.string().max(50).optional(), + state: z.string(), + street: z.string().max(100), + zip: z.string().regex(/^[0-9]{5}$/), + }) + }) + `,"All Fields (SimpleSchema)":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + text: { type: String }, + num: { type: Number }, + bool: { type: Boolean }, + nested: { type: Object }, + 'nested.text': { type: String }, + date: { type: Date }, + list: { type: Array }, + 'list.$': { + type: String, + uniforms: { label: 'List Text', placeholder: 'List Text Placeholder' }, + }, + select: { + type: String, + uniforms: { + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + radio: { + type: String, + uniforms: { + checkboxes: true, + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + }) + }) + `,"All Fields (Zod)":t` + new ZodBridge({ + schema: z.object({ + text: z.string(), + num: z.number(), + bool: z.boolean(), + nested: z.object({ text: z.string() }), + date: z.date(), + // TODO: Custom label and placeholder. + list: z.array(z.string()), + select: z.enum(['a', 'b']), + // TODO: Enums with custom props. + radio: z.enum(['a', 'b']), + }) + }) + `};n.Z=a},5413:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return bridge},f:function(){return schema}});var ajv__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(86236),ajv__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(ajv__WEBPACK_IMPORTED_MODULE_0__),message_box__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(28622),simpl_schema__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(13762),simpl_schema__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(simpl_schema__WEBPACK_IMPORTED_MODULE_2__),uniforms__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(11561),uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(73633),uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(12005),uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(48616),zod__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(84200),_presets__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5037),_universal__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(80912);uniforms__WEBPACK_IMPORTED_MODULE_8__.z.register("const");const scope="undefined"==typeof window?__webpack_require__.g:window;simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().extendOptions(["uniforms"]),scope.Ajv=ajv__WEBPACK_IMPORTED_MODULE_0___default(),scope.JSONSchemaBridge=uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__.j,scope.SimpleSchema=simpl_schema__WEBPACK_IMPORTED_MODULE_2___default(),scope.SimpleSchema2Bridge=uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V,scope.ZodBridge=uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__.K,scope.z=zod__WEBPACK_IMPORTED_MODULE_9__.z,message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:""}}});const propsSchema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({autosave:{optional:!0,type:Boolean},autosaveDelay:{optional:!0,type:simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().Integer},disabled:{optional:!0,type:Boolean},label:{optional:!0,type:Boolean},placeholder:{optional:!0,type:Boolean},readOnly:{optional:!0,type:Boolean},showInlineError:{optional:!0,type:Boolean},asyncOnSubmit:{optional:!0,type:Boolean,label:"Async onSubmit (1 sec)"},asyncOnValidate:{optional:!0,type:Boolean,label:"Async onValidate (1 sec)"},schema:{optional:!0,type:String,custom(){try{return void eval(`(${this.value??""})`)}catch(error){const e=error instanceof Error?error.message:String(error);return message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:e}}}),"syntax"}}}}),propsBridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:propsSchema}),schema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({preset:{type:String,defaultValue:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0],allowedValues:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)},props:{type:Object,blackbox:!0,defaultValue:{autosave:!1,autosaveDelay:100,disabled:!1,label:!0,placeholder:!1,readOnly:!1,schema:_presets__WEBPACK_IMPORTED_MODULE_6__.Z[Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0]],showInlineError:!1,asyncOnSubmit:!1,asyncOnValidate:!1},uniforms:{schema:propsBridge}},theme:{type:String,uniforms:{transform:e=>`uniforms-${e}`},defaultValue:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)[0],allowedValues:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)}}),bridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:schema})},27611:function(e,n,t){"use strict";var a=t(27378);const r=a.createElement("style",{children:'\n body {\n margin: 0;\n }\n\n textarea[name="schema"] {\n font-family: monospace !important;\n min-height: 20em !important;\n }\n\n .frame-root {\n padding: 1rem !important;\n }\n',key:"common"}),l=e=>e.map(((e,n)=>a.createElement("link",{key:n,rel:"stylesheet",href:e}))).concat(r),i={antd:l(["https://cdnjs.cloudflare.com/ajax/libs/antd/4.4.0/antd.min.css"]),bootstrap4:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css"]),bootstrap5:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css"]),material:l([]),mui:l([]),semantic:l(["https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.7/semantic.min.css"]),unstyled:l([])};n.Z=i},80912:function(e,n,t){"use strict";t.d(n,{Pt:function(){return Hr},UE:function(){return Qr},NE:function(){return Jr},ME:function(){return Xr},yc:function(){return Gr},hI:function(){return Yr},mg:function(){return el},hl:function(){return nl},nv:function(){return tl},nN:function(){return rl},np:function(){return al}});var a={};t.r(a),t.d(a,{AutoField:function(){return he},AutoFields:function(){return ge},AutoForm:function(){return De},BaseForm:function(){return Oe},BoolField:function(){return F},DateField:function(){return A},ErrorField:function(){return Ae},ErrorsField:function(){return Pe},HiddenField:function(){return Re},ListAddField:function(){return K},ListDelField:function(){return H},ListField:function(){return ae},ListItemField:function(){return ee},LongTextField:function(){return Se},NestField:function(){return re},NumField:function(){return ie},QuickForm:function(){return Me},RadioField:function(){return ue},SelectField:function(){return _e},SubmitField:function(){return xe},TextField:function(){return fe},ValidatedForm:function(){return Fe},ValidatedQuickForm:function(){return Te},wrapField:function(){return N}});var r={};t.r(r),t.d(r,{AutoField:function(){return _n},AutoFields:function(){return vn},AutoForm:function(){return Cn},BaseForm:function(){return fn},BoolField:function(){return Ke},DateField:function(){return He},ErrorField:function(){return kn},ErrorsField:function(){return hn},HiddenField:function(){return jn},ListAddField:function(){return Xe},ListDelField:function(){return Ye},ListField:function(){return nn},ListItemField:function(){return en},LongTextField:function(){return Pn},NestField:function(){return tn},NumField:function(){return an},QuickForm:function(){return En},RadioField:function(){return sn},SelectField:function(){return mn},SubmitField:function(){return gn},TextField:function(){return pn},ValidatedForm:function(){return yn},ValidatedQuickForm:function(){return On},gridClassName:function(){return ze},wrapField:function(){return Ve}});var l={};t.r(l),t.d(l,{AutoField:function(){return Xn},AutoFields:function(){return Gn},AutoForm:function(){return it},BaseForm:function(){return Yn},BoolField:function(){return Dn},DateField:function(){return An},ErrorField:function(){return st},ErrorsField:function(){return et},HiddenField:function(){return ot},ListAddField:function(){return Ln},ListDelField:function(){return Bn},ListField:function(){return Zn},ListItemField:function(){return Wn},LongTextField:function(){return dt},NestField:function(){return Un},NumField:function(){return $n},QuickForm:function(){return at},RadioField:function(){return Kn},SelectField:function(){return Hn},SubmitField:function(){return tt},TextField:function(){return Jn},ValidatedForm:function(){return rt},ValidatedQuickForm:function(){return lt},gridClassName:function(){return Fn},wrapField:function(){return Tn}});var i={};t.r(i),t.d(i,{AutoField:function(){return zt},AutoFields:function(){return Vt},AutoForm:function(){return Yt},BaseForm:function(){return Kt},BoolField:function(){return gt},DateField:function(){return Ct},ErrorField:function(){return ea},ErrorsField:function(){return qt},HiddenField:function(){return na},ListAddField:function(){return xt},ListDelField:function(){return Nt},ListField:function(){return Tt},ListItemField:function(){return Ft},LongTextField:function(){return ta},NestField:function(){return Dt},NumField:function(){return It},QuickForm:function(){return Jt},RadioField:function(){return St},SelectField:function(){return Ut},SubmitField:function(){return Ht},TextField:function(){return $t},ValidatedForm:function(){return Xt},ValidatedQuickForm:function(){return Gt},wrapField:function(){return bt}});var s={};t.r(s),t.d(s,{AutoField:function(){return La},AutoFields:function(){return Sa},AutoForm:function(){return Va},BaseForm:function(){return Ba},BoolField:function(){return ca},DateField:function(){return va},ErrorField:function(){return Ka},ErrorsField:function(){return Wa},HiddenField:function(){return qa},ListAddField:function(){return ga},ListDelField:function(){return Oa},ListField:function(){return ka},ListItemField:function(){return Ca},LongTextField:function(){return Qa},NestField:function(){return ja},NumField:function(){return Pa},QuickForm:function(){return Ua},RadioField:function(){return Ta},SelectField:function(){return Aa},SubmitField:function(){return Za},TextField:function(){return Ra},ValidatedForm:function(){return $a},ValidatedQuickForm:function(){return za},wrapField:function(){return ua}});var o={};t.r(o),t.d(o,{AutoField:function(){return Ha.Z},AutoFields:function(){return Ja},AutoForm:function(){return Xa.Z},BaseForm:function(){return Ga.Z},BoolField:function(){return Ya.Z},DateField:function(){return er.Z},ErrorField:function(){return nr},ErrorsField:function(){return tr.Z},HiddenField:function(){return ar},ListAddField:function(){return rr.Z},ListDelField:function(){return lr.Z},ListField:function(){return ir.Z},ListItemField:function(){return sr.Z},LongTextField:function(){return or},NestField:function(){return dr.Z},NumField:function(){return ur.Z},QuickForm:function(){return cr.Z},RadioField:function(){return mr.Z},SelectField:function(){return pr.Z},SubmitField:function(){return _r.Z},TextField:function(){return vr.Z},ValidatedForm:function(){return fr.Z},ValidatedQuickForm:function(){return hr.Z}});var d={};t.r(d),t.d(d,{AutoField:function(){return Rr},AutoFields:function(){return Lr},AutoForm:function(){return zr},BaseForm:function(){return Sr},BoolField:function(){return br},DateField:function(){return yr},ErrorField:function(){return Vr},ErrorsField:function(){return Br},HiddenField:function(){return Kr},ListAddField:function(){return Or},ListDelField:function(){return Cr},ListField:function(){return jr},ListItemField:function(){return kr},LongTextField:function(){return qr.Z},NestField:function(){return Pr},NumField:function(){return xr},QuickForm:function(){return Zr},RadioField:function(){return Fr},SelectField:function(){return Ir},SubmitField:function(){return Wr},TextField:function(){return Ar},ValidatedForm:function(){return Ur},ValidatedQuickForm:function(){return $r}});var u=t(25773),c=t(27378),m=t(3996),p=t.n(m),_=t(6846),v=t(59312),f=t(30219),h=t.n(f),b=t(21473),g=t.n(b),E=t(98591),y=t(56369),O=t(11561),C=t(76424),k=t(31115),j=t.n(k),P=t(5041),x=t(62004);const M={marginBottom:"12px"};function N(e,n){let{colon:t,error:a,errorMessage:r,extra:l,help:i,id:s,info:o,label:d,labelCol:u,required:m,showInlineError:p,validateStatus:_,wrapperCol:v,wrapperStyle:f=M}=e;const h=!!d&&c.createElement("span",null,d,!!o&&c.createElement("span",null,"\xa0",c.createElement(x.default,{title:o},c.createElement(j(),null))));return c.createElement(P.Z.Item,{colon:t,hasFeedback:!0,help:i||p&&!!a&&r,extra:l,htmlFor:s,label:h,labelCol:u,required:m,style:f,validateStatus:a?"error":_,wrapperCol:v},n)}O.z.register("checkboxes","colon","disableItem","labelCol","validateStatus","wrapperCol","wrapperStyle");var F=(0,C.e)((function(e){var{checkbox:n=!1,checkedChildren:t=c.createElement(h(),null),disabled:a,inputRef:r,name:l,onChange:i,readOnly:s,unCheckedChildren:o=c.createElement(g(),null),value:d}=e,u=(0,v._T)(e,["checkbox","checkedChildren","disabled","inputRef","name","onChange","readOnly","unCheckedChildren","value"]);const m=n?E.Z:y.Z;return N(u,c.createElement(m,Object.assign({checked:d||!1,checkedChildren:t,disabled:a,name:l,onChange:()=>s?void 0:i(!d),ref:r,unCheckedChildren:o},(0,O.z)(u))))}),{kind:"leaf"}),T=t(82290),D=t(61320),I=t.n(D);const w={width:"100%"};var A=(0,C.e)((function(e){var{showTime:n=!0,style:t=w}=e,a=(0,v._T)(e,["showTime","style"]);return N(a,c.createElement(T.Z,Object.assign({disabled:a.disabled,inputReadOnly:a.readOnly,name:a.name,onChange:e=>{a.readOnly||a.onChange(e?e.toDate():void 0)},placeholder:a.placeholder,ref:a.inputRef,showTime:n,style:t,value:a.value&&I()(a.value)},(0,O.z)(a))))}),{kind:"leaf"}),R=t(60042),L=t.n(R),S=t(94037),B=t.n(S),W=t(76676),Z=t(30454),U=t.n(Z),$=t(65507),z=t(68591);const V={width:"100%"};var K=(0,C.e)((function(e){var{disabled:n,icon:t=c.createElement(B(),null),name:a,readOnly:r,size:l="small",style:i=V,type:s="dashed",value:o}=e,d=(0,v._T)(e,["disabled","icon","name","readOnly","size","style","type","value"]);const u=(0,$.m)(null,a),m=(0,$.m)(u.slice(0,-1)),p=(0,z.U)(m,{},{absoluteName:!0})[0],_=!(n||p.maxCount<=p.value.length);return c.createElement(W.default,Object.assign({},(0,O.z)(d),{disabled:!_,icon:t,onClick:()=>{r||p.onChange(p.value.concat([U()(o)]))},size:l,style:i,type:s}))}),{initialValue:!1,kind:"leaf"}),q=t(85221),Q=t.n(q);var H=(0,C.e)((function(e){var{disabled:n,icon:t=c.createElement(Q(),null),name:a,readOnly:r,shape:l="circle",size:i="small",type:s="ghost"}=e,o=(0,v._T)(e,["disabled","icon","name","readOnly","shape","size","type"]);const d=(0,$.m)(null,a),u=+d[d.length-1],m=(0,$.m)(d.slice(0,-1)),p=(0,z.U)(m,{},{absoluteName:!0})[0];return n||(n=r||p.minCount>=p.value.length),c.createElement(W.default,Object.assign({},(0,O.z)(o),{disabled:n,icon:t,onClick:()=>{const e=p.value.slice();e.splice(u,1),p.onChange(e)},shape:l,size:i,type:s}))}),{initialValue:!1,kind:"leaf"});const J={float:"right",marginBottom:"10px",marginLeft:"10px",marginRight:"6px",width:"20px"},X={marginBottom:"24px",overflow:"hidden"},G={borderBottom:"1px solid #DDD",height:"20px",marginTop:"-8px"},Y={width:"100%"};var ee=(0,C.e)((function(e){let{children:n=c.createElement(he,{label:null,name:""})}=e;return c.createElement("div",null,c.createElement("div",{style:J},c.createElement(H,{className:"top aligned",name:""})),c.createElement("div",{style:X},c.createElement("div",{style:G})),c.createElement("div",{style:Y},n))}));const ne={marginBottom:"5px",marginTop:"5px",padding:"10px"},te={borderColor:"rgb(255, 85, 0)"};var ae=(0,C.e)((function(e){var{children:n=c.createElement(ee,{name:"$"}),className:t,error:a,errorMessage:r,info:l,itemProps:i,label:s,labelCol:o,showInlineError:d,style:u=ne,value:m,wrapperCol:p}=e,_=(0,v._T)(e,["children","className","error","errorMessage","info","itemProps","label","labelCol","showInlineError","style","value","wrapperCol"]);const f=a?u?Object.assign(Object.assign({},te),u):te:u;return c.createElement("div",Object.assign({},(0,O.z)(_),{style:f,className:L()([t,"ant-list","ant-list-bordered"])}),!!s&&c.createElement("div",null,s,!!l&&c.createElement("span",null,"\xa0",c.createElement(x.default,{title:l},c.createElement(j(),null)))),!(!a||!d)&&c.createElement("div",null,r),null==m?void 0:m.map(((e,t)=>c.Children.map(n,((e,n)=>{var a;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+t),labelCol:o,wrapperCol:p},i)):e})))),c.createElement(K,{name:"$"}))}));var re=(0,C.e)((function(e){var{children:n,error:t,errorMessage:a,fields:r,itemProps:l,label:i,showInlineError:s}=e,o=(0,v._T)(e,["children","error","errorMessage","fields","itemProps","label","showInlineError"]);return c.createElement("div",Object.assign({},(0,O.z)(o)),i&&c.createElement("label",null,i),!(!t||!s)&&c.createElement("div",null,a),n||r.map((e=>c.createElement(he,Object.assign({key:e,name:e},l)))))})),le=t(15425);var ie=(0,C.e)((function(e){return N(e,c.createElement(le.Z,Object.assign({disabled:e.disabled,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(""+n);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),style:{width:"100%"},value:e.value},(0,O.z)(e))))}),{kind:"leaf"}),se=t(58946);const oe="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,de={display:"block"};var ue=(0,C.e)((function(e){var n,t,a;return N(e,c.createElement(se.ZP.Group,Object.assign({},(0,O.z)(e),{disabled:e.disabled,name:e.name,onChange:n=>{e.readOnly||e.onChange(n.target.value)},value:null!==(n=e.value)&&void 0!==n?n:"",options:null===(t=e.options)||void 0===t?void 0:t.map((e=>{var n;return Object.assign(Object.assign({},e),{label:null!==(n=e.label)&&void 0!==n?n:e.value})}))}),null===(a=e.options)||void 0===a?void 0:a.map((n=>{var t,a,r;return c.createElement(se.ZP,{id:`${e.id}-${r=n.value,oe(encodeURIComponent(r)).replace(/=+$/,"")}`,key:null!==(t=n.key)&&void 0!==t?t:n.value,style:de,value:n.value,disabled:n.disabled},null!==(a=n.label)&&void 0!==a?a:n.value)}))))}),{kind:"leaf"}),ce=t(99388),me=t(69601),pe=t(92049);var _e=(0,C.e)((function(e){var n,t;const a=e.fieldType===Array?ce.default:me.default,r=(0,O.z)(e);return N(e,e.checkboxes?c.createElement("span",Object.assign({},r),c.createElement(a,Object.assign({},r,{disabled:e.disabled,name:e.name,onChange:n=>{e.readOnly||e.onChange(e.fieldType===Array?n:n.target.value)},options:null===(n=e.options)||void 0===n?void 0:n.map((e=>{var n;return Object.assign(Object.assign({},e),{label:null!==(n=e.label)&&void 0!==n?n:e.value})})),value:e.value}))):c.createElement(pe.Z,Object.assign({allowClear:!e.required,disabled:e.disabled,mode:e.fieldType===Array?"multiple":void 0,name:e.name,onChange:n=>{e.readOnly||e.onChange(n)},placeholder:e.placeholder,ref:e.inputRef,value:e.fieldType===Array?Array.isArray(e.value)?e.value.filter((e=>void 0!==e)):[]:e.value},r),null===(t=e.options)||void 0===t?void 0:t.map((n=>{var t,a,r;return c.createElement(pe.Z.Option,{disabled:n.disabled,key:null!==(t=n.key)&&void 0!==t?t:n.value,value:n.value,id:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:escape(n.value)}`},null!==(r=n.label)&&void 0!==r?r:n.value)}))))}),{kind:"leaf"}),ve=t(74105);var fe=(0,C.e)((function(e){var n,t;return N(e,c.createElement(ve.Z,Object.assign({disabled:e.disabled,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""},(0,O.z)(e))))}),{kind:"leaf"});var he=(0,_.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?ue:_e;switch(e.fieldType){case Array:return ae;case Boolean:return F;case Date:return A;case Number:return ie;case Object:return re;case String:return fe}return p()(!1,"Unsupported field type: %s",e.fieldType)})),be=t(55201);function ge(e){var{element:n=c.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,c.createElement)(he,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Ee=t(39850),ye=t(6820);var Oe=function e(n){class t extends n{getNativeFormProps(){const e=super.getNativeFormProps(),{className:n,layout:t="vertical"}=e,a=(0,v._T)(e,["className","layout"]);return Object.assign(Object.assign({},a),{className:L()("ant-form","ant-form-"+t,n)})}}return t.AntD=e,t.displayName=`AntD${n.displayName}`,t}(ye.I),Ce=t(51674);const ke={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},je={margin:"3px"};var Pe=function(e){var{children:n,style:t=ke}=e,a=(0,v._T)(e,["children","style"]);const{error:r,schema:l}=(0,be.c)();return r||n?c.createElement("div",Object.assign({style:t},(0,O.z)(a)),n,c.createElement("ul",null,l.getErrorMessages(r).map(((e,n)=>c.createElement("li",{key:n,style:je},e))))):null};var xe=function(e){var{disabled:n,inputRef:t,value:a="Submit"}=e,r=(0,v._T)(e,["disabled","inputRef","value"]);const{error:l,state:i}=(0,be.c)();return c.createElement(W.default,Object.assign({disabled:void 0===n?!(!l&&!i.disabled):n,htmlType:"submit",ref:t,type:"primary"},r),a)};var Me=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return he}getErrorsField(){return Pe}getSubmitField(){return xe}}return t.Quick=e,t}(Oe),Ne=t(23674);var Fe=function e(n){class t extends(Ne.O.Validated(n)){}return t.Validated=e,t}(Oe),Te=Fe.Validated(Me.Quick(Oe));var De=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Te);const Ie={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},we={margin:"3px"};var Ae=(0,C.e)((function(e){var{children:n,error:t,errorMessage:a,style:r=Ie}=e,l=(0,v._T)(e,["children","error","errorMessage","style"]);return t?c.createElement("div",Object.assign({style:r},(0,O.z)(l)),n||c.createElement("div",{style:we},a)):null}),{initialValue:!1,kind:"leaf"});function Re(e){var n,{value:t}=e,a=(0,v._T)(e,["value"]);const r=(0,z.U)(a.name,a,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:c.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var Le=t(10777);var Se=(0,C.e)((function(e){var n,{rows:t=5}=e,a=(0,v._T)(e,["rows"]);return N(a,c.createElement(Le.default,Object.assign({disabled:a.disabled,name:a.name,onChange:e=>a.onChange(e.target.value),placeholder:a.placeholder,readOnly:a.readOnly,ref:a.inputRef,rows:t,value:null!==(n=a.value)&&void 0!==n?n:""},(0,O.z)(a))))}),{kind:"leaf"}),Be=t(48159),We=t.n(Be);function Ze(e,n,t){const a="xs"===e?"":`${e}-`;return"label"===t?`col-${a}${n}`:`col-${a}${12-n}`}const Ue={xs:1,sm:2,md:3,lg:4,xl:5};function $e(e,n){return Ue[e]-Ue[n]}function ze(e,n){return"number"==typeof e?Ze("xs",e,n):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl},e)),Object.keys(e).sort($e).map((t=>Ze(t,e[t],n))).join(" ")):"":Ze("xs",parseInt(e),n)}function Ve(e,n){var{changed:t,className:a,disabled:r,error:l,errorMessage:i,grid:s,help:o,helpClassName:d,id:u,label:m,labelClassName:p,required:_,showInlineError:f,wrapClassName:h}=e,b=(0,v._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const g=!(!s&&!h),E=!(!l||!f)&&c.createElement("span",{className:"form-text text-danger"},i),y=!!o&&c.createElement("span",{className:L()("form-text",d||"text-muted")},o),C=!l&&t;return c.createElement("div",Object.assign({className:L()(a,"form-group",{"is-invalid":l,"is-valid":C,disabled:r,required:_,row:s})},We()((0,O.z)(b),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&c.createElement("label",{htmlFor:u,className:L()({"col-form-label":s,"text-danger":l,"text-success":C},ze(s,"label"),p)},m),g&&c.createElement("div",{className:L()(h,ze(s,"input"))},n,y,E),!g&&n,!g&&y,!g&&E)}var Ke=(0,C.e)((function(e){var{onChange:n}=e,t=(0,v._T)(e,["onChange"]);const{disabled:a,error:r,inline:l,inputClassName:i,inputRef:s,label:o,labelBefore:d,name:u,readOnly:m,value:p}=t;return Ve(Object.assign(Object.assign({},t),{label:d,value:t.value}),c.createElement("div",{className:L()(i,"form-check","checkbox",{"custom-control-inline":l,"text-danger":r,"text-success":!r&&t.changed})},c.createElement("label",{htmlFor:t.id,className:"form-check-label"},c.createElement("input",{checked:p||!1,className:"form-check-input",disabled:a,id:t.id,name:u,onChange:()=>{m||n(!p)},ref:s,type:"checkbox"}),"\xa0",o)))}),{kind:"leaf"});const qe=("object"==typeof t.g?t.g:window).Date,Qe=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var He=(0,C.e)((function(e){var n,{disabled:t,error:a,id:r,inputClassName:l,inputRef:i,max:s,min:o,name:d,onChange:u,placeholder:m,readOnly:p,value:_,type:f="datetime-local"}=e,h=(0,v._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return Ve(Object.assign(Object.assign({},h),{id:r}),c.createElement("input",{className:L()(l,"form-control",{"is-invalid":a,"is-valid":!a&&h.changed}),disabled:t,id:r,max:Qe(s),min:Qe(o),name:d,onChange:e=>{const n=new qe(e.target.valueAsNumber);n.getFullYear()<1e4?u(n):isNaN(e.target.valueAsNumber)&&u(void 0)},placeholder:m,readOnly:p,ref:i,type:f,value:null!==(n=Qe(_,f))&&void 0!==n?n:""}))}),{kind:"leaf"});function Je(e){var{addIcon:n,className:t,disabled:a,name:r,readOnly:l,value:i}=e,s=(0,v._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const o=(0,$.m)(null,r),d=(0,$.m)(o.slice(0,-1)),u=(0,z.U)(d,{},{absoluteName:!0})[0],m=!(a||u.maxCount<=u.value.length);function p(e){!m||l||"key"in e&&"Enter"!==e.key||u.onChange(u.value.concat([U()(i)]))}return c.createElement("div",Object.assign({},(0,O.z)(s),{className:L()("badge badge-pill float-right",t),onClick:p,onKeyDown:p,role:"button",tabIndex:0}),n)}Je.defaultProps={addIcon:c.createElement("i",{className:"octicon octicon-plus"})};var Xe=(0,C.e)(Je,{initialValue:!1,kind:"leaf"});function Ge(e){var{className:n,disabled:t,name:a,readOnly:r,removeIcon:l}=e,i=(0,v._T)(e,["className","disabled","name","readOnly","removeIcon"]);const s=(0,$.m)(null,a),o=+s[s.length-1],d=(0,$.m)(s.slice(0,-1)),u=(0,z.U)(d,{},{absoluteName:!0})[0];function m(e){if(!(t||"key"in e&&"Enter"!==e.key)){const e=u.value.slice();e.splice(o,1),u.onChange(e)}}return t||(t=r||u.minCount>=u.value.length),c.createElement("span",Object.assign({},(0,O.z)(i),{className:L()("badge badge-pill",n),onClick:m,onKeyDown:m,role:"button",tabIndex:0}),l)}Ge.defaultProps={removeIcon:c.createElement("i",{className:"octicon octicon-dash"})};var Ye=(0,C.e)(Ge,{initialValue:!1,kind:"leaf"});var en=(0,C.e)((function(e){let{children:n=c.createElement(_n,{className:"col-11",label:null,name:""}),removeIcon:t}=e;return c.createElement("div",{className:"row"},c.createElement("div",{className:"col-1"},c.createElement(Ye,{name:"",removeIcon:t})),n)}),{initialValue:!1});var nn=(0,C.e)((function(e){var{addIcon:n,children:t=c.createElement(en,{name:"$"}),className:a,error:r,errorMessage:l,itemProps:i,label:s,removeIcon:o,showInlineError:d,value:u}=e,m=(0,v._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return c.createElement("div",Object.assign({className:L()("card mb-3",a)},(0,O.z)(m)),c.createElement("div",{className:"card-body"},s&&c.createElement("div",{className:"card-title"},c.createElement("label",{className:"col-form-label"},s,"\xa0"),c.createElement(Xe,{addIcon:n,name:"$"}),!(!r||!d)&&c.createElement("span",{className:"text-danger"},l)),null==u?void 0:u.map(((e,n)=>c.Children.map(t,((e,t)=>{var a;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign(Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n)},i),{removeIcon:o})):e}))))))}));var tn=(0,C.e)((function(e){var{children:n,className:t,error:a,errorMessage:r,fields:l,itemProps:i,label:s,showInlineError:o}=e,d=(0,v._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return c.createElement("div",Object.assign({className:L()(t,{"has-error":a})},(0,O.z)(d)),s&&c.createElement("label",null,s),!(!a||!o)&&c.createElement("span",{className:"text-danger"},r),n||l.map((e=>c.createElement(_n,Object.assign({key:e,name:e},i)))))}));var an=(0,C.e)((function(e){var n;return Ve(e,c.createElement("input",{className:L()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(n.target.value);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});const rn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,ln=e=>rn(encodeURIComponent(e)).replace(/=+$/,"");var sn=(0,C.e)((function(e){var n;return Ve(e,null===(n=e.options)||void 0===n?void 0:n.map((n=>{var t,a,r,l;return c.createElement("div",{key:null!==(t=n.key)&&void 0!==t?t:n.value,className:L()(e.inputClassName,"form-check","radio",{"custom-control-inline":e.inline,"text-danger":e.error,"text-success":!e.error&&e.changed})},c.createElement("label",{htmlFor:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:ln(n.value)}`,className:"form-check-label"},c.createElement("input",{checked:n.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:ln(n.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(n.value)},type:"radio"})," ",null!==(l=n.label)&&void 0!==l?l:n.value))})))}),{kind:"leaf"}),on=t(20098),dn=t.n(on);const un="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,cn=e=>un(encodeURIComponent(e)).replace(/=+$/,"");var mn=(0,C.e)((function(e){var{options:n,checkboxes:t,disabled:a,error:r,fieldType:l,id:i,inline:s,inputClassName:o,inputRef:d,label:u,name:m,onChange:p,placeholder:_,readOnly:f,required:h,value:b}=e,g=(0,v._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return Ve(Object.assign(Object.assign({},g),{disabled:a,error:r,id:i,label:u,required:h}),t?null==n?void 0:n.map((e=>{var n,t,r,l;return c.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value,className:L()(o,"checkbox"+(s?"-inline":""))},c.createElement("label",{htmlFor:`${i}-${null!==(t=e.key)&&void 0!==t?t:cn(e.value)}`},c.createElement("input",{checked:E?null==b?void 0:b.includes(e.value):b===e.value,disabled:e.disabled||a,id:`${i}-${null!==(r=e.key)&&void 0!==r?r:cn(e.value)}`,name:m,onChange:()=>{f||p(E?dn()([e.value],b):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):c.createElement("select",{className:L()(o,"c-select form-control",{"is-invalid":r,"is-valid":!r&&g.changed}),disabled:a,id:i,multiple:E,name:m,onChange:e=>{if(!f){const n=e.target.value;if(E){const t=-1===e.target.selectedIndex;p(t?[]:dn()([n],b))}else p(""!==n?n:void 0)}},ref:d,value:null!=b?b:""},(!!_||!h||void 0===b)&&!E&&c.createElement("option",{value:"",disabled:h,hidden:h},_||u),null==n?void 0:n.map((e=>{var n,t;return c.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});var pn=(0,C.e)((function(e){var n,t;return Ve(We()(e,["autoComplete"]),c.createElement("input",{autoComplete:e.autoComplete,className:L()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});var _n=(0,_.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?sn:mn;switch(e.fieldType){case Array:return nn;case Boolean:return Ke;case Date:return He;case Number:return an;case Object:return tn;case String:return pn}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function vn(e){var{element:n=c.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,c.createElement)(_n,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var fn=function e(n){class t extends n{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),n=super.getNativeFormProps();return Object.assign(Object.assign({},We()(n,["grid"])),{className:L()("form",{error:e},n.className)})}}return t.Bootstrap4=e,t.displayName=`Bootstrap4${n.displayName}`,t}(ye.I);var hn=function(e){var{children:n,className:t}=e,a=(0,v._T)(e,["children","className"]);const{error:r,schema:l}=(0,be.c)();return r||n?c.createElement("div",Object.assign({className:L()("card border-danger mb-3 text-danger",t)},(0,O.z)(a)),c.createElement("div",{className:"card-body"},n,l.getErrorMessages(r).map(((e,n)=>c.createElement("div",{key:n,className:"disabled"},e))))):null};function bn(e){var{className:n,disabled:t,inputClassName:a,inputRef:r,readOnly:l,value:i,wrapClassName:s}=e,o=(0,v._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:d,state:u}=(0,be.c)(),m=u,p=!(!m.grid&&!s),_=c.createElement("input",Object.assign({className:a,disabled:void 0===t?!(!d&&!m.disabled):t,readOnly:l,ref:r,type:"submit"},i?{value:i}:{}));return c.createElement("div",Object.assign({className:L()(n,{"is-invalid":d,row:m.grid})},(0,O.z)(o)),p&&c.createElement("span",{className:L()("col-form-label",ze(m.grid,"label"))},"\xa0"),p&&c.createElement("div",{className:L()(s,ze(m.grid,"input"))},_),!p&&_)}bn.defaultProps={inputClassName:"btn btn-primary"};var gn=bn;var En=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return _n}getErrorsField(){return hn}getSubmitField(){return gn}}return t.Quick=e,t}(fn);var yn=function e(n){class t extends(Ne.O.Validated(n)){}return t.Validated=e,t}(fn),On=yn.Validated(En.Quick(fn));var Cn=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(On);var kn=(0,C.e)((function(e){var{children:n,className:t,error:a,errorMessage:r}=e,l=(0,v._T)(e,["children","className","error","errorMessage"]);return a?c.createElement("div",Object.assign({className:L()("card","mb-3",t)},(0,O.z)(l)),c.createElement("div",{className:"card-body"},n||c.createElement("h4",{className:"card-title"},r))):null}),{initialValue:!1,kind:"leaf"});function jn(e){var n,{value:t}=e,a=(0,v._T)(e,["value"]);const r=(0,z.U)(a.name,a,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:c.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var Pn=(0,C.e)((function(e){var n;return Ve(e,c.createElement("textarea",{className:L()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});function xn(e,n,t){const a="xs"===e?"":`${e}-`;return"label"===t?`col-${a}${n}`:`col-${a}${12-n}`}const Mn={xs:1,sm:2,md:3,lg:4,xl:5,xxl:6};function Nn(e,n){return Mn[e]-Mn[n]}function Fn(e,n){return"number"==typeof e?xn("xs",e,n):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl||e.xxl},e)),Object.keys(e).sort(Nn).map((t=>xn(t,e[t],n))).join(" ")):"":xn("xs",parseInt(e),n)}function Tn(e,n){var{changed:t,className:a,disabled:r,error:l,errorMessage:i,grid:s,help:o,helpClassName:d,id:u,label:m,labelClassName:p,required:_,showInlineError:f,wrapClassName:h}=e,b=(0,v._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const g=!(!s&&!h),E=!(!l||!f)&&c.createElement("span",{className:"form-text text-danger"},i),y=!!o&&c.createElement("span",{className:L()("form-text",d||"text-muted")},o);return c.createElement("div",Object.assign({className:L()(a,"mb-3",{"is-invalid":l,disabled:r,required:_,row:s})},We()((0,O.z)(b),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&c.createElement("label",{htmlFor:u,className:L()({"col-form-label":s,"text-danger":l,"text-success":!l&&t},Fn(s,"label"),p)},m),g&&c.createElement("div",{className:L()(h,Fn(s,"input"))},n,y,E),!g&&n,!g&&y,!g&&E)}var Dn=(0,C.e)((function(e){var{onChange:n}=e,t=(0,v._T)(e,["onChange"]);const{disabled:a,error:r,inline:l,inputClassName:i,inputRef:s,label:o,labelBefore:d,name:u,readOnly:m,value:p}=t;return Tn(Object.assign(Object.assign({},t),{label:d,value:t.value}),c.createElement("div",{className:L()(i,"form-check",{"text-danger":r,"text-success":!r&&t.changed,"form-check-inline":l})},c.createElement("input",{checked:p||!1,className:"form-check-input",disabled:a,id:t.id,name:u,onChange:()=>{m||n(!p)},ref:s,type:"checkbox"}),c.createElement("label",{htmlFor:t.id,className:"form-check-label"},o)))}),{kind:"leaf"});const In=("object"==typeof t.g?t.g:window).Date,wn=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var An=(0,C.e)((function(e){var n,{disabled:t,error:a,id:r,inputClassName:l,inputRef:i,max:s,min:o,name:d,onChange:u,placeholder:m,readOnly:p,value:_,type:f="datetime-local"}=e,h=(0,v._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return Tn(Object.assign(Object.assign({},h),{id:r}),c.createElement("input",{className:L()(l,"form-control",{"is-invalid":a,"is-valid":!a&&h.changed}),disabled:t,id:r,max:wn(s),min:wn(o),name:d,onChange:e=>{const n=new In(e.target.valueAsNumber);n.getFullYear()<1e4?u(n):isNaN(e.target.valueAsNumber)&&u(void 0)},placeholder:m,readOnly:p,ref:i,type:f,value:null!==(n=wn(_,f))&&void 0!==n?n:""}))}),{kind:"leaf"});function Rn(e){var{addIcon:n,className:t,disabled:a,name:r,readOnly:l,value:i}=e,s=(0,v._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const o=(0,$.m)(null,r),d=(0,$.m)(o.slice(0,-1)),u=(0,z.U)(d,{},{absoluteName:!0})[0];return a||(a=l||u.maxCount<=u.value.length),c.createElement("button",Object.assign({},(0,O.z)(s),{className:L()("btn btn-secondary btn-sm float-end",t),disabled:a,onClick:function(){a||u.onChange(u.value.concat([U()(i)]))},tabIndex:0,type:"button"}),n)}Rn.defaultProps={addIcon:c.createElement("i",{className:"octicon octicon-plus"})};var Ln=(0,C.e)(Rn,{initialValue:!1,kind:"leaf"});function Sn(e){var{className:n,disabled:t,name:a,readOnly:r,removeIcon:l}=e,i=(0,v._T)(e,["className","disabled","name","readOnly","removeIcon"]);const s=(0,$.m)(null,a),o=+s[s.length-1],d=(0,$.m)(s.slice(0,-1)),u=(0,z.U)(d,{},{absoluteName:!0})[0];return t||(t=r||u.minCount>=u.value.length),c.createElement("button",Object.assign({},(0,O.z)(i),{className:L()("btn btn-secondary btn-sm",n),disabled:t,onClick:()=>{const e=u.value.slice();e.splice(o,1),u.onChange(e)},tabIndex:0,type:"button"}),l)}Sn.defaultProps={removeIcon:c.createElement("i",{className:"octicon octicon-dash"})};var Bn=(0,C.e)(Sn,{initialValue:!1,kind:"leaf"});var Wn=(0,C.e)((function(e){let{children:n=c.createElement(Xn,{className:"col",label:null,name:""}),removeIcon:t}=e;return c.createElement("div",{className:"row"},c.createElement("div",{className:"col-auto"},c.createElement(Bn,{name:"",removeIcon:t})),n)}),{initialValue:!1});var Zn=(0,C.e)((function(e){var{addIcon:n,children:t=c.createElement(Wn,{name:"$"}),className:a,error:r,errorMessage:l,itemProps:i,label:s,removeIcon:o,showInlineError:d,value:u}=e,m=(0,v._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return c.createElement("div",Object.assign({className:L()("card mb-3",a)},(0,O.z)(m)),c.createElement("div",{className:"card-body"},s&&c.createElement("div",{className:"card-title"},c.createElement("label",{className:"col-form-label"},s,"\xa0"),c.createElement(Ln,{addIcon:n,name:"$"}),!(!r||!d)&&c.createElement("span",{className:"text-danger"},l)),null==u?void 0:u.map(((e,n)=>c.Children.map(t,((e,t)=>{var a;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign(Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n)},i),{removeIcon:o})):e}))))))}));var Un=(0,C.e)((function(e){var{children:n,className:t,error:a,errorMessage:r,fields:l,itemProps:i,label:s,showInlineError:o}=e,d=(0,v._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return c.createElement("div",Object.assign({className:L()(t,{"has-error":a})},(0,O.z)(d)),s&&c.createElement("label",null,s),!(!a||!o)&&c.createElement("span",{className:"text-danger"},r),n||l.map((e=>c.createElement(Xn,Object.assign({key:e,name:e},i)))))}));var $n=(0,C.e)((function(e){var n;return Tn(e,c.createElement("input",{className:L()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(n.target.value);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});const zn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Vn=e=>zn(encodeURIComponent(e)).replace(/=+$/,"");var Kn=(0,C.e)((function(e){var n;return Tn(e,null===(n=e.options)||void 0===n?void 0:n.map((n=>{var t,a,r,l;return c.createElement("div",{key:null!==(t=n.key)&&void 0!==t?t:n.value,className:L()(e.inputClassName,"form-check",{"text-danger":e.error,"text-success":!e.error&&e.changed,"form-check-inline":e.inline})},c.createElement("label",{htmlFor:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:Vn(n.value)}`,className:"form-check-label"},c.createElement("input",{checked:n.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:Vn(n.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(n.value)},type:"radio"})," ",null!==(l=n.label)&&void 0!==l?l:n.value))})))}),{kind:"leaf"});const qn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Qn=e=>qn(encodeURIComponent(e)).replace(/=+$/,"");var Hn=(0,C.e)((function(e){var{options:n,checkboxes:t,disabled:a,error:r,fieldType:l,id:i,inline:s,inputClassName:o,inputRef:d,label:u,name:m,onChange:p,placeholder:_,readOnly:f,required:h,value:b}=e,g=(0,v._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return Tn(Object.assign(Object.assign({},g),{disabled:a,error:r,id:i,label:u,required:h}),t?null==n?void 0:n.map((e=>{var n,t,r,l;return c.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value,className:L()(o,"form-check"+(s?" form-check-inline":""))},c.createElement("label",{htmlFor:`${i}-${null!==(t=e.key)&&void 0!==t?t:Qn(e.value)}`},c.createElement("input",{checked:E?null==b?void 0:b.includes(e.value):b===e.value,disabled:e.disabled||a,id:`${i}-${null!==(r=e.key)&&void 0!==r?r:Qn(e.value)}`,name:m,onChange:()=>{f||p(E?dn()([e.value],b):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):c.createElement("select",{className:L()(o,"form-control",{"is-invalid":r,"is-valid":!r&&g.changed}),disabled:a,id:i,multiple:E,name:m,onChange:e=>{if(!f){const n=e.target.value;if(E){const t=-1===e.target.selectedIndex;p(t?[]:dn()([n],b))}else p(""!==n?n:void 0)}},ref:d,value:null!=b?b:""},(!!_||!h||void 0===b)&&!E&&c.createElement("option",{value:"",disabled:h,hidden:h},_||u),null==n?void 0:n.map((e=>{var n,t;return c.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});var Jn=(0,C.e)((function(e){var n,t;return Tn(We()(e,["autoComplete","minLength","maxLength"]),c.createElement("input",{autoComplete:e.autoComplete,className:L()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});var Xn=(0,_.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Kn:Hn;switch(e.fieldType){case Array:return Zn;case Boolean:return Dn;case Date:return An;case Number:return $n;case Object:return Un;case String:return Jn}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Gn(e){var{element:n=c.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,c.createElement)(Xn,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Yn=function e(n){class t extends n{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),n=super.getNativeFormProps();return Object.assign(Object.assign({},We()(n,["grid"])),{className:L()({error:e},n.className)})}}return t.Bootstrap5=e,t.displayName=`Bootstrap5${n.displayName}`,t}(ye.I);var et=function(e){var{children:n,className:t}=e,a=(0,v._T)(e,["children","className"]);const{error:r,schema:l}=(0,be.c)();return r||n?c.createElement("div",Object.assign({className:L()("card border-danger mb-3 text-danger",t)},(0,O.z)(a)),c.createElement("div",{className:"card-body"},n,l.getErrorMessages(r).map(((e,n)=>c.createElement("div",{key:n,className:"disabled"},e))))):null};function nt(e){var{className:n,disabled:t,inputClassName:a,inputRef:r,readOnly:l,value:i,wrapClassName:s}=e,o=(0,v._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:d,state:u}=(0,be.c)(),m=u,p=!(!m.grid&&!s),_=c.createElement("input",Object.assign({className:a,disabled:void 0===t?!(!d&&!m.disabled):t,readOnly:l,ref:r,type:"submit"},i?{value:i}:{}));return c.createElement("div",Object.assign({className:L()(n,{"is-invalid":d,row:m.grid})},(0,O.z)(o)),p&&c.createElement("span",{className:L()("col-form-label",Fn(m.grid,"label"))},"\xa0"),p&&c.createElement("div",{className:L()(s,Fn(m.grid,"input"))},_),!p&&_)}nt.defaultProps={inputClassName:"btn btn-primary"};var tt=nt;var at=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Xn}getErrorsField(){return et}getSubmitField(){return tt}}return t.Quick=e,t}(Yn);var rt=function e(n){class t extends(Ne.O.Validated(n)){}return t.Validated=e,t}(Yn),lt=rt.Validated(at.Quick(Yn));var it=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(lt);var st=(0,C.e)((function(e){var{children:n,className:t,error:a,errorMessage:r}=e,l=(0,v._T)(e,["children","className","error","errorMessage"]);return a?c.createElement("div",Object.assign({className:L()("card","mb-3",t)},(0,O.z)(l)),c.createElement("div",{className:"card-body"},n||c.createElement("h4",{className:"card-title"},r))):null}),{initialValue:!1,kind:"leaf"});function ot(e){var n,{value:t}=e,a=(0,v._T)(e,["value"]);const r=(0,z.U)(a.name,a,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:c.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var dt=(0,C.e)((function(e){var n;return Tn(We()(e,["autoComplete","minLength","maxLength"]),c.createElement("textarea",{className:L()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"}),ut=t(80342),ct=t(21807),mt=t(61247),pt=t(35311),_t=t(82693),vt=t(82956),ft=t(54139),ht=t(74533);function bt(e){let{component:n,disabled:t,error:a,errorMessage:r,fullWidth:l,helperText:i,margin:s,readOnly:o,required:d,showInlineError:u,variant:m}=e;const p=u&&a?r:i,_={component:n,disabled:!!t,error:!!a,fullWidth:!!l,margin:s,readOnly:o,required:d,variant:m};for(var v=arguments.length,f=new Array(v>1?v-1:0),h=1;h<v;h++)f[h-1]=arguments[h];return(0,c.createElement)(ft.Z,_,...f,!!p&&c.createElement(ht.Z,null,p))}var gt=(0,C.e)((function(e){var n;const{appearance:t,disabled:a,inputRef:r,label:l,legend:i,name:s,onChange:o,readOnly:d,value:u}=e,m=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl,p="checkbox"===t||void 0===t?ut.Z:_t.Z;return bt(Object.assign(Object.assign(Object.assign(Object.assign({},void 0===(null==m?void 0:m.fullWidth)&&{fullWidth:!0}),void 0===(null==m?void 0:m.margin)&&{margin:"dense"}),e),{component:"fieldset"}),i&&c.createElement(pt.Z,{component:"legend",htmlFor:s},i),c.createElement(mt.Z,null,c.createElement(ct.Z,{control:c.createElement(p,Object.assign({checked:!!u,name:s,onChange:e=>!a&&!d&&o&&o(e.target.checked),ref:r,value:s},We()((0,O.z)(e),["helperText","fullWidth"]))),label:l})))}),{kind:"leaf"}),Et=t(38725);const yt=("object"==typeof t.g?t.g:window).Date,Ot=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var Ct=(0,C.e)((function(e){var n,t,a,r,{disabled:l,error:i,errorMessage:s,helperText:o,InputLabelProps:d,inputRef:u,label:m,labelProps:p,max:_,min:f,name:h,onChange:b,placeholder:g,readOnly:E,showInlineError:y,value:C,type:k="datetime-local"}=e,j=(0,v._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);const P=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return c.createElement(Et.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(t=null==P?void 0:P.fullWidth)||void 0===t||t,helperText:!!i&&y&&s||o,label:m,InputLabelProps:Object.assign(Object.assign({shrink:!0},p),d),inputProps:Object.assign({max:Ot(_),min:Ot(f),readOnly:E},j.inputProps),margin:null!==(a=null==P?void 0:P.margin)&&void 0!==a?a:"dense",name:h,onChange:e=>l||((e,n)=>{const t=new yt(e);t.getFullYear()<1e4?n(t):isNaN(e)&&n(void 0)})(e.target.valueAsNumber,b),placeholder:g,ref:u,type:k,value:null!==(r=Ot(C,k))&&void 0!==r?r:""},(0,O.z)(j)))}),{kind:"leaf"}),kt=t(50755),jt=t(44920),Pt=t(90547);var xt=(0,C.e)((function(e){var{disabled:n,fullWidth:t=!0,icon:a="+",margin:r="dense",name:l,readOnly:i,value:s,variant:o}=e,d=(0,v._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const u=(0,$.m)(null,l),m=(0,$.m)(u.slice(0,-1)),p=(0,z.U)(m,{},{absoluteName:!0})[0],_=!(n||p.maxCount<=p.value.length);return c.createElement(ft.Z,{fullWidth:t,margin:r,variant:o},c.createElement(Pt.Z,Object.assign({},(0,O.z)(d),{disabled:!_,onClick:()=>{i||p.onChange(p.value.concat([U()(s)]))}}),a))}),{initialValue:!1,kind:"leaf"}),Mt=t(53332);var Nt=(0,C.e)((function(e){var{disabled:n,icon:t="-",name:a,readOnly:r}=e,l=(0,v._T)(e,["disabled","icon","name","readOnly"]);const i=(0,$.m)(null,a),s=+i[i.length-1],o=(0,$.m)(i.slice(0,-1)),d=(0,z.U)(o,{},{absoluteName:!0})[0];return n||(n=r||d.minCount>=d.value.length),c.createElement(Pt.Z,Object.assign({},(0,O.z)(l),{disabled:n,onClick:()=>{const e=d.value.slice();e.splice(s,1),d.onChange(e)}}),t)}),{initialValue:!1,kind:"leaf"});var Ft=(0,C.e)((function(e){let{children:n=c.createElement(zt,{label:null,name:""}),dense:t=!0,disableGutters:a,divider:r,removeIcon:l}=e;return c.createElement(Mt.Z,{dense:t,disableGutters:a,divider:r},n,c.createElement(Nt,{name:"",icon:l}))}),{initialValue:!1});var Tt=(0,C.e)((function(e){var{addIcon:n,children:t=c.createElement(Ft,{name:"$"}),itemProps:a,label:r,value:l}=e,i=(0,v._T)(e,["addIcon","children","itemProps","label","value"]);return c.createElement(c.Fragment,null,c.createElement(kt.Z,Object.assign({dense:!0,subheader:r?c.createElement(jt.Z,{disableSticky:!0},r):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,n)=>c.Children.map(t,((e,t)=>{var r;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+n)},a)):e}))))),c.createElement(xt,{icon:n,name:"$"}))}));var Dt=(0,C.e)((function(e){var n,t,a,{children:r,fields:l,itemProps:i,label:s}=e,o=(0,v._T)(e,["children","fields","itemProps","label"]);const d=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl;return bt(Object.assign(Object.assign({fullWidth:null===(t=null==d?void 0:d.fullWidth)||void 0===t||t,margin:null!==(a=null==d?void 0:d.margin)&&void 0!==a?a:"dense"},o),{component:void 0}),s&&c.createElement(pt.Z,{component:"legend"},s),r||l.map((e=>c.createElement(zt,Object.assign({key:e,name:e},i)))))}));var It=(0,C.e)((function(e){var n,t,a,r,{decimal:l,disabled:i,error:s,errorMessage:o,helperText:d,inputProps:u,inputRef:m,label:p,max:_,min:f,name:h,onChange:b,readOnly:g,placeholder:E,showInlineError:y,step:C=(l?.01:1),value:k}=e,j=(0,v._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);const P=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return c.createElement(Et.Z,Object.assign({disabled:i,error:!!s,fullWidth:null===(t=null==P?void 0:P.fullWidth)||void 0===t||t,helperText:!!s&&y&&o||d,inputProps:Object.assign(Object.assign(Object.assign({},null!==(a=null==P?void 0:P.inputProps)&&void 0!==a?a:{}),{min:f,max:_,readOnly:g,step:C}),u),label:p,margin:null!==(r=null==P?void 0:P.margin)&&void 0!==r?r:"dense",name:h,onChange:e=>{const n=(l?parseFloat:parseInt)(e.target.value);b(isNaN(n)?void 0:n)},placeholder:E,ref:m,type:"number",value:null!=k?k:""},(0,O.z)(j)))}),{kind:"leaf"}),wt=t(76709),At=t(70043);const Rt="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Lt=e=>Rt(encodeURIComponent(e)).replace(/=+$/,"");var St=(0,C.e)((function(e){var n,t,a,{options:r,disabled:l,id:i,inputRef:s,label:o,name:d,onChange:u,readOnly:m,row:p,value:_}=e,f=(0,v._T)(e,["options","disabled","id","inputRef","label","name","onChange","readOnly","row","value"]);const h=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl;return bt(Object.assign(Object.assign({fullWidth:null===(t=null==h?void 0:h.fullWidth)||void 0===t||t,margin:null!==(a=null==h?void 0:h.margin)&&void 0!==a?a:"dense"},f),{component:"fieldset",disabled:l}),o&&c.createElement(pt.Z,{component:"legend",htmlFor:d},o),c.createElement(At.Z,{id:i,name:d,onChange:e=>l||m||u(e.target.value),ref:s,row:p,value:null!=_?_:""},null==r?void 0:r.map((e=>{var n,t;return c.createElement(ct.Z,{control:c.createElement(wt.Z,Object.assign({id:`${i}-${Lt(e.value)}`},We()((0,O.z)(f),["checkboxes","helperText"]))),htmlFor:`${i}-${Lt(e.value)}`,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(t=e.label)&&void 0!==t?t:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),Bt=t(5633);const Wt="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Zt=e=>Wt(encodeURIComponent(e)).replace(/=+$/,"");var Ut=(0,C.e)((function(e){var n,t,a,r,l,i;const s=(0,vt.Z)(),o=null===(n=s.props)||void 0===n?void 0:n.MuiFormControl,d=null!==(t=e.value)&&void 0!==t?t:"";if(e.checkboxes){const{options:n,disabled:t,fieldType:r,id:l,inputRef:i,label:s,legend:u,name:m,onChange:p,readOnly:_}=e,v="checkbox"===(null!==(a=e.appearance)&&void 0!==a?a:"checkbox")?ut.Z:_t.Z,f=We()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),h=r!==Array?c.createElement(At.Z,{id:l,name:m,onChange:e=>t||_||p(e.target.value),ref:i,value:null!=d?d:""},null==n?void 0:n.map((e=>{var n,a,r;return c.createElement(ct.Z,{control:c.createElement(wt.Z,Object.assign({id:`${l}-${null!==(n=e.key)&&void 0!==n?n:Zt(e.value)}`},f)),disabled:e.disabled||t,key:null!==(a=e.key)&&void 0!==a?a:e.value,label:null!==(r=e.label)&&void 0!==r?r:e.value,value:e.value})}))):c.createElement(mt.Z,{id:l},null==n?void 0:n.map((e=>{var n,a,r;return c.createElement(ct.Z,{control:c.createElement(v,Object.assign({checked:d.includes(e.value),id:`${l}-${null!==(n=e.key)&&void 0!==n?n:Zt(e.value)}`,name:m,onChange:()=>t||_||p(dn()([e.value],d)),ref:i,value:m},f)),disabled:e.disabled||t,key:null!==(a=e.key)&&void 0!==a?a:e.value,label:null!==(r=e.label)&&void 0!==r?r:e.value})})));return bt(Object.assign(Object.assign(Object.assign({},o),e),{component:"fieldset"}),(u||s)&&c.createElement(pt.Z,{component:"legend"},u||s),h)}const u=null===(r=s.props)||void 0===r?void 0:r.MuiTextField,{options:m,disabled:p,error:_,errorMessage:v,fieldType:f,fullWidth:h=null===(l=null==u?void 0:u.fullWidth)||void 0===l||l,helperText:b,id:g,InputLabelProps:E,inputProps:y,label:C,labelProps:k,margin:j=(null!==(i=null==u?void 0:u.margin)&&void 0!==i?i:"dense"),name:P,native:x,onChange:M,placeholder:N,readOnly:F,required:T,showInlineError:D,variant:I,textFieldProps:w}=e,A=x?"option":Bt.Z,R=!!N,L=""!==d&&void 0!==d,S=We()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return c.createElement(Et.Z,Object.assign({disabled:p,error:!!_,fullWidth:h,helperText:!!_&&D&&v||b,InputLabelProps:Object.assign(Object.assign({shrink:!!C&&(R||L)},k),E),label:C,margin:j,onChange:e=>p||F||M(""!==e.target.value?e.target.value:void 0),required:T,select:!0,SelectProps:Object.assign({displayEmpty:R,inputProps:Object.assign({name:P,id:g},y),multiple:f===Array||void 0,native:x},S),value:x&&!d?"":d,variant:I},w),(R||!T||!L)&&c.createElement(A,{value:"",disabled:!!T},N||C),null==m?void 0:m.map((e=>{var n,t;return c.createElement(A,{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)})))}),{kind:"leaf"});var $t=(0,C.e)((function(e){var n,t,a,r,{disabled:l,error:i,errorMessage:s,helperText:o,inputRef:d,label:u,name:m,onChange:p,placeholder:_,readOnly:f,showInlineError:h,type:b="text",value:g=""}=e,E=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const y=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return c.createElement(Et.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(t=null==y?void 0:y.fullWidth)||void 0===t||t,helperText:!!i&&h&&s||o,inputProps:Object.assign({readOnly:f},null!==(a=null==y?void 0:y.inputProps)&&void 0!==a?a:{}),label:u,margin:null!==(r=null==y?void 0:y.margin)&&void 0!==r?r:"dense",name:m,onChange:e=>l||p(e.target.value),placeholder:_,ref:d,type:b,value:g},(0,O.z)(E)))}),{kind:"leaf"});var zt=(0,_.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?St:Ut;switch(e.fieldType){case Array:return Tt;case Boolean:return gt;case Date:return Ct;case Number:return It;case Object:return Dt;case String:return $t}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Vt(e){var{element:n=c.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,c.createElement)(zt,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Kt=function e(n){class t extends n{}return t.Material=e,t.displayName=`Material${n.displayName}`,t}(ye.I);var qt=function(e){var n,t,a,{children:r,fullWidth:l,margin:i,variant:s}=e,o=(0,v._T)(e,["children","fullWidth","margin","variant"]);const d=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl,{error:u,schema:m}=(0,be.c)();return u||r?c.createElement(ft.Z,{error:!!u,fullWidth:null===(t=null!=l?l:null==d?void 0:d.fullWidth)||void 0===t||t,margin:null!==(a=null!=i?i:null==d?void 0:d.margin)&&void 0!==a?a:"dense",variant:null!=s?s:null==d?void 0:d.variant},!!r&&c.createElement(ht.Z,Object.assign({},(0,O.z)(o)),r),m.getErrorMessages(u).map(((e,n)=>c.createElement(ht.Z,Object.assign({key:n},(0,O.z)(o)),e)))):null},Qt=t(9334);var Ht=function(e){var n,t,{children:a,disabled:r,inputRef:l,label:i="Submit",value:s}=e,o=(0,v._T)(e,["children","disabled","inputRef","label","value"]);const{error:d,state:u}=(0,be.c)(),m=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiButton;return c.createElement(Qt.Z,Object.assign({disabled:void 0===r?!(!d&&!u.disabled):r,ref:l,type:"submit",value:s,variant:null!==(t=null==m?void 0:m.variant)&&void 0!==t?t:"contained"},(0,O.z)(o)),a||i)};var Jt=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return zt}getErrorsField(){return qt}getSubmitField(){return Ht}}return t.Quick=e,t}(Kt);var Xt=function e(n){class t extends(Ne.O.Validated(n)){}return t.Validated=e,t}(Kt),Gt=Xt.Validated(Jt.Quick(Kt));var Yt=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Gt);var ea=(0,C.e)((function(e){var n,t,a,{children:r,error:l,errorMessage:i,fullWidth:s,margin:o,variant:d}=e,u=(0,v._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);const m=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl;return l?c.createElement(ft.Z,{error:!!l,fullWidth:null===(t=null!=s?s:null==m?void 0:m.fullWidth)||void 0===t||t,margin:null!==(a=null!=o?o:null==m?void 0:m.margin)&&void 0!==a?a:"dense",variant:null!=d?d:null==m?void 0:m.variant},c.createElement(ht.Z,Object.assign({},(0,O.z)(u)),r||i)):null}),{initialValue:!1,kind:"leaf"});function na(e){var n,{value:t}=e,a=(0,v._T)(e,["value"]);const r=(0,z.U)(a.name,a,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:c.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var ta=(0,C.e)((e=>{var n,t,a,{disabled:r,error:l,errorMessage:i,helperText:s,inputRef:o,label:d,name:u,onChange:m,placeholder:p,readOnly:_,showInlineError:f,type:h="text",value:b}=e,g=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const E=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return c.createElement(Et.Z,Object.assign({disabled:r,error:!!l,fullWidth:null===(t=null==E?void 0:E.fullWidth)||void 0===t||t,helperText:!!l&&f&&i||s,inputProps:Object.assign(Object.assign({},null==E?void 0:E.inputProps),{readOnly:_}),label:d,margin:null!==(a=null==E?void 0:E.margin)&&void 0!==a?a:"dense",multiline:!0,name:u,onChange:e=>r||m(e.target.value),placeholder:p,ref:o,type:h,value:null!=b?b:""},(0,O.z)(g)))}),{kind:"leaf"}),aa=t(56213),ra=t(64251),la=t(64281),ia=t(23626),sa=t(22013),oa=t(61230),da=t(56274);function ua(e){let{component:n,disabled:t,error:a,errorMessage:r,fullWidth:l,helperText:i,margin:s,readOnly:o,required:d,showInlineError:u,variant:m}=e;const p=u&&a?r:i,_={component:n,disabled:!!t,error:!!a,fullWidth:!!l,margin:s,readOnly:o,required:d,variant:m};for(var v=arguments.length,f=new Array(v>1?v-1:0),h=1;h<v;h++)f[h-1]=arguments[h];return(0,c.createElement)(oa.Z,_,...f,!!p&&c.createElement(da.Z,null,p))}var ca=(0,C.e)((function(e){const{appearance:n,disabled:t,inputRef:a,label:r,legend:l,name:i,onChange:s,readOnly:o,value:d}=e,u="checkbox"===n||void 0===n?aa.Z:sa.Z;return ua(Object.assign({fullWidth:!0},e),l&&c.createElement(ia.Z,{component:"legend",htmlFor:i},l),c.createElement(la.Z,null,c.createElement(ra.Z,{control:c.createElement(u,Object.assign({checked:!!d,name:i,onChange:e=>!t&&!o&&s&&s(e.target.checked),ref:a,value:i},We()((0,O.z)(e),["helperText","fullWidth"]))),label:r})))}),{kind:"leaf"}),ma=t(60929);const pa=("object"==typeof t.g?t.g:window).Date,_a=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var va=(0,C.e)((function(e){var n,{disabled:t,error:a,errorMessage:r,helperText:l,InputLabelProps:i,inputRef:s,label:o,labelProps:d,max:u,min:m,name:p,onChange:_,placeholder:f,readOnly:h,showInlineError:b,value:g,type:E="datetime-local"}=e,y=(0,v._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);return c.createElement(ma.Z,Object.assign({disabled:t,error:!!a,fullWidth:!0,helperText:!!a&&b&&r||l,label:o,InputLabelProps:Object.assign(Object.assign({shrink:!0},d),i),inputProps:Object.assign({max:_a(u),min:_a(m),readOnly:h},y.inputProps),margin:"dense",name:p,onChange:e=>t||((e,n)=>{const t=new pa(e);t.getFullYear()<1e4?n(t):isNaN(e)&&n(void 0)})(e.target.valueAsNumber,_),placeholder:f,ref:s,type:E,value:null!==(n=_a(g,E))&&void 0!==n?n:""},(0,O.z)(y)))}),{kind:"leaf"}),fa=t(10872),ha=t(5420),ba=t(68666);var ga=(0,C.e)((function(e){var{disabled:n,fullWidth:t=!0,icon:a="+",margin:r="dense",name:l,readOnly:i,value:s,variant:o}=e,d=(0,v._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const u=(0,$.m)(null,l),m=(0,$.m)(u.slice(0,-1)),p=(0,z.U)(m,{},{absoluteName:!0})[0],_=!(n||p.maxCount<=p.value.length);return c.createElement(oa.Z,{fullWidth:t,margin:r,variant:o},c.createElement(ba.Z,Object.assign({size:"large",variant:"outlined"},(0,O.z)(d),{disabled:!_,onClick:()=>{i||p.onChange(p.value.concat([U()(s)]))}}),a))}),{initialValue:!1,kind:"leaf"}),Ea=t(88483),ya=t(92133);var Oa=(0,C.e)((function(e){var{disabled:n,icon:t="-",name:a,readOnly:r}=e,l=(0,v._T)(e,["disabled","icon","name","readOnly"]);const i=(0,$.m)(null,a),s=+i[i.length-1],o=(0,$.m)(i.slice(0,-1)),d=(0,z.U)(o,{},{absoluteName:!0})[0];return n||(n=r||d.minCount>=d.value.length),c.createElement(ya.Z,Object.assign({},(0,O.z)(l),{disabled:n,onClick:()=>{const e=d.value.slice();e.splice(s,1),d.onChange(e)},size:"large"}),t)}),{initialValue:!1,kind:"leaf"});var Ca=(0,C.e)((function(e){let{children:n=c.createElement(La,{label:null,name:""}),dense:t=!0,disableGutters:a,divider:r,removeIcon:l}=e;return c.createElement(Ea.ZP,{dense:t,disableGutters:a,divider:r},n,c.createElement(Oa,{name:"",icon:l}))}),{initialValue:!1});var ka=(0,C.e)((function(e){var{addIcon:n,children:t=c.createElement(Ca,{name:"$"}),itemProps:a,label:r,value:l}=e,i=(0,v._T)(e,["addIcon","children","itemProps","label","value"]);return c.createElement(c.Fragment,null,c.createElement(fa.Z,Object.assign({dense:!0,subheader:r?c.createElement(ha.Z,{disableSticky:!0},r):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,n)=>c.Children.map(t,((e,t)=>{var r;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+n)},a)):e}))))),c.createElement(ga,{icon:n,name:"$"}))}));var ja=(0,C.e)((function(e){var{children:n,fields:t,fullWidth:a=!0,itemProps:r,label:l,margin:i="dense"}=e,s=(0,v._T)(e,["children","fields","fullWidth","itemProps","label","margin"]);return ua(Object.assign(Object.assign({fullWidth:a,margin:i},s),{component:void 0}),l&&c.createElement(ia.Z,{component:"legend"},l),n||t.map((e=>c.createElement(La,Object.assign({key:e,name:e},r)))))}));var Pa=(0,C.e)((function(e){var{decimal:n,disabled:t,error:a,errorMessage:r,helperText:l,inputProps:i,inputRef:s,label:o,max:d,min:u,name:m,onChange:p,readOnly:_,placeholder:f,showInlineError:h,step:b=(n?.01:1),value:g}=e,E=(0,v._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);return c.createElement(ma.Z,Object.assign({disabled:t,error:!!a,fullWidth:!0,helperText:!!a&&h&&r||l,inputProps:Object.assign({min:u,max:d,readOnly:_,step:b},i),label:o,margin:"dense",name:m,onChange:e=>{const t=(n?parseFloat:parseInt)(e.target.value);p(isNaN(t)?void 0:t)},placeholder:f,ref:s,type:"number",value:null!=g?g:""},(0,O.z)(E)))}),{kind:"leaf"}),xa=t(8993),Ma=t(20750);const Na="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Fa=e=>Na(encodeURIComponent(e)).replace(/=+$/,"");var Ta=(0,C.e)((function(e){var{options:n,disabled:t,fullWidth:a=!0,id:r,inputRef:l,label:i,margin:s="dense",name:o,onChange:d,readOnly:u,row:m,value:p}=e,_=(0,v._T)(e,["options","disabled","fullWidth","id","inputRef","label","margin","name","onChange","readOnly","row","value"]);return ua(Object.assign(Object.assign({},_),{component:"fieldset",disabled:t,fullWidth:a,margin:s}),i&&c.createElement(ia.Z,{component:"legend",htmlFor:o},i),c.createElement(Ma.Z,{id:r,name:o,onChange:e=>t||u||d(e.target.value),ref:l,row:m,value:null!=p?p:""},null==n?void 0:n.map((e=>{var n,t;return c.createElement(ra.Z,{control:c.createElement(xa.Z,Object.assign({id:`${r}-${Fa(e.value)}`},We()((0,O.z)(_),["checkboxes","helperText"]))),htmlFor:`${r}-${Fa(e.value)}`,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(t=e.label)&&void 0!==t?t:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),Da=t(13455);const Ia="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,wa=e=>Ia(encodeURIComponent(e)).replace(/=+$/,"");var Aa=(0,C.e)((function(e){var n,t;const a=null!==(n=e.value)&&void 0!==n?n:"";if(e.checkboxes){const{options:n,disabled:r,fieldType:l,id:i,inputRef:s,label:o,legend:d,name:u,onChange:m,readOnly:p}=e,_="checkbox"===(null!==(t=e.appearance)&&void 0!==t?t:"checkbox")?aa.Z:sa.Z,v=We()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),f=l!==Array?c.createElement(Ma.Z,{id:i,name:u,onChange:e=>r||p||m(e.target.value),ref:s,value:null!=a?a:""},n.map((e=>{var n,t,a;return c.createElement(ra.Z,{control:c.createElement(xa.Z,Object.assign({id:`${i}-${null!==(n=e.key)&&void 0!==n?n:wa(e.value)}`},v)),disabled:e.disabled||r,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(a=e.label)&&void 0!==a?a:e.value,value:e.value})}))):c.createElement(la.Z,{id:i},n.map((e=>{var n,t,l;return c.createElement(ra.Z,{control:c.createElement(_,Object.assign({checked:a.includes(e.value),id:`${i}-${null!==(n=e.key)&&void 0!==n?n:wa(e.value)}`,name:u,onChange:()=>r||p||m(dn()([e.value],a)),ref:s,value:u},v)),disabled:e.disabled||r,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(l=e.label)&&void 0!==l?l:e.value})})));return ua(Object.assign(Object.assign({},e),{component:"fieldset"}),(d||o)&&c.createElement(ia.Z,{component:"legend"},d||o),f)}const{options:r,disabled:l,error:i,errorMessage:s,fieldType:o,fullWidth:d=!0,helperText:u,id:m,InputLabelProps:p,inputProps:_,label:v,labelProps:f,margin:h="dense",name:b,native:g,onChange:E,placeholder:y,readOnly:C,required:k,showInlineError:j,variant:P,textFieldProps:x}=e,M=g?"option":Da.Z,N=!!y,F=""!==a&&void 0!==a,T=We()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return c.createElement(ma.Z,Object.assign({disabled:l,error:!!i,fullWidth:d,helperText:!!i&&j&&s||u,InputLabelProps:Object.assign(Object.assign({shrink:!!v&&(N||F)},f),p),label:v,margin:h,onChange:e=>l||C||E(""!==e.target.value?e.target.value:void 0),required:k,select:!0,SelectProps:Object.assign({displayEmpty:N,inputProps:Object.assign({name:b,id:m},_),multiple:o===Array||void 0,native:g},T),value:g&&!a?"":a,variant:P},x),(N||!k||!F)&&c.createElement(M,{value:"",disabled:!!k},y||v),r.map((e=>{var n,t;return c.createElement(M,{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)})))}),{kind:"leaf"});var Ra=(0,C.e)((function(e){var{disabled:n,error:t,errorMessage:a,helperText:r,inputRef:l,label:i,name:s,onChange:o,placeholder:d,readOnly:u,showInlineError:m,type:p="text",value:_=""}=e,f=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return c.createElement(ma.Z,Object.assign({disabled:n,error:!!t,fullWidth:!0,helperText:!!t&&m&&a||r,inputProps:{readOnly:u},label:i,margin:"dense",name:s,onChange:e=>n||o(e.target.value),placeholder:d,ref:l,type:p,value:_},(0,O.z)(f)))}),{kind:"leaf"});var La=(0,_.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Ta:Aa;switch(e.fieldType){case Array:return ka;case Boolean:return ca;case Date:return va;case Number:return Pa;case Object:return ja;case String:return Ra}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Sa(e){var{element:n=c.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,c.createElement)(La,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Ba=function e(n){class t extends n{}return t.Material=e,t.displayName=`Material${n.displayName}`,t}(ye.I);var Wa=function(e){var{children:n,fullWidth:t=!0,margin:a,variant:r}=e,l=(0,v._T)(e,["children","fullWidth","margin","variant"]);const{error:i,schema:s}=(0,be.c)();return i||n?c.createElement(oa.Z,{error:!!i,fullWidth:!!t,margin:a,variant:r},!!n&&c.createElement(da.Z,Object.assign({},(0,O.z)(l)),n),s.getErrorMessages(i).map(((e,n)=>c.createElement(da.Z,Object.assign({key:n},(0,O.z)(l)),e)))):null};var Za=function(e){var{children:n,disabled:t,inputRef:a,label:r="Submit",value:l}=e,i=(0,v._T)(e,["children","disabled","inputRef","label","value"]);const{error:s,state:o}=(0,be.c)();return c.createElement(ba.Z,Object.assign({disabled:void 0===t?!(!s&&!o.disabled):t,ref:a,type:"submit",value:l,variant:"contained"},(0,O.z)(i)),n||r)};var Ua=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return La}getErrorsField(){return Wa}getSubmitField(){return Za}}return t.Quick=e,t}(Ba);var $a=function e(n){class t extends(Ne.O.Validated(n)){}return t.Validated=e,t}(Ba),za=$a.Validated(Ua.Quick(Ba));var Va=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(za);var Ka=(0,C.e)((function(e){var{children:n,error:t,errorMessage:a,fullWidth:r,margin:l,variant:i}=e,s=(0,v._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);return t?c.createElement(oa.Z,{error:!!t,fullWidth:!!r,margin:"dense"===l?l:void 0,variant:i},c.createElement(da.Z,Object.assign({},(0,O.z)(s)),n||a)):null}),{initialValue:!1,kind:"leaf"});function qa(e){var n,{value:t}=e,a=(0,v._T)(e,["value"]);const r=(0,z.U)(a.name,a,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:c.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var Qa=(0,C.e)((e=>{var{disabled:n,error:t,errorMessage:a,helperText:r,inputRef:l,label:i,name:s,onChange:o,placeholder:d,readOnly:u,showInlineError:m,type:p="text",value:_}=e,f=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return c.createElement(ma.Z,Object.assign({disabled:n,error:!!t,fullWidth:!0,helperText:!!t&&m&&a||r,inputProps:{readOnly:u},label:i,margin:"dense",multiline:!0,name:s,onChange:e=>n||o(e.target.value),placeholder:d,ref:l,type:p,value:null!=_?_:""},(0,O.z)(f)))}),{kind:"leaf"}),Ha=t(68599);function Ja(e){var{element:n=c.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,c.createElement)(Ha.Z,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Xa=t(2310),Ga=t(99574),Ya=t(12138),er=t(14449);var nr=(0,C.e)((function(e){var{children:n,className:t,error:a,errorMessage:r}=e,l=(0,v._T)(e,["children","className","error","errorMessage"]);return a?c.createElement("div",Object.assign({className:L()("ui",t,"error message")},(0,O.z)(l)),n||c.createElement("div",{className:"header"},r)):null}),{initialValue:!1,kind:"leaf"}),tr=t(43351);function ar(e){var n,{value:t}=e,a=(0,v._T)(e,["value"]);const r=(0,z.U)(a.name,a,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:c.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var rr=t(77900),lr=t(960),ir=t(64694),sr=t(18747);var or=(0,C.e)((function(e){var{className:n,disabled:t,error:a,errorMessage:r,id:l,inputRef:i,label:s,name:o,onChange:d,placeholder:u,readOnly:m,required:p,showInlineError:_,value:f}=e,h=(0,v._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);return c.createElement("div",Object.assign({className:L()(n,{disabled:t,error:a,required:p},"field")},(0,O.z)(h)),s&&c.createElement("label",{htmlFor:l},s),c.createElement("textarea",{disabled:t,id:l,name:o,onChange:e=>d(e.target.value),placeholder:u,readOnly:m,ref:i,value:null!=f?f:""}),!(!a||!_)&&c.createElement("div",{className:"ui red basic pointing label"},r))}),{kind:"leaf"}),dr=t(80661),ur=t(59492),cr=t(52559),mr=t(44591),pr=t(47822),_r=t(82986),vr=t(99086),fr=t(3684),hr=t(79904);var br=(0,C.e)((function(e){var{disabled:n,id:t,inputRef:a,label:r,name:l,onChange:i,readOnly:s,value:o}=e,d=(0,v._T)(e,["disabled","id","inputRef","label","name","onChange","readOnly","value"]);return c.createElement("div",Object.assign({},(0,O.z)(d)),c.createElement("input",{checked:o||!1,disabled:n,id:t,name:l,onChange:()=>!n&&!s&&i(!o),ref:a,type:"checkbox"}),r&&c.createElement("label",{htmlFor:t},r))}),{kind:"leaf"});const gr=("object"==typeof t.g?t.g:window).Date,Er=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var yr=(0,C.e)((function(e){var n,{disabled:t,id:a,inputRef:r,label:l,max:i,min:s,name:o,onChange:d,placeholder:u,readOnly:m,value:p,type:_="datetime-local"}=e,f=(0,v._T)(e,["disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","value","type"]);return c.createElement("div",Object.assign({},(0,O.z)(f)),l&&c.createElement("label",{htmlFor:a},l),c.createElement("input",{disabled:t,id:a,max:Er(i),min:Er(s),name:o,onChange:e=>{const n=new gr(e.target.valueAsNumber);n.getFullYear()<1e4?d(n):isNaN(e.target.valueAsNumber)&&d(void 0)},placeholder:u,readOnly:m,ref:r,type:_,value:null!==(n=Er(p,_))&&void 0!==n?n:""}))}),{kind:"leaf"});var Or=(0,C.e)((function(e){var{disabled:n,name:t,readOnly:a,value:r}=e,l=(0,v._T)(e,["disabled","name","readOnly","value"]);const i=(0,$.m)(null,t),s=(0,$.m)(i.slice(0,-1)),o=(0,z.U)(s,{},{absoluteName:!0})[0],d=!(n||o.maxCount<=o.value.length);function u(e){!d||a||"key"in e&&"Enter"!==e.key||o.onChange(o.value.concat([U()(r)]))}return c.createElement("span",Object.assign({},(0,O.z)(l),{onClick:u,onKeyDown:u,role:"button",tabIndex:0}),"+")}),{initialValue:!1,kind:"leaf"});var Cr=(0,C.e)((function(e){var{disabled:n,name:t,readOnly:a}=e,r=(0,v._T)(e,["disabled","name","readOnly"]);const l=(0,$.m)(null,t),i=+l[l.length-1],s=(0,$.m)(l.slice(0,-1)),o=(0,z.U)(s,{},{absoluteName:!0})[0];function d(e){if(!(n||"key"in e&&"Enter"!==e.key)){const e=o.value.slice();e.splice(i,1),o.onChange(e)}}return n||(n=a||o.minCount>=o.value.length),c.createElement("span",Object.assign({},(0,O.z)(r),{onClick:d,onKeyDown:d,role:"button",tabIndex:0}),"-")}),{initialValue:!1,kind:"leaf"});var kr=(0,C.e)((function(e){let{children:n=c.createElement(Rr,{label:null,name:""})}=e;return c.createElement("div",null,c.createElement(Cr,{name:""}),n)}),{initialValue:!1});var jr=(0,C.e)((function(e){var{children:n=c.createElement(kr,{name:"$"}),itemProps:t,label:a,value:r}=e,l=(0,v._T)(e,["children","itemProps","label","value"]);return c.createElement("ul",Object.assign({},(0,O.z)(l)),a&&c.createElement("label",null,a,c.createElement(Or,{name:"$"})),null==r?void 0:r.map(((e,a)=>c.Children.map(n,((e,n)=>{var r;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign({key:`${a}-${n}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+a)},t)):e})))))}));var Pr=(0,C.e)((function(e){var{children:n,fields:t,itemProps:a,label:r}=e,l=(0,v._T)(e,["children","fields","itemProps","label"]);return c.createElement("div",Object.assign({},(0,O.z)(l)),r&&c.createElement("label",null,r),n||t.map((e=>c.createElement(Rr,Object.assign({key:e,name:e},a)))))}));var xr=(0,C.e)((function(e){var{decimal:n,disabled:t,id:a,inputRef:r,label:l,max:i,min:s,name:o,onChange:d,placeholder:u,readOnly:m,step:p,value:_}=e,f=(0,v._T)(e,["decimal","disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","step","value"]);return c.createElement("div",Object.assign({},(0,O.z)(f)),l&&c.createElement("label",{htmlFor:a},l),c.createElement("input",{disabled:t,id:a,max:i,min:s,name:o,onChange:e=>{const t=(n?parseFloat:parseInt)(e.target.value);d(isNaN(t)?void 0:t)},placeholder:u,readOnly:m,ref:r,step:p||(n?.01:1),type:"number",value:null!=_?_:""}))}),{kind:"leaf"});const Mr="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Nr=e=>Mr(encodeURIComponent(e)).replace(/=+$/,"");var Fr=(0,C.e)((function(e){var{options:n,disabled:t,id:a,label:r,name:l,onChange:i,readOnly:s,value:o}=e,d=(0,v._T)(e,["options","disabled","id","label","name","onChange","readOnly","value"]);return c.createElement("div",Object.assign({},We()((0,O.z)(d),["checkboxes"])),r&&c.createElement("label",null,r),null==n?void 0:n.map((e=>{var n,r,d,u;return c.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value},c.createElement("input",{checked:e.value===o,disabled:e.disabled||t,id:`${a}-${null!==(r=e.key)&&void 0!==r?r:Nr(e.value)}`,name:l,onChange:()=>{s||i(e.value)},type:"radio"}),c.createElement("label",{htmlFor:`${a}-${null!==(d=e.key)&&void 0!==d?d:Nr(e.value)}`},null!==(u=e.label)&&void 0!==u?u:e.value))})))}),{kind:"leaf"});const Tr="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Dr=e=>Tr(encodeURIComponent(e)).replace(/=+$/,"");var Ir=(0,C.e)((function(e){var{checkboxes:n,disabled:t,fieldType:a,id:r,inputRef:l,label:i,name:s,onChange:o,placeholder:d,readOnly:u,required:m,value:p,options:_}=e,f=(0,v._T)(e,["checkboxes","disabled","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","value","options"]);const h=a===Array;return c.createElement("div",Object.assign({},(0,O.z)(f)),i&&c.createElement("label",{htmlFor:r},i),n?null==_?void 0:_.map((e=>{var n,l,i,d,m;return c.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value},c.createElement("input",{checked:a===Array?null==p?void 0:p.includes(e.value):p===e.value,disabled:null!==(l=e.disabled)&&void 0!==l?l:t,id:`${r}-${null!==(i=e.key)&&void 0!==i?i:Dr(e.value)}`,name:s,onChange:()=>{u||o(a===Array?dn()([e.value],p):e.value)},type:"checkbox"}),c.createElement("label",{htmlFor:`${r}-${null!==(d=e.key)&&void 0!==d?d:Dr(e.value)}`},null!==(m=e.label)&&void 0!==m?m:e.value))})):c.createElement("select",{disabled:t,id:r,multiple:h,name:s,onChange:e=>{if(!u){const n=e.target.value;if(h){const t=-1===e.target.selectedIndex;o(t?[]:dn()([n],p))}else o(""!==n?n:void 0)}},ref:l,value:null!=p?p:""},(!!d||!m||void 0===p)&&!h&&c.createElement("option",{value:"",disabled:m,hidden:m},d||i),null==_?void 0:_.map((e=>{var n,t;return c.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});function wr(e){var{autoComplete:n,disabled:t,id:a,inputRef:r,label:l,name:i,onChange:s,placeholder:o,readOnly:d,type:u,value:m}=e,p=(0,v._T)(e,["autoComplete","disabled","id","inputRef","label","name","onChange","placeholder","readOnly","type","value"]);return c.createElement("div",Object.assign({},(0,O.z)(p)),l&&c.createElement("label",{htmlFor:a},l),c.createElement("input",{autoComplete:n,disabled:t,id:a,name:i,onChange:e=>s(e.target.value),placeholder:o,readOnly:d,ref:r,type:u,value:null!=m?m:""}))}wr.defaultProps={type:"text"};var Ar=(0,C.e)(wr,{kind:"leaf"});var Rr=(0,_.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Fr:Ir;switch(e.fieldType){case Array:return jr;case Boolean:return br;case Date:return yr;case Number:return xr;case Object:return Pr;case String:return Ar}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Lr(e){var{element:n=c.Fragment,fields:t,omitFields:a=[]}=e,r=(0,v._T)(e,["element","fields","omitFields"]);const{schema:l}=(0,be.c)();return(0,c.createElement)(n,r,(null!=t?t:l.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,c.createElement)(Rr,{key:e,name:e}))))}var Sr=function e(n){class t extends n{}return t.Unstyled=e,t.displayName=`Unstyled${n.displayName}`,t}(ye.I);function Br(e){const{error:n,schema:t}=(0,be.c)();return n||e.children?c.createElement("div",Object.assign({},(0,O.z)(e)),e.children,c.createElement("ul",null,t.getErrorMessages(n).map(((e,n)=>c.createElement("li",{key:n},e))))):null}function Wr(e){var{disabled:n,inputRef:t,readOnly:a,value:r}=e,l=(0,v._T)(e,["disabled","inputRef","readOnly","value"]);const{error:i,state:s}=(0,be.c)();return c.createElement("input",Object.assign({disabled:void 0===n?!(!i&&!s.disabled):n,readOnly:a,ref:t,type:"submit"},r?{value:r}:{},(0,O.z)(l)))}var Zr=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Rr}getErrorsField(){return Br}getSubmitField(){return Wr}}return t.Quick=e,t}(Sr);var Ur=function e(n){class t extends(Ne.O.Validated(n)){}return t.Validated=e,t}(Sr),$r=Ur.Validated(Zr.Quick(Sr));var zr=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}($r);var Vr=(0,C.e)((function(e){var{children:n,error:t,errorMessage:a}=e,r=(0,v._T)(e,["children","error","errorMessage"]);return t?c.createElement("div",Object.assign({},(0,O.z)(r)),n||a):null}),{initialValue:!1,kind:"leaf"});function Kr(e){var n,{value:t}=e,a=(0,v._T)(e,["value"]);const r=(0,z.U)(a.name,a,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:c.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var qr=t(96614);const Qr=ll("AutoFields"),Hr=ll("AutoField"),Jr=ll("AutoForm"),Xr=(ll("BaseForm"),ll("BoolField"),ll("DateField"),ll("ErrorField")),Gr=ll("ErrorsField"),Yr=(ll("HiddenField"),ll("ListAddField"),ll("ListDelField"),ll("ListField"),ll("ListItemField"),ll("LongTextField")),el=(ll("NestField"),ll("NumField"),ll("QuickForm"),ll("RadioField"),ll("SelectField")),nl=ll("SubmitField"),tl=ll("TextField"),al=(ll("ValidatedForm"),ll("ValidatedQuickForm"),{antd:a,bootstrap4:r,bootstrap5:l,material:i,mui:s,semantic:o,unstyled:d}),rl=(0,c.createContext)("unstyled");function ll(e){return function(n){const t=(0,c.useContext)(rl),a=al[t][e];return c.createElement(a,(0,u.Z)({key:t},n))}}},37309:function(e,n,t){"use strict";t.d(n,{mB:function(){return u},nN:function(){return o},rh:function(){return d}});var a=t(14648),r=t.n(a),l=t(17728),i=t.n(l);const s=["preset","props","theme"],o=e=>i().compressToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");function d(e){try{const n=r()(e,s),t=JSON.stringify(n),a=o(t),l="?"+encodeURIComponent(a);window.location.hash=l}catch(n){}}function u(){try{const n=document.location.hash.replace(/^#\?/,""),t=decodeURIComponent(n),a=(e=t,i().decompressFromBase64(e.replace(/-/g,"+").replace(/_/g,"/"))),l=JSON.parse(a??"");return r()(l,s)}catch(n){return{}}var e}},44726:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return i}});var a=t(38703),r=t(27378),l=t(37126);function i(){return r.createElement(a.Z,{title:"Check how it works | uniforms",description:"Check how uniforms work, enjoy the schema-first approach of one of the most popular React form libraries, and build forms as easily as never before."},r.createElement(l.X,null))}},4940:function(e,n){"use strict";n.Z={"center-if-sm":"center-if-sm_fQBP",padding:"padding_u3oQ",landing:"landing_JSVC","overflow-hidden":"overflow-hidden_pgKL","section-content":"section-content_dsyA",discussions:"discussions_nna8","floating-example":"floating-example_NeZB","system-window":"system-window_utQO","system-top-bar":"system-top-bar_ZKOK","system-top-bar-circle":"system-top-bar-circle_TDqe","showcase-card":"showcase-card_hJCa",footer:"footer_V71b",bullets:"bullets_YLT6","offset-column":"offset-column_Fx18","simple-yet-powerful-text":"simple-yet-powerful-text__cJc","fully-customizable-text":"fully-customizable-text_ka9o","reverse-wrap":"reverse-wrap_wEMw",example:"example_fVIp","preview-border":"preview-border_OFQs",preview:"preview_Ea2L","no-padding":"no-padding_WjVH","solid-border-box":"solid-border-box_A28F","green-accent":"green-accent_H4ZV","blue-accent":"blue-accent_R2MP",grid3x3:"grid3x3_yu8a",item3x3:"item3x3_dug1",company:"company_dMmf","border-dashed":"border-dashed_OHF8","border-gradient":"border-gradient_gHdq","border-disable-top-right":"border-disable-top-right_GH8c","border-disable-bottom-left":"border-disable-bottom-left_uiZP","arrow-button":"arrow-button_hF_x","left-arrow-button":"left-arrow-button_Zn9b","right-arrow-button":"right-arrow-button_J0NN",arrow:"arrow_d93H","carousel-container":"carousel-container_uFWT",carousel:"carousel_vfTV",testimonials:"testimonials__H4G","testimonials-pair-active":"testimonials-pair-active_W4Qz","testimonials-pair-inactive":"testimonials-pair-inactive_OeWi",testimonial:"testimonial_JqOm","testimonial-content":"testimonial-content_yyK0","testimonial-links-wrapper":"testimonial-links-wrapper_aCzC","testimonial-description":"testimonial-description_HpGg","testimonial-avatar":"testimonial-avatar_OiX2","section-heading":"section-heading_Wwdu","section-bgwhite":"section-bgwhite_xc3Y","section-bgwhite-block":"section-bgwhite-block_wuyP","section-bgwhite-block-left":"section-bgwhite-block-left_R077","section-bgwhite-block-right":"section-bgwhite-block-right_XL2o",logos:"logos_slhi",fluid:"fluid_k_Hd",whyus:"whyus_bBI7",oval:"oval_S291","link-icon-container":"link-icon-container_Iy8Z",white:"white_k7iJ","top-right-corner":"top-right-corner_hrD6",badges:"badges_sK0n","badge-number":"badge-number_FlCf",badge:"badge_Cv7E","badge-image":"badge-image_V8QJ","badge-centered":"badge-centered_Cl70","call-to-action":"call-to-action_fHoz","theme-icon":"theme-icon_VaE8",section:"section_SnfD","flex-center":"flex-center_VHPe","top-margin":"top-margin_xVhu","long-button":"long-button_efAi",text:"text_U9e4","text-big":"text-big_oDLV","text-huge":"text-huge_zgdY","heading-helper":"heading-helper_fnxq",heading:"heading_Tyjn","heading-white":"heading-white_SkAD",emphasis:"emphasis_T58q",paragraph:"paragraph_pxCb","section-subtitle":"section-subtitle_etM3","footer-heading":"footer-heading_wvTE",supported:"supported_k5lB",title:"title_L62U",description:"description_aTRG","commercial-bullets":"commercial-bullets_o7pP","commercial-box":"commercial-box_wLXy",vazco:"vazco_f6cf","form-wrapper":"form-wrapper_kccZ",playground:"playground_p2wD","playground-wrap":"playground-wrap_FoP6","playground-column":"playground-column_btgY","playground-toolbar":"playground-toolbar_jwg0",tabs:"tabs_DJzW",item:"item_Lknm",active:"active_R6La",toggler:"toggler_LMZW",header:"header_kKxo",tooltip:"tooltip_OOD_","tooltip-text":"tooltip-text_GGXA","toggler-tabs":"toggler-tabs_UzN0"}},95126:function(e,n,t){var a={"./af":1009,"./af.js":1009,"./ar":88769,"./ar-dz":23739,"./ar-dz.js":23739,"./ar-kw":93745,"./ar-kw.js":93745,"./ar-ly":99576,"./ar-ly.js":99576,"./ar-ma":67408,"./ar-ma.js":67408,"./ar-sa":48781,"./ar-sa.js":48781,"./ar-tn":87856,"./ar-tn.js":87856,"./ar.js":88769,"./az":2030,"./az.js":2030,"./be":56476,"./be.js":56476,"./bg":25304,"./bg.js":25304,"./bm":48125,"./bm.js":48125,"./bn":34,"./bn-bd":29835,"./bn-bd.js":29835,"./bn.js":34,"./bo":64082,"./bo.js":64082,"./br":8317,"./br.js":8317,"./bs":93107,"./bs.js":93107,"./ca":68272,"./ca.js":68272,"./cs":98567,"./cs.js":98567,"./cv":61583,"./cv.js":61583,"./cy":10076,"./cy.js":10076,"./da":31760,"./da.js":31760,"./de":8973,"./de-at":63214,"./de-at.js":63214,"./de-ch":74728,"./de-ch.js":74728,"./de.js":8973,"./dv":54053,"./dv.js":54053,"./el":7499,"./el.js":7499,"./en-au":67876,"./en-au.js":67876,"./en-ca":47010,"./en-ca.js":47010,"./en-gb":34239,"./en-gb.js":34239,"./en-ie":99830,"./en-ie.js":99830,"./en-il":28438,"./en-il.js":28438,"./en-in":25322,"./en-in.js":25322,"./en-nz":43264,"./en-nz.js":43264,"./en-sg":55449,"./en-sg.js":55449,"./eo":39486,"./eo.js":39486,"./es":32430,"./es-do":16310,"./es-do.js":16310,"./es-mx":27038,"./es-mx.js":27038,"./es-us":73099,"./es-us.js":73099,"./es.js":32430,"./et":34975,"./et.js":34975,"./eu":87063,"./eu.js":87063,"./fa":68073,"./fa.js":68073,"./fi":50957,"./fi.js":50957,"./fil":8764,"./fil.js":8764,"./fo":81775,"./fo.js":81775,"./fr":74179,"./fr-ca":14306,"./fr-ca.js":14306,"./fr-ch":73791,"./fr-ch.js":73791,"./fr.js":74179,"./fy":47014,"./fy.js":47014,"./ga":46911,"./ga.js":46911,"./gd":62958,"./gd.js":62958,"./gl":87344,"./gl.js":87344,"./gom-deva":33161,"./gom-deva.js":33161,"./gom-latn":35798,"./gom-latn.js":35798,"./gu":68485,"./gu.js":68485,"./he":27917,"./he.js":27917,"./hi":52159,"./hi.js":52159,"./hr":95842,"./hr.js":95842,"./hu":30005,"./hu.js":30005,"./hy-am":51312,"./hy-am.js":51312,"./id":60781,"./id.js":60781,"./is":64101,"./is.js":64101,"./it":43467,"./it-ch":4759,"./it-ch.js":4759,"./it.js":43467,"./ja":44164,"./ja.js":44164,"./jv":70079,"./jv.js":70079,"./ka":57036,"./ka.js":57036,"./kk":92022,"./kk.js":92022,"./km":63418,"./km.js":63418,"./kn":43655,"./kn.js":43655,"./ko":30986,"./ko.js":30986,"./ku":91902,"./ku.js":91902,"./ky":4604,"./ky.js":4604,"./lb":99026,"./lb.js":99026,"./lo":20537,"./lo.js":20537,"./lt":22288,"./lt.js":22288,"./lv":1495,"./lv.js":1495,"./me":60690,"./me.js":60690,"./mi":2571,"./mi.js":2571,"./mk":93959,"./mk.js":93959,"./ml":97225,"./ml.js":97225,"./mn":88,"./mn.js":88,"./mr":46622,"./mr.js":46622,"./ms":11070,"./ms-my":48899,"./ms-my.js":48899,"./ms.js":11070,"./mt":63931,"./mt.js":63931,"./my":95393,"./my.js":95393,"./nb":4274,"./nb.js":4274,"./ne":8914,"./ne.js":8914,"./nl":33114,"./nl-be":68479,"./nl-be.js":68479,"./nl.js":33114,"./nn":4513,"./nn.js":4513,"./oc-lnc":46549,"./oc-lnc.js":46549,"./pa-in":28264,"./pa-in.js":28264,"./pl":32848,"./pl.js":32848,"./pt":90899,"./pt-br":55077,"./pt-br.js":55077,"./pt.js":90899,"./ro":92512,"./ro.js":92512,"./ru":21753,"./ru.js":21753,"./sd":16840,"./sd.js":16840,"./se":78362,"./se.js":78362,"./si":50464,"./si.js":50464,"./sk":66324,"./sk.js":66324,"./sl":41963,"./sl.js":41963,"./sq":53039,"./sq.js":53039,"./sr":93454,"./sr-cyrl":10466,"./sr-cyrl.js":10466,"./sr.js":93454,"./ss":95158,"./ss.js":95158,"./sv":28859,"./sv.js":28859,"./sw":57594,"./sw.js":57594,"./ta":26915,"./ta.js":26915,"./te":15677,"./te.js":15677,"./tet":92154,"./tet.js":92154,"./tg":74098,"./tg.js":74098,"./th":89071,"./th.js":89071,"./tk":49381,"./tk.js":49381,"./tl-ph":1869,"./tl-ph.js":1869,"./tlh":92346,"./tlh.js":92346,"./tr":71483,"./tr.js":71483,"./tzl":30266,"./tzl.js":30266,"./tzm":33138,"./tzm-latn":32960,"./tzm-latn.js":32960,"./tzm.js":33138,"./ug-cn":29456,"./ug-cn.js":29456,"./uk":50805,"./uk.js":50805,"./ur":61127,"./ur.js":61127,"./uz":29628,"./uz-latn":80840,"./uz-latn.js":80840,"./uz.js":29628,"./vi":56962,"./vi.js":56962,"./x-pseudo":49257,"./x-pseudo.js":49257,"./yo":62423,"./yo.js":62423,"./zh-cn":61002,"./zh-cn.js":61002,"./zh-hk":6046,"./zh-hk.js":6046,"./zh-mo":36903,"./zh-mo.js":36903,"./zh-tw":24710,"./zh-tw.js":24710};function r(e){var n=l(e);return t(n)}function l(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=l,e.exports=r,r.id=95126}}]); \ No newline at end of file diff --git a/assets/js/7289a944.b9a35331.js b/assets/js/7289a944.b9a35331.js new file mode 100644 index 000000000..06c50f5be --- /dev/null +++ b/assets/js/7289a944.b9a35331.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[487],{35318:function(e,n,r){r.d(n,{Zo:function(){return c},kt:function(){return p}});var t=r(27378);function a(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function i(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function o(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?i(Object(r),!0).forEach((function(n){a(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function s(e,n){if(null==e)return{};var r,t,a=function(e,n){if(null==e)return{};var r,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||(a[r]=e[r]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var l=t.createContext({}),d=function(e){var n=t.useContext(l),r=n;return e&&(r="function"==typeof e?e(n):o(o({},n),e)),r},c=function(e){var n=d(e.components);return t.createElement(l.Provider,{value:n},e.children)},m={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},u=t.forwardRef((function(e,n){var r=e.components,a=e.mdxType,i=e.originalType,l=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),u=d(r),p=a,g=u["".concat(l,".").concat(p)]||u[p]||m[p]||i;return r?t.createElement(g,o(o({ref:n},c),{},{components:r})):t.createElement(g,o({ref:n},c))}));function p(e,n){var r=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=r.length,o=new Array(i);o[0]=u;var s={};for(var l in n)hasOwnProperty.call(n,l)&&(s[l]=n[l]);s.originalType=e,s.mdxType="string"==typeof e?e:a,o[1]=s;for(var d=2;d<i;d++)o[d]=r[d];return t.createElement.apply(null,o)}return t.createElement.apply(null,r)}u.displayName="MDXCreateElement"},31127:function(e,n,r){r.r(n),r.d(n,{assets:function(){return l},contentTitle:function(){return o},default:function(){return m},frontMatter:function(){return i},metadata:function(){return s},toc:function(){return d}});var t=r(25773),a=(r(27378),r(35318));const i={id:"examples-custom-bridge",title:"Custom bridge & validator"},o=void 0,s={unversionedId:"examples-custom-bridge",id:"examples-custom-bridge",title:"Custom bridge & validator",description:"In this example, we will create an ordinary login form, with login, password, and password confirmation fields.",source:"@site/../docs/examples-custom-bridge.md",sourceDirName:".",slug:"/examples-custom-bridge",permalink:"/docs/examples-custom-bridge",draft:!1,tags:[],version:"current",frontMatter:{id:"examples-custom-bridge",title:"Custom bridge & validator"},sidebar:"docs",previous:{title:"Custom fields",permalink:"/docs/examples-custom-fields"},next:{title:"Custom form",permalink:"/docs/examples-custom-form"}},l={},d=[{value:"Schema definition",id:"schema-definition",level:3},{value:"Validator definition",id:"validator-definition",level:3},{value:"The Bridge!",id:"the-bridge",level:3},{value:"Usage",id:"usage",level:3}],c={toc:d};function m(e){let{components:n,...r}=e;return(0,a.kt)("wrapper",(0,t.Z)({},c,r,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"In this example, we will create an ordinary login form, with login, password, and password confirmation fields."),(0,a.kt)("h3",{id:"schema-definition"},"Schema definition"),(0,a.kt)("p",null,"We'll start with defining a schema.\nIt's an object with three keys, representing our fields.\nEach of them has the following self-explanatory properties:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"__type__")),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"required")),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"initialValue")),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"label"))),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-tsx"},"const UserLoginSchema = {\n login: {\n __type__: String,\n required: true,\n initialValue: '',\n label: 'Login',\n },\n password1: {\n __type__: String,\n required: true,\n initialValue: '',\n label: 'Password',\n },\n password2: {\n __type__: String,\n required: true,\n initialValue: '',\n label: 'Password (again)',\n },\n};\n\nexport default UserLoginSchema;\n")),(0,a.kt)("h3",{id:"validator-definition"},"Validator definition"),(0,a.kt)("p",null,"When the schema is ready, our next step is to provide a way to check if the values received from our form are correct.\nIn order to do so, we prepare a validation function.\nThat function, called validator, takes a model (the submitted object) as input and throws an error whether any value doesn't meet given criteria."),(0,a.kt)("p",null,"In our case we say 'form is invalid' when there's no login or password at all,\nlogin has less then 5 characters, password has lass then 10 characters or given passwords mismatch:"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-tsx"},"const UserLoginSchemaValidator = model => {\n const error = {};\n\n if (!model.login) {\n error.login = 'Login is required!';\n } else if (model.login.length < 5) {\n error.login = 'Login has to be at least 5 characters long!';\n }\n\n if (!model.password1) {\n error.password1 = 'Password is required!';\n } else if (model.password1.length < 10) {\n error.login = 'Password has to be at least 10 characters long!';\n }\n\n if (model.password1 !== model.password2) {\n error.password1 = 'Passwords mismatch!';\n }\n\n if (Object.keys(error).length) {\n return error;\n }\n};\n\nexport default UserLoginSchemaValidator;\n")),(0,a.kt)("h3",{id:"the-bridge"},"The Bridge!"),(0,a.kt)("p",null,"Now that both have the schema and the validator, we can define our bridge, which will be a binder between the form and the data itself.\nAll we have to do is to extend ",(0,a.kt)("inlineCode",{parentName:"p"},"Bridge")," class and implement its methods according to the ",(0,a.kt)("a",{parentName:"p",href:"/docs/uth-bridge-concept"},"Bridge concept"),":"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-tsx"},"import { Bridge } from 'uniforms';\n\nexport default class UserLoginSchemaBridge extends Bridge {\n constructor(schema, validator) {\n super();\n\n this.schema = schema;\n this.validator = validator;\n }\n\n getError(name, error) {\n return error && error[name];\n }\n\n getErrorMessage(name, error) {\n return (error && error[name]) || '';\n }\n\n getErrorMessages(error) {\n return error ? Object.keys(this.schema).map(field => error[field]) : [];\n }\n\n getField(name) {\n return this.schema[name.replace(/\\.\\d+/g, '.$')];\n }\n\n getType(name) {\n return this.schema[name.replace(/\\.\\d+/g, '.$')].__type__;\n }\n\n getProps(name) {\n return this.schema[name.replace(/\\.\\d+/g, '.$')];\n }\n\n getInitialValue(name) {\n return this.schema[name.replace(/\\.\\d+/g, '.$')].initialValue;\n }\n\n getSubfields(name) {\n return name\n ? this.schema[name.replace(/\\.\\d+/g, '.$')].subfields || []\n : Object.keys(this.schema).filter(field => field.indexOf('.') === -1);\n }\n\n getValidator() {\n return this.validator;\n }\n}\n")),(0,a.kt)("h3",{id:"usage"},"Usage"),(0,a.kt)("p",null,"After our custom bridge is created, we can use in the very same way as we would use predefined one -\nwe have to supply the schema and validator and then we can take an advantage of it in the AutoForm:"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-tsx"},"import UserLoginSchema from './UserLoginSchema';\nimport UserLoginSchemaBridge from './UserLoginSchemaBridge';\nimport UserLoginSchemaValidator from './UserLoginSchemaValidator';\n\nconst bridge = new UserLoginSchemaBridge({\n schema: UserLoginSchema,\n validator: UserLoginSchemaValidator,\n});\n\n<AutoForm schema={bridge} />;\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/76d37bd5.5886f2f2.js b/assets/js/76d37bd5.5886f2f2.js new file mode 100644 index 000000000..6ceb24637 --- /dev/null +++ b/assets/js/76d37bd5.5886f2f2.js @@ -0,0 +1,128 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[152],{73633:function(e,n,t){"use strict";t.d(n,{j:function(){return x}}),t(11561).z.register("minCount","maxCount");var a=t(59312),r=t(3996),l=t.n(r),i=t(30454),s=t.n(i),o=t(99729),u=t.n(o),c=t(90104),d=t.n(c),m=t(1883),p=t.n(m),f=t(16651),h=t.n(f),v=t(76744),_=t.n(v),g=t(98949),b=t(65507);function E(e,n){l()(n,'Field not found in schema: "%s"',e)}function y(e,n){if(!("$ref"in e))return e;const{$ref:t}=e,r=(0,a._T)(e,["$ref"]);return y(Object.assign({},r,function(e,n){l()(e.startsWith("#"),'Reference is not an internal reference, and only such are allowed: "%s"',e);const t=e.split("/").filter((e=>e&&"#"!==e)).reduce(((e,n)=>e[n]),n);return l()(t,'Reference not found in schema: "%s"',e),t}(t,n)),n)}const O=["allOf","anyOf","oneOf"],C=["default","enum","format","isRequired","title","uniforms"],k=[["maxItems","maxCount"],["maximum","max"],["minItems","minCount"],["minimum","min"],["multipleOf","step"]];function j(e){return"object"==typeof e&&null!==e&&Array.isArray(e.details)}class x extends g.k{constructor(e){let{provideDefaultLabelFromFieldName:n=!0,schema:t,validator:a}=e;super(),this.provideDefaultLabelFromFieldName=n,this.schema=y(t,t),this._compiledSchema={"":this.schema},this.validator=a,this.getField=h()(this.getField.bind(this)),this.getInitialValue=h()(this.getInitialValue.bind(this)),this.getSubfields=h()(this.getSubfields.bind(this)),this.getType=h()(this.getType.bind(this))}getError(e,n){const t=j(n)&&n.details;if(!t)return null;const a=(0,b.m)(null,e).map(b.m.unescape),r=(0,b.m)(a),l=(0,b.m)(a.slice(0,-1)),i=a[a.length-1],s=t.find((e=>{var n;const t=null!==(n=e.instancePath)&&void 0!==n?n:e.dataPath,a=t?function(e){return(e=e.startsWith("/")?e.replace(/\//g,".").replace(/~0/g,"~").replace(/~1/g,"/"):e.replace(/\[('|")(.+?)\1\]/g,".$2").replace(/\[(.+?)\]/g,".$1").replace(/\\'/g,"'")).slice(1)}(t):"";return r===a||l===a&&e.params&&i===e.params.missingProperty}));return s||null}getErrorMessage(e,n){const t=this.getError(e,n);return(null==t?void 0:t.message)||""}getErrorMessages(e){if(!e)return[];if(j(e)){const{details:n}=e;return n.map((e=>e.message||""))}return e instanceof Error?[e.message]:"object"==typeof e?[]:[String(e)]}getField(e){return(0,b.m)(null,e).reduce(((n,t,a,r)=>{var l,i,s,o;const u=(0,b.m)(r.slice(0,a)),c=(0,b.m)(u,t),m=null!==(l=(o=this._compiledSchema)[c])&&void 0!==l?l:o[c]={};if(m.isRequired=!(!(null===(i=n.required)||void 0===i?void 0:i.includes(t))&&!(null===(s=this._compiledSchema[u].required)||void 0===s?void 0:s.includes(t))),"$"===t||t===""+parseInt(t,10))E(e,"array"===n.type),n=Array.isArray(n.items)?n.items[parseInt(t,10)]:n.items,E(e,!!n);else if("object"===n.type)E(e,!!n.properties),n=n.properties[b.m.unescape(t)],E(e,!!n);else{let a=!1;O.forEach((e=>{var r;null===(r=n[e])||void 0===r||r.forEach((e=>{a||(e=y(e,this.schema),t in e.properties&&(n=e.properties[t],a=!0))}))})),E(e,a)}const p=(n=y(n,this.schema)).required?n.required.slice():[],f=n.properties?Object.assign({},n.properties):{};return O.forEach((e=>{var t;null===(t=n[e])||void 0===t||t.forEach((e=>{(e=y(e,this.schema)).required&&p.push(...e.required),Object.assign(f,e.properties),!m.type&&e.type&&(m.type=e.type)}))})),p.length>0&&(m.required=p),d()(f)||(m.properties=f),n}),this.schema)}getInitialValue(e){var n;const t=this.getField(e),{default:a=(null!==(n=t.default)&&void 0!==n?n:u()(this.schema.default,e)),type:r=t.type}=this._compiledSchema[e];if(void 0!==a)return s()(a);if("array"===r){const n=this.getInitialValue((0,b.m)(e,"$"));if(void 0===n)return[];const a=t.minItems||0;return Array.from({length:a},(()=>n))}if("object"===r){const n={};return this.getSubfields(e).forEach((t=>{const a=this.getInitialValue((0,b.m)(e,t));void 0!==a&&(n[t]=a)})),n}}getProps(e){var n,t;const a=this.getField(e),r=Object.assign({},a,a.uniforms,this._compiledSchema[e]);null!==(n=r.label)&&void 0!==n||(r.label=r.title),this.provideDefaultLabelFromFieldName&&void 0===r.label&&(r.label=_()(p()((0,b.m)(null,e).slice(-1)[0]))),"number"===a.type&&(r.decimal=!0),void 0!==(null===(t=a.uniforms)||void 0===t?void 0:t.type)&&(r.type=a.uniforms.type),void 0===r.required&&(r.required=r.isRequired),r.type===a.type&&delete r.type;let l=r.options;return l?Array.isArray(l)||(l=Object.entries(l).map((e=>{let[n,t]=e;return{key:n,label:n,value:t}}))):r.enum&&(l=Object.values(r.enum).map((e=>({value:e})))),k.forEach((e=>{let[n,t]=e;n in r&&(r[t]=r[n],delete r[n])})),C.forEach((e=>{e in r&&delete r[e]})),Object.assign(r,{options:l})}getSubfields(e){void 0===e&&(e="");const n=this.getField(e),{properties:t=n.properties,type:a=n.type}=this._compiledSchema[e];return"object"===a&&t?Object.keys(t).map(b.m.escape):[]}getType(e){const{type:n,format:t}=this.getField(e),{type:a=n}=this._compiledSchema[e];return"date-time"===t?Date:"string"===a?String:"number"===a||"integer"===a?Number:"object"===a?Object:"array"===a?Array:"boolean"===a?Boolean:(l()("null"!==a,'Field "%s" can not be represented as a type null',e),a)}getValidator(){return this.validator}}},12005:function(e,n,t){"use strict";t.d(n,{V:function(){return v}});var a=t(13762),r=t.n(a),l=t(11561);r().extendOptions(["uniforms"]),l.z.register("autoValue","blackbox","custom","decimal","defaultValue","exclusiveMax","exclusiveMin","max","maxCount","min","minCount","optional","regEx","trim","type");var i=t(59312),s=t(3996),o=t.n(s),u=t(30454),c=t.n(u),d=t(16651),m=t.n(d),p=t(98949),f=t(65507);const h=["optional","uniforms","allowedValues"];class v extends p.k{constructor(e){let{schema:n}=e;super(),this.schema=n,this.getField=m()(this.getField.bind(this)),this.getInitialValue=m()(this.getInitialValue.bind(this)),this.getProps=m()(this.getProps.bind(this)),this.getSubfields=m()(this.getSubfields.bind(this)),this.getType=m()(this.getType.bind(this))}getError(e,n){const t=null==n?void 0:n.details;return Array.isArray(t)&&t.find((n=>n.name===e))||null}getErrorMessage(e,n){const t=this.getError(e,n);return t?this.schema.messageForError(t):""}getErrorMessages(e){if(!e)return[];const{details:n}=e;return Array.isArray(n)?n.map((e=>this.schema.messageForError(e))):[e.message||e]}getField(e){const n=this.schema.getDefinition(e);o()(n,'Field not found in schema: "%s"',e);const t=Object.assign(Object.assign({},n),n.type[0]);if(t.autoValue&&("defaultAutoValueFunction"===t.autoValue.name||-1!==t.autoValue.toString().indexOf("$setOnInsert:")))try{t.defaultValue=t.autoValue.call({operator:null})}catch(a){}return t}getInitialValue(e){const n=this.getField(e),t=n.defaultValue;if(void 0!==t)return c()(t);if(n.type===Array){const t=this.getInitialValue((0,f.m)(e,"$"));if(void 0===t)return[];const a=n.minCount||0;return Array.from({length:a},(()=>t))}if(n.type===Object||n.type instanceof r()){const n={};return this.getSubfields(e).forEach((t=>{const a=this.getInitialValue((0,f.m)(e,t));void 0!==a&&(n[t]=a)})),n}}getProps(e){const n=this.getField(e),{type:t}=n,a=(0,i._T)(n,["type"]);a.required=!a.optional,"function"==typeof a.uniforms||"string"==typeof a.uniforms?a.component=a.uniforms:Object.assign(a,a.uniforms),t===Number&&(a.decimal=!0);let r=a.options,l=a.allowedValues;if("function"==typeof r&&(r=r()),r||"function"!=typeof l||(l=l()),!r&&Array.isArray(l))r=l.map((e=>({value:e})));else if(t===Array)try{const n=this.getProps(`${e}.$`);n.options&&(r=n.options)}catch(s){}return h.forEach((e=>{e in a&&delete a[e]})),Object.assign(a,{options:r})}getSubfields(e){return this.schema.objectKeys(function(e){return null==e?void 0:e.replace(/\.\d+(\.|$)/g,".$$$1")}(e))}getType(e){const n=this.getField(e).type;return n===r().Integer?Number:n instanceof r()?Object:n}getValidator(e){void 0===e&&(e={clean:!0,mutate:!0});const n=this.schema.validator(e);return t=>{try{return n(e.clean?c()(Object.assign({},t)):t),null}catch(a){return a}}}}},48616:function(e,n,t){"use strict";t.d(n,{K:function(){return b}});var a=t(11561),r=t(84200);a.z.register("minCount","maxCount"),r.z.ZodType.prototype.uniforms=function(e){return this._uniforms=e,this};var l=t(3996),i=t.n(l),s=t(1883),o=t.n(s),u=t(16651),c=t.n(u),d=t(76744),m=t.n(d),p=t(65507),f=t(98949);function h(e,n){i()(n,'Field not found in schema: "%s"',e)}function v(e){return"string"!=typeof e}function _(e){return m()(o()((0,p.m)(null,e).slice(-1)[0]))}function g(e,n){void 0===n&&(n=[]);const t=e[e.length-1];if("number"==typeof t){return g(e.slice(0,e.length-1),[t,...n])}return n.length>0?`${_(e)} (${n.join(", ")})`:_(e)}class b extends f.k{constructor(e){let{schema:n,provideDefaultLabelFromFieldName:t=!0}=e;super(),this.schema=n,this.provideDefaultLabelFromFieldName=t,this.getField=c()(this.getField.bind(this)),this.getInitialValue=c()(this.getInitialValue.bind(this)),this.getProps=c()(this.getProps.bind(this)),this.getSubfields=c()(this.getSubfields.bind(this)),this.getType=c()(this.getType.bind(this))}getError(e,n){return n instanceof r.jm&&n.issues.find((n=>e===(0,p.m)(n.path)))||null}getErrorMessage(e,n){var t;return(null===(t=this.getError(e,n))||void 0===t?void 0:t.message)||""}getErrorMessages(e){return e instanceof r.jm?e.issues.map((e=>`${g(e.path)}: ${e.message}`)):e instanceof Error?[e.message]:[]}getField(e){let n=this.schema;this.schema instanceof r.Xc&&(n=this.schema._def.schema);for(const t of(0,p.m)(null,e))n instanceof r.uE?n=n.removeDefault():n instanceof r.ak&&(n=n.unwrap()),"$"===t||t===""+parseInt(t,10)?(h(e,n instanceof r.p5),n=n.element):(h(e,n instanceof r.CQ),n=n.shape[p.m.unescape(t)]);return n}getInitialValue(e){var n,t;const a=this.getField(e);if(a instanceof r.p5){const t=this.getInitialValue((0,p.m)(e,"$"));if(void 0===t)return[];const r=(null===(n=a._def.minLength)||void 0===n?void 0:n.value)||0;return Array.from({length:r},(()=>t))}if(a instanceof r.uE)return a._def.defaultValue();if(a instanceof r.K7)return a.options[0];if(a instanceof r.Zl){const e=Object.values(a.enum);return null!==(t=e.find(v))&&void 0!==t?t:e[0]}if(a instanceof r.CQ){const n={};return this.getSubfields(e).forEach((t=>{const a=this.getInitialValue((0,p.m)(e,t));void 0!==a&&(n[t]=a)})),n}}getProps(e){const n=Object.assign(Object.assign({},this.provideDefaultLabelFromFieldName&&{label:_(e)}),{required:!0});let t=this.getField(e);const a=t._uniforms;if("function"==typeof a?n.component=a:Object.assign(n,a),t instanceof r.uE?(t=t.removeDefault(),n.required=!1):t instanceof r.ak&&(t=t.unwrap(),n.required=!1),t instanceof r.p5)t._def.maxLength&&(n.maxCount=t._def.maxLength.value),t._def.minLength&&(n.minCount=t._def.minLength.value);else if(t instanceof r.K7)n.options=t.options.map((e=>({value:e})));else if(t instanceof r.Zl){const e=Object.values(t.enum),a=e.filter(v);n.options=(a.length?a:e).map((e=>({value:e})))}else if(t instanceof r.IV){t.isInt||(n.decimal=!0);const e=t.maxValue;null!==e&&(n.max=e);const a=t.minValue;null!==a&&(n.min=a);const r=t._def.checks.find((e=>"multipleOf"===e.kind));r&&(n.step=r.value)}return n}getSubfields(e){void 0===e&&(e="");let n=this.getField(e);return n instanceof r.uE?n=n.removeDefault():n instanceof r.ak&&(n=n.unwrap()),n instanceof r.p5?["$"]:n instanceof r.CQ?Object.keys(n.shape):[]}getType(e){let n=this.getField(e);if(n instanceof r.uE?n=n.removeDefault():n instanceof r.ak&&(n=n.unwrap()),n instanceof r.p5)return Array;if(n instanceof r.pZ)return Boolean;if(n instanceof r.$s)return Date;if(n instanceof r.K7||n instanceof r.$T)return String;if(n instanceof r.Zl){return"number"==typeof Object.values(n.enum).find(v)?Number:String}return n instanceof r.IV?Number:n instanceof r.CQ?Object:void i()(!1,'Field "%s" has an unknown type',e)}getValidator(){return e=>{const n=this.schema.safeParse(e);return n.success?null:n.error}}}},68599:function(e,n,t){"use strict";var a=t(3996),r=t.n(a),l=t(6846),i=t(12138),s=t(14449),o=t(64694),u=t(80661),c=t(59492),d=t(44591),m=t(47822),p=t(99086);const f=(0,l.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?d.Z:m.Z;switch(e.fieldType){case Array:return o.Z;case Boolean:return i.Z;case Date:return s.Z;case Number:return c.Z;case Object:return u.Z;case String:return p.Z}return r()(!1,"Unsupported field type: %s",e.fieldType)}));n.Z=f},2310:function(e,n,t){"use strict";var a=t(39850),r=t(79904);n.Z=function e(n){class t extends(a.N.Auto(n)){}return t.Auto=e,t}(r.Z)},99574:function(e,n,t){"use strict";var a=t(60042),r=t.n(a),l=t(6820);n.Z=function e(n){class t extends n{getNativeFormProps(){const e=super.getNativeFormProps(),n=this.getContextError();return Object.assign(Object.assign({},e),{className:r()("ui",e.className,{error:n},"form")})}}return t.Semantic=e,t.displayName=`Semantic${n.displayName}`,t}(l.I)},12138:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424);n.Z=(0,o.e)((function(e){var{className:n,disabled:t,error:r,errorMessage:o,id:u,inputRef:c,label:d,name:m,onChange:p,readOnly:f,required:h,showInlineError:v,value:_,wrapClassName:g}=e,b=(0,a._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","readOnly","required","showInlineError","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:t,error:r,required:h},"field")},(0,s.z)(b)),i.createElement("div",{className:l()("ui",g,!d&&"fitted","checkbox")},i.createElement("input",{checked:_||!1,className:"hidden",disabled:t,id:u,name:m,onChange:()=>{f||p(!_)},ref:c,type:"checkbox"}),i.createElement("label",{htmlFor:u},d||null)),!(!r||!v)&&i.createElement("div",null,i.createElement("div",{className:"ui red basic pointing label"},o)))}),{kind:"leaf"})},14449:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424);const u=("object"==typeof t.g?t.g:window).Date,c=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};n.Z=(0,o.e)((function(e){var n,{className:t,disabled:r,error:o,errorMessage:d,icon:m,iconLeft:p,iconProps:f,id:h,inputRef:v,label:_,max:g,min:b,name:E,onChange:y,placeholder:O,readOnly:C,required:k,showInlineError:j,value:x,wrapClassName:N,type:P="datetime-local"}=e,M=(0,a._T)(e,["className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","value","wrapClassName","type"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:r,error:o,required:k},"field")},(0,s.z)(M)),_&&i.createElement("label",{htmlFor:h},_),i.createElement("div",{className:l()("ui",N,{left:p,icon:m||p},"input")},i.createElement("input",{disabled:r,id:h,max:c(g),min:c(b),name:E,onChange:e=>{const n=new u(e.target.valueAsNumber);n.getFullYear()<1e4?y(n):isNaN(e.target.valueAsNumber)&&y(void 0)},placeholder:O,readOnly:C,ref:v,type:P,value:null!==(n=c(x,P))&&void 0!==n?n:""}),(m||p)&&i.createElement("i",Object.assign({className:`${m||p} icon`},f))),!(!o||!j)&&i.createElement("div",{className:"ui red basic pointing label"},d))}),{kind:"leaf"})},43351:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(55201),o=t(11561);n.Z=function(e){var{children:n,className:t}=e,r=(0,a._T)(e,["children","className"]);const{error:u,schema:c}=(0,s.c)();return u||n?i.createElement("div",Object.assign({className:l()("ui",t,"error message")},(0,o.z)(r)),n,i.createElement("ul",{className:"list"},c.getErrorMessages(u).map(((e,n)=>i.createElement("li",{key:n},e))))):null}},77900:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(30454),s=t.n(i),o=t(27378),u=t(65507),c=t(68591),d=t(11561),m=t(76424);n.Z=(0,m.e)((function(e){var{disabled:n,name:t,readOnly:r,value:i}=e,m=(0,a._T)(e,["disabled","name","readOnly","value"]);const p=(0,u.m)(null,t),f=(0,u.m)(p.slice(0,-1)),h=(0,c.U)(f,{},{absoluteName:!0})[0],v=!(n||h.maxCount<=h.value.length);function _(e){!v||r||"key"in e&&"Enter"!==e.key||h.onChange(h.value.concat([s()(i)]))}return o.createElement("i",Object.assign({},(0,d.z)(m),{className:l()("ui",m.className,v?"link":"disabled","fitted add icon"),onClick:_,onKeyDown:_,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},960:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(65507),o=t(68591),u=t(11561),c=t(76424);n.Z=(0,c.e)((function(e){var{disabled:n,name:t,readOnly:r}=e,c=(0,a._T)(e,["disabled","name","readOnly"]);const d=(0,s.m)(null,t),m=+d[d.length-1],p=(0,s.m)(d.slice(0,-1)),f=(0,o.U)(p,{},{absoluteName:!0})[0];function h(e){if(!(n||"key"in e&&"Enter"!==e.key)){const e=f.value.slice();e.splice(m,1),f.onChange(e)}}return n||(n=r||f.minCount>=f.value.length),i.createElement("i",Object.assign({},(0,u.z)(c),{className:l()("ui",c.className,n?"link":"disabled","fitted close icon"),onClick:h,onKeyDown:h,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},64694:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424),u=t(77900),c=t(18747);n.Z=(0,o.e)((function(e){var{children:n=i.createElement(c.Z,{name:"$"}),className:t,disabled:r,error:o,errorMessage:d,itemProps:m,label:p,required:f,showInlineError:h,value:v}=e,_=(0,a._T)(e,["children","className","disabled","error","errorMessage","itemProps","label","required","showInlineError","value"]);return i.createElement("div",Object.assign({className:l()("ui",t,{disabled:r},"grouped fitted fields list")},(0,s.z)(_)),p&&i.createElement("div",{className:l()({error:o,required:f},"field item")},i.createElement("label",{className:"left floated"},p),i.createElement(u.Z,{className:"right floated",name:"$"})),p&&i.createElement("div",{className:"ui fitted hidden clearing horizontal divider"}),!(!o||!h)&&i.createElement("div",{className:"ui red basic label"},d),null==v?void 0:v.map(((e,t)=>i.Children.map(n,((e,n)=>{var a;return(0,i.isValidElement)(e)?(0,i.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+t)},m)):e})))))}))},18747:function(e,n,t){"use strict";var a=t(27378),r=t(76424),l=t(68599),i=t(960);n.Z=(0,r.e)((function(e){let{children:n=a.createElement(l.Z,{label:null,name:""})}=e;return a.createElement("div",{className:"item"},a.createElement(i.Z,{className:"top aligned",name:""}),a.createElement("div",{className:"middle aligned content",style:{width:"100%"}},n))}),{initialValue:!1})},80661:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424),u=t(68599);function c(e){var{children:n,className:t,disabled:r,error:o,errorMessage:c,fields:d,grouped:m,itemProps:p,label:f,showInlineError:h}=e,v=(0,a._T)(e,["children","className","disabled","error","errorMessage","fields","grouped","itemProps","label","showInlineError"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:r,error:o,grouped:m},"fields")},(0,s.z)(v)),f&&i.createElement("div",{className:"field"},i.createElement("label",null,f)),!(!o||!h)&&i.createElement("div",{className:"ui red basic label"},c),n||d.map((e=>i.createElement(u.Z,Object.assign({key:e,name:e},p)))))}c.defaultProps={grouped:!0},n.Z=(0,o.e)(c)},59492:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424);n.Z=(0,o.e)((function(e){var{className:n,decimal:t,disabled:r,error:o,errorMessage:u,icon:c,iconLeft:d,iconProps:m,id:p,inputRef:f,label:h,max:v,min:_,name:g,onChange:b,placeholder:E,readOnly:y,required:O,showInlineError:C,step:k,value:j,wrapClassName:x}=e,N=(0,a._T)(e,["className","decimal","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","step","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:r,error:o,required:O},"field")},(0,s.z)(N)),h&&i.createElement("label",{htmlFor:p},h),i.createElement("div",{className:l()("ui",x,{left:d,icon:c||d},"input")},i.createElement("input",{disabled:r,id:p,max:v,min:_,name:g,onChange:e=>{const n=(t?parseFloat:parseInt)(e.target.value);b(isNaN(n)?void 0:n)},placeholder:E,readOnly:y,ref:f,step:k||(t?.01:1),type:"number",value:null!=j?j:""}),(c||d)&&i.createElement("i",Object.assign({className:`${c||d} icon`},m))),!(!o||!C)&&i.createElement("div",{className:"ui red basic pointing label"},u))}),{kind:"leaf"})},52559:function(e,n,t){"use strict";var a=t(51674),r=t(68599),l=t(99574),i=t(43351),s=t(82986);n.Z=function e(n){class t extends(a.X.Quick(n)){getAutoField(){return r.Z}getErrorsField(){return i.Z}getSubmitField(){return s.Z}}return t.Quick=e,t}(l.Z)},44591:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(48159),s=t.n(i),o=t(27378),u=t(11561),c=t(76424);const d="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>d(encodeURIComponent(e)).replace(/=+$/,"");n.Z=(0,c.e)((function(e){var{options:n,className:t,disabled:r,error:i,errorMessage:c,id:d,label:p,name:f,onChange:h,readOnly:v,required:_,showInlineError:g,value:b}=e,E=(0,a._T)(e,["options","className","disabled","error","errorMessage","id","label","name","onChange","readOnly","required","showInlineError","value"]);return o.createElement("div",Object.assign({className:l()(t,{disabled:r,error:i},"grouped fields")},s()((0,u.z)(E),["checkboxes"])),p&&o.createElement("div",{className:l()({required:_},"field")},o.createElement("label",null,p)),null==n?void 0:n.map((e=>{var n,t,a,l;return o.createElement("div",{className:"field",key:null!==(n=e.key)&&void 0!==n?n:e.value},o.createElement("div",{className:"ui radio checkbox"},o.createElement("input",{checked:e.value===b,disabled:e.disabled||r,id:`${d}-${null!==(t=e.key)&&void 0!==t?t:m(e.value)}`,name:f,onChange:()=>{v||h(e.value)},type:"radio"}),o.createElement("label",{htmlFor:`${d}-${null!==(a=e.key)&&void 0!==a?a:m(e.value)}`},null!==(l=e.label)&&void 0!==l?l:e.value)))})),!(!i||!g)&&o.createElement("div",{className:"ui red basic pointing label"},c))}),{kind:"leaf"})},47822:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(20098),s=t.n(i),o=t(27378),u=t(11561),c=t(76424);const d="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>d(encodeURIComponent(e)).replace(/=+$/,""),p={paddingBottom:0,paddingTop:0};n.Z=(0,c.e)((function(e){var{options:n,checkboxes:t,className:r,disabled:i,error:c,errorMessage:d,fieldType:f,id:h,inputRef:v,label:_,name:g,onChange:b,placeholder:E,readOnly:y,required:O,showInlineError:C,value:k}=e,j=(0,a._T)(e,["options","checkboxes","className","disabled","error","errorMessage","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);const x=f===Array;return o.createElement("div",Object.assign({className:l()({disabled:i,error:c,required:O},r,"field")},(0,u.z)(j)),_&&o.createElement("label",{htmlFor:h},_),t?null==n?void 0:n.map((e=>{var n,t,a,r;return o.createElement("div",{className:"field",key:null!==(n=e.key)&&void 0!==n?n:e.value},o.createElement("div",{className:"ui checkbox"},o.createElement("input",{checked:x?null==k?void 0:k.includes(e.value):k===e.value,disabled:e.disabled||i,id:`${h}-${null!==(t=e.key)&&void 0!==t?t:m(e.value)}`,name:g,onChange:()=>{y||b(x?s()([e.value],k):e.value)},type:"checkbox"}),o.createElement("label",{htmlFor:`${h}-${null!==(a=e.key)&&void 0!==a?a:m(e.value)}`},null!==(r=e.label)&&void 0!==r?r:e.value)))})):o.createElement("select",{className:"ui selection dropdown",disabled:i,id:h,multiple:x,name:g,onChange:e=>{if(!y){const n=e.target.value;if(x){const t=-1===e.target.selectedIndex;b(t?[]:s()([n],k))}else b(""!==n?n:void 0)}},ref:v,style:p,value:null!=k?k:""},(!!E||!O||void 0===k)&&!x&&o.createElement("option",{value:"",disabled:O,hidden:O},E||_),null==n?void 0:n.map((e=>{var n,t;return o.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))),!(!c||!C)&&o.createElement("div",{className:"ui red basic pointing label"},d))}),{kind:"leaf"})},82986:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(55201),o=t(11561);function u(e){var{className:n,disabled:t,inputRef:r,readOnly:u,value:c}=e,d=(0,a._T)(e,["className","disabled","inputRef","readOnly","value"]);const{error:m,state:p}=(0,s.c)();return i.createElement("input",Object.assign({className:l()("ui",n,"button"),disabled:void 0===t?!(!m&&!p.disabled):t,readOnly:u,ref:r,type:"submit"},c?{value:c}:{},(0,o.z)(d)))}},99086:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),s=t(11561),o=t(76424);function u(e){var{autoComplete:n,className:t,disabled:r,error:o,errorMessage:u,icon:c,iconLeft:d,iconProps:m,id:p,inputRef:f,label:h,name:v,onChange:_,placeholder:g,readOnly:b,required:E,showInlineError:y,type:O,value:C,wrapClassName:k}=e,j=(0,a._T)(e,["autoComplete","className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","type","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:r,error:o,required:E},"field")},(0,s.z)(j)),h&&i.createElement("label",{htmlFor:p},h),i.createElement("div",{className:l()("ui",k,{left:d,icon:c||d},"input")},i.createElement("input",{autoComplete:n,disabled:r,id:p,name:v,onChange:e=>_(e.target.value),placeholder:g,readOnly:b,ref:f,type:O,value:null!=C?C:""}),(c||d)&&i.createElement("i",Object.assign({className:`${c||d} icon`},m))),!(!o||!y)&&i.createElement("div",{className:"ui red basic pointing label"},u))}u.defaultProps={type:"text"},n.Z=(0,o.e)(u,{kind:"leaf"})},3684:function(e,n,t){"use strict";var a=t(23674),r=t(99574);n.Z=function e(n){class t extends(a.O.Validated(n)){}return t.Validated=e,t}(r.Z)},79904:function(e,n,t){"use strict";var a=t(99574),r=t(52559),l=t(3684);n.Z=l.Z.Validated(r.Z.Quick(a.Z))},96614:function(e,n,t){"use strict";var a=t(59312),r=t(27378),l=t(11561),i=t(76424);n.Z=(0,i.e)((function(e){var{disabled:n,id:t,inputRef:i,label:s,name:o,onChange:u,placeholder:c,readOnly:d,value:m}=e,p=(0,a._T)(e,["disabled","id","inputRef","label","name","onChange","placeholder","readOnly","value"]);return r.createElement("div",Object.assign({},(0,l.z)(p)),s&&r.createElement("label",{htmlFor:t},s),r.createElement("textarea",{disabled:n,id:t,name:o,onChange:e=>u(e.target.value),placeholder:c,readOnly:d,ref:i,value:null!=m?m:""}))}),{kind:"leaf"})},39850:function(e,n,t){"use strict";t.d(n,{N:function(){return p}});var a=t(13784),r=t.n(a),l=t(56141),i=t.n(l),s=t(48159),o=t.n(s),u=t(96498),c=t.n(u),d=t(6820),m=t(51674);const p=function e(n){class t extends n{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{model:this.mergeSchemaAndPropsModel(this.props.schema,this.props.model)})}mergeSchemaAndPropsModel(e,n){const t=e.getInitialModel();return Object.assign(t,n)}componentDidUpdate(e,n,t){const{model:a,schema:r}=this.props;i()(a,e.model)||this.setState({model:this.mergeSchemaAndPropsModel(r,a)}),super.componentDidUpdate(e,n,t)}getNativeFormProps(){const e=super.getNativeFormProps();return o()(e,["onChangeModel"])}getModel(e){return this.state.model}onChange(e,n){super.onChange(e,n),this.setState((t=>({model:c()(r()(t.model),e,n,r())})),(()=>{this.props.onChangeModel&&this.props.onChangeModel(this.state.model)}))}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{model:this.props.model})}}return t.Auto=e,t.displayName=`Auto${n.displayName}`,t}((0,t(23674).u)((0,m.s)(d.I)))},6820:function(e,n,t){"use strict";t.d(n,{I:function(){return b}});var a=t(13784),r=t.n(a),l=t(99729),i=t.n(l),s=t(48159),o=t.n(s),u=t(96498),c=t.n(u),d=t(27378),m=t(56141),p=t.n(m),f=t(65507);function h(e){return!(!e||e!==Object(e)||e instanceof Date)}var v=t(34361);function _(e){let n=0;return()=>`${e}-${("000"+(n++).toString(36)).slice(-4)}`}const g=_("uniforms");class b extends d.Component{constructor(e){var n,t;super(e),n=this,this.state={changed:!1,changedMap:Object.create(null),resetCount:0,submitted:!1,submitting:!1},this.mounted=!1,this.randomId=(void 0===(t=this.props.id)&&(t=g()),_(t)),this.onReset=this.reset=this.onReset.bind(this),this.onChange=this.change=this.onChange.bind(this),this.onSubmit=this.submit=this.onSubmit.bind(this);const a=this.getModel.bind(this);this.getModel=function(e,t){return void 0===t&&(t=a(e)),void 0!==e&&n.props.modelTransform?n.props.modelTransform(e,t):t}}componentDidMount(){this.mounted=!0}componentDidUpdate(e,n,t){}componentWillUnmount(){this.mounted=!1,this.delayId&&clearTimeout(this.delayId)}getContext(){return{changed:this.state.changed,changedMap:this.state.changedMap,error:this.getContextError(),formRef:this,model:this.getContextModel(),name:this.getContextName(),onChange:this.getContextOnChange(),onSubmit:this.getContextOnSubmit(),randomId:this.randomId,schema:this.getContextSchema(),state:this.getContextState(),submitted:this.state.submitted,submitting:this.state.submitting,validating:!1}}getContextName(){return[]}getContextError(){return this.props.error}getContextModel(){return this.getModel("form")}getContextState(){return{disabled:!!this.props.disabled,readOnly:!!this.props.readOnly,showInlineError:!!this.props.showInlineError}}getContextSchema(){return this.props.schema}getContextOnChange(){return this.onChange}getContextOnSubmit(){return this.onSubmit}getModel(e,n){return void 0===n&&(n=this.props.model),n}getNativeFormProps(){const e=o()(this.props,["autosave","autosaveDelay","disabled","error","model","modelTransform","onChange","onSubmit","readOnly","schema","showInlineError"]);return Object.assign(Object.assign({},e),{onSubmit:this.onSubmit,key:`reset-${this.state.resetCount}`})}onChange(e,n){if(this.mounted){const t=function(e,n,t){if(!h(n)||t&&typeof n!=typeof t)return p()(n,t)?[]:[e];const a=[e];if(h(t)){for(const r in n)r in t&&p()(n[r],t[r])||a.push((0,f.m)(e,r));for(const r in t)r in n||a.push((0,f.m)(e,r));1===a.length&&a.pop()}else for(const r in n)a.push((0,f.m)(e,r));return a}(e,n,i()(this.getModel(),e));0!==t.length&&this.setState((e=>e.changed&&t.every((n=>!!i()(e.changedMap,n)))?null:{changed:!0,changedMap:t.reduce(((e,n)=>c()(e,n,{},r())),r()(e.changedMap))}))}this.props.onChange&&this.props.onChange(e,n),this.mounted&&this.props.autosave&&(this.delayId&&clearTimeout(this.delayId),this.delayId=setTimeout((()=>{this.mounted&&this.setState((()=>null),(()=>{this.onSubmit()}))}),this.props.autosaveDelay))}__reset(e){return{changed:!1,changedMap:Object.create(null),resetCount:e.resetCount+1,submitted:!1,submitting:!1}}onReset(){this.mounted&&this.setState(this.__reset)}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.mounted&&this.setState((e=>e.submitted?null:{submitted:!0}));const n=this.props.onSubmit(this.getModel("submit"));return n instanceof Promise?(this.mounted&&this.setState({submitting:!0}),n.finally((()=>{this.mounted&&this.setState({submitting:!1})}))):Promise.resolve()}render(){return d.createElement(v.D.Provider,{value:this.getContext()},d.createElement("form",Object.assign({},this.getNativeFormProps())))}}b.displayName="Form",b.defaultProps={autosave:!1,autosaveDelay:0,error:null,model:Object.create(null),noValidate:!0,onSubmit(){}}},98949:function(e,n,t){"use strict";t.d(n,{k:function(){return s}});var a=t(3996),r=t.n(a),l=t(47215),i=t.n(l);class s{constructor(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];r()(this.constructor!==s,"Bridge cannot be instantiated (args=%o).",{args:n})}getError(e,n){return r()(!1,"%s have not implemented `getError` method (args=%o).",this.constructor.name,{name:e,error:n})}getErrorMessage(e,n){return r()(!1,"%s have not implemented `getErrorMessage` method (args=%o).",this.constructor.name,{name:e,error:n})}getErrorMessages(e){return r()(!1,"%s have not implemented `getErrorMessages` method (args=%o).",this.constructor.name,{error:e})}getField(e){return r()(!1,"%s have not implemented `getField` method (args=%o).",this.constructor.name,{name:e})}getInitialValue(e){return r()(!1,"%s have not implemented `getInitialValue` method (args=%o).",this.constructor.name,{name:e})}getInitialModel(){const e={},n=this.getSubfields();for(const t of n){const n=this.getInitialValue(t);i()(e,t,n)}return e}getProps(e){return r()(!1,"%s have not implemented `getProps` method (args=%o).",this.constructor.name,{name:e})}getSubfields(e){return r()(!1,"%s have not implemented `getSubfields` method (args=%o).",this.constructor.name,{name:e})}getType(e){return r()(!1,"%s have not implemented `getType` method (args=%o).",this.constructor.name,{name:e})}getValidator(e){return r()(!1,"%s have not implemented `getValidator` method (args=%o).",this.constructor.name,{options:e})}}},51674:function(e,n,t){"use strict";t.d(n,{X:function(){return i},s:function(){return l}});var a=t(59312),r=t(27378);function l(e){class n extends e{getNativeFormProps(){const e=super.getNativeFormProps(),{errorsField:n=this.getErrorsField(),submitField:t=this.getSubmitField()}=e,l=(0,a._T)(e,["errorsField","submitField"]),i=this.getAutoField();return l.children||(l.children=this.getContextSchema().getSubfields().map((e=>r.createElement(i,{key:e,name:e}))).concat([r.createElement(n,{key:"$ErrorsField"}),r.createElement(t,{key:"$SubmitField"})])),l}getAutoField(){return()=>null}getErrorsField(){return()=>null}getSubmitField(){return()=>null}}return n.Quick=l,n.displayName=`Quick${e.displayName}`,n}const i=l(t(6820).I)},23674:function(e,n,t){"use strict";t.d(n,{O:function(){return _},u:function(){return h}});var a=t(13784),r=t.n(a),l=t(30454),i=t.n(l),s=t(56141),o=t.n(s),u=t(50344),c=t.n(u),d=t(48159),m=t.n(d),p=t(96498),f=t.n(p);function h(e){class n extends e{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{error:null,validate:!1,validating:!1,validator:this.getContextSchema().getValidator(e.validator)}),this.onValidate=this.validate=this.onValidate.bind(this),this.onValidateModel=this.validateModel=this.onValidateModel.bind(this)}getContextError(){var e;return null!==(e=super.getContextError())&&void 0!==e?e:this.state.error}getContext(){return Object.assign(Object.assign({},super.getContext()),{validating:this.state.validating})}getNativeFormProps(){const e=super.getNativeFormProps();return m()(e,["onValidate","validate","validator"])}componentDidUpdate(e,n,t){super.componentDidUpdate(e,n,t);const{model:a,schema:r,validate:l,validator:i}=this.props;r!==e.schema||i!==e.validator?this.setState({validator:r.getValidator(i)},(()=>{v(l,this.state.validate)&&this.onValidate()})):!o()(a,e.model)&&v(l,this.state.validate)&&this.onValidateModel(a)}onChange(e,n){v(this.props.validate,this.state.validate)&&this.onValidate(e,n),super.onChange(e,n)}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{error:null,validate:!1,validating:!1})}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.setState({submitted:!0,validate:!0});const n=this.onValidate().then((e=>null!==e?Promise.reject(e):super.onSubmit().catch((e=>{throw this.setState({error:e}),e}))));return n.catch(c()),n}onValidate(e,n){let t=this.getContextModel();return t&&e&&(t=f()(r()(t),e,i()(n),r())),this.onValidateModel(t)}onValidateModel(e){var n=this;const t=this.getModel("validate",e),a=function(e){function n(n,t){return n instanceof Promise?(e(),n.then(t)):t(n)}return n}((()=>{this.setState({validating:!0})}));return a(this.state.validator(t),(function(e){return void 0===e&&(e=null),a(n.props.onValidate(t,e),(function(e){var t;return void 0===e&&(e=null),e=n.props.error===e?null:e,n.setState((n=>n.error!==e||n.validating?{error:e,validating:!1}:null)),Promise.resolve(null!==(t=n.props.error)&&void 0!==t?t:e)}))}))}}return n.Validated=h,n.displayName=`Validated${e.displayName}`,n.defaultProps=Object.assign(Object.assign({},e.defaultProps),{onValidate(e,n){return n},validate:"onChangeAfterSubmit"}),n}function v(e,n){return"onChange"===e||"onChangeAfterSubmit"===e&&n}const _=h(t(6820).I)},76424:function(e,n,t){"use strict";t.d(n,{e:function(){return o}});var a=t(25389),r=t.n(a),l=t(27378),i=t(34361),s=t(68591);function o(e,n){function t(t){const[a,o]=(0,s.U)(t.name,t,n),u=function(e,n,t){if("leaf"===(null==t?void 0:t.kind))return e;const a=""!==n.name,l=Object.keys(e.state).some((e=>null!=n[e]));if(!a&&!l)return e;const i=Object.assign({},e);return a&&(i.name=i.name.concat(n.name)),l&&(i.state=r()(i.state,((e,t)=>{const a=n[t];return null!=a?!!a:e}))),i}(o,t,n),c=l.createElement(e,Object.assign({},t,a));return o===u?c:l.createElement(i.D.Provider,{children:c,value:u})}return t.displayName=`${e.displayName||e.name}Field`,Object.assign(t,{Component:e,options:n})}},34361:function(e,n,t){"use strict";t.d(n,{D:function(){return a}});const a=(0,t(27378).createContext)(null)},6846:function(e,n,t){"use strict";t.d(n,{a:function(){return o}});var a=t(59312),r=t(3996),l=t.n(r),i=t(27378),s=t(68591);function o(e){const n=(0,i.createContext)(e);return Object.assign((function(e){var t,{experimental_absoluteName:r}=e,o=(0,a._T)(e,["experimental_absoluteName"]);const u={absoluteName:r},[c,d]=(0,s.U)(o.name,o,u),m=(0,i.useContext)(n)(c,d);return l()(m,"AutoField received no component for: %s",c.name),"options"in m&&"leaf"===(null===(t=m.options)||void 0===t?void 0:t.kind)?(0,i.createElement)(m.Component,c):(0,i.createElement)(m,o)}),{componentDetectorContext:n,defaultComponentDetector:e})}},11561:function(e,n,t){"use strict";t.d(n,{z:function(){return l}});const a=[],r=new Set,l=Object.assign((function(e){const n=Object.assign({},e);for(const t in e)r.has(t)&&delete n[t];return n}),{register(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];n.forEach((e=>{r.has(e)||(a.push(e),r.add(e))})),a.sort()},registered:a});l.register("changed","error","errorMessage","field","fieldType","fields","name","onChange","value","disabled","showInlineError","component")},65507:function(e,n,t){"use strict";t.d(n,{m:function(){return d}});const a=/[.[\]]/,r=/"/g;function l(e){return""===e||a.test(e)?`["${e.replace(r,'\\"')}"]`:e}function i(e,n){const t=l(e);return t===e?n?`.${e}`:e:t}const s=/^\["(.*)"]$/,o=/\\"/g;function u(e){const n=s.exec(e);return n?n[1].replace(o,'"'):e}const c=/^([^.[\]]*(?:\.[^.[\]]+)*)(?:\.?(\["(?:(?:[^"]|\\")*?[^\\])?"])\.?(.*))?$/;const d=Object.assign((function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];const a=null===n[0],r=[];for(let l=0;l!==n.length;++l){const e=n[l];if(e||0===e)if("string"==typeof e){const t=c.exec(e);if(t){const[,e,a,i]=t;e&&(e.includes(".")?r.push(...e.split(".")):r.push(e)),a&&(r.push(u(a)),i&&(n[l--]=i))}else r.push(e)}else if(Array.isArray(e)){if(e.length){const t=Math.min(l+1,e.length);l-=t,n.splice(l+1,t,...e)}}else r.push(""+e)}return a?r.map(l):r.map(i).join("")}),{escape:l,unescape:u})},68591:function(e,n,t){"use strict";t.d(n,{U:function(){return c}});var a=t(99729),r=t.n(a),l=t(25389),i=t.n(l),s=t(27378),o=t(65507),u=t(55201);function c(e,n,t){var a,l,c;const d=(0,u.c)(),m=(0,o.m)((null==t?void 0:t.absoluteName)?"":d.name,e),p=d.schema.getField(m),f=!1!==(null==t?void 0:t.initialValue),h=f?(0,s.useRef)(!1):{current:!1},v=i()(d.state,((e,t)=>{const a=n[t];return null!=a?!!a:e})),_=!!r()(d.changedMap,m),g=d.schema.getError(m,d.error),b=d.schema.getErrorMessage(m,d.error),E=d.schema.getType(m),y=d.schema.getSubfields(m),O=d.schema.getProps(m),C=null!==(l=null!==(a=n.label)&&void 0!==a?a:O.label)&&void 0!==l?l:"",k=(0,s.useMemo)((()=>d.randomId()),[]),j=(0,s.useCallback)((function(e,n){void 0===n&&(n=m),h.current=!0,d.onChange(n,e)}),[d.onChange,m]),x=r()(d.model,m);let N,P=null!==(c=n.value)&&void 0!==c?c:x;f&&(h.current||(void 0===P?(P=d.schema.getInitialValue(m),N=P):void 0!==n.value&&n.value!==x&&(N=n.value)),(0,s.useEffect)((()=>{void 0!==N&&j(N)}),[]));return[Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:k},v),{changed:_,error:g,errorMessage:b,field:p,fieldType:E,fields:y,onChange:j,value:P}),O),n),{label:C,name:m}),d]}},55201:function(e,n,t){"use strict";t.d(n,{c:function(){return s}});var a=t(3996),r=t.n(a),l=t(27378),i=t(34361);function s(){const e=(0,l.useContext)(i.D);return r()(null!==e,"useForm must be used within a form.\n\nTwo most common reasons for this error are:\n1. Component calling this function doesn't have a parent Form component in the tree.\n2. A duplicate uniforms dependency is installed in node_modules.\n\nFor more info check FAQ: https://uniforms.tools/docs/faq/#useform-must-be-used-within-a-form\n "),e}},57292:function(e,n,t){"use strict";t.d(n,{f:function(){return l}});var a=t(95256),r=t(27378);function l(e){let{language:n,replace:t,section:l,source:i}=e;if("object"==typeof i&&"default"in i&&(i=i.default),l){const e=new RegExp(`// <${l}>\\s([\\s\\S]*?)\\s// </${l}>\\s`,"g");i=i.split(e).reduce(((e,n,t)=>t%2==0?e:`${e}\n\n${n}`),"")}if(i=i.replace(/\/\/ <.*?\n/g,""),t)for(const[a,r]of Object.entries(t))i=i.replace(new RegExp(a,"gs"),r);return i=i.trim(),i.includes("\n")||(i+="\n"),r.createElement(a.Z.pre,null,r.createElement(a.Z.code,{children:i,className:`language-${n}`,mdxType:"code",originalType:"code",parentName:"pre"}))}},633:function(e,n,t){"use strict";t.d(n,{n:function(){return d}});var a=t(25773),r=t(27378),l=t(4940),i=t(99729),s=t.n(i);function o(e){const[n,t]=(0,r.useState)(300),a=(0,r.useRef)(),l=(0,r.useCallback)((()=>function(e,n){const t=s()(e.current,"node.contentDocument.body.scrollHeight",0);0!==t&&n(t)}(a,t)),[a,t]);return(0,r.useEffect)((()=>{const e=setInterval(l,1e3);return()=>clearInterval(e)}),[l,...e]),{onLoad:l,ref:a,style:{height:n}}}var u=t(80912),c=t(37126);function d(e){const n=(0,r.useContext)(u.nN),t=o([e.children]);return r.createElement("div",{className:l.Z["form-wrapper"]},r.createElement(c.d,(0,a.Z)({frameProps:t,theme:n},e)))}},37126:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return Playground},d:function(){return PlaygroundWrap}});var _home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(25773),antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(64222),classnames__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(60042),classnames__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__),lodash_omit__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(48159),lodash_omit__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(27378),react_frame_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5766),uniforms__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23674),uniforms__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(34361),uniforms__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(55201),uniforms__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(76424),_index_module_css__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4940),_lib_presets__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5037),_lib_schema__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5413),_lib_styles__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(27611),_lib_universal__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(80912),_lib_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(37309);class Playground extends react__WEBPACK_IMPORTED_MODULE_2__.Component{static getDerivedStateFromError(e){return{error:e}}constructor(){super(...arguments);const e=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.clean((0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.mB)());try{_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.validate(e)}catch(n){n.details.forEach((n=>{let{name:t}=n;e[t]=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.getDefinition(t).defaultValue}))}this.state=e,this.onChange=this.onChange.bind(this)}componentDidMount(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}componentDidUpdate(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}onChange(e,n){"preset"===e&&this.setState((e=>({props:{...e.props,schema:_lib_presets__WEBPACK_IMPORTED_MODULE_5__.Z[n]}}))),this.setState({error:void 0,[e]:n})}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundForm,{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z.playground,model:this.state,onChange:this.onChange,schema:_lib_schema__WEBPACK_IMPORTED_MODULE_6__.J},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-column"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement("nav",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-toolbar"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"preset"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"theme"})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPropsField,{name:"props",spellCheck:!1})),this.state.error?react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",{children:""+this.state.error}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPreviewField,{name:"props",nameTheme:"theme"}))}}class PlaygroundForm extends uniforms__WEBPACK_IMPORTED_MODULE_10__.O{getContextState(){return{...super.getContextState(),theme:this.props.model.theme}}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(uniforms__WEBPACK_IMPORTED_MODULE_11__.D.Provider,{value:this.getContext()},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",lodash_omit__WEBPACK_IMPORTED_MODULE_1___default()(this.getNativeFormProps(),["onSubmit"])))}}const PlaygroundModelDebug=()=>{const{model:e}=(0,uniforms__WEBPACK_IMPORTED_MODULE_12__.c)();return react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("code",null,`const model = ${JSON.stringify(e,null,2)};`)))};class PlaygroundPreview extends react__WEBPACK_IMPORTED_MODULE_2__.Component{constructor(){super(...arguments),this._schema=eval(`(${this.props.value.schema})`)}UNSAFE_componentWillReceiveProps(props){this.props.value.schema!==props.value.schema&&(this._schema=eval(`(${props.value.schema})`))}render(){const{AutoFields:e,AutoForm:n,ErrorsField:t,SubmitField:a}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[this.props.theme||"unstyled"],{asyncOnSubmit:r,asyncOnValidate:l,schema:i,...s}=this.props.value;return s.schema=this._schema,r&&(s.onSubmit=()=>new Promise((e=>{setTimeout(e,1e3)}))),l&&(s.onValidate=(e,n)=>new Promise((e=>{setTimeout((()=>{e(n)}),1e3)}))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:this.props.theme},this.props.errorMessage?react__WEBPACK_IMPORTED_MODULE_2__.createElement("span",{children:this.props.errorMessage}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(n,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({key:(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.nN)(i)},s),react__WEBPACK_IMPORTED_MODULE_2__.createElement(e,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(t,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(a,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundModelDebug,null)))}}const PlaygroundPreviewField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundPreview);class PlaygroundProps extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{onChange:e,schema:n,theme:t,value:a}=this.props,r="antd"===t,l="bootstrap4"===t,i="material"===t,s="semantic"===t,{AutoForm:o,BoolField:u,ErrorsField:c,LongTextField:d,NumField:m}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[t||"unstyled"];return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:t},react__WEBPACK_IMPORTED_MODULE_2__.createElement(o,{autosave:!0,autosaveDelay:100,model:a,onSubmit:e,schema:n},react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"autosave"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(m,{name:"autosaveDelay",disabled:!a.autosave}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"disabled"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"readOnly"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"label"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"placeholder"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"showInlineError",disabled:!(r||l||i||s)}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"asyncOnSubmit"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"asyncOnValidate"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(d,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({name:"schema"},i&&{fullWidth:!0,rowsMax:20})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,null)))}}const PlaygroundPropsField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundProps);class PlaygroundSelect extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{options:e,onChange:n,value:t}=this.props;return react__WEBPACK_IMPORTED_MODULE_2__.createElement("select",{onChange:e=>n(e.target.value),value:t},e.map((e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement("option",{key:e.key??e.value,value:e.value},e.label??e.value))))}}const PlaygroundSelectField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundSelect);class PlaygroundWrap extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{children:e,frameProps:n,theme:t}=this.props,a=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,e,_lib_styles__WEBPACK_IMPORTED_MODULE_7__.Z[t]);if("material"===t||"mui"===t)return react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{children:a,className:classnames__WEBPACK_IMPORTED_MODULE_0___default()("frame-root",_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"])});let r=a;return"antd"===t&&(r=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.Kr,null,(e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__.default,{getPopupContainer:()=>e.document.body},a)))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.ZP,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({children:r,className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"]},n))}}},46867:function(e,n,t){"use strict";t.d(n,{TX:function(){return o},mQ:function(){return c}});var a=t(60042),r=t.n(a),l=t(27378),i=t(4940),s=t(59150);function o(e){let{activeTab:n,items:t,onTab:a}=e;return l.createElement("div",{className:i.Z.tabs},t.map(((e,t)=>{let{name:r}=e;return l.createElement(u,{active:n===t,key:t,onClick:()=>a(t)},r)})))}function u(e){let{active:n,children:t,onClick:a}=e;return l.createElement("span",{className:r()(i.Z.item,n&&i.Z.active),onClick:a,onKeyDown:e=>"Enter"===e.key&&a(),role:"button",tabIndex:0},t)}function c(e){let{children:n,group:t,tabs:a}=e;const{activeTab:r,onTab:i}=(0,s.Y)(t);return l.createElement(l.Fragment,null,l.createElement(o,{activeTab:r,items:a,onTab:i}),n(a[r]))}},53009:function(e,n,t){"use strict";t.d(n,{R:function(){return o}});var a=t(27378),r=t(80912),l=t(633),i=t(46867);const s=[{name:"Semantic",value:"semantic"},{name:"Material",value:"material"},{name:"MUI",value:"mui"},{name:"Bootstrap4",value:"bootstrap4"},{name:"Bootstrap5",value:"bootstrap5"},{name:"AntD",value:"antd"},{name:"Unstyled",value:"unstyled"}];function o(e){let{children:n}=e;return a.createElement(i.mQ,{group:"tutorial",tabs:s},(e=>{let{value:t}=e;return a.createElement(r.nN.Provider,{value:t},a.createElement(l.n,null,n))}))}},5037:function(e,n){"use strict";const t=e=>e[0].slice(5,-3).replace(/([\r\n]+) {4}/g,"$1"),a={"Welcome!":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + date: { type: Date, defaultValue: new Date() }, + adult: Boolean, + size: { + type: String, + defaultValue: 'm', + allowedValues: ['xs', 's', 'm', 'l', 'xl'], + }, + rating: { + type: Number, + allowedValues: [1, 2, 3, 4, 5], + uniforms: { checkboxes: true }, + }, + friends: { type: Array, minCount: 1 }, + 'friends.$': Object, + 'friends.$.name': { type: String, min: 3 }, + 'friends.$.age': { type: Number, min: 0, max: 150 }, + }) + }) + `,"Address (JSONSchema)":t` + (() => { + const ajv = new Ajv({ allErrors: true, useDefaults: true, keywords: ["uniforms"] }); + const schema = { + title: 'Address', + type: 'object', + properties: { + city: { type: 'string' }, + state: { type: 'string' }, + street: { type: 'string' }, + zip: { type: 'string', pattern: '[0-9]{5}' }, + }, + required: ['street', 'zip', 'state'], + }; + + function createValidator(schema) { + const validator = ajv.compile(schema); + + return (model) => { + validator(model); + + if (validator.errors && validator.errors.length) { + return { details: validator.errors }; + } + }; + } + + const validator = createValidator(schema); + + return new JSONSchemaBridge({ schema, validator }); + })() + `,"Address (SimpleSchema)":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + city: { + type: String, + optional: true, + max: 50, + }, + state: String, + street: { type: String, max: 100 }, + zip: { + type: String, + regEx: /^[0-9]{5}$/, + }, + }) + }) + `,"Address (Zod)":t` + new ZodBridge({ + schema: z.object({ + city: z.string().max(50).optional(), + state: z.string(), + street: z.string().max(100), + zip: z.string().regex(/^[0-9]{5}$/), + }) + }) + `,"All Fields (SimpleSchema)":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + text: { type: String }, + num: { type: Number }, + bool: { type: Boolean }, + nested: { type: Object }, + 'nested.text': { type: String }, + date: { type: Date }, + list: { type: Array }, + 'list.$': { + type: String, + uniforms: { label: 'List Text', placeholder: 'List Text Placeholder' }, + }, + select: { + type: String, + uniforms: { + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + radio: { + type: String, + uniforms: { + checkboxes: true, + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + }) + }) + `,"All Fields (Zod)":t` + new ZodBridge({ + schema: z.object({ + text: z.string(), + num: z.number(), + bool: z.boolean(), + nested: z.object({ text: z.string() }), + date: z.date(), + // TODO: Custom label and placeholder. + list: z.array(z.string()), + select: z.enum(['a', 'b']), + // TODO: Enums with custom props. + radio: z.enum(['a', 'b']), + }) + }) + `};n.Z=a},5413:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return bridge},f:function(){return schema}});var ajv__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(86236),ajv__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(ajv__WEBPACK_IMPORTED_MODULE_0__),message_box__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(28622),simpl_schema__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(13762),simpl_schema__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(simpl_schema__WEBPACK_IMPORTED_MODULE_2__),uniforms__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(11561),uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(73633),uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(12005),uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(48616),zod__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(84200),_presets__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5037),_universal__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(80912);uniforms__WEBPACK_IMPORTED_MODULE_8__.z.register("const");const scope="undefined"==typeof window?__webpack_require__.g:window;simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().extendOptions(["uniforms"]),scope.Ajv=ajv__WEBPACK_IMPORTED_MODULE_0___default(),scope.JSONSchemaBridge=uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__.j,scope.SimpleSchema=simpl_schema__WEBPACK_IMPORTED_MODULE_2___default(),scope.SimpleSchema2Bridge=uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V,scope.ZodBridge=uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__.K,scope.z=zod__WEBPACK_IMPORTED_MODULE_9__.z,message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:""}}});const propsSchema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({autosave:{optional:!0,type:Boolean},autosaveDelay:{optional:!0,type:simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().Integer},disabled:{optional:!0,type:Boolean},label:{optional:!0,type:Boolean},placeholder:{optional:!0,type:Boolean},readOnly:{optional:!0,type:Boolean},showInlineError:{optional:!0,type:Boolean},asyncOnSubmit:{optional:!0,type:Boolean,label:"Async onSubmit (1 sec)"},asyncOnValidate:{optional:!0,type:Boolean,label:"Async onValidate (1 sec)"},schema:{optional:!0,type:String,custom(){try{return void eval(`(${this.value??""})`)}catch(error){const e=error instanceof Error?error.message:String(error);return message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:e}}}),"syntax"}}}}),propsBridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:propsSchema}),schema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({preset:{type:String,defaultValue:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0],allowedValues:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)},props:{type:Object,blackbox:!0,defaultValue:{autosave:!1,autosaveDelay:100,disabled:!1,label:!0,placeholder:!1,readOnly:!1,schema:_presets__WEBPACK_IMPORTED_MODULE_6__.Z[Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0]],showInlineError:!1,asyncOnSubmit:!1,asyncOnValidate:!1},uniforms:{schema:propsBridge}},theme:{type:String,uniforms:{transform:e=>`uniforms-${e}`},defaultValue:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)[0],allowedValues:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)}}),bridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:schema})},27611:function(e,n,t){"use strict";var a=t(27378);const r=a.createElement("style",{children:'\n body {\n margin: 0;\n }\n\n textarea[name="schema"] {\n font-family: monospace !important;\n min-height: 20em !important;\n }\n\n .frame-root {\n padding: 1rem !important;\n }\n',key:"common"}),l=e=>e.map(((e,n)=>a.createElement("link",{key:n,rel:"stylesheet",href:e}))).concat(r),i={antd:l(["https://cdnjs.cloudflare.com/ajax/libs/antd/4.4.0/antd.min.css"]),bootstrap4:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css"]),bootstrap5:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css"]),material:l([]),mui:l([]),semantic:l(["https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.7/semantic.min.css"]),unstyled:l([])};n.Z=i},59150:function(e,n,t){"use strict";t.d(n,{Y:function(){return i}});var a=t(27378);const r=Object.create(null),l=Object.create(null);function i(e){const[n,t]=(0,a.useState)(r[e]||0),i=(0,a.useCallback)((n=>function(e,n){r[e]=n,l[e].forEach((e=>{e(n)}))}(e,n)),[e]);return(0,a.useEffect)((()=>function(e,n){return void 0===l[e]&&(r[e]=0,l[e]=[]),l[e].push(n),()=>{l[e].splice(l[e].indexOf(n),1)}}(e,t)),[e]),{activeTab:n,onTab:i}}},80912:function(e,n,t){"use strict";t.d(n,{Pt:function(){return Jr},UE:function(){return Qr},NE:function(){return Hr},ME:function(){return Gr},yc:function(){return Xr},hI:function(){return Yr},mg:function(){return el},hl:function(){return nl},nv:function(){return tl},nN:function(){return rl},np:function(){return al}});var a={};t.r(a),t.d(a,{AutoField:function(){return _e},AutoFields:function(){return be},AutoForm:function(){return we},BaseForm:function(){return Oe},BoolField:function(){return F},DateField:function(){return A},ErrorField:function(){return Ae},ErrorsField:function(){return xe},HiddenField:function(){return Re},ListAddField:function(){return K},ListDelField:function(){return J},ListField:function(){return ae},ListItemField:function(){return ee},LongTextField:function(){return Be},NestField:function(){return re},NumField:function(){return ie},QuickForm:function(){return Pe},RadioField:function(){return ce},SelectField:function(){return fe},SubmitField:function(){return Ne},TextField:function(){return ve},ValidatedForm:function(){return Fe},ValidatedQuickForm:function(){return Te},wrapField:function(){return M}});var r={};t.r(r),t.d(r,{AutoField:function(){return fn},AutoFields:function(){return hn},AutoForm:function(){return Cn},BaseForm:function(){return vn},BoolField:function(){return Ke},DateField:function(){return Je},ErrorField:function(){return kn},ErrorsField:function(){return _n},HiddenField:function(){return jn},ListAddField:function(){return Ge},ListDelField:function(){return Ye},ListField:function(){return nn},ListItemField:function(){return en},LongTextField:function(){return xn},NestField:function(){return tn},NumField:function(){return an},QuickForm:function(){return En},RadioField:function(){return sn},SelectField:function(){return mn},SubmitField:function(){return bn},TextField:function(){return pn},ValidatedForm:function(){return yn},ValidatedQuickForm:function(){return On},gridClassName:function(){return Ve},wrapField:function(){return ze}});var l={};t.r(l),t.d(l,{AutoField:function(){return Gn},AutoFields:function(){return Xn},AutoForm:function(){return it},BaseForm:function(){return Yn},BoolField:function(){return wn},DateField:function(){return An},ErrorField:function(){return st},ErrorsField:function(){return et},HiddenField:function(){return ot},ListAddField:function(){return Sn},ListDelField:function(){return Ln},ListField:function(){return Zn},ListItemField:function(){return Wn},LongTextField:function(){return ut},NestField:function(){return Un},NumField:function(){return $n},QuickForm:function(){return at},RadioField:function(){return Kn},SelectField:function(){return Jn},SubmitField:function(){return tt},TextField:function(){return Hn},ValidatedForm:function(){return rt},ValidatedQuickForm:function(){return lt},gridClassName:function(){return Fn},wrapField:function(){return Tn}});var i={};t.r(i),t.d(i,{AutoField:function(){return Vt},AutoFields:function(){return zt},AutoForm:function(){return Yt},BaseForm:function(){return Kt},BoolField:function(){return bt},DateField:function(){return Ct},ErrorField:function(){return ea},ErrorsField:function(){return qt},HiddenField:function(){return na},ListAddField:function(){return Nt},ListDelField:function(){return Mt},ListField:function(){return Tt},ListItemField:function(){return Ft},LongTextField:function(){return ta},NestField:function(){return wt},NumField:function(){return It},QuickForm:function(){return Ht},RadioField:function(){return Bt},SelectField:function(){return Ut},SubmitField:function(){return Jt},TextField:function(){return $t},ValidatedForm:function(){return Gt},ValidatedQuickForm:function(){return Xt},wrapField:function(){return gt}});var s={};t.r(s),t.d(s,{AutoField:function(){return Sa},AutoFields:function(){return Ba},AutoForm:function(){return za},BaseForm:function(){return La},BoolField:function(){return da},DateField:function(){return ha},ErrorField:function(){return Ka},ErrorsField:function(){return Wa},HiddenField:function(){return qa},ListAddField:function(){return ba},ListDelField:function(){return Oa},ListField:function(){return ka},ListItemField:function(){return Ca},LongTextField:function(){return Qa},NestField:function(){return ja},NumField:function(){return xa},QuickForm:function(){return Ua},RadioField:function(){return Ta},SelectField:function(){return Aa},SubmitField:function(){return Za},TextField:function(){return Ra},ValidatedForm:function(){return $a},ValidatedQuickForm:function(){return Va},wrapField:function(){return ca}});var o={};t.r(o),t.d(o,{AutoField:function(){return Ja.Z},AutoFields:function(){return Ha},AutoForm:function(){return Ga.Z},BaseForm:function(){return Xa.Z},BoolField:function(){return Ya.Z},DateField:function(){return er.Z},ErrorField:function(){return nr},ErrorsField:function(){return tr.Z},HiddenField:function(){return ar},ListAddField:function(){return rr.Z},ListDelField:function(){return lr.Z},ListField:function(){return ir.Z},ListItemField:function(){return sr.Z},LongTextField:function(){return or},NestField:function(){return ur.Z},NumField:function(){return cr.Z},QuickForm:function(){return dr.Z},RadioField:function(){return mr.Z},SelectField:function(){return pr.Z},SubmitField:function(){return fr.Z},TextField:function(){return hr.Z},ValidatedForm:function(){return vr.Z},ValidatedQuickForm:function(){return _r.Z}});var u={};t.r(u),t.d(u,{AutoField:function(){return Rr},AutoFields:function(){return Sr},AutoForm:function(){return Vr},BaseForm:function(){return Br},BoolField:function(){return gr},DateField:function(){return yr},ErrorField:function(){return zr},ErrorsField:function(){return Lr},HiddenField:function(){return Kr},ListAddField:function(){return Or},ListDelField:function(){return Cr},ListField:function(){return jr},ListItemField:function(){return kr},LongTextField:function(){return qr.Z},NestField:function(){return xr},NumField:function(){return Nr},QuickForm:function(){return Zr},RadioField:function(){return Fr},SelectField:function(){return Ir},SubmitField:function(){return Wr},TextField:function(){return Ar},ValidatedForm:function(){return Ur},ValidatedQuickForm:function(){return $r}});var c=t(25773),d=t(27378),m=t(3996),p=t.n(m),f=t(6846),h=t(59312),v=t(30219),_=t.n(v),g=t(21473),b=t.n(g),E=t(98591),y=t(56369),O=t(11561),C=t(76424),k=t(31115),j=t.n(k),x=t(5041),N=t(62004);const P={marginBottom:"12px"};function M(e,n){let{colon:t,error:a,errorMessage:r,extra:l,help:i,id:s,info:o,label:u,labelCol:c,required:m,showInlineError:p,validateStatus:f,wrapperCol:h,wrapperStyle:v=P}=e;const _=!!u&&d.createElement("span",null,u,!!o&&d.createElement("span",null,"\xa0",d.createElement(N.default,{title:o},d.createElement(j(),null))));return d.createElement(x.Z.Item,{colon:t,hasFeedback:!0,help:i||p&&!!a&&r,extra:l,htmlFor:s,label:_,labelCol:c,required:m,style:v,validateStatus:a?"error":f,wrapperCol:h},n)}O.z.register("checkboxes","colon","disableItem","labelCol","validateStatus","wrapperCol","wrapperStyle");var F=(0,C.e)((function(e){var{checkbox:n=!1,checkedChildren:t=d.createElement(_(),null),disabled:a,inputRef:r,name:l,onChange:i,readOnly:s,unCheckedChildren:o=d.createElement(b(),null),value:u}=e,c=(0,h._T)(e,["checkbox","checkedChildren","disabled","inputRef","name","onChange","readOnly","unCheckedChildren","value"]);const m=n?E.Z:y.Z;return M(c,d.createElement(m,Object.assign({checked:u||!1,checkedChildren:t,disabled:a,name:l,onChange:()=>s?void 0:i(!u),ref:r,unCheckedChildren:o},(0,O.z)(c))))}),{kind:"leaf"}),T=t(82290),w=t(61320),I=t.n(w);const D={width:"100%"};var A=(0,C.e)((function(e){var{showTime:n=!0,style:t=D}=e,a=(0,h._T)(e,["showTime","style"]);return M(a,d.createElement(T.Z,Object.assign({disabled:a.disabled,inputReadOnly:a.readOnly,name:a.name,onChange:e=>{a.readOnly||a.onChange(e?e.toDate():void 0)},placeholder:a.placeholder,ref:a.inputRef,showTime:n,style:t,value:a.value&&I()(a.value)},(0,O.z)(a))))}),{kind:"leaf"}),R=t(60042),S=t.n(R),B=t(94037),L=t.n(B),W=t(76676),Z=t(30454),U=t.n(Z),$=t(65507),V=t(68591);const z={width:"100%"};var K=(0,C.e)((function(e){var{disabled:n,icon:t=d.createElement(L(),null),name:a,readOnly:r,size:l="small",style:i=z,type:s="dashed",value:o}=e,u=(0,h._T)(e,["disabled","icon","name","readOnly","size","style","type","value"]);const c=(0,$.m)(null,a),m=(0,$.m)(c.slice(0,-1)),p=(0,V.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return d.createElement(W.default,Object.assign({},(0,O.z)(u),{disabled:!f,icon:t,onClick:()=>{r||p.onChange(p.value.concat([U()(o)]))},size:l,style:i,type:s}))}),{initialValue:!1,kind:"leaf"}),q=t(85221),Q=t.n(q);var J=(0,C.e)((function(e){var{disabled:n,icon:t=d.createElement(Q(),null),name:a,readOnly:r,shape:l="circle",size:i="small",type:s="ghost"}=e,o=(0,h._T)(e,["disabled","icon","name","readOnly","shape","size","type"]);const u=(0,$.m)(null,a),c=+u[u.length-1],m=(0,$.m)(u.slice(0,-1)),p=(0,V.U)(m,{},{absoluteName:!0})[0];return n||(n=r||p.minCount>=p.value.length),d.createElement(W.default,Object.assign({},(0,O.z)(o),{disabled:n,icon:t,onClick:()=>{const e=p.value.slice();e.splice(c,1),p.onChange(e)},shape:l,size:i,type:s}))}),{initialValue:!1,kind:"leaf"});const H={float:"right",marginBottom:"10px",marginLeft:"10px",marginRight:"6px",width:"20px"},G={marginBottom:"24px",overflow:"hidden"},X={borderBottom:"1px solid #DDD",height:"20px",marginTop:"-8px"},Y={width:"100%"};var ee=(0,C.e)((function(e){let{children:n=d.createElement(_e,{label:null,name:""})}=e;return d.createElement("div",null,d.createElement("div",{style:H},d.createElement(J,{className:"top aligned",name:""})),d.createElement("div",{style:G},d.createElement("div",{style:X})),d.createElement("div",{style:Y},n))}));const ne={marginBottom:"5px",marginTop:"5px",padding:"10px"},te={borderColor:"rgb(255, 85, 0)"};var ae=(0,C.e)((function(e){var{children:n=d.createElement(ee,{name:"$"}),className:t,error:a,errorMessage:r,info:l,itemProps:i,label:s,labelCol:o,showInlineError:u,style:c=ne,value:m,wrapperCol:p}=e,f=(0,h._T)(e,["children","className","error","errorMessage","info","itemProps","label","labelCol","showInlineError","style","value","wrapperCol"]);const v=a?c?Object.assign(Object.assign({},te),c):te:c;return d.createElement("div",Object.assign({},(0,O.z)(f),{style:v,className:S()([t,"ant-list","ant-list-bordered"])}),!!s&&d.createElement("div",null,s,!!l&&d.createElement("span",null,"\xa0",d.createElement(N.default,{title:l},d.createElement(j(),null)))),!(!a||!u)&&d.createElement("div",null,r),null==m?void 0:m.map(((e,t)=>d.Children.map(n,((e,n)=>{var a;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+t),labelCol:o,wrapperCol:p},i)):e})))),d.createElement(K,{name:"$"}))}));var re=(0,C.e)((function(e){var{children:n,error:t,errorMessage:a,fields:r,itemProps:l,label:i,showInlineError:s}=e,o=(0,h._T)(e,["children","error","errorMessage","fields","itemProps","label","showInlineError"]);return d.createElement("div",Object.assign({},(0,O.z)(o)),i&&d.createElement("label",null,i),!(!t||!s)&&d.createElement("div",null,a),n||r.map((e=>d.createElement(_e,Object.assign({key:e,name:e},l)))))})),le=t(15425);var ie=(0,C.e)((function(e){return M(e,d.createElement(le.Z,Object.assign({disabled:e.disabled,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(""+n);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),style:{width:"100%"},value:e.value},(0,O.z)(e))))}),{kind:"leaf"}),se=t(58946);const oe="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,ue={display:"block"};var ce=(0,C.e)((function(e){var n,t,a;return M(e,d.createElement(se.ZP.Group,Object.assign({},(0,O.z)(e),{disabled:e.disabled,name:e.name,onChange:n=>{e.readOnly||e.onChange(n.target.value)},value:null!==(n=e.value)&&void 0!==n?n:"",options:null===(t=e.options)||void 0===t?void 0:t.map((e=>{var n;return Object.assign(Object.assign({},e),{label:null!==(n=e.label)&&void 0!==n?n:e.value})}))}),null===(a=e.options)||void 0===a?void 0:a.map((n=>{var t,a,r;return d.createElement(se.ZP,{id:`${e.id}-${r=n.value,oe(encodeURIComponent(r)).replace(/=+$/,"")}`,key:null!==(t=n.key)&&void 0!==t?t:n.value,style:ue,value:n.value,disabled:n.disabled},null!==(a=n.label)&&void 0!==a?a:n.value)}))))}),{kind:"leaf"}),de=t(99388),me=t(69601),pe=t(92049);var fe=(0,C.e)((function(e){var n,t;const a=e.fieldType===Array?de.default:me.default,r=(0,O.z)(e);return M(e,e.checkboxes?d.createElement("span",Object.assign({},r),d.createElement(a,Object.assign({},r,{disabled:e.disabled,name:e.name,onChange:n=>{e.readOnly||e.onChange(e.fieldType===Array?n:n.target.value)},options:null===(n=e.options)||void 0===n?void 0:n.map((e=>{var n;return Object.assign(Object.assign({},e),{label:null!==(n=e.label)&&void 0!==n?n:e.value})})),value:e.value}))):d.createElement(pe.Z,Object.assign({allowClear:!e.required,disabled:e.disabled,mode:e.fieldType===Array?"multiple":void 0,name:e.name,onChange:n=>{e.readOnly||e.onChange(n)},placeholder:e.placeholder,ref:e.inputRef,value:e.fieldType===Array?Array.isArray(e.value)?e.value.filter((e=>void 0!==e)):[]:e.value},r),null===(t=e.options)||void 0===t?void 0:t.map((n=>{var t,a,r;return d.createElement(pe.Z.Option,{disabled:n.disabled,key:null!==(t=n.key)&&void 0!==t?t:n.value,value:n.value,id:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:escape(n.value)}`},null!==(r=n.label)&&void 0!==r?r:n.value)}))))}),{kind:"leaf"}),he=t(74105);var ve=(0,C.e)((function(e){var n,t;return M(e,d.createElement(he.Z,Object.assign({disabled:e.disabled,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""},(0,O.z)(e))))}),{kind:"leaf"});var _e=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?ce:fe;switch(e.fieldType){case Array:return ae;case Boolean:return F;case Date:return A;case Number:return ie;case Object:return re;case String:return ve}return p()(!1,"Unsupported field type: %s",e.fieldType)})),ge=t(55201);function be(e){var{element:n=d.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(_e,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Ee=t(39850),ye=t(6820);var Oe=function e(n){class t extends n{getNativeFormProps(){const e=super.getNativeFormProps(),{className:n,layout:t="vertical"}=e,a=(0,h._T)(e,["className","layout"]);return Object.assign(Object.assign({},a),{className:S()("ant-form","ant-form-"+t,n)})}}return t.AntD=e,t.displayName=`AntD${n.displayName}`,t}(ye.I),Ce=t(51674);const ke={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},je={margin:"3px"};var xe=function(e){var{children:n,style:t=ke}=e,a=(0,h._T)(e,["children","style"]);const{error:r,schema:l}=(0,ge.c)();return r||n?d.createElement("div",Object.assign({style:t},(0,O.z)(a)),n,d.createElement("ul",null,l.getErrorMessages(r).map(((e,n)=>d.createElement("li",{key:n,style:je},e))))):null};var Ne=function(e){var{disabled:n,inputRef:t,value:a="Submit"}=e,r=(0,h._T)(e,["disabled","inputRef","value"]);const{error:l,state:i}=(0,ge.c)();return d.createElement(W.default,Object.assign({disabled:void 0===n?!(!l&&!i.disabled):n,htmlType:"submit",ref:t,type:"primary"},r),a)};var Pe=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return _e}getErrorsField(){return xe}getSubmitField(){return Ne}}return t.Quick=e,t}(Oe),Me=t(23674);var Fe=function e(n){class t extends(Me.O.Validated(n)){}return t.Validated=e,t}(Oe),Te=Fe.Validated(Pe.Quick(Oe));var we=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Te);const Ie={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},De={margin:"3px"};var Ae=(0,C.e)((function(e){var{children:n,error:t,errorMessage:a,style:r=Ie}=e,l=(0,h._T)(e,["children","error","errorMessage","style"]);return t?d.createElement("div",Object.assign({style:r},(0,O.z)(l)),n||d.createElement("div",{style:De},a)):null}),{initialValue:!1,kind:"leaf"});function Re(e){var n,{value:t}=e,a=(0,h._T)(e,["value"]);const r=(0,V.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var Se=t(10777);var Be=(0,C.e)((function(e){var n,{rows:t=5}=e,a=(0,h._T)(e,["rows"]);return M(a,d.createElement(Se.default,Object.assign({disabled:a.disabled,name:a.name,onChange:e=>a.onChange(e.target.value),placeholder:a.placeholder,readOnly:a.readOnly,ref:a.inputRef,rows:t,value:null!==(n=a.value)&&void 0!==n?n:""},(0,O.z)(a))))}),{kind:"leaf"}),Le=t(48159),We=t.n(Le);function Ze(e,n,t){const a="xs"===e?"":`${e}-`;return"label"===t?`col-${a}${n}`:`col-${a}${12-n}`}const Ue={xs:1,sm:2,md:3,lg:4,xl:5};function $e(e,n){return Ue[e]-Ue[n]}function Ve(e,n){return"number"==typeof e?Ze("xs",e,n):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl},e)),Object.keys(e).sort($e).map((t=>Ze(t,e[t],n))).join(" ")):"":Ze("xs",parseInt(e),n)}function ze(e,n){var{changed:t,className:a,disabled:r,error:l,errorMessage:i,grid:s,help:o,helpClassName:u,id:c,label:m,labelClassName:p,required:f,showInlineError:v,wrapClassName:_}=e,g=(0,h._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const b=!(!s&&!_),E=!(!l||!v)&&d.createElement("span",{className:"form-text text-danger"},i),y=!!o&&d.createElement("span",{className:S()("form-text",u||"text-muted")},o),C=!l&&t;return d.createElement("div",Object.assign({className:S()(a,"form-group",{"is-invalid":l,"is-valid":C,disabled:r,required:f,row:s})},We()((0,O.z)(g),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&d.createElement("label",{htmlFor:c,className:S()({"col-form-label":s,"text-danger":l,"text-success":C},Ve(s,"label"),p)},m),b&&d.createElement("div",{className:S()(_,Ve(s,"input"))},n,y,E),!b&&n,!b&&y,!b&&E)}var Ke=(0,C.e)((function(e){var{onChange:n}=e,t=(0,h._T)(e,["onChange"]);const{disabled:a,error:r,inline:l,inputClassName:i,inputRef:s,label:o,labelBefore:u,name:c,readOnly:m,value:p}=t;return ze(Object.assign(Object.assign({},t),{label:u,value:t.value}),d.createElement("div",{className:S()(i,"form-check","checkbox",{"custom-control-inline":l,"text-danger":r,"text-success":!r&&t.changed})},d.createElement("label",{htmlFor:t.id,className:"form-check-label"},d.createElement("input",{checked:p||!1,className:"form-check-input",disabled:a,id:t.id,name:c,onChange:()=>{m||n(!p)},ref:s,type:"checkbox"}),"\xa0",o)))}),{kind:"leaf"});const qe=("object"==typeof t.g?t.g:window).Date,Qe=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var Je=(0,C.e)((function(e){var n,{disabled:t,error:a,id:r,inputClassName:l,inputRef:i,max:s,min:o,name:u,onChange:c,placeholder:m,readOnly:p,value:f,type:v="datetime-local"}=e,_=(0,h._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return ze(Object.assign(Object.assign({},_),{id:r}),d.createElement("input",{className:S()(l,"form-control",{"is-invalid":a,"is-valid":!a&&_.changed}),disabled:t,id:r,max:Qe(s),min:Qe(o),name:u,onChange:e=>{const n=new qe(e.target.valueAsNumber);n.getFullYear()<1e4?c(n):isNaN(e.target.valueAsNumber)&&c(void 0)},placeholder:m,readOnly:p,ref:i,type:v,value:null!==(n=Qe(f,v))&&void 0!==n?n:""}))}),{kind:"leaf"});function He(e){var{addIcon:n,className:t,disabled:a,name:r,readOnly:l,value:i}=e,s=(0,h._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const o=(0,$.m)(null,r),u=(0,$.m)(o.slice(0,-1)),c=(0,V.U)(u,{},{absoluteName:!0})[0],m=!(a||c.maxCount<=c.value.length);function p(e){!m||l||"key"in e&&"Enter"!==e.key||c.onChange(c.value.concat([U()(i)]))}return d.createElement("div",Object.assign({},(0,O.z)(s),{className:S()("badge badge-pill float-right",t),onClick:p,onKeyDown:p,role:"button",tabIndex:0}),n)}He.defaultProps={addIcon:d.createElement("i",{className:"octicon octicon-plus"})};var Ge=(0,C.e)(He,{initialValue:!1,kind:"leaf"});function Xe(e){var{className:n,disabled:t,name:a,readOnly:r,removeIcon:l}=e,i=(0,h._T)(e,["className","disabled","name","readOnly","removeIcon"]);const s=(0,$.m)(null,a),o=+s[s.length-1],u=(0,$.m)(s.slice(0,-1)),c=(0,V.U)(u,{},{absoluteName:!0})[0];function m(e){if(!(t||"key"in e&&"Enter"!==e.key)){const e=c.value.slice();e.splice(o,1),c.onChange(e)}}return t||(t=r||c.minCount>=c.value.length),d.createElement("span",Object.assign({},(0,O.z)(i),{className:S()("badge badge-pill",n),onClick:m,onKeyDown:m,role:"button",tabIndex:0}),l)}Xe.defaultProps={removeIcon:d.createElement("i",{className:"octicon octicon-dash"})};var Ye=(0,C.e)(Xe,{initialValue:!1,kind:"leaf"});var en=(0,C.e)((function(e){let{children:n=d.createElement(fn,{className:"col-11",label:null,name:""}),removeIcon:t}=e;return d.createElement("div",{className:"row"},d.createElement("div",{className:"col-1"},d.createElement(Ye,{name:"",removeIcon:t})),n)}),{initialValue:!1});var nn=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(en,{name:"$"}),className:a,error:r,errorMessage:l,itemProps:i,label:s,removeIcon:o,showInlineError:u,value:c}=e,m=(0,h._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return d.createElement("div",Object.assign({className:S()("card mb-3",a)},(0,O.z)(m)),d.createElement("div",{className:"card-body"},s&&d.createElement("div",{className:"card-title"},d.createElement("label",{className:"col-form-label"},s,"\xa0"),d.createElement(Ge,{addIcon:n,name:"$"}),!(!r||!u)&&d.createElement("span",{className:"text-danger"},l)),null==c?void 0:c.map(((e,n)=>d.Children.map(t,((e,t)=>{var a;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign(Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n)},i),{removeIcon:o})):e}))))))}));var tn=(0,C.e)((function(e){var{children:n,className:t,error:a,errorMessage:r,fields:l,itemProps:i,label:s,showInlineError:o}=e,u=(0,h._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return d.createElement("div",Object.assign({className:S()(t,{"has-error":a})},(0,O.z)(u)),s&&d.createElement("label",null,s),!(!a||!o)&&d.createElement("span",{className:"text-danger"},r),n||l.map((e=>d.createElement(fn,Object.assign({key:e,name:e},i)))))}));var an=(0,C.e)((function(e){var n;return ze(e,d.createElement("input",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(n.target.value);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});const rn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,ln=e=>rn(encodeURIComponent(e)).replace(/=+$/,"");var sn=(0,C.e)((function(e){var n;return ze(e,null===(n=e.options)||void 0===n?void 0:n.map((n=>{var t,a,r,l;return d.createElement("div",{key:null!==(t=n.key)&&void 0!==t?t:n.value,className:S()(e.inputClassName,"form-check","radio",{"custom-control-inline":e.inline,"text-danger":e.error,"text-success":!e.error&&e.changed})},d.createElement("label",{htmlFor:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:ln(n.value)}`,className:"form-check-label"},d.createElement("input",{checked:n.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:ln(n.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(n.value)},type:"radio"})," ",null!==(l=n.label)&&void 0!==l?l:n.value))})))}),{kind:"leaf"}),on=t(20098),un=t.n(on);const cn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,dn=e=>cn(encodeURIComponent(e)).replace(/=+$/,"");var mn=(0,C.e)((function(e){var{options:n,checkboxes:t,disabled:a,error:r,fieldType:l,id:i,inline:s,inputClassName:o,inputRef:u,label:c,name:m,onChange:p,placeholder:f,readOnly:v,required:_,value:g}=e,b=(0,h._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return ze(Object.assign(Object.assign({},b),{disabled:a,error:r,id:i,label:c,required:_}),t?null==n?void 0:n.map((e=>{var n,t,r,l;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value,className:S()(o,"checkbox"+(s?"-inline":""))},d.createElement("label",{htmlFor:`${i}-${null!==(t=e.key)&&void 0!==t?t:dn(e.value)}`},d.createElement("input",{checked:E?null==g?void 0:g.includes(e.value):g===e.value,disabled:e.disabled||a,id:`${i}-${null!==(r=e.key)&&void 0!==r?r:dn(e.value)}`,name:m,onChange:()=>{v||p(E?un()([e.value],g):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):d.createElement("select",{className:S()(o,"c-select form-control",{"is-invalid":r,"is-valid":!r&&b.changed}),disabled:a,id:i,multiple:E,name:m,onChange:e=>{if(!v){const n=e.target.value;if(E){const t=-1===e.target.selectedIndex;p(t?[]:un()([n],g))}else p(""!==n?n:void 0)}},ref:u,value:null!=g?g:""},(!!f||!_||void 0===g)&&!E&&d.createElement("option",{value:"",disabled:_,hidden:_},f||c),null==n?void 0:n.map((e=>{var n,t;return d.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});var pn=(0,C.e)((function(e){var n,t;return ze(We()(e,["autoComplete"]),d.createElement("input",{autoComplete:e.autoComplete,className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});var fn=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?sn:mn;switch(e.fieldType){case Array:return nn;case Boolean:return Ke;case Date:return Je;case Number:return an;case Object:return tn;case String:return pn}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function hn(e){var{element:n=d.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(fn,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var vn=function e(n){class t extends n{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),n=super.getNativeFormProps();return Object.assign(Object.assign({},We()(n,["grid"])),{className:S()("form",{error:e},n.className)})}}return t.Bootstrap4=e,t.displayName=`Bootstrap4${n.displayName}`,t}(ye.I);var _n=function(e){var{children:n,className:t}=e,a=(0,h._T)(e,["children","className"]);const{error:r,schema:l}=(0,ge.c)();return r||n?d.createElement("div",Object.assign({className:S()("card border-danger mb-3 text-danger",t)},(0,O.z)(a)),d.createElement("div",{className:"card-body"},n,l.getErrorMessages(r).map(((e,n)=>d.createElement("div",{key:n,className:"disabled"},e))))):null};function gn(e){var{className:n,disabled:t,inputClassName:a,inputRef:r,readOnly:l,value:i,wrapClassName:s}=e,o=(0,h._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:u,state:c}=(0,ge.c)(),m=c,p=!(!m.grid&&!s),f=d.createElement("input",Object.assign({className:a,disabled:void 0===t?!(!u&&!m.disabled):t,readOnly:l,ref:r,type:"submit"},i?{value:i}:{}));return d.createElement("div",Object.assign({className:S()(n,{"is-invalid":u,row:m.grid})},(0,O.z)(o)),p&&d.createElement("span",{className:S()("col-form-label",Ve(m.grid,"label"))},"\xa0"),p&&d.createElement("div",{className:S()(s,Ve(m.grid,"input"))},f),!p&&f)}gn.defaultProps={inputClassName:"btn btn-primary"};var bn=gn;var En=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return fn}getErrorsField(){return _n}getSubmitField(){return bn}}return t.Quick=e,t}(vn);var yn=function e(n){class t extends(Me.O.Validated(n)){}return t.Validated=e,t}(vn),On=yn.Validated(En.Quick(vn));var Cn=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(On);var kn=(0,C.e)((function(e){var{children:n,className:t,error:a,errorMessage:r}=e,l=(0,h._T)(e,["children","className","error","errorMessage"]);return a?d.createElement("div",Object.assign({className:S()("card","mb-3",t)},(0,O.z)(l)),d.createElement("div",{className:"card-body"},n||d.createElement("h4",{className:"card-title"},r))):null}),{initialValue:!1,kind:"leaf"});function jn(e){var n,{value:t}=e,a=(0,h._T)(e,["value"]);const r=(0,V.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var xn=(0,C.e)((function(e){var n;return ze(e,d.createElement("textarea",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});function Nn(e,n,t){const a="xs"===e?"":`${e}-`;return"label"===t?`col-${a}${n}`:`col-${a}${12-n}`}const Pn={xs:1,sm:2,md:3,lg:4,xl:5,xxl:6};function Mn(e,n){return Pn[e]-Pn[n]}function Fn(e,n){return"number"==typeof e?Nn("xs",e,n):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl||e.xxl},e)),Object.keys(e).sort(Mn).map((t=>Nn(t,e[t],n))).join(" ")):"":Nn("xs",parseInt(e),n)}function Tn(e,n){var{changed:t,className:a,disabled:r,error:l,errorMessage:i,grid:s,help:o,helpClassName:u,id:c,label:m,labelClassName:p,required:f,showInlineError:v,wrapClassName:_}=e,g=(0,h._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const b=!(!s&&!_),E=!(!l||!v)&&d.createElement("span",{className:"form-text text-danger"},i),y=!!o&&d.createElement("span",{className:S()("form-text",u||"text-muted")},o);return d.createElement("div",Object.assign({className:S()(a,"mb-3",{"is-invalid":l,disabled:r,required:f,row:s})},We()((0,O.z)(g),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&d.createElement("label",{htmlFor:c,className:S()({"col-form-label":s,"text-danger":l,"text-success":!l&&t},Fn(s,"label"),p)},m),b&&d.createElement("div",{className:S()(_,Fn(s,"input"))},n,y,E),!b&&n,!b&&y,!b&&E)}var wn=(0,C.e)((function(e){var{onChange:n}=e,t=(0,h._T)(e,["onChange"]);const{disabled:a,error:r,inline:l,inputClassName:i,inputRef:s,label:o,labelBefore:u,name:c,readOnly:m,value:p}=t;return Tn(Object.assign(Object.assign({},t),{label:u,value:t.value}),d.createElement("div",{className:S()(i,"form-check",{"text-danger":r,"text-success":!r&&t.changed,"form-check-inline":l})},d.createElement("input",{checked:p||!1,className:"form-check-input",disabled:a,id:t.id,name:c,onChange:()=>{m||n(!p)},ref:s,type:"checkbox"}),d.createElement("label",{htmlFor:t.id,className:"form-check-label"},o)))}),{kind:"leaf"});const In=("object"==typeof t.g?t.g:window).Date,Dn=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var An=(0,C.e)((function(e){var n,{disabled:t,error:a,id:r,inputClassName:l,inputRef:i,max:s,min:o,name:u,onChange:c,placeholder:m,readOnly:p,value:f,type:v="datetime-local"}=e,_=(0,h._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return Tn(Object.assign(Object.assign({},_),{id:r}),d.createElement("input",{className:S()(l,"form-control",{"is-invalid":a,"is-valid":!a&&_.changed}),disabled:t,id:r,max:Dn(s),min:Dn(o),name:u,onChange:e=>{const n=new In(e.target.valueAsNumber);n.getFullYear()<1e4?c(n):isNaN(e.target.valueAsNumber)&&c(void 0)},placeholder:m,readOnly:p,ref:i,type:v,value:null!==(n=Dn(f,v))&&void 0!==n?n:""}))}),{kind:"leaf"});function Rn(e){var{addIcon:n,className:t,disabled:a,name:r,readOnly:l,value:i}=e,s=(0,h._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const o=(0,$.m)(null,r),u=(0,$.m)(o.slice(0,-1)),c=(0,V.U)(u,{},{absoluteName:!0})[0];return a||(a=l||c.maxCount<=c.value.length),d.createElement("button",Object.assign({},(0,O.z)(s),{className:S()("btn btn-secondary btn-sm float-end",t),disabled:a,onClick:function(){a||c.onChange(c.value.concat([U()(i)]))},tabIndex:0,type:"button"}),n)}Rn.defaultProps={addIcon:d.createElement("i",{className:"octicon octicon-plus"})};var Sn=(0,C.e)(Rn,{initialValue:!1,kind:"leaf"});function Bn(e){var{className:n,disabled:t,name:a,readOnly:r,removeIcon:l}=e,i=(0,h._T)(e,["className","disabled","name","readOnly","removeIcon"]);const s=(0,$.m)(null,a),o=+s[s.length-1],u=(0,$.m)(s.slice(0,-1)),c=(0,V.U)(u,{},{absoluteName:!0})[0];return t||(t=r||c.minCount>=c.value.length),d.createElement("button",Object.assign({},(0,O.z)(i),{className:S()("btn btn-secondary btn-sm",n),disabled:t,onClick:()=>{const e=c.value.slice();e.splice(o,1),c.onChange(e)},tabIndex:0,type:"button"}),l)}Bn.defaultProps={removeIcon:d.createElement("i",{className:"octicon octicon-dash"})};var Ln=(0,C.e)(Bn,{initialValue:!1,kind:"leaf"});var Wn=(0,C.e)((function(e){let{children:n=d.createElement(Gn,{className:"col",label:null,name:""}),removeIcon:t}=e;return d.createElement("div",{className:"row"},d.createElement("div",{className:"col-auto"},d.createElement(Ln,{name:"",removeIcon:t})),n)}),{initialValue:!1});var Zn=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(Wn,{name:"$"}),className:a,error:r,errorMessage:l,itemProps:i,label:s,removeIcon:o,showInlineError:u,value:c}=e,m=(0,h._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return d.createElement("div",Object.assign({className:S()("card mb-3",a)},(0,O.z)(m)),d.createElement("div",{className:"card-body"},s&&d.createElement("div",{className:"card-title"},d.createElement("label",{className:"col-form-label"},s,"\xa0"),d.createElement(Sn,{addIcon:n,name:"$"}),!(!r||!u)&&d.createElement("span",{className:"text-danger"},l)),null==c?void 0:c.map(((e,n)=>d.Children.map(t,((e,t)=>{var a;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign(Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n)},i),{removeIcon:o})):e}))))))}));var Un=(0,C.e)((function(e){var{children:n,className:t,error:a,errorMessage:r,fields:l,itemProps:i,label:s,showInlineError:o}=e,u=(0,h._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return d.createElement("div",Object.assign({className:S()(t,{"has-error":a})},(0,O.z)(u)),s&&d.createElement("label",null,s),!(!a||!o)&&d.createElement("span",{className:"text-danger"},r),n||l.map((e=>d.createElement(Gn,Object.assign({key:e,name:e},i)))))}));var $n=(0,C.e)((function(e){var n;return Tn(e,d.createElement("input",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(n.target.value);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});const Vn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,zn=e=>Vn(encodeURIComponent(e)).replace(/=+$/,"");var Kn=(0,C.e)((function(e){var n;return Tn(e,null===(n=e.options)||void 0===n?void 0:n.map((n=>{var t,a,r,l;return d.createElement("div",{key:null!==(t=n.key)&&void 0!==t?t:n.value,className:S()(e.inputClassName,"form-check",{"text-danger":e.error,"text-success":!e.error&&e.changed,"form-check-inline":e.inline})},d.createElement("label",{htmlFor:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:zn(n.value)}`,className:"form-check-label"},d.createElement("input",{checked:n.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:zn(n.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(n.value)},type:"radio"})," ",null!==(l=n.label)&&void 0!==l?l:n.value))})))}),{kind:"leaf"});const qn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Qn=e=>qn(encodeURIComponent(e)).replace(/=+$/,"");var Jn=(0,C.e)((function(e){var{options:n,checkboxes:t,disabled:a,error:r,fieldType:l,id:i,inline:s,inputClassName:o,inputRef:u,label:c,name:m,onChange:p,placeholder:f,readOnly:v,required:_,value:g}=e,b=(0,h._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return Tn(Object.assign(Object.assign({},b),{disabled:a,error:r,id:i,label:c,required:_}),t?null==n?void 0:n.map((e=>{var n,t,r,l;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value,className:S()(o,"form-check"+(s?" form-check-inline":""))},d.createElement("label",{htmlFor:`${i}-${null!==(t=e.key)&&void 0!==t?t:Qn(e.value)}`},d.createElement("input",{checked:E?null==g?void 0:g.includes(e.value):g===e.value,disabled:e.disabled||a,id:`${i}-${null!==(r=e.key)&&void 0!==r?r:Qn(e.value)}`,name:m,onChange:()=>{v||p(E?un()([e.value],g):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):d.createElement("select",{className:S()(o,"form-control",{"is-invalid":r,"is-valid":!r&&b.changed}),disabled:a,id:i,multiple:E,name:m,onChange:e=>{if(!v){const n=e.target.value;if(E){const t=-1===e.target.selectedIndex;p(t?[]:un()([n],g))}else p(""!==n?n:void 0)}},ref:u,value:null!=g?g:""},(!!f||!_||void 0===g)&&!E&&d.createElement("option",{value:"",disabled:_,hidden:_},f||c),null==n?void 0:n.map((e=>{var n,t;return d.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});var Hn=(0,C.e)((function(e){var n,t;return Tn(We()(e,["autoComplete","minLength","maxLength"]),d.createElement("input",{autoComplete:e.autoComplete,className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});var Gn=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Kn:Jn;switch(e.fieldType){case Array:return Zn;case Boolean:return wn;case Date:return An;case Number:return $n;case Object:return Un;case String:return Hn}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Xn(e){var{element:n=d.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(Gn,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Yn=function e(n){class t extends n{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),n=super.getNativeFormProps();return Object.assign(Object.assign({},We()(n,["grid"])),{className:S()({error:e},n.className)})}}return t.Bootstrap5=e,t.displayName=`Bootstrap5${n.displayName}`,t}(ye.I);var et=function(e){var{children:n,className:t}=e,a=(0,h._T)(e,["children","className"]);const{error:r,schema:l}=(0,ge.c)();return r||n?d.createElement("div",Object.assign({className:S()("card border-danger mb-3 text-danger",t)},(0,O.z)(a)),d.createElement("div",{className:"card-body"},n,l.getErrorMessages(r).map(((e,n)=>d.createElement("div",{key:n,className:"disabled"},e))))):null};function nt(e){var{className:n,disabled:t,inputClassName:a,inputRef:r,readOnly:l,value:i,wrapClassName:s}=e,o=(0,h._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:u,state:c}=(0,ge.c)(),m=c,p=!(!m.grid&&!s),f=d.createElement("input",Object.assign({className:a,disabled:void 0===t?!(!u&&!m.disabled):t,readOnly:l,ref:r,type:"submit"},i?{value:i}:{}));return d.createElement("div",Object.assign({className:S()(n,{"is-invalid":u,row:m.grid})},(0,O.z)(o)),p&&d.createElement("span",{className:S()("col-form-label",Fn(m.grid,"label"))},"\xa0"),p&&d.createElement("div",{className:S()(s,Fn(m.grid,"input"))},f),!p&&f)}nt.defaultProps={inputClassName:"btn btn-primary"};var tt=nt;var at=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Gn}getErrorsField(){return et}getSubmitField(){return tt}}return t.Quick=e,t}(Yn);var rt=function e(n){class t extends(Me.O.Validated(n)){}return t.Validated=e,t}(Yn),lt=rt.Validated(at.Quick(Yn));var it=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(lt);var st=(0,C.e)((function(e){var{children:n,className:t,error:a,errorMessage:r}=e,l=(0,h._T)(e,["children","className","error","errorMessage"]);return a?d.createElement("div",Object.assign({className:S()("card","mb-3",t)},(0,O.z)(l)),d.createElement("div",{className:"card-body"},n||d.createElement("h4",{className:"card-title"},r))):null}),{initialValue:!1,kind:"leaf"});function ot(e){var n,{value:t}=e,a=(0,h._T)(e,["value"]);const r=(0,V.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var ut=(0,C.e)((function(e){var n;return Tn(We()(e,["autoComplete","minLength","maxLength"]),d.createElement("textarea",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"}),ct=t(80342),dt=t(21807),mt=t(61247),pt=t(35311),ft=t(82693),ht=t(82956),vt=t(54139),_t=t(74533);function gt(e){let{component:n,disabled:t,error:a,errorMessage:r,fullWidth:l,helperText:i,margin:s,readOnly:o,required:u,showInlineError:c,variant:m}=e;const p=c&&a?r:i,f={component:n,disabled:!!t,error:!!a,fullWidth:!!l,margin:s,readOnly:o,required:u,variant:m};for(var h=arguments.length,v=new Array(h>1?h-1:0),_=1;_<h;_++)v[_-1]=arguments[_];return(0,d.createElement)(vt.Z,f,...v,!!p&&d.createElement(_t.Z,null,p))}var bt=(0,C.e)((function(e){var n;const{appearance:t,disabled:a,inputRef:r,label:l,legend:i,name:s,onChange:o,readOnly:u,value:c}=e,m=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiFormControl,p="checkbox"===t||void 0===t?ct.Z:ft.Z;return gt(Object.assign(Object.assign(Object.assign(Object.assign({},void 0===(null==m?void 0:m.fullWidth)&&{fullWidth:!0}),void 0===(null==m?void 0:m.margin)&&{margin:"dense"}),e),{component:"fieldset"}),i&&d.createElement(pt.Z,{component:"legend",htmlFor:s},i),d.createElement(mt.Z,null,d.createElement(dt.Z,{control:d.createElement(p,Object.assign({checked:!!c,name:s,onChange:e=>!a&&!u&&o&&o(e.target.checked),ref:r,value:s},We()((0,O.z)(e),["helperText","fullWidth"]))),label:l})))}),{kind:"leaf"}),Et=t(38725);const yt=("object"==typeof t.g?t.g:window).Date,Ot=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var Ct=(0,C.e)((function(e){var n,t,a,r,{disabled:l,error:i,errorMessage:s,helperText:o,InputLabelProps:u,inputRef:c,label:m,labelProps:p,max:f,min:v,name:_,onChange:g,placeholder:b,readOnly:E,showInlineError:y,value:C,type:k="datetime-local"}=e,j=(0,h._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);const x=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(t=null==x?void 0:x.fullWidth)||void 0===t||t,helperText:!!i&&y&&s||o,label:m,InputLabelProps:Object.assign(Object.assign({shrink:!0},p),u),inputProps:Object.assign({max:Ot(f),min:Ot(v),readOnly:E},j.inputProps),margin:null!==(a=null==x?void 0:x.margin)&&void 0!==a?a:"dense",name:_,onChange:e=>l||((e,n)=>{const t=new yt(e);t.getFullYear()<1e4?n(t):isNaN(e)&&n(void 0)})(e.target.valueAsNumber,g),placeholder:b,ref:c,type:k,value:null!==(r=Ot(C,k))&&void 0!==r?r:""},(0,O.z)(j)))}),{kind:"leaf"}),kt=t(50755),jt=t(44920),xt=t(90547);var Nt=(0,C.e)((function(e){var{disabled:n,fullWidth:t=!0,icon:a="+",margin:r="dense",name:l,readOnly:i,value:s,variant:o}=e,u=(0,h._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const c=(0,$.m)(null,l),m=(0,$.m)(c.slice(0,-1)),p=(0,V.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return d.createElement(vt.Z,{fullWidth:t,margin:r,variant:o},d.createElement(xt.Z,Object.assign({},(0,O.z)(u),{disabled:!f,onClick:()=>{i||p.onChange(p.value.concat([U()(s)]))}}),a))}),{initialValue:!1,kind:"leaf"}),Pt=t(53332);var Mt=(0,C.e)((function(e){var{disabled:n,icon:t="-",name:a,readOnly:r}=e,l=(0,h._T)(e,["disabled","icon","name","readOnly"]);const i=(0,$.m)(null,a),s=+i[i.length-1],o=(0,$.m)(i.slice(0,-1)),u=(0,V.U)(o,{},{absoluteName:!0})[0];return n||(n=r||u.minCount>=u.value.length),d.createElement(xt.Z,Object.assign({},(0,O.z)(l),{disabled:n,onClick:()=>{const e=u.value.slice();e.splice(s,1),u.onChange(e)}}),t)}),{initialValue:!1,kind:"leaf"});var Ft=(0,C.e)((function(e){let{children:n=d.createElement(Vt,{label:null,name:""}),dense:t=!0,disableGutters:a,divider:r,removeIcon:l}=e;return d.createElement(Pt.Z,{dense:t,disableGutters:a,divider:r},n,d.createElement(Mt,{name:"",icon:l}))}),{initialValue:!1});var Tt=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(Ft,{name:"$"}),itemProps:a,label:r,value:l}=e,i=(0,h._T)(e,["addIcon","children","itemProps","label","value"]);return d.createElement(d.Fragment,null,d.createElement(kt.Z,Object.assign({dense:!0,subheader:r?d.createElement(jt.Z,{disableSticky:!0},r):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,n)=>d.Children.map(t,((e,t)=>{var r;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+n)},a)):e}))))),d.createElement(Nt,{icon:n,name:"$"}))}));var wt=(0,C.e)((function(e){var n,t,a,{children:r,fields:l,itemProps:i,label:s}=e,o=(0,h._T)(e,["children","fields","itemProps","label"]);const u=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiFormControl;return gt(Object.assign(Object.assign({fullWidth:null===(t=null==u?void 0:u.fullWidth)||void 0===t||t,margin:null!==(a=null==u?void 0:u.margin)&&void 0!==a?a:"dense"},o),{component:void 0}),s&&d.createElement(pt.Z,{component:"legend"},s),r||l.map((e=>d.createElement(Vt,Object.assign({key:e,name:e},i)))))}));var It=(0,C.e)((function(e){var n,t,a,r,{decimal:l,disabled:i,error:s,errorMessage:o,helperText:u,inputProps:c,inputRef:m,label:p,max:f,min:v,name:_,onChange:g,readOnly:b,placeholder:E,showInlineError:y,step:C=(l?.01:1),value:k}=e,j=(0,h._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);const x=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:i,error:!!s,fullWidth:null===(t=null==x?void 0:x.fullWidth)||void 0===t||t,helperText:!!s&&y&&o||u,inputProps:Object.assign(Object.assign(Object.assign({},null!==(a=null==x?void 0:x.inputProps)&&void 0!==a?a:{}),{min:v,max:f,readOnly:b,step:C}),c),label:p,margin:null!==(r=null==x?void 0:x.margin)&&void 0!==r?r:"dense",name:_,onChange:e=>{const n=(l?parseFloat:parseInt)(e.target.value);g(isNaN(n)?void 0:n)},placeholder:E,ref:m,type:"number",value:null!=k?k:""},(0,O.z)(j)))}),{kind:"leaf"}),Dt=t(76709),At=t(70043);const Rt="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,St=e=>Rt(encodeURIComponent(e)).replace(/=+$/,"");var Bt=(0,C.e)((function(e){var n,t,a,{options:r,disabled:l,id:i,inputRef:s,label:o,name:u,onChange:c,readOnly:m,row:p,value:f}=e,v=(0,h._T)(e,["options","disabled","id","inputRef","label","name","onChange","readOnly","row","value"]);const _=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiFormControl;return gt(Object.assign(Object.assign({fullWidth:null===(t=null==_?void 0:_.fullWidth)||void 0===t||t,margin:null!==(a=null==_?void 0:_.margin)&&void 0!==a?a:"dense"},v),{component:"fieldset",disabled:l}),o&&d.createElement(pt.Z,{component:"legend",htmlFor:u},o),d.createElement(At.Z,{id:i,name:u,onChange:e=>l||m||c(e.target.value),ref:s,row:p,value:null!=f?f:""},null==r?void 0:r.map((e=>{var n,t;return d.createElement(dt.Z,{control:d.createElement(Dt.Z,Object.assign({id:`${i}-${St(e.value)}`},We()((0,O.z)(v),["checkboxes","helperText"]))),htmlFor:`${i}-${St(e.value)}`,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(t=e.label)&&void 0!==t?t:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),Lt=t(5633);const Wt="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Zt=e=>Wt(encodeURIComponent(e)).replace(/=+$/,"");var Ut=(0,C.e)((function(e){var n,t,a,r,l,i;const s=(0,ht.Z)(),o=null===(n=s.props)||void 0===n?void 0:n.MuiFormControl,u=null!==(t=e.value)&&void 0!==t?t:"";if(e.checkboxes){const{options:n,disabled:t,fieldType:r,id:l,inputRef:i,label:s,legend:c,name:m,onChange:p,readOnly:f}=e,h="checkbox"===(null!==(a=e.appearance)&&void 0!==a?a:"checkbox")?ct.Z:ft.Z,v=We()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),_=r!==Array?d.createElement(At.Z,{id:l,name:m,onChange:e=>t||f||p(e.target.value),ref:i,value:null!=u?u:""},null==n?void 0:n.map((e=>{var n,a,r;return d.createElement(dt.Z,{control:d.createElement(Dt.Z,Object.assign({id:`${l}-${null!==(n=e.key)&&void 0!==n?n:Zt(e.value)}`},v)),disabled:e.disabled||t,key:null!==(a=e.key)&&void 0!==a?a:e.value,label:null!==(r=e.label)&&void 0!==r?r:e.value,value:e.value})}))):d.createElement(mt.Z,{id:l},null==n?void 0:n.map((e=>{var n,a,r;return d.createElement(dt.Z,{control:d.createElement(h,Object.assign({checked:u.includes(e.value),id:`${l}-${null!==(n=e.key)&&void 0!==n?n:Zt(e.value)}`,name:m,onChange:()=>t||f||p(un()([e.value],u)),ref:i,value:m},v)),disabled:e.disabled||t,key:null!==(a=e.key)&&void 0!==a?a:e.value,label:null!==(r=e.label)&&void 0!==r?r:e.value})})));return gt(Object.assign(Object.assign(Object.assign({},o),e),{component:"fieldset"}),(c||s)&&d.createElement(pt.Z,{component:"legend"},c||s),_)}const c=null===(r=s.props)||void 0===r?void 0:r.MuiTextField,{options:m,disabled:p,error:f,errorMessage:h,fieldType:v,fullWidth:_=null===(l=null==c?void 0:c.fullWidth)||void 0===l||l,helperText:g,id:b,InputLabelProps:E,inputProps:y,label:C,labelProps:k,margin:j=(null!==(i=null==c?void 0:c.margin)&&void 0!==i?i:"dense"),name:x,native:N,onChange:P,placeholder:M,readOnly:F,required:T,showInlineError:w,variant:I,textFieldProps:D}=e,A=N?"option":Lt.Z,R=!!M,S=""!==u&&void 0!==u,B=We()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return d.createElement(Et.Z,Object.assign({disabled:p,error:!!f,fullWidth:_,helperText:!!f&&w&&h||g,InputLabelProps:Object.assign(Object.assign({shrink:!!C&&(R||S)},k),E),label:C,margin:j,onChange:e=>p||F||P(""!==e.target.value?e.target.value:void 0),required:T,select:!0,SelectProps:Object.assign({displayEmpty:R,inputProps:Object.assign({name:x,id:b},y),multiple:v===Array||void 0,native:N},B),value:N&&!u?"":u,variant:I},D),(R||!T||!S)&&d.createElement(A,{value:"",disabled:!!T},M||C),null==m?void 0:m.map((e=>{var n,t;return d.createElement(A,{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)})))}),{kind:"leaf"});var $t=(0,C.e)((function(e){var n,t,a,r,{disabled:l,error:i,errorMessage:s,helperText:o,inputRef:u,label:c,name:m,onChange:p,placeholder:f,readOnly:v,showInlineError:_,type:g="text",value:b=""}=e,E=(0,h._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const y=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(t=null==y?void 0:y.fullWidth)||void 0===t||t,helperText:!!i&&_&&s||o,inputProps:Object.assign({readOnly:v},null!==(a=null==y?void 0:y.inputProps)&&void 0!==a?a:{}),label:c,margin:null!==(r=null==y?void 0:y.margin)&&void 0!==r?r:"dense",name:m,onChange:e=>l||p(e.target.value),placeholder:f,ref:u,type:g,value:b},(0,O.z)(E)))}),{kind:"leaf"});var Vt=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Bt:Ut;switch(e.fieldType){case Array:return Tt;case Boolean:return bt;case Date:return Ct;case Number:return It;case Object:return wt;case String:return $t}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function zt(e){var{element:n=d.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(Vt,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Kt=function e(n){class t extends n{}return t.Material=e,t.displayName=`Material${n.displayName}`,t}(ye.I);var qt=function(e){var n,t,a,{children:r,fullWidth:l,margin:i,variant:s}=e,o=(0,h._T)(e,["children","fullWidth","margin","variant"]);const u=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiFormControl,{error:c,schema:m}=(0,ge.c)();return c||r?d.createElement(vt.Z,{error:!!c,fullWidth:null===(t=null!=l?l:null==u?void 0:u.fullWidth)||void 0===t||t,margin:null!==(a=null!=i?i:null==u?void 0:u.margin)&&void 0!==a?a:"dense",variant:null!=s?s:null==u?void 0:u.variant},!!r&&d.createElement(_t.Z,Object.assign({},(0,O.z)(o)),r),m.getErrorMessages(c).map(((e,n)=>d.createElement(_t.Z,Object.assign({key:n},(0,O.z)(o)),e)))):null},Qt=t(9334);var Jt=function(e){var n,t,{children:a,disabled:r,inputRef:l,label:i="Submit",value:s}=e,o=(0,h._T)(e,["children","disabled","inputRef","label","value"]);const{error:u,state:c}=(0,ge.c)(),m=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiButton;return d.createElement(Qt.Z,Object.assign({disabled:void 0===r?!(!u&&!c.disabled):r,ref:l,type:"submit",value:s,variant:null!==(t=null==m?void 0:m.variant)&&void 0!==t?t:"contained"},(0,O.z)(o)),a||i)};var Ht=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Vt}getErrorsField(){return qt}getSubmitField(){return Jt}}return t.Quick=e,t}(Kt);var Gt=function e(n){class t extends(Me.O.Validated(n)){}return t.Validated=e,t}(Kt),Xt=Gt.Validated(Ht.Quick(Kt));var Yt=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Xt);var ea=(0,C.e)((function(e){var n,t,a,{children:r,error:l,errorMessage:i,fullWidth:s,margin:o,variant:u}=e,c=(0,h._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);const m=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiFormControl;return l?d.createElement(vt.Z,{error:!!l,fullWidth:null===(t=null!=s?s:null==m?void 0:m.fullWidth)||void 0===t||t,margin:null!==(a=null!=o?o:null==m?void 0:m.margin)&&void 0!==a?a:"dense",variant:null!=u?u:null==m?void 0:m.variant},d.createElement(_t.Z,Object.assign({},(0,O.z)(c)),r||i)):null}),{initialValue:!1,kind:"leaf"});function na(e){var n,{value:t}=e,a=(0,h._T)(e,["value"]);const r=(0,V.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var ta=(0,C.e)((e=>{var n,t,a,{disabled:r,error:l,errorMessage:i,helperText:s,inputRef:o,label:u,name:c,onChange:m,placeholder:p,readOnly:f,showInlineError:v,type:_="text",value:g}=e,b=(0,h._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const E=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:r,error:!!l,fullWidth:null===(t=null==E?void 0:E.fullWidth)||void 0===t||t,helperText:!!l&&v&&i||s,inputProps:Object.assign(Object.assign({},null==E?void 0:E.inputProps),{readOnly:f}),label:u,margin:null!==(a=null==E?void 0:E.margin)&&void 0!==a?a:"dense",multiline:!0,name:c,onChange:e=>r||m(e.target.value),placeholder:p,ref:o,type:_,value:null!=g?g:""},(0,O.z)(b)))}),{kind:"leaf"}),aa=t(56213),ra=t(64251),la=t(64281),ia=t(23626),sa=t(22013),oa=t(61230),ua=t(56274);function ca(e){let{component:n,disabled:t,error:a,errorMessage:r,fullWidth:l,helperText:i,margin:s,readOnly:o,required:u,showInlineError:c,variant:m}=e;const p=c&&a?r:i,f={component:n,disabled:!!t,error:!!a,fullWidth:!!l,margin:s,readOnly:o,required:u,variant:m};for(var h=arguments.length,v=new Array(h>1?h-1:0),_=1;_<h;_++)v[_-1]=arguments[_];return(0,d.createElement)(oa.Z,f,...v,!!p&&d.createElement(ua.Z,null,p))}var da=(0,C.e)((function(e){const{appearance:n,disabled:t,inputRef:a,label:r,legend:l,name:i,onChange:s,readOnly:o,value:u}=e,c="checkbox"===n||void 0===n?aa.Z:sa.Z;return ca(Object.assign({fullWidth:!0},e),l&&d.createElement(ia.Z,{component:"legend",htmlFor:i},l),d.createElement(la.Z,null,d.createElement(ra.Z,{control:d.createElement(c,Object.assign({checked:!!u,name:i,onChange:e=>!t&&!o&&s&&s(e.target.checked),ref:a,value:i},We()((0,O.z)(e),["helperText","fullWidth"]))),label:r})))}),{kind:"leaf"}),ma=t(60929);const pa=("object"==typeof t.g?t.g:window).Date,fa=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var ha=(0,C.e)((function(e){var n,{disabled:t,error:a,errorMessage:r,helperText:l,InputLabelProps:i,inputRef:s,label:o,labelProps:u,max:c,min:m,name:p,onChange:f,placeholder:v,readOnly:_,showInlineError:g,value:b,type:E="datetime-local"}=e,y=(0,h._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);return d.createElement(ma.Z,Object.assign({disabled:t,error:!!a,fullWidth:!0,helperText:!!a&&g&&r||l,label:o,InputLabelProps:Object.assign(Object.assign({shrink:!0},u),i),inputProps:Object.assign({max:fa(c),min:fa(m),readOnly:_},y.inputProps),margin:"dense",name:p,onChange:e=>t||((e,n)=>{const t=new pa(e);t.getFullYear()<1e4?n(t):isNaN(e)&&n(void 0)})(e.target.valueAsNumber,f),placeholder:v,ref:s,type:E,value:null!==(n=fa(b,E))&&void 0!==n?n:""},(0,O.z)(y)))}),{kind:"leaf"}),va=t(10872),_a=t(5420),ga=t(68666);var ba=(0,C.e)((function(e){var{disabled:n,fullWidth:t=!0,icon:a="+",margin:r="dense",name:l,readOnly:i,value:s,variant:o}=e,u=(0,h._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const c=(0,$.m)(null,l),m=(0,$.m)(c.slice(0,-1)),p=(0,V.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return d.createElement(oa.Z,{fullWidth:t,margin:r,variant:o},d.createElement(ga.Z,Object.assign({size:"large",variant:"outlined"},(0,O.z)(u),{disabled:!f,onClick:()=>{i||p.onChange(p.value.concat([U()(s)]))}}),a))}),{initialValue:!1,kind:"leaf"}),Ea=t(88483),ya=t(92133);var Oa=(0,C.e)((function(e){var{disabled:n,icon:t="-",name:a,readOnly:r}=e,l=(0,h._T)(e,["disabled","icon","name","readOnly"]);const i=(0,$.m)(null,a),s=+i[i.length-1],o=(0,$.m)(i.slice(0,-1)),u=(0,V.U)(o,{},{absoluteName:!0})[0];return n||(n=r||u.minCount>=u.value.length),d.createElement(ya.Z,Object.assign({},(0,O.z)(l),{disabled:n,onClick:()=>{const e=u.value.slice();e.splice(s,1),u.onChange(e)},size:"large"}),t)}),{initialValue:!1,kind:"leaf"});var Ca=(0,C.e)((function(e){let{children:n=d.createElement(Sa,{label:null,name:""}),dense:t=!0,disableGutters:a,divider:r,removeIcon:l}=e;return d.createElement(Ea.ZP,{dense:t,disableGutters:a,divider:r},n,d.createElement(Oa,{name:"",icon:l}))}),{initialValue:!1});var ka=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(Ca,{name:"$"}),itemProps:a,label:r,value:l}=e,i=(0,h._T)(e,["addIcon","children","itemProps","label","value"]);return d.createElement(d.Fragment,null,d.createElement(va.Z,Object.assign({dense:!0,subheader:r?d.createElement(_a.Z,{disableSticky:!0},r):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,n)=>d.Children.map(t,((e,t)=>{var r;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+n)},a)):e}))))),d.createElement(ba,{icon:n,name:"$"}))}));var ja=(0,C.e)((function(e){var{children:n,fields:t,fullWidth:a=!0,itemProps:r,label:l,margin:i="dense"}=e,s=(0,h._T)(e,["children","fields","fullWidth","itemProps","label","margin"]);return ca(Object.assign(Object.assign({fullWidth:a,margin:i},s),{component:void 0}),l&&d.createElement(ia.Z,{component:"legend"},l),n||t.map((e=>d.createElement(Sa,Object.assign({key:e,name:e},r)))))}));var xa=(0,C.e)((function(e){var{decimal:n,disabled:t,error:a,errorMessage:r,helperText:l,inputProps:i,inputRef:s,label:o,max:u,min:c,name:m,onChange:p,readOnly:f,placeholder:v,showInlineError:_,step:g=(n?.01:1),value:b}=e,E=(0,h._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);return d.createElement(ma.Z,Object.assign({disabled:t,error:!!a,fullWidth:!0,helperText:!!a&&_&&r||l,inputProps:Object.assign({min:c,max:u,readOnly:f,step:g},i),label:o,margin:"dense",name:m,onChange:e=>{const t=(n?parseFloat:parseInt)(e.target.value);p(isNaN(t)?void 0:t)},placeholder:v,ref:s,type:"number",value:null!=b?b:""},(0,O.z)(E)))}),{kind:"leaf"}),Na=t(8993),Pa=t(20750);const Ma="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Fa=e=>Ma(encodeURIComponent(e)).replace(/=+$/,"");var Ta=(0,C.e)((function(e){var{options:n,disabled:t,fullWidth:a=!0,id:r,inputRef:l,label:i,margin:s="dense",name:o,onChange:u,readOnly:c,row:m,value:p}=e,f=(0,h._T)(e,["options","disabled","fullWidth","id","inputRef","label","margin","name","onChange","readOnly","row","value"]);return ca(Object.assign(Object.assign({},f),{component:"fieldset",disabled:t,fullWidth:a,margin:s}),i&&d.createElement(ia.Z,{component:"legend",htmlFor:o},i),d.createElement(Pa.Z,{id:r,name:o,onChange:e=>t||c||u(e.target.value),ref:l,row:m,value:null!=p?p:""},null==n?void 0:n.map((e=>{var n,t;return d.createElement(ra.Z,{control:d.createElement(Na.Z,Object.assign({id:`${r}-${Fa(e.value)}`},We()((0,O.z)(f),["checkboxes","helperText"]))),htmlFor:`${r}-${Fa(e.value)}`,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(t=e.label)&&void 0!==t?t:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),wa=t(13455);const Ia="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Da=e=>Ia(encodeURIComponent(e)).replace(/=+$/,"");var Aa=(0,C.e)((function(e){var n,t;const a=null!==(n=e.value)&&void 0!==n?n:"";if(e.checkboxes){const{options:n,disabled:r,fieldType:l,id:i,inputRef:s,label:o,legend:u,name:c,onChange:m,readOnly:p}=e,f="checkbox"===(null!==(t=e.appearance)&&void 0!==t?t:"checkbox")?aa.Z:sa.Z,h=We()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),v=l!==Array?d.createElement(Pa.Z,{id:i,name:c,onChange:e=>r||p||m(e.target.value),ref:s,value:null!=a?a:""},n.map((e=>{var n,t,a;return d.createElement(ra.Z,{control:d.createElement(Na.Z,Object.assign({id:`${i}-${null!==(n=e.key)&&void 0!==n?n:Da(e.value)}`},h)),disabled:e.disabled||r,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(a=e.label)&&void 0!==a?a:e.value,value:e.value})}))):d.createElement(la.Z,{id:i},n.map((e=>{var n,t,l;return d.createElement(ra.Z,{control:d.createElement(f,Object.assign({checked:a.includes(e.value),id:`${i}-${null!==(n=e.key)&&void 0!==n?n:Da(e.value)}`,name:c,onChange:()=>r||p||m(un()([e.value],a)),ref:s,value:c},h)),disabled:e.disabled||r,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(l=e.label)&&void 0!==l?l:e.value})})));return ca(Object.assign(Object.assign({},e),{component:"fieldset"}),(u||o)&&d.createElement(ia.Z,{component:"legend"},u||o),v)}const{options:r,disabled:l,error:i,errorMessage:s,fieldType:o,fullWidth:u=!0,helperText:c,id:m,InputLabelProps:p,inputProps:f,label:h,labelProps:v,margin:_="dense",name:g,native:b,onChange:E,placeholder:y,readOnly:C,required:k,showInlineError:j,variant:x,textFieldProps:N}=e,P=b?"option":wa.Z,M=!!y,F=""!==a&&void 0!==a,T=We()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return d.createElement(ma.Z,Object.assign({disabled:l,error:!!i,fullWidth:u,helperText:!!i&&j&&s||c,InputLabelProps:Object.assign(Object.assign({shrink:!!h&&(M||F)},v),p),label:h,margin:_,onChange:e=>l||C||E(""!==e.target.value?e.target.value:void 0),required:k,select:!0,SelectProps:Object.assign({displayEmpty:M,inputProps:Object.assign({name:g,id:m},f),multiple:o===Array||void 0,native:b},T),value:b&&!a?"":a,variant:x},N),(M||!k||!F)&&d.createElement(P,{value:"",disabled:!!k},y||h),r.map((e=>{var n,t;return d.createElement(P,{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)})))}),{kind:"leaf"});var Ra=(0,C.e)((function(e){var{disabled:n,error:t,errorMessage:a,helperText:r,inputRef:l,label:i,name:s,onChange:o,placeholder:u,readOnly:c,showInlineError:m,type:p="text",value:f=""}=e,v=(0,h._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return d.createElement(ma.Z,Object.assign({disabled:n,error:!!t,fullWidth:!0,helperText:!!t&&m&&a||r,inputProps:{readOnly:c},label:i,margin:"dense",name:s,onChange:e=>n||o(e.target.value),placeholder:u,ref:l,type:p,value:f},(0,O.z)(v)))}),{kind:"leaf"});var Sa=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Ta:Aa;switch(e.fieldType){case Array:return ka;case Boolean:return da;case Date:return ha;case Number:return xa;case Object:return ja;case String:return Ra}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Ba(e){var{element:n=d.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(Sa,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var La=function e(n){class t extends n{}return t.Material=e,t.displayName=`Material${n.displayName}`,t}(ye.I);var Wa=function(e){var{children:n,fullWidth:t=!0,margin:a,variant:r}=e,l=(0,h._T)(e,["children","fullWidth","margin","variant"]);const{error:i,schema:s}=(0,ge.c)();return i||n?d.createElement(oa.Z,{error:!!i,fullWidth:!!t,margin:a,variant:r},!!n&&d.createElement(ua.Z,Object.assign({},(0,O.z)(l)),n),s.getErrorMessages(i).map(((e,n)=>d.createElement(ua.Z,Object.assign({key:n},(0,O.z)(l)),e)))):null};var Za=function(e){var{children:n,disabled:t,inputRef:a,label:r="Submit",value:l}=e,i=(0,h._T)(e,["children","disabled","inputRef","label","value"]);const{error:s,state:o}=(0,ge.c)();return d.createElement(ga.Z,Object.assign({disabled:void 0===t?!(!s&&!o.disabled):t,ref:a,type:"submit",value:l,variant:"contained"},(0,O.z)(i)),n||r)};var Ua=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Sa}getErrorsField(){return Wa}getSubmitField(){return Za}}return t.Quick=e,t}(La);var $a=function e(n){class t extends(Me.O.Validated(n)){}return t.Validated=e,t}(La),Va=$a.Validated(Ua.Quick(La));var za=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Va);var Ka=(0,C.e)((function(e){var{children:n,error:t,errorMessage:a,fullWidth:r,margin:l,variant:i}=e,s=(0,h._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);return t?d.createElement(oa.Z,{error:!!t,fullWidth:!!r,margin:"dense"===l?l:void 0,variant:i},d.createElement(ua.Z,Object.assign({},(0,O.z)(s)),n||a)):null}),{initialValue:!1,kind:"leaf"});function qa(e){var n,{value:t}=e,a=(0,h._T)(e,["value"]);const r=(0,V.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var Qa=(0,C.e)((e=>{var{disabled:n,error:t,errorMessage:a,helperText:r,inputRef:l,label:i,name:s,onChange:o,placeholder:u,readOnly:c,showInlineError:m,type:p="text",value:f}=e,v=(0,h._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return d.createElement(ma.Z,Object.assign({disabled:n,error:!!t,fullWidth:!0,helperText:!!t&&m&&a||r,inputProps:{readOnly:c},label:i,margin:"dense",multiline:!0,name:s,onChange:e=>n||o(e.target.value),placeholder:u,ref:l,type:p,value:null!=f?f:""},(0,O.z)(v)))}),{kind:"leaf"}),Ja=t(68599);function Ha(e){var{element:n=d.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,ge.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(Ja.Z,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Ga=t(2310),Xa=t(99574),Ya=t(12138),er=t(14449);var nr=(0,C.e)((function(e){var{children:n,className:t,error:a,errorMessage:r}=e,l=(0,h._T)(e,["children","className","error","errorMessage"]);return a?d.createElement("div",Object.assign({className:S()("ui",t,"error message")},(0,O.z)(l)),n||d.createElement("div",{className:"header"},r)):null}),{initialValue:!1,kind:"leaf"}),tr=t(43351);function ar(e){var n,{value:t}=e,a=(0,h._T)(e,["value"]);const r=(0,V.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var rr=t(77900),lr=t(960),ir=t(64694),sr=t(18747);var or=(0,C.e)((function(e){var{className:n,disabled:t,error:a,errorMessage:r,id:l,inputRef:i,label:s,name:o,onChange:u,placeholder:c,readOnly:m,required:p,showInlineError:f,value:v}=e,_=(0,h._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);return d.createElement("div",Object.assign({className:S()(n,{disabled:t,error:a,required:p},"field")},(0,O.z)(_)),s&&d.createElement("label",{htmlFor:l},s),d.createElement("textarea",{disabled:t,id:l,name:o,onChange:e=>u(e.target.value),placeholder:c,readOnly:m,ref:i,value:null!=v?v:""}),!(!a||!f)&&d.createElement("div",{className:"ui red basic pointing label"},r))}),{kind:"leaf"}),ur=t(80661),cr=t(59492),dr=t(52559),mr=t(44591),pr=t(47822),fr=t(82986),hr=t(99086),vr=t(3684),_r=t(79904);var gr=(0,C.e)((function(e){var{disabled:n,id:t,inputRef:a,label:r,name:l,onChange:i,readOnly:s,value:o}=e,u=(0,h._T)(e,["disabled","id","inputRef","label","name","onChange","readOnly","value"]);return d.createElement("div",Object.assign({},(0,O.z)(u)),d.createElement("input",{checked:o||!1,disabled:n,id:t,name:l,onChange:()=>!n&&!s&&i(!o),ref:a,type:"checkbox"}),r&&d.createElement("label",{htmlFor:t},r))}),{kind:"leaf"});const br=("object"==typeof t.g?t.g:window).Date,Er=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var yr=(0,C.e)((function(e){var n,{disabled:t,id:a,inputRef:r,label:l,max:i,min:s,name:o,onChange:u,placeholder:c,readOnly:m,value:p,type:f="datetime-local"}=e,v=(0,h._T)(e,["disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","value","type"]);return d.createElement("div",Object.assign({},(0,O.z)(v)),l&&d.createElement("label",{htmlFor:a},l),d.createElement("input",{disabled:t,id:a,max:Er(i),min:Er(s),name:o,onChange:e=>{const n=new br(e.target.valueAsNumber);n.getFullYear()<1e4?u(n):isNaN(e.target.valueAsNumber)&&u(void 0)},placeholder:c,readOnly:m,ref:r,type:f,value:null!==(n=Er(p,f))&&void 0!==n?n:""}))}),{kind:"leaf"});var Or=(0,C.e)((function(e){var{disabled:n,name:t,readOnly:a,value:r}=e,l=(0,h._T)(e,["disabled","name","readOnly","value"]);const i=(0,$.m)(null,t),s=(0,$.m)(i.slice(0,-1)),o=(0,V.U)(s,{},{absoluteName:!0})[0],u=!(n||o.maxCount<=o.value.length);function c(e){!u||a||"key"in e&&"Enter"!==e.key||o.onChange(o.value.concat([U()(r)]))}return d.createElement("span",Object.assign({},(0,O.z)(l),{onClick:c,onKeyDown:c,role:"button",tabIndex:0}),"+")}),{initialValue:!1,kind:"leaf"});var Cr=(0,C.e)((function(e){var{disabled:n,name:t,readOnly:a}=e,r=(0,h._T)(e,["disabled","name","readOnly"]);const l=(0,$.m)(null,t),i=+l[l.length-1],s=(0,$.m)(l.slice(0,-1)),o=(0,V.U)(s,{},{absoluteName:!0})[0];function u(e){if(!(n||"key"in e&&"Enter"!==e.key)){const e=o.value.slice();e.splice(i,1),o.onChange(e)}}return n||(n=a||o.minCount>=o.value.length),d.createElement("span",Object.assign({},(0,O.z)(r),{onClick:u,onKeyDown:u,role:"button",tabIndex:0}),"-")}),{initialValue:!1,kind:"leaf"});var kr=(0,C.e)((function(e){let{children:n=d.createElement(Rr,{label:null,name:""})}=e;return d.createElement("div",null,d.createElement(Cr,{name:""}),n)}),{initialValue:!1});var jr=(0,C.e)((function(e){var{children:n=d.createElement(kr,{name:"$"}),itemProps:t,label:a,value:r}=e,l=(0,h._T)(e,["children","itemProps","label","value"]);return d.createElement("ul",Object.assign({},(0,O.z)(l)),a&&d.createElement("label",null,a,d.createElement(Or,{name:"$"})),null==r?void 0:r.map(((e,a)=>d.Children.map(n,((e,n)=>{var r;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${a}-${n}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+a)},t)):e})))))}));var xr=(0,C.e)((function(e){var{children:n,fields:t,itemProps:a,label:r}=e,l=(0,h._T)(e,["children","fields","itemProps","label"]);return d.createElement("div",Object.assign({},(0,O.z)(l)),r&&d.createElement("label",null,r),n||t.map((e=>d.createElement(Rr,Object.assign({key:e,name:e},a)))))}));var Nr=(0,C.e)((function(e){var{decimal:n,disabled:t,id:a,inputRef:r,label:l,max:i,min:s,name:o,onChange:u,placeholder:c,readOnly:m,step:p,value:f}=e,v=(0,h._T)(e,["decimal","disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","step","value"]);return d.createElement("div",Object.assign({},(0,O.z)(v)),l&&d.createElement("label",{htmlFor:a},l),d.createElement("input",{disabled:t,id:a,max:i,min:s,name:o,onChange:e=>{const t=(n?parseFloat:parseInt)(e.target.value);u(isNaN(t)?void 0:t)},placeholder:c,readOnly:m,ref:r,step:p||(n?.01:1),type:"number",value:null!=f?f:""}))}),{kind:"leaf"});const Pr="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Mr=e=>Pr(encodeURIComponent(e)).replace(/=+$/,"");var Fr=(0,C.e)((function(e){var{options:n,disabled:t,id:a,label:r,name:l,onChange:i,readOnly:s,value:o}=e,u=(0,h._T)(e,["options","disabled","id","label","name","onChange","readOnly","value"]);return d.createElement("div",Object.assign({},We()((0,O.z)(u),["checkboxes"])),r&&d.createElement("label",null,r),null==n?void 0:n.map((e=>{var n,r,u,c;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value},d.createElement("input",{checked:e.value===o,disabled:e.disabled||t,id:`${a}-${null!==(r=e.key)&&void 0!==r?r:Mr(e.value)}`,name:l,onChange:()=>{s||i(e.value)},type:"radio"}),d.createElement("label",{htmlFor:`${a}-${null!==(u=e.key)&&void 0!==u?u:Mr(e.value)}`},null!==(c=e.label)&&void 0!==c?c:e.value))})))}),{kind:"leaf"});const Tr="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,wr=e=>Tr(encodeURIComponent(e)).replace(/=+$/,"");var Ir=(0,C.e)((function(e){var{checkboxes:n,disabled:t,fieldType:a,id:r,inputRef:l,label:i,name:s,onChange:o,placeholder:u,readOnly:c,required:m,value:p,options:f}=e,v=(0,h._T)(e,["checkboxes","disabled","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","value","options"]);const _=a===Array;return d.createElement("div",Object.assign({},(0,O.z)(v)),i&&d.createElement("label",{htmlFor:r},i),n?null==f?void 0:f.map((e=>{var n,l,i,u,m;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value},d.createElement("input",{checked:a===Array?null==p?void 0:p.includes(e.value):p===e.value,disabled:null!==(l=e.disabled)&&void 0!==l?l:t,id:`${r}-${null!==(i=e.key)&&void 0!==i?i:wr(e.value)}`,name:s,onChange:()=>{c||o(a===Array?un()([e.value],p):e.value)},type:"checkbox"}),d.createElement("label",{htmlFor:`${r}-${null!==(u=e.key)&&void 0!==u?u:wr(e.value)}`},null!==(m=e.label)&&void 0!==m?m:e.value))})):d.createElement("select",{disabled:t,id:r,multiple:_,name:s,onChange:e=>{if(!c){const n=e.target.value;if(_){const t=-1===e.target.selectedIndex;o(t?[]:un()([n],p))}else o(""!==n?n:void 0)}},ref:l,value:null!=p?p:""},(!!u||!m||void 0===p)&&!_&&d.createElement("option",{value:"",disabled:m,hidden:m},u||i),null==f?void 0:f.map((e=>{var n,t;return d.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});function Dr(e){var{autoComplete:n,disabled:t,id:a,inputRef:r,label:l,name:i,onChange:s,placeholder:o,readOnly:u,type:c,value:m}=e,p=(0,h._T)(e,["autoComplete","disabled","id","inputRef","label","name","onChange","placeholder","readOnly","type","value"]);return d.createElement("div",Object.assign({},(0,O.z)(p)),l&&d.createElement("label",{htmlFor:a},l),d.createElement("input",{autoComplete:n,disabled:t,id:a,name:i,onChange:e=>s(e.target.value),placeholder:o,readOnly:u,ref:r,type:c,value:null!=m?m:""}))}Dr.defaultProps={type:"text"};var Ar=(0,C.e)(Dr,{kind:"leaf"});var Rr=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Fr:Ir;switch(e.fieldType){case Array:return jr;case Boolean:return gr;case Date:return yr;case Number:return Nr;case Object:return xr;case String:return Ar}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Sr(e){var{element:n=d.Fragment,fields:t,omitFields:a=[]}=e,r=(0,h._T)(e,["element","fields","omitFields"]);const{schema:l}=(0,ge.c)();return(0,d.createElement)(n,r,(null!=t?t:l.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,d.createElement)(Rr,{key:e,name:e}))))}var Br=function e(n){class t extends n{}return t.Unstyled=e,t.displayName=`Unstyled${n.displayName}`,t}(ye.I);function Lr(e){const{error:n,schema:t}=(0,ge.c)();return n||e.children?d.createElement("div",Object.assign({},(0,O.z)(e)),e.children,d.createElement("ul",null,t.getErrorMessages(n).map(((e,n)=>d.createElement("li",{key:n},e))))):null}function Wr(e){var{disabled:n,inputRef:t,readOnly:a,value:r}=e,l=(0,h._T)(e,["disabled","inputRef","readOnly","value"]);const{error:i,state:s}=(0,ge.c)();return d.createElement("input",Object.assign({disabled:void 0===n?!(!i&&!s.disabled):n,readOnly:a,ref:t,type:"submit"},r?{value:r}:{},(0,O.z)(l)))}var Zr=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Rr}getErrorsField(){return Lr}getSubmitField(){return Wr}}return t.Quick=e,t}(Br);var Ur=function e(n){class t extends(Me.O.Validated(n)){}return t.Validated=e,t}(Br),$r=Ur.Validated(Zr.Quick(Br));var Vr=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}($r);var zr=(0,C.e)((function(e){var{children:n,error:t,errorMessage:a}=e,r=(0,h._T)(e,["children","error","errorMessage"]);return t?d.createElement("div",Object.assign({},(0,O.z)(r)),n||a):null}),{initialValue:!1,kind:"leaf"});function Kr(e){var n,{value:t}=e,a=(0,h._T)(e,["value"]);const r=(0,V.U)(a.name,a,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:d.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var qr=t(96614);const Qr=ll("AutoFields"),Jr=ll("AutoField"),Hr=ll("AutoForm"),Gr=(ll("BaseForm"),ll("BoolField"),ll("DateField"),ll("ErrorField")),Xr=ll("ErrorsField"),Yr=(ll("HiddenField"),ll("ListAddField"),ll("ListDelField"),ll("ListField"),ll("ListItemField"),ll("LongTextField")),el=(ll("NestField"),ll("NumField"),ll("QuickForm"),ll("RadioField"),ll("SelectField")),nl=ll("SubmitField"),tl=ll("TextField"),al=(ll("ValidatedForm"),ll("ValidatedQuickForm"),{antd:a,bootstrap4:r,bootstrap5:l,material:i,mui:s,semantic:o,unstyled:u}),rl=(0,d.createContext)("unstyled");function ll(e){return function(n){const t=(0,d.useContext)(rl),a=al[t][e];return d.createElement(a,(0,c.Z)({key:t},n))}}},37309:function(e,n,t){"use strict";t.d(n,{mB:function(){return c},nN:function(){return o},rh:function(){return u}});var a=t(14648),r=t.n(a),l=t(17728),i=t.n(l);const s=["preset","props","theme"],o=e=>i().compressToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");function u(e){try{const n=r()(e,s),t=JSON.stringify(n),a=o(t),l="?"+encodeURIComponent(a);window.location.hash=l}catch(n){}}function c(){try{const n=document.location.hash.replace(/^#\?/,""),t=decodeURIComponent(n),a=(e=t,i().decompressFromBase64(e.replace(/-/g,"+").replace(/_/g,"/"))),l=JSON.parse(a??"");return r()(l,s)}catch(n){return{}}var e}},32054:function(e,n,t){"use strict";t.d(n,{J:function(){return u}});var a=t(86236),r=t.n(a),l=t(73633);const i={title:"Guest",type:"object",properties:{firstName:{type:"string"},lastName:{type:"string"},workExperience:{description:"Work experience in years",type:"integer",minimum:0,maximum:100}},required:["firstName","lastName"]},s=new(r())({allErrors:!0,useDefaults:!0,keywords:["uniforms"]});const o=function(e){const n=s.compile(e);return e=>{var t;return n(e),null!=(t=n.errors)&&t.length?{details:n.errors}:null}}(i),u=new l.j({schema:i,validator:o})},20461:function(e,n,t){"use strict";t.r(n),t.d(n,{assets:function(){return f},contentTitle:function(){return m},default:function(){return _},frontMatter:function(){return d},metadata:function(){return p},toc:function(){return h}});var a=t(25773),r=t(27378),l=t(35318),i=t(57292),s=t(80912),o=t(32054);function u(){return r.createElement(s.NE,{schema:o.J,onSubmit:console.log})}var c=t(53009);const d={id:"tutorials-basic-uniforms-usage",title:"Basic uniforms usage"},m=void 0,p={unversionedId:"tutorials-basic-uniforms-usage",id:"tutorials-basic-uniforms-usage",title:"Basic uniforms usage",description:"You can also follow the tutorial and explore uniforms in our sample CodeSandbox repository.",source:"@site/../docs/tutorials-basic-uniforms-usage.mdx",sourceDirName:".",slug:"/tutorials-basic-uniforms-usage",permalink:"/docs/tutorials-basic-uniforms-usage",draft:!1,tags:[],version:"current",frontMatter:{id:"tutorials-basic-uniforms-usage",title:"Basic uniforms usage"},sidebar:"docs",previous:{title:"Migrating v2 to v3",permalink:"/docs/migrating-2-to-3"},next:{title:"Customizing your form layout",permalink:"/docs/tutorials-customizing-your-form-layout"}},f={},h=[{value:"1. Install the required packages",id:"1-install-the-required-packages",level:3},{value:"2. Start by defining a schema",id:"2-start-by-defining-a-schema",level:3},{value:"3. Then create the bridge",id:"3-then-create-the-bridge",level:3},{value:"4. Finally, use it in a form!",id:"4-finally-use-it-in-a-form",level:3}],v={toc:h};function _(e){let{components:n,...r}=e;return(0,l.kt)("wrapper",(0,a.Z)({},v,r,{components:n,mdxType:"MDXLayout"}),(0,l.kt)("admonition",{type:"tip"},(0,l.kt)("p",{parentName:"admonition"},"You can also follow the tutorial and explore uniforms in our ",(0,l.kt)("a",{parentName:"p",href:"https://codesandbox.io/s/github/vazco/uniforms/tree/master/reproductions"},"sample CodeSandbox repository"),".")),(0,l.kt)("p",null,"Imagine that we host an IT conference and want to make a list of guests.\nObviously, we want to collect their first name and last name.\nAdditionally, we can ask for their work experience, but that information is not required.\nLet's prepare a form for the guests, so they can sign up for our event, by using uniforms!"),(0,l.kt)("h3",{id:"1-install-the-required-packages"},"1. Install the required packages"),(0,l.kt)("p",null,"To start using uniforms, we have to install three independent packages:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Core"),(0,l.kt)("li",{parentName:"ol"},"Bridge"),(0,l.kt)("li",{parentName:"ol"},"Theme")),(0,l.kt)("p",null,"In this example, we will use the JSONSchema to describe our desired data format and style our form using Semantic UI theme."),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-shell"},"npm install uniforms\nnpm install uniforms-bridge-json-schema\nnpm install uniforms-semantic\n")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"Note"),": When using a themed package, remember to include correct styles! If you are willing to run this example by yourself,\nhave a read on ",(0,l.kt)("a",{parentName:"p",href:"https://react.semantic-ui.com/usage/#theme"},"Semantic UI React's theme usage"),"."),(0,l.kt)("h3",{id:"2-start-by-defining-a-schema"},"2. Start by defining a schema"),(0,l.kt)("p",null,"After we've installed required packages, it's time to define our Guest schema. We can do it in a plain JSON, which is a valid JSONSchema instance:"),(0,l.kt)(i.f,{language:"tsx",section:"schema",source:t(36482),mdxType:"CodeSection"}),(0,l.kt)("p",null,"As you can see, we've defined three properties - ",(0,l.kt)("inlineCode",{parentName:"p"},"firstName")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"lastName"),", that are of string type, and ",(0,l.kt)("inlineCode",{parentName:"p"},"workExperience"),",\nwhich is an integer, with a value between 0 and 100."),(0,l.kt)("h3",{id:"3-then-create-the-bridge"},"3. Then create the bridge"),(0,l.kt)("p",null,"Now that we have the schema, we can create the uniforms bridge of it, by using the corresponding uniforms schema-to-bridge package.\nCreating the bridge instance is necessary - without it, uniforms would not be able to process form generation and validation.\nAs we are using the JSONSchema, we have to import the ",(0,l.kt)("inlineCode",{parentName:"p"},"uniforms-bridge-json-schema")," package."),(0,l.kt)(i.f,{language:"tsx",section:"bridgeImport",source:t(36482),mdxType:"CodeSection"}),(0,l.kt)("p",null,"Now you may think that we can simply do:"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-tsx"},"// Wrong usage of the JSONSchemaBridge!\n// You have to pass a validator!\nconst bridge = new JSONSchemaBridge({ schema });\n")),(0,l.kt)("p",null,"However, ",(0,l.kt)("strong",{parentName:"p"},"there's small caveat with using the JSONSchemaBridge"),".\nBecause of its simplicity, JSONSchema doesn't provide any validation checkers, so in order to properly validate our submitted data,\nwe need to ",(0,l.kt)("strong",{parentName:"p"},"manually define a validator"),", and that is required by the uniforms ",(0,l.kt)("inlineCode",{parentName:"p"},"JSONSchemaBrigde")," constructor."),(0,l.kt)("p",null,"To manually create the validator, we will use the ",(0,l.kt)("a",{parentName:"p",href:"https://github.com/ajv-validator/ajv"},"Ajv")," package:"),(0,l.kt)("admonition",{type:"caution"},(0,l.kt)("p",{parentName:"admonition"},"Ajv executes in ",(0,l.kt)("a",{parentName:"p",href:"https://ajv.js.org/options.html#strict"},"strict mode by default")," since version 7. To avoid errors at schema compilation phase, we have to register the ",(0,l.kt)("inlineCode",{parentName:"p"},"uniforms")," keyword (see ",(0,l.kt)("a",{parentName:"p",href:"https://ajv.js.org/strict-mode.html#unknown-keywords"},"Unknown keywords")," for more details).")),(0,l.kt)(i.f,{language:"tsx",section:"validator",source:t(36482),mdxType:"CodeSection"}),(0,l.kt)("p",null,"Now that we have both the schema and the validator, we can create the uniforms bridge:"),(0,l.kt)(i.f,{language:"tsx",section:"bridge",source:t(36482),mdxType:"CodeSection"}),(0,l.kt)("p",null,"Just to recap, the whole ",(0,l.kt)("inlineCode",{parentName:"p"},"GuestSchema.js")," file looks like this:"),(0,l.kt)(i.f,{language:"tsx",replace:{"//.*?\n":""},source:t(36482),mdxType:"CodeSection"}),(0,l.kt)("h3",{id:"4-finally-use-it-in-a-form"},"4. Finally, use it in a form!"),(0,l.kt)("p",null,"uniforms theme packages provide the ",(0,l.kt)("inlineCode",{parentName:"p"},"AutoForm")," component, which is able to generate the form based on the given schema.\nAll we have to do now is to pass the previously created GuestSchema to the ",(0,l.kt)("inlineCode",{parentName:"p"},"AutoForm"),":"),(0,l.kt)(i.f,{language:"tsx",replace:{"'[^']*?/universal'":"'uniforms-semantic'"},source:t(70888),mdxType:"CodeSection"}),(0,l.kt)("p",null,"And that's it! ",(0,l.kt)("inlineCode",{parentName:"p"},"AutoForm")," will generate a complete form with labeled fields, errors list (if any) and a submit button.\nAlso, it will take care of validation and handle model changes."),(0,l.kt)(c.R,{mdxType:"TutorialForm"},(0,l.kt)(u,{mdxType:"GuestFormBasic"})))}_.isMDXComponent=!0},4940:function(e,n){"use strict";n.Z={"center-if-sm":"center-if-sm_fQBP",padding:"padding_u3oQ",landing:"landing_JSVC","overflow-hidden":"overflow-hidden_pgKL","section-content":"section-content_dsyA",discussions:"discussions_nna8","floating-example":"floating-example_NeZB","system-window":"system-window_utQO","system-top-bar":"system-top-bar_ZKOK","system-top-bar-circle":"system-top-bar-circle_TDqe","showcase-card":"showcase-card_hJCa",footer:"footer_V71b",bullets:"bullets_YLT6","offset-column":"offset-column_Fx18","simple-yet-powerful-text":"simple-yet-powerful-text__cJc","fully-customizable-text":"fully-customizable-text_ka9o","reverse-wrap":"reverse-wrap_wEMw",example:"example_fVIp","preview-border":"preview-border_OFQs",preview:"preview_Ea2L","no-padding":"no-padding_WjVH","solid-border-box":"solid-border-box_A28F","green-accent":"green-accent_H4ZV","blue-accent":"blue-accent_R2MP",grid3x3:"grid3x3_yu8a",item3x3:"item3x3_dug1",company:"company_dMmf","border-dashed":"border-dashed_OHF8","border-gradient":"border-gradient_gHdq","border-disable-top-right":"border-disable-top-right_GH8c","border-disable-bottom-left":"border-disable-bottom-left_uiZP","arrow-button":"arrow-button_hF_x","left-arrow-button":"left-arrow-button_Zn9b","right-arrow-button":"right-arrow-button_J0NN",arrow:"arrow_d93H","carousel-container":"carousel-container_uFWT",carousel:"carousel_vfTV",testimonials:"testimonials__H4G","testimonials-pair-active":"testimonials-pair-active_W4Qz","testimonials-pair-inactive":"testimonials-pair-inactive_OeWi",testimonial:"testimonial_JqOm","testimonial-content":"testimonial-content_yyK0","testimonial-links-wrapper":"testimonial-links-wrapper_aCzC","testimonial-description":"testimonial-description_HpGg","testimonial-avatar":"testimonial-avatar_OiX2","section-heading":"section-heading_Wwdu","section-bgwhite":"section-bgwhite_xc3Y","section-bgwhite-block":"section-bgwhite-block_wuyP","section-bgwhite-block-left":"section-bgwhite-block-left_R077","section-bgwhite-block-right":"section-bgwhite-block-right_XL2o",logos:"logos_slhi",fluid:"fluid_k_Hd",whyus:"whyus_bBI7",oval:"oval_S291","link-icon-container":"link-icon-container_Iy8Z",white:"white_k7iJ","top-right-corner":"top-right-corner_hrD6",badges:"badges_sK0n","badge-number":"badge-number_FlCf",badge:"badge_Cv7E","badge-image":"badge-image_V8QJ","badge-centered":"badge-centered_Cl70","call-to-action":"call-to-action_fHoz","theme-icon":"theme-icon_VaE8",section:"section_SnfD","flex-center":"flex-center_VHPe","top-margin":"top-margin_xVhu","long-button":"long-button_efAi",text:"text_U9e4","text-big":"text-big_oDLV","text-huge":"text-huge_zgdY","heading-helper":"heading-helper_fnxq",heading:"heading_Tyjn","heading-white":"heading-white_SkAD",emphasis:"emphasis_T58q",paragraph:"paragraph_pxCb","section-subtitle":"section-subtitle_etM3","footer-heading":"footer-heading_wvTE",supported:"supported_k5lB",title:"title_L62U",description:"description_aTRG","commercial-bullets":"commercial-bullets_o7pP","commercial-box":"commercial-box_wLXy",vazco:"vazco_f6cf","form-wrapper":"form-wrapper_kccZ",playground:"playground_p2wD","playground-wrap":"playground-wrap_FoP6","playground-column":"playground-column_btgY","playground-toolbar":"playground-toolbar_jwg0",tabs:"tabs_DJzW",item:"item_Lknm",active:"active_R6La",toggler:"toggler_LMZW",header:"header_kKxo",tooltip:"tooltip_OOD_","tooltip-text":"tooltip-text_GGXA","toggler-tabs":"toggler-tabs_UzN0"}},95126:function(e,n,t){var a={"./af":1009,"./af.js":1009,"./ar":88769,"./ar-dz":23739,"./ar-dz.js":23739,"./ar-kw":93745,"./ar-kw.js":93745,"./ar-ly":99576,"./ar-ly.js":99576,"./ar-ma":67408,"./ar-ma.js":67408,"./ar-sa":48781,"./ar-sa.js":48781,"./ar-tn":87856,"./ar-tn.js":87856,"./ar.js":88769,"./az":2030,"./az.js":2030,"./be":56476,"./be.js":56476,"./bg":25304,"./bg.js":25304,"./bm":48125,"./bm.js":48125,"./bn":34,"./bn-bd":29835,"./bn-bd.js":29835,"./bn.js":34,"./bo":64082,"./bo.js":64082,"./br":8317,"./br.js":8317,"./bs":93107,"./bs.js":93107,"./ca":68272,"./ca.js":68272,"./cs":98567,"./cs.js":98567,"./cv":61583,"./cv.js":61583,"./cy":10076,"./cy.js":10076,"./da":31760,"./da.js":31760,"./de":8973,"./de-at":63214,"./de-at.js":63214,"./de-ch":74728,"./de-ch.js":74728,"./de.js":8973,"./dv":54053,"./dv.js":54053,"./el":7499,"./el.js":7499,"./en-au":67876,"./en-au.js":67876,"./en-ca":47010,"./en-ca.js":47010,"./en-gb":34239,"./en-gb.js":34239,"./en-ie":99830,"./en-ie.js":99830,"./en-il":28438,"./en-il.js":28438,"./en-in":25322,"./en-in.js":25322,"./en-nz":43264,"./en-nz.js":43264,"./en-sg":55449,"./en-sg.js":55449,"./eo":39486,"./eo.js":39486,"./es":32430,"./es-do":16310,"./es-do.js":16310,"./es-mx":27038,"./es-mx.js":27038,"./es-us":73099,"./es-us.js":73099,"./es.js":32430,"./et":34975,"./et.js":34975,"./eu":87063,"./eu.js":87063,"./fa":68073,"./fa.js":68073,"./fi":50957,"./fi.js":50957,"./fil":8764,"./fil.js":8764,"./fo":81775,"./fo.js":81775,"./fr":74179,"./fr-ca":14306,"./fr-ca.js":14306,"./fr-ch":73791,"./fr-ch.js":73791,"./fr.js":74179,"./fy":47014,"./fy.js":47014,"./ga":46911,"./ga.js":46911,"./gd":62958,"./gd.js":62958,"./gl":87344,"./gl.js":87344,"./gom-deva":33161,"./gom-deva.js":33161,"./gom-latn":35798,"./gom-latn.js":35798,"./gu":68485,"./gu.js":68485,"./he":27917,"./he.js":27917,"./hi":52159,"./hi.js":52159,"./hr":95842,"./hr.js":95842,"./hu":30005,"./hu.js":30005,"./hy-am":51312,"./hy-am.js":51312,"./id":60781,"./id.js":60781,"./is":64101,"./is.js":64101,"./it":43467,"./it-ch":4759,"./it-ch.js":4759,"./it.js":43467,"./ja":44164,"./ja.js":44164,"./jv":70079,"./jv.js":70079,"./ka":57036,"./ka.js":57036,"./kk":92022,"./kk.js":92022,"./km":63418,"./km.js":63418,"./kn":43655,"./kn.js":43655,"./ko":30986,"./ko.js":30986,"./ku":91902,"./ku.js":91902,"./ky":4604,"./ky.js":4604,"./lb":99026,"./lb.js":99026,"./lo":20537,"./lo.js":20537,"./lt":22288,"./lt.js":22288,"./lv":1495,"./lv.js":1495,"./me":60690,"./me.js":60690,"./mi":2571,"./mi.js":2571,"./mk":93959,"./mk.js":93959,"./ml":97225,"./ml.js":97225,"./mn":88,"./mn.js":88,"./mr":46622,"./mr.js":46622,"./ms":11070,"./ms-my":48899,"./ms-my.js":48899,"./ms.js":11070,"./mt":63931,"./mt.js":63931,"./my":95393,"./my.js":95393,"./nb":4274,"./nb.js":4274,"./ne":8914,"./ne.js":8914,"./nl":33114,"./nl-be":68479,"./nl-be.js":68479,"./nl.js":33114,"./nn":4513,"./nn.js":4513,"./oc-lnc":46549,"./oc-lnc.js":46549,"./pa-in":28264,"./pa-in.js":28264,"./pl":32848,"./pl.js":32848,"./pt":90899,"./pt-br":55077,"./pt-br.js":55077,"./pt.js":90899,"./ro":92512,"./ro.js":92512,"./ru":21753,"./ru.js":21753,"./sd":16840,"./sd.js":16840,"./se":78362,"./se.js":78362,"./si":50464,"./si.js":50464,"./sk":66324,"./sk.js":66324,"./sl":41963,"./sl.js":41963,"./sq":53039,"./sq.js":53039,"./sr":93454,"./sr-cyrl":10466,"./sr-cyrl.js":10466,"./sr.js":93454,"./ss":95158,"./ss.js":95158,"./sv":28859,"./sv.js":28859,"./sw":57594,"./sw.js":57594,"./ta":26915,"./ta.js":26915,"./te":15677,"./te.js":15677,"./tet":92154,"./tet.js":92154,"./tg":74098,"./tg.js":74098,"./th":89071,"./th.js":89071,"./tk":49381,"./tk.js":49381,"./tl-ph":1869,"./tl-ph.js":1869,"./tlh":92346,"./tlh.js":92346,"./tr":71483,"./tr.js":71483,"./tzl":30266,"./tzl.js":30266,"./tzm":33138,"./tzm-latn":32960,"./tzm-latn.js":32960,"./tzm.js":33138,"./ug-cn":29456,"./ug-cn.js":29456,"./uk":50805,"./uk.js":50805,"./ur":61127,"./ur.js":61127,"./uz":29628,"./uz-latn":80840,"./uz-latn.js":80840,"./uz.js":29628,"./vi":56962,"./vi.js":56962,"./x-pseudo":49257,"./x-pseudo.js":49257,"./yo":62423,"./yo.js":62423,"./zh-cn":61002,"./zh-cn.js":61002,"./zh-hk":6046,"./zh-hk.js":6046,"./zh-mo":36903,"./zh-mo.js":36903,"./zh-tw":24710,"./zh-tw.js":24710};function r(e){var n=l(e);return t(n)}function l(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=l,e.exports=r,r.id=95126},70888:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { AutoForm } from '../../lib/universal';\n\nimport { bridge as schema } from './GuestSchema';\n\nexport function GuestFormBasic() {\n return <AutoForm schema={schema} onSubmit={console.log} />;\n}\n"},36482:function(e,n,t){"use strict";t.r(n),n.default="// <schema>\n// <validator>\nimport Ajv, { JSONSchemaType } from 'ajv';\n// </validator>\n// </schema>\n// <bridgeImport>\nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\n// </bridgeImport>\n\n// <schema>\ntype FormData = {\n firstName: string;\n lastName: string;\n workExperience: number;\n};\n\nconst schema: JSONSchemaType<FormData> = {\n title: 'Guest',\n type: 'object',\n properties: {\n firstName: { type: 'string' },\n lastName: { type: 'string' },\n workExperience: {\n description: 'Work experience in years',\n type: 'integer',\n minimum: 0,\n maximum: 100,\n },\n },\n required: ['firstName', 'lastName'],\n};\n// </schema>\n\n// <validator>\nconst ajv = new Ajv({\n allErrors: true,\n useDefaults: true,\n keywords: ['uniforms'],\n});\n\nfunction createValidator<T>(schema: JSONSchemaType<T>) {\n const validator = ajv.compile(schema);\n\n return (model: Record<string, unknown>) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst schemaValidator = createValidator(schema);\n// </validator>\n\n// <bridge>\n// Correct usage of the JSONSchemaBridge.\nexport const bridge = new JSONSchemaBridge({\n schema,\n validator: schemaValidator,\n});\n// </bridge>\n"}}]); \ No newline at end of file diff --git a/assets/js/775024fc.a7c5ee0c.js b/assets/js/775024fc.a7c5ee0c.js new file mode 100644 index 000000000..67616e506 --- /dev/null +++ b/assets/js/775024fc.a7c5ee0c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[908],{35318:function(e,t,r){r.d(t,{Zo:function(){return c},kt:function(){return m}});var n=r(27378);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=n.createContext({}),u=function(e){var t=n.useContext(l),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},c=function(e){var t=u(e.components);return n.createElement(l.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},f=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,l=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),f=u(r),m=o,d=f["".concat(l,".").concat(m)]||f[m]||p[m]||a;return r?n.createElement(d,i(i({ref:t},c),{},{components:r})):n.createElement(d,i({ref:t},c))}));function m(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=f;var s={};for(var l in t)hasOwnProperty.call(t,l)&&(s[l]=t[l]);s.originalType=e,s.mdxType="string"==typeof e?e:o,i[1]=s;for(var u=2;u<a;u++)i[u]=r[u];return n.createElement.apply(null,i)}return n.createElement.apply(null,r)}f.displayName="MDXCreateElement"},30135:function(e,t,r){r.r(t),r.d(t,{assets:function(){return l},contentTitle:function(){return i},default:function(){return p},frontMatter:function(){return a},metadata:function(){return s},toc:function(){return u}});var n=r(25773),o=(r(27378),r(35318));const a={id:"what-are-uniforms",title:"What are uniforms?"},i=void 0,s={unversionedId:"what-are-uniforms",id:"what-are-uniforms",title:"What are uniforms?",description:"Generally speaking, uniforms are a set of React libraries for building forms from every schema.",source:"@site/../docs/what-are-uniforms.md",sourceDirName:".",slug:"/what-are-uniforms",permalink:"/docs/what-are-uniforms",draft:!1,tags:[],version:"current",frontMatter:{id:"what-are-uniforms",title:"What are uniforms?"},sidebar:"docs",next:{title:"Motivation",permalink:"/docs/motivation"}},l={},u=[{value:"Core features",id:"core-features",level:3}],c={toc:u};function p(e){let{components:t,...r}=e;return(0,o.kt)("wrapper",(0,n.Z)({},c,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("p",null,"Generally speaking, uniforms are a set of React libraries for building forms from every schema."),(0,o.kt)("h3",{id:"core-features"},"Core features"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"Automatic forms generation"),(0,o.kt)("li",{parentName:"ul"},"Fields capable of rendering every schema"),(0,o.kt)("li",{parentName:"ul"},"Helper for creating custom fields with one line"),(0,o.kt)("li",{parentName:"ul"},"Inline and asynchronous form validation"),(0,o.kt)("li",{parentName:"ul"},"Various schemas integration"),(0,o.kt)("li",{parentName:"ul"},"Wide range of themes support")),(0,o.kt)("p",null,"Similarly to other form packages, uniforms can help you with rendering a form, by taking care of its state management, validation, and submission.\nWhat makes it unique though, is the ability to ",(0,o.kt)("strong",{parentName:"p"},"completely generate the form")," for you, without having to manually provide its fields."),(0,o.kt)("p",null,"In order to do so, uniforms require you to do two things:"),(0,o.kt)("ol",null,(0,o.kt)("li",{parentName:"ol"},"Provide ",(0,o.kt)("strong",{parentName:"li"},"the schema")," of your data. You can approach the schema as a formal description of the data, where you define its types, allowed values, default values, required ones and so on."),(0,o.kt)("li",{parentName:"ol"},"Select desired ",(0,o.kt)("strong",{parentName:"li"},"theme"),". The theme is basically a package containing pre-styled form components in one of the popular styles (AntD, Bootstrap 3, Bootstrap 4, Bootstrap 5, Material, MUI, Semantic) or raw, unstyled HTML.")),(0,o.kt)("p",null,"To operate on the schema, uniforms will need to receive a ",(0,o.kt)("em",{parentName:"p"},"bridge")," of it.\nA bridge is a unified schema mapper that is used by uniforms internals in order to be able to operate on the schema data, validate it and generate errors.\nTo create one, you have to use one of the predefined schema-to-bridge mappers or create one by yourself.\nTo learn more about the bridge concept, please visit the ",(0,o.kt)("a",{parentName:"p",href:"/docs/uth-bridge-concept"},"Under The Hood > Bridge concept")," section."))}p.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/777.88e19c8c.js b/assets/js/777.88e19c8c.js new file mode 100644 index 000000000..55cdba403 --- /dev/null +++ b/assets/js/777.88e19c8c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[777],{88777:function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t,r){var a,c=t.initialState;return{getState:function(){return c},dispatch:function(a,i){var l=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},c);c=e(c,{type:a,props:t,payload:i}),r({state:c,prevState:l})},pendingRequests:(a=[],{add:function(e){return a.push(e),e.finally((function(){a=a.filter((function(t){return t!==e}))}))},cancelAll:function(){a.forEach((function(e){return e.cancel()}))},isEmpty:function(){return 0===a.length}})}}function c(e){return e.reduce((function(e,t){return e.concat(t)}),[])}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){return 0===e.collections.length?0:e.collections.reduce((function(e,t){return e+t.items.length}),0)}r.r(t),r.d(t,{DocSearchModal:function(){return Dr}});var f=0;var m=function(){};function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){var r=[];return Promise.resolve(e(t)).then((function(e){return Array.isArray(e),Promise.all(e.filter((function(e){return Boolean(e)})).map((function(e){if(e.sourceId,r.includes(e.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));r.push(e.sourceId);var t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({getItemInputValue:function(e){return e.state.query},getItemUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onActive:m},e);return Promise.resolve(t)})))}))}function v(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D(e){return function(e){if(Array.isArray(e))return C(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(e){return Boolean(e.execute)}function R(e,t){return r=e,Boolean(null==r?void 0:r.execute)?A(A({},e),{},{requests:e.queries.map((function(r){return{query:r,sourceId:t,transformResponse:e.transformResponse}}))}):{items:e,sourceId:t};var r}function q(e){var t=e.reduce((function(e,t){if(!N(t))return e.push(t),e;var r=t.searchClient,n=t.execute,o=t.requesterId,a=t.requests,c=e.find((function(e){return N(t)&&N(e)&&e.searchClient===r&&Boolean(o)&&e.requesterId===o}));if(c){var i;(i=c.items).push.apply(i,D(a))}else{var l={execute:n,requesterId:o,items:a,searchClient:r};e.push(l)}return e}),[]).map((function(e){if(!N(e))return Promise.resolve(e);var t=e,r=t.execute,n=t.items;return r({searchClient:t.searchClient,requests:n})}));return Promise.all(t).then((function(e){return c(e)}))}function _(e,t){return t.map((function(t){var r=e.filter((function(e){return e.sourceId===t.sourceId})),n=r.map((function(e){return e.items})),o=r[0].transformResponse,a=o?o(function(e){var t=e.map((function(e){var t;return P(P({},e),{},{hits:null===(t=e.hits)||void 0===t?void 0:t.map((function(t){return P(P({},t),{},{__autocomplete_indexName:e.index,__autocomplete_queryID:e.queryID})}))})}));return{results:t,hits:t.map((function(e){return e.hits})).filter(Boolean),facetHits:t.map((function(e){var t;return null===(t=e.facetHits)||void 0===t?void 0:t.map((function(e){return{label:e.value,count:e.count,_highlightResult:{label:{value:e.highlighted}}}}))})).filter(Boolean)}}(n)):n;return Array.isArray(a),a.every(Boolean),'The `getItems` function from source "'.concat(t.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void 0),".\n\nDid you forget to return items?\n\nSee: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems"),{source:t,items:a}}))}function T(e,t){var r=t;return{then:function(t,n){return T(e.then(H(t,r,e),H(n,r,e)),r)},catch:function(t){return T(e.catch(H(t,r,e)),r)},finally:function(t){return t&&r.onCancelList.push(t),T(e.finally(H(t&&function(){return r.onCancelList=[],t()},r,e)),r)},cancel:function(){r.isCanceled=!0;var e=r.onCancelList;r.onCancelList=[],e.forEach((function(e){e()}))},isCanceled:function(){return!0===r.isCanceled}}}function L(e){return T(new Promise((function(t,r){return e(t,r)})),{isCanceled:!1,onCancelList:[]})}function M(e){return T(e,{isCanceled:!1,onCancelList:[]})}function H(e,t,r){return e?function(r){return t.isCanceled?r:e(r)}:r}function F(e){var t=function(e){var t=e.collections.map((function(e){return e.items.length})).reduce((function(e,t,r){var n=(e[r-1]||0)+t;return e.push(n),e}),[]).reduce((function(t,r){return r<=e.activeItemId?t+1:t}),0);return e.collections[t]}(e);if(!t)return null;var r=t.items[function(e){for(var t=e.state,r=e.collection,n=!1,o=0,a=0;!1===n;){var c=t.collections[o];if(c===r){n=!0;break}a+=c.items.length,o++}return t.activeItemId-a}({state:e,collection:t})],n=t.source;return{item:r,itemInputValue:n.getItemInputValue({item:r,state:e}),itemUrl:n.getItemUrl({item:r,state:e}),source:n}}L.resolve=function(e){return M(Promise.resolve(e))},L.reject=function(e){return M(Promise.reject(e))};var U=["event","nextState","props","query","refresh","store"];function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach((function(t){z(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function z(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var J,$,W,Q=null,Y=(J=-1,$=-1,W=void 0,function(e){var t=++J;return Promise.resolve(e).then((function(e){return W&&t<$?W:($=t,W=e,e)}))});function G(e){var t=e.event,r=e.nextState,n=void 0===r?{}:r,o=e.props,a=e.query,i=e.refresh,l=e.store,u=K(e,U);Q&&o.environment.clearTimeout(Q);var s=u.setCollections,f=u.setIsOpen,m=u.setQuery,p=u.setActiveItemId,d=u.setStatus;if(m(a),p(o.defaultActiveItemId),!a&&!1===o.openOnFocus){var h,v=l.getState().collections.map((function(e){return V(V({},e),{},{items:[]})}));d("idle"),s(v),f(null!==(h=n.isOpen)&&void 0!==h?h:o.shouldPanelOpen({state:l.getState()}));var y=M(Y(v).then((function(){return Promise.resolve()})));return l.pendingRequests.add(y)}d("loading"),Q=o.environment.setTimeout((function(){d("stalled")}),o.stallThreshold);var g=M(Y(o.getSources(V({query:a,refresh:i,state:l.getState()},u)).then((function(e){return Promise.all(e.map((function(e){return Promise.resolve(e.getItems(V({query:a,refresh:i,state:l.getState()},u))).then((function(t){return R(t,e.sourceId)}))}))).then(q).then((function(t){return _(t,e)})).then((function(e){return function(e){var t=e.collections,r=e.props,n=e.state,o=t.reduce((function(e,t){return j(j({},e),{},E({},t.source.sourceId,j(j({},t.source),{},{getItems:function(){return c(t.items)}})))}),{});return c(r.reshape({sources:Object.values(o),sourcesBySourceId:o,state:n})).filter(Boolean).map((function(e){return{source:e,items:e.getItems()}}))}({collections:e,props:o,state:l.getState()})}))})))).then((function(e){var r;d("idle"),s(e);var c=o.shouldPanelOpen({state:l.getState()});f(null!==(r=n.isOpen)&&void 0!==r?r:o.openOnFocus&&!a&&c||c);var m=F(l.getState());if(null!==l.getState().activeItemId&&m){var p=m.item,h=m.itemInputValue,v=m.itemUrl,y=m.source;y.onActive(V({event:t,item:p,itemInputValue:h,itemUrl:v,refresh:i,source:y,state:l.getState()},u))}})).finally((function(){d("idle"),Q&&o.environment.clearTimeout(Q)}));return l.pendingRequests.add(g)}var X=["event","props","refresh","store"];function Z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(r),!0).forEach((function(t){te(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function re(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ne=/((gt|sm)-|galaxy nexus)|samsung[- ]/i;var oe=["props","refresh","store"],ae=["inputElement","formElement","panelElement"],ce=["inputElement"],ie=["inputElement","maxLength"],le=["item","source"];function ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(r),!0).forEach((function(t){fe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function me(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function pe(e){var t=e.props,r=e.refresh,n=e.store,o=me(e,oe);return{getEnvironmentProps:function(e){var r=e.inputElement,o=e.formElement,a=e.panelElement;function c(e){!n.getState().isOpen&&n.pendingRequests.isEmpty()||e.target===r||!1===[o,a].some((function(t){return r=t,n=e.target,r===n||r.contains(n);var r,n}))&&(n.dispatch("blur",null),t.debug||n.pendingRequests.cancelAll())}return se({onTouchStart:c,onMouseDown:c,onTouchMove:function(e){!1!==n.getState().isOpen&&r===t.environment.document.activeElement&&e.target!==r&&r.blur()}},me(e,ae))},getRootProps:function(e){return se({role:"combobox","aria-expanded":n.getState().isOpen,"aria-haspopup":"listbox","aria-owns":n.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},e)},getFormProps:function(e){e.inputElement;return se({action:"",noValidate:!0,role:"search",onSubmit:function(a){var c;a.preventDefault(),t.onSubmit(se({event:a,refresh:r,state:n.getState()},o)),n.dispatch("submit",null),null===(c=e.inputElement)||void 0===c||c.blur()},onReset:function(a){var c;a.preventDefault(),t.onReset(se({event:a,refresh:r,state:n.getState()},o)),n.dispatch("reset",null),null===(c=e.inputElement)||void 0===c||c.focus()}},me(e,ce))},getLabelProps:function(e){return se({htmlFor:"".concat(t.id,"-input"),id:"".concat(t.id,"-label")},e)},getInputProps:function(e){var a;function c(e){(t.openOnFocus||Boolean(n.getState().query))&&G(se({event:e,props:t,query:n.getState().completion||n.getState().query,refresh:r,store:n},o)),n.dispatch("focus",null)}var i=e||{},l=(i.inputElement,i.maxLength),u=void 0===l?512:l,s=me(i,ie),f=F(n.getState()),p=function(e){return Boolean(e&&e.match(ne))}((null===(a=t.environment.navigator)||void 0===a?void 0:a.userAgent)||""),d=null!=f&&f.itemUrl&&!p?"go":"search";return se({"aria-autocomplete":"both","aria-activedescendant":n.getState().isOpen&&null!==n.getState().activeItemId?"".concat(t.id,"-item-").concat(n.getState().activeItemId):void 0,"aria-controls":n.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:n.getState().completion||n.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:d,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:u,type:"search",onChange:function(e){G(se({event:e,props:t,query:e.currentTarget.value.slice(0,u),refresh:r,store:n},o))},onKeyDown:function(e){!function(e){var t=e.event,r=e.props,n=e.refresh,o=e.store,a=re(e,X);if("ArrowUp"===t.key||"ArrowDown"===t.key){var c=function(){var e=r.environment.document.getElementById("".concat(r.id,"-item-").concat(o.getState().activeItemId));e&&(e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView(!1))},i=function(){var e=F(o.getState());if(null!==o.getState().activeItemId&&e){var r=e.item,c=e.itemInputValue,i=e.itemUrl,l=e.source;l.onActive(ee({event:t,item:r,itemInputValue:c,itemUrl:i,refresh:n,source:l,state:o.getState()},a))}};t.preventDefault(),!1===o.getState().isOpen&&(r.openOnFocus||Boolean(o.getState().query))?G(ee({event:t,props:r,query:o.getState().query,refresh:n,store:o},a)).then((function(){o.dispatch(t.key,{nextActiveItemId:r.defaultActiveItemId}),i(),setTimeout(c,0)})):(o.dispatch(t.key,{}),i(),c())}else if("Escape"===t.key)t.preventDefault(),o.dispatch(t.key,null),o.pendingRequests.cancelAll();else if("Tab"===t.key)o.dispatch("blur",null),o.pendingRequests.cancelAll();else if("Enter"===t.key){if(null===o.getState().activeItemId||o.getState().collections.every((function(e){return 0===e.items.length})))return void(r.debug||o.pendingRequests.cancelAll());t.preventDefault();var l=F(o.getState()),u=l.item,s=l.itemInputValue,f=l.itemUrl,m=l.source;if(t.metaKey||t.ctrlKey)void 0!==f&&(m.onSelect(ee({event:t,item:u,itemInputValue:s,itemUrl:f,refresh:n,source:m,state:o.getState()},a)),r.navigator.navigateNewTab({itemUrl:f,item:u,state:o.getState()}));else if(t.shiftKey)void 0!==f&&(m.onSelect(ee({event:t,item:u,itemInputValue:s,itemUrl:f,refresh:n,source:m,state:o.getState()},a)),r.navigator.navigateNewWindow({itemUrl:f,item:u,state:o.getState()}));else if(t.altKey);else{if(void 0!==f)return m.onSelect(ee({event:t,item:u,itemInputValue:s,itemUrl:f,refresh:n,source:m,state:o.getState()},a)),void r.navigator.navigate({itemUrl:f,item:u,state:o.getState()});G(ee({event:t,nextState:{isOpen:!1},props:r,query:s,refresh:n,store:o},a)).then((function(){m.onSelect(ee({event:t,item:u,itemInputValue:s,itemUrl:f,refresh:n,source:m,state:o.getState()},a))}))}}}(se({event:e,props:t,refresh:r,store:n},o))},onFocus:c,onBlur:m,onClick:function(r){e.inputElement!==t.environment.document.activeElement||n.getState().isOpen||c(r)}},s)},getPanelProps:function(e){return se({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){n.dispatch("mouseleave",null)}},e)},getListProps:function(e){return se({role:"listbox","aria-labelledby":"".concat(t.id,"-label"),id:"".concat(t.id,"-list")},e)},getItemProps:function(e){var a=e.item,c=e.source,i=me(e,le);return se({id:"".concat(t.id,"-item-").concat(a.__autocomplete_id),role:"option","aria-selected":n.getState().activeItemId===a.__autocomplete_id,onMouseMove:function(e){if(a.__autocomplete_id!==n.getState().activeItemId){n.dispatch("mousemove",a.__autocomplete_id);var t=F(n.getState());if(null!==n.getState().activeItemId&&t){var c=t.item,i=t.itemInputValue,l=t.itemUrl,u=t.source;u.onActive(se({event:e,item:c,itemInputValue:i,itemUrl:l,refresh:r,source:u,state:n.getState()},o))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var i=c.getItemInputValue({item:a,state:n.getState()}),l=c.getItemUrl({item:a,state:n.getState()});(l?Promise.resolve():G(se({event:e,nextState:{isOpen:!1},props:t,query:i,refresh:r,store:n},o))).then((function(){c.onSelect(se({event:e,item:a,itemInputValue:i,itemUrl:l,refresh:r,source:c,state:n.getState()},o))}))}},i)}}}var de=[{segment:"autocomplete-core",version:"1.7.1"}];function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?he(Object(r),!0).forEach((function(t){ye(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):he(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ge(e){var t,r,n,o,a=e.plugins,c=e.options,i=null===(t=((null===(r=c.__autocomplete_metadata)||void 0===r?void 0:r.userAgents)||[])[0])||void 0===t?void 0:t.segment,l=i?ye({},i,Object.keys((null===(n=c.__autocomplete_metadata)||void 0===n?void 0:n.options)||{})):{};return{plugins:a.map((function(e){return{name:e.name,options:Object.keys(e.__autocomplete_pluginOptions||[])}})),options:ve({"autocomplete-core":Object.keys(c)},l),ua:de.concat((null===(o=c.__autocomplete_metadata)||void 0===o?void 0:o.userAgents)||[])}}function be(e){var t,r=e.state;return!1===r.isOpen||null===r.activeItemId?null:(null===(t=F(r))||void 0===t?void 0:t.itemInputValue)||null}function Oe(e,t,r,n){if(!r)return null;if(e<0&&(null===t||null!==n&&0===t))return r+e;var o=(null===t?-1:t)+e;return o<=-1||o>=r?null===n?null:0:o}function Se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(r),!0).forEach((function(t){Ee(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ee(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var we=function(e,t){switch(t.type){case"setActiveItemId":case"mousemove":return je(je({},e),{},{activeItemId:t.payload});case"setQuery":return je(je({},e),{},{query:t.payload,completion:null});case"setCollections":return je(je({},e),{},{collections:t.payload});case"setIsOpen":return je(je({},e),{},{isOpen:t.payload});case"setStatus":return je(je({},e),{},{status:t.payload});case"setContext":return je(je({},e),{},{context:je(je({},e.context),t.payload)});case"ArrowDown":var r=je(je({},e),{},{activeItemId:t.payload.hasOwnProperty("nextActiveItemId")?t.payload.nextActiveItemId:Oe(1,e.activeItemId,s(e),t.props.defaultActiveItemId)});return je(je({},r),{},{completion:be({state:r})});case"ArrowUp":var n=je(je({},e),{},{activeItemId:Oe(-1,e.activeItemId,s(e),t.props.defaultActiveItemId)});return je(je({},n),{},{completion:be({state:n})});case"Escape":return e.isOpen?je(je({},e),{},{activeItemId:null,isOpen:!1,completion:null}):je(je({},e),{},{activeItemId:null,query:"",status:"idle",collections:[]});case"submit":return je(je({},e),{},{activeItemId:null,isOpen:!1,status:"idle"});case"reset":return je(je({},e),{},{activeItemId:!0===t.props.openOnFocus?t.props.defaultActiveItemId:null,status:"idle",query:""});case"focus":return je(je({},e),{},{activeItemId:t.props.defaultActiveItemId,isOpen:(t.props.openOnFocus||Boolean(e.query))&&t.props.shouldPanelOpen({state:e})});case"blur":return t.props.debug?e:je(je({},e),{},{isOpen:!1,activeItemId:null});case"mouseleave":return je(je({},e),{},{activeItemId:t.props.defaultActiveItemId});default:return"The reducer action ".concat(JSON.stringify(t.type)," is not supported."),e}};function Pe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(r),!0).forEach((function(t){De(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function De(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ce(e){var t=[],r=function(e,t){var r,n="undefined"!=typeof window?window:{},o=e.plugins||[];return b(b({debug:!1,openOnFocus:!1,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,environment:n,shouldPanelOpen:function(e){return s(e.state)>0},reshape:function(e){return e.sources}},e),{},{id:null!==(r=e.id)&&void 0!==r?r:"autocomplete-".concat(f++),plugins:o,initialState:b({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var r;null===(r=e.onStateChange)||void 0===r||r.call(e,t),o.forEach((function(e){var r;return null===(r=e.onStateChange)||void 0===r?void 0:r.call(e,t)}))},onSubmit:function(t){var r;null===(r=e.onSubmit)||void 0===r||r.call(e,t),o.forEach((function(e){var r;return null===(r=e.onSubmit)||void 0===r?void 0:r.call(e,t)}))},onReset:function(t){var r;null===(r=e.onReset)||void 0===r||r.call(e,t),o.forEach((function(e){var r;return null===(r=e.onReset)||void 0===r?void 0:r.call(e,t)}))},getSources:function(r){return Promise.all([].concat(v(o.map((function(e){return e.getSources}))),[e.getSources]).filter(Boolean).map((function(e){return h(e,r)}))).then((function(e){return c(e)})).then((function(e){return e.map((function(e){return b(b({},e),{},{onSelect:function(r){e.onSelect(r),t.forEach((function(e){var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,r)}))},onActive:function(r){e.onActive(r),t.forEach((function(e){var t;return null===(t=e.onActive)||void 0===t?void 0:t.call(e,r)}))}})}))}))},navigator:b({navigate:function(e){var t=e.itemUrl;n.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,r=n.open(t,"_blank","noopener");null==r||r.focus()},navigateNewWindow:function(e){var t=e.itemUrl;n.open(t,"_blank","noopener")}},e.navigator)})}(e,t),n=a(we,r,(function(e){var t=e.prevState,n=e.state;r.onStateChange(Ie({prevState:t,state:n,refresh:u},o))})),o=function(e){var t=e.store;return{setActiveItemId:function(e){t.dispatch("setActiveItemId",e)},setQuery:function(e){t.dispatch("setQuery",e)},setCollections:function(e){var r=0,n=e.map((function(e){return l(l({},e),{},{items:c(e.items).map((function(e){return l(l({},e),{},{__autocomplete_id:r++})}))})}));t.dispatch("setCollections",n)},setIsOpen:function(e){t.dispatch("setIsOpen",e)},setStatus:function(e){t.dispatch("setStatus",e)},setContext:function(e){t.dispatch("setContext",e)}}}({store:n}),i=pe(Ie({props:r,refresh:u,store:n},o));function u(){return G(Ie({event:new Event("input"),nextState:{isOpen:n.getState().isOpen},props:r,query:n.getState().query,refresh:u,store:n},o))}return r.plugins.forEach((function(e){var r;return null===(r=e.subscribe)||void 0===r?void 0:r.call(e,Ie(Ie({},o),{},{refresh:u,onSelect:function(e){t.push({onSelect:e})},onActive:function(e){t.push({onActive:e})}}))})),function(e){var t,r,n=e.metadata,o=e.environment;if(null===(t=o.navigator)||void 0===t||null===(r=t.userAgent)||void 0===r?void 0:r.includes("Algolia Crawler")){var a=o.document.createElement("meta"),c=o.document.querySelector("head");a.name="algolia:metadata",setTimeout((function(){a.content=JSON.stringify(n),c.appendChild(a)}),0)}}({metadata:ge({plugins:r.plugins,options:e}),environment:r.environment}),Ie(Ie({refresh:u},i),o)}var ke=r(27378);function Ae(e){var t=e.translations,r=(void 0===t?{}:t).searchByText,n=void 0===r?"Search by":r;return ke.createElement("a",{href:"https://www.algolia.com/ref/docsearch/?utm_source=".concat(window.location.hostname,"&utm_medium=referral&utm_content=powered_by&utm_campaign=docsearch"),target:"_blank",rel:"noopener noreferrer"},ke.createElement("span",{className:"DocSearch-Label"},n),ke.createElement("svg",{width:"77",height:"19","aria-label":"Algolia",role:"img"},ke.createElement("path",{d:"M2.5067 0h14.0245c1.384.001 2.5058 1.1205 2.5068 2.5017V16.5c-.0014 1.3808-1.1232 2.4995-2.5068 2.5H2.5067C1.1232 18.9995.0014 17.8808 0 16.5V2.4958A2.495 2.495 0 01.735.7294 2.505 2.505 0 012.5068 0zM37.95 15.0695c-3.7068.0168-3.7068-2.986-3.7068-3.4634L34.2372.3576 36.498 0v11.1794c0 .2715 0 1.9889 1.452 1.994v1.8961zm-9.1666-1.8388c.694 0 1.2086-.0397 1.5678-.1088v-2.2934a5.3639 5.3639 0 00-1.3303-.1679 4.8283 4.8283 0 00-.758.0582 2.2845 2.2845 0 00-.688.2024c-.2029.0979-.371.2362-.4919.4142-.1268.1788-.185.2826-.185.5533 0 .5297.185.8359.5205 1.0375.3355.2016.7928.3053 1.365.3053v-.0008zm-.1969-8.1817c.7463 0 1.3768.092 1.8856.2767.5088.1838.9195.4428 1.2204.7717.3068.334.5147.7777.6423 1.251.1327.4723.196.991.196 1.5603v5.798c-.5235.1036-1.05.192-1.5787.2649-.7048.1037-1.4976.156-2.3774.156-.5832 0-1.1215-.0582-1.6016-.167a3.385 3.385 0 01-1.2432-.5364 2.6034 2.6034 0 01-.8037-.9565c-.191-.3922-.29-.9447-.29-1.5208 0-.5533.11-.905.3246-1.2863a2.7351 2.7351 0 01.8849-.9329c.376-.242.8029-.415 1.2948-.5187a7.4517 7.4517 0 011.5381-.156 7.1162 7.1162 0 011.6667.2024V8.886c0-.259-.0296-.5061-.093-.7372a1.5847 1.5847 0 00-.3245-.6158 1.5079 1.5079 0 00-.6119-.4158 2.6788 2.6788 0 00-.966-.173c-.5206 0-.9948.0634-1.4283.1384a6.5481 6.5481 0 00-1.065.259l-.2712-1.849c.2831-.0986.7048-.1964 1.2491-.2943a9.2979 9.2979 0 011.752-.1501v.0008zm44.6597 8.1193c.6947 0 1.2086-.0405 1.567-.1097v-2.2942a5.3743 5.3743 0 00-1.3303-.1679c-.2485 0-.503.0177-.7573.0582a2.2853 2.2853 0 00-.688.2024 1.2333 1.2333 0 00-.4918.4142c-.1268.1788-.1843.2826-.1843.5533 0 .5297.1843.8359.5198 1.0375.3414.2066.7927.3053 1.365.3053v.0009zm-.191-8.1767c.7463 0 1.3768.0912 1.8856.2759.5087.1847.9195.4436 1.2204.7717.3.329.5147.7786.6414 1.251a5.7248 5.7248 0 01.197 1.562v5.7972c-.3466.0742-.874.1602-1.5788.2648-.7049.1038-1.4976.1552-2.3774.1552-.5832 0-1.1215-.0573-1.6016-.167a3.385 3.385 0 01-1.2432-.5356 2.6034 2.6034 0 01-.8038-.9565c-.191-.3922-.2898-.9447-.2898-1.5216 0-.5533.1098-.905.3245-1.2854a2.7373 2.7373 0 01.8849-.9338c.376-.2412.8029-.4141 1.2947-.5178a7.4545 7.4545 0 012.325-.1097c.2781.0287.5672.081.879.156v-.3686a2.7781 2.7781 0 00-.092-.738 1.5788 1.5788 0 00-.3246-.6166 1.5079 1.5079 0 00-.612-.415 2.6797 2.6797 0 00-.966-.1729c-.5205 0-.9947.0633-1.4282.1384a6.5608 6.5608 0 00-1.065.259l-.2712-1.8498c.283-.0979.7048-.1957 1.2491-.2935a9.8597 9.8597 0 011.752-.1494zm-6.79-1.072c-.7576.001-1.373-.6103-1.3759-1.3664 0-.755.6128-1.3664 1.376-1.3664.764 0 1.3775.6115 1.3775 1.3664s-.6195 1.3664-1.3776 1.3664zm1.1393 11.1507h-2.2726V5.3409l2.2734-.3568v10.0845l-.0008.0017zm-3.984 0c-3.707.0168-3.707-2.986-3.707-3.4642L59.7069.3576 61.9685 0v11.1794c0 .2715 0 1.9889 1.452 1.994V15.0703zm-7.3512-4.979c0-.975-.2138-1.7873-.6305-2.3516-.4167-.571-.9998-.852-1.747-.852-.7454 0-1.3302.281-1.7452.852-.4166.5702-.6195 1.3765-.6195 2.3516 0 .9851.208 1.6473.6254 2.2183.4158.576.9998.8587 1.7461.8587.7454 0 1.3303-.2885 1.747-.8595.4158-.5761.6237-1.2315.6237-2.2184v.0009zm2.3132-.006c0 .7609-.1099 1.3361-.3356 1.9654a4.654 4.654 0 01-.9533 1.6076A4.214 4.214 0 0155.613 14.69c-.579.2412-1.4697.3795-1.9143.3795-.4462-.005-1.3303-.1324-1.9033-.3795a4.307 4.307 0 01-1.474-1.0316c-.4115-.4445-.7293-.9801-.9609-1.6076a5.3423 5.3423 0 01-.3465-1.9653c0-.7608.104-1.493.3356-2.1155a4.683 4.683 0 01.9719-1.5958 4.3383 4.3383 0 011.479-1.0257c.5739-.242 1.2043-.3567 1.8864-.3567.6829 0 1.3125.1197 1.8906.3567a4.1245 4.1245 0 011.4816 1.0257 4.7587 4.7587 0 01.9592 1.5958c.2426.6225.3643 1.3547.3643 2.1155zm-17.0198 0c0 .9448.208 1.9932.6238 2.431.4166.4386.955.6579 1.6142.6579.3584 0 .6998-.0523 1.0176-.1502.3186-.0978.5721-.2134.775-.3517V7.0784a8.8706 8.8706 0 00-1.4926-.1906c-.8206-.0236-1.4452.312-1.8847.8468-.4335.5365-.6533 1.476-.6533 2.3516v-.0008zm6.2863 4.4485c0 1.5385-.3938 2.662-1.1866 3.3773-.791.7136-2.0005 1.0712-3.6308 1.0712-.5958 0-1.834-.1156-2.8228-.334l.3643-1.7865c.8282.173 1.9202.2193 2.4932.2193.9077 0 1.555-.1847 1.943-.5533.388-.3686.578-.916.578-1.643v-.3687a6.8289 6.8289 0 01-.8848.3349c-.3634.1096-.786.167-1.261.167-.6246 0-1.1917-.0979-1.7055-.2944a3.5554 3.5554 0 01-1.3244-.8645c-.3642-.3796-.6541-.8579-.8561-1.4289-.2028-.571-.3068-1.59-.3068-2.339 0-.7034.1099-1.5856.3245-2.1735.2198-.5871.5316-1.0949.9542-1.515.4167-.42.9255-.743 1.5213-.98a5.5923 5.5923 0 012.052-.3855c.7353 0 1.4114.092 2.0707.2024.6592.1088 1.2204.2236 1.6776.35v8.945-.0008zM11.5026 4.2418v-.6511c-.0005-.4553-.3704-.8241-.8266-.8241H8.749c-.4561 0-.826.3688-.8265.824v.669c0 .0742.0693.1264.1445.1096a6.0346 6.0346 0 011.6768-.2362 6.125 6.125 0 011.6202.2185.1116.1116 0 00.1386-.1097zm-5.2806.852l-.3296-.3282a.8266.8266 0 00-1.168 0l-.393.3922a.8199.8199 0 000 1.164l.3237.323c.0524.0515.1268.0397.1733-.0117.191-.259.3989-.507.6305-.7372.2374-.2362.48-.4437.7462-.6335.0575-.0354.0634-.1155.017-.1687zm3.5159 2.069v2.818c0 .081.0879.1392.1622.0987l2.5102-1.2964c.0574-.0287.0752-.0987.0464-.1552a3.1237 3.1237 0 00-2.603-1.574c-.0575 0-.115.0456-.115.1097l-.0008-.0009zm.0008 6.789c-2.0933.0005-3.7915-1.6912-3.7947-3.7804C5.9468 8.0821 7.6452 6.39 9.7387 6.391c2.0932-.0005 3.7911 1.6914 3.794 3.7804a3.7783 3.7783 0 01-1.1124 2.675 3.7936 3.7936 0 01-2.6824 1.1054h.0008zM9.738 4.8002c-1.9218 0-3.6975 1.0232-4.6584 2.6841a5.359 5.359 0 000 5.3683c.9609 1.661 2.7366 2.6841 4.6584 2.6841a5.3891 5.3891 0 003.8073-1.5725 5.3675 5.3675 0 001.578-3.7987 5.3574 5.3574 0 00-1.5771-3.797A5.379 5.379 0 009.7387 4.801l-.0008-.0008z",fill:"currentColor",fillRule:"evenodd"})))}function xe(e){return ke.createElement("svg",{width:"15",height:"15","aria-label":e.ariaLabel,role:"img"},ke.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.2"},e.children))}function Ne(e){var t=e.translations,r=void 0===t?{}:t,n=r.selectText,o=void 0===n?"to select":n,a=r.selectKeyAriaLabel,c=void 0===a?"Enter key":a,i=r.navigateText,l=void 0===i?"to navigate":i,u=r.navigateUpKeyAriaLabel,s=void 0===u?"Arrow up":u,f=r.navigateDownKeyAriaLabel,m=void 0===f?"Arrow down":f,p=r.closeText,d=void 0===p?"to close":p,h=r.closeKeyAriaLabel,v=void 0===h?"Escape key":h,y=r.searchByText,g=void 0===y?"Search by":y;return ke.createElement(ke.Fragment,null,ke.createElement("div",{className:"DocSearch-Logo"},ke.createElement(Ae,{translations:{searchByText:g}})),ke.createElement("ul",{className:"DocSearch-Commands"},ke.createElement("li",null,ke.createElement("kbd",{className:"DocSearch-Commands-Key"},ke.createElement(xe,{ariaLabel:c},ke.createElement("path",{d:"M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3"}))),ke.createElement("span",{className:"DocSearch-Label"},o)),ke.createElement("li",null,ke.createElement("kbd",{className:"DocSearch-Commands-Key"},ke.createElement(xe,{ariaLabel:m},ke.createElement("path",{d:"M7.5 3.5v8M10.5 8.5l-3 3-3-3"}))),ke.createElement("kbd",{className:"DocSearch-Commands-Key"},ke.createElement(xe,{ariaLabel:s},ke.createElement("path",{d:"M7.5 11.5v-8M10.5 6.5l-3-3-3 3"}))),ke.createElement("span",{className:"DocSearch-Label"},l)),ke.createElement("li",null,ke.createElement("kbd",{className:"DocSearch-Commands-Key"},ke.createElement(xe,{ariaLabel:v},ke.createElement("path",{d:"M13.6167 8.936c-.1065.3583-.6883.962-1.4875.962-.7993 0-1.653-.9165-1.653-2.1258v-.5678c0-1.2548.7896-2.1016 1.653-2.1016.8634 0 1.3601.4778 1.4875 1.0724M9 6c-.1352-.4735-.7506-.9219-1.46-.8972-.7092.0246-1.344.57-1.344 1.2166s.4198.8812 1.3445.9805C8.465 7.3992 8.968 7.9337 9 8.5c.032.5663-.454 1.398-1.4595 1.398C6.6593 9.898 6 9 5.963 8.4851m-1.4748.5368c-.2635.5941-.8099.876-1.5443.876s-1.7073-.6248-1.7073-2.204v-.4603c0-1.0416.721-2.131 1.7073-2.131.9864 0 1.6425 1.031 1.5443 2.2492h-2.956"}))),ke.createElement("span",{className:"DocSearch-Label"},d))))}function Re(e){var t=e.hit,r=e.children;return ke.createElement("a",{href:t.url},r)}function qe(){return ke.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},ke.createElement("path",{d:"M19 4.8a16 16 0 00-2-1.2m-3.3-1.2A16 16 0 001.1 4.7M16.7 8a12 12 0 00-2.8-1.4M10 6a12 12 0 00-6.7 2M12.3 14.7a4 4 0 00-4.5 0M14.5 11.4A8 8 0 0010 10M3 16L18 2M10 18h0"}))}function _e(e){var t=e.translations,r=void 0===t?{}:t,n=r.titleText,o=void 0===n?"Unable to fetch results":n,a=r.helpText,c=void 0===a?"You might want to check your network connection.":a;return ke.createElement("div",{className:"DocSearch-ErrorScreen"},ke.createElement("div",{className:"DocSearch-Screen-Icon"},ke.createElement(qe,null)),ke.createElement("p",{className:"DocSearch-Title"},o),ke.createElement("p",{className:"DocSearch-Help"},c))}function Te(){return ke.createElement("svg",{width:"40",height:"40",viewBox:"0 0 20 20",fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},ke.createElement("path",{d:"M15.5 4.8c2 3 1.7 7-1 9.7h0l4.3 4.3-4.3-4.3a7.8 7.8 0 01-9.8 1m-2.2-2.2A7.8 7.8 0 0113.2 2.4M2 18L18 2"}))}var Le=["translations"];function Me(e){return function(e){if(Array.isArray(e))return He(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return He(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return He(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function He(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fe(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Ue(e){var t=e.translations,r=void 0===t?{}:t,n=Fe(e,Le),o=r.noResultsText,a=void 0===o?"No results for":o,c=r.suggestedQueryText,i=void 0===c?"Try searching for":c,l=r.reportMissingResultsText,u=void 0===l?"Believe this query should return results?":l,s=r.reportMissingResultsLinkText,f=void 0===s?"Let us know.":s,m=n.state.context.searchSuggestions;return ke.createElement("div",{className:"DocSearch-NoResults"},ke.createElement("div",{className:"DocSearch-Screen-Icon"},ke.createElement(Te,null)),ke.createElement("p",{className:"DocSearch-Title"},a,' "',ke.createElement("strong",null,n.state.query),'"'),m&&m.length>0&&ke.createElement("div",{className:"DocSearch-NoResults-Prefill-List"},ke.createElement("p",{className:"DocSearch-Help"},i,":"),ke.createElement("ul",null,m.slice(0,3).reduce((function(e,t){return[].concat(Me(e),[ke.createElement("li",{key:t},ke.createElement("button",{className:"DocSearch-Prefill",key:t,type:"button",onClick:function(){n.setQuery(t.toLowerCase()+" "),n.refresh(),n.inputRef.current.focus()}},t))])}),[]))),n.getMissingResultsUrl&&ke.createElement("p",{className:"DocSearch-Help"},"".concat(u," "),ke.createElement("a",{href:n.getMissingResultsUrl({query:n.state.query}),target:"_blank",rel:"noopener noreferrer"},f)))}var Be=function(){return ke.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},ke.createElement("path",{d:"M17 6v12c0 .52-.2 1-1 1H4c-.7 0-1-.33-1-1V2c0-.55.42-1 1-1h8l5 5zM14 8h-3.13c-.51 0-.87-.34-.87-.87V4",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))};function Ve(e){switch(e.type){case"lvl1":return ke.createElement(Be,null);case"content":return ke.createElement(Ke,null);default:return ke.createElement(ze,null)}}function ze(){return ke.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},ke.createElement("path",{d:"M13 13h4-4V8H7v5h6v4-4H7V8H3h4V3v5h6V3v5h4-4v5zm-6 0v4-4H3h4z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}function Ke(){return ke.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},ke.createElement("path",{d:"M17 5H3h14zm0 5H3h14zm0 5H3h14z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function Je(){return ke.createElement("svg",{className:"DocSearch-Hit-Select-Icon",width:"20",height:"20",viewBox:"0 0 20 20"},ke.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},ke.createElement("path",{d:"M18 3v4c0 2-2 4-4 4H2"}),ke.createElement("path",{d:"M8 17l-6-6 6-6"})))}var $e=["hit","attribute","tagName"];function We(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach((function(t){Ye(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ge(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Xe(e,t){return t.split(".").reduce((function(e,t){return null!=e&&e[t]?e[t]:null}),e)}function Ze(e){var t=e.hit,r=e.attribute,n=e.tagName,o=void 0===n?"span":n,a=Ge(e,$e);return(0,ke.createElement)(o,Qe(Qe({},a),{},{dangerouslySetInnerHTML:{__html:Xe(t,"_snippetResult.".concat(r,".value"))||Xe(t,r)}}))}function et(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,a=[],c=!0,i=!1;try{for(r=r.call(e);!(c=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);c=!0);}catch(l){i=!0,o=l}finally{try{c||null==r.return||r.return()}finally{if(i)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rt(){return rt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rt.apply(this,arguments)}function nt(e){return e.collection&&0!==e.collection.items.length?ke.createElement("section",{className:"DocSearch-Hits"},ke.createElement("div",{className:"DocSearch-Hit-source"},e.title),ke.createElement("ul",e.getListProps(),e.collection.items.map((function(t,r){return ke.createElement(ot,rt({key:[e.title,t.objectID].join(":"),item:t,index:r},e))})))):null}function ot(e){var t=e.item,r=e.index,n=e.renderIcon,o=e.renderAction,a=e.getItemProps,c=e.onItemClick,i=e.collection,l=e.hitComponent,u=et(ke.useState(!1),2),s=u[0],f=u[1],m=et(ke.useState(!1),2),p=m[0],d=m[1],h=ke.useRef(null),v=l;return ke.createElement("li",rt({className:["DocSearch-Hit",t.__docsearch_parent&&"DocSearch-Hit--Child",s&&"DocSearch-Hit--deleting",p&&"DocSearch-Hit--favoriting"].filter(Boolean).join(" "),onTransitionEnd:function(){h.current&&h.current()}},a({item:t,source:i.source,onClick:function(){c(t)}})),ke.createElement(v,{hit:t},ke.createElement("div",{className:"DocSearch-Hit-Container"},n({item:t,index:r}),t.hierarchy[t.type]&&"lvl1"===t.type&&ke.createElement("div",{className:"DocSearch-Hit-content-wrapper"},ke.createElement(Ze,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.lvl1"}),t.content&&ke.createElement(Ze,{className:"DocSearch-Hit-path",hit:t,attribute:"content"})),t.hierarchy[t.type]&&("lvl2"===t.type||"lvl3"===t.type||"lvl4"===t.type||"lvl5"===t.type||"lvl6"===t.type)&&ke.createElement("div",{className:"DocSearch-Hit-content-wrapper"},ke.createElement(Ze,{className:"DocSearch-Hit-title",hit:t,attribute:"hierarchy.".concat(t.type)}),ke.createElement(Ze,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),"content"===t.type&&ke.createElement("div",{className:"DocSearch-Hit-content-wrapper"},ke.createElement(Ze,{className:"DocSearch-Hit-title",hit:t,attribute:"content"}),ke.createElement(Ze,{className:"DocSearch-Hit-path",hit:t,attribute:"hierarchy.lvl1"})),o({item:t,runDeleteTransition:function(e){f(!0),h.current=e},runFavoriteTransition:function(e){d(!0),h.current=e}}))))}var at=/(<mark>|<\/mark>)/g,ct=RegExp(at.source);function it(e){var t,r,n,o,a,c=e;if(!c.__docsearch_parent&&!e._highlightResult)return e.hierarchy.lvl0;var i=((c.__docsearch_parent?null===(t=c.__docsearch_parent)||void 0===t||null===(r=t._highlightResult)||void 0===r||null===(n=r.hierarchy)||void 0===n?void 0:n.lvl0:null===(o=e._highlightResult)||void 0===o||null===(a=o.hierarchy)||void 0===a?void 0:a.lvl0)||{}).value;return i&&ct.test(i)?i.replace(at,""):i}function lt(){return lt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lt.apply(this,arguments)}function ut(e){return ke.createElement("div",{className:"DocSearch-Dropdown-Container"},e.state.collections.map((function(t){if(0===t.items.length)return null;var r=it(t.items[0]);return ke.createElement(nt,lt({},e,{key:t.source.sourceId,title:r,collection:t,renderIcon:function(e){var r,n=e.item,o=e.index;return ke.createElement(ke.Fragment,null,n.__docsearch_parent&&ke.createElement("svg",{className:"DocSearch-Hit-Tree",viewBox:"0 0 24 54"},ke.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},n.__docsearch_parent!==(null===(r=t.items[o+1])||void 0===r?void 0:r.__docsearch_parent)?ke.createElement("path",{d:"M8 6v21M20 27H8.3"}):ke.createElement("path",{d:"M8 6v42M20 27H8.3"}))),ke.createElement("div",{className:"DocSearch-Hit-icon"},ke.createElement(Ve,{type:n.type})))},renderAction:function(){return ke.createElement("div",{className:"DocSearch-Hit-action"},ke.createElement(Je,null))}}))})),e.resultsFooterComponent&&ke.createElement("section",{className:"DocSearch-HitsFooter"},ke.createElement(e.resultsFooterComponent,{state:e.state})))}function st(){return ke.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},ke.createElement("g",{stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},ke.createElement("path",{d:"M3.18 6.6a8.23 8.23 0 1112.93 9.94h0a8.23 8.23 0 01-11.63 0"}),ke.createElement("path",{d:"M6.44 7.25H2.55V3.36M10.45 6v5.6M10.45 11.6L13 13"})))}function ft(){return ke.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},ke.createElement("path",{d:"M10 14.2L5 17l1-5.6-4-4 5.5-.7 2.5-5 2.5 5 5.6.8-4 4 .9 5.5z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinejoin:"round"}))}function mt(){return ke.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},ke.createElement("path",{d:"M10 10l5.09-5.09L10 10l5.09 5.09L10 10zm0 0L4.91 4.91 10 10l-5.09 5.09L10 10z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}var pt=["translations"];function dt(){return dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dt.apply(this,arguments)}function ht(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function vt(e){var t=e.translations,r=void 0===t?{}:t,n=ht(e,pt),o=r.recentSearchesTitle,a=void 0===o?"Recent":o,c=r.noRecentSearchesText,i=void 0===c?"No recent searches":c,l=r.saveRecentSearchButtonTitle,u=void 0===l?"Save this search":l,s=r.removeRecentSearchButtonTitle,f=void 0===s?"Remove this search from history":s,m=r.favoriteSearchesTitle,p=void 0===m?"Favorite":m,d=r.removeFavoriteSearchButtonTitle,h=void 0===d?"Remove this search from favorites":d;return"idle"===n.state.status&&!1===n.hasCollections?n.disableUserPersonalization?null:ke.createElement("div",{className:"DocSearch-StartScreen"},ke.createElement("p",{className:"DocSearch-Help"},i)):!1===n.hasCollections?null:ke.createElement("div",{className:"DocSearch-Dropdown-Container"},ke.createElement(nt,dt({},n,{title:a,collection:n.state.collections[0],renderIcon:function(){return ke.createElement("div",{className:"DocSearch-Hit-icon"},ke.createElement(st,null))},renderAction:function(e){var t=e.item,r=e.runFavoriteTransition,o=e.runDeleteTransition;return ke.createElement(ke.Fragment,null,ke.createElement("div",{className:"DocSearch-Hit-action"},ke.createElement("button",{className:"DocSearch-Hit-action-button",title:u,type:"submit",onClick:function(e){e.preventDefault(),e.stopPropagation(),r((function(){n.favoriteSearches.add(t),n.recentSearches.remove(t),n.refresh()}))}},ke.createElement(ft,null))),ke.createElement("div",{className:"DocSearch-Hit-action"},ke.createElement("button",{className:"DocSearch-Hit-action-button",title:f,type:"submit",onClick:function(e){e.preventDefault(),e.stopPropagation(),o((function(){n.recentSearches.remove(t),n.refresh()}))}},ke.createElement(mt,null))))}})),ke.createElement(nt,dt({},n,{title:p,collection:n.state.collections[1],renderIcon:function(){return ke.createElement("div",{className:"DocSearch-Hit-icon"},ke.createElement(ft,null))},renderAction:function(e){var t=e.item,r=e.runDeleteTransition;return ke.createElement("div",{className:"DocSearch-Hit-action"},ke.createElement("button",{className:"DocSearch-Hit-action-button",title:h,type:"submit",onClick:function(e){e.preventDefault(),e.stopPropagation(),r((function(){n.favoriteSearches.remove(t),n.refresh()}))}},ke.createElement(mt,null)))}})))}var yt=["translations"];function gt(){return gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gt.apply(this,arguments)}function bt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Ot=ke.memo((function(e){var t=e.translations,r=void 0===t?{}:t,n=bt(e,yt);if("error"===n.state.status)return ke.createElement(_e,{translations:null==r?void 0:r.errorScreen});var o=n.state.collections.some((function(e){return e.items.length>0}));return n.state.query?!1===o?ke.createElement(Ue,gt({},n,{translations:null==r?void 0:r.noResultsScreen})):ke.createElement(ut,n):ke.createElement(vt,gt({},n,{hasCollections:o,translations:null==r?void 0:r.startScreen}))}),(function(e,t){return"loading"===t.state.status||"stalled"===t.state.status}));function St(){return ke.createElement("svg",{viewBox:"0 0 38 38",stroke:"currentColor",strokeOpacity:".5"},ke.createElement("g",{fill:"none",fillRule:"evenodd"},ke.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},ke.createElement("circle",{strokeOpacity:".3",cx:"18",cy:"18",r:"18"}),ke.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},ke.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))))}var jt=r(56573),Et=["translations"];function wt(){return wt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wt.apply(this,arguments)}function Pt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function It(e){var t=e.translations,r=void 0===t?{}:t,n=Pt(e,Et),o=r.resetButtonTitle,a=void 0===o?"Clear the query":o,c=r.resetButtonAriaLabel,i=void 0===c?"Clear the query":c,l=r.cancelButtonText,u=void 0===l?"Cancel":l,s=r.cancelButtonAriaLabel,f=void 0===s?"Cancel":s,m=n.getFormProps({inputElement:n.inputRef.current}).onReset;return ke.useEffect((function(){n.autoFocus&&n.inputRef.current&&n.inputRef.current.focus()}),[n.autoFocus,n.inputRef]),ke.useEffect((function(){n.isFromSelection&&n.inputRef.current&&n.inputRef.current.select()}),[n.isFromSelection,n.inputRef]),ke.createElement(ke.Fragment,null,ke.createElement("form",{className:"DocSearch-Form",onSubmit:function(e){e.preventDefault()},onReset:m},ke.createElement("label",wt({className:"DocSearch-MagnifierLabel"},n.getLabelProps()),ke.createElement(jt.W,null)),ke.createElement("div",{className:"DocSearch-LoadingIndicator"},ke.createElement(St,null)),ke.createElement("input",wt({className:"DocSearch-Input",ref:n.inputRef},n.getInputProps({inputElement:n.inputRef.current,autoFocus:n.autoFocus,maxLength:64}))),ke.createElement("button",{type:"reset",title:a,className:"DocSearch-Reset","aria-label":i,hidden:!n.state.query},ke.createElement(mt,null))),ke.createElement("button",{className:"DocSearch-Cancel",type:"reset","aria-label":f,onClick:n.onClose},u))}var Dt=["_highlightResult","_snippetResult"];function Ct(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function kt(e){return!1===function(){var e="__TEST_KEY__";try{return localStorage.setItem(e,""),localStorage.removeItem(e),!0}catch(t){return!1}}()?{setItem:function(){},getItem:function(){return[]}}:{setItem:function(t){return window.localStorage.setItem(e,JSON.stringify(t))},getItem:function(){var t=window.localStorage.getItem(e);return t?JSON.parse(t):[]}}}function At(e){var t=e.key,r=e.limit,n=void 0===r?5:r,o=kt(t),a=o.getItem().slice(0,n);return{add:function(e){var t=e,r=(t._highlightResult,t._snippetResult,Ct(t,Dt)),c=a.findIndex((function(e){return e.objectID===r.objectID}));c>-1&&a.splice(c,1),a.unshift(r),a=a.slice(0,n),o.setItem(a)},remove:function(e){a=a.filter((function(t){return t.objectID!==e.objectID})),o.setItem(a)},getAll:function(){return a}}}function xt(e){const t=`algoliasearch-client-js-${e.key}`;let r;const n=()=>(void 0===r&&(r=e.localStorage||window.localStorage),r),o=()=>JSON.parse(n().getItem(t)||"{}");return{get(e,t,r={miss:()=>Promise.resolve()}){return Promise.resolve().then((()=>{const r=JSON.stringify(e),n=o()[r];return Promise.all([n||t(),void 0!==n])})).then((([e,t])=>Promise.all([e,t||r.miss(e)]))).then((([e])=>e))},set(e,r){return Promise.resolve().then((()=>{const a=o();return a[JSON.stringify(e)]=r,n().setItem(t,JSON.stringify(a)),r}))},delete(e){return Promise.resolve().then((()=>{const r=o();delete r[JSON.stringify(e)],n().setItem(t,JSON.stringify(r))}))},clear(){return Promise.resolve().then((()=>{n().removeItem(t)}))}}}function Nt(e){const t=[...e.caches],r=t.shift();return void 0===r?{get(e,t,r={miss:()=>Promise.resolve()}){return t().then((e=>Promise.all([e,r.miss(e)]))).then((([e])=>e))},set(e,t){return Promise.resolve(t)},delete(e){return Promise.resolve()},clear(){return Promise.resolve()}}:{get(e,n,o={miss:()=>Promise.resolve()}){return r.get(e,n,o).catch((()=>Nt({caches:t}).get(e,n,o)))},set(e,n){return r.set(e,n).catch((()=>Nt({caches:t}).set(e,n)))},delete(e){return r.delete(e).catch((()=>Nt({caches:t}).delete(e)))},clear(){return r.clear().catch((()=>Nt({caches:t}).clear()))}}}function Rt(e={serializable:!0}){let t={};return{get(r,n,o={miss:()=>Promise.resolve()}){const a=JSON.stringify(r);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);const c=n(),i=o&&o.miss||(()=>Promise.resolve());return c.then((e=>i(e))).then((()=>c))},set(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear(){return t={},Promise.resolve()}}}function qt(e){let t=e.length-1;for(;t>0;t--){const r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}function _t(e,t){return t?(Object.keys(t).forEach((r=>{e[r]=t[r](e)})),e):e}function Tt(e,...t){let r=0;return e.replace(/%s/g,(()=>encodeURIComponent(t[r++])))}const Lt="4.14.2",Mt={WithinQueryParameters:0,WithinHeaders:1};function Ht(e,t){const r=e||{},n=r.data||{};return Object.keys(r).forEach((e=>{-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(n[e]=r[e])})),{data:Object.entries(n).length>0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}const Ft={Read:1,Write:2,Any:3},Ut=1,Bt=2,Vt=3,zt=12e4;function Kt(e,t=Ut){return{...e,status:t,lastUpdate:Date.now()}}function Jt(e){return"string"==typeof e?{protocol:"https",url:e,accept:Ft.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||Ft.Any}}const $t="GET",Wt="POST";function Qt(e,t){return Promise.all(t.map((t=>e.get(t,(()=>Promise.resolve(Kt(t))))))).then((e=>{const r=e.filter((e=>function(e){return e.status===Ut||Date.now()-e.lastUpdate>zt}(e))),n=e.filter((e=>function(e){return e.status===Vt&&Date.now()-e.lastUpdate<=zt}(e))),o=[...r,...n];return{getTimeout(e,t){return(0===n.length&&0===e?1:n.length+3+e)*t},statelessHosts:o.length>0?o.map((e=>Jt(e))):t}}))}function Yt(e,t,r,n){const o=[],a=function(e,t){if(e.method===$t||void 0===e.data&&void 0===t.data)return;const r=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(r)}(r,n),c=function(e,t){const r={...e.headers,...t.headers},n={};return Object.keys(r).forEach((e=>{const t=r[e];n[e.toLowerCase()]=t})),n}(e,n),i=r.method,l=r.method!==$t?{}:{...r.data,...n.data},u={"x-algolia-agent":e.userAgent.value,...e.queryParameters,...l,...n.queryParameters};let s=0;const f=(t,l)=>{const m=t.pop();if(void 0===m)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:er(o)};const p={data:a,headers:c,method:i,url:Xt(m,r.path,u),connectTimeout:l(s,e.timeouts.connect),responseTimeout:l(s,n.timeout)},d=e=>{const r={request:p,response:e,host:m,triesLeft:t.length};return o.push(r),r},h={onSuccess:e=>function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e),onRetry(r){const n=d(r);return r.isTimedOut&&s++,Promise.all([e.logger.info("Retryable failure",tr(n)),e.hostsCache.set(m,Kt(m,r.isTimedOut?Vt:Bt))]).then((()=>f(t,l)))},onFail(e){throw d(e),function({content:e,status:t},r){let n=e;try{n=JSON.parse(e).message}catch(o){}return function(e,t,r){return{name:"ApiError",message:e,status:t,transporterStackTrace:r}}(n,t,r)}(e,er(o))}};return e.requester.send(p).then((e=>((e,t)=>(e=>{const t=e.status;return e.isTimedOut||(({isTimedOut:e,status:t})=>!e&&0==~~t)(e)||2!=~~(t/100)&&4!=~~(t/100)})(e)?t.onRetry(e):(({status:e})=>2==~~(e/100))(e)?t.onSuccess(e):t.onFail(e))(e,h)))};return Qt(e.hostsCache,t).then((e=>f([...e.statelessHosts].reverse(),e.getTimeout)))}function Gt(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const r=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(r)&&(t.value=`${t.value}${r}`),t}};return t}function Xt(e,t,r){const n=Zt(r);let o=`${e.protocol}://${e.url}/${"/"===t.charAt(0)?t.substr(1):t}`;return n.length&&(o+=`?${n}`),o}function Zt(e){return Object.keys(e).map((t=>{return Tt("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]));var r})).join("&")}function er(e){return e.map((e=>tr(e)))}function tr(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}const rr=e=>{const t=e.appId,r=function(e,t,r){const n={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers(){return e===Mt.WithinHeaders?n:{}},queryParameters(){return e===Mt.WithinQueryParameters?n:{}}}}(void 0!==e.authMode?e.authMode:Mt.WithinHeaders,t,e.apiKey),n=function(e){const{hostsCache:t,logger:r,requester:n,requestsCache:o,responsesCache:a,timeouts:c,userAgent:i,hosts:l,queryParameters:u,headers:s}=e,f={hostsCache:t,logger:r,requester:n,requestsCache:o,responsesCache:a,timeouts:c,userAgent:i,headers:s,queryParameters:u,hosts:l.map((e=>Jt(e))),read(e,t){const r=Ht(t,f.timeouts.read),n=()=>Yt(f,f.hosts.filter((e=>0!=(e.accept&Ft.Read))),e,r);if(!0!==(void 0!==r.cacheable?r.cacheable:e.cacheable))return n();const o={request:e,mappedRequestOptions:r,transporter:{queryParameters:f.queryParameters,headers:f.headers}};return f.responsesCache.get(o,(()=>f.requestsCache.get(o,(()=>f.requestsCache.set(o,n()).then((e=>Promise.all([f.requestsCache.delete(o),e])),(e=>Promise.all([f.requestsCache.delete(o),Promise.reject(e)]))).then((([e,t])=>t))))),{miss:e=>f.responsesCache.set(o,e)})},write(e,t){return Yt(f,f.hosts.filter((e=>0!=(e.accept&Ft.Write))),e,Ht(t,f.timeouts.write))}};return f}({hosts:[{url:`${t}-dsn.algolia.net`,accept:Ft.Read},{url:`${t}.algolia.net`,accept:Ft.Write}].concat(qt([{url:`${t}-1.algolianet.com`},{url:`${t}-2.algolianet.com`},{url:`${t}-3.algolianet.com`}])),...e,headers:{...r.headers(),"content-type":"application/x-www-form-urlencoded",...e.headers},queryParameters:{...r.queryParameters(),...e.queryParameters}}),o={transporter:n,appId:t,addAlgoliaAgent(e,t){n.userAgent.add({segment:e,version:t})},clearCache(){return Promise.all([n.requestsCache.clear(),n.responsesCache.clear()]).then((()=>{}))}};return _t(o,e.methods)},nr=e=>(t,r)=>t.method===$t?e.transporter.read(t,r):e.transporter.write(t,r),or=e=>(t,r={})=>_t({transporter:e.transporter,appId:e.appId,indexName:t},r.methods),ar=e=>(t,r)=>{const n=t.map((e=>({...e,params:Zt(e.params||{})})));return e.transporter.read({method:Wt,path:"1/indexes/*/queries",data:{requests:n},cacheable:!0},r)},cr=e=>(t,r)=>Promise.all(t.map((t=>{const{facetName:n,facetQuery:o,...a}=t.params;return or(e)(t.indexName,{methods:{searchForFacetValues:ur}}).searchForFacetValues(n,o,{...r,...a})}))),ir=e=>(t,r,n)=>e.transporter.read({method:Wt,path:Tt("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n),lr=e=>(t,r)=>e.transporter.read({method:Wt,path:Tt("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r),ur=e=>(t,r,n)=>e.transporter.read({method:Wt,path:Tt("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n),sr=1,fr=2,mr=3;function pr(e,t,r){const n={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send(e){return new Promise((t=>{const r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((t=>r.setRequestHeader(t,e.headers[t])));const n=(e,n)=>setTimeout((()=>{r.abort(),t({status:0,content:n,isTimedOut:!0})}),1e3*e),o=n(e.connectTimeout,"Connection timeout");let a;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===a&&(clearTimeout(o),a=n(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(o),clearTimeout(a),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(o),clearTimeout(a),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},logger:(o=mr,{debug(e,t){return sr>=o&&console.debug(e,t),Promise.resolve()},info(e,t){return fr>=o&&console.info(e,t),Promise.resolve()},error(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:Rt(),requestsCache:Rt({serializable:!1}),hostsCache:Nt({caches:[xt({key:`4.14.2-${e}`}),Rt()]}),userAgent:Gt(Lt).add({segment:"Browser",version:"lite"}),authMode:Mt.WithinQueryParameters};var o;return rr({...n,...r,methods:{search:ar,searchForFacetValues:cr,multipleQueries:ar,multipleSearchForFacetValues:cr,customRequest:nr,initIndex:e=>t=>or(e)(t,{methods:{search:lr,searchForFacetValues:ur,findAnswers:ir}})}})}pr.version=Lt;var dr=pr,hr="3.2.1";function vr(){}function yr(e){return e}function gr(e,t){return e.reduce((function(e,r){var n=t(r);return e.hasOwnProperty(n)||(e[n]=[]),e[n].length<5&&e[n].push(r),e}),{})}var br=["footer","searchBox"];function Or(){return Or=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Or.apply(this,arguments)}function Sr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Er(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,a=[],c=!0,i=!1;try{for(r=r.call(e);!(c=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);c=!0);}catch(l){i=!0,o=l}finally{try{c||null==r.return||r.return()}finally{if(i)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Pr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ir(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Dr(e){var t=e.appId,r=e.apiKey,n=e.indexName,o=e.placeholder,a=void 0===o?"Search docs":o,c=e.searchParameters,i=e.onClose,l=void 0===i?vr:i,u=e.transformItems,s=void 0===u?yr:u,f=e.hitComponent,m=void 0===f?Re:f,p=e.resultsFooterComponent,d=void 0===p?function(){return null}:p,h=e.navigator,v=e.initialScrollY,y=void 0===v?0:v,g=e.transformSearchClient,b=void 0===g?yr:g,O=e.disableUserPersonalization,S=void 0!==O&&O,j=e.initialQuery,E=void 0===j?"":j,w=e.translations,P=void 0===w?{}:w,I=e.getMissingResultsUrl,D=P.footer,C=P.searchBox,k=Ir(P,br),A=wr(ke.useState({query:"",collections:[],completion:null,context:{},isOpen:!1,activeItemId:null,status:"idle"}),2),x=A[0],N=A[1],R=ke.useRef(null),q=ke.useRef(null),_=ke.useRef(null),T=ke.useRef(null),L=ke.useRef(null),M=ke.useRef(10),H=ke.useRef("undefined"!=typeof window?window.getSelection().toString().slice(0,64):"").current,F=ke.useRef(E||H).current,U=function(e,t,r){return ke.useMemo((function(){var n=dr(e,t);return n.addAlgoliaAgent("docsearch",hr),!1===/docsearch.js \(.*\)/.test(n.transporter.userAgent.value)&&n.addAlgoliaAgent("docsearch-react",hr),r(n)}),[e,t,r])}(t,r,b),B=ke.useRef(At({key:"__DOCSEARCH_FAVORITE_SEARCHES__".concat(n),limit:10})).current,V=ke.useRef(At({key:"__DOCSEARCH_RECENT_SEARCHES__".concat(n),limit:0===B.getAll().length?7:4})).current,z=ke.useCallback((function(e){if(!S){var t="content"===e.type?e.__docsearch_parent:e;t&&-1===B.getAll().findIndex((function(e){return e.objectID===t.objectID}))&&V.add(t)}}),[B,V,S]),K=ke.useMemo((function(){return Ce({id:"docsearch",defaultActiveItemId:0,placeholder:a,openOnFocus:!0,initialState:{query:F,context:{searchSuggestions:[]}},navigator:h,onStateChange:function(e){N(e.state)},getSources:function(e){var t=e.query,r=e.state,o=e.setContext,a=e.setStatus;return t?U.search([{query:t,indexName:n,params:jr({attributesToRetrieve:["hierarchy.lvl0","hierarchy.lvl1","hierarchy.lvl2","hierarchy.lvl3","hierarchy.lvl4","hierarchy.lvl5","hierarchy.lvl6","content","type","url"],attributesToSnippet:["hierarchy.lvl1:".concat(M.current),"hierarchy.lvl2:".concat(M.current),"hierarchy.lvl3:".concat(M.current),"hierarchy.lvl4:".concat(M.current),"hierarchy.lvl5:".concat(M.current),"hierarchy.lvl6:".concat(M.current),"content:".concat(M.current)],snippetEllipsisText:"\u2026",highlightPreTag:"<mark>",highlightPostTag:"</mark>",hitsPerPage:20},c)}]).catch((function(e){throw"RetryError"===e.name&&a("error"),e})).then((function(e){var t=e.results[0],n=t.hits,a=t.nbHits,c=gr(n,(function(e){return it(e)}));return r.context.searchSuggestions.length<Object.keys(c).length&&o({searchSuggestions:Object.keys(c)}),o({nbHits:a}),Object.values(c).map((function(e,t){return{sourceId:"hits".concat(t),onSelect:function(e){var t=e.item,r=e.event;z(t),r.shiftKey||r.ctrlKey||r.metaKey||l()},getItemUrl:function(e){return e.item.url},getItems:function(){return Object.values(gr(e,(function(e){return e.hierarchy.lvl1}))).map(s).map((function(e){return e.map((function(t){return jr(jr({},t),{},{__docsearch_parent:"lvl1"!==t.type&&e.find((function(e){return"lvl1"===e.type&&e.hierarchy.lvl1===t.hierarchy.lvl1}))})}))})).flat()}}}))})):S?[]:[{sourceId:"recentSearches",onSelect:function(e){var t=e.item,r=e.event;z(t),r.shiftKey||r.ctrlKey||r.metaKey||l()},getItemUrl:function(e){return e.item.url},getItems:function(){return V.getAll()}},{sourceId:"favoriteSearches",onSelect:function(e){var t=e.item,r=e.event;z(t),r.shiftKey||r.ctrlKey||r.metaKey||l()},getItemUrl:function(e){return e.item.url},getItems:function(){return B.getAll()}}]}})}),[n,c,U,l,V,B,z,F,a,h,s,S]),J=K.getEnvironmentProps,$=K.getRootProps,W=K.refresh;return function(e){var t=e.getEnvironmentProps,r=e.panelElement,n=e.formElement,o=e.inputElement;ke.useEffect((function(){if(r&&n&&o){var e=t({panelElement:r,formElement:n,inputElement:o}),a=e.onTouchStart,c=e.onTouchMove;return window.addEventListener("touchstart",a),window.addEventListener("touchmove",c),function(){window.removeEventListener("touchstart",a),window.removeEventListener("touchmove",c)}}}),[t,r,n,o])}({getEnvironmentProps:J,panelElement:T.current,formElement:_.current,inputElement:L.current}),function(e){var t=e.container;ke.useEffect((function(){if(t){var e=t.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), input:not([disabled])"),r=e[0],n=e[e.length-1];return t.addEventListener("keydown",o),function(){t.removeEventListener("keydown",o)}}function o(e){"Tab"===e.key&&(e.shiftKey?document.activeElement===r&&(e.preventDefault(),n.focus()):document.activeElement===n&&(e.preventDefault(),r.focus()))}}),[t])}({container:R.current}),ke.useEffect((function(){return document.body.classList.add("DocSearch--active"),function(){var e,t;document.body.classList.remove("DocSearch--active"),null===(e=(t=window).scrollTo)||void 0===e||e.call(t,0,y)}}),[]),ke.useEffect((function(){window.matchMedia("(max-width: 768px)").matches&&(M.current=5)}),[]),ke.useEffect((function(){T.current&&(T.current.scrollTop=0)}),[x.query]),ke.useEffect((function(){F.length>0&&(W(),L.current&&L.current.focus())}),[F,W]),ke.useEffect((function(){function e(){if(q.current){var e=.01*window.innerHeight;q.current.style.setProperty("--docsearch-vh","".concat(e,"px"))}}return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),ke.createElement("div",Or({ref:R},$({"aria-expanded":!0}),{className:["DocSearch","DocSearch-Container","stalled"===x.status&&"DocSearch-Container--Stalled","error"===x.status&&"DocSearch-Container--Errored"].filter(Boolean).join(" "),role:"button",tabIndex:0,onMouseDown:function(e){e.target===e.currentTarget&&l()}}),ke.createElement("div",{className:"DocSearch-Modal",ref:q},ke.createElement("header",{className:"DocSearch-SearchBar",ref:_},ke.createElement(It,Or({},K,{state:x,autoFocus:0===F.length,inputRef:L,isFromSelection:Boolean(F)&&F===H,translations:C,onClose:l}))),ke.createElement("div",{className:"DocSearch-Dropdown",ref:T},ke.createElement(Ot,Or({},K,{indexName:n,state:x,hitComponent:m,resultsFooterComponent:d,disableUserPersonalization:S,recentSearches:V,favoriteSearches:B,inputRef:L,translations:k,getMissingResultsUrl:I,onItemClick:function(e){z(e),l()}}))),ke.createElement("footer",{className:"DocSearch-Footer"},ke.createElement(Ne,{translations:D}))))}}}]); \ No newline at end of file diff --git a/assets/js/7f45ca10.1199b3a7.js b/assets/js/7f45ca10.1199b3a7.js new file mode 100644 index 000000000..0c8f3c4c7 --- /dev/null +++ b/assets/js/7f45ca10.1199b3a7.js @@ -0,0 +1,128 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[556],{73633:function(e,n,t){"use strict";t.d(n,{j:function(){return j}}),t(11561).z.register("minCount","maxCount");var r=t(59312),a=t(3996),l=t.n(a),i=t(30454),o=t.n(i),s=t(99729),c=t.n(s),u=t(90104),d=t.n(u),m=t(1883),p=t.n(m),f=t(16651),v=t.n(f),h=t(76744),g=t.n(h),b=t(98949),_=t(65507);function E(e,n){l()(n,'Field not found in schema: "%s"',e)}function y(e,n){if(!("$ref"in e))return e;const{$ref:t}=e,a=(0,r._T)(e,["$ref"]);return y(Object.assign({},a,function(e,n){l()(e.startsWith("#"),'Reference is not an internal reference, and only such are allowed: "%s"',e);const t=e.split("/").filter((e=>e&&"#"!==e)).reduce(((e,n)=>e[n]),n);return l()(t,'Reference not found in schema: "%s"',e),t}(t,n)),n)}const O=["allOf","anyOf","oneOf"],C=["default","enum","format","isRequired","title","uniforms"],x=[["maxItems","maxCount"],["maximum","max"],["minItems","minCount"],["minimum","min"],["multipleOf","step"]];function k(e){return"object"==typeof e&&null!==e&&Array.isArray(e.details)}class j extends b.k{constructor(e){let{provideDefaultLabelFromFieldName:n=!0,schema:t,validator:r}=e;super(),this.provideDefaultLabelFromFieldName=n,this.schema=y(t,t),this._compiledSchema={"":this.schema},this.validator=r,this.getField=v()(this.getField.bind(this)),this.getInitialValue=v()(this.getInitialValue.bind(this)),this.getSubfields=v()(this.getSubfields.bind(this)),this.getType=v()(this.getType.bind(this))}getError(e,n){const t=k(n)&&n.details;if(!t)return null;const r=(0,_.m)(null,e).map(_.m.unescape),a=(0,_.m)(r),l=(0,_.m)(r.slice(0,-1)),i=r[r.length-1],o=t.find((e=>{var n;const t=null!==(n=e.instancePath)&&void 0!==n?n:e.dataPath,r=t?function(e){return(e=e.startsWith("/")?e.replace(/\//g,".").replace(/~0/g,"~").replace(/~1/g,"/"):e.replace(/\[('|")(.+?)\1\]/g,".$2").replace(/\[(.+?)\]/g,".$1").replace(/\\'/g,"'")).slice(1)}(t):"";return a===r||l===r&&e.params&&i===e.params.missingProperty}));return o||null}getErrorMessage(e,n){const t=this.getError(e,n);return(null==t?void 0:t.message)||""}getErrorMessages(e){if(!e)return[];if(k(e)){const{details:n}=e;return n.map((e=>e.message||""))}return e instanceof Error?[e.message]:"object"==typeof e?[]:[String(e)]}getField(e){return(0,_.m)(null,e).reduce(((n,t,r,a)=>{var l,i,o,s;const c=(0,_.m)(a.slice(0,r)),u=(0,_.m)(c,t),m=null!==(l=(s=this._compiledSchema)[u])&&void 0!==l?l:s[u]={};if(m.isRequired=!(!(null===(i=n.required)||void 0===i?void 0:i.includes(t))&&!(null===(o=this._compiledSchema[c].required)||void 0===o?void 0:o.includes(t))),"$"===t||t===""+parseInt(t,10))E(e,"array"===n.type),n=Array.isArray(n.items)?n.items[parseInt(t,10)]:n.items,E(e,!!n);else if("object"===n.type)E(e,!!n.properties),n=n.properties[_.m.unescape(t)],E(e,!!n);else{let r=!1;O.forEach((e=>{var a;null===(a=n[e])||void 0===a||a.forEach((e=>{r||(e=y(e,this.schema),t in e.properties&&(n=e.properties[t],r=!0))}))})),E(e,r)}const p=(n=y(n,this.schema)).required?n.required.slice():[],f=n.properties?Object.assign({},n.properties):{};return O.forEach((e=>{var t;null===(t=n[e])||void 0===t||t.forEach((e=>{(e=y(e,this.schema)).required&&p.push(...e.required),Object.assign(f,e.properties),!m.type&&e.type&&(m.type=e.type)}))})),p.length>0&&(m.required=p),d()(f)||(m.properties=f),n}),this.schema)}getInitialValue(e){var n;const t=this.getField(e),{default:r=(null!==(n=t.default)&&void 0!==n?n:c()(this.schema.default,e)),type:a=t.type}=this._compiledSchema[e];if(void 0!==r)return o()(r);if("array"===a){const n=this.getInitialValue((0,_.m)(e,"$"));if(void 0===n)return[];const r=t.minItems||0;return Array.from({length:r},(()=>n))}if("object"===a){const n={};return this.getSubfields(e).forEach((t=>{const r=this.getInitialValue((0,_.m)(e,t));void 0!==r&&(n[t]=r)})),n}}getProps(e){var n,t;const r=this.getField(e),a=Object.assign({},r,r.uniforms,this._compiledSchema[e]);null!==(n=a.label)&&void 0!==n||(a.label=a.title),this.provideDefaultLabelFromFieldName&&void 0===a.label&&(a.label=g()(p()((0,_.m)(null,e).slice(-1)[0]))),"number"===r.type&&(a.decimal=!0),void 0!==(null===(t=r.uniforms)||void 0===t?void 0:t.type)&&(a.type=r.uniforms.type),void 0===a.required&&(a.required=a.isRequired),a.type===r.type&&delete a.type;let l=a.options;return l?Array.isArray(l)||(l=Object.entries(l).map((e=>{let[n,t]=e;return{key:n,label:n,value:t}}))):a.enum&&(l=Object.values(a.enum).map((e=>({value:e})))),x.forEach((e=>{let[n,t]=e;n in a&&(a[t]=a[n],delete a[n])})),C.forEach((e=>{e in a&&delete a[e]})),Object.assign(a,{options:l})}getSubfields(e){void 0===e&&(e="");const n=this.getField(e),{properties:t=n.properties,type:r=n.type}=this._compiledSchema[e];return"object"===r&&t?Object.keys(t).map(_.m.escape):[]}getType(e){const{type:n,format:t}=this.getField(e),{type:r=n}=this._compiledSchema[e];return"date-time"===t?Date:"string"===r?String:"number"===r||"integer"===r?Number:"object"===r?Object:"array"===r?Array:"boolean"===r?Boolean:(l()("null"!==r,'Field "%s" can not be represented as a type null',e),r)}getValidator(){return this.validator}}},12005:function(e,n,t){"use strict";t.d(n,{V:function(){return h}});var r=t(13762),a=t.n(r),l=t(11561);a().extendOptions(["uniforms"]),l.z.register("autoValue","blackbox","custom","decimal","defaultValue","exclusiveMax","exclusiveMin","max","maxCount","min","minCount","optional","regEx","trim","type");var i=t(59312),o=t(3996),s=t.n(o),c=t(30454),u=t.n(c),d=t(16651),m=t.n(d),p=t(98949),f=t(65507);const v=["optional","uniforms","allowedValues"];class h extends p.k{constructor(e){let{schema:n}=e;super(),this.schema=n,this.getField=m()(this.getField.bind(this)),this.getInitialValue=m()(this.getInitialValue.bind(this)),this.getProps=m()(this.getProps.bind(this)),this.getSubfields=m()(this.getSubfields.bind(this)),this.getType=m()(this.getType.bind(this))}getError(e,n){const t=null==n?void 0:n.details;return Array.isArray(t)&&t.find((n=>n.name===e))||null}getErrorMessage(e,n){const t=this.getError(e,n);return t?this.schema.messageForError(t):""}getErrorMessages(e){if(!e)return[];const{details:n}=e;return Array.isArray(n)?n.map((e=>this.schema.messageForError(e))):[e.message||e]}getField(e){const n=this.schema.getDefinition(e);s()(n,'Field not found in schema: "%s"',e);const t=Object.assign(Object.assign({},n),n.type[0]);if(t.autoValue&&("defaultAutoValueFunction"===t.autoValue.name||-1!==t.autoValue.toString().indexOf("$setOnInsert:")))try{t.defaultValue=t.autoValue.call({operator:null})}catch(r){}return t}getInitialValue(e){const n=this.getField(e),t=n.defaultValue;if(void 0!==t)return u()(t);if(n.type===Array){const t=this.getInitialValue((0,f.m)(e,"$"));if(void 0===t)return[];const r=n.minCount||0;return Array.from({length:r},(()=>t))}if(n.type===Object||n.type instanceof a()){const n={};return this.getSubfields(e).forEach((t=>{const r=this.getInitialValue((0,f.m)(e,t));void 0!==r&&(n[t]=r)})),n}}getProps(e){const n=this.getField(e),{type:t}=n,r=(0,i._T)(n,["type"]);r.required=!r.optional,"function"==typeof r.uniforms||"string"==typeof r.uniforms?r.component=r.uniforms:Object.assign(r,r.uniforms),t===Number&&(r.decimal=!0);let a=r.options,l=r.allowedValues;if("function"==typeof a&&(a=a()),a||"function"!=typeof l||(l=l()),!a&&Array.isArray(l))a=l.map((e=>({value:e})));else if(t===Array)try{const n=this.getProps(`${e}.$`);n.options&&(a=n.options)}catch(o){}return v.forEach((e=>{e in r&&delete r[e]})),Object.assign(r,{options:a})}getSubfields(e){return this.schema.objectKeys(function(e){return null==e?void 0:e.replace(/\.\d+(\.|$)/g,".$$$1")}(e))}getType(e){const n=this.getField(e).type;return n===a().Integer?Number:n instanceof a()?Object:n}getValidator(e){void 0===e&&(e={clean:!0,mutate:!0});const n=this.schema.validator(e);return t=>{try{return n(e.clean?u()(Object.assign({},t)):t),null}catch(r){return r}}}}},48616:function(e,n,t){"use strict";t.d(n,{K:function(){return _}});var r=t(11561),a=t(84200);r.z.register("minCount","maxCount"),a.z.ZodType.prototype.uniforms=function(e){return this._uniforms=e,this};var l=t(3996),i=t.n(l),o=t(1883),s=t.n(o),c=t(16651),u=t.n(c),d=t(76744),m=t.n(d),p=t(65507),f=t(98949);function v(e,n){i()(n,'Field not found in schema: "%s"',e)}function h(e){return"string"!=typeof e}function g(e){return m()(s()((0,p.m)(null,e).slice(-1)[0]))}function b(e,n){void 0===n&&(n=[]);const t=e[e.length-1];if("number"==typeof t){return b(e.slice(0,e.length-1),[t,...n])}return n.length>0?`${g(e)} (${n.join(", ")})`:g(e)}class _ extends f.k{constructor(e){let{schema:n,provideDefaultLabelFromFieldName:t=!0}=e;super(),this.schema=n,this.provideDefaultLabelFromFieldName=t,this.getField=u()(this.getField.bind(this)),this.getInitialValue=u()(this.getInitialValue.bind(this)),this.getProps=u()(this.getProps.bind(this)),this.getSubfields=u()(this.getSubfields.bind(this)),this.getType=u()(this.getType.bind(this))}getError(e,n){return n instanceof a.jm&&n.issues.find((n=>e===(0,p.m)(n.path)))||null}getErrorMessage(e,n){var t;return(null===(t=this.getError(e,n))||void 0===t?void 0:t.message)||""}getErrorMessages(e){return e instanceof a.jm?e.issues.map((e=>`${b(e.path)}: ${e.message}`)):e instanceof Error?[e.message]:[]}getField(e){let n=this.schema;this.schema instanceof a.Xc&&(n=this.schema._def.schema);for(const t of(0,p.m)(null,e))n instanceof a.uE?n=n.removeDefault():n instanceof a.ak&&(n=n.unwrap()),"$"===t||t===""+parseInt(t,10)?(v(e,n instanceof a.p5),n=n.element):(v(e,n instanceof a.CQ),n=n.shape[p.m.unescape(t)]);return n}getInitialValue(e){var n,t;const r=this.getField(e);if(r instanceof a.p5){const t=this.getInitialValue((0,p.m)(e,"$"));if(void 0===t)return[];const a=(null===(n=r._def.minLength)||void 0===n?void 0:n.value)||0;return Array.from({length:a},(()=>t))}if(r instanceof a.uE)return r._def.defaultValue();if(r instanceof a.K7)return r.options[0];if(r instanceof a.Zl){const e=Object.values(r.enum);return null!==(t=e.find(h))&&void 0!==t?t:e[0]}if(r instanceof a.CQ){const n={};return this.getSubfields(e).forEach((t=>{const r=this.getInitialValue((0,p.m)(e,t));void 0!==r&&(n[t]=r)})),n}}getProps(e){const n=Object.assign(Object.assign({},this.provideDefaultLabelFromFieldName&&{label:g(e)}),{required:!0});let t=this.getField(e);const r=t._uniforms;if("function"==typeof r?n.component=r:Object.assign(n,r),t instanceof a.uE?(t=t.removeDefault(),n.required=!1):t instanceof a.ak&&(t=t.unwrap(),n.required=!1),t instanceof a.p5)t._def.maxLength&&(n.maxCount=t._def.maxLength.value),t._def.minLength&&(n.minCount=t._def.minLength.value);else if(t instanceof a.K7)n.options=t.options.map((e=>({value:e})));else if(t instanceof a.Zl){const e=Object.values(t.enum),r=e.filter(h);n.options=(r.length?r:e).map((e=>({value:e})))}else if(t instanceof a.IV){t.isInt||(n.decimal=!0);const e=t.maxValue;null!==e&&(n.max=e);const r=t.minValue;null!==r&&(n.min=r);const a=t._def.checks.find((e=>"multipleOf"===e.kind));a&&(n.step=a.value)}return n}getSubfields(e){void 0===e&&(e="");let n=this.getField(e);return n instanceof a.uE?n=n.removeDefault():n instanceof a.ak&&(n=n.unwrap()),n instanceof a.p5?["$"]:n instanceof a.CQ?Object.keys(n.shape):[]}getType(e){let n=this.getField(e);if(n instanceof a.uE?n=n.removeDefault():n instanceof a.ak&&(n=n.unwrap()),n instanceof a.p5)return Array;if(n instanceof a.pZ)return Boolean;if(n instanceof a.$s)return Date;if(n instanceof a.K7||n instanceof a.$T)return String;if(n instanceof a.Zl){return"number"==typeof Object.values(n.enum).find(h)?Number:String}return n instanceof a.IV?Number:n instanceof a.CQ?Object:void i()(!1,'Field "%s" has an unknown type',e)}getValidator(){return e=>{const n=this.schema.safeParse(e);return n.success?null:n.error}}}},68599:function(e,n,t){"use strict";var r=t(3996),a=t.n(r),l=t(6846),i=t(12138),o=t(14449),s=t(64694),c=t(80661),u=t(59492),d=t(44591),m=t(47822),p=t(99086);const f=(0,l.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?d.Z:m.Z;switch(e.fieldType){case Array:return s.Z;case Boolean:return i.Z;case Date:return o.Z;case Number:return u.Z;case Object:return c.Z;case String:return p.Z}return a()(!1,"Unsupported field type: %s",e.fieldType)}));n.Z=f},2310:function(e,n,t){"use strict";var r=t(39850),a=t(79904);n.Z=function e(n){class t extends(r.N.Auto(n)){}return t.Auto=e,t}(a.Z)},99574:function(e,n,t){"use strict";var r=t(60042),a=t.n(r),l=t(6820);n.Z=function e(n){class t extends n{getNativeFormProps(){const e=super.getNativeFormProps(),n=this.getContextError();return Object.assign(Object.assign({},e),{className:a()("ui",e.className,{error:n},"form")})}}return t.Semantic=e,t.displayName=`Semantic${n.displayName}`,t}(l.I)},12138:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(11561),s=t(76424);n.Z=(0,s.e)((function(e){var{className:n,disabled:t,error:a,errorMessage:s,id:c,inputRef:u,label:d,name:m,onChange:p,readOnly:f,required:v,showInlineError:h,value:g,wrapClassName:b}=e,_=(0,r._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","readOnly","required","showInlineError","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:t,error:a,required:v},"field")},(0,o.z)(_)),i.createElement("div",{className:l()("ui",b,!d&&"fitted","checkbox")},i.createElement("input",{checked:g||!1,className:"hidden",disabled:t,id:c,name:m,onChange:()=>{f||p(!g)},ref:u,type:"checkbox"}),i.createElement("label",{htmlFor:c},d||null)),!(!a||!h)&&i.createElement("div",null,i.createElement("div",{className:"ui red basic pointing label"},s)))}),{kind:"leaf"})},14449:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(11561),s=t(76424);const c=("object"==typeof t.g?t.g:window).Date,u=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};n.Z=(0,s.e)((function(e){var n,{className:t,disabled:a,error:s,errorMessage:d,icon:m,iconLeft:p,iconProps:f,id:v,inputRef:h,label:g,max:b,min:_,name:E,onChange:y,placeholder:O,readOnly:C,required:x,showInlineError:k,value:j,wrapClassName:F,type:N="datetime-local"}=e,P=(0,r._T)(e,["className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","value","wrapClassName","type"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:a,error:s,required:x},"field")},(0,o.z)(P)),g&&i.createElement("label",{htmlFor:v},g),i.createElement("div",{className:l()("ui",F,{left:p,icon:m||p},"input")},i.createElement("input",{disabled:a,id:v,max:u(b),min:u(_),name:E,onChange:e=>{const n=new c(e.target.valueAsNumber);n.getFullYear()<1e4?y(n):isNaN(e.target.valueAsNumber)&&y(void 0)},placeholder:O,readOnly:C,ref:h,type:N,value:null!==(n=u(j,N))&&void 0!==n?n:""}),(m||p)&&i.createElement("i",Object.assign({className:`${m||p} icon`},f))),!(!s||!k)&&i.createElement("div",{className:"ui red basic pointing label"},d))}),{kind:"leaf"})},43351:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(55201),s=t(11561);n.Z=function(e){var{children:n,className:t}=e,a=(0,r._T)(e,["children","className"]);const{error:c,schema:u}=(0,o.c)();return c||n?i.createElement("div",Object.assign({className:l()("ui",t,"error message")},(0,s.z)(a)),n,i.createElement("ul",{className:"list"},u.getErrorMessages(c).map(((e,n)=>i.createElement("li",{key:n},e))))):null}},77900:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(30454),o=t.n(i),s=t(27378),c=t(65507),u=t(68591),d=t(11561),m=t(76424);n.Z=(0,m.e)((function(e){var{disabled:n,name:t,readOnly:a,value:i}=e,m=(0,r._T)(e,["disabled","name","readOnly","value"]);const p=(0,c.m)(null,t),f=(0,c.m)(p.slice(0,-1)),v=(0,u.U)(f,{},{absoluteName:!0})[0],h=!(n||v.maxCount<=v.value.length);function g(e){!h||a||"key"in e&&"Enter"!==e.key||v.onChange(v.value.concat([o()(i)]))}return s.createElement("i",Object.assign({},(0,d.z)(m),{className:l()("ui",m.className,h?"link":"disabled","fitted add icon"),onClick:g,onKeyDown:g,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},960:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(65507),s=t(68591),c=t(11561),u=t(76424);n.Z=(0,u.e)((function(e){var{disabled:n,name:t,readOnly:a}=e,u=(0,r._T)(e,["disabled","name","readOnly"]);const d=(0,o.m)(null,t),m=+d[d.length-1],p=(0,o.m)(d.slice(0,-1)),f=(0,s.U)(p,{},{absoluteName:!0})[0];function v(e){if(!(n||"key"in e&&"Enter"!==e.key)){const e=f.value.slice();e.splice(m,1),f.onChange(e)}}return n||(n=a||f.minCount>=f.value.length),i.createElement("i",Object.assign({},(0,c.z)(u),{className:l()("ui",u.className,n?"link":"disabled","fitted close icon"),onClick:v,onKeyDown:v,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},64694:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(11561),s=t(76424),c=t(77900),u=t(18747);n.Z=(0,s.e)((function(e){var{children:n=i.createElement(u.Z,{name:"$"}),className:t,disabled:a,error:s,errorMessage:d,itemProps:m,label:p,required:f,showInlineError:v,value:h}=e,g=(0,r._T)(e,["children","className","disabled","error","errorMessage","itemProps","label","required","showInlineError","value"]);return i.createElement("div",Object.assign({className:l()("ui",t,{disabled:a},"grouped fitted fields list")},(0,o.z)(g)),p&&i.createElement("div",{className:l()({error:s,required:f},"field item")},i.createElement("label",{className:"left floated"},p),i.createElement(c.Z,{className:"right floated",name:"$"})),p&&i.createElement("div",{className:"ui fitted hidden clearing horizontal divider"}),!(!s||!v)&&i.createElement("div",{className:"ui red basic label"},d),null==h?void 0:h.map(((e,t)=>i.Children.map(n,((e,n)=>{var r;return(0,i.isValidElement)(e)?(0,i.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+t)},m)):e})))))}))},18747:function(e,n,t){"use strict";var r=t(27378),a=t(76424),l=t(68599),i=t(960);n.Z=(0,a.e)((function(e){let{children:n=r.createElement(l.Z,{label:null,name:""})}=e;return r.createElement("div",{className:"item"},r.createElement(i.Z,{className:"top aligned",name:""}),r.createElement("div",{className:"middle aligned content",style:{width:"100%"}},n))}),{initialValue:!1})},80661:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(11561),s=t(76424),c=t(68599);function u(e){var{children:n,className:t,disabled:a,error:s,errorMessage:u,fields:d,grouped:m,itemProps:p,label:f,showInlineError:v}=e,h=(0,r._T)(e,["children","className","disabled","error","errorMessage","fields","grouped","itemProps","label","showInlineError"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:a,error:s,grouped:m},"fields")},(0,o.z)(h)),f&&i.createElement("div",{className:"field"},i.createElement("label",null,f)),!(!s||!v)&&i.createElement("div",{className:"ui red basic label"},u),n||d.map((e=>i.createElement(c.Z,Object.assign({key:e,name:e},p)))))}u.defaultProps={grouped:!0},n.Z=(0,s.e)(u)},59492:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(11561),s=t(76424);n.Z=(0,s.e)((function(e){var{className:n,decimal:t,disabled:a,error:s,errorMessage:c,icon:u,iconLeft:d,iconProps:m,id:p,inputRef:f,label:v,max:h,min:g,name:b,onChange:_,placeholder:E,readOnly:y,required:O,showInlineError:C,step:x,value:k,wrapClassName:j}=e,F=(0,r._T)(e,["className","decimal","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","step","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:a,error:s,required:O},"field")},(0,o.z)(F)),v&&i.createElement("label",{htmlFor:p},v),i.createElement("div",{className:l()("ui",j,{left:d,icon:u||d},"input")},i.createElement("input",{disabled:a,id:p,max:h,min:g,name:b,onChange:e=>{const n=(t?parseFloat:parseInt)(e.target.value);_(isNaN(n)?void 0:n)},placeholder:E,readOnly:y,ref:f,step:x||(t?.01:1),type:"number",value:null!=k?k:""}),(u||d)&&i.createElement("i",Object.assign({className:`${u||d} icon`},m))),!(!s||!C)&&i.createElement("div",{className:"ui red basic pointing label"},c))}),{kind:"leaf"})},52559:function(e,n,t){"use strict";var r=t(51674),a=t(68599),l=t(99574),i=t(43351),o=t(82986);n.Z=function e(n){class t extends(r.X.Quick(n)){getAutoField(){return a.Z}getErrorsField(){return i.Z}getSubmitField(){return o.Z}}return t.Quick=e,t}(l.Z)},44591:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(48159),o=t.n(i),s=t(27378),c=t(11561),u=t(76424);const d="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>d(encodeURIComponent(e)).replace(/=+$/,"");n.Z=(0,u.e)((function(e){var{options:n,className:t,disabled:a,error:i,errorMessage:u,id:d,label:p,name:f,onChange:v,readOnly:h,required:g,showInlineError:b,value:_}=e,E=(0,r._T)(e,["options","className","disabled","error","errorMessage","id","label","name","onChange","readOnly","required","showInlineError","value"]);return s.createElement("div",Object.assign({className:l()(t,{disabled:a,error:i},"grouped fields")},o()((0,c.z)(E),["checkboxes"])),p&&s.createElement("div",{className:l()({required:g},"field")},s.createElement("label",null,p)),null==n?void 0:n.map((e=>{var n,t,r,l;return s.createElement("div",{className:"field",key:null!==(n=e.key)&&void 0!==n?n:e.value},s.createElement("div",{className:"ui radio checkbox"},s.createElement("input",{checked:e.value===_,disabled:e.disabled||a,id:`${d}-${null!==(t=e.key)&&void 0!==t?t:m(e.value)}`,name:f,onChange:()=>{h||v(e.value)},type:"radio"}),s.createElement("label",{htmlFor:`${d}-${null!==(r=e.key)&&void 0!==r?r:m(e.value)}`},null!==(l=e.label)&&void 0!==l?l:e.value)))})),!(!i||!b)&&s.createElement("div",{className:"ui red basic pointing label"},u))}),{kind:"leaf"})},47822:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(20098),o=t.n(i),s=t(27378),c=t(11561),u=t(76424);const d="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>d(encodeURIComponent(e)).replace(/=+$/,""),p={paddingBottom:0,paddingTop:0};n.Z=(0,u.e)((function(e){var{options:n,checkboxes:t,className:a,disabled:i,error:u,errorMessage:d,fieldType:f,id:v,inputRef:h,label:g,name:b,onChange:_,placeholder:E,readOnly:y,required:O,showInlineError:C,value:x}=e,k=(0,r._T)(e,["options","checkboxes","className","disabled","error","errorMessage","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);const j=f===Array;return s.createElement("div",Object.assign({className:l()({disabled:i,error:u,required:O},a,"field")},(0,c.z)(k)),g&&s.createElement("label",{htmlFor:v},g),t?null==n?void 0:n.map((e=>{var n,t,r,a;return s.createElement("div",{className:"field",key:null!==(n=e.key)&&void 0!==n?n:e.value},s.createElement("div",{className:"ui checkbox"},s.createElement("input",{checked:j?null==x?void 0:x.includes(e.value):x===e.value,disabled:e.disabled||i,id:`${v}-${null!==(t=e.key)&&void 0!==t?t:m(e.value)}`,name:b,onChange:()=>{y||_(j?o()([e.value],x):e.value)},type:"checkbox"}),s.createElement("label",{htmlFor:`${v}-${null!==(r=e.key)&&void 0!==r?r:m(e.value)}`},null!==(a=e.label)&&void 0!==a?a:e.value)))})):s.createElement("select",{className:"ui selection dropdown",disabled:i,id:v,multiple:j,name:b,onChange:e=>{if(!y){const n=e.target.value;if(j){const t=-1===e.target.selectedIndex;_(t?[]:o()([n],x))}else _(""!==n?n:void 0)}},ref:h,style:p,value:null!=x?x:""},(!!E||!O||void 0===x)&&!j&&s.createElement("option",{value:"",disabled:O,hidden:O},E||g),null==n?void 0:n.map((e=>{var n,t;return s.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))),!(!u||!C)&&s.createElement("div",{className:"ui red basic pointing label"},d))}),{kind:"leaf"})},82986:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(55201),s=t(11561);function c(e){var{className:n,disabled:t,inputRef:a,readOnly:c,value:u}=e,d=(0,r._T)(e,["className","disabled","inputRef","readOnly","value"]);const{error:m,state:p}=(0,o.c)();return i.createElement("input",Object.assign({className:l()("ui",n,"button"),disabled:void 0===t?!(!m&&!p.disabled):t,readOnly:c,ref:a,type:"submit"},u?{value:u}:{},(0,s.z)(d)))}},99086:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),o=t(11561),s=t(76424);function c(e){var{autoComplete:n,className:t,disabled:a,error:s,errorMessage:c,icon:u,iconLeft:d,iconProps:m,id:p,inputRef:f,label:v,name:h,onChange:g,placeholder:b,readOnly:_,required:E,showInlineError:y,type:O,value:C,wrapClassName:x}=e,k=(0,r._T)(e,["autoComplete","className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","type","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:a,error:s,required:E},"field")},(0,o.z)(k)),v&&i.createElement("label",{htmlFor:p},v),i.createElement("div",{className:l()("ui",x,{left:d,icon:u||d},"input")},i.createElement("input",{autoComplete:n,disabled:a,id:p,name:h,onChange:e=>g(e.target.value),placeholder:b,readOnly:_,ref:f,type:O,value:null!=C?C:""}),(u||d)&&i.createElement("i",Object.assign({className:`${u||d} icon`},m))),!(!s||!y)&&i.createElement("div",{className:"ui red basic pointing label"},c))}c.defaultProps={type:"text"},n.Z=(0,s.e)(c,{kind:"leaf"})},3684:function(e,n,t){"use strict";var r=t(23674),a=t(99574);n.Z=function e(n){class t extends(r.O.Validated(n)){}return t.Validated=e,t}(a.Z)},79904:function(e,n,t){"use strict";var r=t(99574),a=t(52559),l=t(3684);n.Z=l.Z.Validated(a.Z.Quick(r.Z))},96614:function(e,n,t){"use strict";var r=t(59312),a=t(27378),l=t(11561),i=t(76424);n.Z=(0,i.e)((function(e){var{disabled:n,id:t,inputRef:i,label:o,name:s,onChange:c,placeholder:u,readOnly:d,value:m}=e,p=(0,r._T)(e,["disabled","id","inputRef","label","name","onChange","placeholder","readOnly","value"]);return a.createElement("div",Object.assign({},(0,l.z)(p)),o&&a.createElement("label",{htmlFor:t},o),a.createElement("textarea",{disabled:n,id:t,name:s,onChange:e=>c(e.target.value),placeholder:u,readOnly:d,ref:i,value:null!=m?m:""}))}),{kind:"leaf"})},39850:function(e,n,t){"use strict";t.d(n,{N:function(){return p}});var r=t(13784),a=t.n(r),l=t(56141),i=t.n(l),o=t(48159),s=t.n(o),c=t(96498),u=t.n(c),d=t(6820),m=t(51674);const p=function e(n){class t extends n{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{model:this.mergeSchemaAndPropsModel(this.props.schema,this.props.model)})}mergeSchemaAndPropsModel(e,n){const t=e.getInitialModel();return Object.assign(t,n)}componentDidUpdate(e,n,t){const{model:r,schema:a}=this.props;i()(r,e.model)||this.setState({model:this.mergeSchemaAndPropsModel(a,r)}),super.componentDidUpdate(e,n,t)}getNativeFormProps(){const e=super.getNativeFormProps();return s()(e,["onChangeModel"])}getModel(e){return this.state.model}onChange(e,n){super.onChange(e,n),this.setState((t=>({model:u()(a()(t.model),e,n,a())})),(()=>{this.props.onChangeModel&&this.props.onChangeModel(this.state.model)}))}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{model:this.props.model})}}return t.Auto=e,t.displayName=`Auto${n.displayName}`,t}((0,t(23674).u)((0,m.s)(d.I)))},6820:function(e,n,t){"use strict";t.d(n,{I:function(){return _}});var r=t(13784),a=t.n(r),l=t(99729),i=t.n(l),o=t(48159),s=t.n(o),c=t(96498),u=t.n(c),d=t(27378),m=t(56141),p=t.n(m),f=t(65507);function v(e){return!(!e||e!==Object(e)||e instanceof Date)}var h=t(34361);function g(e){let n=0;return()=>`${e}-${("000"+(n++).toString(36)).slice(-4)}`}const b=g("uniforms");class _ extends d.Component{constructor(e){var n,t;super(e),n=this,this.state={changed:!1,changedMap:Object.create(null),resetCount:0,submitted:!1,submitting:!1},this.mounted=!1,this.randomId=(void 0===(t=this.props.id)&&(t=b()),g(t)),this.onReset=this.reset=this.onReset.bind(this),this.onChange=this.change=this.onChange.bind(this),this.onSubmit=this.submit=this.onSubmit.bind(this);const r=this.getModel.bind(this);this.getModel=function(e,t){return void 0===t&&(t=r(e)),void 0!==e&&n.props.modelTransform?n.props.modelTransform(e,t):t}}componentDidMount(){this.mounted=!0}componentDidUpdate(e,n,t){}componentWillUnmount(){this.mounted=!1,this.delayId&&clearTimeout(this.delayId)}getContext(){return{changed:this.state.changed,changedMap:this.state.changedMap,error:this.getContextError(),formRef:this,model:this.getContextModel(),name:this.getContextName(),onChange:this.getContextOnChange(),onSubmit:this.getContextOnSubmit(),randomId:this.randomId,schema:this.getContextSchema(),state:this.getContextState(),submitted:this.state.submitted,submitting:this.state.submitting,validating:!1}}getContextName(){return[]}getContextError(){return this.props.error}getContextModel(){return this.getModel("form")}getContextState(){return{disabled:!!this.props.disabled,readOnly:!!this.props.readOnly,showInlineError:!!this.props.showInlineError}}getContextSchema(){return this.props.schema}getContextOnChange(){return this.onChange}getContextOnSubmit(){return this.onSubmit}getModel(e,n){return void 0===n&&(n=this.props.model),n}getNativeFormProps(){const e=s()(this.props,["autosave","autosaveDelay","disabled","error","model","modelTransform","onChange","onSubmit","readOnly","schema","showInlineError"]);return Object.assign(Object.assign({},e),{onSubmit:this.onSubmit,key:`reset-${this.state.resetCount}`})}onChange(e,n){if(this.mounted){const t=function(e,n,t){if(!v(n)||t&&typeof n!=typeof t)return p()(n,t)?[]:[e];const r=[e];if(v(t)){for(const a in n)a in t&&p()(n[a],t[a])||r.push((0,f.m)(e,a));for(const a in t)a in n||r.push((0,f.m)(e,a));1===r.length&&r.pop()}else for(const a in n)r.push((0,f.m)(e,a));return r}(e,n,i()(this.getModel(),e));0!==t.length&&this.setState((e=>e.changed&&t.every((n=>!!i()(e.changedMap,n)))?null:{changed:!0,changedMap:t.reduce(((e,n)=>u()(e,n,{},a())),a()(e.changedMap))}))}this.props.onChange&&this.props.onChange(e,n),this.mounted&&this.props.autosave&&(this.delayId&&clearTimeout(this.delayId),this.delayId=setTimeout((()=>{this.mounted&&this.setState((()=>null),(()=>{this.onSubmit()}))}),this.props.autosaveDelay))}__reset(e){return{changed:!1,changedMap:Object.create(null),resetCount:e.resetCount+1,submitted:!1,submitting:!1}}onReset(){this.mounted&&this.setState(this.__reset)}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.mounted&&this.setState((e=>e.submitted?null:{submitted:!0}));const n=this.props.onSubmit(this.getModel("submit"));return n instanceof Promise?(this.mounted&&this.setState({submitting:!0}),n.finally((()=>{this.mounted&&this.setState({submitting:!1})}))):Promise.resolve()}render(){return d.createElement(h.D.Provider,{value:this.getContext()},d.createElement("form",Object.assign({},this.getNativeFormProps())))}}_.displayName="Form",_.defaultProps={autosave:!1,autosaveDelay:0,error:null,model:Object.create(null),noValidate:!0,onSubmit(){}}},98949:function(e,n,t){"use strict";t.d(n,{k:function(){return o}});var r=t(3996),a=t.n(r),l=t(47215),i=t.n(l);class o{constructor(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];a()(this.constructor!==o,"Bridge cannot be instantiated (args=%o).",{args:n})}getError(e,n){return a()(!1,"%s have not implemented `getError` method (args=%o).",this.constructor.name,{name:e,error:n})}getErrorMessage(e,n){return a()(!1,"%s have not implemented `getErrorMessage` method (args=%o).",this.constructor.name,{name:e,error:n})}getErrorMessages(e){return a()(!1,"%s have not implemented `getErrorMessages` method (args=%o).",this.constructor.name,{error:e})}getField(e){return a()(!1,"%s have not implemented `getField` method (args=%o).",this.constructor.name,{name:e})}getInitialValue(e){return a()(!1,"%s have not implemented `getInitialValue` method (args=%o).",this.constructor.name,{name:e})}getInitialModel(){const e={},n=this.getSubfields();for(const t of n){const n=this.getInitialValue(t);i()(e,t,n)}return e}getProps(e){return a()(!1,"%s have not implemented `getProps` method (args=%o).",this.constructor.name,{name:e})}getSubfields(e){return a()(!1,"%s have not implemented `getSubfields` method (args=%o).",this.constructor.name,{name:e})}getType(e){return a()(!1,"%s have not implemented `getType` method (args=%o).",this.constructor.name,{name:e})}getValidator(e){return a()(!1,"%s have not implemented `getValidator` method (args=%o).",this.constructor.name,{options:e})}}},51674:function(e,n,t){"use strict";t.d(n,{X:function(){return i},s:function(){return l}});var r=t(59312),a=t(27378);function l(e){class n extends e{getNativeFormProps(){const e=super.getNativeFormProps(),{errorsField:n=this.getErrorsField(),submitField:t=this.getSubmitField()}=e,l=(0,r._T)(e,["errorsField","submitField"]),i=this.getAutoField();return l.children||(l.children=this.getContextSchema().getSubfields().map((e=>a.createElement(i,{key:e,name:e}))).concat([a.createElement(n,{key:"$ErrorsField"}),a.createElement(t,{key:"$SubmitField"})])),l}getAutoField(){return()=>null}getErrorsField(){return()=>null}getSubmitField(){return()=>null}}return n.Quick=l,n.displayName=`Quick${e.displayName}`,n}const i=l(t(6820).I)},23674:function(e,n,t){"use strict";t.d(n,{O:function(){return g},u:function(){return v}});var r=t(13784),a=t.n(r),l=t(30454),i=t.n(l),o=t(56141),s=t.n(o),c=t(50344),u=t.n(c),d=t(48159),m=t.n(d),p=t(96498),f=t.n(p);function v(e){class n extends e{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{error:null,validate:!1,validating:!1,validator:this.getContextSchema().getValidator(e.validator)}),this.onValidate=this.validate=this.onValidate.bind(this),this.onValidateModel=this.validateModel=this.onValidateModel.bind(this)}getContextError(){var e;return null!==(e=super.getContextError())&&void 0!==e?e:this.state.error}getContext(){return Object.assign(Object.assign({},super.getContext()),{validating:this.state.validating})}getNativeFormProps(){const e=super.getNativeFormProps();return m()(e,["onValidate","validate","validator"])}componentDidUpdate(e,n,t){super.componentDidUpdate(e,n,t);const{model:r,schema:a,validate:l,validator:i}=this.props;a!==e.schema||i!==e.validator?this.setState({validator:a.getValidator(i)},(()=>{h(l,this.state.validate)&&this.onValidate()})):!s()(r,e.model)&&h(l,this.state.validate)&&this.onValidateModel(r)}onChange(e,n){h(this.props.validate,this.state.validate)&&this.onValidate(e,n),super.onChange(e,n)}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{error:null,validate:!1,validating:!1})}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.setState({submitted:!0,validate:!0});const n=this.onValidate().then((e=>null!==e?Promise.reject(e):super.onSubmit().catch((e=>{throw this.setState({error:e}),e}))));return n.catch(u()),n}onValidate(e,n){let t=this.getContextModel();return t&&e&&(t=f()(a()(t),e,i()(n),a())),this.onValidateModel(t)}onValidateModel(e){var n=this;const t=this.getModel("validate",e),r=function(e){function n(n,t){return n instanceof Promise?(e(),n.then(t)):t(n)}return n}((()=>{this.setState({validating:!0})}));return r(this.state.validator(t),(function(e){return void 0===e&&(e=null),r(n.props.onValidate(t,e),(function(e){var t;return void 0===e&&(e=null),e=n.props.error===e?null:e,n.setState((n=>n.error!==e||n.validating?{error:e,validating:!1}:null)),Promise.resolve(null!==(t=n.props.error)&&void 0!==t?t:e)}))}))}}return n.Validated=v,n.displayName=`Validated${e.displayName}`,n.defaultProps=Object.assign(Object.assign({},e.defaultProps),{onValidate(e,n){return n},validate:"onChangeAfterSubmit"}),n}function h(e,n){return"onChange"===e||"onChangeAfterSubmit"===e&&n}const g=v(t(6820).I)},76424:function(e,n,t){"use strict";t.d(n,{e:function(){return s}});var r=t(25389),a=t.n(r),l=t(27378),i=t(34361),o=t(68591);function s(e,n){function t(t){const[r,s]=(0,o.U)(t.name,t,n),c=function(e,n,t){if("leaf"===(null==t?void 0:t.kind))return e;const r=""!==n.name,l=Object.keys(e.state).some((e=>null!=n[e]));if(!r&&!l)return e;const i=Object.assign({},e);return r&&(i.name=i.name.concat(n.name)),l&&(i.state=a()(i.state,((e,t)=>{const r=n[t];return null!=r?!!r:e}))),i}(s,t,n),u=l.createElement(e,Object.assign({},t,r));return s===c?u:l.createElement(i.D.Provider,{children:u,value:c})}return t.displayName=`${e.displayName||e.name}Field`,Object.assign(t,{Component:e,options:n})}},34361:function(e,n,t){"use strict";t.d(n,{D:function(){return r}});const r=(0,t(27378).createContext)(null)},6846:function(e,n,t){"use strict";t.d(n,{a:function(){return s}});var r=t(59312),a=t(3996),l=t.n(a),i=t(27378),o=t(68591);function s(e){const n=(0,i.createContext)(e);return Object.assign((function(e){var t,{experimental_absoluteName:a}=e,s=(0,r._T)(e,["experimental_absoluteName"]);const c={absoluteName:a},[u,d]=(0,o.U)(s.name,s,c),m=(0,i.useContext)(n)(u,d);return l()(m,"AutoField received no component for: %s",u.name),"options"in m&&"leaf"===(null===(t=m.options)||void 0===t?void 0:t.kind)?(0,i.createElement)(m.Component,u):(0,i.createElement)(m,s)}),{componentDetectorContext:n,defaultComponentDetector:e})}},11561:function(e,n,t){"use strict";t.d(n,{z:function(){return l}});const r=[],a=new Set,l=Object.assign((function(e){const n=Object.assign({},e);for(const t in e)a.has(t)&&delete n[t];return n}),{register(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];n.forEach((e=>{a.has(e)||(r.push(e),a.add(e))})),r.sort()},registered:r});l.register("changed","error","errorMessage","field","fieldType","fields","name","onChange","value","disabled","showInlineError","component")},65507:function(e,n,t){"use strict";t.d(n,{m:function(){return d}});const r=/[.[\]]/,a=/"/g;function l(e){return""===e||r.test(e)?`["${e.replace(a,'\\"')}"]`:e}function i(e,n){const t=l(e);return t===e?n?`.${e}`:e:t}const o=/^\["(.*)"]$/,s=/\\"/g;function c(e){const n=o.exec(e);return n?n[1].replace(s,'"'):e}const u=/^([^.[\]]*(?:\.[^.[\]]+)*)(?:\.?(\["(?:(?:[^"]|\\")*?[^\\])?"])\.?(.*))?$/;const d=Object.assign((function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];const r=null===n[0],a=[];for(let l=0;l!==n.length;++l){const e=n[l];if(e||0===e)if("string"==typeof e){const t=u.exec(e);if(t){const[,e,r,i]=t;e&&(e.includes(".")?a.push(...e.split(".")):a.push(e)),r&&(a.push(c(r)),i&&(n[l--]=i))}else a.push(e)}else if(Array.isArray(e)){if(e.length){const t=Math.min(l+1,e.length);l-=t,n.splice(l+1,t,...e)}}else a.push(""+e)}return r?a.map(l):a.map(i).join("")}),{escape:l,unescape:c})},68591:function(e,n,t){"use strict";t.d(n,{U:function(){return u}});var r=t(99729),a=t.n(r),l=t(25389),i=t.n(l),o=t(27378),s=t(65507),c=t(55201);function u(e,n,t){var r,l,u;const d=(0,c.c)(),m=(0,s.m)((null==t?void 0:t.absoluteName)?"":d.name,e),p=d.schema.getField(m),f=!1!==(null==t?void 0:t.initialValue),v=f?(0,o.useRef)(!1):{current:!1},h=i()(d.state,((e,t)=>{const r=n[t];return null!=r?!!r:e})),g=!!a()(d.changedMap,m),b=d.schema.getError(m,d.error),_=d.schema.getErrorMessage(m,d.error),E=d.schema.getType(m),y=d.schema.getSubfields(m),O=d.schema.getProps(m),C=null!==(l=null!==(r=n.label)&&void 0!==r?r:O.label)&&void 0!==l?l:"",x=(0,o.useMemo)((()=>d.randomId()),[]),k=(0,o.useCallback)((function(e,n){void 0===n&&(n=m),v.current=!0,d.onChange(n,e)}),[d.onChange,m]),j=a()(d.model,m);let F,N=null!==(u=n.value)&&void 0!==u?u:j;f&&(v.current||(void 0===N?(N=d.schema.getInitialValue(m),F=N):void 0!==n.value&&n.value!==j&&(F=n.value)),(0,o.useEffect)((()=>{void 0!==F&&k(F)}),[]));return[Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:x},h),{changed:g,error:b,errorMessage:_,field:p,fieldType:E,fields:y,onChange:k,value:N}),O),n),{label:C,name:m}),d]}},55201:function(e,n,t){"use strict";t.d(n,{c:function(){return o}});var r=t(3996),a=t.n(r),l=t(27378),i=t(34361);function o(){const e=(0,l.useContext)(i.D);return a()(null!==e,"useForm must be used within a form.\n\nTwo most common reasons for this error are:\n1. Component calling this function doesn't have a parent Form component in the tree.\n2. A duplicate uniforms dependency is installed in node_modules.\n\nFor more info check FAQ: https://uniforms.tools/docs/faq/#useform-must-be-used-within-a-form\n "),e}},57292:function(e,n,t){"use strict";t.d(n,{f:function(){return l}});var r=t(95256),a=t(27378);function l(e){let{language:n,replace:t,section:l,source:i}=e;if("object"==typeof i&&"default"in i&&(i=i.default),l){const e=new RegExp(`// <${l}>\\s([\\s\\S]*?)\\s// </${l}>\\s`,"g");i=i.split(e).reduce(((e,n,t)=>t%2==0?e:`${e}\n\n${n}`),"")}if(i=i.replace(/\/\/ <.*?\n/g,""),t)for(const[r,a]of Object.entries(t))i=i.replace(new RegExp(r,"gs"),a);return i=i.trim(),i.includes("\n")||(i+="\n"),a.createElement(r.Z.pre,null,a.createElement(r.Z.code,{children:i,className:`language-${n}`,mdxType:"code",originalType:"code",parentName:"pre"}))}},23197:function(e,n,t){"use strict";t.d(n,{T:function(){return T}});var r=t(27378),a=t(23615),l=t.n(a);function i(){return i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},i.apply(this,arguments)}function o(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var s=(0,r.forwardRef)((function(e,n){var t=e.color,a=void 0===t?"currentColor":t,l=e.size,s=void 0===l?24:l,c=o(e,["color","size"]);return r.createElement("svg",i({ref:n,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},c),r.createElement("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),r.createElement("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),r.createElement("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"}))}));s.propTypes={color:l().string,size:l().oneOfType([l().string,l().number])},s.displayName="Box";var c=s;function u(){return u=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},u.apply(this,arguments)}function d(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var m=(0,r.forwardRef)((function(e,n){var t=e.color,a=void 0===t?"currentColor":t,l=e.size,i=void 0===l?24:l,o=d(e,["color","size"]);return r.createElement("svg",u({ref:n,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),r.createElement("polyline",{points:"16 18 22 12 16 6"}),r.createElement("polyline",{points:"8 6 2 12 8 18"}))}));m.propTypes={color:l().string,size:l().oneOfType([l().string,l().number])},m.displayName="Code";var p=m;function f(){return f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},f.apply(this,arguments)}function v(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var h=(0,r.forwardRef)((function(e,n){var t=e.color,a=void 0===t?"currentColor":t,l=e.size,i=void 0===l?24:l,o=v(e,["color","size"]);return r.createElement("svg",f({ref:n,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),r.createElement("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),r.createElement("path",{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"}),r.createElement("path",{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"}))}));h.propTypes={color:l().string,size:l().oneOfType([l().string,l().number])},h.displayName="Database";var g=h,b=t(80912),_=t(57292),E=t(633),y=t(4940),O=t(59150),C=t(46867),x=t(25773),k=t(60042),j=t.n(k);function F(e){let{active:n,icon:t,tooltipText:a,...l}=e;return r.createElement("span",(0,x.Z)({},l,{className:j()(y.Z.tooltip,y.Z.item,n&&y.Z.active)}),a&&r.createElement("span",{className:y.Z["tooltip-text"]},a),t)}function N(e){let{activeToggle:n,items:t,onClick:a}=e;return r.createElement("section",{className:j()(y.Z.toggler,y.Z.header)},t.map(((e,t)=>r.createElement(F,(0,x.Z)({active:n===t,key:t,onClick:a(t)},e)))))}function P(e){let{children:n,group:t,tabsItems:a,togglerItems:l}=e;const{activeTab:i,onTab:o}=(0,O.Y)(t),[s,c]=(0,r.useState)(0);return r.createElement("section",{className:y.Z["toggler-tabs"]},r.createElement("section",{className:y.Z.header},r.createElement(C.TX,{items:a,onTab:o,activeTab:i}),r.createElement(N,{items:l,onClick:e=>()=>{c(e)},activeToggle:s})),n({tab:a[i],toggle:l[s]}))}const w=[{name:"Semantic",value:"semantic"},{name:"Material",value:"material"},{name:"MUI",value:"mui"},{name:"Bootstrap4",value:"bootstrap4"},{name:"Bootstrap5",value:"bootstrap5"},{name:"AntD",value:"antd"},{name:"Unstyled",value:"unstyled"}],M=[{icon:r.createElement(c,null),name:"Example",tooltipText:"Show example"},{icon:r.createElement(p,null),name:"Code",tooltipText:"Show source code"},{icon:r.createElement(g,null),name:"Schema",tooltipText:"Show schema"}];function T(e){let{code:{default:n},example:t,schema:{default:a}}=e;return r.createElement(P,{group:"examples",tabsItems:w,togglerItems:M},(e=>{let{tab:{value:l},toggle:{name:i}}=e;switch(i){case"Code":return r.createElement(_.f,{language:"tsx",replace:{"'[^']*?/universal'":`'uniforms-${l}'`},source:n});case"Example":return r.createElement(b.nN.Provider,{value:l},r.createElement(E.n,null,r.createElement(t,null)));case"Schema":return r.createElement(_.f,{language:"tsx",source:a});default:return null}}))}},633:function(e,n,t){"use strict";t.d(n,{n:function(){return d}});var r=t(25773),a=t(27378),l=t(4940),i=t(99729),o=t.n(i);function s(e){const[n,t]=(0,a.useState)(300),r=(0,a.useRef)(),l=(0,a.useCallback)((()=>function(e,n){const t=o()(e.current,"node.contentDocument.body.scrollHeight",0);0!==t&&n(t)}(r,t)),[r,t]);return(0,a.useEffect)((()=>{const e=setInterval(l,1e3);return()=>clearInterval(e)}),[l,...e]),{onLoad:l,ref:r,style:{height:n}}}var c=t(80912),u=t(37126);function d(e){const n=(0,a.useContext)(c.nN),t=s([e.children]);return a.createElement("div",{className:l.Z["form-wrapper"]},a.createElement(u.d,(0,r.Z)({frameProps:t,theme:n},e)))}},37126:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return Playground},d:function(){return PlaygroundWrap}});var _home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(25773),antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(64222),classnames__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(60042),classnames__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__),lodash_omit__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(48159),lodash_omit__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(27378),react_frame_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5766),uniforms__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23674),uniforms__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(34361),uniforms__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(55201),uniforms__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(76424),_index_module_css__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4940),_lib_presets__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5037),_lib_schema__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5413),_lib_styles__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(27611),_lib_universal__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(80912),_lib_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(37309);class Playground extends react__WEBPACK_IMPORTED_MODULE_2__.Component{static getDerivedStateFromError(e){return{error:e}}constructor(){super(...arguments);const e=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.clean((0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.mB)());try{_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.validate(e)}catch(n){n.details.forEach((n=>{let{name:t}=n;e[t]=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.getDefinition(t).defaultValue}))}this.state=e,this.onChange=this.onChange.bind(this)}componentDidMount(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}componentDidUpdate(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}onChange(e,n){"preset"===e&&this.setState((e=>({props:{...e.props,schema:_lib_presets__WEBPACK_IMPORTED_MODULE_5__.Z[n]}}))),this.setState({error:void 0,[e]:n})}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundForm,{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z.playground,model:this.state,onChange:this.onChange,schema:_lib_schema__WEBPACK_IMPORTED_MODULE_6__.J},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-column"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement("nav",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-toolbar"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"preset"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"theme"})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPropsField,{name:"props",spellCheck:!1})),this.state.error?react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",{children:""+this.state.error}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPreviewField,{name:"props",nameTheme:"theme"}))}}class PlaygroundForm extends uniforms__WEBPACK_IMPORTED_MODULE_10__.O{getContextState(){return{...super.getContextState(),theme:this.props.model.theme}}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(uniforms__WEBPACK_IMPORTED_MODULE_11__.D.Provider,{value:this.getContext()},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",lodash_omit__WEBPACK_IMPORTED_MODULE_1___default()(this.getNativeFormProps(),["onSubmit"])))}}const PlaygroundModelDebug=()=>{const{model:e}=(0,uniforms__WEBPACK_IMPORTED_MODULE_12__.c)();return react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("code",null,`const model = ${JSON.stringify(e,null,2)};`)))};class PlaygroundPreview extends react__WEBPACK_IMPORTED_MODULE_2__.Component{constructor(){super(...arguments),this._schema=eval(`(${this.props.value.schema})`)}UNSAFE_componentWillReceiveProps(props){this.props.value.schema!==props.value.schema&&(this._schema=eval(`(${props.value.schema})`))}render(){const{AutoFields:e,AutoForm:n,ErrorsField:t,SubmitField:r}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[this.props.theme||"unstyled"],{asyncOnSubmit:a,asyncOnValidate:l,schema:i,...o}=this.props.value;return o.schema=this._schema,a&&(o.onSubmit=()=>new Promise((e=>{setTimeout(e,1e3)}))),l&&(o.onValidate=(e,n)=>new Promise((e=>{setTimeout((()=>{e(n)}),1e3)}))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:this.props.theme},this.props.errorMessage?react__WEBPACK_IMPORTED_MODULE_2__.createElement("span",{children:this.props.errorMessage}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(n,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({key:(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.nN)(i)},o),react__WEBPACK_IMPORTED_MODULE_2__.createElement(e,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(t,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(r,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundModelDebug,null)))}}const PlaygroundPreviewField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundPreview);class PlaygroundProps extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{onChange:e,schema:n,theme:t,value:r}=this.props,a="antd"===t,l="bootstrap4"===t,i="material"===t,o="semantic"===t,{AutoForm:s,BoolField:c,ErrorsField:u,LongTextField:d,NumField:m}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[t||"unstyled"];return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:t},react__WEBPACK_IMPORTED_MODULE_2__.createElement(s,{autosave:!0,autosaveDelay:100,model:r,onSubmit:e,schema:n},react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"autosave"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(m,{name:"autosaveDelay",disabled:!r.autosave}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"disabled"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"readOnly"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"label"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"placeholder"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"showInlineError",disabled:!(a||l||i||o)}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"asyncOnSubmit"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"asyncOnValidate"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(d,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({name:"schema"},i&&{fullWidth:!0,rowsMax:20})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,null)))}}const PlaygroundPropsField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundProps);class PlaygroundSelect extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{options:e,onChange:n,value:t}=this.props;return react__WEBPACK_IMPORTED_MODULE_2__.createElement("select",{onChange:e=>n(e.target.value),value:t},e.map((e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement("option",{key:e.key??e.value,value:e.value},e.label??e.value))))}}const PlaygroundSelectField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundSelect);class PlaygroundWrap extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{children:e,frameProps:n,theme:t}=this.props,r=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,e,_lib_styles__WEBPACK_IMPORTED_MODULE_7__.Z[t]);if("material"===t||"mui"===t)return react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{children:r,className:classnames__WEBPACK_IMPORTED_MODULE_0___default()("frame-root",_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"])});let a=r;return"antd"===t&&(a=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.Kr,null,(e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__.default,{getPopupContainer:()=>e.document.body},r)))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.ZP,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({children:a,className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"]},n))}}},46867:function(e,n,t){"use strict";t.d(n,{TX:function(){return s},mQ:function(){return u}});var r=t(60042),a=t.n(r),l=t(27378),i=t(4940),o=t(59150);function s(e){let{activeTab:n,items:t,onTab:r}=e;return l.createElement("div",{className:i.Z.tabs},t.map(((e,t)=>{let{name:a}=e;return l.createElement(c,{active:n===t,key:t,onClick:()=>r(t)},a)})))}function c(e){let{active:n,children:t,onClick:r}=e;return l.createElement("span",{className:a()(i.Z.item,n&&i.Z.active),onClick:r,onKeyDown:e=>"Enter"===e.key&&r(),role:"button",tabIndex:0},t)}function u(e){let{children:n,group:t,tabs:r}=e;const{activeTab:a,onTab:i}=(0,o.Y)(t);return l.createElement(l.Fragment,null,l.createElement(s,{activeTab:a,items:r,onTab:i}),n(r[a]))}},5037:function(e,n){"use strict";const t=e=>e[0].slice(5,-3).replace(/([\r\n]+) {4}/g,"$1"),r={"Welcome!":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + date: { type: Date, defaultValue: new Date() }, + adult: Boolean, + size: { + type: String, + defaultValue: 'm', + allowedValues: ['xs', 's', 'm', 'l', 'xl'], + }, + rating: { + type: Number, + allowedValues: [1, 2, 3, 4, 5], + uniforms: { checkboxes: true }, + }, + friends: { type: Array, minCount: 1 }, + 'friends.$': Object, + 'friends.$.name': { type: String, min: 3 }, + 'friends.$.age': { type: Number, min: 0, max: 150 }, + }) + }) + `,"Address (JSONSchema)":t` + (() => { + const ajv = new Ajv({ allErrors: true, useDefaults: true, keywords: ["uniforms"] }); + const schema = { + title: 'Address', + type: 'object', + properties: { + city: { type: 'string' }, + state: { type: 'string' }, + street: { type: 'string' }, + zip: { type: 'string', pattern: '[0-9]{5}' }, + }, + required: ['street', 'zip', 'state'], + }; + + function createValidator(schema) { + const validator = ajv.compile(schema); + + return (model) => { + validator(model); + + if (validator.errors && validator.errors.length) { + return { details: validator.errors }; + } + }; + } + + const validator = createValidator(schema); + + return new JSONSchemaBridge({ schema, validator }); + })() + `,"Address (SimpleSchema)":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + city: { + type: String, + optional: true, + max: 50, + }, + state: String, + street: { type: String, max: 100 }, + zip: { + type: String, + regEx: /^[0-9]{5}$/, + }, + }) + }) + `,"Address (Zod)":t` + new ZodBridge({ + schema: z.object({ + city: z.string().max(50).optional(), + state: z.string(), + street: z.string().max(100), + zip: z.string().regex(/^[0-9]{5}$/), + }) + }) + `,"All Fields (SimpleSchema)":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + text: { type: String }, + num: { type: Number }, + bool: { type: Boolean }, + nested: { type: Object }, + 'nested.text': { type: String }, + date: { type: Date }, + list: { type: Array }, + 'list.$': { + type: String, + uniforms: { label: 'List Text', placeholder: 'List Text Placeholder' }, + }, + select: { + type: String, + uniforms: { + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + radio: { + type: String, + uniforms: { + checkboxes: true, + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + }) + }) + `,"All Fields (Zod)":t` + new ZodBridge({ + schema: z.object({ + text: z.string(), + num: z.number(), + bool: z.boolean(), + nested: z.object({ text: z.string() }), + date: z.date(), + // TODO: Custom label and placeholder. + list: z.array(z.string()), + select: z.enum(['a', 'b']), + // TODO: Enums with custom props. + radio: z.enum(['a', 'b']), + }) + }) + `};n.Z=r},5413:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return bridge},f:function(){return schema}});var ajv__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(86236),ajv__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(ajv__WEBPACK_IMPORTED_MODULE_0__),message_box__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(28622),simpl_schema__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(13762),simpl_schema__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(simpl_schema__WEBPACK_IMPORTED_MODULE_2__),uniforms__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(11561),uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(73633),uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(12005),uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(48616),zod__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(84200),_presets__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5037),_universal__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(80912);uniforms__WEBPACK_IMPORTED_MODULE_8__.z.register("const");const scope="undefined"==typeof window?__webpack_require__.g:window;simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().extendOptions(["uniforms"]),scope.Ajv=ajv__WEBPACK_IMPORTED_MODULE_0___default(),scope.JSONSchemaBridge=uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__.j,scope.SimpleSchema=simpl_schema__WEBPACK_IMPORTED_MODULE_2___default(),scope.SimpleSchema2Bridge=uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V,scope.ZodBridge=uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__.K,scope.z=zod__WEBPACK_IMPORTED_MODULE_9__.z,message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:""}}});const propsSchema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({autosave:{optional:!0,type:Boolean},autosaveDelay:{optional:!0,type:simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().Integer},disabled:{optional:!0,type:Boolean},label:{optional:!0,type:Boolean},placeholder:{optional:!0,type:Boolean},readOnly:{optional:!0,type:Boolean},showInlineError:{optional:!0,type:Boolean},asyncOnSubmit:{optional:!0,type:Boolean,label:"Async onSubmit (1 sec)"},asyncOnValidate:{optional:!0,type:Boolean,label:"Async onValidate (1 sec)"},schema:{optional:!0,type:String,custom(){try{return void eval(`(${this.value??""})`)}catch(error){const e=error instanceof Error?error.message:String(error);return message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:e}}}),"syntax"}}}}),propsBridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:propsSchema}),schema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({preset:{type:String,defaultValue:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0],allowedValues:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)},props:{type:Object,blackbox:!0,defaultValue:{autosave:!1,autosaveDelay:100,disabled:!1,label:!0,placeholder:!1,readOnly:!1,schema:_presets__WEBPACK_IMPORTED_MODULE_6__.Z[Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0]],showInlineError:!1,asyncOnSubmit:!1,asyncOnValidate:!1},uniforms:{schema:propsBridge}},theme:{type:String,uniforms:{transform:e=>`uniforms-${e}`},defaultValue:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)[0],allowedValues:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)}}),bridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:schema})},27611:function(e,n,t){"use strict";var r=t(27378);const a=r.createElement("style",{children:'\n body {\n margin: 0;\n }\n\n textarea[name="schema"] {\n font-family: monospace !important;\n min-height: 20em !important;\n }\n\n .frame-root {\n padding: 1rem !important;\n }\n',key:"common"}),l=e=>e.map(((e,n)=>r.createElement("link",{key:n,rel:"stylesheet",href:e}))).concat(a),i={antd:l(["https://cdnjs.cloudflare.com/ajax/libs/antd/4.4.0/antd.min.css"]),bootstrap4:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css"]),bootstrap5:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css"]),material:l([]),mui:l([]),semantic:l(["https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.7/semantic.min.css"]),unstyled:l([])};n.Z=i},59150:function(e,n,t){"use strict";t.d(n,{Y:function(){return i}});var r=t(27378);const a=Object.create(null),l=Object.create(null);function i(e){const[n,t]=(0,r.useState)(a[e]||0),i=(0,r.useCallback)((n=>function(e,n){a[e]=n,l[e].forEach((e=>{e(n)}))}(e,n)),[e]);return(0,r.useEffect)((()=>function(e,n){return void 0===l[e]&&(a[e]=0,l[e]=[]),l[e].push(n),()=>{l[e].splice(l[e].indexOf(n),1)}}(e,t)),[e]),{activeTab:n,onTab:i}}},80912:function(e,n,t){"use strict";t.d(n,{Pt:function(){return Ja},UE:function(){return Qa},NE:function(){return Ha},ME:function(){return Ga},yc:function(){return Xa},hI:function(){return Ya},mg:function(){return el},hl:function(){return nl},nv:function(){return tl},nN:function(){return al},np:function(){return rl}});var r={};t.r(r),t.d(r,{AutoField:function(){return ge},AutoFields:function(){return _e},AutoForm:function(){return Te},BaseForm:function(){return Oe},BoolField:function(){return w},DateField:function(){return A},ErrorField:function(){return Ae},ErrorsField:function(){return je},HiddenField:function(){return Se},ListAddField:function(){return K},ListDelField:function(){return J},ListField:function(){return re},ListItemField:function(){return ee},LongTextField:function(){return Be},NestField:function(){return ae},NumField:function(){return ie},QuickForm:function(){return Ne},RadioField:function(){return ue},SelectField:function(){return fe},SubmitField:function(){return Fe},TextField:function(){return he},ValidatedForm:function(){return we},ValidatedQuickForm:function(){return Me},wrapField:function(){return P}});var a={};t.r(a),t.d(a,{AutoField:function(){return fn},AutoFields:function(){return vn},AutoForm:function(){return Cn},BaseForm:function(){return hn},BoolField:function(){return Ke},DateField:function(){return Je},ErrorField:function(){return xn},ErrorsField:function(){return gn},HiddenField:function(){return kn},ListAddField:function(){return Ge},ListDelField:function(){return Ye},ListField:function(){return nn},ListItemField:function(){return en},LongTextField:function(){return jn},NestField:function(){return tn},NumField:function(){return rn},QuickForm:function(){return En},RadioField:function(){return on},SelectField:function(){return mn},SubmitField:function(){return _n},TextField:function(){return pn},ValidatedForm:function(){return yn},ValidatedQuickForm:function(){return On},gridClassName:function(){return Ve},wrapField:function(){return $e}});var l={};t.r(l),t.d(l,{AutoField:function(){return Gn},AutoFields:function(){return Xn},AutoForm:function(){return it},BaseForm:function(){return Yn},BoolField:function(){return Tn},DateField:function(){return An},ErrorField:function(){return ot},ErrorsField:function(){return et},HiddenField:function(){return st},ListAddField:function(){return Rn},ListDelField:function(){return Ln},ListField:function(){return Zn},ListItemField:function(){return Wn},LongTextField:function(){return ct},NestField:function(){return Un},NumField:function(){return zn},QuickForm:function(){return rt},RadioField:function(){return Kn},SelectField:function(){return Jn},SubmitField:function(){return tt},TextField:function(){return Hn},ValidatedForm:function(){return at},ValidatedQuickForm:function(){return lt},gridClassName:function(){return wn},wrapField:function(){return Mn}});var i={};t.r(i),t.d(i,{AutoField:function(){return Vt},AutoFields:function(){return $t},AutoForm:function(){return Yt},BaseForm:function(){return Kt},BoolField:function(){return _t},DateField:function(){return Ct},ErrorField:function(){return er},ErrorsField:function(){return qt},HiddenField:function(){return nr},ListAddField:function(){return Ft},ListDelField:function(){return Pt},ListField:function(){return Mt},ListItemField:function(){return wt},LongTextField:function(){return tr},NestField:function(){return Tt},NumField:function(){return Dt},QuickForm:function(){return Ht},RadioField:function(){return Bt},SelectField:function(){return Ut},SubmitField:function(){return Jt},TextField:function(){return zt},ValidatedForm:function(){return Gt},ValidatedQuickForm:function(){return Xt},wrapField:function(){return bt}});var o={};t.r(o),t.d(o,{AutoField:function(){return Rr},AutoFields:function(){return Br},AutoForm:function(){return $r},BaseForm:function(){return Lr},BoolField:function(){return dr},DateField:function(){return vr},ErrorField:function(){return Kr},ErrorsField:function(){return Wr},HiddenField:function(){return qr},ListAddField:function(){return _r},ListDelField:function(){return Or},ListField:function(){return xr},ListItemField:function(){return Cr},LongTextField:function(){return Qr},NestField:function(){return kr},NumField:function(){return jr},QuickForm:function(){return Ur},RadioField:function(){return Mr},SelectField:function(){return Ar},SubmitField:function(){return Zr},TextField:function(){return Sr},ValidatedForm:function(){return zr},ValidatedQuickForm:function(){return Vr},wrapField:function(){return ur}});var s={};t.r(s),t.d(s,{AutoField:function(){return Jr.Z},AutoFields:function(){return Hr},AutoForm:function(){return Gr.Z},BaseForm:function(){return Xr.Z},BoolField:function(){return Yr.Z},DateField:function(){return ea.Z},ErrorField:function(){return na},ErrorsField:function(){return ta.Z},HiddenField:function(){return ra},ListAddField:function(){return aa.Z},ListDelField:function(){return la.Z},ListField:function(){return ia.Z},ListItemField:function(){return oa.Z},LongTextField:function(){return sa},NestField:function(){return ca.Z},NumField:function(){return ua.Z},QuickForm:function(){return da.Z},RadioField:function(){return ma.Z},SelectField:function(){return pa.Z},SubmitField:function(){return fa.Z},TextField:function(){return va.Z},ValidatedForm:function(){return ha.Z},ValidatedQuickForm:function(){return ga.Z}});var c={};t.r(c),t.d(c,{AutoField:function(){return Sa},AutoFields:function(){return Ra},AutoForm:function(){return Va},BaseForm:function(){return Ba},BoolField:function(){return ba},DateField:function(){return ya},ErrorField:function(){return $a},ErrorsField:function(){return La},HiddenField:function(){return Ka},ListAddField:function(){return Oa},ListDelField:function(){return Ca},ListField:function(){return ka},ListItemField:function(){return xa},LongTextField:function(){return qa.Z},NestField:function(){return ja},NumField:function(){return Fa},QuickForm:function(){return Za},RadioField:function(){return wa},SelectField:function(){return Da},SubmitField:function(){return Wa},TextField:function(){return Aa},ValidatedForm:function(){return Ua},ValidatedQuickForm:function(){return za}});var u=t(25773),d=t(27378),m=t(3996),p=t.n(m),f=t(6846),v=t(59312),h=t(30219),g=t.n(h),b=t(21473),_=t.n(b),E=t(98591),y=t(56369),O=t(11561),C=t(76424),x=t(31115),k=t.n(x),j=t(5041),F=t(62004);const N={marginBottom:"12px"};function P(e,n){let{colon:t,error:r,errorMessage:a,extra:l,help:i,id:o,info:s,label:c,labelCol:u,required:m,showInlineError:p,validateStatus:f,wrapperCol:v,wrapperStyle:h=N}=e;const g=!!c&&d.createElement("span",null,c,!!s&&d.createElement("span",null,"\xa0",d.createElement(F.default,{title:s},d.createElement(k(),null))));return d.createElement(j.Z.Item,{colon:t,hasFeedback:!0,help:i||p&&!!r&&a,extra:l,htmlFor:o,label:g,labelCol:u,required:m,style:h,validateStatus:r?"error":f,wrapperCol:v},n)}O.z.register("checkboxes","colon","disableItem","labelCol","validateStatus","wrapperCol","wrapperStyle");var w=(0,C.e)((function(e){var{checkbox:n=!1,checkedChildren:t=d.createElement(g(),null),disabled:r,inputRef:a,name:l,onChange:i,readOnly:o,unCheckedChildren:s=d.createElement(_(),null),value:c}=e,u=(0,v._T)(e,["checkbox","checkedChildren","disabled","inputRef","name","onChange","readOnly","unCheckedChildren","value"]);const m=n?E.Z:y.Z;return P(u,d.createElement(m,Object.assign({checked:c||!1,checkedChildren:t,disabled:r,name:l,onChange:()=>o?void 0:i(!c),ref:a,unCheckedChildren:s},(0,O.z)(u))))}),{kind:"leaf"}),M=t(82290),T=t(61320),D=t.n(T);const I={width:"100%"};var A=(0,C.e)((function(e){var{showTime:n=!0,style:t=I}=e,r=(0,v._T)(e,["showTime","style"]);return P(r,d.createElement(M.Z,Object.assign({disabled:r.disabled,inputReadOnly:r.readOnly,name:r.name,onChange:e=>{r.readOnly||r.onChange(e?e.toDate():void 0)},placeholder:r.placeholder,ref:r.inputRef,showTime:n,style:t,value:r.value&&D()(r.value)},(0,O.z)(r))))}),{kind:"leaf"}),S=t(60042),R=t.n(S),B=t(94037),L=t.n(B),W=t(76676),Z=t(30454),U=t.n(Z),z=t(65507),V=t(68591);const $={width:"100%"};var K=(0,C.e)((function(e){var{disabled:n,icon:t=d.createElement(L(),null),name:r,readOnly:a,size:l="small",style:i=$,type:o="dashed",value:s}=e,c=(0,v._T)(e,["disabled","icon","name","readOnly","size","style","type","value"]);const u=(0,z.m)(null,r),m=(0,z.m)(u.slice(0,-1)),p=(0,V.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return d.createElement(W.default,Object.assign({},(0,O.z)(c),{disabled:!f,icon:t,onClick:()=>{a||p.onChange(p.value.concat([U()(s)]))},size:l,style:i,type:o}))}),{initialValue:!1,kind:"leaf"}),q=t(85221),Q=t.n(q);var J=(0,C.e)((function(e){var{disabled:n,icon:t=d.createElement(Q(),null),name:r,readOnly:a,shape:l="circle",size:i="small",type:o="ghost"}=e,s=(0,v._T)(e,["disabled","icon","name","readOnly","shape","size","type"]);const c=(0,z.m)(null,r),u=+c[c.length-1],m=(0,z.m)(c.slice(0,-1)),p=(0,V.U)(m,{},{absoluteName:!0})[0];return n||(n=a||p.minCount>=p.value.length),d.createElement(W.default,Object.assign({},(0,O.z)(s),{disabled:n,icon:t,onClick:()=>{const e=p.value.slice();e.splice(u,1),p.onChange(e)},shape:l,size:i,type:o}))}),{initialValue:!1,kind:"leaf"});const H={float:"right",marginBottom:"10px",marginLeft:"10px",marginRight:"6px",width:"20px"},G={marginBottom:"24px",overflow:"hidden"},X={borderBottom:"1px solid #DDD",height:"20px",marginTop:"-8px"},Y={width:"100%"};var ee=(0,C.e)((function(e){let{children:n=d.createElement(ge,{label:null,name:""})}=e;return d.createElement("div",null,d.createElement("div",{style:H},d.createElement(J,{className:"top aligned",name:""})),d.createElement("div",{style:G},d.createElement("div",{style:X})),d.createElement("div",{style:Y},n))}));const ne={marginBottom:"5px",marginTop:"5px",padding:"10px"},te={borderColor:"rgb(255, 85, 0)"};var re=(0,C.e)((function(e){var{children:n=d.createElement(ee,{name:"$"}),className:t,error:r,errorMessage:a,info:l,itemProps:i,label:o,labelCol:s,showInlineError:c,style:u=ne,value:m,wrapperCol:p}=e,f=(0,v._T)(e,["children","className","error","errorMessage","info","itemProps","label","labelCol","showInlineError","style","value","wrapperCol"]);const h=r?u?Object.assign(Object.assign({},te),u):te:u;return d.createElement("div",Object.assign({},(0,O.z)(f),{style:h,className:R()([t,"ant-list","ant-list-bordered"])}),!!o&&d.createElement("div",null,o,!!l&&d.createElement("span",null,"\xa0",d.createElement(F.default,{title:l},d.createElement(k(),null)))),!(!r||!c)&&d.createElement("div",null,a),null==m?void 0:m.map(((e,t)=>d.Children.map(n,((e,n)=>{var r;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+t),labelCol:s,wrapperCol:p},i)):e})))),d.createElement(K,{name:"$"}))}));var ae=(0,C.e)((function(e){var{children:n,error:t,errorMessage:r,fields:a,itemProps:l,label:i,showInlineError:o}=e,s=(0,v._T)(e,["children","error","errorMessage","fields","itemProps","label","showInlineError"]);return d.createElement("div",Object.assign({},(0,O.z)(s)),i&&d.createElement("label",null,i),!(!t||!o)&&d.createElement("div",null,r),n||a.map((e=>d.createElement(ge,Object.assign({key:e,name:e},l)))))})),le=t(15425);var ie=(0,C.e)((function(e){return P(e,d.createElement(le.Z,Object.assign({disabled:e.disabled,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(""+n);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),style:{width:"100%"},value:e.value},(0,O.z)(e))))}),{kind:"leaf"}),oe=t(58946);const se="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,ce={display:"block"};var ue=(0,C.e)((function(e){var n,t,r;return P(e,d.createElement(oe.ZP.Group,Object.assign({},(0,O.z)(e),{disabled:e.disabled,name:e.name,onChange:n=>{e.readOnly||e.onChange(n.target.value)},value:null!==(n=e.value)&&void 0!==n?n:"",options:null===(t=e.options)||void 0===t?void 0:t.map((e=>{var n;return Object.assign(Object.assign({},e),{label:null!==(n=e.label)&&void 0!==n?n:e.value})}))}),null===(r=e.options)||void 0===r?void 0:r.map((n=>{var t,r,a;return d.createElement(oe.ZP,{id:`${e.id}-${a=n.value,se(encodeURIComponent(a)).replace(/=+$/,"")}`,key:null!==(t=n.key)&&void 0!==t?t:n.value,style:ce,value:n.value,disabled:n.disabled},null!==(r=n.label)&&void 0!==r?r:n.value)}))))}),{kind:"leaf"}),de=t(99388),me=t(69601),pe=t(92049);var fe=(0,C.e)((function(e){var n,t;const r=e.fieldType===Array?de.default:me.default,a=(0,O.z)(e);return P(e,e.checkboxes?d.createElement("span",Object.assign({},a),d.createElement(r,Object.assign({},a,{disabled:e.disabled,name:e.name,onChange:n=>{e.readOnly||e.onChange(e.fieldType===Array?n:n.target.value)},options:null===(n=e.options)||void 0===n?void 0:n.map((e=>{var n;return Object.assign(Object.assign({},e),{label:null!==(n=e.label)&&void 0!==n?n:e.value})})),value:e.value}))):d.createElement(pe.Z,Object.assign({allowClear:!e.required,disabled:e.disabled,mode:e.fieldType===Array?"multiple":void 0,name:e.name,onChange:n=>{e.readOnly||e.onChange(n)},placeholder:e.placeholder,ref:e.inputRef,value:e.fieldType===Array?Array.isArray(e.value)?e.value.filter((e=>void 0!==e)):[]:e.value},a),null===(t=e.options)||void 0===t?void 0:t.map((n=>{var t,r,a;return d.createElement(pe.Z.Option,{disabled:n.disabled,key:null!==(t=n.key)&&void 0!==t?t:n.value,value:n.value,id:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:escape(n.value)}`},null!==(a=n.label)&&void 0!==a?a:n.value)}))))}),{kind:"leaf"}),ve=t(74105);var he=(0,C.e)((function(e){var n,t;return P(e,d.createElement(ve.Z,Object.assign({disabled:e.disabled,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""},(0,O.z)(e))))}),{kind:"leaf"});var ge=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?ue:fe;switch(e.fieldType){case Array:return re;case Boolean:return w;case Date:return A;case Number:return ie;case Object:return ae;case String:return he}return p()(!1,"Unsupported field type: %s",e.fieldType)})),be=t(55201);function _e(e){var{element:n=d.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,d.createElement)(ge,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var Ee=t(39850),ye=t(6820);var Oe=function e(n){class t extends n{getNativeFormProps(){const e=super.getNativeFormProps(),{className:n,layout:t="vertical"}=e,r=(0,v._T)(e,["className","layout"]);return Object.assign(Object.assign({},r),{className:R()("ant-form","ant-form-"+t,n)})}}return t.AntD=e,t.displayName=`AntD${n.displayName}`,t}(ye.I),Ce=t(51674);const xe={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},ke={margin:"3px"};var je=function(e){var{children:n,style:t=xe}=e,r=(0,v._T)(e,["children","style"]);const{error:a,schema:l}=(0,be.c)();return a||n?d.createElement("div",Object.assign({style:t},(0,O.z)(r)),n,d.createElement("ul",null,l.getErrorMessages(a).map(((e,n)=>d.createElement("li",{key:n,style:ke},e))))):null};var Fe=function(e){var{disabled:n,inputRef:t,value:r="Submit"}=e,a=(0,v._T)(e,["disabled","inputRef","value"]);const{error:l,state:i}=(0,be.c)();return d.createElement(W.default,Object.assign({disabled:void 0===n?!(!l&&!i.disabled):n,htmlType:"submit",ref:t,type:"primary"},a),r)};var Ne=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return ge}getErrorsField(){return je}getSubmitField(){return Fe}}return t.Quick=e,t}(Oe),Pe=t(23674);var we=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(Oe),Me=we.Validated(Ne.Quick(Oe));var Te=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Me);const De={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},Ie={margin:"3px"};var Ae=(0,C.e)((function(e){var{children:n,error:t,errorMessage:r,style:a=De}=e,l=(0,v._T)(e,["children","error","errorMessage","style"]);return t?d.createElement("div",Object.assign({style:a},(0,O.z)(l)),n||d.createElement("div",{style:Ie},r)):null}),{initialValue:!1,kind:"leaf"});function Se(e){var n,{value:t}=e,r=(0,v._T)(e,["value"]);const a=(0,V.U)(r.name,r,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:d.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var Re=t(10777);var Be=(0,C.e)((function(e){var n,{rows:t=5}=e,r=(0,v._T)(e,["rows"]);return P(r,d.createElement(Re.default,Object.assign({disabled:r.disabled,name:r.name,onChange:e=>r.onChange(e.target.value),placeholder:r.placeholder,readOnly:r.readOnly,ref:r.inputRef,rows:t,value:null!==(n=r.value)&&void 0!==n?n:""},(0,O.z)(r))))}),{kind:"leaf"}),Le=t(48159),We=t.n(Le);function Ze(e,n,t){const r="xs"===e?"":`${e}-`;return"label"===t?`col-${r}${n}`:`col-${r}${12-n}`}const Ue={xs:1,sm:2,md:3,lg:4,xl:5};function ze(e,n){return Ue[e]-Ue[n]}function Ve(e,n){return"number"==typeof e?Ze("xs",e,n):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl},e)),Object.keys(e).sort(ze).map((t=>Ze(t,e[t],n))).join(" ")):"":Ze("xs",parseInt(e),n)}function $e(e,n){var{changed:t,className:r,disabled:a,error:l,errorMessage:i,grid:o,help:s,helpClassName:c,id:u,label:m,labelClassName:p,required:f,showInlineError:h,wrapClassName:g}=e,b=(0,v._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const _=!(!o&&!g),E=!(!l||!h)&&d.createElement("span",{className:"form-text text-danger"},i),y=!!s&&d.createElement("span",{className:R()("form-text",c||"text-muted")},s),C=!l&&t;return d.createElement("div",Object.assign({className:R()(r,"form-group",{"is-invalid":l,"is-valid":C,disabled:a,required:f,row:o})},We()((0,O.z)(b),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&d.createElement("label",{htmlFor:u,className:R()({"col-form-label":o,"text-danger":l,"text-success":C},Ve(o,"label"),p)},m),_&&d.createElement("div",{className:R()(g,Ve(o,"input"))},n,y,E),!_&&n,!_&&y,!_&&E)}var Ke=(0,C.e)((function(e){var{onChange:n}=e,t=(0,v._T)(e,["onChange"]);const{disabled:r,error:a,inline:l,inputClassName:i,inputRef:o,label:s,labelBefore:c,name:u,readOnly:m,value:p}=t;return $e(Object.assign(Object.assign({},t),{label:c,value:t.value}),d.createElement("div",{className:R()(i,"form-check","checkbox",{"custom-control-inline":l,"text-danger":a,"text-success":!a&&t.changed})},d.createElement("label",{htmlFor:t.id,className:"form-check-label"},d.createElement("input",{checked:p||!1,className:"form-check-input",disabled:r,id:t.id,name:u,onChange:()=>{m||n(!p)},ref:o,type:"checkbox"}),"\xa0",s)))}),{kind:"leaf"});const qe=("object"==typeof t.g?t.g:window).Date,Qe=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var Je=(0,C.e)((function(e){var n,{disabled:t,error:r,id:a,inputClassName:l,inputRef:i,max:o,min:s,name:c,onChange:u,placeholder:m,readOnly:p,value:f,type:h="datetime-local"}=e,g=(0,v._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return $e(Object.assign(Object.assign({},g),{id:a}),d.createElement("input",{className:R()(l,"form-control",{"is-invalid":r,"is-valid":!r&&g.changed}),disabled:t,id:a,max:Qe(o),min:Qe(s),name:c,onChange:e=>{const n=new qe(e.target.valueAsNumber);n.getFullYear()<1e4?u(n):isNaN(e.target.valueAsNumber)&&u(void 0)},placeholder:m,readOnly:p,ref:i,type:h,value:null!==(n=Qe(f,h))&&void 0!==n?n:""}))}),{kind:"leaf"});function He(e){var{addIcon:n,className:t,disabled:r,name:a,readOnly:l,value:i}=e,o=(0,v._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const s=(0,z.m)(null,a),c=(0,z.m)(s.slice(0,-1)),u=(0,V.U)(c,{},{absoluteName:!0})[0],m=!(r||u.maxCount<=u.value.length);function p(e){!m||l||"key"in e&&"Enter"!==e.key||u.onChange(u.value.concat([U()(i)]))}return d.createElement("div",Object.assign({},(0,O.z)(o),{className:R()("badge badge-pill float-right",t),onClick:p,onKeyDown:p,role:"button",tabIndex:0}),n)}He.defaultProps={addIcon:d.createElement("i",{className:"octicon octicon-plus"})};var Ge=(0,C.e)(He,{initialValue:!1,kind:"leaf"});function Xe(e){var{className:n,disabled:t,name:r,readOnly:a,removeIcon:l}=e,i=(0,v._T)(e,["className","disabled","name","readOnly","removeIcon"]);const o=(0,z.m)(null,r),s=+o[o.length-1],c=(0,z.m)(o.slice(0,-1)),u=(0,V.U)(c,{},{absoluteName:!0})[0];function m(e){if(!(t||"key"in e&&"Enter"!==e.key)){const e=u.value.slice();e.splice(s,1),u.onChange(e)}}return t||(t=a||u.minCount>=u.value.length),d.createElement("span",Object.assign({},(0,O.z)(i),{className:R()("badge badge-pill",n),onClick:m,onKeyDown:m,role:"button",tabIndex:0}),l)}Xe.defaultProps={removeIcon:d.createElement("i",{className:"octicon octicon-dash"})};var Ye=(0,C.e)(Xe,{initialValue:!1,kind:"leaf"});var en=(0,C.e)((function(e){let{children:n=d.createElement(fn,{className:"col-11",label:null,name:""}),removeIcon:t}=e;return d.createElement("div",{className:"row"},d.createElement("div",{className:"col-1"},d.createElement(Ye,{name:"",removeIcon:t})),n)}),{initialValue:!1});var nn=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(en,{name:"$"}),className:r,error:a,errorMessage:l,itemProps:i,label:o,removeIcon:s,showInlineError:c,value:u}=e,m=(0,v._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return d.createElement("div",Object.assign({className:R()("card mb-3",r)},(0,O.z)(m)),d.createElement("div",{className:"card-body"},o&&d.createElement("div",{className:"card-title"},d.createElement("label",{className:"col-form-label"},o,"\xa0"),d.createElement(Ge,{addIcon:n,name:"$"}),!(!a||!c)&&d.createElement("span",{className:"text-danger"},l)),null==u?void 0:u.map(((e,n)=>d.Children.map(t,((e,t)=>{var r;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign(Object.assign({key:`${n}-${t}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+n)},i),{removeIcon:s})):e}))))))}));var tn=(0,C.e)((function(e){var{children:n,className:t,error:r,errorMessage:a,fields:l,itemProps:i,label:o,showInlineError:s}=e,c=(0,v._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return d.createElement("div",Object.assign({className:R()(t,{"has-error":r})},(0,O.z)(c)),o&&d.createElement("label",null,o),!(!r||!s)&&d.createElement("span",{className:"text-danger"},a),n||l.map((e=>d.createElement(fn,Object.assign({key:e,name:e},i)))))}));var rn=(0,C.e)((function(e){var n;return $e(e,d.createElement("input",{className:R()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(n.target.value);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});const an="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,ln=e=>an(encodeURIComponent(e)).replace(/=+$/,"");var on=(0,C.e)((function(e){var n;return $e(e,null===(n=e.options)||void 0===n?void 0:n.map((n=>{var t,r,a,l;return d.createElement("div",{key:null!==(t=n.key)&&void 0!==t?t:n.value,className:R()(e.inputClassName,"form-check","radio",{"custom-control-inline":e.inline,"text-danger":e.error,"text-success":!e.error&&e.changed})},d.createElement("label",{htmlFor:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:ln(n.value)}`,className:"form-check-label"},d.createElement("input",{checked:n.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:ln(n.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(n.value)},type:"radio"})," ",null!==(l=n.label)&&void 0!==l?l:n.value))})))}),{kind:"leaf"}),sn=t(20098),cn=t.n(sn);const un="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,dn=e=>un(encodeURIComponent(e)).replace(/=+$/,"");var mn=(0,C.e)((function(e){var{options:n,checkboxes:t,disabled:r,error:a,fieldType:l,id:i,inline:o,inputClassName:s,inputRef:c,label:u,name:m,onChange:p,placeholder:f,readOnly:h,required:g,value:b}=e,_=(0,v._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return $e(Object.assign(Object.assign({},_),{disabled:r,error:a,id:i,label:u,required:g}),t?null==n?void 0:n.map((e=>{var n,t,a,l;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value,className:R()(s,"checkbox"+(o?"-inline":""))},d.createElement("label",{htmlFor:`${i}-${null!==(t=e.key)&&void 0!==t?t:dn(e.value)}`},d.createElement("input",{checked:E?null==b?void 0:b.includes(e.value):b===e.value,disabled:e.disabled||r,id:`${i}-${null!==(a=e.key)&&void 0!==a?a:dn(e.value)}`,name:m,onChange:()=>{h||p(E?cn()([e.value],b):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):d.createElement("select",{className:R()(s,"c-select form-control",{"is-invalid":a,"is-valid":!a&&_.changed}),disabled:r,id:i,multiple:E,name:m,onChange:e=>{if(!h){const n=e.target.value;if(E){const t=-1===e.target.selectedIndex;p(t?[]:cn()([n],b))}else p(""!==n?n:void 0)}},ref:c,value:null!=b?b:""},(!!f||!g||void 0===b)&&!E&&d.createElement("option",{value:"",disabled:g,hidden:g},f||u),null==n?void 0:n.map((e=>{var n,t;return d.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});var pn=(0,C.e)((function(e){var n,t;return $e(We()(e,["autoComplete"]),d.createElement("input",{autoComplete:e.autoComplete,className:R()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});var fn=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?on:mn;switch(e.fieldType){case Array:return nn;case Boolean:return Ke;case Date:return Je;case Number:return rn;case Object:return tn;case String:return pn}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function vn(e){var{element:n=d.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,d.createElement)(fn,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var hn=function e(n){class t extends n{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),n=super.getNativeFormProps();return Object.assign(Object.assign({},We()(n,["grid"])),{className:R()("form",{error:e},n.className)})}}return t.Bootstrap4=e,t.displayName=`Bootstrap4${n.displayName}`,t}(ye.I);var gn=function(e){var{children:n,className:t}=e,r=(0,v._T)(e,["children","className"]);const{error:a,schema:l}=(0,be.c)();return a||n?d.createElement("div",Object.assign({className:R()("card border-danger mb-3 text-danger",t)},(0,O.z)(r)),d.createElement("div",{className:"card-body"},n,l.getErrorMessages(a).map(((e,n)=>d.createElement("div",{key:n,className:"disabled"},e))))):null};function bn(e){var{className:n,disabled:t,inputClassName:r,inputRef:a,readOnly:l,value:i,wrapClassName:o}=e,s=(0,v._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:c,state:u}=(0,be.c)(),m=u,p=!(!m.grid&&!o),f=d.createElement("input",Object.assign({className:r,disabled:void 0===t?!(!c&&!m.disabled):t,readOnly:l,ref:a,type:"submit"},i?{value:i}:{}));return d.createElement("div",Object.assign({className:R()(n,{"is-invalid":c,row:m.grid})},(0,O.z)(s)),p&&d.createElement("span",{className:R()("col-form-label",Ve(m.grid,"label"))},"\xa0"),p&&d.createElement("div",{className:R()(o,Ve(m.grid,"input"))},f),!p&&f)}bn.defaultProps={inputClassName:"btn btn-primary"};var _n=bn;var En=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return fn}getErrorsField(){return gn}getSubmitField(){return _n}}return t.Quick=e,t}(hn);var yn=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(hn),On=yn.Validated(En.Quick(hn));var Cn=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(On);var xn=(0,C.e)((function(e){var{children:n,className:t,error:r,errorMessage:a}=e,l=(0,v._T)(e,["children","className","error","errorMessage"]);return r?d.createElement("div",Object.assign({className:R()("card","mb-3",t)},(0,O.z)(l)),d.createElement("div",{className:"card-body"},n||d.createElement("h4",{className:"card-title"},a))):null}),{initialValue:!1,kind:"leaf"});function kn(e){var n,{value:t}=e,r=(0,v._T)(e,["value"]);const a=(0,V.U)(r.name,r,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:d.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var jn=(0,C.e)((function(e){var n;return $e(e,d.createElement("textarea",{className:R()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});function Fn(e,n,t){const r="xs"===e?"":`${e}-`;return"label"===t?`col-${r}${n}`:`col-${r}${12-n}`}const Nn={xs:1,sm:2,md:3,lg:4,xl:5,xxl:6};function Pn(e,n){return Nn[e]-Nn[n]}function wn(e,n){return"number"==typeof e?Fn("xs",e,n):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl||e.xxl},e)),Object.keys(e).sort(Pn).map((t=>Fn(t,e[t],n))).join(" ")):"":Fn("xs",parseInt(e),n)}function Mn(e,n){var{changed:t,className:r,disabled:a,error:l,errorMessage:i,grid:o,help:s,helpClassName:c,id:u,label:m,labelClassName:p,required:f,showInlineError:h,wrapClassName:g}=e,b=(0,v._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const _=!(!o&&!g),E=!(!l||!h)&&d.createElement("span",{className:"form-text text-danger"},i),y=!!s&&d.createElement("span",{className:R()("form-text",c||"text-muted")},s);return d.createElement("div",Object.assign({className:R()(r,"mb-3",{"is-invalid":l,disabled:a,required:f,row:o})},We()((0,O.z)(b),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&d.createElement("label",{htmlFor:u,className:R()({"col-form-label":o,"text-danger":l,"text-success":!l&&t},wn(o,"label"),p)},m),_&&d.createElement("div",{className:R()(g,wn(o,"input"))},n,y,E),!_&&n,!_&&y,!_&&E)}var Tn=(0,C.e)((function(e){var{onChange:n}=e,t=(0,v._T)(e,["onChange"]);const{disabled:r,error:a,inline:l,inputClassName:i,inputRef:o,label:s,labelBefore:c,name:u,readOnly:m,value:p}=t;return Mn(Object.assign(Object.assign({},t),{label:c,value:t.value}),d.createElement("div",{className:R()(i,"form-check",{"text-danger":a,"text-success":!a&&t.changed,"form-check-inline":l})},d.createElement("input",{checked:p||!1,className:"form-check-input",disabled:r,id:t.id,name:u,onChange:()=>{m||n(!p)},ref:o,type:"checkbox"}),d.createElement("label",{htmlFor:t.id,className:"form-check-label"},s)))}),{kind:"leaf"});const Dn=("object"==typeof t.g?t.g:window).Date,In=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var An=(0,C.e)((function(e){var n,{disabled:t,error:r,id:a,inputClassName:l,inputRef:i,max:o,min:s,name:c,onChange:u,placeholder:m,readOnly:p,value:f,type:h="datetime-local"}=e,g=(0,v._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return Mn(Object.assign(Object.assign({},g),{id:a}),d.createElement("input",{className:R()(l,"form-control",{"is-invalid":r,"is-valid":!r&&g.changed}),disabled:t,id:a,max:In(o),min:In(s),name:c,onChange:e=>{const n=new Dn(e.target.valueAsNumber);n.getFullYear()<1e4?u(n):isNaN(e.target.valueAsNumber)&&u(void 0)},placeholder:m,readOnly:p,ref:i,type:h,value:null!==(n=In(f,h))&&void 0!==n?n:""}))}),{kind:"leaf"});function Sn(e){var{addIcon:n,className:t,disabled:r,name:a,readOnly:l,value:i}=e,o=(0,v._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const s=(0,z.m)(null,a),c=(0,z.m)(s.slice(0,-1)),u=(0,V.U)(c,{},{absoluteName:!0})[0];return r||(r=l||u.maxCount<=u.value.length),d.createElement("button",Object.assign({},(0,O.z)(o),{className:R()("btn btn-secondary btn-sm float-end",t),disabled:r,onClick:function(){r||u.onChange(u.value.concat([U()(i)]))},tabIndex:0,type:"button"}),n)}Sn.defaultProps={addIcon:d.createElement("i",{className:"octicon octicon-plus"})};var Rn=(0,C.e)(Sn,{initialValue:!1,kind:"leaf"});function Bn(e){var{className:n,disabled:t,name:r,readOnly:a,removeIcon:l}=e,i=(0,v._T)(e,["className","disabled","name","readOnly","removeIcon"]);const o=(0,z.m)(null,r),s=+o[o.length-1],c=(0,z.m)(o.slice(0,-1)),u=(0,V.U)(c,{},{absoluteName:!0})[0];return t||(t=a||u.minCount>=u.value.length),d.createElement("button",Object.assign({},(0,O.z)(i),{className:R()("btn btn-secondary btn-sm",n),disabled:t,onClick:()=>{const e=u.value.slice();e.splice(s,1),u.onChange(e)},tabIndex:0,type:"button"}),l)}Bn.defaultProps={removeIcon:d.createElement("i",{className:"octicon octicon-dash"})};var Ln=(0,C.e)(Bn,{initialValue:!1,kind:"leaf"});var Wn=(0,C.e)((function(e){let{children:n=d.createElement(Gn,{className:"col",label:null,name:""}),removeIcon:t}=e;return d.createElement("div",{className:"row"},d.createElement("div",{className:"col-auto"},d.createElement(Ln,{name:"",removeIcon:t})),n)}),{initialValue:!1});var Zn=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(Wn,{name:"$"}),className:r,error:a,errorMessage:l,itemProps:i,label:o,removeIcon:s,showInlineError:c,value:u}=e,m=(0,v._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return d.createElement("div",Object.assign({className:R()("card mb-3",r)},(0,O.z)(m)),d.createElement("div",{className:"card-body"},o&&d.createElement("div",{className:"card-title"},d.createElement("label",{className:"col-form-label"},o,"\xa0"),d.createElement(Rn,{addIcon:n,name:"$"}),!(!a||!c)&&d.createElement("span",{className:"text-danger"},l)),null==u?void 0:u.map(((e,n)=>d.Children.map(t,((e,t)=>{var r;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign(Object.assign({key:`${n}-${t}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+n)},i),{removeIcon:s})):e}))))))}));var Un=(0,C.e)((function(e){var{children:n,className:t,error:r,errorMessage:a,fields:l,itemProps:i,label:o,showInlineError:s}=e,c=(0,v._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return d.createElement("div",Object.assign({className:R()(t,{"has-error":r})},(0,O.z)(c)),o&&d.createElement("label",null,o),!(!r||!s)&&d.createElement("span",{className:"text-danger"},a),n||l.map((e=>d.createElement(Gn,Object.assign({key:e,name:e},i)))))}));var zn=(0,C.e)((function(e){var n;return Mn(e,d.createElement("input",{className:R()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(n.target.value);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});const Vn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,$n=e=>Vn(encodeURIComponent(e)).replace(/=+$/,"");var Kn=(0,C.e)((function(e){var n;return Mn(e,null===(n=e.options)||void 0===n?void 0:n.map((n=>{var t,r,a,l;return d.createElement("div",{key:null!==(t=n.key)&&void 0!==t?t:n.value,className:R()(e.inputClassName,"form-check",{"text-danger":e.error,"text-success":!e.error&&e.changed,"form-check-inline":e.inline})},d.createElement("label",{htmlFor:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:$n(n.value)}`,className:"form-check-label"},d.createElement("input",{checked:n.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:$n(n.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(n.value)},type:"radio"})," ",null!==(l=n.label)&&void 0!==l?l:n.value))})))}),{kind:"leaf"});const qn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Qn=e=>qn(encodeURIComponent(e)).replace(/=+$/,"");var Jn=(0,C.e)((function(e){var{options:n,checkboxes:t,disabled:r,error:a,fieldType:l,id:i,inline:o,inputClassName:s,inputRef:c,label:u,name:m,onChange:p,placeholder:f,readOnly:h,required:g,value:b}=e,_=(0,v._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return Mn(Object.assign(Object.assign({},_),{disabled:r,error:a,id:i,label:u,required:g}),t?null==n?void 0:n.map((e=>{var n,t,a,l;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value,className:R()(s,"form-check"+(o?" form-check-inline":""))},d.createElement("label",{htmlFor:`${i}-${null!==(t=e.key)&&void 0!==t?t:Qn(e.value)}`},d.createElement("input",{checked:E?null==b?void 0:b.includes(e.value):b===e.value,disabled:e.disabled||r,id:`${i}-${null!==(a=e.key)&&void 0!==a?a:Qn(e.value)}`,name:m,onChange:()=>{h||p(E?cn()([e.value],b):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):d.createElement("select",{className:R()(s,"form-control",{"is-invalid":a,"is-valid":!a&&_.changed}),disabled:r,id:i,multiple:E,name:m,onChange:e=>{if(!h){const n=e.target.value;if(E){const t=-1===e.target.selectedIndex;p(t?[]:cn()([n],b))}else p(""!==n?n:void 0)}},ref:c,value:null!=b?b:""},(!!f||!g||void 0===b)&&!E&&d.createElement("option",{value:"",disabled:g,hidden:g},f||u),null==n?void 0:n.map((e=>{var n,t;return d.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});var Hn=(0,C.e)((function(e){var n,t;return Mn(We()(e,["autoComplete","minLength","maxLength"]),d.createElement("input",{autoComplete:e.autoComplete,className:R()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});var Gn=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Kn:Jn;switch(e.fieldType){case Array:return Zn;case Boolean:return Tn;case Date:return An;case Number:return zn;case Object:return Un;case String:return Hn}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Xn(e){var{element:n=d.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,d.createElement)(Gn,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var Yn=function e(n){class t extends n{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),n=super.getNativeFormProps();return Object.assign(Object.assign({},We()(n,["grid"])),{className:R()({error:e},n.className)})}}return t.Bootstrap5=e,t.displayName=`Bootstrap5${n.displayName}`,t}(ye.I);var et=function(e){var{children:n,className:t}=e,r=(0,v._T)(e,["children","className"]);const{error:a,schema:l}=(0,be.c)();return a||n?d.createElement("div",Object.assign({className:R()("card border-danger mb-3 text-danger",t)},(0,O.z)(r)),d.createElement("div",{className:"card-body"},n,l.getErrorMessages(a).map(((e,n)=>d.createElement("div",{key:n,className:"disabled"},e))))):null};function nt(e){var{className:n,disabled:t,inputClassName:r,inputRef:a,readOnly:l,value:i,wrapClassName:o}=e,s=(0,v._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:c,state:u}=(0,be.c)(),m=u,p=!(!m.grid&&!o),f=d.createElement("input",Object.assign({className:r,disabled:void 0===t?!(!c&&!m.disabled):t,readOnly:l,ref:a,type:"submit"},i?{value:i}:{}));return d.createElement("div",Object.assign({className:R()(n,{"is-invalid":c,row:m.grid})},(0,O.z)(s)),p&&d.createElement("span",{className:R()("col-form-label",wn(m.grid,"label"))},"\xa0"),p&&d.createElement("div",{className:R()(o,wn(m.grid,"input"))},f),!p&&f)}nt.defaultProps={inputClassName:"btn btn-primary"};var tt=nt;var rt=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Gn}getErrorsField(){return et}getSubmitField(){return tt}}return t.Quick=e,t}(Yn);var at=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(Yn),lt=at.Validated(rt.Quick(Yn));var it=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(lt);var ot=(0,C.e)((function(e){var{children:n,className:t,error:r,errorMessage:a}=e,l=(0,v._T)(e,["children","className","error","errorMessage"]);return r?d.createElement("div",Object.assign({className:R()("card","mb-3",t)},(0,O.z)(l)),d.createElement("div",{className:"card-body"},n||d.createElement("h4",{className:"card-title"},a))):null}),{initialValue:!1,kind:"leaf"});function st(e){var n,{value:t}=e,r=(0,v._T)(e,["value"]);const a=(0,V.U)(r.name,r,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:d.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var ct=(0,C.e)((function(e){var n;return Mn(We()(e,["autoComplete","minLength","maxLength"]),d.createElement("textarea",{className:R()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"}),ut=t(80342),dt=t(21807),mt=t(61247),pt=t(35311),ft=t(82693),vt=t(82956),ht=t(54139),gt=t(74533);function bt(e){let{component:n,disabled:t,error:r,errorMessage:a,fullWidth:l,helperText:i,margin:o,readOnly:s,required:c,showInlineError:u,variant:m}=e;const p=u&&r?a:i,f={component:n,disabled:!!t,error:!!r,fullWidth:!!l,margin:o,readOnly:s,required:c,variant:m};for(var v=arguments.length,h=new Array(v>1?v-1:0),g=1;g<v;g++)h[g-1]=arguments[g];return(0,d.createElement)(ht.Z,f,...h,!!p&&d.createElement(gt.Z,null,p))}var _t=(0,C.e)((function(e){var n;const{appearance:t,disabled:r,inputRef:a,label:l,legend:i,name:o,onChange:s,readOnly:c,value:u}=e,m=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl,p="checkbox"===t||void 0===t?ut.Z:ft.Z;return bt(Object.assign(Object.assign(Object.assign(Object.assign({},void 0===(null==m?void 0:m.fullWidth)&&{fullWidth:!0}),void 0===(null==m?void 0:m.margin)&&{margin:"dense"}),e),{component:"fieldset"}),i&&d.createElement(pt.Z,{component:"legend",htmlFor:o},i),d.createElement(mt.Z,null,d.createElement(dt.Z,{control:d.createElement(p,Object.assign({checked:!!u,name:o,onChange:e=>!r&&!c&&s&&s(e.target.checked),ref:a,value:o},We()((0,O.z)(e),["helperText","fullWidth"]))),label:l})))}),{kind:"leaf"}),Et=t(38725);const yt=("object"==typeof t.g?t.g:window).Date,Ot=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var Ct=(0,C.e)((function(e){var n,t,r,a,{disabled:l,error:i,errorMessage:o,helperText:s,InputLabelProps:c,inputRef:u,label:m,labelProps:p,max:f,min:h,name:g,onChange:b,placeholder:_,readOnly:E,showInlineError:y,value:C,type:x="datetime-local"}=e,k=(0,v._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);const j=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(t=null==j?void 0:j.fullWidth)||void 0===t||t,helperText:!!i&&y&&o||s,label:m,InputLabelProps:Object.assign(Object.assign({shrink:!0},p),c),inputProps:Object.assign({max:Ot(f),min:Ot(h),readOnly:E},k.inputProps),margin:null!==(r=null==j?void 0:j.margin)&&void 0!==r?r:"dense",name:g,onChange:e=>l||((e,n)=>{const t=new yt(e);t.getFullYear()<1e4?n(t):isNaN(e)&&n(void 0)})(e.target.valueAsNumber,b),placeholder:_,ref:u,type:x,value:null!==(a=Ot(C,x))&&void 0!==a?a:""},(0,O.z)(k)))}),{kind:"leaf"}),xt=t(50755),kt=t(44920),jt=t(90547);var Ft=(0,C.e)((function(e){var{disabled:n,fullWidth:t=!0,icon:r="+",margin:a="dense",name:l,readOnly:i,value:o,variant:s}=e,c=(0,v._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const u=(0,z.m)(null,l),m=(0,z.m)(u.slice(0,-1)),p=(0,V.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return d.createElement(ht.Z,{fullWidth:t,margin:a,variant:s},d.createElement(jt.Z,Object.assign({},(0,O.z)(c),{disabled:!f,onClick:()=>{i||p.onChange(p.value.concat([U()(o)]))}}),r))}),{initialValue:!1,kind:"leaf"}),Nt=t(53332);var Pt=(0,C.e)((function(e){var{disabled:n,icon:t="-",name:r,readOnly:a}=e,l=(0,v._T)(e,["disabled","icon","name","readOnly"]);const i=(0,z.m)(null,r),o=+i[i.length-1],s=(0,z.m)(i.slice(0,-1)),c=(0,V.U)(s,{},{absoluteName:!0})[0];return n||(n=a||c.minCount>=c.value.length),d.createElement(jt.Z,Object.assign({},(0,O.z)(l),{disabled:n,onClick:()=>{const e=c.value.slice();e.splice(o,1),c.onChange(e)}}),t)}),{initialValue:!1,kind:"leaf"});var wt=(0,C.e)((function(e){let{children:n=d.createElement(Vt,{label:null,name:""}),dense:t=!0,disableGutters:r,divider:a,removeIcon:l}=e;return d.createElement(Nt.Z,{dense:t,disableGutters:r,divider:a},n,d.createElement(Pt,{name:"",icon:l}))}),{initialValue:!1});var Mt=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(wt,{name:"$"}),itemProps:r,label:a,value:l}=e,i=(0,v._T)(e,["addIcon","children","itemProps","label","value"]);return d.createElement(d.Fragment,null,d.createElement(xt.Z,Object.assign({dense:!0,subheader:a?d.createElement(kt.Z,{disableSticky:!0},a):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,n)=>d.Children.map(t,((e,t)=>{var a;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n)},r)):e}))))),d.createElement(Ft,{icon:n,name:"$"}))}));var Tt=(0,C.e)((function(e){var n,t,r,{children:a,fields:l,itemProps:i,label:o}=e,s=(0,v._T)(e,["children","fields","itemProps","label"]);const c=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl;return bt(Object.assign(Object.assign({fullWidth:null===(t=null==c?void 0:c.fullWidth)||void 0===t||t,margin:null!==(r=null==c?void 0:c.margin)&&void 0!==r?r:"dense"},s),{component:void 0}),o&&d.createElement(pt.Z,{component:"legend"},o),a||l.map((e=>d.createElement(Vt,Object.assign({key:e,name:e},i)))))}));var Dt=(0,C.e)((function(e){var n,t,r,a,{decimal:l,disabled:i,error:o,errorMessage:s,helperText:c,inputProps:u,inputRef:m,label:p,max:f,min:h,name:g,onChange:b,readOnly:_,placeholder:E,showInlineError:y,step:C=(l?.01:1),value:x}=e,k=(0,v._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);const j=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:i,error:!!o,fullWidth:null===(t=null==j?void 0:j.fullWidth)||void 0===t||t,helperText:!!o&&y&&s||c,inputProps:Object.assign(Object.assign(Object.assign({},null!==(r=null==j?void 0:j.inputProps)&&void 0!==r?r:{}),{min:h,max:f,readOnly:_,step:C}),u),label:p,margin:null!==(a=null==j?void 0:j.margin)&&void 0!==a?a:"dense",name:g,onChange:e=>{const n=(l?parseFloat:parseInt)(e.target.value);b(isNaN(n)?void 0:n)},placeholder:E,ref:m,type:"number",value:null!=x?x:""},(0,O.z)(k)))}),{kind:"leaf"}),It=t(76709),At=t(70043);const St="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Rt=e=>St(encodeURIComponent(e)).replace(/=+$/,"");var Bt=(0,C.e)((function(e){var n,t,r,{options:a,disabled:l,id:i,inputRef:o,label:s,name:c,onChange:u,readOnly:m,row:p,value:f}=e,h=(0,v._T)(e,["options","disabled","id","inputRef","label","name","onChange","readOnly","row","value"]);const g=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl;return bt(Object.assign(Object.assign({fullWidth:null===(t=null==g?void 0:g.fullWidth)||void 0===t||t,margin:null!==(r=null==g?void 0:g.margin)&&void 0!==r?r:"dense"},h),{component:"fieldset",disabled:l}),s&&d.createElement(pt.Z,{component:"legend",htmlFor:c},s),d.createElement(At.Z,{id:i,name:c,onChange:e=>l||m||u(e.target.value),ref:o,row:p,value:null!=f?f:""},null==a?void 0:a.map((e=>{var n,t;return d.createElement(dt.Z,{control:d.createElement(It.Z,Object.assign({id:`${i}-${Rt(e.value)}`},We()((0,O.z)(h),["checkboxes","helperText"]))),htmlFor:`${i}-${Rt(e.value)}`,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(t=e.label)&&void 0!==t?t:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),Lt=t(5633);const Wt="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Zt=e=>Wt(encodeURIComponent(e)).replace(/=+$/,"");var Ut=(0,C.e)((function(e){var n,t,r,a,l,i;const o=(0,vt.Z)(),s=null===(n=o.props)||void 0===n?void 0:n.MuiFormControl,c=null!==(t=e.value)&&void 0!==t?t:"";if(e.checkboxes){const{options:n,disabled:t,fieldType:a,id:l,inputRef:i,label:o,legend:u,name:m,onChange:p,readOnly:f}=e,v="checkbox"===(null!==(r=e.appearance)&&void 0!==r?r:"checkbox")?ut.Z:ft.Z,h=We()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),g=a!==Array?d.createElement(At.Z,{id:l,name:m,onChange:e=>t||f||p(e.target.value),ref:i,value:null!=c?c:""},null==n?void 0:n.map((e=>{var n,r,a;return d.createElement(dt.Z,{control:d.createElement(It.Z,Object.assign({id:`${l}-${null!==(n=e.key)&&void 0!==n?n:Zt(e.value)}`},h)),disabled:e.disabled||t,key:null!==(r=e.key)&&void 0!==r?r:e.value,label:null!==(a=e.label)&&void 0!==a?a:e.value,value:e.value})}))):d.createElement(mt.Z,{id:l},null==n?void 0:n.map((e=>{var n,r,a;return d.createElement(dt.Z,{control:d.createElement(v,Object.assign({checked:c.includes(e.value),id:`${l}-${null!==(n=e.key)&&void 0!==n?n:Zt(e.value)}`,name:m,onChange:()=>t||f||p(cn()([e.value],c)),ref:i,value:m},h)),disabled:e.disabled||t,key:null!==(r=e.key)&&void 0!==r?r:e.value,label:null!==(a=e.label)&&void 0!==a?a:e.value})})));return bt(Object.assign(Object.assign(Object.assign({},s),e),{component:"fieldset"}),(u||o)&&d.createElement(pt.Z,{component:"legend"},u||o),g)}const u=null===(a=o.props)||void 0===a?void 0:a.MuiTextField,{options:m,disabled:p,error:f,errorMessage:v,fieldType:h,fullWidth:g=null===(l=null==u?void 0:u.fullWidth)||void 0===l||l,helperText:b,id:_,InputLabelProps:E,inputProps:y,label:C,labelProps:x,margin:k=(null!==(i=null==u?void 0:u.margin)&&void 0!==i?i:"dense"),name:j,native:F,onChange:N,placeholder:P,readOnly:w,required:M,showInlineError:T,variant:D,textFieldProps:I}=e,A=F?"option":Lt.Z,S=!!P,R=""!==c&&void 0!==c,B=We()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return d.createElement(Et.Z,Object.assign({disabled:p,error:!!f,fullWidth:g,helperText:!!f&&T&&v||b,InputLabelProps:Object.assign(Object.assign({shrink:!!C&&(S||R)},x),E),label:C,margin:k,onChange:e=>p||w||N(""!==e.target.value?e.target.value:void 0),required:M,select:!0,SelectProps:Object.assign({displayEmpty:S,inputProps:Object.assign({name:j,id:_},y),multiple:h===Array||void 0,native:F},B),value:F&&!c?"":c,variant:D},I),(S||!M||!R)&&d.createElement(A,{value:"",disabled:!!M},P||C),null==m?void 0:m.map((e=>{var n,t;return d.createElement(A,{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)})))}),{kind:"leaf"});var zt=(0,C.e)((function(e){var n,t,r,a,{disabled:l,error:i,errorMessage:o,helperText:s,inputRef:c,label:u,name:m,onChange:p,placeholder:f,readOnly:h,showInlineError:g,type:b="text",value:_=""}=e,E=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const y=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(t=null==y?void 0:y.fullWidth)||void 0===t||t,helperText:!!i&&g&&o||s,inputProps:Object.assign({readOnly:h},null!==(r=null==y?void 0:y.inputProps)&&void 0!==r?r:{}),label:u,margin:null!==(a=null==y?void 0:y.margin)&&void 0!==a?a:"dense",name:m,onChange:e=>l||p(e.target.value),placeholder:f,ref:c,type:b,value:_},(0,O.z)(E)))}),{kind:"leaf"});var Vt=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Bt:Ut;switch(e.fieldType){case Array:return Mt;case Boolean:return _t;case Date:return Ct;case Number:return Dt;case Object:return Tt;case String:return zt}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function $t(e){var{element:n=d.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,d.createElement)(Vt,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var Kt=function e(n){class t extends n{}return t.Material=e,t.displayName=`Material${n.displayName}`,t}(ye.I);var qt=function(e){var n,t,r,{children:a,fullWidth:l,margin:i,variant:o}=e,s=(0,v._T)(e,["children","fullWidth","margin","variant"]);const c=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl,{error:u,schema:m}=(0,be.c)();return u||a?d.createElement(ht.Z,{error:!!u,fullWidth:null===(t=null!=l?l:null==c?void 0:c.fullWidth)||void 0===t||t,margin:null!==(r=null!=i?i:null==c?void 0:c.margin)&&void 0!==r?r:"dense",variant:null!=o?o:null==c?void 0:c.variant},!!a&&d.createElement(gt.Z,Object.assign({},(0,O.z)(s)),a),m.getErrorMessages(u).map(((e,n)=>d.createElement(gt.Z,Object.assign({key:n},(0,O.z)(s)),e)))):null},Qt=t(9334);var Jt=function(e){var n,t,{children:r,disabled:a,inputRef:l,label:i="Submit",value:o}=e,s=(0,v._T)(e,["children","disabled","inputRef","label","value"]);const{error:c,state:u}=(0,be.c)(),m=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiButton;return d.createElement(Qt.Z,Object.assign({disabled:void 0===a?!(!c&&!u.disabled):a,ref:l,type:"submit",value:o,variant:null!==(t=null==m?void 0:m.variant)&&void 0!==t?t:"contained"},(0,O.z)(s)),r||i)};var Ht=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Vt}getErrorsField(){return qt}getSubmitField(){return Jt}}return t.Quick=e,t}(Kt);var Gt=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(Kt),Xt=Gt.Validated(Ht.Quick(Kt));var Yt=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Xt);var er=(0,C.e)((function(e){var n,t,r,{children:a,error:l,errorMessage:i,fullWidth:o,margin:s,variant:c}=e,u=(0,v._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);const m=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl;return l?d.createElement(ht.Z,{error:!!l,fullWidth:null===(t=null!=o?o:null==m?void 0:m.fullWidth)||void 0===t||t,margin:null!==(r=null!=s?s:null==m?void 0:m.margin)&&void 0!==r?r:"dense",variant:null!=c?c:null==m?void 0:m.variant},d.createElement(gt.Z,Object.assign({},(0,O.z)(u)),a||i)):null}),{initialValue:!1,kind:"leaf"});function nr(e){var n,{value:t}=e,r=(0,v._T)(e,["value"]);const a=(0,V.U)(r.name,r,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:d.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var tr=(0,C.e)((e=>{var n,t,r,{disabled:a,error:l,errorMessage:i,helperText:o,inputRef:s,label:c,name:u,onChange:m,placeholder:p,readOnly:f,showInlineError:h,type:g="text",value:b}=e,_=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const E=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:a,error:!!l,fullWidth:null===(t=null==E?void 0:E.fullWidth)||void 0===t||t,helperText:!!l&&h&&i||o,inputProps:Object.assign(Object.assign({},null==E?void 0:E.inputProps),{readOnly:f}),label:c,margin:null!==(r=null==E?void 0:E.margin)&&void 0!==r?r:"dense",multiline:!0,name:u,onChange:e=>a||m(e.target.value),placeholder:p,ref:s,type:g,value:null!=b?b:""},(0,O.z)(_)))}),{kind:"leaf"}),rr=t(56213),ar=t(64251),lr=t(64281),ir=t(23626),or=t(22013),sr=t(61230),cr=t(56274);function ur(e){let{component:n,disabled:t,error:r,errorMessage:a,fullWidth:l,helperText:i,margin:o,readOnly:s,required:c,showInlineError:u,variant:m}=e;const p=u&&r?a:i,f={component:n,disabled:!!t,error:!!r,fullWidth:!!l,margin:o,readOnly:s,required:c,variant:m};for(var v=arguments.length,h=new Array(v>1?v-1:0),g=1;g<v;g++)h[g-1]=arguments[g];return(0,d.createElement)(sr.Z,f,...h,!!p&&d.createElement(cr.Z,null,p))}var dr=(0,C.e)((function(e){const{appearance:n,disabled:t,inputRef:r,label:a,legend:l,name:i,onChange:o,readOnly:s,value:c}=e,u="checkbox"===n||void 0===n?rr.Z:or.Z;return ur(Object.assign({fullWidth:!0},e),l&&d.createElement(ir.Z,{component:"legend",htmlFor:i},l),d.createElement(lr.Z,null,d.createElement(ar.Z,{control:d.createElement(u,Object.assign({checked:!!c,name:i,onChange:e=>!t&&!s&&o&&o(e.target.checked),ref:r,value:i},We()((0,O.z)(e),["helperText","fullWidth"]))),label:a})))}),{kind:"leaf"}),mr=t(60929);const pr=("object"==typeof t.g?t.g:window).Date,fr=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var vr=(0,C.e)((function(e){var n,{disabled:t,error:r,errorMessage:a,helperText:l,InputLabelProps:i,inputRef:o,label:s,labelProps:c,max:u,min:m,name:p,onChange:f,placeholder:h,readOnly:g,showInlineError:b,value:_,type:E="datetime-local"}=e,y=(0,v._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);return d.createElement(mr.Z,Object.assign({disabled:t,error:!!r,fullWidth:!0,helperText:!!r&&b&&a||l,label:s,InputLabelProps:Object.assign(Object.assign({shrink:!0},c),i),inputProps:Object.assign({max:fr(u),min:fr(m),readOnly:g},y.inputProps),margin:"dense",name:p,onChange:e=>t||((e,n)=>{const t=new pr(e);t.getFullYear()<1e4?n(t):isNaN(e)&&n(void 0)})(e.target.valueAsNumber,f),placeholder:h,ref:o,type:E,value:null!==(n=fr(_,E))&&void 0!==n?n:""},(0,O.z)(y)))}),{kind:"leaf"}),hr=t(10872),gr=t(5420),br=t(68666);var _r=(0,C.e)((function(e){var{disabled:n,fullWidth:t=!0,icon:r="+",margin:a="dense",name:l,readOnly:i,value:o,variant:s}=e,c=(0,v._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const u=(0,z.m)(null,l),m=(0,z.m)(u.slice(0,-1)),p=(0,V.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return d.createElement(sr.Z,{fullWidth:t,margin:a,variant:s},d.createElement(br.Z,Object.assign({size:"large",variant:"outlined"},(0,O.z)(c),{disabled:!f,onClick:()=>{i||p.onChange(p.value.concat([U()(o)]))}}),r))}),{initialValue:!1,kind:"leaf"}),Er=t(88483),yr=t(92133);var Or=(0,C.e)((function(e){var{disabled:n,icon:t="-",name:r,readOnly:a}=e,l=(0,v._T)(e,["disabled","icon","name","readOnly"]);const i=(0,z.m)(null,r),o=+i[i.length-1],s=(0,z.m)(i.slice(0,-1)),c=(0,V.U)(s,{},{absoluteName:!0})[0];return n||(n=a||c.minCount>=c.value.length),d.createElement(yr.Z,Object.assign({},(0,O.z)(l),{disabled:n,onClick:()=>{const e=c.value.slice();e.splice(o,1),c.onChange(e)},size:"large"}),t)}),{initialValue:!1,kind:"leaf"});var Cr=(0,C.e)((function(e){let{children:n=d.createElement(Rr,{label:null,name:""}),dense:t=!0,disableGutters:r,divider:a,removeIcon:l}=e;return d.createElement(Er.ZP,{dense:t,disableGutters:r,divider:a},n,d.createElement(Or,{name:"",icon:l}))}),{initialValue:!1});var xr=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(Cr,{name:"$"}),itemProps:r,label:a,value:l}=e,i=(0,v._T)(e,["addIcon","children","itemProps","label","value"]);return d.createElement(d.Fragment,null,d.createElement(hr.Z,Object.assign({dense:!0,subheader:a?d.createElement(gr.Z,{disableSticky:!0},a):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,n)=>d.Children.map(t,((e,t)=>{var a;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n)},r)):e}))))),d.createElement(_r,{icon:n,name:"$"}))}));var kr=(0,C.e)((function(e){var{children:n,fields:t,fullWidth:r=!0,itemProps:a,label:l,margin:i="dense"}=e,o=(0,v._T)(e,["children","fields","fullWidth","itemProps","label","margin"]);return ur(Object.assign(Object.assign({fullWidth:r,margin:i},o),{component:void 0}),l&&d.createElement(ir.Z,{component:"legend"},l),n||t.map((e=>d.createElement(Rr,Object.assign({key:e,name:e},a)))))}));var jr=(0,C.e)((function(e){var{decimal:n,disabled:t,error:r,errorMessage:a,helperText:l,inputProps:i,inputRef:o,label:s,max:c,min:u,name:m,onChange:p,readOnly:f,placeholder:h,showInlineError:g,step:b=(n?.01:1),value:_}=e,E=(0,v._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);return d.createElement(mr.Z,Object.assign({disabled:t,error:!!r,fullWidth:!0,helperText:!!r&&g&&a||l,inputProps:Object.assign({min:u,max:c,readOnly:f,step:b},i),label:s,margin:"dense",name:m,onChange:e=>{const t=(n?parseFloat:parseInt)(e.target.value);p(isNaN(t)?void 0:t)},placeholder:h,ref:o,type:"number",value:null!=_?_:""},(0,O.z)(E)))}),{kind:"leaf"}),Fr=t(8993),Nr=t(20750);const Pr="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,wr=e=>Pr(encodeURIComponent(e)).replace(/=+$/,"");var Mr=(0,C.e)((function(e){var{options:n,disabled:t,fullWidth:r=!0,id:a,inputRef:l,label:i,margin:o="dense",name:s,onChange:c,readOnly:u,row:m,value:p}=e,f=(0,v._T)(e,["options","disabled","fullWidth","id","inputRef","label","margin","name","onChange","readOnly","row","value"]);return ur(Object.assign(Object.assign({},f),{component:"fieldset",disabled:t,fullWidth:r,margin:o}),i&&d.createElement(ir.Z,{component:"legend",htmlFor:s},i),d.createElement(Nr.Z,{id:a,name:s,onChange:e=>t||u||c(e.target.value),ref:l,row:m,value:null!=p?p:""},null==n?void 0:n.map((e=>{var n,t;return d.createElement(ar.Z,{control:d.createElement(Fr.Z,Object.assign({id:`${a}-${wr(e.value)}`},We()((0,O.z)(f),["checkboxes","helperText"]))),htmlFor:`${a}-${wr(e.value)}`,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(t=e.label)&&void 0!==t?t:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),Tr=t(13455);const Dr="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Ir=e=>Dr(encodeURIComponent(e)).replace(/=+$/,"");var Ar=(0,C.e)((function(e){var n,t;const r=null!==(n=e.value)&&void 0!==n?n:"";if(e.checkboxes){const{options:n,disabled:a,fieldType:l,id:i,inputRef:o,label:s,legend:c,name:u,onChange:m,readOnly:p}=e,f="checkbox"===(null!==(t=e.appearance)&&void 0!==t?t:"checkbox")?rr.Z:or.Z,v=We()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),h=l!==Array?d.createElement(Nr.Z,{id:i,name:u,onChange:e=>a||p||m(e.target.value),ref:o,value:null!=r?r:""},n.map((e=>{var n,t,r;return d.createElement(ar.Z,{control:d.createElement(Fr.Z,Object.assign({id:`${i}-${null!==(n=e.key)&&void 0!==n?n:Ir(e.value)}`},v)),disabled:e.disabled||a,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(r=e.label)&&void 0!==r?r:e.value,value:e.value})}))):d.createElement(lr.Z,{id:i},n.map((e=>{var n,t,l;return d.createElement(ar.Z,{control:d.createElement(f,Object.assign({checked:r.includes(e.value),id:`${i}-${null!==(n=e.key)&&void 0!==n?n:Ir(e.value)}`,name:u,onChange:()=>a||p||m(cn()([e.value],r)),ref:o,value:u},v)),disabled:e.disabled||a,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(l=e.label)&&void 0!==l?l:e.value})})));return ur(Object.assign(Object.assign({},e),{component:"fieldset"}),(c||s)&&d.createElement(ir.Z,{component:"legend"},c||s),h)}const{options:a,disabled:l,error:i,errorMessage:o,fieldType:s,fullWidth:c=!0,helperText:u,id:m,InputLabelProps:p,inputProps:f,label:v,labelProps:h,margin:g="dense",name:b,native:_,onChange:E,placeholder:y,readOnly:C,required:x,showInlineError:k,variant:j,textFieldProps:F}=e,N=_?"option":Tr.Z,P=!!y,w=""!==r&&void 0!==r,M=We()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return d.createElement(mr.Z,Object.assign({disabled:l,error:!!i,fullWidth:c,helperText:!!i&&k&&o||u,InputLabelProps:Object.assign(Object.assign({shrink:!!v&&(P||w)},h),p),label:v,margin:g,onChange:e=>l||C||E(""!==e.target.value?e.target.value:void 0),required:x,select:!0,SelectProps:Object.assign({displayEmpty:P,inputProps:Object.assign({name:b,id:m},f),multiple:s===Array||void 0,native:_},M),value:_&&!r?"":r,variant:j},F),(P||!x||!w)&&d.createElement(N,{value:"",disabled:!!x},y||v),a.map((e=>{var n,t;return d.createElement(N,{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)})))}),{kind:"leaf"});var Sr=(0,C.e)((function(e){var{disabled:n,error:t,errorMessage:r,helperText:a,inputRef:l,label:i,name:o,onChange:s,placeholder:c,readOnly:u,showInlineError:m,type:p="text",value:f=""}=e,h=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return d.createElement(mr.Z,Object.assign({disabled:n,error:!!t,fullWidth:!0,helperText:!!t&&m&&r||a,inputProps:{readOnly:u},label:i,margin:"dense",name:o,onChange:e=>n||s(e.target.value),placeholder:c,ref:l,type:p,value:f},(0,O.z)(h)))}),{kind:"leaf"});var Rr=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Mr:Ar;switch(e.fieldType){case Array:return xr;case Boolean:return dr;case Date:return vr;case Number:return jr;case Object:return kr;case String:return Sr}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Br(e){var{element:n=d.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,d.createElement)(Rr,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var Lr=function e(n){class t extends n{}return t.Material=e,t.displayName=`Material${n.displayName}`,t}(ye.I);var Wr=function(e){var{children:n,fullWidth:t=!0,margin:r,variant:a}=e,l=(0,v._T)(e,["children","fullWidth","margin","variant"]);const{error:i,schema:o}=(0,be.c)();return i||n?d.createElement(sr.Z,{error:!!i,fullWidth:!!t,margin:r,variant:a},!!n&&d.createElement(cr.Z,Object.assign({},(0,O.z)(l)),n),o.getErrorMessages(i).map(((e,n)=>d.createElement(cr.Z,Object.assign({key:n},(0,O.z)(l)),e)))):null};var Zr=function(e){var{children:n,disabled:t,inputRef:r,label:a="Submit",value:l}=e,i=(0,v._T)(e,["children","disabled","inputRef","label","value"]);const{error:o,state:s}=(0,be.c)();return d.createElement(br.Z,Object.assign({disabled:void 0===t?!(!o&&!s.disabled):t,ref:r,type:"submit",value:l,variant:"contained"},(0,O.z)(i)),n||a)};var Ur=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Rr}getErrorsField(){return Wr}getSubmitField(){return Zr}}return t.Quick=e,t}(Lr);var zr=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(Lr),Vr=zr.Validated(Ur.Quick(Lr));var $r=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Vr);var Kr=(0,C.e)((function(e){var{children:n,error:t,errorMessage:r,fullWidth:a,margin:l,variant:i}=e,o=(0,v._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);return t?d.createElement(sr.Z,{error:!!t,fullWidth:!!a,margin:"dense"===l?l:void 0,variant:i},d.createElement(cr.Z,Object.assign({},(0,O.z)(o)),n||r)):null}),{initialValue:!1,kind:"leaf"});function qr(e){var n,{value:t}=e,r=(0,v._T)(e,["value"]);const a=(0,V.U)(r.name,r,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:d.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var Qr=(0,C.e)((e=>{var{disabled:n,error:t,errorMessage:r,helperText:a,inputRef:l,label:i,name:o,onChange:s,placeholder:c,readOnly:u,showInlineError:m,type:p="text",value:f}=e,h=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return d.createElement(mr.Z,Object.assign({disabled:n,error:!!t,fullWidth:!0,helperText:!!t&&m&&r||a,inputProps:{readOnly:u},label:i,margin:"dense",multiline:!0,name:o,onChange:e=>n||s(e.target.value),placeholder:c,ref:l,type:p,value:null!=f?f:""},(0,O.z)(h)))}),{kind:"leaf"}),Jr=t(68599);function Hr(e){var{element:n=d.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,d.createElement)(Jr.Z,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var Gr=t(2310),Xr=t(99574),Yr=t(12138),ea=t(14449);var na=(0,C.e)((function(e){var{children:n,className:t,error:r,errorMessage:a}=e,l=(0,v._T)(e,["children","className","error","errorMessage"]);return r?d.createElement("div",Object.assign({className:R()("ui",t,"error message")},(0,O.z)(l)),n||d.createElement("div",{className:"header"},a)):null}),{initialValue:!1,kind:"leaf"}),ta=t(43351);function ra(e){var n,{value:t}=e,r=(0,v._T)(e,["value"]);const a=(0,V.U)(r.name,r,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:d.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var aa=t(77900),la=t(960),ia=t(64694),oa=t(18747);var sa=(0,C.e)((function(e){var{className:n,disabled:t,error:r,errorMessage:a,id:l,inputRef:i,label:o,name:s,onChange:c,placeholder:u,readOnly:m,required:p,showInlineError:f,value:h}=e,g=(0,v._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);return d.createElement("div",Object.assign({className:R()(n,{disabled:t,error:r,required:p},"field")},(0,O.z)(g)),o&&d.createElement("label",{htmlFor:l},o),d.createElement("textarea",{disabled:t,id:l,name:s,onChange:e=>c(e.target.value),placeholder:u,readOnly:m,ref:i,value:null!=h?h:""}),!(!r||!f)&&d.createElement("div",{className:"ui red basic pointing label"},a))}),{kind:"leaf"}),ca=t(80661),ua=t(59492),da=t(52559),ma=t(44591),pa=t(47822),fa=t(82986),va=t(99086),ha=t(3684),ga=t(79904);var ba=(0,C.e)((function(e){var{disabled:n,id:t,inputRef:r,label:a,name:l,onChange:i,readOnly:o,value:s}=e,c=(0,v._T)(e,["disabled","id","inputRef","label","name","onChange","readOnly","value"]);return d.createElement("div",Object.assign({},(0,O.z)(c)),d.createElement("input",{checked:s||!1,disabled:n,id:t,name:l,onChange:()=>!n&&!o&&i(!s),ref:r,type:"checkbox"}),a&&d.createElement("label",{htmlFor:t},a))}),{kind:"leaf"});const _a=("object"==typeof t.g?t.g:window).Date,Ea=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var ya=(0,C.e)((function(e){var n,{disabled:t,id:r,inputRef:a,label:l,max:i,min:o,name:s,onChange:c,placeholder:u,readOnly:m,value:p,type:f="datetime-local"}=e,h=(0,v._T)(e,["disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","value","type"]);return d.createElement("div",Object.assign({},(0,O.z)(h)),l&&d.createElement("label",{htmlFor:r},l),d.createElement("input",{disabled:t,id:r,max:Ea(i),min:Ea(o),name:s,onChange:e=>{const n=new _a(e.target.valueAsNumber);n.getFullYear()<1e4?c(n):isNaN(e.target.valueAsNumber)&&c(void 0)},placeholder:u,readOnly:m,ref:a,type:f,value:null!==(n=Ea(p,f))&&void 0!==n?n:""}))}),{kind:"leaf"});var Oa=(0,C.e)((function(e){var{disabled:n,name:t,readOnly:r,value:a}=e,l=(0,v._T)(e,["disabled","name","readOnly","value"]);const i=(0,z.m)(null,t),o=(0,z.m)(i.slice(0,-1)),s=(0,V.U)(o,{},{absoluteName:!0})[0],c=!(n||s.maxCount<=s.value.length);function u(e){!c||r||"key"in e&&"Enter"!==e.key||s.onChange(s.value.concat([U()(a)]))}return d.createElement("span",Object.assign({},(0,O.z)(l),{onClick:u,onKeyDown:u,role:"button",tabIndex:0}),"+")}),{initialValue:!1,kind:"leaf"});var Ca=(0,C.e)((function(e){var{disabled:n,name:t,readOnly:r}=e,a=(0,v._T)(e,["disabled","name","readOnly"]);const l=(0,z.m)(null,t),i=+l[l.length-1],o=(0,z.m)(l.slice(0,-1)),s=(0,V.U)(o,{},{absoluteName:!0})[0];function c(e){if(!(n||"key"in e&&"Enter"!==e.key)){const e=s.value.slice();e.splice(i,1),s.onChange(e)}}return n||(n=r||s.minCount>=s.value.length),d.createElement("span",Object.assign({},(0,O.z)(a),{onClick:c,onKeyDown:c,role:"button",tabIndex:0}),"-")}),{initialValue:!1,kind:"leaf"});var xa=(0,C.e)((function(e){let{children:n=d.createElement(Sa,{label:null,name:""})}=e;return d.createElement("div",null,d.createElement(Ca,{name:""}),n)}),{initialValue:!1});var ka=(0,C.e)((function(e){var{children:n=d.createElement(xa,{name:"$"}),itemProps:t,label:r,value:a}=e,l=(0,v._T)(e,["children","itemProps","label","value"]);return d.createElement("ul",Object.assign({},(0,O.z)(l)),r&&d.createElement("label",null,r,d.createElement(Oa,{name:"$"})),null==a?void 0:a.map(((e,r)=>d.Children.map(n,((e,n)=>{var a;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${r}-${n}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+r)},t)):e})))))}));var ja=(0,C.e)((function(e){var{children:n,fields:t,itemProps:r,label:a}=e,l=(0,v._T)(e,["children","fields","itemProps","label"]);return d.createElement("div",Object.assign({},(0,O.z)(l)),a&&d.createElement("label",null,a),n||t.map((e=>d.createElement(Sa,Object.assign({key:e,name:e},r)))))}));var Fa=(0,C.e)((function(e){var{decimal:n,disabled:t,id:r,inputRef:a,label:l,max:i,min:o,name:s,onChange:c,placeholder:u,readOnly:m,step:p,value:f}=e,h=(0,v._T)(e,["decimal","disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","step","value"]);return d.createElement("div",Object.assign({},(0,O.z)(h)),l&&d.createElement("label",{htmlFor:r},l),d.createElement("input",{disabled:t,id:r,max:i,min:o,name:s,onChange:e=>{const t=(n?parseFloat:parseInt)(e.target.value);c(isNaN(t)?void 0:t)},placeholder:u,readOnly:m,ref:a,step:p||(n?.01:1),type:"number",value:null!=f?f:""}))}),{kind:"leaf"});const Na="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Pa=e=>Na(encodeURIComponent(e)).replace(/=+$/,"");var wa=(0,C.e)((function(e){var{options:n,disabled:t,id:r,label:a,name:l,onChange:i,readOnly:o,value:s}=e,c=(0,v._T)(e,["options","disabled","id","label","name","onChange","readOnly","value"]);return d.createElement("div",Object.assign({},We()((0,O.z)(c),["checkboxes"])),a&&d.createElement("label",null,a),null==n?void 0:n.map((e=>{var n,a,c,u;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value},d.createElement("input",{checked:e.value===s,disabled:e.disabled||t,id:`${r}-${null!==(a=e.key)&&void 0!==a?a:Pa(e.value)}`,name:l,onChange:()=>{o||i(e.value)},type:"radio"}),d.createElement("label",{htmlFor:`${r}-${null!==(c=e.key)&&void 0!==c?c:Pa(e.value)}`},null!==(u=e.label)&&void 0!==u?u:e.value))})))}),{kind:"leaf"});const Ma="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Ta=e=>Ma(encodeURIComponent(e)).replace(/=+$/,"");var Da=(0,C.e)((function(e){var{checkboxes:n,disabled:t,fieldType:r,id:a,inputRef:l,label:i,name:o,onChange:s,placeholder:c,readOnly:u,required:m,value:p,options:f}=e,h=(0,v._T)(e,["checkboxes","disabled","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","value","options"]);const g=r===Array;return d.createElement("div",Object.assign({},(0,O.z)(h)),i&&d.createElement("label",{htmlFor:a},i),n?null==f?void 0:f.map((e=>{var n,l,i,c,m;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value},d.createElement("input",{checked:r===Array?null==p?void 0:p.includes(e.value):p===e.value,disabled:null!==(l=e.disabled)&&void 0!==l?l:t,id:`${a}-${null!==(i=e.key)&&void 0!==i?i:Ta(e.value)}`,name:o,onChange:()=>{u||s(r===Array?cn()([e.value],p):e.value)},type:"checkbox"}),d.createElement("label",{htmlFor:`${a}-${null!==(c=e.key)&&void 0!==c?c:Ta(e.value)}`},null!==(m=e.label)&&void 0!==m?m:e.value))})):d.createElement("select",{disabled:t,id:a,multiple:g,name:o,onChange:e=>{if(!u){const n=e.target.value;if(g){const t=-1===e.target.selectedIndex;s(t?[]:cn()([n],p))}else s(""!==n?n:void 0)}},ref:l,value:null!=p?p:""},(!!c||!m||void 0===p)&&!g&&d.createElement("option",{value:"",disabled:m,hidden:m},c||i),null==f?void 0:f.map((e=>{var n,t;return d.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});function Ia(e){var{autoComplete:n,disabled:t,id:r,inputRef:a,label:l,name:i,onChange:o,placeholder:s,readOnly:c,type:u,value:m}=e,p=(0,v._T)(e,["autoComplete","disabled","id","inputRef","label","name","onChange","placeholder","readOnly","type","value"]);return d.createElement("div",Object.assign({},(0,O.z)(p)),l&&d.createElement("label",{htmlFor:r},l),d.createElement("input",{autoComplete:n,disabled:t,id:r,name:i,onChange:e=>o(e.target.value),placeholder:s,readOnly:c,ref:a,type:u,value:null!=m?m:""}))}Ia.defaultProps={type:"text"};var Aa=(0,C.e)(Ia,{kind:"leaf"});var Sa=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?wa:Da;switch(e.fieldType){case Array:return ka;case Boolean:return ba;case Date:return ya;case Number:return Fa;case Object:return ja;case String:return Aa}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Ra(e){var{element:n=d.Fragment,fields:t,omitFields:r=[]}=e,a=(0,v._T)(e,["element","fields","omitFields"]);const{schema:l}=(0,be.c)();return(0,d.createElement)(n,a,(null!=t?t:l.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,d.createElement)(Sa,{key:e,name:e}))))}var Ba=function e(n){class t extends n{}return t.Unstyled=e,t.displayName=`Unstyled${n.displayName}`,t}(ye.I);function La(e){const{error:n,schema:t}=(0,be.c)();return n||e.children?d.createElement("div",Object.assign({},(0,O.z)(e)),e.children,d.createElement("ul",null,t.getErrorMessages(n).map(((e,n)=>d.createElement("li",{key:n},e))))):null}function Wa(e){var{disabled:n,inputRef:t,readOnly:r,value:a}=e,l=(0,v._T)(e,["disabled","inputRef","readOnly","value"]);const{error:i,state:o}=(0,be.c)();return d.createElement("input",Object.assign({disabled:void 0===n?!(!i&&!o.disabled):n,readOnly:r,ref:t,type:"submit"},a?{value:a}:{},(0,O.z)(l)))}var Za=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Sa}getErrorsField(){return La}getSubmitField(){return Wa}}return t.Quick=e,t}(Ba);var Ua=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(Ba),za=Ua.Validated(Za.Quick(Ba));var Va=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(za);var $a=(0,C.e)((function(e){var{children:n,error:t,errorMessage:r}=e,a=(0,v._T)(e,["children","error","errorMessage"]);return t?d.createElement("div",Object.assign({},(0,O.z)(a)),n||r):null}),{initialValue:!1,kind:"leaf"});function Ka(e){var n,{value:t}=e,r=(0,v._T)(e,["value"]);const a=(0,V.U)(r.name,r,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:d.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var qa=t(96614);const Qa=ll("AutoFields"),Ja=ll("AutoField"),Ha=ll("AutoForm"),Ga=(ll("BaseForm"),ll("BoolField"),ll("DateField"),ll("ErrorField")),Xa=ll("ErrorsField"),Ya=(ll("HiddenField"),ll("ListAddField"),ll("ListDelField"),ll("ListField"),ll("ListItemField"),ll("LongTextField")),el=(ll("NestField"),ll("NumField"),ll("QuickForm"),ll("RadioField"),ll("SelectField")),nl=ll("SubmitField"),tl=ll("TextField"),rl=(ll("ValidatedForm"),ll("ValidatedQuickForm"),{antd:r,bootstrap4:a,bootstrap5:l,material:i,mui:o,semantic:s,unstyled:c}),al=(0,d.createContext)("unstyled");function ll(e){return function(n){const t=(0,d.useContext)(al),r=rl[t][e];return d.createElement(r,(0,u.Z)({key:t},n))}}},37309:function(e,n,t){"use strict";t.d(n,{mB:function(){return u},nN:function(){return s},rh:function(){return c}});var r=t(14648),a=t.n(r),l=t(17728),i=t.n(l);const o=["preset","props","theme"],s=e=>i().compressToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");function c(e){try{const n=a()(e,o),t=JSON.stringify(n),r=s(t),l="?"+encodeURIComponent(r);window.location.hash=l}catch(n){}}function u(){try{const n=document.location.hash.replace(/^#\?/,""),t=decodeURIComponent(n),r=(e=t,i().decompressFromBase64(e.replace(/-/g,"+").replace(/_/g,"/"))),l=JSON.parse(r??"");return a()(l,o)}catch(n){return{}}var e}},49359:function(e,n,t){"use strict";t.d(n,{H:function(){return v}});var r=t(27378),a=t(80912),l=t(76424),i=t(86236),o=t.n(i),s=t(73633);const c=new(o())({allErrors:!0,useDefaults:!0}),u={title:"Guest",type:"object",properties:{firstName:{type:"string"},lastName:{type:"string"},workExperience:{description:"Work experience in years",type:"integer",minimum:0,maximum:100}},required:["firstName","lastName"]},d={title:"Guest",type:"object",properties:{personA:u,personB:u},required:["personA","personB"]};const m=function(e){const n=c.compile(e);return e=>{var t;return n(e),null!=(t=n.errors)&&t.length?{details:n.errors}:null}}(d),p=new s.j({schema:d,validator:m});const f=(0,l.e)((function(){return r.createElement("section",null,r.createElement(a.Pt,{name:"firstName"}),r.createElement(a.Pt,{name:"lastName"}),r.createElement(a.Pt,{name:"workExperience"}))}));function v(){return r.createElement(a.NE,{schema:p,onSubmit:e=>alert(JSON.stringify(e,null,2))},r.createElement(f,{name:"personA"}),r.createElement("hr",null),r.createElement(f,{name:"personB"}),r.createElement("br",null),r.createElement(a.hl,null))}},19282:function(e,n,t){"use strict";t.d(n,{L:function(){return f}});var r=t(27378),a=t(80912),l=t(76424),i=t(86236),o=t.n(i),s=t(73633);const c=new(o())({allErrors:!0,useDefaults:!0}),u={title:"Cycle",type:"object",properties:{cycle:{type:"string"}}};const d=function(e){const n=c.compile(e);return e=>{var t;return n(e),null!=(t=n.errors)&&t.length?{details:n.errors}:null}}(u),m=new s.j({schema:u,validator:d});const p=(0,l.e)((function(e){let{options:n,label:t,onChange:a,required:l,value:i}=e;return r.createElement("button",{style:{border:"1px solid black",color:"#0e0e0e",cursor:"pointer",display:"inline-block",margin:"1em 0",padding:"1em"},type:"button",onClick:()=>a(i?n.findIndex((e=>e.value===i))===n.length-1?l?n[0].value:void 0:n[n.findIndex((e=>e.value===i))+1].value:n[0].value)},"\u27a1 ",i||t," \u27a1")}));function f(){return r.createElement(a.NE,{schema:m,onSubmit:e=>alert(JSON.stringify(e,null,2))},r.createElement(p,{name:"cycle",options:[{label:"One",value:1},{label:"Two",value:2},{label:"Three",value:3}]}),r.createElement("br",null),r.createElement(a.hl,null))}},91663:function(e,n,t){"use strict";t.d(n,{m:function(){return f}});var r=t(27378),a=t(80912),l=t(55201),i=t(86236),o=t.n(i),s=t(73633);const c=new(o())({allErrors:!0,useDefaults:!0}),u={title:"DisplayIf",type:"object",properties:{fieldA:{type:"string"},fieldB:{type:"string"}}};const d=function(e){const n=c.compile(e);return e=>{var t;return n(e),null!=(t=n.errors)&&t.length?{details:n.errors}:null}}(u),m=new s.j({schema:u,validator:d});function p(e){let{children:n,condition:t}=e;return t((0,l.c)())?r.Children.only(n):null}function f(){return r.createElement(a.NE,{schema:m,onSubmit:e=>alert(JSON.stringify(e,null,2))},r.createElement(a.nv,{name:"fieldA"}),r.createElement(p,{condition:e=>!!e.model.fieldA},r.createElement("section",null,r.createElement(a.nv,{name:"fieldB"}),r.createElement(p,{condition:e=>!!e.model.fieldB},r.createElement("span",null,"Well done!")))),r.createElement(a.hl,null))}},85576:function(e,n,t){"use strict";t.d(n,{K:function(){return f}});var r=t(27378),a=t(80912),l=t(76424),i=t(86236),o=t.n(i),s=t(73633);const c=new(o())({allErrors:!0,useDefaults:!0}),u={title:"Guest",type:"object",properties:{pictureUrl:{type:"string"}}};const d=function(e){const n=c.compile(e);return e=>{var t;return n(e),null!=(t=n.errors)&&t.length?{details:n.errors}:null}}(u),m=new s.j({schema:u,validator:d});const p=(0,l.e)((function(e){let{onChange:n,value:t}=e;return r.createElement("div",{className:"ImageField"},r.createElement("label",{htmlFor:"file-input"},r.createElement("div",null,"Choose your photo"),r.createElement("img",{alt:"",src:t||"https://picsum.photos/150?grayscale",style:{cursor:"pointer",width:"150px",height:"150px"}})),r.createElement("input",{accept:"image/*",id:"file-input",onChange:e=>{let{target:{files:t}}=e;t&&t[0]&&n(URL.createObjectURL(t[0]))},style:{display:"none"},type:"file"}))}));function f(){return r.createElement(a.NE,{schema:m,onSubmit:e=>alert(JSON.stringify(e,null,2))},r.createElement("div",{style:{textAlign:"center"}},r.createElement(p,{name:"pictureUrl"}),r.createElement(a.hl,null)))}},21724:function(e,n,t){"use strict";t.d(n,{N:function(){return h}});var r=t(27378),a=t(80912),l=t(76424),i=t(86236),o=t.n(i),s=t(73633);const c=new(o())({allErrors:!0,formats:{"date-time":!0},useDefaults:!0}),u={title:"Date Range",type:"object",properties:{range:{type:"object",properties:{start:{type:"string",format:"date-time"},stop:{type:"string",format:"date-time"}},required:["start","stop"]}}};const d=function(e){const n=c.compile(e);return e=>{var t;return n(e),null!=(t=n.errors)&&t.length?{details:n.errors}:null}}(u),m=new s.j({schema:u,validator:d}),p={start:new Date,stop:new Date};const f=(0,l.e)((function(e){let{value:{start:n,stop:t}=p}=e;return r.createElement("div",null,r.createElement(a.Pt,{InputLabelProps:{shrink:!0},name:"start",max:t}),r.createElement(a.Pt,{InputLabelProps:{shrink:!0},name:"stop",min:n}))})),v={range:{start:new Date(2019,7,10),stop:new Date(2019,7,20)}};function h(){return r.createElement(a.NE,{model:v,modelTransform:function(e,n){if("validate"===e){const{start:e,stop:t}=n.range||{};return{range:{start:e&&e.toISOString(),stop:t&&t.toISOString()}}}return n},schema:m,onSubmit:e=>alert(JSON.stringify(e,null,2))},r.createElement(f,{name:"range"}),r.createElement("br",null),r.createElement(a.hl,null))}},33419:function(e,n,t){"use strict";t.d(n,{C:function(){return h}});var r=t(27378),a=t(60042),l=t.n(a),i=t(80912),o=t(76424),s=t(86236),c=t.n(s),u=t(73633);const d=new(c())({allErrors:!0,useDefaults:!0}),m={title:"Rating",type:"object",properties:{rating:{type:"integer"}}};const p=function(e){const n=d.compile(e);return e=>{var t;return n(e),null!=(t=n.errors)&&t.length?{details:n.errors}:null}}(m),f=new u.j({schema:m,validator:p});const v=(0,o.e)((function(e){let{className:n,disabled:t,max:a=5,onChange:i,required:o,value:s=0}=e;function c(e,n){t||"key"in e&&"Enter"!==e.key||i(o||s!==n?n:void 0)}return r.createElement("div",{className:l()("ui",{disabled:t,required:o},n)},Array.from({length:a},((e,n)=>n+1)).map((e=>r.createElement("span",{style:{fontSize:40,cursor:"pointer"},key:e,onClick:n=>c(n,e),onKeyDown:n=>c(n,e),role:"button",tabIndex:0},e<=s?"\u2605":"\u2606"))))}));function h(){return r.createElement(i.NE,{schema:f,model:{rating:3},onSubmit:e=>alert(JSON.stringify(e,null,2))},r.createElement(v,{name:"rating"}),r.createElement("br",null),r.createElement(i.hl,null))}},10515:function(e,n,t){"use strict";t.d(n,{j:function(){return g}});var r=t(27378),a=t(80912),l=t(55201),i=t(76424),o=t(86236),s=t.n(o),c=t(73633);const u=new(s())({allErrors:!0,useDefaults:!0}),d={title:"Guest",type:"object",properties:{firstName:{type:"string"},lastName:{type:"string"},workExperience:{description:"Work experience in years",type:"integer",minimum:0,maximum:100}},required:["firstName","lastName"]},m={title:"Guest",type:"object",properties:{personA:d,personB:d},required:["personA","personB"]};const p=function(e){const n=u.compile(e);return e=>{var t;return n(e),null!=(t=n.errors)&&t.length?{details:n.errors}:null}}(m),f=new c.j({schema:m,validator:p});function v(){const{error:e,state:{disabled:n},submitting:t,validating:a}=(0,l.c)();return r.createElement("input",{disabled:!!e||n||t||a,type:"submit"})}const h=(0,i.e)((function(){return r.createElement("section",null,r.createElement(a.Pt,{name:"firstName"}),r.createElement(a.Pt,{name:"lastName"}),r.createElement(a.Pt,{name:"workExperience"}))}));function g(){return r.createElement(a.NE,{schema:f,onSubmit:e=>alert(JSON.stringify(e,null,2))},r.createElement(h,{name:"personA"}),r.createElement("hr",null),r.createElement(h,{name:"personB"}),r.createElement("br",null),r.createElement(v,null))}},70775:function(e,n,t){"use strict";t.d(n,{z:function(){return O}});var r=t(27378),a=t(99729),l=t.n(a),i=t(80912),o=t(23615),s=t.n(o);function c(){return c=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},c.apply(this,arguments)}function u(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var d=(0,r.forwardRef)((function(e,n){var t=e.color,a=void 0===t?"currentColor":t,l=e.size,i=void 0===l?24:l,o=u(e,["color","size"]);return r.createElement("svg",c({ref:n,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},o),r.createElement("polyline",{points:"23 4 23 10 17 10"}),r.createElement("polyline",{points:"1 20 1 14 7 14"}),r.createElement("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"}))}));d.propTypes={color:s().string,size:s().oneOfType([s().string,s().number])},d.displayName="RefreshCw";var m=d,p=t(55201),f=t(86236),v=t.n(f),h=t(73633);const g=new(v())({allErrors:!0,useDefaults:!0}),b={title:"Guest",type:"object",properties:{firstName:{type:"string"},lastName:{type:"string"}},required:["firstName","lastName"]};const _=function(e){const n=g.compile(e);return e=>{var t;return n(e),null!=(t=n.errors)&&t.length?{details:n.errors}:null}}(b),E=new h.j({schema:b,validator:_});function y(e){let{children:n,fieldA:t,fieldB:a}=e;const{model:i,onChange:o}=(0,p.c)();return r.createElement("span",{style:{display:"flex",justifyContent:"center"}},(0,r.cloneElement)(r.Children.only(n),{onClick(){const e=l()(i,t),n=l()(i,a);o(t,n),o(a,e)}}))}function O(){return r.createElement("section",null,r.createElement(i.NE,{model:{firstName:"John",lastName:"Doe"},schema:E,onSubmit:e=>alert(JSON.stringify(e,null,2))},r.createElement(i.nv,{name:"firstName"}),r.createElement(y,{fieldA:"firstName",fieldB:"lastName"},r.createElement(m,{style:{cursor:"pointer"}})),r.createElement(i.nv,{name:"lastName"}),r.createElement(i.hl,null)))}},6208:function(e,n,t){"use strict";t.r(n),t.d(n,{assets:function(){return c},contentTitle:function(){return o},default:function(){return m},frontMatter:function(){return i},metadata:function(){return s},toc:function(){return u}});var r=t(25773),a=(t(27378),t(35318)),l=t(23197);const i={id:"examples-custom-fields",title:"Custom fields"},o=void 0,s={unversionedId:"examples-custom-fields",id:"examples-custom-fields",title:"Custom fields",description:"CompositeField",source:"@site/../docs/examples-custom-fields.mdx",sourceDirName:".",slug:"/examples-custom-fields",permalink:"/docs/examples-custom-fields",draft:!1,tags:[],version:"current",frontMatter:{id:"examples-custom-fields",title:"Custom fields"},sidebar:"docs",previous:{title:"Common forms",permalink:"/docs/examples-common-forms"},next:{title:"Custom bridge & validator",permalink:"/docs/examples-custom-bridge"}},c={},u=[{value:"<code>CompositeField</code>",id:"compositefield",level:3},{value:"<code>CustomAutoField</code>",id:"customautofield",level:3},{value:"<code>CycleField</code>",id:"cyclefield",level:3},{value:"<code>DisplayIf</code>",id:"displayif",level:3},{value:"<code>ImageField</code>",id:"imagefield",level:3},{value:"<code>RangeField</code>",id:"rangefield",level:3},{value:"<code>RatingField</code>",id:"ratingfield",level:3},{value:"<code>SubmitButton</code>",id:"submitbutton",level:3},{value:"<code>SwapField</code>",id:"swapfield",level:3}],d={toc:u};function m(e){let{components:n,...i}=e;return(0,a.kt)("wrapper",(0,r.Z)({},d,i,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h3",{id:"compositefield"},(0,a.kt)("inlineCode",{parentName:"h3"},"CompositeField")),(0,a.kt)("p",null,"This field is a kind of a shortcut for few fields. You can also access all\nfield props here, like value or onChange for some extra logic."),(0,a.kt)(l.T,{code:t(17576),example:t(49359).H,schema:t(66801),mdxType:"ExampleCustomizer"}),(0,a.kt)("h3",{id:"customautofield"},(0,a.kt)("inlineCode",{parentName:"h3"},"CustomAutoField")),(0,a.kt)("p",null,(0,a.kt)("strong",{parentName:"p"},"Note:")," Since v3.1, the preferred way is to create an ",(0,a.kt)("inlineCode",{parentName:"p"},"AutoField")," component is to use the ",(0,a.kt)("inlineCode",{parentName:"p"},"createAutoField")," helper. Also, it's often the case that using the ",(0,a.kt)("a",{parentName:"p",href:"/docs/uth-autofield-algorithm#overriding-autofield"},(0,a.kt)("inlineCode",{parentName:"a"},"AutoField.componentDetectorContext"))," is enough."),(0,a.kt)("p",null,"These are two ",(0,a.kt)("em",{parentName:"p"},"standard")," options to define a custom ",(0,a.kt)("inlineCode",{parentName:"p"},"AutoField"),": either using ",(0,a.kt)("inlineCode",{parentName:"p"},"connectField")," or simply taking the code from the ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/blob/master/packages/uniforms-unstyled/src/AutoField.tsx#L14-L47"},"original one")," ",(0,a.kt)("em",{parentName:"p"},"(theme doesn't matter)")," and simply apply own components and/or rules to render components. Below an example with ",(0,a.kt)("inlineCode",{parentName:"p"},"connectField"),"."),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-tsx"},"// Remember to choose a correct theme package\nimport { AutoField } from 'uniforms-unstyled';\n\nconst CustomAuto = props => {\n // This way we don't care about unhandled cases - we use default\n // AutoField as a fallback component.\n const Component = determineComponentFromProps(props) || AutoField;\n\n return <Component {...props} name=\"\" />;\n};\n\nconst CustomAutoField = connectField(CustomAuto, {\n initialValue: false,\n});\n\nconst CustomAutoFieldDetector = () => {\n return CustomAutoField;\n};\n\n<AutoField.componentDetectorContext.Provider value={CustomAutoFieldDetector}>\n <Application />\n</AutoField.componentDetectorContext.Provider>;\n")),(0,a.kt)("h3",{id:"cyclefield"},(0,a.kt)("inlineCode",{parentName:"h3"},"CycleField")),(0,a.kt)("p",null,"This field works as follows: iterate all allowed values and optionally no-value\nstate if the field is not required. This one uses Semantic-UI."),(0,a.kt)(l.T,{code:t(4062),example:t(19282).L,schema:t(97327),mdxType:"ExampleCustomizer"}),(0,a.kt)("h3",{id:"displayif"},(0,a.kt)("inlineCode",{parentName:"h3"},"DisplayIf")),(0,a.kt)("p",null,"This simple field component conditionally displays other fields based on input."),(0,a.kt)(l.T,{code:t(5020),example:t(91663).m,schema:t(53942),mdxType:"ExampleCustomizer"}),(0,a.kt)("h3",{id:"imagefield"},(0,a.kt)("inlineCode",{parentName:"h3"},"ImageField")),(0,a.kt)(l.T,{code:t(60319),example:t(85576).K,schema:t(80386),mdxType:"ExampleCustomizer"}),(0,a.kt)("h3",{id:"rangefield"},(0,a.kt)("inlineCode",{parentName:"h3"},"RangeField")),(0,a.kt)("p",null,"This field works as follows: two datepickers are bound to each other.\nValue is a ",(0,a.kt)("inlineCode",{parentName:"p"},"{start, stop}")," object."),(0,a.kt)(l.T,{code:t(39678),example:t(21724).N,schema:t(56545),mdxType:"ExampleCustomizer"}),(0,a.kt)("h3",{id:"ratingfield"},(0,a.kt)("inlineCode",{parentName:"h3"},"RatingField")),(0,a.kt)("p",null,"This field works as follows: render stars for each rating and mark them as\nfilled, if rating (value) is greater."),(0,a.kt)(l.T,{code:t(19317),example:t(33419).C,schema:t(28445),mdxType:"ExampleCustomizer"}),(0,a.kt)("h3",{id:"submitbutton"},(0,a.kt)("inlineCode",{parentName:"h3"},"SubmitButton")),(0,a.kt)("p",null,"This field works as follows: render standard submit field and disable it, when\nthe form is invalid. It's a simplified version of a default SubmitField from\nuniforms-unstyled. We use schema from previous examples as a template for validation."),(0,a.kt)(l.T,{code:t(3926),example:t(10515).j,schema:t(39429),mdxType:"ExampleCustomizer"}),(0,a.kt)("h3",{id:"swapfield"},(0,a.kt)("inlineCode",{parentName:"h3"},"SwapField")),(0,a.kt)("p",null,"This field works as follows: on click of its child (refresh icon) it swaps values of fieldA\nand fieldB. It's that simple."),(0,a.kt)(l.T,{code:t(98577),example:t(70775).z,schema:t(99159),mdxType:"ExampleCustomizer"}))}m.isMDXComponent=!0},4940:function(e,n){"use strict";n.Z={"center-if-sm":"center-if-sm_fQBP",padding:"padding_u3oQ",landing:"landing_JSVC","overflow-hidden":"overflow-hidden_pgKL","section-content":"section-content_dsyA",discussions:"discussions_nna8","floating-example":"floating-example_NeZB","system-window":"system-window_utQO","system-top-bar":"system-top-bar_ZKOK","system-top-bar-circle":"system-top-bar-circle_TDqe","showcase-card":"showcase-card_hJCa",footer:"footer_V71b",bullets:"bullets_YLT6","offset-column":"offset-column_Fx18","simple-yet-powerful-text":"simple-yet-powerful-text__cJc","fully-customizable-text":"fully-customizable-text_ka9o","reverse-wrap":"reverse-wrap_wEMw",example:"example_fVIp","preview-border":"preview-border_OFQs",preview:"preview_Ea2L","no-padding":"no-padding_WjVH","solid-border-box":"solid-border-box_A28F","green-accent":"green-accent_H4ZV","blue-accent":"blue-accent_R2MP",grid3x3:"grid3x3_yu8a",item3x3:"item3x3_dug1",company:"company_dMmf","border-dashed":"border-dashed_OHF8","border-gradient":"border-gradient_gHdq","border-disable-top-right":"border-disable-top-right_GH8c","border-disable-bottom-left":"border-disable-bottom-left_uiZP","arrow-button":"arrow-button_hF_x","left-arrow-button":"left-arrow-button_Zn9b","right-arrow-button":"right-arrow-button_J0NN",arrow:"arrow_d93H","carousel-container":"carousel-container_uFWT",carousel:"carousel_vfTV",testimonials:"testimonials__H4G","testimonials-pair-active":"testimonials-pair-active_W4Qz","testimonials-pair-inactive":"testimonials-pair-inactive_OeWi",testimonial:"testimonial_JqOm","testimonial-content":"testimonial-content_yyK0","testimonial-links-wrapper":"testimonial-links-wrapper_aCzC","testimonial-description":"testimonial-description_HpGg","testimonial-avatar":"testimonial-avatar_OiX2","section-heading":"section-heading_Wwdu","section-bgwhite":"section-bgwhite_xc3Y","section-bgwhite-block":"section-bgwhite-block_wuyP","section-bgwhite-block-left":"section-bgwhite-block-left_R077","section-bgwhite-block-right":"section-bgwhite-block-right_XL2o",logos:"logos_slhi",fluid:"fluid_k_Hd",whyus:"whyus_bBI7",oval:"oval_S291","link-icon-container":"link-icon-container_Iy8Z",white:"white_k7iJ","top-right-corner":"top-right-corner_hrD6",badges:"badges_sK0n","badge-number":"badge-number_FlCf",badge:"badge_Cv7E","badge-image":"badge-image_V8QJ","badge-centered":"badge-centered_Cl70","call-to-action":"call-to-action_fHoz","theme-icon":"theme-icon_VaE8",section:"section_SnfD","flex-center":"flex-center_VHPe","top-margin":"top-margin_xVhu","long-button":"long-button_efAi",text:"text_U9e4","text-big":"text-big_oDLV","text-huge":"text-huge_zgdY","heading-helper":"heading-helper_fnxq",heading:"heading_Tyjn","heading-white":"heading-white_SkAD",emphasis:"emphasis_T58q",paragraph:"paragraph_pxCb","section-subtitle":"section-subtitle_etM3","footer-heading":"footer-heading_wvTE",supported:"supported_k5lB",title:"title_L62U",description:"description_aTRG","commercial-bullets":"commercial-bullets_o7pP","commercial-box":"commercial-box_wLXy",vazco:"vazco_f6cf","form-wrapper":"form-wrapper_kccZ",playground:"playground_p2wD","playground-wrap":"playground-wrap_FoP6","playground-column":"playground-column_btgY","playground-toolbar":"playground-toolbar_jwg0",tabs:"tabs_DJzW",item:"item_Lknm",active:"active_R6La",toggler:"toggler_LMZW",header:"header_kKxo",tooltip:"tooltip_OOD_","tooltip-text":"tooltip-text_GGXA","toggler-tabs":"toggler-tabs_UzN0"}},95126:function(e,n,t){var r={"./af":1009,"./af.js":1009,"./ar":88769,"./ar-dz":23739,"./ar-dz.js":23739,"./ar-kw":93745,"./ar-kw.js":93745,"./ar-ly":99576,"./ar-ly.js":99576,"./ar-ma":67408,"./ar-ma.js":67408,"./ar-sa":48781,"./ar-sa.js":48781,"./ar-tn":87856,"./ar-tn.js":87856,"./ar.js":88769,"./az":2030,"./az.js":2030,"./be":56476,"./be.js":56476,"./bg":25304,"./bg.js":25304,"./bm":48125,"./bm.js":48125,"./bn":34,"./bn-bd":29835,"./bn-bd.js":29835,"./bn.js":34,"./bo":64082,"./bo.js":64082,"./br":8317,"./br.js":8317,"./bs":93107,"./bs.js":93107,"./ca":68272,"./ca.js":68272,"./cs":98567,"./cs.js":98567,"./cv":61583,"./cv.js":61583,"./cy":10076,"./cy.js":10076,"./da":31760,"./da.js":31760,"./de":8973,"./de-at":63214,"./de-at.js":63214,"./de-ch":74728,"./de-ch.js":74728,"./de.js":8973,"./dv":54053,"./dv.js":54053,"./el":7499,"./el.js":7499,"./en-au":67876,"./en-au.js":67876,"./en-ca":47010,"./en-ca.js":47010,"./en-gb":34239,"./en-gb.js":34239,"./en-ie":99830,"./en-ie.js":99830,"./en-il":28438,"./en-il.js":28438,"./en-in":25322,"./en-in.js":25322,"./en-nz":43264,"./en-nz.js":43264,"./en-sg":55449,"./en-sg.js":55449,"./eo":39486,"./eo.js":39486,"./es":32430,"./es-do":16310,"./es-do.js":16310,"./es-mx":27038,"./es-mx.js":27038,"./es-us":73099,"./es-us.js":73099,"./es.js":32430,"./et":34975,"./et.js":34975,"./eu":87063,"./eu.js":87063,"./fa":68073,"./fa.js":68073,"./fi":50957,"./fi.js":50957,"./fil":8764,"./fil.js":8764,"./fo":81775,"./fo.js":81775,"./fr":74179,"./fr-ca":14306,"./fr-ca.js":14306,"./fr-ch":73791,"./fr-ch.js":73791,"./fr.js":74179,"./fy":47014,"./fy.js":47014,"./ga":46911,"./ga.js":46911,"./gd":62958,"./gd.js":62958,"./gl":87344,"./gl.js":87344,"./gom-deva":33161,"./gom-deva.js":33161,"./gom-latn":35798,"./gom-latn.js":35798,"./gu":68485,"./gu.js":68485,"./he":27917,"./he.js":27917,"./hi":52159,"./hi.js":52159,"./hr":95842,"./hr.js":95842,"./hu":30005,"./hu.js":30005,"./hy-am":51312,"./hy-am.js":51312,"./id":60781,"./id.js":60781,"./is":64101,"./is.js":64101,"./it":43467,"./it-ch":4759,"./it-ch.js":4759,"./it.js":43467,"./ja":44164,"./ja.js":44164,"./jv":70079,"./jv.js":70079,"./ka":57036,"./ka.js":57036,"./kk":92022,"./kk.js":92022,"./km":63418,"./km.js":63418,"./kn":43655,"./kn.js":43655,"./ko":30986,"./ko.js":30986,"./ku":91902,"./ku.js":91902,"./ky":4604,"./ky.js":4604,"./lb":99026,"./lb.js":99026,"./lo":20537,"./lo.js":20537,"./lt":22288,"./lt.js":22288,"./lv":1495,"./lv.js":1495,"./me":60690,"./me.js":60690,"./mi":2571,"./mi.js":2571,"./mk":93959,"./mk.js":93959,"./ml":97225,"./ml.js":97225,"./mn":88,"./mn.js":88,"./mr":46622,"./mr.js":46622,"./ms":11070,"./ms-my":48899,"./ms-my.js":48899,"./ms.js":11070,"./mt":63931,"./mt.js":63931,"./my":95393,"./my.js":95393,"./nb":4274,"./nb.js":4274,"./ne":8914,"./ne.js":8914,"./nl":33114,"./nl-be":68479,"./nl-be.js":68479,"./nl.js":33114,"./nn":4513,"./nn.js":4513,"./oc-lnc":46549,"./oc-lnc.js":46549,"./pa-in":28264,"./pa-in.js":28264,"./pl":32848,"./pl.js":32848,"./pt":90899,"./pt-br":55077,"./pt-br.js":55077,"./pt.js":90899,"./ro":92512,"./ro.js":92512,"./ru":21753,"./ru.js":21753,"./sd":16840,"./sd.js":16840,"./se":78362,"./se.js":78362,"./si":50464,"./si.js":50464,"./sk":66324,"./sk.js":66324,"./sl":41963,"./sl.js":41963,"./sq":53039,"./sq.js":53039,"./sr":93454,"./sr-cyrl":10466,"./sr-cyrl.js":10466,"./sr.js":93454,"./ss":95158,"./ss.js":95158,"./sv":28859,"./sv.js":28859,"./sw":57594,"./sw.js":57594,"./ta":26915,"./ta.js":26915,"./te":15677,"./te.js":15677,"./tet":92154,"./tet.js":92154,"./tg":74098,"./tg.js":74098,"./th":89071,"./th.js":89071,"./tk":49381,"./tk.js":49381,"./tl-ph":1869,"./tl-ph.js":1869,"./tlh":92346,"./tlh.js":92346,"./tr":71483,"./tr.js":71483,"./tzl":30266,"./tzl.js":30266,"./tzm":33138,"./tzm-latn":32960,"./tzm-latn.js":32960,"./tzm.js":33138,"./ug-cn":29456,"./ug-cn.js":29456,"./uk":50805,"./uk.js":50805,"./ur":61127,"./ur.js":61127,"./uz":29628,"./uz-latn":80840,"./uz-latn.js":80840,"./uz.js":29628,"./vi":56962,"./vi.js":56962,"./x-pseudo":49257,"./x-pseudo.js":49257,"./yo":62423,"./yo.js":62423,"./zh-cn":61002,"./zh-cn.js":61002,"./zh-hk":6046,"./zh-hk.js":6046,"./zh-mo":36903,"./zh-mo.js":36903,"./zh-tw":24710,"./zh-tw.js":24710};function a(e){var n=l(e);return t(n)}function l(e){if(!t.o(r,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=l,e.exports=a,a.id=95126},17576:function(e,n,t){"use strict";t.r(n),n.default='import React from \'react\';\nimport { AutoField, AutoForm, SubmitField } from \'../../lib/universal\';\nimport { connectField } from \'uniforms\';\n\nimport { bridge as schema } from \'./CompositeFieldSchema\';\n\nfunction Composite() {\n return (\n <section>\n <AutoField name="firstName" />\n <AutoField name="lastName" />\n <AutoField name="workExperience" />\n </section>\n );\n}\n\nconst CompositeField = connectField(Composite);\n\nexport function CompositeFieldForm() {\n return (\n <AutoForm\n schema={schema}\n onSubmit={(model: any) => alert(JSON.stringify(model, null, 2))}\n >\n <CompositeField name="personA" />\n <hr />\n <CompositeField name="personB" />\n <br />\n <SubmitField />\n </AutoForm>\n );\n}\n'},66801:function(e,n,t){"use strict";t.r(n),n.default="import Ajv from 'ajv';\nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\n\nconst ajv = new Ajv({ allErrors: true, useDefaults: true });\n\nconst personSchema = {\n title: 'Guest',\n type: 'object',\n properties: {\n firstName: { type: 'string' },\n lastName: { type: 'string' },\n workExperience: {\n description: 'Work experience in years',\n type: 'integer',\n minimum: 0,\n maximum: 100,\n },\n },\n required: ['firstName', 'lastName'],\n};\n\nconst schema = {\n title: 'Guest',\n type: 'object',\n properties: {\n personA: personSchema,\n personB: personSchema,\n },\n required: ['personA', 'personB'],\n};\n\nfunction createValidator(schema: object) {\n const validator = ajv.compile(schema);\n\n return (model: object) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst validator = createValidator(schema);\n\nexport const bridge = new JSONSchemaBridge({ schema, validator });\n"},4062:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { AutoForm, SubmitField } from '../../lib/universal';\nimport { HTMLFieldProps, connectField } from 'uniforms';\n\nimport { bridge as schema } from './CycleFieldSchema';\n\n/** Option type used in SelectField or RadioField */\nexport type Option<Value> = {\n disabled?: boolean;\n label?: string;\n key?: string;\n value: Value;\n};\n\ntype CycleProps = HTMLFieldProps<\n number,\n HTMLAnchorElement,\n { options: Option<number>[] }\n>;\n\nfunction Cycle({ options, label, onChange, required, value }: CycleProps) {\n return (\n <button\n style={{\n border: '1px solid black',\n color: '#0e0e0e',\n cursor: 'pointer',\n display: 'inline-block',\n margin: '1em 0',\n padding: '1em',\n }}\n type=\"button\"\n onClick={() =>\n onChange(\n value\n ? options.findIndex(option => option.value === value) ===\n options.length - 1\n ? required\n ? options[0].value\n : undefined\n : options[options.findIndex(option => option.value === value) + 1]\n .value\n : options[0].value,\n )\n }\n >\n \u27a1 {value || label} \u27a1\n </button>\n );\n}\n\nconst CycleField = connectField(Cycle);\n\nexport function CycleFieldForm() {\n return (\n <AutoForm\n schema={schema}\n onSubmit={(model: any) => alert(JSON.stringify(model, null, 2))}\n >\n <CycleField\n name=\"cycle\"\n options={[\n { label: 'One', value: 1 },\n { label: 'Two', value: 2 },\n { label: 'Three', value: 3 },\n ]}\n />\n <br />\n <SubmitField />\n </AutoForm>\n );\n}\n"},97327:function(e,n,t){"use strict";t.r(n),n.default="import Ajv from 'ajv';\nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\n\nconst ajv = new Ajv({ allErrors: true, useDefaults: true });\n\nconst schema = {\n title: 'Cycle',\n type: 'object',\n properties: {\n cycle: { type: 'string' },\n },\n};\n\nfunction createValidator(schema: object) {\n const validator = ajv.compile(schema);\n\n return (model: object) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst validator = createValidator(schema);\n\nexport const bridge = new JSONSchemaBridge({ schema, validator });\n"},5020:function(e,n,t){"use strict";t.r(n),n.default="import React, { Children, ReactElement } from 'react';\nimport { AutoForm, SubmitField, TextField } from '../../lib/universal';\nimport { Context, UnknownObject, useForm } from 'uniforms';\n\nimport { bridge as schema } from './DisplayIfSchema';\n\ntype DisplayIfProps<Model extends UnknownObject> = {\n children: ReactElement;\n condition: (context: Context<Model>) => boolean;\n};\n\n// We have to ensure that there's only one child, because returning an array\n// from a component is prohibited.\nfunction DisplayIf<Model extends UnknownObject>({\n children,\n condition,\n}: DisplayIfProps<Model>) {\n const uniforms = useForm<Model>();\n return condition(uniforms) ? Children.only(children) : null;\n}\n\ntype Model = { fieldA: string; fieldB: string };\nexport function DisplayIfForm() {\n return (\n <AutoForm\n schema={schema}\n onSubmit={(model: Model) => alert(JSON.stringify(model, null, 2))}\n >\n <TextField name=\"fieldA\" />\n <DisplayIf<Model> condition={context => !!context.model.fieldA}>\n <section>\n <TextField name=\"fieldB\" />\n <DisplayIf<Model> condition={context => !!context.model.fieldB}>\n <span>Well done!</span>\n </DisplayIf>\n </section>\n </DisplayIf>\n <SubmitField />\n </AutoForm>\n );\n}\n"},53942:function(e,n,t){"use strict";t.r(n),n.default="import Ajv from 'ajv';\nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\n\nconst ajv = new Ajv({ allErrors: true, useDefaults: true });\n\nconst schema = {\n title: 'DisplayIf',\n type: 'object',\n properties: {\n fieldA: { type: 'string' },\n fieldB: { type: 'string' },\n },\n};\n\nfunction createValidator(schema: object) {\n const validator = ajv.compile(schema);\n\n return (model: object) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst validator = createValidator(schema);\n\nexport const bridge = new JSONSchemaBridge({ schema, validator });\n"},60319:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { AutoForm, SubmitField } from '../../lib/universal';\nimport { HTMLFieldProps, connectField } from 'uniforms';\n\nimport { bridge as schema } from './ImageFieldSchema';\n\ntype ImageProps = HTMLFieldProps<string, HTMLDivElement>;\n\nfunction Image({ onChange, value }: ImageProps) {\n return (\n <div className=\"ImageField\">\n <label htmlFor=\"file-input\">\n <div>Choose your photo</div>\n <img\n alt=\"\"\n src={value || 'https://picsum.photos/150?grayscale'}\n style={{ cursor: 'pointer', width: '150px', height: '150px' }}\n />\n </label>\n <input\n accept=\"image/*\"\n id=\"file-input\"\n onChange={({ target: { files } }) => {\n if (files && files[0]) {\n onChange(URL.createObjectURL(files[0]));\n }\n }}\n style={{ display: 'none' }}\n type=\"file\"\n />\n </div>\n );\n}\n\nconst ImageField = connectField(Image);\n\nexport function ImageFieldForm() {\n return (\n <AutoForm\n schema={schema}\n onSubmit={(model: any) => alert(JSON.stringify(model, null, 2))}\n >\n <div style={{ textAlign: 'center' }}>\n <ImageField name=\"pictureUrl\" />\n <SubmitField />\n </div>\n </AutoForm>\n );\n}\n"},80386:function(e,n,t){"use strict";t.r(n),n.default="import Ajv from 'ajv';\nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\n\nconst ajv = new Ajv({ allErrors: true, useDefaults: true });\n\nconst schema = {\n title: 'Guest',\n type: 'object',\n properties: {\n pictureUrl: { type: 'string' },\n },\n};\n\nfunction createValidator(schema: object) {\n const validator = ajv.compile(schema);\n\n return (model: object) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst validator = createValidator(schema);\n\nexport const bridge = new JSONSchemaBridge({ schema, validator });\n"},39678:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { AutoForm, AutoField, SubmitField } from '../../lib/universal';\nimport { HTMLFieldProps, ModelTransformMode, connectField } from 'uniforms';\n\nimport { bridge as schema } from './RangeFieldSchema';\n\ntype RangeProps = HTMLFieldProps<{ start: Date; stop: Date }, HTMLDivElement>;\n\nconst defaultDates = { start: new Date(), stop: new Date() };\n\nfunction Range({ value: { start, stop } = defaultDates }: RangeProps) {\n return (\n <div>\n <AutoField InputLabelProps={{ shrink: true }} name=\"start\" max={stop} />\n <AutoField InputLabelProps={{ shrink: true }} name=\"stop\" min={start} />\n </div>\n );\n}\n\nconst RangeField = connectField(Range);\n\nconst model = {\n range: { start: new Date(2019, 7, 10), stop: new Date(2019, 7, 20) },\n};\n\nexport function RangeFieldForm() {\n function transform(mode: ModelTransformMode, model: any) {\n if (mode === 'validate') {\n const { start, stop } = model.range || {};\n\n return {\n range: {\n start: start && start.toISOString(),\n stop: stop && stop.toISOString(),\n },\n };\n }\n\n return model;\n }\n\n return (\n <AutoForm\n model={model}\n modelTransform={transform}\n schema={schema}\n onSubmit={(model: any) => alert(JSON.stringify(model, null, 2))}\n >\n <RangeField name=\"range\" />\n <br />\n <SubmitField />\n </AutoForm>\n );\n}\n"},56545:function(e,n,t){"use strict";t.r(n),n.default="import Ajv from 'ajv';\nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\n\nconst ajv = new Ajv({\n allErrors: true,\n formats: { 'date-time': true },\n useDefaults: true,\n});\n\nconst schema = {\n title: 'Date Range',\n type: 'object',\n properties: {\n range: {\n type: 'object',\n properties: {\n start: { type: 'string', format: 'date-time' },\n stop: { type: 'string', format: 'date-time' },\n },\n required: ['start', 'stop'],\n },\n },\n};\n\nfunction createValidator(schema: object) {\n const validator = ajv.compile(schema);\n\n return (model: object) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst validator = createValidator(schema);\n\nexport const bridge = new JSONSchemaBridge({ schema, validator });\n"},19317:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport classnames from 'classnames';\nimport { AutoForm, SubmitField } from '../../lib/universal';\nimport { HTMLFieldProps, connectField } from 'uniforms';\n\nimport { bridge as schema } from './RatingFieldSchema';\n\ntype RatingProps = HTMLFieldProps<number, HTMLDivElement, { max?: number }>;\n\nfunction Rating({\n className,\n disabled,\n max = 5,\n onChange,\n required,\n value = 0,\n}: RatingProps) {\n function onAction(\n event:\n | React.KeyboardEvent<HTMLSpanElement>\n | React.MouseEvent<HTMLSpanElement, MouseEvent>,\n index: number,\n ) {\n if (!disabled && (!('key' in event) || event.key === 'Enter')) {\n onChange(!required && value === index ? undefined : index);\n }\n }\n\n return (\n <div className={classnames('ui', { disabled, required }, className)}>\n {Array.from({ length: max }, (_, index) => index + 1).map(index => (\n <span\n style={{ fontSize: 40, cursor: 'pointer' }}\n key={index}\n onClick={event => onAction(event, index)}\n onKeyDown={event => onAction(event, index)}\n role=\"button\"\n tabIndex={0}\n >\n {index <= value ? '\u2605' : '\u2606'}\n </span>\n ))}\n </div>\n );\n}\n\nconst RatingField = connectField(Rating);\n\nexport function RatingFieldForm() {\n return (\n <AutoForm\n schema={schema}\n model={{ rating: 3 }}\n onSubmit={(model: any) => alert(JSON.stringify(model, null, 2))}\n >\n <RatingField name=\"rating\" />\n <br />\n <SubmitField />\n </AutoForm>\n );\n}\n"},28445:function(e,n,t){"use strict";t.r(n),n.default="import Ajv from 'ajv';\nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\n\nconst ajv = new Ajv({ allErrors: true, useDefaults: true });\n\nconst schema = {\n title: 'Rating',\n type: 'object',\n properties: {\n rating: { type: 'integer' },\n },\n};\n\nfunction createValidator(schema: object) {\n const validator = ajv.compile(schema);\n\n return (model: object) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst validator = createValidator(schema);\n\nexport const bridge = new JSONSchemaBridge({ schema, validator });\n"},3926:function(e,n,t){"use strict";t.r(n),n.default='import React from \'react\';\nimport { AutoField, AutoForm } from \'../../lib/universal\';\nimport { connectField, useForm } from \'uniforms\';\n\nimport { bridge as schema } from \'./SubmitFieldSchema\';\n\nfunction SubmitField() {\n const {\n error,\n state: { disabled },\n submitting,\n validating,\n } = useForm();\n\n return (\n <input\n disabled={!!error || disabled || submitting || validating}\n type="submit"\n />\n );\n}\n\nfunction Composite() {\n return (\n <section>\n <AutoField name="firstName" />\n <AutoField name="lastName" />\n <AutoField name="workExperience" />\n </section>\n );\n}\n\nconst CompositeField = connectField(Composite);\n\nexport function SubmitFieldForm() {\n return (\n <AutoForm\n schema={schema}\n onSubmit={(model: any) => alert(JSON.stringify(model, null, 2))}\n >\n <CompositeField name="personA" />\n <hr />\n <CompositeField name="personB" />\n <br />\n <SubmitField />\n </AutoForm>\n );\n}\n'},39429:function(e,n,t){"use strict";t.r(n),n.default="import Ajv from 'ajv';\nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\n\nconst ajv = new Ajv({ allErrors: true, useDefaults: true });\n\nconst personSchema = {\n title: 'Guest',\n type: 'object',\n properties: {\n firstName: { type: 'string' },\n lastName: { type: 'string' },\n workExperience: {\n description: 'Work experience in years',\n type: 'integer',\n minimum: 0,\n maximum: 100,\n },\n },\n required: ['firstName', 'lastName'],\n};\n\nconst schema = {\n title: 'Guest',\n type: 'object',\n properties: {\n personA: personSchema,\n personB: personSchema,\n },\n required: ['personA', 'personB'],\n};\n\nfunction createValidator(schema: object) {\n const validator = ajv.compile(schema);\n\n return (model: object) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst validator = createValidator(schema);\n\nexport const bridge = new JSONSchemaBridge({ schema, validator });\n"},98577:function(e,n,t){"use strict";t.r(n),n.default="import React, { Children, ReactElement, cloneElement } from 'react';\nimport get from 'lodash/get';\nimport { AutoForm, TextField, SubmitField } from '../../lib/universal';\nimport { RefreshCw } from 'react-feather';\nimport { useForm } from 'uniforms';\n\nimport { bridge as schema } from './SwapFieldSchema';\n\ntype SwapFieldProps = {\n children: ReactElement;\n fieldA: string;\n fieldB: string;\n};\n\nfunction SwapField({ children, fieldA, fieldB }: SwapFieldProps) {\n const { model, onChange } = useForm();\n return (\n <span style={{ display: 'flex', justifyContent: 'center' }}>\n {cloneElement(Children.only(children), {\n onClick() {\n const valueA = get(model, fieldA);\n const valueB = get(model, fieldB);\n onChange(fieldA, valueB);\n onChange(fieldB, valueA);\n },\n })}\n </span>\n );\n}\n\nexport function SwapFieldForm() {\n return (\n <section>\n <AutoForm\n model={{ firstName: 'John', lastName: 'Doe' }}\n schema={schema}\n onSubmit={(model: any) => alert(JSON.stringify(model, null, 2))}\n >\n <TextField name=\"firstName\" />\n <SwapField fieldA=\"firstName\" fieldB=\"lastName\">\n <RefreshCw style={{ cursor: 'pointer' }} />\n </SwapField>\n <TextField name=\"lastName\" />\n <SubmitField />\n </AutoForm>\n </section>\n );\n}\n"},99159:function(e,n,t){"use strict";t.r(n),n.default="import Ajv from 'ajv';\nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\n\nconst ajv = new Ajv({ allErrors: true, useDefaults: true });\n\nconst schema = {\n title: 'Guest',\n type: 'object',\n properties: {\n firstName: { type: 'string' },\n lastName: { type: 'string' },\n },\n required: ['firstName', 'lastName'],\n};\n\nfunction createValidator(schema: object) {\n const validator = ajv.compile(schema);\n\n return (model: object) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst validator = createValidator(schema);\n\nexport const bridge = new JSONSchemaBridge({ schema, validator });\n"}}]); \ No newline at end of file diff --git a/assets/js/829.be73e92d.js b/assets/js/829.be73e92d.js new file mode 100644 index 000000000..7a49c2c10 --- /dev/null +++ b/assets/js/829.be73e92d.js @@ -0,0 +1,81 @@ +/*! For license information please see 829.be73e92d.js.LICENSE.txt */ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[829],{2097:function(e,t,n){"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function a(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function i(e){return e<=1?100*Number(e)+"%":e}function s(e){return 1===e.length?"0"+e:String(e)}function u(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var o=Math.max(e,t,n),a=Math.min(e,t,n),i=0,s=0,u=(o+a)/2;if(o===a)s=0,i=0;else{var l=o-a;switch(s=u>.5?l/(2-o-a):l/(o+a),o){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4}i/=6}return{h:i,s:s,l:u}}function l(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function c(e,t,n){e=r(e,255),t=r(t,255),n=r(n,255);var o=Math.max(e,t,n),a=Math.min(e,t,n),i=0,s=o,u=o-a,l=0===o?0:u/o;if(o===a)i=0;else{switch(o){case e:i=(t-n)/u+(t<n?6:0);break;case t:i=(n-e)/u+2;break;case n:i=(e-t)/u+4}i/=6}return{h:i,s:l,v:s}}function d(e,t,n,r){var o=[s(Math.round(e).toString(16)),s(Math.round(t).toString(16)),s(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function f(e){return Math.round(255*parseFloat(e)).toString(16)}function p(e){return m(e)/255}function m(e){return parseInt(e,16)}n.r(t),n.d(t,{blue:function(){return I},cyan:function(){return A},geekblue:function(){return F},generate:function(){return E},gold:function(){return Y},green:function(){return R},grey:function(){return z},lime:function(){return N},magenta:function(){return $},orange:function(){return j},presetDarkPalettes:function(){return O},presetPalettes:function(){return C},presetPrimaryColors:function(){return T},purple:function(){return H},red:function(){return P},volcano:function(){return D},yellow:function(){return Z}});var h={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function v(e){var t,n,o,s={r:0,g:0,b:0},u=1,c=null,d=null,f=null,v=!1,y=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(h[e])e=h[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=b.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=b.rgba.exec(e))return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=b.hsl.exec(e))return{h:n[1],s:n[2],l:n[3]};if(n=b.hsla.exec(e))return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=b.hsv.exec(e))return{h:n[1],s:n[2],v:n[3]};if(n=b.hsva.exec(e))return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=b.hex8.exec(e))return{r:m(n[1]),g:m(n[2]),b:m(n[3]),a:p(n[4]),format:t?"name":"hex8"};if(n=b.hex6.exec(e))return{r:m(n[1]),g:m(n[2]),b:m(n[3]),format:t?"name":"hex"};if(n=b.hex4.exec(e))return{r:m(n[1]+n[1]),g:m(n[2]+n[2]),b:m(n[3]+n[3]),a:p(n[4]+n[4]),format:t?"name":"hex8"};if(n=b.hex3.exec(e))return{r:m(n[1]+n[1]),g:m(n[2]+n[2]),b:m(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(M(e.r)&&M(e.g)&&M(e.b)?(t=e.r,n=e.g,o=e.b,s={r:255*r(t,255),g:255*r(n,255),b:255*r(o,255)},v=!0,y="%"===String(e.r).substr(-1)?"prgb":"rgb"):M(e.h)&&M(e.s)&&M(e.v)?(c=i(e.s),d=i(e.v),s=function(e,t,n){e=6*r(e,360),t=r(t,100),n=r(n,100);var o=Math.floor(e),a=e-o,i=n*(1-t),s=n*(1-a*t),u=n*(1-(1-a)*t),l=o%6;return{r:255*[n,s,i,i,u,n][l],g:255*[u,n,n,s,i,i][l],b:255*[i,i,u,n,n,s][l]}}(e.h,c,d),v=!0,y="hsv"):M(e.h)&&M(e.s)&&M(e.l)&&(c=i(e.s),f=i(e.l),s=function(e,t,n){var o,a,i;if(e=r(e,360),t=r(t,100),n=r(n,100),0===t)a=n,i=n,o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;o=l(u,s,e+1/3),a=l(u,s,e),i=l(u,s,e-1/3)}return{r:255*o,g:255*a,b:255*i}}(e.h,c,f),v=!0,y="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(u=e.a)),u=a(u),{ok:v,format:e.format||y,r:Math.min(255,Math.max(s.r,0)),g:Math.min(255,Math.max(s.g,0)),b:Math.min(255,Math.max(s.b,0)),a:u}}var y="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",_="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?",g="[\\s|\\(]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")[,|\\s]+("+y+")\\s*\\)?",b={CSS_UNIT:new RegExp(y),rgb:new RegExp("rgb"+_),rgba:new RegExp("rgba"+g),hsl:new RegExp("hsl"+_),hsla:new RegExp("hsla"+g),hsv:new RegExp("hsv"+_),hsva:new RegExp("hsva"+g),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function M(e){return Boolean(b.CSS_UNIT.exec(String(e)))}var w=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=function(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=v(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=a(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=c(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=c(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this.roundA+")"},e.prototype.toHsl=function(){var e=u(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=u(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this.roundA+")"},e.prototype.toHex=function(e){return void 0===e&&(e=!1),d(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,n,r,o){var a=[s(Math.round(e).toString(16)),s(Math.round(t).toString(16)),s(Math.round(n).toString(16)),s(f(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb("+e+", "+t+", "+n+")":"rgba("+e+", "+t+", "+n+", "+this.roundA+")"},e.prototype.toPercentageRgb=function(){var e=function(e){return Math.round(100*r(e,255))+"%"};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*r(e,255))};return 1===this.a?"rgb("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%)":"rgba("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%, "+this.roundA+")"},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+d(this.r,this.g,this.b,!1),t=0,n=Object.entries(h);t<n.length;t++){var r=n[t],o=r[0];if(e===r[1])return o}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!=e?e:this.format;var n=!1,r=this.a<1&&this.a>=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=o(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=o(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=o(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=o(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100;return new e({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();var k=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function x(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function S(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function L(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function E(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new w(e),o=5;o>0;o-=1){var a=r.toHsv(),i=new w({h:x(a,o,!0),s:S(a,o,!0),v:L(a,o,!0)}).toHexString();n.push(i)}n.push(r.toHexString());for(var s=1;s<=4;s+=1){var u=r.toHsv(),l=new w({h:x(u,s),s:S(u,s),v:L(u,s)}).toHexString();n.push(l)}return"dark"===t.theme?k.map((function(e){var r=e.index,o=e.opacity;return new w(t.backgroundColor||"#141414").mix(n[r],100*o).toHexString()})):n}var T={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},C={},O={};Object.keys(T).forEach((function(e){C[e]=E(T[e]),C[e].primary=C[e][5],O[e]=E(T[e],{theme:"dark",backgroundColor:"#141414"}),O[e].primary=O[e][5]}));var P=C.red,D=C.volcano,Y=C.gold,j=C.orange,Z=C.yellow,N=C.lime,R=C.green,A=C.cyan,I=C.blue,F=C.geekblue,H=C.purple,$=C.magenta,z=C.grey},38278:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"}},21774:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"}},13120:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"}},48518:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"}},3898:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"}},35679:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"}},53459:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"}},65207:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"}},3653:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"}},15116:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"}},82838:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"}},8961:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"}},59477:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"}},50564:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"}},77567:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"}},29086:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"}},98431:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"}},57736:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"}},84479:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"}},46218:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"}},91037:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"}},34927:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"}},29240:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(81485))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},80521:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(79133))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},71056:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(86432))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},30219:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(24546))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},1880:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(45494))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},71172:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(67288))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},37357:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(12215))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},21473:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(2390))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},85221:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(49325))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},31220:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(75409))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},51719:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(36962))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},26036:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(28319))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},35380:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(16218))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},92618:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(10333))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},45960:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(81695))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},50063:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(91120))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},15914:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(8203))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},94037:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(53648))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},31115:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(12128))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},37898:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(70163))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},19632:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(64140))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},74126:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(r=n(31982))&&r.__esModule?r:{default:r};t.default=o,e.exports=o},97683:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(40131)),i=o(n(93231)),s=o(n(70966)),u=r(n(27378)),l=o(n(60042)),c=o(n(35714)),d=o(n(81052)),f=n(41838),p=n(86641);(0,f.setTwoToneColor)("#1890ff");var m=u.forwardRef((function(e,t){var n,r=e.className,o=e.icon,f=e.spin,m=e.rotate,h=e.tabIndex,v=e.onClick,y=e.twoToneColor,_=(0,s.default)(e,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),g=u.useContext(c.default).prefixCls,b=void 0===g?"anticon":g,M=(0,l.default)(b,(n={},(0,i.default)(n,"".concat(b,"-").concat(o.name),!!o.name),(0,i.default)(n,"".concat(b,"-spin"),!!f||"loading"===o.name),n),r),w=h;void 0===w&&v&&(w=-1);var k=m?{msTransform:"rotate(".concat(m,"deg)"),transform:"rotate(".concat(m,"deg)")}:void 0,x=(0,p.normalizeTwoToneColors)(y),S=(0,a.default)(x,2),L=S[0],E=S[1];return u.createElement("span",Object.assign({role:"img","aria-label":o.name},_,{ref:t,tabIndex:w,onClick:v,className:M}),u.createElement(d.default,{icon:o,primaryColor:L,secondaryColor:E,style:k}))}));m.displayName="AntdIcon",m.getTwoToneColor=f.getTwoToneColor,m.setTwoToneColor=f.setTwoToneColor;var h=m;t.default=h},35714:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(27378).createContext)({});t.default=r},81052:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(70966)),a=r(n(80624)),i=n(86641),s={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var u=function(e){var t=e.icon,n=e.className,r=e.onClick,u=e.style,l=e.primaryColor,c=e.secondaryColor,d=(0,o.default)(e,["icon","className","onClick","style","primaryColor","secondaryColor"]),f=s;if(l&&(f={primaryColor:l,secondaryColor:c||(0,i.getSecondaryColor)(l)}),(0,i.useInsertStyles)(),(0,i.warning)((0,i.isIconDefinition)(t),"icon should be icon definiton, but got ".concat(t)),!(0,i.isIconDefinition)(t))return null;var p=t;return p&&"function"==typeof p.icon&&(p=(0,a.default)((0,a.default)({},p),{},{icon:p.icon(f.primaryColor,f.secondaryColor)})),(0,i.generate)(p.icon,"svg-".concat(p.name),(0,a.default)({className:n,onClick:r,style:u,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d))};u.displayName="IconReact",u.getTwoToneColors=function(){return(0,a.default)({},s)},u.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;s.primaryColor=t,s.secondaryColor=n||(0,i.getSecondaryColor)(t),s.calculated=!!n};var l=u;t.default=l},41838:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.setTwoToneColor=function(e){var t=(0,i.normalizeTwoToneColors)(e),n=(0,o.default)(t,2),r=n[0],s=n[1];return a.default.setTwoToneColors({primaryColor:r,secondaryColor:s})},t.getTwoToneColor=function(){var e=a.default.getTwoToneColors();if(!e.calculated)return e.primaryColor;return[e.primaryColor,e.secondaryColor]};var o=r(n(40131)),a=r(n(81052)),i=n(86641)},81485:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(38278)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="CalendarOutlined";var l=a.forwardRef(u);t.default=l},79133:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(21774)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="CheckCircleFilled";var l=a.forwardRef(u);t.default=l},86432:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(13120)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="CheckCircleOutlined";var l=a.forwardRef(u);t.default=l},24546:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(48518)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="CheckOutlined";var l=a.forwardRef(u);t.default=l},45494:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(3898)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="ClockCircleOutlined";var l=a.forwardRef(u);t.default=l},67288:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(35679)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="CloseCircleFilled";var l=a.forwardRef(u);t.default=l},12215:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(53459)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="CloseCircleOutlined";var l=a.forwardRef(u);t.default=l},2390:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(65207)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="CloseOutlined";var l=a.forwardRef(u);t.default=l},49325:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(3653)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="DeleteOutlined";var l=a.forwardRef(u);t.default=l},75409:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(15116)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="DownOutlined";var l=a.forwardRef(u);t.default=l},36962:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(82838)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="ExclamationCircleFilled";var l=a.forwardRef(u);t.default=l},28319:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(8961)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="ExclamationCircleOutlined";var l=a.forwardRef(u);t.default=l},16218:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(59477)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="EyeInvisibleOutlined";var l=a.forwardRef(u);t.default=l},10333:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(50564)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="EyeOutlined";var l=a.forwardRef(u);t.default=l},81695:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(77567)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="InfoCircleFilled";var l=a.forwardRef(u);t.default=l},91120:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(29086)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="InfoCircleOutlined";var l=a.forwardRef(u);t.default=l},8203:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(98431)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="LoadingOutlined";var l=a.forwardRef(u);t.default=l},53648:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(57736)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="PlusSquareOutlined";var l=a.forwardRef(u);t.default=l},12128:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(84479)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="QuestionCircleOutlined";var l=a.forwardRef(u);t.default=l},70163:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(46218)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="SearchOutlined";var l=a.forwardRef(u);t.default=l},64140:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(91037)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="SwapRightOutlined";var l=a.forwardRef(u);t.default=l},31982:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(34927)),s=r(n(97683)),u=function(e,t){return a.createElement(s.default,Object.assign({},e,{ref:t,icon:i.default}))};u.displayName="UpOutlined";var l=a.forwardRef(u);t.default=l},86641:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.warning=function(e,t){(0,l.default)(e,"[@ant-design/icons] ".concat(t))},t.isIconDefinition=function(e){return"object"===(0,i.default)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,i.default)(e.icon)||"function"==typeof e.icon)},t.normalizeAttrs=d,t.generate=function e(t,n,r){if(!r)return u.default.createElement(t.tag,(0,a.default)({key:n},d(t.attrs)),(t.children||[]).map((function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})));return u.default.createElement(t.tag,(0,a.default)((0,a.default)({key:n},d(t.attrs)),r),(t.children||[]).map((function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})))},t.getSecondaryColor=function(e){return(0,s.generate)(e)[0]},t.normalizeTwoToneColors=function(e){if(!e)return[];return Array.isArray(e)?e:[e]},t.useInsertStyles=t.iconStyles=t.svgBaseProps=void 0;var a=o(n(80624)),i=o(n(7501)),s=n(2097),u=r(n(27378)),l=o(n(55620)),c=n(15258);function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else t[n]=r;return t}),{})}t.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var f="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";t.iconStyles=f;var p=!1;t.useInsertStyles=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;(0,u.useEffect)((function(){p||((0,c.insertCss)(e,{prepend:!0}),p=!0)}),[])}},72179:function(e,t,n){"use strict";n.d(t,{Z:function(){return oe}});var r=n(12506),o=Math.abs,a=String.fromCharCode,i=Object.assign;function s(e){return e.trim()}function u(e,t,n){return e.replace(t,n)}function l(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function p(e){return e.length}function m(e,t){return t.push(e),e}var h=1,v=1,y=0,_=0,g=0,b="";function M(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:h,column:v,length:i,return:""}}function w(e,t){return i(M("",null,null,"",null,null,0),e,{length:-e.length},t)}function k(){return g=_>0?c(b,--_):0,v--,10===g&&(v=1,h--),g}function x(){return g=_<y?c(b,_++):0,v++,10===g&&(v=1,h++),g}function S(){return c(b,_)}function L(){return _}function E(e,t){return d(b,e,t)}function T(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function C(e){return h=v=1,y=f(b=e),_=0,[]}function O(e){return b="",e}function P(e){return s(E(_-1,j(91===e?e+2:40===e?e+1:e)))}function D(e){for(;(g=S())&&g<33;)x();return T(e)>2||T(g)>3?"":" "}function Y(e,t){for(;--t&&x()&&!(g<48||g>102||g>57&&g<65||g>70&&g<97););return E(e,L()+(t<6&&32==S()&&32==x()))}function j(e){for(;x();)switch(g){case e:return _;case 34:case 39:34!==e&&39!==e&&j(g);break;case 40:41===e&&j(e);break;case 92:x()}return _}function Z(e,t){for(;x()&&e+g!==57&&(e+g!==84||47!==S()););return"/*"+E(t,_-1)+"*"+a(47===e?e:x())}function N(e){for(;!T(S());)x();return E(e,_)}var R="-ms-",A="-moz-",I="-webkit-",F="comm",H="rule",$="decl",z="@keyframes";function V(e,t){for(var n="",r=p(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function W(e,t,n,r){switch(e.type){case"@import":case $:return e.return=e.return||e.value;case F:return"";case z:return e.return=e.value+"{"+V(e.children,r)+"}";case H:e.value=e.props.join(",")}return f(n=V(e.children,r))?e.return=e.value+"{"+n+"}":""}function B(e,t){switch(function(e,t){return(((t<<2^c(e,0))<<2^c(e,1))<<2^c(e,2))<<2^c(e,3)}(e,t)){case 5103:return I+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return I+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return I+e+A+e+R+e+e;case 6828:case 4268:return I+e+R+e+e;case 6165:return I+e+R+"flex-"+e+e;case 5187:return I+e+u(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return I+e+R+"flex-item-"+u(e,/flex-|-self/,"")+e;case 4675:return I+e+R+"flex-line-pack"+u(e,/align-content|flex-|-self/,"")+e;case 5548:return I+e+R+u(e,"shrink","negative")+e;case 5292:return I+e+R+u(e,"basis","preferred-size")+e;case 6060:return I+"box-"+u(e,"-grow","")+I+e+R+u(e,"grow","positive")+e;case 4554:return I+u(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return u(u(u(e,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),e,"")+e;case 5495:case 3959:return u(e,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return u(u(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+e+e;case 4095:case 3583:case 4068:case 2532:return u(e,/(.+)-inline(.+)/,I+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-t>6)switch(c(e,t+1)){case 109:if(45!==c(e,t+4))break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+A+(108==c(e,t+3)?"$3":"$2-$3"))+e;case 115:return~l(e,"stretch")?B(u(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==c(e,t+1))break;case 6444:switch(c(e,f(e)-3-(~l(e,"!important")&&10))){case 107:return u(e,":",":"+I)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(45===c(e,14)?"inline-":"")+"box$3$1"+I+"$2$3$1"+R+"$2box$3")+e}break;case 5936:switch(c(e,t+11)){case 114:return I+e+R+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return I+e+R+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return I+e+R+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return I+e+R+e+e}return e}function U(e){return O(K("",null,null,null,[""],e=C(e),0,[0],e))}function K(e,t,n,r,o,i,s,c,d){for(var p=0,h=0,v=s,y=0,_=0,g=0,b=1,M=1,w=1,E=0,T="",C=o,O=i,j=r,R=T;M;)switch(g=E,E=x()){case 40:if(108!=g&&58==R.charCodeAt(v-1)){-1!=l(R+=u(P(E),"&","&\f"),"&\f")&&(w=-1);break}case 34:case 39:case 91:R+=P(E);break;case 9:case 10:case 13:case 32:R+=D(g);break;case 92:R+=Y(L()-1,7);continue;case 47:switch(S()){case 42:case 47:m(G(Z(x(),L()),t,n),d);break;default:R+="/"}break;case 123*b:c[p++]=f(R)*w;case 125*b:case 59:case 0:switch(E){case 0:case 125:M=0;case 59+h:_>0&&f(R)-v&&m(_>32?J(R+";",r,n,v-1):J(u(R," ","")+";",r,n,v-2),d);break;case 59:R+=";";default:if(m(j=q(R,t,n,p,h,o,c,T,C=[],O=[],v),i),123===E)if(0===h)K(R,t,j,j,C,i,v,c,O);else switch(y){case 100:case 109:case 115:K(e,j,j,r&&m(q(e,j,j,0,0,o,c,T,o,C=[],v),O),o,O,v,c,r?C:O);break;default:K(R,j,j,j,[""],O,0,c,O)}}p=h=_=0,b=w=1,T=R="",v=s;break;case 58:v=1+f(R),_=g;default:if(b<1)if(123==E)--b;else if(125==E&&0==b++&&125==k())continue;switch(R+=a(E),E*b){case 38:w=h>0?1:(R+="\f",-1);break;case 44:c[p++]=(f(R)-1)*w,w=1;break;case 64:45===S()&&(R+=P(x())),y=S(),h=v=f(T=R+=N(L())),E++;break;case 45:45===g&&2==f(R)&&(b=0)}}return i}function q(e,t,n,r,a,i,l,c,f,m,h){for(var v=a-1,y=0===a?i:[""],_=p(y),g=0,b=0,w=0;g<r;++g)for(var k=0,x=d(e,v+1,v=o(b=l[g])),S=e;k<_;++k)(S=s(b>0?y[k]+" "+x:u(x,/&\f/g,y[k])))&&(f[w++]=S);return M(e,t,n,0===a?H:c,f,m,h)}function G(e,t,n){return M(e,t,n,F,a(g),d(e,2,-2),0)}function J(e,t,n,r){return M(e,t,n,$,d(e,0,r),d(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,o=0;r=o,o=S(),38===r&&12===o&&(t[n]=1),!T(o);)x();return E(e,_)},Q=function(e,t){return O(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=X(_-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(r)}}while(r=x());return e}(C(e),t))},ee=new WeakMap,te=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ee.get(n))&&!r){ee.set(e,!0);for(var o=[],a=Q(t,o),i=n.props,s=0,u=0;s<a.length;s++)for(var l=0;l<i.length;l++,u++)e.props[u]=o[s]?a[s].replace(/&\f/g,i[l]):i[l]+" "+a[s]}}},ne=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $:e.return=B(e.value,e.length);break;case z:return V([w(e,{value:u(e.value,"@","@"+I)})],r);case H:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return V([w(e,{props:[u(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return V([w(e,{props:[u(t,/:(plac\w+)/,":-webkit-input-$1")]}),w(e,{props:[u(t,/:(plac\w+)/,":-moz-$1")]}),w(e,{props:[u(t,/:(plac\w+)/,R+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||re;var a,i,s={},u=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;u.push(e)}));var l,c,d,f,m=[W,(f=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],h=(c=[te,ne].concat(o,m),d=p(c),function(e,t,n,r){for(var o="",a=0;a<d;a++)o+=c[a](e,t,n,r)||"";return o});i=function(e,t,n,r){l=n,V(U(e?e+"{"+t.styles+"}":t.styles),h),r&&(v.inserted[t.name]=!0)};var v={key:t,sheet:new r.m({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return v.sheet.hydrate(u),v}},82015:function(e,t){"use strict";t.Z=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},34935:function(e,t,n){"use strict";n.d(t,{T:function(){return s},w:function(){return i}});var r=n(27378),o=n(72179),a=(n(74343),(0,r.createContext)("undefined"!=typeof HTMLElement?(0,o.Z)({key:"css"}):null));a.Provider;var i=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(a);return e(t,o,n)}))},s=(0,r.createContext)({})},10043:function(e,t,n){"use strict";n.d(t,{F4:function(){return c},xB:function(){return u}});var r=n(27378),o=(n(72179),n(34935)),a=(n(55839),n(53211)),i=n(74343),s=n(12506),u=(0,o.w)((function(e,t){var n=e.styles,u=(0,i.O)([n],void 0,(0,r.useContext)(o.T)),l=(0,r.useRef)();return(0,r.useLayoutEffect)((function(){var e=t.key+"-global",n=new s.m({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+u.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),l.current=[n,r],function(){n.flush()}}),[t]),(0,r.useLayoutEffect)((function(){var e=l.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==u.next&&(0,a.My)(t,u.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",u,n,!1)}}),[t,u.name]),null}));function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.O)(t)}var c=function(){var e=l.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},74343:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var r=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},a=n(82015),i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},c=(0,a.Z)((function(e){return u(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===o[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=f(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":l(i)&&(r+=c(a)+":"+d(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=f(e,t,i);switch(a){case"animation":case"animationName":r+=c(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var u=0;u<i.length;u++)l(i[u])&&(r+=c(a)+":"+d(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=p,a=n(e);return p=o,f(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var p,m=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var h=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,a="";p=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,a+=f(n,t,i)):a+=i[0];for(var s=1;s<e.length;s++)a+=f(n,t,e[s]),o&&(a+=i[s]);m.lastIndex=0;for(var u,l="";null!==(u=m.exec(a));)l+="-"+u[1];return{name:r(a)+l,styles:a,next:p}}},12506:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},53211:function(e,t,n){"use strict";n.d(t,{My:function(){return o},fp:function(){return r}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){!function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}}},83346:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};t.default=n},4356:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={black:"#000",white:"#fff"};t.default=n},75882:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};t.default=n},37523:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};t.default=n},38484:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};t.default=n},23042:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};t.default=n},5015:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};t.default=n},34570:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};t.default=n},9334:function(e,t,n){"use strict";var r=n(53782),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(89e3),u=n(74662),l=n(20577),c=n(33056),d=a.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,d=e.color,f=void 0===d?"default":d,p=e.component,m=void 0===p?"button":p,h=e.disabled,v=void 0!==h&&h,y=e.disableElevation,_=void 0!==y&&y,g=e.disableFocusRipple,b=void 0!==g&&g,M=e.endIcon,w=e.focusVisibleClassName,k=e.fullWidth,x=void 0!==k&&k,S=e.size,L=void 0===S?"medium":S,E=e.startIcon,T=e.type,C=void 0===T?"button":T,O=e.variant,P=void 0===O?"text":O,D=(0,r.Z)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),Y=E&&a.createElement("span",{className:(0,i.Z)(s.startIcon,s["iconSize".concat((0,c.Z)(L))])},E),j=M&&a.createElement("span",{className:(0,i.Z)(s.endIcon,s["iconSize".concat((0,c.Z)(L))])},M);return a.createElement(l.Z,(0,o.Z)({className:(0,i.Z)(s.root,s[P],u,"inherit"===f?s.colorInherit:"default"!==f&&s["".concat(P).concat((0,c.Z)(f))],"medium"!==L&&[s["".concat(P,"Size").concat((0,c.Z)(L))],s["size".concat((0,c.Z)(L))]],_&&s.disableElevation,v&&s.disabled,x&&s.fullWidth),component:m,disabled:v,focusRipple:!b,focusVisibleClassName:(0,i.Z)(s.focusVisible,w),ref:t,type:C},D),a.createElement("span",{className:s.label},Y,n,j))}));t.Z=(0,s.Z)((function(e){return{root:(0,o.Z)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,u.U1)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,u.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,u.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,u.U1)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,u.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,u.U1)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,u.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(d)},20577:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(25773),o=n(53782),a=n(27378),i=(n(23615),n(31542)),s=n(38944),u=n(1487),l=n(20926),c=n(89e3),d=!0,f=!1,p=null,m={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function h(e){e.metaKey||e.altKey||e.ctrlKey||(d=!0)}function v(){d=!1}function y(){"hidden"===this.visibilityState&&f&&(d=!0)}function _(e){var t,n,r,o=e.target;try{return o.matches(":focus-visible")}catch(a){}return d||(n=(t=o).type,!("INPUT"!==(r=t.tagName)||!m[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function g(){f=!0,window.clearTimeout(p),p=window.setTimeout((function(){f=!1}),100)}function b(){return{isFocusVisible:_,onBlurVisible:g,ref:a.useCallback((function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",h,!0),t.addEventListener("mousedown",v,!0),t.addEventListener("pointerdown",v,!0),t.addEventListener("touchstart",v,!0),t.addEventListener("visibilitychange",y,!0))}),[])}}var M=n(13285),w=n(42344),k="undefined"==typeof window?a.useEffect:a.useLayoutEffect;var x=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,u=e.rippleSize,c=e.in,d=e.onExited,f=void 0===d?function(){}:d,p=e.timeout,m=a.useState(!1),h=m[0],v=m[1],y=(0,s.Z)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),_={width:u,height:u,top:-u/2+i,left:-u/2+o},g=(0,s.Z)(t.child,h&&t.childLeaving,r&&t.childPulsate),b=(0,l.Z)(f);return k((function(){if(!c){v(!0);var e=setTimeout(b,p);return function(){clearTimeout(e)}}}),[b,c,p]),a.createElement("span",{className:y,style:_},a.createElement("span",{className:g}))},S=a.forwardRef((function(e,t){var n=e.center,i=void 0!==n&&n,u=e.classes,l=e.className,c=(0,o.Z)(e,["center","classes","className"]),d=a.useState([]),f=d[0],p=d[1],m=a.useRef(0),h=a.useRef(null);a.useEffect((function(){h.current&&(h.current(),h.current=null)}),[f]);var v=a.useRef(!1),y=a.useRef(null),_=a.useRef(null),g=a.useRef(null);a.useEffect((function(){return function(){clearTimeout(y.current)}}),[]);var b=a.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,i=e.cb;p((function(e){return[].concat((0,M.Z)(e),[a.createElement(x,{key:m.current,classes:u,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),m.current+=1,h.current=i}),[u]),k=a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,a=t.center,s=void 0===a?i||t.pulsate:a,u=t.fakeElement,l=void 0!==u&&u;if("mousedown"===e.type&&v.current)v.current=!1;else{"touchstart"===e.type&&(v.current=!0);var c,d,f,p=l?null:g.current,m=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(m.width/2),d=Math.round(m.height/2);else{var h=e.touches?e.touches[0]:e,M=h.clientX,w=h.clientY;c=Math.round(M-m.left),d=Math.round(w-m.top)}if(s)(f=Math.sqrt((2*Math.pow(m.width,2)+Math.pow(m.height,2))/3))%2==0&&(f+=1);else{var k=2*Math.max(Math.abs((p?p.clientWidth:0)-c),c)+2,x=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(k,2)+Math.pow(x,2))}e.touches?null===_.current&&(_.current=function(){b({pulsate:o,rippleX:c,rippleY:d,rippleSize:f,cb:n})},y.current=setTimeout((function(){_.current&&(_.current(),_.current=null)}),80)):b({pulsate:o,rippleX:c,rippleY:d,rippleSize:f,cb:n})}}),[i,b]),S=a.useCallback((function(){k({},{pulsate:!0})}),[k]),L=a.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===e.type&&_.current)return e.persist(),_.current(),_.current=null,void(y.current=setTimeout((function(){L(e,t)})));_.current=null,p((function(e){return e.length>0?e.slice(1):e})),h.current=t}),[]);return a.useImperativeHandle(t,(function(){return{pulsate:S,start:k,stop:L}}),[S,k,L]),a.createElement("span",(0,r.Z)({className:(0,s.Z)(u.root,l),ref:g},c),a.createElement(w.Z,{component:null,exit:!0},f))})),L=(0,c.Z)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(a.memo(S)),E=a.forwardRef((function(e,t){var n=e.action,c=e.buttonRef,d=e.centerRipple,f=void 0!==d&&d,p=e.children,m=e.classes,h=e.className,v=e.component,y=void 0===v?"button":v,_=e.disabled,g=void 0!==_&&_,M=e.disableRipple,w=void 0!==M&&M,k=e.disableTouchRipple,x=void 0!==k&&k,S=e.focusRipple,E=void 0!==S&&S,T=e.focusVisibleClassName,C=e.onBlur,O=e.onClick,P=e.onFocus,D=e.onFocusVisible,Y=e.onKeyDown,j=e.onKeyUp,Z=e.onMouseDown,N=e.onMouseLeave,R=e.onMouseUp,A=e.onTouchEnd,I=e.onTouchMove,F=e.onTouchStart,H=e.onDragLeave,$=e.tabIndex,z=void 0===$?0:$,V=e.TouchRippleProps,W=e.type,B=void 0===W?"button":W,U=(0,o.Z)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),K=a.useRef(null);var q=a.useRef(null),G=a.useState(!1),J=G[0],X=G[1];g&&J&&X(!1);var Q=b(),ee=Q.isFocusVisible,te=Q.onBlurVisible,ne=Q.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x;return(0,l.Z)((function(r){return t&&t(r),!n&&q.current&&q.current[e](r),!0}))}a.useImperativeHandle(n,(function(){return{focusVisible:function(){X(!0),K.current.focus()}}}),[]),a.useEffect((function(){J&&E&&!w&&q.current.pulsate()}),[w,E,J]);var oe=re("start",Z),ae=re("stop",H),ie=re("stop",R),se=re("stop",(function(e){J&&e.preventDefault(),N&&N(e)})),ue=re("start",F),le=re("stop",A),ce=re("stop",I),de=re("stop",(function(e){J&&(te(e),X(!1)),C&&C(e)}),!1),fe=(0,l.Z)((function(e){K.current||(K.current=e.currentTarget),ee(e)&&(X(!0),D&&D(e)),P&&P(e)})),pe=function(){var e=i.findDOMNode(K.current);return y&&"button"!==y&&!("A"===e.tagName&&e.href)},me=a.useRef(!1),he=(0,l.Z)((function(e){E&&!me.current&&J&&q.current&&" "===e.key&&(me.current=!0,e.persist(),q.current.stop(e,(function(){q.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),Y&&Y(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!g&&(e.preventDefault(),O&&O(e))})),ve=(0,l.Z)((function(e){E&&" "===e.key&&q.current&&J&&!e.defaultPrevented&&(me.current=!1,e.persist(),q.current.stop(e,(function(){q.current.pulsate(e)}))),j&&j(e),O&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&O(e)})),ye=y;"button"===ye&&U.href&&(ye="a");var _e={};"button"===ye?(_e.type=B,_e.disabled=g):("a"===ye&&U.href||(_e.role="button"),_e["aria-disabled"]=g);var ge=(0,u.Z)(c,t),be=(0,u.Z)(ne,K),Me=(0,u.Z)(ge,be),we=a.useState(!1),ke=we[0],xe=we[1];a.useEffect((function(){xe(!0)}),[]);var Se=ke&&!w&&!g;return a.createElement(ye,(0,r.Z)({className:(0,s.Z)(m.root,h,J&&[m.focusVisible,T],g&&m.disabled),onBlur:de,onClick:O,onFocus:fe,onKeyDown:he,onKeyUp:ve,onMouseDown:oe,onMouseLeave:se,onMouseUp:ie,onDragLeave:ae,onTouchEnd:le,onTouchMove:ce,onTouchStart:ue,ref:Me,tabIndex:g?-1:z},_e,U),p,Se?a.createElement(L,(0,r.Z)({ref:q,center:f},V)):null)})),T=(0,c.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(E)},80342:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(25773),o=n(53782),a=n(27378),i=(n(23615),n(38944)),s=n(86052),u=n(62063),l=(0,u.Z)(a.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),c=(0,u.Z)(a.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),d=n(74662),f=(0,u.Z)(a.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),p=n(33056),m=n(89e3),h=a.createElement(c,null),v=a.createElement(l,null),y=a.createElement(f,null),_=a.forwardRef((function(e,t){var n=e.checkedIcon,u=void 0===n?h:n,l=e.classes,c=e.color,d=void 0===c?"secondary":c,f=e.icon,m=void 0===f?v:f,_=e.indeterminate,g=void 0!==_&&_,b=e.indeterminateIcon,M=void 0===b?y:b,w=e.inputProps,k=e.size,x=void 0===k?"medium":k,S=(0,o.Z)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),L=g?M:m,E=g?M:u;return a.createElement(s.Z,(0,r.Z)({type:"checkbox",classes:{root:(0,i.Z)(l.root,l["color".concat((0,p.Z)(d))],g&&l.indeterminate),checked:l.checked,disabled:l.disabled},color:d,inputProps:(0,r.Z)({"data-indeterminate":g},w),icon:a.cloneElement(L,{fontSize:void 0===L.props.fontSize&&"small"===x?x:L.props.fontSize}),checkedIcon:a.cloneElement(E,{fontSize:void 0===E.props.fontSize&&"small"===x?x:E.props.fontSize}),ref:t},S))})),g=(0,m.Z)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,d.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,d.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(_)},54139:function(e,t,n){"use strict";var r=n(25773),o=n(53782),a=n(27378),i=(n(23615),n(38944)),s=n(8364),u=n(89e3),l=n(33056),c=n(87526),d=n(35722),f=a.forwardRef((function(e,t){var n=e.children,u=e.classes,f=e.className,p=e.color,m=void 0===p?"primary":p,h=e.component,v=void 0===h?"div":h,y=e.disabled,_=void 0!==y&&y,g=e.error,b=void 0!==g&&g,M=e.fullWidth,w=void 0!==M&&M,k=e.focused,x=e.hiddenLabel,S=void 0!==x&&x,L=e.margin,E=void 0===L?"none":L,T=e.required,C=void 0!==T&&T,O=e.size,P=e.variant,D=void 0===P?"standard":P,Y=(0,o.Z)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),j=a.useState((function(){var e=!1;return n&&a.Children.forEach(n,(function(t){if((0,c.Z)(t,["Input","Select"])){var n=(0,c.Z)(t,["Select"])?t.props.input:t;n&&(0,s.B7)(n.props)&&(e=!0)}})),e})),Z=j[0],N=j[1],R=a.useState((function(){var e=!1;return n&&a.Children.forEach(n,(function(t){(0,c.Z)(t,["Input","Select"])&&(0,s.vd)(t.props,!0)&&(e=!0)})),e})),A=R[0],I=R[1],F=a.useState(!1),H=F[0],$=F[1],z=void 0!==k?k:H;_&&z&&$(!1);var V=a.useCallback((function(){I(!0)}),[]),W={adornedStart:Z,setAdornedStart:N,color:m,disabled:_,error:b,filled:A,focused:z,fullWidth:w,hiddenLabel:S,margin:("small"===O?"dense":void 0)||E,onBlur:function(){$(!1)},onEmpty:a.useCallback((function(){I(!1)}),[]),onFilled:V,onFocus:function(){$(!0)},registerEffect:undefined,required:C,variant:D};return a.createElement(d.Z.Provider,{value:W},a.createElement(v,(0,r.Z)({className:(0,i.Z)(u.root,f,"none"!==E&&u["margin".concat((0,l.Z)(E))],w&&u.fullWidth),ref:t},Y),n))}));t.Z=(0,u.Z)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(f)},35722:function(e,t,n){"use strict";n.d(t,{Y:function(){return a}});var r=n(27378),o=r.createContext();function a(){return r.useContext(o)}t.Z=o},29775:function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}n.d(t,{Z:function(){return r}})},30584:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(27378),o=n(35722);function a(){return r.useContext(o.Z)}},21807:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(25773),o=n(53782),a=n(27378),i=(n(23615),n(38944)),s=n(30584),u=n(89e3),l=n(33056),c={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},d=a.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,u=e.classes,d=e.className,f=e.color,p=void 0===f?"initial":f,m=e.component,h=e.display,v=void 0===h?"initial":h,y=e.gutterBottom,_=void 0!==y&&y,g=e.noWrap,b=void 0!==g&&g,M=e.paragraph,w=void 0!==M&&M,k=e.variant,x=void 0===k?"body1":k,S=e.variantMapping,L=void 0===S?c:S,E=(0,o.Z)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),T=m||(w?"p":L[x]||c[x])||"span";return a.createElement(T,(0,r.Z)({className:(0,i.Z)(u.root,d,"inherit"!==x&&u[x],"initial"!==p&&u["color".concat((0,l.Z)(p))],b&&u.noWrap,_&&u.gutterBottom,w&&u.paragraph,"inherit"!==s&&u["align".concat((0,l.Z)(s))],"initial"!==v&&u["display".concat((0,l.Z)(v))]),ref:t},E))})),f=(0,u.Z)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(d),p=a.forwardRef((function(e,t){e.checked;var n=e.classes,u=e.className,c=e.control,d=e.disabled,p=(e.inputRef,e.label),m=e.labelPlacement,h=void 0===m?"end":m,v=(e.name,e.onChange,e.value,(0,o.Z)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),y=(0,s.Z)(),_=d;void 0===_&&void 0!==c.props.disabled&&(_=c.props.disabled),void 0===_&&y&&(_=y.disabled);var g={disabled:_};return["checked","name","onChange","value","inputRef"].forEach((function(t){void 0===c.props[t]&&void 0!==e[t]&&(g[t]=e[t])})),a.createElement("label",(0,r.Z)({className:(0,i.Z)(n.root,u,"end"!==h&&n["labelPlacement".concat((0,l.Z)(h))],_&&n.disabled),ref:t},v),a.cloneElement(c,g),a.createElement(f,{component:"span",className:(0,i.Z)(n.label,_&&n.disabled)},p))})),m=(0,u.Z)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(p)},61247:function(e,t,n){"use strict";var r=n(25773),o=n(53782),a=n(27378),i=(n(23615),n(38944)),s=n(89e3),u=a.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.row,l=void 0!==u&&u,c=(0,o.Z)(e,["classes","className","row"]);return a.createElement("div",(0,r.Z)({className:(0,i.Z)(n.root,s,l&&n.row),ref:t},c))}));t.Z=(0,s.Z)({root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},{name:"MuiFormGroup"})(u)},74533:function(e,t,n){"use strict";var r=n(53782),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(29775),u=n(30584),l=n(89e3),c=a.forwardRef((function(e,t){var n=e.children,l=e.classes,c=e.className,d=e.component,f=void 0===d?"p":d,p=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,(0,r.Z)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),m=(0,u.Z)(),h=(0,s.Z)({props:e,muiFormControl:m,states:["variant","margin","disabled","error","filled","focused","required"]});return a.createElement(f,(0,o.Z)({className:(0,i.Z)(l.root,("filled"===h.variant||"outlined"===h.variant)&&l.contained,c,h.disabled&&l.disabled,h.error&&l.error,h.filled&&l.filled,h.focused&&l.focused,h.required&&l.required,"dense"===h.margin&&l.marginDense),ref:t},p)," "===n?a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)}));t.Z=(0,l.Z)((function(e){return{root:(0,o.Z)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(c)},35311:function(e,t,n){"use strict";var r=n(53782),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(29775),u=n(30584),l=n(33056),c=n(89e3),d=a.forwardRef((function(e,t){var n=e.children,c=e.classes,d=e.className,f=(e.color,e.component),p=void 0===f?"label":f,m=(e.disabled,e.error,e.filled,e.focused,e.required,(0,r.Z)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),h=(0,u.Z)(),v=(0,s.Z)({props:e,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]});return a.createElement(p,(0,o.Z)({className:(0,i.Z)(c.root,c["color".concat((0,l.Z)(v.color||"primary"))],d,v.disabled&&c.disabled,v.error&&c.error,v.filled&&c.filled,v.focused&&c.focused,v.required&&c.required),ref:t},m),n,v.required&&a.createElement("span",{"aria-hidden":!0,className:(0,i.Z)(c.asterisk,v.error&&c.error)},"\u2009","*"))}));t.Z=(0,c.Z)((function(e){return{root:(0,o.Z)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(d)},90547:function(e,t,n){"use strict";var r=n(25773),o=n(53782),a=n(27378),i=(n(23615),n(38944)),s=n(89e3),u=n(74662),l=n(20577),c=n(33056),d=a.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,u=e.children,d=e.classes,f=e.className,p=e.color,m=void 0===p?"default":p,h=e.disabled,v=void 0!==h&&h,y=e.disableFocusRipple,_=void 0!==y&&y,g=e.size,b=void 0===g?"medium":g,M=(0,o.Z)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return a.createElement(l.Z,(0,r.Z)({className:(0,i.Z)(d.root,f,"default"!==m&&d["color".concat((0,c.Z)(m))],v&&d.disabled,"small"===b&&d["size".concat((0,c.Z)(b))],{start:d.edgeStart,end:d.edgeEnd}[s]),centerRipple:!0,focusRipple:!_,disabled:v,ref:t},M),a.createElement("span",{className:d.label},u))}));t.Z=(0,s.Z)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,u.U1)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,u.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,u.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(d)},8364:function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function a(e){return e.startAdornment}n.d(t,{B7:function(){return a},vd:function(){return o}})},50755:function(e,t,n){"use strict";var r=n(25773),o=n(53782),a=n(27378),i=(n(23615),n(38944)),s=n(89e3),u=n(64046),l=a.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,c=e.component,d=void 0===c?"ul":c,f=e.dense,p=void 0!==f&&f,m=e.disablePadding,h=void 0!==m&&m,v=e.subheader,y=(0,o.Z)(e,["children","classes","className","component","dense","disablePadding","subheader"]),_=a.useMemo((function(){return{dense:p}}),[p]);return a.createElement(u.Z.Provider,{value:_},a.createElement(d,(0,r.Z)({className:(0,i.Z)(s.root,l,p&&s.dense,!h&&s.padding,v&&s.subheader),ref:t},y),v,n))}));t.Z=(0,s.Z)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(l)},64046:function(e,t,n){"use strict";var r=n(27378).createContext({});t.Z=r},53332:function(e,t,n){"use strict";var r=n(25773),o=n(53782),a=n(27378),i=(n(23615),n(38944)),s=n(89e3),u=n(20577),l=n(87526),c=n(1487),d=n(64046),f=n(31542),p="undefined"==typeof window?a.useEffect:a.useLayoutEffect,m=a.forwardRef((function(e,t){var n=e.alignItems,s=void 0===n?"center":n,m=e.autoFocus,h=void 0!==m&&m,v=e.button,y=void 0!==v&&v,_=e.children,g=e.classes,b=e.className,M=e.component,w=e.ContainerComponent,k=void 0===w?"li":w,x=e.ContainerProps,S=(x=void 0===x?{}:x).className,L=(0,o.Z)(x,["className"]),E=e.dense,T=void 0!==E&&E,C=e.disabled,O=void 0!==C&&C,P=e.disableGutters,D=void 0!==P&&P,Y=e.divider,j=void 0!==Y&&Y,Z=e.focusVisibleClassName,N=e.selected,R=void 0!==N&&N,A=(0,o.Z)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),I=a.useContext(d.Z),F={dense:T||I.dense||!1,alignItems:s},H=a.useRef(null);p((function(){h&&H.current&&H.current.focus()}),[h]);var $=a.Children.toArray(_),z=$.length&&(0,l.Z)($[$.length-1],["ListItemSecondaryAction"]),V=a.useCallback((function(e){H.current=f.findDOMNode(e)}),[]),W=(0,c.Z)(V,t),B=(0,r.Z)({className:(0,i.Z)(g.root,b,F.dense&&g.dense,!D&&g.gutters,j&&g.divider,O&&g.disabled,y&&g.button,"center"!==s&&g.alignItemsFlexStart,z&&g.secondaryAction,R&&g.selected),disabled:O},A),U=M||"li";return y&&(B.component=M||"div",B.focusVisibleClassName=(0,i.Z)(g.focusVisible,Z),U=u.Z),z?(U=B.component||M?U:"div","li"===k&&("li"===U?U="div":"li"===B.component&&(B.component="div")),a.createElement(d.Z.Provider,{value:F},a.createElement(k,(0,r.Z)({className:(0,i.Z)(g.container,S),ref:W},L),a.createElement(U,B,$),$.pop()))):a.createElement(d.Z.Provider,{value:F},a.createElement(U,(0,r.Z)({ref:W},B),$))}));t.Z=(0,s.Z)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(m)},44920:function(e,t,n){"use strict";var r=n(25773),o=n(53782),a=n(27378),i=(n(23615),n(38944)),s=n(89e3),u=n(33056),l=a.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.color,c=void 0===l?"default":l,d=e.component,f=void 0===d?"li":d,p=e.disableGutters,m=void 0!==p&&p,h=e.disableSticky,v=void 0!==h&&h,y=e.inset,_=void 0!==y&&y,g=(0,o.Z)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return a.createElement(f,(0,r.Z)({className:(0,i.Z)(n.root,s,"default"!==c&&n["color".concat((0,u.Z)(c))],_&&n.inset,!v&&n.sticky,!m&&n.gutters),ref:t},g))}));t.Z=(0,s.Z)((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(l)},5633:function(e,t,n){"use strict";var r=n(53782),o=n(64649),a=n(25773),i=n(27378),s=(n(23615),n(38944)),u=n(89e3),l=n(53332),c=i.forwardRef((function(e,t){var n,o=e.classes,u=e.className,c=e.component,d=void 0===c?"li":c,f=e.disableGutters,p=void 0!==f&&f,m=e.ListItemClasses,h=e.role,v=void 0===h?"menuitem":h,y=e.selected,_=e.tabIndex,g=(0,r.Z)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==_?_:-1),i.createElement(l.Z,(0,a.Z)({button:!0,role:v,tabIndex:n,component:d,selected:y,disableGutters:p,classes:(0,a.Z)({dense:o.dense},m),className:(0,s.Z)(o.root,u,y&&o.selected,!p&&o.gutters),ref:t},g))}));t.Z=(0,u.Z)((function(e){return{root:(0,a.Z)({},e.typography.body1,(0,o.Z)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,a.Z)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(c)},76709:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(25773),o=n(53782),a=n(27378),i=(n(23615),n(38944)),s=n(86052),u=n(62063),l=(0,u.Z)(a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),c=(0,u.Z)(a.createElement("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),d=n(89e3);var f=(0,d.Z)((function(e){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},checked:{}}}),{name:"PrivateRadioButtonIcon"})((function(e){var t=e.checked,n=e.classes,r=e.fontSize;return a.createElement("div",{className:(0,i.Z)(n.root,t&&n.checked)},a.createElement(l,{fontSize:r}),a.createElement(c,{fontSize:r,className:n.layer}))})),p=n(74662),m=n(33056),h=n(14256),v=n(42838);var y=a.createElement(f,{checked:!0}),_=a.createElement(f,null),g=a.forwardRef((function(e,t){var n=e.checked,u=e.classes,l=e.color,c=void 0===l?"secondary":l,d=e.name,f=e.onChange,p=e.size,g=void 0===p?"medium":p,b=(0,o.Z)(e,["checked","classes","color","name","onChange","size"]),M=a.useContext(v.Z),w=n,k=(0,h.Z)(f,M&&M.onChange),x=d;return M&&(void 0===w&&(w=M.value===e.value),void 0===x&&(x=M.name)),a.createElement(s.Z,(0,r.Z)({color:c,type:"radio",icon:a.cloneElement(_,{fontSize:"small"===g?"small":"default"}),checkedIcon:a.cloneElement(y,{fontSize:"small"===g?"small":"default"}),classes:{root:(0,i.Z)(u.root,u["color".concat((0,m.Z)(c))]),checked:u.checked,disabled:u.disabled},name:x,checked:w,onChange:k,ref:t},b))})),b=(0,d.Z)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,p.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,p.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiRadio"})(g)},70043:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(25773),o=n(8136),a=n(53782),i=n(27378),s=(n(23615),n(61247)),u=n(1487),l=n(9655),c=n(42838);var d=i.forwardRef((function(e,t){var n=e.actions,d=e.children,f=e.name,p=e.value,m=e.onChange,h=(0,a.Z)(e,["actions","children","name","value","onChange"]),v=i.useRef(null),y=(0,l.Z)({controlled:p,default:e.defaultValue,name:"RadioGroup"}),_=(0,o.Z)(y,2),g=_[0],b=_[1];i.useImperativeHandle(n,(function(){return{focus:function(){var e=v.current.querySelector("input:not(:disabled):checked");e||(e=v.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var M,w,k,x,S,L=(0,u.Z)(t,v),E=(M=f,w=i.useState(M),k=w[0],x=w[1],S=M||k,i.useEffect((function(){null==k&&x("mui-".concat(Math.round(1e5*Math.random())))}),[k]),S);return i.createElement(c.Z.Provider,{value:{name:E,onChange:function(e){b(e.target.value),m&&m(e,e.target.value)},value:g}},i.createElement(s.Z,(0,r.Z)({role:"radiogroup",ref:L},h),d))}))},42838:function(e,t,n){"use strict";var r=n(27378).createContext();t.Z=r},82693:function(e,t,n){"use strict";var r=n(25773),o=n(53782),a=n(27378),i=(n(23615),n(38944)),s=n(89e3),u=n(74662),l=n(33056),c=n(86052),d=a.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.color,d=void 0===u?"secondary":u,f=e.edge,p=void 0!==f&&f,m=e.size,h=void 0===m?"medium":m,v=(0,o.Z)(e,["classes","className","color","edge","size"]),y=a.createElement("span",{className:n.thumb});return a.createElement("span",{className:(0,i.Z)(n.root,s,{start:n.edgeStart,end:n.edgeEnd}[p],"small"===h&&n["size".concat((0,l.Z)(h))])},a.createElement(c.Z,(0,r.Z)({type:"checkbox",icon:y,checkedIcon:y,classes:{root:(0,i.Z)(n.switchBase,n["color".concat((0,l.Z)(d))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},v)),a.createElement("span",{className:n.track}))}));t.Z=(0,s.Z)((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,u.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,u.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(d)},38725:function(e,t,n){"use strict";n.d(t,{Z:function(){return et}});var r=n(25773),o=n(53782),a=n(27378),i=(n(23615),n(38944)),s=n(43088),u=n(29775),l=n(35722),c=n(89e3),d=n(33056),f=n(1487);function p(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var i=this,s=function(){e.apply(i,o)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}function m(e,t){return parseInt(e[t],10)||0}var h="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,v={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},y=a.forwardRef((function(e,t){var n=e.onChange,i=e.rows,s=e.rowsMax,u=e.rowsMin,l=void 0===u?1:u,c=e.style,d=e.value,y=(0,o.Z)(e,["onChange","rows","rowsMax","rowsMin","style","value"]),_=i||l,g=a.useRef(null!=d).current,b=a.useRef(null),M=(0,f.Z)(t,b),w=a.useRef(null),k=a.useRef(0),x=a.useState({}),S=x[0],L=x[1],E=a.useCallback((function(){var t=b.current,n=window.getComputedStyle(t),r=w.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],a=m(n,"padding-bottom")+m(n,"padding-top"),i=m(n,"border-bottom-width")+m(n,"border-top-width"),u=r.scrollHeight-a;r.value="x";var l=r.scrollHeight-a,c=u;_&&(c=Math.max(Number(_)*l,c)),s&&(c=Math.min(Number(s)*l,c));var d=(c=Math.max(c,l))+("border-box"===o?a+i:0),f=Math.abs(c-u)<=1;L((function(e){return k.current<20&&(d>0&&Math.abs((e.outerHeightStyle||0)-d)>1||e.overflow!==f)?(k.current+=1,{overflow:f,outerHeightStyle:d}):e}))}),[s,_,e.placeholder]);a.useEffect((function(){var e=p((function(){k.current=0,E()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[E]),h((function(){E()})),a.useEffect((function(){k.current=0}),[d]);return a.createElement(a.Fragment,null,a.createElement("textarea",(0,r.Z)({value:d,onChange:function(e){k.current=0,g||E(),n&&n(e)},ref:M,rows:_,style:(0,r.Z)({height:S.outerHeightStyle,overflow:S.overflow?"hidden":null},c)},y)),a.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:w,tabIndex:-1,style:(0,r.Z)({},v,c)}))})),_=n(8364),g="undefined"==typeof window?a.useEffect:a.useLayoutEffect,b=a.forwardRef((function(e,t){var n=e["aria-describedby"],c=e.autoComplete,p=e.autoFocus,m=e.classes,h=e.className,v=(e.color,e.defaultValue),b=e.disabled,M=e.endAdornment,w=(e.error,e.fullWidth),k=void 0!==w&&w,x=e.id,S=e.inputComponent,L=void 0===S?"input":S,E=e.inputProps,T=void 0===E?{}:E,C=e.inputRef,O=(e.margin,e.multiline),P=void 0!==O&&O,D=e.name,Y=e.onBlur,j=e.onChange,Z=e.onClick,N=e.onFocus,R=e.onKeyDown,A=e.onKeyUp,I=e.placeholder,F=e.readOnly,H=e.renderSuffix,$=e.rows,z=e.rowsMax,V=e.rowsMin,W=e.startAdornment,B=e.type,U=void 0===B?"text":B,K=e.value,q=(0,o.Z)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","startAdornment","type","value"]),G=null!=T.value?T.value:K,J=a.useRef(null!=G).current,X=a.useRef(),Q=a.useCallback((function(e){0}),[]),ee=(0,f.Z)(T.ref,Q),te=(0,f.Z)(C,ee),ne=(0,f.Z)(X,te),re=a.useState(!1),oe=re[0],ae=re[1],ie=(0,l.Y)();var se=(0,u.Z)({props:e,muiFormControl:ie,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});se.focused=ie?ie.focused:oe,a.useEffect((function(){!ie&&b&&oe&&(ae(!1),Y&&Y())}),[ie,b,oe,Y]);var ue=ie&&ie.onFilled,le=ie&&ie.onEmpty,ce=a.useCallback((function(e){(0,_.vd)(e)?ue&&ue():le&&le()}),[ue,le]);g((function(){J&&ce({value:G})}),[G,ce,J]);a.useEffect((function(){ce(X.current)}),[]);var de=L,fe=(0,r.Z)({},T,{ref:ne});"string"!=typeof de?fe=(0,r.Z)({inputRef:ne,type:U},fe,{ref:null}):P?!$||z||V?(fe=(0,r.Z)({rows:$,rowsMax:z},fe),de=y):de="textarea":fe=(0,r.Z)({type:U},fe);return a.useEffect((function(){ie&&ie.setAdornedStart(Boolean(W))}),[ie,W]),a.createElement("div",(0,r.Z)({className:(0,i.Z)(m.root,m["color".concat((0,d.Z)(se.color||"primary"))],h,se.disabled&&m.disabled,se.error&&m.error,k&&m.fullWidth,se.focused&&m.focused,ie&&m.formControl,P&&m.multiline,W&&m.adornedStart,M&&m.adornedEnd,"dense"===se.margin&&m.marginDense),onClick:function(e){X.current&&e.currentTarget===e.target&&X.current.focus(),Z&&Z(e)},ref:t},q),W,a.createElement(l.Z.Provider,{value:null},a.createElement(de,(0,r.Z)({"aria-invalid":se.error,"aria-describedby":n,autoComplete:c,autoFocus:p,defaultValue:v,disabled:se.disabled,id:x,onAnimationStart:function(e){ce("mui-auto-fill-cancel"===e.animationName?X.current:{value:"x"})},name:D,placeholder:I,readOnly:F,required:se.required,rows:$,value:G,onKeyDown:R,onKeyUp:A},fe,{className:(0,i.Z)(m.input,T.className,se.disabled&&m.disabled,P&&m.inputMultiline,se.hiddenLabel&&m.inputHiddenLabel,W&&m.inputAdornedStart,M&&m.inputAdornedEnd,"search"===U&&m.inputTypeSearch,"dense"===se.margin&&m.inputMarginDense),onBlur:function(e){Y&&Y(e),T.onBlur&&T.onBlur(e),ie&&ie.onBlur?ie.onBlur(e):ae(!1)},onChange:function(e){if(!J){var t=e.target||X.current;if(null==t)throw new Error((0,s.Z)(1));ce({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];T.onChange&&T.onChange.apply(T,[e].concat(r)),j&&j.apply(void 0,[e].concat(r))},onFocus:function(e){se.disabled?e.stopPropagation():(N&&N(e),T.onFocus&&T.onFocus(e),ie&&ie.onFocus?ie.onFocus(e):ae(!0))}}))),M,H?H((0,r.Z)({},se,{startAdornment:W})):null)})),M=(0,c.Z)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},a={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:(0,r.Z)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(b),w=a.forwardRef((function(e,t){var n=e.disableUnderline,s=e.classes,u=e.fullWidth,l=void 0!==u&&u,c=e.inputComponent,d=void 0===c?"input":c,f=e.multiline,p=void 0!==f&&f,m=e.type,h=void 0===m?"text":m,v=(0,o.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return a.createElement(M,(0,r.Z)({classes:(0,r.Z)({},s,{root:(0,i.Z)(s.root,!n&&s.underline),underline:null}),fullWidth:l,inputComponent:d,multiline:p,ref:t,type:h},v))}));w.muiName="Input";var k=(0,c.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(w),x=a.forwardRef((function(e,t){var n=e.disableUnderline,s=e.classes,u=e.fullWidth,l=void 0!==u&&u,c=e.inputComponent,d=void 0===c?"input":c,f=e.multiline,p=void 0!==f&&f,m=e.type,h=void 0===m?"text":m,v=(0,o.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return a.createElement(M,(0,r.Z)({classes:(0,r.Z)({},s,{root:(0,i.Z)(s.root,!n&&s.underline),underline:null}),fullWidth:l,inputComponent:d,multiline:p,ref:t,type:h},v))}));x.muiName="Input";var S=(0,c.Z)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(x),L=n(64649),E=n(81001),T=n(42499);function C(){return(0,E.Z)()||T.Z}var O=a.forwardRef((function(e,t){e.children;var n=e.classes,s=e.className,u=e.label,l=e.labelWidth,c=e.notched,f=e.style,p=(0,o.Z)(e,["children","classes","className","label","labelWidth","notched","style"]),m="rtl"===C().direction?"right":"left";if(void 0!==u)return a.createElement("fieldset",(0,r.Z)({"aria-hidden":!0,className:(0,i.Z)(n.root,s),ref:t,style:f},p),a.createElement("legend",{className:(0,i.Z)(n.legendLabelled,c&&n.legendNotched)},u?a.createElement("span",null,u):a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var h=l>0?.75*l+8:.01;return a.createElement("fieldset",(0,r.Z)({"aria-hidden":!0,style:(0,r.Z)((0,L.Z)({},"padding".concat((0,d.Z)(m)),8),f),className:(0,i.Z)(n.root,s),ref:t},p),a.createElement("legend",{className:n.legend,style:{width:c?h:.01}},a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))})),P=(0,c.Z)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(O),D=a.forwardRef((function(e,t){var n=e.classes,s=e.fullWidth,u=void 0!==s&&s,l=e.inputComponent,c=void 0===l?"input":l,d=e.label,f=e.labelWidth,p=void 0===f?0:f,m=e.multiline,h=void 0!==m&&m,v=e.notched,y=e.type,_=void 0===y?"text":y,g=(0,o.Z)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return a.createElement(M,(0,r.Z)({renderSuffix:function(e){return a.createElement(P,{className:n.notchedOutline,label:d,labelWidth:p,notched:void 0!==v?v:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,r.Z)({},n,{root:(0,i.Z)(n.root,n.underline),notchedOutline:null}),fullWidth:u,inputComponent:c,multiline:h,ref:t,type:_},g))}));D.muiName="Input";var Y=(0,c.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(D),j=n(30584),Z=n(35311),N=a.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.disableAnimation,c=void 0!==l&&l,d=(e.margin,e.shrink),f=(e.variant,(0,o.Z)(e,["classes","className","disableAnimation","margin","shrink","variant"])),p=(0,j.Z)(),m=d;void 0===m&&p&&(m=p.filled||p.focused||p.adornedStart);var h=(0,u.Z)({props:e,muiFormControl:p,states:["margin","variant"]});return a.createElement(Z.Z,(0,r.Z)({"data-shrink":m,className:(0,i.Z)(n.root,s,p&&n.formControl,!c&&n.animated,m&&n.shrink,"dense"===h.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[h.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},f))})),R=(0,c.Z)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(N),A=n(54139),I=n(74533),F=n(56551),H=n(8136),$=n(33940);n(19185);function z(e){return e&&e.ownerDocument||document}var V=n(31542);function W(e){return z(e).defaultView||window}var B=n(14256),U=n(10765),K=n(14926);var q="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;var G=a.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,s=e.onRendered,u=a.useState(null),l=u[0],c=u[1],d=(0,f.Z)(a.isValidElement(n)?n.ref:null,t);return q((function(){i||c(function(e){return e="function"==typeof e?e():e,V.findDOMNode(e)}(r)||document.body)}),[r,i]),q((function(){if(l&&!i)return(0,K.Z)(t,l),function(){(0,K.Z)(t,null)}}),[t,l,i]),q((function(){s&&(l||i)&&s()}),[s,l,i]),i?a.isValidElement(n)?a.cloneElement(n,{ref:d}):n:l?V.createPortal(n,l):l})),J=n(20926),X=n(13897),Q=n(22951),ee=n(91976),te=n(13285);function ne(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function re(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function oe(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function ae(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,a=[t,n].concat((0,te.Z)(r)),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===a.indexOf(e)&&-1===i.indexOf(e.tagName)&&re(e,o)}))}function ie(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function se(e,t){var n,r=[],o=[],a=e.container;if(!t.disableScrollLock){if(function(e){var t=z(e);return t.body===e?W(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(a)){var i=ne();r.push({value:a.style.paddingRight,key:"padding-right",el:a}),a.style["padding-right"]="".concat(oe(a)+i,"px"),n=z(a).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(oe(e)+i,"px")}))}var s=a.parentElement,u="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:a;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var ue=function(){function e(){(0,Q.Z)(this,e),this.modals=[],this.containers=[]}return(0,ee.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&re(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ae(t,e.mountNode,e.modalRef,r,!0);var o=ie(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=ie(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=se(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=ie(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&re(e.modalRef,!0),ae(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&re(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var le=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,s=e.disableRestoreFocus,u=void 0!==s&&s,l=e.getDoc,c=e.isEnabled,d=e.open,p=a.useRef(),m=a.useRef(null),h=a.useRef(null),v=a.useRef(),y=a.useRef(null),_=a.useCallback((function(e){y.current=V.findDOMNode(e)}),[]),g=(0,f.Z)(t.ref,_),b=a.useRef();return a.useEffect((function(){b.current=d}),[d]),!b.current&&d&&"undefined"!=typeof window&&(v.current=l().activeElement),a.useEffect((function(){if(d){var e=z(y.current);r||!y.current||y.current.contains(e.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex",-1),y.current.focus());var t=function(){null!==y.current&&(e.hasFocus()&&!i&&c()&&!p.current?y.current&&!y.current.contains(e.activeElement)&&y.current.focus():p.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===y.current&&(p.current=!0,t.shiftKey?h.current.focus():m.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),u||(v.current&&v.current.focus&&v.current.focus(),v.current=null)}}}),[r,i,u,c,d]),a.createElement(a.Fragment,null,a.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),a.cloneElement(t,{ref:g}),a.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))},ce={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},de=a.forwardRef((function(e,t){var n=e.invisible,i=void 0!==n&&n,s=e.open,u=(0,o.Z)(e,["invisible","open"]);return s?a.createElement("div",(0,r.Z)({"aria-hidden":!0,ref:t},u,{style:(0,r.Z)({},ce.root,i?ce.invisible:{},u.style)})):null}));var fe=new ue,pe=a.forwardRef((function(e,t){var n=(0,E.Z)(),i=(0,U.Z)({name:"MuiModal",props:(0,r.Z)({},e),theme:n}),s=i.BackdropComponent,u=void 0===s?de:s,l=i.BackdropProps,c=i.children,d=i.closeAfterTransition,p=void 0!==d&&d,m=i.container,h=i.disableAutoFocus,v=void 0!==h&&h,y=i.disableBackdropClick,_=void 0!==y&&y,g=i.disableEnforceFocus,b=void 0!==g&&g,M=i.disableEscapeKeyDown,w=void 0!==M&&M,k=i.disablePortal,x=void 0!==k&&k,S=i.disableRestoreFocus,L=void 0!==S&&S,T=i.disableScrollLock,C=void 0!==T&&T,O=i.hideBackdrop,P=void 0!==O&&O,D=i.keepMounted,Y=void 0!==D&&D,j=i.manager,Z=void 0===j?fe:j,N=i.onBackdropClick,R=i.onClose,A=i.onEscapeKeyDown,I=i.onRendered,F=i.open,H=(0,o.Z)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),$=a.useState(!0),W=$[0],K=$[1],q=a.useRef({}),Q=a.useRef(null),ee=a.useRef(null),te=(0,f.Z)(ee,t),ne=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),oe=function(){return z(Q.current)},ae=function(){return q.current.modalRef=ee.current,q.current.mountNode=Q.current,q.current},ie=function(){Z.mount(ae(),{disableScrollLock:C}),ee.current.scrollTop=0},se=(0,J.Z)((function(){var e=function(e){return e="function"==typeof e?e():e,V.findDOMNode(e)}(m)||oe().body;Z.add(ae(),e),ee.current&&ie()})),ue=a.useCallback((function(){return Z.isTopModal(ae())}),[Z]),ce=(0,J.Z)((function(e){Q.current=e,e&&(I&&I(),F&&ue()?ie():re(ee.current,!0))})),pe=a.useCallback((function(){Z.remove(ae())}),[Z]);if(a.useEffect((function(){return function(){pe()}}),[pe]),a.useEffect((function(){F?se():ne&&p||pe()}),[F,pe,ne,p,se]),!Y&&!F&&(!ne||W))return null;var me=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:X.Z}),he={};return void 0===c.props.tabIndex&&(he.tabIndex=c.props.tabIndex||"-1"),ne&&(he.onEnter=(0,B.Z)((function(){K(!1)}),c.props.onEnter),he.onExited=(0,B.Z)((function(){K(!0),p&&pe()}),c.props.onExited)),a.createElement(G,{ref:ce,container:m,disablePortal:x},a.createElement("div",(0,r.Z)({ref:te,onKeyDown:function(e){"Escape"===e.key&&ue()&&(A&&A(e),w||(e.stopPropagation(),R&&R(e,"escapeKeyDown")))},role:"presentation"},H,{style:(0,r.Z)({},me.root,!F&&W?me.hidden:{},H.style)}),P?null:a.createElement(u,(0,r.Z)({open:F,onClick:function(e){e.target===e.currentTarget&&(N&&N(e),!_&&R&&R(e,"backdropClick"))}},l)),a.createElement(le,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:L,getDoc:oe,isEnabled:ue,open:F},a.cloneElement(c,he))))})),me=n(42802);function he(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}function ve(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var ye={entering:{opacity:1,transform:ve(1)},entered:{opacity:1,transform:"none"}},_e=a.forwardRef((function(e,t){var n=e.children,i=e.disableStrictModeCompat,s=void 0!==i&&i,u=e.in,l=e.onEnter,c=e.onEntered,d=e.onEntering,p=e.onExit,m=e.onExited,h=e.onExiting,v=e.style,y=e.timeout,_=void 0===y?"auto":y,g=e.TransitionComponent,b=void 0===g?me.ZP:g,M=(0,o.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),w=a.useRef(),k=a.useRef(),x=C(),S=x.unstable_strictMode&&!s,L=a.useRef(null),E=(0,f.Z)(n.ref,t),T=(0,f.Z)(S?L:void 0,E),O=function(e){return function(t,n){if(e){var r=S?[L.current,t]:[t,n],o=(0,H.Z)(r,2),a=o[0],i=o[1];void 0===i?e(a):e(a,i)}}},P=O(d),D=O((function(e,t){!function(e){e.scrollTop}(e);var n,r=he({style:v,timeout:_},{mode:"enter"}),o=r.duration,a=r.delay;"auto"===_?(n=x.transitions.getAutoHeightDuration(e.clientHeight),k.current=n):n=o,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:a}),x.transitions.create("transform",{duration:.666*n,delay:a})].join(","),l&&l(e,t)})),Y=O(c),j=O(h),Z=O((function(e){var t,n=he({style:v,timeout:_},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===_?(t=x.transitions.getAutoHeightDuration(e.clientHeight),k.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:o}),x.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=ve(.75),p&&p(e)})),N=O(m);return a.useEffect((function(){return function(){clearTimeout(w.current)}}),[]),a.createElement(b,(0,r.Z)({appear:!0,in:u,nodeRef:S?L:void 0,onEnter:D,onEntered:Y,onEntering:P,onExit:Z,onExited:N,onExiting:j,addEndListener:function(e,t){var n=S?e:t;"auto"===_&&(w.current=setTimeout(n,k.current||0))},timeout:"auto"===_?null:_},M),(function(e,t){return a.cloneElement(n,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:ve(.75),visibility:"exited"!==e||u?void 0:"hidden"},ye[e],v,n.props.style),ref:T},t))}))}));_e.muiSupportAuto=!0;var ge=_e,be=a.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.component,l=void 0===u?"div":u,c=e.square,d=void 0!==c&&c,f=e.elevation,p=void 0===f?1:f,m=e.variant,h=void 0===m?"elevation":m,v=(0,o.Z)(e,["classes","className","component","square","elevation","variant"]);return a.createElement(l,(0,r.Z)({className:(0,i.Z)(n.root,s,"outlined"===h?n.outlined:n["elevation".concat(p)],!d&&n.rounded),ref:t},v))})),Me=(0,c.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,r.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(be);function we(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ke(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function xe(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Se(e){return"function"==typeof e?e():e}var Le=a.forwardRef((function(e,t){var n=e.action,s=e.anchorEl,u=e.anchorOrigin,l=void 0===u?{vertical:"top",horizontal:"left"}:u,c=e.anchorPosition,d=e.anchorReference,f=void 0===d?"anchorEl":d,m=e.children,h=e.classes,v=e.className,y=e.container,_=e.elevation,g=void 0===_?8:_,b=e.getContentAnchorEl,M=e.marginThreshold,w=void 0===M?16:M,k=e.onEnter,x=e.onEntered,S=e.onEntering,L=e.onExit,E=e.onExited,T=e.onExiting,C=e.open,O=e.PaperProps,P=void 0===O?{}:O,D=e.transformOrigin,Y=void 0===D?{vertical:"top",horizontal:"left"}:D,j=e.TransitionComponent,Z=void 0===j?ge:j,N=e.transitionDuration,R=void 0===N?"auto":N,A=e.TransitionProps,I=void 0===A?{}:A,F=(0,o.Z)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),H=a.useRef(),$=a.useCallback((function(e){if("anchorPosition"===f)return c;var t=Se(s),n=(t&&1===t.nodeType?t:z(H.current).body).getBoundingClientRect(),r=0===e?l.vertical:"center";return{top:n.top+we(n,r),left:n.left+ke(n,l.horizontal)}}),[s,l.horizontal,l.vertical,c,f]),U=a.useCallback((function(e){var t=0;if(b&&"anchorEl"===f){var n=b(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[l.vertical,f,b]),K=a.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:we(e,Y.vertical)+t,horizontal:ke(e,Y.horizontal)}}),[Y.horizontal,Y.vertical]),q=a.useCallback((function(e){var t=U(e),n={width:e.offsetWidth,height:e.offsetHeight},r=K(n,t);if("none"===f)return{top:null,left:null,transformOrigin:xe(r)};var o=$(t),a=o.top-r.vertical,i=o.left-r.horizontal,u=a+n.height,l=i+n.width,c=W(Se(s)),d=c.innerHeight-w,p=c.innerWidth-w;if(a<w){var m=a-w;a-=m,r.vertical+=m}else if(u>d){var h=u-d;a-=h,r.vertical+=h}if(i<w){var v=i-w;i-=v,r.horizontal+=v}else if(l>p){var y=l-p;i-=y,r.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(i),"px"),transformOrigin:xe(r)}}),[s,f,$,U,K,w]),G=a.useCallback((function(){var e=H.current;if(e){var t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[q]),J=a.useCallback((function(e){H.current=V.findDOMNode(e)}),[]);a.useEffect((function(){C&&G()})),a.useImperativeHandle(n,(function(){return C?{updatePosition:function(){G()}}:null}),[C,G]),a.useEffect((function(){if(C){var e=p((function(){G()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,G]);var X=R;"auto"!==R||Z.muiSupportAuto||(X=void 0);var Q=y||(s?z(Se(s)).body:void 0);return a.createElement(pe,(0,r.Z)({container:Q,open:C,ref:t,BackdropProps:{invisible:!0},className:(0,i.Z)(h.root,v)},F),a.createElement(Z,(0,r.Z)({appear:!0,in:C,onEnter:k,onEntered:x,onExit:L,onExited:E,onExiting:T,timeout:X},I,{onEntering:(0,B.Z)((function(e,t){S&&S(e,t),G()}),I.onEntering)}),a.createElement(Me,(0,r.Z)({elevation:g,ref:J},P,{className:(0,i.Z)(h.paper,P.className)}),m)))})),Ee=(0,c.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Le),Te=n(50755);function Ce(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Oe(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Pe(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function De(e,t,n,r,o,a){for(var i=!1,s=o(e,t,!!t&&n);s;){if(s===e.firstChild){if(i)return;i=!0}var u=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Pe(s,a)&&!u)return void s.focus();s=o(e,s,n)}}var Ye="undefined"==typeof window?a.useEffect:a.useLayoutEffect,je=a.forwardRef((function(e,t){var n=e.actions,i=e.autoFocus,s=void 0!==i&&i,u=e.autoFocusItem,l=void 0!==u&&u,c=e.children,d=e.className,p=e.disabledItemsFocusable,m=void 0!==p&&p,h=e.disableListWrap,v=void 0!==h&&h,y=e.onKeyDown,_=e.variant,g=void 0===_?"selectedMenu":_,b=(0,o.Z)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),M=a.useRef(null),w=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ye((function(){s&&M.current.focus()}),[s]),a.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!M.current.style.width;if(e.clientHeight<M.current.clientHeight&&n){var r="".concat(ne(),"px");M.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,M.current.style.width="calc(100% + ".concat(r,")")}return M.current}}}),[]);var k=a.useCallback((function(e){M.current=V.findDOMNode(e)}),[]),x=(0,f.Z)(k,t),S=-1;a.Children.forEach(c,(function(e,t){a.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===S)&&(S=t))}));var L=a.Children.map(c,(function(e,t){if(t===S){var n={};return l&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===g&&(n.tabIndex=0),a.cloneElement(e,n)}return e}));return a.createElement(Te.Z,(0,r.Z)({role:"menu",ref:x,className:d,onKeyDown:function(e){var t=M.current,n=e.key,r=z(t).activeElement;if("ArrowDown"===n)e.preventDefault(),De(t,r,v,m,Ce);else if("ArrowUp"===n)e.preventDefault(),De(t,r,v,m,Oe);else if("Home"===n)e.preventDefault(),De(t,null,v,m,Ce);else if("End"===n)e.preventDefault(),De(t,null,v,m,Oe);else if(1===n.length){var o=w.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);var s=r&&!o.repeating&&Pe(r,o);o.previousKeyMatched&&(s||De(t,r,!1,m,Ce,o))?e.preventDefault():o.previousKeyMatched=!1}y&&y(e)},tabIndex:s?0:-1},b),L)})),Ze={vertical:"top",horizontal:"right"},Ne={vertical:"top",horizontal:"left"},Re=a.forwardRef((function(e,t){var n=e.autoFocus,s=void 0===n||n,u=e.children,l=e.classes,c=e.disableAutoFocusItem,d=void 0!==c&&c,f=e.MenuListProps,p=void 0===f?{}:f,m=e.onClose,h=e.onEntering,v=e.open,y=e.PaperProps,_=void 0===y?{}:y,g=e.PopoverClasses,b=e.transitionDuration,M=void 0===b?"auto":b,w=e.variant,k=void 0===w?"selectedMenu":w,x=(0,o.Z)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),S=C(),L=s&&!d&&v,E=a.useRef(null),T=a.useRef(null),O=-1;a.Children.map(u,(function(e,t){a.isValidElement(e)&&(e.props.disabled||("menu"!==k&&e.props.selected||-1===O)&&(O=t))}));var P=a.Children.map(u,(function(e,t){return t===O?a.cloneElement(e,{ref:function(t){T.current=V.findDOMNode(t),(0,K.Z)(e.ref,t)}}):e}));return a.createElement(Ee,(0,r.Z)({getContentAnchorEl:function(){return T.current},classes:g,onClose:m,onEntering:function(e,t){E.current&&E.current.adjustStyleForScrollbar(e,S),h&&h(e,t)},anchorOrigin:"rtl"===S.direction?Ze:Ne,transformOrigin:"rtl"===S.direction?Ze:Ne,PaperProps:(0,r.Z)({},_,{classes:(0,r.Z)({},_.classes,{root:l.paper})}),open:v,ref:t,transitionDuration:M},x),a.createElement(je,(0,r.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),m&&m(e,"tabKeyDown"))},actions:E,autoFocus:s&&(-1===O||d),autoFocusItem:L,variant:k},p,{className:(0,i.Z)(l.list,p.className)}),P))})),Ae=(0,c.Z)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(Re),Ie=n(9655);function Fe(e,t){return"object"===(0,$.Z)(t)&&null!==t?e===t:String(e)===String(t)}var He=a.forwardRef((function(e,t){var n=e["aria-label"],u=e.autoFocus,l=e.autoWidth,c=e.children,p=e.classes,m=e.className,h=e.defaultValue,v=e.disabled,y=e.displayEmpty,g=e.IconComponent,b=e.inputRef,M=e.labelId,w=e.MenuProps,k=void 0===w?{}:w,x=e.multiple,S=e.name,L=e.onBlur,E=e.onChange,T=e.onClose,C=e.onFocus,O=e.onOpen,P=e.open,D=e.readOnly,Y=e.renderValue,j=e.SelectDisplayProps,Z=void 0===j?{}:j,N=e.tabIndex,R=(e.type,e.value),A=e.variant,I=void 0===A?"standard":A,F=(0,o.Z)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),$=(0,Ie.Z)({controlled:R,default:h,name:"Select"}),V=(0,H.Z)($,2),W=V[0],B=V[1],U=a.useRef(null),K=a.useState(null),q=K[0],G=K[1],J=a.useRef(null!=P).current,X=a.useState(),Q=X[0],ee=X[1],te=a.useState(!1),ne=te[0],re=te[1],oe=(0,f.Z)(t,b);a.useImperativeHandle(oe,(function(){return{focus:function(){q.focus()},node:U.current,value:W}}),[q,W]),a.useEffect((function(){u&&q&&q.focus()}),[u,q]),a.useEffect((function(){if(q){var e=z(q).getElementById(M);if(e){var t=function(){getSelection().isCollapsed&&q.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[M,q]);var ae,ie,se=function(e,t){e?O&&O(t):T&&T(t),J||(ee(l?null:q.clientWidth),re(e))},ue=a.Children.toArray(c),le=function(e){return function(t){var n;if(x||se(!1,t),x){n=Array.isArray(W)?W.slice():[];var r=W.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),W!==n&&(B(n),E&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:S}}),E(t,e)))}},ce=null!==q&&(J?P:ne);delete F["aria-invalid"];var de=[],fe=!1;((0,_.vd)({value:W})||y)&&(Y?ae=Y(W):fe=!0);var pe=ue.map((function(e){if(!a.isValidElement(e))return null;var t;if(x){if(!Array.isArray(W))throw new Error((0,s.Z)(2));(t=W.some((function(t){return Fe(t,e.props.value)})))&&fe&&de.push(e.props.children)}else(t=Fe(W,e.props.value))&&fe&&(ie=e.props.children);return t&&!0,a.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:le(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));fe&&(ae=x?de.join(", "):ie);var me,he=Q;!l&&J&&q&&(he=q.clientWidth),me=void 0!==N?N:v?null:0;var ve=Z.id||(S?"mui-component-select-".concat(S):void 0);return a.createElement(a.Fragment,null,a.createElement("div",(0,r.Z)({className:(0,i.Z)(p.root,p.select,p.selectMenu,p[I],m,v&&p.disabled),ref:G,tabIndex:me,role:"button","aria-disabled":v?"true":void 0,"aria-expanded":ce?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[M,ve].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!D){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),se(!0,e))}},onMouseDown:v||D?null:function(e){0===e.button&&(e.preventDefault(),q.focus(),se(!0,e))},onBlur:function(e){!ce&&L&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:W,name:S}}),L(e))},onFocus:C},Z,{id:ve}),function(e){return null==e||"string"==typeof e&&!e.trim()}(ae)?a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):ae),a.createElement("input",(0,r.Z)({value:Array.isArray(W)?W.join(","):W,name:S,ref:U,"aria-hidden":!0,onChange:function(e){var t=ue.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=ue[t];B(n.props.value),E&&E(e,n)}},tabIndex:-1,className:p.nativeInput,autoFocus:u},F)),a.createElement(g,{className:(0,i.Z)(p.icon,p["icon".concat((0,d.Z)(I))],ce&&p.iconOpen,v&&p.disabled)}),a.createElement(Ae,(0,r.Z)({id:"menu-".concat(S||""),anchorEl:q,open:ce,onClose:function(e){se(!1,e)}},k,{MenuListProps:(0,r.Z)({"aria-labelledby":M,role:"listbox",disableListWrap:!0},k.MenuListProps),PaperProps:(0,r.Z)({},k.PaperProps,{style:(0,r.Z)({minWidth:he},null!=k.PaperProps?k.PaperProps.style:null)})}),pe))})),$e=(0,n(62063).Z)(a.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ze=a.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.disabled,l=e.IconComponent,c=e.inputRef,f=e.variant,p=void 0===f?"standard":f,m=(0,o.Z)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return a.createElement(a.Fragment,null,a.createElement("select",(0,r.Z)({className:(0,i.Z)(n.root,n.select,n[p],s,u&&n.disabled),disabled:u,ref:c||t},m)),e.multiple?null:a.createElement(l,{className:(0,i.Z)(n.icon,n["icon".concat((0,d.Z)(p))],u&&n.disabled)}))})),Ve=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},We=a.createElement(k,null),Be=a.forwardRef((function(e,t){var n=e.children,i=e.classes,s=e.IconComponent,l=void 0===s?$e:s,c=e.input,d=void 0===c?We:c,f=e.inputProps,p=(e.variant,(0,o.Z)(e,["children","classes","IconComponent","input","inputProps","variant"])),m=(0,j.Z)(),h=(0,u.Z)({props:e,muiFormControl:m,states:["variant"]});return a.cloneElement(d,(0,r.Z)({inputComponent:ze,inputProps:(0,r.Z)({children:n,classes:i,IconComponent:l,variant:h.variant,type:void 0},f,d?d.props.inputProps:{}),ref:t},p))}));Be.muiName="Select";(0,c.Z)(Ve,{name:"MuiNativeSelect"})(Be);var Ue=Ve,Ke=a.createElement(k,null),qe=a.createElement(S,null),Ge=a.forwardRef((function e(t,n){var i=t.autoWidth,s=void 0!==i&&i,l=t.children,c=t.classes,d=t.displayEmpty,f=void 0!==d&&d,p=t.IconComponent,m=void 0===p?$e:p,h=t.id,v=t.input,y=t.inputProps,_=t.label,g=t.labelId,b=t.labelWidth,M=void 0===b?0:b,w=t.MenuProps,k=t.multiple,x=void 0!==k&&k,S=t.native,L=void 0!==S&&S,E=t.onClose,T=t.onOpen,C=t.open,O=t.renderValue,P=t.SelectDisplayProps,D=t.variant,Z=void 0===D?"standard":D,N=(0,o.Z)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),R=L?ze:He,A=(0,j.Z)(),I=(0,u.Z)({props:t,muiFormControl:A,states:["variant"]}).variant||Z,H=v||{standard:Ke,outlined:a.createElement(Y,{label:_,labelWidth:M}),filled:qe}[I];return a.cloneElement(H,(0,r.Z)({inputComponent:R,inputProps:(0,r.Z)({children:l,IconComponent:m,variant:I,type:void 0,multiple:x},L?{id:h}:{autoWidth:s,displayEmpty:f,labelId:g,MenuProps:w,onClose:E,onOpen:T,open:C,renderValue:O,SelectDisplayProps:(0,r.Z)({id:h},P)},y,{classes:y?(0,F.Z)({baseClasses:c,newClasses:y.classes,Component:e}):c},v?v.props.inputProps:{}),ref:n},N))}));Ge.muiName="Select";var Je=(0,c.Z)(Ue,{name:"MuiSelect"})(Ge),Xe={standard:k,filled:S,outlined:Y},Qe=a.forwardRef((function(e,t){var n=e.autoComplete,s=e.autoFocus,u=void 0!==s&&s,l=e.children,c=e.classes,d=e.className,f=e.color,p=void 0===f?"primary":f,m=e.defaultValue,h=e.disabled,v=void 0!==h&&h,y=e.error,_=void 0!==y&&y,g=e.FormHelperTextProps,b=e.fullWidth,M=void 0!==b&&b,w=e.helperText,k=e.hiddenLabel,x=e.id,S=e.InputLabelProps,L=e.inputProps,E=e.InputProps,T=e.inputRef,C=e.label,O=e.multiline,P=void 0!==O&&O,D=e.name,Y=e.onBlur,j=e.onChange,Z=e.onFocus,N=e.placeholder,F=e.required,H=void 0!==F&&F,$=e.rows,z=e.rowsMax,V=e.select,W=void 0!==V&&V,B=e.SelectProps,U=e.type,K=e.value,q=e.variant,G=void 0===q?"standard":q,J=(0,o.Z)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]);var X={};if("outlined"===G&&(S&&void 0!==S.shrink&&(X.notched=S.shrink),C)){var Q,ee=null!==(Q=null==S?void 0:S.required)&&void 0!==Q?Q:H;X.label=a.createElement(a.Fragment,null,C,ee&&"\xa0*")}W&&(B&&B.native||(X.id=void 0),X["aria-describedby"]=void 0);var te=w&&x?"".concat(x,"-helper-text"):void 0,ne=C&&x?"".concat(x,"-label"):void 0,re=Xe[G],oe=a.createElement(re,(0,r.Z)({"aria-describedby":te,autoComplete:n,autoFocus:u,defaultValue:m,fullWidth:M,multiline:P,name:D,rows:$,rowsMax:z,type:U,value:K,id:x,inputRef:T,onBlur:Y,onChange:j,onFocus:Z,placeholder:N,inputProps:L},X,E));return a.createElement(A.Z,(0,r.Z)({className:(0,i.Z)(c.root,d),disabled:v,error:_,fullWidth:M,hiddenLabel:k,ref:t,required:H,color:p,variant:G},J),C&&a.createElement(R,(0,r.Z)({htmlFor:x,id:ne},S),C),W?a.createElement(Je,(0,r.Z)({"aria-describedby":te,id:x,labelId:ne,value:K,input:oe},B),l):oe,w&&a.createElement(I.Z,(0,r.Z)({id:te},g),w))})),et=(0,c.Z)({root:{}},{name:"MuiTextField"})(Qe)},86052:function(e,t,n){"use strict";var r=n(25773),o=n(8136),a=n(53782),i=n(27378),s=(n(23615),n(38944)),u=n(9655),l=n(30584),c=n(89e3),d=n(90547),f=i.forwardRef((function(e,t){var n=e.autoFocus,c=e.checked,f=e.checkedIcon,p=e.classes,m=e.className,h=e.defaultChecked,v=e.disabled,y=e.icon,_=e.id,g=e.inputProps,b=e.inputRef,M=e.name,w=e.onBlur,k=e.onChange,x=e.onFocus,S=e.readOnly,L=e.required,E=e.tabIndex,T=e.type,C=e.value,O=(0,a.Z)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),P=(0,u.Z)({controlled:c,default:Boolean(h),name:"SwitchBase",state:"checked"}),D=(0,o.Z)(P,2),Y=D[0],j=D[1],Z=(0,l.Z)(),N=v;Z&&void 0===N&&(N=Z.disabled);var R="checkbox"===T||"radio"===T;return i.createElement(d.Z,(0,r.Z)({component:"span",className:(0,s.Z)(p.root,m,Y&&p.checked,N&&p.disabled),disabled:N,tabIndex:null,role:void 0,onFocus:function(e){x&&x(e),Z&&Z.onFocus&&Z.onFocus(e)},onBlur:function(e){w&&w(e),Z&&Z.onBlur&&Z.onBlur(e)},ref:t},O),i.createElement("input",(0,r.Z)({autoFocus:n,checked:c,defaultChecked:h,className:p.input,disabled:N,id:R&&_,name:M,onChange:function(e){var t=e.target.checked;j(t),k&&k(e,t)},readOnly:S,ref:b,required:L,tabIndex:E,type:T,value:C},g)),Y?f:y)}));t.Z=(0,c.Z)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(f)},74662:function(e,t,n){"use strict";n.d(t,{$n:function(){return d},U1:function(){return l},_j:function(){return c},mi:function(){return s}});var r=n(43088);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function i(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e){var t="hsl"===(e=a(e)).type?a(function(e){var t=(e=a(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-s*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",c=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(l+="a",c.push(t[3])),i({type:l,values:c})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){return e=a(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,i(e)}function c(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return i(e)}function d(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return i(e)}},42499:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var r=n(53782),o=n(16534),a=n(25773),i=["xs","sm","md","lg","xl"];function s(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,o=e.unit,s=void 0===o?"px":o,u=e.step,l=void 0===u?5:u,c=(0,r.Z)(e,["values","unit","step"]);function d(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var r=i.indexOf(t);return r===i.length-1?d(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[i[r+1]]?n[i[r+1]]:t)-l/100).concat(s,")")}return(0,a.Z)({keys:i,values:n,up:d,down:function(e){var t=i.indexOf(e)+1,r=n[i[t]];return t===i.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-l/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},c)}var u=n(64649);function l(e,t,n){var r;return(0,a.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,u.Z)({},e.up("sm"),(0,a.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,u.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,u.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(43088),d={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},m={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},y={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},_={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},g=n(74662),b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:f[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},M={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f[800],default:"#303030"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function w(e,t,n,r){var o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,g.$n)(e.main,o):"dark"===t&&(e.dark=(0,g._j)(e.main,a)))}function k(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,i=e.secondary,s=void 0===i?{light:m.A200,main:m.A400,dark:m.A700}:i,u=e.error,l=void 0===u?{light:h[300],main:h[500],dark:h[700]}:u,k=e.warning,x=void 0===k?{light:v[300],main:v[500],dark:v[700]}:k,S=e.info,L=void 0===S?{light:y[300],main:y[500],dark:y[700]}:S,E=e.success,T=void 0===E?{light:_[300],main:_[500],dark:_[700]}:E,C=e.type,O=void 0===C?"light":C,P=e.contrastThreshold,D=void 0===P?3:P,Y=e.tonalOffset,j=void 0===Y?.2:Y,Z=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function N(e){return(0,g.mi)(e,M.text.primary)>=D?M.text.primary:b.text.primary}var R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,a.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.Z)(4,t));if("string"!=typeof e.main)throw new Error((0,c.Z)(5,JSON.stringify(e.main)));return w(e,"light",n,j),w(e,"dark",r,j),e.contrastText||(e.contrastText=N(e.main)),e},A={dark:M,light:b};return(0,o.Z)((0,a.Z)({common:d,type:O,primary:R(n),secondary:R(s,"A400","A200","A700"),error:R(l),warning:R(x),info:R(L),success:R(T),grey:f,contrastThreshold:D,getContrastText:N,augmentColor:R,tonalOffset:j},A[O]),Z)}function x(e){return Math.round(1e5*e)/1e5}var S={textTransform:"uppercase"},L='"Roboto", "Helvetica", "Arial", sans-serif';function E(e,t){var n="function"==typeof t?t(e):t,i=n.fontFamily,s=void 0===i?L:i,u=n.fontSize,l=void 0===u?14:u,c=n.fontWeightLight,d=void 0===c?300:c,f=n.fontWeightRegular,p=void 0===f?400:f,m=n.fontWeightMedium,h=void 0===m?500:m,v=n.fontWeightBold,y=void 0===v?700:v,_=n.htmlFontSize,g=void 0===_?16:_,b=n.allVariants,M=n.pxToRem,w=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var k=l/14,E=M||function(e){return"".concat(e/g*k,"rem")},T=function(e,t,n,r,o){return(0,a.Z)({fontFamily:s,fontWeight:e,fontSize:E(t),lineHeight:n},s===L?{letterSpacing:"".concat(x(r/t),"em")}:{},o,b)},C={h1:T(d,96,1.167,-1.5),h2:T(d,60,1.2,-.5),h3:T(p,48,1.167,0),h4:T(p,34,1.235,.25),h5:T(p,24,1.334,0),h6:T(h,20,1.6,.15),subtitle1:T(p,16,1.75,.15),subtitle2:T(h,14,1.57,.1),body1:T(p,16,1.5,.15),body2:T(p,14,1.43,.15),button:T(h,14,1.75,.4,S),caption:T(p,12,1.66,.4),overline:T(p,12,2.66,1,S)};return(0,o.Z)((0,a.Z)({htmlFontSize:g,pxToRem:E,round:x,fontFamily:s,fontSize:l,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:h,fontWeightBold:y},C),w,{clone:!1})}function T(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var C=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)],O={borderRadius:4},P=n(29989);function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,P.h)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var Y={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},j={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Z(e){return"".concat(Math.round(e),"ms")}var N={easing:Y,duration:j,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,o=void 0===n?j.standard:n,a=t.easing,i=void 0===a?Y.easeInOut:a,s=t.delay,u=void 0===s?0:s;(0,r.Z)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof o?o:Z(o)," ").concat(i," ").concat("string"==typeof u?u:Z(u))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},R=n(13897);var A=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,a=e.mixins,i=void 0===a?{}:a,u=e.palette,c=void 0===u?{}:u,d=e.spacing,f=e.typography,p=void 0===f?{}:f,m=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),h=k(c),v=s(n),y=D(d),_=(0,o.Z)({breakpoints:v,direction:"ltr",mixins:l(v,y,i),overrides:{},palette:h,props:{},shadows:C,typography:E(h,p),spacing:y,shape:O,transitions:N,zIndex:R.Z},m),g=arguments.length,b=new Array(g>1?g-1:0),M=1;M<g;M++)b[M-1]=arguments[M];return _=b.reduce((function(e,t){return(0,o.Z)(e,t)}),_)},I=A()},89e3:function(e,t,n){"use strict";var r=n(25773),o=n(75861),a=n(42499);t.Z=function(e,t){return(0,o.Z)(e,(0,r.Z)({defaultTheme:a.Z},t))}},13897:function(e,t){"use strict";t.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},33056:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(43088);function o(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},14256:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{Z:function(){return r}})},62063:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(25773),o=n(27378),a=n(53782),i=(n(23615),n(38944)),s=n(89e3),u=n(33056),l=o.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,c=e.color,d=void 0===c?"inherit":c,f=e.component,p=void 0===f?"svg":f,m=e.fontSize,h=void 0===m?"default":m,v=e.htmlColor,y=e.titleAccess,_=e.viewBox,g=void 0===_?"0 0 24 24":_,b=(0,a.Z)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(p,(0,r.Z)({className:(0,i.Z)(s.root,l,"inherit"!==d&&s["color".concat((0,u.Z)(d))],"default"!==h&&s["fontSize".concat((0,u.Z)(h))]),focusable:"false",viewBox:g,color:v,"aria-hidden":!y||void 0,role:y?"img":void 0,ref:t},b),n,y?o.createElement("title",null,y):null)}));l.muiName="SvgIcon";var c=(0,s.Z)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(l);function d(e,t){var n=function(t,n){return o.createElement(c,(0,r.Z)({ref:n},t),e)};return n.muiName=c.muiName,o.memo(o.forwardRef(n))}},87526:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(27378);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},14926:function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},9655:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(27378);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),a=r.useState(n),i=a[0],s=a[1];return[o?t:i,r.useCallback((function(e){o||s(e)}),[])]}},20926:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(27378),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function a(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},1487:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(27378),o=n(14926);function a(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,o.Z)(e,n),(0,o.Z)(t,n)}}),[e,t])}},88071:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRgb=a,t.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=s(e).values;return"#".concat(t.map((function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t})).join(""))},t.hslToRgb=i,t.decomposeColor=s,t.recomposeColor=u,t.getContrastRatio=function(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.getLuminance=l,t.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?c(e,t):d(e,t)},t.fade=function(e,t){e=s(e),t=o(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a");return e.values[3]=t,u(e)},t.darken=c,t.lighten=d;var r=n(52342);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function a(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function i(e){var t=(e=s(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-a*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",c=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(l+="a",c.push(t[3])),u({type:l,values:c})}function s(e){if(e.type)return e;if("#"===e.charAt(0))return s(a(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.formatMuiErrorMessage)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function u(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function l(e){var t="hsl"===(e=s(e)).type?s(i(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){if(e=s(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function d(e,t){if(e=s(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return u(e)}},82959:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,s=void 0===r?"px":r,u=e.step,l=void 0===u?5:u,c=(0,a.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var r=i.indexOf(t);return r===i.length-1?d(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[i[r+1]]?n[i[r+1]]:t)-l/100).concat(s,")")}return(0,o.default)({keys:i,values:n,up:d,down:function(e){var t=i.indexOf(e)+1,r=n[i[t]];return t===i.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-l/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},c)},t.keys=void 0;var o=r(n(73119)),a=r(n(70966)),i=["xs","sm","md","lg","xl"];t.keys=i},38434:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r;return(0,a.default)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.default)({paddingLeft:t(2),paddingRight:t(2)},n,(0,o.default)({},e.up("sm"),(0,a.default)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,o.default)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,o.default)(r,e.up("sm"),{minHeight:64}),r)},n)};var o=r(n(93231)),a=r(n(73119))},67425:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;r(n(93231));var o=r(n(70966)),a=n(52342),i=r(n(82959)),s=r(n(38434)),u=r(n(19167)),l=r(n(33586)),c=r(n(59795)),d=r(n(67136)),f=r(n(64738)),p=r(n(56819)),m=r(n(22341));var h=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,h=void 0===r?{}:r,v=e.palette,y=void 0===v?{}:v,_=e.spacing,g=e.typography,b=void 0===g?{}:g,M=(0,o.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,u.default)(y),k=(0,i.default)(n),x=(0,f.default)(_),S=(0,a.deepmerge)({breakpoints:k,direction:"ltr",mixins:(0,s.default)(k,x,h),overrides:{},palette:w,props:{},shadows:c.default,typography:(0,l.default)(w,b),spacing:x,shape:d.default,transitions:p.default,zIndex:m.default},M),L=arguments.length,E=new Array(L>1?L-1:0),T=1;T<L;T++)E[T-1]=arguments[T];return S=E.reduce((function(e,t){return(0,a.deepmerge)(e,t)}),S)};t.default=h},19167:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.primary,n=void 0===t?{light:l.default[300],main:l.default[500],dark:l.default[700]}:t,r=e.secondary,g=void 0===r?{light:c.default.A200,main:c.default.A400,dark:c.default.A700}:r,b=e.error,M=void 0===b?{light:d.default[300],main:d.default[500],dark:d.default[700]}:b,w=e.warning,k=void 0===w?{light:f.default[300],main:f.default[500],dark:f.default[700]}:w,x=e.info,S=void 0===x?{light:p.default[300],main:p.default[500],dark:p.default[700]}:x,L=e.success,E=void 0===L?{light:m.default[300],main:m.default[500],dark:m.default[700]}:L,T=e.type,C=void 0===T?"light":T,O=e.contrastThreshold,P=void 0===O?3:O,D=e.tonalOffset,Y=void 0===D?.2:D,j=(0,a.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function Z(e){return(0,h.getContrastRatio)(e,y.text.primary)>=P?y.text.primary:v.text.primary}var N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,o.default)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,i.formatMuiErrorMessage)(4,t));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return _(e,"light",n,Y),_(e,"dark",r,Y),e.contrastText||(e.contrastText=Z(e.main)),e},R={dark:y,light:v};0;return(0,i.deepmerge)((0,o.default)({common:s.default,type:C,primary:N(n),secondary:N(g,"A400","A200","A700"),error:N(M),warning:N(k),info:N(S),success:N(E),grey:u.default,contrastThreshold:P,getContrastText:Z,augmentColor:N,tonalOffset:Y},R[C]),j)},t.dark=t.light=void 0;var o=r(n(73119)),a=r(n(70966)),i=n(52342),s=r(n(4356)),u=r(n(37523)),l=r(n(38484)),c=r(n(5015)),d=r(n(34570)),f=r(n(23042)),p=r(n(83346)),m=r(n(75882)),h=n(88071),v={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:s.default.white,default:u.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};t.light=v;var y={text:{primary:s.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:u.default[800],default:"#303030"},action:{active:s.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _(e,t,n,r){var o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,h.lighten)(e.main,o):"dark"===t&&(e.dark=(0,h.darken)(e.main,a)))}t.dark=y},64738:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,r.createUnarySpacing)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n};var r=n(73479)},33586:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,c=void 0===r?l:r,d=n.fontSize,f=void 0===d?14:d,p=n.fontWeightLight,m=void 0===p?300:p,h=n.fontWeightRegular,v=void 0===h?400:h,y=n.fontWeightMedium,_=void 0===y?500:y,g=n.fontWeightBold,b=void 0===g?700:g,M=n.htmlFontSize,w=void 0===M?16:M,k=n.allVariants,x=n.pxToRem,S=(0,a.default)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);0;var L=f/14,E=x||function(e){return"".concat(e/w*L,"rem")},T=function(e,t,n,r,a){return(0,o.default)({fontFamily:c,fontWeight:e,fontSize:E(t),lineHeight:n},c===l?{letterSpacing:"".concat(s(r/t),"em")}:{},a,k)},C={h1:T(m,96,1.167,-1.5),h2:T(m,60,1.2,-.5),h3:T(v,48,1.167,0),h4:T(v,34,1.235,.25),h5:T(v,24,1.334,0),h6:T(_,20,1.6,.15),subtitle1:T(v,16,1.75,.15),subtitle2:T(_,14,1.57,.1),body1:T(v,16,1.5,.15),body2:T(v,14,1.43,.15),button:T(_,14,1.75,.4,u),caption:T(v,12,1.66,.4),overline:T(v,12,2.66,1,u)};return(0,i.deepmerge)((0,o.default)({htmlFontSize:w,pxToRem:E,round:s,fontFamily:c,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:_,fontWeightBold:b},C),S,{clone:!1})};var o=r(n(73119)),a=r(n(70966)),i=n(52342);function s(e){return Math.round(1e5*e)/1e5}var u={textTransform:"uppercase"},l='"Roboto", "Helvetica", "Arial", sans-serif'},23096:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(0,r(n(67425)).default)();t.default=o},59795:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;function n(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var r=["none",n(0,2,1,-1,0,1,1,0,0,1,3,0),n(0,3,1,-2,0,2,2,0,0,1,5,0),n(0,3,3,-2,0,3,4,0,0,1,8,0),n(0,2,4,-1,0,4,5,0,0,1,10,0),n(0,3,5,-1,0,5,8,0,0,1,14,0),n(0,3,5,-1,0,6,10,0,0,1,18,0),n(0,4,5,-2,0,7,10,1,0,2,16,1),n(0,5,5,-3,0,8,10,1,0,3,14,2),n(0,5,6,-3,0,9,12,1,0,3,16,2),n(0,6,6,-3,0,10,14,1,0,4,18,3),n(0,6,7,-4,0,11,15,1,0,4,20,3),n(0,7,8,-4,0,12,17,2,0,5,22,4),n(0,7,8,-4,0,13,19,2,0,5,24,4),n(0,7,9,-4,0,14,21,2,0,5,26,4),n(0,8,9,-5,0,15,22,2,0,6,28,5),n(0,8,10,-5,0,16,24,2,0,6,30,5),n(0,8,11,-5,0,17,26,2,0,6,32,5),n(0,9,11,-5,0,18,28,2,0,7,34,6),n(0,9,12,-6,0,19,29,2,0,7,36,6),n(0,10,13,-6,0,20,31,3,0,8,38,7),n(0,10,13,-6,0,21,33,3,0,8,40,7),n(0,10,14,-6,0,22,35,3,0,8,42,7),n(0,11,14,-7,0,23,36,3,0,9,44,8),n(0,11,15,-7,0,24,38,3,0,9,46,8)];t.default=r},67136:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={borderRadius:4};t.default=n},56819:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.duration=t.easing=void 0;var o=r(n(70966)),a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};t.easing=a;var i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function s(e){return"".concat(Math.round(e),"ms")}t.duration=i;var u={easing:a,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?i.standard:n,u=t.easing,l=void 0===u?a.easeInOut:u,c=t.delay,d=void 0===c?0:c;(0,o.default)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:s(r)," ").concat(l," ").concat("string"==typeof d?d:s(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};t.default=u},82956:function(e,t,n){"use strict";var r=n(73203);t.Z=function(){0;return(0,o.useTheme)()||a.default};var o=n(92460),a=(r(n(27378)),r(n(23096)))},22341:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};t.default=n},94246:function(e,t,n){"use strict";n.d(t,{NU:function(){return m},ZP:function(){return h},tP:function(){return f}});var r,o=n(25773),a=n(53782),i=n(27378),s=(n(23615),n(25556)),u=n(48130),l=n(27152),c=(0,u.Ue)((0,l.Z)()),d=(0,s.Z)(),f=new Map,p={disableGeneration:!1,generateClassName:d,jss:c,sheetsCache:null,sheetsManager:f,sheetsRegistry:null},m=i.createContext(p);function h(e){var t=e.children,n=e.injectFirst,s=void 0!==n&&n,c=e.disableGeneration,d=void 0!==c&&c,f=(0,a.Z)(e,["children","injectFirst","disableGeneration"]),p=i.useContext(m),h=(0,o.Z)({},p,{disableGeneration:d},f);if(!h.jss.options.insertionPoint&&s&&"undefined"!=typeof window){if(!r){var v=document.head;r=document.createComment("mui-inject-first"),v.insertBefore(r,v.firstChild)}h.jss=(0,u.Ue)({plugins:(0,l.Z)().plugins,insertionPoint:r})}return i.createElement(m.Provider,{value:h},t)}},62192:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for;t.Z=n?Symbol.for("mui.nested"):"__THEME_NESTED__"},25556:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(62192),o=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,a=e.productionPrefix,i=void 0===a?"jss":a,s=e.seed,u=void 0===s?"":s,l=""===u?"":"".concat(u,"-"),c=0,d=function(){return c+=1};return function(e,t){var a=t.options.name;if(a&&0===a.indexOf("Mui")&&!t.options.link&&!n){if(-1!==o.indexOf(e.key))return"Mui-".concat(e.key);var s="".concat(l).concat(a,"-").concat(e.key);return t.options.theme[r.Z]&&""===u?"".concat(s,"-").concat(d()):s}return"".concat(l).concat(i).concat(d())}}},10765:function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,a=t.props[n];for(o in a)void 0===r[o]&&(r[o]=a[o]);return r}n.d(t,{Z:function(){return r}})},92460:function(e,t,n){"use strict";n.r(t),n.d(t,{ServerStyleSheets:function(){return h},StylesContext:function(){return m.NU},StylesProvider:function(){return m.ZP},ThemeProvider:function(){return S},createGenerateClassName:function(){return r.Z},createStyles:function(){return o},getThemeProps:function(){return a.Z},jssPreset:function(){return i.Z},makeStyles:function(){return s.Z},mergeClasses:function(){return u.Z},sheetsManager:function(){return m.tP},styled:function(){return M},useTheme:function(){return k.Z},withStyles:function(){return L.Z},withTheme:function(){return T},withThemeCreator:function(){return E}});var r=n(25556);function o(e){return e}var a=n(10765),i=n(27152),s=n(63916),u=n(56551),l=n(25773),c=n(22951),d=n(91976),f=n(27378),p=n(48130),m=n(94246),h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,c.Z)(this,e),this.options=t}return(0,d.Z)(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new p.xE;var n=(0,r.Z)();return f.createElement(m.ZP,(0,l.Z)({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return f.createElement("style",(0,l.Z)({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}(),v=n(53782),y=n(38944),_=(n(23615),n(55839)),g=n.n(_);function b(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function M(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.name,o=(0,v.Z)(n,["name"]);var a,i=r,u="function"==typeof t?function(e){return{root:function(n){return t((0,l.Z)({theme:e},n))}}}:{root:t},c=(0,s.Z)(u,(0,l.Z)({Component:e,name:r||e.displayName,classNamePrefix:i},o));t.filterProps&&(a=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var d=f.forwardRef((function(t,n){var r=t.children,o=t.className,i=t.clone,s=t.component,u=(0,v.Z)(t,["children","className","clone","component"]),d=c(t),p=(0,y.Z)(d.root,o),m=u;if(a&&(m=b(m,a)),i)return f.cloneElement(r,(0,l.Z)({className:(0,y.Z)(r.props.className,p)},m));if("function"==typeof r)return r((0,l.Z)({className:p},m));var h=s||e;return f.createElement(h,(0,l.Z)({ref:n,className:p},m),r)}));return g()(d,e),d}}var w=n(38145),k=n(81001),x=n(62192);var S=function(e){var t=e.children,n=e.theme,r=(0,k.Z)(),o=f.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):(0,l.Z)({},e,t)}(r,n);return null!=e&&(e[x.Z]=null!==r),e}),[n,r]);return f.createElement(w.Z.Provider,{value:o},t)},L=n(75861);function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=function(e){var n=f.forwardRef((function(n,r){var o=n.innerRef,a=(0,v.Z)(n,["innerRef"]),i=(0,k.Z)()||t;return f.createElement(e,(0,l.Z)({theme:i,ref:o||r},a))}));return g()(n,e),n};return n}var T=E()},27152:function(e,t,n){"use strict";n.d(t,{Z:function(){return Ze}});var r=n(48130),o=Date.now(),a="fnValues"+o,i="fnStyle"+ ++o,s=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var o=(0,r.JH)(e,{},n);return o[i]=t,o},onProcessStyle:function(e,t){if(a in t||i in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[a]=n,e},onUpdate:function(e,t,n,r){var o=t,s=o[i];s&&(o.style=s(e)||{});var u=o[a];if(u)for(var l in u)o.prop(l,u[l](e),r)}}},u=n(25773),l="@global",c="@global ",d=function(){function e(e,t,n){for(var o in this.type="global",this.at=l,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.RB((0,u.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),f=function(){function e(e,t,n){this.type="global",this.at=l,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(c.length);this.rule=n.jss.createRule(r,t,(0,u.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),p=/\s*,\s*/g;function m(e,t){for(var n=e.split(p),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var h=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===l)return new d(e,t,n);if("@"===e[0]&&e.substr(0,c.length)===c)return new f(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[l]:null;if(o){for(var a in o)t.addRule(a,o[a],(0,u.Z)({},n,{selector:m(a,e.selector)}));delete r[l]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,l.length)===l){var a=m(o.substr(l.length),e.selector);t.addRule(a,r[o],(0,u.Z)({},n,{selector:a})),delete r[o]}}(e,t))}}},v=/\s*,\s*/g,y=/&/g,_=/\$([\w-]+)/g;var g=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(v),r=e.split(v),o="",a=0;a<n.length;a++)for(var i=n[a],s=0;s<r.length;s++){var u=r[s];o&&(o+=", "),o+=-1!==u.indexOf("&")?u.replace(y,i):i+" "+u}return o}function n(e,t,n){if(n)return(0,u.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,u.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,a){if("style"!==o.type)return r;var i,s,l=o,c=l.options.parent;for(var d in r){var f=-1!==d.indexOf("&"),p="@"===d[0];if(f||p){if(i=n(l,c,i),f){var m=t(d,l.selector);s||(s=e(c,a)),m=m.replace(_,s),c.addRule(m,r[d],(0,u.Z)({},i,{selector:m}))}else p&&c.addRule(d,{},i).addRule(l.key,r[d],{selector:l.selector});delete r[d]}}return r}}},b=/[A-Z]/g,M=/^ms-/,w={};function k(e){return"-"+e.toLowerCase()}var x=function(e){if(w.hasOwnProperty(e))return w[e];var t=e.replace(b,k);return w[e]=M.test(t)?"-"+t:t};function S(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:x(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(S):t.fallbacks=S(e.fallbacks)),t}var L=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=S(e[t]);return e}return S(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=x(t);return t===r?e:(n.prop(r,e),null)}}},E=r.HZ&&CSS?CSS.px:"px",T=r.HZ&&CSS?CSS.ms:"ms",C=r.HZ&&CSS?CSS.percent:"%";function O(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var P=O({"animation-delay":T,"animation-duration":T,"background-position":E,"background-position-x":E,"background-position-y":E,"background-size":E,border:E,"border-bottom":E,"border-bottom-left-radius":E,"border-bottom-right-radius":E,"border-bottom-width":E,"border-left":E,"border-left-width":E,"border-radius":E,"border-right":E,"border-right-width":E,"border-top":E,"border-top-left-radius":E,"border-top-right-radius":E,"border-top-width":E,"border-width":E,"border-block":E,"border-block-end":E,"border-block-end-width":E,"border-block-start":E,"border-block-start-width":E,"border-block-width":E,"border-inline":E,"border-inline-end":E,"border-inline-end-width":E,"border-inline-start":E,"border-inline-start-width":E,"border-inline-width":E,"border-start-start-radius":E,"border-start-end-radius":E,"border-end-start-radius":E,"border-end-end-radius":E,margin:E,"margin-bottom":E,"margin-left":E,"margin-right":E,"margin-top":E,"margin-block":E,"margin-block-end":E,"margin-block-start":E,"margin-inline":E,"margin-inline-end":E,"margin-inline-start":E,padding:E,"padding-bottom":E,"padding-left":E,"padding-right":E,"padding-top":E,"padding-block":E,"padding-block-end":E,"padding-block-start":E,"padding-inline":E,"padding-inline-end":E,"padding-inline-start":E,"mask-position-x":E,"mask-position-y":E,"mask-size":E,height:E,width:E,"min-height":E,"max-height":E,"min-width":E,"max-width":E,bottom:E,left:E,top:E,right:E,inset:E,"inset-block":E,"inset-block-end":E,"inset-block-start":E,"inset-inline":E,"inset-inline-end":E,"inset-inline-start":E,"box-shadow":E,"text-shadow":E,"column-gap":E,"column-rule":E,"column-rule-width":E,"column-width":E,"font-size":E,"font-size-delta":E,"letter-spacing":E,"text-decoration-thickness":E,"text-indent":E,"text-stroke":E,"text-stroke-width":E,"word-spacing":E,motion:E,"motion-offset":E,outline:E,"outline-offset":E,"outline-width":E,perspective:E,"perspective-origin-x":C,"perspective-origin-y":C,"transform-origin":C,"transform-origin-x":C,"transform-origin-y":C,"transform-origin-z":C,"transition-delay":T,"transition-duration":T,"vertical-align":E,"flex-basis":E,"shape-margin":E,size:E,gap:E,grid:E,"grid-gap":E,"row-gap":E,"grid-row-gap":E,"grid-column-gap":E,"grid-template-rows":E,"grid-template-columns":E,"grid-auto-rows":E,"grid-auto-columns":E,"box-shadow-x":E,"box-shadow-y":E,"box-shadow-blur":E,"box-shadow-spread":E,"font-line-height":E,"text-shadow-x":E,"text-shadow-y":E,"text-shadow-blur":E});function D(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=D(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=D(o,t[o],n);else for(var a in t)t[a]=D(e+"-"+a,t[a],n);else if("number"==typeof t&&!1===isNaN(t)){var i=n[e]||P[e];return!i||0===t&&i===E?t.toString():"function"==typeof i?i(t).toString():""+t+i}return t}var Y=function(e){void 0===e&&(e={});var t=O(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=D(r,e[r],t);return e},onChangeValue:function(e,n){return D(n,e,t)}}},j=n(11612),Z=n(13285),N="",R="",A="",I="",F=j.Z&&"ontouchstart"in document.documentElement;if(j.Z){var H={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},$=document.createElement("p").style;for(var z in H)if(z+"Transform"in $){N=z,R=H[z];break}"Webkit"===N&&"msHyphens"in $&&(N="ms",R=H.ms,I="edge"),"Webkit"===N&&"-apple-trailing-word"in $&&(A="apple")}var V=N,W=R,B=A,U=I,K=F;var q={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===V?"-webkit-"+e:W+e)}},G={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===V?W+"print-"+e:e)}},J=/[-\s]+(.)?/g;function X(e,t){return t?t.toUpperCase():""}function Q(e){return e.replace(J,X)}function ee(e){return Q("-"+e)}var te,ne={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===V){var n="mask-image";if(Q(n)in t)return e;if(V+ee(n)in t)return W+e}return e}},re={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==B||K?e:W+e)}},oe={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:W+e)}},ae={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:W+e)}},ie={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===V||"ms"===V&&"edge"!==U?W+e:e)}},se={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===V||"ms"===V||"apple"===B?W+e:e)}},ue={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===V?"WebkitColumn"+ee(e)in t&&W+"column-"+e:"Moz"===V&&("page"+ee(e)in t&&"page-"+e))}},le={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===V)return e;var n=e.replace("-inline","");return V+ee(n)in t&&W+n}},ce={supportedProperty:function(e,t){return Q(e)in t&&e}},de={supportedProperty:function(e,t){var n=ee(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:V+n in t?W+e:"Webkit"!==V&&"Webkit"+n in t&&"-webkit-"+e}},fe={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===V?""+W+e:e)}},pe={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===V?W+"scroll-chaining":e)}},me={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},he={supportedProperty:function(e,t){var n=me[e];return!!n&&(V+ee(n)in t&&W+n)}},ve={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ye=Object.keys(ve),_e=function(e){return W+e},ge={supportedProperty:function(e,t,n){var r=n.multiple;if(ye.indexOf(e)>-1){var o=ve[e];if(!Array.isArray(o))return V+ee(o)in t&&W+o;if(!r)return!1;for(var a=0;a<o.length;a++)if(!(V+ee(o[0])in t))return!1;return o.map(_e)}return!1}},be=[q,G,ne,re,oe,ae,ie,se,ue,le,ce,de,fe,pe,he,ge],Me=be.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),we=be.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,Z.Z)(t.noPrefill)),e}),[]),ke={};if(j.Z){te=document.createElement("p");var xe=window.getComputedStyle(document.documentElement,"");for(var Se in xe)isNaN(Se)||(ke[xe[Se]]=xe[Se]);we.forEach((function(e){return delete ke[e]}))}function Le(e,t){if(void 0===t&&(t={}),!te)return e;if(null!=ke[e])return ke[e];"transition"!==e&&"transform"!==e||(t[e]=e in te.style);for(var n=0;n<Me.length&&(ke[e]=Me[n](e,te.style,t),!ke[e]);n++);try{te.style[e]=""}catch(r){return!1}return ke[e]}var Ee,Te={},Ce={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Oe=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Pe(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Le(t):", "+Le(n);return r||(t||n)}function De(e,t){var n=t;if(!Ee||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Te[r])return Te[r];try{Ee.style[e]=n}catch(o){return Te[r]=!1,!1}if(Ce[e])n=n.replace(Oe,Pe);else if(""===Ee.style[e]&&("-ms-flex"===(n=W+n)&&(Ee.style[e]="-ms-flexbox"),Ee.style[e]=n,""===Ee.style[e]))return Te[r]=!1,!1;return Ee.style[e]="",Te[r]=n,Te[r]}j.Z&&(Ee=document.createElement("p"));var Ye=function(){function e(t){for(var n in t){var o=t[n];if("fallbacks"===n&&Array.isArray(o))t[n]=o.map(e);else{var a=!1,i=Le(n);i&&i!==n&&(a=!0);var s=!1,u=De(i,(0,r.EK)(o));u&&u!==o&&(s=!0),(a||s)&&(a&&delete t[n],t[i||n]=u||o)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===V?e:"@"+W+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return De(t,(0,r.EK)(e))||e}}};var je=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),a=0;a<o.length;a++)r[o[a]]=t[o[a]];return r}}};function Ze(){return{plugins:[s(),h(),g(),L(),Y(),"undefined"==typeof window?null:Ye(),je()]}}},63916:function(e,t,n){"use strict";n.d(t,{Z:function(){return M}});var r=n(53782),o=n(25773),a=n(27378),i=n(48130),s=n(56551),u={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},l=n(81001),c=n(94246),d=-1e9;function f(){return d+=1}var p=n(16534);function m(e){var t="function"==typeof e;return{create:function(n,r){var a;try{a=t?e(n):e}catch(u){throw u}if(!r||!n.overrides||!n.overrides[r])return a;var i=n.overrides[r],s=(0,o.Z)({},a);return Object.keys(i).forEach((function(e){s[e]=(0,p.Z)(s[e],i[e])})),s},options:{}}}var h={};function v(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=(0,s.Z)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function y(e,t){var n=e.state,r=e.theme,a=e.stylesOptions,l=e.stylesCreator,c=e.name;if(!a.disableGeneration){var d=u.get(a.sheetsManager,l,r);d||(d={refs:0,staticSheet:null,dynamicStyles:null},u.set(a.sheetsManager,l,r,d));var f=(0,o.Z)({},l.options,a,{theme:r,flip:"boolean"==typeof a.flip?a.flip:"rtl"===r.direction});f.generateId=f.serverGenerateClassName||f.generateClassName;var p=a.sheetsRegistry;if(0===d.refs){var m;a.sheetsCache&&(m=u.get(a.sheetsCache,l,r));var h=l.create(r,c);m||((m=a.jss.createStyleSheet(h,(0,o.Z)({link:!1},f))).attach(),a.sheetsCache&&u.set(a.sheetsCache,l,r,m)),p&&p.add(m),d.staticSheet=m,d.dynamicStyles=(0,i._$)(h)}if(d.dynamicStyles){var v=a.jss.createStyleSheet(d.dynamicStyles,(0,o.Z)({link:!0},f));v.update(t),v.attach(),n.dynamicSheet=v,n.classes=(0,s.Z)({baseClasses:d.staticSheet.classes,newClasses:v.classes}),p&&p.add(v)}else n.classes=d.staticSheet.classes;d.refs+=1}}function _(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function g(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var a=u.get(r.sheetsManager,o,n);a.refs-=1;var i=r.sheetsRegistry;0===a.refs&&(u.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(a.staticSheet),i&&i.remove(a.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),i&&i.remove(t.dynamicSheet))}}function b(e,t){var n,r=a.useRef([]),o=a.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),a.useEffect((function(){return function(){n&&n()}}),[o])}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,i=t.classNamePrefix,s=t.Component,u=t.defaultTheme,d=void 0===u?h:u,p=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),M=m(e),w=n||i||"makeStyles";M.options={index:f(),name:n,meta:w,classNamePrefix:w};var k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,l.Z)()||d,r=(0,o.Z)({},a.useContext(c.NU),p),i=a.useRef(),u=a.useRef();b((function(){var o={name:n,state:{},stylesCreator:M,stylesOptions:r,theme:t};return y(o,e),u.current=!1,i.current=o,function(){g(o)}}),[t,M]),a.useEffect((function(){u.current&&_(i.current,e),u.current=!0}));var f=v(i.current,e.classes,s);return f};return k}},56551:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(25773);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var o=(0,r.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},38145:function(e,t,n){"use strict";var r=n(27378).createContext(null);t.Z=r},81001:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(27378),o=n(38145);function a(){return r.useContext(o.Z)}},75861:function(e,t,n){"use strict";var r=n(25773),o=n(53782),a=n(27378),i=(n(23615),n(55839)),s=n.n(i),u=n(63916),l=n(10765),c=n(81001);t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,d=t.withTheme,f=void 0!==d&&d,p=t.name,m=(0,o.Z)(t,["defaultTheme","withTheme","name"]);var h=p,v=(0,u.Z)(e,(0,r.Z)({defaultTheme:i,Component:n,name:p||n.displayName,classNamePrefix:h},m)),y=a.forwardRef((function(e,t){e.classes;var s,u=e.innerRef,d=(0,o.Z)(e,["classes","innerRef"]),m=v((0,r.Z)({},n.defaultProps,e)),h=d;return("string"==typeof p||f)&&(s=(0,c.Z)()||i,p&&(h=(0,l.Z)({theme:s,name:p,props:d})),f&&!h.theme&&(h.theme=s)),a.createElement(n,(0,r.Z)({ref:u||t,classes:m},h))}));return s()(y,n),y}}},58712:function(e,t,n){"use strict";n.d(t,{k:function(){return l}});var r=n(13285),o=n(25773),a=n(33940),i=(n(23615),n(16625)),s={xs:0,sm:600,md:960,lg:1280,xl:1920},u={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(s[e],"px)")}};function l(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||u;return t.reduce((function(e,o,a){return e[r.up(r.keys[a])]=n(t[a]),e}),{})}if("object"===(0,a.Z)(t)){var o=e.theme.breakpoints||u;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}t.Z=function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||u,a=r.keys.reduce((function(n,a){return t[a]&&((n=n||{})[r.up(a)]=e((0,o.Z)({theme:t.theme},t[a]))),n}),null);return(0,i.Z)(n,a)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat((0,r.Z)(e.filterProps)),t}},73479:function(e,t,n){"use strict";n.r(t),n.d(t,{alignContent:function(){return N},alignItems:function(){return Z},alignSelf:function(){return H},bgcolor:function(){return ae},border:function(){return c},borderBottom:function(){return p},borderColor:function(){return h},borderLeft:function(){return m},borderRadius:function(){return v},borderRight:function(){return f},borderTop:function(){return d},borders:function(){return y},bottom:function(){return de},boxSizing:function(){return xe},breakpoints:function(){return o.Z},color:function(){return oe},compose:function(){return u},createUnarySpacing:function(){return Le.h},css:function(){return w},display:function(){return O},flex:function(){return A},flexBasis:function(){return P},flexDirection:function(){return D},flexGrow:function(){return I},flexShrink:function(){return F},flexWrap:function(){return Y},flexbox:function(){return V},fontFamily:function(){return Ee},fontSize:function(){return Te},fontStyle:function(){return Ce},fontWeight:function(){return Oe},grid:function(){return re},gridArea:function(){return ne},gridAutoColumns:function(){return J},gridAutoFlow:function(){return G},gridAutoRows:function(){return X},gridColumn:function(){return K},gridColumnGap:function(){return B},gridGap:function(){return W},gridRow:function(){return q},gridRowGap:function(){return U},gridTemplateAreas:function(){return te},gridTemplateColumns:function(){return Q},gridTemplateRows:function(){return ee},height:function(){return ge},justifyContent:function(){return j},justifyItems:function(){return $},justifySelf:function(){return z},left:function(){return fe},letterSpacing:function(){return Pe},lineHeight:function(){return De},maxHeight:function(){return be},maxWidth:function(){return ye},minHeight:function(){return Me},minWidth:function(){return _e},order:function(){return R},palette:function(){return ie},position:function(){return se},positions:function(){return pe},right:function(){return ce},shadows:function(){return me},sizeHeight:function(){return ke},sizeWidth:function(){return we},sizing:function(){return Se},spacing:function(){return Le.Z},style:function(){return i},styleFunctionSx:function(){return k},textAlign:function(){return Ye},top:function(){return le},typography:function(){return je},width:function(){return ve},zIndex:function(){return ue}});var r=n(64649),o=n(58712);function a(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}var i=function(e){var t=e.prop,n=e.cssProperty,i=void 0===n?e.prop:n,s=e.themeKey,u=e.transform,l=function(e){if(null==e[t])return null;var n=e[t],l=a(e.theme,s)||{};return(0,o.k)(e,n,(function(e){var t;return"function"==typeof l?t=l(e):Array.isArray(l)?t=l[e]||e:(t=a(l,e)||e,u&&(t=u(t))),!1===i?t:(0,r.Z)({},i,t)}))};return l.propTypes={},l.filterProps=[t],l},s=n(16625);var u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?(0,s.Z)(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r};function l(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var c=i({prop:"border",themeKey:"borders",transform:l}),d=i({prop:"borderTop",themeKey:"borders",transform:l}),f=i({prop:"borderRight",themeKey:"borders",transform:l}),p=i({prop:"borderBottom",themeKey:"borders",transform:l}),m=i({prop:"borderLeft",themeKey:"borders",transform:l}),h=i({prop:"borderColor",themeKey:"palette"}),v=i({prop:"borderRadius",themeKey:"shape"}),y=u(c,d,f,p,m,h,v),_=n(13285),g=n(25773);n(23615);function b(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function M(e){var t=function(t){var n=e(t);return t.css?(0,g.Z)({},(0,s.Z)(n,e((0,g.Z)({theme:t.theme},t.css))),b(t.css,[e.filterProps])):t.sx?(0,g.Z)({},(0,s.Z)(n,e((0,g.Z)({theme:t.theme},t.sx))),b(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat((0,_.Z)(e.filterProps)),t}function w(e){return M(e)}var k=M,x=i({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),S=i({prop:"display"}),L=i({prop:"overflow"}),E=i({prop:"textOverflow"}),T=i({prop:"visibility"}),C=i({prop:"whiteSpace"}),O=u(x,S,L,E,T,C),P=i({prop:"flexBasis"}),D=i({prop:"flexDirection"}),Y=i({prop:"flexWrap"}),j=i({prop:"justifyContent"}),Z=i({prop:"alignItems"}),N=i({prop:"alignContent"}),R=i({prop:"order"}),A=i({prop:"flex"}),I=i({prop:"flexGrow"}),F=i({prop:"flexShrink"}),H=i({prop:"alignSelf"}),$=i({prop:"justifyItems"}),z=i({prop:"justifySelf"}),V=u(P,D,Y,j,Z,N,R,A,I,F,H,$,z),W=i({prop:"gridGap"}),B=i({prop:"gridColumnGap"}),U=i({prop:"gridRowGap"}),K=i({prop:"gridColumn"}),q=i({prop:"gridRow"}),G=i({prop:"gridAutoFlow"}),J=i({prop:"gridAutoColumns"}),X=i({prop:"gridAutoRows"}),Q=i({prop:"gridTemplateColumns"}),ee=i({prop:"gridTemplateRows"}),te=i({prop:"gridTemplateAreas"}),ne=i({prop:"gridArea"}),re=u(W,B,U,K,q,G,J,X,Q,ee,te,ne),oe=i({prop:"color",themeKey:"palette"}),ae=i({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),ie=u(oe,ae),se=i({prop:"position"}),ue=i({prop:"zIndex",themeKey:"zIndex"}),le=i({prop:"top"}),ce=i({prop:"right"}),de=i({prop:"bottom"}),fe=i({prop:"left"}),pe=u(se,ue,le,ce,de,fe),me=i({prop:"boxShadow",themeKey:"shadows"});function he(e){return e<=1?"".concat(100*e,"%"):e}var ve=i({prop:"width",transform:he}),ye=i({prop:"maxWidth",transform:he}),_e=i({prop:"minWidth",transform:he}),ge=i({prop:"height",transform:he}),be=i({prop:"maxHeight",transform:he}),Me=i({prop:"minHeight",transform:he}),we=i({prop:"size",cssProperty:"width",transform:he}),ke=i({prop:"size",cssProperty:"height",transform:he}),xe=i({prop:"boxSizing"}),Se=u(ve,ye,_e,ge,be,Me,xe),Le=n(29989),Ee=i({prop:"fontFamily",themeKey:"typography"}),Te=i({prop:"fontSize",themeKey:"typography"}),Ce=i({prop:"fontStyle",themeKey:"typography"}),Oe=i({prop:"fontWeight",themeKey:"typography"}),Pe=i({prop:"letterSpacing"}),De=i({prop:"lineHeight"}),Ye=i({prop:"textAlign"}),je=u(Ee,Te,Ce,Oe,Pe,De,Ye)},16625:function(e,t,n){"use strict";var r=n(16534);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},29989:function(e,t,n){"use strict";n.d(t,{h:function(){return p},Z:function(){return v}});var r=n(8136),o=n(58712),a=n(16625);var i,s,u={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},d=(i=function(e){if(e.length>2){if(!c[e])return[e];e=c[e]}var t=e.split(""),n=(0,r.Z)(t,2),o=n[0],a=n[1],i=u[o],s=l[a]||"";return Array.isArray(s)?s.map((function(e){return i+e})):[i+s]},s={},function(e){return void 0===s[e]&&(s[e]=i(e)),s[e]}),f=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function p(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function m(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function h(e){var t=p(e.theme);return Object.keys(e).map((function(n){if(-1===f.indexOf(n))return null;var r=m(d(n),t),a=e[n];return(0,o.k)(e,a,r)})).reduce(a.Z,{})}h.propTypes={},h.filterProps=f;var v=h},16534:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(25773),o=n(33940);function a(e){return e&&"object"===(0,o.Z)(e)&&e.constructor===Object}function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.Z)({},e):e;return a(e)&&a(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(a(t[r])&&r in e?o[r]=i(e[r],t[r],n):o[r]=t[r])})),o}},43088:function(e,t,n){"use strict";function r(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},52342:function(e,t,n){"use strict";function r(e,t){return function(){return null}}n.r(t),n.d(t,{HTMLElementType:function(){return g},chainPropTypes:function(){return r},deepmerge:function(){return o.Z},elementAcceptingRef:function(){return u},elementTypeAcceptingRef:function(){return l},exactProp:function(){return c},formatMuiErrorMessage:function(){return d.Z},getDisplayName:function(){return _},ponyfillGlobal:function(){return b},refType:function(){return M}});var o=n(16534),a=n(23615),i=n.n(a);var s=(i().element,function(){return null});s.isRequired=(i().element.isRequired,function(){return null});var u=s;var l=(a.elementType,function(){return null});n(64649),n(25773);function c(e){return e}var d=n(43088),f=n(33940),p=n(19185),m=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function h(e){var t="".concat(e).match(m);return t&&t[1]||""}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||h(e)||t}function y(e,t,n){var r=v(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}function _(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return v(e,"Component");if("object"===(0,f.Z)(e))switch(e.$$typeof){case p.ForwardRef:return y(e,e.render,"ForwardRef");case p.Memo:return y(e,e.type,"memo");default:return}}}function g(e,t,n,r,o){return null}var b="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),M=i().oneOfType([i().func,i().object])},53892:function(e,t,n){"use strict";function r(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(n&&n[r]&&e.push(n[r]),e.push(t(r))),e)),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},85873:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});const r=e=>e;var o=(()=>{let e=r;return{configure(t){e=t},generate(t){return e(t)},reset(){e=r}}})();const a={active:"Mui-active",checked:"Mui-checked",completed:"Mui-completed",disabled:"Mui-disabled",error:"Mui-error",expanded:"Mui-expanded",focused:"Mui-focused",focusVisible:"Mui-focusVisible",required:"Mui-required",selected:"Mui-selected"};function i(e,t){return a[t]||`${o.generate(e)}-${t}`}},12897:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(85873);function o(e,t){const n={};return t.forEach((t=>{n[t]=(0,r.Z)(e,t)})),n}},73207:function(e,t){"use strict";t.Z=function(e){return"string"==typeof e}},68666:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(30808),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(81923),u=n(53892),l=n(7818),c=n(64301),d=n(96716),f=n(20966),p=n(51640),m=n(85873);function h(e){return(0,m.Z)("MuiButton",e)}var v=(0,n(12897).Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","contained","containedInherit","containedPrimary","containedSecondary","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var y=a.createContext({}),_=n(24246);const g=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],b=e=>(0,o.Z)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),M=(0,c.ZP)(f.Z,{shouldForwardProp:e=>(0,c.FO)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,p.Z)(n.color)}`],t[`size${(0,p.Z)(n.size)}`],t[`${n.variant}Size${(0,p.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>(0,o.Z)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,o.Z)({textDecoration:"none",backgroundColor:(0,l.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:(0,l.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${e.palette[t.color].main}`,backgroundColor:(0,l.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.palette[t.color].dark,"@media (hover: none)":{backgroundColor:e.palette[t.color].main}}),"&:active":(0,o.Z)({},"contained"===t.variant&&{boxShadow:e.shadows[8]}),[`&.${v.focusVisible}`]:(0,o.Z)({},"contained"===t.variant&&{boxShadow:e.shadows[6]}),[`&.${v.disabled}`]:(0,o.Z)({color:e.palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${e.palette.action.disabledBackground}`},"outlined"===t.variant&&"secondary"===t.color&&{border:`1px solid ${e.palette.action.disabled}`},"contained"===t.variant&&{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"outlined"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${(0,l.Fq)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:e.palette[t.color].contrastText,backgroundColor:e.palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${v.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${v.disabled}`]:{boxShadow:"none"}})),w=(0,c.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,p.Z)(n.size)}`]]}})((({ownerState:e})=>(0,o.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},b(e)))),k=(0,c.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,p.Z)(n.size)}`]]}})((({ownerState:e})=>(0,o.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},b(e))));var x=a.forwardRef((function(e,t){const n=a.useContext(y),l=(0,s.Z)(n,e),c=(0,d.Z)({props:l,name:"MuiButton"}),{children:f,color:m="primary",component:v="button",className:b,disabled:x=!1,disableElevation:S=!1,disableFocusRipple:L=!1,endIcon:E,focusVisibleClassName:T,fullWidth:C=!1,size:O="medium",startIcon:P,type:D,variant:Y="text"}=c,j=(0,r.Z)(c,g),Z=(0,o.Z)({},c,{color:m,component:v,disabled:x,disableElevation:S,disableFocusRipple:L,fullWidth:C,size:O,type:D,variant:Y}),N=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:a,variant:i,classes:s}=e,l={root:["root",i,`${i}${(0,p.Z)(t)}`,`size${(0,p.Z)(a)}`,`${i}Size${(0,p.Z)(a)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${(0,p.Z)(a)}`],endIcon:["endIcon",`iconSize${(0,p.Z)(a)}`]},c=(0,u.Z)(l,h,s);return(0,o.Z)({},s,c)})(Z),R=P&&(0,_.jsx)(w,{className:N.startIcon,ownerState:Z,children:P}),A=E&&(0,_.jsx)(k,{className:N.endIcon,ownerState:Z,children:E});return(0,_.jsxs)(M,(0,o.Z)({ownerState:Z,className:(0,i.Z)(b,n.className),component:v,disabled:x,focusRipple:!L,focusVisibleClassName:(0,i.Z)(N.focusVisible,T),ref:t,type:D},j,{classes:N,children:[R,f,A]}))}))},20966:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});var r=n(25773),o=n(30808),a=n(27378),i=(n(23615),n(38944)),s=n(53892),u=n(64301),l=n(96716),c=n(51183),d=n(69805).Z;let f,p=!0,m=!1;const h={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function v(e){e.metaKey||e.altKey||e.ctrlKey||(p=!0)}function y(){p=!1}function _(){"hidden"===this.visibilityState&&m&&(p=!0)}function g(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return p||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!h[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}var b=function(){const e=a.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",v,!0),t.addEventListener("mousedown",y,!0),t.addEventListener("pointerdown",y,!0),t.addEventListener("touchstart",y,!0),t.addEventListener("visibilitychange",_,!0))}),[]),t=a.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!g(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(m=!0,window.clearTimeout(f),f=window.setTimeout((()=>{m=!1}),100),t.current=!1,!0)},ref:e}},M=n(42344),w=n(10043),k=n(24246);var x=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:s,rippleSize:u,in:l,onExited:c,timeout:d}=e,[f,p]=a.useState(!1),m=(0,i.Z)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:u,height:u,top:-u/2+s,left:-u/2+o},v=(0,i.Z)(n.child,f&&n.childLeaving,r&&n.childPulsate);return l||f||p(!0),a.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,d);return()=>{clearTimeout(e)}}}),[c,l,d]),(0,k.jsx)("span",{className:m,style:h,children:(0,k.jsx)("span",{className:v})})},S=n(12897);var L=(0,S.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const E=["center","classes","className"];let T,C,O,P,D=e=>e;const Y=(0,w.F4)(T||(T=D` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),j=(0,w.F4)(C||(C=D` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),Z=(0,w.F4)(O||(O=D` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),N=(0,u.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),R=(0,u.ZP)(x,{name:"MuiTouchRipple",slot:"Ripple"})(P||(P=D` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),L.rippleVisible,Y,550,(({theme:e})=>e.transitions.easing.easeInOut),L.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),L.child,L.childLeaving,j,550,(({theme:e})=>e.transitions.easing.easeInOut),L.childPulsate,Z,(({theme:e})=>e.transitions.easing.easeInOut));var A=a.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:u={},className:c}=n,d=(0,o.Z)(n,E),[f,p]=a.useState([]),m=a.useRef(0),h=a.useRef(null);a.useEffect((()=>{h.current&&(h.current(),h.current=null)}),[f]);const v=a.useRef(!1),y=a.useRef(null),_=a.useRef(null),g=a.useRef(null);a.useEffect((()=>()=>{clearTimeout(y.current)}),[]);const b=a.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;p((e=>[...e,(0,k.jsx)(R,{classes:{ripple:(0,i.Z)(u.ripple,L.ripple),rippleVisible:(0,i.Z)(u.rippleVisible,L.rippleVisible),ripplePulsate:(0,i.Z)(u.ripplePulsate,L.ripplePulsate),child:(0,i.Z)(u.child,L.child),childLeaving:(0,i.Z)(u.childLeaving,L.childLeaving),childPulsate:(0,i.Z)(u.childPulsate,L.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},m.current)])),m.current+=1,h.current=a}),[u]),w=a.useCallback(((e={},t={},n)=>{const{pulsate:r=!1,center:o=s||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===e.type&&v.current)return void(v.current=!1);"touchstart"===e.type&&(v.current=!0);const i=a?null:g.current,u=i?i.getBoundingClientRect():{width:0,height:0,left:0,top:0};let l,c,d;if(o||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(u.width/2),c=Math.round(u.height/2);else{const{clientX:t,clientY:n}=e.touches?e.touches[0]:e;l=Math.round(t-u.left),c=Math.round(n-u.top)}if(o)d=Math.sqrt((2*u.width**2+u.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((i?i.clientWidth:0)-l),l)+2,t=2*Math.max(Math.abs((i?i.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}e.touches?null===_.current&&(_.current=()=>{b({pulsate:r,rippleX:l,rippleY:c,rippleSize:d,cb:n})},y.current=setTimeout((()=>{_.current&&(_.current(),_.current=null)}),80)):b({pulsate:r,rippleX:l,rippleY:c,rippleSize:d,cb:n})}),[s,b]),x=a.useCallback((()=>{w({},{pulsate:!0})}),[w]),S=a.useCallback(((e,t)=>{if(clearTimeout(y.current),"touchend"===e.type&&_.current)return _.current(),_.current=null,void(y.current=setTimeout((()=>{S(e,t)})));_.current=null,p((e=>e.length>0?e.slice(1):e)),h.current=t}),[]);return a.useImperativeHandle(t,(()=>({pulsate:x,start:w,stop:S})),[x,w,S]),(0,k.jsx)(N,(0,r.Z)({className:(0,i.Z)(u.root,L.root,c),ref:g},d,{children:(0,k.jsx)(M.Z,{component:null,exit:!0,children:f})}))})),I=n(85873);function F(e){return(0,I.Z)("MuiButtonBase",e)}var H=(0,S.Z)("MuiButtonBase",["root","disabled","focusVisible"]);const $=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],z=(0,u.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${H.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),V=a.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiButtonBase"}),{action:u,centerRipple:f=!1,children:p,className:m,component:h="button",disabled:v=!1,disableRipple:y=!1,disableTouchRipple:_=!1,focusRipple:g=!1,LinkComponent:M="a",onBlur:w,onClick:x,onContextMenu:S,onDragLeave:L,onFocus:E,onFocusVisible:T,onKeyDown:C,onKeyUp:O,onMouseDown:P,onMouseLeave:D,onMouseUp:Y,onTouchEnd:j,onTouchMove:Z,onTouchStart:N,tabIndex:R=0,TouchRippleProps:I,touchRippleRef:H,type:V}=n,W=(0,o.Z)(n,$),B=a.useRef(null),U=a.useRef(null),K=(0,c.Z)(U,H),{isFocusVisibleRef:q,onFocus:G,onBlur:J,ref:X}=b(),[Q,ee]=a.useState(!1);function te(e,t,n=_){return d((r=>{t&&t(r);return!n&&U.current&&U.current[e](r),!0}))}v&&Q&&ee(!1),a.useImperativeHandle(u,(()=>({focusVisible:()=>{ee(!0),B.current.focus()}})),[]),a.useEffect((()=>{Q&&g&&!y&&U.current.pulsate()}),[y,g,Q]);const ne=te("start",P),re=te("stop",S),oe=te("stop",L),ae=te("stop",Y),ie=te("stop",(e=>{Q&&e.preventDefault(),D&&D(e)})),se=te("start",N),ue=te("stop",j),le=te("stop",Z),ce=te("stop",(e=>{J(e),!1===q.current&&ee(!1),w&&w(e)}),!1),de=d((e=>{B.current||(B.current=e.currentTarget),G(e),!0===q.current&&(ee(!0),T&&T(e)),E&&E(e)})),fe=()=>{const e=B.current;return h&&"button"!==h&&!("A"===e.tagName&&e.href)},pe=a.useRef(!1),me=d((e=>{g&&!pe.current&&Q&&U.current&&" "===e.key&&(pe.current=!0,U.current.stop(e,(()=>{U.current.start(e)}))),e.target===e.currentTarget&&fe()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&fe()&&"Enter"===e.key&&!v&&(e.preventDefault(),x&&x(e))})),he=d((e=>{g&&" "===e.key&&U.current&&Q&&!e.defaultPrevented&&(pe.current=!1,U.current.stop(e,(()=>{U.current.pulsate(e)}))),O&&O(e),x&&e.target===e.currentTarget&&fe()&&" "===e.key&&!e.defaultPrevented&&x(e)}));let ve=h;"button"===ve&&(W.href||W.to)&&(ve=M);const ye={};"button"===ve?(ye.type=void 0===V?"button":V,ye.disabled=v):(W.href||W.to||(ye.role="button"),v&&(ye["aria-disabled"]=v));const _e=(0,c.Z)(X,B),ge=(0,c.Z)(t,_e),[be,Me]=a.useState(!1);a.useEffect((()=>{Me(!0)}),[]);const we=be&&!y&&!v;const ke=(0,r.Z)({},n,{centerRipple:f,component:h,disabled:v,disableRipple:y,disableTouchRipple:_,focusRipple:g,tabIndex:R,focusVisible:Q}),xe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a={root:["root",t&&"disabled",n&&"focusVisible"]},i=(0,s.Z)(a,F,o);return n&&r&&(i.root+=` ${r}`),i})(ke);return(0,k.jsxs)(z,(0,r.Z)({as:ve,className:(0,i.Z)(xe.root,m),ownerState:ke,onBlur:ce,onClick:x,onContextMenu:re,onFocus:de,onKeyDown:me,onKeyUp:he,onMouseDown:ne,onMouseLeave:ie,onMouseUp:ae,onDragLeave:oe,onTouchEnd:ue,onTouchMove:le,onTouchStart:se,ref:ge,tabIndex:v?-1:R,type:V},ye,W,{children:[p,we?(0,k.jsx)(A,(0,r.Z)({ref:K,center:f},I)):null]}))}));var W=V},56213:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(30808),o=n(25773),a=n(27378),i=(n(23615),n(53892)),s=n(7818),u=n(25657),l=n(76576),c=n(24246),d=(0,l.Z)((0,c.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),f=(0,l.Z)((0,c.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),p=(0,l.Z)((0,c.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),m=n(51640),h=n(96716),v=n(64301),y=n(85873);function _(e){return(0,y.Z)("MuiCheckbox",e)}var g=(0,n(12897).Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);const b=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],M=(0,v.ZP)(u.Z,{shouldForwardProp:e=>(0,v.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${(0,m.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({color:e.palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${g.checked}, &.${g.indeterminate}`]:{color:e.palette[t.color].main},[`&.${g.disabled}`]:{color:e.palette.action.disabled}}))),w=(0,c.jsx)(f,{}),k=(0,c.jsx)(d,{}),x=(0,c.jsx)(p,{});var S=a.forwardRef((function(e,t){var n,s;const u=(0,h.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:l=w,color:d="primary",icon:f=k,indeterminate:p=!1,indeterminateIcon:v=x,inputProps:y,size:g="medium"}=u,S=(0,r.Z)(u,b),L=p?v:f,E=p?v:l,T=(0,o.Z)({},u,{color:d,indeterminate:p,size:g}),C=(e=>{const{classes:t,indeterminate:n,color:r}=e,a={root:["root",n&&"indeterminate",`color${(0,m.Z)(r)}`]},s=(0,i.Z)(a,_,t);return(0,o.Z)({},t,s)})(T);return(0,c.jsx)(M,(0,o.Z)({type:"checkbox",inputProps:(0,o.Z)({"data-indeterminate":p},y),icon:a.cloneElement(L,{fontSize:null!=(n=L.props.fontSize)?n:g}),checkedIcon:a.cloneElement(E,{fontSize:null!=(s=E.props.fontSize)?s:g}),ownerState:T,ref:t},S,{classes:C}))}))},61230:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(30808),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(53892),u=n(96716),l=n(64301),c=n(65021),d=n(51640),f=n(74942),p=n(29992),m=n(85873);function h(e){return(0,m.Z)("MuiFormControl",e)}(0,n(12897).Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var v=n(24246);const y=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],_=(0,l.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,o.Z)({},t.root,t[`margin${(0,d.Z)(e.margin)}`],e.fullWidth&&t.fullWidth)})((({ownerState:e})=>(0,o.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===e.margin&&{marginTop:16,marginBottom:8},"dense"===e.margin&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})));var g=a.forwardRef((function(e,t){const n=(0,u.Z)({props:e,name:"MuiFormControl"}),{children:l,className:m,color:g="primary",component:b="div",disabled:M=!1,error:w=!1,focused:k,fullWidth:x=!1,hiddenLabel:S=!1,margin:L="none",required:E=!1,size:T="medium",variant:C="outlined"}=n,O=(0,r.Z)(n,y),P=(0,o.Z)({},n,{color:g,component:b,disabled:M,error:w,fullWidth:x,hiddenLabel:S,margin:L,required:E,size:T,variant:C}),D=(e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root","none"!==n&&`margin${(0,d.Z)(n)}`,r&&"fullWidth"]};return(0,s.Z)(o,h,t)})(P),[Y,j]=a.useState((()=>{let e=!1;return l&&a.Children.forEach(l,(t=>{if(!(0,f.Z)(t,["Input","Select"]))return;const n=(0,f.Z)(t,["Select"])?t.props.input:t;n&&(0,c.B7)(n.props)&&(e=!0)})),e})),[Z,N]=a.useState((()=>{let e=!1;return l&&a.Children.forEach(l,(t=>{(0,f.Z)(t,["Input","Select"])&&(0,c.vd)(t.props,!0)&&(e=!0)})),e})),[R,A]=a.useState(!1);M&&R&&A(!1);const I=void 0===k||M?R:k;const F=a.useCallback((()=>{N(!0)}),[]),H={adornedStart:Y,setAdornedStart:j,color:g,disabled:M,error:w,filled:Z,focused:I,fullWidth:x,hiddenLabel:S,size:T,onBlur:()=>{A(!1)},onEmpty:a.useCallback((()=>{N(!1)}),[]),onFilled:F,onFocus:()=>{A(!0)},registerEffect:undefined,required:E,variant:C};return(0,v.jsx)(p.Z.Provider,{value:H,children:(0,v.jsx)(_,(0,o.Z)({as:b,ownerState:P,className:(0,i.Z)(D.root,m),ref:t},O,{children:l}))})}))},29992:function(e,t,n){"use strict";const r=n(27378).createContext();t.Z=r},33567:function(e,t,n){"use strict";function r({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}n.d(t,{Z:function(){return r}})},36683:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(27378),o=n(29992);function a(){return r.useContext(o.Z)}},64251:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(30808),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(53892),u=n(36683),l=n(73143),c=n(67351);const d=["sx"];function f(e){const{sx:t}=e,n=(0,r.Z)(e,d),{systemProps:a,otherProps:i}=(e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((n=>{c.Gc[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]})),t})(n);let s;return s=Array.isArray(t)?[a,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return(0,l.P)(n)?(0,o.Z)({},a,n):a}:(0,o.Z)({},a,t),(0,o.Z)({},i,{sx:s})}var p=n(64301),m=n(96716),h=n(51640),v=n(85873),y=n(12897);function _(e){return(0,v.Z)("MuiTypography",e)}(0,y.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var g=n(24246);const b=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],M=(0,p.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${(0,h.Z)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>(0,o.Z)({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),w={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},k={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var x=a.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiTypography"}),a=(e=>k[e]||e)(n.color),u=f((0,o.Z)({},n,{color:a})),{align:l="inherit",className:c,component:d,gutterBottom:p=!1,noWrap:v=!1,paragraph:y=!1,variant:x="body1",variantMapping:S=w}=u,L=(0,r.Z)(u,b),E=(0,o.Z)({},u,{align:l,color:a,className:c,component:d,gutterBottom:p,noWrap:v,paragraph:y,variant:x,variantMapping:S}),T=d||(y?"p":S[x]||w[x])||"span",C=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,u={root:["root",a,"inherit"!==e.align&&`align${(0,h.Z)(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,s.Z)(u,_,i)})(E);return(0,g.jsx)(M,(0,o.Z)({as:T,ref:t,ownerState:E,className:(0,i.Z)(C.root,c)},L))}));function S(e){return(0,v.Z)("MuiFormControlLabel",e)}var L=(0,y.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),E=n(33567);const T=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","value"],C=(0,p.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${L.label}`]:t.label},t.root,t[`labelPlacement${(0,h.Z)(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${L.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${L.label}`]:{[`&.${L.disabled}`]:{color:e.palette.text.disabled}}})));var O=a.forwardRef((function(e,t){const n=(0,m.Z)({props:e,name:"MuiFormControlLabel"}),{className:l,componentsProps:c={},control:d,disabled:f,disableTypography:p,label:v,labelPlacement:y="end"}=n,_=(0,r.Z)(n,T),b=(0,u.Z)();let M=f;void 0===M&&void 0!==d.props.disabled&&(M=d.props.disabled),void 0===M&&b&&(M=b.disabled);const w={disabled:M};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===d.props[e]&&void 0!==n[e]&&(w[e]=n[e])}));const k=(0,E.Z)({props:n,muiFormControl:b,states:["error"]}),L=(0,o.Z)({},n,{disabled:M,label:v,labelPlacement:y,error:k.error}),O=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o}=e,a={root:["root",n&&"disabled",`labelPlacement${(0,h.Z)(r)}`,o&&"error"],label:["label",n&&"disabled"]};return(0,s.Z)(a,S,t)})(L);return(0,g.jsxs)(C,(0,o.Z)({className:(0,i.Z)(O.root,l),ownerState:L,ref:t},_,{children:[a.cloneElement(d,w),v.type===x||p?v:(0,g.jsx)(x,(0,o.Z)({component:"span",className:O.label},c.typography,{children:v}))]}))}))},64281:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(30808),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(53892),u=n(64301),l=n(96716),c=n(85873);function d(e){return(0,c.Z)("MuiFormGroup",e)}(0,n(12897).Z)("MuiFormGroup",["root","row","error"]);var f=n(36683),p=n(33567),m=n(24246);const h=["className","row"],v=(0,u.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})((({ownerState:e})=>(0,o.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})));var y=a.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiFormGroup"}),{className:a,row:u=!1}=n,c=(0,r.Z)(n,h),y=(0,f.Z)(),_=(0,p.Z)({props:n,muiFormControl:y,states:["error"]}),g=(0,o.Z)({},n,{row:u,error:_.error}),b=(e=>{const{classes:t,row:n,error:r}=e,o={root:["root",n&&"row",r&&"error"]};return(0,s.Z)(o,d,t)})(g);return(0,m.jsx)(v,(0,o.Z)({className:(0,i.Z)(b.root,a),ownerState:g,ref:t},c))}))},56274:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(30808),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(53892),u=n(33567),l=n(36683),c=n(64301),d=n(51640),f=n(85873);function p(e){return(0,f.Z)("MuiFormHelperText",e)}var m,h=(0,n(12897).Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),v=n(96716),y=n(24246);const _=["children","className","component","disabled","error","filled","focused","margin","required","variant"],g=(0,c.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${(0,d.Z)(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})((({theme:e,ownerState:t})=>(0,o.Z)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${h.disabled}`]:{color:e.palette.text.disabled},[`&.${h.error}`]:{color:e.palette.error.main}},"small"===t.size&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})));var b=a.forwardRef((function(e,t){const n=(0,v.Z)({props:e,name:"MuiFormHelperText"}),{children:a,className:c,component:f="p"}=n,h=(0,r.Z)(n,_),b=(0,l.Z)(),M=(0,u.Z)({props:n,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),w=(0,o.Z)({},n,{component:f,contained:"filled"===M.variant||"outlined"===M.variant,variant:M.variant,size:M.size,disabled:M.disabled,error:M.error,filled:M.filled,focused:M.focused,required:M.required}),k=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:u,required:l}=e,c={root:["root",o&&"disabled",a&&"error",r&&`size${(0,d.Z)(r)}`,n&&"contained",u&&"focused",i&&"filled",l&&"required"]};return(0,s.Z)(c,p,t)})(w);return(0,y.jsx)(g,(0,o.Z)({as:f,ownerState:w,className:(0,i.Z)(k.root,c),ref:t},h,{children:" "===a?m||(m=(0,y.jsx)("span",{className:"notranslate",children:"\u200b"})):a}))}))},23626:function(e,t,n){"use strict";var r=n(30808),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(53892),u=n(33567),l=n(36683),c=n(51640),d=n(96716),f=n(64301),p=n(15143),m=n(24246);const h=["children","className","color","component","disabled","error","filled","focused","required"],v=(0,f.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>(0,o.Z)({},t.root,"secondary"===e.color&&t.colorSecondary,e.filled&&t.filled)})((({theme:e,ownerState:t})=>(0,o.Z)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${p.Z.focused}`]:{color:e.palette[t.color].main},[`&.${p.Z.disabled}`]:{color:e.palette.text.disabled},[`&.${p.Z.error}`]:{color:e.palette.error.main}}))),y=(0,f.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${p.Z.error}`]:{color:e.palette.error.main}}))),_=a.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiFormLabel"}),{children:a,className:f,component:_="label"}=n,g=(0,r.Z)(n,h),b=(0,l.Z)(),M=(0,u.Z)({props:n,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),w=(0,o.Z)({},n,{color:M.color||"primary",component:_,disabled:M.disabled,error:M.error,filled:M.filled,focused:M.focused,required:M.required}),k=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:u}=e,l={root:["root",`color${(0,c.Z)(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",u&&"required"],asterisk:["asterisk",a&&"error"]};return(0,s.Z)(l,p.M,t)})(w);return(0,m.jsxs)(v,(0,o.Z)({as:_,ownerState:w,className:(0,i.Z)(k.root,f),ref:t},g,{children:[a,M.required&&(0,m.jsxs)(y,{ownerState:w,"aria-hidden":!0,className:k.asterisk,children:["\u2009","*"]})]}))}));t.Z=_},15143:function(e,t,n){"use strict";n.d(t,{M:function(){return o}});var r=n(85873);function o(e){return(0,r.Z)("MuiFormLabel",e)}const a=(0,n(12897).Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);t.Z=a},92133:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(30808),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(53892),u=n(7818),l=n(64301),c=n(96716),d=n(20966),f=n(51640),p=n(85873);function m(e){return(0,p.Z)("MuiIconButton",e)}var h=(0,n(12897).Z)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),v=n(24246);const y=["edge","children","className","color","disabled","disableFocusRipple","size"],_=(0,l.ZP)(d.Z,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,f.Z)(n.color)}`],n.edge&&t[`edge${(0,f.Z)(n.edge)}`],t[`size${(0,f.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:(0,u.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>(0,o.Z)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,o.Z)({color:e.palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:(0,u.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${h.disabled}`]:{backgroundColor:"transparent",color:e.palette.action.disabled}})));var g=a.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiIconButton"}),{edge:a=!1,children:u,className:l,color:d="default",disabled:p=!1,disableFocusRipple:h=!1,size:g="medium"}=n,b=(0,r.Z)(n,y),M=(0,o.Z)({},n,{edge:a,color:d,disabled:p,disableFocusRipple:h,size:g}),w=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled","default"!==r&&`color${(0,f.Z)(r)}`,o&&`edge${(0,f.Z)(o)}`,`size${(0,f.Z)(a)}`]};return(0,s.Z)(i,m,t)})(M);return(0,v.jsx)(_,(0,o.Z)({className:(0,i.Z)(w.root,l),centerRipple:!0,focusRipple:!h,disabled:p,ref:t,ownerState:M},b,{children:u}))}))},65021:function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e,t=!1){return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function a(e){return e.startAdornment}n.d(t,{B7:function(){return a},vd:function(){return o}})},10872:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(30808),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(53892),u=n(64301),l=n(96716),c=n(78849),d=n(85873);function f(e){return(0,d.Z)("MuiList",e)}(0,n(12897).Z)("MuiList",["root","padding","dense","subheader"]);var p=n(24246);const m=["children","className","component","dense","disablePadding","subheader"],h=(0,u.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>(0,o.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var v=a.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiList"}),{children:u,className:d,component:v="ul",dense:y=!1,disablePadding:_=!1,subheader:g}=n,b=(0,r.Z)(n,m),M=a.useMemo((()=>({dense:y})),[y]),w=(0,o.Z)({},n,{component:v,dense:y,disablePadding:_}),k=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e,a={root:["root",!n&&"padding",r&&"dense",o&&"subheader"]};return(0,s.Z)(a,f,t)})(w);return(0,p.jsx)(c.Z.Provider,{value:M,children:(0,p.jsxs)(h,(0,o.Z)({as:v,className:(0,i.Z)(k.root,d),ref:t,ownerState:w},b,{children:[g,u]}))})}))},78849:function(e,t,n){"use strict";const r=n(27378).createContext({});t.Z=r},88483:function(e,t,n){"use strict";n.d(t,{ZP:function(){return D}});var r=n(30808),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(53892),u=n(73207),l=n(7818),c=n(64301),d=n(96716),f=n(20966),p=n(74942),m=n(16758),h=n(51183),v=n(78849),y=n(85873),_=n(12897);function g(e){return(0,y.Z)("MuiListItem",e)}var b=(0,_.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var M=(0,_.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function w(e){return(0,y.Z)("MuiListItemSecondaryAction",e)}(0,_.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);var k=n(24246);const x=["className"],S=(0,c.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>(0,o.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),L=a.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:u}=n,l=(0,r.Z)(n,x),c=a.useContext(v.Z),f=(0,o.Z)({},n,{disableGutters:c.disableGutters}),p=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,s.Z)(r,w,n)})(f);return(0,k.jsx)(S,(0,o.Z)({className:(0,i.Z)(p.root,u),ownerState:f,ref:t},l))}));L.muiName="ListItemSecondaryAction";var E=L;const T=["className"],C=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],O=(0,c.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>(0,o.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&(0,o.Z)({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${M.root}`]:{paddingRight:48}},{[`&.${b.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${b.selected}`]:{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${b.focusVisible}`]:{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${b.disabled}`]:{opacity:e.palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${b.selected}:hover`]:{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),P=(0,c.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"});var D=a.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiListItem"}),{alignItems:l="center",autoFocus:c=!1,button:y=!1,children:_,className:M,component:w,components:x={},componentsProps:S={},ContainerComponent:L="li",ContainerProps:{className:D}={},dense:Y=!1,disabled:j=!1,disableGutters:Z=!1,disablePadding:N=!1,divider:R=!1,focusVisibleClassName:A,secondaryAction:I,selected:F=!1}=n,H=(0,r.Z)(n.ContainerProps,T),$=(0,r.Z)(n,C),z=a.useContext(v.Z),V={dense:Y||z.dense||!1,alignItems:l,disableGutters:Z},W=a.useRef(null);(0,m.Z)((()=>{c&&W.current&&W.current.focus()}),[c]);const B=a.Children.toArray(_),U=B.length&&(0,p.Z)(B[B.length-1],["ListItemSecondaryAction"]),K=(0,o.Z)({},n,{alignItems:l,autoFocus:c,button:y,dense:V.dense,disabled:j,disableGutters:Z,disablePadding:N,divider:R,hasSecondaryAction:U,selected:F}),q=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:u,divider:l,hasSecondaryAction:c,selected:d}=e,f={root:["root",o&&"dense",!i&&"gutters",!u&&"padding",l&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]};return(0,s.Z)(f,g,r)})(K),G=(0,h.Z)(W,t),J=x.Root||O,X=S.root||{},Q=(0,o.Z)({className:(0,i.Z)(q.root,X.className,M),disabled:j},$);let ee=w||"li";return y&&(Q.component=w||"div",Q.focusVisibleClassName=(0,i.Z)(b.focusVisible,A),ee=f.Z),U?(ee=Q.component||w?ee:"div","li"===L&&("li"===ee?ee="div":"li"===Q.component&&(Q.component="div")),(0,k.jsx)(v.Z.Provider,{value:V,children:(0,k.jsxs)(P,(0,o.Z)({as:L,className:(0,i.Z)(q.container,D),ref:G,ownerState:K},H,{children:[(0,k.jsx)(J,(0,o.Z)({},X,!(0,u.Z)(J)&&{as:ee,ownerState:(0,o.Z)({},K,X.ownerState)},Q,{children:B})),B.pop()]}))})):(0,k.jsx)(v.Z.Provider,{value:V,children:(0,k.jsxs)(J,(0,o.Z)({},X,{as:ee,ref:G,ownerState:K},!(0,u.Z)(J)&&{ownerState:(0,o.Z)({},K,X.ownerState)},Q,{children:[B,I&&(0,k.jsx)(E,{children:I})]}))})}))},5420:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(30808),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(53892),u=n(64301),l=n(96716),c=n(51640),d=n(85873);function f(e){return(0,d.Z)("MuiListSubheader",e)}(0,n(12897).Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var p=n(24246);const m=["className","color","component","disableGutters","disableSticky","inset"],h=(0,u.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${(0,c.Z)(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>(0,o.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:e.palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:e.palette.background.paper})));var v=a.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiListSubheader"}),{className:a,color:u="default",component:d="li",disableGutters:v=!1,disableSticky:y=!1,inset:_=!1}=n,g=(0,r.Z)(n,m),b=(0,o.Z)({},n,{color:u,component:d,disableGutters:v,disableSticky:y,inset:_}),M=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e,i={root:["root","default"!==n&&`color${(0,c.Z)(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]};return(0,s.Z)(i,f,t)})(b);return(0,p.jsx)(h,(0,o.Z)({as:d,className:(0,i.Z)(M.root,a),ref:t,ownerState:b},g))}))},13455:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(30808),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(53892),u=n(7818),l=n(64301),c=n(96716),d=n(78849),f=n(20966),p=n(16758),m=n(51183),h=n(12897);var v=(0,h.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var y=(0,h.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);var _=(0,h.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),g=n(85873);function b(e){return(0,g.Z)("MuiMenuItem",e)}var M=(0,h.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),w=n(24246);const k=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],x=(0,l.ZP)(f.Z,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>(0,o.Z)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${e.palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${M.selected}`]:{backgroundColor:(0,u.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${M.focusVisible}`]:{backgroundColor:(0,u.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${M.selected}:hover`]:{backgroundColor:(0,u.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(0,u.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${M.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`&.${M.disabled}`]:{opacity:e.palette.action.disabledOpacity},[`& + .${v.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${v.inset}`]:{marginLeft:52},[`& .${_.root}`]:{marginTop:0,marginBottom:0},[`& .${_.inset}`]:{paddingLeft:36},[`& .${y.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,o.Z)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${y.root} svg`]:{fontSize:"1.25rem"}}))));var S=a.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:u=!1,component:l="li",dense:f=!1,divider:h=!1,disableGutters:v=!1,focusVisibleClassName:y,role:_="menuitem",tabIndex:g}=n,M=(0,r.Z)(n,k),S=a.useContext(d.Z),L={dense:f||S.dense||!1,disableGutters:v},E=a.useRef(null);(0,p.Z)((()=>{u&&E.current&&E.current.focus()}),[u]);const T=(0,o.Z)({},n,{dense:L.dense,divider:h,disableGutters:v}),C=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:a,selected:i,classes:u}=e,l={root:["root",n&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",i&&"selected"]},c=(0,s.Z)(l,b,u);return(0,o.Z)({},u,c)})(n),O=(0,m.Z)(E,t);let P;return n.disabled||(P=void 0!==g?g:-1),(0,w.jsx)(d.Z.Provider,{value:L,children:(0,w.jsx)(x,(0,o.Z)({ref:O,role:_,tabIndex:P,component:l,focusVisibleClassName:(0,i.Z)(C.focusVisible,y)},M,{ownerState:T,classes:C}))})}))},8993:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(30808),o=n(25773),a=n(27378),i=(n(23615),n(53892)),s=n(7818),u=n(25657),l=n(96716),c=n(76576),d=n(24246),f=(0,c.Z)((0,d.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),p=(0,c.Z)((0,d.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),m=n(64301);const h=(0,m.ZP)("span")({position:"relative",display:"flex"}),v=(0,m.ZP)(f)({transform:"scale(1)"}),y=(0,m.ZP)(p)((({theme:e,ownerState:t})=>(0,o.Z)({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));var _=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,a=(0,o.Z)({},e,{checked:t});return(0,d.jsxs)(h,{className:n.root,ownerState:a,children:[(0,d.jsx)(v,{fontSize:r,className:n.background,ownerState:a}),(0,d.jsx)(y,{fontSize:r,className:n.dot,ownerState:a})]})},g=n(51640),b=n(36397).Z,M=n(35001);var w=n(85873);function k(e){return(0,w.Z)("MuiRadio",e)}var x=(0,n(12897).Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);const S=["checked","checkedIcon","color","icon","name","onChange","size"],L=(0,m.ZP)(u.Z,{shouldForwardProp:e=>(0,m.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${(0,g.Z)(n.color)}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({color:e.palette.text.secondary,"&:hover":{backgroundColor:(0,s.Fq)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${x.checked}`]:{color:e.palette[t.color].main}},{[`&.${x.disabled}`]:{color:e.palette.action.disabled}})));const E=(0,d.jsx)(_,{checked:!0}),T=(0,d.jsx)(_,{});var C=a.forwardRef((function(e,t){var n,s;const u=(0,l.Z)({props:e,name:"MuiRadio"}),{checked:c,checkedIcon:f=E,color:p="primary",icon:m=T,name:h,onChange:v,size:y="medium"}=u,_=(0,r.Z)(u,S),w=(0,o.Z)({},u,{color:p,size:y}),x=(e=>{const{classes:t,color:n}=e,r={root:["root",`color${(0,g.Z)(n)}`]};return(0,o.Z)({},t,(0,i.Z)(r,k,t))})(w),C=a.useContext(M.Z);let O=c;const P=b(v,C&&C.onChange);let D=h;var Y,j;return C&&(void 0===O&&(Y=C.value,O="object"==typeof(j=u.value)&&null!==j?Y===j:String(Y)===String(j)),void 0===D&&(D=C.name)),(0,d.jsx)(L,(0,o.Z)({type:"radio",icon:a.cloneElement(m,{fontSize:null!=(n=T.props.fontSize)?n:y}),checkedIcon:a.cloneElement(f,{fontSize:null!=(s=E.props.fontSize)?s:y}),ownerState:w,classes:x,name:D,checked:O,onChange:P,ref:t},_))}))},20750:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(25773),o=n(30808),a=n(27378),i=(n(23615),n(64281)),s=n(51183),u=n(99780),l=n(35001),c=n(56320).Z,d=n(24246);const f=["actions","children","defaultValue","name","onChange","value"];var p=a.forwardRef((function(e,t){const{actions:n,children:p,defaultValue:m,name:h,onChange:v,value:y}=e,_=(0,o.Z)(e,f),g=a.useRef(null),[b,M]=(0,u.Z)({controlled:y,default:m,name:"RadioGroup"});a.useImperativeHandle(n,(()=>({focus:()=>{let e=g.current.querySelector("input:not(:disabled):checked");e||(e=g.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const w=(0,s.Z)(t,g),k=c(h);return(0,d.jsx)(l.Z.Provider,{value:{name:k,onChange:e=>{M(e.target.value),v&&v(e,e.target.value)},value:b},children:(0,d.jsx)(i.Z,(0,r.Z)({role:"radiogroup",ref:w},_,{children:p}))})}))},35001:function(e,t,n){"use strict";const r=n(27378).createContext(void 0);t.Z=r},22013:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(30808),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(53892),u=n(7818),l=n(51640),c=n(25657),d=n(96716),f=n(64301),p=n(85873);function m(e){return(0,p.Z)("MuiSwitch",e)}var h=(0,n(12897).Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),v=n(24246);const y=["className","color","edge","size","sx"],_=(0,f.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${(0,l.Z)(n.edge)}`],t[`size${(0,l.Z)(n.size)}`]]}})((({ownerState:e})=>(0,o.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===e.edge&&{marginLeft:-8},"end"===e.edge&&{marginRight:-8},"small"===e.size&&{width:40,height:24,padding:7,[`& .${h.thumb}`]:{width:16,height:16},[`& .${h.switchBase}`]:{padding:4,[`&.${h.checked}`]:{transform:"translateX(16px)"}}}))),g=(0,f.ZP)(c.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${h.input}`]:t.input},"default"!==n.color&&t[`color${(0,l.Z)(n.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${h.checked}`]:{transform:"translateX(20px)"},[`&.${h.disabled}`]:{color:"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]},[`&.${h.checked} + .${h.track}`]:{opacity:.5},[`&.${h.disabled} + .${h.track}`]:{opacity:"light"===e.palette.mode?.12:.2},[`& .${h.input}`]:{left:"-100%",width:"300%"}})),(({theme:e,ownerState:t})=>(0,o.Z)({"&:hover":{backgroundColor:(0,u.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${h.checked}`]:{color:e.palette[t.color].main,"&:hover":{backgroundColor:(0,u.Fq)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${h.disabled}`]:{color:"light"===e.palette.mode?(0,u.$n)(e.palette[t.color].main,.62):(0,u._j)(e.palette[t.color].main,.55)}},[`&.${h.checked} + .${h.track}`]:{backgroundColor:e.palette[t.color].main}}))),b=(0,f.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.mode?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.mode?.38:.3}))),M=(0,f.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})));var w=a.forwardRef((function(e,t){const n=(0,d.Z)({props:e,name:"MuiSwitch"}),{className:a,color:u="primary",edge:c=!1,size:f="medium",sx:p}=n,h=(0,r.Z)(n,y),w=(0,o.Z)({},n,{color:u,edge:c,size:f}),k=(e=>{const{classes:t,edge:n,size:r,color:a,checked:i,disabled:u}=e,c={root:["root",n&&`edge${(0,l.Z)(n)}`,`size${(0,l.Z)(r)}`],switchBase:["switchBase",`color${(0,l.Z)(a)}`,i&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,s.Z)(c,m,t);return(0,o.Z)({},t,d)})(w),x=(0,v.jsx)(M,{className:k.thumb,ownerState:w});return(0,v.jsxs)(_,{className:(0,i.Z)(k.root,a),sx:p,ownerState:w,children:[(0,v.jsx)(g,(0,o.Z)({type:"checkbox",icon:x,checkedIcon:x,ref:t,ownerState:w},h,{classes:(0,o.Z)({},k,{root:k.switchBase})})),(0,v.jsx)(b,{className:k.track,ownerState:w})]})}))},60929:function(e,t,n){"use strict";n.d(t,{Z:function(){return Cn}});var r=n(25773),o=n(30808),a=n(27378),i=(n(23615),n(38944)),s=n(53892),u=n(56320),l=n(64301),c=n(96716),d=n(73143),f=n(15118),p=n(17216);function m(e){return e&&e.ownerDocument||document}function h(e){return m(e).defaultView||window}function v(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}var y=n(18030),_=n(24246);const g=["onChange","maxRows","minRows","style","value"];function b(e,t){return parseInt(e[t],10)||0}const M={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};var w=a.forwardRef((function(e,t){const{onChange:n,maxRows:i,minRows:s=1,style:u,value:l}=e,c=(0,o.Z)(e,g),{current:d}=a.useRef(null!=l),f=a.useRef(null),m=(0,p.Z)(t,f),w=a.useRef(null),k=a.useRef(0),[x,S]=a.useState({}),L=a.useCallback((()=>{const t=f.current,n=h(t).getComputedStyle(t);if("0px"===n.width)return;const r=w.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const o=n["box-sizing"],a=b(n,"padding-bottom")+b(n,"padding-top"),u=b(n,"border-bottom-width")+b(n,"border-top-width"),l=r.scrollHeight;r.value="x";const c=r.scrollHeight;let d=l;s&&(d=Math.max(Number(s)*c,d)),i&&(d=Math.min(Number(i)*c,d)),d=Math.max(d,c);const p=d+("border-box"===o?a+u:0),m=Math.abs(d-l)<=1;S((e=>k.current<20&&(p>0&&Math.abs((e.outerHeightStyle||0)-p)>1||e.overflow!==m)?(k.current+=1,{overflow:m,outerHeightStyle:p}):e))}),[i,s,e.placeholder]);a.useEffect((()=>{const e=v((()=>{k.current=0,L()})),t=h(f.current);let n;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(f.current)),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}}),[L]),(0,y.Z)((()=>{L()})),a.useEffect((()=>{k.current=0}),[l]);return(0,_.jsxs)(a.Fragment,{children:[(0,_.jsx)("textarea",(0,r.Z)({value:l,onChange:e=>{k.current=0,d||L(),n&&n(e)},ref:m,rows:s,style:(0,r.Z)({height:x.outerHeightStyle,overflow:x.overflow?"hidden":null},u)},c)),(0,_.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:w,tabIndex:-1,style:(0,r.Z)({},M,u,{padding:0})})]})})),k=n(73207),x=n(33567),S=n(29992),L=n(36683),E=n(51640),T=n(51183),C=n(16758),O=n(10043);function P(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return(0,_.jsx)(O.xB,{styles:r})}var D=n(53487);var Y=function(e){return(0,_.jsx)(P,(0,r.Z)({},e,{defaultTheme:D.Z}))},j=n(65021),Z=n(85873),N=n(12897);function R(e){return(0,Z.Z)("MuiInputBase",e)}var A=(0,N.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const I=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],F=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${(0,E.Z)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},H=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},$=(0,l.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:F})((({theme:e,ownerState:t})=>(0,r.Z)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${A.disabled}`]:{color:e.palette.text.disabled,cursor:"default"}},t.multiline&&(0,r.Z)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),z=(0,l.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:H})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,o={color:"currentColor",opacity:n?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},a={opacity:"0 !important"},i={opacity:n?.42:.5};return(0,r.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${A.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${A.disabled}`]:{opacity:1,WebkitTextFillColor:e.palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),V=(0,_.jsx)(Y,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),W=a.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiInputBase"}),{"aria-describedby":u,autoComplete:l,autoFocus:d,className:p,components:m={},componentsProps:h={},defaultValue:v,disabled:y,disableInjectingGlobalStyles:g,endAdornment:b,fullWidth:M=!1,id:O,inputComponent:P="input",inputProps:D={},inputRef:Y,maxRows:Z,minRows:N,multiline:A=!1,name:F,onBlur:H,onChange:W,onClick:B,onFocus:U,onKeyDown:K,onKeyUp:q,placeholder:G,readOnly:J,renderSuffix:X,rows:Q,startAdornment:ee,type:te="text",value:ne}=n,re=(0,o.Z)(n,I),oe=null!=D.value?D.value:ne,{current:ae}=a.useRef(null!=oe),ie=a.useRef(),se=a.useCallback((e=>{0}),[]),ue=(0,T.Z)(D.ref,se),le=(0,T.Z)(Y,ue),ce=(0,T.Z)(ie,le),[de,fe]=a.useState(!1),pe=(0,L.Z)();const me=(0,x.Z)({props:n,muiFormControl:pe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=pe?pe.focused:de,a.useEffect((()=>{!pe&&y&&de&&(fe(!1),H&&H())}),[pe,y,de,H]);const he=pe&&pe.onFilled,ve=pe&&pe.onEmpty,ye=a.useCallback((e=>{(0,j.vd)(e)?he&&he():ve&&ve()}),[he,ve]);(0,C.Z)((()=>{ae&&ye({value:oe})}),[oe,ye,ae]);a.useEffect((()=>{ye(ie.current)}),[]);let _e=P,ge=D;A&&"input"===_e&&(ge=Q?(0,r.Z)({type:void 0,minRows:Q,maxRows:Q},ge):(0,r.Z)({type:void 0,maxRows:Z,minRows:N},ge),_e=w);a.useEffect((()=>{pe&&pe.setAdornedStart(Boolean(ee))}),[pe,ee]);const be=(0,r.Z)({},n,{color:me.color||"primary",disabled:me.disabled,endAdornment:b,error:me.error,focused:me.focused,formControl:pe,fullWidth:M,hiddenLabel:me.hiddenLabel,multiline:A,size:me.size,startAdornment:ee,type:te}),Me=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:u,fullWidth:l,hiddenLabel:c,multiline:d,size:f,startAdornment:p,type:m}=e,h={root:["root",`color${(0,E.Z)(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",u&&"formControl","small"===f&&"sizeSmall",d&&"multiline",p&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",d&&"inputMultiline","small"===f&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd"]};return(0,s.Z)(h,R,t)})(be),we=m.Root||$,ke=h.root||{},xe=m.Input||z;return ge=(0,r.Z)({},ge,h.input),(0,_.jsxs)(a.Fragment,{children:[!g&&V,(0,_.jsxs)(we,(0,r.Z)({},ke,!(0,k.Z)(we)&&{ownerState:(0,r.Z)({},be,ke.ownerState)},{ref:t,onClick:e=>{ie.current&&e.currentTarget===e.target&&ie.current.focus(),B&&B(e)}},re,{className:(0,i.Z)(Me.root,ke.className,p),children:[ee,(0,_.jsx)(S.Z.Provider,{value:null,children:(0,_.jsx)(xe,(0,r.Z)({ownerState:be,"aria-invalid":me.error,"aria-describedby":u,autoComplete:l,autoFocus:d,defaultValue:v,disabled:me.disabled,id:O,onAnimationStart:e=>{ye("mui-auto-fill-cancel"===e.animationName?ie.current:{value:"x"})},name:F,placeholder:G,readOnly:J,required:me.required,rows:Q,value:oe,onKeyDown:K,onKeyUp:q,type:te},ge,!(0,k.Z)(xe)&&{as:_e,ownerState:(0,r.Z)({},be,ge.ownerState)},{ref:ce,className:(0,i.Z)(Me.input,ge.className),onBlur:e=>{H&&H(e),D.onBlur&&D.onBlur(e),pe&&pe.onBlur?pe.onBlur(e):fe(!1)},onChange:(e,...t)=>{if(!ae){const t=e.target||ie.current;if(null==t)throw new Error((0,f.Z)(1));ye({value:t.value})}D.onChange&&D.onChange(e,...t),W&&W(e,...t)},onFocus:e=>{me.disabled?e.stopPropagation():(U&&U(e),D.onFocus&&D.onFocus(e),pe&&pe.onFocus?pe.onFocus(e):fe(!0))}}))}),b,X?X((0,r.Z)({},me,{startAdornment:ee})):null]}))]})}));var B=W;function U(e){return(0,Z.Z)("MuiInput",e)}var K=(0,N.Z)("MuiInput",["root","formControl","focused","disabled","colorSecondary","underline","error","sizeSmall","multiline","fullWidth","input","inputSizeSmall","inputMultiline","inputTypeSearch"]);const q=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],G=(0,l.ZP)($,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...F(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return(0,r.Z)({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${e.palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${K.focused}:after`]:{transform:"scaleX(1)"},[`&.${K.error}:after`]:{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${K.disabled}):before`]:{borderBottom:`2px solid ${e.palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${K.disabled}:before`]:{borderBottomStyle:"dotted"}})})),J=(0,l.ZP)(z,{name:"MuiInput",slot:"Input",overridesResolver:H})({}),X=a.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiInput"}),{disableUnderline:a,components:i={},componentsProps:u,fullWidth:l=!1,inputComponent:f="input",multiline:p=!1,type:m="text"}=n,h=(0,o.Z)(n,q),v=(e=>{const{classes:t,disableUnderline:n}=e,o={root:["root",!n&&"underline"],input:["input"]},a=(0,s.Z)(o,U,t);return(0,r.Z)({},t,a)})(n),y={root:{ownerState:{disableUnderline:a}}},g=u?(0,d.Z)(u,y):y;return(0,_.jsx)(B,(0,r.Z)({components:(0,r.Z)({Root:G,Input:J},i),componentsProps:g,fullWidth:l,inputComponent:f,multiline:p,ref:t,type:m},h,{classes:v}))}));X.muiName="Input";var Q=X;function ee(e){return(0,Z.Z)("MuiFilledInput",e)}var te=(0,N.Z)("MuiFilledInput",["root","colorSecondary","underline","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","hiddenLabel","input","inputSizeSmall","inputHiddenLabel","inputMultiline","inputAdornedStart","inputAdornedEnd"]);const ne=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],re=(0,l.ZP)($,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...F(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return(0,r.Z)({position:"relative",backgroundColor:a,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:a}},[`&.${te.focused}`]:{backgroundColor:a},[`&.${te.disabled}`]:{backgroundColor:n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${e.palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${te.focused}:after`]:{transform:"scaleX(1)"},[`&.${te.error}:after`]:{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:`1px solid ${o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${te.disabled}):before`]:{borderBottom:`1px solid ${e.palette.text.primary}`},[`&.${te.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&(0,r.Z)({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),oe=(0,l.ZP)(z,{name:"MuiFilledInput",slot:"Input",overridesResolver:H})((({theme:e,ownerState:t})=>(0,r.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))),ae=a.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiFilledInput"}),{components:a={},componentsProps:i,fullWidth:u=!1,inputComponent:l="input",multiline:f=!1,type:p="text"}=n,m=(0,o.Z)(n,ne),h=(0,r.Z)({},n,{fullWidth:u,inputComponent:l,multiline:f,type:p}),v=(e=>{const{classes:t,disableUnderline:n}=e,o={root:["root",!n&&"underline"],input:["input"]},a=(0,s.Z)(o,ee,t);return(0,r.Z)({},t,a)})(n),y={root:{ownerState:h},input:{ownerState:h}},g=i?(0,d.Z)(i,y):y;return(0,_.jsx)(B,(0,r.Z)({components:(0,r.Z)({Root:re,Input:oe},a),componentsProps:g,fullWidth:u,inputComponent:l,multiline:f,ref:t,type:p},m,{classes:v}))}));ae.muiName="Input";var ie,se=ae;const ue=["children","classes","className","label","notched"],le=(0,l.ZP)("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),ce=(0,l.ZP)("legend")((({ownerState:e,theme:t})=>(0,r.Z)({float:"unset"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&(0,r.Z)({display:"block",width:"auto",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));function de(e){return(0,Z.Z)("MuiOutlinedInput",e)}var fe=(0,N.Z)("MuiOutlinedInput",["root","colorSecondary","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","notchedOutline","input","inputSizeSmall","inputMultiline","inputAdornedStart","inputAdornedEnd"]);const pe=["components","fullWidth","inputComponent","label","multiline","notched","type"],me=(0,l.ZP)($,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:F})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,r.Z)({position:"relative",borderRadius:e.shape.borderRadius,[`&:hover .${fe.notchedOutline}`]:{borderColor:e.palette.text.primary},"@media (hover: none)":{[`&:hover .${fe.notchedOutline}`]:{borderColor:n}},[`&.${fe.focused} .${fe.notchedOutline}`]:{borderColor:e.palette[t.color].main,borderWidth:2},[`&.${fe.error} .${fe.notchedOutline}`]:{borderColor:e.palette.error.main},[`&.${fe.disabled} .${fe.notchedOutline}`]:{borderColor:e.palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&(0,r.Z)({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),he=(0,l.ZP)((function(e){const{className:t,label:n,notched:a}=e,i=(0,o.Z)(e,ue),s=null!=n&&""!==n,u=(0,r.Z)({},e,{notched:a,withLabel:s});return(0,_.jsx)(le,(0,r.Z)({"aria-hidden":!0,className:t,ownerState:u},i,{children:(0,_.jsx)(ce,{ownerState:u,children:s?(0,_.jsx)("span",{children:n}):ie||(ie=(0,_.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>({borderColor:"light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}))),ve=(0,l.ZP)(z,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:H})((({theme:e,ownerState:t})=>(0,r.Z)({padding:"16.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),ye=a.forwardRef((function(e,t){var n;const i=(0,c.Z)({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:l=!1,inputComponent:d="input",label:f,multiline:p=!1,notched:m,type:h="text"}=i,v=(0,o.Z)(i,pe),y=(e=>{const{classes:t}=e,n=(0,s.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},de,t);return(0,r.Z)({},t,n)})(i),g=(0,L.Z)(),b=(0,x.Z)({props:i,muiFormControl:g,states:["required"]});return(0,_.jsx)(B,(0,r.Z)({components:(0,r.Z)({Root:me,Input:ve},u),renderSuffix:e=>(0,_.jsx)(he,{className:y.notchedOutline,label:null!=f&&""!==f&&b.required?n||(n=(0,_.jsxs)(a.Fragment,{children:[f,"\xa0","*"]})):f,notched:void 0!==m?m:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:l,inputComponent:d,multiline:p,ref:t,type:h},v,{classes:(0,r.Z)({},y,{notchedOutline:null})}))}));ye.muiName="Input";var _e=ye,ge=n(23626),be=n(15143);function Me(e){return(0,Z.Z)("MuiInputLabel",e)}(0,N.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const we=["disableAnimation","margin","shrink","variant"],ke=(0,l.ZP)(ge.Z,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${be.Z.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((({theme:e,ownerState:t})=>(0,r.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===t.size&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},"filled"===t.variant&&(0,r.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&(0,r.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===t.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===t.variant&&(0,r.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===t.size&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))));var xe=a.forwardRef((function(e,t){const n=(0,c.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:a=!1,shrink:i}=n,u=(0,o.Z)(n,we),l=(0,L.Z)();let d=i;void 0===d&&l&&(d=l.filled||l.focused||l.adornedStart);const f=(0,x.Z)({props:n,muiFormControl:l,states:["size","variant","required"]}),p=(0,r.Z)({},n,{disableAnimation:a,formControl:l,shrink:d,size:f.size,variant:f.variant,required:f.required}),m=(e=>{const{classes:t,formControl:n,size:o,shrink:a,disableAnimation:i,variant:u,required:l}=e,c={root:["root",n&&"formControl",!i&&"animated",a&&"shrink","small"===o&&"sizeSmall",u],asterisk:[l&&"asterisk"]},d=(0,s.Z)(c,Me,t);return(0,r.Z)({},t,d)})(p);return(0,_.jsx)(ke,(0,r.Z)({"data-shrink":d,ownerState:p,ref:t},u,{classes:m}))})),Se=n(61230),Le=n(56274),Ee=(n(19185),m),Te=n(10872);function Ce(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var Oe=Ce;const Pe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function De(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ye(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function je(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Ze(e,t,n,r,o,a){let i=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&je(s,a)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}var Ne=a.forwardRef((function(e,t){const{actions:n,autoFocus:i=!1,autoFocusItem:s=!1,children:u,className:l,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:f,variant:p="selectedMenu"}=e,m=(0,o.Z)(e,Pe),h=a.useRef(null),v=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,C.Z)((()=>{i&&h.current.focus()}),[i]),a.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!h.current.style.width;if(e.clientHeight<h.current.clientHeight&&n){const n=`${Oe(Ee(e))}px`;h.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,h.current.style.width=`calc(100% + ${n})`}return h.current}})),[]);const y=(0,T.Z)(h,t);let g=-1;a.Children.forEach(u,((e,t)=>{a.isValidElement(e)&&(e.props.disabled||("selectedMenu"===p&&e.props.selected||-1===g)&&(g=t))}));const b=a.Children.map(u,((e,t)=>{if(t===g){const t={};return s&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===p&&(t.tabIndex=0),a.cloneElement(e,t)}return e}));return(0,_.jsx)(Te.Z,(0,r.Z)({role:"menu",ref:y,className:l,onKeyDown:e=>{const t=h.current,n=e.key,r=Ee(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Ze(t,r,d,c,De);else if("ArrowUp"===n)e.preventDefault(),Ze(t,r,d,c,Ye);else if("Home"===n)e.preventDefault(),Ze(t,null,d,c,De);else if("End"===n)e.preventDefault(),Ze(t,null,d,c,Ye);else if(1===n.length){const o=v.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=r&&!o.repeating&&je(r,o);o.previousKeyMatched&&(s||Ze(t,r,!1,c,De,o))?e.preventDefault():o.previousKeyMatched=!1}f&&f(e)},tabIndex:i?0:-1},m,{children:b}))})),Re=n(7818);function Ae(e){return(0,Z.Z)("MuiPaper",e)}(0,N.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Ie=["className","component","elevation","square","variant"],Fe=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},He=(0,l.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>(0,r.Z)({backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${e.palette.divider}`},"elevation"===t.variant&&(0,r.Z)({boxShadow:e.shadows[t.elevation]},"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,Re.Fq)("#fff",Fe(t.elevation))}, ${(0,Re.Fq)("#fff",Fe(t.elevation))})`}))));var $e=a.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiPaper"}),{className:a,component:u="div",elevation:l=1,square:d=!1,variant:f="elevation"}=n,p=(0,o.Z)(n,Ie),m=(0,r.Z)({},n,{component:u,elevation:l,square:d,variant:f}),h=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]};return(0,s.Z)(a,Ae,o)})(m);return(0,_.jsx)(He,(0,r.Z)({as:u,ownerState:m,className:(0,i.Z)(h.root,a),ref:t},p))})),ze=v,Ve=h,We=n(42802),Be=n(247);function Ue(){return(0,Be.Z)(D.Z)}const Ke=e=>e.scrollTop;function qe(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}const Ge=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Je(e){return`scale(${e}, ${e**2})`}const Xe={entering:{opacity:1,transform:Je(1)},entered:{opacity:1,transform:"none"}},Qe=a.forwardRef((function(e,t){const{addEndListener:n,appear:i=!0,children:s,easing:u,in:l,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,style:v,timeout:y="auto",TransitionComponent:g=We.ZP}=e,b=(0,o.Z)(e,Ge),M=a.useRef(),w=a.useRef(),k=Ue(),x=a.useRef(null),S=(0,T.Z)(s.ref,t),L=(0,T.Z)(x,S),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(f),O=E(((e,t)=>{Ke(e);const{duration:n,delay:r,easing:o}=qe({style:v,timeout:y,easing:u},{mode:"enter"});let a;"auto"===y?(a=k.transitions.getAutoHeightDuration(e.clientHeight),w.current=a):a=n,e.style.transition=[k.transitions.create("opacity",{duration:a,delay:r}),k.transitions.create("transform",{duration:.666*a,delay:r,easing:o})].join(","),c&&c(e,t)})),P=E(d),D=E(h),Y=E((e=>{const{duration:t,delay:n,easing:r}=qe({style:v,timeout:y,easing:u},{mode:"exit"});let o;"auto"===y?(o=k.transitions.getAutoHeightDuration(e.clientHeight),w.current=o):o=t,e.style.transition=[k.transitions.create("opacity",{duration:o,delay:n}),k.transitions.create("transform",{duration:.666*o,delay:n||.333*o,easing:r})].join(","),e.style.opacity="0",e.style.transform=Je(.75),p&&p(e)})),j=E(m);return a.useEffect((()=>()=>{clearTimeout(M.current)}),[]),(0,_.jsx)(g,(0,r.Z)({appear:i,in:l,nodeRef:x,onEnter:O,onEntered:P,onEntering:C,onExit:Y,onExited:j,onExiting:D,addEndListener:e=>{"auto"===y&&(M.current=setTimeout(e,w.current||0)),n&&n(x.current,e)},timeout:"auto"===y?null:y},b,{children:(e,t)=>a.cloneElement(s,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:Je(.75),visibility:"exited"!==e||l?void 0:"hidden"},Xe[e],v,s.props.style),ref:L},t))}))}));Qe.muiSupportAuto=!0;var et=Qe,tt=n(69805),nt=n(36397),rt=n(31542),ot=n(40514);var at=a.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,s]=a.useState(null),u=(0,p.Z)(a.isValidElement(n)?n.ref:null,t);return(0,y.Z)((()=>{o||s(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),(0,y.Z)((()=>{if(i&&!o)return(0,ot.Z)(t,i),()=>{(0,ot.Z)(t,null)}}),[t,i,o]),o?a.isValidElement(n)?a.cloneElement(n,{ref:u}):n:i?rt.createPortal(n,i):i}));function it(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function st(e){return parseInt(h(e).getComputedStyle(e).paddingRight,10)||0}function ut(e,t,n,r=[],o){const a=[t,n,...r],i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(e=>{-1===a.indexOf(e)&&-1===i.indexOf(e.tagName)&&it(e,o)}))}function lt(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function ct(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=m(e);return t.body===e?h(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ce(m(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${st(r)+e}px`;const t=m(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${st(t)+e}px`}))}const e=r.parentElement,t=h(r),o="HTML"===(null==e?void 0:e.nodeName)&&"scroll"===t.getComputedStyle(e).overflowY?e:r;n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const dt=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ft(e){const t=[],n=[];return Array.from(e.querySelectorAll(dt)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function pt(){return!0}var mt=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=ft,isEnabled:s=pt,open:u}=e,l=a.useRef(),c=a.useRef(null),d=a.useRef(null),f=a.useRef(null),h=a.useRef(null),v=a.useRef(!1),y=a.useRef(null),g=(0,p.Z)(t.ref,y),b=a.useRef(null);a.useEffect((()=>{u&&y.current&&(v.current=!n)}),[n,u]),a.useEffect((()=>{if(!u||!y.current)return;const e=m(y.current);return y.current.contains(e.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex",-1),v.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}}),[u]),a.useEffect((()=>{if(!u||!y.current)return;const e=m(y.current),t=t=>{const{current:n}=y;if(null!==n)if(e.hasFocus()&&!r&&s()&&!l.current){if(!n.contains(e.activeElement)){if(t&&h.current!==t.target||e.activeElement!==h.current)h.current=null;else if(null!==h.current)return;if(!v.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=i(y.current)),r.length>0){var o,a;const e=Boolean((null==(o=b.current)?void 0:o.shiftKey)&&"Tab"===(null==(a=b.current)?void 0:a.key)),t=r[0],n=r[r.length-1];e?n.focus():t.focus()}else n.focus()}}else l.current=!1},n=t=>{b.current=t,!r&&s()&&"Tab"===t.key&&e.activeElement===y.current&&t.shiftKey&&(l.current=!0,d.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{"BODY"===e.activeElement.tagName&&t()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[n,r,o,s,u,i]);const M=e=>{null===f.current&&(f.current=e.relatedTarget),v.current=!0};return(0,_.jsxs)(a.Fragment,{children:[(0,_.jsx)("div",{tabIndex:0,onFocus:M,ref:c,"data-test":"sentinelStart"}),a.cloneElement(t,{ref:g,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),v.current=!0,h.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,_.jsx)("div",{tabIndex:0,onFocus:M,ref:d,"data-test":"sentinelEnd"})]})};function ht(e){return(0,Z.Z)("MuiModal",e)}(0,N.Z)("MuiModal",["root","hidden"]);const vt=["BackdropComponent","BackdropProps","children","classes","className","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","theme","onTransitionEnter","onTransitionExited"];const yt=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&it(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ut(t,e.mount,e.modalRef,r,!0);const o=lt(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=lt(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=ct(r,t))}remove(e){const t=this.modals.indexOf(e);if(-1===t)return t;const n=lt(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&it(e.modalRef,!0),ut(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&it(e.modalRef,!1)}return t}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};var _t=a.forwardRef((function(e,t){const{BackdropComponent:n,BackdropProps:u,children:l,classes:c,className:d,closeAfterTransition:f=!1,component:h="div",components:v={},componentsProps:y={},container:g,disableAutoFocus:b=!1,disableEnforceFocus:M=!1,disableEscapeKeyDown:w=!1,disablePortal:x=!1,disableRestoreFocus:S=!1,disableScrollLock:L=!1,hideBackdrop:E=!1,keepMounted:T=!1,manager:C=yt,onBackdropClick:O,onClose:P,onKeyDown:D,open:Y,theme:j,onTransitionEnter:Z,onTransitionExited:N}=e,R=(0,o.Z)(e,vt),[A,I]=a.useState(!0),F=a.useRef({}),H=a.useRef(null),$=a.useRef(null),z=(0,p.Z)($,t),V=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),W=()=>(F.current.modalRef=$.current,F.current.mountNode=H.current,F.current),B=()=>{C.mount(W(),{disableScrollLock:L}),$.current.scrollTop=0},U=(0,tt.Z)((()=>{const e=function(e){return"function"==typeof e?e():e}(g)||m(H.current).body;C.add(W(),e),$.current&&B()})),K=a.useCallback((()=>C.isTopModal(W())),[C]),q=(0,tt.Z)((e=>{H.current=e,e&&(Y&&K()?B():it($.current,!0))})),G=a.useCallback((()=>{C.remove(W())}),[C]);a.useEffect((()=>()=>{G()}),[G]),a.useEffect((()=>{Y?U():V&&f||G()}),[Y,G,V,f,U]);const J=(0,r.Z)({},e,{classes:c,closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:M,disableEscapeKeyDown:w,disablePortal:x,disableRestoreFocus:S,disableScrollLock:L,exited:A,hideBackdrop:E,keepMounted:T}),X=(e=>{const{open:t,exited:n,classes:r}=e,o={root:["root",!t&&n&&"hidden"]};return(0,s.Z)(o,ht,r)})(J);if(!T&&!Y&&(!V||A))return null;const Q=()=>{I(!1),Z&&Z()},ee=()=>{I(!0),N&&N(),f&&G()},te={};void 0===l.props.tabIndex&&(te.tabIndex="-1"),V&&(te.onEnter=(0,nt.Z)(Q,l.props.onEnter),te.onExited=(0,nt.Z)(ee,l.props.onExited));const ne=v.Root||h,re=y.root||{};return(0,_.jsx)(at,{ref:q,container:g,disablePortal:x,children:(0,_.jsxs)(ne,(0,r.Z)({role:"presentation"},re,!(0,k.Z)(ne)&&{as:h,ownerState:(0,r.Z)({},J,re.ownerState),theme:j},R,{ref:z,onKeyDown:e=>{D&&D(e),"Escape"===e.key&&K()&&(w||(e.stopPropagation(),P&&P(e,"escapeKeyDown")))},className:(0,i.Z)(X.root,re.className,d),children:[!E&&n?(0,_.jsx)(n,(0,r.Z)({open:Y,onClick:e=>{e.target===e.currentTarget&&(O&&O(e),P&&P(e,"backdropClick"))}},u)):null,(0,_.jsx)(mt,{disableEnforceFocus:M,disableAutoFocus:b,disableRestoreFocus:S,isEnabled:K,open:Y,children:a.cloneElement(l,te)})]}))})}));function gt(e){return(0,Z.Z)("MuiBackdrop",e)}(0,N.Z)("MuiBackdrop",["root","invisible"]);const bt=["classes","className","invisible","component","components","componentsProps","theme"];var Mt=a.forwardRef((function(e,t){const{classes:n,className:a,invisible:u=!1,component:l="div",components:c={},componentsProps:d={},theme:f}=e,p=(0,o.Z)(e,bt),m=(0,r.Z)({},e,{classes:n,invisible:u}),h=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,s.Z)(r,gt,t)})(m),v=c.Root||l,y=d.root||{};return(0,_.jsx)(v,(0,r.Z)({"aria-hidden":!0},y,!(0,k.Z)(v)&&{as:l,ownerState:(0,r.Z)({},m,y.ownerState),theme:f},{ref:t},p,{className:(0,i.Z)(h.root,y.className,a)}))})),wt=n(39508);const kt=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],xt={entering:{opacity:1},entered:{opacity:1}},St={enter:wt.x9.enteringScreen,exit:wt.x9.leavingScreen};var Lt=a.forwardRef((function(e,t){const{addEndListener:n,appear:i=!0,children:s,easing:u,in:l,onEnter:c,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,style:v,timeout:y=St,TransitionComponent:g=We.ZP}=e,b=(0,o.Z)(e,kt),M=Ue(),w=a.useRef(null),k=(0,T.Z)(s.ref,t),x=(0,T.Z)(w,k),S=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},L=S(f),E=S(((e,t)=>{Ke(e);const n=qe({style:v,timeout:y,easing:u},{mode:"enter"});e.style.webkitTransition=M.transitions.create("opacity",n),e.style.transition=M.transitions.create("opacity",n),c&&c(e,t)})),C=S(d),O=S(h),P=S((e=>{const t=qe({style:v,timeout:y,easing:u},{mode:"exit"});e.style.webkitTransition=M.transitions.create("opacity",t),e.style.transition=M.transitions.create("opacity",t),p&&p(e)})),D=S(m);return(0,_.jsx)(g,(0,r.Z)({appear:i,in:l,nodeRef:w,onEnter:E,onEntered:C,onEntering:L,onExit:P,onExited:D,onExiting:O,addEndListener:e=>{n&&n(w.current,e)},timeout:y},b,{children:(e,t)=>a.cloneElement(s,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},xt[e],v,s.props.style),ref:x},t))}))}));const Et=["children","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],Tt=(0,l.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,r.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})));var Ct=a.forwardRef((function(e,t){var n;const a=(0,c.Z)({props:e,name:"MuiBackdrop"}),{children:i,components:s={},componentsProps:u={},className:l,invisible:d=!1,open:f,transitionDuration:p,TransitionComponent:m=Lt}=a,h=(0,o.Z)(a,Et),v=(e=>{const{classes:t}=e;return t})((0,r.Z)({},a,{invisible:d}));return(0,_.jsx)(m,(0,r.Z)({in:f,timeout:p},h,{children:(0,_.jsx)(Mt,{className:l,invisible:d,components:(0,r.Z)({Root:Tt},s),componentsProps:{root:(0,r.Z)({},u.root,(!s.Root||!(0,k.Z)(s.Root))&&{ownerState:(0,r.Z)({},null==(n=u.root)?void 0:n.ownerState)})},classes:v,ref:t,children:i})}))}));const Ot=["BackdropComponent","closeAfterTransition","children","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted"],Pt=(0,l.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,r.Z)({position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Dt=(0,l.ZP)(Ct,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1});var Yt=a.forwardRef((function(e,t){var n;const i=(0,c.Z)({name:"MuiModal",props:e}),{BackdropComponent:s=Dt,closeAfterTransition:u=!1,children:l,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:v=!1,disableRestoreFocus:y=!1,disableScrollLock:g=!1,hideBackdrop:b=!1,keepMounted:M=!1}=i,w=(0,o.Z)(i,Ot),[x,S]=a.useState(!0),L={closeAfterTransition:u,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:v,disableRestoreFocus:y,disableScrollLock:g,hideBackdrop:b,keepMounted:M},E=(e=>e.classes)((0,r.Z)({},i,L,{exited:x}));return(0,_.jsx)(_t,(0,r.Z)({components:(0,r.Z)({Root:Pt},d),componentsProps:{root:(0,r.Z)({},f.root,(!d.Root||!(0,k.Z)(d.Root))&&{ownerState:(0,r.Z)({},null==(n=f.root)?void 0:n.ownerState)})},BackdropComponent:s,onTransitionEnter:()=>S(!1),onTransitionExited:()=>S(!0),ref:t},w,{classes:E},L,{children:l}))}));function jt(e){return(0,Z.Z)("MuiPopover",e)}(0,N.Z)("MuiPopover",["root","paper"]);const Zt=["onEntering"],Nt=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function Rt(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function At(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function It(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Ft(e){return"function"==typeof e?e():e}const Ht=(0,l.ZP)(Yt,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$t=(0,l.ZP)($e,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var zt=a.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiPopover"}),{action:u,anchorEl:l,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:p="anchorEl",children:m,className:h,container:v,elevation:y=8,marginThreshold:g=16,open:b,PaperProps:M={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:k=et,transitionDuration:x="auto",TransitionProps:{onEntering:S}={}}=n,L=(0,o.Z)(n.TransitionProps,Zt),E=(0,o.Z)(n,Nt),C=a.useRef(),O=(0,T.Z)(C,M.ref),P=(0,r.Z)({},n,{anchorOrigin:d,anchorReference:p,elevation:y,marginThreshold:g,PaperProps:M,transformOrigin:w,TransitionComponent:k,transitionDuration:x,TransitionProps:L}),D=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"]},jt,t)})(P),Y=a.useCallback((()=>{if("anchorPosition"===p)return f;const e=Ft(l),t=(e&&1===e.nodeType?e:Ee(C.current).body).getBoundingClientRect();return{top:t.top+Rt(t,d.vertical),left:t.left+At(t,d.horizontal)}}),[l,d.horizontal,d.vertical,f,p]),j=a.useCallback((e=>({vertical:Rt(e,w.vertical),horizontal:At(e,w.horizontal)})),[w.horizontal,w.vertical]),Z=a.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=j(t);if("none"===p)return{top:null,left:null,transformOrigin:It(n)};const r=Y();let o=r.top-n.vertical,a=r.left-n.horizontal;const i=o+t.height,s=a+t.width,u=Ve(Ft(l)),c=u.innerHeight-g,d=u.innerWidth-g;if(o<g){const e=o-g;o-=e,n.vertical+=e}else if(i>c){const e=i-c;o-=e,n.vertical+=e}if(a<g){const e=a-g;a-=e,n.horizontal+=e}else if(s>d){const e=s-d;a-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:It(n)}}),[l,p,Y,j,g]),N=a.useCallback((()=>{const e=C.current;if(!e)return;const t=Z(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}),[Z]);a.useEffect((()=>{b&&N()})),a.useImperativeHandle(u,(()=>b?{updatePosition:()=>{N()}}:null),[b,N]),a.useEffect((()=>{if(!b)return;const e=ze((()=>{N()})),t=Ve(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,b,N]);let R=x;"auto"!==x||k.muiSupportAuto||(R=void 0);const A=v||(l?Ee(Ft(l)).body:void 0);return(0,_.jsx)(Ht,(0,r.Z)({BackdropProps:{invisible:!0},className:(0,i.Z)(D.root,h),container:A,open:b,ref:t,ownerState:P},E,{children:(0,_.jsx)(k,(0,r.Z)({appear:!0,in:b,onEntering:(e,t)=>{S&&S(e,t),N()},timeout:R},L,{children:(0,_.jsx)($t,(0,r.Z)({elevation:y},M,{ref:O,className:(0,i.Z)(D.paper,M.className),children:m}))}))}))}));function Vt(e){return(0,Z.Z)("MuiMenu",e)}(0,N.Z)("MuiMenu",["root","paper","list"]);const Wt=["onEntering"],Bt=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Ut={vertical:"top",horizontal:"right"},Kt={vertical:"top",horizontal:"left"},qt=(0,l.ZP)(zt,{shouldForwardProp:e=>(0,l.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gt=(0,l.ZP)($e,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Jt=(0,l.ZP)(Ne,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Xt=a.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiMenu"}),{autoFocus:u=!0,children:l,disableAutoFocusItem:d=!1,MenuListProps:f={},onClose:p,open:m,PaperProps:h={},PopoverClasses:v,transitionDuration:y="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu"}=n,M=(0,o.Z)(n.TransitionProps,Wt),w=(0,o.Z)(n,Bt),k=Ue(),x="rtl"===k.direction,S=(0,r.Z)({},n,{autoFocus:u,disableAutoFocusItem:d,MenuListProps:f,onEntering:g,PaperProps:h,transitionDuration:y,TransitionProps:M,variant:b}),L=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"],paper:["paper"],list:["list"]},Vt,t)})(S),E=u&&!d&&m,T=a.useRef(null);let C=-1;return a.Children.map(l,((e,t)=>{a.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===C)&&(C=t))})),(0,_.jsx)(qt,(0,r.Z)({classes:v,onClose:p,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?Ut:Kt,PaperProps:(0,r.Z)({component:Gt},h,{classes:(0,r.Z)({},h.classes,{root:L.paper})}),className:L.root,open:m,ref:t,transitionDuration:y,TransitionProps:(0,r.Z)({onEntering:(e,t)=>{T.current&&T.current.adjustStyleForScrollbar(e,k),g&&g(e,t)}},M),ownerState:S},w,{children:(0,_.jsx)(Jt,(0,r.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),p&&p(e,"tabKeyDown"))},actions:T,autoFocus:u&&(-1===C||d),autoFocusItem:E,variant:b},f,{className:(0,i.Z)(L.list,f.className),children:l}))}))}));function Qt(e){return(0,Z.Z)("MuiNativeSelect",e)}var en=(0,N.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);const tn=["className","disabled","IconComponent","inputRef","variant"],nn=({ownerState:e,theme:t})=>(0,r.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},[`&.${en.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:t.shape.borderRadius,"&:focus":{borderRadius:t.shape.borderRadius},"&&&":{paddingRight:32}}),rn=(0,l.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:l.FO,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${en.multiple}`]:t.multiple}]}})(nn),on=({ownerState:e,theme:t})=>(0,r.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:t.palette.action.active,[`&.${en.disabled}`]:{color:t.palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),an=(0,l.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,E.Z)(n.variant)}`],n.open&&t.iconOpen]}})(on);var sn=a.forwardRef((function(e,t){const{className:n,disabled:u,IconComponent:l,inputRef:c,variant:d="standard"}=e,f=(0,o.Z)(e,tn),p=(0,r.Z)({},e,{disabled:u,variant:d}),m=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a}=e,i={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${(0,E.Z)(n)}`,a&&"iconOpen",r&&"disabled"]};return(0,s.Z)(i,Qt,t)})(p);return(0,_.jsxs)(a.Fragment,{children:[(0,_.jsx)(rn,(0,r.Z)({ownerState:p,className:(0,i.Z)(m.select,n),disabled:u,ref:c||t},f)),e.multiple?null:(0,_.jsx)(an,{as:l,ownerState:p,className:m.icon})]})})),un=n(99780);function ln(e){return(0,Z.Z)("MuiSelect",e)}var cn,dn=(0,N.Z)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);const fn=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],pn=(0,l.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${dn.select}`]:t.select},{[`&.${dn.select}`]:t[n.variant]},{[`&.${dn.multiple}`]:t.multiple}]}})(nn,{[`&.${dn.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mn=(0,l.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${(0,E.Z)(n.variant)}`],n.open&&t.iconOpen]}})(on),hn=(0,l.ZP)("input",{shouldForwardProp:e=>(0,l.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function vn(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function yn(e){return null==e||"string"==typeof e&&!e.trim()}var _n,gn,bn=a.forwardRef((function(e,t){const{"aria-describedby":n,"aria-label":u,autoFocus:l,autoWidth:c,children:d,className:p,defaultOpen:m,defaultValue:h,disabled:v,displayEmpty:y,IconComponent:g,inputRef:b,labelId:M,MenuProps:w={},multiple:k,name:x,onBlur:S,onChange:L,onClose:C,onFocus:O,onOpen:P,open:D,readOnly:Y,renderValue:Z,SelectDisplayProps:N={},tabIndex:R,value:A,variant:I="standard"}=e,F=(0,o.Z)(e,fn),[H,$]=(0,un.Z)({controlled:A,default:h,name:"Select"}),[z,V]=(0,un.Z)({controlled:D,default:m,name:"Select"}),W=a.useRef(null),B=a.useRef(null),[U,K]=a.useState(null),{current:q}=a.useRef(null!=D),[G,J]=a.useState(),X=(0,T.Z)(t,b),Q=a.useCallback((e=>{B.current=e,e&&K(e)}),[]);a.useImperativeHandle(X,(()=>({focus:()=>{B.current.focus()},node:W.current,value:H})),[H]),a.useEffect((()=>{m&&z&&U&&!q&&(J(c?null:U.clientWidth),B.current.focus())}),[U,c]),a.useEffect((()=>{l&&B.current.focus()}),[l]),a.useEffect((()=>{if(!M)return;const e=Ee(B.current).getElementById(M);if(e){const t=()=>{getSelection().isCollapsed&&B.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[M]);const ee=(e,t)=>{e?P&&P(t):C&&C(t),q||(J(c?null:U.clientWidth),V(e))},te=a.Children.toArray(d),ne=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(k){n=Array.isArray(H)?H.slice():[];const t=H.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),H!==n&&($(n),L)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:x}}),L(o,e)}k||ee(!1,t)}},re=null!==U&&z;let oe,ae;delete F["aria-invalid"];const ie=[];let se=!1,ue=!1;((0,j.vd)({value:H})||y)&&(Z?oe=Z(H):se=!0);const le=te.map((e=>{if(!a.isValidElement(e))return null;let t;if(k){if(!Array.isArray(H))throw new Error((0,f.Z)(2));t=H.some((t=>vn(t,e.props.value))),t&&se&&ie.push(e.props.children)}else t=vn(H,e.props.value),t&&se&&(ae=e.props.children);return t&&(ue=!0),a.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ne(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));se&&(oe=k?0===ie.length?null:ie.reduce(((e,t,n)=>(e.push(t),n<ie.length-1&&e.push(", "),e)),[]):ae);let ce,de=G;!c&&q&&U&&(de=U.clientWidth),ce=void 0!==R?R:v?null:0;const fe=N.id||(x?`mui-component-select-${x}`:void 0),pe=(0,r.Z)({},e,{variant:I,value:H,open:re}),me=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a}=e,i={select:["select",n,r&&"disabled",o&&"multiple"],icon:["icon",`icon${(0,E.Z)(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,s.Z)(i,ln,t)})(pe);return(0,_.jsxs)(a.Fragment,{children:[(0,_.jsx)(pn,(0,r.Z)({ref:Q,tabIndex:ce,role:"button","aria-disabled":v?"true":void 0,"aria-expanded":re?"true":"false","aria-haspopup":"listbox","aria-label":u,"aria-labelledby":[M,fe].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!Y){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ee(!0,e))}},onMouseDown:v||Y?null:e=>{0===e.button&&(e.preventDefault(),B.current.focus(),ee(!0,e))},onBlur:e=>{!re&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:H,name:x}}),S(e))},onFocus:O},N,{ownerState:pe,className:(0,i.Z)(me.select,p,N.className),id:fe,children:yn(oe)?cn||(cn=(0,_.jsx)("span",{className:"notranslate",children:"\u200b"})):oe})),(0,_.jsx)(hn,(0,r.Z)({value:Array.isArray(H)?H.join(","):H,name:x,ref:W,"aria-hidden":!0,onChange:e=>{const t=te.map((e=>e.props.value)).indexOf(e.target.value);if(-1===t)return;const n=te[t];$(n.props.value),L&&L(e,n)},tabIndex:-1,disabled:v,className:me.nativeInput,autoFocus:l,ownerState:pe},F)),(0,_.jsx)(mn,{as:g,className:me.icon,ownerState:pe}),(0,_.jsx)(Xt,(0,r.Z)({id:`menu-${x||""}`,anchorEl:U,open:re,onClose:e=>{ee(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},w,{MenuListProps:(0,r.Z)({"aria-labelledby":M,role:"listbox",disableListWrap:!0},w.MenuListProps),PaperProps:(0,r.Z)({},w.PaperProps,{style:(0,r.Z)({minWidth:de},null!=w.PaperProps?w.PaperProps.style:null)}),children:le}))]})})),Mn=(0,n(76576).Z)((0,_.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const wn=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],kn=a.forwardRef((function(e,t){const n=(0,c.Z)({name:"MuiSelect",props:e}),{autoWidth:s=!1,children:u,classes:l={},className:f,defaultOpen:p=!1,displayEmpty:m=!1,IconComponent:h=Mn,id:v,input:y,inputProps:g,label:b,labelId:M,MenuProps:w,multiple:k=!1,native:S=!1,onClose:E,onOpen:C,open:O,renderValue:P,SelectDisplayProps:D,variant:Y="outlined"}=n,j=(0,o.Z)(n,wn),Z=S?sn:bn,N=(0,L.Z)(),R=(0,x.Z)({props:n,muiFormControl:N,states:["variant"]}).variant||Y,A=y||{standard:_n||(_n=(0,_.jsx)(Q,{})),outlined:(0,_.jsx)(_e,{label:b}),filled:gn||(gn=(0,_.jsx)(se,{}))}[R],I=(e=>{const{classes:t}=e;return t})((0,r.Z)({},n,{classes:l})),F=(0,T.Z)(t,A.ref);return a.cloneElement(A,(0,r.Z)({inputComponent:Z,inputProps:(0,r.Z)({children:u,IconComponent:h,variant:R,type:void 0,multiple:k},S?{id:v}:{autoWidth:s,defaultOpen:p,displayEmpty:m,labelId:M,MenuProps:w,onClose:E,onOpen:C,open:O,renderValue:P,SelectDisplayProps:(0,r.Z)({id:v},D)},g,{classes:g?(0,d.Z)(I,g.classes):I},y?y.props.inputProps:{})},k&&S&&"outlined"===R?{notched:!0}:{},{ref:F,className:(0,i.Z)(A.props.className,f)},j))}));kn.muiName="Select";var xn=kn;function Sn(e){return(0,Z.Z)("MuiTextField",e)}(0,N.Z)("MuiTextField",["root"]);const Ln=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],En={standard:Q,filled:se,outlined:_e},Tn=(0,l.ZP)(Se.Z,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({});var Cn=a.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiTextField"}),{autoComplete:a,autoFocus:l=!1,children:d,className:f,color:p="primary",defaultValue:m,disabled:h=!1,error:v=!1,FormHelperTextProps:y,fullWidth:g=!1,helperText:b,id:M,InputLabelProps:w,inputProps:k,InputProps:x,inputRef:S,label:L,maxRows:E,minRows:T,multiline:C=!1,name:O,onBlur:P,onChange:D,onFocus:Y,placeholder:j,required:Z=!1,rows:N,select:R=!1,SelectProps:A,type:I,value:F,variant:H="outlined"}=n,$=(0,o.Z)(n,Ln),z=(0,r.Z)({},n,{autoFocus:l,color:p,disabled:h,error:v,fullWidth:g,multiline:C,required:Z,select:R,variant:H}),V=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},Sn,t)})(z);const W={};"outlined"===H&&(w&&void 0!==w.shrink&&(W.notched=w.shrink),W.label=L),R&&(A&&A.native||(W.id=void 0),W["aria-describedby"]=void 0);const B=(0,u.Z)(M),U=b&&B?`${B}-helper-text`:void 0,K=L&&B?`${B}-label`:void 0,q=En[H],G=(0,_.jsx)(q,(0,r.Z)({"aria-describedby":U,autoComplete:a,autoFocus:l,defaultValue:m,fullWidth:g,multiline:C,name:O,rows:N,maxRows:E,minRows:T,type:I,value:F,id:B,inputRef:S,onBlur:P,onChange:D,onFocus:Y,placeholder:j,inputProps:k},W,x));return(0,_.jsxs)(Tn,(0,r.Z)({className:(0,i.Z)(V.root,f),disabled:h,error:v,fullWidth:g,ref:t,required:Z,color:p,variant:H,ownerState:z},$,{children:[null!=L&&""!==L&&(0,_.jsx)(xe,(0,r.Z)({htmlFor:B,id:K},w,{children:L})),R?(0,_.jsx)(xn,(0,r.Z)({"aria-describedby":U,id:B,labelId:K,value:F,input:G},A,{children:d})):G,b&&(0,_.jsx)(Le.Z,(0,r.Z)({id:U},y,{children:b}))]}))}))},25657:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(30808),o=n(25773),a=n(27378),i=(n(23615),n(38944)),s=n(53892),u=n(51640),l=n(64301),c=n(99780),d=n(36683),f=n(20966),p=n(85873);function m(e){return(0,p.Z)("PrivateSwitchBase",e)}(0,n(12897).Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var h=n(24246);const v=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],y=(0,l.ZP)(f.Z)((({ownerState:e})=>(0,o.Z)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),_=(0,l.ZP)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var g=a.forwardRef((function(e,t){const{autoFocus:n,checked:a,checkedIcon:l,className:f,defaultChecked:p,disabled:g,disableFocusRipple:b=!1,edge:M=!1,icon:w,id:k,inputProps:x,inputRef:S,name:L,onBlur:E,onChange:T,onFocus:C,readOnly:O,required:P,tabIndex:D,type:Y,value:j}=e,Z=(0,r.Z)(e,v),[N,R]=(0,c.Z)({controlled:a,default:Boolean(p),name:"SwitchBase",state:"checked"}),A=(0,d.Z)();let I=g;A&&void 0===I&&(I=A.disabled);const F="checkbox"===Y||"radio"===Y,H=(0,o.Z)({},e,{checked:N,disabled:I,disableFocusRipple:b,edge:M}),$=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${(0,u.Z)(o)}`],input:["input"]};return(0,s.Z)(a,m,t)})(H);return(0,h.jsxs)(y,(0,o.Z)({component:"span",className:(0,i.Z)($.root,f),centerRipple:!0,focusRipple:!b,disabled:I,tabIndex:null,role:void 0,onFocus:e=>{C&&C(e),A&&A.onFocus&&A.onFocus(e)},onBlur:e=>{E&&E(e),A&&A.onBlur&&A.onBlur(e)},ownerState:H,ref:t},Z,{children:[(0,h.jsx)(_,(0,o.Z)({autoFocus:n,checked:a,defaultChecked:p,className:$.input,disabled:I,id:F&&k,name:L,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;R(t),T&&T(e,t)},readOnly:O,ref:S,required:P,ownerState:H,tabIndex:D,type:Y},"checkbox"===Y&&void 0===j?{}:{value:j},x)),N?l:w]}))}))},39508:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c},x9:function(){return s}});var r=n(30808),o=n(25773);const a=["duration","easing","delay"],i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function u(e){return`${Math.round(e)}ms`}function l(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function c(e){const t=(0,o.Z)({},i,e.easing),n=(0,o.Z)({},s,e.duration);return(0,o.Z)({getAutoHeightDuration:l,create:(e=["all"],o={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=o;(0,r.Z)(o,a);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:u(i)} ${s} ${"string"==typeof l?l:u(l)}`)).join(",")}},e,{easing:t,duration:n})}},53487:function(e,t,n){"use strict";n.d(t,{Z:function(){return D}});var r=n(25773),o=n(30808),a=n(73143),i=n(47011);var s=n(15118),u=n(7818);var l={black:"#000",white:"#fff"};var c={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var d={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var f={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var p={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var h={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const y=["mode","contrastThreshold","tonalOffset"],_={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:l.white,default:l.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},g={text:{primary:l.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:l.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function b(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.$n)(e.main,o):"dark"===t&&(e.dark=(0,u._j)(e.main,a)))}function M(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2}=e,M=(0,o.Z)(e,y),w=e.primary||function(e="light"){return"dark"===e?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(t),k=e.secondary||function(e="light"){return"dark"===e?{main:d[200],light:d[50],dark:d[400]}:{main:d[500],light:d[300],dark:d[700]}}(t),x=e.error||function(e="light"){return"dark"===e?{main:f[500],light:f[300],dark:f[700]}:{main:f[700],light:f[400],dark:f[800]}}(t),S=e.info||function(e="light"){return"dark"===e?{main:h[400],light:h[300],dark:h[700]}:{main:h[700],light:h[500],dark:h[900]}}(t),L=e.success||function(e="light"){return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[800],light:v[500],dark:v[900]}}(t),E=e.warning||function(e="light"){return"dark"===e?{main:p[400],light:p[300],dark:p[700]}:{main:"#ed6c02",light:p[500],dark:p[900]}}(t);function T(e){return(0,u.mi)(e,g.text.primary)>=n?g.text.primary:_.text.primary}const C=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=(0,r.Z)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error((0,s.Z)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error((0,s.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return b(e,"light",o,i),b(e,"dark",a,i),e.contrastText||(e.contrastText=T(e.main)),e},O={dark:g,light:_};return(0,a.Z)((0,r.Z)({common:l,mode:t,primary:C({color:w,name:"primary"}),secondary:C({color:k,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:C({color:x,name:"error"}),warning:C({color:E,name:"warning"}),info:C({color:S,name:"info"}),success:C({color:L,name:"success"}),grey:c,contrastThreshold:n,getContrastText:T,augmentColor:C,tonalOffset:i},O[t]),M)}const w=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const k={textTransform:"uppercase"},x='"Roboto", "Helvetica", "Arial", sans-serif';function S(e,t){const n="function"==typeof t?t(e):t,{fontFamily:i=x,fontSize:s=14,fontWeightLight:u=300,fontWeightRegular:l=400,fontWeightMedium:c=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:p,pxToRem:m}=n,h=(0,o.Z)(n,w);const v=s/14,y=m||(e=>e/f*v+"rem"),_=(e,t,n,o,a)=>{return(0,r.Z)({fontFamily:i,fontWeight:e,fontSize:y(t),lineHeight:n},i===x?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5)+"em"}:{},a,p);var s},g={h1:_(u,96,1.167,-1.5),h2:_(u,60,1.2,-.5),h3:_(l,48,1.167,0),h4:_(l,34,1.235,.25),h5:_(l,24,1.334,0),h6:_(c,20,1.6,.15),subtitle1:_(l,16,1.75,.15),subtitle2:_(c,14,1.57,.1),body1:_(l,16,1.5,.15),body2:_(l,14,1.43,.15),button:_(c,14,1.75,.4,k),caption:_(l,12,1.66,.4),overline:_(l,12,2.66,1,k)};return(0,a.Z)((0,r.Z)({htmlFontSize:f,pxToRem:y,fontFamily:i,fontSize:s,fontWeightLight:u,fontWeightRegular:l,fontWeightMedium:c,fontWeightBold:d},g),h,{clone:!1})}function L(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var E=["none",L(0,2,1,-1,0,1,1,0,0,1,3,0),L(0,3,1,-2,0,2,2,0,0,1,5,0),L(0,3,3,-2,0,3,4,0,0,1,8,0),L(0,2,4,-1,0,4,5,0,0,1,10,0),L(0,3,5,-1,0,5,8,0,0,1,14,0),L(0,3,5,-1,0,6,10,0,0,1,18,0),L(0,4,5,-2,0,7,10,1,0,2,16,1),L(0,5,5,-3,0,8,10,1,0,3,14,2),L(0,5,6,-3,0,9,12,1,0,3,16,2),L(0,6,6,-3,0,10,14,1,0,4,18,3),L(0,6,7,-4,0,11,15,1,0,4,20,3),L(0,7,8,-4,0,12,17,2,0,5,22,4),L(0,7,8,-4,0,13,19,2,0,5,24,4),L(0,7,9,-4,0,14,21,2,0,5,26,4),L(0,8,9,-5,0,15,22,2,0,6,28,5),L(0,8,10,-5,0,16,24,2,0,6,30,5),L(0,8,11,-5,0,17,26,2,0,6,32,5),L(0,9,11,-5,0,18,28,2,0,7,34,6),L(0,9,12,-6,0,19,29,2,0,7,36,6),L(0,10,13,-6,0,20,31,3,0,8,38,7),L(0,10,13,-6,0,21,33,3,0,8,40,7),L(0,10,14,-6,0,22,35,3,0,8,42,7),L(0,11,14,-7,0,23,36,3,0,9,44,8),L(0,11,15,-7,0,24,38,3,0,9,46,8)],T=n(39508);var C={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const O=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function P(e={},...t){const{mixins:n={},palette:s={},transitions:u={},typography:l={}}=e,c=(0,o.Z)(e,O),d=M(s),f=(0,i.Z)(e);let p=(0,a.Z)(f,{mixins:(m=f.breakpoints,f.spacing,h=n,(0,r.Z)({toolbar:{minHeight:56,[`${m.up("xs")} and (orientation: landscape)`]:{minHeight:48},[m.up("sm")]:{minHeight:64}}},h)),palette:d,shadows:E.slice(),typography:S(d,l),transitions:(0,T.ZP)(u),zIndex:(0,r.Z)({},C)});var m,h;return p=(0,a.Z)(p,c),p=t.reduce(((e,t)=>(0,a.Z)(e,t)),p),p}var D=P()},64301:function(e,t,n){"use strict";n.d(t,{ZP:function(){return F},FO:function(){return R},Dz:function(){return A}});var r=n(25773),o=n(30808),a=n(27378),i=n(82015),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,u=(0,i.Z)((function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(34935),c=n(53211),d=n(74343),f=u,p=function(e){return"theme"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?f:p},h=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},v=function(){return null},y=function e(t,n){var o,i,s=t.__emotion_real===t,u=s&&t.__emotion_base||t;void 0!==n&&(o=n.label,i=n.target);var f=h(t,n,s),p=f||m(u),y=!p("as");return function(){var _=arguments,g=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&g.push("label:"+o+";"),null==_[0]||void 0===_[0].raw)g.push.apply(g,_);else{0,g.push(_[0][0]);for(var b=_.length,M=1;M<b;M++)g.push(_[M],_[0][M])}var w=(0,l.w)((function(e,t,n){var r=y&&e.as||u,o="",s=[],h=e;if(null==e.theme){for(var _ in h={},e)h[_]=e[_];h.theme=(0,a.useContext)(l.T)}"string"==typeof e.className?o=(0,c.fp)(t.registered,s,e.className):null!=e.className&&(o=e.className+" ");var b=(0,d.O)(g.concat(s),t.registered,h);(0,c.My)(t,b,"string"==typeof r);o+=t.key+"-"+b.name,void 0!==i&&(o+=" "+i);var M=y&&void 0===f?m(r):p,w={};for(var k in e)y&&"as"===k||M(k)&&(w[k]=e[k]);w.className=o,w.ref=n;var x=(0,a.createElement)(r,w),S=(0,a.createElement)(v,null);return(0,a.createElement)(a.Fragment,null,S,x)}));return w.displayName=void 0!==o?o:"Styled("+("string"==typeof u?u:u.displayName||u.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=u,w.__emotion_styles=g,w.__emotion_forwardProp=f,Object.defineProperty(w,"toString",{value:function(){return"."+i}}),w.withComponent=function(t,o){return e(t,(0,r.Z)({},n,o,{shouldForwardProp:h(w,o,!0)})).apply(void 0,g)},w}},_=y.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){_[e]=_(e)}));var g=_;var b=n(47011),M=n(29490);const w=["variant"];function k(e){return 0===e.length}function x(e){const{variant:t}=e,n=(0,o.Z)(e,w);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?k(r)?e[t]:(0,M.Z)(e[t]):`${k(r)?t:(0,M.Z)(t)}${(0,M.Z)(e[t].toString())}`})),r}var S=n(5546),L=n(67351),E=n(72142);const T=function(e=L.G$){const t=Object.keys(e).reduce(((t,n)=>(e[n].filterProps.forEach((r=>{t[r]=e[n]})),t)),{});function n(e,n,r){const o={[e]:n,theme:r},a=t[e];return a?a(o):{[e]:n}}return function e(r){const{sx:o,theme:a={}}=r||{};if(!o)return null;function i(r){let o=r;if("function"==typeof r)o=r(a);else if("object"!=typeof r)return r;if(!o)return null;const i=(0,E.W8)(a.breakpoints),s=Object.keys(i);let u=i;return Object.keys(o).forEach((r=>{const i=(s=o[r],l=a,"function"==typeof s?s(l):s);var s,l;if(null!=i)if("object"==typeof i)if(t[r])u=(0,S.Z)(u,n(r,i,a));else{const t=(0,E.k9)({theme:a},i,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(t,i)?u=(0,S.Z)(u,t):u[r]=e({sx:i,theme:a})}else u=(0,S.Z)(u,n(r,i,a))})),(0,E.L7)(s,u)}return Array.isArray(o)?o.map(i):i(o)}}();T.filterProps=["sx"];var C=T;const O=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],P=["theme"],D=["theme"];function Y(e){return 0===Object.keys(e).length}function j(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Z=(0,b.Z)();var N=n(53487);const R=e=>j(e)&&"classes"!==e,A=j,I=function(e={}){const{defaultTheme:t=Z,rootShouldForwardProp:n=j,slotShouldForwardProp:a=j,styleFunctionSx:i=C}=e;return(e,s={})=>{const{name:u,slot:l,skipVariantsResolver:c,skipSx:d,overridesResolver:f}=s,p=(0,o.Z)(s,O),m=void 0!==c?c:l&&"Root"!==l||!1,h=d||!1;let v=j;"Root"===l?v=n:l&&(v=a);const y=function(e,t){return g(e,t)}(e,(0,r.Z)({shouldForwardProp:v,label:undefined},p)),_=(e,...n)=>{const a=n?n.map((e=>"function"==typeof e&&e.__emotion_real!==e?n=>{let{theme:a}=n,i=(0,o.Z)(n,P);return e((0,r.Z)({theme:Y(a)?t:a},i))}:e)):[];let s=e;u&&f&&a.push((e=>{const n=Y(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(u,n);if(r){const t={};return Object.entries(r).forEach((([n,r])=>{t[n]="function"==typeof r?r(e):r})),f(e,t)}return null})),u&&!m&&a.push((e=>{const n=Y(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,a;const{ownerState:i={}}=e,s=[],u=null==n||null==(o=n.components)||null==(a=o[r])?void 0:a.variants;return u&&u.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{i[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[x(n.props)])})),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=x(e.props);r[t]=e.style})),r})(u,n),n,u)})),h||a.push((e=>{const n=Y(e.theme)?t:e.theme;return i((0,r.Z)({},e,{theme:n}))}));const l=a.length-n.length;if(Array.isArray(e)&&l>0){const t=new Array(l).fill("");s=[...e,...t],s.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(s=n=>{let{theme:a}=n,i=(0,o.Z)(n,D);return e((0,r.Z)({theme:Y(a)?t:a},i))});return y(s,...a)};return y.withConfig&&(_.withConfig=y.withConfig),_}}({defaultTheme:N.Z,rootShouldForwardProp:R});var F=I},96716:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(81923);var o=n(247);function a({props:e,name:t,defaultTheme:n}){const a=function(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,o):o}({theme:(0,o.Z)(n),name:t,props:e});return a}var i=n(53487);function s({props:e,name:t}){return a({props:e,name:t,defaultTheme:i.Z})}},51640:function(e,t,n){"use strict";var r=n(29490);t.Z=r.Z},76576:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(25773),o=n(27378),a=n(30808),i=(n(23615),n(38944)),s=n(53892),u=n(51640),l=n(96716),c=n(64301),d=n(85873);function f(e){return(0,d.Z)("MuiSvgIcon",e)}(0,n(12897).Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var p=n(24246);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],h=(0,c.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,u.Z)(n.color)}`],t[`fontSize${(0,u.Z)(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,s,u,l,c,d,f,p,m,h,v,y,_;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(a=o.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(s=i.pxToRem)?void 0:s.call(i,20))||"1.25rem",medium:(null==(u=e.typography)||null==(l=u.pxToRem)?void 0:l.call(u,24))||"1.5rem",large:(null==(c=e.typography)||null==(d=c.pxToRem)?void 0:d.call(c,35))||"2.1875"}[t.fontSize],color:null!=(f=null==(p=e.palette)||null==(m=p[t.color])?void 0:m.main)?f:{action:null==(h=e.palette)||null==(v=h.action)?void 0:v.active,disabled:null==(y=e.palette)||null==(_=y.action)?void 0:_.disabled,inherit:void 0}[t.color]}})),v=o.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiSvgIcon"}),{children:o,className:c,color:d="inherit",component:v="svg",fontSize:y="medium",htmlColor:_,inheritViewBox:g=!1,titleAccess:b,viewBox:M="0 0 24 24"}=n,w=(0,a.Z)(n,m),k=(0,r.Z)({},n,{color:d,component:v,fontSize:y,inheritViewBox:g,viewBox:M}),x={};g||(x.viewBox=M);const S=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&`color${(0,u.Z)(t)}`,`fontSize${(0,u.Z)(n)}`]};return(0,s.Z)(o,f,r)})(k);return(0,p.jsxs)(h,(0,r.Z)({as:v,className:(0,i.Z)(S.root,c),ownerState:k,focusable:"false",color:_,"aria-hidden":!b||void 0,role:b?"img":void 0,ref:t},x,w,{children:[o,b?(0,p.jsx)("title",{children:b}):null]}))}));v.muiName="SvgIcon";var y=v;function _(e,t){const n=(n,o)=>(0,p.jsx)(y,(0,r.Z)({"data-testid":`${t}Icon`,ref:o},n,{children:e}));return n.muiName=y.muiName,o.memo(o.forwardRef(n))}},74942:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(27378);var o=function(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},99780:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(27378);var o=function({controlled:e,default:t,name:n,state:o="value"}){const{current:a}=r.useRef(void 0!==e),[i,s]=r.useState(t);return[a?e:i,r.useCallback((e=>{a||s(e)}),[])]}},16758:function(e,t,n){"use strict";var r=n(18030);t.Z=r.Z},51183:function(e,t,n){"use strict";var r=n(17216);t.Z=r.Z},72142:function(e,t,n){"use strict";n.d(t,{L7:function(){return s},VO:function(){return r},W8:function(){return i},k9:function(){return a}});n(23615);const r={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${r[e]}px)`};function a(e,t,n){const a=e.theme||{};if(Array.isArray(t)){const e=a.breakpoints||o;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=a.breakpoints||o;return Object.keys(t).reduce(((o,a)=>{if(-1!==Object.keys(e.values||r).indexOf(a)){o[e.up(a)]=n(t[a],a)}else{const e=a;o[e]=t[e]}return o}),{})}return n(t)}function i(e={}){var t;return(null==e||null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function s(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}},7818:function(e,t,n){"use strict";n.d(t,{$n:function(){return d},Fq:function(){return l},_j:function(){return c},mi:function(){return u}});var r=n(15118);function o(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));let o,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),o=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,r.Z)(10,o))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:o}}function i(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function s(e){let t="hsl"===(e=a(e)).type?a(function(e){e=a(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),u=(e,t=(e+n/30)%12)=>o-s*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const c=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(l+="a",c.push(t[3])),i({type:l,values:c})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){const n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function l(e,t){return e=a(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,i(e)}function c(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return i(e)}function d(e,t){if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return i(e)}},47011:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(25773),o=n(30808),a=n(73143);const i=["values","unit","step"];function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:a=5}=e,s=(0,o.Z)(e,i),u=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,r.Z)({},e,{[t.key]:t.val})),{})})(t),l=Object.keys(u);function c(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function d(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-a/100}${n})`}function f(e,r){const o=l.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[l[o]]?t[l[o]]:r)-a/100}${n})`}return(0,r.Z)({keys:l,values:u,up:c,down:d,between:f,only:function(e){return l.indexOf(e)+1<l.length?f(e,l[l.indexOf(e)+1]):c(e)},not:function(e){const t=l.indexOf(e);return 0===t?c(l[1]):t===l.length-1?d(l[t]):f(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},s)}var u={borderRadius:4},l=n(56421);const c=["breakpoints","palette","spacing","shape"];var d=function(e={},...t){const{breakpoints:n={},palette:i={},spacing:d,shape:f={}}=e,p=(0,o.Z)(e,c),m=s(n),h=function(e=8){if(e.mui)return e;const t=(0,l.hB)({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(d);let v=(0,a.Z)({breakpoints:m,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},i),spacing:h,shape:(0,r.Z)({},u,f)},p);return v=t.reduce(((e,t)=>(0,a.Z)(e,t)),v),v}},67351:function(e,t,n){"use strict";n.d(t,{Gc:function(){return q},G$:function(){return K}});var r=n(40685),o=n(5546);var a=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,o.Z)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n},i=n(56421),s=n(72142);function u(e){return"number"!=typeof e?e:`${e}px solid`}const l=(0,r.Z)({prop:"border",themeKey:"borders",transform:u}),c=(0,r.Z)({prop:"borderTop",themeKey:"borders",transform:u}),d=(0,r.Z)({prop:"borderRight",themeKey:"borders",transform:u}),f=(0,r.Z)({prop:"borderBottom",themeKey:"borders",transform:u}),p=(0,r.Z)({prop:"borderLeft",themeKey:"borders",transform:u}),m=(0,r.Z)({prop:"borderColor",themeKey:"palette"}),h=(0,r.Z)({prop:"borderTopColor",themeKey:"palette"}),v=(0,r.Z)({prop:"borderRightColor",themeKey:"palette"}),y=(0,r.Z)({prop:"borderBottomColor",themeKey:"palette"}),_=(0,r.Z)({prop:"borderLeftColor",themeKey:"palette"}),g=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,i.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,i.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,n)}return null};g.propTypes={},g.filterProps=["borderRadius"];var b=a(l,c,d,f,p,m,h,v,y,_,g);var M=a((0,r.Z)({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),(0,r.Z)({prop:"display"}),(0,r.Z)({prop:"overflow"}),(0,r.Z)({prop:"textOverflow"}),(0,r.Z)({prop:"visibility"}),(0,r.Z)({prop:"whiteSpace"}));var w=a((0,r.Z)({prop:"flexBasis"}),(0,r.Z)({prop:"flexDirection"}),(0,r.Z)({prop:"flexWrap"}),(0,r.Z)({prop:"justifyContent"}),(0,r.Z)({prop:"alignItems"}),(0,r.Z)({prop:"alignContent"}),(0,r.Z)({prop:"order"}),(0,r.Z)({prop:"flex"}),(0,r.Z)({prop:"flexGrow"}),(0,r.Z)({prop:"flexShrink"}),(0,r.Z)({prop:"alignSelf"}),(0,r.Z)({prop:"justifyItems"}),(0,r.Z)({prop:"justifySelf"}));const k=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,i.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,i.NA)(t,e)});return(0,s.k9)(e,e.gap,n)}return null};k.propTypes={},k.filterProps=["gap"];const x=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,i.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,i.NA)(t,e)});return(0,s.k9)(e,e.columnGap,n)}return null};x.propTypes={},x.filterProps=["columnGap"];const S=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,i.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,i.NA)(t,e)});return(0,s.k9)(e,e.rowGap,n)}return null};S.propTypes={},S.filterProps=["rowGap"];var L=a(k,x,S,(0,r.Z)({prop:"gridColumn"}),(0,r.Z)({prop:"gridRow"}),(0,r.Z)({prop:"gridAutoFlow"}),(0,r.Z)({prop:"gridAutoColumns"}),(0,r.Z)({prop:"gridAutoRows"}),(0,r.Z)({prop:"gridTemplateColumns"}),(0,r.Z)({prop:"gridTemplateRows"}),(0,r.Z)({prop:"gridTemplateAreas"}),(0,r.Z)({prop:"gridArea"}));var E=a((0,r.Z)({prop:"position"}),(0,r.Z)({prop:"zIndex",themeKey:"zIndex"}),(0,r.Z)({prop:"top"}),(0,r.Z)({prop:"right"}),(0,r.Z)({prop:"bottom"}),(0,r.Z)({prop:"left"}));var T=a((0,r.Z)({prop:"color",themeKey:"palette"}),(0,r.Z)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),(0,r.Z)({prop:"backgroundColor",themeKey:"palette"}));var C=(0,r.Z)({prop:"boxShadow",themeKey:"shadows"});function O(e){return e<=1&&0!==e?100*e+"%":e}const P=(0,r.Z)({prop:"width",transform:O}),D=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||s.VO[t]||O(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};D.filterProps=["maxWidth"];const Y=(0,r.Z)({prop:"minWidth",transform:O}),j=(0,r.Z)({prop:"height",transform:O}),Z=(0,r.Z)({prop:"maxHeight",transform:O}),N=(0,r.Z)({prop:"minHeight",transform:O});(0,r.Z)({prop:"size",cssProperty:"width",transform:O}),(0,r.Z)({prop:"size",cssProperty:"height",transform:O});var R=a(P,D,Y,j,Z,N,(0,r.Z)({prop:"boxSizing"}));const A=(0,r.Z)({prop:"fontFamily",themeKey:"typography"}),I=(0,r.Z)({prop:"fontSize",themeKey:"typography"}),F=(0,r.Z)({prop:"fontStyle",themeKey:"typography"}),H=(0,r.Z)({prop:"fontWeight",themeKey:"typography"}),$=(0,r.Z)({prop:"letterSpacing"}),z=(0,r.Z)({prop:"textTransform"}),V=(0,r.Z)({prop:"lineHeight"}),W=(0,r.Z)({prop:"textAlign"});var B=a((0,r.Z)({prop:"typography",cssProperty:!1,themeKey:"typography"}),A,I,F,H,$,V,W,z);const U={borders:b.filterProps,display:M.filterProps,flexbox:w.filterProps,grid:L.filterProps,positions:E.filterProps,palette:T.filterProps,shadows:C.filterProps,sizing:R.filterProps,spacing:i.ZP.filterProps,typography:B.filterProps},K={borders:b,display:M,flexbox:w,grid:L,positions:E,palette:T,shadows:C,sizing:R,spacing:i.ZP,typography:B},q=Object.keys(U).reduce(((e,t)=>(U[t].forEach((n=>{e[n]=K[t]})),e)),{})},5546:function(e,t,n){"use strict";var r=n(73143);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},56421:function(e,t,n){"use strict";n.d(t,{hB:function(){return m},eI:function(){return p},ZP:function(){return M},NA:function(){return h}});var r=n(72142),o=n(40685),a=n(5546);const i={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},u={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},l=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!u[e])return[e];e=u[e]}const[t,n]=e.split(""),r=i[t],o=s[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),c=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...c,...d];function p(e,t,n,r){const a=(0,o.D)(e,t)||n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function m(e){return p(e,"spacing",8)}function h(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function v(e,t,n,o){if(-1===t.indexOf(n))return null;const a=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=h(t,n),e)),{})}(l(n),o),i=e[n];return(0,r.k9)(e,i,a)}function y(e,t){const n=m(e.theme);return Object.keys(e).map((r=>v(e,t,r,n))).reduce(a.Z,{})}function _(e){return y(e,c)}function g(e){return y(e,d)}function b(e){return y(e,f)}_.propTypes={},_.filterProps=c,g.propTypes={},g.filterProps=d,b.propTypes={},b.filterProps=f;var M=b},40685:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var r=n(29490),o=n(72142);function a(e,t){return t&&"string"==typeof t?t.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e):null}function i(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:a(e,n)||r,t&&(o=t(o)),o}t.Z=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:u}=e,l=e=>{if(null==e[t])return null;const l=e[t],c=a(e.theme,s)||{};return(0,o.k9)(e,l,(e=>{let o=i(c,u,e);return e===o&&"string"==typeof e&&(o=i(c,u,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n?o:{[n]:o}}))};return l.propTypes={},l.filterProps=[t],l}},247:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(47011),o=n(27378);var a=o.createContext(null);var i=function(e=null){const t=o.useContext(a);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n};const s=(0,r.Z)();var u=function(e=s){return i(e)}},29490:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(15118);function o(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},36397:function(e,t,n){"use strict";function r(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}n.d(t,{Z:function(){return r}})},73143:function(e,t,n){"use strict";n.d(t,{P:function(){return o},Z:function(){return a}});var r=n(25773);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function a(e,t,n={clone:!0}){const i=n.clone?(0,r.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(o(t[r])&&r in e&&o(e[r])?i[r]=a(e[r],t[r],n):i[r]=t[r])})),i}},15118:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},81923:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(25773);function o(e,t){const n=(0,r.Z)({},t);return Object.keys(e).forEach((t=>{void 0===n[t]&&(n[t]=e[t])})),n}},40514:function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},18030:function(e,t,n){"use strict";var r=n(27378);const o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;t.Z=o},69805:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(27378),o=n(18030);function a(e){const t=r.useRef(e);return(0,o.Z)((()=>{t.current=e})),r.useCallback(((...e)=>(0,t.current)(...e)),[])}},17216:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(27378),o=n(40514);function a(e,t){return r.useMemo((()=>null==e&&null==t?null:n=>{(0,o.Z)(e,n),(0,o.Z)(t,n)}),[e,t])}},56320:function(e,t,n){"use strict";var r;n.d(t,{Z:function(){return s}});var o=n(27378);let a=0;const i=(r||(r=n.t(o,2))).useId;function s(e){if(void 0!==i){const t=i();return null!=e?e:t}return function(e){const[t,n]=o.useState(e),r=e||t;return o.useEffect((()=>{null==t&&(a+=1,n(`mui-${a}`))}),[t]),r}(e)}},86236:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=n(38355),o=n(35671),a=n(30002),i=n(31512),s=["/properties"],u="http://json-schema.org/draft-07/schema";class l extends r.default{_addVocabularies(){super._addVocabularies(),o.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(i,s):i;this.addMetaSchema(e,u,!1),this.refs["http://json-schema.org/schema"]=u}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:void 0)}}e.exports=t=l,Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var c=n(91686);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var d=n(15669);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}})},66545:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class o extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function a(e,...t){const n=[e[0]];let r=0;for(;r<t.length;)u(n,t[r]),n.push(e[++r]);return new o(n)}t._Code=o,t.nil=new o(""),t._=a;const i=new o("+");function s(e,...t){const n=[c(e[0])];let r=0;for(;r<t.length;)n.push(i),u(n,t[r]),n.push(i,c(e[++r]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===i){const n=l(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}(n),new o(n)}function u(e,t){var n;t instanceof o?e.push(...t._items):t instanceof r?e.push(t):e.push("number"==typeof(n=t)||"boolean"==typeof n||null===n?n:c(Array.isArray(n)?n.join(","):n))}function l(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=s,t.addCodeArg=u,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:s`${e}${t}`},t.stringify=function(e){return new o(c(e))},t.safeStringify=c,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new o(`.${e}`):a`[${e}]`},t.regexpCode=function(e){return new o(e.toString())}},15669:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const r=n(66545),o=n(59187);var a=n(66545);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return a.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return a.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return a.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return a.Name}});var i=n(59187);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),t.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class s{optimizeNodes(){return this}optimizeNames(e,t){return this}}class u extends s{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?o.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=P(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class l extends s{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=P(this.rhs,e,t),this}get names(){return O(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class c extends l{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class f extends s{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class p extends s{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class m extends s{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=P(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class h extends s{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const o=n[r];o.optimizeNames(e,t)||(D(e,o.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>C(e,t.names)),{})}}class v extends h{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends h{}class _ extends v{}_.kind="else";class g extends v{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new _(e):e}return t?!1===e?t instanceof g?t:t.nodes:this.nodes.length?this:new g(Y(e),t instanceof g?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=P(this.condition,e,t),this}get names(){const e=super.names;return O(e,this.condition),this.else&&C(e,this.else.names),e}}g.kind="if";class b extends v{}b.kind="for";class M extends b{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=P(this.iteration,e,t),this}get names(){return C(super.names,this.iteration.names)}}class w extends b{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?o.varKinds.var:this.varKind,{name:n,from:r,to:a}=this;return`for(${t} ${n}=${r}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){const e=O(super.names,this.from);return O(e,this.to)}}class k extends b{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=P(this.iterable,e,t),this}get names(){return C(super.names,this.iterable.names)}}class x extends v{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}x.kind="func";class S extends h{render(e){return"return "+super.render(e)}}S.kind="return";class L extends v{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&C(e,this.catch.names),this.finally&&C(e,this.finally.names),e}}class E extends v{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}E.kind="catch";class T extends v{render(e){return"finally"+super.render(e)}}T.kind="finally";function C(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function O(e,t){return t instanceof r._CodeOrName?C(e,t.names):e}function P(e,t,n){return e instanceof r.Name?a(e):(o=e)instanceof r._Code&&o._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=a(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;var o;function a(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function D(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function Y(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${R(e)}`}t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new o.Scope({parent:e}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const o=this._scope.toName(t);return void 0!==n&&r&&(this._constants[o.str]=n),this._leafNode(new u(e,o,n)),o}const(e,t,n){return this._def(o.varKinds.const,e,t,n)}let(e,t,n){return this._def(o.varKinds.let,e,t,n)}var(e,t,n){return this._def(o.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new l(e,t,n))}add(e,n){return this._leafNode(new c(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new m(e)),this}object(...e){const t=["{"];for(const[n,o]of e)t.length>1&&t.push(","),t.push(n),(n!==o||this.opts.es5)&&(t.push(":"),r.addCodeArg(t,o));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new g(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new g(e))}else(){return this._elseNode(new _)}endIf(){return this._endBlockNode(g,_)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new M(e),t)}forRange(e,t,n,r,a=(this.opts.es5?o.varKinds.var:o.varKinds.let)){const i=this._scope.toName(e);return this._for(new w(a,i,t,n),(()=>r(i)))}forOf(e,t,n,a=o.varKinds.const){const i=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(i,r._`${e}[${t}]`),n(i)}))}return this._for(new k("of",a,i,t),(()=>n(i)))}forIn(e,t,n,a=(this.opts.es5?o.varKinds.var:o.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const i=this._scope.toName(e);return this._for(new k("in",a,i,t),(()=>n(i)))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new f(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new L;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new E(e),t(e)}return n&&(this._currNode=r.finally=new T,this.code(n)),this._endBlockNode(E,T)}throw(e){return this._leafNode(new p(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,o){return this._blockNode(new x(e,t,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(x)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof g))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=Y;const j=N(t.operators.AND);t.and=function(...e){return e.reduce(j)};const Z=N(t.operators.OR);function N(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${R(t)} ${e} ${R(n)}`}function R(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(Z)}},59187:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(66545);class o extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var a;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(a=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class i{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=i;class s extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=s;const u=r._`\n`;t.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?u:r.nil}}get(){return this._scope}name(e){return new s(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:o}=r,a=null!==(n=t.key)&&void 0!==n?n:t.ref;let i=this._values[o];if(i){const e=i.get(a);if(e)return e}else i=this._values[o]=new Map;i.set(a,r);const s=this._scope[o]||(this._scope[o]=[]),u=s.length;return s[u]=t.ref,r.setValue(t,{property:o,itemIndex:u}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(e,n,i={},s){let u=r.nil;for(const l in e){const c=e[l];if(!c)continue;const d=i[l]=i[l]||new Map;c.forEach((e=>{if(d.has(e))return;d.set(e,a.Started);let i=n(e);if(i){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;u=r._`${u}${n} ${e} = ${i};${this.opts._n}`}else{if(!(i=null==s?void 0:s(e)))throw new o(e);u=r._`${u}${i}${this.opts._n}`}d.set(e,a.Completed)}))}return u}}},6930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(15669),o=n(88936),a=n(17250);function i(e,t){const n=e.const("err",t);e.if(r._`${a.default.vErrors} === null`,(()=>e.assign(a.default.vErrors,r._`[${n}]`)),r._`${a.default.vErrors}.push(${n})`),e.code(r._`${a.default.errors}++`)}function s(e,t){const{gen:n,validateName:o,schemaEnv:a}=e;a.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${o}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`should pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,o,a){const{it:u}=e,{gen:c,compositeRule:d,allErrors:f}=u,p=l(e,n,o);(null!=a?a:d||f)?i(c,p):s(u,r._`[${p}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:o}=e,{gen:u,compositeRule:c,allErrors:d}=o;i(u,l(e,n,r)),c||d||s(o,a.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(a.default.errors,t),e.if(r._`${a.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${a.default.vErrors}.length`,t)),(()=>e.assign(a.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:o,errsCount:i,it:s}){if(void 0===i)throw new Error("ajv implementation error");const u=e.name("err");e.forRange("i",i,a.default.errors,(i=>{e.const(u,r._`${a.default.vErrors}[${i}]`),e.if(r._`${u}.instancePath === undefined`,(()=>e.assign(r._`${u}.instancePath`,r.strConcat(a.default.instancePath,s.errorPath)))),e.assign(r._`${u}.schemaPath`,r.str`${s.errSchemaPath}/${t}`),s.opts.verbose&&(e.assign(r._`${u}.schema`,n),e.assign(r._`${u}.data`,o))}))};const u={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function l(e,t,n){const{createErrors:o}=e.it;return!1===o?r._`{}`:function(e,t,n={}){const{gen:o,it:i}=e,s=[c(i,n),d(e,n)];return function(e,{params:t,message:n},o){const{keyword:i,data:s,schemaValue:l,it:c}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=c;o.push([u.keyword,i],[u.params,"function"==typeof t?t(e):t||r._`{}`]),d.messages&&o.push([u.message,"function"==typeof n?n(e):n]);d.verbose&&o.push([u.schema,l],[u.parentSchema,r._`${p}${m}`],[a.default.data,s]);f&&o.push([u.propertyName,f])}(e,t,s),o.object(...s)}(e,t,n)}function c({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${o.getErrorPath(t,o.Type.Str)}`:e;return[a.default.instancePath,r.strConcat(a.default.instancePath,n)]}function d({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:a}){let i=a?t:r.str`${t}/${e}`;return n&&(i=r.str`${i}${o.getErrorPath(n,o.Type.Str)}`),[u.schemaPath,i]}},87382:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(15669),o=n(46448),a=n(17250),i=n(96696),s=n(88936),u=n(91686),l=n(22371);class c{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:i.normalizeId(null==n?void 0:n.$id),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function d(e){const t=p.call(this,e);if(t)return t;const n=i.getFullPath(e.root.baseId),{es5:s,lines:l}=this.opts.code,{ownProperties:c}=this.opts,d=new r.CodeGen(this.scope,{es5:s,lines:l,ownProperties:c});let f;e.$async&&(f=d.scopeValue("Error",{ref:o.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const m=d.scopeName("validate");e.validateName=m;const h={gen:d,allErrors:this.opts.allErrors,data:a.default.data,parentData:a.default.parentData,parentDataProperty:a.default.parentDataProperty,dataNames:[a.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:r.stringify(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let v;try{this._compilations.add(e),u.validateFunctionCode(h),d.optimize(this.opts.code.optimize);const t=d.toString();v=`${d.scopeRefs(a.default.scope)}return ${t}`,this.opts.code.process&&(v=this.opts.code.process(v,e));const n=new Function(`${a.default.self}`,`${a.default.scope}`,v)(this,this.scope.get());if(this.scope.value(m,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:m,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=h;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=r.stringify(n.evaluated))}return e.validate=n,e}catch(y){throw delete e.validate,delete e.validateName,v&&this.logger.error("Error compiling schema, function code:",v),y}finally{this._compilations.delete(e)}}function f(e){return i.inlineRef(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:d.call(this,e)}function p(e){for(const r of this._compilations)if(n=e,(t=r).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return r;var t,n}function m(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||h.call(this,e,t)}function h(e,t){const n=l.parse(t),r=i._getFullPath(n);let o=i.getFullPath(e.baseId);if(Object.keys(e.schema).length>0&&r===o)return y.call(this,n,e);const a=i.normalizeId(r),s=this.refs[a]||this.schemas[a];if("string"==typeof s){const t=h.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,n,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||d.call(this,s),a===i.normalizeId(t)){const{schema:t}=s;return t.$id&&(o=i.resolveUrl(o,t.$id)),new c({schema:t,root:e,baseId:o})}return y.call(this,n,s)}}t.SchemaEnv=c,t.compileSchema=d,t.resolveRef=function(e,t,n){var r;n=i.resolveUrl(t,n);const o=e.refs[n];if(o)return o;let a=m.call(this,e,n);if(void 0===a){const o=null===(r=e.localRefs)||void 0===r?void 0:r[n];o&&(a=new c({schema:o,root:e,baseId:t}))}return void 0!==a?e.refs[n]=f.call(this,a):void 0},t.getCompilingSchema=p,t.resolveSchema=h;const v=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:n,root:r}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const u of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;if(void 0===(n=n[s.unescapeFragment(u)]))return;!v.has(u)&&"object"==typeof n&&n.$id&&(t=i.resolveUrl(t,n.$id))}let a;if("boolean"!=typeof n&&n.$ref&&!s.schemaHasRulesButRef(n,this.RULES)){const e=i.resolveUrl(t,n.$ref);a=h.call(this,r,e)}return a=a||new c({schema:n,root:r,baseId:t}),a.schema!==a.root.schema?a:void 0}},17250:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15669),o={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=o},91578:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(96696);class o extends Error{constructor(e,t,n){super(n||`can't resolve reference ${t} from id ${e}`),this.missingRef=r.resolveUrl(e,t),this.missingSchema=r.normalizeId(r.getFullPath(this.missingRef))}}t.default=o},96696:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(88936),o=n(66471),a=n(25127),i=n(22371),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!l(e):!!t&&c(e)<=t)};const u=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(e){for(const t in e){if(u.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(l))return!0;if("object"==typeof n&&l(n))return!0}return!1}function c(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!s.has(n)&&("object"==typeof e[n]&&r.eachItem(e[n],(e=>t+=c(e))),t===1/0))return 1/0}return t}function d(e="",t){!1!==t&&(e=m(e));return f(i.parse(e))}function f(e){return i.serialize(e).split("#")[0]+"#"}t.getFullPath=d,t._getFullPath=f;const p=/#\/?$/;function m(e){return e?e.replace(p,""):""}t.normalizeId=m,t.resolveUrl=function(e,t){return t=m(t),i.resolve(e,t)};const h=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e){if("boolean"==typeof e)return{};const t=m(e.$id),n={"":t},r=d(t,!1),s={},u=new Set;return a(e,{allKeys:!0},((e,t,o,a)=>{if(void 0===a)return;const d=r+t;let f=n[a];function p(t){if(t=m(f?i.resolve(f,t):t),u.has(t))throw c(t);u.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?l(e,n.schema,t):t!==m(d)&&("#"===t[0]?(l(e,s[t],t),s[t]=e):this.refs[t]=d),t}function v(e){if("string"==typeof e){if(!h.test(e))throw new Error(`invalid anchor "${e}"`);p.call(this,`#${e}`)}}"string"==typeof e.$id&&(f=p.call(this,e.$id)),v.call(this,e.$anchor),v.call(this,e.$dynamicAnchor),n[t]=f})),s;function l(e,t,n){if(void 0!==t&&!o(e,t))throw c(n)}function c(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},82881:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},88936:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(15669),o=n(66545);function a(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const o=r.RULES.keywords;for(const a in t)o[a]||m(e,`unknown keyword: "${a}"`)}function i(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function s(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function u(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function l({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:o}){return(a,i,s,u)=>{const l=void 0===s?i:s instanceof r.Name?(i instanceof r.Name?e(a,i,s):t(a,i,s),s):i instanceof r.Name?(t(a,s,i),i):n(i,s);return u!==r.Name||l instanceof r.Name?l:o(a,l)}}function c(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&d(e,n,t),n}function d(e,t,n){Object.keys(n).forEach((n=>e.assign(r._`${t}${r.getProperty(n)}`,!0)))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(a(e,t),!i(t,e.self.RULES.all))},t.checkUnknownRules=a,t.schemaHasRules=i,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,o,a){if(!a){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${r.getProperty(o)}`},t.unescapeFragment=function(e){return u(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(s(e))},t.escapeJsonPointer=s,t.unescapeJsonPointer=u,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:l({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>{e.if(r._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),d(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:c}),items:l({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,(()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=c,t.setEvaluated=d;const f={};var p;function m(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:f[t.code]||(f[t.code]=new o._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(p=t.Type||(t.Type={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const o=t===p.Num;return n?o?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:o?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?r.getProperty(e).toString():"/"+s(e)},t.checkStrictMode=m},89073:function(e,t){"use strict";function n(e,t){return t.rules.some((t=>r(e,t)))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const o=t.RULES.types[r];return o&&!0!==o&&n(e,o)},t.shouldUseGroup=n,t.shouldUseRule=r},12171:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(6930),o=n(15669),a=n(17250),i={message:"boolean schema is false"};function s(e,t){const{gen:n,data:o}=e,a={gen:n,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};r.reportError(a,i,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?s(e,!1):"object"==typeof n&&!0===n.$async?t.return(a.default.data):(t.assign(o._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),s(e)):n.var(t,!0)}},97332:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(82881),o=n(89073),a=n(6930),i=n(15669),s=n(88936);var u;function l(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(u=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=l(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=l,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:a}=e,s=function(e,t){return t?e.filter((e=>c.has(e)||"array"===t&&"array"===e)):[]}(t,a.coerceTypes),l=t.length>0&&!(0===s.length&&1===t.length&&o.schemaHasRulesForType(e,t[0]));if(l){const o=f(t,r,a.strictNumbers,u.Wrong);n.if(o,(()=>{s.length?function(e,t,n){const{gen:r,data:o,opts:a}=e,s=r.let("dataType",i._`typeof ${o}`),u=r.let("coerced",i._`undefined`);"array"===a.coerceTypes&&r.if(i._`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>r.assign(o,i._`${o}[0]`).assign(s,i._`typeof ${o}`).if(f(t,o,a.strictNumbers),(()=>r.assign(u,o)))));r.if(i._`${u} !== undefined`);for(const i of n)(c.has(i)||"array"===i&&"array"===a.coerceTypes)&&l(i);function l(e){switch(e){case"string":return void r.elseIf(i._`${s} == "number" || ${s} == "boolean"`).assign(u,i._`"" + ${o}`).elseIf(i._`${o} === null`).assign(u,i._`""`);case"number":return void r.elseIf(i._`${s} == "boolean" || ${o} === null + || (${s} == "string" && ${o} && ${o} == +${o})`).assign(u,i._`+${o}`);case"integer":return void r.elseIf(i._`${s} === "boolean" || ${o} === null + || (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(u,i._`+${o}`);case"boolean":return void r.elseIf(i._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(u,!1).elseIf(i._`${o} === "true" || ${o} === 1`).assign(u,!0);case"null":return r.elseIf(i._`${o} === "" || ${o} === 0 || ${o} === false`),void r.assign(u,null);case"array":r.elseIf(i._`${s} === "string" || ${s} === "number" + || ${s} === "boolean" || ${o} === null`).assign(u,i._`[${o}]`)}}r.else(),m(e),r.endIf(),r.if(i._`${u} !== undefined`,(()=>{r.assign(o,u),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(i._`${t} !== undefined`,(()=>e.assign(i._`${t}[${n}]`,r)))}(e,u)}))}(e,t,s):m(e)}))}return l};const c=new Set(["string","number","integer","boolean","null"]);function d(e,t,n,r=u.Correct){const o=r===u.Correct?i.operators.EQ:i.operators.NEQ;let a;switch(e){case"null":return i._`${t} ${o} null`;case"array":a=i._`Array.isArray(${t})`;break;case"object":a=i._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=s(i._`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=s();break;default:return i._`typeof ${t} ${o} ${e}`}return r===u.Correct?a:i.not(a);function s(e=i.nil){return i.and(i._`typeof ${t} == "number"`,e,n?i._`isFinite(${t})`:i.nil)}}function f(e,t,n,r){if(1===e.length)return d(e[0],t,n,r);let o;const a=s.toHash(e);if(a.array&&a.object){const e=i._`typeof ${t} != "object"`;o=a.null?e:i._`!${t} || ${e}`,delete a.null,delete a.array,delete a.object}else o=i.nil;a.number&&delete a.integer;for(const s in a)o=i.and(o,d(s,t,n,r));return o}t.checkDataType=d,t.checkDataTypes=f;const p={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?i._`{type: ${e}}`:i._`{type: ${t}}`};function m(e){const t=function(e){const{gen:t,data:n,schema:r}=e,o=s.schemaRefOrVal(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:o,schemaValue:o,parentSchema:r,params:{},it:e}}(e);a.reportError(t,p)}t.reportTypeError=m},91481:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(15669),o=n(88936);function a(e,t,n){const{gen:a,compositeRule:i,data:s,opts:u}=e;if(void 0===n)return;const l=r._`${s}${r.getProperty(t)}`;if(i)return void o.checkStrictMode(e,`default is ignored for: ${l}`);let c=r._`${l} === undefined`;"empty"===u.useDefaults&&(c=r._`${c} || ${l} === null || ${l} === ""`),a.if(c,r._`${l} = ${r.stringify(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const o in n)a(e,o,n[o].default);else"array"===t&&Array.isArray(r)&&r.forEach(((t,n)=>a(e,n,t.default)))}},91686:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(12171),o=n(97332),a=n(89073),i=n(97332),s=n(91481),u=n(95782),l=n(38878),c=n(15669),d=n(17250),f=n(96696),p=n(88936),m=n(6930);function h({gen:e,validateName:t,schema:n,schemaEnv:r,opts:o},a){o.code.es5?e.func(t,c._`${d.default.data}, ${d.default.valCxt}`,r.$async,(()=>{e.code(c._`"use strict"; ${v(n,o)}`),function(e,t){e.if(d.default.valCxt,(()=>{e.var(d.default.instancePath,c._`${d.default.valCxt}.${d.default.instancePath}`),e.var(d.default.parentData,c._`${d.default.valCxt}.${d.default.parentData}`),e.var(d.default.parentDataProperty,c._`${d.default.valCxt}.${d.default.parentDataProperty}`),e.var(d.default.rootData,c._`${d.default.valCxt}.${d.default.rootData}`),t.dynamicRef&&e.var(d.default.dynamicAnchors,c._`${d.default.valCxt}.${d.default.dynamicAnchors}`)}),(()=>{e.var(d.default.instancePath,c._`""`),e.var(d.default.parentData,c._`undefined`),e.var(d.default.parentDataProperty,c._`undefined`),e.var(d.default.rootData,d.default.data),t.dynamicRef&&e.var(d.default.dynamicAnchors,c._`{}`)}))}(e,o),e.code(a)})):e.func(t,c._`${d.default.data}, ${function(e){return c._`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?c._`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`}(o)}`,r.$async,(()=>e.code(v(n,o)).code(a)))}function v(e,t){return"object"==typeof e&&e.$id&&(t.code.source||t.code.process)?c._`/*# sourceURL=${e.$id} */`:c.nil}function y(e,t){g(e)&&(b(e),_(e))?function(e,t){const{schema:n,gen:r,opts:o}=e;o.$comment&&n.$comment&&w(e);(function(e){e.schema.$id&&(e.baseId=f.resolveUrl(e.baseId,e.schema.$id))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=r.const("_errs",d.default.errors);M(e,a),r.var(t,c._`${a} === ${d.default.errors}`)}(e,t):r.boolOrEmptySchema(e,t)}function _({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function g(e){return"boolean"!=typeof e.schema}function b(e){p.checkUnknownRules(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:o}=e;t.$ref&&r.ignoreKeywordsWithRef&&p.schemaHasRulesButRef(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function M(e,t){if(e.opts.jtd)return k(e,[],!1,t);const n=o.getSchemaTypes(e.schema);k(e,n,!o.coerceAndCheckDataType(e,n),t)}function w({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:o}){const a=n.$comment;if(!0===o.$comment)e.code(c._`${d.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const n=c.str`${r}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(c._`${d.default.self}.opts.$comment(${a}, ${n}, ${o}.schema)`)}}function k(e,t,n,r){const{gen:o,schema:s,data:u,allErrors:l,opts:f,self:m}=e,{RULES:h}=m;function v(p){a.shouldUseGroup(s,p)&&(p.type?(o.if(i.checkDataType(p.type,u,f.strictNumbers)),x(e,p),1===t.length&&t[0]===p.type&&n&&(o.else(),i.reportTypeError(e)),o.endIf()):x(e,p),l||o.if(c._`${d.default.errors} === ${r||0}`))}!s.$ref||!f.ignoreKeywordsWithRef&&p.schemaHasRulesButRef(s,h)?(f.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{L(e.dataTypes,t)||E(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),e.dataTypes=e.dataTypes.filter((e=>L(t,e)))})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&E(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const n=e.self.RULES.all;for(const r in n){const o=n[r];if("object"==typeof o&&a.shouldUseRule(e.schema,o)){const{type:n}=o.definition;n.length&&!n.some((e=>S(t,e)))&&E(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes)}(e,t),o.block((()=>{for(const e of h.rules)v(e);v(h.post)}))):o.block((()=>C(e,"$ref",h.all.$ref.definition)))}function x(e,t){const{gen:n,schema:r,opts:{useDefaults:o}}=e;o&&s.assignDefaults(e,t.type),n.block((()=>{for(const n of t.rules)a.shouldUseRule(r,n)&&C(e,n.keyword,n.definition,t.type)}))}function S(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function L(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function E(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,p.checkStrictMode(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){g(e)&&(b(e),_(e))?function(e){const{schema:t,opts:n,gen:r}=e;h(e,(()=>{n.$comment&&t.$comment&&w(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&p.checkStrictMode(e,"default is ignored in the schema root")}(e),r.let(d.default.vErrors,null),r.let(d.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",c._`${n}.evaluated`),t.if(c._`${e.evaluated}.dynamicProps`,(()=>t.assign(c._`${e.evaluated}.props`,c._`undefined`))),t.if(c._`${e.evaluated}.dynamicItems`,(()=>t.assign(c._`${e.evaluated}.items`,c._`undefined`)))}(e),M(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:o,opts:a}=e;n.$async?t.if(c._`${d.default.errors} === 0`,(()=>t.return(d.default.data)),(()=>t.throw(c._`new ${o}(${d.default.vErrors})`))):(t.assign(c._`${r}.errors`,d.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof c.Name&&e.assign(c._`${t}.props`,n);r instanceof c.Name&&e.assign(c._`${t}.items`,r)}(e),t.return(c._`${d.default.errors} === 0`))}(e)}))}(e):h(e,(()=>r.topBoolOrEmptySchema(e)))};class T{constructor(e,t,n){if(u.validateKeywordUsage(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=p.schemaRefOrVal(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",D(this.$data,e));else if(this.schemaCode=this.schemaValue,!u.validSchemaType(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,n){this.gen.if(c.not(e)),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.result(e,void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(c._`${t} !== undefined && (${c.or(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?m.reportExtraError:m.reportError)(this,this.def.error,t)}$dataError(){m.reportError(this,this.def.$dataError||m.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');m.resetErrorsCount(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=c.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=c.nil,t=c.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:o,def:a}=this;n.if(c.or(c._`${r} === undefined`,t)),e!==c.nil&&n.assign(e,!0),(o.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:o}=this;return c.or(function(){if(n.length){if(!(t instanceof c.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return c._`${i.checkDataTypes(e,t,o.opts.strictNumbers,i.DataType.Wrong)}`}return c.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return c._`!${n}(${t})`}return c.nil}())}subschema(e,t){const n=l.getSubschema(this.it,e);l.extendSubschemaData(n,this.it,e),l.extendSubschemaMode(n,e);const r={...this.it,...n,items:void 0,props:void 0};return y(r,t),r}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=p.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=p.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,(()=>this.mergeEvaluated(e,c.Name))),!0}}function C(e,t,n,r){const o=new T(e,n,t);"code"in n?n.code(o,r):o.$data&&n.validate?u.funcKeywordCode(o,n):"macro"in n?u.macroKeywordCode(o,n):(n.compile||n.validate)&&u.funcKeywordCode(o,n)}t.KeywordCxt=T;const O=/^\/(?:[^~]|~0|~1)*$/,P=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function D(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let o,a;if(""===e)return d.default.rootData;if("/"===e[0]){if(!O.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=d.default.rootData}else{const i=P.exec(e);if(!i)throw new Error(`Invalid JSON-pointer: ${e}`);const s=+i[1];if(o=i[2],"#"===o){if(s>=t)throw new Error(u("property/index",s));return r[t-s]}if(s>t)throw new Error(u("data",s));if(a=n[t-s],!o)return a}let i=a;const s=o.split("/");for(const l of s)l&&(a=c._`${a}${c.getProperty(p.unescapeJsonPointer(l))}`,i=c._`${i} && ${a}`);return i;function u(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=D},95782:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(15669),o=n(17250),a=n(3499),i=n(6930);function s(e){const{gen:t,data:n,it:o}=e;t.if(o.parentData,(()=>t.assign(n,r._`${o.parentData}[${o.parentDataProperty}]`)))}function u(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:r.stringify(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:o,schema:a,parentSchema:i,it:s}=e,l=t.macro.call(s.self,a,i,s),c=u(n,o,l);!1!==s.opts.validateSchema&&s.self.validateSchema(l,!0);const d=n.name("valid");e.subschema({schema:l,schemaPath:r.nil,errSchemaPath:`${s.errSchemaPath}/${o}`,topSchemaRef:c,compositeRule:!0},d),e.pass(d,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:l,keyword:c,schema:d,parentSchema:f,$data:p,it:m}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,t);const h=!p&&t.compile?t.compile.call(m.self,d,f,m):t.validate,v=u(l,c,h),y=l.let("valid");function _(n=(t.async?r._`await `:r.nil)){const i=m.opts.passContext?o.default.this:o.default.self,s=!("compile"in t&&!p||!1===t.schema);l.assign(y,r._`${n}${a.callValidateCode(e,v,i,s)}`,t.modifying)}function g(e){var n;l.if(r.not(null!==(n=t.valid)&&void 0!==n?n:y),e)}e.block$data(y,(function(){if(!1===t.errors)_(),t.modifying&&s(e),g((()=>e.error()));else{const n=t.async?function(){const e=l.let("ruleErrs",null);return l.try((()=>_(r._`await `)),(t=>l.assign(y,!1).if(r._`${t} instanceof ${m.ValidationError}`,(()=>l.assign(e,r._`${t}.errors`)),(()=>l.throw(t))))),e}():function(){const e=r._`${v}.errors`;return l.assign(e,null),_(r.nil),e}();t.modifying&&s(e),g((()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,(()=>{n.assign(o.default.vErrors,r._`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`).assign(o.default.errors,r._`${o.default.vErrors}.length`),i.extendErrors(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:y)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n},r,o){if(Array.isArray(r.keyword)?!r.keyword.includes(o):r.keyword!==o)throw new Error("ajv implementation error");const a=r.dependencies;if(null==a?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(r.validateSchema){if(!r.validateSchema(e[o])){const e="keyword value is invalid: "+n.errorsText(r.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}}},38878:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(15669),o=n(88936);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:a,schemaPath:i,errSchemaPath:s,topSchemaRef:u}){if(void 0!==t&&void 0!==a)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const a=e.schema[t];return void 0===n?{schema:a,schemaPath:r._`${e.schemaPath}${r.getProperty(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[n],schemaPath:r._`${e.schemaPath}${r.getProperty(t)}${r.getProperty(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${o.escapeFragment(n)}`}}if(void 0!==a){if(void 0===i||void 0===s||void 0===u)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:a,schemaPath:i,topSchemaRef:u,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:a,data:i,dataTypes:s,propertyName:u}){if(void 0!==i&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=t;if(void 0!==n){const{errorPath:i,dataPathArr:s,opts:u}=t;c(l.let("data",r._`${t.data}${r.getProperty(n)}`,!0)),e.errorPath=r.str`${i}${o.getErrorPath(n,a,u.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...s,e.parentDataProperty]}if(void 0!==i){c(i instanceof r.Name?i:l.let("data",i,!0)),void 0!==u&&(e.propertyName=u)}function c(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}s&&(e.dataTypes=s)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:o,allErrors:a}){void 0!==r&&(e.compositeRule=r),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}},38355:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var r=n(91686);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var o=n(15669);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return o.CodeGen}});const a=n(46448),i=n(91578),s=n(82881),u=n(87382),l=n(15669),c=n(96696),d=n(97332),f=n(88936),p=n(71143),m=["removeAdditional","useDefaults","coerceTypes"],h=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",schemaId:"JSON Schema draft-04 is not supported in Ajv v7/8.",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now, see option `strict`."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function _(e){var t,n,r,o,a,i,s,u,l,c,d,f,p,m,h,v,y,_,g;const b=e.strict,M=null===(t=e.code)||void 0===t?void 0:t.optimize,w=!0===M||void 0===M?1:M||0;return{strictSchema:null===(r=null!==(n=e.strictSchema)&&void 0!==n?n:b)||void 0===r||r,strictNumbers:null===(a=null!==(o=e.strictNumbers)&&void 0!==o?o:b)||void 0===a||a,strictTypes:null!==(s=null!==(i=e.strictTypes)&&void 0!==i?i:b)&&void 0!==s?s:"log",strictTuples:null!==(l=null!==(u=e.strictTuples)&&void 0!==u?u:b)&&void 0!==l?l:"log",strictRequired:null!==(d=null!==(c=e.strictRequired)&&void 0!==c?c:b)&&void 0!==d&&d,code:e.code?{...e.code,optimize:w}:{optimize:w},loopRequired:null!==(f=e.loopRequired)&&void 0!==f?f:200,loopEnum:null!==(p=e.loopEnum)&&void 0!==p?p:200,meta:null===(m=e.meta)||void 0===m||m,messages:null===(h=e.messages)||void 0===h||h,inlineRefs:null===(v=e.inlineRefs)||void 0===v||v,addUsedSchema:null===(y=e.addUsedSchema)||void 0===y||y,validateSchema:null===(_=e.validateSchema)||void 0===_||_,validateFormats:null===(g=e.validateFormats)||void 0===g||g}}class g{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,..._(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:h,es5:t,lines:n}),this.logger=function(e){if(!1===e)return L;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=s.getRules(),b.call(this,v,e,"NOT SUPPORTED"),b.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=S.call(this),e.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&x.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),w.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t}=this.opts;t&&e&&this.addMetaSchema(p,p.$id,!1)}defaultMeta(){const{meta:e}=this.opts;return this.opts.defaultMeta="object"==typeof e?e.$id||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await o.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||a.call(this,n)}async function o(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof i.default))throw t;return s.call(this,t),await u.call(this,t.missingSchema),a.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function u(e){const n=await l.call(this,e);this.refs[e]||await o.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function l(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let o;if("object"==typeof e&&(o=e.$id,void 0!==o&&"string"!=typeof o))throw new Error("schema $id must be string");return t=c.normalizeId(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=M.call(this,e));)e=t;if(void 0===t){const n=new u.SchemaEnv({schema:{}});if(t=u.resolveSchema.call(this,n,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=M.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e.$id;return n&&(n=c.normalizeId(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(T.call(this,n,t),!t)return f.eachItem(n,(e=>C.call(this,e))),this;P.call(this,t);const r={...t,type:d.getJSONTypes(t.type),schemaType:d.getJSONTypes(t.schemaType)};return f.eachItem(n,0===r.type.length?e=>C.call(this,e,r):e=>r.type.forEach((t=>C.call(this,e,r,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,a=o[e];r&&a&&(o[e]=Y(a))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;if("object"==typeof e)a=e.$id;else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let i=this._cache.get(e);if(void 0!==i)return i;const s=c.getSchemaRefs.call(this,e);return n=c.normalizeId(a||n),i=new u.SchemaEnv({schema:e,meta:t,baseId:n,localRefs:s}),this._cache.set(i.schema,i),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=i),r&&this.validateSchema(e,!0),i}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):u.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{u.compileSchema.call(this,e)}finally{this.opts=t}}}function b(e,t,n,r="error"){for(const o in e){const a=o;a in t&&this.logger[r](`${n}: option ${o}. ${e[a]}`)}}function M(e){return e=c.normalizeId(e),this.schemas[e]||this.refs[e]}function w(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function k(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function x(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function S(){const e={...this.opts};for(const t of m)delete e[t];return e}t.default=g,g.ValidationError=a.default,g.MissingRefError=i.default;const L={log(){},warn(){},error(){}};const E=/^[a-z_$][a-z0-9_$:-]*$/i;function T(e,t){const{RULES:n}=this;if(f.eachItem(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!E.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function C(e,t,n){var r;const o=null==t?void 0:t.post;if(n&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let i=o?a.post:a.rules.find((({type:e})=>e===n));if(i||(i={type:n,rules:[]},a.rules.push(i)),a.keywords[e]=!0,!t)return;const s={keyword:e,definition:{...t,type:d.getJSONTypes(t.type),schemaType:d.getJSONTypes(t.schemaType)}};t.before?O.call(this,i,s,t.before):i.rules.push(s),a.all[e]=s,null===(r=t.implements)||void 0===r||r.forEach((e=>this.addKeyword(e)))}function O(e,t,n){const r=e.rules.findIndex((e=>e.keyword===n));r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function P(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=Y(t)),e.validateSchema=this.compile(t,!0))}const D={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Y(e){return{anyOf:[e,D]}}},94285:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66471);r.code='require("ajv/dist/runtime/equal").default',t.default=r},49161:function(e,t){"use strict";function n(e){const t=e.length;let n,r=0,o=0;for(;o<t;)r++,n=e.charCodeAt(o++),n>=55296&&n<=56319&&o<t&&(n=e.charCodeAt(o),56320==(64512&n)&&o++);return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.code='require("ajv/dist/runtime/ucs2length").default'},46448:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},78891:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(15669),o=n(88936),a={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?i(e,r):o.checkStrictMode(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function i(e,t){const{gen:n,schema:a,data:i,keyword:s,it:u}=e;u.items=!0;const l=n.const("len",r._`${i}.length`);if(!1===a)e.setParams({len:t.length}),e.pass(r._`${l} <= ${t.length}`);else if("object"==typeof a&&!o.alwaysValidSchema(u,a)){const a=n.var("valid",r._`${l} <= ${t.length}`);n.if(r.not(a),(()=>function(a){n.forRange("i",t.length,l,(t=>{e.subschema({keyword:s,dataProp:t,dataPropType:o.Type.Num},a),u.allErrors||n.if(r.not(a),(()=>n.break()))}))}(a))),e.ok(a)}}t.validateAdditionalItems=i,t.default=a},24943:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3499),o=n(15669),a=n(17250),i=n(88936),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>o._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:s,data:u,errsCount:l,it:c}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:d,opts:f}=c;if(c.props=!0,"all"!==f.removeAdditional&&i.alwaysValidSchema(c,n))return;const p=r.allSchemaProperties(s.properties),m=r.allSchemaProperties(s.patternProperties);function h(e){t.code(o._`delete ${u}[${e}]`)}function v(r){if("all"===f.removeAdditional||f.removeAdditional&&!1===n)h(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(d||t.break());if("object"==typeof n&&!i.alwaysValidSchema(c,n)){const n=t.name("valid");"failing"===f.removeAdditional?(y(r,n,!1),t.if(o.not(n),(()=>{e.reset(),h(r)}))):(y(r,n),d||t.if(o.not(n),(()=>t.break())))}}}function y(t,n,r){const o={keyword:"additionalProperties",dataProp:t,dataPropType:i.Type.Str};!1===r&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,n)}t.forIn("key",u,(e=>{p.length||m.length?t.if(function(e){let n;if(p.length>8){const o=i.schemaRefOrVal(c,s.properties,"properties");n=r.isOwnProperty(t,o,e)}else n=p.length?o.or(...p.map((t=>o._`${e} === ${t}`))):o.nil;return m.length&&(n=o.or(n,...m.map((n=>o._`${r.usePattern(t,n)}.test(${e})`)))),o.not(n)}(e),(()=>v(e))):v(e)})),e.ok(o._`${l} === ${a.default.errors}`)}};t.default=s},22609:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88936),o={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const a=t.name("valid");n.forEach(((t,n)=>{if(r.alwaysValidSchema(o,t))return;const i=e.subschema({keyword:"allOf",schemaProp:n},a);e.ok(a),e.mergeEvaluated(i)}))}};t.default=o},54279:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(3499).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},95609:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15669),o=n(88936),a={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:a,data:i,it:s}=e;let u,l;const{minContains:c,maxContains:d}=a;s.opts.next?(u=void 0===c?1:c,l=d):u=1;const f=t.const("len",r._`${i}.length`);if(e.setParams({min:u,max:l}),void 0===l&&0===u)return void o.checkStrictMode(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==l&&u>l)return o.checkStrictMode(s,'"minContains" > "maxContains" is always invalid'),void e.fail();if(o.alwaysValidSchema(s,n)){let t=r._`${f} >= ${u}`;return void 0!==l&&(t=r._`${t} && ${f} <= ${l}`),void e.pass(t)}s.items=!0;const p=t.name("valid");if(void 0===l&&1===u)m(p,(()=>t.if(p,(()=>t.break()))));else{t.let(p,!1);const e=t.name("_valid"),n=t.let("count",0);m(e,(()=>t.if(e,(()=>function(e){t.code(r._`${e}++`),void 0===l?t.if(r._`${e} >= ${u}`,(()=>t.assign(p,!0).break())):(t.if(r._`${e} > ${l}`,(()=>t.assign(p,!1).break())),1===u?t.assign(p,!0):t.if(r._`${e} >= ${u}`,(()=>t.assign(p,!0))))}(n)))))}function m(n,r){t.forRange("i",0,f,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:o.Type.Num,compositeRule:!0},n),r()}))}e.result(p,(()=>e.reset()))}};t.default=a},5463:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(15669),o=n(88936),a=n(3499);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const o=1===t?"property":"properties";return r.str`must have ${o} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:o}})=>r._`{property: ${e}, + missingProperty: ${o}, + depsCount: ${t}, + deps: ${n}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e){if("__proto__"===r)continue;(Array.isArray(e[r])?t:n)[r]=e[r]}return[t,n]}(e);s(e,t),u(e,n)}};function s(e,t=e.schema){const{gen:n,data:o,it:i}=e;if(0===Object.keys(t).length)return;const s=n.let("missing");for(const u in t){const l=t[u];if(0===l.length)continue;const c=a.propertyInData(n,o,u,i.opts.ownProperties);e.setParams({property:u,depsCount:l.length,deps:l.join(", ")}),i.allErrors?n.if(c,(()=>{for(const t of l)a.checkReportMissingProp(e,t)})):(n.if(r._`${c} && (${a.checkMissingProp(e,l,s)})`),a.reportMissingProp(e,s),n.else())}}function u(e,t=e.schema){const{gen:n,data:r,keyword:i,it:s}=e,u=n.name("valid");for(const l in t)o.alwaysValidSchema(s,t[l])||(n.if(a.propertyInData(n,r,l,s.opts.ownProperties),(()=>{const t=e.subschema({keyword:i,schemaProp:l},u);e.mergeValidEvaluated(t,u)}),(()=>n.var(u,!0))),e.ok(u))}t.validatePropertyDeps=s,t.validateSchemaDeps=u,t.default=i},50076:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15669),o=n(88936),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:a}=e;void 0===n.then&&void 0===n.else&&o.checkStrictMode(a,'"if" without "then" and "else" is ignored');const s=i(a,"then"),u=i(a,"else");if(!s&&!u)return;const l=t.let("valid",!0),c=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(t)}(),e.reset(),s&&u){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(c,d("then",n),d("else",n))}else s?t.if(c,d("then")):t.if(r.not(c),d("else"));function d(n,o){return()=>{const a=e.subschema({keyword:n},c);t.assign(l,c),e.mergeValidEvaluated(a,l),o?t.assign(o,r._`${n}`):e.setParams({ifClause:n})}}e.pass(l,(()=>e.error(!0)))}};function i(e,t){const n=e.schema[t];return void 0!==n&&!o.alwaysValidSchema(e,n)}t.default=a},46951:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(78891),o=n(21162),a=n(98634),i=n(65151),s=n(95609),u=n(5463),l=n(53021),c=n(24943),d=n(34243),f=n(98103),p=n(72869),m=n(54279),h=n(14880),v=n(22609),y=n(50076),_=n(25316);t.default=function(e=!1){const t=[p.default,m.default,h.default,v.default,y.default,_.default,l.default,c.default,u.default,d.default,f.default];return e?t.push(o.default,i.default):t.push(r.default,a.default),t.push(s.default),t}},98634:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(15669),o=n(88936),a=n(3499),i={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return s(e,"additionalItems",t);n.items=!0,o.alwaysValidSchema(n,t)||e.ok(a.validateArray(e))}};function s(e,t,n=e.schema){const{gen:a,parentSchema:i,data:s,keyword:u,it:l}=e;!function(e){const{opts:r,errSchemaPath:a}=l,i=n.length,s=i===e.minItems&&(i===e.maxItems||!1===e[t]);if(r.strictTuples&&!s){const e=`"${u}" is ${i}-tuple, but minItems or maxItems/${t} are not specified or different at path "${a}"`;o.checkStrictMode(l,e,r.strictTuples)}}(i),l.opts.unevaluated&&n.length&&!0!==l.items&&(l.items=o.mergeEvaluated.items(a,n.length,l.items));const c=a.name("valid"),d=a.const("len",r._`${s}.length`);n.forEach(((t,n)=>{o.alwaysValidSchema(l,t)||(a.if(r._`${d} > ${n}`,(()=>e.subschema({keyword:u,schemaProp:n,dataProp:n},c))),e.ok(c))}))}t.validateTuple=s,t.default=i},65151:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15669),o=n(88936),a=n(3499),i=n(78891),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:s}=n;r.items=!0,o.alwaysValidSchema(r,t)||(s?i.validateAdditionalItems(e,s):e.ok(a.validateArray(e)))}};t.default=s},72869:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88936),o={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:o}=e;if(r.alwaysValidSchema(o,n))return void e.fail();const a=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),e.result(a,(()=>e.error()),(()=>e.reset()))},error:{message:"must NOT be valid"}};t.default=o},14880:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15669),o=n(88936),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:a,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(i.opts.discriminator&&a.discriminator)return;const s=n,u=t.let("valid",!1),l=t.let("passing",null),c=t.name("_valid");e.setParams({passing:l}),t.block((function(){s.forEach(((n,a)=>{let s;o.alwaysValidSchema(i,n)?t.var(c,!0):s=e.subschema({keyword:"oneOf",schemaProp:a,compositeRule:!0},c),a>0&&t.if(r._`${c} && ${u}`).assign(u,!1).assign(l,r._`[${l}, ${a}]`).else(),t.if(c,(()=>{t.assign(u,!0),t.assign(l,a),s&&e.mergeEvaluated(s,r.Name)}))}))})),e.result(u,(()=>e.reset()),(()=>e.error(!0)))}};t.default=a},98103:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3499),o=n(15669),a=n(88936),i=n(88936),s={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:s,parentSchema:u,it:l}=e,{opts:c}=l,d=r.schemaProperties(l,n);if(0===d.length)return;const f=c.strictSchema&&!c.allowMatchingProperties&&u.properties,p=t.name("valid");!0===l.props||l.props instanceof o.Name||(l.props=i.evaluatedPropsToName(t,l.props));const{props:m}=l;function h(e){for(const t in f)new RegExp(e).test(t)&&a.checkStrictMode(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function v(n){t.forIn("key",s,(a=>{t.if(o._`${r.usePattern(t,n)}.test(${a})`,(()=>{e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:a,dataPropType:i.Type.Str},p),l.opts.unevaluated&&!0!==m?t.assign(o._`${m}[${a}]`,!0):l.allErrors||t.if(o.not(p),(()=>t.break()))}))}))}!function(){for(const e of d)f&&h(e),l.allErrors?v(e):(t.var(p,!0),v(e),t.if(p))}()}};t.default=s},21162:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(98634),o={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>r.validateTuple(e,"items")};t.default=o},34243:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(91686),o=n(3499),a=n(88936),i=n(24943),s={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:s,data:u,it:l}=e;"all"===l.opts.removeAdditional&&void 0===s.additionalProperties&&i.default.code(new r.KeywordCxt(l,i.default,"additionalProperties"));const c=o.allSchemaProperties(n);for(const r of c)l.definedProperties.add(r);l.opts.unevaluated&&c.length&&!0!==l.props&&(l.props=a.mergeEvaluated.props(t,a.toHash(c),l.props));const d=c.filter((e=>!a.alwaysValidSchema(l,n[e])));if(0===d.length)return;const f=t.name("valid");for(const r of d)p(r)?m(r):(t.if(o.propertyInData(t,u,r,l.opts.ownProperties)),m(r),l.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(f);function p(e){return l.opts.useDefaults&&!l.compositeRule&&void 0!==n[e].default}function m(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t.default=s},53021:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15669),o=n(88936),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:a,it:i}=e;if(o.alwaysValidSchema(i,n))return;const s=t.name("valid");t.forIn("key",a,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},s),t.if(r.not(s),(()=>{e.error(!0),i.allErrors||t.break()}))})),e.ok(s)}};t.default=a},25316:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88936),o={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&r.checkStrictMode(n,`"${e}" without "if" is ignored`)}};t.default=o},3499:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(15669),o=n(88936),a=n(17250);function i(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function s(e,t,n){return r._`${i(e)}.call(${t}, ${n})`}function u(e,t,n,o){const a=r._`${t}${r.getProperty(n)} === undefined`;return o?r.or(a,r.not(s(e,t,n))):a}function l(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:o,it:a}=e;n.if(u(n,o,t,a.opts.ownProperties),(()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},o,a){return r.or(...o.map((o=>r.and(u(e,t,o,n.ownProperties),r._`${a} = ${o}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=i,t.isOwnProperty=s,t.propertyInData=function(e,t,n,o){const a=r._`${t}${r.getProperty(n)} !== undefined`;return o?r._`${a} && ${s(e,t,n)}`:a},t.noPropertyInData=u,t.allSchemaProperties=l,t.schemaProperties=function(e,t){return l(t).filter((n=>!o.alwaysValidSchema(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:o,schemaPath:i,errorPath:s},it:u},l,c,d){const f=d?r._`${e}, ${t}, ${o}${i}`:t,p=[[a.default.instancePath,r.strConcat(a.default.instancePath,s)],[a.default.parentData,u.parentData],[a.default.parentDataProperty,u.parentDataProperty],[a.default.rootData,a.default.rootData]];u.opts.dynamicRef&&p.push([a.default.dynamicAnchors,a.default.dynamicAnchors]);const m=r._`${f}, ${n.object(...p)}`;return c!==r.nil?r._`${l}.call(${c}, ${m})`:r._`${l}(${m})`},t.usePattern=function(e,t){return e.scopeValue("pattern",{key:t,ref:new RegExp(t,"u"),code:r._`new RegExp(${t}, "u")`})},t.validateArray=function(e){const{gen:t,data:n,keyword:a,it:i}=e,s=t.name("valid");if(i.allErrors){const e=t.let("valid",!0);return u((()=>t.assign(e,!1))),e}return t.var(s,!0),u((()=>t.break())),s;function u(i){const u=t.const("len",r._`${n}.length`);t.forRange("i",0,u,(n=>{e.subschema({keyword:a,dataProp:n,dataPropType:o.Type.Num},s),t.if(r.not(s),i)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:a,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>o.alwaysValidSchema(i,e)))&&!i.opts.unevaluated)return;const s=t.let("valid",!1),u=t.name("_valid");t.block((()=>n.forEach(((n,o)=>{const i=e.subschema({keyword:a,schemaProp:o,compositeRule:!0},u);t.assign(s,r._`${s} || ${u}`);e.mergeValidEvaluated(i,u)||t.if(r.not(s))})))),e.result(s,(()=>e.reset()),(()=>e.error(!0)))}},71018:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},32101:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(71018),o=n(41939),a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,o.default];t.default=a},41939:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(91578),o=n(3499),a=n(15669),i=n(17250),s=n(87382),u=n(88936),l={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:o}=e,{baseId:i,schemaEnv:u,validateName:l,opts:f,self:p}=o,{root:m}=u;if(("#"===n||"#/"===n)&&i===m.baseId)return function(){if(u===m)return d(e,l,u,u.$async);const n=t.scopeValue("root",{ref:m});return d(e,a._`${n}.validate`,m,m.$async)}();const h=s.resolveRef.call(p,m,i,n);if(void 0===h)throw new r.default(i,n);return h instanceof s.SchemaEnv?function(t){const n=c(e,t);d(e,n,t,t.$async)}(h):function(r){const o=t.scopeValue("schema",!0===f.code.source?{ref:r,code:a.stringify(r)}:{ref:r}),i=t.name("valid"),s=e.subschema({schema:r,dataTypes:[],schemaPath:a.nil,topSchemaRef:o,errSchemaPath:n},i);e.mergeEvaluated(s),e.ok(i)}(h)}};function c(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):a._`${n.scopeValue("wrapper",{ref:t})}.validate`}function d(e,t,n,r){const{gen:s,it:l}=e,{allErrors:c,schemaEnv:d,opts:f}=l,p=f.passContext?i.default.this:a.nil;function m(e){const t=a._`${e}.errors`;s.assign(i.default.vErrors,a._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`),s.assign(i.default.errors,a._`${i.default.vErrors}.length`)}function h(e){var t;if(!l.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==l.props)if(r&&!r.dynamicProps)void 0!==r.props&&(l.props=u.mergeEvaluated.props(s,r.props,l.props));else{const t=s.var("props",a._`${e}.evaluated.props`);l.props=u.mergeEvaluated.props(s,t,l.props,a.Name)}if(!0!==l.items)if(r&&!r.dynamicItems)void 0!==r.items&&(l.items=u.mergeEvaluated.items(s,r.items,l.items));else{const t=s.var("items",a._`${e}.evaluated.items`);l.items=u.mergeEvaluated.items(s,t,l.items,a.Name)}}r?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const n=s.let("valid");s.try((()=>{s.code(a._`await ${o.callValidateCode(e,t,p)}`),h(t),c||s.assign(n,!0)}),(e=>{s.if(a._`!(${e} instanceof ${l.ValidationError})`,(()=>s.throw(e))),m(e),c||s.assign(n,!1)})),e.ok(n)}():e.result(o.callValidateCode(e,t,p),(()=>h(t)),(()=>m(t)))}t.getValidate=c,t.callRef=d,t.default=l},30002:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15669),o=n(77421),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===o.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:a,parentSchema:i,it:s}=e,{oneOf:u}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const l=a.propertyName;if("string"!=typeof l)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),d=t.const("tag",r._`${n}${r.getProperty(l)}`);function f(n){const o=t.name("valid"),a=e.subschema({keyword:"oneOf",schemaProp:n},o);return e.mergeEvaluated(a,r.Name),o}t.if(r._`typeof ${d} == "string"`,(()=>function(){const n=function(){var e;const t={},n=o(i);let r=!0;for(let i=0;i<u.length;i++){const t=u[i],s=null===(e=t.properties)||void 0===e?void 0:e[l];if("object"!=typeof s)throw new Error(`discriminator: oneOf schemas must have "properties/${l}"`);r=r&&(n||o(t)),a(s,i)}if(!r)throw new Error(`discriminator: "${l}" must be required`);return t;function o({required:e}){return Array.isArray(e)&&e.includes(l)}function a(e,t){if(e.const)s(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`);for(const n of e.enum)s(n,t)}}function s(e,n){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${l}" values must be unique strings`);t[e]=n}}();t.if(!1);for(const e in n)t.elseIf(r._`${d} === ${e}`),t.assign(c,f(n[e]));t.else(),e.error(!1,{discrError:o.DiscrError.Mapping,tag:d,tagName:l}),t.endIf()}()),(()=>e.error(!1,{discrError:o.DiscrError.Tag,tag:d,tagName:l}))),e.ok(c)}};t.default=a},77421:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(t.DiscrError||(t.DiscrError={}))},35671:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(32101),o=n(37499),a=n(46951),i=n(4480),s=n(32480),u=[r.default,o.default,a.default(),i.default,s.metadataVocabulary,s.contentVocabulary];t.default=u},73599:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15669),o={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:o,$data:a,schema:i,schemaCode:s,it:u}=e,{opts:l,errSchemaPath:c,schemaEnv:d,self:f}=u;l.validateFormats&&(a?function(){const a=n.scopeValue("formats",{ref:f.formats,code:l.code.formats}),i=n.const("fDef",r._`${a}[${s}]`),u=n.let("fType"),c=n.let("format");n.if(r._`typeof ${i} == "object" && !(${i} instanceof RegExp)`,(()=>n.assign(u,r._`${i}.type || "string"`).assign(c,r._`${i}.validate`)),(()=>n.assign(u,r._`"string"`).assign(c,i))),e.fail$data(r.or(!1===l.strictSchema?r.nil:r._`${s} && !${c}`,function(){const e=d.$async?r._`(${i}.async ? await ${c}(${o}) : ${c}(${o}))`:r._`${c}(${o})`,n=r._`(typeof ${c} == "function" ? ${e} : ${c}.test(${o}))`;return r._`${c} && ${c} !== true && ${u} === ${t} && !${n}`}()))}():function(){const a=f.formats[i];if(!a)return void function(){if(!1===l.strictSchema)return void f.logger.warn(e());throw new Error(e());function e(){return`unknown format "${i}" ignored in schema at path "${c}"`}}();if(!0===a)return;const[s,u,p]=function(e){const t=e instanceof RegExp?r.regexpCode(e):l.code.formats?r._`${l.code.formats}${r.getProperty(i)}`:void 0,o=n.scopeValue("formats",{key:i,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,r._`${o}.validate`];return["string",e,o]}(a);s===t&&e.pass(function(){if("object"==typeof a&&!(a instanceof RegExp)&&a.async){if(!d.$async)throw new Error("async format in sync schema");return r._`await ${p}(${o})`}return"function"==typeof u?r._`${p}(${o})`:r._`${p}.test(${o})`}())}())}};t.default=o},4480:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(73599).default];t.default=r},32480:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},36577:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15669),o=n(88936),a=n(94285),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i}=e;e.fail$data(r._`!${o.useFunc(t,a.default)}(${n}, ${i})`)}};t.default=i},59450:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15669),o=n(88936),a=n(94285),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:i,schema:s,schemaCode:u,it:l}=e;if(!i&&0===s.length)throw new Error("enum must have non-empty array");const c=s.length>=l.opts.loopEnum,d=o.useFunc(t,a.default);let f;if(c||i)f=t.let("valid"),e.block$data(f,(function(){t.assign(f,!1),t.forOf("v",u,(e=>t.if(r._`${d}(${n}, ${e})`,(()=>t.assign(f,!0).break()))))}));else{if(!Array.isArray(s))throw new Error("ajv implementation error");const e=t.const("vSchema",u);f=r.or(...s.map(((t,o)=>function(e,t){const o=s[t];return o&&"object"==typeof o?r._`${d}(${n}, ${e}[${t}])`:r._`${n} === ${o}`}(e,o))))}e.pass(f)}};t.default=i},37499:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(31337),o=n(59706),a=n(99507),i=n(51216),s=n(70034),u=n(96962),l=n(61135),c=n(10194),d=n(36577),f=n(59450),p=[r.default,o.default,a.default,i.default,s.default,u.default,l.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default];t.default=p},61135:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15669),o={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:o}=e,a="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${a} ${o}`)}};t.default=o},99507:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15669),o=n(88936),a=n(49161),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i,it:s}=e,u="maxLength"===t?r.operators.GT:r.operators.LT,l=!1===s.opts.unicode?r._`${n}.length`:r._`${o.useFunc(e.gen,a.default)}(${n})`;e.fail$data(r._`${l} ${u} ${i}`)}};t.default=i},31337:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15669),o=r.operators,a={maximum:{okStr:"<=",ok:o.LTE,fail:o.GT},minimum:{okStr:">=",ok:o.GTE,fail:o.LT},exclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},exclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},i={message:({keyword:e,schemaCode:t})=>r.str`must be ${a[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${a[e].okStr}, limit: ${t}}`},s={keyword:Object.keys(a),type:"number",schemaType:"number",$data:!0,error:i,code(e){const{keyword:t,data:n,schemaCode:o}=e;e.fail$data(r._`${n} ${a[t].fail} ${o} || isNaN(${n})`)}};t.default=s},70034:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15669),o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:o}=e,a="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${a} ${o}`)}};t.default=o},59706:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(15669),o={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:o,it:a}=e,i=a.opts.multipleOfPrecision,s=t.let("res"),u=i?r._`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:r._`${s} !== parseInt(${s})`;e.fail$data(r._`(${o} === 0 || (${s} = ${n}/${o}, ${u}))`)}};t.default=o},51216:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3499),o=n(15669),a={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>o.str`must match pattern "${e}"`,params:({schemaCode:e})=>o._`{pattern: ${e}}`},code(e){const{gen:t,data:n,$data:a,schema:i,schemaCode:s}=e,u=a?o._`(new RegExp(${s}, "u"))`:r.usePattern(t,i);e.fail$data(o._`!${u}.test(${n})`)}};t.default=a},96962:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3499),o=n(15669),a=n(88936),i={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>o.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>o._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:i,data:s,$data:u,it:l}=e,{opts:c}=l;if(!u&&0===n.length)return;const d=n.length>=c.loopRequired;if(l.allErrors?function(){if(d||u)e.block$data(o.nil,f);else for(const t of n)r.checkReportMissingProp(e,t)}():function(){const a=t.let("missing");if(d||u){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,a){e.setParams({missingProperty:n}),t.forOf(n,i,(()=>{t.assign(a,r.propertyInData(t,s,n,c.ownProperties)),t.if(o.not(a),(()=>{e.error(),t.break()}))}),o.nil)}(a,n))),e.ok(n)}else t.if(r.checkMissingProp(e,n,a)),r.reportMissingProp(e,a),t.else()}(),c.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${l.schemaEnv.baseId+l.errSchemaPath}" (strictRequired)`;a.checkStrictMode(l,t,l.opts.strictRequired)}}function f(){t.forOf("prop",i,(n=>{e.setParams({missingProperty:n}),t.if(r.noPropertyInData(t,s,n,c.ownProperties),(()=>e.error()))}))}}};t.default=i},10194:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(97332),o=n(15669),a=n(88936),i=n(94285),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>o.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>o._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:s,schema:u,parentSchema:l,schemaCode:c,it:d}=e;if(!s&&!u)return;const f=t.let("valid"),p=l.items?r.getSchemaTypes(l.items):[];function m(a,i){const s=t.name("item"),u=r.checkDataTypes(p,s,d.opts.strictNumbers,r.DataType.Wrong),l=t.const("indices",o._`{}`);t.for(o._`;${a}--;`,(()=>{t.let(s,o._`${n}[${a}]`),t.if(u,o._`continue`),p.length>1&&t.if(o._`typeof ${s} == "string"`,o._`${s} += "_"`),t.if(o._`typeof ${l}[${s}] == "number"`,(()=>{t.assign(i,o._`${l}[${s}]`),e.error(),t.assign(f,!1).break()})).code(o._`${l}[${s}] = ${a}`)}))}function h(r,s){const u=a.useFunc(t,i.default),l=t.name("outer");t.label(l).for(o._`;${r}--;`,(()=>t.for(o._`${s} = ${r}; ${s}--;`,(()=>t.if(o._`${u}(${n}[${r}], ${n}[${s}])`,(()=>{e.error(),t.assign(f,!1).break(l)}))))))}e.block$data(f,(function(){const r=t.let("i",o._`${n}.length`),a=t.let("j");e.setParams({i:r,j:a}),t.assign(f,!0),t.if(o._`${r} > 1`,(()=>(p.length>0&&!p.some((e=>"object"===e||"array"===e))?m:h)(r,a)))}),o._`${c} === false`),e.ok(f)}};t.default=s},3809:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PresetColorTypes=t.PresetStatusColorTypes=void 0;var r=n(93950),o=(0,r.tuple)("success","processing","error","default","warning");t.PresetStatusColorTypes=o;var a=(0,r.tuple)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");t.PresetColorTypes=a},74574:function(e,t,n){"use strict";var r=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resetWarned",{enumerable:!0,get:function(){return o.resetWarned}}),t.default=void 0;var o=r(n(55620));t.default=function(e,t,n){(0,o.default)(e,"[antd: ".concat(t,"] ").concat(n))}},27750:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=i.useReducer((function(e){return e+1}),0);return(0,a.default)(e,2)[1]};var a=o(n(40131)),i=r(n(27378))},47380:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var o=r(n(96945)),a=0,i={};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=a++,r=t;function s(){(r-=1)<=0?(e(),delete i[n]):i[n]=(0,o.default)(s)}return i[n]=(0,o.default)(s),n}s.cancel=function(e){void 0!==e&&(o.default.cancel(i[e]),delete i[e])},s.ids=i},23182:function(e,t,n){"use strict";var r=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.replaceElement=i,t.cloneElement=function(e,t){return i(e,e,t)},t.isValidElement=void 0;var o=r(n(27378)),a=o.isValidElement;function i(e,t,n){return a(e)?o.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}t.isValidElement=a},47459:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.responsiveMap=t.responsiveArray=void 0;var o=r(n(93231)),a=r(n(73119));t.responsiveArray=["xxl","xl","lg","md","sm","xs"];var i={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"};t.responsiveMap=i;var s=new Map,u=-1,l={},c={matchHandlers:{},dispatch:function(e){return l=e,s.forEach((function(e){return e(l)})),s.size>=1},subscribe:function(e){return s.size||this.register(),u+=1,s.set(u,e),e(l),u},unsubscribe:function(e){s.delete(e),s.size||this.unregister()},unregister:function(){var e=this;Object.keys(i).forEach((function(t){var n=i[t],r=e.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),s.clear()},register:function(){var e=this;Object.keys(i).forEach((function(t){var n=i[t],r=function(n){var r=n.matches;e.dispatch((0,a.default)((0,a.default)({},l),(0,o.default)({},t,r)))},s=window.matchMedia(n);s.addListener(r),e.matchHandlers[n]={mql:s,listener:r},r(s)}))}};t.default=c},93950:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tupleNum=t.tuple=void 0;t.tuple=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t};t.tupleNum=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}},2401:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(78983));t.default=function e(t){return(0,o.default)(this,e),new Error("unreachable case: ".concat(JSON.stringify(t)))}},15587:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=o(n(78983)),s=o(n(42081)),u=o(n(77266)),l=o(n(58724)),c=o(n(40670)),d=r(n(27378)),f=n(16329),p=o(n(47380)),m=n(64222),h=n(23182);function v(e){return!e||null===e.offsetParent||e.hidden}function y(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}var _=function(e){(0,l.default)(n,e);var t=(0,c.default)(n);function n(){var e;return(0,i.default)(this,n),(e=t.apply(this,arguments)).containerRef=d.createRef(),e.animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){if(!(!t||v(t)||t.className.indexOf("-leave")>=0)){var r=e.props.insertExtraNode;e.extraNode=document.createElement("div");var o=(0,u.default)(e).extraNode,i=e.context.getPrefixCls;o.className="".concat(i(""),"-click-animating-node");var s=e.getAttributeName();t.setAttribute(s,"true"),a=a||document.createElement("style"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&y(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n&&(e.csp&&e.csp.nonce&&(a.nonce=e.csp.nonce),o.style.borderColor=n,a.innerHTML="\n [".concat(i(""),"-click-animating-without-extra-node='true']::after, .").concat(i(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),document.body.contains(a)||document.body.appendChild(a)),r&&t.appendChild(o),["transition","animation"].forEach((function(n){t.addEventListener("".concat(n,"start"),e.onTransitionStart),t.addEventListener("".concat(n,"end"),e.onTransitionEnd)}))}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!v(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),p.default.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=(0,p.default)((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!d.isValidElement(r))return r;var o=e.containerRef;return(0,f.supportRef)(r)&&(o=(0,f.composeRef)(r.ref,e.containerRef)),(0,h.cloneElement)(r,{ref:o})},e}return(0,s.default)(n,[{key:"componentDidMount",value:function(){var e=this.containerRef.current;e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var t=this;if(e&&e!==this.extraNode&&e instanceof Element){var n=this.props.insertExtraNode,r=this.getAttributeName();e.setAttribute(r,"false"),a&&(a.innerHTML=""),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach((function(n){e.removeEventListener("".concat(n,"start"),t.onTransitionStart),e.removeEventListener("".concat(n,"end"),t.onTransitionEnd)}))}}},{key:"render",value:function(){return d.createElement(m.ConfigConsumer,null,this.renderWave)}}]),n}(d.Component);t.default=_,_.contextType=m.ConfigContext},39058:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(27378)),a=r(n(89214)),i=r(n(15914)),s=function(){return{width:0,opacity:0,transform:"scale(0)"}},u=function(e){return{width:e.scrollWidth,opacity:1,transform:"scale(1)"}},l=function(e){var t=e.prefixCls,n=!!e.loading;return e.existIcon?o.default.createElement("span",{className:"".concat(t,"-loading-icon")},o.default.createElement(i.default,null)):o.default.createElement(a.default,{visible:n,motionName:"".concat(t,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:s,onAppearActive:u,onEnterStart:s,onEnterActive:u,onLeaveStart:u,onLeaveActive:s},(function(e,n){var r=e.className,a=e.style;return o.default.createElement("span",{className:"".concat(t,"-loading-icon"),style:a,ref:n},o.default.createElement(i.default,{className:r}))}))};t.default=l},13011:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(73119)),i=o(n(93231)),s=r(n(27378)),u=o(n(60042)),l=n(64222),c=o(n(2401)),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},f=function(e){return s.createElement(l.ConfigConsumer,null,(function(t){var n,r=t.getPrefixCls,o=t.direction,l=e.prefixCls,f=e.size,p=e.className,m=d(e,["prefixCls","size","className"]),h=r("btn-group",l),v="";switch(f){case"large":v="lg";break;case"small":v="sm";break;case"middle":case void 0:break;default:console.warn(new c.default(f))}var y=(0,u.default)(h,(n={},(0,i.default)(n,"".concat(h,"-").concat(v),v),(0,i.default)(n,"".concat(h,"-rtl"),"rtl"===o),n),p);return s.createElement("div",(0,a.default)({},m,{className:y}))}))};t.default=f},36679:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.convertLegacyProps=function(e){if("danger"===e)return{danger:!0};return{type:e}},t.default=void 0;var a=o(n(73119)),i=o(n(93231)),s=o(n(40131)),u=o(n(7501)),l=r(n(27378)),c=o(n(60042)),d=o(n(49811)),f=o(n(13011)),p=n(64222),m=o(n(15587)),h=n(93950),v=o(n(74574)),y=o(n(86258)),_=o(n(39058)),g=n(23182),b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},M=/^[\u4e00-\u9fa5]{2}$/,w=M.test.bind(M);function k(e){return"text"===e||"link"===e}function x(e,t){var n=!1,r=[];return l.Children.forEach(e,(function(e){var t=(0,u.default)(e),o="string"===t||"number"===t;if(n&&o){var a=r.length-1,i=r[a];r[a]="".concat(i).concat(e)}else r.push(e);n=o})),l.Children.map(r,(function(e){return function(e,t){if(null!=e){var n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&w(e.props.children)?(0,g.cloneElement)(e,{children:e.props.children.split("").join(n)}):"string"==typeof e?(w(e)&&(e=e.split("").join(n)),l.createElement("span",null,e)):e}}(e,t)}))}(0,h.tuple)("default","primary","ghost","dashed","link","text"),(0,h.tuple)("circle","round"),(0,h.tuple)("submit","button","reset");var S=function(e,t){var n,r,o=e.loading,f=void 0!==o&&o,h=e.prefixCls,g=e.type,M=e.danger,S=e.shape,L=e.size,E=e.className,T=e.children,C=e.icon,O=e.ghost,P=void 0!==O&&O,D=e.block,Y=void 0!==D&&D,j=e.htmlType,Z=void 0===j?"button":j,N=b(e,["loading","prefixCls","type","danger","shape","size","className","children","icon","ghost","block","htmlType"]),R=l.useContext(y.default),A=l.useState(!!f),I=(0,s.default)(A,2),F=I[0],H=I[1],$=l.useState(!1),z=(0,s.default)($,2),V=z[0],W=z[1],B=l.useContext(p.ConfigContext),U=B.getPrefixCls,K=B.autoInsertSpaceInButton,q=B.direction,G=t||l.createRef(),J=l.useRef(),X=function(){return 1===l.Children.count(T)&&!C&&!k(g)};r="object"===(0,u.default)(f)&&f.delay?f.delay||!0:!!f,l.useEffect((function(){clearTimeout(J.current),"number"==typeof r?J.current=window.setTimeout((function(){H(r)}),r):H(r)}),[r]),l.useEffect((function(){if(G&&G.current&&!1!==K){var e=G.current.textContent;X()&&w(e)?V||W(!0):V&&W(!1)}}),[G]);var Q=function(t){var n=e.onClick;F||n&&n(t)};(0,v.default)(!("string"==typeof C&&C.length>2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(C,"` at https://ant.design/components/icon")),(0,v.default)(!(P&&k(g)),"Button","`link` or `text` button can't be a `ghost` button.");var ee=U("btn",h),te=!1!==K,ne="";switch(L||R){case"large":ne="lg";break;case"small":ne="sm"}var re=F?"loading":C,oe=(0,c.default)(ee,(n={},(0,i.default)(n,"".concat(ee,"-").concat(g),g),(0,i.default)(n,"".concat(ee,"-").concat(S),S),(0,i.default)(n,"".concat(ee,"-").concat(ne),ne),(0,i.default)(n,"".concat(ee,"-icon-only"),!T&&0!==T&&re),(0,i.default)(n,"".concat(ee,"-background-ghost"),P&&!k(g)),(0,i.default)(n,"".concat(ee,"-loading"),F),(0,i.default)(n,"".concat(ee,"-two-chinese-chars"),V&&te),(0,i.default)(n,"".concat(ee,"-block"),Y),(0,i.default)(n,"".concat(ee,"-dangerous"),!!M),(0,i.default)(n,"".concat(ee,"-rtl"),"rtl"===q),n),E),ae=C&&!F?C:l.createElement(_.default,{existIcon:!!C,prefixCls:ee,loading:!!F}),ie=T||0===T?x(T,X()&&te):null,se=(0,d.default)(N,["navigate"]);if(void 0!==se.href)return l.createElement("a",(0,a.default)({},se,{className:oe,onClick:Q,ref:G}),ae,ie);var ue=l.createElement("button",(0,a.default)({},N,{type:Z,className:oe,onClick:Q,ref:G}),ae,ie);return k(g)?ue:l.createElement(m.default,null,ue)},L=l.forwardRef(S);L.displayName="Button",L.Group=f.default,L.__ANT_BUTTON=!0;var E=L;t.default=E},76676:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(36679)).default;t.default=o},85270:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(22313)).default;t.default=o},85273:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(93231)),i=o(n(73119)),s=r(n(27378)),u=o(n(60042)),l=o(n(18092)),c=n(99388),d=n(64222),f=o(n(74574)),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},m=function(e,t){var n,r=e.prefixCls,o=e.className,m=e.children,h=e.indeterminate,v=void 0!==h&&h,y=e.style,_=e.onMouseEnter,g=e.onMouseLeave,b=e.skipGroup,M=void 0!==b&&b,w=p(e,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup"]),k=s.useContext(d.ConfigContext),x=k.getPrefixCls,S=k.direction,L=s.useContext(c.GroupContext),E=s.useRef(w.value);s.useEffect((function(){null==L||L.registerValue(w.value),(0,f.default)("checked"in w||!!L||!("value"in w),"Checkbox","`value` is not a valid prop, do you mean `checked`?")}),[]),s.useEffect((function(){if(!M)return w.value!==E.current&&(null==L||L.cancelValue(E.current),null==L||L.registerValue(w.value)),function(){return null==L?void 0:L.cancelValue(w.value)}}),[w.value]);var T=x("checkbox",r),C=(0,i.default)({},w);L&&!M&&(C.onChange=function(){w.onChange&&w.onChange.apply(w,arguments),L.toggleOption&&L.toggleOption({label:m,value:w.value})},C.name=L.name,C.checked=-1!==L.value.indexOf(w.value),C.disabled=w.disabled||L.disabled);var O=(0,u.default)((n={},(0,a.default)(n,"".concat(T,"-wrapper"),!0),(0,a.default)(n,"".concat(T,"-rtl"),"rtl"===S),(0,a.default)(n,"".concat(T,"-wrapper-checked"),C.checked),(0,a.default)(n,"".concat(T,"-wrapper-disabled"),C.disabled),n),o),P=(0,u.default)((0,a.default)({},"".concat(T,"-indeterminate"),v));return s.createElement("label",{className:O,style:y,onMouseEnter:_,onMouseLeave:g},s.createElement(l.default,(0,i.default)({},C,{prefixCls:T,className:P,ref:t})),void 0!==m&&s.createElement("span",null,m))},h=s.forwardRef(m);h.displayName="Checkbox";var v=h;t.default=v},99388:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GroupContext=void 0;var a=o(n(73119)),i=o(n(93231)),s=o(n(9833)),u=o(n(40131)),l=r(n(27378)),c=o(n(60042)),d=o(n(49811)),f=o(n(85273)),p=n(64222),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},h=l.createContext(null);t.GroupContext=h;var v=function(e){var t=e.defaultValue,n=e.children,r=e.options,o=void 0===r?[]:r,v=e.prefixCls,y=e.className,_=e.style,g=e.onChange,b=m(e,["defaultValue","children","options","prefixCls","className","style","onChange"]),M=l.useContext(p.ConfigContext),w=M.getPrefixCls,k=M.direction,x=l.useState(b.value||t||[]),S=(0,u.default)(x,2),L=S[0],E=S[1],T=l.useState([]),C=(0,u.default)(T,2),O=C[0],P=C[1];l.useEffect((function(){"value"in b&&E(b.value||[])}),[b.value]);var D=function(){return o.map((function(e){return"string"==typeof e?{label:e,value:e}:e}))},Y=w("checkbox",v),j="".concat(Y,"-group"),Z=(0,d.default)(b,["value","disabled"]);o&&o.length>0&&(n=D().map((function(e){return l.createElement(f.default,{prefixCls:Y,key:e.value.toString(),disabled:"disabled"in e?e.disabled:b.disabled,value:e.value,checked:-1!==L.indexOf(e.value),onChange:e.onChange,className:"".concat(j,"-item"),style:e.style},e.label)})));var N={toggleOption:function(e){var t=L.indexOf(e.value),n=(0,s.default)(L);if(-1===t?n.push(e.value):n.splice(t,1),"value"in b||E(n),g){var r=D();g(n.filter((function(e){return-1!==O.indexOf(e)})).sort((function(e,t){return r.findIndex((function(t){return t.value===e}))-r.findIndex((function(e){return e.value===t}))})))}},value:L,disabled:b.disabled,name:b.name,registerValue:function(e){P((function(t){return[].concat((0,s.default)(t),[e])}))},cancelValue:function(e){P((function(t){return t.filter((function(t){return t!==e}))}))}},R=(0,c.default)(j,(0,i.default)({},"".concat(j,"-rtl"),"rtl"===k),y);return l.createElement("div",(0,a.default)({className:R,style:_},Z),l.createElement(h.Provider,{value:N},n))},y=l.memo(v);t.default=y},98591:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(85273)),a=r(n(99388)),i=o.default;i.Group=a.default,i.__ANT_CHECKBOX=!0;var s=i;t.Z=s},86258:function(e,t,n){"use strict";var r=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SizeContextProvider=void 0;var o=r(n(27378)),a=o.createContext(void 0);t.SizeContextProvider=function(e){var t=e.children,n=e.size;return o.createElement(a.Consumer,null,(function(e){return o.createElement(a.Provider,{value:n||e},t)}))};var i=a;t.default=i},87869:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.withConfigConsumer=function(e){return function(t){var n=function(n){return i.createElement(l,null,(function(r){var o=e.prefixCls,s=(0,r.getPrefixCls)(o,n.prefixCls);return i.createElement(t,(0,a.default)({},r,n,{prefixCls:s}))}))},r=t.constructor,o=r&&r.displayName||t.name||"Component";return n.displayName="withConfigConsumer(".concat(o,")"),n}},t.ConfigConsumer=t.ConfigContext=void 0;var a=o(n(73119)),i=r(n(27378)),s=o(n(83353)),u=i.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")},renderEmpty:s.default});t.ConfigContext=u;var l=u.Consumer;t.ConfigConsumer=l},64222:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ConfigConsumer",{enumerable:!0,get:function(){return c.ConfigConsumer}}),Object.defineProperty(t,"ConfigContext",{enumerable:!0,get:function(){return c.ConfigContext}}),t.default=t.configConsumerProps=void 0;var a=o(n(73119)),i=r(n(27378)),s=n(20518),u=r(n(6128)),l=o(n(3521)),c=n(87869),d=n(86258),f=o(n(80114)),p=o(n(93353));t.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];var m=function(e){i.useEffect((function(){e.direction&&(f.default.config({rtl:"rtl"===e.direction}),p.default.config({rtl:"rtl"===e.direction}))}),[e.direction]);var t=function(t){return function(n,r){var o=e.prefixCls;if(r)return r;var a=o||t.getPrefixCls("");return n?"".concat(a,"-").concat(n):a}};return i.createElement(l.default,null,(function(n,r,o){return i.createElement(c.ConfigConsumer,null,(function(n){return function(n,r){var o=e.children,l=e.getTargetContainer,f=e.getPopupContainer,p=e.renderEmpty,m=e.csp,h=e.autoInsertSpaceInButton,v=e.form,y=e.input,_=e.locale,g=e.pageHeader,b=e.componentSize,M=e.direction,w=e.space,k=e.virtual,x=e.dropdownMatchSelectWidth,S=(0,a.default)((0,a.default)({},n),{getPrefixCls:t(n),csp:m,autoInsertSpaceInButton:h,locale:_||r,direction:M,space:w,virtual:k,dropdownMatchSelectWidth:x});l&&(S.getTargetContainer=l),f&&(S.getPopupContainer=f),p&&(S.renderEmpty=p),g&&(S.pageHeader=g),y&&(S.input=y),v&&(S.form=v);var L=o,E={};_&&_.Form&&_.Form.defaultValidateMessages&&(E=_.Form.defaultValidateMessages),v&&v.validateMessages&&(E=(0,a.default)((0,a.default)({},E),v.validateMessages)),Object.keys(E).length>0&&(L=i.createElement(s.FormProvider,{validateMessages:E},o));var T=void 0===_?L:i.createElement(u.default,{locale:_||r,_ANT_MARK__:u.ANT_MARK},L);return i.createElement(d.SizeContextProvider,{size:b},i.createElement(c.ConfigContext.Provider,{value:S},T))}(n,o)}))}))};m.ConfigContext=c.ConfigContext;var h=m;t.default=h},83353:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(27378)),i=r(n(34740)),s=n(64222),u=function(e){return a.createElement(s.ConfigConsumer,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return a.createElement(i.default,{image:i.default.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return a.createElement(i.default,{image:i.default.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return a.createElement(i.default,null)}}))};t.default=u},33079:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return i.createElement(s.default,(0,a.default)({size:"small",type:"primary"},e))};var a=o(n(73119)),i=r(n(27378)),s=o(n(76676))},84487:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return i.createElement(s.default,(0,a.default)({color:"blue"},e))};var a=o(n(73119)),i=r(n(27378)),s=o(n(89988))},18238:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=function(t){(0,l.default)(r,t);var n=(0,c.default)(r);function r(){var t;return(0,s.default)(this,r),(t=n.apply(this,arguments)).pickerRef=d.createRef(),t.focus=function(){t.pickerRef.current&&t.pickerRef.current.focus()},t.blur=function(){t.pickerRef.current&&t.pickerRef.current.blur()},t.getDefaultLocale=function(){var e=t.props.locale,n=(0,i.default)((0,i.default)({},_.default),e);return n.lang=(0,i.default)((0,i.default)({},n.lang),(e||{}).lang),n},t.renderPicker=function(n){var r=t.context,o=r.getPrefixCls,s=r.direction,u=r.getPopupContainer,l=t.props,c=l.prefixCls,_=l.getPopupContainer,g=l.className,M=l.size,S=l.bordered,L=void 0===S||S,E=l.placeholder,T=x(l,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),C=t.props,O=C.format,P=C.showTime,D=C.picker,Y=o("picker",c),j={};return j=(0,i.default)((0,i.default)((0,i.default)({},j),P?(0,k.getTimeProps)((0,i.default)({format:O,picker:D},P)):{}),"time"===D?(0,k.getTimeProps)((0,i.default)((0,i.default)({format:O},t.props),{picker:D})):{}),d.createElement(b.default.Consumer,null,(function(r){var o,l=M||r;return d.createElement(y.RangePicker,(0,i.default)({separator:d.createElement("span",{"aria-label":"to",className:"".concat(Y,"-separator")},d.createElement(v.default,null)),ref:t.pickerRef,placeholder:(0,w.getRangePlaceholder)(D,n,E),suffixIcon:"time"===D?d.createElement(m.default,null):d.createElement(p.default,null),clearIcon:d.createElement(h.default,null),allowClear:!0,transitionName:"slide-up"},T,j,{className:(0,f.default)((o={},(0,a.default)(o,"".concat(Y,"-").concat(l),l),(0,a.default)(o,"".concat(Y,"-borderless"),!L),o),g),locale:n.lang,prefixCls:Y,getPopupContainer:_||u,generateConfig:e,prevIcon:d.createElement("span",{className:"".concat(Y,"-prev-icon")}),nextIcon:d.createElement("span",{className:"".concat(Y,"-next-icon")}),superPrevIcon:d.createElement("span",{className:"".concat(Y,"-super-prev-icon")}),superNextIcon:d.createElement("span",{className:"".concat(Y,"-super-next-icon")}),components:k.Components,direction:s}))}))},t}return(0,u.default)(r,[{key:"render",value:function(){return d.createElement(M.default,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),r}(d.Component);return t.contextType=g.ConfigContext,t};var a=o(n(93231)),i=o(n(73119)),s=o(n(78983)),u=o(n(42081)),l=o(n(58724)),c=o(n(40670)),d=r(n(27378)),f=o(n(60042)),p=o(n(29240)),m=o(n(1880)),h=o(n(71172)),v=o(n(19632)),y=n(67412),_=o(n(22313)),g=n(64222),b=o(n(86258)),M=o(n(3521)),w=n(20619),k=n(19852),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}},40880:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n){var r=function(r){(0,l.default)(b,r);var o=(0,c.default)(b);function b(r){var u;return(0,s.default)(this,b),(u=o.call(this,r)).pickerRef=d.createRef(),u.focus=function(){u.pickerRef.current&&u.pickerRef.current.focus()},u.blur=function(){u.pickerRef.current&&u.pickerRef.current.blur()},u.getDefaultLocale=function(){var e=u.props.locale,t=(0,i.default)((0,i.default)({},y.default),e);return t.lang=(0,i.default)((0,i.default)({},t.lang),(e||{}).lang),t},u.renderPicker=function(n){var r=u.context,o=r.getPrefixCls,s=r.direction,l=r.getPopupContainer,c=u.props,y=c.prefixCls,g=c.getPopupContainer,b=c.className,M=c.size,S=c.bordered,L=void 0===S||S,E=c.placeholder,T=x(c,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),C=u.props,O=C.format,P=C.showTime,D=o("picker",y),Y={showToday:!0},j={};t&&(j.picker=t);var Z=t||u.props.picker;return j=(0,i.default)((0,i.default)((0,i.default)({},j),P?(0,k.getTimeProps)((0,i.default)({format:O,picker:Z},P)):{}),"time"===Z?(0,k.getTimeProps)((0,i.default)((0,i.default)({format:O},u.props),{picker:Z})):{}),d.createElement(w.default.Consumer,null,(function(t){var r,o=M||t;return d.createElement(v.default,(0,i.default)({ref:u.pickerRef,placeholder:(0,_.getPlaceholder)(Z,n,E),suffixIcon:"time"===Z?d.createElement(m.default,null):d.createElement(p.default,null),clearIcon:d.createElement(h.default,null),allowClear:!0,transitionName:"slide-up"},Y,T,j,{locale:n.lang,className:(0,f.default)((r={},(0,a.default)(r,"".concat(D,"-").concat(o),o),(0,a.default)(r,"".concat(D,"-borderless"),!L),r),b),prefixCls:D,getPopupContainer:g||l,generateConfig:e,prevIcon:d.createElement("span",{className:"".concat(D,"-prev-icon")}),nextIcon:d.createElement("span",{className:"".concat(D,"-next-icon")}),superPrevIcon:d.createElement("span",{className:"".concat(D,"-super-prev-icon")}),superNextIcon:d.createElement("span",{className:"".concat(D,"-super-next-icon")}),components:k.Components,direction:s}))}))},(0,g.default)("quarter"!==t,n,"DatePicker.".concat(n," is legacy usage. Please use DatePicker[picker='").concat(t,"'] directly.")),u}return(0,u.default)(b,[{key:"render",value:function(){return d.createElement(M.default,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),b}(d.Component);return r.contextType=b.ConfigContext,n&&(r.displayName=n),r}var n=t(),r=t("week","WeekPicker"),o=t("month","MonthPicker"),S=t("year","YearPicker"),L=t("time","TimePicker"),E=t("quarter","QuarterPicker");return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:S,TimePicker:L,QuarterPicker:E}};var a=o(n(93231)),i=o(n(73119)),s=o(n(78983)),u=o(n(42081)),l=o(n(58724)),c=o(n(40670)),d=r(n(27378)),f=o(n(60042)),p=o(n(29240)),m=o(n(1880)),h=o(n(71172)),v=o(n(67412)),y=o(n(22313)),_=n(20619),g=o(n(74574)),b=n(64222),M=o(n(3521)),w=o(n(86258)),k=n(19852),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}},19852:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.getTimeProps=function(e){var t=e.format,n=e.picker,r=e.showHour,a=e.showMinute,i=e.showSecond,s=e.use12Hours,u=function(e){if(!e)return[];return Array.isArray(e)?e:[e]}(t)[0],l=(0,o.default)({},e);u&&"string"==typeof u&&(u.includes("s")||void 0!==i||(l.showSecond=!1),u.includes("m")||void 0!==a||(l.showMinute=!1),u.includes("H")||u.includes("h")||void 0!==r||(l.showHour=!1),(u.includes("a")||u.includes("A"))&&void 0===s&&(l.use12Hours=!0));if("time"===n)return l;"function"==typeof u&&delete l.format;return{showTime:l}},t.default=t.Components=void 0;var o=r(n(73119)),a=r(n(33079)),i=r(n(84487)),s=r(n(40880)),u=r(n(18238)),l={button:a.default,rangeItem:i.default};t.Components=l;var c=function(e){var t=(0,s.default)(e),n=t.DatePicker,r=t.WeekPicker,o=t.MonthPicker,a=t.YearPicker,i=t.TimePicker,l=t.QuarterPicker,c=(0,u.default)(e),d=n;return d.WeekPicker=r,d.MonthPicker=o,d.YearPicker=a,d.RangePicker=c,d.TimePicker=i,d.QuarterPicker=l,d};t.default=c},82290:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(62980)),a=(0,r(n(19852)).default)(o.default);t.Z=a},22313:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(73119)),a=r(n(91412)),i=r(n(14339)),s={lang:(0,o.default)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},a.default),timePickerLocale:(0,o.default)({},i.default)};t.default=s},20619:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPlaceholder=function(e,t,n){if(void 0!==n)return n;if("year"===e&&t.lang.yearPlaceholder)return t.lang.yearPlaceholder;if("quarter"===e&&t.lang.quarterPlaceholder)return t.lang.quarterPlaceholder;if("month"===e&&t.lang.monthPlaceholder)return t.lang.monthPlaceholder;if("week"===e&&t.lang.weekPlaceholder)return t.lang.weekPlaceholder;if("time"===e&&t.timePickerLocale.placeholder)return t.timePickerLocale.placeholder;return t.lang.placeholder},t.getRangePlaceholder=function(e,t,n){if(void 0!==n)return n;if("year"===e&&t.lang.yearPlaceholder)return t.lang.rangeYearPlaceholder;if("month"===e&&t.lang.monthPlaceholder)return t.lang.rangeMonthPlaceholder;if("week"===e&&t.lang.weekPlaceholder)return t.lang.rangeWeekPlaceholder;if("time"===e&&t.timePickerLocale.placeholder)return t.timePickerLocale.rangePlaceholder;return t.lang.rangePlaceholder}},70029:function(e,t,n){"use strict";var r=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(27378)),a=n(64222),i=function(){var e=(0,o.useContext(a.ConfigContext).getPrefixCls)("empty-img-default");return o.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{className:"".concat(e,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),o.createElement("path",{className:"".concat(e,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),o.createElement("path",{className:"".concat(e,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),o.createElement("path",{className:"".concat(e,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),o.createElement("path",{className:"".concat(e,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),o.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};t.default=i},34740:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(73119)),i=o(n(93231)),s=r(n(27378)),u=o(n(60042)),l=n(64222),c=o(n(3521)),d=o(n(70029)),f=o(n(27055)),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},m=s.createElement(d.default,null),h=s.createElement(f.default,null),v=function(e){var t=e.className,n=e.prefixCls,r=e.image,o=void 0===r?m:r,d=e.description,f=e.children,v=e.imageStyle,y=p(e,["className","prefixCls","image","description","children","imageStyle"]),_=s.useContext(l.ConfigContext),g=_.getPrefixCls,b=_.direction;return s.createElement(c.default,{componentName:"Empty"},(function(e){var r,l=g("empty",n),c=void 0!==d?d:e.description,p="string"==typeof c?c:"empty",m=null;return m="string"==typeof o?s.createElement("img",{alt:p,src:o}):o,s.createElement("div",(0,a.default)({className:(0,u.default)(l,(r={},(0,i.default)(r,"".concat(l,"-normal"),o===h),(0,i.default)(r,"".concat(l,"-rtl"),"rtl"===b),r),t)},y),s.createElement("div",{className:"".concat(l,"-image"),style:v},m),c&&s.createElement("div",{className:"".concat(l,"-description")},c),f&&s.createElement("div",{className:"".concat(l,"-footer")},f))}))};v.PRESENTED_IMAGE_DEFAULT=m,v.PRESENTED_IMAGE_SIMPLE=h;var y=v;t.default=y},27055:function(e,t,n){"use strict";var r=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(27378)),a=n(64222),i=function(){var e=(0,o.useContext(a.ConfigContext).getPrefixCls)("empty-img-simple");return o.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(e,"-path")}))))};t.default=i},15525:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.errors,n=void 0===t?m:t,r=e.help,o=e.onDomErrorVisibleChange,h=(0,f.default)(),v=s.useContext(p.FormItemPrefixContext),y=v.prefixCls,_=v.status,g=(0,d.default)(n,(function(e){e&&Promise.resolve().then((function(){null==o||o(!0)})),h()}),!!r),b=(0,i.default)(g,2),M=b[0],w=b[1],k=(0,c.default)((function(){return w}),M,(function(e,t){return t})),x=s.useState(_),S=(0,i.default)(x,2),L=S[0],E=S[1];s.useEffect((function(){M&&_&&E(_)}),[M,_]);var T="".concat(y,"-item-explain");return s.createElement(l.default,{motionDeadline:500,visible:M,motionName:"show-help",onLeaveEnd:function(){null==o||o(!1)},motionAppear:!0,removeOnLeave:!0},(function(e){var t=e.className;return s.createElement("div",{className:(0,u.default)(T,(0,a.default)({},"".concat(T,"-").concat(L),L),t),key:"help"},k.map((function(e,t){return s.createElement("div",{key:t,role:"alert"},e)})))}))};var a=o(n(93231)),i=o(n(40131)),s=r(n(27378)),u=o(n(60042)),l=o(n(89214)),c=o(n(90742)),d=o(n(52424)),f=o(n(27750)),p=n(91744),m=[]},6004:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"List",{enumerable:!0,get:function(){return d.List}}),Object.defineProperty(t,"useForm",{enumerable:!0,get:function(){return m.default}}),t.default=void 0;var a=o(n(73119)),i=o(n(7501)),s=o(n(40131)),u=o(n(93231)),l=r(n(27378)),c=o(n(60042)),d=r(n(20518)),f=n(64222),p=n(91744),m=o(n(66880)),h=r(n(86258)),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},y=function(e,t){var n,r=l.useContext(h.default),o=l.useContext(f.ConfigContext),y=o.getPrefixCls,_=o.direction,g=o.form,b=e.prefixCls,M=e.className,w=void 0===M?"":M,k=e.size,x=void 0===k?r:k,S=e.form,L=e.colon,E=e.labelAlign,T=e.labelCol,C=e.wrapperCol,O=e.hideRequiredMark,P=e.layout,D=void 0===P?"horizontal":P,Y=e.scrollToFirstError,j=e.requiredMark,Z=e.onFinishFailed,N=e.name,R=v(e,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name"]),A=(0,l.useMemo)((function(){return void 0!==j?j:g&&void 0!==g.requiredMark?g.requiredMark:!O}),[O,j,g]),I=y("form",b),F=(0,c.default)(I,(n={},(0,u.default)(n,"".concat(I,"-").concat(D),!0),(0,u.default)(n,"".concat(I,"-hide-required-mark"),!1===A),(0,u.default)(n,"".concat(I,"-rtl"),"rtl"===_),(0,u.default)(n,"".concat(I,"-").concat(x),x),n),w),H=(0,m.default)(S),$=(0,s.default)(H,1)[0],z=$.__INTERNAL__;z.name=N;var V=(0,l.useMemo)((function(){return{name:N,labelAlign:E,labelCol:T,wrapperCol:C,vertical:"vertical"===D,colon:L,requiredMark:A,itemRef:z.itemRef}}),[N,E,T,C,D,L,A]);l.useImperativeHandle(t,(function(){return $}));return l.createElement(h.SizeContextProvider,{size:x},l.createElement(p.FormContext.Provider,{value:V},l.createElement(d.default,(0,a.default)({id:N},R,{name:N,onFinishFailed:function(e){Z&&Z(e);var t={block:"nearest"};Y&&e.errorFields.length&&("object"===(0,i.default)(Y)&&(t=Y),$.scrollToField(e.errorFields[0].name,t))},form:$,className:F}))))},_=l.forwardRef(y);t.default=_},55601:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(7501)),i=o(n(9833)),s=o(n(93231)),u=o(n(73119)),l=o(n(40131)),c=r(n(27378)),d=o(n(56141)),f=o(n(60042)),p=n(20518),m=o(n(57370)),h=n(16329),v=o(n(49811)),y=o(n(69522)),_=n(64222),g=n(93950),b=o(n(74574)),M=o(n(21726)),w=o(n(25816)),k=n(91744),x=n(80617),S=n(23182),L=o(n(35014)),E=o(n(74112)),T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},C=((0,g.tuple)("success","warning","error","validating",""),c.memo((function(e){return e.children}),(function(e,t){return e.value===t.value&&e.update===t.update})));var O=function(e){var t=e.name,n=e.fieldKey,r=e.noStyle,o=e.dependencies,g=e.prefixCls,O=e.style,P=e.className,D=e.shouldUpdate,Y=e.hasFeedback,j=e.help,Z=e.rules,N=e.validateStatus,R=e.children,A=e.required,I=e.label,F=e.messageVariables,H=e.trigger,$=void 0===H?"onChange":H,z=e.validateTrigger,V=e.hidden,W=T(e,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","messageVariables","trigger","validateTrigger","hidden"]),B=(0,c.useRef)(!1),U=(0,c.useContext)(_.ConfigContext).getPrefixCls,K=(0,c.useContext)(k.FormContext),q=K.name,G=K.requiredMark,J=(0,c.useContext)(k.FormItemContext).updateItemErrors,X=c.useState(!!j),Q=(0,l.default)(X,2),ee=Q[0],te=Q[1],ne=(0,L.default)({}),re=(0,l.default)(ne,2),oe=re[0],ae=re[1],ie=(0,c.useContext)(m.default).validateTrigger,se=void 0!==z?z:ie;function ue(e){B.current||te(e)}var le=function(e){return null===e&&(0,b.default)(!1,"Form.Item","`null` is passed as `name` property"),!(null==e)}(t),ce=(0,c.useRef)([]);c.useEffect((function(){return function(){B.current=!0,J(ce.current.join("__SPLIT__"),[])}}),[]);var de=U("form",g),fe=r?J:function(e,t){ae((function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,d.default)(n[e],t)?n:(0,u.default)((0,u.default)({},n),(0,s.default)({},e,t))}))},pe=(0,E.default)();function me(t,n,o,a){var l,d;if(r&&!V)return t;var p,m=[];Object.keys(oe).forEach((function(e){m=[].concat((0,i.default)(m),(0,i.default)(oe[e]||[]))})),null!=j?p=(0,x.toArray)(j):(p=o?o.errors:[],p=[].concat((0,i.default)(p),(0,i.default)(m)));var h="";void 0!==N?h=N:(null==o?void 0:o.validating)?h="validating":(null===(d=null==o?void 0:o.errors)||void 0===d?void 0:d.length)||m.length?h="error":(null==o?void 0:o.touched)&&(h="success");var _=(l={},(0,s.default)(l,"".concat(de,"-item"),!0),(0,s.default)(l,"".concat(de,"-item-with-help"),ee||j),(0,s.default)(l,"".concat(P),!!P),(0,s.default)(l,"".concat(de,"-item-has-feedback"),h&&Y),(0,s.default)(l,"".concat(de,"-item-has-success"),"success"===h),(0,s.default)(l,"".concat(de,"-item-has-warning"),"warning"===h),(0,s.default)(l,"".concat(de,"-item-has-error"),"error"===h),(0,s.default)(l,"".concat(de,"-item-is-validating"),"validating"===h),(0,s.default)(l,"".concat(de,"-item-hidden"),V),l);return c.createElement(y.default,(0,u.default)({className:(0,f.default)(_),style:O,key:"row"},(0,v.default)(W,["colon","extra","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","labelAlign","labelCol","normalize","preserve","tooltip","validateFirst","valuePropName","wrapperCol","_internalItemRender"])),c.createElement(M.default,(0,u.default)({htmlFor:n,required:a,requiredMark:G},e,{prefixCls:de})),c.createElement(w.default,(0,u.default)({},e,o,{errors:p,prefixCls:de,status:h,onDomErrorVisibleChange:ue,validateStatus:h}),c.createElement(k.FormItemContext.Provider,{value:{updateItemErrors:fe}},t)))}var he="function"==typeof R,ve=(0,c.useRef)(0);if(ve.current+=1,!le&&!he&&!o)return me(R);var ye={};return"string"==typeof I&&(ye.label=I),F&&(ye=(0,u.default)((0,u.default)({},ye),F)),c.createElement(p.Field,(0,u.default)({},e,{messageVariables:ye,trigger:$,validateTrigger:se,onReset:function(){ue(!1)}}),(function(s,l,d){var f=l.errors,p=(0,x.toArray)(t).length&&l?l.name:[],m=(0,x.getFieldId)(p,q);if(r){if(ce.current=(0,i.default)(p),n){var v=Array.isArray(n)?n:[n];ce.current=[].concat((0,i.default)(p.slice(0,-1)),(0,i.default)(v))}J(ce.current.join("__SPLIT__"),f)}var y=void 0!==A?A:!(!Z||!Z.some((function(e){if(e&&"object"===(0,a.default)(e)&&e.required)return!0;if("function"==typeof e){var t=e(d);return t&&t.required}return!1}))),_=(0,u.default)({},s),g=null;if((0,b.default)(!(D&&o),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(R)&&le)(0,b.default)(!1,"Form.Item","`children` is array of render props cannot have `name`."),g=R;else if(he&&(!D&&!o||le))(0,b.default)(!(!D&&!o),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),(0,b.default)(!le,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(!o||he||le)if((0,S.isValidElement)(R)){(0,b.default)(void 0===R.props.defaultValue,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var M=(0,u.default)((0,u.default)({},R.props),_);M.id||(M.id=m),(0,h.supportRef)(R)&&(M.ref=pe(p,R)),new Set([].concat((0,i.default)((0,x.toArray)($)),(0,i.default)((0,x.toArray)(se)))).forEach((function(e){M[e]=function(){for(var t,n,r,o,a,i=arguments.length,s=new Array(i),u=0;u<i;u++)s[u]=arguments[u];null===(r=_[e])||void 0===r||(t=r).call.apply(t,[_].concat(s)),null===(a=(o=R.props)[e])||void 0===a||(n=a).call.apply(n,[o].concat(s))}})),g=c.createElement(C,{value:_[e.valuePropName||"value"],update:ve.current},(0,S.cloneElement)(R,M))}else he&&(D||o)&&!le?g=R(d):((0,b.default)(!p.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),g=R);else(0,b.default)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");return me(g,m,l,y)}))};t.default=O},25816:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(73119)),i=r(n(27378)),s=o(n(60042)),u=o(n(15914)),l=o(n(71172)),c=o(n(80521)),d=o(n(51719)),f=o(n(65591)),p=n(91744),m=o(n(15525)),h={success:c.default,warning:d.default,error:l.default,validating:u.default},v=function(e){var t=e.prefixCls,n=e.status,r=e.wrapperCol,o=e.children,u=e.help,l=e.errors,c=e.onDomErrorVisibleChange,d=e.hasFeedback,v=e._internalItemRender,y=e.validateStatus,_=e.extra,g="".concat(t,"-item"),b=i.useContext(p.FormContext),M=r||b.wrapperCol||{},w=(0,s.default)("".concat(g,"-control"),M.className);i.useEffect((function(){return function(){c(!1)}}),[]);var k=y&&h[y],x=d&&k?i.createElement("span",{className:"".concat(g,"-children-icon")},i.createElement(k,null)):null,S=(0,a.default)({},b);delete S.labelCol,delete S.wrapperCol;var L=i.createElement("div",{className:"".concat(g,"-control-input")},i.createElement("div",{className:"".concat(g,"-control-input-content")},o),x),E=i.createElement(p.FormItemPrefixContext.Provider,{value:{prefixCls:t,status:n}},i.createElement(m.default,{errors:l,help:u,onDomErrorVisibleChange:c})),T=_?i.createElement("div",{className:"".concat(g,"-extra")},_):null,C=v&&"pro_table_render"===v.mark&&v.render?v.render(e,{input:L,errorList:E,extra:T}):i.createElement(i.Fragment,null,L,E,T);return i.createElement(p.FormContext.Provider,{value:S},i.createElement(f.default,(0,a.default)({},M,{className:w}),C))};t.default=v},21726:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(73119)),i=o(n(93231)),s=o(n(40131)),u=o(n(7501)),l=r(n(27378)),c=o(n(60042)),d=o(n(31115)),f=o(n(65591)),p=n(91744),m=n(3521),h=o(n(25638)),v=o(n(62004)),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var _=function(e){var t=e.prefixCls,n=e.label,r=e.htmlFor,o=e.labelCol,_=e.labelAlign,g=e.colon,b=e.required,M=e.requiredMark,w=e.tooltip,k=(0,m.useLocaleReceiver)("Form"),x=(0,s.default)(k,1)[0];return n?l.createElement(p.FormContext.Consumer,{key:"label"},(function(e){var s,p,m=e.vertical,k=e.labelAlign,S=e.labelCol,L=e.colon,E=o||S||{},T=_||k,C="".concat(t,"-item-label"),O=(0,c.default)(C,"left"===T&&"".concat(C,"-left"),E.className),P=n,D=!0===g||!1!==L&&!1!==g;D&&!m&&"string"==typeof n&&""!==n.trim()&&(P=n.replace(/[:|\uff1a]\s*$/,""));var Y=function(e){return e?"object"!==(0,u.default)(e)||l.isValidElement(e)?{title:e}:e:null}(w);if(Y){var j=Y.icon,Z=void 0===j?l.createElement(d.default,null):j,N=y(Y,["icon"]),R=l.createElement(v.default,N,l.cloneElement(Z,{className:"".concat(t,"-item-tooltip")}));P=l.createElement(l.Fragment,null,P,R)}"optional"!==M||b||(P=l.createElement(l.Fragment,null,P,l.createElement("span",{className:"".concat(t,"-item-optional")},(null==x?void 0:x.optional)||(null===(p=h.default.Form)||void 0===p?void 0:p.optional))));var A=(0,c.default)((s={},(0,i.default)(s,"".concat(t,"-item-required"),b),(0,i.default)(s,"".concat(t,"-item-required-mark-optional"),"optional"===M),(0,i.default)(s,"".concat(t,"-item-no-colon"),!D),s));return l.createElement(f.default,(0,a.default)({},E,{className:O}),l.createElement("label",{htmlFor:r,className:A,title:"string"==typeof n?n:""},P))})):null};t.default=_},3535:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(73119)),i=r(n(27378)),s=n(20518),u=o(n(74574)),l=n(64222),c=n(91744),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},f=function(e){var t=e.prefixCls,n=e.children,r=d(e,["prefixCls","children"]);(0,u.default)(!!r.name,"Form.List","Miss `name` prop.");var o=(0,i.useContext(l.ConfigContext).getPrefixCls)("form",t);return i.createElement(s.List,r,(function(e,t,r){return i.createElement(c.FormItemPrefixContext.Provider,{value:{prefixCls:o,status:"error"}},n(e.map((function(e){return(0,a.default)((0,a.default)({},e),{fieldKey:e.key})})),t,{errors:r.errors}))}))};t.default=f},91744:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.FormItemPrefixContext=t.FormProvider=t.FormItemContext=t.FormContext=void 0;var a=o(n(27378)),i=r(n(49811)),s=n(20518),u=a.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}});t.FormContext=u;var l=a.createContext({updateItemErrors:function(){}});t.FormItemContext=l;t.FormProvider=function(e){var t=(0,i.default)(e,["prefixCls"]);return a.createElement(s.FormProvider,t)};var c=a.createContext({prefixCls:""});t.FormItemPrefixContext=c},52424:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=a.useRef({errors:e,visible:!!e.length}),o=(0,i.default)(),s=function(){var n=r.current.visible,a=!!e.length,i=r.current.errors;r.current.errors=e,r.current.visible=a,n!==a?t(a):(i.length!==e.length||i.some((function(t,n){return t!==e[n]})))&&o()};a.useEffect((function(){if(!n){var e=setTimeout(s,10);return function(){return clearTimeout(e)}}}),[e]),n&&s();return[r.current.visible,r.current.errors]};var a=o(n(27378)),i=r(n(27750))},66880:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,u.useForm)(),n=(0,i.default)(t,1)[0],r=s.useRef({}),o=s.useMemo((function(){return e||(0,a.default)((0,a.default)({},n),{__INTERNAL__:{itemRef:function(e){return function(t){var n=d(e);t?r.current[n]=t:delete r.current[n]}}},scrollToField:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,c.toArray)(e),r=(0,c.getFieldId)(n,o.__INTERNAL__.name),i=r?document.getElementById(r):null;i&&(0,l.default)(i,(0,a.default)({scrollMode:"if-needed",block:"nearest"},t))},getFieldInstance:function(e){var t=d(e);return r.current[t]}})}),[e,n]);return[o]};var a=o(n(73119)),i=o(n(40131)),s=r(n(27378)),u=n(20518),l=o(n(90664)),c=n(80617);function d(e){return(0,c.toArray)(e).join("_")}},35014:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=i.useState(e),n=(0,a.default)(t,2),r=n[0],o=n[1],u=(0,i.useRef)(null),l=(0,i.useRef)([]),c=(0,i.useRef)(!1);return i.useEffect((function(){return function(){c.current=!0,s.default.cancel(u.current)}}),[]),[r,function(e){if(c.current)return;null===u.current&&(l.current=[],u.current=(0,s.default)((function(){u.current=null,o((function(e){var t=e;return l.current.forEach((function(e){t=e(t)})),t}))})));l.current.push(e)}]};var a=o(n(40131)),i=r(n(27378)),s=o(n(96945))},74112:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=i.useContext(u.FormContext).itemRef,t=i.useRef({});return function(n,r){var o=r&&"object"===(0,a.default)(r)&&r.ref,i=n.join("_");return t.current.name===i&&t.current.originRef===o||(t.current.name=i,t.current.originRef=o,t.current.ref=(0,s.composeRef)(e(n),o)),t.current.ref}};var a=o(n(7501)),i=r(n(27378)),s=n(16329),u=n(91744)},5041:function(e,t,n){"use strict";var r=n(73203),o=n(36178);t.Z=void 0;var a=o(n(6004)),i=r(n(55601)),s=r(n(15525)),u=r(n(3535)),l=n(91744),c=r(n(74574)),d=a.default;d.Item=i.default,d.List=u.default,d.ErrorList=s.default,d.useForm=a.useForm,d.Provider=l.FormProvider,d.create=function(){(0,c.default)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var f=d;t.Z=f},80617:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=function(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]},t.getFieldId=function(e,t){if(!e.length)return;var n=e.join("_");return t?"".concat(t,"_").concat(n):n}},89188:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(27378).createContext)({});t.default=r},65591:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(93231)),i=o(n(73119)),s=o(n(7501)),u=r(n(27378)),l=o(n(60042)),c=o(n(89188)),d=n(64222),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};var p=["xs","sm","md","lg","xl","xxl"],m=u.forwardRef((function(e,t){var n,r=u.useContext(d.ConfigContext),o=r.getPrefixCls,m=r.direction,h=u.useContext(c.default),v=h.gutter,y=h.wrap,_=e.prefixCls,g=e.span,b=e.order,M=e.offset,w=e.push,k=e.pull,x=e.className,S=e.children,L=e.flex,E=e.style,T=f(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=o("col",_),O={};p.forEach((function(t){var n,r={},o=e[t];"number"==typeof o?r.span=o:"object"===(0,s.default)(o)&&(r=o||{}),delete T[t],O=(0,i.default)((0,i.default)({},O),(n={},(0,a.default)(n,"".concat(C,"-").concat(t,"-").concat(r.span),void 0!==r.span),(0,a.default)(n,"".concat(C,"-").concat(t,"-order-").concat(r.order),r.order||0===r.order),(0,a.default)(n,"".concat(C,"-").concat(t,"-offset-").concat(r.offset),r.offset||0===r.offset),(0,a.default)(n,"".concat(C,"-").concat(t,"-push-").concat(r.push),r.push||0===r.push),(0,a.default)(n,"".concat(C,"-").concat(t,"-pull-").concat(r.pull),r.pull||0===r.pull),(0,a.default)(n,"".concat(C,"-rtl"),"rtl"===m),n))}));var P=(0,l.default)(C,(n={},(0,a.default)(n,"".concat(C,"-").concat(g),void 0!==g),(0,a.default)(n,"".concat(C,"-order-").concat(b),b),(0,a.default)(n,"".concat(C,"-offset-").concat(M),M),(0,a.default)(n,"".concat(C,"-push-").concat(w),w),(0,a.default)(n,"".concat(C,"-pull-").concat(k),k),n),x,O),D=(0,i.default)({},E);return v&&(D=(0,i.default)((0,i.default)((0,i.default)({},v[0]>0?{paddingLeft:v[0]/2,paddingRight:v[0]/2}:{}),v[1]>0?{paddingTop:v[1]/2,paddingBottom:v[1]/2}:{}),D)),L&&(D.flex=function(e){return"number"==typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(L),"auto"!==L||!1!==y||D.minWidth||(D.minWidth=0)),u.createElement("div",(0,i.default)({},T,{style:D,className:P,ref:t}),S)}));m.displayName="Col";var h=m;t.default=h},69522:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(73119)),i=o(n(93231)),s=o(n(7501)),u=o(n(40131)),l=r(n(27378)),c=o(n(60042)),d=n(64222),f=o(n(89188)),p=n(93950),m=r(n(47459)),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},v=((0,p.tuple)("top","middle","bottom","stretch"),(0,p.tuple)("start","end","center","space-around","space-between"),l.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.justify,p=e.align,v=e.className,y=e.style,_=e.children,g=e.gutter,b=void 0===g?0:g,M=e.wrap,w=h(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),k=l.useContext(d.ConfigContext),x=k.getPrefixCls,S=k.direction,L=l.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),E=(0,u.default)(L,2),T=E[0],C=E[1],O=l.useRef(b);l.useEffect((function(){var e=m.default.subscribe((function(e){var t=O.current||0;(!Array.isArray(t)&&"object"===(0,s.default)(t)||Array.isArray(t)&&("object"===(0,s.default)(t[0])||"object"===(0,s.default)(t[1])))&&C(e)}));return function(){return m.default.unsubscribe(e)}}),[]);var P,D=x("row",r),Y=(P=[0,0],(Array.isArray(b)?b:[b,0]).forEach((function(e,t){if("object"===(0,s.default)(e))for(var n=0;n<m.responsiveArray.length;n++){var r=m.responsiveArray[n];if(T[r]&&void 0!==e[r]){P[t]=e[r];break}}else P[t]=e||0})),P),j=(0,c.default)(D,(n={},(0,i.default)(n,"".concat(D,"-no-wrap"),!1===M),(0,i.default)(n,"".concat(D,"-").concat(o),o),(0,i.default)(n,"".concat(D,"-").concat(p),p),(0,i.default)(n,"".concat(D,"-rtl"),"rtl"===S),n),v),Z=(0,a.default)((0,a.default)((0,a.default)({},Y[0]>0?{marginLeft:Y[0]/-2,marginRight:Y[0]/-2}:{}),Y[1]>0?{marginTop:Y[1]/-2,marginBottom:Y[1]/2}:{}),y);return l.createElement(f.default.Provider,{value:{gutter:Y,wrap:M}},l.createElement("div",(0,a.default)({},w,{className:j,style:Z,ref:t}),_))})));v.displayName="Row";var y=v;t.default=y},15425:function(e,t,n){"use strict";var r=n(36178),o=n(73203);t.Z=void 0;var a=o(n(73119)),i=o(n(93231)),s=r(n(27378)),u=o(n(60042)),l=o(n(11190)),c=o(n(74126)),d=o(n(31220)),f=n(64222),p=o(n(86258)),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},h=s.forwardRef((function(e,t){var n,r=s.useContext(f.ConfigContext),o=r.getPrefixCls,h=r.direction,v=s.useContext(p.default),y=e.className,_=e.size,g=e.prefixCls,b=e.readOnly,M=m(e,["className","size","prefixCls","readOnly"]),w=o("input-number",g),k=s.createElement(c.default,{className:"".concat(w,"-handler-up-inner")}),x=s.createElement(d.default,{className:"".concat(w,"-handler-down-inner")}),S=_||v,L=(0,u.default)((n={},(0,i.default)(n,"".concat(w,"-lg"),"large"===S),(0,i.default)(n,"".concat(w,"-sm"),"small"===S),(0,i.default)(n,"".concat(w,"-rtl"),"rtl"===h),(0,i.default)(n,"".concat(w,"-readonly"),b),n),y);return s.createElement(l.default,(0,a.default)({ref:t,className:L,upHandler:k,downHandler:x,prefixCls:w,readOnly:b},M))}));h.defaultProps={step:1};var v=h;t.Z=v},27677:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.hasPrefixSuffix=y,t.default=void 0;var a=o(n(93231)),i=o(n(78983)),s=o(n(42081)),u=o(n(58724)),l=o(n(40670)),c=r(n(27378)),d=o(n(60042)),f=o(n(71172)),p=n(93950),m=n(98240),h=n(23182),v=(0,p.tuple)("text","input");function y(e){return!!(e.prefix||e.suffix||e.allowClear)}function _(e){return!(!e.addonBefore&&!e.addonAfter)}var g=function(e){(0,u.default)(n,e);var t=(0,l.default)(n);function n(){var e;return(0,i.default)(this,n),(e=t.apply(this,arguments)).containerRef=c.createRef(),e.onInputMouseUp=function(t){var n;if(null===(n=e.containerRef.current)||void 0===n?void 0:n.contains(t.target)){var r=e.props.triggerFocus;null==r||r()}},e}return(0,s.default)(n,[{key:"renderClearIcon",value:function(e){var t=this.props,n=t.allowClear,r=t.value,o=t.disabled,i=t.readOnly,s=t.handleReset;if(!n)return null;var u=!o&&!i&&r,l="".concat(e,"-clear-icon");return c.createElement(f.default,{onClick:s,className:(0,d.default)((0,a.default)({},"".concat(l,"-hidden"),!u),l),role:"button"})}},{key:"renderSuffix",value:function(e){var t=this.props,n=t.suffix,r=t.allowClear;return n||r?c.createElement("span",{className:"".concat(e,"-suffix")},this.renderClearIcon(e),n):null}},{key:"renderLabeledIcon",value:function(e,t){var n,r=this.props,o=r.focused,i=r.value,s=r.prefix,u=r.className,l=r.size,f=r.suffix,p=r.disabled,v=r.allowClear,g=r.direction,b=r.style,M=r.readOnly,w=r.bordered,k=this.renderSuffix(e);if(!y(this.props))return(0,h.cloneElement)(t,{value:i});var x=s?c.createElement("span",{className:"".concat(e,"-prefix")},s):null,S=(0,d.default)("".concat(e,"-affix-wrapper"),(n={},(0,a.default)(n,"".concat(e,"-affix-wrapper-focused"),o),(0,a.default)(n,"".concat(e,"-affix-wrapper-disabled"),p),(0,a.default)(n,"".concat(e,"-affix-wrapper-sm"),"small"===l),(0,a.default)(n,"".concat(e,"-affix-wrapper-lg"),"large"===l),(0,a.default)(n,"".concat(e,"-affix-wrapper-input-with-clear-btn"),f&&v&&i),(0,a.default)(n,"".concat(e,"-affix-wrapper-rtl"),"rtl"===g),(0,a.default)(n,"".concat(e,"-affix-wrapper-readonly"),M),(0,a.default)(n,"".concat(e,"-affix-wrapper-borderless"),!w),(0,a.default)(n,"".concat(u),!_(this.props)&&u),n));return c.createElement("span",{ref:this.containerRef,className:S,style:b,onMouseUp:this.onInputMouseUp},x,(0,h.cloneElement)(t,{style:null,value:i,className:(0,m.getInputClassName)(e,w,l,p)}),k)}},{key:"renderInputWithLabel",value:function(e,t){var n,r=this.props,o=r.addonBefore,i=r.addonAfter,s=r.style,u=r.size,l=r.className,f=r.direction;if(!_(this.props))return t;var p="".concat(e,"-group"),m="".concat(p,"-addon"),v=o?c.createElement("span",{className:m},o):null,y=i?c.createElement("span",{className:m},i):null,g=(0,d.default)("".concat(e,"-wrapper"),p,(0,a.default)({},"".concat(p,"-rtl"),"rtl"===f)),b=(0,d.default)("".concat(e,"-group-wrapper"),(n={},(0,a.default)(n,"".concat(e,"-group-wrapper-sm"),"small"===u),(0,a.default)(n,"".concat(e,"-group-wrapper-lg"),"large"===u),(0,a.default)(n,"".concat(e,"-group-wrapper-rtl"),"rtl"===f),n),l);return c.createElement("span",{className:b,style:s},c.createElement("span",{className:g},v,(0,h.cloneElement)(t,{style:null}),y))}},{key:"renderTextAreaWithClearIcon",value:function(e,t){var n,r=this.props,o=r.value,i=r.allowClear,s=r.className,u=r.style,l=r.direction,f=r.bordered;if(!i)return(0,h.cloneElement)(t,{value:o});var p=(0,d.default)("".concat(e,"-affix-wrapper"),"".concat(e,"-affix-wrapper-textarea-with-clear-btn"),(n={},(0,a.default)(n,"".concat(e,"-affix-wrapper-rtl"),"rtl"===l),(0,a.default)(n,"".concat(e,"-affix-wrapper-borderless"),!f),(0,a.default)(n,"".concat(s),!_(this.props)&&s),n));return c.createElement("span",{className:p,style:u},(0,h.cloneElement)(t,{style:null,value:o}),this.renderClearIcon(e))}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.inputType,r=e.element;return n===v[0]?this.renderTextAreaWithClearIcon(t,r):this.renderInputWithLabel(t,this.renderLabeledIcon(t,r))}}]),n}(c.Component),b=g;t.default=b},91489:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(93231)),i=r(n(27378)),s=o(n(60042)),u=n(64222),l=function(e){return i.createElement(u.ConfigConsumer,null,(function(t){var n,r=t.getPrefixCls,o=t.direction,u=e.prefixCls,l=e.className,c=void 0===l?"":l,d=r("input-group",u),f=(0,s.default)(d,(n={},(0,a.default)(n,"".concat(d,"-lg"),"large"===e.size),(0,a.default)(n,"".concat(d,"-sm"),"small"===e.size),(0,a.default)(n,"".concat(d,"-compact"),e.compact),(0,a.default)(n,"".concat(d,"-rtl"),"rtl"===o),n),c);return i.createElement("span",{className:f,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children)}))};t.default=l},98240:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.fixControlledValue=_,t.resolveOnChange=g,t.getInputClassName=b,t.triggerFocus=M,t.default=void 0;var a=o(n(73119)),i=o(n(78983)),s=o(n(42081)),u=o(n(58724)),l=o(n(40670)),c=o(n(93231)),d=r(n(27378)),f=o(n(60042)),p=o(n(49811)),m=r(n(27677)),h=n(64222),v=o(n(86258)),y=o(n(74574));function _(e){return null==e?"":e}function g(e,t,n){if(n){var r=t;if("click"===t.type){(r=Object.create(t)).target=e,r.currentTarget=e;var o=e.value;return e.value="",n(r),void(e.value=o)}n(r)}}function b(e,t,n,r,o){var a;return(0,f.default)(e,(a={},(0,c.default)(a,"".concat(e,"-sm"),"small"===n),(0,c.default)(a,"".concat(e,"-lg"),"large"===n),(0,c.default)(a,"".concat(e,"-disabled"),r),(0,c.default)(a,"".concat(e,"-rtl"),"rtl"===o),(0,c.default)(a,"".concat(e,"-borderless"),!t),a))}function M(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var w=function(e){(0,u.default)(n,e);var t=(0,l.default)(n);function n(e){var r;(0,i.default)(this,n),(r=t.call(this,e)).direction="ltr",r.focus=function(e){M(r.input,e)},r.saveClearableInput=function(e){r.clearableInput=e},r.saveInput=function(e){r.input=e},r.onFocus=function(e){var t=r.props.onFocus;r.setState({focused:!0},r.clearPasswordValueAttribute),t&&t(e)},r.onBlur=function(e){var t=r.props.onBlur;r.setState({focused:!1},r.clearPasswordValueAttribute),t&&t(e)},r.handleReset=function(e){r.setValue("",(function(){r.focus()})),g(r.input,e,r.props.onChange)},r.renderInput=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.props,s=i.className,u=i.addonBefore,l=i.addonAfter,m=i.size,h=i.disabled,v=(0,p.default)(r.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return d.createElement("input",(0,a.default)({autoComplete:o.autoComplete},v,{onChange:r.handleChange,onFocus:r.onFocus,onBlur:r.onBlur,onKeyDown:r.handleKeyDown,className:(0,f.default)(b(e,n,m||t,h,r.direction),(0,c.default)({},s,s&&!u&&!l)),ref:r.saveInput}))},r.clearPasswordValueAttribute=function(){r.removePasswordTimeout=setTimeout((function(){r.input&&"password"===r.input.getAttribute("type")&&r.input.hasAttribute("value")&&r.input.removeAttribute("value")}))},r.handleChange=function(e){r.setValue(e.target.value,r.clearPasswordValueAttribute),g(r.input,e,r.props.onChange)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,o=t.onKeyDown;13===e.keyCode&&n&&n(e),o&&o(e)},r.renderComponent=function(e){var t=e.getPrefixCls,n=e.direction,o=e.input,i=r.state,s=i.value,u=i.focused,l=r.props,c=l.prefixCls,f=l.bordered,p=void 0===f||f,h=t("input",c);return r.direction=n,d.createElement(v.default.Consumer,null,(function(e){return d.createElement(m.default,(0,a.default)({size:e},r.props,{prefixCls:h,inputType:"input",value:_(s),element:r.renderInput(h,e,p,o),handleReset:r.handleReset,ref:r.saveClearableInput,direction:n,focused:u,triggerFocus:r.focus,bordered:p}))}))};var o=void 0===e.value?e.defaultValue:e.value;return r.state={value:o,focused:!1,prevValue:e.value},r}return(0,s.default)(n,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(e){return(0,m.hasPrefixSuffix)(e)!==(0,m.hasPrefixSuffix)(this.props)&&(0,y.default)(this.input!==document.activeElement,"Input","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),null}},{key:"componentWillUnmount",value:function(){this.removePasswordTimeout&&clearTimeout(this.removePasswordTimeout)}},{key:"blur",value:function(){this.input.blur()}},{key:"setSelectionRange",value:function(e,t,n){this.input.setSelectionRange(e,t,n)}},{key:"select",value:function(){this.input.select()}},{key:"setValue",value:function(e,t){void 0===this.props.value?this.setState({value:e},t):null==t||t()}},{key:"render",value:function(){return d.createElement(h.ConfigConsumer,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevValue,r={prevValue:e.value};return void 0===e.value&&n===e.value||(r.value=e.value),r}}]),n}(d.Component);w.defaultProps={type:"text"};var k=w;t.default=k},55339:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(73119)),i=o(n(93231)),s=o(n(40131)),u=r(n(27378)),l=o(n(60042)),c=o(n(49811)),d=o(n(92618)),f=o(n(35380)),p=n(64222),m=o(n(98240)),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},v={click:"onClick",hover:"onMouseOver"},y=u.forwardRef((function(e,t){var n=(0,u.useState)(!1),r=(0,s.default)(n,2),o=r[0],d=r[1],f=function(){e.disabled||d(!o)},y=function(n){var r=n.getPrefixCls,s=e.className,d=e.prefixCls,p=e.inputPrefixCls,y=e.size,_=e.visibilityToggle,g=h(e,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),b=r("input",p),M=r("input-password",d),w=_&&function(t){var n,r=e.action,a=e.iconRender,s=v[r]||"",l=(void 0===a?function(){return null}:a)(o),c=(n={},(0,i.default)(n,s,f),(0,i.default)(n,"className","".concat(t,"-icon")),(0,i.default)(n,"key","passwordIcon"),(0,i.default)(n,"onMouseDown",(function(e){e.preventDefault()})),(0,i.default)(n,"onMouseUp",(function(e){e.preventDefault()})),n);return u.cloneElement(u.isValidElement(l)?l:u.createElement("span",null,l),c)}(M),k=(0,l.default)(M,s,(0,i.default)({},"".concat(M,"-").concat(y),!!y)),x=(0,a.default)((0,a.default)({},(0,c.default)(g,["suffix","iconRender"])),{type:o?"text":"password",className:k,prefixCls:b,suffix:w});return y&&(x.size=y),u.createElement(m.default,(0,a.default)({ref:t},x))};return u.createElement(p.ConfigConsumer,null,y)}));y.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(e){return e?u.createElement(d.default,null):u.createElement(f.default,null)}},y.displayName="Password";var _=y;t.default=_},71824:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(93231)),i=o(n(73119)),s=r(n(27378)),u=o(n(60042)),l=n(16329),c=o(n(37898)),d=o(n(98240)),f=o(n(76676)),p=o(n(86258)),m=n(64222),h=n(23182),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},y=s.forwardRef((function(e,t){var n,r,o=e.prefixCls,y=e.inputPrefixCls,_=e.className,g=e.size,b=e.suffix,M=e.enterButton,w=void 0!==M&&M,k=e.addonAfter,x=e.loading,S=e.disabled,L=e.onSearch,E=e.onChange,T=v(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange"]),C=s.useContext(m.ConfigContext),O=C.getPrefixCls,P=C.direction,D=s.useContext(p.default),Y=g||D,j=s.useRef(null),Z=function(e){var t;document.activeElement===(null===(t=j.current)||void 0===t?void 0:t.input)&&e.preventDefault()},N=function(e){var t;L&&L(null===(t=j.current)||void 0===t?void 0:t.input.value,e)},R=O("input-search",o),A=O("input",y),I="boolean"==typeof w||void 0===w?s.createElement(c.default,null):null,F="".concat(R,"-button"),H=w||{},$=H.type&&!0===H.type.__ANT_BUTTON;r=$||"button"===H.type?(0,h.cloneElement)(H,(0,i.default)({onMouseDown:Z,onClick:N,key:"enterButton"},$?{className:F,size:Y}:{})):s.createElement(f.default,{className:F,type:w?"primary":void 0,size:Y,disabled:S,key:"enterButton",onMouseDown:Z,onClick:N,loading:x,icon:I},w),k&&(r=[r,(0,h.cloneElement)(k,{key:"addonAfter"})]);var z=(0,u.default)(R,(n={},(0,a.default)(n,"".concat(R,"-rtl"),"rtl"===P),(0,a.default)(n,"".concat(R,"-").concat(Y),!!Y),(0,a.default)(n,"".concat(R,"-with-button"),!!w),n),_);return s.createElement(d.default,(0,i.default)({ref:(0,l.composeRef)(j,t),onPressEnter:N},T,{size:Y,prefixCls:A,addonAfter:r,suffix:b,onChange:function(e){e&&e.target&&"click"===e.type&&L&&L(e.target.value,e),E&&E(e)},className:z,disabled:S}))}));y.displayName="Search";var _=y;t.default=_},10777:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(7501)),i=o(n(9833)),s=o(n(73119)),u=o(n(93231)),l=o(n(40131)),c=r(n(27378)),d=o(n(4183)),f=o(n(49811)),p=o(n(60042)),m=o(n(22958)),h=o(n(27677)),v=n(64222),y=n(98240),_=o(n(86258)),g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},b=c.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.bordered,b=void 0===o||o,M=e.showCount,w=void 0!==M&&M,k=e.maxLength,x=e.className,S=e.style,L=e.size,E=g(e,["prefixCls","bordered","showCount","maxLength","className","style","size"]),T=c.useContext(v.ConfigContext),C=T.getPrefixCls,O=T.direction,P=c.useContext(_.default),D=c.useRef(null),Y=c.useRef(null),j=(0,m.default)(E.defaultValue,{value:E.value}),Z=(0,l.default)(j,2),N=Z[0],R=Z[1],A=c.useRef(E.value);c.useEffect((function(){void 0===E.value&&A.current===E.value||(R(E.value),A.current=E.value)}),[E.value,A.current]);var I=function(e,t){void 0===E.value&&(R(e),null==t||t())},F=C("input",r);c.useImperativeHandle(t,(function(){var e;return{resizableTextArea:null===(e=D.current)||void 0===e?void 0:e.resizableTextArea,focus:function(e){var t,n;(0,y.triggerFocus)(null===(n=null===(t=D.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:function(){var e;return null===(e=D.current)||void 0===e?void 0:e.blur()}}}));var H=c.createElement(d.default,(0,s.default)({},(0,f.default)(E,["allowClear"]),{maxLength:k,className:(0,p.default)((n={},(0,u.default)(n,"".concat(F,"-borderless"),!b),(0,u.default)(n,x,x&&!w),(0,u.default)(n,"".concat(F,"-sm"),"small"===P||"small"===L),(0,u.default)(n,"".concat(F,"-lg"),"large"===P||"large"===L),n)),style:w?void 0:S,prefixCls:F,onChange:function(e){I(e.target.value),(0,y.resolveOnChange)(D.current,e,E.onChange)},ref:D})),$=(0,y.fixControlledValue)(N),z=Number(k)>0;$=z?(0,i.default)($).slice(0,k).join(""):$;var V=c.createElement(h.default,(0,s.default)({},E,{prefixCls:F,direction:O,inputType:"text",value:$,element:H,handleReset:function(e){I("",(function(){var e;null===(e=D.current)||void 0===e||e.focus()})),(0,y.resolveOnChange)(D.current,e,E.onChange)},ref:Y,bordered:b}));if(w){var W=(0,i.default)($).length,B="";return B="object"===(0,a.default)(w)?w.formatter({count:W,maxLength:k}):"".concat(W).concat(z?" / ".concat(k):""),c.createElement("div",{className:(0,p.default)("".concat(F,"-textarea"),(0,u.default)({},"".concat(F,"-textarea-rtl"),"rtl"===O),"".concat(F,"-textarea-show-count"),x),style:S,"data-count":B},V)}return V}));t.default=b},74105:function(e,t,n){"use strict";var r=n(73203);t.Z=void 0;var o=r(n(98240)),a=r(n(91489)),i=r(n(71824)),s=r(n(10777)),u=r(n(55339));o.default.Group=a.default,o.default.Search=i.default,o.default.TextArea=s.default,o.default.Password=u.default;var l=o.default;t.Z=l},3521:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.useLocaleReceiver=function(e,t){var n=c.useContext(f.default);return[c.useMemo((function(){var r=t||d.default[e||"global"],o=e&&n?n[e]:{};return(0,a.default)((0,a.default)({},"function"==typeof r?r():r),o||{})}),[e,t,n])]},t.default=void 0;var a=o(n(73119)),i=o(n(78983)),s=o(n(42081)),u=o(n(58724)),l=o(n(40670)),c=r(n(27378)),d=o(n(1319)),f=o(n(88031)),p=function(e){(0,u.default)(n,e);var t=(0,l.default)(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,s.default)(n,[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||d.default[t||"global"],r=this.context,o=t&&r?r[t]:{};return(0,a.default)((0,a.default)({},"function"==typeof n?n():n),o||{})}},{key:"getLocaleCode",value:function(){var e=this.context,t=e&&e.locale;return e&&e.exist&&!t?d.default.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),n}(c.Component);t.default=p,p.defaultProps={componentName:"global"},p.contextType=f.default},88031:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(27378).createContext)(void 0);t.default=r},1319:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(25638)).default;t.default=o},6128:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ANT_MARK=void 0;var a=o(n(73119)),i=o(n(78983)),s=o(n(42081)),u=o(n(58724)),l=o(n(40670)),c=r(n(27378)),d=o(n(74574)),f=n(33088),p=o(n(88031)),m="internalMark";t.ANT_MARK=m;var h=function(e){(0,u.default)(n,e);var t=(0,l.default)(n);function n(e){var r;return(0,i.default)(this,n),r=t.call(this,e),(0,f.changeConfirmLocale)(e.locale&&e.locale.Modal),(0,d.default)(e._ANT_MARK__===m,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),r}return(0,s.default)(n,[{key:"componentDidUpdate",value:function(e){var t=this.props.locale;e.locale!==t&&(0,f.changeConfirmLocale)(t&&t.Modal)}},{key:"componentWillUnmount",value:function(){(0,f.changeConfirmLocale)()}},{key:"render",value:function(){var e=this.props,t=e.locale,n=e.children;return c.createElement(p.default.Provider,{value:(0,a.default)((0,a.default)({},t),{exist:!0})},n)}}]),n}(c.Component);t.default=h,h.defaultProps={locale:{}}},25638:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(51367)),a=r(n(22313)),i=r(n(14339)),s=r(n(85270)),u="${label} is not a valid ${type}",l={locale:"en",Pagination:o.default,DatePicker:a.default,TimePicker:i.default,Calendar:s.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};t.default=l},2986:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(){var n,r=null,o={add:function(e,t){null==r||r.component.add(e,t)}},d=(0,u.default)(o),f=(0,i.default)(d,2),p=f[0],m=f[1];var h=s.useRef({});return h.current.open=function(o){var i=o.prefixCls,s=n("message",i),u=o.key||(0,c.getKeyThenIncreaseKey)(),l=new Promise((function(n){var i=function(){return"function"==typeof o.onClose&&o.onClose(),n(!0)};e((0,a.default)((0,a.default)({},o),{prefixCls:s}),(function(e){var n=e.prefixCls,s=e.instance;r=s,p(t((0,a.default)((0,a.default)({},o),{key:u,onClose:i}),n))}))})),d=function(){r&&r.removeNotice(u)};return d.then=function(e,t){return l.then(e,t)},d.promise=l,d},["success","info","warning","error","loading"].forEach((function(e){return(0,c.attachTypeApi)(h.current,e)})),[h.current,s.createElement(l.ConfigConsumer,{key:"holder"},(function(e){return n=e.getPrefixCls,m}))]}};var a=o(n(73119)),i=o(n(40131)),s=r(n(27378)),u=o(n(5658)),l=n(64222),c=n(80114)},80114:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.getKeyThenIncreaseKey=function(){return M++},t.attachTypeApi=C,t.default=t.getInstance=void 0;var a,i,s,u,l=o(n(73119)),c=o(n(93231)),d=r(n(27378)),f=o(n(60042)),p=o(n(87482)),m=o(n(15914)),h=o(n(51719)),v=o(n(71172)),y=o(n(80521)),_=o(n(45960)),g=o(n(2986)),b=3,M=1,w="ant-message",k="move-up",x=!1;function S(e,t){var n=e.prefixCls||w;a?t({prefixCls:n,instance:a}):p.default.newInstance({prefixCls:n,transitionName:k,style:{top:i},getContainer:s,maxCount:u},(function(e){a?t({prefixCls:n,instance:a}):(a=e,t({prefixCls:n,instance:e}))}))}var L={info:_.default,success:y.default,error:v.default,warning:h.default,loading:m.default};function E(e,t){var n,r=void 0!==e.duration?e.duration:b,o=L[e.type],a=(0,f.default)("".concat(t,"-custom-content"),(n={},(0,c.default)(n,"".concat(t,"-").concat(e.type),e.type),(0,c.default)(n,"".concat(t,"-rtl"),!0===x),n));return{key:e.key,duration:r,style:e.style||{},className:e.className,content:d.createElement("div",{className:a},e.icon||o&&d.createElement(o,null),d.createElement("span",null,e.content)),onClose:e.onClose,onClick:e.onClick}}var T={open:function(e){var t=e.key||M++,n=new Promise((function(n){var r=function(){return"function"==typeof e.onClose&&e.onClose(),n(!0)};S(e,(function(n){var o=n.prefixCls;n.instance.notice(E((0,l.default)((0,l.default)({},e),{key:t,onClose:r}),o))}))})),r=function(){a&&a.removeNotice(t)};return r.then=function(e,t){return n.then(e,t)},r.promise=n,r},config:function(e){void 0!==e.top&&(i=e.top,a=null),void 0!==e.duration&&(b=e.duration),void 0!==e.prefixCls&&(w=e.prefixCls),void 0!==e.getContainer&&(s=e.getContainer),void 0!==e.transitionName&&(k=e.transitionName,a=null),void 0!==e.maxCount&&(u=e.maxCount,a=null),void 0!==e.rtl&&(x=e.rtl)},destroy:function(e){if(a)if(e){(0,a.removeNotice)(e)}else{var t=a.destroy;t(),a=null}}};function C(e,t){e[t]=function(n,r,o){return function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(n)?e.open((0,l.default)((0,l.default)({},n),{type:t})):("function"==typeof r&&(o=r,r=void 0),e.open({content:n,duration:r,type:t,onClose:o}))}}["success","info","warning","error","loading"].forEach((function(e){return C(T,e)})),T.warn=T.warning,T.useMessage=(0,g.default)(S,E);t.getInstance=function(){return null};var O=T;t.default=O},33088:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.changeConfirmLocale=function(e){i=e?(0,o.default)((0,o.default)({},i),e):(0,o.default)({},a.default.Modal)},t.getConfirmLocale=function(){return i};var o=r(n(73119)),a=r(n(25638)),i=(0,o.default)({},a.default.Modal)},58917:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(){var n,r=null,o={add:function(e,t){null==r||r.component.add(e,t)}},c=(0,u.default)(o),d=(0,i.default)(c,2),f=d[0],p=d[1];var m=s.useRef({});return m.current.open=function(o){var i=o.prefixCls,s=n("notification",i);e((0,a.default)((0,a.default)({},o),{prefixCls:s}),(function(e){var n=e.prefixCls,a=e.instance;r=a,f(t(o,n))}))},["success","info","warning","error"].forEach((function(e){m.current[e]=function(t){return m.current.open((0,a.default)((0,a.default)({},t),{type:e}))}})),[m.current,s.createElement(l.ConfigConsumer,{key:"holder"},(function(e){return n=e.getPrefixCls,p}))]}};var a=o(n(73119)),i=o(n(40131)),s=r(n(27378)),u=o(n(5658)),l=n(64222)},93353:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.getInstance=void 0;var a,i,s=o(n(50824)),u=o(n(73119)),l=o(n(93231)),c=r(n(27378)),d=o(n(87482)),f=o(n(21473)),p=o(n(60042)),m=o(n(71056)),h=o(n(37357)),v=o(n(26036)),y=o(n(50063)),_=o(n(58917)),g=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{u(r.next(e))}catch(t){a(t)}}function s(e){try{u(r.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}u((r=r.apply(e,t||[])).next())}))},b={},M=4.5,w=24,k=24,x="ant-notification",S="topRight",L=!1;function E(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;switch(e){case"topLeft":t={left:0,top:n,bottom:"auto"};break;case"topRight":t={right:0,top:n,bottom:"auto"};break;case"bottomLeft":t={left:0,top:"auto",bottom:r};break;default:t={right:0,top:"auto",bottom:r}}return t}function T(e,t){var n=e.placement,r=void 0===n?S:n,o=e.top,s=e.bottom,u=e.getContainer,m=void 0===u?a:u,h=e.closeIcon,v=void 0===h?i:h,y=e.prefixCls||x,_="".concat(y,"-notice"),g="".concat(y,"-").concat(r),M=b[g];if(M)Promise.resolve(M).then((function(e){t({prefixCls:_,instance:e})}));else{var w=c.createElement("span",{className:"".concat(y,"-close-x")},v||c.createElement(f.default,{className:"".concat(y,"-close-icon")})),k=(0,p.default)("".concat(y,"-").concat(r),(0,l.default)({},"".concat(y,"-rtl"),!0===L));b[g]=new Promise((function(e){d.default.newInstance({prefixCls:y,className:k,style:E(r,o,s),getContainer:m,closeIcon:w},(function(n){e(n),t({prefixCls:_,instance:n})}))}))}}var C={success:m.default,info:y.default,error:h.default,warning:v.default};function O(e,t){var n=void 0===e.duration?M:e.duration,r=null;e.icon?r=c.createElement("span",{className:"".concat(t,"-icon")},e.icon):e.type&&(r=c.createElement(C[e.type]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(e.type)}));var o=!e.description&&r?c.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:c.createElement("div",{className:r?"".concat(t,"-with-icon"):"",role:"alert"},r,c.createElement("div",{className:"".concat(t,"-message")},o,e.message),c.createElement("div",{className:"".concat(t,"-description")},e.description),e.btn?c.createElement("span",{className:"".concat(t,"-btn")},e.btn):null),duration:n,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},className:e.className}}var P={open:function(e){T(e,(function(t){var n=t.prefixCls;t.instance.notice(O(e,n))}))},close:function(e){Object.keys(b).forEach((function(t){return Promise.resolve(b[t]).then((function(t){t.removeNotice(e)}))}))},config:function(e){var t=e.duration,n=e.placement,r=e.bottom,o=e.top,s=e.getContainer,u=e.closeIcon,l=e.prefixCls;void 0!==l&&(x=l),void 0!==t&&(M=t),void 0!==n?S=n:e.rtl&&(S="topLeft"),void 0!==r&&(k=r),void 0!==o&&(w=o),void 0!==s&&(a=s),void 0!==u&&(i=u),void 0!==e.rtl&&(L=e.rtl)},destroy:function(){Object.keys(b).forEach((function(e){Promise.resolve(b[e]).then((function(e){e.destroy()})),delete b[e]}))}};["success","info","warning","error"].forEach((function(e){P[e]=function(t){return P.open((0,u.default)((0,u.default)({},t),{type:e}))}})),P.warn=P.warning,P.useNotification=(0,_.default)(T,O);t.getInstance=function(e){return g(void 0,void 0,void 0,s.default.mark((function e(){return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)})))};var D=P;t.default=D},557:function(e,t,n){"use strict";var r=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.RadioGroupContextProvider=void 0;var o=r(n(27378)).createContext(null),a=o.Provider;t.RadioGroupContextProvider=a;var i=o;t.default=i},69601:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(93231)),i=o(n(40131)),s=r(n(27378)),u=o(n(60042)),l=o(n(22958)),c=o(n(34940)),d=n(64222),f=o(n(86258)),p=n(557),m=s.forwardRef((function(e,t){var n=s.useContext(d.ConfigContext),r=n.getPrefixCls,o=n.direction,m=s.useContext(f.default),h=(0,l.default)(e.defaultValue,{value:e.value}),v=(0,i.default)(h,2),y=v[0],_=v[1];return s.createElement(p.RadioGroupContextProvider,{value:{onChange:function(t){var n=y,r=t.target.value;"value"in e||_(r);var o=e.onChange;o&&r!==n&&o(t)},value:y,disabled:e.disabled,name:e.name}},function(){var n,i=e.prefixCls,l=e.className,d=void 0===l?"":l,f=e.options,p=e.optionType,h=e.buttonStyle,v=void 0===h?"outline":h,_=e.disabled,g=e.children,b=e.size,M=e.style,w=e.id,k=e.onMouseEnter,x=e.onMouseLeave,S=r("radio",i),L="".concat(S,"-group"),E=g;if(f&&f.length>0){var T="button"===p?"".concat(S,"-button"):S;E=f.map((function(e){return"string"==typeof e?s.createElement(c.default,{key:e,prefixCls:T,disabled:_,value:e,checked:y===e},e):s.createElement(c.default,{key:"radio-group-value-options-".concat(e.value),prefixCls:T,disabled:e.disabled||_,value:e.value,checked:y===e.value,style:e.style},e.label)}))}var C=b||m,O=(0,u.default)(L,"".concat(L,"-").concat(v),(n={},(0,a.default)(n,"".concat(L,"-").concat(C),C),(0,a.default)(n,"".concat(L,"-rtl"),"rtl"===o),n),d);return s.createElement("div",{className:O,style:M,onMouseEnter:k,onMouseLeave:x,id:w,ref:t},E)}())})),h=s.memo(m);t.default=h},58946:function(e,t,n){"use strict";var r=n(73203);t.ZP=void 0;var o=r(n(34940)),a=r(n(69601)),i=r(n(28241)),s=o.default;s.Button=i.default,s.Group=a.default;var u=s;t.ZP=u},34940:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(93231)),i=o(n(73119)),s=r(n(27378)),u=o(n(18092)),l=o(n(60042)),c=n(16329),d=n(64222),f=o(n(557)),p=o(n(74574)),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},h=function(e,t){var n,r=s.useContext(f.default),o=s.useContext(d.ConfigContext),h=o.getPrefixCls,v=o.direction,y=s.useRef(),_=(0,c.composeRef)(t,y);s.useEffect((function(){(0,p.default)(!("optionType"in e),"Radio","`optionType` is only support in Radio.Group.")}),[]);var g=e.prefixCls,b=e.className,M=e.children,w=e.style,k=m(e,["prefixCls","className","children","style"]),x=h("radio",g),S=(0,i.default)({},k);r&&(S.name=r.name,S.onChange=function(t){e.onChange&&e.onChange(t),(null==r?void 0:r.onChange)&&r.onChange(t)},S.checked=e.value===r.value,S.disabled=e.disabled||r.disabled);var L=(0,l.default)("".concat(x,"-wrapper"),(n={},(0,a.default)(n,"".concat(x,"-wrapper-checked"),S.checked),(0,a.default)(n,"".concat(x,"-wrapper-disabled"),S.disabled),(0,a.default)(n,"".concat(x,"-wrapper-rtl"),"rtl"===v),n),b);return s.createElement("label",{className:L,style:w,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},s.createElement(u.default,(0,i.default)({},S,{prefixCls:x,ref:_})),void 0!==M?s.createElement("span",null,M):null)},v=s.forwardRef(h);v.displayName="Radio",v.defaultProps={type:"radio"};var y=v;t.default=y},28241:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(73119)),i=r(n(27378)),s=o(n(34940)),u=n(64222),l=o(n(557)),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},d=function(e,t){var n=i.useContext(l.default),r=i.useContext(u.ConfigContext).getPrefixCls,o=e.prefixCls,d=c(e,["prefixCls"]),f=r("radio-button",o);return n&&(d.checked=e.value===n.value,d.disabled=e.disabled||n.disabled),i.createElement(s.default,(0,a.default)({prefixCls:f},d,{type:"radio",ref:t}))},f=i.forwardRef(d);t.default=f},92049:function(e,t,n){"use strict";var r=n(36178),o=n(73203);t.Z=void 0;var a=o(n(93231)),i=o(n(73119)),s=r(n(27378)),u=o(n(49811)),l=o(n(60042)),c=r(n(95040)),d=n(64222),f=o(n(93142)),p=o(n(86258)),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},h="SECRET_COMBOBOX_MODE_DO_NOT_USE",v=function(e,t){var n,r,o=e.prefixCls,v=e.bordered,y=void 0===v||v,_=e.className,g=e.getPopupContainer,b=e.dropdownClassName,M=e.listHeight,w=void 0===M?256:M,k=e.listItemHeight,x=void 0===k?24:k,S=e.size,L=e.notFoundContent,E=e.transitionName,T=void 0===E?"slide-up":E,C=m(e,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","listHeight","listItemHeight","size","notFoundContent","transitionName"]),O=s.useContext(d.ConfigContext),P=O.getPopupContainer,D=O.getPrefixCls,Y=O.renderEmpty,j=O.direction,Z=O.virtual,N=O.dropdownMatchSelectWidth,R=s.useContext(p.default),A=D("select",o),I=s.useMemo((function(){var e=C.mode;if("combobox"!==e)return e===h?"combobox":e}),[C.mode]),F="multiple"===I||"tags"===I;r=void 0!==L?L:"combobox"===I?null:Y("Select");var H=(0,f.default)((0,i.default)((0,i.default)({},C),{multiple:F,prefixCls:A})),$=H.suffixIcon,z=H.itemIcon,V=H.removeIcon,W=H.clearIcon,B=(0,u.default)(C,["suffixIcon","itemIcon"]),U=(0,l.default)(b,(0,a.default)({},"".concat(A,"-dropdown-").concat(j),"rtl"===j)),K=S||R,q=(0,l.default)((n={},(0,a.default)(n,"".concat(A,"-lg"),"large"===K),(0,a.default)(n,"".concat(A,"-sm"),"small"===K),(0,a.default)(n,"".concat(A,"-rtl"),"rtl"===j),(0,a.default)(n,"".concat(A,"-borderless"),!y),n),_);return s.createElement(c.default,(0,i.default)({ref:t,virtual:Z,dropdownMatchSelectWidth:N},B,{transitionName:T,listHeight:w,listItemHeight:x,mode:I,prefixCls:A,direction:j,inputIcon:$,menuItemSelectedIcon:z,removeIcon:V,clearIcon:W,notFoundContent:r,className:q,getPopupContainer:g||P,dropdownClassName:U}))},y=s.forwardRef(v);y.SECRET_COMBOBOX_MODE_DO_NOT_USE=h,y.Option=c.Option,y.OptGroup=c.OptGroup;var _=y;t.Z=_},93142:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.suffixIcon,n=e.clearIcon,r=e.menuItemSelectedIcon,o=e.removeIcon,f=e.loading,p=e.multiple,m=e.prefixCls,h=n;n||(h=a.createElement(c.default,null));var v=null;if(void 0!==t)v=t;else if(f)v=a.createElement(s.default,{spin:!0});else{var y="".concat(m,"-suffix");v=function(e){var t=e.open,n=e.showSearch;return t&&n?a.createElement(d.default,{className:y}):a.createElement(i.default,{className:y})}}var _=null;_=void 0!==r?r:p?a.createElement(u.default,null):null;var g=null;g=void 0!==o?o:a.createElement(l.default,null);return{clearIcon:h,suffixIcon:v,itemIcon:_,removeIcon:g}};var a=o(n(27378)),i=r(n(31220)),s=r(n(15914)),u=r(n(30219)),l=r(n(21473)),c=r(n(71172)),d=r(n(37898))},56369:function(e,t,n){"use strict";var r=n(36178),o=n(73203);t.Z=void 0;var a=o(n(73119)),i=o(n(93231)),s=r(n(27378)),u=o(n(62843)),l=o(n(60042)),c=o(n(15914)),d=o(n(15587)),f=n(64222),p=o(n(86258)),m=o(n(74574)),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},v=s.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.size,v=e.loading,y=e.className,_=void 0===y?"":y,g=e.disabled,b=h(e,["prefixCls","size","loading","className","disabled"]);(0,m.default)("checked"in b||!("value"in b),"Switch","`value` is not a valid prop, do you mean `checked`?");var M=s.useContext(f.ConfigContext),w=M.getPrefixCls,k=M.direction,x=s.useContext(p.default),S=w("switch",r),L=s.createElement("div",{className:"".concat(S,"-handle")},v&&s.createElement(c.default,{className:"".concat(S,"-loading-icon")})),E=(0,l.default)((n={},(0,i.default)(n,"".concat(S,"-small"),"small"===(o||x)),(0,i.default)(n,"".concat(S,"-loading"),v),(0,i.default)(n,"".concat(S,"-rtl"),"rtl"===k),n),_);return s.createElement(d.default,{insertExtraNode:!0},s.createElement(u.default,(0,a.default)({},b,{prefixCls:S,className:E,disabled:g||v,ref:t,loadingIcon:L})))}));v.__ANT_SWITCH=!0,v.displayName="Switch";var y=v;t.Z=y},3703:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(73119)),i=o(n(93231)),s=r(n(27378)),u=o(n(60042)),l=n(64222),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},d=function(e){var t,n=e.prefixCls,r=e.className,o=e.checked,d=e.onChange,f=e.onClick,p=c(e,["prefixCls","className","checked","onChange","onClick"]),m=(0,s.useContext(l.ConfigContext).getPrefixCls)("tag",n),h=(0,u.default)(m,(t={},(0,i.default)(t,"".concat(m,"-checkable"),!0),(0,i.default)(t,"".concat(m,"-checkable-checked"),o),t),r);return s.createElement("span",(0,a.default)({},p,{className:h,onClick:function(e){d&&d(!o),f&&f(e)}}))};t.default=d},89988:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(93231)),i=o(n(73119)),s=o(n(40131)),u=r(n(27378)),l=o(n(60042)),c=o(n(49811)),d=o(n(21473)),f=o(n(3703)),p=n(64222),m=n(3809),h=o(n(15587)),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},y=new RegExp("^(".concat(m.PresetColorTypes.join("|"),")(-inverse)?$")),_=new RegExp("^(".concat(m.PresetStatusColorTypes.join("|"),")$")),g=function(e,t){var n,r=e.prefixCls,o=e.className,f=e.style,m=e.children,g=e.icon,b=e.color,M=e.onClose,w=e.closeIcon,k=e.closable,x=void 0!==k&&k,S=v(e,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),L=u.useContext(p.ConfigContext),E=L.getPrefixCls,T=L.direction,C=u.useState(!0),O=(0,s.default)(C,2),P=O[0],D=O[1];u.useEffect((function(){"visible"in S&&D(S.visible)}),[S.visible]);var Y=function(){return!!b&&(y.test(b)||_.test(b))},j=(0,i.default)({backgroundColor:b&&!Y()?b:void 0},f),Z=Y(),N=E("tag",r),R=(0,l.default)(N,(n={},(0,a.default)(n,"".concat(N,"-").concat(b),Z),(0,a.default)(n,"".concat(N,"-has-color"),b&&!Z),(0,a.default)(n,"".concat(N,"-hidden"),!P),(0,a.default)(n,"".concat(N,"-rtl"),"rtl"===T),n),o),A=function(e){e.stopPropagation(),M&&M(e),e.defaultPrevented||"visible"in S||D(!1)},I="onClick"in S||m&&"a"===m.type,F=(0,c.default)(S,["visible"]),H=g||null,$=H?u.createElement(u.Fragment,null,H,u.createElement("span",null,m)):m,z=u.createElement("span",(0,i.default)({},F,{ref:t,className:R,style:j}),$,x?w?u.createElement("span",{className:"".concat(N,"-close-icon"),onClick:A},w):u.createElement(d.default,{className:"".concat(N,"-close-icon"),onClick:A}):null);return I?u.createElement(h.default,null,z):z},b=u.forwardRef(g);b.displayName="Tag",b.CheckableTag=f.default;var M=b;t.default=M},14339:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};t.default=n},62004:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(93231)),i=o(n(40131)),s=o(n(73119)),u=r(n(27378)),l=o(n(85669)),c=o(n(60042)),d=o(n(76767)),f=n(23182),p=n(64222),m=n(3809),h=new RegExp("^(".concat(m.PresetColorTypes.join("|"),")(-inverse)?$"));function v(e,t){var n=e.type;if((!0===n.__ANT_BUTTON||!0===n.__ANT_SWITCH||!0===n.__ANT_CHECKBOX||"button"===e.type)&&e.props.disabled){var r=function(e,t){var n={},r=(0,s.default)({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),o=r.picked,a=r.omitted,i=(0,s.default)((0,s.default)({display:"inline-block"},o),{cursor:"not-allowed",width:e.props.block?"100%":null}),l=(0,s.default)((0,s.default)({},a),{pointerEvents:"none"}),d=(0,f.cloneElement)(e,{style:l,className:null});return u.createElement("span",{style:i,className:(0,c.default)(e.props.className,"".concat(t,"-disabled-compatible-wrapper"))},d)}return e}var y=u.forwardRef((function(e,t){var n,r=u.useContext(p.ConfigContext),o=r.getPopupContainer,m=r.getPrefixCls,y=r.direction,_=u.useState(!!e.visible||!!e.defaultVisible),g=(0,i.default)(_,2),b=g[0],M=g[1];u.useEffect((function(){"visible"in e&&M(e.visible)}),[e.visible]);var w=function(){var t=e.title,n=e.overlay;return!t&&!n&&0!==t},k=function(){var t=e.builtinPlacements,n=e.arrowPointAtCenter,r=e.autoAdjustOverflow;return t||(0,d.default)({arrowPointAtCenter:n,autoAdjustOverflow:r})},x=e.prefixCls,S=e.openClassName,L=e.getPopupContainer,E=e.getTooltipContainer,T=e.overlayClassName,C=e.color,O=e.overlayInnerStyle,P=e.children,D=m("tooltip",x),Y=b;!("visible"in e)&&w()&&(Y=!1);var j,Z,N,R=v((0,f.isValidElement)(P)?P:u.createElement("span",null,P),D),A=R.props,I=(0,c.default)(A.className,(0,a.default)({},S||"".concat(D,"-open"),!0)),F=(0,c.default)(T,(n={},(0,a.default)(n,"".concat(D,"-rtl"),"rtl"===y),(0,a.default)(n,"".concat(D,"-").concat(C),C&&h.test(C)),n)),H=O;return C&&!h.test(C)&&(H=(0,s.default)((0,s.default)({},O),{background:C}),j={background:C}),u.createElement(l.default,(0,s.default)({},e,{prefixCls:D,overlayClassName:F,getTooltipContainer:L||E||o,ref:t,builtinPlacements:k(),overlay:(Z=e.title,N=e.overlay,0===Z?Z:N||Z||""),visible:Y,onVisibleChange:function(t){"visible"in e||M(!w()&&t),e.onVisibleChange&&!w()&&e.onVisibleChange(t)},onPopupAlign:function(e,t){var n=k(),r=Object.keys(n).filter((function(e){return n[e].points[0]===t.points[0]&&n[e].points[1]===t.points[1]}))[0];if(r){var o=e.getBoundingClientRect(),a={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?a.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(a.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?a.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(a.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(a.left," ").concat(a.top)}},overlayInnerStyle:H,arrowContent:u.createElement("span",{className:"".concat(D,"-arrow-content"),style:j})}),Y?(0,f.cloneElement)(R,{className:I}):R)}));y.displayName="Tooltip",y.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var _=y;t.default=_},76767:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.getOverflowOptions=l,t.default=function(e){var t=e.arrowWidth,n=void 0===t?5:t,r=e.horizontalArrowShift,i=void 0===r?16:r,s=e.verticalArrowShift,c=void 0===s?8:s,d=e.autoAdjustOverflow,f={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(i+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(c+n)]},topRight:{points:["br","tc"],offset:[i+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(c+n)]},bottomRight:{points:["tr","bc"],offset:[i+n,4]},rightBottom:{points:["bl","cr"],offset:[4,c+n]},bottomLeft:{points:["tl","bc"],offset:[-(i+n),4]},leftBottom:{points:["br","cl"],offset:[-4,c+n]}};return Object.keys(f).forEach((function(t){f[t]=e.arrowPointAtCenter?(0,o.default)((0,o.default)({},f[t]),{overflow:l(d),targetOffset:u}):(0,o.default)((0,o.default)({},a.placements[t]),{overflow:l(d)}),f[t].ignoreShake=!0})),f};var o=r(n(73119)),a=n(61188),i={adjustX:1,adjustY:1},s={adjustX:0,adjustY:0},u=[0,0];function l(e){return"boolean"==typeof e?e?i:s:(0,o.default)((0,o.default)({},s),e)}},60042:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},43023:function(e){var t=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(s){t=function(){}}try{n=Set}catch(s){n=function(){}}try{r=Promise}catch(s){r=function(){}}function o(a,s,u,l,c){"object"==typeof s&&(u=s.depth,l=s.prototype,c=s.includeNonEnumerable,s=s.circular);var d=[],f=[],p="undefined"!=typeof Buffer;return void 0===s&&(s=!0),void 0===u&&(u=1/0),function a(u,m){if(null===u)return null;if(0===m)return u;var h,v;if("object"!=typeof u)return u;if(e(u,t))h=new t;else if(e(u,n))h=new n;else if(e(u,r))h=new r((function(e,t){u.then((function(t){e(a(t,m-1))}),(function(e){t(a(e,m-1))}))}));else if(o.__isArray(u))h=[];else if(o.__isRegExp(u))h=new RegExp(u.source,i(u)),u.lastIndex&&(h.lastIndex=u.lastIndex);else if(o.__isDate(u))h=new Date(u.getTime());else{if(p&&Buffer.isBuffer(u))return h=Buffer.allocUnsafe?Buffer.allocUnsafe(u.length):new Buffer(u.length),u.copy(h),h;e(u,Error)?h=Object.create(u):void 0===l?(v=Object.getPrototypeOf(u),h=Object.create(v)):(h=Object.create(l),v=l)}if(s){var y=d.indexOf(u);if(-1!=y)return f[y];d.push(u),f.push(h)}for(var _ in e(u,t)&&u.forEach((function(e,t){var n=a(t,m-1),r=a(e,m-1);h.set(n,r)})),e(u,n)&&u.forEach((function(e){var t=a(e,m-1);h.add(t)})),u){var g;v&&(g=Object.getOwnPropertyDescriptor(v,_)),g&&null==g.set||(h[_]=a(u[_],m-1))}if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(u);for(_=0;_<b.length;_++){var M=b[_];(!(k=Object.getOwnPropertyDescriptor(u,M))||k.enumerable||c)&&(h[M]=a(u[M],m-1),k.enumerable||Object.defineProperty(h,M,{enumerable:!1}))}}if(c){var w=Object.getOwnPropertyNames(u);for(_=0;_<w.length;_++){var k,x=w[_];(k=Object.getOwnPropertyDescriptor(u,x))&&k.enumerable||(h[x]=a(u[x],m-1),Object.defineProperty(h,x,{enumerable:!1}))}}return h}(a,u)}function a(e){return Object.prototype.toString.call(e)}function i(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=a,o.__isDate=function(e){return"object"==typeof e&&"[object Date]"===a(e)},o.__isArray=function(e){return"object"==typeof e&&"[object Array]"===a(e)},o.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===a(e)},o.__getRegExpFlags=i,o}();e.exports&&(e.exports=t)},66471:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,a;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=r;0!=o--;){var i=a[o];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n}},15258:function(e){var t=[],n=[];function r(e,r){if(r=r||{},void 0===e)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var o,a=!0===r.prepend?"prepend":"append",i=void 0!==r.container?r.container:document.querySelector("head"),s=t.indexOf(i);return-1===s&&(s=t.push(i)-1,n[s]={}),void 0!==n[s]&&void 0!==n[s][a]?o=n[s][a]:(o=n[s][a]=function(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}(),"prepend"===a?i.insertBefore(o,i.childNodes[0]):i.appendChild(o)),65279===e.charCodeAt(0)&&(e=e.substr(1,e.length)),o.styleSheet?o.styleSheet.cssText+=e:o.textContent+=e,o}e.exports=r,e.exports.insertCss=r},11612:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType;t.Z=o},25127:function(e){"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,r,o,a,i,s,u,l,c,d){if(a&&"object"==typeof a&&!Array.isArray(a)){for(var f in r(a,i,s,u,l,c,d),a){var p=a[f];if(Array.isArray(p)){if(f in t.arrayKeywords)for(var m=0;m<p.length;m++)n(e,r,o,p[m],i+"/"+f+"/"+m,s,i,f,a,m)}else if(f in t.propsKeywords){if(p&&"object"==typeof p)for(var h in p)n(e,r,o,p[h],i+"/"+f+"/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),s,i,f,a,h)}else(f in t.keywords||e.allKeys&&!(f in t.skipKeywords))&&n(e,r,o,p,i+"/"+f,s,i,f,a)}o(a,i,s,u,l,c,d)}}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},48130:function(e,t,n){"use strict";n.d(t,{EK:function(){return p},HZ:function(){return ve},JH:function(){return d},RB:function(){return U},Ue:function(){return ye},_$:function(){return he},xE:function(){return G}});var r=n(25773),o=n(11612),a=n(91976),i=n(93219),s=n(47169),u=n(30808),l={}.constructor;function c(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(c);if(e.constructor!==l)return e;var t={};for(var n in e)t[n]=c(e[n]);return t}function d(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=c(t),a=r.plugins.onCreateRule(e,o,n);return a||(e[0],null)}var f=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},p=function(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=f(e[r]," ");else n=f(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n};function m(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function h(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,a=void 0===o?0:o,i=t.fallbacks;if(e&&a++,i)if(Array.isArray(i))for(var s=0;s<i.length;s++){var u=i[s];for(var l in u){var c=u[l];null!=c&&(r&&(r+="\n"),r+=m(l+": "+p(c)+";",a))}}else for(var d in i){var f=i[d];null!=f&&(r&&(r+="\n"),r+=m(d+": "+p(f)+";",a))}for(var h in t){var v=t[h];null!=v&&"fallbacks"!==h&&(r&&(r+="\n"),r+=m(h+": "+p(v)+";",a))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),m(e+" {"+r,--a)+m("}",a)):r}var v=/([[\].#*$><+~=|^:(),"'`\s])/g,y="undefined"!=typeof CSS&&CSS.escape,_=function(e){return y?y(e):e.replace(v,"\\$1")},g=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var a=null==o||!1===o,i=e in this.style;if(a&&!i&&!r)return this;var s=a&&i;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var u=this.options.sheet;return u&&u.attached,this},e}(),b=function(e){function t(t,n,r){var o;(o=e.call(this,t,n,r)||this).selectorText=void 0,o.id=void 0,o.renderable=void 0;var a=r.selector,i=r.scoped,u=r.sheet,l=r.generateId;return a?o.selectorText=a:!1!==i&&(o.id=l((0,s.Z)((0,s.Z)(o)),u),o.selectorText="."+_(o.id)),o}(0,i.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=p(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return h(this.selectorText,this.style,n)},(0,a.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(g),M={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new b(e,t,n)}},w={indent:1,children:!0},k=/@([\w-]+)/,x=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var o=e.match(k);for(var a in this.at=o?o[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new U((0,r.Z)({},n,{parent:this})),t)this.rules.add(a,t[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=w),null==e.indent&&(e.indent=w.indent),null==e.children&&(e.children=w.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),S=/@media|@supports\s+/,L={onCreateRule:function(e,t,n){return S.test(e)?new x(e,t,n):null}},E={indent:1,children:!0},T=/@keyframes\s+([\w-]+)/,C=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var o=e.match(T);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var a=n.scoped,i=n.sheet,s=n.generateId;for(var u in this.id=!1===a?this.name:_(s(this,i)),this.rules=new U((0,r.Z)({},n,{parent:this})),t)this.rules.add(u,t[u],(0,r.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=E),null==e.indent&&(e.indent=E.indent),null==e.children&&(e.children=E.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),O=/@keyframes\s+/,P=/\$([\w-]+)/g,D=function(e,t){return"string"==typeof e?e.replace(P,(function(e,n){return n in t?t[n]:e})):e},Y=function(e,t,n){var r=e[t],o=D(r,n);o!==r&&(e[t]=o)},j={onCreateRule:function(e,t,n){return"string"==typeof e&&O.test(e)?new C(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Y(e,"animation-name",n.keyframes),"animation"in e&&Y(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return D(e,r.keyframes);default:return e}}},Z=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).renderable=void 0,t}return(0,i.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return h(this.key,this.style,n)},t}(g),N={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Z(e,t,n):null}},R=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=h(this.at,this.style[n]),this.style[n+1]&&(t+="\n");return t}return h(this.at,this.style,e)},e}(),A=/@font-face/,I={onCreateRule:function(e,t,n){return A.test(e)?new R(e,t,n):null}},F=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return h(this.key,this.style,e)},e}(),H={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new F(e,t,n):null}},$=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),z={"@charset":!0,"@import":!0,"@namespace":!0},V=[M,L,j,N,I,H,{onCreateRule:function(e,t,n){return e in z?new $(e,t,n):null}}],W={process:!0},B={force:!0,process:!0},U=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var o=this.options,a=o.parent,i=o.sheet,s=o.jss,u=o.Renderer,l=o.generateId,c=o.scoped,f=(0,r.Z)({classes:this.classes,parent:a,sheet:i,jss:s,Renderer:u,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=t,p in this.classes&&(f.selector="."+_(this.classes[p]));var m=d(p,t,f);if(!m)return null;this.register(m);var h=void 0===f.index?this.index.length:f.index;return this.index.splice(h,0,m),m},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof b?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof C&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof b?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof C&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.map[e],t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=W);var o=this.options,a=o.jss.plugins,i=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t,u=s.style;if(a.onUpdate(n,t,i,r),r.process&&u&&u!==s.style){for(var l in a.onProcessStyle(s.style,s,i),s.style){var c=s.style[l];c!==u[l]&&s.prop(l,c,B)}for(var d in u){var f=s.style[d],p=u[d];null==f&&f!==p&&s.prop(d,null,B)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+="\n"),t+=a)}return t},e}(),K=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,r.Z)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new U(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),q=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),G=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,u.Z)(t,["attached"]),o="",a=0;a<this.registry.length;a++){var i=this.registry[a];null!=n&&i.attached!==n||(o&&(o+="\n"),o+=i.toString(r))}return o},(0,a.Z)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),J=new G,X="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Q="2f1acc6c3a606b082e5eef5e54414ffb";null==X[Q]&&(X[Q]=0);var ee=X[Q]++,te=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",a="";return r&&(r.options.classNamePrefix&&(a=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(a||"c")+ee+o+t:a+n.key+"-"+ee+(o?"-"+o:"")+"-"+t}},ne=function(e){var t;return function(){return t||(t=e()),t}},re=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},oe=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=p(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(o){return!1}return!0},ae=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},ie=function(e,t){return e.selectorText=t,e.selectorText===t},se=ne((function(){return document.querySelector("head")}));function ue(e){var t=J.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=se(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var le=ne((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),ce=function(e,t,n){try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(r){return!1}return e.cssRules[n]},de=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},fe=function(){function e(e){this.getPropertyValue=re,this.setProperty=oe,this.removeProperty=ae,this.setSelector=ie,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],e&&J.add(e),this.sheet=e;var t,n=this.sheet?this.sheet.options:{},r=n.media,o=n.meta,a=n.element;this.element=a||((t=document.createElement("style")).textContent="\n",t),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),o&&this.element.setAttribute("data-meta",o);var i=le();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=ue(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,a=o.parentNode;a&&a.insertBefore(e,o.nextSibling)}else se().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var a=de(n,t);if(!1===(o=ce(n,r.toString({children:!1}),a)))return!1;this.refCssRule(e,a,o)}return this.insertRules(r.rules,o),o}var i=e.toString();if(!i)return!1;var s=de(n,t),u=ce(n,i,s);return!1!==u&&(this.hasInsertedRules=!0,this.refCssRule(e,s,u),u)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof K&&(this.cssRules[t]=n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),pe=0,me=function(){function e(e){this.id=pe++,this.version="10.7.1",this.plugins=new q,this.options={id:{minify:!1},createGenerateId:te,Renderer:o.Z?fe:null,plugins:[]},this.generateId=te({minify:!1});for(var t=0;t<V.length;t++)this.plugins.use(V[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,r.Z)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===J.index?0:J.index+1);var o=new K(e,(0,r.Z)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(o),o},t.removeStyleSheet=function(e){return e.detach(),J.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var o=(0,r.Z)({},n,{name:e,jss:this,Renderer:this.options.Renderer});o.generateId||(o.generateId=this.generateId),o.classes||(o.classes={}),o.keyframes||(o.keyframes={});var a=d(e,t,o);return a&&this.plugins.onProcessRule(a),a},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}();function he(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var a=he(r);a&&(t||(t={}),t[n]=a)}}return t}var ve="object"==typeof CSS&&null!=CSS&&"number"in CSS,ye=function(e){return new me(e)};ye()},96497:function(e){e.exports=/<%=([\s\S]+?)%>/g},66169:function(e,t,n){e=n.nmd(e);var r=n(96497),o=n(87796),a=9007199254740991,i="[object Arguments]",s="[object Error]",u="[object Function]",l="[object Object]",c="[object Symbol]",d=/\b__p \+= '';/g,f=/\b(__p \+=) '' \+/g,p=/(__e\(.*?\)|\b__t\)) \+\n'';/g,m=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,h=/^\[object .+?Constructor\]$/,v=/^(?:0|[1-9]\d*)$/,y=/($^)/,_=/['\n\r\u2028\u2029\\]/g,g={};g["[object Float32Array]"]=g["[object Float64Array]"]=g["[object Int8Array]"]=g["[object Int16Array]"]=g["[object Int32Array]"]=g["[object Uint8Array]"]=g["[object Uint8ClampedArray]"]=g["[object Uint16Array]"]=g["[object Uint32Array]"]=!0,g[i]=g["[object Array]"]=g["[object ArrayBuffer]"]=g["[object Boolean]"]=g["[object DataView]"]=g["[object Date]"]=g[s]=g[u]=g["[object Map]"]=g["[object Number]"]=g[l]=g["[object RegExp]"]=g["[object Set]"]=g["[object String]"]=g["[object WeakMap]"]=!1;var b={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},M="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,w="object"==typeof self&&self&&self.Object===Object&&self,k=M||w||Function("return this")(),x=t&&!t.nodeType&&t,S=x&&e&&!e.nodeType&&e,L=S&&S.exports===x,E=L&&M.process,T=function(){try{var e=S&&S.require&&S.require("util").types;return e||E&&E.binding&&E.binding("util")}catch(t){}}(),C=T&&T.isTypedArray;function O(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function P(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function D(e){return"\\"+b[e]}function Y(e,t){return function(n){return e(t(n))}}var j,Z=Function.prototype,N=Object.prototype,R=k["__core-js_shared__"],A=Z.toString,I=N.hasOwnProperty,F=(j=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"",H=N.toString,$=A.call(Object),z=RegExp("^"+A.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=L?k.Buffer:void 0,W=k.Symbol,B=Y(Object.getPrototypeOf,Object),U=N.propertyIsEnumerable,K=W?W.toStringTag:void 0,q=function(){try{var e=function(e){return!(!Ee(e)||function(e){return!!F&&F in e}(e))&&(Se(e)?z:h).test(function(e){if(null!=e){try{return A.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}(t=function(e,t){return null==e?void 0:e[t]}(Object,"defineProperty"))?t:void 0;return e({},"",{}),e}catch(n){}var t}(),G=V?V.isBuffer:void 0,J=Y(Object.keys,Object),X=Math.max,Q=Date.now,ee=W?W.prototype:void 0,te=ee?ee.toString:void 0;function ne(e,t){var n=Me(e),r=!n&&be(e),o=!n&&!r&&ke(e),a=!n&&!r&&!o&&Ce(e),i=n||r||o||a,s=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var l in e)!t&&!I.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||fe(l,u))||s.push(l);return s}function re(e,t,n){var r=e[t];I.call(e,t)&&ge(r,n)&&(void 0!==n||t in e)||oe(e,t,n)}function oe(e,t,n){"__proto__"==t&&q?q(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ae(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":K&&K in Object(e)?function(e){var t=I.call(e,K),n=e[K];try{e[K]=void 0;var r=!0}catch(a){}var o=H.call(e);r&&(t?e[K]=n:delete e[K]);return o}(e):function(e){return H.call(e)}(e)}function ie(e){return Te(e)&&ae(e)==i}function se(e){if(!Ee(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=me(e),n=[];for(var r in e)("constructor"!=r||!t&&I.call(e,r))&&n.push(r);return n}function ue(e,t){return _e(function(e,t,n){return t=X(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=X(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(i),O(e,this,s)}}(e,t,je),e+"")}var le=q?function(e,t){return q(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:je;function ce(e){if("string"==typeof e)return e;if(Me(e))return P(e,ce)+"";if(function(e){return"symbol"==typeof e||Te(e)&&ae(e)==c}(e))return te?te.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}function de(e,t,n,r){return void 0===e||ge(e,N[n])&&!I.call(r,n)?t:e}function fe(e,t){var n=typeof e;return!!(t=null==t?a:t)&&("number"==n||"symbol"!=n&&v.test(e))&&e>-1&&e%1==0&&e<t}function pe(e,t,n){if(!Ee(n))return!1;var r=typeof t;return!!("number"==r?we(n)&&fe(t,n.length):"string"==r&&t in n)&&ge(n[t],e)}function me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||N)}var he,ve,ye,_e=(he=le,ve=0,ye=0,function(){var e=Q(),t=16-(e-ye);if(ye=e,t>0){if(++ve>=800)return arguments[0]}else ve=0;return he.apply(void 0,arguments)});function ge(e,t){return e===t||e!=e&&t!=t}var be=ie(function(){return arguments}())?ie:function(e){return Te(e)&&I.call(e,"callee")&&!U.call(e,"callee")},Me=Array.isArray;function we(e){return null!=e&&Le(e.length)&&!Se(e)}var ke=G||function(){return!1};function xe(e){if(!Te(e))return!1;var t=ae(e);return t==s||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!function(e){if(!Te(e)||ae(e)!=l)return!1;var t=B(e);if(null===t)return!0;var n=I.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&A.call(n)==$}(e)}function Se(e){if(!Ee(e))return!1;var t=ae(e);return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Le(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Ee(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Te(e){return null!=e&&"object"==typeof e}var Ce=C?function(e){return function(t){return e(t)}}(C):function(e){return Te(e)&&Le(e.length)&&!!g[ae(e)]};var Oe,Pe=(Oe=function(e,t,n,r){!function(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),o?oe(n,s,u):re(n,s,u)}}(t,function(e){return we(e)?ne(e,!0):se(e)}(t),e,r)},ue((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(o=Oe.length>3&&"function"==typeof o?(r--,o):void 0,a&&pe(t[0],t[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var i=t[n];i&&Oe(e,i,n,o)}return e})));function De(e){return we(e)?ne(e):function(e){if(!me(e))return J(e);var t=[];for(var n in Object(e))I.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var Ye=ue((function(e,t){try{return O(e,void 0,t)}catch(n){return xe(n)?n:new Error(n)}}));function je(e){return e}e.exports=function(e,t,n){var a,i=o.imports._.templateSettings||o;n&&pe(e,t,n)&&(t=void 0),e=null==(a=e)?"":ce(a),t=Pe({},t,i,de);var s,u,l,c=Pe({},t.imports,i.imports,de),h=De(c),v=(s=c,P(h,(function(e){return s[e]}))),g=0,b=t.interpolate||y,M="__p += '",w=RegExp((t.escape||y).source+"|"+b.source+"|"+(b===r?m:y).source+"|"+(t.evaluate||y).source+"|$","g"),k=I.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/[\r\n]/g," ")+"\n":"";e.replace(w,(function(t,n,r,o,a,i){return r||(r=o),M+=e.slice(g,i).replace(_,D),n&&(u=!0,M+="' +\n__e("+n+") +\n'"),a&&(l=!0,M+="';\n"+a+";\n__p += '"),r&&(M+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),g=i+t.length,t})),M+="';\n";var x=I.call(t,"variable")&&t.variable;x||(M="with (obj) {\n"+M+"\n}\n"),M=(l?M.replace(d,""):M).replace(f,"$1").replace(p,"$1;"),M="function("+(x||"obj")+") {\n"+(x?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(u?", __e = _.escape":"")+(l?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+M+"return __p\n}";var S=Ye((function(){return Function(h,k+"return "+M).apply(void 0,v)}));if(S.source=M,xe(S))throw S;return S}},87796:function(e,t,n){var r=n(96497),o="[object Symbol]",a=/[&<>"']/g,i=RegExp(a.source),s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,l=s||u||Function("return this")();var c,d=(c={"&":"&","<":"<",">":">",'"':""","'":"'"},function(e){return null==c?void 0:c[e]}),f=Object.prototype,p=f.hasOwnProperty,m=f.toString,h=l.Symbol,v=h?h.toStringTag:void 0,y=h?h.prototype:void 0,_=y?y.toString:void 0,g={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:r,variable:"",imports:{_:{escape:function(e){return(e=k(e))&&i.test(e)?e.replace(a,d):e}}}};function b(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":v&&v in Object(e)?function(e){var t=p.call(e,v),n=e[v];try{e[v]=void 0;var r=!0}catch(a){}var o=m.call(e);r&&(t?e[v]=n:delete e[v]);return o}(e):function(e){return m.call(e)}(e)}function M(e){if("string"==typeof e)return e;if(w(e))return function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(e,M)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&b(e)==o}(e))return _?_.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}var w=Array.isArray;function k(e){return null==e?"":M(e)}e.exports=g},82545:function(e,t,n){var r=n(81822)(n(77400),"DataView");e.exports=r},96586:function(e,t,n){var r=n(57753),o=n(82452),a=n(22115),i=n(38256),s=n(67426);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,e.exports=u},36301:function(e,t,n){var r=n(69417),o=n(72470),a=n(66165),i=n(71873),s=n(52556);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,e.exports=u},44538:function(e,t,n){var r=n(81822)(n(77400),"Map");e.exports=r},74554:function(e,t,n){var r=n(39448),o=n(7738),a=n(66575),i=n(7238),s=n(38738);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,e.exports=u},64825:function(e,t,n){var r=n(81822)(n(77400),"Promise");e.exports=r},46151:function(e,t,n){var r=n(81822)(n(77400),"Set");e.exports=r},52485:function(e,t,n){var r=n(74554),o=n(38639),a=n(88379);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},23694:function(e,t,n){var r=n(36301),o=n(7354),a=n(5863),i=n(12367),s=n(90748),u=n(97569);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=s,l.prototype.set=u,e.exports=l},96539:function(e,t,n){var r=n(77400).Symbol;e.exports=r},59942:function(e,t,n){var r=n(77400).Uint8Array;e.exports=r},66902:function(e,t,n){var r=n(81822)(n(77400),"WeakMap");e.exports=r},79349:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},80594:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},10263:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},58095:function(e,t,n){var r=n(8817);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},21796:function(e){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},98213:function(e,t,n){var r=n(24701),o=n(2900),a=n(19785),i=n(43854),s=n(42383),u=n(48519),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),c=!n&&o(e),d=!n&&!c&&i(e),f=!n&&!c&&!d&&u(e),p=n||c||d||f,m=p?r(e.length,String):[],h=m.length;for(var v in e)!t&&!l.call(e,v)||p&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,h))||m.push(v);return m}},66070:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},97141:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},6446:function(e){e.exports=function(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}},90756:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},85630:function(e){e.exports=function(e){return e.split("")}},40585:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},71928:function(e,t,n){var r=n(88799),o=n(85638),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];a.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},93382:function(e,t,n){var r=n(85638);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},41876:function(e,t,n){var r=n(35159),o=n(50098);e.exports=function(e,t){return e&&r(t,o(t),e)}},5947:function(e,t,n){var r=n(35159),o=n(13996);e.exports=function(e,t){return e&&r(t,o(t),e)}},88799:function(e,t,n){var r=n(42630);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},40699:function(e,t,n){var r=n(23694),o=n(80594),a=n(71928),i=n(41876),s=n(5947),u=n(2734),l=n(37561),c=n(31102),d=n(37048),f=n(51385),p=n(39759),m=n(3533),h=n(86541),v=n(2078),y=n(97635),_=n(19785),g=n(43854),b=n(98247),M=n(11611),w=n(47614),k=n(50098),x=n(13996),S="[object Arguments]",L="[object Function]",E="[object Object]",T={};T[S]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[E]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[L]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,C,O,P,D){var Y,j=1&n,Z=2&n,N=4&n;if(C&&(Y=P?C(t,O,P,D):C(t)),void 0!==Y)return Y;if(!M(t))return t;var R=_(t);if(R){if(Y=h(t),!j)return l(t,Y)}else{var A=m(t),I=A==L||"[object GeneratorFunction]"==A;if(g(t))return u(t,j);if(A==E||A==S||I&&!P){if(Y=Z||I?{}:y(t),!j)return Z?d(t,s(Y,t)):c(t,i(Y,t))}else{if(!T[A])return P?t:{};Y=v(t,A,j)}}D||(D=new r);var F=D.get(t);if(F)return F;D.set(t,Y),w(t)?t.forEach((function(r){Y.add(e(r,n,C,r,t,D))})):b(t)&&t.forEach((function(r,o){Y.set(o,e(r,n,C,o,t,D))}));var H=R?void 0:(N?Z?p:f:Z?x:k)(t);return o(H||t,(function(r,o){H&&(r=t[o=r]),a(Y,o,e(r,n,C,o,t,D))})),Y}},80158:function(e,t,n){var r=n(11611),o=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},11005:function(e,t,n){var r=n(52485),o=n(58095),a=n(21796),i=n(66070),s=n(39334),u=n(65581);e.exports=function(e,t,n,l){var c=-1,d=o,f=!0,p=e.length,m=[],h=t.length;if(!p)return m;n&&(t=i(t,s(n))),l?(d=a,f=!1):t.length>=200&&(d=u,f=!1,t=new r(t));e:for(;++c<p;){var v=e[c],y=null==n?v:n(v);if(v=l||0!==v?v:0,f&&y==y){for(var _=h;_--;)if(t[_]===y)continue e;m.push(v)}else d(t,y,l)||m.push(v)}return m}},95372:function(e){e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},23545:function(e,t,n){var r=n(97141),o=n(72889);e.exports=function e(t,n,a,i,s){var u=-1,l=t.length;for(a||(a=o),s||(s=[]);++u<l;){var c=t[u];n>0&&a(c)?n>1?e(c,n-1,a,i,s):r(s,c):i||(s[s.length]=c)}return s}},49819:function(e,t,n){var r=n(18911)();e.exports=r},26194:function(e,t,n){var r=n(49819),o=n(50098);e.exports=function(e,t){return e&&r(e,t,o)}},79867:function(e,t,n){var r=n(76747),o=n(37948);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},11324:function(e,t,n){var r=n(97141),o=n(19785);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},99736:function(e,t,n){var r=n(96539),o=n(34840),a=n(21258),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},21610:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},8817:function(e,t,n){var r=n(95372),o=n(1129),a=n(58263);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,o,n)}},55829:function(e,t,n){var r=n(99736),o=n(92360);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},32866:function(e,t,n){var r=n(12772),o=n(92360);e.exports=function e(t,n,a,i,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,s))}},12772:function(e,t,n){var r=n(23694),o=n(27042),a=n(370),i=n(39584),s=n(3533),u=n(19785),l=n(43854),c=n(48519),d="[object Arguments]",f="[object Array]",p="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,v,y){var _=u(e),g=u(t),b=_?f:s(e),M=g?f:s(t),w=(b=b==d?p:b)==p,k=(M=M==d?p:M)==p,x=b==M;if(x&&l(e)){if(!l(t))return!1;_=!0,w=!1}if(x&&!w)return y||(y=new r),_||c(e)?o(e,t,n,h,v,y):a(e,t,b,n,h,v,y);if(!(1&n)){var S=w&&m.call(e,"__wrapped__"),L=k&&m.call(t,"__wrapped__");if(S||L){var E=S?e.value():e,T=L?t.value():t;return y||(y=new r),v(E,T,n,h,y)}}return!!x&&(y||(y=new r),i(e,t,n,h,v,y))}},57657:function(e,t,n){var r=n(3533),o=n(92360);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},19850:function(e,t,n){var r=n(23694),o=n(32866);e.exports=function(e,t,n,a){var i=n.length,s=i,u=!a;if(null==e)return!s;for(e=Object(e);i--;){var l=n[i];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){var c=(l=n[i])[0],d=e[c],f=l[1];if(u&&l[2]){if(void 0===d&&!(c in e))return!1}else{var p=new r;if(a)var m=a(d,f,c,e,t,p);if(!(void 0===m?o(f,d,3,a,p):m))return!1}}return!0}},1129:function(e){e.exports=function(e){return e!=e}},46729:function(e,t,n){var r=n(28338),o=n(99678),a=n(11611),i=n(76532),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,d=l.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?f:s).test(i(e))}},26903:function(e,t,n){var r=n(3533),o=n(92360);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},26972:function(e,t,n){var r=n(99736),o=n(84194),a=n(92360),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},89278:function(e,t,n){var r=n(71410),o=n(57518),a=n(31137),i=n(19785),s=n(96001);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):r(e):s(e)}},20186:function(e,t,n){var r=n(56016),o=n(50962),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},59464:function(e,t,n){var r=n(11611),o=n(56016),a=n(21586),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&i.call(e,s))&&n.push(s);return n}},71410:function(e,t,n){var r=n(19850),o=n(68125),a=n(65042);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},57518:function(e,t,n){var r=n(32866),o=n(99729),a=n(79749),i=n(40318),s=n(68302),u=n(65042),l=n(37948);e.exports=function(e,t){return i(e)&&s(t)?u(l(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},63005:function(e,t,n){var r=n(10228),o=n(79749);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},10228:function(e,t,n){var r=n(79867),o=n(78859),a=n(76747);e.exports=function(e,t,n){for(var i=-1,s=t.length,u={};++i<s;){var l=t[i],c=r(e,l);n(c,l)&&o(u,a(l,e),c)}return u}},50517:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},10301:function(e,t,n){var r=n(79867);e.exports=function(e){return function(t){return r(t,e)}}},17646:function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},1197:function(e,t,n){var r=n(31137),o=n(11871),a=n(63132);e.exports=function(e,t){return a(o(e,t,r),e+"")}},78859:function(e,t,n){var r=n(71928),o=n(76747),a=n(42383),i=n(11611),s=n(37948);e.exports=function(e,t,n,u){if(!i(e))return e;for(var l=-1,c=(t=o(t,e)).length,d=c-1,f=e;null!=f&&++l<c;){var p=s(t[l]),m=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(l!=d){var h=f[p];void 0===(m=u?u(h,p,f):void 0)&&(m=i(h)?h:a(t[l+1])?[]:{})}r(f,p,m),f=f[p]}return e}},54459:function(e,t,n){var r=n(551),o=n(42630),a=n(31137),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},75733:function(e){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}},24701:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},34282:function(e,t,n){var r=n(96539),o=n(66070),a=n(19785),i=n(55193),s=r?r.prototype:void 0,u=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},39334:function(e){e.exports=function(e){return function(t){return e(t)}}},92198:function(e,t,n){var r=n(52485),o=n(58095),a=n(21796),i=n(65581),s=n(47111),u=n(43735);e.exports=function(e,t,n){var l=-1,c=o,d=e.length,f=!0,p=[],m=p;if(n)f=!1,c=a;else if(d>=200){var h=t?null:s(e);if(h)return u(h);f=!1,c=i,m=new r}else m=t?[]:p;e:for(;++l<d;){var v=e[l],y=t?t(v):v;if(v=n||0!==v?v:0,f&&y==y){for(var _=m.length;_--;)if(m[_]===y)continue e;t&&m.push(y),p.push(v)}else c(m,y,n)||(m!==p&&m.push(y),p.push(v))}return p}},70830:function(e,t,n){var r=n(76747),o=n(31159),a=n(64373),i=n(37948);e.exports=function(e,t){return t=r(t,e),null==(e=a(e,t))||delete e[i(o(t))]}},94135:function(e,t,n){var r=n(11005),o=n(23545),a=n(92198);e.exports=function(e,t,n){var i=e.length;if(i<2)return i?a(e[0]):[];for(var s=-1,u=Array(i);++s<i;)for(var l=e[s],c=-1;++c<i;)c!=s&&(u[s]=r(u[s]||l,e[c],t,n));return a(o(u,1),t,n)}},65581:function(e){e.exports=function(e,t){return e.has(t)}},76747:function(e,t,n){var r=n(19785),o=n(40318),a=n(23419),i=n(65567);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},39158:function(e,t,n){var r=n(75733);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},95825:function(e,t,n){var r=n(59942);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},2734:function(e,t,n){e=n.nmd(e);var r=n(77400),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},61859:function(e,t,n){var r=n(95825);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},9377:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},24116:function(e,t,n){var r=n(96539),o=r?r.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},63428:function(e,t,n){var r=n(95825);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},37561:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},35159:function(e,t,n){var r=n(71928),o=n(88799);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var l=t[s],c=a?a(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),i?o(n,l,c):r(n,l,c)}return n}},31102:function(e,t,n){var r=n(35159),o=n(83080);e.exports=function(e,t){return r(e,o(e),t)}},37048:function(e,t,n){var r=n(35159),o=n(30791);e.exports=function(e,t){return r(e,o(e),t)}},64937:function(e,t,n){var r=n(77400)["__core-js_shared__"];e.exports=r},18911:function(e){e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var u=i[e?s:++o];if(!1===n(a[u],u,a))break}return t}}},62690:function(e,t,n){var r=n(39158),o=n(25348),a=n(63528),i=n(65567);e.exports=function(e){return function(t){t=i(t);var n=o(t)?a(t):void 0,s=n?n[0]:t.charAt(0),u=n?r(n,1).join(""):t.slice(1);return s[e]()+u}}},68267:function(e,t,n){var r=n(6446),o=n(69689),a=n(93254),i=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return r(a(o(t).replace(i,"")),e,"")}}},47111:function(e,t,n){var r=n(46151),o=n(50344),a=n(43735),i=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=i},97820:function(e,t,n){var r=n(40861);e.exports=function(e){return r(e)?void 0:e}},4248:function(e,t,n){var r=n(17646)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"});e.exports=r},42630:function(e,t,n){var r=n(81822),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},27042:function(e,t,n){var r=n(52485),o=n(90756),a=n(65581);e.exports=function(e,t,n,i,s,u){var l=1&n,c=e.length,d=t.length;if(c!=d&&!(l&&d>c))return!1;var f=u.get(e),p=u.get(t);if(f&&p)return f==t&&p==e;var m=-1,h=!0,v=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++m<c;){var y=e[m],_=t[m];if(i)var g=l?i(_,y,m,t,e,u):i(y,_,m,e,t,u);if(void 0!==g){if(g)continue;h=!1;break}if(v){if(!o(t,(function(e,t){if(!a(v,t)&&(y===e||s(y,e,n,i,u)))return v.push(t)}))){h=!1;break}}else if(y!==_&&!s(y,_,n,i,u)){h=!1;break}}return u.delete(e),u.delete(t),h}},370:function(e,t,n){var r=n(96539),o=n(59942),a=n(85638),i=n(27042),s=n(19383),u=n(43735),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var m=1&r;if(p||(p=u),e.size!=t.size&&!m)return!1;var h=f.get(e);if(h)return h==t;r|=2,f.set(e,t);var v=i(p(e),p(t),r,l,d,f);return f.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},39584:function(e,t,n){var r=n(51385),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,s){var u=1&n,l=r(e),c=l.length;if(c!=r(t).length&&!u)return!1;for(var d=c;d--;){var f=l[d];if(!(u?f in t:o.call(t,f)))return!1}var p=s.get(e),m=s.get(t);if(p&&m)return p==t&&m==e;var h=!0;s.set(e,t),s.set(t,e);for(var v=u;++d<c;){var y=e[f=l[d]],_=t[f];if(a)var g=u?a(_,y,f,t,e,s):a(y,_,f,e,t,s);if(!(void 0===g?y===_||i(y,_,n,a,s):g)){h=!1;break}v||(v="constructor"==f)}if(h&&!v){var b=e.constructor,M=t.constructor;b==M||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof M&&M instanceof M||(h=!1)}return s.delete(e),s.delete(t),h}},24288:function(e,t,n){var r=n(89754),o=n(11871),a=n(63132);e.exports=function(e){return a(o(e,void 0,r),e+"")}},39120:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},51385:function(e,t,n){var r=n(11324),o=n(83080),a=n(50098);e.exports=function(e){return r(e,a,o)}},39759:function(e,t,n){var r=n(11324),o=n(30791),a=n(13996);e.exports=function(e){return r(e,a,o)}},95899:function(e,t,n){var r=n(54479);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},68125:function(e,t,n){var r=n(68302),o=n(50098);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},81822:function(e,t,n){var r=n(46729),o=n(15371);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},2173:function(e,t,n){var r=n(58023)(Object.getPrototypeOf,Object);e.exports=r},34840:function(e,t,n){var r=n(96539),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(u){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},83080:function(e,t,n){var r=n(10263),o=n(15937),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},30791:function(e,t,n){var r=n(97141),o=n(2173),a=n(83080),i=n(15937),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=o(e);return t}:i;e.exports=s},3533:function(e,t,n){var r=n(82545),o=n(44538),a=n(64825),i=n(46151),s=n(66902),u=n(99736),l=n(76532),c="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",m="[object DataView]",h=l(r),v=l(o),y=l(a),_=l(i),g=l(s),b=u;(r&&b(new r(new ArrayBuffer(1)))!=m||o&&b(new o)!=c||a&&b(a.resolve())!=d||i&&b(new i)!=f||s&&b(new s)!=p)&&(b=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case h:return m;case v:return c;case y:return d;case _:return f;case g:return p}return t}),e.exports=b},15371:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},731:function(e,t,n){var r=n(76747),o=n(2900),a=n(19785),i=n(42383),s=n(84194),u=n(37948);e.exports=function(e,t,n){for(var l=-1,c=(t=r(t,e)).length,d=!1;++l<c;){var f=u(t[l]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++l!=c?d:!!(c=null==e?0:e.length)&&s(c)&&i(f,c)&&(a(e)||o(e))}},25348:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},73909:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},57753:function(e,t,n){var r=n(35718);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},82452:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},22115:function(e,t,n){var r=n(35718),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},38256:function(e,t,n){var r=n(35718),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},67426:function(e,t,n){var r=n(35718);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},86541:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},2078:function(e,t,n){var r=n(95825),o=n(61859),a=n(9377),i=n(24116),s=n(63428);e.exports=function(e,t,n){var u=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new u(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(e);case"[object RegExp]":return a(e);case"[object Symbol]":return i(e)}}},97635:function(e,t,n){var r=n(80158),o=n(2173),a=n(56016);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},72889:function(e,t,n){var r=n(96539),o=n(2900),a=n(19785),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},42383:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},40318:function(e,t,n){var r=n(19785),o=n(55193),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},54479:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},99678:function(e,t,n){var r,o=n(64937),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},56016:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},68302:function(e,t,n){var r=n(11611);e.exports=function(e){return e==e&&!r(e)}},69417:function(e){e.exports=function(){this.__data__=[],this.size=0}},72470:function(e,t,n){var r=n(93382),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},66165:function(e,t,n){var r=n(93382);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},71873:function(e,t,n){var r=n(93382);e.exports=function(e){return r(this.__data__,e)>-1}},52556:function(e,t,n){var r=n(93382);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},39448:function(e,t,n){var r=n(96586),o=n(36301),a=n(44538);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},7738:function(e,t,n){var r=n(95899);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},66575:function(e,t,n){var r=n(95899);e.exports=function(e){return r(this,e).get(e)}},7238:function(e,t,n){var r=n(95899);e.exports=function(e){return r(this,e).has(e)}},38738:function(e,t,n){var r=n(95899);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},19383:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},65042:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},2941:function(e,t,n){var r=n(16651);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},35718:function(e,t,n){var r=n(81822)(Object,"create");e.exports=r},50962:function(e,t,n){var r=n(58023)(Object.keys,Object);e.exports=r},21586:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},18125:function(e,t,n){e=n.nmd(e);var r=n(39120),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=s},21258:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},58023:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},11871:function(e,t,n){var r=n(79349),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,s=o(a.length-t,0),u=Array(s);++i<s;)u[i]=a[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=a[i];return l[t]=n(u),r(e,this,l)}}},64373:function(e,t,n){var r=n(79867),o=n(75733);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},77400:function(e,t,n){var r=n(39120),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},38639:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},88379:function(e){e.exports=function(e){return this.__data__.has(e)}},43735:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},63132:function(e,t,n){var r=n(54459),o=n(49591)(r);e.exports=o},49591:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),a=16-(o-r);if(r=o,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7354:function(e,t,n){var r=n(36301);e.exports=function(){this.__data__=new r,this.size=0}},5863:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},12367:function(e){e.exports=function(e){return this.__data__.get(e)}},90748:function(e){e.exports=function(e){return this.__data__.has(e)}},97569:function(e,t,n){var r=n(36301),o=n(44538),a=n(74554);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},58263:function(e){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},63528:function(e,t,n){var r=n(85630),o=n(25348),a=n(84890);e.exports=function(e){return o(e)?a(e):r(e)}},23419:function(e,t,n){var r=n(2941),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)})),t}));e.exports=i},37948:function(e,t,n){var r=n(55193);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},76532:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},84890:function(e){var t="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+r+")"+"?",u="[\\ufe0e\\ufe0f]?",l=u+s+("(?:\\u200d(?:"+[o,a,i].join("|")+")"+u+s+")*"),c="(?:"+[o+n+"?",n,a,i,t].join("|")+")",d=RegExp(r+"(?="+r+")|"+c+l,"g");e.exports=function(e){return e.match(d)||[]}},97025:function(e){var t="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",r="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+o+"]",i="\\d+",s="[\\u2700-\\u27bf]",u="["+n+"]",l="[^\\ud800-\\udfff"+o+i+t+n+r+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+r+"]",p="(?:"+u+"|"+l+")",m="(?:"+f+"|"+l+")",h="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",v="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",_="[\\ufe0e\\ufe0f]?",g=_+y+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",c,d].join("|")+")"+_+y+")*"),b="(?:"+[s,c,d].join("|")+")"+g,M=RegExp([f+"?"+u+"+"+h+"(?="+[a,f,"$"].join("|")+")",m+"+"+v+"(?="+[a,f+p,"$"].join("|")+")",f+"?"+p+"+"+h,f+"+"+v,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,b].join("|"),"g");e.exports=function(e){return e.match(M)||[]}},13784:function(e,t,n){var r=n(40699);e.exports=function(e){return r(e,4)}},30454:function(e,t,n){var r=n(40699);e.exports=function(e){return r(e,5)}},551:function(e){e.exports=function(e){return function(){return e}}},69689:function(e,t,n){var r=n(4248),o=n(65567),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(a,r).replace(i,"")}},85638:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},89754:function(e,t,n){var r=n(23545);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},99729:function(e,t,n){var r=n(79867);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},79749:function(e,t,n){var r=n(21610),o=n(731);e.exports=function(e,t){return null!=e&&o(e,t,r)}},31137:function(e){e.exports=function(e){return e}},2900:function(e,t,n){var r=n(55829),o=n(92360),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},19785:function(e){var t=Array.isArray;e.exports=t},80068:function(e,t,n){var r=n(28338),o=n(84194);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},36468:function(e,t,n){var r=n(80068),o=n(92360);e.exports=function(e){return o(e)&&r(e)}},43854:function(e,t,n){e=n.nmd(e);var r=n(77400),o=n(57714),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;e.exports=u},90104:function(e,t,n){var r=n(20186),o=n(3533),a=n(2900),i=n(19785),s=n(80068),u=n(43854),l=n(56016),c=n(48519),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||a(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},56141:function(e,t,n){var r=n(32866);e.exports=function(e,t){return r(e,t)}},28338:function(e,t,n){var r=n(99736),o=n(11611);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},84194:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},98247:function(e,t,n){var r=n(57657),o=n(39334),a=n(18125),i=a&&a.isMap,s=i?o(i):r;e.exports=s},11611:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},92360:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},40861:function(e,t,n){var r=n(99736),o=n(2173),a=n(92360),i=Function.prototype,s=Object.prototype,u=i.toString,l=s.hasOwnProperty,c=u.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==c}},47614:function(e,t,n){var r=n(26903),o=n(39334),a=n(18125),i=a&&a.isSet,s=i?o(i):r;e.exports=s},55193:function(e,t,n){var r=n(99736),o=n(92360);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},48519:function(e,t,n){var r=n(26972),o=n(39334),a=n(18125),i=a&&a.isTypedArray,s=i?o(i):r;e.exports=s},50098:function(e,t,n){var r=n(98213),o=n(20186),a=n(80068);e.exports=function(e){return a(e)?r(e):o(e)}},13996:function(e,t,n){var r=n(98213),o=n(59464),a=n(80068);e.exports=function(e){return a(e)?r(e,!0):o(e)}},31159:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},1883:function(e,t,n){var r=n(68267)((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}));e.exports=r},25389:function(e,t,n){var r=n(88799),o=n(26194),a=n(89278);e.exports=function(e,t){var n={};return t=a(t,3),o(e,(function(e,o,a){r(n,o,t(e,o,a))})),n}},16651:function(e,t,n){var r=n(74554);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},50344:function(e){e.exports=function(){}},48159:function(e,t,n){var r=n(66070),o=n(40699),a=n(70830),i=n(76747),s=n(35159),u=n(97820),l=n(24288),c=n(39759),d=l((function(e,t){var n={};if(null==e)return n;var l=!1;t=r(t,(function(t){return t=i(t,e),l||(l=t.length>1),t})),s(e,c(e),n),l&&(n=o(n,7,u));for(var d=t.length;d--;)a(n,t[d]);return n}));e.exports=d},14648:function(e,t,n){var r=n(63005),o=n(24288)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},96001:function(e,t,n){var r=n(50517),o=n(10301),a=n(40318),i=n(37948);e.exports=function(e){return a(e)?r(i(e)):o(e)}},47215:function(e,t,n){var r=n(78859);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},96498:function(e,t,n){var r=n(78859);e.exports=function(e,t,n,o){return o="function"==typeof o?o:void 0,null==e?e:r(e,t,n,o)}},15937:function(e){e.exports=function(){return[]}},57714:function(e){e.exports=function(){return!1}},65567:function(e,t,n){var r=n(34282);e.exports=function(e){return null==e?"":r(e)}},76744:function(e,t,n){var r=n(62690)("toUpperCase");e.exports=r},93254:function(e,t,n){var r=n(40585),o=n(73909),a=n(65567),i=n(97025);e.exports=function(e,t,n){return e=a(e),void 0===(t=n?void 0:t)?o(e)?i(e):r(e):e.match(t)||[]}},20098:function(e,t,n){var r=n(10263),o=n(1197),a=n(94135),i=n(36468),s=o((function(e){return a(r(e,i))}));e.exports=s},17728:function(e,t,n){var r,o=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function o(e,t){if(!r[e]){r[e]={};for(var n=0;n<e.length;n++)r[e][e.charAt(n)]=n}return r[e][t]}var a={compressToBase64:function(e){if(null==e)return"";var n=a._compress(e,6,(function(e){return t.charAt(e)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:a._decompress(e.length,32,(function(n){return o(t,e.charAt(n))}))},compressToUTF16:function(t){return null==t?"":a._compress(t,15,(function(t){return e(t+32)}))+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:a._decompress(e.length,16384,(function(t){return e.charCodeAt(t)-32}))},compressToUint8Array:function(e){for(var t=a.compress(e),n=new Uint8Array(2*t.length),r=0,o=t.length;r<o;r++){var i=t.charCodeAt(r);n[2*r]=i>>>8,n[2*r+1]=i%256}return n},decompressFromUint8Array:function(t){if(null==t)return a.decompress(t);for(var n=new Array(t.length/2),r=0,o=n.length;r<o;r++)n[r]=256*t[2*r]+t[2*r+1];var i=[];return n.forEach((function(t){i.push(e(t))})),a.decompress(i.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":a._compress(e,6,(function(e){return n.charAt(e)}))},decompressFromEncodedURIComponent:function(e){return null==e?"":""==e?null:(e=e.replace(/ /g,"+"),a._decompress(e.length,32,(function(t){return o(n,e.charAt(t))})))},compress:function(t){return a._compress(t,16,(function(t){return e(t)}))},_compress:function(e,t,n){if(null==e)return"";var r,o,a,i={},s={},u="",l="",c="",d=2,f=3,p=2,m=[],h=0,v=0;for(a=0;a<e.length;a+=1)if(u=e.charAt(a),Object.prototype.hasOwnProperty.call(i,u)||(i[u]=f++,s[u]=!0),l=c+u,Object.prototype.hasOwnProperty.call(i,l))c=l;else{if(Object.prototype.hasOwnProperty.call(s,c)){if(c.charCodeAt(0)<256){for(r=0;r<p;r++)h<<=1,v==t-1?(v=0,m.push(n(h)),h=0):v++;for(o=c.charCodeAt(0),r=0;r<8;r++)h=h<<1|1&o,v==t-1?(v=0,m.push(n(h)),h=0):v++,o>>=1}else{for(o=1,r=0;r<p;r++)h=h<<1|o,v==t-1?(v=0,m.push(n(h)),h=0):v++,o=0;for(o=c.charCodeAt(0),r=0;r<16;r++)h=h<<1|1&o,v==t-1?(v=0,m.push(n(h)),h=0):v++,o>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[c]}else for(o=i[c],r=0;r<p;r++)h=h<<1|1&o,v==t-1?(v=0,m.push(n(h)),h=0):v++,o>>=1;0==--d&&(d=Math.pow(2,p),p++),i[l]=f++,c=String(u)}if(""!==c){if(Object.prototype.hasOwnProperty.call(s,c)){if(c.charCodeAt(0)<256){for(r=0;r<p;r++)h<<=1,v==t-1?(v=0,m.push(n(h)),h=0):v++;for(o=c.charCodeAt(0),r=0;r<8;r++)h=h<<1|1&o,v==t-1?(v=0,m.push(n(h)),h=0):v++,o>>=1}else{for(o=1,r=0;r<p;r++)h=h<<1|o,v==t-1?(v=0,m.push(n(h)),h=0):v++,o=0;for(o=c.charCodeAt(0),r=0;r<16;r++)h=h<<1|1&o,v==t-1?(v=0,m.push(n(h)),h=0):v++,o>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[c]}else for(o=i[c],r=0;r<p;r++)h=h<<1|1&o,v==t-1?(v=0,m.push(n(h)),h=0):v++,o>>=1;0==--d&&(d=Math.pow(2,p),p++)}for(o=2,r=0;r<p;r++)h=h<<1|1&o,v==t-1?(v=0,m.push(n(h)),h=0):v++,o>>=1;for(;;){if(h<<=1,v==t-1){m.push(n(h));break}v++}return m.join("")},decompress:function(e){return null==e?"":""==e?null:a._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var o,a,i,s,u,l,c,d=[],f=4,p=4,m=3,h="",v=[],y={val:r(0),position:n,index:1};for(o=0;o<3;o+=1)d[o]=o;for(i=0,u=Math.pow(2,2),l=1;l!=u;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),i|=(s>0?1:0)*l,l<<=1;switch(i){case 0:for(i=0,u=Math.pow(2,8),l=1;l!=u;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),i|=(s>0?1:0)*l,l<<=1;c=e(i);break;case 1:for(i=0,u=Math.pow(2,16),l=1;l!=u;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),i|=(s>0?1:0)*l,l<<=1;c=e(i);break;case 2:return""}for(d[3]=c,a=c,v.push(c);;){if(y.index>t)return"";for(i=0,u=Math.pow(2,m),l=1;l!=u;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),i|=(s>0?1:0)*l,l<<=1;switch(c=i){case 0:for(i=0,u=Math.pow(2,8),l=1;l!=u;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),i|=(s>0?1:0)*l,l<<=1;d[p++]=e(i),c=p-1,f--;break;case 1:for(i=0,u=Math.pow(2,16),l=1;l!=u;)s=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),i|=(s>0?1:0)*l,l<<=1;d[p++]=e(i),c=p-1,f--;break;case 2:return v.join("")}if(0==f&&(f=Math.pow(2,m),m++),d[c])h=d[c];else{if(c!==p)return null;h=a+a.charAt(0)}v.push(h),d[p++]=a+h.charAt(0),a=h,0==--f&&(f=Math.pow(2,m),m++)}}};return a}();void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)},28622:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUGGESTED_EVALUATE=t.DEFAULT_ESCAPE=t.DEFAULT_INTERPOLATE=void 0;var r=a(n(66169)),o=a(n(13651));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=t.DEFAULT_INTERPOLATE=/{{{([^{}#][\s\S]+?)}}}/g,p=t.DEFAULT_ESCAPE=/{{([^{}#][\s\S]+?)}}/g,m=(t.SUGGESTED_EVALUATE=/{{#([^{}].*?)}}/g,function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.escape,r=t.evaluate,o=t.initialLanguage,a=t.interpolate,i=t.messages,s=t.tracker;l(this,e),this.language=o||e.language||"en",this.messageList=i||{},s&&(this.tracker=s,this.trackerDep=new s.Dependency),this.interpolate=a||e.interpolate||f,this.evaluate=r||e.evaluate,this.escape=n||e.escape||p}var t,n,a;return t=e,n=[{key:"clone",value:function(){var t=new e({escape:this.escape,evaluate:this.evaluate,initialLanguage:this.language,interpolate:this.interpolate,tracker:this.tracker});return t.messages(this.messageList),t}},{key:"getMessages",value:function(t){t||(t=this.language,this.trackerDep&&this.trackerDep.depend());var n=e.messages[t],r=this.messageList[t];if(r?n&&(r=(0,o.default)({},n,r)):r=n,!r)throw new Error('No messages found for language "'.concat(t,'"'));return{messages:r,language:t}}},{key:"message",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.context,a=n.language;if(t.message)return t.message;var s=t.name,l=e.makeNameGeneric(s),c=this.getMessages(a),d=c.messages,f=d[t.type],p=u({genericName:l},o,{},t);return f&&"object"===i(f)&&(f=f[l]||f._default),"string"==typeof f&&(f=(0,r.default)(f,{interpolate:this.interpolate,evaluate:this.evaluate,escape:this.escape})),"function"!=typeof f?"".concat(s," is invalid"):f(p)}},{key:"messages",value:function(e){(0,o.default)(this.messageList,e)}},{key:"setLanguage",value:function(e){this.language=e,this.trackerDep&&this.trackerDep.changed()}}],a=[{key:"makeNameGeneric",value:function(e){return"string"!=typeof e?null:e.replace(/\.[0-9]+(?=\.|$)/g,".$")}},{key:"defaults",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.escape,r=t.evaluate,a=t.initialLanguage,i=t.interpolate,s=t.messages;"string"==typeof a&&(e.language=a),i instanceof RegExp&&(e.interpolate=i),r instanceof RegExp&&(e.evaluate=r),n instanceof RegExp&&(e.escape=n),s&&(e.messages||(e.messages={}),(0,o.default)(e.messages,s))}}],n&&c(t.prototype,n),a&&c(t,a),e}());d(m,"messages",{}),t.default=m},13651:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((function(n){Object.keys(n).forEach((function(r){n[r]&&n[r].constructor&&n[r].constructor===Object?(t[r]&&t[r].constructor&&t[r].constructor===Object||(t[r]={}),e(t[r],n[r])):t[r]=n[r]}))})),t}},1009:function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(61320))},23739:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},r=function(e){return function(r,o,a,i){var s=t(r),u=n[e][t(r)];return 2===s&&(u=u[o?0:1]),u.replace(/%d/i,r)}},o=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-dz",{months:o,monthsShort:o,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(n(61320))},93745:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(n(61320))},99576:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},o=function(e){return function(t,o,a,i){var s=n(t),u=r[e][n(t)];return 2===s&&(u=u[o?0:1]),u.replace(/%d/i,t)}},a=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(61320))},67408:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(n(61320))},48781:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return n[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(n(61320))},87856:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(n(61320))},88769:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},o={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},a=function(e){return function(t,n,a,i){var s=r(t),u=o[e][r(t)];return 2===s&&(u=u[n?0:1]),u.replace(/%d/i,t)}},i=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar",{months:i,monthsShort:i,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return n[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(61320))},2030:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gec\u0259":e<12?"s\u0259h\u0259r":e<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-\u0131nc\u0131";var n=e%10,r=e%100-n,o=e>=100?100:null;return e+(t[n]||t[r]||t[o])},week:{dow:1,doy:7}})}(n(61320))},56476:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===r?n?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":e+" "+t({ss:n?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:n?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:n?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[r],+e)}e.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:n,mm:n,h:n,hh:n,d:"\u0434\u0437\u0435\u043d\u044c",dd:n,M:"\u043c\u0435\u0441\u044f\u0446",MM:n,y:"\u0433\u043e\u0434",yy:n},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u044b":e<12?"\u0440\u0430\u043d\u0456\u0446\u044b":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-\u044b":e+"-\u0456";case"D":return e+"-\u0433\u0430";default:return e}},week:{dow:1,doy:7}})}(n(61320))},25304:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(61320))},48125:function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(61320))},29835:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t?e<4?e:e+12:"\u09ad\u09cb\u09b0"===t||"\u09b8\u0995\u09be\u09b2"===t?e:"\u09a6\u09c1\u09aa\u09c1\u09b0"===t?e>=3?e:e+12:"\u09ac\u09bf\u0995\u09be\u09b2"===t||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<6?"\u09ad\u09cb\u09b0":e<12?"\u09b8\u0995\u09be\u09b2":e<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<18?"\u09ac\u09bf\u0995\u09be\u09b2":e<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n(61320))},34:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t&&e>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===t&&e<5||"\u09ac\u09bf\u0995\u09be\u09b2"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<10?"\u09b8\u0995\u09be\u09b2":e<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n(61320))},64082:function(e,t,n){!function(e){"use strict";var t={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},n={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===t&&e>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===t&&e<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":e<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":e<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":e<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(n(61320))},8317:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+o({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function r(e){return e>9?r(e%10):e}function o(e,t){return 2===t?a(e):e}function a(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var i=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],s=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,u=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,l=/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,c=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],d=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],f=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:f,fullWeekdaysParse:c,shortWeekdaysParse:d,minWeekdaysParse:f,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:u,monthsShortStrictRegex:l,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(61320))},93107:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(61320))},68272:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(61320))},98567:function(e,t,n){!function(e){"use strict";var t={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},n="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),r=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],o=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function a(e){return e>1&&e<5&&1!=~~(e/10)}function i(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return t||r?o+(a(e)?"sekundy":"sekund"):o+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?o+(a(e)?"minuty":"minut"):o+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?o+(a(e)?"hodiny":"hodin"):o+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?o+(a(e)?"dny":"dn\xed"):o+"dny";case"M":return t||r?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return t||r?o+(a(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):o+"m\u011bs\xedci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?o+(a(e)?"roky":"let"):o+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},61583:function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(e){return e+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(e)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(e)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(n(61320))},10076:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(61320))},31760:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},63214:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},74728:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},8973:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?o[n][0]:o[n][1]}e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},54053:function(e,t,n){!function(e){"use strict";var t=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],n=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(e){return"\u0789\u078a"===e},meridiem:function(e,t,n){return e<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(n(61320))},7499:function(e,t,n){!function(e){"use strict";function t(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}e.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(e,t,n){return e>11?n?"\u03bc\u03bc":"\u039c\u039c":n?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(e){return"\u03bc"===(e+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(e,n){var r=this._calendarEl[e],o=n&&n.hours();return t(r)&&(r=r.apply(n)),r.replace("{}",o%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(n(61320))},67876:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(61320))},47010:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(61320))},34239:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(61320))},99830:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(61320))},28438:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(61320))},25322:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(61320))},43264:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(61320))},55449:function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(61320))},39486:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(61320))},16310:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(61320))},27038:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(n(61320))},73099:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(n(61320))},32430:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(n(61320))},34975:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[e+" minuti",e+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[e+" tunni",e+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[e+" kuu",e+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[e+" aasta",e+" aastat"]};return t?o[n][2]?o[n][2]:o[n][1]:r?o[n][0]:o[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d p\xe4eva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},87063:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(61320))},68073:function(e,t,n){!function(e){"use strict";var t={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},n={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,n){return e<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/[\u06f0-\u06f9]/g,(function(e){return n[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(n(61320))},50957:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),n=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",t[7],t[8],t[9]];function r(e,t,n,r){var a="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":a=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":a=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":a=r?"tunnin":"tuntia";break;case"d":return r?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":a=r?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return r?"kuukauden":"kuukausi";case"MM":a=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":a=r?"vuoden":"vuotta"}return a=o(e,r)+" "+a}function o(e,r){return e<10?r?n[e]:t[e]:e}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},8764:function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(61320))},81775:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},14306:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(61320))},73791:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(61320))},74179:function(e,t,n){!function(e){"use strict";var t=/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,n=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,r=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,o=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(61320))},47014:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(61320))},46911:function(e,t,n){!function(e){"use strict";var t=["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],n=["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],r=["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],o=["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],a=["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"];e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:o,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(61320))},62958:function(e,t,n){!function(e){"use strict";var t=["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],n=["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],r=["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],o=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],a=["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"];e.defineLocale("gd",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:o,weekdaysMin:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(61320))},87344:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(61320))},33161:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[e+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",e+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[e+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",e+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[e+" \u0935\u0930\u093e\u0902\u0928\u0940",e+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[e+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",e+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[e+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",e+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[e+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",e+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return r?o[n][0]:o[n][1]}e.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(e,t){return"D"===t?e+"\u0935\u0947\u0930":e},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u0940"===t?e<4?e:e+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===t?e:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===t?e>12?e:e+12:"\u0938\u093e\u0902\u091c\u0947"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924\u0940":e<12?"\u0938\u0915\u093e\u0933\u0940\u0902":e<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":e<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(n(61320))},35798:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?o[n][0]:o[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(61320))},68485:function(e,t,n){!function(e){"use strict";var t={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},n={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0ab0\u0abe\u0aa4"===t?e<4?e:e+12:"\u0ab8\u0ab5\u0abe\u0ab0"===t?e:"\u0aac\u0aaa\u0acb\u0ab0"===t?e>=10?e:e+12:"\u0ab8\u0abe\u0a82\u0a9c"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0ab0\u0abe\u0aa4":e<10?"\u0ab8\u0ab5\u0abe\u0ab0":e<17?"\u0aac\u0aaa\u0acb\u0ab0":e<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(n(61320))},27917:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(e){return 2===e?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":e+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(e){return 2===e?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":e+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(e){return 2===e?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":e+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(e){return 2===e?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":e%10==0&&10!==e?e+" \u05e9\u05e0\u05d4":e+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,t,n){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?n?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?n?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(n(61320))},52159:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},r=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i],o=[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i];e.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:r,longMonthsParse:r,shortMonthsParse:o,monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924"===t?e<4?e:e+12:"\u0938\u0941\u092c\u0939"===t?e:"\u0926\u094b\u092a\u0939\u0930"===t?e>=10?e:e+12:"\u0936\u093e\u092e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924":e<10?"\u0938\u0941\u092c\u0939":e<17?"\u0926\u094b\u092a\u0939\u0930":e<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(n(61320))},95842:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(61320))},30005:function(e,t,n){!function(e){"use strict";var t="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function n(e,t,n,r){var o=e;switch(n){case"s":return r||t?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return o+(r||t)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return o+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" \xf3ra":" \xf3r\xe1ja");case"hh":return o+(r||t?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return o+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" h\xf3nap":" h\xf3napja");case"MM":return o+(r||t?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(r||t?" \xe9v":" \xe9ve");case"yy":return o+(r||t?" \xe9v":" \xe9ve")}return""}function r(e){return(e?"":"[m\xfalt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},51312:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":e<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":e<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-\u056b\u0576":e+"-\u0580\u0564";default:return e}},week:{dow:1,doy:7}})}(n(61320))},60781:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(61320))},64101:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,o){var a=e+" ";switch(r){case"s":return n||o?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return t(e)?a+(n||o?"sek\xfandur":"sek\xfandum"):a+"sek\xfanda";case"m":return n?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return t(e)?a+(n||o?"m\xedn\xfatur":"m\xedn\xfatum"):n?a+"m\xedn\xfata":a+"m\xedn\xfatu";case"hh":return t(e)?a+(n||o?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(o?"daga":"d\xf6gum"):n?a+"dagur":a+(o?"dag":"degi");case"M":return n?"m\xe1nu\xf0ur":o?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return t(e)?n?a+"m\xe1nu\xf0ir":a+(o?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):n?a+"m\xe1nu\xf0ur":a+(o?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return n||o?"\xe1r":"\xe1ri";case"yy":return t(e)?a+(n||o?"\xe1r":"\xe1rum"):a+(n||o?"\xe1r":"\xe1ri")}}e.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},4759:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(61320))},43467:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(61320))},44164:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(e,t){return"\u5143"===t[1]?1:parseInt(t[1]||e,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"\u5348\u5f8c"===e},meridiem:function(e,t,n){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(e){return this.week()!==e.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,t){switch(t){case"y":return 1===e?"\u5143\u5e74":e+"\u5e74";case"d":case"D":case"DDD":return e+"\u65e5";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(n(61320))},70079:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(61320))},57036:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,(function(e,t,n){return"\u10d8"===n?t+"\u10e8\u10d8":t+n+"\u10e8\u10d8"}))},past:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e)?e.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(e)?e.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):e},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(e){return 0===e?e:1===e?e+"-\u10da\u10d8":e<20||e<=100&&e%20==0||e%100==0?"\u10db\u10d4-"+e:e+"-\u10d4"},week:{dow:1,doy:7}})}(n(61320))},92022:function(e,t,n){!function(e){"use strict";var t={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};e.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(61320))},63418:function(e,t,n){!function(e){"use strict";var t={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},n={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(e){return"\u179b\u17d2\u1784\u17b6\u1785"===e},meridiem:function(e,t,n){return e<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(61320))},43655:function(e,t,n){!function(e){"use strict";var t={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},n={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===t?e<4?e:e+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===t?e:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===t?e>=10?e:e+12:"\u0cb8\u0c82\u0c9c\u0cc6"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":e<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":e<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":e<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(n(61320))},30986:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\uc77c";case"M":return e+"\uc6d4";case"w":case"W":return e+"\uc8fc";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"\uc624\ud6c4"===e},meridiem:function(e,t,n){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(n(61320))},91902:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},r=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,n){return e<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(e){return n[e]})).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n(61320))},4604:function(e,t,n){!function(e){"use strict";var t={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};e.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(61320))},99026:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?o[n][0]:o[n][1]}function n(e){return o(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function r(e){return o(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function o(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return o(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return o(e)}return o(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:r,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d M\xe9int",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},20537:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===e},meridiem:function(e,t,n){return e<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(e){return"\u0e97\u0eb5\u0ec8"+e}})}(n(61320))},22288:function(e,t,n){!function(e){"use strict";var t={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function n(e,t,n,r){return t?"kelios sekund\u0117s":r?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"}function r(e,t,n,r){return t?a(n)[0]:r?a(n)[1]:a(n)[2]}function o(e){return e%10==0||e>10&&e<20}function a(e){return t[e].split("_")}function i(e,t,n,i){var s=e+" ";return 1===e?s+r(e,t,n[0],i):t?s+(o(e)?a(n)[1]:a(n)[0]):i?s+a(n)[1]:s+(o(e)?a(n)[1]:a(n)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:n,ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(61320))},1495:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,o){return e+" "+n(t[o],e,r)}function o(e,r,o){return n(t[o],e,r)}function a(e,t){return t?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"}e.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:a,ss:r,m:o,mm:r,h:o,hh:r,d:o,dd:r,M:o,MM:r,y:o,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},60690:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var o=t.words[r];return 1===r.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(61320))},2571:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(61320))},93959:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n(61320))},97225:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===t&&e>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===t||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":e<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":e<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":e<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(n(61320))},88:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){switch(n){case"s":return t?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return e+(t?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return e+(t?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return e+(t?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return e+(t?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return e+(t?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return e+(t?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return e}}e.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(e){return"\u04ae\u0425"===e},meridiem:function(e,t,n){return e<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" \u04e9\u0434\u04e9\u0440";default:return e}}})}(n(61320))},46622:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function r(e,t,n,r){var o="";if(t)switch(n){case"s":o="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":o="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":o="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":o="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":o="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":o="%d \u0924\u093e\u0938";break;case"d":o="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":o="%d \u0926\u093f\u0935\u0938";break;case"M":o="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":o="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":o="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":o="%d \u0935\u0930\u094d\u0937\u0947"}else switch(n){case"s":o="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":o="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":o="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":o="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":o="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":o="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":o="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":o="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":o="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":o="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":o="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":o="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return o.replace(/%d/i,e)}e.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u092a\u0939\u093e\u091f\u0947"===t||"\u0938\u0915\u093e\u0933\u0940"===t?e:"\u0926\u0941\u092a\u093e\u0930\u0940"===t||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===t||"\u0930\u093e\u0924\u094d\u0930\u0940"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"\u092a\u0939\u093e\u091f\u0947":e<12?"\u0938\u0915\u093e\u0933\u0940":e<17?"\u0926\u0941\u092a\u093e\u0930\u0940":e<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(n(61320))},48899:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(61320))},11070:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(61320))},63931:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(61320))},95393:function(e,t,n){!function(e){"use strict";var t={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},n={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(61320))},4274:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},8914:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u093f"===t?e<4?e:e+12:"\u092c\u093f\u0939\u093e\u0928"===t?e:"\u0926\u093f\u0909\u0901\u0938\u094b"===t?e>=10?e:e+12:"\u0938\u093e\u0901\u091d"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"\u0930\u093e\u0924\u093f":e<12?"\u092c\u093f\u0939\u093e\u0928":e<16?"\u0926\u093f\u0909\u0901\u0938\u094b":e<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(n(61320))},68479:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(61320))},33114:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(61320))},4513:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},46549:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(61320))},28264:function(e,t,n){!function(e){"use strict";var t={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},n={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0a30\u0a3e\u0a24"===t?e<4?e:e+12:"\u0a38\u0a35\u0a47\u0a30"===t?e:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===t?e>=10?e:e+12:"\u0a38\u0a3c\u0a3e\u0a2e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0a30\u0a3e\u0a24":e<10?"\u0a38\u0a35\u0a47\u0a30":e<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":e<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(n(61320))},32848:function(e,t,n){!function(e){"use strict";var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function o(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function a(e,t,n){var r=e+" ";switch(n){case"ss":return r+(o(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return r+(o(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return r+(o(e)?"godziny":"godzin");case"ww":return r+(o(e)?"tygodnie":"tygodni");case"MM":return r+(o(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return r+(o(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:a,m:a,mm:a,h:a,hh:a,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:a,M:"miesi\u0105c",MM:a,y:"rok",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},55077:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(n(61320))},90899:function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n(61320))},92512:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:t,m:"un minut",mm:t,h:"o or\u0103",hh:t,d:"o zi",dd:t,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:t,M:"o lun\u0103",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(61320))},21753:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+t({ss:n?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:n?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[r],+e)}var r=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:n,m:n,mm:n,h:"\u0447\u0430\u0441",hh:n,d:"\u0434\u0435\u043d\u044c",dd:n,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:n,M:"\u043c\u0435\u0441\u044f\u0446",MM:n,y:"\u0433\u043e\u0434",yy:n},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043e";case"w":case"W":return e+"-\u044f";default:return e}},week:{dow:1,doy:4}})}(n(61320))},16840:function(e,t,n){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],n=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(61320))},78362:function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},50464:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"\u0db4.\u0dc0."===e||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===e},meridiem:function(e,t,n){return e>11?n?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":n?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(n(61320))},66324:function(e,t,n){!function(e){"use strict";var t="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),n="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function o(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return t||o?a+(r(e)?"sekundy":"sek\xfand"):a+"sekundami";case"m":return t?"min\xfata":o?"min\xfatu":"min\xfatou";case"mm":return t||o?a+(r(e)?"min\xfaty":"min\xfat"):a+"min\xfatami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?a+(r(e)?"hodiny":"hod\xedn"):a+"hodinami";case"d":return t||o?"de\u0148":"d\u0148om";case"dd":return t||o?a+(r(e)?"dni":"dn\xed"):a+"d\u0148ami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?a+(r(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?a+(r(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},41963:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return o+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return o+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return o+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return o+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return o+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return o+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(61320))},53039:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},10466:function(e,t,n){!function(e){"use strict";var t={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,r,o){var a,i=t.words[r];return 1===r.length?"y"===r&&n?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":o||n?i[0]:i[1]:(a=t.correctGrammaticalCase(e,i),"yy"===r&&n&&"\u0433\u043e\u0434\u0438\u043d\u0443"===a?e+" \u0433\u043e\u0434\u0438\u043d\u0430":e+" "+a)}};e.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(61320))},93454:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,r,o){var a,i=t.words[r];return 1===r.length?"y"===r&&n?"jedna godina":o||n?i[0]:i[1]:(a=t.correctGrammaticalCase(e,i),"yy"===r&&n&&"godinu"===a?e+" godina":e+" "+a)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(61320))},95158:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(61320))},28859:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(61320))},57594:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(61320))},26915:function(e,t,n){!function(e){"use strict";var t={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},n={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(e){return e+"\u0bb5\u0ba4\u0bc1"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(e,t,n){return e<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":e<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":e<10?" \u0b95\u0bbe\u0bb2\u0bc8":e<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":e<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":e<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(e,t){return 12===e&&(e=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===t?e<2?e:e+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===t||"\u0b95\u0bbe\u0bb2\u0bc8"===t||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(61320))},15677:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===t?e<4?e:e+12:"\u0c09\u0c26\u0c2f\u0c02"===t?e:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===t?e>=10?e:e+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":e<10?"\u0c09\u0c26\u0c2f\u0c02":e<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":e<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(n(61320))},92154:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(61320))},74098:function(e,t,n){!function(e){"use strict";var t={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};e.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0448\u0430\u0431"===t?e<4?e:e+12:"\u0441\u0443\u0431\u04b3"===t?e:"\u0440\u04ef\u0437"===t?e>=11?e:e+12:"\u0431\u0435\u0433\u043e\u04b3"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0448\u0430\u0431":e<11?"\u0441\u0443\u0431\u04b3":e<16?"\u0440\u04ef\u0437":e<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(61320))},89071:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===e},meridiem:function(e,t,n){return e<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(n(61320))},49381:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10,o=e%100-r,a=e>=100?100:null;return e+(t[r]||t[o]||t[a])}},week:{dow:1,doy:7}})}(n(61320))},1869:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(61320))},92346:function(e,t,n){!function(e){"use strict";var t="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"}function r(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu\u2019":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"}function o(e,t,n,r){var o=a(e);switch(n){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}function a(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),o=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),r>0&&(a+=(""!==a?" ":"")+t[r]+"maH"),o>0&&(a+=(""!==a?" ":"")+t[o]),""===a?"pagh":a}e.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:r,s:"puS lup",ss:o,m:"wa\u2019 tup",mm:o,h:"wa\u2019 rep",hh:o,d:"wa\u2019 jaj",dd:o,M:"wa\u2019 jar",MM:o,y:"wa\u2019 DIS",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},71483:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"\xf6\xf6":"\xd6\xd6":n?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(e){return"\xf6s"===e||"\xd6S"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'\u0131nc\u0131";var r=e%10,o=e%100-r,a=e>=100?100:null;return e+(t[r]||t[o]||t[a])}},week:{dow:1,doy:7}})}(n(61320))},30266:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var o={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[e+" m\xeduts",e+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[e+" \xfeoras",e+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?o[n][0]:o[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(61320))},32960:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(61320))},33138:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(n(61320))},29456:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===t||"\u0633\u06d5\u06be\u06d5\u0631"===t||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===t?e:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===t||"\u0643\u06d5\u0686"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":r<900?"\u0633\u06d5\u06be\u06d5\u0631":r<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":r<1230?"\u0686\u06c8\u0634":r<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return e+"-\u06be\u06d5\u067e\u062a\u06d5";default:return e}},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(n(61320))},50805:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===r?n?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":e+" "+t({ss:n?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:n?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:n?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[r],+e)}function r(e,t){var n={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative}function o(e){return function(){return e+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:r,weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:o("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:o("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:o("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:o("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return o("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return o("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:n,m:n,mm:n,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:n,d:"\u0434\u0435\u043d\u044c",dd:n,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:n,y:"\u0440\u0456\u043a",yy:n},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0456":e<12?"\u0440\u0430\u043d\u043a\u0443":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043e";default:return e}},week:{dow:1,doy:7}})}(n(61320))},61127:function(e,t,n){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],n=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n(61320))},80840:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(61320))},29628:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(n(61320))},56962:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(61320))},49257:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(61320))},62423:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(n(61320))},61002:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"\u51cc\u6668":r<900?"\u65e9\u4e0a":r<1130?"\u4e0a\u5348":r<1230?"\u4e2d\u5348":r<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(e){return e.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(e){return this.week()!==e.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u5468";default:return e}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(n(61320))},6046:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"\u51cc\u6668":r<900?"\u65e9\u4e0a":r<1200?"\u4e0a\u5348":1200===r?"\u4e2d\u5348":r<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n(61320))},36903:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"\u51cc\u6668":r<900?"\u65e9\u4e0a":r<1130?"\u4e0a\u5348":r<1230?"\u4e2d\u5348":r<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n(61320))},24710:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"\u51cc\u6668":r<900?"\u65e9\u4e0a":r<1130?"\u4e0a\u5348":r<1230?"\u4e2d\u5348":r<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n(61320))},61320:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function a(e){t=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(u(e,t))return!1;return!0}function c(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function m(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return qn(e,t,n,r,!0).utc()}function v(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){return null==e._pf&&(e._pf=v()),e._pf}function _(e){if(null==e._isValid){var t=y(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function g(e){var t=h(NaN);return null!=e?m(y(t),e):y(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=o.momentProperties=[],M=!1;function w(e,t){var n,r,o,a=b.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=y(t)),c(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)c(o=t[r=b[n]])||(e[r]=o);return e}function k(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===M&&(M=!0,o.updateOffset(this),M=!1)}function x(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function S(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function L(e,t){var n=!0;return m((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var r,a,i,s=[],l=arguments.length;for(a=0;a<l;a++){if(r="","object"==typeof arguments[a]){for(i in r+="\n["+a+"] ",arguments[0])u(arguments[0],i)&&(r+=i+": "+arguments[0][i]+", ");r=r.slice(0,-2)}else r=arguments[a];s.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var E,T={};function C(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),T[e]||(S(t),T[e]=!0)}function O(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e){var t,n;for(n in e)u(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function D(e,t){var n,r=m({},e);for(n in t)u(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},m(r[n],e[n]),m(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)u(e,n)&&!u(t,n)&&s(e[n])&&(r[n]=m({},r[n]));return r}function Y(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,E=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var j={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Z(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r}function N(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},F={};function H(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(F[e]=o),t&&(F[t[0]]=function(){return N(o.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function $(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function z(e){var t,n,r=e.match(R);for(t=0,n=r.length;t<n;t++)F[r[t]]?r[t]=F[r[t]]:r[t]=$(r[t]);return function(t){var o,a="";for(o=0;o<n;o++)a+=O(r[o])?r[o].call(t,e):r[o];return a}}function V(e,t){return e.isValid()?(t=W(t,e.localeData()),I[t]=I[t]||z(t),I[t](e)):e.localeData().invalidDate()}function W(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(A.lastIndex=0;n>=0&&A.test(e);)e=e.replace(A,r),A.lastIndex=0,n-=1;return e}var B={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function U(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var K="Invalid date";function q(){return this._invalidDate}var G="%d",J=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,r){var o=this._relativeTime[n];return O(o)?o(e,t,n,r):o.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)}var ne={};function re(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function oe(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function ae(e){var t,n,r={};for(n in e)u(e,n)&&(t=oe(n))&&(r[t]=e[n]);return r}var ie={};function se(e,t){ie[e]=t}function ue(e){var t,n=[];for(t in e)u(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4==0&&e%100!=0||e%400==0}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}function fe(e,t){return function(n){return null!=n?(me(this,e,n),o.updateOffset(this,t),this):pe(this,e)}}function pe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=de(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function he(e){return O(this[e=oe(e)])?this[e]():this}function ve(e,t){if("object"==typeof e){var n,r=ue(e=ae(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(O(this[e=oe(e)]))return this[e](t);return this}var ye,_e=/\d/,ge=/\d\d/,be=/\d{3}/,Me=/\d{4}/,we=/[+-]?\d{6}/,ke=/\d\d?/,xe=/\d\d\d\d?/,Se=/\d\d\d\d\d\d?/,Le=/\d{1,3}/,Ee=/\d{1,4}/,Te=/[+-]?\d{1,6}/,Ce=/\d+/,Oe=/[+-]?\d+/,Pe=/Z|[+-]\d\d:?\d\d/gi,De=/Z|[+-]\d\d(?::?\d\d)?/gi,Ye=/[+-]?\d+(\.\d{1,3})?/,je=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ze(e,t,n){ye[e]=O(t)?t:function(e,r){return e&&n?n:t}}function Ne(e,t){return u(ye,e)?ye[e](t._strict,t._locale):new RegExp(Re(e))}function Re(e){return Ae(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o})))}function Ae(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var Ie={};function Fe(e,t){var n,r,o=t;for("string"==typeof e&&(e=[e]),d(t)&&(o=function(e,n){n[t]=de(e)}),r=e.length,n=0;n<r;n++)Ie[e[n]]=o}function He(e,t){Fe(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function $e(e,t,n){null!=t&&u(Ie,e)&&Ie[e](t,n._a,n,e)}var ze,Ve=0,We=1,Be=2,Ue=3,Ke=4,qe=5,Ge=6,Je=7,Xe=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?le(e)?29:28:31-n%7%2}ze=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},H("M",["MM",2],"Mo",(function(){return this.month()+1})),H("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),H("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),re("month","M"),se("month",8),Ze("M",ke),Ze("MM",ke,ge),Ze("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ze("MMMM",(function(e,t){return t.monthsRegex(e)})),Fe(["M","MM"],(function(e,t){t[We]=de(e)-1})),Fe(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[We]=o:y(n).invalidMonth=e}));var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ot=je,at=je;function it(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone}function st(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ut(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=ze.call(this._shortMonthsParse,i))?o:null:-1!==(o=ze.call(this._longMonthsParse,i))?o:null:"MMM"===t?-1!==(o=ze.call(this._shortMonthsParse,i))||-1!==(o=ze.call(this._longMonthsParse,i))?o:null:-1!==(o=ze.call(this._longMonthsParse,i))||-1!==(o=ze.call(this._shortMonthsParse,i))?o:null}function lt(e,t,n){var r,o,a;if(this._monthsParseExact)return ut.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ct(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=de(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function dt(e){return null!=e?(ct(this,e),o.updateOffset(this,!0),this):pe(this,"Month")}function ft(){return et(this.year(),this.month())}function pt(e){return this._monthsParseExact?(u(this,"_monthsRegex")||ht.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=ot),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function mt(e){return this._monthsParseExact?(u(this,"_monthsRegex")||ht.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=at),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ht(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],a=[];for(t=0;t<12;t++)n=h([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),a.sort(e),t=0;t<12;t++)r[t]=Ae(r[t]),o[t]=Ae(o[t]);for(t=0;t<24;t++)a[t]=Ae(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function vt(e){return le(e)?366:365}H("Y",0,0,(function(){var e=this.year();return e<=9999?N(e,4):"+"+e})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),re("year","y"),se("year",1),Ze("Y",Oe),Ze("YY",ke,ge),Ze("YYYY",Ee,Me),Ze("YYYYY",Te,we),Ze("YYYYYY",Te,we),Fe(["YYYYY","YYYYYY"],Ve),Fe("YYYY",(function(e,t){t[Ve]=2===e.length?o.parseTwoDigitYear(e):de(e)})),Fe("YY",(function(e,t){t[Ve]=o.parseTwoDigitYear(e)})),Fe("Y",(function(e,t){t[Ve]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var yt=fe("FullYear",!0);function _t(){return le(this.year())}function gt(e,t,n,r,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,a,i),s}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Mt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function wt(e,t,n,r,o){var a,i,s=1+7*(t-1)+(7+n-r)%7+Mt(e,r,o);return s<=0?i=vt(a=e-1)+s:s>vt(e)?(a=e+1,i=s-vt(e)):(a=e,i=s),{year:a,dayOfYear:i}}function kt(e,t,n){var r,o,a=Mt(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?r=i+xt(o=e.year()-1,t,n):i>xt(e.year(),t,n)?(r=i-xt(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function xt(e,t,n){var r=Mt(e,t,n),o=Mt(e+1,t,n);return(vt(e)-r+o)/7}function St(e){return kt(e,this._week.dow,this._week.doy).week}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),re("week","w"),re("isoWeek","W"),se("week",5),se("isoWeek",5),Ze("w",ke),Ze("ww",ke,ge),Ze("W",ke),Ze("WW",ke,ge),He(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=de(e)}));var Lt={dow:0,doy:6};function Et(){return this._week.dow}function Tt(){return this._week.doy}function Ct(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ot(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Dt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Yt(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("d",0,"do","day"),H("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),H("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),H("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),re("day","d"),re("weekday","e"),re("isoWeekday","E"),se("day",11),se("weekday",11),se("isoWeekday",11),Ze("d",ke),Ze("e",ke),Ze("E",ke),Ze("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ze("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ze("dddd",(function(e,t){return t.weekdaysRegex(e)})),He(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:y(n).invalidWeekday=e})),He(["d","e","E"],(function(e,t,n,r){t[r]=de(e)}));var jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Zt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rt=je,At=je,It=je;function Ft(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Yt(n,this._week.dow):e?n[e.day()]:n}function Ht(e){return!0===e?Yt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function $t(e){return!0===e?Yt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zt(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ze.call(this._weekdaysParse,i))?o:null:"ddd"===t?-1!==(o=ze.call(this._shortWeekdaysParse,i))?o:null:-1!==(o=ze.call(this._minWeekdaysParse,i))?o:null:"dddd"===t?-1!==(o=ze.call(this._weekdaysParse,i))||-1!==(o=ze.call(this._shortWeekdaysParse,i))||-1!==(o=ze.call(this._minWeekdaysParse,i))?o:null:"ddd"===t?-1!==(o=ze.call(this._shortWeekdaysParse,i))||-1!==(o=ze.call(this._weekdaysParse,i))||-1!==(o=ze.call(this._minWeekdaysParse,i))?o:null:-1!==(o=ze.call(this._minWeekdaysParse,i))||-1!==(o=ze.call(this._weekdaysParse,i))||-1!==(o=ze.call(this._shortWeekdaysParse,i))?o:null}function Vt(e,t,n){var r,o,a;if(this._weekdaysParseExact)return zt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Pt(e,this.localeData()),this.add(e-t,"d")):t}function Bt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ut(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Dt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Kt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Rt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=At),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Gt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Jt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=It),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jt(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=Ae(this.weekdaysMin(n,"")),o=Ae(this.weekdaysShort(n,"")),a=Ae(this.weekdays(n,"")),i.push(r),s.push(o),u.push(a),l.push(r),l.push(o),l.push(a);i.sort(e),s.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function en(e,t){H(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,Xt),H("k",["kk",2],0,Qt),H("hmm",0,0,(function(){return""+Xt.apply(this)+N(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+Xt.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),en("a",!0),en("A",!1),re("hour","h"),se("hour",13),Ze("a",tn),Ze("A",tn),Ze("H",ke),Ze("h",ke),Ze("k",ke),Ze("HH",ke,ge),Ze("hh",ke,ge),Ze("kk",ke,ge),Ze("hmm",xe),Ze("hmmss",Se),Ze("Hmm",xe),Ze("Hmmss",Se),Fe(["H","HH"],Ue),Fe(["k","kk"],(function(e,t,n){var r=de(e);t[Ue]=24===r?0:r})),Fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Fe(["h","hh"],(function(e,t,n){t[Ue]=de(e),y(n).bigHour=!0})),Fe("hmm",(function(e,t,n){var r=e.length-2;t[Ue]=de(e.substr(0,r)),t[Ke]=de(e.substr(r)),y(n).bigHour=!0})),Fe("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ue]=de(e.substr(0,r)),t[Ke]=de(e.substr(r,2)),t[qe]=de(e.substr(o)),y(n).bigHour=!0})),Fe("Hmm",(function(e,t,n){var r=e.length-2;t[Ue]=de(e.substr(0,r)),t[Ke]=de(e.substr(r))})),Fe("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Ue]=de(e.substr(0,r)),t[Ke]=de(e.substr(r,2)),t[qe]=de(e.substr(o))}));var rn=/[ap]\.?m?\.?/i,on=fe("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,un={calendar:j,longDateFormat:B,invalidDate:K,ordinal:G,dayOfMonthOrdinalParse:J,relativeTime:Q,months:tt,monthsShort:nt,week:Lt,weekdays:jt,weekdaysMin:Nt,weekdaysShort:Zt,meridiemParse:rn},ln={},cn={};function dn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function fn(e){return e?e.toLowerCase().replace("_","-"):e}function pn(e){for(var t,n,r,o,a=0;a<e.length;){for(t=(o=fn(e[a]).split("-")).length,n=(n=fn(e[a+1]))?n.split("-"):null;t>0;){if(r=hn(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&dn(o,n)>=t-1)break;t--}a++}return sn}function mn(e){return null!=e.match("^[^/\\\\]*$")}function hn(t){var r=null;if(void 0===ln[t]&&e&&e.exports&&mn(t))try{r=sn._abbr,n(95126)("./"+t),vn(r)}catch(o){ln[t]=null}return ln[t]}function vn(e,t){var n;return e&&((n=c(t)?gn(e):yn(e,t))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function yn(e,t){if(null!==t){var n,r=un;if(t.abbr=e,null!=ln[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return cn[t.parentLocale]||(cn[t.parentLocale]=[]),cn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new Y(D(r,t)),cn[e]&&cn[e].forEach((function(e){yn(e.name,e.config)})),vn(e),ln[e]}return delete ln[e],null}function _n(e,t){if(null!=t){var n,r,o=un;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(D(ln[e]._config,t)):(null!=(r=hn(e))&&(o=r._config),t=D(o,t),null==r&&(t.abbr=e),(n=new Y(t)).parentLocale=ln[e],ln[e]=n),vn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===vn()&&vn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function gn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!i(e)){if(t=hn(e))return t;e=[e]}return pn(e)}function bn(){return E(ln)}function Mn(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[We]<0||n[We]>11?We:n[Be]<1||n[Be]>et(n[Ve],n[We])?Be:n[Ue]<0||n[Ue]>24||24===n[Ue]&&(0!==n[Ke]||0!==n[qe]||0!==n[Ge])?Ue:n[Ke]<0||n[Ke]>59?Ke:n[qe]<0||n[qe]>59?qe:n[Ge]<0||n[Ge]>999?Ge:-1,y(e)._overflowDayOfYear&&(t<Ve||t>Be)&&(t=Be),y(e)._overflowWeeks&&-1===t&&(t=Je),y(e)._overflowWeekday&&-1===t&&(t=Xe),y(e).overflow=t),e}var wn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ln=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,Tn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Cn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function On(e){var t,n,r,o,a,i,s=e._i,u=wn.exec(s)||kn.exec(s),l=Sn.length,c=Ln.length;if(u){for(y(e).iso=!0,t=0,n=l;t<n;t++)if(Sn[t][1].exec(u[1])){o=Sn[t][0],r=!1!==Sn[t][2];break}if(null==o)return void(e._isValid=!1);if(u[3]){for(t=0,n=c;t<n;t++)if(Ln[t][1].exec(u[3])){a=(u[2]||" ")+Ln[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(u[4]){if(!xn.exec(u[4]))return void(e._isValid=!1);i="Z"}e._f=o+(a||"")+(i||""),$n(e)}else e._isValid=!1}function Pn(e,t,n,r,o,a){var i=[Dn(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return a&&i.push(parseInt(a,10)),i}function Dn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Yn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jn(e,t,n){return!e||Zt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Zn(e,t,n){if(e)return Cn[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}function Nn(e){var t,n=Tn.exec(Yn(e._i));if(n){if(t=Pn(n[4],n[3],n[2],n[5],n[6],n[7]),!jn(n[1],t,e))return;e._a=t,e._tzm=Zn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function Rn(e){var t=En.exec(e._i);null===t?(On(e),!1===e._isValid&&(delete e._isValid,Nn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:o.createFromInputFallback(e)))):e._d=new Date(+t[1])}function An(e,t,n){return null!=e?e:null!=t?t:n}function In(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Fn(e){var t,n,r,o,a,i=[];if(!e._d){for(r=In(e),e._w&&null==e._a[Be]&&null==e._a[We]&&Hn(e),null!=e._dayOfYear&&(a=An(e._a[Ve],r[Ve]),(e._dayOfYear>vt(a)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=bt(a,0,e._dayOfYear),e._a[We]=n.getUTCMonth(),e._a[Be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=i[t]=r[t];for(;t<7;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ue]&&0===e._a[Ke]&&0===e._a[qe]&&0===e._a[Ge]&&(e._nextDay=!0,e._a[Ue]=0),e._d=(e._useUTC?bt:gt).apply(null,i),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ue]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(y(e).weekdayMismatch=!0)}}function Hn(e){var t,n,r,o,a,i,s,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,i=4,n=An(t.GG,e._a[Ve],kt(Gn(),1,4).year),r=An(t.W,1),((o=An(t.E,1))<1||o>7)&&(u=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,l=kt(Gn(),a,i),n=An(t.gg,e._a[Ve],l.year),r=An(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(u=!0)):o=a),r<1||r>xt(n,a,i)?y(e)._overflowWeeks=!0:null!=u?y(e)._overflowWeekday=!0:(s=wt(n,r,o,a,i),e._a[Ve]=s.year,e._dayOfYear=s.dayOfYear)}function $n(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],y(e).empty=!0;var t,n,r,a,i,s,u,l=""+e._i,c=l.length,d=0;for(u=(r=W(e._f,e._locale).match(R)||[]).length,t=0;t<u;t++)a=r[t],(n=(l.match(Ne(a,e))||[])[0])&&((i=l.substr(0,l.indexOf(n))).length>0&&y(e).unusedInput.push(i),l=l.slice(l.indexOf(n)+n.length),d+=n.length),F[a]?(n?y(e).empty=!1:y(e).unusedTokens.push(a),$e(a,n,e)):e._strict&&!n&&y(e).unusedTokens.push(a);y(e).charsLeftOver=c-d,l.length>0&&y(e).unusedInput.push(l),e._a[Ue]<=12&&!0===y(e).bigHour&&e._a[Ue]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[Ue]=zn(e._locale,e._a[Ue],e._meridiem),null!==(s=y(e).era)&&(e._a[Ve]=e._locale.erasConvertYear(s,e._a[Ve])),Fn(e),Mn(e)}else Nn(e);else On(e)}function zn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Vn(e){var t,n,r,o,a,i,s=!1,u=e._f.length;if(0===u)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<u;o++)a=0,i=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],$n(t),_(t)&&(i=!0),a+=y(t).charsLeftOver,a+=10*y(t).unusedTokens.length,y(t).score=a,s?a<r&&(r=a,n=t):(null==r||a<r||i)&&(r=a,n=t,i&&(s=!0));m(e,n||t)}function Wn(e){if(!e._d){var t=ae(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Fn(e)}}function Bn(e){var t=new k(Mn(Un(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Un(e){var t=e._i,n=e._f;return e._locale=e._locale||gn(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new k(Mn(t)):(f(t)?e._d=t:i(n)?Vn(e):n?$n(e):Kn(e),_(e)||(e._d=null),e))}function Kn(e){var t=e._i;c(t)?e._d=new Date(o.now()):f(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Rn(e):i(t)?(e._a=p(t.slice(0),(function(e){return parseInt(e,10)})),Fn(e)):s(t)?Wn(e):d(t)?e._d=new Date(t):o.createFromInputFallback(e)}function qn(e,t,n,r,o){var a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&l(e)||i(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=o,a._l=n,a._i=e,a._f=t,a._strict=r,Bn(a)}function Gn(e,t,n,r){return qn(e,t,n,r,!1)}o.createFromInputFallback=L("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var Jn=L("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Xn=L("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Qn(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Gn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function er(){return Qn("isBefore",[].slice.call(arguments,0))}function tr(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function or(e){var t,n,r=!1,o=rr.length;for(t in e)if(u(e,t)&&(-1===ze.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[rr[n]]){if(r)return!1;parseFloat(e[rr[n]])!==de(e[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function ir(){return Cr(NaN)}function sr(e){var t=ae(e),n=t.year||0,r=t.quarter||0,o=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=or(t),this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+i+7*a,this._months=+o+3*r+12*n,this._data={},this._locale=gn(),this._bubble()}function ur(e){return e instanceof sr}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cr(e,t,n){var r,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&de(e[r])!==de(t[r]))&&i++;return i+a}function dr(e,t){H(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)}))}dr("Z",":"),dr("ZZ",""),Ze("Z",De),Ze("ZZ",De),Fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=pr(De,e)}));var fr=/([\+\-]|\d\d)/gi;function pr(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(fr)||["-",0,0])[1]+de(n[2]))?0:"+"===n[0]?r:-r}function mr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(x(e)||f(e)?e.valueOf():Gn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),o.updateOffset(n,!1),n):Gn(e).local()}function hr(e){return-Math.round(e._d.getTimezoneOffset())}function vr(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=pr(De,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=hr(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?jr(this,Cr(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:hr(this)}function yr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function _r(e){return this.utcOffset(0,e)}function gr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=pr(Pe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Mr(e){return!!this.isValid()&&(e=e?Gn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function wr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function kr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=Un(t))._a?(e=t._isUTC?h(t._a):Gn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xr(){return!!this.isValid()&&!this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC}function Lr(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Tr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Cr(e,t){var n,r,o,a=e,i=null;return ur(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(i=Er.exec(e))?(n="-"===i[1]?-1:1,a={y:0,d:de(i[Be])*n,h:de(i[Ue])*n,m:de(i[Ke])*n,s:de(i[qe])*n,ms:de(lr(1e3*i[Ge]))*n}):(i=Tr.exec(e))?(n="-"===i[1]?-1:1,a={y:Or(i[2],n),M:Or(i[3],n),w:Or(i[4],n),d:Or(i[5],n),h:Or(i[6],n),m:Or(i[7],n),s:Or(i[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(o=Dr(Gn(a.from),Gn(a.to)),(a={}).ms=o.milliseconds,a.M=o.months),r=new sr(a),ur(e)&&u(e,"_locale")&&(r._locale=e._locale),ur(e)&&u(e,"_isValid")&&(r._isValid=e._isValid),r}function Or(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Pr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Dr(e,t){var n;return e.isValid()&&t.isValid()?(t=mr(t,e),e.isBefore(t)?n=Pr(e,t):((n=Pr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Yr(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),jr(this,Cr(n,r),e),this}}function jr(e,t,n,r){var a=t._milliseconds,i=lr(t._days),s=lr(t._months);e.isValid()&&(r=null==r||r,s&&ct(e,pe(e,"Month")+s*n),i&&me(e,"Date",pe(e,"Date")+i*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&o.updateOffset(e,i||s))}Cr.fn=sr.prototype,Cr.invalid=ir;var Zr=Yr(1,"add"),Nr=Yr(-1,"subtract");function Rr(e){return"string"==typeof e||e instanceof String}function Ar(e){return x(e)||f(e)||Rr(e)||d(e)||Fr(e)||Ir(e)||null==e}function Ir(e){var t,n,r=s(e)&&!l(e),o=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i=a.length;for(t=0;t<i;t+=1)n=a[t],o=o||u(e,n);return r&&o}function Fr(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&Rr(e)})).length),t&&n}function Hr(e){var t,n,r=s(e)&&!l(e),o=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],o=o||u(e,n);return r&&o}function $r(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function zr(e,t){1===arguments.length&&(arguments[0]?Ar(arguments[0])?(e=arguments[0],t=void 0):Hr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Gn(),r=mr(n,this).startOf("day"),a=o.calendarFormat(this,r)||"sameElse",i=t&&(O(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,Gn(n)))}function Vr(){return new k(this)}function Wr(e,t){var n=x(e)?e:Gn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=oe(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Br(e,t){var n=x(e)?e:Gn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=oe(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Ur(e,t,n,r){var o=x(e)?e:Gn(e),a=x(t)?t:Gn(t);return!!(this.isValid()&&o.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Kr(e,t){var n,r=x(e)?e:Gn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=oe(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function qr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Gr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Jr(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=mr(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=oe(t)){case"year":a=Xr(this,r)/12;break;case"month":a=Xr(this,r);break;case"quarter":a=Xr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:ce(a)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function eo(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function to(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,o="moment",a="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function no(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)}function ro(e,t){return this.isValid()&&(x(e)&&e.isValid()||Gn(e).isValid())?Cr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oo(e){return this.from(Gn(),e)}function ao(e,t){return this.isValid()&&(x(e)&&e.isValid()||Gn(e).isValid())?Cr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function io(e){return this.to(Gn(),e)}function so(e){var t;return void 0===e?this._locale._abbr:(null!=(t=gn(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var uo=L("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function lo(){return this._locale}var co=1e3,fo=60*co,po=60*fo,mo=3506328*po;function ho(e,t){return(e%t+t)%t}function vo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-mo:new Date(e,t,n).valueOf()}function yo(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-mo:Date.UTC(e,t,n)}function _o(e){var t,n;if(void 0===(e=oe(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?yo:vo,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ho(t+(this._isUTC?0:this.utcOffset()*fo),po);break;case"minute":t=this._d.valueOf(),t-=ho(t,fo);break;case"second":t=this._d.valueOf(),t-=ho(t,co)}return this._d.setTime(t),o.updateOffset(this,!0),this}function go(e){var t,n;if(void 0===(e=oe(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?yo:vo,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=po-ho(t+(this._isUTC?0:this.utcOffset()*fo),po)-1;break;case"minute":t=this._d.valueOf(),t+=fo-ho(t,fo)-1;break;case"second":t=this._d.valueOf(),t+=co-ho(t,co)-1}return this._d.setTime(t),o.updateOffset(this,!0),this}function bo(){return this._d.valueOf()-6e4*(this._offset||0)}function Mo(){return Math.floor(this.valueOf()/1e3)}function wo(){return new Date(this.valueOf())}function ko(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xo(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function So(){return this.isValid()?this.toISOString():null}function Lo(){return _(this)}function Eo(){return m({},y(this))}function To(){return y(this).overflow}function Co(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Oo(e,t){var n,r,a,i=this._eras||gn("en")._eras;for(n=0,r=i.length;n<r;++n)switch("string"==typeof i[n].since&&(a=o(i[n].since).startOf("day"),i[n].since=a.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":a=o(i[n].until).startOf("day").valueOf(),i[n].until=a.valueOf()}return i}function Po(e,t,n){var r,o,a,i,s,u=this.eras();for(e=e.toUpperCase(),r=0,o=u.length;r<o;++r)if(a=u[r].name.toUpperCase(),i=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(i===e)return u[r];break;case"NNNN":if(a===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([a,i,s].indexOf(e)>=0)return u[r]}function Do(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n}function Yo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function jo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Zo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function No(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-o(a[e].since).year())*n+a[e].offset;return this.year()}function Ro(e){return u(this,"_erasNameRegex")||Vo.call(this),e?this._erasNameRegex:this._erasRegex}function Ao(e){return u(this,"_erasAbbrRegex")||Vo.call(this),e?this._erasAbbrRegex:this._erasRegex}function Io(e){return u(this,"_erasNarrowRegex")||Vo.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fo(e,t){return t.erasAbbrRegex(e)}function Ho(e,t){return t.erasNameRegex(e)}function $o(e,t){return t.erasNarrowRegex(e)}function zo(e,t){return t._eraYearOrdinalRegex||Ce}function Vo(){var e,t,n=[],r=[],o=[],a=[],i=this.eras();for(e=0,t=i.length;e<t;++e)r.push(Ae(i[e].name)),n.push(Ae(i[e].abbr)),o.push(Ae(i[e].narrow)),a.push(Ae(i[e].name)),a.push(Ae(i[e].abbr)),a.push(Ae(i[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function Wo(e,t){H(0,[e,e.length],0,t)}function Bo(e){return Xo.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Uo(e){return Xo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ko(){return xt(this.year(),1,4)}function qo(){return xt(this.isoWeekYear(),1,4)}function Go(){var e=this.localeData()._week;return xt(this.year(),e.dow,e.doy)}function Jo(){var e=this.localeData()._week;return xt(this.weekYear(),e.dow,e.doy)}function Xo(e,t,n,r,o){var a;return null==e?kt(this,r,o).year:(t>(a=xt(e,r,o))&&(t=a),Qo.call(this,e,t,n,r,o))}function Qo(e,t,n,r,o){var a=wt(e,t,n,r,o),i=bt(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}function ea(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Ze("N",Fo),Ze("NN",Fo),Ze("NNN",Fo),Ze("NNNN",Ho),Ze("NNNNN",$o),Fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?y(n).era=o:y(n).invalidEra=e})),Ze("y",Ce),Ze("yy",Ce),Ze("yyy",Ce),Ze("yyyy",Ce),Ze("yo",zo),Fe(["y","yy","yyy","yyyy"],Ve),Fe(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ve]=n._locale.eraYearOrdinalParse(e,o):t[Ve]=parseInt(e,10)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Wo("gggg","weekYear"),Wo("ggggg","weekYear"),Wo("GGGG","isoWeekYear"),Wo("GGGGG","isoWeekYear"),re("weekYear","gg"),re("isoWeekYear","GG"),se("weekYear",1),se("isoWeekYear",1),Ze("G",Oe),Ze("g",Oe),Ze("GG",ke,ge),Ze("gg",ke,ge),Ze("GGGG",Ee,Me),Ze("gggg",Ee,Me),Ze("GGGGG",Te,we),Ze("ggggg",Te,we),He(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=de(e)})),He(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),re("quarter","Q"),se("quarter",7),Ze("Q",_e),Fe("Q",(function(e,t){t[We]=3*(de(e)-1)})),H("D",["DD",2],"Do","date"),re("date","D"),se("date",9),Ze("D",ke),Ze("DD",ke,ge),Ze("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Fe(["D","DD"],Be),Fe("Do",(function(e,t){t[Be]=de(e.match(ke)[0])}));var ta=fe("Date",!0);function na(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}H("DDD",["DDDD",3],"DDDo","dayOfYear"),re("dayOfYear","DDD"),se("dayOfYear",4),Ze("DDD",Le),Ze("DDDD",be),Fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=de(e)})),H("m",["mm",2],0,"minute"),re("minute","m"),se("minute",14),Ze("m",ke),Ze("mm",ke,ge),Fe(["m","mm"],Ke);var ra=fe("Minutes",!1);H("s",["ss",2],0,"second"),re("second","s"),se("second",15),Ze("s",ke),Ze("ss",ke,ge),Fe(["s","ss"],qe);var oa,aa,ia=fe("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),re("millisecond","ms"),se("millisecond",16),Ze("S",Le,_e),Ze("SS",Le,ge),Ze("SSS",Le,be),oa="SSSS";oa.length<=9;oa+="S")Ze(oa,Ce);function sa(e,t){t[Ge]=de(1e3*("0."+e))}for(oa="S";oa.length<=9;oa+="S")Fe(oa,sa);function ua(){return this._isUTC?"UTC":""}function la(){return this._isUTC?"Coordinated Universal Time":""}aa=fe("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var ca=k.prototype;function da(e){return Gn(1e3*e)}function fa(){return Gn.apply(null,arguments).parseZone()}function pa(e){return e}ca.add=Zr,ca.calendar=zr,ca.clone=Vr,ca.diff=Jr,ca.endOf=go,ca.format=no,ca.from=ro,ca.fromNow=oo,ca.to=ao,ca.toNow=io,ca.get=he,ca.invalidAt=To,ca.isAfter=Wr,ca.isBefore=Br,ca.isBetween=Ur,ca.isSame=Kr,ca.isSameOrAfter=qr,ca.isSameOrBefore=Gr,ca.isValid=Lo,ca.lang=uo,ca.locale=so,ca.localeData=lo,ca.max=Xn,ca.min=Jn,ca.parsingFlags=Eo,ca.set=ve,ca.startOf=_o,ca.subtract=Nr,ca.toArray=ko,ca.toObject=xo,ca.toDate=wo,ca.toISOString=eo,ca.inspect=to,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ca[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ca.toJSON=So,ca.toString=Qr,ca.unix=Mo,ca.valueOf=bo,ca.creationData=Co,ca.eraName=Yo,ca.eraNarrow=jo,ca.eraAbbr=Zo,ca.eraYear=No,ca.year=yt,ca.isLeapYear=_t,ca.weekYear=Bo,ca.isoWeekYear=Uo,ca.quarter=ca.quarters=ea,ca.month=dt,ca.daysInMonth=ft,ca.week=ca.weeks=Ct,ca.isoWeek=ca.isoWeeks=Ot,ca.weeksInYear=Go,ca.weeksInWeekYear=Jo,ca.isoWeeksInYear=Ko,ca.isoWeeksInISOWeekYear=qo,ca.date=ta,ca.day=ca.days=Wt,ca.weekday=Bt,ca.isoWeekday=Ut,ca.dayOfYear=na,ca.hour=ca.hours=on,ca.minute=ca.minutes=ra,ca.second=ca.seconds=ia,ca.millisecond=ca.milliseconds=aa,ca.utcOffset=vr,ca.utc=_r,ca.local=gr,ca.parseZone=br,ca.hasAlignedHourOffset=Mr,ca.isDST=wr,ca.isLocal=xr,ca.isUtcOffset=Sr,ca.isUtc=Lr,ca.isUTC=Lr,ca.zoneAbbr=ua,ca.zoneName=la,ca.dates=L("dates accessor is deprecated. Use date instead.",ta),ca.months=L("months accessor is deprecated. Use month instead",dt),ca.years=L("years accessor is deprecated. Use year instead",yt),ca.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",yr),ca.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",kr);var ma=Y.prototype;function ha(e,t,n,r){var o=gn(),a=h().set(r,t);return o[n](a,e)}function va(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return ha(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=ha(e,r,n,"month");return o}function ya(e,t,n,r){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var o,a=gn(),i=e?a._week.dow:0,s=[];if(null!=n)return ha(t,(n+i)%7,r,"day");for(o=0;o<7;o++)s[o]=ha(t,(o+i)%7,r,"day");return s}function _a(e,t){return va(e,t,"months")}function ga(e,t){return va(e,t,"monthsShort")}function ba(e,t,n){return ya(e,t,n,"weekdays")}function Ma(e,t,n){return ya(e,t,n,"weekdaysShort")}function wa(e,t,n){return ya(e,t,n,"weekdaysMin")}ma.calendar=Z,ma.longDateFormat=U,ma.invalidDate=q,ma.ordinal=X,ma.preparse=pa,ma.postformat=pa,ma.relativeTime=ee,ma.pastFuture=te,ma.set=P,ma.eras=Oo,ma.erasParse=Po,ma.erasConvertYear=Do,ma.erasAbbrRegex=Ao,ma.erasNameRegex=Ro,ma.erasNarrowRegex=Io,ma.months=it,ma.monthsShort=st,ma.monthsParse=lt,ma.monthsRegex=mt,ma.monthsShortRegex=pt,ma.week=St,ma.firstDayOfYear=Tt,ma.firstDayOfWeek=Et,ma.weekdays=Ft,ma.weekdaysMin=$t,ma.weekdaysShort=Ht,ma.weekdaysParse=Vt,ma.weekdaysRegex=Kt,ma.weekdaysShortRegex=qt,ma.weekdaysMinRegex=Gt,ma.isPM=nn,ma.meridiem=an,vn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===de(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=L("moment.lang is deprecated. Use moment.locale instead.",vn),o.langData=L("moment.langData is deprecated. Use moment.localeData instead.",gn);var ka=Math.abs;function xa(){var e=this._data;return this._milliseconds=ka(this._milliseconds),this._days=ka(this._days),this._months=ka(this._months),e.milliseconds=ka(e.milliseconds),e.seconds=ka(e.seconds),e.minutes=ka(e.minutes),e.hours=ka(e.hours),e.months=ka(e.months),e.years=ka(e.years),this}function Sa(e,t,n,r){var o=Cr(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function La(e,t){return Sa(this,e,t,1)}function Ea(e,t){return Sa(this,e,t,-1)}function Ta(e){return e<0?Math.floor(e):Math.ceil(e)}function Ca(){var e,t,n,r,o,a=this._milliseconds,i=this._days,s=this._months,u=this._data;return a>=0&&i>=0&&s>=0||a<=0&&i<=0&&s<=0||(a+=864e5*Ta(Pa(s)+i),i=0,s=0),u.milliseconds=a%1e3,e=ce(a/1e3),u.seconds=e%60,t=ce(e/60),u.minutes=t%60,n=ce(t/60),u.hours=n%24,i+=ce(n/24),s+=o=ce(Oa(i)),i-=Ta(Pa(o)),r=ce(s/12),s%=12,u.days=i,u.months=s,u.years=r,this}function Oa(e){return 4800*e/146097}function Pa(e){return 146097*e/4800}function Da(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=oe(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Oa(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Pa(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ya(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN}function ja(e){return function(){return this.as(e)}}var Za=ja("ms"),Na=ja("s"),Ra=ja("m"),Aa=ja("h"),Ia=ja("d"),Fa=ja("w"),Ha=ja("M"),$a=ja("Q"),za=ja("y");function Va(){return Cr(this)}function Wa(e){return e=oe(e),this.isValid()?this[e+"s"]():NaN}function Ba(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ua=Ba("milliseconds"),Ka=Ba("seconds"),qa=Ba("minutes"),Ga=Ba("hours"),Ja=Ba("days"),Xa=Ba("months"),Qa=Ba("years");function ei(){return ce(this.days()/7)}var ti=Math.round,ni={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ri(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function oi(e,t,n,r){var o=Cr(e).abs(),a=ti(o.as("s")),i=ti(o.as("m")),s=ti(o.as("h")),u=ti(o.as("d")),l=ti(o.as("M")),c=ti(o.as("w")),d=ti(o.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||l<=1&&["M"]||l<n.M&&["MM",l]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,ri.apply(null,f)}function ai(e){return void 0===e?ti:"function"==typeof e&&(ti=e,!0)}function ii(e,t){return void 0!==ni[e]&&(void 0===t?ni[e]:(ni[e]=t,"s"===e&&(ni.ss=t-1),!0))}function si(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,a=ni;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(a=Object.assign({},ni,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=oi(this,!o,a,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)}var ui=Math.abs;function li(e){return(e>0)-(e<0)||+e}function ci(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,a,i,s,u=ui(this._milliseconds)/1e3,l=ui(this._days),c=ui(this._months),d=this.asSeconds();return d?(e=ce(u/60),t=ce(e/60),u%=60,e%=60,n=ce(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",a=li(this._months)!==li(d)?"-":"",i=li(this._days)!==li(d)?"-":"",s=li(this._milliseconds)!==li(d)?"-":"",o+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(l?i+l+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var di=sr.prototype;return di.isValid=ar,di.abs=xa,di.add=La,di.subtract=Ea,di.as=Da,di.asMilliseconds=Za,di.asSeconds=Na,di.asMinutes=Ra,di.asHours=Aa,di.asDays=Ia,di.asWeeks=Fa,di.asMonths=Ha,di.asQuarters=$a,di.asYears=za,di.valueOf=Ya,di._bubble=Ca,di.clone=Va,di.get=Wa,di.milliseconds=Ua,di.seconds=Ka,di.minutes=qa,di.hours=Ga,di.days=Ja,di.weeks=ei,di.months=Xa,di.years=Qa,di.humanize=si,di.toISOString=ci,di.toString=ci,di.toJSON=ci,di.locale=so,di.localeData=lo,di.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ci),di.lang=uo,H("X",0,0,"unix"),H("x",0,0,"valueOf"),Ze("x",Oe),Ze("X",Ye),Fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Fe("x",(function(e,t,n){n._d=new Date(de(e))})),o.version="2.29.4",a(Gn),o.fn=ca,o.min=er,o.max=tr,o.now=nr,o.utc=h,o.unix=da,o.months=_a,o.isDate=f,o.locale=vn,o.invalid=g,o.duration=Cr,o.isMoment=x,o.weekdays=ba,o.parseZone=fa,o.localeData=gn,o.isDuration=ur,o.monthsShort=ga,o.weekdaysMin=wa,o.defineLocale=yn,o.updateLocale=_n,o.locales=bn,o.weekdaysShort=Ma,o.normalizeUnits=oe,o.relativeTimeRounding=ai,o.relativeTimeThreshold=ii,o.calendarFormat=$r,o.prototype=ca,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()},12020:function(e,t){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s="______MONGO_OBJECT_REMOVED______",u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];a(this,e),this._obj=t,this._blackboxKeys=n,this._reParseObj()}var t,n,u;return t=e,n=[{key:"_reParseObj",value:function(){var t=this._blackboxKeys;this._affectedKeys={},this._genericAffectedKeys={},this._positionsByGenericKey={},this._positionsThatCreateGenericKey={},this._parentPositions=[],this._positionsInsideArrays=[],this._objectPositions=[],this._arrayItemPositions=[],function n(r,o,a,i,s,u,c){!s&&i&&"$"===i.substring(0,1)&&(s=i,i=null);var d=!1,f=!1;if(i){u||("$push"===s||"$addToSet"===s||"$pop"===s?(e.isBasicObject(o)&&"$each"in o?(o=o.$each,a="".concat(a,"[$each]")):i="".concat(i,".0"),u=!0):"$pull"===s&&(i="".concat(i,".0"),e.isBasicObject(o)&&(f=!0),u=!0));var m=e.makeKeyGeneric(i);if(d=t.indexOf(m)>-1,a){r._affectedKeys[a]=i,r._genericAffectedKeys[a]=m;var h={key:i,operator:s||null,position:a};r._positionsByGenericKey[m]||(r._positionsByGenericKey[m]=[]),r._positionsByGenericKey[m].push(h),s&&"$unset"!==s&&e.objectsThatGenericKeyWillCreate(m).forEach((function(e){r._positionsThatCreateGenericKey[e]||(r._positionsThatCreateGenericKey[e]=[]),r._positionsThatCreateGenericKey[e].push(h)})),c&&r._positionsInsideArrays.push(a)}}f||(Array.isArray(o)&&o.length>0?(a&&r._parentPositions.push(a),o.forEach((function(e,t){a&&r._arrayItemPositions.push("".concat(a,"[").concat(t,"]")),n(r,e,a?"".concat(a,"[").concat(t,"]"):t,"".concat(i,".").concat(t),s,u,!0)}))):(e.isBasicObject(o)&&!d||!a)&&(a&&!p(o)&&(r._parentPositions.push(a),r._objectPositions.push(a)),Object.keys(o).forEach((function(e){var t=o[e];void 0===t?delete o[e]:"$slice"!==e&&n(r,t,a?"".concat(a,"[").concat(e,"]"):e,l(i,e),s,u,c)}))))}(this,this._obj)}},{key:"forEachNode",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.endPointsOnly,o=void 0===r||r;if("function"!=typeof e)throw new Error("filter requires a loop function");var a={};Object.keys(this._affectedKeys).forEach((function(n){o&&t._parentPositions.indexOf(n)>-1||e.call({value:t.getValueForPosition(n),isArrayItem:t._arrayItemPositions.indexOf(n)>-1,operator:c(n),position:n,key:t._affectedKeys[n],genericKey:t._genericAffectedKeys[n],updateValue:function(e){a[n]=e},remove:function(){a[n]=void 0}})})),Object.keys(a).forEach((function(e){t.setValueForPosition(e,a[e])}))}},{key:"getValueForPosition",value:function(t){for(var n=t.split("["),r=this._obj,o=n.length,a=0;a<o;a++){var i=n[a];if("]"===i.slice(-1)&&(i=i.slice(0,-1)),r=r[i],!Array.isArray(r)&&!e.isBasicObject(r)&&a<o-1)return}if(r!==s)return r}},{key:"setValueForPosition",value:function(t,n){for(var r=t.split("["),o=this._obj,a=r.length,i=!1,u="",c=0;c<a;c++){var d=r[c];if("]"===d.slice(-1)&&(d=d.slice(0,-1)),d&&"$"!==d.substring(0,1)&&(u=l(u,d)),c===a-1)void 0===n?Array.isArray(o)?o[d]=s:delete o[d]:o[d]=n,this._affectedKeys[t]=u;else{if(void 0===o[d]&&void 0!==n){var f=r[c+1];f=parseInt(f,10),o[d]=Number.isNaN(f)?{}:[],i=!0}if(o=o[d],!Array.isArray(o)&&!e.isBasicObject(o)&&c<a-1)return}}(i||Array.isArray(n)||e.isBasicObject(n))&&this._reParseObj()}},{key:"removeValueForPosition",value:function(e){this.setValueForPosition(e,void 0)}},{key:"getKeyForPosition",value:function(e){return this._affectedKeys[e]}},{key:"getGenericKeyForPosition",value:function(e){return this._genericAffectedKeys[e]}},{key:"getInfoForKey",value:function(e){var t=this.getPositionForKey(e);if(t)return{value:this.getValueForPosition(t),operator:c(t)};for(var n=this.getPositionsForGenericKey("".concat(e,".$")),r=0;r<n.length;r++){var o=n[r],a=this.getValueForPosition(o);if(void 0===a){var i=o.slice(0,o.lastIndexOf("["));a=this.getValueForPosition(i)}if(void 0!==a)return{value:a,operator:c(o)}}}},{key:"getPositionForKey",value:function(e){for(var t=Object.getOwnPropertyNames(this._affectedKeys),n=0;n<t.length;n++){var r=t[n];if(this._affectedKeys[r]===e)return r}}},{key:"getPositionsForGenericKey",value:function(e){return this.getPositionsInfoForGenericKey(e).map((function(e){return e.position}))}},{key:"getPositionsInfoForGenericKey",value:function(e){var t=this,n=this._positionsByGenericKey[e];return n&&0!==n.length||(n=this._positionsByGenericKey["".concat(e,".$")]),n&&0!==n.length||(n=[]),n.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({value:t.getValueForPosition(e.position)},e)}))}},{key:"getPositionsThatCreateGenericKey",value:function(e){return this._positionsThatCreateGenericKey[e]||[]}},{key:"getValueForKey",value:function(e){var t=this.getPositionForKey(e);if(t)return this.getValueForPosition(t)}},{key:"addKey",value:function(t,n,r){var o=r?"".concat(r,"[").concat(t,"]"):e._keyToPosition(t);this.setValueForPosition(o,n)}},{key:"removeGenericKeys",value:function(e){var t=this;Object.getOwnPropertyNames(this._genericAffectedKeys).forEach((function(n){e.indexOf(t._genericAffectedKeys[n])>-1&&t.removeValueForPosition(n)}))}},{key:"removeGenericKey",value:function(e){var t=this;Object.getOwnPropertyNames(this._genericAffectedKeys).forEach((function(n){t._genericAffectedKeys[n]===e&&t.removeValueForPosition(n)}))}},{key:"removeKey",value:function(e){var t=this;Object.getOwnPropertyNames(this._affectedKeys).forEach((function(n){t._affectedKeys[n]===e&&t.removeValueForPosition(n)}))}},{key:"removeKeys",value:function(e){var t=this;e.forEach((function(e){return t.removeKey(e)}))}},{key:"filterGenericKeys",value:function(e){var t=this,n=[],r=[];Object.getOwnPropertyNames(this._genericAffectedKeys).forEach((function(o){var a=t._genericAffectedKeys[o];-1===n.indexOf(a)&&(n.push(a),a&&!e(a)&&r.push(a))})),r.forEach((function(e){return t.removeGenericKey(e)}))}},{key:"setValueForKey",value:function(e,t){var n=this;Object.getOwnPropertyNames(this._affectedKeys).forEach((function(r){n._affectedKeys[r]===e&&n.setValueForPosition(r,t)}))}},{key:"setValueForGenericKey",value:function(e,t){var n=this;Object.getOwnPropertyNames(this._genericAffectedKeys).forEach((function(r){n._genericAffectedKeys[r]===e&&n.setValueForPosition(r,t)}))}},{key:"removeArrayItems",value:function(){!function t(n){!function(e,t){if(null!=e)if(Array.isArray(e))e.forEach(t);else{var n=Object(e);if(null!=(r=e)&&"function"!=typeof r&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}(r.length))for(var r,o=-1;++o<e.length&&!1!==t(n[o],o,n););else Object.keys(n).forEach((function(e){return t(n[e],e,n)}))}}(n,(function(r,o){var a=n[o];e.isBasicObject(a)?t(a):Array.isArray(a)&&(n[o]=a.filter((function(e){return e!==s})),t(n[o]))}))}(this._obj)}},{key:"getObject",value:function(){return this._obj}},{key:"getFlatObject",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.keepArrays,r=void 0!==n&&n,o={};return Object.keys(this._affectedKeys).forEach((function(t){var n=e._affectedKeys[t];"string"==typeof n&&(!0===r&&-1===e._positionsInsideArrays.indexOf(t)&&-1===e._objectPositions.indexOf(t)||!0!==r&&-1===e._parentPositions.indexOf(t))&&(o[n]=e.getValueForPosition(t))})),o}},{key:"affectsKey",value:function(e){return!!this.getPositionForKey(e)}},{key:"affectsGenericKey",value:function(e){for(var t=Object.getOwnPropertyNames(this._genericAffectedKeys),n=0;n<t.length;n++){var r=t[n];if(this._genericAffectedKeys[r]===e)return!0}return!1}},{key:"affectsGenericKeyImplicit",value:function(e){for(var t=Object.getOwnPropertyNames(this._genericAffectedKeys),n=0;n<t.length;n++){var r=t[n];if(d(e,this._genericAffectedKeys[r]))return!0}return!1}}],u=[{key:"makeKeyGeneric",value:function(e){return"string"!=typeof e?null:e.replace(/\.[0-9]+(?=\.|$)/g,".$")}},{key:"expandKey",value:function(e,t,n){for(var r=t.split("["),o=n,a=0,i=r.length;a<i;a++){var s=r[a];if("]"===s.slice(-1)&&(s=s.slice(0,-1)),a===i-1)o[s]=e,void 0===e&&delete o[s];else{var u=r[a+1];u=parseInt(u,10),o[s]||(o[s]=Number.isNaN(u)?{}:[])}o=o[s]}}},{key:"_keyToPosition",value:function(e,t){var n="";return e.split(".").forEach((function(e,r){n+=0!==r||t?"[".concat(e,"]"):e})),n}},{key:"_positionToKey",value:function(t){var n=new e({});return n.setValueForPosition(t,1),n.getKeyForPosition(t)}},{key:"cleanNulls",value:function(t,n,r){var o=n?[]:{};return Object.keys(t).forEach((function(n){var a=t[n];!Array.isArray(a)&&e.isBasicObject(a)?p(a=e.cleanNulls(a,!1,r))||(o[n]=a):Array.isArray(a)?p(a=e.cleanNulls(a,!0,r))||(o[n]=a):(!function(e){return null==e||"string"==typeof e&&0===e.length}(a)||r&&"string"==typeof a&&0===a.length)&&(o[n]=a)})),o}},{key:"reportNulls",value:function(t,n){var r={};return Object.keys(t).forEach((function(o){var a=t[o];(null==a||!n&&"string"==typeof a&&0===a.length||Array.isArray(a)&&0===e.cleanNulls(a,!0,n).length)&&(r[o]="")})),r}},{key:"docToModifier",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.keepArrays,o=void 0!==r&&r,a=n.keepEmptyStrings,i=void 0!==a&&a,s=new e(t),u=s.getFlatObject({keepArrays:o}),l=e.reportNulls(u,i),c={};return p(u=e.cleanNulls(u,!1,i))||(c.$set=u),p(l)||(c.$unset=l),c}},{key:"isBasicObject",value:function(e){return e===Object(e)&&Object.getPrototypeOf(e)===Object.prototype}},{key:"objAffectsKey",value:function(t,n){return new e(t).affectsKey(n)}},{key:"objectsThatGenericKeyWillCreate",value:function(e){var t=[];do{var n=e.lastIndexOf(".");(e=-1===n?"":e.slice(0,n)).length&&!e.endsWith(".$")&&t.push(e)}while(e.length);return t}},{key:"expandObj",value:function(e){var t={};return Object.keys(e).forEach((function(n){for(var r=e[n],o=n.split("."),a=o.length,i=t,s=0;s<a;s++){var u=o[s];if(void 0!==i[u]&&!m(i[u]))break;if(s===a-1)i[u]=r;else{var l=o[s+1];l=parseInt(l,10),Number.isNaN(l)&&!m(i[u])?i[u]={}:Number.isNaN(l)||Array.isArray(i[u])||(i[u]=[])}i=i[u]}})),t}}],n&&i(t.prototype,n),u&&i(t,u),e}();function l(e,t){return"$each"===t?e:e?"".concat(e,".").concat(t):t}function c(e){var t=e.slice(0,e.indexOf("["));return"$"===t.substring(0,1)?t:null}function d(e,t){return t===e||(t.substring(0,e.length+1)==="".concat(e,".")||".$"===e.slice(-2)&&e.slice(0,-2)===t)}t.default=u;var f=9007199254740991;function p(e){if(null==e)return!0;if(Array.isArray(e)||"string"==typeof e)return!e.length;var t=Object.prototype.toString.call(e);if("[object Map]"===t||"[object Set]"===t)return!e.size;if(function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Object.prototype)}(e))return!Object.keys(e).length;for(var n in e)if(hasOwnProperty.call(e,n))return!1;return!0}function m(e){var t=n(e);return null!=e&&("object"===t||"function"===t)}e.exports=t.default,e.exports.default=t.default},18092:function(e,t,n){"use strict";n.r(t);var r=n(25773),o=n(64649),a=n(53782),i=n(50189),s=n(22951),u=n(91976),l=n(67591),c=n(59180),d=n(27378),f=n(60042),p=n.n(f),m=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r;(0,s.Z)(this,n),(r=t.call(this,e)).handleChange=function(e){var t=r.props,n=t.disabled,o=t.onChange;n||("checked"in r.props||r.setState({checked:e.target.checked}),o&&o({target:(0,i.Z)((0,i.Z)({},r.props),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var o="checked"in e?e.checked:e.defaultChecked;return r.state={checked:o},r}return(0,u.Z)(n,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,i=t.className,s=t.style,u=t.name,l=t.id,c=t.type,f=t.disabled,m=t.readOnly,h=t.tabIndex,v=t.onClick,y=t.onFocus,_=t.onBlur,g=t.onKeyDown,b=t.onKeyPress,M=t.onKeyUp,w=t.autoFocus,k=t.value,x=t.required,S=(0,a.Z)(t,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),L=Object.keys(S).reduce((function(e,t){return"aria-"!==t.substr(0,5)&&"data-"!==t.substr(0,5)&&"role"!==t||(e[t]=S[t]),e}),{}),E=this.state.checked,T=p()(n,i,(e={},(0,o.Z)(e,"".concat(n,"-checked"),E),(0,o.Z)(e,"".concat(n,"-disabled"),f),e));return d.createElement("span",{className:T,style:s},d.createElement("input",(0,r.Z)({name:u,id:l,type:c,required:x,readOnly:m,disabled:f,tabIndex:h,className:"".concat(n,"-input"),checked:!!E,onClick:v,onFocus:y,onBlur:_,onKeyUp:M,onKeyDown:g,onKeyPress:b,onChange:this.handleChange,autoFocus:w,ref:this.saveInput,value:k},L)),d.createElement("span",{className:"".concat(n,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return"checked"in e?(0,i.Z)((0,i.Z)({},t),{},{checked:e.checked}):null}}]),n}(d.Component);m.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}},t.default=m},20518:function(e,t,n){"use strict";n.r(t),n.d(t,{Field:function(){return be},FormProvider:function(){return Ee},List:function(){return Me},default:function(){return Pe},useForm:function(){return Se}});var r=n(27378),o=n(25773),a=n(53782),i=n(64649),s=n(50189),u=n(13285),l=n(22951),c=n(91976),d=n(47169),f=n(67591),p=n(59180),m=n(27406),h=n(74485),v="RC_FORM_INTERNAL_HOOKS",y=function(){(0,h.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},_=r.createContext({getFieldValue:y,getFieldsValue:y,getFieldError:y,getFieldsError:y,isFieldsTouched:y,isFieldTouched:y,isFieldValidating:y,isFieldsValidating:y,resetFields:y,setFields:y,setFieldsValue:y,validateFields:y,submit:y,getInternalHooks:function(){return y(),{dispatch:y,initEntityValue:y,registerField:y,useSubscribe:y,setInitialValues:y,setCallbacks:y,getFields:y,setValidateMessages:y,setPreserve:y}}});function g(e){return null==e?[]:Array.isArray(e)?e:[e]}var b=n(50824),M=n.n(b),w=n(27791),k=n(33940);function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function L(e,t){return L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},L(e,t)}function E(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function T(e,t,n){return T=E()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&L(o,n.prototype),o},T.apply(null,arguments)}function C(e){var t="function"==typeof Map?new Map:void 0;return C=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return T(e,arguments,S(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),L(r,e)},C(e)}var O=/%[sdj%]/g;function P(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,o=t[0],a=t.length;if("function"==typeof o)return o.apply(null,t.slice(1));if("string"==typeof o){var i=String(o).replace(O,(function(e){if("%%"===e)return"%";if(r>=a)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}}));return i}return o}function Y(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function j(e,t,n){var r=0,o=e.length;!function a(i){if(i&&i.length)n(i);else{var s=r;r+=1,s<o?t(e[s],a):n([])}}([])}"undefined"!=typeof process&&process.env;var Z=function(e){var t,n;function r(t,n){var r;return(r=e.call(this,"Async Validation Error")||this).errors=t,r.fields=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,L(t,n),r}(C(Error));function N(e,t,n,r){if(t.first){var o=new Promise((function(t,o){var a=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}(e);j(a,n,(function(e){return r(e),e.length?o(new Z(e,P(e))):t()}))}));return o.catch((function(e){return e})),o}var a=t.firstFields||[];!0===a&&(a=Object.keys(e));var i=Object.keys(e),s=i.length,u=0,l=[],c=new Promise((function(t,o){var c=function(e){if(l.push.apply(l,e),++u===s)return r(l),l.length?o(new Z(l,P(l))):t()};i.length||(r(l),t()),i.forEach((function(t){var r=e[t];-1!==a.indexOf(t)?j(r,n,c):function(e,t,n){var r=[],o=0,a=e.length;function i(e){r.push.apply(r,e),++o===a&&n(r)}e.forEach((function(e){t(e,i)}))}(r,n,c)}))}));return c.catch((function(e){return e})),c}function R(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"==typeof t?t():t,field:t.field||e.fullField}}}function A(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&"object"==typeof e[n]?e[n]=x({},e[n],r):e[n]=r}return e}function I(e,t,n,r,o,a){!e.required||n.hasOwnProperty(e.field)&&!Y(t,a||e.type)||r.push(D(o.messages.required,e.fullField))}var F={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},H={integer:function(e){return H.number(e)&&parseInt(e,10)===e},float:function(e){return H.number(e)&&!H.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!H.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(F.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(F.url)},hex:function(e){return"string"==typeof e&&!!e.match(F.hex)}};var $={required:I,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(D(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)I(e,t,n,r,o);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?H[a](t)||r.push(D(o.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(D(o.messages.types[a],e.fullField,e.type))}},range:function(e,t,n,r,o){var a="number"==typeof e.len,i="number"==typeof e.min,s="number"==typeof e.max,u=t,l=null,c="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(c?l="number":d?l="string":f&&(l="array"),!l)return!1;f&&(u=t.length),d&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?u!==e.len&&r.push(D(o.messages[l].len,e.fullField,e.len)):i&&!s&&u<e.min?r.push(D(o.messages[l].min,e.fullField,e.min)):s&&!i&&u>e.max?r.push(D(o.messages[l].max,e.fullField,e.max)):i&&s&&(u<e.min||u>e.max)&&r.push(D(o.messages[l].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&r.push(D(o.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(D(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(D(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function z(e,t,n,r,o){var a=e.type,i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y(t,a)&&!e.required)return n();$.required(e,t,r,i,o,a),Y(t,a)||$.type(e,t,r,i,o)}n(i)}var V={string:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y(t,"string")&&!e.required)return n();$.required(e,t,r,a,o,"string"),Y(t,"string")||($.type(e,t,r,a,o),$.range(e,t,r,a,o),$.pattern(e,t,r,a,o),!0===e.whitespace&&$.whitespace(e,t,r,a,o))}n(a)},method:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y(t)&&!e.required)return n();$.required(e,t,r,a,o),void 0!==t&&$.type(e,t,r,a,o)}n(a)},number:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Y(t)&&!e.required)return n();$.required(e,t,r,a,o),void 0!==t&&($.type(e,t,r,a,o),$.range(e,t,r,a,o))}n(a)},boolean:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y(t)&&!e.required)return n();$.required(e,t,r,a,o),void 0!==t&&$.type(e,t,r,a,o)}n(a)},regexp:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y(t)&&!e.required)return n();$.required(e,t,r,a,o),Y(t)||$.type(e,t,r,a,o)}n(a)},integer:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y(t)&&!e.required)return n();$.required(e,t,r,a,o),void 0!==t&&($.type(e,t,r,a,o),$.range(e,t,r,a,o))}n(a)},float:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y(t)&&!e.required)return n();$.required(e,t,r,a,o),void 0!==t&&($.type(e,t,r,a,o),$.range(e,t,r,a,o))}n(a)},array:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();$.required(e,t,r,a,o,"array"),null!=t&&($.type(e,t,r,a,o),$.range(e,t,r,a,o))}n(a)},object:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y(t)&&!e.required)return n();$.required(e,t,r,a,o),void 0!==t&&$.type(e,t,r,a,o)}n(a)},enum:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y(t)&&!e.required)return n();$.required(e,t,r,a,o),void 0!==t&&$.enum(e,t,r,a,o)}n(a)},pattern:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y(t,"string")&&!e.required)return n();$.required(e,t,r,a,o),Y(t,"string")||$.pattern(e,t,r,a,o)}n(a)},date:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y(t,"date")&&!e.required)return n();var i;if($.required(e,t,r,a,o),!Y(t,"date"))i=t instanceof Date?t:new Date(t),$.type(e,i,r,a,o),i&&$.range(e,i.getTime(),r,a,o)}n(a)},url:z,hex:z,email:z,required:function(e,t,n,r,o){var a=[],i=Array.isArray(t)?"array":typeof t;$.required(e,t,r,a,o,i),n(a)},any:function(e,t,n,r,o){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Y(t)&&!e.required)return n();$.required(e,t,r,a,o)}n(a)}};function W(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var B=W();function U(e){this.rules=null,this._messages=B,this.define(e)}U.prototype={messages:function(e){return e&&(this._messages=A(W(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=function(){});var o,a,i=e,s=t,u=n;if("function"==typeof s&&(u=s,s={}),!this.rules||0===Object.keys(this.rules).length)return u&&u(),Promise.resolve();if(s.messages){var l=this.messages();l===B&&(l=W()),A(l,s.messages),s.messages=l}else s.messages=this.messages();var c={};(s.keys||Object.keys(this.rules)).forEach((function(t){o=r.rules[t],a=i[t],o.forEach((function(n){var o=n;"function"==typeof o.transform&&(i===e&&(i=x({},i)),a=i[t]=o.transform(a)),(o="function"==typeof o?{validator:o}:x({},o)).validator=r.getValidationMethod(o),o.field=t,o.fullField=o.fullField||t,o.type=r.getType(o),o.validator&&(c[t]=c[t]||[],c[t].push({rule:o,value:a,source:i,field:t}))}))}));var d={};return N(c,s,(function(e,t){var n,r=e.rule,o=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function a(e,t){return x({},t,{fullField:r.fullField+"."+e})}function i(n){void 0===n&&(n=[]);var i=n;if(Array.isArray(i)||(i=[i]),!s.suppressWarning&&i.length&&U.warning("async-validator:",i),i.length&&void 0!==r.message&&(i=[].concat(r.message)),i=i.map(R(r)),s.first&&i.length)return d[r.field]=1,t(i);if(o){if(r.required&&!e.value)return void 0!==r.message?i=[].concat(r.message).map(R(r)):s.error&&(i=[s.error(r,D(s.messages.required,r.field))]),t(i);var u={};if(r.defaultField)for(var l in e.value)e.value.hasOwnProperty(l)&&(u[l]=r.defaultField);for(var c in u=x({},u,e.rule.fields))if(u.hasOwnProperty(c)){var f=Array.isArray(u[c])?u[c]:[u[c]];u[c]=f.map(a.bind(null,c))}var p=new U(u);p.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),p.validate(e.value,e.rule.options||s,(function(e){var n=[];i&&i.length&&n.push.apply(n,i),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(i)}o=o&&(r.required||!r.required&&e.value),r.field=e.field,r.asyncValidator?n=r.asyncValidator(r,e.value,i,e.source,s):r.validator&&(!0===(n=r.validator(r,e.value,i,e.source,s))?i():!1===n?i(r.message||r.field+" fails"):n instanceof Array?i(n):n instanceof Error&&i(n.message)),n&&n.then&&n.then((function(){return i()}),(function(e){return i(e)}))}),(function(e){!function(e){var t,n,r,o=[],a={};for(t=0;t<e.length;t++)n=e[t],r=void 0,Array.isArray(n)?o=(r=o).concat.apply(r,n):o.push(n);o.length?a=P(o):(o=null,a=null),u(o,a)}(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!V.hasOwnProperty(e.type))throw new Error(D("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?V.required:V[this.getType(e)]||!1}},U.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");V[e]=t},U.warning=function(){},U.messages=B,U.validators=V;var K=U;function q(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}var G=n(62173);function J(e,t,n,r){if(!t.length)return n;var o,a=(0,G.Z)(t),i=a[0],l=a.slice(1);return o=e||"number"!=typeof i?Array.isArray(e)?(0,u.Z)(e):(0,s.Z)({},e):[],r&&void 0===n&&1===l.length?delete o[i][l[0]]:o[i]=J(o[i],l,n,r),o}function X(e){return g(e)}function Q(e,t){return q(e,t)}function ee(e,t,n){var r=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!q(e,t.slice(0,-1))?e:J(e,t,n,r)}(e,t,n);return r}function te(e,t){var n={};return t.forEach((function(t){var r=Q(e,t);n=ee(n,t,r)})),n}function ne(e,t){return e&&e.some((function(e){return ie(e,t)}))}function re(e){return"object"===(0,k.Z)(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function oe(e,t){var n=Array.isArray(e)?(0,u.Z)(e):(0,s.Z)({},e);return t?(Object.keys(t).forEach((function(e){var r=n[e],o=t[e],a=re(r)&&re(o);n[e]=a?oe(r,o||{}):o})),n):n}function ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return oe(e,t)}),e)}function ie(e,t){return!(!e||!t||e.length!==t.length)&&e.every((function(e,n){return t[n]===e}))}function se(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&e in t.target?t.target[e]:t}function ue(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat((0,u.Z)(e.slice(0,n)),[o],(0,u.Z)(e.slice(n,t)),(0,u.Z)(e.slice(t+1,r))):a<0?[].concat((0,u.Z)(e.slice(0,t)),(0,u.Z)(e.slice(t+1,n+1)),[o],(0,u.Z)(e.slice(n+1,r))):e}var le="'${name}' is not a valid ${type}",ce={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:le,method:le,array:le,object:le,number:le,date:le,boolean:le,integer:le,float:le,regexp:le,email:le,url:le,hex:le},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},de=K;function fe(e,t,n,r){var o=(0,s.Z)((0,s.Z)({},n),{},{name:t,enum:(n.enum||[]).join(", ")}),a=function(e,t){return function(){return function(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}(e,(0,s.Z)((0,s.Z)({},o),t))}};return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(o){var i=t[o];"string"==typeof i?n[o]=a(i,r):i&&"object"===(0,k.Z)(i)?(n[o]={},e(i,n[o])):n[o]=i})),n}(ae({},ce,e))}function pe(e,t,n,r,o){return me.apply(this,arguments)}function me(){return me=(0,w.Z)(M().mark((function e(t,n,o,a,l){var c,d,f,p,m,h;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=(0,s.Z)({},o),d=null,c&&"array"===c.type&&c.defaultField&&(d=c.defaultField,delete c.defaultField),f=new de((0,i.Z)({},t,[c])),p=fe(a.validateMessages,t,c,l),f.messages(p),m=[],e.prev=7,e.next=10,Promise.resolve(f.validate((0,i.Z)({},t,n),(0,s.Z)({},a)));case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(7),e.t0.errors?m=e.t0.errors.map((function(e,t){var n=e.message;return r.isValidElement(n)?r.cloneElement(n,{key:"error_".concat(t)}):n})):(console.error(e.t0),m=[p.default()]);case 15:if(m.length||!d){e.next=20;break}return e.next=18,Promise.all(n.map((function(e,n){return pe("".concat(t,".").concat(n),e,d,a,l)})));case 18:return h=e.sent,e.abrupt("return",h.reduce((function(e,t){return[].concat((0,u.Z)(e),(0,u.Z)(t))}),[]));case 20:return e.abrupt("return",m);case 21:case"end":return e.stop()}}),e,null,[[7,12]])}))),me.apply(this,arguments)}function he(e,t,n,r,o,a){var i,u=e.join("."),l=n.map((function(e){var t=e.validator;return t?(0,s.Z)((0,s.Z)({},e),{},{validator:function(e,n,r){var o=!1,a=t(e,n,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){(0,h.ZP)(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)}))}));o=a&&"function"==typeof a.then&&"function"==typeof a.catch,(0,h.ZP)(o,"`callback` is deprecated. Please return a promise instead."),o&&a.then((function(){r()})).catch((function(e){r(e||" ")}))}}):e}));if(!0===o)i=new Promise(function(){var e=(0,w.Z)(M().mark((function e(n,o){var i,s;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i<l.length)){e.next=11;break}return e.next=4,pe(u,t,l[i],r,a);case 4:if(!(s=e.sent).length){e.next=8;break}return o(s),e.abrupt("return");case 8:i+=1,e.next=1;break;case 11:n([]);case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=l.map((function(e){return pe(u,t,e,r,a)}));i=(o?function(e){return ye.apply(this,arguments)}(c):function(e){return ve.apply(this,arguments)}(c)).then((function(e){return e.length?Promise.reject(e):[]}))}return i.catch((function(e){return e})),i}function ve(){return(ve=(0,w.Z)(M().mark((function e(t){return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,(0,u.Z)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ye(){return(ye=(0,w.Z)(M().mark((function e(t){var n;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.length&&e(r),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _e(e,t,n,r,o,a){return"function"==typeof e?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var ge=function(e){(0,f.Z)(n,e);var t=(0,p.Z)(n);function n(e){var o;((0,l.Z)(this,n),(o=t.call(this,e)).state={resetCount:0},o.cancelRegisterFunc=null,o.mounted=!1,o.touched=!1,o.dirty=!1,o.validatePromise=null,o.errors=[],o.cancelRegister=function(){var e=o.props,t=e.preserve,n=e.isListField;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t),o.cancelRegisterFunc=null},o.getNamePath=function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName,r=void 0===n?[]:n;return void 0!==t?[].concat((0,u.Z)(r),(0,u.Z)(t)):[]},o.getRules=function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))},o.refresh=function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))},o.onStoreChange=function(e,t,n){var r=o.props,a=r.shouldUpdate,i=r.dependencies,s=void 0===i?[]:i,u=r.onReset,l=n.store,c=o.getNamePath(),d=o.getValue(e),f=o.getValue(l),p=t&&ne(t,c);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=[]),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=null,o.errors=[],u&&u(),void o.refresh();break;case"setField":if(p){var m=n.data;return"touched"in m&&(o.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(o.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(o.errors=m.errors||[]),o.dirty=!0,void o.reRender()}if(a&&!c.length&&_e(a,e,l,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(s.map(X).some((function(e){return ne(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!s.length||c.length||a)&&_e(a,e,l,d,f,n))return void o.reRender()}!0===a&&o.reRender()},o.validateRules=function(e){var t=o.getNamePath(),n=o.getValue(),r=Promise.resolve().then((function(){if(!o.mounted)return[];var a=o.props,i=a.validateFirst,s=void 0!==i&&i,u=a.messageVariables,l=(e||{}).triggerName,c=o.getRules();l&&(c=c.filter((function(e){var t=e.validateTrigger;return!t||g(t).includes(l)})));var d=he(t,n,c,e,s,u);return d.catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o.validatePromise===r&&(o.validatePromise=null,o.errors=e,o.reRender())})),d}));return o.validatePromise=r,o.dirty=!0,o.errors=[],o.reRender(),r},o.isFieldValidating=function(){return!!o.validatePromise},o.isFieldTouched=function(){return o.touched},o.isFieldDirty=function(){return o.dirty},o.getErrors=function(){return o.errors},o.isListField=function(){return o.props.isListField},o.isList=function(){return o.props.isList},o.getMeta=function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,name:o.getNamePath()}},o.getOnlyChild=function(e){if("function"==typeof e){var t=o.getMeta();return(0,s.Z)((0,s.Z)({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=(0,m.Z)(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},o.getValue=function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return Q(e||t(!0),n)},o.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.trigger,r=t.validateTrigger,a=t.getValueFromEvent,u=t.normalize,l=t.valuePropName,c=t.getValueProps,d=t.fieldContext,f=void 0!==r?r:d.validateTrigger,p=o.getNamePath(),m=d.getInternalHooks,h=d.getFieldsValue,y=m(v),_=y.dispatch,b=o.getValue(),M=c||function(e){return(0,i.Z)({},l,e)},w=e[n],k=(0,s.Z)((0,s.Z)({},e),M(b));k[n]=function(){var e;o.touched=!0,o.dirty=!0;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):se.apply(void 0,[l].concat(n)),u&&(e=u(e,b,h(!0))),_({type:"updateValue",namePath:p,value:e}),w&&w.apply(void 0,n)};var x=g(f||[]);return x.forEach((function(e){var t=k[e];k[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&_({type:"validateField",namePath:p,triggerName:e})}})),k},e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(v).initEntityValue)((0,d.Z)(o));return o}return(0,c.Z)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(v).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,o=this.getOnlyChild(n),a=o.child;return o.isFunction?e=a:r.isValidElement(a)?e=r.cloneElement(a,this.getControlled(a.props)):((0,h.ZP)(!a,"`children` of Field is not validate ReactElement."),e=a),r.createElement(r.Fragment,{key:t},e)}}]),n}(r.Component);ge.contextType=_,ge.defaultProps={trigger:"onChange",valuePropName:"value"};var be=function(e){var t=e.name,n=(0,a.Z)(e,["name"]),i=r.useContext(_),s=void 0!==t?X(t):void 0,u="keep";return n.isListField||(u="_".concat((s||[]).join("_"))),r.createElement(ge,(0,o.Z)({key:u,name:s},n,{fieldContext:i}))},Me=function(e){var t=e.name,n=e.initialValue,o=e.children,a=e.rules,i=e.validateTrigger,l=r.useContext(_),c=r.useRef({keys:[],id:0}).current;if("function"!=typeof o)return(0,h.ZP)(!1,"Form.List only accepts function as children."),null;var d=X(l.prefixName)||[],f=[].concat((0,u.Z)(d),(0,u.Z)(X(t)));return r.createElement(_.Provider,{value:(0,s.Z)((0,s.Z)({},l),{},{prefixName:f})},r.createElement(be,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:a,validateTrigger:i,initialValue:n,isList:!0},(function(e,t){var n=e.value,r=void 0===n?[]:n,a=e.onChange,i=l.getFieldValue,s=function(){return i(f||[])||[]},d={add:function(e,t){var n=s();t>=0&&t<=n.length?(c.keys=[].concat((0,u.Z)(c.keys.slice(0,t)),[c.id],(0,u.Z)(c.keys.slice(t))),a([].concat((0,u.Z)(n.slice(0,t)),[e],(0,u.Z)(n.slice(t))))):(c.keys=[].concat((0,u.Z)(c.keys),[c.id]),a([].concat((0,u.Z)(n),[e]))),c.id+=1},remove:function(e){var t=s(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(c.keys=c.keys.filter((function(e,t){return!n.has(t)})),a(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=s();e<0||e>=n.length||t<0||t>=n.length||(c.keys=ue(c.keys,e,t),a(ue(n,e,t)))}}},p=r||[];return Array.isArray(p)||(p=[]),o(p.map((function(e,t){var n=c.keys[t];return void 0===n&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}})),d,t)})))},we=n(8136);var ke=function(){function e(){(0,l.Z)(this,e),this.list=[]}return(0,c.Z)(e,[{key:"set",value:function(e,t){var n=this.list.findIndex((function(t){return ie(t.key,e)}));-1!==n?this.list[n].value=t:this.list.push({key:e,value:t})}},{key:"get",value:function(e){var t=this.list.find((function(t){return ie(t.key,e)}));return t&&t.value}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.list=this.list.filter((function(t){return!ie(t.key,e)}))}},{key:"map",value:function(e){return this.list.map(e)}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),xe=function e(t){var n=this;(0,l.Z)(this,e),this.formHooked=!1,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===v?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve}):((0,h.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.setInitialValues=function(e,t){n.initialValues=e||{},t&&(n.store=ae({},e,n.store))},this.getInitialValue=function(e){return Q(n.initialValues,e)},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.timeoutId=null,this.warningUnhooked=function(){0},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new ke;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=X(e);return t.get(n)||{INVALIDATE_NAME_PATH:X(e)}}))},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e&&!t)return n.store;var r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),o=[];return r.forEach((function(n){var r,a="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();if(e||!(null===(r=n.isListField)||void 0===r?void 0:r.call(n)))if(t){var i="getMeta"in n?n.getMeta():null;t(i)&&o.push(a)}else o.push(a)})),te(n.store,o.map(X))},this.getFieldValue=function(e){n.warningUnhooked();var t=X(e);return Q(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors()}:{name:X(e[n]),errors:[]}}))},this.getFieldError=function(e){n.warningUnhooked();var t=X(e);return n.getFieldsError([t])[0].errors},this.isFieldsTouched=function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,a=t[0],i=t[1],s=!1;0===t.length?o=null:1===t.length?Array.isArray(a)?(o=a.map(X),s=!1):(o=null,s=a):(o=a.map(X),s=i);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!o)return s?l.every(c):l.some(c);var d=new ke;o.forEach((function(e){d.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();o.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&d.update(n,(function(t){return[].concat((0,u.Z)(t),[e])}))}))}));var f=function(e){return e.some(c)},p=d.map((function(e){return e.value}));return s?p.every(f):p.some(f)},this.isFieldTouched=function(e){return n.warningUnhooked(),n.isFieldsTouched([e])},this.isFieldsValidating=function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(X);return t.some((function(e){var t=e.getNamePath();return ne(r,t)&&e.isFieldValidating()}))},this.isFieldValidating=function(e){return n.warningUnhooked(),n.isFieldsValidating([e])},this.resetWithFieldInitialValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new ke,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o,a=function(r){r.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))(0,h.ZP)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var a=t.get(o);if(a&&a.size>1)(0,h.ZP)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(a){var i=n.getFieldValue(o);e.skipExist&&void 0!==i||(n.store=ee(n.store,o,(0,u.Z)(a)[0].value))}}}}))};e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,(0,u.Z)((0,u.Z)(r).map((function(e){return e.entity}))))}))):o=r,a(o)},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e)return n.store=ae({},n.initialValues),n.resetWithFieldInitialValue(),void n.notifyObservers(t,null,{type:"reset"});var r=e.map(X);r.forEach((function(e){var t=n.getInitialValue(e);n.store=ee(n.store,e,t)})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"})},this.setFields=function(e){n.warningUnhooked();var t=n.store;e.forEach((function(e){var r=e.name,o=(e.errors,(0,a.Z)(e,["name","errors"])),i=X(r);"value"in o&&(n.store=ee(n.store,i,o.value)),n.notifyObservers(t,[i],{type:"setField",data:e})}))},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=e.getMeta(),o=(0,s.Z)((0,s.Z)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Q(n.store,r)&&(n.store=ee(n.store,r,t))}},this.registerField=function(e){if(n.fieldEntities.push(e),void 0!==e.props.initialValue){var t=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(t,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(t,r){if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!1===(void 0!==r?r:n.preserve)&&!t){var o=e.getNamePath();o.length&&void 0!==n.getFieldValue(o)&&(n.store=ee(n.store,o,void 0))}}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,a=e.triggerName;n.validateFields([o],{triggerName:a})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var o=(0,s.Z)((0,s.Z)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()},this.updateValue=function(e,t){var r=X(e),o=n.store;n.store=ee(n.store,r,t),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"});var a=n.getDependencyChildrenFields(r);a.length&&n.validateFields(a),n.notifyObservers(o,a,{type:"dependenciesUpdate",relatedFields:[r].concat((0,u.Z)(a))});var i=n.callbacks.onValuesChange;i&&i(te(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat((0,u.Z)(a)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;e&&(n.store=ae(n.store,e)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],o=new ke;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=X(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var a=new ke;t.forEach((function(e){var t=e.name,n=e.errors;a.set(t,n)})),o.forEach((function(e){e.errors=a.get(e.name)||e.errors}))}r(o.filter((function(t){var n=t.name;return ne(e,n)})),o)}},this.validateFields=function(e,t){n.warningUnhooked();var r=!!e,o=r?e.map(X):[],a=[];n.getFieldEntities(!0).forEach((function(i){if(r||o.push(i.getNamePath()),(null==t?void 0:t.recursive)&&r){var u=i.getNamePath();u.every((function(t,n){return e[n]===t||void 0===e[n]}))&&o.push(u)}if(i.props.rules&&i.props.rules.length){var l=i.getNamePath();if(!r||ne(o,l)){var c=i.validateRules((0,s.Z)({validateMessages:(0,s.Z)((0,s.Z)({},ce),n.validateMessages)},t));a.push(c.then((function(){return{name:l,errors:[]}})).catch((function(e){return Promise.reject({name:l,errors:e})})))}}}));var i=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,a){e.forEach((function(e,i){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[i]=e,n>0||(t&&a(r),o(r))}))}))})):Promise.resolve([])}(a);n.lastValidatePromise=i,i.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var u=i.then((function(){return n.lastValidatePromise===i?Promise.resolve(n.getFieldsValue(o)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(o),errorFields:t,outOfDate:n.lastValidatePromise!==i})}));return u.catch((function(e){return e})),u},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t};var Se=function(e){var t=r.useRef(),n=r.useState({}),o=(0,we.Z)(n,2)[1];if(!t.current)if(e)t.current=e;else{var a=new xe((function(){o({})}));t.current=a.getForm()}return[t.current]},Le=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Ee=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,a=e.children,u=r.useContext(Le),l=r.useRef({});return r.createElement(Le.Provider,{value:(0,s.Z)((0,s.Z)({},u),{},{validateMessages:(0,s.Z)((0,s.Z)({},u.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),u.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),u.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=(0,s.Z)((0,s.Z)({},l.current),{},(0,i.Z)({},e,t))),u.registerForm(e,t)},unregisterForm:function(e){var t=(0,s.Z)({},l.current);delete t[e],l.current=t,u.unregisterForm(e)}})},a)},Te=Le,Ce=function(e,t){var n=e.name,i=e.initialValues,l=e.fields,c=e.form,d=e.preserve,f=e.children,p=e.component,m=void 0===p?"form":p,h=e.validateMessages,y=e.validateTrigger,g=void 0===y?"onChange":y,b=e.onValuesChange,M=e.onFieldsChange,w=e.onFinish,x=e.onFinishFailed,S=(0,a.Z)(e,["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"]),L=r.useContext(Te),E=Se(c),T=(0,we.Z)(E,1)[0],C=T.getInternalHooks(v),O=C.useSubscribe,P=C.setInitialValues,D=C.setCallbacks,Y=C.setValidateMessages,j=C.setPreserve;r.useImperativeHandle(t,(function(){return T})),r.useEffect((function(){return L.registerForm(n,T),function(){L.unregisterForm(n)}}),[L,T,n]),Y((0,s.Z)((0,s.Z)({},L.validateMessages),h)),D({onValuesChange:b,onFieldsChange:function(e){if(L.triggerFormChange(n,e),M){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];M.apply(void 0,[e].concat(r))}},onFinish:function(e){L.triggerFormFinish(n,e),w&&w(e)},onFinishFailed:x}),j(d);var Z=r.useRef(null);P(i,!Z.current),Z.current||(Z.current=!0);var N=f,R="function"==typeof f;R&&(N=f(T.getFieldsValue(!0),T));O(!R);var A=r.useRef();r.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==(0,k.Z)(e)||"object"!==(0,k.Z)(t))return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat((0,u.Z)(n),(0,u.Z)(r)));return(0,u.Z)(o).every((function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o}))})(A.current||[],l||[])||T.setFields(l||[]),A.current=l}),[l,T]);var I=r.useMemo((function(){return(0,s.Z)((0,s.Z)({},T),{},{validateTrigger:g})}),[T,g]),F=r.createElement(_.Provider,{value:I},N);return!1===m?F:r.createElement(m,(0,o.Z)({},S,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),T.submit()}}),F)},Oe=r.forwardRef(Ce);Oe.FormProvider=Ee,Oe.Field=be,Oe.List=Me,Oe.useForm=Se;var Pe=Oe},57370:function(e,t,n){"use strict";var r=n(73203),o=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.HOOK_MARK=void 0;var a=o(n(27378)),i=r(n(55620));t.HOOK_MARK="RC_FORM_INTERNAL_HOOKS";var s=function(){(0,i.default)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},u=a.createContext({getFieldValue:s,getFieldsValue:s,getFieldError:s,getFieldsError:s,isFieldsTouched:s,isFieldTouched:s,isFieldValidating:s,isFieldsValidating:s,resetFields:s,setFields:s,setFieldsValue:s,validateFields:s,submit:s,getInternalHooks:function(){return s(),{dispatch:s,initEntityValue:s,registerField:s,useSubscribe:s,setInitialValues:s,setCallbacks:s,getFields:s,setValidateMessages:s,setPreserve:s}}});t.default=u},11190:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return M}});var r=n(25773),o=n(64649),a=n(53782),i=n(50189),s=n(22951),u=n(91976),l=n(67591),c=n(59180),d=n(27378),f=n(60042),p=n.n(f),m=n(78730);function h(){}function v(e){e.preventDefault()}var y=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,_=function(e){return null!=e},g=function(e,t){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)},b=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(e){var r;(0,s.Z)(this,n),(r=t.call(this,e)).onKeyDown=function(e){var t=r.props,n=t.onKeyDown,o=t.onPressEnter;if(e.keyCode===m.Z.UP){var a=r.getRatio(e);r.up(e,a,null),r.stop()}else if(e.keyCode===m.Z.DOWN){var i=r.getRatio(e);r.down(e,i,null),r.stop()}else e.keyCode===m.Z.ENTER&&o&&o(e);if(r.recordCursorPosition(),r.lastKeyCode=e.keyCode,n){for(var s=arguments.length,u=new Array(s>1?s-1:0),l=1;l<s;l++)u[l-1]=arguments[l];n.apply(void 0,[e].concat(u))}},r.onKeyUp=function(e){var t=r.props.onKeyUp;if(r.stop(),r.recordCursorPosition(),t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t.apply(void 0,[e].concat(o))}},r.onChange=function(e){var t=r.props.onChange;r.state.focused&&(r.inputting=!0),r.rawInput=r.props.parser(r.getValueFromEvent(e)),r.setState({inputValue:r.rawInput}),t(r.toNumber(r.rawInput))},r.onMouseUp=function(){var e=r.props.onMouseUp;r.recordCursorPosition(),e&&e.apply(void 0,arguments)},r.onFocus=function(){var e;r.setState({focused:!0}),(e=r.props).onFocus.apply(e,arguments)},r.onBlur=function(){var e=r.props.onBlur;r.inputting=!1,r.setState({focused:!1});var t=r.getCurrentValidValue(r.state.inputValue),n=r.setValue(t,h);if(e){var o=r.input.value,a=r.getInputDisplayValue({focus:!1,value:n});r.input.value=a,e.apply(void 0,arguments),r.input.value=o}},r.getRatio=function(e){var t=1;return e.metaKey||e.ctrlKey?t=.1:e.shiftKey&&(t=10),t},r.getFullNum=function(e){return isNaN(e)?e:/e/i.test(String(e))?Number(e).toFixed(18).replace(/\.?0+$/,""):e},r.getPrecision=function(e){if(_(r.props.precision))return r.props.precision;var t=String(e);if(t.indexOf("e-")>=0)return parseInt(t.slice(t.indexOf("e-")+2),10);var n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n},r.getInputDisplayValue=function(e){var t,n=e||r.state,o=n.focused,a=n.inputValue,i=n.value;null==(t=o?a:r.toPrecisionAsStep(i))&&(t="");var s=r.formatWrapper(t);return _(r.props.decimalSeparator)&&(s=s.toString().replace(".",r.props.decimalSeparator)),s},r.recordCursorPosition=function(){try{r.cursorStart=r.input.selectionStart,r.cursorEnd=r.input.selectionEnd,r.currentValue=r.input.value,r.cursorBefore=r.input.value.substring(0,r.cursorStart),r.cursorAfter=r.input.value.substring(r.cursorEnd)}catch(e){}},r.restoreByAfter=function(e){if(void 0===e)return!1;var t=r.input.value,n=t.lastIndexOf(e);if(-1===n)return!1;var o=r.cursorBefore.length;return r.lastKeyCode===m.Z.DELETE&&r.cursorBefore.charAt(o-1)===e[0]?(r.fixCaret(o,o),!0):n+e.length===t.length&&(r.fixCaret(n,n),!0)},r.partRestoreByAfter=function(e){return void 0!==e&&Array.prototype.some.call(e,(function(t,n){var o=e.substring(n);return r.restoreByAfter(o)}))},r.isNotCompleteNumber=function(e){return isNaN(e)||""===e||null===e||e&&e.toString().indexOf(".")===e.toString().length-1},r.stop=function(){r.autoStepTimer&&clearTimeout(r.autoStepTimer)},r.down=function(e,t,n){r.pressingUpOrDown=!0,r.step("down",e,t,n)},r.up=function(e,t,n){r.pressingUpOrDown=!0,r.step("up",e,t,n)},r.saveInput=function(e){r.input=e};var o=e.value;void 0===o&&(o=e.defaultValue),r.state={focused:e.autoFocus};var a=r.getValidValue(r.toNumber(o));return r.state=(0,i.Z)((0,i.Z)({},r.state),{},{inputValue:r.toPrecisionAsStep(a),value:a}),r}return(0,u.Z)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,r=t.onChange,o=t.max,a=t.min,i=this.state.focused;if(e){if(!g(e.value,n)||!g(e.max,o)||!g(e.min,a)){var s,u=i?n:this.getValidValue(n);s=this.pressingUpOrDown?u:this.inputting?this.rawInput:this.toPrecisionAsStep(u),this.setState({value:u,inputValue:s})}var l="value"in this.props?n:this.state.value;"max"in this.props&&e.max!==o&&"number"==typeof l&&l>o&&r&&r(o),"min"in this.props&&e.min!==a&&"number"==typeof l&&l<a&&r&&r(a)}try{if(void 0!==this.cursorStart&&this.state.focused)if(this.partRestoreByAfter(this.cursorAfter)||this.state.value===this.props.value){if(this.currentValue===this.input.value)switch(this.lastKeyCode){case m.Z.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case m.Z.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1)}}else{var c=this.getInputDisplayValue(this.state).length;this.cursorAfter?this.lastKeyCode===m.Z.BACKSPACE?c=this.cursorStart-1:this.lastKeyCode===m.Z.DELETE&&(c=this.cursorStart):c=this.input.value.length,this.fixCaret(c,c)}}catch(d){}this.lastKeyCode=null,this.pressingUpOrDown&&this.props.focusOnUpDown&&this.state.focused&&document.activeElement!==this.input&&this.focus()}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(e){var t=e;return t=""===t?"":this.isNotCompleteNumber(parseFloat(t))?this.state.value:this.getValidValue(t),this.toNumber(t)}},{key:"getValueFromEvent",value:function(e){var t=e.target.value.trim().replace(/\u3002/g,".");return _(this.props.decimalSeparator)&&(t=t.replace(this.props.decimalSeparator,".")),t}},{key:"getValidValue",value:function(e){var t=this.props,n=t.min,r=t.max,o=parseFloat(e);return isNaN(o)?e:(o<n&&(o=n),o>r&&(o=r),o)}},{key:"setValue",value:function(e,t){var n=this.props.precision,r=this.isNotCompleteNumber(parseFloat(e))?null:parseFloat(e),o=this.state.value,a=void 0===o?null:o,i=this.state.inputValue,s=void 0===i?null:i,u="number"==typeof r?r.toFixed(n):"".concat(r),l=r!==a||u!=="".concat(s);return"value"in this.props?(s=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:s},t)):this.setState({value:r,inputValue:this.toPrecisionAsStep(e)},t),l&&this.props.onChange(r),r}},{key:"getMaxPrecision",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.props,r=n.precision,o=n.step;if(_(r))return r;var a=this.getPrecision(t),i=this.getPrecision(o),s=this.getPrecision(e);return e?Math.max(s,a+i):a+i}},{key:"getPrecisionFactor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.getMaxPrecision(e,t);return Math.pow(10,n)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(e){return this.props.formatter?this.props.formatter(e):e}},{key:"toPrecisionAsStep",value:function(e){if(this.isNotCompleteNumber(e)||""===e)return e;var t=Math.abs(this.getMaxPrecision(e));return isNaN(t)?e.toString():Number(e).toFixed(t)}},{key:"toNumber",value:function(e){var t=this.props.precision,n=this.state.focused,r=e&&e.length>16&&n;return this.isNotCompleteNumber(e)||r?e:_(t)?Math.round(e*Math.pow(10,t))/Math.pow(10,t):Number(e)}},{key:"upStep",value:function(e,t){var n=this.props.step,r=this.getPrecisionFactor(e,t),o=Math.abs(this.getMaxPrecision(e,t)),a=((r*e+r*Number(n)*t)/r).toFixed(o);return this.toNumber(a)}},{key:"downStep",value:function(e,t){var n=this.props.step,r=this.getPrecisionFactor(e,t),o=Math.abs(this.getMaxPrecision(e,t)),a=((r*e-r*Number(n)*t)/r).toFixed(o);return this.toNumber(a)}},{key:"step",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3?arguments[3]:void 0;this.stop(),this.recordCursorPosition(),t&&(t.persist(),t.preventDefault());var a=this.props;if(!a.disabled){var i=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(i)){var s=this["".concat(e,"Step")](i,r),u=s>a.max||s<a.min;s>a.max?s=a.max:s<a.min&&(s=a.min),this.setValue(s,null),a.onStep&&a.onStep(s,{offset:r,type:e}),this.setState({focused:!0},(function(){n.pressingUpOrDown=!1})),u||(this.autoStepTimer=setTimeout((function(){n[e](t,r,!0)}),o?200:600))}}}},{key:"fixCaret",value:function(e,t){if(void 0!==e&&void 0!==t&&this.input&&this.input.value)try{var n=this.input.selectionStart,r=this.input.selectionEnd;e===n&&t===r||this.input.setSelectionRange(e,t)}catch(o){}}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,i=t.disabled,s=t.readOnly,u=t.useTouch,l=t.autoComplete,c=t.upHandler,f=t.downHandler,m=t.className,y=t.max,_=t.min,g=t.style,b=t.title,M=t.onMouseEnter,w=t.onMouseLeave,k=t.onMouseOver,x=t.onMouseOut,S=t.required,L=t.onClick,E=t.tabIndex,T=t.type,C=t.placeholder,O=t.id,P=t.inputMode,D=t.pattern,Y=t.step,j=t.maxLength,Z=t.autoFocus,N=t.name,R=t.onPaste,A=t.onInput,I=(0,a.Z)(t,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),F=this.state,H=F.value,$=F.focused,z=p()(n,(e={},(0,o.Z)(e,m,!!m),(0,o.Z)(e,"".concat(n,"-disabled"),i),(0,o.Z)(e,"".concat(n,"-focused"),$),e)),V={};Object.keys(I).forEach((function(e){"data-"!==e.substr(0,5)&&"aria-"!==e.substr(0,5)&&"role"!==e||(V[e]=I[e])}));var W=!s&&!i,B=this.getInputDisplayValue(null),U=(H||0===H)&&(isNaN(H)||Number(H)>=y)||i||s,K=(H||0===H)&&(isNaN(H)||Number(H)<=_)||i||s,q=p()("".concat(n,"-handler"),"".concat(n,"-handler-up"),(0,o.Z)({},"".concat(n,"-handler-up-disabled"),U)),G=p()("".concat(n,"-handler"),"".concat(n,"-handler-down"),(0,o.Z)({},"".concat(n,"-handler-down-disabled"),K)),J=u?{onTouchStart:U?h:this.up,onTouchEnd:this.stop}:{onMouseDown:U?h:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},X=u?{onTouchStart:K?h:this.down,onTouchEnd:this.stop}:{onMouseDown:K?h:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return d.createElement("div",{className:z,style:g,title:b,onMouseEnter:M,onMouseLeave:w,onMouseOver:k,onMouseOut:x,onFocus:function(){return null},onBlur:function(){return null}},d.createElement("div",{className:"".concat(n,"-handler-wrap")},d.createElement("span",(0,r.Z)({unselectable:"on"},J,{role:"button","aria-label":"Increase Value","aria-disabled":U,className:q}),c||d.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-up-inner"),onClick:v})),d.createElement("span",(0,r.Z)({unselectable:"on"},X,{role:"button","aria-label":"Decrease Value","aria-disabled":K,className:G}),f||d.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-down-inner"),onClick:v}))),d.createElement("div",{className:"".concat(n,"-input-wrap")},d.createElement("input",(0,r.Z)({role:"spinbutton","aria-valuemin":_,"aria-valuemax":y,"aria-valuenow":H,required:S,type:T,placeholder:C,onPaste:R,onClick:L,onMouseUp:this.onMouseUp,className:"".concat(n,"-input"),tabIndex:E,autoComplete:l,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:W?this.onKeyDown:h,onKeyUp:W?this.onKeyUp:h,autoFocus:Z,maxLength:j,readOnly:s,disabled:i,max:y,min:_,step:Y,name:N,title:b,id:O,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(B),pattern:D,inputMode:P,onInput:A},V))))}}]),n}(d.Component);b.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:y,min:-y,step:1,style:{},onChange:h,onKeyDown:h,onPressEnter:h,onFocus:h,onBlur:h,parser:function(e){return e.replace(/[^\w.-]+/g,"")},required:!1,autoComplete:"off"};var M=b},89214:function(e,t,n){"use strict";n.r(t),n.d(t,{CSSMotionList:function(){return se},default:function(){return ue}});var r=n(64649),o=n(50189),a=n(8136),i=n(33940),s=n(27378),u=n(62738),l=n(79986),c=n(60042),d=n.n(c),f=n(98554);function p(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var m,h,v,y=(m=(0,f.Z)(),h="undefined"!=typeof window?window:{},v={animationend:p("Animation","AnimationEnd"),transitionend:p("Transition","TransitionEnd")},m&&("AnimationEvent"in h||delete v.animationend.animation,"TransitionEvent"in h||delete v.transitionend.transition),v),_={};if((0,f.Z)()){var g=document.createElement("div");_=g.style}var b={};function M(e){if(b[e])return b[e];var t=y[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in _)return b[e]=t[a],b[e]}return""}var w=M("animationend"),k=M("transitionend"),x=!(!w||!k),S=w||"animationend",L=k||"transitionend";function E(e,t){return e?"object"===(0,i.Z)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}var T="none",C="appear",O="enter",P="leave",D="none",Y="prepare",j="start",Z="active",N="end";function R(e){var t=(0,s.useRef)(!1),n=(0,s.useState)(e),r=(0,a.Z)(n,2),o=r[0],i=r[1];return(0,s.useEffect)((function(){return function(){t.current=!0}}),[]),[o,function(e){t.current||i(e)}]}var A=(0,f.Z)()?s.useLayoutEffect:s.useEffect,I=n(94068),F=[Y,j,Z,N];function H(e){return e===Z||e===N}var $=function(e,t){var n=s.useState(D),r=(0,a.Z)(n,2),o=r[0],i=r[1],u=function(){var e=s.useRef(null);function t(){I.Z.cancel(e.current)}return s.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var a=(0,I.Z)((function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)}));e.current=a},t]}(),l=(0,a.Z)(u,2),c=l[0],d=l[1];return A((function(){if(o!==D&&o!==N){var e=F.indexOf(o),n=F[e+1],r=t(o);false===r?i(n):c((function(e){function t(){e.isCanceled()||i(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,o]),s.useEffect((function(){return function(){d()}}),[]),[function(){i(Y)},o]};function z(e,t,n,i){var u=i.motionEnter,l=void 0===u||u,c=i.motionAppear,d=void 0===c||c,f=i.motionLeave,p=void 0===f||f,m=i.motionDeadline,h=i.motionLeaveImmediately,v=i.onAppearPrepare,y=i.onEnterPrepare,_=i.onLeavePrepare,g=i.onAppearStart,b=i.onEnterStart,M=i.onLeaveStart,w=i.onAppearActive,k=i.onEnterActive,x=i.onLeaveActive,E=i.onAppearEnd,D=i.onEnterEnd,N=i.onLeaveEnd,I=i.onVisibleChanged,F=R(),z=(0,a.Z)(F,2),V=z[0],W=z[1],B=R(T),U=(0,a.Z)(B,2),K=U[0],q=U[1],G=R(null),J=(0,a.Z)(G,2),X=J[0],Q=J[1],ee=(0,s.useRef)(!1),te=(0,s.useRef)(null),ne=(0,s.useRef)(!1),re=(0,s.useRef)(null);function oe(){return n()||re.current}var ae=(0,s.useRef)(!1);function ie(e){var t,n=oe();e&&!e.deadline&&e.target!==n||(K===C&&ae.current?t=null==E?void 0:E(n,e):K===O&&ae.current?t=null==D?void 0:D(n,e):K===P&&ae.current&&(t=null==N?void 0:N(n,e)),!1===t||ne.current||(q(T),Q(null)))}var se=function(e){var t=(0,s.useRef)(),n=(0,s.useRef)(e);n.current=e;var r=s.useCallback((function(e){n.current(e)}),[]);function o(e){e&&(e.removeEventListener(L,r),e.removeEventListener(S,r))}return s.useEffect((function(){return function(){o(t.current)}}),[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener(L,r),e.addEventListener(S,r),t.current=e)},o]}(ie),ue=(0,a.Z)(se,1)[0],le=s.useMemo((function(){var e,t,n;switch(K){case"appear":return e={},(0,r.Z)(e,Y,v),(0,r.Z)(e,j,g),(0,r.Z)(e,Z,w),e;case"enter":return t={},(0,r.Z)(t,Y,y),(0,r.Z)(t,j,b),(0,r.Z)(t,Z,k),t;case"leave":return n={},(0,r.Z)(n,Y,_),(0,r.Z)(n,j,M),(0,r.Z)(n,Z,x),n;default:return{}}}),[K]),ce=$(K,(function(e){if(e===Y){var t=le.prepare;return!!t&&t(oe())}var n;pe in le&&Q((null===(n=le[pe])||void 0===n?void 0:n.call(le,oe(),null))||null);return pe===Z&&(ue(oe()),m>0&&(clearTimeout(te.current),te.current=setTimeout((function(){ie({deadline:!0})}),m))),true})),de=(0,a.Z)(ce,2),fe=de[0],pe=de[1],me=H(pe);ae.current=me,A((function(){W(t);var n,r=ee.current;(ee.current=!0,e)&&(!r&&t&&d&&(n=C),r&&t&&l&&(n=O),(r&&!t&&p||!r&&h&&!t&&p)&&(n=P),n&&(q(n),fe()))}),[t]),(0,s.useEffect)((function(){(K===C&&!d||K===O&&!l||K===P&&!p)&&q(T)}),[d,l,p]),(0,s.useEffect)((function(){return function(){clearTimeout(te.current),ne.current=!0}}),[]),(0,s.useEffect)((function(){void 0!==V&&K===T&&(null==I||I(V))}),[V,K]);var he=X;return le.prepare&&pe===j&&(he=(0,o.Z)({transition:"none"},he)),[K,pe,he,null!=V?V:t]}var V=n(22951),W=n(91976),B=n(67591),U=n(59180),K=function(e){(0,B.Z)(n,e);var t=(0,U.Z)(n);function n(){return(0,V.Z)(this,n),t.apply(this,arguments)}return(0,W.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component),q=K;var G=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,i.Z)(e)&&(t=e.transitionSupport);var c=s.forwardRef((function(e,t){var i=e.visible,c=void 0===i||i,f=e.removeOnLeave,p=void 0===f||f,m=e.forceRender,h=e.children,v=e.motionName,y=e.leavedClassName,_=e.eventProps,g=n(e),b=(0,s.useRef)(),M=(0,s.useRef)();var w=z(g,c,(function(){try{return(0,u.Z)(b.current||M.current)}catch(e){return null}}),e),k=(0,a.Z)(w,4),x=k[0],S=k[1],L=k[2],C=k[3],O=s.useRef(C);C&&(O.current=!0);var P=(0,s.useRef)(t);P.current=t;var D,Z=s.useCallback((function(e){b.current=e,(0,l.mH)(P.current,e)}),[]),N=(0,o.Z)((0,o.Z)({},_),{},{visible:c});if(h)if(x!==T&&n(e)){var R,A;S===Y?A="prepare":H(S)?A="active":S===j&&(A="start"),D=h((0,o.Z)((0,o.Z)({},N),{},{className:d()(E(v,x),(R={},(0,r.Z)(R,E(v,"".concat(x,"-").concat(A)),A),(0,r.Z)(R,v,"string"==typeof v),R)),style:L}),Z)}else D=C?h((0,o.Z)({},N),Z):!p&&O.current?h((0,o.Z)((0,o.Z)({},N),{},{className:y}),Z):m?h((0,o.Z)((0,o.Z)({},N),{},{style:{display:"none"}}),Z):null;else D=null;return s.createElement(q,{ref:M},D)}));return c.displayName="CSSMotion",c}(x),J=n(25773),X=n(53782),Q="add",ee="keep",te="remove",ne="removed";function re(e){var t;return t=e&&"object"===(0,i.Z)(e)&&"key"in e?e:{key:e},(0,o.Z)((0,o.Z)({},t),{},{key:String(t.key)})}function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(re)}function ae(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,a=t.length,i=oe(e),s=oe(t);i.forEach((function(e){for(var t=!1,i=r;i<a;i+=1){var u=s[i];if(u.key===e.key){r<i&&(n=n.concat(s.slice(r,i).map((function(e){return(0,o.Z)((0,o.Z)({},e),{},{status:Q})}))),r=i),n.push((0,o.Z)((0,o.Z)({},u),{},{status:ee})),r+=1,t=!0;break}}t||n.push((0,o.Z)((0,o.Z)({},e),{},{status:te}))})),r<a&&(n=n.concat(s.slice(r).map((function(e){return(0,o.Z)((0,o.Z)({},e),{},{status:Q})}))));var u={};n.forEach((function(e){var t=e.key;u[t]=(u[t]||0)+1}));var l=Object.keys(u).filter((function(e){return u[e]>1}));return l.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==te}))).forEach((function(t){t.key===e&&(t.status=ee)}))})),n}var ie=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G,n=function(e){(0,B.Z)(r,e);var n=(0,U.Z)(r);function r(){var e;return(0,V.Z)(this,r),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:(0,o.Z)((0,o.Z)({},e),{},{status:ne})}))}}))},e}return(0,W.Z)(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,o=r.component,a=r.children,i=r.onVisibleChanged,u=(0,X.Z)(r,["component","children","onVisibleChanged"]),l=o||s.Fragment,c={};return ie.forEach((function(e){c[e]=u[e],delete u[e]})),delete u.keys,s.createElement(l,u,n.map((function(n){var r=n.status,o=(0,X.Z)(n,["status"]),u=r===Q||r===ee;return s.createElement(t,(0,J.Z)({},c,{key:o.key,visible:u,eventProps:o,onVisibleChanged:function(t){null==i||i(t,{key:o.key}),t||e.removeKey(o.key)}}),a)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=oe(n);return{keyEntities:ae(r,o).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==ne||e.status!==te}))}}}]),r}(s.Component);return n.defaultProps={component:"div"},n}(x),ue=G},87482:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var r=n(53782),o=n(25773),a=n(50189),i=n(22951),s=n(91976),u=n(67591),l=n(59180),c=n(27378),d=n(31542),f=n(60042),p=n.n(f),m=n(89214),h=n(64649),v=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props,r=n.onClose,o=n.noticeKey;r&&r(o)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.className,a=t.closable,i=t.closeIcon,s=t.style,u=t.onClick,l=t.children,f=t.holder,m="".concat(n,"-notice"),v=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),y=c.createElement("div",(0,o.Z)({className:p()(m,r,(0,h.Z)({},"".concat(m,"-closable"),a)),style:s,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:u},v),c.createElement("div",{className:"".concat(m,"-content")},l),a?c.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(m,"-close")},i||c.createElement("span",{className:"".concat(m,"-close-x")})):null);return f?d.createPortal(y,f):y}}]),n}(c.Component);v.defaultProps={onClose:function(){},duration:1.5};var y=n(13285),_=n(8136);var g=0,b=Date.now();function M(){var e=g;return g+=1,"rcNotification_".concat(b,"_").concat(e)}var w=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(){var e;(0,i.Z)(this,n);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return(e=t.call.apply(t,[this].concat(o))).state={notices:[]},e.hookRefs=new Map,e.add=function(t,n){var r=t.key||M(),o=(0,a.Z)((0,a.Z)({},t),{},{key:r}),i=e.props.maxCount;e.setState((function(e){var t=e.notices,a=t.map((function(e){return e.notice.key})).indexOf(r),s=t.concat();return-1!==a?s.splice(a,1,{notice:o,holderCallback:n}):(i&&t.length>=i&&(o.key=s[0].notice.key,o.updateMark=M(),o.userPassKey=r,s.shift()),s.push({notice:o,holderCallback:n})),{notices:s}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,r=n.key;return(n.userPassKey||r)!==t}))}}))},e.noticePropsMap={},e}return(0,s.Z)(n,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r="".concat(t,"-").concat(n)),r}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,r=n.prefixCls,i=n.className,s=n.closeIcon,u=n.style,l=[];return t.forEach((function(n,o){var i=n.notice,u=n.holderCallback,c=o===t.length-1?i.updateMark:void 0,d=i.key,f=i.userPassKey,p=(0,a.Z)((0,a.Z)((0,a.Z)({prefixCls:r,closeIcon:s},i),i.props),{},{key:d,noticeKey:f||d,updateMark:c,onClose:function(t){var n;e.remove(t),null===(n=i.onClose)||void 0===n||n.call(i)},onClick:i.onClick,children:i.content});l.push(d),e.noticePropsMap[d]={props:p,holderCallback:u}})),c.createElement("div",{className:p()(r,i),style:u},c.createElement(m.CSSMotionList,{keys:l,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var r=n.key;t||delete e.noticePropsMap[r]}},(function(t){var n=t.key,i=t.className,s=t.style,u=t.visible,l=e.noticePropsMap[n],d=l.props,f=l.holderCallback;return f?c.createElement("div",{key:n,className:p()(i,"".concat(r,"-hook-holder")),style:(0,a.Z)({},s),ref:function(t){void 0!==n&&(t?(e.hookRefs.set(n,t),f(t,d)):e.hookRefs.delete(n))}}):c.createElement(v,(0,o.Z)({},d,{className:p()(i,null==d?void 0:d.className),style:(0,a.Z)((0,a.Z)({},s),null==d?void 0:d.style),visible:u}))})))}}]),n}(c.Component);w.newInstance=void 0,w.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},w.newInstance=function(e,t){var n=e||{},a=n.getContainer,i=(0,r.Z)(n,["getContainer"]),s=document.createElement("div");a?a().appendChild(s):document.body.appendChild(s);var u=!1;d.render(c.createElement(w,(0,o.Z)({},i,{ref:function(e){u||(u=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){d.unmountComponentAtNode(s),s.parentNode&&s.parentNode.removeChild(s)},useNotification:function(){return t=e,n=c.useRef({}),r=c.useState([]),a=(0,_.Z)(r,2),i=a[0],s=a[1],[function(e){var r=!0;t.add(e,(function(e,t){var a=t.key;if(e&&(!n.current[a]||r)){var i=c.createElement(v,(0,o.Z)({},t,{holder:e}));n.current[a]=i,s((function(e){var n=e.findIndex((function(e){return e.key===t.key}));if(-1===n)return[].concat((0,y.Z)(e),[i]);var r=(0,y.Z)(e);return r[n]=i,r}))}r=!1}))},c.createElement(c.Fragment,null,i)];var t,n,r,a,i,s}}))}})),s)};var k=w},45825:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(73119)),i=o(n(93231)),s=o(n(78983)),u=o(n(42081)),l=o(n(58724)),c=o(n(40670)),d=r(n(27378)),f=o(n(31542)),p=o(n(60042)),m=function(e){(0,l.default)(n,e);var t=(0,c.default)(n);function n(){var e;(0,s.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props,r=n.onClose,o=n.noticeKey;r&&r(o)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return(0,u.default)(n,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.className,o=t.closable,s=t.closeIcon,u=t.style,l=t.onClick,c=t.children,m=t.holder,h="".concat(n,"-notice"),v=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),y=d.createElement("div",(0,a.default)({className:(0,p.default)(h,r,(0,i.default)({},"".concat(h,"-closable"),o)),style:u,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:l},v),d.createElement("div",{className:"".concat(h,"-content")},c),o?d.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(h,"-close")},s||d.createElement("span",{className:"".concat(h,"-close-x")})):null);return m?f.default.createPortal(y,m):y}}]),n}(d.Component);t.default=m,m.defaultProps={onClose:function(){},duration:1.5}},5658:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=u.useRef({}),n=u.useState([]),r=(0,s.default)(n,2),o=r[0],c=r[1];return[function(n){var r=!0;e.add(n,(function(e,n){var o=n.key;if(e&&(!t.current[o]||r)){var s=u.createElement(l.default,(0,i.default)({},n,{holder:e}));t.current[o]=s,c((function(e){var t=e.findIndex((function(e){return e.key===n.key}));if(-1===t)return[].concat((0,a.default)(e),[s]);var r=(0,a.default)(e);return r[t]=s,r}))}r=!1}))},u.createElement(u.Fragment,null,o)]};var a=o(n(9833)),i=o(n(73119)),s=o(n(40131)),u=r(n(27378)),l=o(n(45825))},51367:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"}},67412:function(e,t,n){"use strict";n.r(t),n.d(t,{PickerPanel:function(){return Ye},RangePicker:function(){return Xe},default:function(){return Qe}});var r=n(22951),o=n(91976),a=n(67591),i=n(59180),s=n(25773),u=n(64649),l=n(50189),c=n(8136),d=n(27378),f=n(60042),p=n.n(f),m=n(74485),h=n(24391),v=n(33940),y=n(78730),_=d.createContext({}),g={visibility:"hidden"};var b=function(e){var t=e.prefixCls,n=e.prevIcon,r=void 0===n?"\u2039":n,o=e.nextIcon,a=void 0===o?"\u203a":o,i=e.superPrevIcon,s=void 0===i?"\xab":i,u=e.superNextIcon,l=void 0===u?"\xbb":u,c=e.onSuperPrev,f=e.onSuperNext,p=e.onPrev,m=e.onNext,h=e.children,v=d.useContext(_),y=v.hideNextBtn,b=v.hidePrevBtn;return d.createElement("div",{className:t},c&&d.createElement("button",{type:"button",onClick:c,tabIndex:-1,className:"".concat(t,"-super-prev-btn"),style:b?g:{}},s),p&&d.createElement("button",{type:"button",onClick:p,tabIndex:-1,className:"".concat(t,"-prev-btn"),style:b?g:{}},r),d.createElement("div",{className:"".concat(t,"-view")},h),m&&d.createElement("button",{type:"button",onClick:m,tabIndex:-1,className:"".concat(t,"-next-btn"),style:y?g:{}},a),f&&d.createElement("button",{type:"button",onClick:f,tabIndex:-1,className:"".concat(t,"-super-next-btn"),style:y?g:{}},l))};var M=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.viewDate,o=e.onPrevDecades,a=e.onNextDecades;if(d.useContext(_).hideHeader)return null;var i="".concat(t,"-header"),u=n.getYear(r),l=Math.floor(u/F)*F,c=l+F-1;return d.createElement(b,(0,s.Z)({},e,{prefixCls:i,onSuperPrev:o,onSuperNext:a}),l,"-",c)};function w(e,t,n,r,o){var a=e.setHour(t,n);return a=e.setMinute(a,r),a=e.setSecond(a,o)}function k(e,t,n){if(!n)return t;var r=t;return r=e.setHour(r,e.getHour(n)),r=e.setMinute(r,e.getMinute(n)),r=e.setSecond(r,e.getSecond(n))}function x(e,t){var n=e.getYear(t),r=e.getMonth(t)+1,o=e.getEndDate(e.getFixedDate("".concat(n,"-").concat(r,"-01"))),a=e.getDate(o),i=r<10?"0".concat(r):"".concat(r);return"".concat(n,"-").concat(i,"-").concat(a)}function S(e){for(var t=e.prefixCls,n=e.disabledDate,r=e.onSelect,o=e.picker,a=e.rowNum,i=e.colNum,s=e.prefixColumn,c=e.rowClassName,f=e.baseDate,m=e.getCellClassName,h=e.getCellText,v=e.getCellNode,y=e.getCellDate,g=e.generateConfig,b=e.titleCell,M=e.headerCells,w=d.useContext(_),k=w.onDateMouseEnter,S=w.onDateMouseLeave,L=w.mode,E="".concat(t,"-cell"),T=[],C=0;C<a;C+=1){for(var O=[],P=void 0,D=function(e){var t,a=y(f,C*i+e),c=ee({cellDate:a,mode:L,disabledDate:n,generateConfig:g});0===e&&(P=a,s&&O.push(s(P)));var _=b&&b(a);O.push(d.createElement("td",{key:e,title:_,className:p()(E,(0,l.Z)((t={},(0,u.Z)(t,"".concat(E,"-disabled"),c),(0,u.Z)(t,"".concat(E,"-start"),1===h(a)||"year"===o&&Number(_)%10==0),(0,u.Z)(t,"".concat(E,"-end"),_===x(g,a)||"year"===o&&Number(_)%10==9),t),m(a))),onClick:function(){c||r(a)},onMouseEnter:function(){!c&&k&&k(a)},onMouseLeave:function(){!c&&S&&S(a)}},v?v(a):d.createElement("div",{className:"".concat(E,"-inner")},h(a))))},Y=0;Y<i;Y+=1)D(Y);T.push(d.createElement("tr",{key:C,className:c&&c(P)},O))}return d.createElement("div",{className:"".concat(t,"-body")},d.createElement("table",{className:"".concat(t,"-content")},M&&d.createElement("thead",null,d.createElement("tr",null,M)),d.createElement("tbody",null,T)))}var L=function(e){var t=I-1,n=e.prefixCls,r=e.viewDate,o=e.generateConfig,a="".concat(n,"-cell"),i=o.getYear(r),l=Math.floor(i/I)*I,c=Math.floor(i/F)*F,f=c+F-1,p=o.setYear(r,c-Math.ceil((12*I-F)/2));return d.createElement(S,(0,s.Z)({},e,{rowNum:4,colNum:3,baseDate:p,getCellText:function(e){var n=o.getYear(e);return"".concat(n,"-").concat(n+t)},getCellClassName:function(e){var n,r=o.getYear(e),i=r+t;return n={},(0,u.Z)(n,"".concat(a,"-in-view"),c<=r&&i<=f),(0,u.Z)(n,"".concat(a,"-selected"),r===l),n},getCellDate:function(e,t){return o.addYear(e,t*I)}}))},E=n(13285),T=n(94068),C=n(5661),O=new Map;function P(e,t,n){if(O.get(e)&&cancelAnimationFrame(O.get(e)),n<=0)O.set(e,requestAnimationFrame((function(){e.scrollTop=t})));else{var r=(t-e.scrollTop)/n*10;O.set(e,requestAnimationFrame((function(){e.scrollTop+=r,e.scrollTop!==t&&P(e,t,n-10)})))}}function D(e,t){var n=t.onLeftRight,r=t.onCtrlLeftRight,o=t.onUpDown,a=t.onPageUpDown,i=t.onEnter,s=e.which,u=e.ctrlKey,l=e.metaKey;switch(s){case y.Z.LEFT:if(u||l){if(r)return r(-1),!0}else if(n)return n(-1),!0;break;case y.Z.RIGHT:if(u||l){if(r)return r(1),!0}else if(n)return n(1),!0;break;case y.Z.UP:if(o)return o(-1),!0;break;case y.Z.DOWN:if(o)return o(1),!0;break;case y.Z.PAGE_UP:if(a)return a(-1),!0;break;case y.Z.PAGE_DOWN:if(a)return a(1),!0;break;case y.Z.ENTER:if(i)return i(),!0}return!1}function Y(e,t,n,r){var o=e;if(!o)switch(t){case"time":o=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":o="gggg-wo";break;case"month":o="YYYY-MM";break;case"quarter":o="YYYY-[Q]Q";break;case"year":o="YYYY";break;default:o=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return o}function j(e,t,n){var r="time"===e?8:10,o="function"==typeof t?t(n.getNow()).length:t.length;return Math.max(r,o)+2}var Z=null,N=new Set;var R={year:function(e){return"month"===e||"date"===e?"year":e},month:function(e){return"date"===e?"month":e},quarter:function(e){return"month"===e||"date"===e?"quarter":e},week:function(e){return"date"===e?"week":e},time:null,date:null};function A(e,t){return e.some((function(e){return e&&e.contains(t)}))}var I=10,F=10*I;var H=function(e){var t=e.prefixCls,n=e.onViewDateChange,r=e.generateConfig,o=e.viewDate,a=e.operationRef,i=e.onSelect,u=e.onPanelChange,l="".concat(t,"-decade-panel");a.current={onKeyDown:function(e){return D(e,{onLeftRight:function(e){i(r.addYear(o,e*I),"key")},onCtrlLeftRight:function(e){i(r.addYear(o,e*F),"key")},onUpDown:function(e){i(r.addYear(o,e*I*3),"key")},onEnter:function(){u("year",o)}})}};var c=function(e){var t=r.addYear(o,e*F);n(t),u(null,t)};return d.createElement("div",{className:l},d.createElement(M,(0,s.Z)({},e,{prefixCls:t,onPrevDecades:function(){c(-1)},onNextDecades:function(){c(1)}})),d.createElement(L,(0,s.Z)({},e,{prefixCls:t,onSelect:function(e){i(e,"mouse"),u("year",e)}})))};function $(e,t){return!e&&!t||!(!e||!t)&&void 0}function z(e,t,n){var r=$(t,n);return"boolean"==typeof r?r:e.getYear(t)===e.getYear(n)}function V(e,t){return Math.floor(e.getMonth(t)/3)+1}function W(e,t,n){var r=$(t,n);return"boolean"==typeof r?r:z(e,t,n)&&V(e,t)===V(e,n)}function B(e,t,n){var r=$(t,n);return"boolean"==typeof r?r:z(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function U(e,t,n){var r=$(t,n);return"boolean"==typeof r?r:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function K(e,t,n,r){var o=$(n,r);return"boolean"==typeof o?o:e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}function q(e,t,n){return U(e,t,n)&&function(e,t,n){var r=$(t,n);return"boolean"==typeof r?r:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}(e,t,n)}function G(e,t,n,r){return!!(t&&n&&r)&&(!U(e,t,r)&&!U(e,n,r)&&e.isAfter(r,t)&&e.isAfter(n,r))}function J(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(t){case"year":return n.addYear(e,10*r);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}function X(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return"function"==typeof o?o(e):n.locale.format(r.locale,e,o)}function Q(e,t){var n=t.generateConfig,r=t.locale,o=t.formatList;return e&&"function"!=typeof o[0]?n.locale.parse(r.locale,e,o):null}function ee(e){var t=e.cellDate,n=e.mode,r=e.disabledDate,o=e.generateConfig;if(!r)return!1;var a=function(e,n,a){for(var i=n;i<=a;){var s=void 0;switch(e){case"date":if(s=o.setDate(t,i),!r(s))return!1;break;case"month":if(!ee({cellDate:s=o.setMonth(t,i),mode:"month",generateConfig:o,disabledDate:r}))return!1;break;case"year":if(!ee({cellDate:s=o.setYear(t,i),mode:"year",generateConfig:o,disabledDate:r}))return!1}i+=1}return!0};switch(n){case"date":case"week":return r(t);case"month":return a("date",1,o.getDate(o.getEndDate(t)));case"quarter":var i=3*Math.floor(o.getMonth(t)/3);return a("month",i,i+2);case"year":return a("month",0,11);case"decade":var s=o.getYear(t),u=Math.floor(s/I)*I;return a("year",u,u+I-1)}}var te=function(e){if(d.useContext(_).hideHeader)return null;var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,a=e.format,i="".concat(t,"-header");return d.createElement(b,{prefixCls:i},o?X(o,{locale:r,format:a,generateConfig:n}):"\xa0")},ne=n(8805);var re=function(e){var t=e.prefixCls,n=e.units,r=e.onSelect,o=e.value,a=e.active,i=e.hideDisabledOptions,s="".concat(t,"-cell"),l=d.useContext(_).open,c=(0,d.useRef)(null),f=(0,d.useRef)(new Map),m=(0,d.useRef)();return(0,d.useLayoutEffect)((function(){var e=f.current.get(o);e&&!1!==l&&P(c.current,e.offsetTop,120)}),[o]),(0,d.useLayoutEffect)((function(){if(l){var e=f.current.get(o);e&&(m.current=(t=e,n=function(){P(c.current,e.offsetTop,0)},function e(){(0,C.Z)(t)?n():r=(0,T.Z)((function(){e()}))}(),function(){T.Z.cancel(r)}))}var t,n,r;return function(){var e;null===(e=m.current)||void 0===e||e.call(m)}}),[l]),d.createElement("ul",{className:p()("".concat(t,"-column"),(0,u.Z)({},"".concat(t,"-column-active"),a)),ref:c,style:{position:"relative"}},n.map((function(e){var t;return i&&e.disabled?null:d.createElement("li",{key:e.value,ref:function(t){f.current.set(e.value,t)},className:p()(s,(t={},(0,u.Z)(t,"".concat(s,"-disabled"),e.disabled),(0,u.Z)(t,"".concat(s,"-selected"),o===e.value),t)),onClick:function(){e.disabled||r(e.value)}},d.createElement("div",{className:"".concat(s,"-inner")},e.label))})))};function oe(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(e);return r}function ae(e){return null==e?[]:Array.isArray(e)?e:[e]}function ie(e){var t={};return Object.keys(e).forEach((function(n){"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n&&"name"!==n||"data-__"===n.substr(0,7)||(t[n]=e[n])})),t}function se(e,t){return e?e[t]:null}function ue(e,t,n){var r=[se(e,0),se(e,1)];return r[n]="function"==typeof t?t(r[n]):t,r[0]||r[1]?r:null}function le(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n+=1)if(e[n].disabled!==t[n].disabled)return!0;return!1}function ce(e,t,n,r){for(var o=[],a=e;a<=t;a+=n)o.push({label:oe(a,2),value:a,disabled:(r||[]).includes(a)});return o}var de=function(e){var t,n=e.generateConfig,r=e.prefixCls,o=e.operationRef,a=e.activeColumnIndex,i=e.value,s=e.showHour,u=e.showMinute,f=e.showSecond,p=e.use12Hours,m=e.hourStep,h=void 0===m?1:m,v=e.minuteStep,y=void 0===v?1:v,_=e.secondStep,g=void 0===_?1:_,b=e.disabledHours,M=e.disabledMinutes,k=e.disabledSeconds,x=e.hideDisabledOptions,S=e.onSelect,L=[],E="".concat(r,"-content"),T="".concat(r,"-time-panel"),C=i?n.getHour(i):-1,O=C,P=i?n.getMinute(i):-1,D=i?n.getSecond(i):-1,Y=function(e,t,r,o){var a=i||n.getNow(),s=Math.max(0,t),u=Math.max(0,r),l=Math.max(0,o);return a=w(n,a,p&&e?s+12:s,u,l)},j=ce(0,23,h,b&&b()),Z=(0,ne.Z)((function(){return j}),j,le);p&&(t=O>=12,O%=12);var N=d.useMemo((function(){if(!p)return[!1,!1];var e=[!0,!0];return Z.forEach((function(t){var n=t.disabled,r=t.value;n||(r>=12?e[1]=!1:e[0]=!1)})),e}),[p,Z]),R=(0,c.Z)(N,2),A=R[0],I=R[1],F=d.useMemo((function(){return p?Z.filter(t?function(e){return e.value>=12}:function(e){return e.value<12}).map((function(e){var t=e.value%12,n=0===t?"12":oe(t,2);return(0,l.Z)((0,l.Z)({},e),{},{label:n,value:t})})):Z}),[p,t,Z]),H=ce(0,59,y,M&&M(C)),$=ce(0,59,g,k&&k(C,P));function z(e,t,n,r,o){!1!==e&&L.push({node:d.cloneElement(t,{prefixCls:T,value:n,active:a===L.length,onSelect:o,units:r,hideDisabledOptions:x}),onSelect:o,value:n,units:r})}o.current={onUpDown:function(e){var t=L[a];if(t)for(var n=t.units.findIndex((function(e){return e.value===t.value})),r=t.units.length,o=1;o<r;o+=1){var i=t.units[(n+e*o+r)%r];if(!0!==i.disabled){t.onSelect(i.value);break}}}},z(s,d.createElement(re,{key:"hour"}),O,F,(function(e){S(Y(t,e,P,D),"mouse")})),z(u,d.createElement(re,{key:"minute"}),P,H,(function(e){S(Y(t,O,e,D),"mouse")})),z(f,d.createElement(re,{key:"second"}),D,$,(function(e){S(Y(t,O,P,e),"mouse")}));var V=-1;return"boolean"==typeof t&&(V=t?1:0),z(!0===p,d.createElement(re,{key:"12hours"}),V,[{label:"AM",value:0,disabled:A},{label:"PM",value:1,disabled:I}],(function(e){S(Y(!!e,O,P,D),"mouse")})),d.createElement("div",{className:E},L.map((function(e){return e.node})))};var fe=function(e){var t=e.generateConfig,n=e.format,r=void 0===n?"HH:mm:ss":n,o=e.prefixCls,a=e.active,i=e.operationRef,l=e.showHour,f=e.showMinute,m=e.showSecond,h=e.use12Hours,v=void 0!==h&&h,y=e.onSelect,_=e.value,g="".concat(o,"-time-panel"),b=d.useRef(),M=d.useState(-1),w=(0,c.Z)(M,2),k=w[0],x=w[1],S=[l,f,m,v].filter((function(e){return!1!==e})).length;return i.current={onKeyDown:function(e){return D(e,{onLeftRight:function(e){x((k+e+S)%S)},onUpDown:function(e){-1===k?x(0):b.current&&b.current.onUpDown(e)},onEnter:function(){y(_||t.getNow(),"key"),x(-1)}})},onBlur:function(){x(-1)}},d.createElement("div",{className:p()(g,(0,u.Z)({},"".concat(g,"-active"),a))},d.createElement(te,(0,s.Z)({},e,{format:r,prefixCls:o})),d.createElement(de,(0,s.Z)({},e,{prefixCls:o,activeColumnIndex:k,operationRef:b})))},pe=d.createContext({});function me(e){var t=e.cellPrefixCls,n=e.generateConfig,r=e.rangedValue,o=e.hoverRangedValue,a=e.isInView,i=e.isSameCell,s=e.offsetCell,l=e.today,c=e.value;return function(e){var d,f=s(e,-1),p=s(e,1),m=se(r,0),h=se(r,1),v=se(o,0),y=se(o,1),_=G(n,v,y,e);function g(e){return i(m,e)}function b(e){return i(h,e)}var M=i(v,e),w=i(y,e),k=(_||w)&&(!a(f)||b(f)),x=(_||M)&&(!a(p)||g(p));return d={},(0,u.Z)(d,"".concat(t,"-in-view"),a(e)),(0,u.Z)(d,"".concat(t,"-in-range"),G(n,m,h,e)),(0,u.Z)(d,"".concat(t,"-range-start"),g(e)),(0,u.Z)(d,"".concat(t,"-range-end"),b(e)),(0,u.Z)(d,"".concat(t,"-range-start-single"),g(e)&&!h),(0,u.Z)(d,"".concat(t,"-range-end-single"),b(e)&&!m),(0,u.Z)(d,"".concat(t,"-range-start-near-hover"),g(e)&&(i(f,v)||G(n,v,y,f))),(0,u.Z)(d,"".concat(t,"-range-end-near-hover"),b(e)&&(i(p,y)||G(n,v,y,p))),(0,u.Z)(d,"".concat(t,"-range-hover"),_),(0,u.Z)(d,"".concat(t,"-range-hover-start"),M),(0,u.Z)(d,"".concat(t,"-range-hover-end"),w),(0,u.Z)(d,"".concat(t,"-range-hover-edge-start"),k),(0,u.Z)(d,"".concat(t,"-range-hover-edge-end"),x),(0,u.Z)(d,"".concat(t,"-range-hover-edge-start-near-range"),k&&i(f,h)),(0,u.Z)(d,"".concat(t,"-range-hover-edge-end-near-range"),x&&i(p,m)),(0,u.Z)(d,"".concat(t,"-today"),i(l,e)),(0,u.Z)(d,"".concat(t,"-selected"),i(c,e)),d}}var he=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.prefixColumn,o=e.locale,a=e.rowCount,i=e.viewDate,u=e.value,l=e.dateRender,c=d.useContext(pe),f=c.rangedValue,p=c.hoverRangedValue,m=function(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),a=t.getWeekDay(o),i=t.addDate(o,r-a);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}(o.locale,n,i),h="".concat(t,"-cell"),v=n.locale.getWeekFirstDay(o.locale),y=n.getNow(),_=[],g=o.shortWeekDays||(n.locale.getShortWeekDays?n.locale.getShortWeekDays(o.locale):[]);r&&_.push(d.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var b=0;b<7;b+=1)_.push(d.createElement("th",{key:b},g[(b+v)%7]));var M=me({cellPrefixCls:h,today:y,value:u,generateConfig:n,rangedValue:r?null:f,hoverRangedValue:r?null:p,isSameCell:function(e,t){return U(n,e,t)},isInView:function(e){return B(n,e,i)},offsetCell:function(e,t){return n.addDate(e,t)}}),w=l?function(e){return l(e,y)}:void 0;return d.createElement(S,(0,s.Z)({},e,{rowNum:a,colNum:7,baseDate:m,getCellNode:w,getCellText:n.getDate,getCellClassName:M,getCellDate:n.addDate,titleCell:function(e){return X(e,{locale:o,format:"YYYY-MM-DD",generateConfig:n})},headerCells:_}))};var ve=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.viewDate,a=e.onNextMonth,i=e.onPrevMonth,u=e.onNextYear,l=e.onPrevYear,c=e.onYearClick,f=e.onMonthClick;if(d.useContext(_).hideHeader)return null;var p="".concat(t,"-header"),m=r.shortMonths||(n.locale.getShortMonths?n.locale.getShortMonths(r.locale):[]),h=n.getMonth(o),v=d.createElement("button",{type:"button",key:"year",onClick:c,tabIndex:-1,className:"".concat(t,"-year-btn")},X(o,{locale:r,format:r.yearFormat,generateConfig:n})),y=d.createElement("button",{type:"button",key:"month",onClick:f,tabIndex:-1,className:"".concat(t,"-month-btn")},r.monthFormat?X(o,{locale:r,format:r.monthFormat,generateConfig:n}):m[h]),g=r.monthBeforeYear?[y,v]:[v,y];return d.createElement(b,(0,s.Z)({},e,{prefixCls:p,onSuperPrev:l,onPrev:i,onNext:a,onSuperNext:u}),g)};var ye=function(e){var t=e.prefixCls,n=e.panelName,r=void 0===n?"date":n,o=e.keyboardConfig,a=e.active,i=e.operationRef,c=e.generateConfig,f=e.value,m=e.viewDate,h=e.onViewDateChange,v=e.onPanelChange,y=e.onSelect,_="".concat(t,"-").concat(r,"-panel");i.current={onKeyDown:function(e){return D(e,(0,l.Z)({onLeftRight:function(e){y(c.addDate(f||m,e),"key")},onCtrlLeftRight:function(e){y(c.addYear(f||m,e),"key")},onUpDown:function(e){y(c.addDate(f||m,7*e),"key")},onPageUpDown:function(e){y(c.addMonth(f||m,e),"key")}},o))}};var g=function(e){var t=c.addYear(m,e);h(t),v(null,t)},b=function(e){var t=c.addMonth(m,e);h(t),v(null,t)};return d.createElement("div",{className:p()(_,(0,u.Z)({},"".concat(_,"-active"),a))},d.createElement(ve,(0,s.Z)({},e,{prefixCls:t,value:f,viewDate:m,onPrevYear:function(){g(-1)},onNextYear:function(){g(1)},onPrevMonth:function(){b(-1)},onNextMonth:function(){b(1)},onMonthClick:function(){v("month",m)},onYearClick:function(){v("year",m)}})),d.createElement(he,(0,s.Z)({},e,{onSelect:function(e){return y(e,"mouse")},prefixCls:t,value:f,viewDate:m,rowCount:6})))},_e=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}("date","time");var ge=function(e){var t=e.prefixCls,n=e.operationRef,r=e.generateConfig,o=e.value,a=e.defaultValue,i=e.disabledTime,f=e.showTime,m=e.onSelect,h="".concat(t,"-datetime-panel"),_=d.useState(null),g=(0,c.Z)(_,2),b=g[0],M=g[1],w=d.useRef({}),x=d.useRef({}),S="object"===(0,v.Z)(f)?(0,l.Z)({},f):{},L=function(e){x.current.onBlur&&x.current.onBlur(e),M(null)};n.current={onKeyDown:function(e){if(e.which===y.Z.TAB){var t=(n=e.shiftKey?-1:1,r=_e.indexOf(b)+n,_e[r]||null);return M(t),t&&e.preventDefault(),!0}var n,r;if(b){var o="date"===b?w:x;return o.current&&o.current.onKeyDown&&o.current.onKeyDown(e),!0}return!![y.Z.LEFT,y.Z.RIGHT,y.Z.UP,y.Z.DOWN].includes(e.which)&&(M("date"),!0)},onBlur:L,onClose:L};var E=function(e,t){var n=e;"date"===t&&!o&&S.defaultValue?(n=r.setHour(n,r.getHour(S.defaultValue)),n=r.setMinute(n,r.getMinute(S.defaultValue)),n=r.setSecond(n,r.getSecond(S.defaultValue))):"time"===t&&!o&&a&&(n=r.setYear(n,r.getYear(a)),n=r.setMonth(n,r.getMonth(a)),n=r.setDate(n,r.getDate(a))),m&&m(n,"mouse")},T=i?i(o||null):{};return d.createElement("div",{className:p()(h,(0,u.Z)({},"".concat(h,"-active"),b))},d.createElement(ye,(0,s.Z)({},e,{operationRef:w,active:"date"===b,onSelect:function(e){E(k(r,e,f&&"object"===(0,v.Z)(f)?f.defaultValue:null),"date")}})),d.createElement(fe,(0,s.Z)({},e,{format:void 0},S,T,{defaultValue:void 0,operationRef:x,active:"time"===b,onSelect:function(e){E(e,"time")}})))};var be=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,a="".concat(t,"-cell"),i="".concat(t,"-week-panel-row");return d.createElement(ye,(0,s.Z)({},e,{panelName:"week",prefixColumn:function(e){return d.createElement("td",{key:"week",className:p()(a,"".concat(a,"-week"))},n.locale.getWeek(r.locale,e))},rowClassName:function(e){return p()(i,(0,u.Z)({},"".concat(i,"-selected"),K(n,r.locale,o,e)))},keyboardConfig:{onLeftRight:null}}))};var Me=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.viewDate,a=e.onNextYear,i=e.onPrevYear,u=e.onYearClick;if(d.useContext(_).hideHeader)return null;var l="".concat(t,"-header");return d.createElement(b,(0,s.Z)({},e,{prefixCls:l,onSuperPrev:i,onSuperNext:a}),d.createElement("button",{type:"button",onClick:u,className:"".concat(t,"-year-btn")},X(o,{locale:r,format:r.yearFormat,generateConfig:n})))};var we=function(e){var t=e.prefixCls,n=e.locale,r=e.value,o=e.viewDate,a=e.generateConfig,i=e.monthCellRender,u=d.useContext(pe),l=u.rangedValue,c=u.hoverRangedValue,f=me({cellPrefixCls:"".concat(t,"-cell"),value:r,generateConfig:a,rangedValue:l,hoverRangedValue:c,isSameCell:function(e,t){return B(a,e,t)},isInView:function(){return!0},offsetCell:function(e,t){return a.addMonth(e,t)}}),p=n.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(n.locale):[]),m=a.setMonth(o,0),h=i?function(e){return i(e,n)}:void 0;return d.createElement(S,(0,s.Z)({},e,{rowNum:4,colNum:3,baseDate:m,getCellNode:h,getCellText:function(e){return n.monthFormat?X(e,{locale:n,format:n.monthFormat,generateConfig:a}):p[a.getMonth(e)]},getCellClassName:f,getCellDate:a.addMonth,titleCell:function(e){return X(e,{locale:n,format:"YYYY-MM",generateConfig:a})}}))};var ke=function(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,o=e.generateConfig,a=e.value,i=e.viewDate,u=e.onPanelChange,l=e.onSelect,c="".concat(t,"-month-panel");n.current={onKeyDown:function(e){return D(e,{onLeftRight:function(e){l(o.addMonth(a||i,e),"key")},onCtrlLeftRight:function(e){l(o.addYear(a||i,e),"key")},onUpDown:function(e){l(o.addMonth(a||i,3*e),"key")},onEnter:function(){u("date",a||i)}})}};var f=function(e){var t=o.addYear(i,e);r(t),u(null,t)};return d.createElement("div",{className:c},d.createElement(Me,(0,s.Z)({},e,{prefixCls:t,onPrevYear:function(){f(-1)},onNextYear:function(){f(1)},onYearClick:function(){u("year",i)}})),d.createElement(we,(0,s.Z)({},e,{prefixCls:t,onSelect:function(e){l(e,"mouse"),u("date",e)}})))};var xe=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.viewDate,a=e.onNextYear,i=e.onPrevYear,u=e.onYearClick;if(d.useContext(_).hideHeader)return null;var l="".concat(t,"-header");return d.createElement(b,(0,s.Z)({},e,{prefixCls:l,onSuperPrev:i,onSuperNext:a}),d.createElement("button",{type:"button",onClick:u,className:"".concat(t,"-year-btn")},X(o,{locale:r,format:r.yearFormat,generateConfig:n})))};var Se=function(e){var t=e.prefixCls,n=e.locale,r=e.value,o=e.viewDate,a=e.generateConfig,i=d.useContext(pe),u=i.rangedValue,l=i.hoverRangedValue,c=me({cellPrefixCls:"".concat(t,"-cell"),value:r,generateConfig:a,rangedValue:u,hoverRangedValue:l,isSameCell:function(e,t){return W(a,e,t)},isInView:function(){return!0},offsetCell:function(e,t){return a.addMonth(e,3*t)}}),f=a.setDate(a.setMonth(o,0),1);return d.createElement(S,(0,s.Z)({},e,{rowNum:1,colNum:4,baseDate:f,getCellText:function(e){return X(e,{locale:n,format:n.quarterFormat||"[Q]Q",generateConfig:a})},getCellClassName:c,getCellDate:function(e,t){return a.addMonth(e,3*t)},titleCell:function(e){return X(e,{locale:n,format:"YYYY-[Q]Q",generateConfig:a})}}))};var Le=function(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,o=e.generateConfig,a=e.value,i=e.viewDate,u=e.onPanelChange,l=e.onSelect,c="".concat(t,"-quarter-panel");n.current={onKeyDown:function(e){return D(e,{onLeftRight:function(e){l(o.addMonth(a||i,3*e),"key")},onCtrlLeftRight:function(e){l(o.addYear(a||i,e),"key")},onUpDown:function(e){l(o.addYear(a||i,e),"key")}})}};var f=function(e){var t=o.addYear(i,e);r(t),u(null,t)};return d.createElement("div",{className:c},d.createElement(xe,(0,s.Z)({},e,{prefixCls:t,onPrevYear:function(){f(-1)},onNextYear:function(){f(1)},onYearClick:function(){u("year",i)}})),d.createElement(Se,(0,s.Z)({},e,{prefixCls:t,onSelect:function(e){l(e,"mouse")}})))};var Ee=function(e){var t=e.prefixCls,n=e.generateConfig,r=e.viewDate,o=e.onPrevDecade,a=e.onNextDecade,i=e.onDecadeClick;if(d.useContext(_).hideHeader)return null;var u="".concat(t,"-header"),l=n.getYear(r),c=Math.floor(l/Ce)*Ce,f=c+Ce-1;return d.createElement(b,(0,s.Z)({},e,{prefixCls:u,onSuperPrev:o,onSuperNext:a}),d.createElement("button",{type:"button",onClick:i,className:"".concat(t,"-decade-btn")},c,"-",f))};var Te=function(e){var t=e.prefixCls,n=e.value,r=e.viewDate,o=e.locale,a=e.generateConfig,i=d.useContext(pe),u=i.rangedValue,l=i.hoverRangedValue,c="".concat(t,"-cell"),f=a.getYear(r),p=Math.floor(f/Ce)*Ce,m=p+Ce-1,h=a.setYear(r,p-Math.ceil((12-Ce)/2)),v=me({cellPrefixCls:c,value:n,generateConfig:a,rangedValue:u,hoverRangedValue:l,isSameCell:function(e,t){return z(a,e,t)},isInView:function(e){var t=a.getYear(e);return p<=t&&t<=m},offsetCell:function(e,t){return a.addYear(e,t)}});return d.createElement(S,(0,s.Z)({},e,{rowNum:4,colNum:3,baseDate:h,getCellText:a.getYear,getCellClassName:v,getCellDate:a.addYear,titleCell:function(e){return X(e,{locale:o,format:"YYYY",generateConfig:a})}}))},Ce=10;var Oe=function(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,o=e.generateConfig,a=e.value,i=e.viewDate,u=e.sourceMode,l=e.onSelect,c=e.onPanelChange,f="".concat(t,"-year-panel");n.current={onKeyDown:function(e){return D(e,{onLeftRight:function(e){l(o.addYear(a||i,e),"key")},onCtrlLeftRight:function(e){l(o.addYear(a||i,e*Ce),"key")},onUpDown:function(e){l(o.addYear(a||i,3*e),"key")},onEnter:function(){c("date"===u?"date":"month",a||i)}})}};var p=function(e){var t=o.addYear(i,10*e);r(t),c(null,t)};return d.createElement("div",{className:f},d.createElement(Ee,(0,s.Z)({},e,{prefixCls:t,onPrevDecade:function(){p(-1)},onNextDecade:function(){p(1)},onDecadeClick:function(){c("decade",i)}})),d.createElement(Te,(0,s.Z)({},e,{prefixCls:t,onSelect:function(e){c("date"===u?"date":"month",e),l(e,"mouse")}})))};function Pe(e,t,n){return n?d.createElement("div",{className:"".concat(e,"-footer-extra")},n(t)):null}function De(e){var t,n,r=e.prefixCls,o=e.rangeList,a=void 0===o?[]:o,i=e.components,s=void 0===i?{}:i,u=e.needConfirmButton,l=e.onNow,c=e.onOk,f=e.okDisabled,p=e.showNow,m=e.locale;if(a.length){var h=s.rangeItem||"span";t=d.createElement(d.Fragment,null,a.map((function(e){var t=e.label,n=e.onClick,o=e.onMouseEnter,a=e.onMouseLeave;return d.createElement("li",{key:t,className:"".concat(r,"-preset")},d.createElement(h,{onClick:n,onMouseEnter:o,onMouseLeave:a},t))})))}if(u){var v=s.button||"button";l&&!t&&!1!==p&&(t=d.createElement("li",{className:"".concat(r,"-now")},d.createElement("a",{className:"".concat(r,"-now-btn"),onClick:l},m.now))),n=u&&d.createElement("li",{className:"".concat(r,"-ok")},d.createElement(v,{disabled:f,onClick:c},m.ok))}return t||n?d.createElement("ul",{className:"".concat(r,"-ranges")},t,n):null}var Ye=function(e){var t,n=e.prefixCls,r=void 0===n?"rc-picker":n,o=e.className,a=e.style,i=e.locale,f=e.generateConfig,g=e.value,b=e.defaultValue,M=e.pickerValue,x=e.defaultPickerValue,S=e.disabledDate,L=e.mode,E=e.picker,T=void 0===E?"date":E,C=e.tabIndex,O=void 0===C?0:C,P=e.showNow,D=e.showTime,Y=e.showToday,j=e.renderExtraFooter,Z=e.hideHeader,N=e.onSelect,A=e.onChange,I=e.onPanelChange,F=e.onMouseDown,$=e.onPickerValueChange,z=e.onOk,V=e.components,W=e.direction,B=e.hourStep,U=void 0===B?1:B,K=e.minuteStep,G=void 0===K?1:K,J=e.secondStep,X=void 0===J?1:J,Q="date"===T&&!!D||"time"===T,ee=24%U==0,te=60%G==0,ne=60%X==0,re=d.useContext(_),oe=re.operationRef,ae=re.panelRef,ie=re.onSelect,se=re.hideRanges,ue=re.defaultOpenValue,le=d.useContext(pe),ce=le.inRange,de=le.panelPosition,me=le.rangedValue,he=le.hoverRangedValue,ve=d.useRef({}),_e=d.useRef(!0),Me=(0,h.Z)(null,{value:g,defaultValue:b,postState:function(e){return!e&&ue&&"time"===T?ue:e}}),we=(0,c.Z)(Me,2),xe=we[0],Se=we[1],Ee=(0,h.Z)(null,{value:M,defaultValue:x||xe,postState:function(e){var t=f.getNow();return e?!xe&&D?"object"===(0,v.Z)(D)?k(f,Array.isArray(e)?e[0]:e,D.defaultValue||t):k(f,Array.isArray(e)?e[0]:e,b||t):e:t}}),Te=(0,c.Z)(Ee,2),Ce=Te[0],Ye=Te[1],je=function(e){Ye(e),$&&$(e)},Ze=function(e){var t=R[T];return t?t(e):e},Ne=(0,h.Z)((function(){return"time"===T?"time":Ze("date")}),{value:L}),Re=(0,c.Z)(Ne,2),Ae=Re[0],Ie=Re[1];d.useEffect((function(){Ie(T)}),[T]);var Fe,He=d.useState((function(){return Ae})),$e=(0,c.Z)(He,2),ze=$e[0],Ve=$e[1],We=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(Ae===T||n)&&(Se(e),N&&N(e),ie&&ie(e,t),!A||q(f,e,xe)||(null==S?void 0:S(e))||A(e))},Be=function(e){return ve.current&&ve.current.onKeyDown?([y.Z.LEFT,y.Z.RIGHT,y.Z.UP,y.Z.DOWN,y.Z.PAGE_UP,y.Z.PAGE_DOWN,y.Z.ENTER].includes(e.which)&&e.preventDefault(),ve.current.onKeyDown(e)):((0,m.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)};oe&&"right"!==de&&(oe.current={onKeyDown:Be,onClose:function(){ve.current&&ve.current.onClose&&ve.current.onClose()}}),d.useEffect((function(){g&&!_e.current&&Ye(g)}),[g]),d.useEffect((function(){_e.current=!1}),[]);var Ue,Ke,qe,Ge=(0,l.Z)((0,l.Z)({},e),{},{operationRef:ve,prefixCls:r,viewDate:Ce,value:xe,onViewDateChange:je,sourceMode:ze,onPanelChange:function(e,t){var n=Ze(e||Ae);Ve(Ae),Ie(n),I&&(Ae!==n||q(f,Ce,Ce))&&I(t,n)},disabledDate:S});switch(delete Ge.onChange,delete Ge.onSelect,Ae){case"decade":Fe=d.createElement(H,(0,s.Z)({},Ge,{onSelect:function(e,t){je(e),We(e,t)}}));break;case"year":Fe=d.createElement(Oe,(0,s.Z)({},Ge,{onSelect:function(e,t){je(e),We(e,t)}}));break;case"month":Fe=d.createElement(ke,(0,s.Z)({},Ge,{onSelect:function(e,t){je(e),We(e,t)}}));break;case"quarter":Fe=d.createElement(Le,(0,s.Z)({},Ge,{onSelect:function(e,t){je(e),We(e,t)}}));break;case"week":Fe=d.createElement(be,(0,s.Z)({},Ge,{onSelect:function(e,t){je(e),We(e,t)}}));break;case"time":delete Ge.showTime,Fe=d.createElement(fe,(0,s.Z)({},Ge,"object"===(0,v.Z)(D)?D:null,{onSelect:function(e,t){je(e),We(e,t)}}));break;default:Fe=D?d.createElement(ge,(0,s.Z)({},Ge,{onSelect:function(e,t){je(e),We(e,t)}})):d.createElement(ye,(0,s.Z)({},Ge,{onSelect:function(e,t){je(e),We(e,t)}}))}if(se||(Ue=Pe(r,Ae,j),Ke=De({prefixCls:r,components:V,needConfirmButton:Q,okDisabled:!xe||S&&S(xe),locale:i,showNow:P,onNow:Q&&function(){var e=f.getNow(),t=function(e,t,n,r,o,a){var i=Math.floor(e/r)*r;if(i<e)return[i,60-o,60-a];var s=Math.floor(t/o)*o;return s<t?[i,s,60-a]:[i,s,Math.floor(n/a)*a]}(f.getHour(e),f.getMinute(e),f.getSecond(e),ee?U:1,te?G:1,ne?X:1),n=w(f,e,t[0],t[1],t[2]);We(n,"submit")},onOk:function(){xe&&(We(xe,"submit",!0),z&&z(xe))}})),Y&&"date"===Ae&&"date"===T&&!D){var Je=f.getNow(),Xe="".concat(r,"-today-btn"),Qe=S&&S(Je);qe=d.createElement("a",{className:p()(Xe,Qe&&"".concat(Xe,"-disabled")),"aria-disabled":Qe,onClick:function(){Qe||We(Je,"mouse",!0)}},i.today)}return d.createElement(_.Provider,{value:(0,l.Z)((0,l.Z)({},re),{},{mode:Ae,hideHeader:"hideHeader"in e?Z:re.hideHeader,hidePrevBtn:ce&&"right"===de,hideNextBtn:ce&&"left"===de})},d.createElement("div",{tabIndex:O,className:p()("".concat(r,"-panel"),o,(t={},(0,u.Z)(t,"".concat(r,"-panel-has-range"),me&&me[0]&&me[1]),(0,u.Z)(t,"".concat(r,"-panel-has-range-hover"),he&&he[0]&&he[1]),(0,u.Z)(t,"".concat(r,"-panel-rtl"),"rtl"===W),t)),style:a,onKeyDown:Be,onBlur:function(e){ve.current&&ve.current.onBlur&&ve.current.onBlur(e)},onMouseDown:F,ref:ae},Fe,Ue||Ke||qe?d.createElement("div",{className:"".concat(r,"-footer")},Ue,Ke,qe):null))},je=n(80113),Ze={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};var Ne=function(e){var t,n=e.prefixCls,r=e.popupElement,o=e.popupStyle,a=e.visible,i=e.dropdownClassName,s=e.dropdownAlign,l=e.transitionName,c=e.getPopupContainer,f=e.children,m=e.range,h=e.popupPlacement,v=e.direction,y="".concat(n,"-dropdown");return d.createElement(je.Z,{showAction:[],hideAction:[],popupPlacement:void 0!==h?h:"rtl"===v?"bottomRight":"bottomLeft",builtinPlacements:Ze,prefixCls:y,popupTransitionName:l,popup:r,popupAlign:s,popupVisible:a,popupClassName:p()(i,(t={},(0,u.Z)(t,"".concat(y,"-range"),m),(0,u.Z)(t,"".concat(y,"-rtl"),"rtl"===v),t)),popupStyle:o,getPopupContainer:c},f)};function Re(e){var t=e.open,n=e.value,r=e.isClickOutside,o=e.triggerOpen,a=e.forwardKeyDown,i=e.onKeyDown,s=e.blurToCancel,u=e.onSubmit,l=e.onCancel,f=e.onFocus,p=e.onBlur,m=(0,d.useState)(!1),h=(0,c.Z)(m,2),v=h[0],_=h[1],g=(0,d.useState)(!1),b=(0,c.Z)(g,2),M=b[0],w=b[1],k=(0,d.useRef)(!1),x=(0,d.useRef)(!1),S=(0,d.useRef)(!1),L={onMouseDown:function(){_(!0),o(!0)},onKeyDown:function(e){if(i(e,(function(){S.current=!0})),!S.current){switch(e.which){case y.Z.ENTER:return t?!1!==u()&&_(!0):o(!0),void e.preventDefault();case y.Z.TAB:return void(v&&t&&!e.shiftKey?(_(!1),e.preventDefault()):!v&&t&&!a(e)&&e.shiftKey&&(_(!0),e.preventDefault()));case y.Z.ESC:return _(!0),void l()}t||[y.Z.SHIFT].includes(e.which)?v||a(e):o(!0)}},onFocus:function(e){_(!0),w(!0),f&&f(e)},onBlur:function(e){!k.current&&r(document.activeElement)?(s?setTimeout((function(){for(var e=document.activeElement;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;r(e)&&l()}),0):t&&(o(!1),x.current&&u()),w(!1),p&&p(e)):k.current=!1}};return(0,d.useEffect)((function(){x.current=!1}),[t]),(0,d.useEffect)((function(){x.current=!0}),[n]),(0,d.useEffect)((function(){return e=function(e){var n=function(e){var t,n=e.target;return e.composed&&n.shadowRoot&&(null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])||n}(e);if(t){var a=r(n);a?M&&!a||o(!1):(k.current=!0,requestAnimationFrame((function(){k.current=!1})))}},!Z&&"undefined"!=typeof window&&window.addEventListener&&(Z=function(e){(0,E.Z)(N).forEach((function(t){t(e)}))},window.addEventListener("mousedown",Z)),N.add(e),function(){N.delete(e),0===N.size&&(window.removeEventListener("mousedown",Z),Z=null)};var e})),[L,{focused:M,typing:v}]}function Ae(e){var t=e.valueTexts,n=e.onTextChange,r=d.useState(""),o=(0,c.Z)(r,2),a=o[0],i=o[1],s=d.useRef([]);function u(){i(s.current[0])}return s.current=t,d.useEffect((function(){t.every((function(e){return e!==a}))&&u()}),[t.join("||")]),[a,function(e){i(e),n(e)},u]}var Ie=n(74445),Fe=n.n(Ie);function He(e,t){var n=t.formatList,r=t.generateConfig,o=t.locale;return(0,ne.Z)((function(){if(!e)return[[""],""];for(var t="",a=[],i=0;i<n.length;i+=1){var s=n[i],u=X(e,{generateConfig:r,locale:o,format:s});a.push(u),0===i&&(t=u)}return[a,t]}),[e,n],(function(e,t){return e[0]!==t[0]||!Fe()(e[1],t[1])}))}function $e(e,t){var n=t.formatList,r=t.generateConfig,o=t.locale,a=(0,d.useState)(null),i=(0,c.Z)(a,2),s=i[0],u=i[1],l=(0,d.useRef)(null);function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];cancelAnimationFrame(l.current),t?u(e):l.current=requestAnimationFrame((function(){u(e)}))}var p=He(s,{formatList:n,generateConfig:r,locale:o}),m=(0,c.Z)(p,2)[1];function h(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];f(null,e)}return(0,d.useEffect)((function(){h(!0)}),[e]),(0,d.useEffect)((function(){return function(){return cancelAnimationFrame(l.current)}}),[]),[m,function(e){f(e)},h]}function ze(e){var t,n=e.prefixCls,r=void 0===n?"rc-picker":n,o=e.id,a=e.tabIndex,i=e.style,f=e.className,v=e.dropdownClassName,y=e.dropdownAlign,g=e.popupStyle,b=e.transitionName,M=e.generateConfig,w=e.locale,k=e.inputReadOnly,x=e.allowClear,S=e.autoFocus,L=e.showTime,E=e.picker,T=void 0===E?"date":E,C=e.format,O=e.use12Hours,P=e.value,D=e.defaultValue,Z=e.open,N=e.defaultOpen,R=e.defaultOpenValue,I=e.suffixIcon,F=e.clearIcon,H=e.disabled,$=e.disabledDate,z=e.placeholder,V=e.getPopupContainer,W=e.pickerRef,B=e.panelRender,U=e.onChange,K=e.onOpenChange,G=e.onFocus,J=e.onBlur,ee=e.onMouseDown,te=e.onMouseUp,ne=e.onMouseEnter,re=e.onMouseLeave,oe=e.onContextMenu,se=e.onClick,ue=e.onKeyDown,le=e.onSelect,ce=e.direction,de=e.autoComplete,fe=void 0===de?"off":de,pe=d.useRef(null),me="date"===T&&!!L||"time"===T,he=ae(Y(C,T,L,O)),ve=d.useRef(null),ye=d.useRef(null),_e=d.useRef(null),ge=(0,h.Z)(null,{value:P,defaultValue:D}),be=(0,c.Z)(ge,2),Me=be[0],we=be[1],ke=d.useState(Me),xe=(0,c.Z)(ke,2),Se=xe[0],Le=xe[1],Ee=d.useRef(null),Te=(0,h.Z)(!1,{value:Z,defaultValue:N,postState:function(e){return!H&&e},onChange:function(e){K&&K(e),!e&&Ee.current&&Ee.current.onClose&&Ee.current.onClose()}}),Ce=(0,c.Z)(Te,2),Oe=Ce[0],Pe=Ce[1],De=He(Se,{formatList:he,generateConfig:M,locale:w}),je=(0,c.Z)(De,2),Ze=je[0],Ie=je[1],Fe=Ae({valueTexts:Ze,onTextChange:function(e){var t=Q(e,{locale:w,formatList:he,generateConfig:M});!t||$&&$(t)||Le(t)}}),ze=(0,c.Z)(Fe,3),Ve=ze[0],We=ze[1],Be=ze[2],Ue=function(e){Le(e),we(e),U&&!q(M,Me,e)&&U(e,e?X(e,{generateConfig:M,locale:w,format:he[0]}):"")},Ke=function(e){H&&e||Pe(e)},qe=Re({blurToCancel:me,open:Oe,value:Ve,triggerOpen:Ke,forwardKeyDown:function(e){return Oe&&Ee.current&&Ee.current.onKeyDown?Ee.current.onKeyDown(e):((0,m.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},isClickOutside:function(e){return!A([ve.current,ye.current,_e.current],e)},onSubmit:function(){return(!$||!$(Se))&&(Ue(Se),Ke(!1),Be(),!0)},onCancel:function(){Ke(!1),Le(Me),Be()},onKeyDown:function(e,t){null==ue||ue(e,t)},onFocus:G,onBlur:J}),Ge=(0,c.Z)(qe,2),Je=Ge[0],Xe=Ge[1],Qe=Xe.focused,et=Xe.typing;d.useEffect((function(){Oe||(Le(Me),Ze.length&&""!==Ze[0]?Ie!==Ve&&Be():We(""))}),[Oe,Ze]),d.useEffect((function(){Oe||Be()}),[T]),d.useEffect((function(){Le(Me)}),[Me]),W&&(W.current={focus:function(){pe.current&&pe.current.focus()},blur:function(){pe.current&&pe.current.blur()}});var tt=$e(Ve,{formatList:he,generateConfig:M,locale:w}),nt=(0,c.Z)(tt,3),rt=nt[0],ot=nt[1],at=nt[2],it=(0,l.Z)((0,l.Z)({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),st=d.createElement(Ye,(0,s.Z)({},it,{generateConfig:M,className:p()((0,u.Z)({},"".concat(r,"-panel-focused"),!et)),value:Se,locale:w,tabIndex:-1,onSelect:function(e){null==le||le(e),Le(e)},direction:ce,onPanelChange:function(t,n){var r=e.onPanelChange;at(!0),null==r||r(t,n)}}));B&&(st=B(st));var ut,lt,ct=d.createElement("div",{className:"".concat(r,"-panel-container"),onMouseDown:function(e){e.preventDefault()}},st);I&&(ut=d.createElement("span",{className:"".concat(r,"-suffix")},I)),x&&Me&&!H&&(lt=d.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation(),Ue(null),Ke(!1)},className:"".concat(r,"-clear"),role:"button"},F||d.createElement("span",{className:"".concat(r,"-clear-btn")})));var dt="rtl"===ce?"bottomRight":"bottomLeft";return d.createElement(_.Provider,{value:{operationRef:Ee,hideHeader:"time"===T,panelRef:ve,onSelect:function(e,t){("submit"===t||"key"!==t&&!me)&&(Ue(e),Ke(!1))},open:Oe,defaultOpenValue:R,onDateMouseEnter:ot,onDateMouseLeave:at}},d.createElement(Ne,{visible:Oe,popupElement:ct,popupStyle:g,prefixCls:r,dropdownClassName:v,dropdownAlign:y,getPopupContainer:V,transitionName:b,popupPlacement:dt,direction:ce},d.createElement("div",{ref:_e,className:p()(r,f,(t={},(0,u.Z)(t,"".concat(r,"-disabled"),H),(0,u.Z)(t,"".concat(r,"-focused"),Qe),(0,u.Z)(t,"".concat(r,"-rtl"),"rtl"===ce),t)),style:i,onMouseDown:ee,onMouseUp:function(){te&&te.apply(void 0,arguments),pe.current&&(pe.current.focus(),Ke(!0))},onMouseEnter:ne,onMouseLeave:re,onContextMenu:oe,onClick:se},d.createElement("div",{className:p()("".concat(r,"-input"),(0,u.Z)({},"".concat(r,"-input-placeholder"),!!rt)),ref:ye},d.createElement("input",(0,s.Z)({id:o,tabIndex:a,disabled:H,readOnly:k||"function"==typeof he[0]||!et,value:rt||Ve,onChange:function(e){We(e.target.value)},autoFocus:S,placeholder:z,ref:pe,title:Ve},Je,{size:j(T,he[0],M)},ie(e),{autoComplete:fe})),ut,lt))))}var Ve=function(e){(0,a.Z)(n,e);var t=(0,i.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).pickerRef=d.createRef(),e.focus=function(){e.pickerRef.current&&e.pickerRef.current.focus()},e.blur=function(){e.pickerRef.current&&e.pickerRef.current.blur()},e}return(0,o.Z)(n,[{key:"render",value:function(){return d.createElement(ze,(0,s.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),n}(d.Component),We=Ve;function Be(e,t,n,r){var o=J(e,n,r,1);function a(n){return n(e,t)?"same":n(o,t)?"closing":"far"}switch(n){case"year":return a((function(e,t){return function(e,t,n){var r=$(t,n);return"boolean"==typeof r?r:Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)}(r,e,t)}));case"quarter":case"month":return a((function(e,t){return z(r,e,t)}));default:return a((function(e,t){return B(r,e,t)}))}}function Ue(e){var t=e.values,n=e.picker,r=e.defaultDates,o=e.generateConfig,a=d.useState((function(){return[se(r,0),se(r,1)]})),i=(0,c.Z)(a,2),s=i[0],u=i[1],l=d.useState(null),f=(0,c.Z)(l,2),p=f[0],m=f[1],h=se(t,0),v=se(t,1);return[function(e){return s[e]?s[e]:se(p,e)||function(e,t,n,r){var o=se(e,0),a=se(e,1);if(0===t)return o;if(o&&a)switch(Be(o,a,n,r)){case"same":case"closing":return o;default:return J(a,n,r,-1)}return o}(t,e,n,o)||h||v||o.getNow()},function(e,n){if(e){var r=ue(p,e,n);u(ue(s,null,n)||[null,null]);var o=(n+1)%2;se(t,o)||(r=ue(r,e,o)),m(r)}else(h||v)&&m(null)}]}function Ke(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function qe(e,t,n,r){return!!e||(!(!r||!r[t])||!!n[(t+1)%2])}function Ge(e){var t,n,r,o=e.prefixCls,a=void 0===o?"rc-picker":o,i=e.id,f=e.style,y=e.className,g=e.popupStyle,b=e.dropdownClassName,M=e.transitionName,w=e.dropdownAlign,k=e.getPopupContainer,x=e.generateConfig,S=e.locale,L=e.placeholder,E=e.autoFocus,T=e.disabled,C=e.format,O=e.picker,P=void 0===O?"date":O,D=e.showTime,Z=e.use12Hours,N=e.separator,R=void 0===N?"~":N,I=e.value,F=e.defaultValue,H=e.defaultPickerValue,$=e.open,z=e.defaultOpen,B=e.disabledDate,G=e.disabledTime,ee=e.dateRender,te=e.panelRender,ne=e.ranges,re=e.allowEmpty,oe=e.allowClear,le=e.suffixIcon,ce=e.clearIcon,de=e.pickerRef,fe=e.inputReadOnly,me=e.mode,he=e.renderExtraFooter,ve=e.onChange,ye=e.onOpenChange,_e=e.onPanelChange,ge=e.onCalendarChange,be=e.onFocus,Me=e.onBlur,we=e.onMouseEnter,ke=e.onMouseLeave,xe=e.onOk,Se=e.onKeyDown,Le=e.components,Ee=e.order,Te=e.direction,Ce=e.activePickerIndex,Oe=e.autoComplete,je=void 0===Oe?"off":Oe,Ze="date"===P&&!!D||"time"===P,Ie=(0,d.useRef)({}),Fe=(0,d.useRef)(null),ze=(0,d.useRef)(null),Ve=(0,d.useRef)(null),We=(0,d.useRef)(null),Be=(0,d.useRef)(null),Ge=(0,d.useRef)(null),Je=(0,d.useRef)(null),Xe=ae(Y(C,P,D,Z)),Qe=(0,h.Z)(0,{value:Ce}),et=(0,c.Z)(Qe,2),tt=et[0],nt=et[1],rt=(0,d.useRef)(null),ot=d.useMemo((function(){return Array.isArray(T)?T:[T||!1,T||!1]}),[T]),at=(0,h.Z)(null,{value:I,defaultValue:F,postState:function(e){return"time"!==P||Ee?Ke(e,x):e}}),it=(0,c.Z)(at,2),st=it[0],ut=it[1],lt=Ue({values:st,picker:P,defaultDates:H,generateConfig:x}),ct=(0,c.Z)(lt,2),dt=ct[0],ft=ct[1],pt=(0,h.Z)(st,{postState:function(e){var t=e;if(ot[0]&&ot[1])return t;for(var n=0;n<2;n+=1)!ot[n]||se(t,n)||se(re,n)||(t=ue(t,x.getNow(),n));return t}}),mt=(0,c.Z)(pt,2),ht=mt[0],vt=mt[1],yt=(0,h.Z)([P,P],{value:me}),_t=(0,c.Z)(yt,2),gt=_t[0],bt=_t[1];(0,d.useEffect)((function(){bt([P,P])}),[P]);var Mt=function(e,t){bt(e),_e&&_e(t,e)},wt=function(e,t,n){var r=e.picker,o=e.locale,a=e.selectedValue,i=e.disabledDate,s=e.disabled,u=e.generateConfig,l=se(a,0),c=se(a,1);function f(e){return u.locale.getWeekFirstDate(o.locale,e)}function p(e){return 100*u.getYear(e)+u.getMonth(e)}function m(e){return 10*u.getYear(e)+V(u,e)}return[d.useCallback((function(e){if(i&&i(e))return!0;if(s[1]&&c)return!U(u,e,c)&&u.isAfter(e,c);if(t&&c)switch(r){case"quarter":return m(e)>m(c);case"month":return p(e)>p(c);case"week":return f(e)>f(c);default:return!U(u,e,c)&&u.isAfter(e,c)}return!1}),[i,s[1],c,t]),d.useCallback((function(e){if(i&&i(e))return!0;if(s[0]&&l)return!U(u,e,c)&&u.isAfter(l,e);if(n&&l)switch(r){case"quarter":return m(e)<m(l);case"month":return p(e)<p(l);case"week":return f(e)<f(l);default:return!U(u,e,l)&&u.isAfter(l,e)}return!1}),[i,s[0],l,n])]}({picker:P,selectedValue:ht,locale:S,disabled:ot,disabledDate:B,generateConfig:x},Ie.current[1],Ie.current[0]),kt=(0,c.Z)(wt,2),xt=kt[0],St=kt[1],Lt=(0,h.Z)(!1,{value:$,defaultValue:z,postState:function(e){return!ot[tt]&&e},onChange:function(e){ye&&ye(e),!e&&rt.current&&rt.current.onClose&&rt.current.onClose()}}),Et=(0,c.Z)(Lt,2),Tt=Et[0],Ct=Et[1],Ot=Tt&&0===tt,Pt=Tt&&1===tt,Dt=(0,d.useState)(0),Yt=(0,c.Z)(Dt,2),jt=Yt[0],Zt=Yt[1];(0,d.useEffect)((function(){!Tt&&Fe.current&&Zt(Fe.current.offsetWidth)}),[Tt]);var Nt=d.useRef();function Rt(e,t){if(e)clearTimeout(Nt.current),Ie.current[t]=!0,nt(t),Ct(e),Tt||ft(null,t);else if(tt===t){Ct(e);var n=Ie.current;Nt.current=setTimeout((function(){n===Ie.current&&(Ie.current={})}))}}function At(e){Rt(!0,e),setTimeout((function(){var t=[Ge,Je][e];t.current&&t.current.focus()}),0)}function It(e,t){var n=e,r=se(n,0),o=se(n,1);r&&o&&x.isAfter(r,o)&&("week"===P&&!K(x,S.locale,r,o)||"quarter"===P&&!W(x,r,o)||"week"!==P&&"quarter"!==P&&"time"!==P&&!U(x,r,o)?(0===t?(n=[r,null],o=null):(r=null,n=[null,o]),Ie.current=(0,u.Z)({},t,!0)):"time"===P&&!1===Ee||(n=Ke(n,x))),vt(n);var a=n&&n[0]?X(n[0],{generateConfig:x,locale:S,format:Xe[0]}):"",i=n&&n[1]?X(n[1],{generateConfig:x,locale:S,format:Xe[0]}):"";ge&&ge(n,[a,i],{range:0===t?"start":"end"});var s=qe(r,0,ot,re),l=qe(o,1,ot,re);(null===n||s&&l)&&(ut(n),!ve||q(x,se(st,0),r)&&q(x,se(st,1),o)||ve(n,[a,i]));var c=null;0!==t||ot[1]?1!==t||ot[0]||(c=0):c=1,null===c||c===tt||Ie.current[c]&&se(n,c)||!se(n,t)?Rt(!1,t):At(c)}var Ft=function(e){return Tt&&rt.current&&rt.current.onKeyDown?rt.current.onKeyDown(e):((0,m.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ht={formatList:Xe,generateConfig:x,locale:S},$t=He(se(ht,0),Ht),zt=(0,c.Z)($t,2),Vt=zt[0],Wt=zt[1],Bt=He(se(ht,1),Ht),Ut=(0,c.Z)(Bt,2),Kt=Ut[0],qt=Ut[1],Gt=function(e,t){var n=Q(e,{locale:S,formatList:Xe,generateConfig:x});n&&!(0===t?xt:St)(n)&&(vt(ue(ht,n,t)),ft(n,t))},Jt=Ae({valueTexts:Vt,onTextChange:function(e){return Gt(e,0)}}),Xt=(0,c.Z)(Jt,3),Qt=Xt[0],en=Xt[1],tn=Xt[2],nn=Ae({valueTexts:Kt,onTextChange:function(e){return Gt(e,1)}}),rn=(0,c.Z)(nn,3),on=rn[0],an=rn[1],sn=rn[2],un=(0,d.useState)(null),ln=(0,c.Z)(un,2),cn=ln[0],dn=ln[1],fn=(0,d.useState)(null),pn=(0,c.Z)(fn,2),mn=pn[0],hn=pn[1],vn=$e(Qt,{formatList:Xe,generateConfig:x,locale:S}),yn=(0,c.Z)(vn,3),_n=yn[0],gn=yn[1],bn=yn[2],Mn=$e(on,{formatList:Xe,generateConfig:x,locale:S}),wn=(0,c.Z)(Mn,3),kn=wn[0],xn=wn[1],Sn=wn[2],Ln=function(e,t){return{blurToCancel:Ze,forwardKeyDown:Ft,onBlur:Me,isClickOutside:function(e){return!A([ze.current,Ve.current,We.current,Fe.current],e)},onFocus:function(t){nt(e),be&&be(t)},triggerOpen:function(t){Rt(t,e)},onSubmit:function(){It(ht,e),t()},onCancel:function(){Rt(!1,e),vt(st),t()}}},En=Re((0,l.Z)((0,l.Z)({},Ln(0,tn)),{},{open:Ot,value:Qt,onKeyDown:function(e,t){null==Se||Se(e,t)}})),Tn=(0,c.Z)(En,2),Cn=Tn[0],On=Tn[1],Pn=On.focused,Dn=On.typing,Yn=Re((0,l.Z)((0,l.Z)({},Ln(1,sn)),{},{open:Pt,value:on,onKeyDown:function(e,t){null==Se||Se(e,t)}})),jn=(0,c.Z)(Yn,2),Zn=jn[0],Nn=jn[1],Rn=Nn.focused,An=Nn.typing,In=st&&st[0]?X(st[0],{locale:S,format:"YYYYMMDDHHmmss",generateConfig:x}):"",Fn=st&&st[1]?X(st[1],{locale:S,format:"YYYYMMDDHHmmss",generateConfig:x}):"";(0,d.useEffect)((function(){Tt||(vt(st),Vt.length&&""!==Vt[0]?Wt!==Qt&&tn():en(""),Kt.length&&""!==Kt[0]?qt!==on&&sn():an(""))}),[Tt,Vt,Kt]),(0,d.useEffect)((function(){vt(st)}),[In,Fn]),de&&(de.current={focus:function(){Ge.current&&Ge.current.focus()},blur:function(){Ge.current&&Ge.current.blur(),Je.current&&Je.current.blur()}});var Hn=Object.keys(ne||{}).map((function(e){var t=ne[e],n="function"==typeof t?t():t;return{label:e,onClick:function(){It(n,null),Rt(!1,tt)},onMouseEnter:function(){dn(n)},onMouseLeave:function(){dn(null)}}}));function $n(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;Tt&&mn&&mn[0]&&mn[1]&&x.isAfter(mn[1],mn[0])&&(r=mn);var o=D;if(D&&"object"===(0,v.Z)(D)&&D.defaultValue){var i=D.defaultValue;o=(0,l.Z)((0,l.Z)({},D),{},{defaultValue:se(i,tt)||void 0})}var c=null;return ee&&(c=function(e,t){return ee(e,t,{range:tt?"end":"start"})}),d.createElement(pe.Provider,{value:{inRange:!0,panelPosition:t,rangedValue:cn||ht,hoverRangedValue:r}},d.createElement(Ye,(0,s.Z)({},e,n,{dateRender:c,showTime:o,mode:gt[tt],generateConfig:x,style:void 0,direction:Te,disabledDate:0===tt?xt:St,disabledTime:function(e){return!!G&&G(e,0===tt?"start":"end")},className:p()((0,u.Z)({},"".concat(a,"-panel-focused"),0===tt?!Dn:!An)),value:se(ht,tt),locale:S,tabIndex:-1,onPanelChange:function(e,n){0===tt&&bn(!0),1===tt&&Sn(!0),Mt(ue(gt,n,tt),ue(ht,e,tt));var r=e;"right"===t&>[tt]===n&&(r=J(r,n,x,-1)),ft(r,tt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:se(ht,0===tt?1:0)})))}var zn=0,Vn=0;tt&&Ve.current&&Be.current&&ze.current&&(zn=Ve.current.offsetWidth+Be.current.offsetWidth,ze.current.offsetWidth&&zn>ze.current.offsetWidth&&(Vn=zn));var Wn="rtl"===Te?{right:zn}:{left:zn};var Bn,Un,Kn=d.createElement("div",{className:p()("".concat(a,"-range-wrapper"),"".concat(a,"-").concat(P,"-range-wrapper")),style:{minWidth:jt}},d.createElement("div",{className:"".concat(a,"-range-arrow"),style:Wn}),function(){var e,t=Pe(a,gt[tt],he),n=De({prefixCls:a,components:Le,needConfirmButton:Ze,okDisabled:!se(ht,tt)||B&&B(ht[tt]),locale:S,rangeList:Hn,onOk:function(){se(ht,tt)&&(It(ht,tt),xe&&xe(ht))}});if("time"===P||D)e=$n();else{var r=dt(tt),o=J(r,P,x),i=gt[tt]===P,s=$n(!!i&&"left",{pickerValue:r,onPickerValueChange:function(e){ft(e,tt)}}),u=$n("right",{pickerValue:o,onPickerValueChange:function(e){ft(J(e,P,x,-1),tt)}});e="rtl"===Te?d.createElement(d.Fragment,null,u,i&&s):d.createElement(d.Fragment,null,s,i&&u)}var l=d.createElement(d.Fragment,null,d.createElement("div",{className:"".concat(a,"-panels")},e),(t||n)&&d.createElement("div",{className:"".concat(a,"-footer")},t,n));return te&&(l=te(l)),d.createElement("div",{className:"".concat(a,"-panel-container"),style:{marginLeft:Vn},ref:ze,onMouseDown:function(e){e.preventDefault()}},l)}());le&&(Bn=d.createElement("span",{className:"".concat(a,"-suffix")},le)),oe&&(se(st,0)&&!ot[0]||se(st,1)&&!ot[1])&&(Un=d.createElement("span",{onMouseDown:function(e){e.preventDefault(),e.stopPropagation()},onMouseUp:function(e){e.preventDefault(),e.stopPropagation();var t=st;ot[0]||(t=ue(t,null,0)),ot[1]||(t=ue(t,null,1)),It(t,null),Rt(!1,tt)},className:"".concat(a,"-clear")},ce||d.createElement("span",{className:"".concat(a,"-clear-btn")})));var qn={size:j(P,Xe[0],x)},Gn=0,Jn=0;Ve.current&&We.current&&Be.current&&(0===tt?Jn=Ve.current.offsetWidth:(Gn=zn,Jn=We.current.offsetWidth));var Xn="rtl"===Te?{right:Gn}:{left:Gn};return d.createElement(_.Provider,{value:{operationRef:rt,hideHeader:"time"===P,onDateMouseEnter:function(e){hn(ue(ht,e,tt)),0===tt?gn(e):xn(e)},onDateMouseLeave:function(){hn(ue(ht,null,tt)),0===tt?bn():Sn()},hideRanges:!0,onSelect:function(e,t){var n=ue(ht,e,tt);"submit"===t||"key"!==t&&!Ze?(It(n,tt),0===tt?bn():Sn()):vt(n)},open:Tt}},d.createElement(Ne,{visible:Tt,popupElement:Kn,popupStyle:g,prefixCls:a,dropdownClassName:b,dropdownAlign:w,getPopupContainer:k,transitionName:M,range:!0,direction:Te},d.createElement("div",(0,s.Z)({ref:Fe,className:p()(a,"".concat(a,"-range"),y,(t={},(0,u.Z)(t,"".concat(a,"-disabled"),ot[0]&&ot[1]),(0,u.Z)(t,"".concat(a,"-focused"),0===tt?Pn:Rn),(0,u.Z)(t,"".concat(a,"-rtl"),"rtl"===Te),t)),style:f,onClick:function(e){Tt||Ge.current.contains(e.target)||Je.current.contains(e.target)||(ot[0]?ot[1]||At(1):At(0))},onMouseEnter:we,onMouseLeave:ke,onMouseDown:function(e){!Tt||!Pn&&!Rn||Ge.current.contains(e.target)||Je.current.contains(e.target)||e.preventDefault()}},ie(e)),d.createElement("div",{className:p()("".concat(a,"-input"),(n={},(0,u.Z)(n,"".concat(a,"-input-active"),0===tt),(0,u.Z)(n,"".concat(a,"-input-placeholder"),!!_n),n)),ref:Ve},d.createElement("input",(0,s.Z)({id:i,disabled:ot[0],readOnly:fe||"function"==typeof Xe[0]||!Dn,value:_n||Qt,onChange:function(e){en(e.target.value)},autoFocus:E,placeholder:se(L,0)||"",ref:Ge},Cn,qn,{autoComplete:je}))),d.createElement("div",{className:"".concat(a,"-range-separator"),ref:Be},R),d.createElement("div",{className:p()("".concat(a,"-input"),(r={},(0,u.Z)(r,"".concat(a,"-input-active"),1===tt),(0,u.Z)(r,"".concat(a,"-input-placeholder"),!!kn),r)),ref:We},d.createElement("input",(0,s.Z)({disabled:ot[1],readOnly:fe||"function"==typeof Xe[0]||!An,value:kn||on,onChange:function(e){an(e.target.value)},placeholder:se(L,1)||"",ref:Je},Zn,qn,{autoComplete:je}))),d.createElement("div",{className:"".concat(a,"-active-bar"),style:(0,l.Z)((0,l.Z)({},Xn),{},{width:Jn,position:"absolute"})}),Bn,Un)))}var Je=function(e){(0,a.Z)(n,e);var t=(0,i.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).pickerRef=d.createRef(),e.focus=function(){e.pickerRef.current&&e.pickerRef.current.focus()},e.blur=function(){e.pickerRef.current&&e.pickerRef.current.blur()},e}return(0,o.Z)(n,[{key:"render",value:function(){return d.createElement(Ge,(0,s.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),n}(d.Component),Xe=Je,Qe=We},62980:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(61320)),a=n(55620),i={getNow:function(){return(0,o.default)()},getFixedDate:function(e){return(0,o.default)(e,"YYYY-MM-DD")},getEndDate:function(e){return e.clone().endOf("month")},getWeekDay:function(e){var t=e.clone().locale("en_US");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},addYear:function(e,t){return e.clone().add(t,"year")},addMonth:function(e,t){return e.clone().add(t,"month")},addDate:function(e,t){return e.clone().add(t,"day")},setYear:function(e,t){return e.clone().year(t)},setMonth:function(e,t){return e.clone().month(t)},setDate:function(e,t){return e.clone().date(t)},setHour:function(e,t){return e.clone().hour(t)},setMinute:function(e,t){return e.clone().minute(t)},setSecond:function(e,t){return e.clone().second(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return(0,o.default)().locale(e).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.clone().locale(e).weekday(0)},getWeek:function(e,t){return t.clone().locale(e).week()},getShortWeekDays:function(e){return(0,o.default)().locale(e).localeData().weekdaysMin()},getShortMonths:function(e){return(0,o.default)().locale(e).localeData().monthsShort()},format:function(e,t,n){return t.clone().locale(e).format(n)},parse:function(e,t,n){for(var r=[],i=0;i<n.length;i+=1){var s=n[i],u=t;if(s.includes("wo")||s.includes("Wo")){var l=(s=s.replace(/wo/g,"w").replace(/Wo/g,"W")).match(/[-YyMmDdHhSsWwGg]+/g),c=u.match(/[-\d]+/g);l&&c?(s=l.join(""),u=c.join("")):r.push(s.replace(/o/g,""))}var d=(0,o.default)(u,s,e,!0);if(d.isValid())return d}for(var f=0;f<r.length;f+=1){var p=(0,o.default)(t,r[f],e,!1);if(p.isValid())return(0,a.noteOnce)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),p}return null}}};t.default=i},91412:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};t.default=n},44569:function(e,t,n){"use strict";var r=n(50189),o=n(22951),a=n(91976),i=n(67591),s=n(59180),u=n(27378),l=n(62738),c=n(27406),d=n(74485),f=n(79986),p=n(97329),m=function(e){(0,i.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;(0,o.Z)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0,offsetHeight:0,offsetWidth:0},e.onResize=function(t){var n=e.props.onResize,o=t[0].target,a=o.getBoundingClientRect(),i=a.width,s=a.height,u=o.offsetWidth,l=o.offsetHeight,c=Math.floor(i),d=Math.floor(s);if(e.state.width!==c||e.state.height!==d||e.state.offsetWidth!==u||e.state.offsetHeight!==l){var f={width:c,height:d,offsetWidth:u,offsetHeight:l};if(e.setState(f),n){var p=u===Math.round(i)?i:u,m=l===Math.round(s)?s:l;Promise.resolve().then((function(){n((0,r.Z)((0,r.Z)({},f),{},{offsetWidth:p,offsetHeight:m}),o)}))}}},e.setChildNode=function(t){e.childNode=t},e}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){if(this.props.disabled)this.destroyObserver();else{var e=(0,l.Z)(this.childNode||this);e!==this.currentElement&&(this.destroyObserver(),this.currentElement=e),!this.resizeObserver&&e&&(this.resizeObserver=new p.Z(this.onResize),this.resizeObserver.observe(e))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=this.props.children,t=(0,c.Z)(e);if(t.length>1)(0,d.ZP)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return(0,d.ZP)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=t[0];if(u.isValidElement(n)&&(0,f.Yr)(n)){var r=n.ref;t[0]=u.cloneElement(n,{ref:(0,f.sQ)(r,this.setChildNode)})}return 1===t.length?t[0]:t.map((function(e,t){return!u.isValidElement(e)||"key"in e&&null!==e.key?e:u.cloneElement(e,{key:"".concat("rc-observer-key","-").concat(t)})}))}}]),n}(u.Component);m.displayName="ResizeObserver",t.Z=m},95040:function(e,t,n){"use strict";n.r(t),n.d(t,{OptGroup:function(){return _e},Option:function(){return ve},default:function(){return vt}});var r=n(25773),o=n(22951),a=n(91976),i=n(67591),s=n(59180),u=n(27378),l=n(64649),c=n(53782),d=n(8136),f=n(78730),p=n(50189),m="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),h="aria-",v="data-";function y(e,t){return 0===e.indexOf(t)}function _(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,p.Z)({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||y(n,h))||t.data&&y(n,v)||t.attr&&m.includes(n))&&(r[n]=e[n])})),r}var g=n(8805),b=n(60042),M=n.n(b),w=n(44569);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L=u.forwardRef((function(e,t){var n=e.height,r=e.offset,o=e.children,a=e.prefixCls,i=e.onInnerResize,s={},l={display:"flex",flexDirection:"column"};return void 0!==r&&(s={height:n,position:"relative",overflow:"hidden"},l=x(x({},l),{},{transform:"translateY(".concat(r,"px)"),position:"absolute",left:0,right:0,top:0})),u.createElement("div",{style:s},u.createElement(w.Z,{onResize:function(e){e.offsetHeight&&i&&i()}},u.createElement("div",{style:l,className:M()(S({},"".concat(a,"-holder-inner"),a)),ref:t},o)))}));L.displayName="Filler";var E=L,T=n(94068);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y(e,t){return Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Y(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Z(this,n)}}function Z(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}function R(e){return"touches"in e?e.touches[0].pageY:e.pageY}var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Y(e,t)}(a,e);var t,n,r,o=j(a);function a(){var e;P(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))).moveRaf=null,e.scrollbarRef=u.createRef(),e.thumbRef=u.createRef(),e.visibleTimeout=null,e.state={dragging:!1,pageY:null,startTop:null,visible:!1},e.delayHidden=function(){clearTimeout(e.visibleTimeout),e.setState({visible:!0}),e.visibleTimeout=setTimeout((function(){e.setState({visible:!1})}),2e3)},e.onScrollbarTouchStart=function(e){e.preventDefault()},e.onContainerMouseDown=function(e){e.stopPropagation(),e.preventDefault()},e.patchEvents=function(){window.addEventListener("mousemove",e.onMouseMove),window.addEventListener("mouseup",e.onMouseUp),e.thumbRef.current.addEventListener("touchmove",e.onMouseMove),e.thumbRef.current.addEventListener("touchend",e.onMouseUp)},e.removeEvents=function(){window.removeEventListener("mousemove",e.onMouseMove),window.removeEventListener("mouseup",e.onMouseUp),e.scrollbarRef.current.removeEventListener("touchstart",e.onScrollbarTouchStart),e.thumbRef.current.removeEventListener("touchstart",e.onMouseDown),e.thumbRef.current.removeEventListener("touchmove",e.onMouseMove),e.thumbRef.current.removeEventListener("touchend",e.onMouseUp),T.Z.cancel(e.moveRaf)},e.onMouseDown=function(t){var n=e.props.onStartMove;e.setState({dragging:!0,pageY:R(t),startTop:e.getTop()}),n(),e.patchEvents(),t.stopPropagation(),t.preventDefault()},e.onMouseMove=function(t){var n=e.state,r=n.dragging,o=n.pageY,a=n.startTop,i=e.props.onScroll;if(T.Z.cancel(e.moveRaf),r){var s=a+(R(t)-o),u=e.getEnableScrollRange(),l=e.getEnableHeightRange(),c=l?s/l:0,d=Math.ceil(c*u);e.moveRaf=(0,T.Z)((function(){i(d)}))}},e.onMouseUp=function(){var t=e.props.onStopMove;e.setState({dragging:!1}),t(),e.removeEvents()},e.getSpinHeight=function(){var t=e.props,n=t.height,r=n/t.count*10;return r=Math.max(r,20),r=Math.min(r,n/2),Math.floor(r)},e.getEnableScrollRange=function(){var t=e.props;return t.scrollHeight-t.height||0},e.getEnableHeightRange=function(){return e.props.height-e.getSpinHeight()||0},e.getTop=function(){var t=e.props.scrollTop,n=e.getEnableScrollRange(),r=e.getEnableHeightRange();return 0===t||0===n?0:t/n*r},e.showScroll=function(){var t=e.props,n=t.height;return t.scrollHeight>n},e}return t=a,(n=[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,r=this.props.prefixCls,o=this.getSpinHeight(),a=this.getTop(),i=this.showScroll(),s=i&&n;return u.createElement("div",{ref:this.scrollbarRef,className:M()("".concat(r,"-scrollbar"),O({},"".concat(r,"-scrollbar-show"),i)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:s?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},u.createElement("div",{ref:this.thumbRef,className:M()("".concat(r,"-scrollbar-thumb"),O({},"".concat(r,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:o,top:a,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&D(t.prototype,n),r&&D(t,r),a}(u.Component);function I(e){var t=e.children,n=e.setRef,r=u.useCallback((function(e){n(e)}),[]);return u.cloneElement(t,{ref:r})}var F=n(62738);function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maps=void 0,this.maps={},this.maps.prototype=null}var t,n,r;return t=e,(n=[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}])&&H(t.prototype,n),r&&H(t,r),e}();function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function K(e,t,n){var r=B(u.useState(e),2),o=r[0],a=r[1],i=B(u.useState(null),2),s=i[0],l=i[1];return u.useEffect((function(){var r=function(e,t,n){var r,o,a=e.length,i=t.length;if(0===a&&0===i)return null;a<i?(r=e,o=t):(r=t,o=e);var s={__EMPTY_ITEM__:!0};function u(e){return void 0!==e?n(e):s}for(var l=null,c=1!==Math.abs(a-i),d=0;d<o.length;d+=1){var f=u(r[d]);if(f!==u(o[d])){l=d,c=c||f!==u(o[d+1]);break}}return null===l?null:{index:l,multiple:c}}(o||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),l(e[r.index])),a(e)}),[e]),[s]}function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}var G="object"===("undefined"==typeof navigator?"undefined":q(navigator))&&/Firefox/i.test(navigator.userAgent),J=function(e,t){var n=(0,u.useRef)(!1),r=(0,u.useRef)(null);function o(){clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)}var a=(0,u.useRef)({top:e,bottom:t});return a.current.top=e,a.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e<0&&a.current.top||e>0&&a.current.bottom;return t&&i?(clearTimeout(r.current),n.current=!1):i&&!n.current||o(),!n.current&&i}};var X=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function Q(){return Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q.apply(this,arguments)}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ae(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ie=[],se={overflowY:"auto",overflowAnchor:"none"};function ue(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,o=e.className,a=e.height,i=e.itemHeight,s=e.fullHeight,l=void 0===s||s,c=e.style,d=e.data,f=e.children,p=e.itemKey,m=e.virtual,h=e.component,v=void 0===h?"div":h,y=e.onScroll,_=e.onVisibleChange,g=ae(e,X),b=!(!1===m||!a||!i),w=b&&d&&i*d.length>a,k=re((0,u.useState)(0),2),x=k[0],S=k[1],L=re((0,u.useState)(!1),2),C=L[0],O=L[1],P=M()(r,o),D=d||ie,Y=(0,u.useRef)(),j=(0,u.useRef)(),Z=(0,u.useRef)(),N=u.useCallback((function(e){return"function"==typeof p?p(e):null==e?void 0:e[p]}),[p]),R={getKey:N};function H(e){S((function(t){var n=function(e){var t=e;Number.isNaN(ye.current)||(t=Math.min(t,ye.current));return t=Math.max(t,0)}("function"==typeof e?e(t):e);return Y.current.scrollTop=n,n}))}var V=(0,u.useRef)({start:0,end:D.length}),B=(0,u.useRef)(),U=re(K(D,N),1)[0];B.current=U;var q=function(e,t,n){var r=z(u.useState(0),2),o=r[0],a=r[1],i=(0,u.useRef)(new Map),s=(0,u.useRef)(new $),l=(0,u.useRef)(0);function c(){l.current+=1;var e=l.current;Promise.resolve().then((function(){e===l.current&&(i.current.forEach((function(e,t){if(e&&e.offsetParent){var n=(0,F.Z)(e),r=n.offsetHeight;s.current.get(t)!==r&&s.current.set(t,n.offsetHeight)}})),a((function(e){return e+1})))}))}return[function(r,o){var a=e(r),s=i.current.get(a);o?(i.current.set(a,o),c()):i.current.delete(a),!s!=!o&&(o?null==t||t(r):null==n||n(r))},c,s.current,o]}(N,null,null),ee=re(q,4),oe=ee[0],ue=ee[1],le=ee[2],ce=ee[3],de=u.useMemo((function(){if(!b)return{scrollHeight:void 0,start:0,end:D.length-1,offset:void 0};var e;if(!w)return{scrollHeight:(null===(e=j.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:D.length-1,offset:void 0};for(var t,n,r,o=0,s=D.length,u=0;u<s;u+=1){var l=D[u],c=N(l),d=le.get(c),f=o+(void 0===d?i:d);f>=x&&void 0===t&&(t=u,n=o),f>x+a&&void 0===r&&(r=u),o=f}return void 0===t&&(t=0,n=0),void 0===r&&(r=D.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,D.length),offset:n}}),[w,b,x,D,ce,a]),fe=de.scrollHeight,pe=de.start,me=de.end,he=de.offset;V.current.start=pe,V.current.end=me;var ve=fe-a,ye=(0,u.useRef)(ve);ye.current=ve;var _e=x<=0,ge=x>=ve,be=J(_e,ge);var Me=function(e,t,n,r){var o=(0,u.useRef)(0),a=(0,u.useRef)(null),i=(0,u.useRef)(null),s=(0,u.useRef)(!1),l=J(t,n);return[function(t){if(e){T.Z.cancel(a.current);var n=t.deltaY;o.current+=n,i.current=n,l(n)||(G||t.preventDefault(),a.current=(0,T.Z)((function(){var e=s.current?10:1;r(o.current*e),o.current=0})))}},function(t){e&&(s.current=t.detail===i.current)}]}(b,_e,ge,(function(e){H((function(t){return t+e}))})),we=re(Me,2),ke=we[0],xe=we[1];!function(e,t,n){var r,o=(0,u.useRef)(!1),a=(0,u.useRef)(0),i=(0,u.useRef)(null),s=(0,u.useRef)(null),l=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageY),r=a.current-t;a.current=t,n(r)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!n(r*=.9333333333333333,!0)||Math.abs(r)<=.1)&&clearInterval(s.current)}),16)}},c=function(){o.current=!1,r()},d=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,a.current=Math.ceil(e.touches[0].pageY),i.current=e.target,i.current.addEventListener("touchmove",l),i.current.addEventListener("touchend",c))};r=function(){i.current&&(i.current.removeEventListener("touchmove",l),i.current.removeEventListener("touchend",c))},u.useLayoutEffect((function(){return e&&t.current.addEventListener("touchstart",d),function(){t.current.removeEventListener("touchstart",d),r(),clearInterval(s.current)}}),[e])}(b,Y,(function(e,t){return!be(e,t)&&(ke({preventDefault:function(){},deltaY:e}),!0)})),(0,u.useLayoutEffect)((function(){function e(e){b&&e.preventDefault()}return Y.current.addEventListener("wheel",ke),Y.current.addEventListener("DOMMouseScroll",xe),Y.current.addEventListener("MozMousePixelScroll",e),function(){Y.current.removeEventListener("wheel",ke),Y.current.removeEventListener("DOMMouseScroll",xe),Y.current.removeEventListener("MozMousePixelScroll",e)}}),[b]);var Se=function(e,t,n,r,o,a,i,s){var l=u.useRef();return function(u){if(null!=u){if(T.Z.cancel(l.current),"number"==typeof u)i(u);else if(u&&"object"===W(u)){var c,d=u.align;c="index"in u?u.index:t.findIndex((function(e){return o(e)===u.key}));var f=u.offset,p=void 0===f?0:f;!function s(u,f){if(!(u<0)&&e.current){var m=e.current.clientHeight,h=!1,v=f;if(m){for(var y=f||d,_=0,g=0,b=0,M=Math.min(t.length,c),w=0;w<=M;w+=1){var k=o(t[w]);g=_;var x=n.get(k);_=b=g+(void 0===x?r:x),w===c&&void 0===x&&(h=!0)}var S=null;switch(y){case"top":S=g-p;break;case"bottom":S=b-m+p;break;default:var L=e.current.scrollTop;g<L?v="top":b>L+m&&(v="bottom")}null!==S&&S!==e.current.scrollTop&&i(S)}l.current=(0,T.Z)((function(){h&&a(),s(u-1,v)}))}}(3)}}else s()}}(Y,D,le,i,N,ue,H,(function(){var e;null===(e=Z.current)||void 0===e||e.delayHidden()}));u.useImperativeHandle(t,(function(){return{scrollTo:Se}})),(0,u.useLayoutEffect)((function(){if(_){var e=D.slice(pe,me+1);_(e,D)}}),[pe,me,D]);var Le=function(e,t,n,r,o,a){var i=a.getKey;return e.slice(t,n+1).map((function(e,n){var a=o(e,t+n,{}),s=i(e);return u.createElement(I,{key:s,setRef:function(t){return r(e,t)}},a)}))}(D,pe,me,oe,f,R),Ee=null;return a&&(Ee=te(ne({},l?"height":"maxHeight",a),se),b&&(Ee.overflowY="hidden",C&&(Ee.pointerEvents="none"))),u.createElement("div",Q({style:te(te({},c),{},{position:"relative"}),className:P},g),u.createElement(v,{className:"".concat(r,"-holder"),style:Ee,ref:Y,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==x&&H(t),null==y||y(e)}},u.createElement(E,{prefixCls:r,height:fe,offset:he,onInnerResize:ue,ref:j},Le)),b&&u.createElement(A,{ref:Z,prefixCls:r,scrollTop:x,height:a,scrollHeight:fe,count:D.length,onScroll:function(e){H(e)},onStartMove:function(){O(!0)},onStopMove:function(){O(!1)}}))}var le=u.forwardRef(ue);le.displayName="List";var ce=le,de=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,a=e.onMouseDown,i=e.onClick,s=e.children;return t="function"==typeof r?r(o):r,u.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),a&&a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==t?t:u.createElement("span",{className:M()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},s))},fe=function(e,t){var n=e.prefixCls,o=e.id,a=e.flattenOptions,i=e.childrenAsData,s=e.values,p=e.searchValue,m=e.multiple,h=e.defaultActiveFirstOption,v=e.height,y=e.itemHeight,b=e.notFoundContent,w=e.open,k=e.menuItemSelectedIcon,x=e.virtual,S=e.onSelect,L=e.onToggleOpen,E=e.onActiveValue,T=e.onScroll,C=e.onMouseEnter,O="".concat(n,"-item"),P=(0,g.Z)((function(){return a}),[w,a],(function(e,t){return t[0]&&e[1]!==t[1]})),D=u.useRef(null),Y=function(e){e.preventDefault()},j=function(e){D.current&&D.current.scrollTo({index:e})},Z=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=P.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,a=P[o],i=a.group,s=a.data;if(!i&&!s.disabled)return o}return-1},N=u.useState((function(){return Z(0)})),R=(0,d.Z)(N,2),A=R[0],I=R[1],F=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];I(e);var n={source:t?"keyboard":"mouse"},r=P[e];r?E(r.data.value,e,n):E(null,-1,n)};u.useEffect((function(){F(!1!==h?Z(0):-1)}),[P.length,p]),u.useEffect((function(){var e,t=setTimeout((function(){if(!m&&w&&1===s.size){var e=Array.from(s)[0],t=P.findIndex((function(t){return t.data.value===e}));F(t),j(t)}}));w&&(null===(e=D.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[w]);var H=function(e){void 0!==e&&S(e,{selected:!s.has(e)}),m||L(!1)};if(u.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case f.Z.UP:case f.Z.DOWN:var n=0;if(t===f.Z.UP?n=-1:t===f.Z.DOWN&&(n=1),0!==n){var r=Z(A+n,n);j(r),F(r,!0)}break;case f.Z.ENTER:var o=P[A];o&&!o.data.disabled?H(o.data.value):H(void 0),w&&e.preventDefault();break;case f.Z.ESC:L(!1),w&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){j(e)}}})),0===P.length)return u.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(O,"-empty"),onMouseDown:Y},b);function $(e){var t=P[e];if(!t)return null;var n=t.data||{},a=n.value,l=n.label,c=n.children,d=_(n,!0),f=i?c:l;return t?u.createElement("div",(0,r.Z)({"aria-label":"string"==typeof f?f:null},d,{key:e,role:"option",id:"".concat(o,"_list_").concat(e),"aria-selected":s.has(a)}),a):null}return u.createElement(u.Fragment,null,u.createElement("div",{role:"listbox",id:"".concat(o,"_list"),style:{height:0,width:0,overflow:"hidden"}},$(A-1),$(A),$(A+1)),u.createElement(ce,{itemKey:"key",ref:D,data:P,height:v,itemHeight:y,fullHeight:!1,onMouseDown:Y,onScroll:T,virtual:x,onMouseEnter:C},(function(e,t){var n,o=e.group,a=e.groupOption,d=e.data,f=d.label,p=d.key;if(o)return u.createElement("div",{className:M()(O,"".concat(O,"-group"))},void 0!==f?f:p);var m=d.disabled,h=d.value,v=d.title,y=d.children,_=d.style,g=d.className,b=(0,c.Z)(d,["disabled","value","title","children","style","className"]),w=s.has(h),x="".concat(O,"-option"),S=M()(O,x,g,(n={},(0,l.Z)(n,"".concat(x,"-grouped"),a),(0,l.Z)(n,"".concat(x,"-active"),A===t&&!m),(0,l.Z)(n,"".concat(x,"-disabled"),m),(0,l.Z)(n,"".concat(x,"-selected"),w),n)),L=!k||"function"==typeof k||w,E=(i?y:f)||h,T="string"==typeof E||"number"==typeof E?E.toString():void 0;return void 0!==v&&(T=v),u.createElement("div",(0,r.Z)({},b,{"aria-selected":w,className:S,title:T,onMouseMove:function(){A===t||m||F(t)},onClick:function(){m||H(h)},style:_}),u.createElement("div",{className:"".concat(x,"-content")},E),u.isValidElement(k)||w,L&&u.createElement(de,{className:"".concat(O,"-option-state"),customizeIcon:k,customizeIconProps:{isSelected:w}},w?"\u2713":null))})))},pe=u.forwardRef(fe);pe.displayName="OptionList";var me=pe,he=function(){return null};he.isSelectOption=!0;var ve=he,ye=function(){return null};ye.isSelectOptGroup=!0;var _e=ye,ge=n(27406);function be(e){var t=e.key,n=e.props,r=n.children,o=n.value,a=(0,c.Z)(n,["children","value"]);return(0,p.Z)({key:t,value:void 0!==o?o:t,children:r},a)}function Me(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,ge.Z)(e).map((function(e,n){if(!u.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,o=e.key,a=e.props,i=a.children,s=(0,c.Z)(a,["children"]);return t||!r?be(e):(0,p.Z)((0,p.Z)({key:"__RC_SELECT_GRP__".concat(null===o?n:o,"__"),label:o},s),{},{options:Me(i)})})).filter((function(e){return e}))}var we=n(62173),ke=n(13285),xe=n(33940),Se=n(74485);function Le(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function Ee(e,t){var n,r=(0,ke.Z)(t);for(n=e.length-1;n>=0&&e[n].disabled;n-=1);var o=null;return-1!==n&&(o=r[n],r.splice(n,1)),{values:r,removedValue:o}}var Te="undefined"!=typeof window&&window.document&&window.document.documentElement,Ce=0;function Oe(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function Pe(e){var t=(0,p.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,Se.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function De(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.prevValueOptions,o=void 0===r?[]:r,a=new Map;return t.forEach((function(e){if(!e.group){var t=e.data;a.set(t.value,t)}})),e.map((function(e){var t=a.get(e);return t||(t=(0,p.Z)({},o.find((function(t){return t._INTERNAL_OPTION_VALUE_===e})))),Pe(t)}))}function Ye(e){return Le(e).join("")}var je=n(62477),Ze=n(79986),Ne=n(24391),Re=void 0;function Ae(e,t){var n=e.prefixCls,o=e.invalidate,a=e.item,i=e.renderItem,s=e.responsive,l=e.registerSize,d=e.itemKey,f=e.className,m=e.style,h=e.children,v=e.display,y=e.order,_=e.component,g=void 0===_?"div":_,b=(0,c.Z)(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","className","style","children","display","order","component"]),k=s&&!v;function x(e){l(d,e)}u.useEffect((function(){return function(){x(null)}}),[]);var S,L=i&&a!==Re?i(a):h;o||(S={opacity:k?0:1,height:k?0:Re,overflowY:k?"hidden":Re,order:s?y:Re,pointerEvents:k?"none":Re,position:k?"absolute":Re});var E={};k&&(E["aria-hidden"]=!0);var T=u.createElement(g,(0,r.Z)({className:M()(!o&&n,f),style:(0,p.Z)((0,p.Z)({},S),m)},E,b,{ref:t}),L);return s&&(T=u.createElement(w.Z,{onResize:function(e){x(e.offsetWidth)}},T)),T}var Ie=u.forwardRef(Ae);Ie.displayName="Item";var Fe=Ie;var He=function(e,t){var n=u.useContext(Ve);if(!n){var o=e.component,a=void 0===o?"div":o,i=(0,c.Z)(e,["component"]);return u.createElement(a,(0,r.Z)({},i,{ref:t}))}var s=n.className,l=(0,c.Z)(n,["className"]),d=e.className,f=(0,c.Z)(e,["className"]);return u.createElement(Ve.Provider,{value:null},u.createElement(Fe,(0,r.Z)({ref:t,className:M()(s,d)},l,f)))},$e=u.forwardRef(He);$e.displayName="RawItem";var ze=$e,Ve=u.createContext(null),We="responsive",Be="invalidate";function Ue(e){return"+ ".concat(e.length," ...")}function Ke(e,t){var n=e.prefixCls,o=void 0===n?"rc-overflow":n,a=e.data,i=void 0===a?[]:a,s=e.renderItem,l=e.renderRawItem,f=e.itemKey,m=e.itemWidth,h=void 0===m?10:m,v=e.ssr,y=e.style,_=e.className,g=e.maxCount,b=e.renderRest,k=e.renderRawRest,x=e.suffix,S=e.component,L=void 0===S?"div":S,E=e.itemComponent,C=e.onVisibleChange,O=(0,c.Z)(e,["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"]),P=function(){var e=(0,u.useState)({}),t=(0,d.Z)(e,2)[1],n=(0,u.useRef)([]),r=(0,u.useRef)(!1),o=0,a=0;return(0,u.useEffect)((function(){return function(){r.current=!0}}),[]),function(e){var i=o;return o+=1,n.current.length<i+1&&(n.current[i]=e),[n.current[i],function(e){n.current[i]="function"==typeof e?e(n.current[i]):e,T.Z.cancel(a),a=(0,T.Z)((function(){r.current||t({})}))}]}}(),D="full"===v,Y=P(null),j=(0,d.Z)(Y,2),Z=j[0],N=j[1],R=Z||0,A=P(new Map),I=(0,d.Z)(A,2),F=I[0],H=I[1],$=P(0),z=(0,d.Z)($,2),V=z[0],W=z[1],B=P(0),U=(0,d.Z)(B,2),K=U[0],q=U[1],G=P(0),J=(0,d.Z)(G,2),X=J[0],Q=J[1],ee=(0,u.useState)(null),te=(0,d.Z)(ee,2),ne=te[0],re=te[1],oe=(0,u.useState)(null),ae=(0,d.Z)(oe,2),ie=ae[0],se=ae[1],ue=u.useMemo((function(){return null===ie&&D?Number.MAX_SAFE_INTEGER:ie||0}),[ie,Z]),le=(0,u.useState)(!1),ce=(0,d.Z)(le,2),de=ce[0],fe=ce[1],pe="".concat(o,"-item"),me=Math.max(V,K),he=i.length&&g===We,ve=g===Be,ye=he||"number"==typeof g&&i.length>g,_e=(0,u.useMemo)((function(){var e=i;return he?e=null===Z&&D?i:i.slice(0,Math.min(i.length,R/h)):"number"==typeof g&&(e=i.slice(0,g)),e}),[i,h,Z,g,he]),ge=(0,u.useMemo)((function(){return he?i.slice(ue+1):i.slice(_e.length)}),[i,_e,he,ue]),be=(0,u.useCallback)((function(e,t){var n;return"function"==typeof f?f(e):null!==(n=f&&(null==e?void 0:e[f]))&&void 0!==n?n:t}),[f]),Me=(0,u.useCallback)(s||function(e){return e},[s]);function we(e,t){se(e),t||(fe(e<i.length-1),null==C||C(e))}function ke(e,t){H((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function xe(e){return F.get(be(_e[e],e))}u.useLayoutEffect((function(){if(R&&me&&_e){var e=X,t=_e.length,n=t-1;if(!t)return we(0),void re(null);for(var r=0;r<t;r+=1){var o=xe(r);if(void 0===o){we(r-1,!0);break}if(e+=o,0===n&&e<=R||r===n-1&&e+xe(n)<=R){we(n),re(null);break}if(e+me>R){we(r-1),re(e-o-X+K);break}}x&&xe(0)+X>R&&re(null)}}),[R,F,K,X,be,_e]);var Se=de&&!!ge.length,Le={};null!==ne&&he&&(Le={position:"absolute",left:ne,top:0});var Ee,Te={prefixCls:pe,responsive:he,component:E,invalidate:ve},Ce=l?function(e,t){var n=be(e,t);return u.createElement(Ve.Provider,{key:n,value:(0,p.Z)((0,p.Z)({},Te),{},{order:t,item:e,itemKey:n,registerSize:ke,display:t<=ue})},l(e,t))}:function(e,t){var n=be(e,t);return u.createElement(Fe,(0,r.Z)({},Te,{order:t,key:n,item:e,renderItem:Me,itemKey:n,registerSize:ke,display:t<=ue}))},Oe={order:Se?ue:Number.MAX_SAFE_INTEGER,className:"".concat(pe,"-rest"),registerSize:function(e,t){q(t),W(K)},display:Se};if(k)k&&(Ee=u.createElement(Ve.Provider,{value:(0,p.Z)((0,p.Z)({},Te),Oe)},k(ge)));else{var Pe=b||Ue;Ee=u.createElement(Fe,(0,r.Z)({},Te,Oe),"function"==typeof Pe?Pe(ge):Pe)}var De=u.createElement(L,(0,r.Z)({className:M()(!ve&&o,_),style:y,ref:t},O),_e.map(Ce),ye?Ee:null,x&&u.createElement(Fe,(0,r.Z)({},Te,{order:ue,className:"".concat(pe,"-suffix"),registerSize:function(e,t){Q(t)},display:!0,style:Le}),x));return he&&(De=u.createElement(w.Z,{onResize:function(e,t){N(t.clientWidth)}},De)),De}var qe=u.forwardRef(Ke);qe.displayName="Overflow",qe.Item=ze,qe.RESPONSIVE=We,qe.INVALIDATE=Be;var Ge=qe,Je=function(e,t){var n,r,o=e.prefixCls,a=e.id,i=e.inputElement,s=e.disabled,l=e.tabIndex,c=e.autoFocus,d=e.autoComplete,f=e.editable,m=e.accessibilityIndex,h=e.value,v=e.maxLength,y=e.onKeyDown,_=e.onMouseDown,g=e.onChange,b=e.onPaste,w=e.onCompositionStart,k=e.onCompositionEnd,x=e.open,S=e.attrs,L=i||u.createElement("input",null),E=L,T=E.ref,C=E.props,O=C.onKeyDown,P=C.onChange,D=C.onMouseDown,Y=C.onCompositionStart,j=C.onCompositionEnd,Z=C.style;return L=u.cloneElement(L,(0,p.Z)((0,p.Z)({id:a,ref:(0,Ze.sQ)(t,T),disabled:s,tabIndex:l,autoComplete:d||"off",type:"search",autoFocus:c,className:M()("".concat(o,"-selection-search-input"),null===(n=L)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),style:(0,p.Z)((0,p.Z)({},Z),{},{opacity:f?null:0}),role:"combobox","aria-expanded":x,"aria-haspopup":"listbox","aria-owns":"".concat(a,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(a,"_list"),"aria-activedescendant":"".concat(a,"_list_").concat(m)},S),{},{value:f?h:"",maxLength:v,readOnly:!f,unselectable:f?null:"on",onKeyDown:function(e){y(e),O&&O(e)},onMouseDown:function(e){_(e),D&&D(e)},onChange:function(e){g(e),P&&P(e)},onCompositionStart:function(e){w(e),Y&&Y(e)},onCompositionEnd:function(e){k(e),j&&j(e)},onPaste:b}))},Xe=u.forwardRef(Je);Xe.displayName="Input";var Qe=Xe;function et(e,t){Te?u.useLayoutEffect(e,t):u.useEffect(e,t)}var tt=function(e){e.preventDefault(),e.stopPropagation()},nt=function(e){var t=e.id,n=e.prefixCls,r=e.values,o=e.open,a=e.searchValue,i=e.inputRef,s=e.placeholder,c=e.disabled,f=e.mode,p=e.showSearch,m=e.autoFocus,h=e.autoComplete,v=e.accessibilityIndex,y=e.tabIndex,g=e.removeIcon,b=e.maxTagCount,w=e.maxTagTextLength,k=e.maxTagPlaceholder,x=void 0===k?function(e){return"+ ".concat(e.length," ...")}:k,S=e.tagRender,L=e.onToggleOpen,E=e.onSelect,T=e.onInputChange,C=e.onInputPaste,O=e.onInputKeyDown,P=e.onInputMouseDown,D=e.onInputCompositionStart,Y=e.onInputCompositionEnd,j=u.useRef(null),Z=(0,u.useState)(0),N=(0,d.Z)(Z,2),R=N[0],A=N[1],I=(0,u.useState)(!1),F=(0,d.Z)(I,2),H=F[0],$=F[1],z="".concat(n,"-selection"),V=o||"tags"===f?a:"",W="tags"===f||p&&(o||H);function B(e,t,n,r){return u.createElement("span",{className:M()("".concat(z,"-item"),(0,l.Z)({},"".concat(z,"-item-disabled"),t))},u.createElement("span",{className:"".concat(z,"-item-content")},e),n&&u.createElement(de,{className:"".concat(z,"-item-remove"),onMouseDown:tt,onClick:r,customizeIcon:g},"\xd7"))}et((function(){A(j.current.scrollWidth)}),[V]);var U=u.createElement("div",{className:"".concat(z,"-search"),style:{width:R},onFocus:function(){$(!0)},onBlur:function(){$(!1)}},u.createElement(Qe,{ref:i,open:o,prefixCls:n,id:t,inputElement:null,disabled:c,autoFocus:m,autoComplete:h,editable:W,accessibilityIndex:v,value:V,onKeyDown:O,onMouseDown:P,onChange:T,onPaste:C,onCompositionStart:D,onCompositionEnd:Y,tabIndex:y,attrs:_(e,!0)}),u.createElement("span",{ref:j,className:"".concat(z,"-search-mirror"),"aria-hidden":!0},V,"\xa0")),K=u.createElement(Ge,{prefixCls:"".concat(z,"-overflow"),data:r,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,a=!c&&!t,i=n;if("number"==typeof w&&("string"==typeof n||"number"==typeof n)){var s=String(i);s.length>w&&(i="".concat(s.slice(0,w),"..."))}var l=function(e){e&&e.stopPropagation(),E(r,{selected:!1})};return"function"==typeof S?function(e,t,n,r,a){return u.createElement("span",{onMouseDown:function(e){tt(e),L(!o)}},S({label:t,value:e,disabled:n,closable:r,onClose:a}))}(r,i,t,a,l):B(i,t,a,l)},renderRest:function(e){return B("function"==typeof x?x(e):x,!1)},suffix:U,itemKey:"key",maxCount:b});return u.createElement(u.Fragment,null,K,!r.length&&!V&&u.createElement("span",{className:"".concat(z,"-placeholder")},s))},rt=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,a=e.disabled,i=e.autoFocus,s=e.autoComplete,l=e.accessibilityIndex,c=e.mode,f=e.open,p=e.values,m=e.placeholder,h=e.tabIndex,v=e.showSearch,y=e.searchValue,g=e.activeValue,b=e.maxLength,M=e.onInputKeyDown,w=e.onInputMouseDown,k=e.onInputChange,x=e.onInputPaste,S=e.onInputCompositionStart,L=e.onInputCompositionEnd,E=u.useState(!1),T=(0,d.Z)(E,2),C=T[0],O=T[1],P="combobox"===c,D=P||v,Y=p[0],j=y||"";P&&g&&!C&&(j=g),u.useEffect((function(){P&&O(!1)}),[P,g]);var Z=!("combobox"!==c&&!f)&&!!j,N=!Y||"string"!=typeof Y.label&&"number"!=typeof Y.label?void 0:Y.label.toString();return u.createElement(u.Fragment,null,u.createElement("span",{className:"".concat(n,"-selection-search")},u.createElement(Qe,{ref:o,prefixCls:n,id:r,open:f,inputElement:t,disabled:a,autoFocus:i,autoComplete:s,editable:D,accessibilityIndex:l,value:j,onKeyDown:M,onMouseDown:w,onChange:function(e){O(!0),k(e)},onPaste:x,onCompositionStart:S,onCompositionEnd:L,tabIndex:h,attrs:_(e,!0),maxLength:P?b:void 0})),!P&&Y&&!Z&&u.createElement("span",{className:"".concat(n,"-selection-item"),title:N},Y.label),!Y&&!Z&&u.createElement("span",{className:"".concat(n,"-selection-placeholder")},m))};function ot(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=u.useRef(null),n=u.useRef(null);function r(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}return u.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},r]}var at=function(e,t){var n=(0,u.useRef)(null),o=(0,u.useRef)(!1),a=e.prefixCls,i=e.multiple,s=e.open,l=e.mode,c=e.showSearch,p=e.tokenWithEnter,m=e.onSearch,h=e.onSearchSubmit,v=e.onToggleOpen,y=e.onInputKeyDown,_=e.domRef;u.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var g=ot(0),b=(0,d.Z)(g,2),M=b[0],w=b[1],k=(0,u.useRef)(null),x=function(e){!1!==m(e,!0,o.current)&&v(!0)},S={inputRef:n,onInputKeyDown:function(e){var t=e.which;t!==f.Z.UP&&t!==f.Z.DOWN||e.preventDefault(),y&&y(e),t!==f.Z.ENTER||"tags"!==l||o.current||s||h(e.target.value),[f.Z.SHIFT,f.Z.TAB,f.Z.BACKSPACE,f.Z.ESC].includes(t)||v(!0)},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var t=e.target.value;if(p&&k.current&&/[\r\n]/.test(k.current)){var n=k.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,k.current)}k.current=null,x(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");k.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&x(e.target.value)}},L=i?u.createElement(nt,(0,r.Z)({},e,S)):u.createElement(rt,(0,r.Z)({},e,S));return u.createElement("div",{ref:_,className:"".concat(a,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=M();e.target===n.current||t||e.preventDefault(),("combobox"===l||c&&t)&&s||(s&&m("",!0,!1),v())}},L)},it=u.forwardRef(at);it.displayName="Selector";var st=it,ut=n(80113),lt=function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),a=e.children,i=e.popupElement,s=e.containerWidth,d=e.animation,f=e.transitionName,m=e.dropdownStyle,h=e.dropdownClassName,v=e.direction,y=void 0===v?"ltr":v,_=e.dropdownMatchSelectWidth,g=void 0===_||_,b=e.dropdownRender,w=e.dropdownAlign,k=e.getPopupContainer,x=e.empty,S=e.getTriggerDOMNode,L=e.onPopupVisibleChange,E=(0,c.Z)(e,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange"]),T="".concat(n,"-dropdown"),C=i;b&&(C=b(i));var O=u.useMemo((function(){return function(e){var t="number"!=typeof e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}}(g)}),[g]),P=d?"".concat(T,"-").concat(d):f,D=u.useRef(null);u.useImperativeHandle(t,(function(){return{getPopupElement:function(){return D.current}}}));var Y=(0,p.Z)({minWidth:s},m);return"number"==typeof g?Y.width=g:g&&(Y.width=s),u.createElement(ut.Z,(0,r.Z)({},E,{showAction:L?["click"]:[],hideAction:L?["click"]:[],popupPlacement:"rtl"===y?"bottomRight":"bottomLeft",builtinPlacements:O,prefixCls:T,popupTransitionName:P,popup:u.createElement("div",{ref:D},C),popupAlign:w,popupVisible:o,getPopupContainer:k,popupClassName:M()(h,(0,l.Z)({},"".concat(T,"-empty"),x)),popupStyle:Y,getTriggerDOMNode:S,onPopupVisibleChange:L}),a)},ct=u.forwardRef(lt);ct.displayName="SelectTrigger";var dt=ct;var ft=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","tabIndex"];var pt=function(e){var t=e.mode,n=e.options,r=e.children,o=e.backfill,a=e.allowClear,i=e.placeholder,s=e.getInputElement,l=e.showSearch,c=e.onSearch,d=e.defaultOpen,f=e.autoFocus,p=e.labelInValue,m=e.value,h=e.inputValue,v=e.optionLabelProp,y="multiple"===t||"tags"===t,_=void 0!==l?l:y||"combobox"===t,g=n||Me(r);if((0,Se.ZP)("tags"!==t||g.every((function(e){return!e.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),"tags"===t||"combobox"===t){var b=g.some((function(e){return e.options?e.options.some((function(e){return"number"==typeof("value"in e?e.value:e.key)})):"number"==typeof("value"in e?e.value:e.key)}));(0,Se.ZP)(!b,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if((0,Se.ZP)("combobox"!==t||!v,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),(0,Se.ZP)("combobox"===t||!o,"`backfill` only works with `combobox` mode."),(0,Se.ZP)("combobox"===t||!s,"`getInputElement` only work with `combobox` mode."),(0,Se.ET)("combobox"!==t||!s||!a||!i,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),c&&!_&&"combobox"!==t&&"tags"!==t&&(0,Se.ZP)(!1,"`onSearch` should work with `showSearch` instead of use alone."),(0,Se.ET)(!d||f,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=m){var M=Le(m);(0,Se.ZP)(!p||M.every((function(e){return"object"===(0,xe.Z)(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),(0,Se.ZP)(!y||Array.isArray(m),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var w=null;(0,ge.Z)(r).some((function(e){if(!u.isValidElement(e)||!e.type)return!1;var t=e.type;return!t.isSelectOption&&(t.isSelectOptGroup?!(0,ge.Z)(e.props.children).every((function(t){return!(u.isValidElement(t)&&e.type&&!t.type.isSelectOption)||(w=t.type,!1)})):(w=t,!0))})),w&&(0,Se.ZP)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(w.displayName||w.name||w,"`.")),(0,Se.ZP)(void 0===h,"`inputValue` is deprecated, please use `searchValue` instead.")}},mt=function(e){var t=e.prefixCls,n=e.components.optionList,o=e.convertChildrenToData,a=e.flattenOptions,i=e.getLabeledValue,s=e.filterOptions,m=e.isValueDisabled,h=e.findValueOption,v=(e.warningProps,e.fillOptionsWithMissingValue),y=e.omitDOMProps;function _(e,_){var g,b=e.prefixCls,w=void 0===b?t:b,k=e.className,x=e.id,S=e.open,L=e.defaultOpen,E=e.options,T=e.children,C=e.mode,O=e.value,P=e.defaultValue,D=e.labelInValue,Y=e.showSearch,j=e.inputValue,Z=e.searchValue,N=e.filterOption,R=e.filterSort,A=e.optionFilterProp,I=void 0===A?"value":A,F=e.autoClearSearchValue,H=void 0===F||F,$=e.onSearch,z=e.allowClear,V=e.clearIcon,W=e.showArrow,B=e.inputIcon,U=e.menuItemSelectedIcon,K=e.disabled,q=e.loading,G=e.defaultActiveFirstOption,J=e.notFoundContent,X=void 0===J?"Not Found":J,Q=e.optionLabelProp,ee=e.backfill,te=(e.tabIndex,e.getInputElement),ne=e.getRawInputElement,re=e.getPopupContainer,oe=e.listHeight,ae=void 0===oe?200:oe,ie=e.listItemHeight,se=void 0===ie?20:ie,ue=e.animation,le=e.transitionName,ce=e.virtual,fe=e.dropdownStyle,pe=e.dropdownClassName,me=e.dropdownMatchSelectWidth,he=e.dropdownRender,ve=e.dropdownAlign,ye=e.showAction,_e=void 0===ye?[]:ye,ge=e.direction,be=e.tokenSeparators,Me=e.tagRender,xe=e.onPopupScroll,Se=e.onDropdownVisibleChange,Le=e.onFocus,Oe=e.onBlur,Pe=e.onKeyUp,De=e.onKeyDown,Ye=e.onMouseDown,Re=e.onChange,Ae=e.onSelect,Ie=e.onDeselect,Fe=e.onClear,He=e.internalProps,$e=void 0===He?{}:He,ze=(0,c.Z)(e,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","filterSort","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","tabIndex","getInputElement","getRawInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),Ve="RC_SELECT_INTERNAL_PROPS_MARK"===$e.mark,We=y?y(ze):ze;ft.forEach((function(e){delete We[e]}));var Be=(0,u.useRef)(null),Ue=(0,u.useRef)(null),Ke=(0,u.useRef)(null),qe=(0,u.useRef)(null),Ge=(0,u.useMemo)((function(){return(be||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[be]),Je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=u.useState(!1),n=(0,d.Z)(t,2),r=n[0],o=n[1],a=u.useRef(null),i=function(){window.clearTimeout(a.current)};u.useEffect((function(){return i}),[]);var s=function(t,n){i(),a.current=window.setTimeout((function(){o(t),n&&n()}),e)};return[r,s,i]}(),Xe=(0,d.Z)(Je,3),Qe=Xe[0],tt=Xe[1],nt=Xe[2],rt=(0,u.useState)(),at=(0,d.Z)(rt,2),it=at[0],ut=at[1];(0,u.useEffect)((function(){var e;ut("rc_select_".concat((Te?(e=Ce,Ce+=1):e="TEST_OR_SSR",e)))}),[]);var lt=x||it,ct=Q;void 0===ct&&(ct=E?"label":"children");var pt="combobox"!==C&&D,mt="tags"===C||"multiple"===C,ht=void 0!==Y?Y:mt||"combobox"===C,vt=(0,u.useState)(!1),yt=(0,d.Z)(vt,2),_t=yt[0],gt=yt[1];(0,u.useEffect)((function(){gt((0,je.Z)())}),[]);var bt=(0,u.useRef)(null);u.useImperativeHandle(_,(function(){var e,t,n;return{focus:null===(e=Ke.current)||void 0===e?void 0:e.focus,blur:null===(t=Ke.current)||void 0===t?void 0:t.blur,scrollTo:null===(n=qe.current)||void 0===n?void 0:n.scrollTo}}));var Mt=(0,Ne.Z)(P,{value:O}),wt=(0,d.Z)(Mt,2),kt=wt[0],xt=wt[1],St=(0,u.useMemo)((function(){return function(e,t){var n=t.labelInValue,r=t.combobox,o=new Map;if(void 0===e||""===e&&r)return[[],o];var a=Array.isArray(e)?e:[e],i=a;return n&&(i=a.filter((function(e){return null!==e})).map((function(e){var t=e.key,n=e.value,r=void 0!==n?n:t;return o.set(r,e),r}))),[i,o]}(kt,{labelInValue:pt,combobox:"combobox"===C})}),[kt,pt]),Lt=(0,d.Z)(St,2),Et=Lt[0],Tt=Lt[1],Ct=(0,u.useMemo)((function(){return new Set(Et)}),[Et]),Ot=(0,u.useState)(null),Pt=(0,d.Z)(Ot,2),Dt=Pt[0],Yt=Pt[1],jt=(0,u.useState)(""),Zt=(0,d.Z)(jt,2),Nt=Zt[0],Rt=Zt[1],At=Nt;"combobox"===C&&void 0!==kt?At=kt:void 0!==Z?At=Z:j&&(At=j);var It=(0,u.useMemo)((function(){var e=E;return void 0===e&&(e=o(T)),"tags"===C&&v&&(e=v(e,kt,ct,D)),e||[]}),[E,T,C,kt]),Ft=(0,u.useMemo)((function(){return a(It,e)}),[It]),Ht=function(e){var t=u.useRef(null),n=u.useMemo((function(){var t=new Map;return e.forEach((function(e){var n=e.data.value;t.set(n,e)})),t}),[e]);return t.current=n,function(e){return e.map((function(e){return t.current.get(e)})).filter(Boolean)}}(Ft),$t=(0,u.useMemo)((function(){if(!At||!ht)return(0,ke.Z)(It);var e=s(At,It,{optionFilterProp:I,filterOption:"combobox"===C&&void 0===N?function(){return!0}:N});return"tags"===C&&e.every((function(e){return e[I]!==At}))&&e.unshift({value:At,label:At,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),R&&Array.isArray(e)?(0,ke.Z)(e).sort(R):e}),[It,At,C,ht,R]),zt=(0,u.useMemo)((function(){return a($t,e)}),[$t]);(0,u.useEffect)((function(){qe.current&&qe.current.scrollTo&&qe.current.scrollTo(0)}),[At]);var Vt,Wt,Bt=(0,u.useMemo)((function(){var e=Et.map((function(e){var t=Ht([e]),n=i(e,{options:t,prevValueMap:Tt,labelInValue:pt,optionLabelProp:ct});return(0,p.Z)((0,p.Z)({},n),{},{disabled:m(e,t)})}));return C||1!==e.length||null!==e[0].value||null!==e[0].label?e:[]}),[kt,It,C]);Vt=Bt,Wt=u.useRef(Vt),Bt=u.useMemo((function(){var e=new Map;Wt.current.forEach((function(t){var n=t.value,r=t.label;n!==r&&e.set(n,r)}));var t=Vt.map((function(t){var n=e.get(t.value);return t.isCacheable&&n?(0,p.Z)((0,p.Z)({},t),{},{label:n}):t}));return Wt.current=t,t}),[Vt]);var Ut=function(e,t,n){var r=Ht([e]),o=h([e],r)[0];if(!$e.skipTriggerSelect){var a=pt?i(e,{options:r,prevValueMap:Tt,labelInValue:pt,optionLabelProp:ct}):e;t&&Ae?Ae(a,o):!t&&Ie&&Ie(a,o)}Ve&&(t&&$e.onRawSelect?$e.onRawSelect(e,o,n):!t&&$e.onRawDeselect&&$e.onRawDeselect(e,o,n))},Kt=(0,u.useState)([]),qt=(0,d.Z)(Kt,2),Gt=qt[0],Jt=qt[1],Xt=function(e){if(!Ve||!$e.skipTriggerChange){var t=Ht(e),n=function(e,t){var n=t.optionLabelProp,r=t.labelInValue,o=t.prevValueMap,a=t.options,i=t.getLabeledValue,s=e;return r&&(s=s.map((function(e){return i(e,{options:a,prevValueMap:o,labelInValue:r,optionLabelProp:n})}))),s}(Array.from(e),{labelInValue:pt,options:t,getLabeledValue:i,prevValueMap:Tt,optionLabelProp:ct}),r=mt?n:n[0];if(Re&&(0!==Et.length||0!==n.length)){var o=h(e,t,{prevValueOptions:Gt});Jt(o.map((function(t,n){var r=(0,p.Z)({},t);return Object.defineProperty(r,"_INTERNAL_OPTION_VALUE_",{get:function(){return e[n]}}),r}))),Re(r,mt?o:o[0])}xt(r)}},Qt=function(e,t){var n,r=t.selected,o=t.source;K||(mt?(n=new Set(Et),r?n.add(e):n.delete(e)):(n=new Set).add(e),(mt||!mt&&Array.from(Et)[0]!==e)&&Xt(Array.from(n)),Ut(e,!mt||r,o),"combobox"===C?(Rt(String(e)),Yt("")):mt&&!H||(Rt(""),Yt("")))},en="combobox"===C&&"function"==typeof te&&te()||null,tn="function"==typeof ne&&ne(),nn=(0,Ne.Z)(void 0,{defaultValue:L,value:S}),rn=(0,d.Z)(nn,2),on=rn[0],an=rn[1],sn=on,un=!X&&!$t.length;(K||un&&sn&&"combobox"===C)&&(sn=!1);var ln,cn=!un&&sn,dn=function(e){var t=void 0!==e?e:!sn;on===t||K||(an(t),Se&&Se(t))};tn&&(ln=function(e){dn(e)}),function(e,t,n){var r=u.useRef(null);r.current={open:t,triggerOpen:n},u.useEffect((function(){function t(t){var n=t.target;n.shadowRoot&&t.composed&&(n=t.composedPath()[0]||n),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(n)&&e!==n}))&&r.current.triggerOpen(!1)}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Be.current,null===(e=Ue.current)||void 0===e?void 0:e.getPopupElement()]}),cn,dn);var fn=function(e,t,n){var r=!0,o=e;Yt(null);var a=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var o=(0,we.Z)(r),a=o[0],i=o.slice(1);if(!a)return[t];var s=t.split(a);return n=n||s.length>1,s.reduce((function(t,n){return[].concat((0,ke.Z)(t),(0,ke.Z)(e(n,i)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,be),i=a;if("combobox"===C)t&&Xt([o]);else if(a){o="","tags"!==C&&(i=a.map((function(e){var t=Ft.find((function(t){return t.data[ct]===e}));return t?t.data.value:null})).filter((function(e){return null!==e})));var s=Array.from(new Set([].concat((0,ke.Z)(Et),(0,ke.Z)(i))));Xt(s),s.forEach((function(e){Ut(e,!0,"input")})),dn(!1),r=!1}return Rt(o),$&&At!==o&&$(o),r};(0,u.useEffect)((function(){on&&K&&an(!1)}),[K]),(0,u.useEffect)((function(){sn||mt||"combobox"===C||fn("",!1,!1)}),[sn]);var pn=ot(),mn=(0,d.Z)(pn,2),hn=mn[0],vn=mn[1],yn=(0,u.useRef)(!1),_n=[];(0,u.useEffect)((function(){return function(){_n.forEach((function(e){return clearTimeout(e)})),_n.splice(0,_n.length)}}),[]);var gn=(0,u.useState)(0),bn=(0,d.Z)(gn,2),Mn=bn[0],wn=bn[1],kn=void 0!==G?G:"combobox"!==C,xn=(0,u.useState)(null),Sn=(0,d.Z)(xn,2),Ln=Sn[0],En=Sn[1],Tn=(0,u.useState)({}),Cn=(0,d.Z)(Tn,2)[1];et((function(){if(cn){var e,t=Math.ceil(null===(e=Be.current)||void 0===e?void 0:e.offsetWidth);Ln===t||Number.isNaN(t)||En(t)}}),[cn]);var On,Pn=u.createElement(n,{ref:qe,prefixCls:w,id:lt,open:sn,childrenAsData:!E,options:$t,flattenOptions:zt,multiple:mt,values:Ct,height:ae,itemHeight:se,onSelect:function(e,t){Qt(e,(0,p.Z)((0,p.Z)({},t),{},{source:"option"}))},onToggleOpen:dn,onActiveValue:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,o=void 0===r?"keyboard":r;wn(t),ee&&"combobox"===C&&null!==e&&"keyboard"===o&&Yt(String(e))},defaultActiveFirstOption:kn,notFoundContent:X,onScroll:xe,searchValue:At,menuItemSelectedIcon:U,virtual:!1!==ce&&!1!==me,onMouseEnter:function(){Cn({})}});!K&&z&&(Et.length||At)&&(On=u.createElement(de,{className:"".concat(w,"-clear"),onMouseDown:function(){Ve&&$e.onClear&&$e.onClear(),Fe&&Fe(),Xt([]),fn("",!1,!1)},customizeIcon:V},"\xd7"));var Dn,Yn=void 0!==W?W:q||!mt&&"combobox"!==C;Yn&&(Dn=u.createElement(de,{className:M()("".concat(w,"-arrow"),(0,l.Z)({},"".concat(w,"-arrow-loading"),q)),customizeIcon:B,customizeIconProps:{loading:q,searchValue:At,open:sn,focused:Qe,showSearch:ht}}));var jn=M()(w,k,(g={},(0,l.Z)(g,"".concat(w,"-focused"),Qe),(0,l.Z)(g,"".concat(w,"-multiple"),mt),(0,l.Z)(g,"".concat(w,"-single"),!mt),(0,l.Z)(g,"".concat(w,"-allow-clear"),z),(0,l.Z)(g,"".concat(w,"-show-arrow"),Yn),(0,l.Z)(g,"".concat(w,"-disabled"),K),(0,l.Z)(g,"".concat(w,"-loading"),q),(0,l.Z)(g,"".concat(w,"-open"),sn),(0,l.Z)(g,"".concat(w,"-customize-input"),en),(0,l.Z)(g,"".concat(w,"-show-search"),ht),g)),Zn=u.createElement(dt,{ref:Ue,disabled:K,prefixCls:w,visible:cn,popupElement:Pn,containerWidth:Ln,animation:ue,transitionName:le,dropdownStyle:fe,dropdownClassName:pe,direction:ge,dropdownMatchSelectWidth:me,dropdownRender:he,dropdownAlign:ve,getPopupContainer:re,empty:!It.length,getTriggerDOMNode:function(){return bt.current},onPopupVisibleChange:ln},tn?u.cloneElement(tn,{ref:(0,Ze.sQ)(bt,tn.props.ref)}):u.createElement(st,(0,r.Z)({},e,{domRef:bt,prefixCls:w,inputElement:en,ref:Ke,id:lt,showSearch:ht,mode:C,accessibilityIndex:Mn,multiple:mt,tagRender:Me,values:Bt,open:sn,onToggleOpen:dn,searchValue:At,activeValue:Dt,onSearch:fn,onSearchSubmit:function(e){if(e&&e.trim()){var t=Array.from(new Set([].concat((0,ke.Z)(Et),[e])));Xt(t),t.forEach((function(e){Ut(e,!0,"input")})),Rt("")}},onSelect:function(e,t){Qt(e,(0,p.Z)((0,p.Z)({},t),{},{source:"selection"}))},tokenWithEnter:Ge})));return tn?Zn:u.createElement("div",(0,r.Z)({className:jn},We,{ref:Be,onMouseDown:function(e){var t,n=e.target,r=null===(t=Ue.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=_n.indexOf(o);(-1!==t&&_n.splice(t,1),nt(),_t||r.contains(document.activeElement))||(null===(e=Ke.current)||void 0===e||e.focus())}));_n.push(o)}if(Ye){for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];Ye.apply(void 0,[e].concat(i))}},onKeyDown:function(e){var t,n=hn(),r=e.which;if(r===f.Z.ENTER&&("combobox"!==C&&e.preventDefault(),sn||dn(!0)),vn(!!At),r===f.Z.BACKSPACE&&!n&&mt&&!At&&Et.length){var o=Ee(Bt,Et);null!==o.removedValue&&(Xt(o.values),Ut(o.removedValue,!1,"input"))}for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];sn&&qe.current&&(t=qe.current).onKeyDown.apply(t,[e].concat(i));De&&De.apply(void 0,[e].concat(i))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;sn&&qe.current&&(o=qe.current).onKeyUp.apply(o,[e].concat(n));Pe&&Pe.apply(void 0,[e].concat(n))},onFocus:function(){tt(!0),K||(Le&&!yn.current&&Le.apply(void 0,arguments),_e.includes("focus")&&dn(!0)),yn.current=!0},onBlur:function(){tt(!1,(function(){yn.current=!1,dn(!1)})),K||(At&&("tags"===C?(fn("",!1,!1),Xt(Array.from(new Set([].concat((0,ke.Z)(Et),[At]))))):"multiple"===C&&Rt("")),Oe&&Oe.apply(void 0,arguments))}}),Qe&&!sn&&u.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Et.join(", "))),Zn,Dn,On)}return u.forwardRef(_)}({prefixCls:"rc-select",components:{optionList:me},convertChildrenToData:Me,flattenOptions:function(e){var t=[];return function e(n,r){n.forEach((function(n){r||!("options"in n)?t.push({key:Oe(n,t.length),groupOption:r,data:n}):(t.push({key:Oe(n,t.length),group:!0,data:n}),e(n.options,!0))}))}(e,!1),t},getLabeledValue:function(e,t){var n=t.options,r=t.prevValueMap,o=t.labelInValue,a=t.optionLabelProp,i=De([e],n)[0],s={value:e},u=o?r.get(e):void 0;return u&&"object"===(0,xe.Z)(u)&&"label"in u?(s.label=u.label,i&&"string"==typeof u.label&&"string"==typeof i[a]&&u.label.trim()!==i[a].trim()&&(0,Se.ZP)(!1,"`label` of `value` is not same as `label` in Select options.")):i&&a in i?s.label=i[a]:(s.label=e,s.isCacheable=!0),s.key=s.value,s},filterOptions:function(e,t,n){var r,o=n.optionFilterProp,a=n.filterOption,i=[];return!1===a?(0,ke.Z)(t):(r="function"==typeof a?a:function(e){return function(t,n){var r=t.toLowerCase();return"options"in n?Ye(n.label).toLowerCase().includes(r):Ye(n[e]).toLowerCase().includes(r)}}(o),t.forEach((function(t){if("options"in t)if(r(e,t))i.push(t);else{var n=t.options.filter((function(t){return r(e,t)}));n.length&&i.push((0,p.Z)((0,p.Z)({},t),{},{options:n}))}else r(e,Pe(t))&&i.push(t)})),i)},isValueDisabled:function(e,t){return De([e],t)[0].disabled},findValueOption:De,warningProps:pt,fillOptionsWithMissingValue:function(e,t,n,r){var o=Le(t).slice().sort(),a=(0,ke.Z)(e),i=new Set;return e.forEach((function(e){e.options?e.options.forEach((function(e){i.add(e.value)})):i.add(e.value)})),o.forEach((function(e){var t,o=r?e.value:e;i.has(o)||a.push(r?(t={},(0,l.Z)(t,n,e.label),(0,l.Z)(t,"value",o),t):{value:o})})),a}}),ht=function(e){(0,i.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.apply(this,arguments)).selectRef=u.createRef(),e.focus=function(){e.selectRef.current.focus()},e.blur=function(){e.selectRef.current.blur()},e}return(0,a.Z)(n,[{key:"render",value:function(){return u.createElement(mt,(0,r.Z)({ref:this.selectRef},this.props))}}]),n}(u.Component);ht.Option=ve,ht.OptGroup=_e;var vt=ht},62843:function(e,t,n){"use strict";n.r(t);var r=n(64649),o=n(8136),a=n(53782),i=n(27378),s=n(60042),u=n.n(s),l=n(24391),c=n(78730),d=i.forwardRef((function(e,t){var n,s=e.prefixCls,d=void 0===s?"rc-switch":s,f=e.className,p=e.checked,m=e.defaultChecked,h=e.disabled,v=e.loadingIcon,y=e.checkedChildren,_=e.unCheckedChildren,g=e.onClick,b=e.onChange,M=e.onKeyDown,w=(0,a.Z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),k=(0,l.Z)(!1,{value:p,defaultValue:m}),x=(0,o.Z)(k,2),S=x[0],L=x[1];function E(e,t){var n=S;return h||(L(n=e),null==b||b(n,t)),n}var T=u()(d,f,(n={},(0,r.Z)(n,"".concat(d,"-checked"),S),(0,r.Z)(n,"".concat(d,"-disabled"),h),n));return i.createElement("button",Object.assign({},w,{type:"button",role:"switch","aria-checked":S,disabled:h,className:T,ref:t,onKeyDown:function(e){e.which===c.Z.LEFT?E(!1,e):e.which===c.Z.RIGHT&&E(!0,e),null==M||M(e)},onClick:function(e){var t=E(!S,e);null==g||g(t,e)}}),v,i.createElement("span",{className:"".concat(d,"-inner")},S?y:_))}));d.displayName="Switch",t.default=d},4183:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizableTextArea:function(){return M},default:function(){return w}});var r=n(25773),o=n(22951),a=n(91976),i=n(67591),s=n(59180),u=n(27378),l=n(50189),c=n(64649),d=n(44569);var f,p,m=n(60042),h=n.n(m),v="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",y=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],_={};function g(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&_[n])return _[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=y.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),u={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(_[n]=u),u}!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(p||(p={}));var b=function(e){(0,i.Z)(n,e);var t=(0,s.Z)(n);function n(e){var a;return(0,o.Z)(this,n),(a=t.call(this,e)).nextFrameActionId=void 0,a.resizeFrameId=void 0,a.textArea=void 0,a.saveTextArea=function(e){a.textArea=e},a.handleResize=function(e){var t=a.state.resizeStatus,n=a.props,r=n.autoSize,o=n.onResize;t===p.NONE&&("function"==typeof o&&o(e),r&&a.resizeOnNextFrame())},a.resizeOnNextFrame=function(){cancelAnimationFrame(a.nextFrameActionId),a.nextFrameActionId=requestAnimationFrame(a.resizeTextarea)},a.resizeTextarea=function(){var e=a.props.autoSize;if(e&&a.textArea){var t=e.minRows,n=e.maxRows,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;f||((f=document.createElement("textarea")).setAttribute("tab-index","-1"),f.setAttribute("aria-hidden","true"),document.body.appendChild(f)),e.getAttribute("wrap")?f.setAttribute("wrap",e.getAttribute("wrap")):f.removeAttribute("wrap");var o=g(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,u=o.sizingStyle;f.setAttribute("style","".concat(u,";").concat(v)),f.value=e.value||e.placeholder||"";var l,c=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,p=f.scrollHeight;if("border-box"===s?p+=i:"content-box"===s&&(p-=a),null!==n||null!==r){f.value=" ";var m=f.scrollHeight-a;null!==n&&(c=m*n,"border-box"===s&&(c=c+a+i),p=Math.max(c,p)),null!==r&&(d=m*r,"border-box"===s&&(d=d+a+i),l=p>d?"":"hidden",p=Math.min(d,p))}return{height:p,minHeight:c,maxHeight:d,overflowY:l,resize:"none"}}(a.textArea,!1,t,n);a.setState({textareaStyles:r,resizeStatus:p.RESIZING},(function(){cancelAnimationFrame(a.resizeFrameId),a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:p.RESIZED},(function(){a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:p.NONE}),a.fixFirefoxAutoScroll()}))}))}))}))}},a.renderTextArea=function(){var e,t,n,o=a.props,i=o.prefixCls,s=void 0===i?"rc-textarea":i,f=o.autoSize,m=o.onResize,v=o.className,y=o.disabled,_=a.state,g=_.textareaStyles,b=_.resizeStatus,M=(e=a.props,t=["prefixCls","onPressEnter","autoSize","defaultValue","onResize"],n=(0,l.Z)({},e),Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n),w=h()(s,v,(0,c.Z)({},"".concat(s,"-disabled"),y));"value"in M&&(M.value=M.value||"");var k=(0,l.Z)((0,l.Z)((0,l.Z)({},a.props.style),g),b===p.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return u.createElement(d.Z,{onResize:a.handleResize,disabled:!(f||m)},u.createElement("textarea",(0,r.Z)({},M,{className:w,style:k,ref:a.saveTextArea})))},a.state={textareaStyles:{},resizeStatus:p.NONE},a}return(0,a.Z)(n,[{key:"componentDidMount",value:function(){this.resizeTextarea()}},{key:"componentDidUpdate",value:function(e){e.value!==this.props.value&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(u.Component),M=b,w=function(e){(0,i.Z)(n,e);var t=(0,s.Z)(n);function n(e){var r;(0,o.Z)(this,n),(r=t.call(this,e)).resizableTextArea=void 0,r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,o=t.onKeyDown;13===e.keyCode&&n&&n(e),o&&o(e)};var a=void 0===e.value||null===e.value?e.defaultValue:e.value;return r.state={value:a},r}return(0,a.Z)(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return u.createElement(M,(0,r.Z)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(u.Component)},85669:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(33940),o=n(50189),a=n(53782),i=n(27378),s=n(80113),u={adjustX:1,adjustY:1},l=[0,0],c={left:{points:["cr","cl"],overflow:u,offset:[-4,0],targetOffset:l},right:{points:["cl","cr"],overflow:u,offset:[4,0],targetOffset:l},top:{points:["bc","tc"],overflow:u,offset:[0,-4],targetOffset:l},bottom:{points:["tc","bc"],overflow:u,offset:[0,4],targetOffset:l},topLeft:{points:["bl","tl"],overflow:u,offset:[0,-4],targetOffset:l},leftTop:{points:["tr","tl"],overflow:u,offset:[-4,0],targetOffset:l},topRight:{points:["br","tr"],overflow:u,offset:[0,-4],targetOffset:l},rightTop:{points:["tl","tr"],overflow:u,offset:[4,0],targetOffset:l},bottomRight:{points:["tr","br"],overflow:u,offset:[0,4],targetOffset:l},rightBottom:{points:["bl","br"],overflow:u,offset:[4,0],targetOffset:l},bottomLeft:{points:["tl","bl"],overflow:u,offset:[0,4],targetOffset:l},leftBottom:{points:["br","bl"],overflow:u,offset:[-4,0],targetOffset:l}},d=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle;return i.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},"function"==typeof t?t():t)},f=function(e,t){var n=e.overlayClassName,u=e.trigger,l=void 0===u?["hover"]:u,f=e.mouseEnterDelay,p=void 0===f?0:f,m=e.mouseLeaveDelay,h=void 0===m?.1:m,v=e.overlayStyle,y=e.prefixCls,_=void 0===y?"rc-tooltip":y,g=e.children,b=e.onVisibleChange,M=e.afterVisibleChange,w=e.transitionName,k=e.animation,x=e.placement,S=void 0===x?"right":x,L=e.align,E=void 0===L?{}:L,T=e.destroyTooltipOnHide,C=void 0!==T&&T,O=e.defaultVisible,P=e.getTooltipContainer,D=e.overlayInnerStyle,Y=(0,a.Z)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),j=(0,i.useRef)(null);(0,i.useImperativeHandle)(t,(function(){return j.current}));var Z=(0,o.Z)({},Y);"visible"in e&&(Z.popupVisible=e.visible);var N=!1,R=!1;if("boolean"==typeof C)N=C;else if(C&&"object"===(0,r.Z)(C)){var A=C.keepParent;N=!0===A,R=!1===A}return i.createElement(s.Z,Object.assign({popupClassName:n,prefixCls:_,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,o=e.id;return[i.createElement("div",{className:"".concat(_,"-arrow"),key:"arrow"},n),i.createElement(d,{key:"content",prefixCls:_,id:o,overlay:r,overlayInnerStyle:D})]},action:l,builtinPlacements:c,popupPlacement:S,ref:j,popupAlign:E,getPopupContainer:P,onPopupVisibleChange:b,afterPopupVisibleChange:M,popupTransitionName:w,popupAnimation:k,defaultPopupVisible:O,destroyPopupOnHide:N,autoDestroy:R,mouseLeaveDelay:h,popupStyle:v,mouseEnterDelay:p},Z),g)},p=(0,i.forwardRef)(f)},61188:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.placements=void 0;var n={adjustX:1,adjustY:1},r=[0,0],o={left:{points:["cr","cl"],overflow:n,offset:[-4,0],targetOffset:r},right:{points:["cl","cr"],overflow:n,offset:[4,0],targetOffset:r},top:{points:["bc","tc"],overflow:n,offset:[0,-4],targetOffset:r},bottom:{points:["tc","bc"],overflow:n,offset:[0,4],targetOffset:r},topLeft:{points:["bl","tl"],overflow:n,offset:[0,-4],targetOffset:r},leftTop:{points:["tr","tl"],overflow:n,offset:[-4,0],targetOffset:r},topRight:{points:["br","tr"],overflow:n,offset:[0,-4],targetOffset:r},rightTop:{points:["tl","tr"],overflow:n,offset:[4,0],targetOffset:r},bottomRight:{points:["tr","br"],overflow:n,offset:[0,4],targetOffset:r},rightBottom:{points:["bl","br"],overflow:n,offset:[4,0],targetOffset:r},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,4],targetOffset:r},leftBottom:{points:["br","bl"],overflow:n,offset:[-4,0],targetOffset:r}};t.placements=o;var a=o;t.default=a},80113:function(e,t,n){"use strict";n.d(t,{Z:function(){return rt}});var r=n(50189),o=n(25773),a=n(22951),i=n(91976),s=n(47169),u=n(67591),l=n(59180),c=n(27378),d=n(31542),f=n(94068);function p(e,t){return!!e&&e.contains(t)}var m=n(62738),h=n(79986);function v(e,t,n,r){var o=d.unstable_batchedUpdates?function(e){d.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,o)}}}var y=n(98554),_=(0,c.forwardRef)((function(e,t){var n=e.didUpdate,r=e.getContainer,o=e.children,a=(0,c.useRef)();(0,c.useImperativeHandle)(t,(function(){return{}}));var i=(0,c.useRef)(!1);return!i.current&&(0,y.Z)()&&(a.current=r(),i.current=!0),(0,c.useEffect)((function(){null==n||n(e)})),(0,c.useEffect)((function(){return function(){var e,t;null===(e=a.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(a.current)}}),[]),a.current?d.createPortal(o,a.current):null})),g=n(60042),b=n.n(g);function M(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var w=n(8136),k=n(53782),x=n(62477),S=n(89214);function L(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function E(e){var t=e.prefixCls,n=e.visible,a=e.zIndex,i=e.mask,s=e.maskMotion,u=e.maskAnimation,l=e.maskTransitionName;if(!i)return null;var d={};return(s||l||u)&&(d=(0,r.Z)({motionAppear:!0},L({motion:s,prefixCls:t,transitionName:l,animation:u}))),c.createElement(S.default,(0,o.Z)({},d,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return c.createElement("div",{style:{zIndex:a},className:b()("".concat(t,"-mask"),n)})}))}var T,C=n(33940),O=n(5661);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function N(){if(void 0!==T)return T;T="";var e=document.createElement("p").style;for(var t in Z)t+"Transform"in e&&(T=t);return T}function R(){return N()?"".concat(N(),"TransitionProperty"):"transitionProperty"}function A(){return N()?"".concat(N(),"Transform"):"transform"}function I(e,t){var n=R();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function F(e,t){var n=A();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var H,$=/matrix\((.*)\)/,z=/matrix3d\((.*)\)/;function V(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function W(e,t,n){var r=n;if("object"!==Y(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):H(e,t);for(var o in t)t.hasOwnProperty(o)&&W(e,o,t[o])}function B(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}function U(e){return B(e)}function K(e){return B(e,!0)}function q(e){var t=function(e){var t,n,r,o=e.ownerDocument,a=o.body,i=o&&o.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=i.clientLeft||a.clientLeft||0,top:r-=i.clientTop||a.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=U(r),t.top+=K(r),t}function G(e){return null!=e&&e==e.window}function J(e){return G(e)?e.document:9===e.nodeType?e:e.ownerDocument}var X=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),Q=/^(top|right|bottom|left)$/;function ee(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function te(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function ne(e,t,n){"static"===W(e,"position")&&(e.style.position="relative");var r=-999,o=-999,a=ee("left",n),i=ee("top",n),s=te(a),u=te(i);"left"!==a&&(r=999),"top"!==i&&(o=999);var l,c="",d=q(e);("left"in t||"top"in t)&&(c=(l=e).style.transitionProperty||l.style[R()]||"",I(e,"none")),"left"in t&&(e.style[s]="",e.style[a]="".concat(r,"px")),"top"in t&&(e.style[u]="",e.style[i]="".concat(o,"px")),V(e);var f=q(e),p={};for(var m in t)if(t.hasOwnProperty(m)){var h=ee(m,n),v="left"===m?r:o,y=d[m]-f[m];p[h]=h===m?v+y:v-y}W(e,p),V(e),("left"in t||"top"in t)&&I(e,c);var _={};for(var g in t)if(t.hasOwnProperty(g)){var b=ee(g,n),M=t[g]-d[g];_[b]=g===b?p[b]+M:p[b]-M}W(e,_)}function re(e,t){var n=q(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(A());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),function(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(A());if(r&&"none"!==r){var o,a=r.match($);a?((o=(a=a[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,o[5]=t.y,F(e,"matrix(".concat(o.join(","),")"))):((o=r.match(z)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,o[13]=t.y,F(e,"matrix3d(".concat(o.join(","),")")))}else F(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,o)}function oe(e,t){for(var n=0;n<e.length;n++)t(e[n])}function ae(e){return"border-box"===H(e,"boxSizing")}"undefined"!=typeof window&&(H=window.getComputedStyle?function(e,t,n){var r=n,o="",a=J(e);return(r=r||a.defaultView.getComputedStyle(e,null))&&(o=r.getPropertyValue(t)||r[t]),o}:function(e,t){var n=e.currentStyle&&e.currentStyle[t];if(X.test(n)&&!Q.test(t)){var r=e.style,o=r.left,a=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left,r.left="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r.left=o,e.runtimeStyle.left=a}return""===n?"auto":n});var ie=["margin","border","padding"];function se(e,t,n){var r,o={},a=e.style;for(r in t)t.hasOwnProperty(r)&&(o[r]=a[r],a[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(a[r]=o[r])}function ue(e,t,n){var r,o,a,i=0;for(o=0;o<t.length;o++)if(r=t[o])for(a=0;a<n.length;a++){var s=void 0;s="border"===r?"".concat(r).concat(n[a],"Width"):r+n[a],i+=parseFloat(H(e,s))||0}return i}var le={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function ce(e,t,n){var r=n;if(G(e))return"width"===t?le.viewportWidth(e):le.viewportHeight(e);if(9===e.nodeType)return"width"===t?le.docWidth(e):le.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],a="width"===t?e.getBoundingClientRect().width:e.getBoundingClientRect().height,i=ae(e),s=0;(null==a||a<=0)&&(a=void 0,(null==(s=H(e,t))||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===r&&(r=i?1:-1);var u=void 0!==a||i,l=a||s;return-1===r?u?l-ue(e,["border","padding"],o):s:u?1===r?l:l+(2===r?-ue(e,["border"],o):ue(e,["margin"],o)):s+ue(e,ie.slice(r),o)}oe(["Width","Height"],(function(e){le["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],le["viewport".concat(e)](n))},le["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,a=r.documentElement[n];return"CSS1Compat"===r.compatMode&&a||o&&o[n]||a}}));var de={position:"absolute",visibility:"hidden",display:"block"};function fe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return 0!==o.offsetWidth?r=ce.apply(void 0,t):se(o,de,(function(){r=ce.apply(void 0,t)})),r}function pe(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}oe(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);le["outer".concat(t)]=function(t,n){return t&&fe(t,e,n?0:1)};var n="width"===e?["Left","Right"]:["Top","Bottom"];le[e]=function(t,r){var o=r;return void 0!==o?t?(ae(t)&&(o+=ue(t,["padding","border"],n)),W(t,e,o)):void 0:t&&fe(t,e,-1)}}));var me={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:J,offset:function(e,t,n){if(void 0===t)return q(e);!function(e,t,n){if(n.ignoreShake){var r=q(e),o=r.left.toFixed(0),a=r.top.toFixed(0),i=t.left.toFixed(0),s=t.top.toFixed(0);if(o===i&&a===s)return}n.useCssRight||n.useCssBottom?ne(e,t,n):n.useCssTransform&&A()in document.body.style?re(e,t):ne(e,t,n)}(e,t,n||{})},isWindow:G,each:oe,css:W,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:pe,getWindowScrollLeft:function(e){return U(e)},getWindowScrollTop:function(e){return K(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)me.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};pe(me,le);var he=me.getParent;function ve(e){if(me.isWindow(e)||9===e.nodeType)return null;var t,n=me.getDocument(e).body,r=me.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:he(e);for(t=he(e);t&&t!==n&&9!==t.nodeType;t=he(t))if("static"!==(r=me.css(t,"position")))return t;return null}var ye=me.getParent;function _e(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=ve(e),o=me.getDocument(e),a=o.defaultView||o.parentWindow,i=o.body,s=o.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===i||r===s||"visible"===me.css(r,"overflow")){if(r===i||r===s)break}else{var u=me.offset(r);u.left+=r.clientLeft,u.top+=r.clientTop,n.top=Math.max(n.top,u.top),n.right=Math.min(n.right,u.left+r.clientWidth),n.bottom=Math.min(n.bottom,u.top+r.clientHeight),n.left=Math.max(n.left,u.left)}r=ve(r)}var l=null;me.isWindow(e)||9===e.nodeType||(l=e.style.position,"absolute"===me.css(e,"position")&&(e.style.position="fixed"));var c=me.getWindowScrollLeft(a),d=me.getWindowScrollTop(a),f=me.viewportWidth(a),p=me.viewportHeight(a),m=s.scrollWidth,h=s.scrollHeight,v=window.getComputedStyle(i);if("hidden"===v.overflowX&&(m=a.innerWidth),"hidden"===v.overflowY&&(h=a.innerHeight),e.style&&(e.style.position=l),t||function(e){if(me.isWindow(e)||9===e.nodeType)return!1;var t=me.getDocument(e),n=t.body,r=null;for(r=ye(e);r&&r!==n&&r!==t;r=ye(r))if("fixed"===me.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,c),n.top=Math.max(n.top,d),n.right=Math.min(n.right,c+f),n.bottom=Math.min(n.bottom,d+p);else{var y=Math.max(m,c+f);n.right=Math.min(n.right,y);var _=Math.max(h,d+p);n.bottom=Math.min(n.bottom,_)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function ge(e){var t,n,r;if(me.isWindow(e)||9===e.nodeType){var o=me.getWindow(e);t={left:me.getWindowScrollLeft(o),top:me.getWindowScrollTop(o)},n=me.viewportWidth(o),r=me.viewportHeight(o)}else t=me.offset(e),n=me.outerWidth(e),r=me.outerHeight(e);return t.width=n,t.height=r,t}function be(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,a=e.height,i=e.left,s=e.top;return"c"===n?s+=a/2:"b"===n&&(s+=a),"c"===r?i+=o/2:"r"===r&&(i+=o),{left:i,top:s}}function Me(e,t,n,r,o){var a=be(t,n[1]),i=be(e,n[0]),s=[i.left-a.left,i.top-a.top];return{left:Math.round(e.left-s[0]+r[0]-o[0]),top:Math.round(e.top-s[1]+r[1]-o[1])}}function we(e,t,n){return e.left<n.left||e.left+t.width>n.right}function ke(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function xe(e,t,n){var r=[];return me.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Se(e,t){return e[t]=-e[t],e}function Le(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function Ee(e,t){e[0]=Le(e[0],t.width),e[1]=Le(e[1],t.height)}function Te(e,t,n,r){var o=n.points,a=n.offset||[0,0],i=n.targetOffset||[0,0],s=n.overflow,u=n.source||e;a=[].concat(a),i=[].concat(i);var l={},c=0,d=_e(u,!(!(s=s||{})||!s.alwaysByViewport)),f=ge(u);Ee(a,f),Ee(i,t);var p=Me(f,t,o,a,i),m=me.merge(f,p);if(d&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&we(p,f,d)){var h=xe(o,/[lr]/gi,{l:"r",r:"l"}),v=Se(a,0),y=Se(i,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(Me(f,t,h,v,y),f,d)||(c=1,o=h,a=v,i=y)}if(s.adjustY&&ke(p,f,d)){var _=xe(o,/[tb]/gi,{t:"b",b:"t"}),g=Se(a,1),b=Se(i,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(Me(f,t,_,g,b),f,d)||(c=1,o=_,a=g,i=b)}c&&(p=Me(f,t,o,a,i),me.mix(m,p));var M=we(p,f,d),w=ke(p,f,d);if(M||w){var k=o;M&&(k=xe(o,/[lr]/gi,{l:"r",r:"l"})),w&&(k=xe(o,/[tb]/gi,{t:"b",b:"t"})),o=k,a=n.offset||[0,0],i=n.targetOffset||[0,0]}l.adjustX=s.adjustX&&M,l.adjustY=s.adjustY&&w,(l.adjustX||l.adjustY)&&(m=function(e,t,n,r){var o=me.clone(e),a={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+a.width>n.right&&(a.width-=o.left+a.width-n.right),r.adjustX&&o.left+a.width>n.right&&(o.left=Math.max(n.right-a.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+a.height>n.bottom&&(a.height-=o.top+a.height-n.bottom),r.adjustY&&o.top+a.height>n.bottom&&(o.top=Math.max(n.bottom-a.height,n.top)),me.mix(o,a)}(p,f,d,l))}return m.width!==f.width&&me.css(u,"width",me.width(u)+m.width-f.width),m.height!==f.height&&me.css(u,"height",me.height(u)+m.height-f.height),me.offset(u,{left:m.left,top:m.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:a,targetOffset:i,overflow:l}}function Ce(e,t,n){var r=n.target||t,o=ge(r),a=!function(e,t){var n=_e(e,t),r=ge(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return Te(e,o,n,a)}Ce.__getOffsetParent=ve,Ce.__getVisibleRectForElement=_e;var Oe=n(56141),Pe=n.n(Oe),De=n(97329);function Ye(e,t){var n=null,r=null;var o=new De.Z((function(e){var o=(0,w.Z)(e,1)[0].target;if(document.documentElement.contains(o)){var a=o.getBoundingClientRect(),i=a.width,s=a.height,u=Math.floor(i),l=Math.floor(s);n===u&&r===l||Promise.resolve().then((function(){t({width:u,height:l})})),n=u,r=l}}));return e&&o.observe(e),function(){o.disconnect()}}function je(e){return"function"!=typeof e?null:e()}function Ze(e){return"object"===(0,C.Z)(e)&&e?e:null}var Ne=function(e,t){var n=e.children,r=e.disabled,o=e.target,a=e.align,i=e.onAlign,s=e.monitorWindowResize,u=e.monitorBufferTime,l=void 0===u?0:u,d=c.useRef({}),f=c.useRef(),m=c.Children.only(n),y=c.useRef({});y.current.disabled=r,y.current.target=o,y.current.align=a,y.current.onAlign=i;var _=function(e,t){var n=c.useRef(!1),r=c.useRef(null);function o(){window.clearTimeout(r.current)}return[function a(i){if(n.current&&!0!==i)o(),r.current=window.setTimeout((function(){n.current=!1,a()}),t);else{if(!1===e())return;n.current=!0,o(),r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=y.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign;if(!t&&n){var a,i=f.current,s=je(n),u=Ze(n);d.current.element=s,d.current.point=u,d.current.align=r;var l=document.activeElement;return s&&(0,O.Z)(s)?a=Ce(i,s,r):u&&(a=function(e,t,n){var r,o,a=me.getDocument(e),i=a.defaultView||a.parentWindow,s=me.getWindowScrollLeft(i),u=me.getWindowScrollTop(i),l=me.viewportWidth(i),c=me.viewportHeight(i),d={left:r="pageX"in t?t.pageX:s+t.clientX,top:o="pageY"in t?t.pageY:u+t.clientY,width:0,height:0},f=r>=0&&r<=s+l&&o>=0&&o<=u+c,p=[n.points[0],"cc"];return Te(e,d,D(D({},n),{},{points:p}),f)}(i,u,r)),function(e,t){e!==document.activeElement&&p(t,e)&&"function"==typeof e.focus&&e.focus()}(l,i),o&&a&&o(i,a),!0}return!1}),l),g=(0,w.Z)(_,2),b=g[0],M=g[1],k=c.useRef({cancel:function(){}}),x=c.useRef({cancel:function(){}});c.useEffect((function(){var e,t,n=je(o),r=Ze(o);f.current!==x.current.element&&(x.current.cancel(),x.current.element=f.current,x.current.cancel=Ye(f.current,b)),d.current.element===n&&((e=d.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&Pe()(d.current.align,a)||(b(),k.current.element!==n&&(k.current.cancel(),k.current.element=n,k.current.cancel=Ye(n,b)))})),c.useEffect((function(){r?M():b()}),[r]);var S=c.useRef(null);return c.useEffect((function(){s?S.current||(S.current=v(window,"resize",b)):S.current&&(S.current.remove(),S.current=null)}),[s]),c.useEffect((function(){return function(){k.current.cancel(),x.current.cancel(),S.current&&S.current.remove(),M()}}),[]),c.useImperativeHandle(t,(function(){return{forceAlign:function(){return b(!0)}}})),c.isValidElement(m)&&(m=c.cloneElement(m,{ref:(0,h.sQ)(m.ref,f)})),m},Re=c.forwardRef(Ne);Re.displayName="Align";var Ae=Re,Ie=n(50824),Fe=n.n(Ie),He=n(27791),$e=["measure","align",null,"motion"],ze=c.forwardRef((function(e,t){var n=e.visible,a=e.prefixCls,i=e.className,s=e.style,u=e.children,l=e.zIndex,d=e.stretch,p=e.destroyPopupOnHide,m=e.forceRender,h=e.align,v=e.point,y=e.getRootDomNode,_=e.getClassNameFromAlign,g=e.onAlign,M=e.onMouseEnter,k=e.onMouseLeave,x=e.onMouseDown,E=e.onTouchStart,T=(0,c.useRef)(),C=(0,c.useRef)(),O=(0,c.useState)(),P=(0,w.Z)(O,2),D=P[0],Y=P[1],j=function(e){var t=c.useState({width:0,height:0}),n=(0,w.Z)(t,2),r=n[0],o=n[1];return[c.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){o({width:e.offsetWidth,height:e.offsetHeight})}]}(d),Z=(0,w.Z)(j,2),N=Z[0],R=Z[1];var A=function(e,t){var n=(0,c.useState)(null),r=(0,w.Z)(n,2),o=r[0],a=r[1],i=(0,c.useRef)(),s=(0,c.useRef)(!1);function u(e){s.current||a(e)}function l(){f.Z.cancel(i.current)}return(0,c.useEffect)((function(){u("measure")}),[e]),(0,c.useEffect)((function(){"measure"===o&&t(),o&&(i.current=(0,f.Z)((0,He.Z)(Fe().mark((function e(){var t,n;return Fe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=$e.indexOf(o),(n=$e[t+1])&&-1!==t&&u(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,c.useEffect)((function(){return function(){s.current=!0,l()}}),[]),[o,function(e){l(),i.current=(0,f.Z)((function(){u((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){d&&R(y())})),I=(0,w.Z)(A,2),F=I[0],H=I[1],$=(0,c.useRef)();function z(){var e;null===(e=T.current)||void 0===e||e.forceAlign()}function V(e,t){var n=_(t);D!==n&&Y(n),"align"===F&&(D!==n?Promise.resolve().then((function(){z()})):H((function(){var e;null===(e=$.current)||void 0===e||e.call($)})),null==g||g(e,t))}var W=(0,r.Z)({},L(e));function B(){return new Promise((function(e){$.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=W[e];W[e]=function(e,n){return H(),null==t?void 0:t(e,n)}})),c.useEffect((function(){W.motionName||"motion"!==F||H()}),[W.motionName,F]),c.useImperativeHandle(t,(function(){return{forceAlign:z,getElement:function(){return C.current}}}));var U=(0,r.Z)((0,r.Z)({},N),{},{zIndex:l,opacity:"motion"!==F&&"stable"!==F&&n?0:void 0,pointerEvents:"stable"===F?void 0:"none"},s),K=!0;!(null==h?void 0:h.points)||"align"!==F&&"stable"!==F||(K=!1);var q=u;return c.Children.count(u)>1&&(q=c.createElement("div",{className:"".concat(a,"-content")},u)),c.createElement(S.default,(0,o.Z)({visible:n,ref:C,leavedClassName:"".concat(a,"-hidden")},W,{onAppearPrepare:B,onEnterPrepare:B,removeOnLeave:p,forceRender:m}),(function(e,t){var n=e.className,o=e.style,s=b()(a,i,D,n);return c.createElement(Ae,{target:v||y,key:"popup",ref:T,monitorWindowResize:!0,disabled:K,align:h,onAlign:V},c.createElement("div",{ref:t,className:s,onMouseEnter:M,onMouseLeave:k,onMouseDownCapture:x,onTouchStartCapture:E,style:(0,r.Z)((0,r.Z)({},o),U)},q))}))}));ze.displayName="PopupInner";var Ve=ze,We=c.forwardRef((function(e,t){var n=e.prefixCls,a=e.visible,i=e.zIndex,s=e.children,u=e.mobile,l=(u=void 0===u?{}:u).popupClassName,d=u.popupStyle,f=u.popupMotion,p=void 0===f?{}:f,m=u.popupRender,h=c.useRef();c.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var v=(0,r.Z)({zIndex:i},d),y=s;return c.Children.count(s)>1&&(y=c.createElement("div",{className:"".concat(n,"-content")},s)),m&&(y=m(y)),c.createElement(S.default,(0,o.Z)({visible:a,ref:h,removeOnLeave:!0},p),(function(e,t){var o=e.className,a=e.style,i=b()(n,l,o);return c.createElement("div",{ref:t,className:i,style:(0,r.Z)((0,r.Z)({},a),v)},y)}))}));We.displayName="MobilePopupInner";var Be=We,Ue=["visible","mobile"],Ke=c.forwardRef((function(e,t){var n=e.visible,a=e.mobile,i=(0,k.Z)(e,Ue),s=(0,c.useState)(n),u=(0,w.Z)(s,2),l=u[0],d=u[1],f=(0,c.useState)(!1),p=(0,w.Z)(f,2),m=p[0],h=p[1],v=(0,r.Z)((0,r.Z)({},i),{},{visible:l});(0,c.useEffect)((function(){d(n),n&&a&&h((0,x.Z)())}),[n,a]);var y=m?c.createElement(Be,(0,o.Z)({},v,{mobile:a,ref:t})):c.createElement(Ve,(0,o.Z)({},v,{ref:t}));return c.createElement("div",null,c.createElement(E,v),y)}));Ke.displayName="Popup";var qe=Ke,Ge=c.createContext(null);function Je(){}function Xe(){return""}function Qe(e){return e?e.ownerDocument:window.document}var et=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var tt,nt,rt=(tt=_,nt=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(e){var r,i;return(0,a.Z)(this,n),(r=t.call(this,e)).popupRef=c.createRef(),r.triggerRef=c.createRef(),r.attachId=void 0,r.clickOutsideHandler=void 0,r.touchOutsideHandler=void 0,r.contextMenuOutsideHandler1=void 0,r.contextMenuOutsideHandler2=void 0,r.mouseDownTimeout=void 0,r.focusTime=void 0,r.preClickTime=void 0,r.preTouchTime=void 0,r.delayTimer=void 0,r.hasPopupMouseDown=void 0,r.onMouseEnter=function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)},r.onMouseMove=function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)},r.onMouseLeave=function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onPopupMouseEnter=function(){r.clearDelayTimer()},r.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&p(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onFocus=function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))},r.onMouseDown=function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()},r.onTouchStart=function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()},r.onBlur=function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)},r.onContextMenu=function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)},r.onContextMenuClose=function(){r.isContextMenuToShow()&&r.close()},r.onClick=function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)},r.onPopupMouseDown=function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)},r.onDocumentClick=function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),o=r.getPopupDomNode();p(n,t)&&!r.isContextMenuOnly()||p(o,t)||r.hasPopupMouseDown||r.close()}},r.getRootDomNode=function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=(0,m.Z)(r.triggerRef.current);if(t)return t}catch(n){}return d.findDOMNode((0,s.Z)(r))},r.getPopupClassNameFromAlign=function(e){var t=[],n=r.props,o=n.popupPlacement,a=n.builtinPlacements,i=n.prefixCls,s=n.alignPoint,u=n.getPopupClassNameFromAlign;return o&&a&&t.push(function(e,t,n,r){for(var o=n.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s=a[i];if(M(e[s].points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(a,i,e,s)),u&&t.push(u(e)),t.join(" ")},r.getComponent=function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,a=e.popupClassName,i=e.onPopupAlign,s=e.popupMotion,u=e.popupAnimation,l=e.popupTransitionName,d=e.popupStyle,f=e.mask,p=e.maskAnimation,m=e.maskTransitionName,h=e.maskMotion,v=e.zIndex,y=e.popup,_=e.stretch,g=e.alignPoint,b=e.mobile,M=e.forceRender,w=r.state,k=w.popupVisible,x=w.point,S=r.getPopupAlign(),L={};return r.isMouseEnterToShow()&&(L.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(L.onMouseLeave=r.onPopupMouseLeave),L.onMouseDown=r.onPopupMouseDown,L.onTouchStart=r.onPopupMouseDown,c.createElement(qe,(0,o.Z)({prefixCls:t,destroyPopupOnHide:n,visible:k,point:g&&x,className:a,align:S,onAlign:i,animation:u,getClassNameFromAlign:r.getPopupClassNameFromAlign},L,{stretch:_,getRootDomNode:r.getRootDomNode,style:d,mask:f,zIndex:v,transitionName:l,maskAnimation:p,maskTransitionName:m,maskMotion:h,ref:r.popupRef,motion:s,mobile:b,forceRender:M}),"function"==typeof y?y():y)},r.attachParent=function(e){f.Z.cancel(r.attachId);var t,n=r.props,o=n.getPopupContainer,a=n.getDocument,i=r.getRootDomNode();o?(i||0===o.length)&&(t=o(i)):t=a(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=(0,f.Z)((function(){r.attachParent(e)}))},r.getContainer=function(){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.attachParent(e),e},r.setPoint=function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})},r.handlePortalUpdate=function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)},r.triggerContextValue={onPopupMouseDown:r.onPopupMouseDown},i="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:i,popupVisible:i},et.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=v(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=v(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=v(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=v(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),f.Z.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?function(e,t,n){var o=e[t]||{};return(0,r.Z)((0,r.Z)({},o),n)}(o,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,o=1e3*t;if(this.clearDelayTimer(),o){var a=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,a),r.clearDelayTimer()}),o)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,o=t.forceRender,a=t.alignPoint,i=t.className,s=t.autoDestroy,u=c.Children.only(n),l={key:"trigger"};this.isContextMenuToShow()?l.onContextMenu=this.onContextMenu:l.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMouseDown=this.onMouseDown,l.onTouchStart=this.onTouchStart):(l.onClick=this.createTwoChains("onClick"),l.onMouseDown=this.createTwoChains("onMouseDown"),l.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(l.onMouseEnter=this.onMouseEnter,a&&(l.onMouseMove=this.onMouseMove)):l.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?l.onMouseLeave=this.onMouseLeave:l.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=this.createTwoChains("onBlur"));var d=b()(u&&u.props&&u.props.className,i);d&&(l.className=d);var f=(0,r.Z)({},l);(0,h.Yr)(u)&&(f.ref=(0,h.sQ)(this.triggerRef,u.ref));var p,m=c.cloneElement(u,f);return(e||this.popupRef.current||o)&&(p=c.createElement(tt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&s&&(p=null),c.createElement(Ge.Provider,{value:this.triggerContextValue},m,p)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(c.Component),nt.contextType=Ge,nt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Xe,getDocument:Qe,onPopupVisibleChange:Je,afterPopupVisibleChange:Je,onPopupAlign:Je,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},nt)},27406:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(27378),o=n(11349);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(a(e)):(0,o.isFragment)(e)&&e.props?n=n.concat(a(e.props.children,t)):n.push(e))})),n}},98554:function(e,t,n){"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{Z:function(){return r}})},62738:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(31542);function o(e){return e instanceof HTMLElement?e:r.findDOMNode(e)}},5661:function(e,t){"use strict";t.Z=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();if(n.width||n.height)return!0}return!1}},78730:function(e,t){"use strict";var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE)return!0;if(e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY)return!0;if(e>=n.A&&e<=n.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=n},8805:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(27378);function o(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},24391:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(8136),o=n(27378);function a(e,t){var n=t||{},a=n.defaultValue,i=n.value,s=n.onChange,u=n.postState,l=o.useState((function(){return void 0!==i?i:void 0!==a?"function"==typeof a?a():a:"function"==typeof e?e():e})),c=(0,r.Z)(l,2),d=c[0],f=c[1],p=void 0!==i?i:d;u&&(p=u(p));var m=o.useRef(!0);return o.useEffect((function(){m.current?m.current=!1:void 0===i&&f(i)}),[i]),[p,function(e){f(e),p!==e&&s&&s(e,p)}]}},62477:function(e,t){"use strict";t.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4)))}},94068:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var a=0,i=new Map;function s(e){i.delete(e)}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=a+=1;function o(t){if(0===t)s(n),e();else{var a=r((function(){o(t-1)}));i.set(n,a)}}return o(t),n}u.cancel=function(e){var t=i.get(e);return s(t),o(t)}},79986:function(e,t,n){"use strict";n.d(t,{Yr:function(){return s},mH:function(){return a},sQ:function(){return i}});var r=n(33940),o=n(11349);function a(e,t){"function"==typeof e?e(t):"object"===(0,r.Z)(e)&&e&&"current"in e&&(e.current=t)}function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){a(t,e)}))}}function s(e){var t,n,r=(0,o.isMemo)(e)?e.type.type:e.type;return!("function"==typeof r&&!(null===(t=r.prototype)||void 0===t?void 0:t.render))&&!("function"==typeof e&&!(null===(n=e.prototype)||void 0===n?void 0:n.render))}},74485:function(e,t,n){"use strict";n.d(t,{ET:function(){return s}});var r={};function o(e,t){0}function a(e,t){0}function i(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function s(e,t){i(a,e,t)}t.ZP=function(e,t){i(o,e,t)}},90742:function(e,t,n){"use strict";var r=n(36178);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o.useRef({});"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t);return r.current.value};var o=r(n(27378))},22958:function(e,t,n){"use strict";var r=n(36178),o=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=t||{},r=n.defaultValue,o=n.value,s=n.onChange,u=n.postState,l=i.useState((function(){return void 0!==o?o:void 0!==r?"function"==typeof r?r():r:"function"==typeof e?e():e})),c=(0,a.default)(l,2),d=c[0],f=c[1],p=void 0!==o?o:d;u&&(p=u(p));var m=i.useRef(!0);return i.useEffect((function(){m.current?m.current=!1:void 0===o&&f(o)}),[o]),[p,function(e){f(e),p!==e&&s&&s(e,p)}]};var a=o(n(40131)),i=r(n(27378))},49811:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)({},e);Array.isArray(t)&&t.forEach((function(e){delete n[e]}));return n};var o=r(n(80624))},96945:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=function(e){return+setTimeout(e,16)},r=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(n=function(e){return window.requestAnimationFrame(e)},r=function(e){return window.cancelAnimationFrame(e)});var o=0,a=new Map;function i(e){a.delete(e)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=o+=1;function s(t){if(0===t)i(r),e();else{var o=n((function(){s(t-1)}));a.set(r,o)}}return s(t),r}s.cancel=function(e){var t=a.get(e);return i(t),r(t)}},16329:function(e,t,n){"use strict";var r=n(73203);Object.defineProperty(t,"__esModule",{value:!0}),t.fillRef=i,t.composeRef=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){i(t,e)}))}},t.supportRef=function(e){var t,n,r=(0,a.isMemo)(e)?e.type.type:e.type;if("function"==typeof r&&!(null===(t=r.prototype)||void 0===t?void 0:t.render))return!1;if("function"==typeof e&&!(null===(n=e.prototype)||void 0===n?void 0:n.render))return!1;return!0};var o=r(n(7501)),a=n(11349);function i(e,t){"function"==typeof e?e(t):"object"===(0,o.default)(e)&&e&&"current"in e&&(e.current=t)}},55620:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.warning=r,t.note=o,t.resetWarned=function(){n={}},t.call=a,t.warningOnce=i,t.noteOnce=function(e,t){a(o,e,t)},t.default=void 0;var n={};function r(e,t){0}function o(e,t){0}function a(e,t,r){t||n[r]||(e(!1,r),n[r]=!0)}function i(e,t){a(r,e,t)}var s=i;t.default=s},96232:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,_=n?Symbol.for("react.fundamental"):60117,g=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function M(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case a:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case v:case h:case u:return e;default:return t}}case o:return t}}}function w(e){return M(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=v,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||M(e)===c},t.isConcurrentMode=w,t.isContextConsumer=function(e){return M(e)===l},t.isContextProvider=function(e){return M(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return M(e)===f},t.isFragment=function(e){return M(e)===a},t.isLazy=function(e){return M(e)===v},t.isMemo=function(e){return M(e)===h},t.isPortal=function(e){return M(e)===o},t.isProfiler=function(e){return M(e)===s},t.isStrictMode=function(e){return M(e)===i},t.isSuspense=function(e){return M(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===i||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===u||e.$$typeof===l||e.$$typeof===f||e.$$typeof===_||e.$$typeof===g||e.$$typeof===b||e.$$typeof===y)},t.typeOf=M},11349:function(e,t,n){"use strict";e.exports=n(96232)},35539:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(27378),a=(i(o),i(n(23615)));function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.props.contentDidMount()}},{key:"componentDidUpdate",value:function(){this.props.contentDidUpdate()}},{key:"render",value:function(){return o.Children.only(this.props.children)}}]),t}(o.Component);l.propTypes={children:a.default.element.isRequired,contentDidMount:a.default.func.isRequired,contentDidUpdate:a.default.func.isRequired},t.default=l},71498:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FrameContextConsumer=t.FrameContextProvider=t.FrameContext=void 0;var r,o=n(27378),a=(r=o)&&r.__esModule?r:{default:r};var i=void 0,s=void 0;"undefined"!=typeof document&&(i=document),"undefined"!=typeof window&&(s=window);var u=t.FrameContext=a.default.createContext({document:i,window:s}),l=u.Provider,c=u.Consumer;t.FrameContextProvider=l,t.FrameContextConsumer=c},96878:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(27378),i=d(a),s=d(n(31542)),u=d(n(23615)),l=n(71498),c=d(n(35539));function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.handleLoad=function(){r.forceUpdate()},r._isMounted=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this._isMounted=!0;var e=this.getDoc();e&&"complete"===e.readyState?this.forceUpdate():this.node.addEventListener("load",this.handleLoad)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.node.removeEventListener("load",this.handleLoad)}},{key:"getDoc",value:function(){return this.node?this.node.contentDocument:null}},{key:"getMountTarget",value:function(){var e=this.getDoc();return this.props.mountTarget?e.querySelector(this.props.mountTarget):e.body.children[0]}},{key:"renderFrameContents",value:function(){if(!this._isMounted)return null;var e=this.getDoc();if(!e)return null;var t=this.props.contentDidMount,n=this.props.contentDidUpdate,r=e.defaultView||e.parentView,o=i.default.createElement(c.default,{contentDidMount:t,contentDidUpdate:n},i.default.createElement(l.FrameContextProvider,{value:{document:e,window:r}},i.default.createElement("div",{className:"frame-content"},this.props.children)));e.body.children.length<1&&(e.open("text/html","replace"),e.write(this.props.initialContent),e.close());var a=this.getMountTarget();return[s.default.createPortal(this.props.head,this.getDoc().head),s.default.createPortal(o,a)]}},{key:"render",value:function(){var e=this,t=r({},this.props,{children:void 0});return delete t.head,delete t.initialContent,delete t.mountTarget,delete t.contentDidMount,delete t.contentDidUpdate,i.default.createElement("iframe",r({},t,{ref:function(t){e.node=t}}),this.renderFrameContents())}}]),t}(a.Component);f.propTypes={style:u.default.object,head:u.default.node,initialContent:u.default.string,mountTarget:u.default.string,contentDidMount:u.default.func,contentDidUpdate:u.default.func,children:u.default.oneOfType([u.default.element,u.default.arrayOf(u.default.element)])},f.defaultProps={style:{},head:null,children:void 0,mountTarget:void 0,contentDidMount:function(){},contentDidUpdate:function(){},initialContent:'<!DOCTYPE html><html><head></head><body><div class="frame-root"></div></body></html>'},t.default=f},5766:function(e,t,n){"use strict";t.Kr=void 0;var r=n(71498);Object.defineProperty(t,"Kr",{enumerable:!0,get:function(){return r.FrameContextConsumer}});var o,a=n(96878),i=(o=a)&&o.__esModule?o:{default:o};t.ZP=i.default},58702:function(e,t){"use strict";var n=60103,r=60106,o=60107,a=60108,i=60114,s=60109,u=60110,l=60112,c=60113,d=60120,f=60115,p=60116,m=60121,h=60122,v=60117,y=60129,_=60131;if("function"==typeof Symbol&&Symbol.for){var g=Symbol.for;n=g("react.element"),r=g("react.portal"),o=g("react.fragment"),a=g("react.strict_mode"),i=g("react.profiler"),s=g("react.provider"),u=g("react.context"),l=g("react.forward_ref"),c=g("react.suspense"),d=g("react.suspense_list"),f=g("react.memo"),p=g("react.lazy"),m=g("react.block"),h=g("react.server.block"),v=g("react.fundamental"),y=g("react.debug_trace_mode"),_=g("react.legacy_hidden")}function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case i:case a:case c:case d:return e;default:switch(e=e&&e.$$typeof){case u:case l:case p:case f:case s:return e;default:return t}}case r:return t}}}var M=l,w=o,k=p,x=f,S=r,L=i,E=a,T=c;t.ForwardRef=M,t.Memo=x},19185:function(e,t,n){"use strict";e.exports=n(58702)},42802:function(e,t,n){"use strict";n.d(t,{ZP:function(){return v}});var r=n(30808),o=n(93219),a=(n(23615),n(27378)),i=n(31542),s=!1,u=n(16897),l="unmounted",c="exited",d="entering",f="entered",p="exiting",m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=c,r.appearStatus=d):o=f:o=t.unmountOnExit||t.mountOnEnter?l:c,r.state={status:o},r.nextCallback=null,r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==f&&(t=d):n!==d&&n!==f||(t=p)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===d?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[i.findDOMNode(this),r],a=o[0],u=o[1],l=this.getTimeouts(),c=r?l.appear:l.enter;!e&&!n||s?this.safeSetState({status:f},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,u),this.safeSetState({status:d},(function(){t.props.onEntering(a,u),t.onTransitionEnd(c,(function(){t.safeSetState({status:f},(function(){t.props.onEntered(a,u)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:i.findDOMNode(this);t&&!s?(this.props.onExit(r),this.safeSetState({status:p},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:c},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:c},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:i.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],s=o[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.createElement(u.Z.Provider,{value:null},"function"==typeof n?n(e,o):a.cloneElement(a.Children.only(n),o))},t}(a.Component);function h(){}m.contextType=u.Z,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},m.UNMOUNTED=l,m.EXITED=c,m.ENTERING=d,m.ENTERED=f,m.EXITING=p;var v=m},42344:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(30808),o=n(25773),a=n(47169),i=n(93219),s=(n(23615),n(27378)),u=n(16897);function l(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,s.isValidElement)(e)?t(e):e}(e)})),n}function c(e,t,n){return null!=n[t]?n[t]:e.props[t]}function d(e,t,n){var r=l(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var l=o[u][r];s[o[u][r]]=n(l)}s[u]=n(u)}for(r=0;r<a.length;r++)s[a[r]]=n(a[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var i=o[a];if((0,s.isValidElement)(i)){var u=a in t,l=a in r,d=t[a],f=(0,s.isValidElement)(d)&&!d.props.in;!l||u&&!f?l||!u||f?l&&u&&(0,s.isValidElement)(d)&&(o[a]=(0,s.cloneElement)(i,{onExited:n.bind(null,i),in:d.props.in,exit:c(i,"exit",e),enter:c(i,"enter",e)})):o[a]=(0,s.cloneElement)(i,{in:!1}):o[a]=(0,s.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:c(i,"exit",e),enter:c(i,"enter",e)})}})),o}var f=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},p=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,a.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,i.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,l(n.children,(function(e){return(0,s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:c(e,"appear",n),enter:c(e,"enter",n),exit:c(e,"exit",n)})}))):d(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=l(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,o.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,r.Z)(e,["component","childFactory"]),a=this.state.contextValue,i=f(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?s.createElement(u.Z.Provider,{value:a},i):s.createElement(u.Z.Provider,{value:a},s.createElement(t,o,i))},t}(s.Component);p.propTypes={},p.defaultProps={component:"div",childFactory:function(e){return e}};var m=p},16897:function(e,t,n){"use strict";var r=n(27378);t.Z=r.createContext(null)},71426:function(e,t,n){"use strict";n(62525);var r=n(27378),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),a("react.fragment")}var i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,a={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:l,ref:c,props:a,_owner:i.current}}t.jsx=l,t.jsxs=l},24246:function(e,t,n){"use strict";e.exports=n(71426)},97329:function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,a=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var s=["top","right","bottom","left","width","height","size","weight"],u="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&u()}function s(){i(a)}function u(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||a},f=_(0,0,0,0);function p(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}function h(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=d(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],a=e["padding-"+o];t[o]=p(a)}return t}(r),a=o.left+o.right,i=o.top+o.bottom,s=p(r.width),u=p(r.height);if("border-box"===r.boxSizing&&(Math.round(s+a)!==t&&(s-=m(r,"left","right")+a),Math.round(u+i)!==n&&(u-=m(r,"top","bottom")+i)),!function(e){return e===d(e).document.documentElement}(e)){var l=Math.round(s+a)-t,c=Math.round(u+i)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(c)&&(u-=c)}return _(o.left,o.top,s,u)}var v="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return o?v(e)?function(e){var t=e.getBBox();return _(0,0,t.width,t.height)}(e):h(e):f}function _(e,t,n,r){return{x:e,y:t,width:n,height:r}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var n,r,o,a,i,s,u,l=(r=(n=t).x,o=n.y,a=n.width,i=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(s.prototype),c(u,{x:r,y:o,width:a,height:i,top:o,right:r+a,bottom:i+o,left:r}),u);c(this,{target:e,contentRect:l})},M=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new b(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!=typeof WeakMap?new WeakMap:new r,k=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new M(t,n,this);w.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){k.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}}));var x=void 0!==a.ResizeObserver?a.ResizeObserver:k;t.Z=x},90664:function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function o(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function a(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return o(n.overflowY,t)||o(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function i(e,t,n,r,o,a,i,s){return a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0}function s(e,t){var n=window,o=t.scrollMode,s=t.block,u=t.inline,l=t.boundary,c=t.skipOverflowHiddenElements,d="function"==typeof l?l:function(e){return e!==l};if(!r(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,p=[],m=e;r(m)&&d(m);){if((m=m.parentElement)===f){p.push(m);break}null!=m&&m===document.body&&a(m)&&!a(document.documentElement)||null!=m&&a(m,c)&&p.push(m)}for(var h=n.visualViewport?n.visualViewport.width:innerWidth,v=n.visualViewport?n.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,_=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),b=g.height,M=g.width,w=g.top,k=g.right,x=g.bottom,S=g.left,L="start"===s||"nearest"===s?w:"end"===s?x:w+b/2,E="center"===u?S+M/2:"end"===u?k:S,T=[],C=0;C<p.length;C++){var O=p[C],P=O.getBoundingClientRect(),D=P.height,Y=P.width,j=P.top,Z=P.right,N=P.bottom,R=P.left;if("if-needed"===o&&w>=0&&S>=0&&x<=v&&k<=h&&w>=j&&x<=N&&S>=R&&k<=Z)return T;var A=getComputedStyle(O),I=parseInt(A.borderLeftWidth,10),F=parseInt(A.borderTopWidth,10),H=parseInt(A.borderRightWidth,10),$=parseInt(A.borderBottomWidth,10),z=0,V=0,W="offsetWidth"in O?O.offsetWidth-O.clientWidth-I-H:0,B="offsetHeight"in O?O.offsetHeight-O.clientHeight-F-$:0;if(f===O)z="start"===s?L:"end"===s?L-v:"nearest"===s?i(_,_+v,v,F,$,_+L,_+L+b,b):L-v/2,V="start"===u?E:"center"===u?E-h/2:"end"===u?E-h:i(y,y+h,h,I,H,y+E,y+E+M,M),z=Math.max(0,z+_),V=Math.max(0,V+y);else{z="start"===s?L-j-F:"end"===s?L-N+$+B:"nearest"===s?i(j,N,D,F,$+B,L,L+b,b):L-(j+D/2)+B/2,V="start"===u?E-R-I:"center"===u?E-(R+Y/2)+W/2:"end"===u?E-Z+H+W:i(R,Z,Y,I,H+W,E,E+M,M);var U=O.scrollLeft,K=O.scrollTop;L+=K-(z=Math.max(0,Math.min(K+z,O.scrollHeight-D+B))),E+=U-(V=Math.max(0,Math.min(U+V,O.scrollWidth-Y+W)))}T.push({el:O,top:z,left:V})}return T}function u(e){return e===Object(e)&&0!==Object.keys(e).length}n.r(t),n.d(t,{default:function(){return l}});var l=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(u(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:s(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:u(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,a=e.left;r.scroll&&n?r.scroll({top:o,left:a,behavior:t}):(r.scrollTop=o,r.scrollLeft=a)}))}(s(e,r),r.behavior)}}},11409:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return s.default}}),t.SimpleSchema=t.schemaDefinitionOptions=void 0;var r=m(n(43023)),o=m(n(28622)),a=m(n(12020)),i=m(n(69291)),s=m(n(98347)),u=m(n(72956)),l=m(n(94829)),c=m(n(35409)),d=m(n(79411)),f=n(48843),p=m(n(81670));function m(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return h=v()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&y(o,n.prototype),o},h.apply(null,arguments)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(u){o=!0,a=u}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(e,t)||w(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=w(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function M(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=["autoValue","defaultValue","label","optional","required","type"];t.schemaDefinitionOptions=C;var O=["allowedValues","blackbox","custom","exclusiveMax","exclusiveMin","max","maxCount","min","minCount","regEx","skipRegExCheckForEmptyStrings","trim","type"],P=["allowedValues","exclusiveMax","exclusiveMin","label","max","maxCount","min","minCount","optional","regEx","skipRegExCheckForEmptyStrings"],D=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L(this,e),T(this,"pick",R("pick")),T(this,"omit",R("omit")),this._constructorOptions=S(S({},e._constructorOptionDefaults),n),delete this._constructorOptions.clean,this._cleanOptions=S(S({},e._constructorOptionDefaults.clean),n.clean||{}),this._validators=[],this._docValidators=[],this._validationContexts={},this._schema={},this._depsLabels={},this.extend(t),this._rawDefinition=this._constructorOptions.keepRawDefinition?t:null,this.messageBox=new o.default((0,r.default)(p.default)),this.version=e.version}var t,n,i;return t=e,n=[{key:"rawDefinition",get:function(){return this._rawDefinition}},{key:"forEachAncestorSimpleSchema",value:function(t,n){var r=this,o=a.default.makeKeyGeneric(t);(0,f.forEachKeyAncestor)(o,(function(t){var a=r._schema[t];a&&a.type.definitions.forEach((function(r){e.isSimpleSchema(r.type)&&n(r.type,t,o.slice(t.length+1))}))}))}},{key:"reactiveLabelDependency",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._constructorOptions.tracker;if(e&&t){var n=a.default.makeKeyGeneric(e);if(this._schema[n])return this._depsLabels[n]||(this._depsLabels[n]=new t.Dependency),void this._depsLabels[n].depend();this.forEachAncestorSimpleSchema(e,(function(e,n,r){e.reactiveLabelDependency(r,t)}))}}},{key:"nearestSimpleSchemaInstance",value:function(e){if(!e)return[null,null];var t,n,r=a.default.makeKeyGeneric(e);return this._schema[r]?[this,r]:(this.forEachAncestorSimpleSchema(e,(function(e,r,o){!n&&e._schema[o]&&(n=e,t=o)})),t?[n,t]:[null,null])}},{key:"schema",value:function(e){if(!e)return this._schema;var t=a.default.makeKeyGeneric(e),n=this._schema[t];if(!n){var r=!1;this.forEachAncestorSimpleSchema(e,(function(e,t,o){r||(n=e.schema(o)),n&&(r=!0)}))}return n}},{key:"mergedSchema",value:function(){var t=this,n={};return this._schemaKeys.forEach((function(r){var o=t._schema[r];n[r]=o,o.type.definitions.forEach((function(t){if(e.isSimpleSchema(t.type)){var o=t.type.mergedSchema();Object.keys(o).forEach((function(e){n["".concat(r,".").concat(e)]=o[e]}))}}))})),n}},{key:"getDefinition",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.schema(e);if(o){var a=function(o,a){return function(i){if(!Array.isArray(t)||t.includes(i)){var s=o[i];P.indexOf(i)>-1&&"function"==typeof s?(a[i]=s.call(S({key:e},r)),"label"===i&&"string"!=typeof a[i]&&(a[i]=j(e,n._constructorOptions.humanizeAutoLabels))):a[i]=s}}},i={};return Object.keys(o).forEach(a(o,i)),o.type&&(i.type=o.type.definitions.map((function(e){var t={};return Object.keys(e).forEach(a(e,t)),t}))),i}}},{key:"getQuickTypeForKey",value:function(t){var n,r=this.schema(t);if(r){var o=r.type.singleType;if(o===String)n="string";else if(o===Number||o===e.Integer)n="number";else if(o===Boolean)n="boolean";else if(o===Date)n="date";else if(o===Array){var a=this.schema("".concat(t,".$"));if(!a)return;var i=a.type.singleType;i===String?n="stringArray":i===Number||i===e.Integer?n="numberArray":i===Boolean?n="booleanArray":i===Date?n="dateArray":(i===Object||e.isSimpleSchema(i))&&(n="objectArray")}else o===Object&&(n="object");return n}}},{key:"getObjectSchema",value:function(e){var t={},n=a.default.makeKeyGeneric(e),r="".concat(n,"."),o=this.mergedSchema();return Object.keys(o).forEach((function(e){0===e.indexOf(r)&&(t[e.slice(r.length)]=o[e])})),this._copyWithSchema(t)}},{key:"autoValueFunctions",value:function(){var t=this,n=[].concat(this._autoValues);return this._schemaKeys.forEach((function(r){t._schema[r].type.definitions.forEach((function(t){e.isSimpleSchema(t.type)&&(n=n.concat(t.type.autoValueFunctions().map((function(e){var t=e.func,n=e.fieldName,o=e.closestSubschemaFieldName;return{func:t,fieldName:"".concat(r,".").concat(n),closestSubschemaFieldName:o.length?"".concat(r,".").concat(o):r}}))))}))})),n}},{key:"blackboxKeys",value:function(){var t=this,n=new Set(this._blackboxKeys);return this._schemaKeys.forEach((function(r){t._schema[r].type.definitions.forEach((function(t){e.isSimpleSchema(t.type)&&t.type.blackboxKeys().forEach((function(e){n.add("".concat(r,".").concat(e))}))}))})),Array.from(n)}},{key:"keyIsInBlackBox",value:function(t){var n=this,r=!1;return(0,f.forEachKeyAncestor)(a.default.makeKeyGeneric(t),(function(t,o){if(n._blackboxKeys.has(t))r=!0;else{var a=n.schema(t);a&&a.type.definitions.forEach((function(t){e.isSimpleSchema(t.type)&&t.type.keyIsInBlackBox(o)&&(r=!0)}))}})),r}},{key:"allowsKey",value:function(t){var n=this;return this._schemaKeys.some((function(r){if(r===t)return!0;var o=n.schema(r),a=t.slice(0,r.length+2);if(a.slice(0,-1)!=="".concat(r,"."))return!1;if(n._blackboxKeys.has(r))return a!=="".concat(r,".$");var i=!1,s=t.slice(r.length+1);return o.type.definitions.forEach((function(t){e.isSimpleSchema(t.type)&&t.type.allowsKey(s)&&(i=!0)})),i}))}},{key:"objectKeys",value:function(e){return e?this._objectKeys["".concat(e,".")]||[]:this._firstLevelSchemaKeys}},{key:"_copyWithSchema",value:function(t){var n=new e(t,S({},this._constructorOptions));return n._cleanOptions=this._cleanOptions,n.messageBox=this.messageBox.clone(),n}},{key:"clone",value:function(){return this._copyWithSchema(this._schema)}},{key:"extend",value:function(){var t,n=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Array.isArray(r))throw new Error("You may not pass an array of schemas to the SimpleSchema constructor or to extend()");e.isSimpleSchema(r)?(t=r._schema,this._validators=this._validators.concat(r._validators),this._docValidators=this._docValidators.concat(r._docValidators),Object.assign(this._cleanOptions,r._cleanOptions),Object.assign(this._constructorOptions,r._constructorOptions)):t=(0,d.default)(r);var o=Object.keys(t),a=new Set([].concat(M(Object.keys(this._schema)),M(o)));o.forEach((function(e){var r=Z(t[e]);if(n._schema[e]){if(!Object.prototype.hasOwnProperty.call(n._schema,e))throw new Error("".concat(e," key is actually the name of a method on Object, please rename it"));r.type;var o=b(r,["type"]);n._schema[e]=S(S({},n._schema[e]),o),r.type&&n._schema[e].type.extend(r.type)}else n._schema[e]=r;N(e,n._schema[e],n._constructorOptions,a)})),Y(this._schema),this._schemaKeys=Object.keys(this._schema),this._autoValues=[],this._blackboxKeys=new Set,this._firstLevelSchemaKeys=[],this._objectKeys={},this._schemaKeys.forEach((function(t){if(t.indexOf(".")>-1){var r=t.slice(0,t.lastIndexOf("."));if(!Object.prototype.hasOwnProperty.call(n._schema,r))throw new Error('"'.concat(t,'" is in the schema but "').concat(r,'" is not'))}var o=n._schema[t];-1===t.indexOf(".")&&n._firstLevelSchemaKeys.push(t);var a,i=g(o.type.definitions);try{for(i.s();!(a=i.n()).done;){var s=a.value;if(!0===s.blackbox||s.type===e.Any){n._blackboxKeys.add(t);break}}}catch(u){i.e(u)}finally{i.f()}"function"==typeof o.autoValue&&n._autoValues.push({closestSubschemaFieldName:"",fieldName:t,func:o.autoValue})}));var i=function t(r,o){Object.keys(r).forEach((function(a){var i=r[a];if((a=o?"".concat(o,".").concat(a):a).indexOf(".")>-1&&".$"!==a.slice(-2)){var s=a.slice(0,a.lastIndexOf(".")),u="".concat(s,".");n._objectKeys[u]=n._objectKeys[u]||[],n._objectKeys[u].push(a.slice(a.lastIndexOf(".")+1))}i.type.definitions.forEach((function(n){var r=n.type;e.isSimpleSchema(r)&&t(r._schema,a)}))}))};return i(this._schema),this}},{key:"getAllowedValuesForKey",value:function(e){this.allowsKey("".concat(e,".$"))&&(e="".concat(e,".$"));var t=this.get(e,"allowedValues");return Array.isArray(t)||t instanceof Set?M(t):null}},{key:"newContext",value:function(){return new s.default(this)}},{key:"namedContext",value:function(e){return"string"!=typeof e&&(e="default"),this._validationContexts[e]||(this._validationContexts[e]=new s.default(this,e)),this._validationContexts[e]}},{key:"addValidator",value:function(e){this._validators.push(e)}},{key:"addDocValidator",value:function(e){this._docValidators.push(e)}},{key:"validate",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.check||this._constructorOptions.check;if("function"==typeof o)try{o(t)}catch(i){}var a=Array.isArray(t)?t:[t];a.forEach((function(t){var o=n.newContext();if(!o.validate(t,r)){var a=o.validationErrors(),i=n.messageForError(a[0]),s=new Error(i);throw s.errorType="ClientError",s.name="ClientError",s.error="validation-error",s.details=a.map((function(e){return S(S({},e),{},{message:n.messageForError(e)})})),"function"==typeof e.validationErrorTransform?e.validationErrorTransform(s):s}}))}},{key:"validateAndReturnErrorsPromise",value:function(e,t){var n=this,r=this.newContext();if(r.validate(e,t))return Promise.resolve([]);var o=r.validationErrors().map((function(e){return S(S({},e),{},{message:n.messageForError(e)})}));return Promise.resolve(o)}},{key:"validator",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){var r=S({},t);return!0===t.clean&&(r.mongoObject=new a.default(n,e.blackboxKeys()),e.clean(n,r)),t.returnErrorsPromise?e.validateAndReturnErrorsPromise(n,r):e.validate(n,r)}}},{key:"getFormValidator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.validator(S(S({},e),{},{returnErrorsPromise:!0}))}},{key:"clean",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c.default.apply(void 0,[this].concat(t))}},{key:"labels",value:function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n];if("string"==typeof r||"function"==typeof r){var o=_(t.nearestSimpleSchemaInstance(n),2),a=o[0],i=o[1];a&&(a._schema[i].label=r,a._depsLabels[i]&&a._depsLabels[i].changed())}}))}},{key:"label",value:function(e){var t=this;if(null==e){var n={};return this._schemaKeys.forEach((function(e){n[e]=t.label(e)})),n}var r=this.get(e,"label");return r&&this.reactiveLabelDependency(e),r||null}},{key:"get",value:function(e,t,n){var r=this.getDefinition(e,["type",t],n);if(r)return C.includes(t)?r[t]:(r.type.find((function(e){return e[t]}))||{})[t]}},{key:"defaultValue",value:function(e){return this.get(e,"defaultValue")}},{key:"messageForError",value:function(e){var t=e.name;return this.messageBox.message(e,{context:{key:t,label:this.label(t)}})}}],i=[{key:"isSimpleSchema",value:function(t){return t&&(t instanceof e||t._schema)}},{key:"extendOptions",value:function(e){Array.isArray(e)||(e=Object.keys(e)),e.forEach((function(e){C.push(e)}))}},{key:"defineValidationErrorTransform",value:function(t){if("function"!=typeof t)throw new Error("SimpleSchema.defineValidationErrorTransform must be passed a function that accepts an Error and returns an Error");e.validationErrorTransform=t}},{key:"validate",value:function(t,n,r){return e.isSimpleSchema(n)||(n=new e(n)),n.validate(t,r)}},{key:"oneOf",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(u.default,t)}},{key:"addValidator",value:function(t){e._validators.push(t)}},{key:"addDocValidator",value:function(t){e._docValidators.push(t)}},{key:"constructorOptionDefaults",value:function(t){if(!t)return e._constructorOptionDefaults;e._constructorOptionDefaults=S(S(S({},e._constructorOptionDefaults),t),{},{clean:S(S({},e._constructorOptionDefaults.clean),t.clean||{})})}}],n&&E(t.prototype,n),i&&E(t,i),e}();function Y(e){Object.keys(e).forEach((function(t){var n=e[t];if(!n.type)throw new Error("".concat(t,' key is missing "type"'));n.type.definitions.forEach((function(n){D.isSimpleSchema(n.type)&&Object.keys(n.type._schema).forEach((function(n){var r="".concat(t,".").concat(n);if(Object.prototype.hasOwnProperty.call(e,r))throw new Error('The type for "'.concat(t,'" is set to a SimpleSchema instance that defines "').concat(t,".").concat(n,'", but the parent SimpleSchema instance also tries to define "').concat(t,".").concat(n,'"'))}))}))}))}function j(e,t){var n,r=e.split(".");do{n=r.pop()}while("$"===n&&r.length);return t?(0,i.default)(n):n}function Z(e){var t=Object.keys(e).reduce((function(t,n){return O.includes(n)||(t[n]=e[n]),t}),{});if(e.type&&e.type instanceof u.default)t.type=e.type.clone();else{var n=Object.keys(e).reduce((function(t,n){return O.includes(n)&&(t[n]=e[n]),t}),{});t.type=new u.default(n)}return t}function N(e,t,n,r){if(!t.type)throw new Error("".concat(e,' key is missing "type"'));Object.keys(t).forEach((function(t){if(-1===C.indexOf(t))throw new Error("Invalid definition for ".concat(e,' field: "').concat(t,'" is not a supported property'))}));var o,a=!1;if(t.type.definitions.forEach((function(t){var n=t.type;if(!n)throw new Error("Invalid definition for ".concat(e,' field: "type" option is required'));if(Array.isArray(n))throw new Error("Invalid definition for ".concat(e,' field: "type" may not be an array. Change it to Array.'));if(n.constructor===Object&&(0,f.isEmptyObject)(n))throw new Error("Invalid definition for ".concat(e,' field: "type" may not be an object. Change it to Object'));n===Array&&(a=!0),D.isSimpleSchema(n)&&Object.keys(n._schema).forEach((function(t){var n="".concat(e,".").concat(t);if(r.has(n))throw new Error('The type for "'.concat(e,'" is set to a SimpleSchema instance that defines "').concat(n,'", but the parent SimpleSchema instance also tries to define "').concat(n,'"'))}))})),a&&!r.has("".concat(e,".$")))throw new Error('"'.concat(e,'" is Array type but the schema does not include a "').concat(e,'.$" definition for the array items"'));if("defaultValue"in t)if("autoValue"in t&&!t.autoValue.isDefault)console.warn('SimpleSchema: Found both autoValue and defaultValue options for "'.concat(e,'". Ignoring defaultValue.'));else{if(e.endsWith(".$"))throw new Error('An array item field (one that ends with ".$") cannot have defaultValue.');t.autoValue=(o=t.defaultValue,function(){if(!this.isSet){if(null===this.operator)return o;if("$pull"!==this.operator)return"$push"===this.operator||this.parentField().isSet?o:this.isUpsert?{$setOnInsert:o}:void 0}}),t.autoValue.isDefault=!0}e.endsWith(".$")?t.optional=!0:Object.prototype.hasOwnProperty.call(t,"optional")||(Object.prototype.hasOwnProperty.call(t,"required")?"function"==typeof t.required?t.optional=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return!t.required.apply(this,n)}:t.optional=!t.required:t.optional=!1===n.requiredByDefault),delete t.required,Object.prototype.hasOwnProperty.call(t,"label")||(n.defaultLabel?t.label=n.defaultLabel:D.defaultLabel?t.label=D.defaultLabel:t.label=j(e,n.humanizeAutoLabels))}function R(e){return function(){for(var t=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a={};return this._schemaKeys.forEach((function(n){var o=r.some((function(e){return n===e||0===n.indexOf("".concat(e,"."))}));(o&&"pick"===e||!o&&"omit"===e)&&(a[n]=t._schema[n])})),this._copyWithSchema(a)}}t.SimpleSchema=D,T(D,"version",2),T(D,"Any","___Any___"),T(D,"RegEx",l.default),T(D,"_validators",[]),T(D,"_docValidators",[]),T(D,"_constructorOptionDefaults",{clean:{autoConvert:!0,extendAutoValueContext:{},filter:!0,getAutoValues:!0,removeEmptyStrings:!0,removeNullsFromArrays:!1,trimStrings:!0},humanizeAutoLabels:!0,requiredByDefault:!0}),T(D,"ErrorTypes",{REQUIRED:"required",MIN_STRING:"minString",MAX_STRING:"maxString",MIN_NUMBER:"minNumber",MAX_NUMBER:"maxNumber",MIN_NUMBER_EXCLUSIVE:"minNumberExclusive",MAX_NUMBER_EXCLUSIVE:"maxNumberExclusive",MIN_DATE:"minDate",MAX_DATE:"maxDate",BAD_DATE:"badDate",MIN_COUNT:"minCount",MAX_COUNT:"maxCount",MUST_BE_INTEGER:"noDecimal",VALUE_NOT_ALLOWED:"notAllowed",EXPECTED_TYPE:"expectedType",FAILED_REGULAR_EXPRESSION:"regEx",KEY_NOT_IN_SCHEMA:"keyNotInSchema"}),T(D,"Integer","SimpleSchema.Integer"),T(D,"_makeGeneric",a.default.makeKeyGeneric),T(D,"ValidationContext",s.default),T(D,"setDefaultMessages",(function(e){(0,f.merge)(p.default,e)}))},72956:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(12020))&&r.__esModule?r:{default:r};function a(e,t,n){return a=i()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o},a.apply(null,arguments)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h=function(){function e(){p(this,e);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.definitions=n.map((function(e){return o.default.isBasicObject(e)?d({},e):e instanceof RegExp?{type:String,regEx:e}:{type:e}}))}var t,n,r;return t=e,(n=[{key:"singleType",get:function(){return this.definitions[0].type}},{key:"clone",value:function(){return a(e,u(this.definitions))}},{key:"extend",value:function(e){this.definitions=this.definitions.map((function(t,n){var r=e.definitions[n];return r?d(d({},t),r):t}))}}])&&m(t.prototype,n),r&&m(t,r),e}(),v=h;t.default=v,e.exports=t.default,e.exports.default=t.default},98347:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(12020)),o=a(n(15063));function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=n,this._simpleSchema=t,this._schema=t.schema(),this._schemaKeys=Object.keys(this._schema),this._validationErrors=[],this._deps={};var o=t._constructorOptions.tracker;o&&(this._depsAny=new o.Dependency,this._schemaKeys.forEach((function(e){r._deps[e]=new o.Dependency})))}var t,n,a;return t=e,n=[{key:"_markKeyChanged",value:function(e){var t=r.default.makeKeyGeneric(e);Object.prototype.hasOwnProperty.call(this._deps,t)&&this._deps[t].changed()}},{key:"_markKeysChanged",value:function(e){var t=this;e&&Array.isArray(e)&&e.length&&(e.forEach((function(e){return t._markKeyChanged(e)})),this._depsAny&&this._depsAny.changed())}},{key:"setValidationErrors",value:function(e){var t=this._validationErrors.map((function(e){return e.name})),n=e.map((function(e){return e.name}));this._validationErrors=e;var r=t.concat(n);this._markKeysChanged(r)}},{key:"addValidationErrors",value:function(e){var t=this,n=e.map((function(e){return e.name}));e.forEach((function(e){return t._validationErrors.push(e)})),this._markKeysChanged(n)}},{key:"reset",value:function(){this.setValidationErrors([])}},{key:"getErrorForKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.default.makeKeyGeneric(e),n=this._validationErrors,o=n.find((function(t){return t.name===e}));return o||n.find((function(e){return e.name===t}))}},{key:"_keyIsInvalid",value:function(e,t){return!!this.getErrorForKey(e,t)}},{key:"keyIsInvalid",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.default.makeKeyGeneric(e);return Object.prototype.hasOwnProperty.call(this._deps,t)&&this._deps[t].depend(),this._keyIsInvalid(e,t)}},{key:"keyErrorMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.default.makeKeyGeneric(e);Object.prototype.hasOwnProperty.call(this._deps,t)&&this._deps[t].depend();var n=this.getErrorForKey(e,t);return n?this._simpleSchema.messageForError(n):""}},{key:"validate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.extendedCustomContext,r=void 0===n?{}:n,a=t.ignore,s=void 0===a?[]:a,u=t.keys,l=t.modifier,c=void 0!==l&&l,d=t.mongoObject,f=t.upsert,p=void 0!==f&&f,m=(0,o.default)({extendedCustomContext:r,ignoreTypes:s,isModifier:c,isUpsert:p,keysToValidate:u,mongoObject:d,obj:e,schema:this._simpleSchema,validationContext:this});if(u){var h,v=i(this._validationErrors);try{var y=function(){var e=h.value;u.some((function(t){return t===e.name||e.name.startsWith("".concat(t,"."))}))||m.push(e)};for(v.s();!(h=v.n()).done;)y()}catch(_){v.e(_)}finally{v.f()}}return this.setValidationErrors(m),!m.length}},{key:"isValid",value:function(){return this._depsAny&&this._depsAny.depend(),0===this._validationErrors.length}},{key:"validationErrors",value:function(){return this._depsAny&&this._depsAny.depend(),this._validationErrors}},{key:"clean",value:function(){var e;return(e=this._simpleSchema).clean.apply(e,arguments)}}],n&&u(t.prototype,n),a&&u(t,a),e}();t.default=l,e.exports=t.default,e.exports.default=t.default},35409:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(43023)),o=c(n(12020)),a=n(48843),i=n(11409),s=c(n(99925)),u=c(n(50923)),l=c(n(29826));function c(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=["$unset","$currentDate"];var v=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=(n=p(p({isModifier:(0,a.looksLikeModifier)(t),isUpsert:!1},e._cleanOptions),n)).mutate?t:(0,r.default)(t),f=n.mongoObject||new o.default(c,e.blackboxKeys());if(n.filter||n.autoConvert||n.removeEmptyStrings||n.trimStrings){var m=[];f.forEachNode((function(){if(!h.includes(this.operator)){var t=this.genericKey;if(t){var r=this.value;if(void 0!==r){var o;if(n.filter&&!e.allowsKey(t)||n.removeNullsFromArrays&&this.isArrayItem&&null===r)return"[$each]"===this.position.slice(-7)?(f.removeValueForPosition(this.position.slice(0,-7)),m.push(this.position.slice(0,-7))):(this.remove(),m.push(this.position)),void(i.SimpleSchema.debug&&console.info('SimpleSchema.clean: filtered out value that would have affected key "'.concat(t,'", which is not allowed by the schema')));var a=e.schema(t),u=a&&a.type.definitions,c=u&&u[0];if(n.autoConvert&&c)if(!u.some((function(e){return void 0===l.default.call({valueShouldBeChecked:!0,definition:e,value:r})}))){var p=(0,s.default)(r,c.type);void 0!==p&&p!==r&&(i.SimpleSchema.debug&&console.info("SimpleSchema.clean: autoconverted value ".concat(r," from ").concat(d(r)," to ").concat(d(p)," for ").concat(t)),r=p,this.updateValue(p))}!n.trimStrings||c&&!1===c.trim||"string"!=typeof r||(r=r.trim(),this.updateValue(r)),!n.removeEmptyStrings||this.operator&&"$set"!==this.operator||"string"!=typeof r||r.length||(this.remove(),"$set"===this.operator&&this.position.match(/\[.+?\]/g).length<2&&(o=this.position.replace("$set","$unset"),f.setValueForPosition(o,"")))}}}}),{endPointsOnly:!1}),m.forEach((function(e){var t=e.lastIndexOf("[");if(-1!==t){var n=e.slice(0,t),r=f.getValueForPosition(n);(0,a.isEmptyObject)(r)&&f.removeValueForPosition(n)}})),f.removeArrayItems()}return n.getAutoValues&&(0,u.default)(e.autoValueFunctions(),f,n.isModifier,n.isUpsert,n.extendAutoValueContext),n.isModifier&&Object.keys(c||{}).forEach((function(e){var t=c[e];"object"===d(t)&&null!==t&&(0,a.isEmptyObject)(t)&&delete c[e]})),c};t.default=v,e.exports=t.default,e.exports.default=t.default},41438:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(43023))&&r.__esModule?r:{default:r},a=n(48843);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){var n=e.getInfoForKey(t)||{};return{isSet:void 0!==n.value,value:n.value,operator:n.operator||null}}var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.doneKeys=[]}var t,n,r;return t=e,n=[{key:"runForPosition",value:function(e){var t=e.key,n=e.operator,r=e.position,l=e.value,d=this.options,f=d.closestSubschemaFieldName,p=d.extendedAutoValueContext,m=d.func,h=d.isModifier,v=d.isUpsert,y=d.mongoObject;if(!this.doneKeys.includes(t)){var _=(0,a.getParentOfKey)(t,!0),g=c(y,_.slice(0,-1)),b=!1;if(!Array.isArray(g.value)||!isNaN(t.split(".").slice(-1).pop())){var M=m.call(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({closestSubschemaFieldName:f.length?f:null,field:function(e){return c(y,f+e)},isModifier:h,isUpsert:v,isSet:void 0!==l,key:t,operator:n,parentField:function(){return g},siblingField:function(e){return c(y,_+e)},unset:function(){b=!0},value:l},p||{}),y.getObject());if(this.doneKeys.push(t),b&&r&&y.removeValueForPosition(r),void 0!==M){if(h){var w,k;if(M&&"object"===i(M)){var x=Object.keys(M).find((function(e){return"$"===e.substring(0,1)}));x&&(w=x,k=M[x])}if(w||"$"===r.slice(0,1)||(w="$set",k=M),w)return y.removeValueForPosition(r),void y.setValueForPosition("".concat(w,"[").concat(t,"]"),(0,o.default)(k))}y.setValueForPosition(r,(0,o.default)(M))}}}}}],n&&l(t.prototype,n),r&&l(t,r),e}();t.default=d,e.exports=t.default,e.exports.default=t.default},99925:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(11409);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=function(e,t){if(Array.isArray(e)||e&&("function"==typeof e||"object"===o(e))&&!(e instanceof Date)||null===e)return e;if(t===String)return null==e?e:e.toString();if(t===Number||t===r.SimpleSchema.Integer){if("string"==typeof e&&e.length>0){var n=Number(e);if(!isNaN(n))return n}return e}if(t===Date){if("string"==typeof e){var a=Date.parse(e);if(!1===isNaN(a))return new Date(a)}if("number"==typeof e)return new Date(e)}if(t===Boolean)if("string"==typeof e){if("true"===e.toLowerCase())return!0;if("false"===e.toLowerCase())return!1}else if("number"==typeof e&&!isNaN(e))return Boolean(e);return t===Array?[e]:e};t.default=a,e.exports=t.default,e.exports.default=t.default},91443:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.fieldName,n=e.isModifier,r=e.mongoObject,i=r.getPositionsInfoForGenericKey(t);if(n&&r.getPositionsThatCreateGenericKey(t).length>0)return i;if(-1===t.indexOf(".")&&0===i.length)return i.push({key:t,value:void 0,operator:n?"$set":null,position:n?"$set[".concat(t,"]"):t}),i;var s=(0,a.getParentOfKey)(t),u=(0,a.getLastPartOfKey)(t,s),l=u.replace(/\./g,"]["),c=r.getPositionsInfoForGenericKey(s);c.length?c.forEach((function(e){var t="".concat(e.position,"[").concat(l,"]");i.find((function(e){return e.position===t}))||i.push({key:"".concat(e.key,".").concat(u),value:void 0,operator:e.operator,position:t})})):".$"!==s.slice(-2)&&r.getPositionsThatCreateGenericKey(s).forEach((function(e){var n,r=e.operator,u=e.position;if(r){for(var l,c=u.slice(u.indexOf("[")+1,u.indexOf("]")).split("."),d=[];c.length&&l!==s;)d.push(c.shift()),l=d.join(".");l="".concat(l,".").concat(t.slice(l.length+1)),n="$set[".concat(l,"]")}else{var f=(0,a.getLastPartOfKey)(t,s).replace(/\./g,"][");n="".concat(u.slice(0,u.lastIndexOf("[")),"[").concat(f,"]")}i.find((function(e){return e.position===n}))||i.push({key:o.default._positionToKey(n),value:void 0,operator:r?"$set":null,position:n})}));return i};var r,o=(r=n(12020))&&r.__esModule?r:{default:r},a=n(48843);e.exports=t.default,e.exports.default=t.default},50923:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortAutoValueFunctions=i,t.default=void 0;var r=a(n(91443)),o=a(n(41438));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.reduce((function(e,t,n){return e[t.fieldName]=n,e}),{});return e.sort((function(e,n){var r=e.fieldName.split(".").length-n.fieldName.split(".").length;return 0===r?t[e.fieldName]-t[n.fieldName]:r}))}var s=function(e,t,n,a,s){i(e).forEach((function(e){var i=e.func,u=e.fieldName,l=e.closestSubschemaFieldName,c=new o.default({closestSubschemaFieldName:l,extendedAutoValueContext:s,func:i,isModifier:n,isUpsert:a,mongoObject:t});(0,r.default)({fieldName:u,isModifier:n,mongoObject:t}).forEach(c.runForPosition.bind(c))}))};t.default=s},81670:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(94829))&&r.__esModule?r:{default:r};var a=[{exp:o.default.Email,msg:"must be a valid email address"},{exp:o.default.EmailWithTLD,msg:"must be a valid email address"},{exp:o.default.Domain,msg:"must be a valid domain"},{exp:o.default.WeakDomain,msg:"must be a valid domain"},{exp:o.default.IP,msg:"must be a valid IPv4 or IPv6 address"},{exp:o.default.IPv4,msg:"must be a valid IPv4 address"},{exp:o.default.IPv6,msg:"must be a valid IPv6 address"},{exp:o.default.Url,msg:"must be a valid URL"},{exp:o.default.Id,msg:"must be a valid alphanumeric ID"},{exp:o.default.ZipCode,msg:"must be a valid ZIP code"},{exp:o.default.Phone,msg:"must be a valid phone number"}],i={initialLanguage:"en",messages:{en:{required:"{{{label}}} is required",minString:"{{{label}}} must be at least {{min}} characters",maxString:"{{{label}}} cannot exceed {{max}} characters",minNumber:"{{{label}}} must be at least {{min}}",maxNumber:"{{{label}}} cannot exceed {{max}}",minNumberExclusive:"{{{label}}} must be greater than {{min}}",maxNumberExclusive:"{{{label}}} must be less than {{max}}",minDate:"{{{label}}} must be on or after {{min}}",maxDate:"{{{label}}} cannot be after {{max}}",badDate:"{{{label}}} is not a valid date",minCount:"You must specify at least {{minCount}} values",maxCount:"You cannot specify more than {{maxCount}} values",noDecimal:"{{{label}}} must be an integer",notAllowed:"{{{value}}} is not an allowed value",expectedType:"{{{label}}} must be of type {{dataType}}",regEx:function(e){var t,n=e.label,r=e.regExp;r&&(t=a.find((function(e){return e.exp&&e.exp.toString()===r})));var o=t?t.msg:"failed regular expression validation";return"".concat(n," ").concat(o)},keyNotInSchema:"{{name}} is not allowed by the schema"}}};t.default=i,e.exports=t.default,e.exports.default=t.default},15063:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(12020)),o=n(11409),a=n(48843),i=l(n(29826)),s=l(n(17867)),u=l(n(29731));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}var y=function(e){var t=e.extendedCustomContext,n=e.ignoreTypes,l=e.isModifier,d=e.isUpsert,p=e.keysToValidate,h=e.mongoObject,y=e.obj,_=e.schema,g=e.validationContext;if(!y||"object"!==v(y)&&"function"!=typeof y)throw new Error("The first argument of validate() must be an object");if(!l&&(0,a.looksLikeModifier)(y))throw new Error("When the validation object contains mongo operators, you must set the modifier option to true");function b(e){h||(h=new r.default(y,_.blackboxKeys()));var t=h.getInfoForKey(e)||{};return{isSet:void 0!==t.value,value:t.value,operator:t.operator||null}}var M,w=[];function k(e){var n,d,h=e.val,M=e.affectedKey,x=e.operator,S=e.isInArrayItemObject,L=void 0!==S&&S,E=e.isInSubObject,T=void 0!==E&&E;if(M){if(_.keyIsInBlackBox(M))return;n=r.default.makeKeyGeneric(M);var C=!p||p.some((function(e){return e===M||e===n||M.startsWith("".concat(e,"."))||n.startsWith("".concat(e,"."))})),O=(0,a.getParentOfKey)(M,!0),P=O.slice(0,-1),D=m({field:function(e){return b(e)},genericKey:n,isInArrayItemObject:L,isInSubObject:T,isModifier:l,isSet:void 0!==h,key:M,obj:y,operator:x,parentField:function(){return b(P)},siblingField:function(e){return b(O+e)},validationContext:g,value:h},t||{});d=_.getDefinition(M,null,D),C&&function(e,n,r,c,d,p,h){if(c)if("$rename"!==d||_.allowsKey(e)){var M=(0,a.getParentOfKey)(n,!0),k=M.slice(0,-1),x=[],S=m({addValidationErrors:function(e){e.forEach((function(e){return x.push(e)}))},field:function(e){return b(e)},genericKey:r,isInArrayItemObject:p,isInSubObject:h,isModifier:l,isSet:void 0!==e,key:n,obj:y,operator:d,parentField:function(){return b(k)},siblingField:function(e){return b(M+e)},validationContext:g,value:e,valueShouldBeChecked:"$unset"!==d&&"$rename"!==d&&(null!=e||".$"===r.slice(-2)&&null===e&&!c.optional)},t||{}),L=[s.default,i.default,u.default],E=L.concat(_._validators).concat(o.SimpleSchema._validators);c.type.some((function(t){if(t===o.SimpleSchema.Any)return!0;c.type;var r=f(c,["type"]),a=m(m({},S),{},{definition:m(m({},r),t)}),i=E.slice(0);return"function"==typeof t.custom&&i.splice(L.length,0,t.custom),i.every((function(t){var r=t.call(a);return"string"==typeof r?(x.push({name:n,type:r,value:e}),!1):"object"===v(r)&&null!==r?(x.push(m({name:n,value:e},r)),!1):!1!==r}))}))||(w=w.concat(x))}else w.push({name:e,type:o.SimpleSchema.ErrorTypes.KEY_NOT_IN_SCHEMA,value:null});else{if("$unset"===d||"$currentDate"===d&&n.endsWith(".$type"))return;w.push({name:n,type:o.SimpleSchema.ErrorTypes.KEY_NOT_IN_SCHEMA,value:e})}}(h,M,n,d,x,L,T)}var Y=_.objectKeys(n);if(null==h&&(!d||!d.optional&&Y&&Y.length>0)&&(h={}),Array.isArray(h))h.forEach((function(e,t){k({val:e,affectedKey:"".concat(M,".").concat(t),operator:x})}));else if((0,a.isObjectWeShouldTraverse)(h)&&(!d||!_._blackboxKeys.has(M))){var j=Object.keys(h);L=n&&".$"===n.slice(-2);for(var Z=[],N=0,R=[].concat(c(j),c(Y));N<R.length;N++){var A=R[N];-1===Z.indexOf(A)&&(Z.push(A),k({val:h[A],affectedKey:(0,a.appendAffectedKey)(M,A),operator:x,isInArrayItemObject:L,isInSubObject:!0}))}}}l?(M=y,Object.keys(M).forEach((function(e){var t=M[e];if("$"!==e.slice(0,1))throw new Error("Expected '".concat(e,"' to be a modifier operator like '$set'"));if(function(e){if("$pushAll"===e)throw new Error("$pushAll is not supported; use $push + $each");return-1===["$pull","$pullAll","$pop","$slice"].indexOf(e)}(e)){if(d&&("$set"===e||"$setOnInsert"===e)){var n=Object.keys(t);_.objectKeys().forEach((function(t){n.includes(t)||k({val:void 0,affectedKey:t,operator:e})}))}Object.keys(t).forEach((function(n){var r=t[n];"$push"!==e&&"$addToSet"!==e||("object"===v(r)&&"$each"in r?r=r.$each:n="".concat(n,".0")),k({val:r,affectedKey:n,operator:e})}))}}))):k({val:y});var x=_._docValidators.concat(o.SimpleSchema._docValidators),S=m({ignoreTypes:n,isModifier:l,isUpsert:d,keysToValidate:p,mongoObject:h,obj:y,schema:_,validationContext:g},t||{});x.forEach((function(e){var t=e.call(S,y);if(!Array.isArray(t))throw new Error("Custom doc validator must return an array of error objects");t.length&&(w=w.concat(t))}));var L=[];return w=w.filter((function(e){return!n.includes(e.type)&&(!L.includes(e.name)&&(L.push(e.name),!0))}))};t.default=y,e.exports=t.default,e.exports.default=t.default},79411:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(12020))&&r.__esModule?r:{default:r};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];if(o.default.isBasicObject(r))t[n]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r);else if(Array.isArray(r)){if(Array.isArray(r[0]))throw new Error("Array shorthand may only be used to one level of depth (".concat(n,")"));var s=r[0];t[n]={type:Array};var u="".concat(n,".$");if(e[u])throw new Error("Array shorthand used for ".concat(n," field but ").concat(n,".$ key is already in the schema"));s instanceof RegExp?t[u]={type:String,regEx:s}:t[u]={type:s}}else r instanceof RegExp?t[n]={type:String,regEx:r}:t[n]={type:r}})),t};t.default=s,e.exports=t.default,e.exports.default=t.default},69291:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){return function(e){return(e=(e=e||"").trim())[0]&&(e=e[0].toUpperCase()+e.substr(1).toLowerCase()),(e=e.replace(/\bid\b/g,"ID")).replace(/\bId\b/g,"ID")}(e=(e=function(e){return(e=(e=(e=(e=e||"").toString()).trim()).replace(/([a-z\d])([A-Z]+)/g,"$1_$2")).replace(/[-\s]+/g,"_").toLowerCase()}(e=(e=(e=(e=e||"").toString()).trim()).replace(function(e){var t=e.lastIndexOf("."),n=e.substring(t,e.length);return-1===t?"":n}(e),""))).replace(/[\W_]+/g," "))};t.default=n,e.exports=t.default,e.exports.default=t.default},13762:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(11409);n(35409),r.SimpleSchema.ValidationContext=r.ValidationContext;var o=r.SimpleSchema;t.default=o,e.exports=t.default,e.exports.default=t.default},94829:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="(?:(?:[0-1]?\\d{1,2}|2[0-4]\\d|25[0-5])(?:\\.|$)){4}",r="(?:(?:[\\dA-Fa-f]{1,4}(?::|$)){8}|(?=(?:[^:\\s]|:[^:\\s])*::(?:[^:\\s]|:[^:\\s])*$)[\\dA-Fa-f]{0,4}(?:::?(?:[\\dA-Fa-f]{1,4}|$)){1,6})",o="(?:".concat(["(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\\.|$))+",n,r].join("|"),")"),a=function(e,t){return!e||Number.isSafeInteger(e)&&e>t},i=function(e,t){if(!a(e,0))throw new Error("Expected a non-negative safe integer, got ".concat(e));if(!a(t,e))throw new Error("Expected a non-negative safe integer greater than 1 and greater than min, got ".concat(t));var n;if(e&&t)n="".concat(e,",").concat(t);else if(e&&null===t)n="".concat(e,",");else if(e&&!t)n="".concat(e);else{if(e||t)throw new Error("Unexpected state for min (".concat(e,") and max (").concat(t,")"));n="0,"}return new RegExp("^[23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz]{".concat(n,"}$"))},s={Email:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,EmailWithTLD:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Domain:new RegExp("^".concat("(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z](?:[a-z-]*[a-z])?","$")),WeakDomain:new RegExp("^".concat(o,"$")),IP:new RegExp("^(?:".concat(n,"|").concat(r,")$")),IPv4:new RegExp("^".concat(n,"$")),IPv6:new RegExp("^".concat(r,"$")),Url:/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]+-?)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]+-?)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/i,Id:i(17),idOfLength:i,ZipCode:/^\d{5}(?:[-\s]\d{4})?$/,Phone:/^[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{2}$|^[+\uff0b]*(?:[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \xa0\xad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\[\]/~\u2053\u223c\uff5e*]*[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]){3,}[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \xa0\xad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\[\]/~\u2053\u223c\uff5e0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]*(?:;ext=([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})|[ \xa0\t,]*(?:e?xt(?:ensi(?:o\u0301?|\xf3))?n?|\uff45?\uff58\uff54\uff4e?|[,x\uff58#\uff03~\uff5e]|int|anexo|\uff49\uff4e\uff54)[:\.\uff0e]?[ \xa0\t,-]*([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,7})#?|[- ]+([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,5})#)?$/i};t.default=s,e.exports=t.default,e.exports.default=t.default},10862:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return"$each"===t?e:e?"".concat(e,".").concat(t):t},e.exports=t.default,e.exports.default=t.default},32941:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.getUTCMonth()+1;t<10&&(t="0".concat(t));var n=e.getUTCDate();n<10&&(n="0".concat(n));return"".concat(e.getUTCFullYear(),"-").concat(t,"-").concat(n)},e.exports=t.default,e.exports.default=t.default},41877:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r=e;do{if(-1!==(n=r.lastIndexOf("."))){r=r.slice(0,n);var o=e.slice(r.length+1);t(r,o)}}while(-1!==n)},e.exports=t.default,e.exports.default=t.default},78404:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=[],r="".concat(t,".");return Object.keys(e||{}).forEach((function(o){var a=e[o];null!=a&&(o.slice(0,t.length+1)===r&&n.push(o))})),n},e.exports=t.default,e.exports.default=t.default},45485:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n="",r="".concat(t,".");0===e.indexOf(r)&&(n=e.replace(r,"")).startsWith("$.")&&(n=n.slice(2));return n},e.exports=t.default,e.exports.default=t.default},77028:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.lastIndexOf(".");return-1===n?"":e.slice(0,n+Number(!!t))},e.exports=t.default,e.exports.default=t.default},48843:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appendAffectedKey",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"dateToDateString",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"forEachKeyAncestor",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"getKeysWithValueInObj",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"getLastPartOfKey",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"getParentOfKey",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"isEmptyObject",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"isObjectWeShouldTraverse",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"looksLikeModifier",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return f.default}});var r=p(n(10862)),o=p(n(32941)),a=p(n(41877)),i=p(n(78404)),s=p(n(45485)),u=p(n(77028)),l=p(n(21624)),c=p(n(56674)),d=p(n(38493)),f=p(n(8730));function p(e){return e&&e.__esModule?e:{default:e}}},21624:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},e.exports=t.default,e.exports.default=t.default},56674:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){try{if(e!==Object(e))return!1;if(e instanceof Date)return!1;if(e instanceof Int8Array)return!1;if(e instanceof Uint8Array)return!1;if(e instanceof Uint8ClampedArray)return!1;if(e instanceof Int16Array)return!1;if(e instanceof Uint16Array)return!1;if(e instanceof Int32Array)return!1;if(e instanceof Uint32Array)return!1;if(e instanceof Float32Array)return!1;if(e instanceof Float64Array)return!1}catch(t){return!1}return!0},e.exports=t.default,e.exports.default=t.default},38493:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!Object.keys(e||{}).find((function(e){return"$"===e.substring(0,1)}))},e.exports=t.default,e.exports.default=t.default},8730:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((function(n){Object.keys(n).forEach((function(r){"__proto__"!==r&&(n[r]&&n[r].constructor&&n[r].constructor===Object?(t[r]&&t[r].constructor&&t[r].constructor===Object||(t[r]={}),e(t[r],n[r])):t[r]=n[r])}))})),t},e.exports=t.default,e.exports.default=t.default},29731:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!this.valueShouldBeChecked)return;var e,t=this.definition.allowedValues;if(!t)return;e="function"==typeof Set&&t instanceof Set?t.has(this.value):t.includes(this.value);return!!e||r.SimpleSchema.ErrorTypes.VALUE_NOT_ALLOWED};var r=n(11409);e.exports=t.default,e.exports.default=t.default},17867:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=this.definition,t=this.isInArrayItemObject,n=this.isInSubObject,a=this.key,i=this.obj,s=this.operator,u=this.value;if(e.optional)return;if(null===u)return r.SimpleSchema.ErrorTypes.REQUIRED;if("$unset"===s||"$rename"===s)return r.SimpleSchema.ErrorTypes.REQUIRED;if(void 0!==u)return;if(!s)return r.SimpleSchema.ErrorTypes.REQUIRED;if((0,o.getKeysWithValueInObj)(i.$set,a).length)return;if((0,o.getKeysWithValueInObj)(i.$setOnInsert,a).length)return;var l=this.field(a);if(l.isSet&&null!==l.value)return;if(t||n)return r.SimpleSchema.ErrorTypes.REQUIRED;if("$set"===s||"$setOnInsert"===s)return r.SimpleSchema.ErrorTypes.REQUIRED};var r=n(11409),o=n(48843);e.exports=t.default,e.exports.default=t.default},37336:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!Array.isArray(t))return{type:r.SimpleSchema.ErrorTypes.EXPECTED_TYPE,dataType:"Array"};if(null!==e.minCount&&t.length<e.minCount)return{type:r.SimpleSchema.ErrorTypes.MIN_COUNT,minCount:e.minCount};if(null!==e.maxCount&&t.length>e.maxCount)return{type:r.SimpleSchema.ErrorTypes.MAX_COUNT,maxCount:e.maxCount}};var r=n(11409);e.exports=t.default,e.exports.default=t.default},64445:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(isNaN(t.getTime()))return{type:r.SimpleSchema.ErrorTypes.BAD_DATE};if(e.min&&"function"==typeof e.min.getTime&&e.min.getTime()>t.getTime())return{type:r.SimpleSchema.ErrorTypes.MIN_DATE,min:(0,o.dateToDateString)(e.min)};if(e.max&&"function"==typeof e.max.getTime&&e.max.getTime()<t.getTime())return{type:r.SimpleSchema.ErrorTypes.MAX_DATE,max:(0,o.dateToDateString)(e.max)}};var r=n(11409),o=n(48843);e.exports=t.default,e.exports.default=t.default},94207:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o){if("number"!=typeof t||isNaN(t))return{type:r.SimpleSchema.ErrorTypes.EXPECTED_TYPE,dataType:o?"Integer":"Number"};if("$inc"!==n&&null!==e.max&&(e.exclusiveMax?e.max<=t:e.max<t))return{type:e.exclusiveMax?r.SimpleSchema.ErrorTypes.MAX_NUMBER_EXCLUSIVE:r.SimpleSchema.ErrorTypes.MAX_NUMBER,max:e.max};if("$inc"!==n&&null!==e.min&&(e.exclusiveMin?e.min>=t:e.min>t))return{type:e.exclusiveMin?r.SimpleSchema.ErrorTypes.MIN_NUMBER_EXCLUSIVE:r.SimpleSchema.ErrorTypes.MIN_NUMBER,min:e.min};if(o&&!Number.isInteger(t))return{type:r.SimpleSchema.ErrorTypes.MUST_BE_INTEGER}};var r=n(11409);Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},e.exports=t.default,e.exports.default=t.default},14100:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"!=typeof t)return{type:r.SimpleSchema.ErrorTypes.EXPECTED_TYPE,dataType:"String"};if(null!==e.max&&e.max<t.length)return{type:r.SimpleSchema.ErrorTypes.MAX_STRING,max:e.max};if(null!==e.min&&e.min>t.length)return{type:r.SimpleSchema.ErrorTypes.MIN_STRING,min:e.min};if((!0!==e.skipRegExCheckForEmptyStrings||""!==t)&&e.regEx instanceof RegExp&&!e.regEx.test(t))return{type:r.SimpleSchema.ErrorTypes.FAILED_REGULAR_EXPRESSION,regExp:e.regEx.toString()};if(Array.isArray(e.regEx)){var n;if(e.regEx.every((function(e){return!!e.test(t)||(n={type:r.SimpleSchema.ErrorTypes.FAILED_REGULAR_EXPRESSION,regExp:e.toString()},!1)})),n)return n}};var r=n(11409);e.exports=t.default,e.exports.default=t.default},29826:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!this.valueShouldBeChecked)return;var e=this.definition,t=e.type,n=this.value,u=this.operator;if(t===String)return(0,i.default)(e,n);if(t===Number)return(0,a.default)(e,n,u,!1);if(t===r.SimpleSchema.Integer)return(0,a.default)(e,n,u,!0);if(t===Boolean){if("boolean"==typeof n)return;return{type:r.SimpleSchema.ErrorTypes.EXPECTED_TYPE,dataType:"Boolean"}}if(t===Object||r.SimpleSchema.isSimpleSchema(t)){if(n===Object(n)&&"function"!=typeof n[Symbol.iterator]&&!(n instanceof Date))return;return{type:r.SimpleSchema.ErrorTypes.EXPECTED_TYPE,dataType:"Object"}}if(t===Array)return(0,s.default)(e,n);if(t instanceof Function){if(!(n instanceof t)){var l=t===Date&&"$currentDate"===u&&(!0===n||'{"$type":"date"}'===JSON.stringify(n));if(t!==Date||!l)return{type:r.SimpleSchema.ErrorTypes.EXPECTED_TYPE,dataType:t.name}}if(t===Date)return"$currentDate"===u?(0,o.default)(e,new Date):(0,o.default)(e,n)}};var r=n(11409),o=u(n(64445)),a=u(n(94207)),i=u(n(14100)),s=u(n(37336));function u(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},59312:function(e,t,n){"use strict";n.d(t,{_T:function(){return r}});function r(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;Object.create},22371:function(e,t){!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length>1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,o=1;o<r;++o)t[o]=t[o].slice(1,-1);return t[r]=t[r].slice(1),t.join("")}return t[0]}function n(e){return"(?:"+e+")"}function r(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function a(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function i(e,t){var n=e;if(t)for(var r in t)n[r]=t[r];return n}function s(e){var r="[A-Za-z]",o="[0-9]",a=t(o,"[A-Fa-f]"),i=n(n("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+n("%[89A-Fa-f]"+a+"%"+a+a)+"|"+n("%"+a+a)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",u=t("[\\:\\/\\?\\#\\[\\]\\@]",s),l=e?"[\\uE000-\\uF8FF]":"[]",c=t(r,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]"),d=n(r+t(r,o,"[\\+\\-\\.]")+"*"),f=n(n(i+"|"+t(c,s,"[\\:]"))+"*"),p=(n(n("25[0-5]")+"|"+n("2[0-4]"+o)+"|"+n("1"+o+o)+"|"+n("[1-9]"+o)+"|"+o),n(n("25[0-5]")+"|"+n("2[0-4]"+o)+"|"+n("1"+o+o)+"|"+n("0?[1-9]"+o)+"|0?0?"+o)),m=n(p+"\\."+p+"\\."+p+"\\."+p),h=n(a+"{1,4}"),v=n(n(h+"\\:"+h)+"|"+m),y=n(n(h+"\\:")+"{6}"+v),_=n("\\:\\:"+n(h+"\\:")+"{5}"+v),g=n(n(h)+"?\\:\\:"+n(h+"\\:")+"{4}"+v),b=n(n(n(h+"\\:")+"{0,1}"+h)+"?\\:\\:"+n(h+"\\:")+"{3}"+v),M=n(n(n(h+"\\:")+"{0,2}"+h)+"?\\:\\:"+n(h+"\\:")+"{2}"+v),w=n(n(n(h+"\\:")+"{0,3}"+h)+"?\\:\\:"+h+"\\:"+v),k=n(n(n(h+"\\:")+"{0,4}"+h)+"?\\:\\:"+v),x=n(n(n(h+"\\:")+"{0,5}"+h)+"?\\:\\:"+h),S=n(n(n(h+"\\:")+"{0,6}"+h)+"?\\:\\:"),L=n([y,_,g,b,M,w,k,x,S].join("|")),E=n(n(c+"|"+i)+"+"),T=(n(L+"\\%25"+E),n(L+n("\\%25|\\%(?!"+a+"{2})")+E)),C=n("[vV]"+a+"+\\."+t(c,s,"[\\:]")+"+"),O=n("\\["+n(T+"|"+L+"|"+C)+"\\]"),P=n(n(i+"|"+t(c,s))+"*"),D=n(O+"|"+m+"(?!"+P+")|"+P),Y=n(o+"*"),j=n(n(f+"@")+"?"+D+n("\\:"+Y)+"?"),Z=n(i+"|"+t(c,s,"[\\:\\@]")),N=n(Z+"*"),R=n(Z+"+"),A=n(n(i+"|"+t(c,s,"[\\@]"))+"+"),I=n(n("\\/"+N)+"*"),F=n("\\/"+n(R+I)+"?"),H=n(A+I),$=n(R+I),z="(?!"+Z+")",V=(n(I+"|"+F+"|"+H+"|"+$+"|"+z),n(n(Z+"|"+t("[\\/\\?]",l))+"*")),W=n(n(Z+"|[\\/\\?]")+"*"),B=n(n("\\/\\/"+j+I)+"|"+F+"|"+$+"|"+z),U=n(d+"\\:"+B+n("\\?"+V)+"?"+n("\\#"+W)+"?"),K=n(n("\\/\\/"+j+I)+"|"+F+"|"+H+"|"+z),q=n(K+n("\\?"+V)+"?"+n("\\#"+W)+"?");return n(U+"|"+q),n(d+"\\:"+B+n("\\?"+V)+"?"),n(n("\\/\\/("+n("("+f+")@")+"?("+D+")"+n("\\:("+Y+")")+"?)")+"?("+I+"|"+F+"|"+$+"|"+z+")"),n("\\?("+V+")"),n("\\#("+W+")"),n(n("\\/\\/("+n("("+f+")@")+"?("+D+")"+n("\\:("+Y+")")+"?)")+"?("+I+"|"+F+"|"+H+"|"+z+")"),n("\\?("+V+")"),n("\\#("+W+")"),n(n("\\/\\/("+n("("+f+")@")+"?("+D+")"+n("\\:("+Y+")")+"?)")+"?("+I+"|"+F+"|"+$+"|"+z+")"),n("\\?("+V+")"),n("\\#("+W+")"),n("("+f+")@"),n("\\:("+Y+")"),{NOT_SCHEME:new RegExp(t("[^]",r,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",c,s),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",c,s),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",c,s),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",c,s),"g"),NOT_QUERY:new RegExp(t("[^\\%]",c,s,"[\\:\\@\\/\\?]",l),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",c,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",c,s),"g"),UNRESERVED:new RegExp(c,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",c,u),"g"),PCT_ENCODED:new RegExp(i,"g"),IPV4ADDRESS:new RegExp("^("+m+")$"),IPV6ADDRESS:new RegExp("^\\[?("+L+")"+n(n("\\%25|\\%(?!"+a+"{2})")+"("+E+")")+"?\\]?$")}}var u=s(!1),l=s(!0),c=function(){function e(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(u){o=!0,a=u}finally{try{!r&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},f=2147483647,p=36,m=1,h=26,v=38,y=700,_=72,g=128,b="-",M=/^xn--/,w=/[^\0-\x7E]/,k=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=p-m,L=Math.floor,E=String.fromCharCode;function T(e){throw new RangeError(x[e])}function C(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}function O(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+C((e=e.replace(k,".")).split("."),t).join(".")}function P(e){for(var t=[],n=0,r=e.length;n<r;){var o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),n--)}else t.push(o)}return t}var D=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p},Y=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},j=function(e,t,n){var r=0;for(e=n?L(e/y):e>>1,e+=L(e/t);e>S*h>>1;r+=p)e=L(e/S);return L(r+(S+1)*e/(e+v))},Z=function(e){var t=[],n=e.length,r=0,o=g,a=_,i=e.lastIndexOf(b);i<0&&(i=0);for(var s=0;s<i;++s)e.charCodeAt(s)>=128&&T("not-basic"),t.push(e.charCodeAt(s));for(var u=i>0?i+1:0;u<n;){for(var l=r,c=1,d=p;;d+=p){u>=n&&T("invalid-input");var v=D(e.charCodeAt(u++));(v>=p||v>L((f-r)/c))&&T("overflow"),r+=v*c;var y=d<=a?m:d>=a+h?h:d-a;if(v<y)break;var M=p-y;c>L(f/M)&&T("overflow"),c*=M}var w=t.length+1;a=j(r-l,w,0==l),L(r/w)>f-o&&T("overflow"),o+=L(r/w),r%=w,t.splice(r++,0,o)}return String.fromCodePoint.apply(String,t)},N=function(e){var t=[],n=(e=P(e)).length,r=g,o=0,a=_,i=!0,s=!1,u=void 0;try{for(var l,c=e[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var d=l.value;d<128&&t.push(E(d))}}catch(B){s=!0,u=B}finally{try{!i&&c.return&&c.return()}finally{if(s)throw u}}var v=t.length,y=v;for(v&&t.push(b);y<n;){var M=f,w=!0,k=!1,x=void 0;try{for(var S,C=e[Symbol.iterator]();!(w=(S=C.next()).done);w=!0){var O=S.value;O>=r&&O<M&&(M=O)}}catch(B){k=!0,x=B}finally{try{!w&&C.return&&C.return()}finally{if(k)throw x}}var D=y+1;M-r>L((f-o)/D)&&T("overflow"),o+=(M-r)*D,r=M;var Z=!0,N=!1,R=void 0;try{for(var A,I=e[Symbol.iterator]();!(Z=(A=I.next()).done);Z=!0){var F=A.value;if(F<r&&++o>f&&T("overflow"),F==r){for(var H=o,$=p;;$+=p){var z=$<=a?m:$>=a+h?h:$-a;if(H<z)break;var V=H-z,W=p-z;t.push(E(Y(z+V%W,0))),H=L(V/W)}t.push(E(Y(H,0))),a=j(o,D,y==v),o=0,++y}}}catch(B){N=!0,R=B}finally{try{!Z&&I.return&&I.return()}finally{if(N)throw R}}++o,++r}return t.join("")},R=function(e){return O(e,(function(e){return M.test(e)?Z(e.slice(4).toLowerCase()):e}))},A=function(e){return O(e,(function(e){return w.test(e)?"xn--"+N(e):e}))},I={version:"2.1.0",ucs2:{decode:P,encode:function(e){return String.fromCodePoint.apply(String,d(e))}},decode:Z,encode:N,toASCII:A,toUnicode:R},F={};function H(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function $(e){for(var t="",n=0,r=e.length;n<r;){var o=parseInt(e.substr(n+1,2),16);if(o<128)t+=String.fromCharCode(o),n+=3;else if(o>=194&&o<224){if(r-n>=6){var a=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&o)<<6|63&a)}else t+=e.substr(n,6);n+=6}else if(o>=224){if(r-n>=9){var i=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&i)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function z(e,t){function n(e){var n=$(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,H).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,H).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,H).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,H).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,H).replace(t.PCT_ENCODED,o)),e}function V(e){return e.replace(/^0*(.*)/,"$1")||"0"}function W(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=c(n,2)[1];return r?r.split(".").map(V).join("."):e}function B(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=c(n,3),o=r[1],a=r[2];if(o){for(var i=o.toLowerCase().split("::").reverse(),s=c(i,2),u=s[0],l=s[1],d=l?l.split(":").map(V):[],f=u.split(":").map(V),p=t.IPV4ADDRESS.test(f[f.length-1]),m=p?7:8,h=f.length-m,v=Array(m),y=0;y<m;++y)v[y]=d[y]||f[h+y]||"";p&&(v[m-1]=W(v[m-1],t));var _=v.reduce((function(e,t,n){if(!t||"0"===t){var r=e[e.length-1];r&&r.index+r.length===n?r.length++:e.push({index:n,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],g=void 0;if(_&&_.length>1){var b=v.slice(0,_.index),M=v.slice(_.index+_.length);g=b.join(":")+"::"+M.join(":")}else g=v.join(":");return a&&(g+="%"+a),g}return e}var U=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,K=void 0==="".match(/(){0}/)[1];function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?l:u;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(U);if(o){K?(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5])):(n.scheme=o[1]||void 0,n.userinfo=-1!==e.indexOf("@")?o[3]:void 0,n.host=-1!==e.indexOf("//")?o[4]:void 0,n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=-1!==e.indexOf("?")?o[7]:void 0,n.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),n.host&&(n.host=B(W(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var a=F[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)z(n,r);else{if(n.host&&(t.domainHost||a&&a.domainHost))try{n.host=I.toASCII(n.host.replace(r.PCT_ENCODED,$).toLowerCase())}catch(i){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+i}z(n,u)}a&&a.parse&&a.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}function G(e,t){var n=!1!==t.iri?l:u,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(B(W(String(e.host),n),n).replace(n.IPV6ADDRESS,(function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(r.push(":"),r.push(String(e.port))),r.length?r.join(""):void 0}var J=/^\.\.?\//,X=/^\/\.(\/|$)/,Q=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(J))e=e.replace(J,"");else if(e.match(X))e=e.replace(X,"/");else if(e.match(Q))e=e.replace(Q,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(ee);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?l:u,r=[],o=F[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?I.toUnicode(e.host):I.toASCII(e.host.replace(n.PCT_ENCODED,$).toLowerCase())}catch(s){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+s}z(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var a=G(e,t);if(void 0!==a&&("suffix"!==t.reference&&r.push("//"),r.push(a),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var i=e.path;t.absolutePath||o&&o.absolutePath||(i=te(i)),void 0===a&&(i=i.replace(/^\/\//,"/%2F")),r.push(i)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=q(ne(e,n),n),t=q(ne(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=te(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=te(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function oe(e,t,n){var r=i({scheme:"null"},n);return ne(re(q(e,r),q(t,r),r,!0),r)}function ae(e,t){return"string"==typeof e?e=ne(q(e,t),t):"object"===r(e)&&(e=q(ne(e,t),t)),e}function ie(e,t,n){return"string"==typeof e?e=ne(q(e,n),n):"object"===r(e)&&(e=ne(e,n)),"string"==typeof t?t=ne(q(t,n),n):"object"===r(t)&&(t=ne(t,n)),e===t}function se(e,t){return e&&e.toString().replace(t&&t.iri?l.ESCAPE:u.ESCAPE,H)}function ue(e,t){return e&&e.toString().replace(t&&t.iri?l.PCT_ENCODED:u.PCT_ENCODED,$)}var le={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var n="https"===String(e.scheme).toLowerCase();return e.port!==(n?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},ce={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize};function de(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var fe={scheme:"ws",domainHost:!0,parse:function(e,t){var n=e;return n.secure=de(n),n.resourceName=(n.path||"/")+(n.query?"?"+n.query:""),n.path=void 0,n.query=void 0,n},serialize:function(e,t){if(e.port!==(de(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var n=e.resourceName.split("?"),r=c(n,2),o=r[0],a=r[1];e.path=o&&"/"!==o?o:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},pe={scheme:"wss",domainHost:fe.domainHost,parse:fe.parse,serialize:fe.serialize},me={},he="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ve="[0-9A-Fa-f]",ye=n(n("%[EFef]"+ve+"%"+ve+ve+"%"+ve+ve)+"|"+n("%[89A-Fa-f]"+ve+"%"+ve+ve)+"|"+n("%"+ve+ve)),_e="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ge=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),be="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Me=new RegExp(he,"g"),we=new RegExp(ye,"g"),ke=new RegExp(t("[^]",_e,"[\\.]",'[\\"]',ge),"g"),xe=new RegExp(t("[^]",he,be),"g"),Se=xe;function Le(e){var t=$(e);return t.match(Me)?t:e}var Ee={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var o=!1,a={},i=n.query.split("&"),s=0,u=i.length;s<u;++s){var l=i[s].split("=");switch(l[0]){case"to":for(var c=l[1].split(","),d=0,f=c.length;d<f;++d)r.push(c[d]);break;case"subject":n.subject=ue(l[1],t);break;case"body":n.body=ue(l[1],t);break;default:o=!0,a[ue(l[0],t)]=ue(l[1],t)}}o&&(n.headers=a)}n.query=void 0;for(var p=0,m=r.length;p<m;++p){var h=r[p].split("@");if(h[0]=ue(h[0]),t.unicodeSupport)h[1]=ue(h[1],t).toLowerCase();else try{h[1]=I.toASCII(ue(h[1],t).toLowerCase())}catch(v){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+v}r[p]=h.join("@")}return n},serialize:function(e,t){var n=e,r=a(e.to);if(r){for(var i=0,s=r.length;i<s;++i){var u=String(r[i]),l=u.lastIndexOf("@"),c=u.slice(0,l).replace(we,Le).replace(we,o).replace(ke,H),d=u.slice(l+1);try{d=t.iri?I.toUnicode(d):I.toASCII(ue(d,t).toLowerCase())}catch(h){n.error=n.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+h}r[i]=c+"@"+d}n.path=r.join(",")}var f=e.headers=e.headers||{};e.subject&&(f.subject=e.subject),e.body&&(f.body=e.body);var p=[];for(var m in f)f[m]!==me[m]&&p.push(m.replace(we,Le).replace(we,o).replace(xe,H)+"="+f[m].replace(we,Le).replace(we,o).replace(Se,H));return p.length&&(n.query=p.join("&")),n}},Te=/^([^\:]+)\:(.*)/,Ce={scheme:"urn",parse:function(e,t){var n=e.path&&e.path.match(Te),r=e;if(n){var o=t.scheme||r.scheme||"urn",a=n[1].toLowerCase(),i=n[2],s=o+":"+(t.nid||a),u=F[s];r.nid=a,r.nss=i,r.path=void 0,u&&(r=u.parse(r,t))}else r.error=r.error||"URN can not be parsed.";return r},serialize:function(e,t){var n=t.scheme||e.scheme||"urn",r=e.nid,o=n+":"+(t.nid||r),a=F[o];a&&(e=a.serialize(e,t));var i=e,s=e.nss;return i.path=(r||t.nid)+":"+s,i}},Oe=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Pe={scheme:"urn:uuid",parse:function(e,t){var n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&n.uuid.match(Oe)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e,t){var n=e;return n.nss=(e.uuid||"").toLowerCase(),n}};F[le.scheme]=le,F[ce.scheme]=ce,F[fe.scheme]=fe,F[pe.scheme]=pe,F[Ee.scheme]=Ee,F[Ce.scheme]=Ce,F[Pe.scheme]=Pe,e.SCHEMES=F,e.pctEncChar=H,e.pctDecChars=$,e.parse=q,e.removeDotSegments=te,e.serialize=ne,e.resolveComponents=re,e.resolve=oe,e.normalize=ae,e.equal=ie,e.escapeComponent=se,e.unescapeComponent=ue,Object.defineProperty(e,"__esModule",{value:!0})}(t)},98106:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},17358:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},34102:function(e,t,n){var r=n(98106);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},77266:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},78983:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},42081:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},40670:function(e,t,n){var r=n(74910),o=n(14161),a=n(71173);e.exports=function(e){var t=o();return function(){var n,o=r(e);if(t){var i=r(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return a(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},93231:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},73119:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},74910:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},58724:function(e,t,n){var r=n(96196);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},73203:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},36178:function(e,t,n){var r=n(7501).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=i?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(a,s,u):a[s]=e[s]}return a.default=e,n&&n.set(e,a),a},e.exports.__esModule=!0,e.exports.default=e.exports},14161:function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},68:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},40608:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},56894:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},91282:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},80624:function(e,t,n){var r=n(93231);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},70966:function(e,t,n){var r=n(22412);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},e.exports.__esModule=!0,e.exports.default=e.exports},22412:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},71173:function(e,t,n){var r=n(7501).default,o=n(77266);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},21337:function(e,t,n){var r=n(7501).default;function o(){"use strict";e.exports=o=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),i=new L(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return T()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=k(i,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,i),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}t.wrap=d;var p={};function m(){}function h(){}function v(){}var y={};c(y,s,(function(){return this}));var _=Object.getPrototypeOf,g=_&&_(_(E([])));g&&g!==n&&a.call(g,s)&&(y=g);var b=v.prototype=m.prototype=Object.create(y);function M(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,s,u){var l=f(e[o],e,i);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==r(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,u)}))}u(l.arg)}var o;this._invoke=function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=v,c(b,"constructor",v),c(v,"constructor",h),h.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},M(w.prototype),c(w.prototype,u,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,a){void 0===a&&(a=Promise);var i=new w(d(e,n,r,o),a);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},M(b),c(b,l,"Generator"),c(b,s,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=E,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},96196:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},40131:function(e,t,n){var r=n(17358),o=n(40608),a=n(35068),i=n(56894);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},9833:function(e,t,n){var r=n(34102),o=n(68),a=n(35068),i=n(91282);e.exports=function(e){return r(e)||o(e)||a(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports},7501:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},35068:function(e,t,n){var r=n(98106);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},50824:function(e,t,n){var r=n(21337)();e.exports=r;try{regeneratorRuntime=r}catch(o){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},1793:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},66470:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},47169:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},27791:function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){try{var s=e[a](i),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function s(e){r(i,o,a,s,u,"next",e)}function u(e){r(i,o,a,s,u,"throw",e)}s(void 0)}))}}n.d(t,{Z:function(){return o}})},22951:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},91976:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return o}})},59180:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return s}});var o=n(33940),a=n(47169);function i(e,t){if(t&&("object"===(0,o.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return i(this,n)}}},64649:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},67591:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(6983);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},55181:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},53764:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},50189:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(64649);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},53782:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(30808);function o(e,t){if(null==e)return{};var n,o,a=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},8136:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(66470);var o=n(64013),a=n(53764);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(u){s=!0,o=u}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},62173:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(66470),o=n(55181),a=n(64013),i=n(53764);function s(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,a.Z)(e)||(0,i.Z)()}},13285:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1793);var o=n(55181),a=n(64013);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,a.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},33940:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},64013:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1793);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},84200:function(e,t,n){"use strict";var r;n.d(t,{$T:function(){return T},$s:function(){return Y},CQ:function(){return V},IV:function(){return O},K7:function(){return re},Xc:function(){return ie},Zl:function(){return oe},ak:function(){return se},jm:function(){return s},p5:function(){return F},pZ:function(){return D},uE:function(){return le},z:function(){return qe}}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(r||(r={}));const o=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return o.undefined;case"string":return o.string;case"number":return isNaN(e)?o.nan:o.number;case"boolean":return o.boolean;case"function":return o.function;case"bigint":return o.bigint;case"object":return Array.isArray(e)?o.array:null===e?o.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?o.promise:"undefined"!=typeof Map&&e instanceof Map?o.map:"undefined"!=typeof Set&&e instanceof Set?o.set:"undefined"!=typeof Date&&e instanceof Date?o.date:o.object;default:return o.unknown}},i=r.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of"]);class s extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(r);else if("invalid_return_type"===o.code)r(o.returnTypeError);else if("invalid_arguments"===o.code)r(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else{let e=n,r=0;for(;r<o.path.length;){const n=o.path[r];r===o.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(o))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=(e=>e.message)){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}s.create=e=>new s(e);const u=(e,t)=>{let n;switch(e.code){case i.invalid_type:n=e.received===o.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case i.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,r.jsonStringifyReplacer)}`;break;case i.unrecognized_keys:n=`Unrecognized key(s) in object: ${r.joinValues(e.keys,", ")}`;break;case i.invalid_union:n="Invalid input";break;case i.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${r.joinValues(e.options)}`;break;case i.invalid_enum_value:n=`Invalid enum value. Expected ${r.joinValues(e.options)}, received '${e.received}'`;break;case i.invalid_arguments:n="Invalid function arguments";break;case i.invalid_return_type:n="Invalid function return type";break;case i.invalid_date:n="Invalid date";break;case i.invalid_string:"object"==typeof e.validation?"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:r.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case i.too_small:n="array"===e.type?`Array must contain ${e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be greater than ${e.inclusive?"or equal to ":""}${e.minimum}`:"date"===e.type?`Date must be greater than ${e.inclusive?"or equal to ":""}${new Date(e.minimum)}`:"Invalid input";break;case i.too_big:n="array"===e.type?`Array must contain ${e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be less than ${e.inclusive?"or equal to ":""}${e.maximum}`:"date"===e.type?`Date must be smaller than ${e.inclusive?"or equal to ":""}${new Date(e.maximum)}`:"Invalid input";break;case i.custom:n="Invalid input";break;case i.invalid_intersection_types:n="Intersection results could not be merged";break;case i.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;default:n=t.defaultError,r.assertNever(e)}return{message:n}};let l=u;function c(){return l}const d=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,a=[...n,...o.path||[]],i={...o,path:a};let s="";const u=r.filter((e=>!!e)).slice().reverse();for(const l of u)s=l(i,{data:t,defaultError:s}).message;return{...o,path:a,message:o.message||s}};function f(e,t){const n=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,c(),u].filter((e=>!!e))});e.common.issues.push(n)}class p{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return m;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t)n.push({key:await r.key,value:await r.value});return p.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:o}=r;if("aborted"===t.status)return m;if("aborted"===o.status)return m;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),(void 0!==o.value||r.alwaysSet)&&(n[t.value]=o.value)}return{status:e.value,value:n}}}const m=Object.freeze({status:"aborted"}),h=e=>({status:"valid",value:e}),v=e=>"aborted"===e.status,y=e=>"dirty"===e.status,_=e=>"valid"===e.status,g=e=>void 0!==typeof Promise&&e instanceof Promise;var b;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(b||(b={}));class M{constructor(e,t,n,r){this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._path.concat(this._key)}}const w=(e,t)=>{if(_(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,error:new s(e.common.issues)}};function k(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:o};return{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=n?n:t.defaultError},description:o}}class x{constructor(e){this.spa=this.safeParseAsync,this.superRefine=this._refinement,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.default=this.default.bind(this),this.describe=this.describe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new p,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(g(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},o=this._parseSync({data:e,path:r.path,parent:r});return w(r,o)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},r=this._parse({data:e,path:[],parent:n}),o=await(g(r)?r:Promise.resolve(r));return w(n,o)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,r)=>{const o=e(t),a=()=>r.addIssue({code:i.custom,...n(t)});return"undefined"!=typeof Promise&&o instanceof Promise?o.then((e=>!!e||(a(),!1))):!!o||(a(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1)))}_refinement(e){return new ie({schema:this,typeName:he.ZodEffects,effect:{type:"refinement",refinement:e}})}optional(){return se.create(this)}nullable(){return ue.create(this)}nullish(){return this.optional().nullable()}array(){return F.create(this)}promise(){return ae.create(this)}or(e){return W.create([this,e])}and(e){return K.create(this,e)}transform(e){return new ie({schema:this,typeName:he.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new le({innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:he.ZodDefault})}brand(){return new fe({typeName:he.ZodBranded,type:this,...k(void 0)})}describe(e){return new(0,this.constructor)({...this._def,description:e})}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const S=/^c[^\s-]{8,}$/i,L=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,E=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;class T extends x{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement((t=>e.test(t)),{validation:t,code:i.invalid_string,...b.errToObj(n)}),this.nonempty=e=>this.min(1,b.errToObj(e)),this.trim=()=>new T({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}_parse(e){if(this._getType(e)!==o.string){const t=this._getOrReturnCtx(e);return f(t,{code:i.invalid_type,expected:o.string,received:t.parsedType}),m}const t=new p;let n;for(const o of this._def.checks)if("min"===o.kind)e.data.length<o.value&&(n=this._getOrReturnCtx(e,n),f(n,{code:i.too_small,minimum:o.value,type:"string",inclusive:!0,message:o.message}),t.dirty());else if("max"===o.kind)e.data.length>o.value&&(n=this._getOrReturnCtx(e,n),f(n,{code:i.too_big,maximum:o.value,type:"string",inclusive:!0,message:o.message}),t.dirty());else if("email"===o.kind)E.test(e.data)||(n=this._getOrReturnCtx(e,n),f(n,{validation:"email",code:i.invalid_string,message:o.message}),t.dirty());else if("uuid"===o.kind)L.test(e.data)||(n=this._getOrReturnCtx(e,n),f(n,{validation:"uuid",code:i.invalid_string,message:o.message}),t.dirty());else if("cuid"===o.kind)S.test(e.data)||(n=this._getOrReturnCtx(e,n),f(n,{validation:"cuid",code:i.invalid_string,message:o.message}),t.dirty());else if("url"===o.kind)try{new URL(e.data)}catch(a){n=this._getOrReturnCtx(e,n),f(n,{validation:"url",code:i.invalid_string,message:o.message}),t.dirty()}else if("regex"===o.kind){o.regex.lastIndex=0;o.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),f(n,{validation:"regex",code:i.invalid_string,message:o.message}),t.dirty())}else"trim"===o.kind?e.data=e.data.trim():"startsWith"===o.kind?e.data.startsWith(o.value)||(n=this._getOrReturnCtx(e,n),f(n,{code:i.invalid_string,validation:{startsWith:o.value},message:o.message}),t.dirty()):"endsWith"===o.kind?e.data.endsWith(o.value)||(n=this._getOrReturnCtx(e,n),f(n,{code:i.invalid_string,validation:{endsWith:o.value},message:o.message}),t.dirty()):r.assertNever(o);return{status:t.value,value:e.data}}_addCheck(e){return new T({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...b.errToObj(e)})}url(e){return this._addCheck({kind:"url",...b.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...b.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...b.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...b.errToObj(t)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...b.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...b.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...b.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...b.errToObj(t)})}length(e,t){return this.min(e,t).max(e,t)}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function C(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r;return parseInt(e.toFixed(o).replace(".",""))%parseInt(t.toFixed(o).replace(".",""))/Math.pow(10,o)}T.create=e=>new T({checks:[],typeName:he.ZodString,...k(e)});class O extends x{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._getType(e)!==o.number){const t=this._getOrReturnCtx(e);return f(t,{code:i.invalid_type,expected:o.number,received:t.parsedType}),m}let t;const n=new p;for(const o of this._def.checks)if("int"===o.kind)r.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),f(t,{code:i.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty());else if("min"===o.kind){(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),f(t,{code:i.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,message:o.message}),n.dirty())}else if("max"===o.kind){(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),f(t,{code:i.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,message:o.message}),n.dirty())}else"multipleOf"===o.kind?0!==C(e.data,o.value)&&(t=this._getOrReturnCtx(e,t),f(t,{code:i.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):r.assertNever(o);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,b.toString(t))}gt(e,t){return this.setLimit("min",e,!1,b.toString(t))}lte(e,t){return this.setLimit("max",e,!0,b.toString(t))}lt(e,t){return this.setLimit("max",e,!1,b.toString(t))}setLimit(e,t,n,r){return new O({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:b.toString(r)}]})}_addCheck(e){return new O({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:b.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:b.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:b.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:b.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:b.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:b.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind))}}O.create=e=>new O({checks:[],typeName:he.ZodNumber,...k(e)});class P extends x{_parse(e){if(this._getType(e)!==o.bigint){const t=this._getOrReturnCtx(e);return f(t,{code:i.invalid_type,expected:o.bigint,received:t.parsedType}),m}return h(e.data)}}P.create=e=>new P({typeName:he.ZodBigInt,...k(e)});class D extends x{_parse(e){if(this._getType(e)!==o.boolean){const t=this._getOrReturnCtx(e);return f(t,{code:i.invalid_type,expected:o.boolean,received:t.parsedType}),m}return h(e.data)}}D.create=e=>new D({typeName:he.ZodBoolean,...k(e)});class Y extends x{_parse(e){if(this._getType(e)!==o.date){const t=this._getOrReturnCtx(e);return f(t,{code:i.invalid_type,expected:o.date,received:t.parsedType}),m}if(isNaN(e.data.getTime())){return f(this._getOrReturnCtx(e),{code:i.invalid_date}),m}const t=new p;let n;for(const o of this._def.checks)"min"===o.kind?e.data.getTime()<o.value&&(n=this._getOrReturnCtx(e,n),f(n,{code:i.too_small,message:o.message,inclusive:!0,minimum:o.value,type:"date"}),t.dirty()):"max"===o.kind?e.data.getTime()>o.value&&(n=this._getOrReturnCtx(e,n),f(n,{code:i.too_big,message:o.message,inclusive:!0,maximum:o.value,type:"date"}),t.dirty()):r.assertNever(o);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Y({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:b.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:b.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Y.create=e=>new Y({checks:[],typeName:he.ZodDate,...k(e)});class j extends x{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return f(t,{code:i.invalid_type,expected:o.undefined,received:t.parsedType}),m}return h(e.data)}}j.create=e=>new j({typeName:he.ZodUndefined,...k(e)});class Z extends x{_parse(e){if(this._getType(e)!==o.null){const t=this._getOrReturnCtx(e);return f(t,{code:i.invalid_type,expected:o.null,received:t.parsedType}),m}return h(e.data)}}Z.create=e=>new Z({typeName:he.ZodNull,...k(e)});class N extends x{constructor(){super(...arguments),this._any=!0}_parse(e){return h(e.data)}}N.create=e=>new N({typeName:he.ZodAny,...k(e)});class R extends x{constructor(){super(...arguments),this._unknown=!0}_parse(e){return h(e.data)}}R.create=e=>new R({typeName:he.ZodUnknown,...k(e)});class A extends x{_parse(e){const t=this._getOrReturnCtx(e);return f(t,{code:i.invalid_type,expected:o.never,received:t.parsedType}),m}}A.create=e=>new A({typeName:he.ZodNever,...k(e)});class I extends x{_parse(e){if(this._getType(e)!==o.undefined){const t=this._getOrReturnCtx(e);return f(t,{code:i.invalid_type,expected:o.void,received:t.parsedType}),m}return h(e.data)}}I.create=e=>new I({typeName:he.ZodVoid,...k(e)});class F extends x{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==o.array)return f(t,{code:i.invalid_type,expected:o.array,received:t.parsedType}),m;if(null!==r.minLength&&t.data.length<r.minLength.value&&(f(t,{code:i.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(f(t,{code:i.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all(t.data.map(((e,n)=>r.type._parseAsync(new M(t,e,t.path,n))))).then((e=>p.mergeArray(n,e)));const a=t.data.map(((e,n)=>r.type._parseSync(new M(t,e,t.path,n))));return p.mergeArray(n,a)}get element(){return this._def.type}min(e,t){return new F({...this._def,minLength:{value:e,message:b.toString(t)}})}max(e,t){return new F({...this._def,maxLength:{value:e,message:b.toString(t)}})}length(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}var H;F.create=(e,t)=>new F({type:e,minLength:null,maxLength:null,typeName:he.ZodArray,...k(t)}),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(H||(H={}));const $=e=>t=>new V({...e,shape:()=>({...e.shape(),...t})});function z(e){if(e instanceof V){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=se.create(z(r))}return new V({...e._def,shape:()=>t})}return e instanceof F?F.create(z(e.element)):e instanceof se?se.create(z(e.unwrap())):e instanceof ue?ue.create(z(e.unwrap())):e instanceof q?q.create(e.items.map((e=>z(e)))):e}class V extends x{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=$(this._def),this.extend=$(this._def)}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=r.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==o.object){const t=this._getOrReturnCtx(e);return f(t,{code:i.invalid_type,expected:o.object,received:t.parsedType}),m}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof A&&"strip"===this._def.unknownKeys))for(const o in n.data)a.includes(o)||s.push(o);const u=[];for(const o of a){const e=r[o],t=n.data[o];u.push({key:{status:"valid",value:o},value:e._parse(new M(n,t,n.path,o)),alwaysSet:o in n.data})}if(this._def.catchall instanceof A){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of s)u.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)s.length>0&&(f(n,{code:i.unrecognized_keys,keys:s}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of s){const r=n.data[t];u.push({key:{status:"valid",value:t},value:e._parse(new M(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of u){const n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e})).then((e=>p.mergeObjectSync(t,e))):p.mergeObjectSync(t,u)}get shape(){return this._def.shape()}strict(e){return b.errToObj,new V({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,o,a,i;const s=null!==(a=null===(o=(r=this._def).errorMap)||void 0===o?void 0:o.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(i=b.errToObj(e).message)&&void 0!==i?i:s}:{message:s}}}:{}})}strip(){return new V({...this._def,unknownKeys:"strip"})}passthrough(){return new V({...this._def,unknownKeys:"passthrough"})}setKey(e,t){return this.augment({[e]:t})}merge(e){return new V({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>H.mergeShapes(this._def.shape(),e._def.shape()),typeName:he.ZodObject})}catchall(e){return new V({...this._def,catchall:e})}pick(e){const t={};return r.objectKeys(e).map((e=>{this.shape[e]&&(t[e]=this.shape[e])})),new V({...this._def,shape:()=>t})}omit(e){const t={};return r.objectKeys(this.shape).map((n=>{-1===r.objectKeys(e).indexOf(n)&&(t[n]=this.shape[n])})),new V({...this._def,shape:()=>t})}deepPartial(){return z(this)}partial(e){const t={};if(e)return r.objectKeys(this.shape).map((n=>{-1===r.objectKeys(e).indexOf(n)?t[n]=this.shape[n]:t[n]=this.shape[n].optional()})),new V({...this._def,shape:()=>t});for(const n in this.shape){const e=this.shape[n];t[n]=e.optional()}return new V({...this._def,shape:()=>t})}required(){const e={};for(const t in this.shape){let n=this.shape[t];for(;n instanceof se;)n=n._def.innerType;e[t]=n}return new V({...this._def,shape:()=>e})}keyof(){return ne(r.objectKeys(this.shape))}}V.create=(e,t)=>new V({shape:()=>e,unknownKeys:"strip",catchall:A.create(),typeName:he.ZodObject,...k(t)}),V.strictCreate=(e,t)=>new V({shape:()=>e,unknownKeys:"strict",catchall:A.create(),typeName:he.ZodObject,...k(t)}),V.lazycreate=(e,t)=>new V({shape:e,unknownKeys:"strip",catchall:A.create(),typeName:he.ZodObject,...k(t)});class W extends x{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map((e=>new s(e.ctx.common.issues)));return f(t,{code:i.invalid_union,unionErrors:n}),m}));{let e;const r=[];for(const a of n){const n={...t,common:{...t.common,issues:[]},parent:null},o=a._parseSync({data:t.data,path:t.path,parent:n});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=r.map((e=>new s(e)));return f(t,{code:i.invalid_union,unionErrors:o}),m}}get options(){return this._def.options}}W.create=(e,t)=>new W({options:e,typeName:he.ZodUnion,...k(t)});class B extends x{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.object)return f(t,{code:i.invalid_type,expected:o.object,received:t.parsedType}),m;const n=this.discriminator,r=t.data[n],a=this.options.get(r);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(f(t,{code:i.invalid_union_discriminator,options:this.validDiscriminatorValues,path:[n]}),m)}get discriminator(){return this._def.discriminator}get validDiscriminatorValues(){return Array.from(this.options.keys())}get options(){return this._def.options}static create(e,t,n){const r=new Map;try{t.forEach((t=>{const n=t.shape[e].value;r.set(n,t)}))}catch(o){throw new Error("The discriminator value could not be extracted from all the provided schemas")}if(r.size!==t.length)throw new Error("Some of the discriminator values are not unique");return new B({typeName:he.ZodDiscriminatedUnion,discriminator:e,options:r,...k(n)})}}function U(e,t){const n=a(e),i=a(t);if(e===t)return{valid:!0,data:e};if(n===o.object&&i===o.object){const n=r.objectKeys(t),o=r.objectKeys(e).filter((e=>-1!==n.indexOf(e))),a={...e,...t};for(const r of o){const n=U(e[r],t[r]);if(!n.valid)return{valid:!1};a[r]=n.data}return{valid:!0,data:a}}if(n===o.array&&i===o.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const o=U(e[r],t[r]);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}return n===o.date&&i===o.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class K extends x{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(v(e)||v(r))return m;const o=U(e.value,r.value);return o.valid?((y(e)||y(r))&&t.dirty(),{status:t.value,value:o.data}):(f(n,{code:i.invalid_intersection_types}),m)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}K.create=(e,t,n)=>new K({left:e,right:t,typeName:he.ZodIntersection,...k(n)});class q extends x{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.array)return f(n,{code:i.invalid_type,expected:o.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return f(n,{code:i.too_small,minimum:this._def.items.length,inclusive:!0,type:"array"}),m;!this._def.rest&&n.data.length>this._def.items.length&&(f(n,{code:i.too_big,maximum:this._def.items.length,inclusive:!0,type:"array"}),t.dirty());const r=n.data.map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new M(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>p.mergeArray(t,e))):p.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new q({...this._def,rest:e})}}q.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new q({items:e,typeName:he.ZodTuple,rest:null,...k(t)})};class G extends x{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.object)return f(n,{code:i.invalid_type,expected:o.object,received:n.parsedType}),m;const r=[],a=this._def.keyType,s=this._def.valueType;for(const o in n.data)r.push({key:a._parse(new M(n,o,n.path,o)),value:s._parse(new M(n,n.data[o],n.path,o))});return n.common.async?p.mergeObjectAsync(t,r):p.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new G(t instanceof x?{keyType:e,valueType:t,typeName:he.ZodRecord,...k(n)}:{keyType:T.create(),valueType:e,typeName:he.ZodRecord,...k(t)})}}class J extends x{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.map)return f(n,{code:i.invalid_type,expected:o.map,received:n.parsedType}),m;const r=this._def.keyType,a=this._def.valueType,s=[...n.data.entries()].map((([e,t],o)=>({key:r._parse(new M(n,e,n.path,[o,"key"])),value:a._parse(new M(n,t,n.path,[o,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of s){const r=await n.key,o=await n.value;if("aborted"===r.status||"aborted"===o.status)return m;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of s){const r=n.key,o=n.value;if("aborted"===r.status||"aborted"===o.status)return m;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}}}J.create=(e,t,n)=>new J({valueType:t,keyType:e,typeName:he.ZodMap,...k(n)});class X extends x{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==o.set)return f(n,{code:i.invalid_type,expected:o.set,received:n.parsedType}),m;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(f(n,{code:i.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(f(n,{code:i.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,message:r.maxSize.message}),t.dirty());const a=this._def.valueType;function s(e){const n=new Set;for(const r of e){if("aborted"===r.status)return m;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const u=[...n.data.values()].map(((e,t)=>a._parse(new M(n,e,n.path,t))));return n.common.async?Promise.all(u).then((e=>s(e))):s(u)}min(e,t){return new X({...this._def,minSize:{value:e,message:b.toString(t)}})}max(e,t){return new X({...this._def,maxSize:{value:e,message:b.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}X.create=(e,t)=>new X({valueType:e,minSize:null,maxSize:null,typeName:he.ZodSet,...k(t)});class Q extends x{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.function)return f(t,{code:i.invalid_type,expected:o.function,received:t.parsedType}),m;function n(e,n){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),u].filter((e=>!!e)),issueData:{code:i.invalid_arguments,argumentsError:n}})}function r(e,n){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),u].filter((e=>!!e)),issueData:{code:i.invalid_return_type,returnTypeError:n}})}const a={errorMap:t.common.contextualErrorMap},l=t.data;return this._def.returns instanceof ae?h((async(...e)=>{const t=new s([]),o=await this._def.args.parseAsync(e,a).catch((r=>{throw t.addIssue(n(e,r)),t})),i=await l(...o);return await this._def.returns._def.type.parseAsync(i,a).catch((e=>{throw t.addIssue(r(i,e)),t}))})):h(((...e)=>{const t=this._def.args.safeParse(e,a);if(!t.success)throw new s([n(e,t.error)]);const o=l(...t.data),i=this._def.returns.safeParse(o,a);if(!i.success)throw new s([r(o,i.error)]);return i.data}))}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Q({...this._def,args:q.create(e).rest(R.create())})}returns(e){return new Q({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Q({args:e||q.create([]).rest(R.create()),returns:t||R.create(),typeName:he.ZodFunction,...k(n)})}}class ee extends x{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ee.create=(e,t)=>new ee({getter:e,typeName:he.ZodLazy,...k(t)});class te extends x{_parse(e){if(e.data!==this._def.value){return f(this._getOrReturnCtx(e),{code:i.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ne(e,t){return new re({values:e,typeName:he.ZodEnum,...k(t)})}te.create=(e,t)=>new te({value:e,typeName:he.ZodLiteral,...k(t)});class re extends x{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return f(t,{expected:r.joinValues(n),received:t.parsedType,code:i.invalid_type}),m}if(-1===this._def.values.indexOf(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return f(t,{received:t.data,code:i.invalid_enum_value,options:n}),m}return h(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}}re.create=ne;class oe extends x{_parse(e){const t=r.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==o.string&&n.parsedType!==o.number){const e=r.objectValues(t);return f(n,{expected:r.joinValues(e),received:n.parsedType,code:i.invalid_type}),m}if(-1===t.indexOf(e.data)){const e=r.objectValues(t);return f(n,{received:n.data,code:i.invalid_enum_value,options:e}),m}return h(e.data)}get enum(){return this._def.values}}oe.create=(e,t)=>new oe({values:e,typeName:he.ZodNativeEnum,...k(t)});class ae extends x{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==o.promise&&!1===t.common.async)return f(t,{code:i.invalid_type,expected:o.promise,received:t.parsedType}),m;const n=t.parsedType===o.promise?t.data:Promise.resolve(t.data);return h(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}ae.create=(e,t)=>new ae({type:e,typeName:he.ZodPromise,...k(t)});class ie extends x{innerType(){return this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),o=this._def.effect||null;if("preprocess"===o.type){const e=o.transform(n.data);return n.common.async?Promise.resolve(e).then((e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n}))):this._def.schema._parseSync({data:e,path:n.path,parent:n})}const a={addIssue:e=>{f(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),"refinement"===o.type){const e=e=>{const t=o.refinement(e,a);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?m:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?m:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===o.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!_(e))return e;const r=o.transform(e.value,a);if(r instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>_(e)?Promise.resolve(o.transform(e.value,a)).then((e=>({status:t.value,value:e}))):e))}r.assertNever(o)}}ie.create=(e,t,n)=>new ie({schema:e,typeName:he.ZodEffects,effect:t,...k(n)}),ie.createWithPreprocess=(e,t,n)=>new ie({schema:t,effect:{type:"preprocess",transform:e},typeName:he.ZodEffects,...k(n)});class se extends x{_parse(e){return this._getType(e)===o.undefined?h(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}se.create=(e,t)=>new se({innerType:e,typeName:he.ZodOptional,...k(t)});class ue extends x{_parse(e){return this._getType(e)===o.null?h(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ue.create=(e,t)=>new ue({innerType:e,typeName:he.ZodNullable,...k(t)});class le extends x{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===o.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}le.create=(e,t)=>new se({innerType:e,typeName:he.ZodOptional,...k(t)});class ce extends x{_parse(e){if(this._getType(e)!==o.nan){const t=this._getOrReturnCtx(e);return f(t,{code:i.invalid_type,expected:o.nan,received:t.parsedType}),m}return{status:"valid",value:e.data}}}ce.create=e=>new ce({typeName:he.ZodNaN,...k(e)});const de=Symbol("zod_brand");class fe extends x{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}const pe=(e,t={},n)=>e?N.create().superRefine(((r,o)=>{if(!e(r)){const e="function"==typeof t?t(r):t,a="string"==typeof e?{message:e}:e;o.addIssue({code:"custom",...a,fatal:n})}})):N.create(),me={object:V.lazycreate};var he;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded"}(he||(he={}));const ve=T.create,ye=O.create,_e=ce.create,ge=P.create,be=D.create,Me=Y.create,we=j.create,ke=Z.create,xe=N.create,Se=R.create,Le=A.create,Ee=I.create,Te=F.create,Ce=V.create,Oe=V.strictCreate,Pe=W.create,De=B.create,Ye=K.create,je=q.create,Ze=G.create,Ne=J.create,Re=X.create,Ae=Q.create,Ie=ee.create,Fe=te.create,He=re.create,$e=oe.create,ze=ae.create,Ve=ie.create,We=se.create,Be=ue.create,Ue=ie.createWithPreprocess,Ke=m;var qe=Object.freeze({__proto__:null,getParsedType:a,ZodParsedType:o,defaultErrorMap:u,setErrorMap:function(e){l=e},getErrorMap:c,makeIssue:d,EMPTY_PATH:[],addIssueToContext:f,ParseStatus:p,INVALID:m,DIRTY:e=>({status:"dirty",value:e}),OK:h,isAborted:v,isDirty:y,isValid:_,isAsync:g,ZodType:x,ZodString:T,ZodNumber:O,ZodBigInt:P,ZodBoolean:D,ZodDate:Y,ZodUndefined:j,ZodNull:Z,ZodAny:N,ZodUnknown:R,ZodNever:A,ZodVoid:I,ZodArray:F,get objectUtil(){return H},ZodObject:V,ZodUnion:W,ZodDiscriminatedUnion:B,ZodIntersection:K,ZodTuple:q,ZodRecord:G,ZodMap:J,ZodSet:X,ZodFunction:Q,ZodLazy:ee,ZodLiteral:te,ZodEnum:re,ZodNativeEnum:oe,ZodPromise:ae,ZodEffects:ie,ZodTransformer:ie,ZodOptional:se,ZodNullable:ue,ZodDefault:le,ZodNaN:ce,BRAND:de,ZodBranded:fe,custom:pe,Schema:x,ZodSchema:x,late:me,get ZodFirstPartyTypeKind(){return he},any:xe,array:Te,bigint:ge,boolean:be,date:Me,discriminatedUnion:De,effect:Ve,enum:He,function:Ae,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>pe((t=>t instanceof e),t,!0),intersection:Ye,lazy:Ie,literal:Fe,map:Ne,nan:_e,nativeEnum:$e,never:Le,null:ke,nullable:Be,number:ye,object:Ce,oboolean:()=>be().optional(),onumber:()=>ye().optional(),optional:We,ostring:()=>ve().optional(),preprocess:Ue,promise:ze,record:Ze,set:Re,strictObject:Oe,string:ve,transformer:Ve,tuple:je,undefined:we,union:Pe,unknown:Se,void:Ee,NEVER:Ke,ZodIssueCode:i,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:s})},71143:function(e){"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},31512:function(e){"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}}]); \ No newline at end of file diff --git a/assets/js/829.be73e92d.js.LICENSE.txt b/assets/js/829.be73e92d.js.LICENSE.txt new file mode 100644 index 000000000..4542ff4f3 --- /dev/null +++ b/assets/js/829.be73e92d.js.LICENSE.txt @@ -0,0 +1,54 @@ +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ + +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ + +/** + * A better abstraction over CSS. + * + * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present + * @website https://github.com/cssinjs/jss + * @license MIT + */ + +/** @license MUI v5.5.2 + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v17.0.2 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v17.0.2 + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ + +//! moment.js + +//! moment.js locale configuration diff --git a/assets/js/858af898.7df79c5e.js b/assets/js/858af898.7df79c5e.js new file mode 100644 index 000000000..f94318379 --- /dev/null +++ b/assets/js/858af898.7df79c5e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[785],{35318:function(e,t,n){n.d(t,{Zo:function(){return c},kt:function(){return d}});var r=n(27378);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var u=r.createContext({}),p=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},c=function(e){var t=p(e.components);return r.createElement(u.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,o=e.originalType,u=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),m=p(n),d=i,f=m["".concat(u,".").concat(d)]||m[d]||s[d]||o;return n?r.createElement(f,a(a({ref:t},c),{},{components:n})):r.createElement(f,a({ref:t},c))}));function d(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var o=n.length,a=new Array(o);a[0]=m;var l={};for(var u in t)hasOwnProperty.call(t,u)&&(l[u]=t[u]);l.originalType=e,l.mdxType="string"==typeof e?e:i,a[1]=l;for(var p=2;p<o;p++)a[p]=n[p];return r.createElement.apply(null,a)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},64148:function(e,t,n){n.r(t),n.d(t,{assets:function(){return u},contentTitle:function(){return a},default:function(){return s},frontMatter:function(){return o},metadata:function(){return l},toc:function(){return p}});var r=n(25773),i=(n(27378),n(35318));const o={id:"migrating-3-to-4",title:"Migrating v3 to v4"},a=void 0,l={unversionedId:"migrating-3-to-4",id:"migrating-3-to-4",title:"Migrating v3 to v4",description:"This guide is designed to help you through the migration. If you went through it and encountered any problems - do let us know. For more information on why certain changes were made, see the CHANGELOG.md. When migrating to v4, use the newest version. Gradual updates will take more time and won't ease this process.",source:"@site/../docs/migrating-3-to-4.md",sourceDirName:".",slug:"/migrating-3-to-4",permalink:"/docs/migrating-3-to-4",draft:!1,tags:[],version:"current",frontMatter:{id:"migrating-3-to-4",title:"Migrating v3 to v4"},sidebar:"docs",previous:{title:"FAQ",permalink:"/docs/faq"},next:{title:"Migrating v2 to v3",permalink:"/docs/migrating-2-to-3"}},u={},p=[{value:"Breaking API changes",id:"breaking-api-changes",level:2}],c={toc:p};function s(e){let{components:t,...n}=e;return(0,i.kt)("wrapper",(0,r.Z)({},c,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"This guide is designed to help you through the migration. If you went through it and encountered any problems - do let us know. For more information on ",(0,i.kt)("em",{parentName:"p"},"why")," certain changes were made, see the ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/blob/master/CHANGELOG.md"},(0,i.kt)("inlineCode",{parentName:"a"},"CHANGELOG.md")),". When migrating to v4, use the newest version. Gradual updates will take more time and won't ease this process."),(0,i.kt)("h2",{id:"breaking-api-changes"},"Breaking API changes"),(0,i.kt)("ul",null,(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("inlineCode",{parentName:"li"},"componentDetector")," in ",(0,i.kt)("inlineCode",{parentName:"li"},"AutoField"),"s now always takes precedence over ",(0,i.kt)("inlineCode",{parentName:"li"},"component")," property on a schema. This may make your ",(0,i.kt)("inlineCode",{parentName:"li"},"AutoField")," render a different component when you were using both previously. If that's the case, move your schema's ",(0,i.kt)("inlineCode",{parentName:"li"},"component")," definition to a ",(0,i.kt)("a",{parentName:"li",href:"/docs/uth-autofield-algorithm/#overriding-autofield"},(0,i.kt)("inlineCode",{parentName:"a"},"AutoField.componentDetectorContext.Provider"))," instead."),(0,i.kt)("li",{parentName:"ul"},"Dropped support for ",(0,i.kt)("inlineCode",{parentName:"li"},"initialCount")," in bridges and ",(0,i.kt)("inlineCode",{parentName:"li"},"ListField"),"s. Pass a model object to the form with the appropriate amount of initial items instead."),(0,i.kt)("li",{parentName:"ul"},(0,i.kt)("inlineCode",{parentName:"li"},"AutoFields")," component in all themes now renders a ",(0,i.kt)("inlineCode",{parentName:"li"},"React.Fragment")," instead of a ",(0,i.kt)("inlineCode",{parentName:"li"},"div"),". Explicitly render a wrapper component around if you need one."),(0,i.kt)("li",{parentName:"ul"},"Removed the ",(0,i.kt)("inlineCode",{parentName:"li"},"autoField")," prop from ",(0,i.kt)("inlineCode",{parentName:"li"},"QuickForm"),", ",(0,i.kt)("inlineCode",{parentName:"li"},"AutoForm"),", and ",(0,i.kt)("inlineCode",{parentName:"li"},"AutoFields")," components in all themes. Use ",(0,i.kt)("a",{parentName:"li",href:"/docs/uth-autofield-algorithm/#overriding-autofield"},(0,i.kt)("inlineCode",{parentName:"a"},"AutoField.componentDetectorContext.Provider"))," instead.")))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/893.cdbd5851.js b/assets/js/893.cdbd5851.js new file mode 100644 index 000000000..4c8a47361 --- /dev/null +++ b/assets/js/893.cdbd5851.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[893],{53893:function(e,t,n){n.r(t),n.d(t,{default:function(){return i}});var a=n(27378),l=n(99213),o=n(98831),r=n(38703);function i(){return a.createElement(a.Fragment,null,a.createElement(o.d,{title:(0,l.I)({id:"theme.NotFound.title",message:"Page Not Found"})}),a.createElement(r.Z,null,a.createElement("main",{className:"container margin-vert--xl"},a.createElement("div",{className:"row"},a.createElement("div",{className:"col col--6 col--offset-3"},a.createElement("h1",{className:"hero__title"},a.createElement(l.Z,{id:"theme.NotFound.title",description:"The title of the 404 page"},"Page Not Found")),a.createElement("p",null,a.createElement(l.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page"},"We could not find what you were looking for.")),a.createElement("p",null,a.createElement(l.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page"},"Please contact the owner of the site that linked you to the original URL and let them know their link is broken.")))))))}}}]); \ No newline at end of file diff --git a/assets/js/935f2afb.02ecf9fe.js b/assets/js/935f2afb.02ecf9fe.js new file mode 100644 index 000000000..6ddee08bb --- /dev/null +++ b/assets/js/935f2afb.02ecf9fe.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[53],{1109:function(e){e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"docs":[{"type":"category","label":"Introduction","items":[{"type":"link","label":"What are uniforms?","href":"/docs/what-are-uniforms","docId":"what-are-uniforms"},{"type":"link","label":"Motivation","href":"/docs/motivation","docId":"motivation"},{"type":"link","label":"Comparison matrix","href":"/docs/compare-matrix","docId":"compare-matrix"}],"collapsed":false,"collapsible":false},{"type":"category","label":"Getting Started","items":[{"type":"link","label":"Installation","href":"/docs/installation","docId":"installation"},{"type":"link","label":"FAQ","href":"/docs/faq","docId":"faq"},{"type":"link","label":"Migrating v3 to v4","href":"/docs/migrating-3-to-4","docId":"migrating-3-to-4"},{"type":"link","label":"Migrating v2 to v3","href":"/docs/migrating-2-to-3","docId":"migrating-2-to-3"}],"collapsed":false,"collapsible":false},{"type":"category","label":"Tutorials","items":[{"type":"link","label":"Basic uniforms usage","href":"/docs/tutorials-basic-uniforms-usage","docId":"tutorials-basic-uniforms-usage"},{"type":"link","label":"Customizing your form layout","href":"/docs/tutorials-customizing-your-form-layout","docId":"tutorials-customizing-your-form-layout"},{"type":"link","label":"Using predefined fields","href":"/docs/tutorials-using-predefined-fields","docId":"tutorials-using-predefined-fields"},{"type":"link","label":"Creating a custom field","href":"/docs/tutorials-creating-custom-field","docId":"tutorials-creating-custom-field"},{"type":"link","label":"Creating a custom theme","href":"/docs/tutorials-creating-custom-theme","docId":"tutorials-creating-custom-theme"}],"collapsed":false,"collapsible":false},{"type":"category","label":"Examples","items":[{"type":"link","label":"Common forms","href":"/docs/examples-common-forms","docId":"examples-common-forms"},{"type":"link","label":"Custom fields","href":"/docs/examples-custom-fields","docId":"examples-custom-fields"},{"type":"link","label":"Custom bridge & validator","href":"/docs/examples-custom-bridge","docId":"examples-custom-bridge"},{"type":"link","label":"Custom form","href":"/docs/examples-custom-form","docId":"examples-custom-form"}],"collapsed":false,"collapsible":false},{"type":"category","label":"API Reference","items":[{"type":"link","label":"Forms","href":"/docs/api-forms","docId":"api-forms"},{"type":"link","label":"Fields","href":"/docs/api-fields","docId":"api-fields"},{"type":"link","label":"Bridges","href":"/docs/api-bridges","docId":"api-bridges"},{"type":"link","label":"Context data","href":"/docs/api-context-data","docId":"api-context-data"},{"type":"link","label":"Helpers","href":"/docs/api-helpers","docId":"api-helpers"}],"collapsed":false,"collapsible":false},{"type":"category","label":"Under The Hood","items":[{"type":"link","label":"AutoField algorithm","href":"/docs/uth-autofield-algorithm","docId":"uth-autofield-algorithm"},{"type":"link","label":"Bridge concept","href":"/docs/uth-bridge-concept","docId":"uth-bridge-concept"}],"collapsed":false,"collapsible":false}]},"docs":{"api-bridges":{"id":"api-bridges","title":"Bridges","description":"To make use of any schema, uniforms have to create a bridge of it - a unified schema mapper.","sidebar":"docs"},"api-context-data":{"id":"api-context-data","title":"Context data","description":"Some components might need to know a current form state, which is passed as React context.","sidebar":"docs"},"api-fields":{"id":"api-fields","title":"Fields","description":"uniforms provide a set of predefined components that can be used as form fields.","sidebar":"docs"},"api-forms":{"id":"api-forms","title":"Forms","description":"Forms components","sidebar":"docs"},"api-helpers":{"id":"api-helpers","title":"Helpers","description":"connectField","sidebar":"docs"},"compare-matrix":{"id":"compare-matrix","title":"Comparison matrix","description":"| Feature | uniforms | Formik | redux-form | React Final Form | react-hook-form | react-jsonschema-form |","sidebar":"docs"},"compare-matrix-landing":{"id":"compare-matrix-landing","title":"compare-matrix-landing","description":"| Feature | uniforms | Formik | redux-form | React Final Form | react-hook-form |"},"examples-common-forms":{"id":"examples-common-forms","title":"Common forms","description":"Sign up","sidebar":"docs"},"examples-custom-bridge":{"id":"examples-custom-bridge","title":"Custom bridge & validator","description":"In this example, we will create an ordinary login form, with login, password, and password confirmation fields.","sidebar":"docs"},"examples-custom-fields":{"id":"examples-custom-fields","title":"Custom fields","description":"CompositeField","sidebar":"docs"},"examples-custom-form":{"id":"examples-custom-form","title":"Custom form","description":"In uniforms, every form is just an injectable set of functionalities.","sidebar":"docs"},"faq":{"id":"faq","title":"FAQ","description":"Can I use React v18?","sidebar":"docs"},"installation":{"id":"installation","title":"Installation","description":"Core package first.","sidebar":"docs"},"migrating-2-to-3":{"id":"migrating-2-to-3","title":"Migrating v2 to v3","description":"This guide is designed to help you through the migration. If you went through it and encountered any problems - do let us know. For more information on why certain changes were made, see the CHANGELOG.md. When migrating to v3, use the newest version. Gradual updates will take more time and won\'t ease this process.","sidebar":"docs"},"migrating-3-to-4":{"id":"migrating-3-to-4","title":"Migrating v3 to v4","description":"This guide is designed to help you through the migration. If you went through it and encountered any problems - do let us know. For more information on why certain changes were made, see the CHANGELOG.md. When migrating to v4, use the newest version. Gradual updates will take more time and won\'t ease this process.","sidebar":"docs"},"motivation":{"id":"motivation","title":"Motivation","description":"Forms concept","sidebar":"docs"},"tutorials-basic-uniforms-usage":{"id":"tutorials-basic-uniforms-usage","title":"Basic uniforms usage","description":"You can also follow the tutorial and explore uniforms in our sample CodeSandbox repository.","sidebar":"docs"},"tutorials-creating-custom-field":{"id":"tutorials-creating-custom-field","title":"Creating a custom field","description":"Great! We have a perfect form designed for collecting the data about our guests!","sidebar":"docs"},"tutorials-creating-custom-theme":{"id":"tutorials-creating-custom-theme","title":"Creating a custom theme","description":"We\'ve made hundreds of custom components across dozens of projects, including complete custom themes.","sidebar":"docs"},"tutorials-customizing-your-form-layout":{"id":"tutorials-customizing-your-form-layout","title":"Customizing your form layout","description":"Great! Now that we have our form up and running, it\'s time to think about how we can customize it and adjust to our needs.","sidebar":"docs"},"tutorials-using-predefined-fields":{"id":"tutorials-using-predefined-fields","title":"Using predefined fields","description":"Now that we know how to ask our guests for their name, let\'s ask them a few more things!","sidebar":"docs"},"uth-autofield-algorithm":{"id":"uth-autofield-algorithm","title":"AutoField algorithm","description":"Background","sidebar":"docs"},"uth-bridge-concept":{"id":"uth-bridge-concept","title":"Bridge concept","description":"To make use of any schema, uniforms have to create a bridge of it - a unified schema mapper. The Bridge class is an abstract class, which should be extended to create custom bridges. It implements all of the required methods and throws an error with meaningful \\"method not implemented\\" error.","sidebar":"docs"},"what-are-uniforms":{"id":"what-are-uniforms","title":"What are uniforms?","description":"Generally speaking, uniforms are a set of React libraries for building forms from every schema.","sidebar":"docs"},"why-are-uniforms":{"id":"why-are-uniforms","title":"Why are uniforms?","description":"Forms concept"}}}')}}]); \ No newline at end of file diff --git a/assets/js/95d13d39.b926d92a.js b/assets/js/95d13d39.b926d92a.js new file mode 100644 index 000000000..908cc6b24 --- /dev/null +++ b/assets/js/95d13d39.b926d92a.js @@ -0,0 +1,2 @@ +/*! For license information please see 95d13d39.b926d92a.js.LICENSE.txt */ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[37],{57292:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var o=n(95256),a=n(27378);function i(e){let{language:t,replace:n,section:i,source:r}=e;if("object"==typeof r&&"default"in r&&(r=r.default),i){const e=new RegExp(`// <${i}>\\s([\\s\\S]*?)\\s// </${i}>\\s`,"g");r=r.split(e).reduce(((e,t,n)=>n%2==0?e:`${e}\n\n${t}`),"")}if(r=r.replace(/\/\/ <.*?\n/g,""),n)for(const[o,a]of Object.entries(n))r=r.replace(new RegExp(o,"gs"),a);return r=r.trim(),r.includes("\n")||(r+="\n"),a.createElement(o.Z.pre,null,a.createElement(o.Z.code,{children:r,className:`language-${t}`,mdxType:"code",originalType:"code",parentName:"pre"}))}},46867:function(e,t,n){"use strict";n.d(t,{TX:function(){return s},mQ:function(){return u}});var o=n(60042),a=n.n(o),i=n(27378),r=n(4940),l=n(59150);function s(e){let{activeTab:t,items:n,onTab:o}=e;return i.createElement("div",{className:r.Z.tabs},n.map(((e,n)=>{let{name:a}=e;return i.createElement(c,{active:t===n,key:n,onClick:()=>o(n)},a)})))}function c(e){let{active:t,children:n,onClick:o}=e;return i.createElement("span",{className:a()(r.Z.item,t&&r.Z.active),onClick:o,onKeyDown:e=>"Enter"===e.key&&o(),role:"button",tabIndex:0},n)}function u(e){let{children:t,group:n,tabs:o}=e;const{activeTab:a,onTab:r}=(0,l.Y)(n);return i.createElement(i.Fragment,null,i.createElement(s,{activeTab:a,items:o,onTab:r}),t(o[a]))}},59150:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});var o=n(27378);const a=Object.create(null),i=Object.create(null);function r(e){const[t,n]=(0,o.useState)(a[e]||0),r=(0,o.useCallback)((t=>function(e,t){a[e]=t,i[e].forEach((e=>{e(t)}))}(e,t)),[e]);return(0,o.useEffect)((()=>function(e,t){return void 0===i[e]&&(a[e]=0,i[e]=[]),i[e].push(t),()=>{i[e].splice(i[e].indexOf(t),1)}}(e,n)),[e]),{activeTab:t,onTab:r}}},14588:function(e,t,n){"use strict";n.r(t),n.d(t,{assets:function(){return p},contentTitle:function(){return c},default:function(){return g},frontMatter:function(){return s},metadata:function(){return u},toc:function(){return m}});var o=n(25773),a=n(27378),i=n(35318),r=n(57292),l=n(46867);const s={id:"installation",title:"Installation"},c=void 0,u={unversionedId:"installation",id:"installation",title:"Installation",description:"Core package first.",source:"@site/../docs/installation.mdx",sourceDirName:".",slug:"/installation",permalink:"/docs/installation",draft:!1,tags:[],version:"current",frontMatter:{id:"installation",title:"Installation"},sidebar:"docs",previous:{title:"Comparison matrix",permalink:"/docs/compare-matrix"},next:{title:"FAQ",permalink:"/docs/faq"}},p={},m=[],d={toc:m};function g(e){let{components:t,...n}=e;return(0,i.kt)("wrapper",(0,o.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"Core package first."),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-shell"},"npm install uniforms\n")),(0,i.kt)("p",null,"Now the schema package."),(0,i.kt)(l.mQ,{group:"bridge",tabs:[{name:"GraphQL"},{name:"JSON-Schema"},{name:"Simple-Schema"},{name:"Simple-Schema-2"},{name:"Zod"}],mdxType:"Tabs"},(e=>{let{name:t}=e;return(0,i.kt)(a.Fragment,null,(0,i.kt)(r.f,{language:"shell",source:`npm install uniforms-bridge-${t.toLowerCase()}`,mdxType:"CodeSection"}),(0,i.kt)("p",null,"Finally, pick your theme."),(0,i.kt)(l.mQ,{group:"theme",tabs:[{name:"Semantic"},{name:"Material"},{name:"MUI"},{name:"Bootstrap4"},{name:"Bootstrap5"},{name:"AntD"},{name:"Unstyled"}],mdxType:"Tabs"},(e=>{let{name:n}=e;return(0,i.kt)(a.Fragment,null,(0,i.kt)(r.f,{language:"shell",source:`npm install uniforms-${n.toLowerCase()}`,mdxType:"CodeSection"}),(0,i.kt)("p",null,"TL;DR; Just let me copy it!"),(0,i.kt)(r.f,{language:"shell",source:`npm install uniforms uniforms-bridge-${t.toLowerCase()} uniforms-${n.toLowerCase()}`,mdxType:"CodeSection"}))})))})),(0,i.kt)("p",null,(0,i.kt)("strong",{parentName:"p"},"Note:")," If you are going to use a themed package - remember to include correct styles!"))}g.isMDXComponent=!0},60042:function(e,t){var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var r=a.apply(null,n);r&&e.push(r)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var l in n)o.call(n,l)&&n[l]&&e.push(l);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},4940:function(e,t){"use strict";t.Z={"center-if-sm":"center-if-sm_fQBP",padding:"padding_u3oQ",landing:"landing_JSVC","overflow-hidden":"overflow-hidden_pgKL","section-content":"section-content_dsyA",discussions:"discussions_nna8","floating-example":"floating-example_NeZB","system-window":"system-window_utQO","system-top-bar":"system-top-bar_ZKOK","system-top-bar-circle":"system-top-bar-circle_TDqe","showcase-card":"showcase-card_hJCa",footer:"footer_V71b",bullets:"bullets_YLT6","offset-column":"offset-column_Fx18","simple-yet-powerful-text":"simple-yet-powerful-text__cJc","fully-customizable-text":"fully-customizable-text_ka9o","reverse-wrap":"reverse-wrap_wEMw",example:"example_fVIp","preview-border":"preview-border_OFQs",preview:"preview_Ea2L","no-padding":"no-padding_WjVH","solid-border-box":"solid-border-box_A28F","green-accent":"green-accent_H4ZV","blue-accent":"blue-accent_R2MP",grid3x3:"grid3x3_yu8a",item3x3:"item3x3_dug1",company:"company_dMmf","border-dashed":"border-dashed_OHF8","border-gradient":"border-gradient_gHdq","border-disable-top-right":"border-disable-top-right_GH8c","border-disable-bottom-left":"border-disable-bottom-left_uiZP","arrow-button":"arrow-button_hF_x","left-arrow-button":"left-arrow-button_Zn9b","right-arrow-button":"right-arrow-button_J0NN",arrow:"arrow_d93H","carousel-container":"carousel-container_uFWT",carousel:"carousel_vfTV",testimonials:"testimonials__H4G","testimonials-pair-active":"testimonials-pair-active_W4Qz","testimonials-pair-inactive":"testimonials-pair-inactive_OeWi",testimonial:"testimonial_JqOm","testimonial-content":"testimonial-content_yyK0","testimonial-links-wrapper":"testimonial-links-wrapper_aCzC","testimonial-description":"testimonial-description_HpGg","testimonial-avatar":"testimonial-avatar_OiX2","section-heading":"section-heading_Wwdu","section-bgwhite":"section-bgwhite_xc3Y","section-bgwhite-block":"section-bgwhite-block_wuyP","section-bgwhite-block-left":"section-bgwhite-block-left_R077","section-bgwhite-block-right":"section-bgwhite-block-right_XL2o",logos:"logos_slhi",fluid:"fluid_k_Hd",whyus:"whyus_bBI7",oval:"oval_S291","link-icon-container":"link-icon-container_Iy8Z",white:"white_k7iJ","top-right-corner":"top-right-corner_hrD6",badges:"badges_sK0n","badge-number":"badge-number_FlCf",badge:"badge_Cv7E","badge-image":"badge-image_V8QJ","badge-centered":"badge-centered_Cl70","call-to-action":"call-to-action_fHoz","theme-icon":"theme-icon_VaE8",section:"section_SnfD","flex-center":"flex-center_VHPe","top-margin":"top-margin_xVhu","long-button":"long-button_efAi",text:"text_U9e4","text-big":"text-big_oDLV","text-huge":"text-huge_zgdY","heading-helper":"heading-helper_fnxq",heading:"heading_Tyjn","heading-white":"heading-white_SkAD",emphasis:"emphasis_T58q",paragraph:"paragraph_pxCb","section-subtitle":"section-subtitle_etM3","footer-heading":"footer-heading_wvTE",supported:"supported_k5lB",title:"title_L62U",description:"description_aTRG","commercial-bullets":"commercial-bullets_o7pP","commercial-box":"commercial-box_wLXy",vazco:"vazco_f6cf","form-wrapper":"form-wrapper_kccZ",playground:"playground_p2wD","playground-wrap":"playground-wrap_FoP6","playground-column":"playground-column_btgY","playground-toolbar":"playground-toolbar_jwg0",tabs:"tabs_DJzW",item:"item_Lknm",active:"active_R6La",toggler:"toggler_LMZW",header:"header_kKxo",tooltip:"tooltip_OOD_","tooltip-text":"tooltip-text_GGXA","toggler-tabs":"toggler-tabs_UzN0"}}}]); \ No newline at end of file diff --git a/assets/js/95d13d39.b926d92a.js.LICENSE.txt b/assets/js/95d13d39.b926d92a.js.LICENSE.txt new file mode 100644 index 000000000..0c20a875d --- /dev/null +++ b/assets/js/95d13d39.b926d92a.js.LICENSE.txt @@ -0,0 +1,5 @@ +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ diff --git a/assets/js/ab644ad6.da1aa602.js b/assets/js/ab644ad6.da1aa602.js new file mode 100644 index 000000000..24fad60a9 --- /dev/null +++ b/assets/js/ab644ad6.da1aa602.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[581],{35318:function(e,t,r){r.d(t,{Zo:function(){return m},kt:function(){return f}});var n=r(27378);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),l=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},m=function(e){var t=l(e.components);return n.createElement(s.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},p=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,m=c(e,["components","mdxType","originalType","parentName"]),p=l(r),f=o,d=p["".concat(s,".").concat(f)]||p[f]||u[f]||a;return r?n.createElement(d,i(i({ref:t},m),{},{components:r})):n.createElement(d,i({ref:t},m))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=p;var c={};for(var s in t)hasOwnProperty.call(t,s)&&(c[s]=t[s]);c.originalType=e,c.mdxType="string"==typeof e?e:o,i[1]=c;for(var l=2;l<a;l++)i[l]=r[l];return n.createElement.apply(null,i)}return n.createElement.apply(null,r)}p.displayName="MDXCreateElement"},29323:function(e,t,r){r.r(t),r.d(t,{assets:function(){return s},contentTitle:function(){return i},default:function(){return u},frontMatter:function(){return a},metadata:function(){return c},toc:function(){return l}});var n=r(25773),o=(r(27378),r(35318));const a={id:"motivation",title:"Motivation"},i=void 0,c={unversionedId:"motivation",id:"motivation",title:"Motivation",description:"Forms concept",source:"@site/../docs/motivation.md",sourceDirName:".",slug:"/motivation",permalink:"/docs/motivation",draft:!1,tags:[],version:"current",frontMatter:{id:"motivation",title:"Motivation"},sidebar:"docs",previous:{title:"What are uniforms?",permalink:"/docs/what-are-uniforms"},next:{title:"Comparison matrix",permalink:"/docs/compare-matrix"}},s={},l=[{value:"Forms concept",id:"forms-concept",level:2}],m={toc:l};function u(e){let{components:t,...r}=e;return(0,o.kt)("wrapper",(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h2",{id:"forms-concept"},"Forms concept"),(0,o.kt)("p",null,"There\u2019s a very interesting class-based inheritance concept for forms.\nBasically, there are a few types of forms with different capabilities.\nMost of the time you\u2019ll be using either AutoForm or ValidatedForm, but there are quite a few more to choose from:"),(0,o.kt)("p",{align:"center"},(0,o.kt)("img",{src:"/img/uniforms-graph.svg",alt:"AutoForm class inheritance from ValidatedQuickForm which subsequently inherits from QuickForm and ValidatedForm."})),(0,o.kt)("blockquote",null,(0,o.kt)("p",{parentName:"blockquote"},(0,o.kt)("strong",{parentName:"p"},"If you are not familiar with concept of HOC, read one of many posts about them first."),"\nI\u2019m sure you\u2019ve read at least one of ",(0,o.kt)("em",{parentName:"p"},"Why ES6 classes are bad")," or ",(0,o.kt)("em",{parentName:"p"},"class considered harmful")," posts. I\u2019ve read them too, so why is uniforms using classes? Well, it\u2019s all about the complexity."),(0,o.kt)("p",{parentName:"blockquote"},"-- ",(0,o.kt)("cite",null,(0,o.kt)("a",{parentName:"p",href:"https://github.com/radekmie"},"Rados\u0142aw Miernik")))),(0,o.kt)("p",{align:"center"},(0,o.kt)("img",{src:"/img/hoc-hell.png",alt:"React DevTools when lots of HOC\u2019s are applied to a component."})),(0,o.kt)("blockquote",null,(0,o.kt)("p",{parentName:"blockquote"},"I wanted to achieve the same functionality as with multiple HOCs, but within one component. To be honest, readability is more important than performance. In short, I\u2019ve reached (more or less) traits with ES6 classes. The result?"),(0,o.kt)("p",{parentName:"blockquote"},"-- ",(0,o.kt)("cite",null,(0,o.kt)("a",{parentName:"p",href:"https://github.com/radekmie"},"Rados\u0142aw Miernik")))),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"import BaseForm from './BaseForm';\nimport QuickForm from './QuickForm';\nimport ValidatedForm from './ValidatedForm';\n\nconst ValidatedQuickForm = ValidatedForm.Validated(QuickForm.Quick(BaseForm));\n")),(0,o.kt)("p",{align:"center"},(0,o.kt)("img",{src:"/img/uniforms-traits.png",alt:'Single AutoValidatedQuickSemanticForm component (using 5 "traits") viewed in React DevTools.'})),(0,o.kt)("p",null,"While it\u2019s not a universal approach that will work in every situation, using it in uniforms allows us to deliver clean-looking components while keeping extensibility and separation of concerns."),(0,o.kt)("hr",null),(0,o.kt)("p",null,"Based on ",(0,o.kt)("a",{parentName:"p",href:"https://blog.meteor.com/managing-forms-in-a-meteor-react-project-with-uniforms-33d60602b43a"},"Managing forms in a Meteor/React project with the uniforms package")," written by ",(0,o.kt)("a",{parentName:"p",href:"https://github.com/MacRusher"},"Maciej Stasie\u0142uk"),"."))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/bd337b44.6e689903.js b/assets/js/bd337b44.6e689903.js new file mode 100644 index 000000000..f4b8dc466 --- /dev/null +++ b/assets/js/bd337b44.6e689903.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[442],{57292:function(e,n,t){t.d(n,{f:function(){return a}});var r=t(95256),i=t(27378);function a(e){let{language:n,replace:t,section:a,source:o}=e;if("object"==typeof o&&"default"in o&&(o=o.default),a){const e=new RegExp(`// <${a}>\\s([\\s\\S]*?)\\s// </${a}>\\s`,"g");o=o.split(e).reduce(((e,n,t)=>t%2==0?e:`${e}\n\n${n}`),"")}if(o=o.replace(/\/\/ <.*?\n/g,""),t)for(const[r,i]of Object.entries(t))o=o.replace(new RegExp(r,"gs"),i);return o=o.trim(),o.includes("\n")||(o+="\n"),i.createElement(r.Z.pre,null,i.createElement(r.Z.code,{children:o,className:`language-${n}`,mdxType:"code",originalType:"code",parentName:"pre"}))}},10177:function(e,n,t){t.r(n),t.d(n,{assets:function(){return d},contentTitle:function(){return s},default:function(){return m},frontMatter:function(){return o},metadata:function(){return l},toc:function(){return c}});var r=t(25773),i=(t(27378),t(35318)),a=t(57292);const o={id:"uth-bridge-concept",title:"Bridge concept"},s=void 0,l={unversionedId:"uth-bridge-concept",id:"uth-bridge-concept",title:"Bridge concept",description:'To make use of any schema, uniforms have to create a bridge of it - a unified schema mapper. The Bridge class is an abstract class, which should be extended to create custom bridges. It implements all of the required methods and throws an error with meaningful "method not implemented" error.',source:"@site/../docs/uth-bridge-concept.mdx",sourceDirName:".",slug:"/uth-bridge-concept",permalink:"/docs/uth-bridge-concept",draft:!1,tags:[],version:"current",frontMatter:{id:"uth-bridge-concept",title:"Bridge concept"},sidebar:"docs",previous:{title:"AutoField algorithm",permalink:"/docs/uth-autofield-algorithm"}},d={},c=[],u={toc:c};function m(e){let{components:n,...o}=e;return(0,i.kt)("wrapper",(0,r.Z)({},u,o,{components:n,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"To make use of any schema, uniforms have to create a ",(0,i.kt)("em",{parentName:"p"},"bridge")," of it - a unified schema mapper. The ",(0,i.kt)("inlineCode",{parentName:"p"},"Bridge"),' class is an abstract class, which should be extended to create custom bridges. It implements all of the required methods and throws an error with meaningful "method not implemented" error.'),(0,i.kt)(a.f,{language:"tsx",replace:{"( .*?) {\n.*? }":"$1;","(import | // eslint).*?\n":""},source:t(75079),mdxType:"CodeSection"}))}m.isMDXComponent=!0},75079:function(e,n,t){t.r(n),n.default="import invariant from 'invariant';\nimport set from 'lodash/set';\n\nimport { UnknownObject } from './types';\n\nexport abstract class Bridge {\n // Each bridge can have a different set of parameters.\n constructor(...args: any[]) {\n invariant(\n this.constructor !== Bridge,\n 'Bridge cannot be instantiated (args=%o).',\n { args },\n );\n }\n\n /**\n * Get an error for field `name` out of `error`. There is no standarized\n * format, but fields treat truthy values as a sign of being invalid. Fields\n * receive this as a `error` guaranteed prop.\n */\n getError(name: string, error: unknown): unknown {\n return invariant(\n false,\n '%s have not implemented `getError` method (args=%o).',\n this.constructor.name,\n { name, error },\n );\n }\n\n /**\n * Get an error message for field `name` out of `error`. If there is no error,\n * return an empty string. Fields receive this as a `errorMessage` guaranteed\n * prop.\n */\n getErrorMessage(name: string, error: unknown): string {\n return invariant(\n false,\n '%s have not implemented `getErrorMessage` method (args=%o).',\n this.constructor.name,\n { name, error },\n );\n }\n\n /**\n * Get all error messages from `error`. Only `ErrorsField` make use of that\n * (in builtin themes).\n */\n getErrorMessages(error: unknown): string[] {\n return invariant(\n false,\n '%s have not implemented `getErrorMessages` method (args=%o).',\n this.constructor.name,\n { error },\n );\n }\n\n /**\n * Get internal field definition for field `name`. Fields receive this as a\n * `field` guaranteed prop. There is no standarized field format. Most bridges\n * use it as a common object, used in calculation of initial values, props,\n * and types.\n */\n getField(name: string): unknown {\n return invariant(\n false,\n '%s have not implemented `getField` method (args=%o).',\n this.constructor.name,\n { name },\n );\n }\n\n /**\n * Get initial value of field `name`. It is used as a default when no value is\n * set (e.g. the form is rendered with an empty `model`). Additionally,\n * `props` are this field instance props. If a field is rendered multiple\n * times, this function will be called multiple times, possibly with different\n * `props`.\n */\n getInitialValue(name: string): unknown {\n return invariant(\n false,\n '%s have not implemented `getInitialValue` method (args=%o).',\n this.constructor.name,\n { name },\n );\n }\n\n /**\n * Get initial model value recursively.\n */\n getInitialModel(): UnknownObject {\n const initialModel: UnknownObject = {};\n const subFields = this.getSubfields();\n for (const fieldName of subFields) {\n const initialValue = this.getInitialValue(fieldName);\n set(initialModel, fieldName, initialValue);\n }\n return initialModel;\n }\n\n /**\n * Get props defined in schema for a field `name`. There are no required nor\n * banned fields, however properties like `required` are often available.\n */\n getProps(name: string): UnknownObject {\n return invariant(\n false,\n '%s have not implemented `getProps` method (args=%o).',\n this.constructor.name,\n { name },\n );\n }\n\n /**\n * Get a list of subfields of field `name` or top-level fields, if no `name`\n * is passed.\n */\n getSubfields(name?: string): string[] {\n return invariant(\n false,\n '%s have not implemented `getSubfields` method (args=%o).',\n this.constructor.name,\n { name },\n );\n }\n\n /**\n * There is no standarized field type format. However, `AutoField` component\n * will work correctly only with standard JavaScript constructors, like\n * `String` or `Number`.\n */\n getType(name: string): unknown {\n return invariant(\n false,\n '%s have not implemented `getType` method (args=%o).',\n this.constructor.name,\n { name },\n );\n }\n\n /**\n * Get a validator function. The `options` here are from the `validator` prop\n * of the form. A validator function receives a model and returns an error or\n * a promise that will resolve (not reject!) with an error. If there is no\n * error, return (or resolve with) a `null` value instead.\n */\n getValidator(options?: unknown): (model: UnknownObject) => unknown {\n return invariant(\n false,\n '%s have not implemented `getValidator` method (args=%o).',\n this.constructor.name,\n { options },\n );\n }\n}\n"}}]); \ No newline at end of file diff --git a/assets/js/be10ca45.1e022c2a.js b/assets/js/be10ca45.1e022c2a.js new file mode 100644 index 000000000..739208f10 --- /dev/null +++ b/assets/js/be10ca45.1e022c2a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[789],{35318:function(e,t,r){r.d(t,{Zo:function(){return u},kt:function(){return f}});var n=r(27378);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=n.createContext({}),l=function(e){var t=n.useContext(s),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},u=function(e){var t=l(e.components);return n.createElement(s.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},p=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,a=e.originalType,s=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),p=l(r),f=o,h=p["".concat(s,".").concat(f)]||p[f]||m[f]||a;return r?n.createElement(h,i(i({ref:t},u),{},{components:r})):n.createElement(h,i({ref:t},u))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var a=r.length,i=new Array(a);i[0]=p;var c={};for(var s in t)hasOwnProperty.call(t,s)&&(c[s]=t[s]);c.originalType=e,c.mdxType="string"==typeof e?e:o,i[1]=c;for(var l=2;l<a;l++)i[l]=r[l];return n.createElement.apply(null,i)}return n.createElement.apply(null,r)}p.displayName="MDXCreateElement"},2881:function(e,t,r){r.r(t),r.d(t,{assets:function(){return s},contentTitle:function(){return i},default:function(){return m},frontMatter:function(){return a},metadata:function(){return c},toc:function(){return l}});var n=r(25773),o=(r(27378),r(35318));const a={id:"why-are-uniforms",title:"Why are uniforms?"},i=void 0,c={unversionedId:"why-are-uniforms",id:"why-are-uniforms",title:"Why are uniforms?",description:"Forms concept",source:"@site/../docs/why-are-uniforms.md",sourceDirName:".",slug:"/why-are-uniforms",permalink:"/docs/why-are-uniforms",draft:!1,tags:[],version:"current",frontMatter:{id:"why-are-uniforms",title:"Why are uniforms?"}},s={},l=[{value:"Forms concept",id:"forms-concept",level:2}],u={toc:l};function m(e){let{components:t,...r}=e;return(0,o.kt)("wrapper",(0,n.Z)({},u,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h2",{id:"forms-concept"},"Forms concept"),(0,o.kt)("p",null,"There\u2019s a very interesting class-based inheritance concept for forms.\nBasically, there are a few types of forms with different capabilities.\nMost of the time you\u2019ll be using either AutoForm or ValidatedForm, but there are quite a few more to choose from:"),(0,o.kt)("p",{align:"center"},(0,o.kt)("img",{src:"/img/uniforms-graph.png",alt:"AutoForm class inheritance from ValidatedQuickForm which subsequently inherits from QuickForm and ValidatedForm."})),(0,o.kt)("blockquote",null,(0,o.kt)("p",{parentName:"blockquote"},(0,o.kt)("strong",{parentName:"p"},"If you are not familiar with concept of HOC, read one of many posts about them first."),"\nI\u2019m sure you\u2019ve read at least one of ",(0,o.kt)("em",{parentName:"p"},"Why ES6 classes are bad")," or ",(0,o.kt)("em",{parentName:"p"},"class considered harmful")," posts. I\u2019ve read them too, so why is uniforms using classes? Well, it\u2019s all about the complexity."),(0,o.kt)("p",{parentName:"blockquote"},"-- ",(0,o.kt)("cite",null,(0,o.kt)("a",{parentName:"p",href:"https://github.com/radekmie"},"Rados\u0142aw Miernik")))),(0,o.kt)("p",{align:"center"},(0,o.kt)("img",{src:"/img/hoc-hell.png",alt:"React DevTools when lots of HOC\u2019s are applied to a component."})),(0,o.kt)("blockquote",null,(0,o.kt)("p",{parentName:"blockquote"},"I wanted to achieve the same functionality as with multiple HOCs, but within one component. To be honest, readability is more important than performance. In short, I\u2019ve reached (more or less) traits with ES6 classes. The result?"),(0,o.kt)("p",{parentName:"blockquote"},"-- ",(0,o.kt)("cite",null,(0,o.kt)("a",{parentName:"p",href:"https://github.com/radekmie"},"Rados\u0142aw Miernik")))),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"import BaseForm from './BaseForm';\nimport QuickForm from './QuickForm';\nimport ValidatedForm from './ValidatedForm';\n\nconst ValidatedQuickForm = ValidatedForm.Validated(QuickForm.Quick(BaseForm));\n")),(0,o.kt)("p",{align:"center"},(0,o.kt)("img",{src:"/img/uniforms-traits.png",alt:'Single AutoValidatedQuickSemanticForm component (using 5 "traits") viewed in React DevTools.'})),(0,o.kt)("p",null,"While it\u2019s not a universal approach that will work in every situation, using it in uniforms allows us to deliver clean-looking components while keeping extensibility and separation of concerns."),(0,o.kt)("hr",null),(0,o.kt)("p",null,"Based on ",(0,o.kt)("a",{parentName:"p",href:"https://blog.meteor.com/managing-forms-in-a-meteor-react-project-with-uniforms-33d60602b43a"},"Managing forms in a Meteor/React project with the uniforms package")," written by ",(0,o.kt)("a",{parentName:"p",href:"https://github.com/MacRusher"},"Maciej Stasie\u0142uk"),"."))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/be85e8a7.8a55419c.js b/assets/js/be85e8a7.8a55419c.js new file mode 100644 index 000000000..53d564846 --- /dev/null +++ b/assets/js/be85e8a7.8a55419c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[943],{15745:function(e){e.exports=JSON.parse('{"name":"docusaurus-plugin-content-pages","id":"default"}')}}]); \ No newline at end of file diff --git a/assets/js/c0b88abe.b1c00272.js b/assets/js/c0b88abe.b1c00272.js new file mode 100644 index 000000000..7ae9f99c6 --- /dev/null +++ b/assets/js/c0b88abe.b1c00272.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[517],{35318:function(e,t,a){a.d(t,{Zo:function(){return s},kt:function(){return k}});var n=a(27378);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function i(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){r(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function o(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var d=n.createContext({}),p=function(e){var t=n.useContext(d),a=t;return e&&(a="function"==typeof e?e(t):i(i({},t),e)),a},s=function(e){var t=p(e.components);return n.createElement(d.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},c=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,l=e.originalType,d=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),c=p(a),k=r,N=c["".concat(d,".").concat(k)]||c[k]||m[k]||l;return a?n.createElement(N,i(i({ref:t},s),{},{components:a})):n.createElement(N,i({ref:t},s))}));function k(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=a.length,i=new Array(l);i[0]=c;var o={};for(var d in t)hasOwnProperty.call(t,d)&&(o[d]=t[d]);o.originalType=e,o.mdxType="string"==typeof e?e:r,i[1]=o;for(var p=2;p<l;p++)i[p]=a[p];return n.createElement.apply(null,i)}return n.createElement.apply(null,a)}c.displayName="MDXCreateElement"},64574:function(e,t,a){a.r(t),a.d(t,{assets:function(){return d},contentTitle:function(){return i},default:function(){return m},frontMatter:function(){return l},metadata:function(){return o},toc:function(){return p}});var n=a(25773),r=(a(27378),a(35318));const l={id:"api-fields",title:"Fields"},i=void 0,o={unversionedId:"api-fields",id:"api-fields",title:"Fields",description:"uniforms provide a set of predefined components that can be used as form fields.",source:"@site/../docs/api-fields.md",sourceDirName:".",slug:"/api-fields",permalink:"/docs/api-fields",draft:!1,tags:[],version:"current",frontMatter:{id:"api-fields",title:"Fields"},sidebar:"docs",previous:{title:"Forms",permalink:"/docs/api-forms"},next:{title:"Bridges",permalink:"/docs/api-bridges"}},d={},p=[{value:"Fields",id:"fields",level:2},{value:"<code>AutoField</code>",id:"autofield",level:3},{value:"Props:",id:"props",level:5},{value:"Props usage:",id:"props-usage",level:5},{value:"<code>AutoFields</code>",id:"autofields",level:3},{value:"Props:",id:"props-1",level:5},{value:"Props usage:",id:"props-usage-1",level:5},{value:"<code>BoolField</code>",id:"boolfield",level:3},{value:"Props:",id:"props-2",level:5},{value:"Props usage:",id:"props-usage-2",level:5},{value:"<code>DateField</code>",id:"datefield",level:3},{value:"Props:",id:"props-3",level:5},{value:"Props usage:",id:"props-usage-3",level:5},{value:"<code>ErrorField</code>",id:"errorfield",level:3},{value:"Props:",id:"props-4",level:5},{value:"Props usage:",id:"props-usage-4",level:5},{value:"<code>ErrorsField</code>",id:"errorsfield",level:3},{value:"Props:",id:"props-5",level:5},{value:"Props usage:",id:"props-usage-5",level:5},{value:"<code>HiddenField</code>",id:"hiddenfield",level:3},{value:"Props:",id:"props-6",level:5},{value:"Props usage:",id:"props-usage-6",level:5},{value:"<code>ListAddField</code>",id:"listaddfield",level:3},{value:"Props:",id:"props-7",level:5},{value:"Props usage:",id:"props-usage-7",level:5},{value:"<code>ListDelField</code>",id:"listdelfield",level:3},{value:"Props:",id:"props-8",level:5},{value:"Props usage:",id:"props-usage-8",level:5},{value:"<code>ListField</code>",id:"listfield",level:3},{value:"Props:",id:"props-9",level:5},{value:"Props usage:",id:"props-usage-9",level:5},{value:"<code>ListItemField</code>",id:"listitemfield",level:3},{value:"Props usage:",id:"props-usage-10",level:5},{value:"<code>LongTextField</code>",id:"longtextfield",level:3},{value:"Props:",id:"props-10",level:5},{value:"Props usage:",id:"props-usage-11",level:5},{value:"<code>NestField</code>",id:"nestfield",level:3},{value:"Props:",id:"props-11",level:5},{value:"Props usage:",id:"props-usage-12",level:5},{value:"<code>NumField</code>",id:"numfield",level:3},{value:"Props:",id:"props-12",level:5},{value:"Props usage:",id:"props-usage-13",level:5},{value:"<code>RadioField</code>",id:"radiofield",level:3},{value:"Props:",id:"props-13",level:5},{value:"Props usage:",id:"props-usage-14",level:5},{value:"<code>SelectField</code>",id:"selectfield",level:3},{value:"Props:",id:"props-14",level:5},{value:"Props usage:",id:"props-usage-15",level:5},{value:"<code>SubmitField</code>",id:"submitfield",level:3},{value:"Props:",id:"props-15",level:5},{value:"Props usage:",id:"props-usage-16",level:5},{value:"<code>TextField</code>",id:"textfield",level:3},{value:"Props:",id:"props-16",level:5},{value:"Props usage:",id:"props-usage-17",level:5},{value:"Common props",id:"common-props",level:2},{value:"Props usage:",id:"props-usage-18",level:5},{value:"Props propagation",id:"props-propagation",level:2}],s={toc:p};function m(e){let{components:t,...a}=e;return(0,r.kt)("wrapper",(0,n.Z)({},s,a,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("p",null,"uniforms provide a set of predefined components that can be used as form fields."),(0,r.kt)("p",null,"The list below contains a guaranteed set of fields, implemented in every theme package:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Component"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"AutoField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Automatically renders a given field.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"AutoFields")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Automatically renders given fields.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"BoolField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Checkbox.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"DateField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"HTML5 ",(0,r.kt)("inlineCode",{parentName:"td"},"date")," or ",(0,r.kt)("inlineCode",{parentName:"td"},"datetime-local")," input.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"ErrorField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Error message for a given field.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"ErrorsField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Error message with a list of validation errors.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"HiddenField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Hidden field (with a possibility to omit in DOM).")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"ListAddField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"An icon with action to add a list item.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"ListDelField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"An icon with action to remove a list item.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"ListField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"List of nested fields.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"ListItemField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Single list item wrapper.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"LongTextField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Textarea.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"NestField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Block of nested fields.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"NumField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Numeric input.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"RadioField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Radio checkbox.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"SelectField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Select (or set of radio checkboxes).")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"SubmitField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Submit button.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"TextField")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Text (or any HTML5 compatible) input.")))),(0,r.kt)("h2",{id:"fields"},"Fields"),(0,r.kt)("h3",{id:"autofield"},(0,r.kt)("inlineCode",{parentName:"h3"},"AutoField")),(0,r.kt)("p",null,(0,r.kt)("inlineCode",{parentName:"p"},"AutoField")," is basically a field renderer - it will render a field of a type adequate to the one defined in the schema,\naccording to the ",(0,r.kt)("a",{parentName:"p",href:"/docs/uth-autofield-algorithm"},(0,r.kt)("inlineCode",{parentName:"a"},"AutoField")," algorithm"),".\nYou can also directly pass a component to it (by a ",(0,r.kt)("inlineCode",{parentName:"p"},"component")," prop).\nAll additional props will be passed to the result field component."),(0,r.kt)("h5",{id:"props"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Default"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"component")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field according to the ",(0,r.kt)("inlineCode",{parentName:"td"},"AutoField")," algorithm"),(0,r.kt)("td",{parentName:"tr",align:"center"},"Component to render")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"name")),(0,r.kt)("td",{parentName:"tr",align:"center"},"-"),(0,r.kt)("td",{parentName:"tr",align:"center"},"Name of the field in the schema")))),(0,r.kt)("h5",{id:"props-usage"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { AutoField } from 'uniforms-unstyled';\n\n<AutoField component={MyComponent} />;\n")),(0,r.kt)("h3",{id:"autofields"},(0,r.kt)("inlineCode",{parentName:"h3"},"AutoFields")),(0,r.kt)("p",null,(0,r.kt)("inlineCode",{parentName:"p"},"AutoFields")," is basically a set of rendered ",(0,r.kt)("inlineCode",{parentName:"p"},"AutoField"),"s.\nBy default, the rendered fields will be ",(0,r.kt)("inlineCode",{parentName:"p"},"AutoField")," in a chosen theme.\nHowever, you can replace the standard ",(0,r.kt)("inlineCode",{parentName:"p"},"AutoField")," with ",(0,r.kt)("a",{parentName:"p",href:"/docs/uth-autofield-algorithm#overriding-autofield"},(0,r.kt)("inlineCode",{parentName:"a"},"AutoField.componentDetectorContext")),"."),(0,r.kt)("p",null,"The ",(0,r.kt)("inlineCode",{parentName:"p"},"element")," property defines a wrapping component.\nE.g. you want to group your fields inside a section, just do ",(0,r.kt)("inlineCode",{parentName:"p"},'element="section"'),". The default one is ",(0,r.kt)("inlineCode",{parentName:"p"},"div"),"."),(0,r.kt)("h5",{id:"props-1"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Default"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"element")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"div")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Fields wrapper")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"fields")),(0,r.kt)("td",{parentName:"tr",align:"center"},"All schema fields"),(0,r.kt)("td",{parentName:"tr",align:"center"},"List of fields to render")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"omitFields")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"[]")),(0,r.kt)("td",{parentName:"tr",align:"center"},"List of fields to omit")))),(0,r.kt)("h5",{id:"props-usage-1"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { AutoFields } from 'uniforms-unstyled';\n\n<AutoFields\n element=\"section\"\n fields={['fieldA', 'fieldB']}\n omitFields={['fieldA', 'fieldB']}\n/>;\n")),(0,r.kt)("h3",{id:"boolfield"},(0,r.kt)("inlineCode",{parentName:"h3"},"BoolField")),(0,r.kt)("p",null,"A checkbox."),(0,r.kt)("h5",{id:"props-2"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Available in"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"appearance")),(0,r.kt)("td",{parentName:"tr",align:"center"},'Field appearance. Set to "toggle" to appear as a Material Toggle or to "checkbox" (or leave it undefined) to use a Checkbox appearance.'),(0,r.kt)("td",{parentName:"tr",align:"center"},"material, mui")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"extra")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Extra feedback text. In the antd theme, this renders addtional help text below any validation messages."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"feedbackable")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field feedback state. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"grid")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. Bootstrap grid layout style. Number is an equivalent of {sm: n}. Object is a {mode: size} object. Complete string is simply passed through."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"help")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Help text. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd, bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"helpClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Help block className. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inline")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Checkbox inline state. In bootstrap themes, a label is rendered as a text but in inline mode, it's treated as a field label."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inputClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inputRef")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Setting ref prop to a field won't work as desired, because you'll receive a field component rather than an HTML input. If you need an input ref, use this prop instead."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelBefore")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Left label. In bootstrap themes, label is rendered on the right side of a checkbox. This label is rendered above the field."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Label className. A custom className for the field's label."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelCol")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. The layout of label. You can set span and/or offset."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"showInlineError")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field inline error. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd, bootstrap3, bootstrap4, bootstrap5, semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"wrapClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field and sourroundings wrap className. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"wrapperCol")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. The layout for input controls. Same as labelCol."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")))),(0,r.kt)("h5",{id:"props-usage-2"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { BoolField } from 'uniforms-unstyled';\nimport { useRef } from 'react'\n\nconst inputRef = useRef();\n\n<BoolField\n appearance=\"checkbox\" // Renders a material-ui Checkbox\n appearance=\"toggle\" // Renders a material-ui Toggle\n extra=\"Extra Feedback or Help\"\n feedbackable\n grid=\"4\" // 'col-4-sm' on label, 'col-8-sm' on input\n grid=\"col-6-xl\" // 'col-6-xl' on label, 'col-6-xl' on input\n grid={3} // 'col-3-sm' on label, 'col-9-sm' on input\n grid={{md: 5}} // 'col-5-md' on label, 'col-7-md' on input\n help=\"Need help?\"\n helpClassName=\"a b c\"\n inline\n inputClassName=\"a b c\"\n inputRef={inputRef}\n labelBefore=\"Label\"\n labelClassName=\"a b c\" // You can either specify them as a single string\n labelClassName=[ 'a', 'b', 'c' ] // or as an array of strings\n labelCol={{offset: 2}} // 'ant-col-offset-2' on label\n labelCol={{span: 4}} // 'ant-col-4' on label\n showInlineError\n wrapClassName=\"a b c\"\n wrapperCol={{offset: 2}} // 'ant-col-offset-2' on field\n wrapperCol={{span: 4}} // 'ant-col-4' on field\n/>;\n")),(0,r.kt)("h3",{id:"datefield"},(0,r.kt)("inlineCode",{parentName:"h3"},"DateField")),(0,r.kt)("h5",{id:"props-3"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Available in"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"extra")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Extra feedback text. In the antd theme, this renders addtional help text below any validation messages."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"feedbackable")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field feedback state. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"grid")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. Bootstrap grid layout style. Number is an equivalent of {sm: n}. Object is a {mode: size} object. Complete string is simply passed through."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"help")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Help text. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd, bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"helpClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Help block className. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"icon")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input icon. Semantic inputs can have an icon. By default, it's placed on the right side - to place it on the left, use ",(0,r.kt)("inlineCode",{parentName:"td"},"iconLeft")," prop instead."),(0,r.kt)("td",{parentName:"tr",align:"center"},"semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"iconLeft")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Semantic inputs can have an icon. With this prop, it's placed on the left side - to place it on the right, use icon prop instead."),(0,r.kt)("td",{parentName:"tr",align:"center"},"semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"iconProps")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input icon props. Semantic inputs can have an icon. These props are passed directly to the icon element."),(0,r.kt)("td",{parentName:"tr",align:"center"},"semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inputClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inputRef")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Setting ref prop to a field won't work as desired, because you'll receive a field component rather than an HTML input. If you need an input ref, use this prop instead."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Label className. A custom className for the field's label."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelCol")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. The layout of label. You can set span and/or offset."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelProps")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Props for the InputLabel"),(0,r.kt)("td",{parentName:"tr",align:"center"},"material, mui")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"max")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Maximum value. Date object."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"min")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Minimal value. Date object."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"showInlineError")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field inline error. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd, bootstrap3, bootstrap4, bootstrap5, semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"timeFormat")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Display time picker in ampm (12hr) format or 24hr format."),(0,r.kt)("td",{parentName:"tr",align:"center"},"material, mui")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"type")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Display date and time or date only picker. Format value according to its type"),(0,r.kt)("td",{parentName:"tr",align:"center"},"All except antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"wrapClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field and sourroundings wrap className. In SemanticUI theme, this class name is used on ui input wrapper, so you can pass classes like small, huge, inverted, transparent etc."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5, semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"wrapperCol")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. The layout for input controls. Same as labelCol."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")))),(0,r.kt)("h5",{id:"props-usage-3"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { DateField } from 'uniforms-unstyled';\nimport { useRef } from 'react'\n\nconst inputRef = useRef();\n\n<DateField\n extra=\"Extra Feedback or Help\"\n feedbackable\n grid=\"4\" // 'col-4-sm' on label, 'col-8-sm' on input\n grid=\"col-6-xl\" // 'col-6-xl' on label, 'col-6-xl' on input\n grid={3} // 'col-3-sm' on label, 'col-9-sm' on input\n grid={{md: 5}} // 'col-5-md' on label, 'col-7-md' on input\n help=\"Need help?\"\n helpClassName=\"a b c\"\n icon=\"user\"\n iconLeft=\"user\"\n iconProps={{onClick() {}}}\n inputClassName=\"a b c\"\n inputRef={inputRef}\n labelClassName=\"a b c\" // You can either specify them as a single string\n labelClassName=[ 'a', 'b', 'c' ] // or as an array of strings\n labelCol={{offset: 2}} // 'ant-col-offset-2' on label\n labelCol={{span: 4}} // 'ant-col-4' on label\n labelProps={{shrink: true, disableAnimation: true}}\n max={new Date(2100, 1, 1)}\n min={new Date(2000, 1, 1)}\n showInlineError\n timeFormat=\"ampm\"\n wrapClassName=\"a b c\"\n wrapperCol={{offset: 2}} // 'ant-col-offset-2' on field\n wrapperCol={{span: 4}} // 'ant-col-4' on field\n/>;\n")),(0,r.kt)("h3",{id:"errorfield"},(0,r.kt)("inlineCode",{parentName:"h3"},"ErrorField")),(0,r.kt)("p",null,"Error message renderer."),(0,r.kt)("h5",{id:"props-4"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"children")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Custom content. By default, it will render a block with the error message (if any), but you can customize the content.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"name")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Target field. This field error should be used.")))),(0,r.kt)("h5",{id:"props-usage-4"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { ErrorField } from 'uniforms-unstyled';\n\n<ErrorField children={children} name=\"field\" />;\n")),(0,r.kt)("h3",{id:"errorsfield"},(0,r.kt)("inlineCode",{parentName:"h3"},"ErrorsField")),(0,r.kt)("p",null,"Error messages renderer."),(0,r.kt)("h5",{id:"props-5"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"children")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Custom content. By default, it will render a block with the error messages (if any), but you can customize the content.")))),(0,r.kt)("h5",{id:"props-usage-5"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { ErrorsField } from 'uniforms-unstyled';\n\n<ErrorsField children={children} />;\n")),(0,r.kt)("h3",{id:"hiddenfield"},(0,r.kt)("inlineCode",{parentName:"h3"},"HiddenField")),(0,r.kt)("h5",{id:"props-6"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"name")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field name. Used for identification. It should match your schema - if not, it will throw an error.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"value")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field value. This field has completely different semantics. When a value is set, then it's updating a current model instead of being passed to the field.")))),(0,r.kt)("h5",{id:"props-usage-6"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { HiddenField } from 'uniforms-unstyled';\n\n<HiddenField name=\"field\" value={value} />;\n")),(0,r.kt)("h3",{id:"listaddfield"},(0,r.kt)("inlineCode",{parentName:"h3"},"ListAddField")),(0,r.kt)("h5",{id:"props-7"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Available in"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"addIcon")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Icon. By default, glyphicon is used."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")))),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Note:")," This is one of ",(0,r.kt)("em",{parentName:"p"},"internal")," components of ",(0,r.kt)("inlineCode",{parentName:"p"},"ListField"),"."),(0,r.kt)("h5",{id:"props-usage-7"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { ListAddField } from 'uniforms-unstyled';\n\n<ListAddField addIcon={<MyAddIcon />} />;\n")),(0,r.kt)("h3",{id:"listdelfield"},(0,r.kt)("inlineCode",{parentName:"h3"},"ListDelField")),(0,r.kt)("h5",{id:"props-8"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Available in"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"removeIcon")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Icon. By default, glyphicon is used."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")))),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Note:")," This is one of ",(0,r.kt)("em",{parentName:"p"},"internal")," components of ",(0,r.kt)("inlineCode",{parentName:"p"},"ListField"),"."),(0,r.kt)("h5",{id:"props-usage-8"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { ListDelField } from 'uniforms-unstyled';\n\n<ListDelField removeIcon={<MyRemoveIcon />} />;\n")),(0,r.kt)("h3",{id:"listfield"},(0,r.kt)("inlineCode",{parentName:"h3"},"ListField")),(0,r.kt)("h5",{id:"props-9"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Default"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Available in"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"addIcon")),(0,r.kt)("td",{parentName:"tr",align:"center"},"glyphicon"),(0,r.kt)("td",{parentName:"tr",align:"center"},"Icon. It's passed to the ListAddField."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"initialCount")),(0,r.kt)("td",{parentName:"tr",align:"center"},"-"),(0,r.kt)("td",{parentName:"tr",align:"center"},"Initial items count. At least this amount of fields will be rendered at the beginning."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"itemProps")),(0,r.kt)("td",{parentName:"tr",align:"center"},"-"),(0,r.kt)("td",{parentName:"tr",align:"center"},"ListItemField props. These props are passed to the ListItemField."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"removeIcon")),(0,r.kt)("td",{parentName:"tr",align:"center"},"glyphicon"),(0,r.kt)("td",{parentName:"tr",align:"center"},"Icon. It's passed to the ListDelField."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"showInlineError")),(0,r.kt)("td",{parentName:"tr",align:"center"}),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field inline error. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5, semantic")))),(0,r.kt)("h5",{id:"props-usage-9"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { ListField } from 'uniforms-unstyled';\n\n<ListField\n addIcon={<MyAddIcon />}\n initialCount={5}\n itemProps={\n {\n /* ... */\n }\n }\n removeIcon={<MyRemoveIcon />}\n showInlineError\n/>;\n")),(0,r.kt)("h3",{id:"listitemfield"},(0,r.kt)("inlineCode",{parentName:"h3"},"ListItemField")),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Default"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Available in"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"removeIcon")),(0,r.kt)("td",{parentName:"tr",align:"center"},"glyphicon"),(0,r.kt)("td",{parentName:"tr",align:"center"},"Icon. It's passed to the ListDelField."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")))),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Note:")," This is one of ",(0,r.kt)("em",{parentName:"p"},"internal")," components of ",(0,r.kt)("inlineCode",{parentName:"p"},"ListField"),"."),(0,r.kt)("h5",{id:"props-usage-10"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { ListItemField } from 'uniforms-unstyled';\n\n<ListItemField removeIcon={<MyRemoveIcon />} />;\n")),(0,r.kt)("h3",{id:"longtextfield"},(0,r.kt)("inlineCode",{parentName:"h3"},"LongTextField")),(0,r.kt)("p",null,"A textarea."),(0,r.kt)("h5",{id:"props-10"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Available in"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"extra")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Extra feedback text. In the antd theme, this renders addtional help text below any validation messages."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"grid")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. Bootstrap grid layout style. Number is an equivalent of {sm: n}. Object is a {mode: size} object. Complete string is simply passed through."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"help")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Help text. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd, bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"helpClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Help block className. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"icon")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input icon. Semantic inputs can have an icon. By default, it's placed on the right side - to place it on the left, use ",(0,r.kt)("inlineCode",{parentName:"td"},"iconLeft")," prop instead."),(0,r.kt)("td",{parentName:"tr",align:"center"},"semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"iconLeft")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Semantic inputs can have an icon. With this prop, it's placed on the left side - to place it on the right, use icon prop instead."),(0,r.kt)("td",{parentName:"tr",align:"center"},"semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"iconProps")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input icon props. Semantic inputs can have an icon. These props are passed directly to the icon element."),(0,r.kt)("td",{parentName:"tr",align:"center"},"semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inputClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inline")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Checkbox inline state. In bootstrap themes, a label is rendered as a text but in inline mode, it's treated as a field label."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inputRef")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Setting ref prop to a field won't work as desired, because you'll receive a field component rather than an HTML input. If you need an input ref, use this prop instead."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelBefore")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Left label. In bootstrap themes, label is rendered on the right side of a checkbox. This label is rendered above the field."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Label className. A custom className for the field's label."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelCol")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. The layout of label. You can set span and/or offset."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"showInlineError")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field inline error. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd, bootstrap3, bootstrap4, bootstrap5, semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"wrapperCol")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. The layout for input controls. Same as labelCol."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"wrapClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field and sourroundings wrap className. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")))),(0,r.kt)("h5",{id:"props-usage-11"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { LongTextField } from 'uniforms-unstyled';\nimport { useRef } from 'react'\n\nconst inputRef = useRef();\n\n<LongTextField\n extra=\"Extra Feedback or Help\"\n grid=\"4\" // 'col-4-sm' on label, 'col-8-sm' on input\n grid=\"col-6-xl\" // 'col-6-xl' on label, 'col-6-xl' on input\n grid={3} // 'col-3-sm' on label, 'col-9-sm' on input\n grid={{md: 5}} // 'col-5-md' on label, 'col-7-md' on input\n help=\"Need help?\"\n helpClassName=\"a b c\"\n icon=\"user\"\n iconLeft=\"user\"\n iconProps={{onClick() {}}}\n inputClassName=\"a b c\"\n inputRef={inputRef}\n labelClassName=\"a b c\" // You can either specify them as a single string\n labelClassName=[ 'a', 'b', 'c' ] // or as an array of strings\n labelCol={{offset: 2}} // 'ant-col-offset-2' on label\n labelCol={{span: 4}} // 'ant-col-4' on label\n showInlineError\n wrapClassName=\"a b c\"\n wrapperCol={{offset: 2}} // 'ant-col-offset-2' on field\n wrapperCol={{span: 4}} // 'ant-col-4' on field\n/>;\n")),(0,r.kt)("h3",{id:"nestfield"},(0,r.kt)("inlineCode",{parentName:"h3"},"NestField")),(0,r.kt)("h5",{id:"props-11"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Available in"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"fields")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Array of rendered fields. If no custom content provided, only those fields are rendered. By default, All of nested fields are rendered."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"grouped")),(0,r.kt)("td",{parentName:"tr",align:"center"},'Add / remove "grouped" class from the field. In Semantic, fields can be grouped using this class. By default, this class is added to the NestField.'),(0,r.kt)("td",{parentName:"tr",align:"center"},"semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"showInlineError")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field inline error. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd, bootstrap3, bootstrap4, bootstrap5, semantic")))),(0,r.kt)("h5",{id:"props-usage-12"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { NestField } from 'uniforms-unstyled';\n\n<NestField fields={['fieldA', 'fieldB' /* ... */]} grouped showInlineError />;\n")),(0,r.kt)("h3",{id:"numfield"},(0,r.kt)("inlineCode",{parentName:"h3"},"NumField")),(0,r.kt)("p",null,"A numeric input field."),(0,r.kt)("h5",{id:"props-12"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Available in"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"decimal")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Decimal mode. This will change value step from 1 to 0.01."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"extra")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Extra feedback text. In the antd theme, this renders addtional help text below any validation messages."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"grid")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. Bootstrap grid layout style. Number is an equivalent of {sm: n}. Object is a {mode: size} object. Complete string is simply passed through."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"help")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Help text. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd, bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"helpClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Help block className. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"icon")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input icon. Semantic inputs can have an icon. By default, it's placed on the right side - to place it on the left, use ",(0,r.kt)("inlineCode",{parentName:"td"},"iconLeft")," prop instead."),(0,r.kt)("td",{parentName:"tr",align:"center"},"semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"iconLeft")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Semantic inputs can have an icon. With this prop, it's placed on the left side - to place it on the right, use icon prop instead."),(0,r.kt)("td",{parentName:"tr",align:"center"},"semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"iconProps")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input icon props. Semantic inputs can have an icon. These props are passed directly to the icon element."),(0,r.kt)("td",{parentName:"tr",align:"center"},"semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inputClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inline")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Checkbox inline state. In bootstrap themes, a label is rendered as a text but in inline mode, it's treated as a field label."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inputRef")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Setting ref prop to a field won't work as desired, because you'll receive a field component rather than an HTML input. If you need an input ref, use this prop instead."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelBefore")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Left label. In bootstrap themes, label is rendered on the right side of a checkbox. This label is rendered above the field."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Label className. A custom className for the field's label."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelCol")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. The layout of label. You can set span and/or offset."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"max")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Maximum value. Date object."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"min")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Minimal value. Date object."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"showInlineError")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field inline error. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd, bootstrap3, bootstrap4, bootstrap5, semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"step")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input step."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"wrapperCol")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. The layout for input controls. Same as labelCol."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"wrapClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field and sourroundings wrap className. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")))),(0,r.kt)("h5",{id:"props-usage-13"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { NumField } from 'uniforms-unstyled';\nimport { useRef } from 'react'\n\nconst inputRef = useRef();\n\n<NumField\n decimal\n extra=\"Extra Feedback or Help\"\n grid=\"4\" // 'col-4-sm' on label, 'col-8-sm' on input\n grid=\"col-6-xl\" // 'col-6-xl' on label, 'col-6-xl' on input\n grid={3} // 'col-3-sm' on label, 'col-9-sm' on input\n grid={{md: 5}} // 'col-5-md' on label, 'col-7-md' on input\n help=\"Need help?\"\n helpClassName=\"a b c\"\n icon=\"user\"\n iconLeft=\"user\"\n iconProps={{onClick() {}}}\n inputClassName=\"a b c\"\n inputRef={inputRef}\n labelClassName=\"a b c\" // You can either specify them as a single string\n labelClassName=[ 'a', 'b', 'c' ] // or as an array of strings\n labelCol={{offset: 2}} // 'ant-col-offset-2' on label\n labelCol={{span: 4}} // 'ant-col-4' on label\n max={100}\n min={10}\n showInlineError\n step={5}\n wrapClassName=\"a b c\"\n wrapperCol={{offset: 2}} // 'ant-col-offset-2' on field\n wrapperCol={{span: 4}} // 'ant-col-4' on field\n/>;\n")),(0,r.kt)("h3",{id:"radiofield"},(0,r.kt)("inlineCode",{parentName:"h3"},"RadioField")),(0,r.kt)("h5",{id:"props-13"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Available in"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inline")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Checkbox inline state. In bootstrap themes, a label is rendered as a text but in inline mode, it's treated as a field label."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"options")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Options. It can be either an object or an array (or a function, that returns it)."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelCol")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. The layout of label. You can set span and/or offset."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"wrapperCol")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. The layout for input controls. Same as labelCol."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inputClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Label className. A custom className for the field's label."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"showInlineError")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field inline error. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd, bootstrap3, bootstrap4, bootstrap5, semantic")))),(0,r.kt)("h5",{id:"props-usage-14"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { RadioField } from 'uniforms-unstyled';\n\n<RadioField\n inline\n inputClassName=\"a b c\"\n labelClassName=\"a b c\" // You can either specify them as a single string\n labelClassName=[ 'a', 'b', 'c' ] // or as an array of strings\n labelCol={{offset: 2}} // 'ant-col-offset-2' on label\n labelCol={{span: 4}} // 'ant-col-4' on label\n options={[{ label: 'A', value: 'a' }, { label: 'B', value: 'b' }, /* ... */]}\n showInlineError\n wrapperCol={{offset: 2}} // 'ant-col-offset-2' on field\n wrapperCol={{span: 4}} // 'ant-col-4' on field\n/>;\n")),(0,r.kt)("h3",{id:"selectfield"},(0,r.kt)("inlineCode",{parentName:"h3"},"SelectField")),(0,r.kt)("h5",{id:"props-14"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Available in"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"appearance")),(0,r.kt)("td",{parentName:"tr",align:"center"},'Field appearance. Set to "toggle" to appear as a Material Toggle or to "checkbox" (or leave it undefined) to use a Checkbox appearance.'),(0,r.kt)("td",{parentName:"tr",align:"center"},"material, mui")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"checkboxes")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Turn on checkbox/radio mode. It's always true in multiple (i.e. fieldType === Array) mode."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"disableItem")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Disable items (options) based on a given predicate."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"extra")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Extra feedback text. In the antd theme, this renders additional help text below any validation messages."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"help")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Help text. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd, bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"helpClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Help block className. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inline")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Checkbox inline state. In bootstrap themes, a label is rendered as a text but in inline mode, it's treated as a field label."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inputClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inputRef")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Setting ref prop to a field won't work as desired, because you'll receive a field component rather than an HTML input. If you need an input ref, use this prop instead."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Label className. A custom className for the field's label."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelCol")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. The layout of label. You can set span and/or offset."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelProps")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Props for the InputLabel"),(0,r.kt)("td",{parentName:"tr",align:"center"},"material, mui")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"options")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Options. It can be either an object or an array (or a function, that returns it)."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"showInlineError")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field inline error. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd, bootstrap3, bootstrap4, bootstrap5, semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"wrapperCol")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. The layout for input controls. Same as labelCol."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"wrapClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field and surroundings wrap className. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"textFieldProps")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Props injected directly to ",(0,r.kt)("inlineCode",{parentName:"td"},"TextField")," ( valid only for non-checkbox ",(0,r.kt)("inlineCode",{parentName:"td"},"SelectField")," )."),(0,r.kt)("td",{parentName:"tr",align:"center"},"material, mui")))),(0,r.kt)("h5",{id:"props-usage-15"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { SelectField } from 'uniforms-unstyled';\nimport { useRef } from 'react'\n\nconst inputRef = useRef();\n\n<SelectField\n checkboxes\n disableItem={value => value % 2}\n extra=\"Extra Feedback or Help\"\n help=\"Need help?\"\n helpClassName=\"a b c\"\n inline\n inputClassName=\"a b c\"\n inputRef={inputRef}\n labelClassName=\"a b c\" // You can either specify them as a single string\n labelClassName=[ 'a', 'b', 'c' ] // or as an array of strings\n labelCol={{offset: 2}} // 'ant-col-offset-2' on label\n labelCol={{span: 4}} // 'ant-col-4' on label\n labelProps={{shrink: true, disableAnimation: true}}\n options={[{ label: 'A', value: 'a' }, { label: 'B', value: 'b' }, /* ... */]}\n showInlineError\n wrapperCol={{offset: 2}} // 'ant-col-offset-2' on field\n wrapperCol={{span: 4}} // 'ant-col-4' on field\n/>;\n")),(0,r.kt)("h3",{id:"submitfield"},(0,r.kt)("inlineCode",{parentName:"h3"},"SubmitField")),(0,r.kt)("h5",{id:"props-15"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Available in"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inputClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inputRef")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Setting ref prop to a field won't work as desired, because you'll receive a field component rather than an HTML input. If you need an input ref, use this prop instead."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")))),(0,r.kt)("h5",{id:"props-usage-16"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { SubmitField } from 'uniforms-unstyled';\nimport { useRef } from 'react';\n\nconst inputRef = useRef();\n\n<SubmitField inputClassName=\"a b c\" inputRef={inputRef} />;\n")),(0,r.kt)("h3",{id:"textfield"},(0,r.kt)("inlineCode",{parentName:"h3"},"TextField")),(0,r.kt)("h5",{id:"props-16"},"Props:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Available in"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"extra")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Extra feedback text. In the antd theme, this renders addtional help text below any validation messages."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"grid")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. Bootstrap grid layout style. Number is an equivalent of {sm: n}. Object is a {mode: size} object. Complete string is simply passed through."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"help")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Help text. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd, bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"helpClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Help block className. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"icon")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input icon. Semantic inputs can have an icon. By default, it's placed on the right side - to place it on the left, use ",(0,r.kt)("inlineCode",{parentName:"td"},"iconLeft")," prop instead."),(0,r.kt)("td",{parentName:"tr",align:"center"},"semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"iconLeft")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Semantic inputs can have an icon. With this prop, it's placed on the left side - to place it on the right, use icon prop instead."),(0,r.kt)("td",{parentName:"tr",align:"center"},"semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"iconProps")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input icon props. Semantic inputs can have an icon. These props are passed directly to the icon element."),(0,r.kt)("td",{parentName:"tr",align:"center"},"semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inputClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"inputRef")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Setting ref prop to a field won't work as desired, because you'll receive a field component rather than an HTML input. If you need an input ref, use this prop instead."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Label className. A custom className for the field's label."),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"labelCol")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. The layout of label. You can set span and/or offset."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"showInlineError")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field inline error. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd, bootstrap3, bootstrap4, bootstrap5, semantic")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"type")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Input type. HTML compatible input type like password. Default is text."),(0,r.kt)("td",{parentName:"tr",align:"center"},"All")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"wrapperCol")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field layout. The layout for input controls. Same as labelCol."),(0,r.kt)("td",{parentName:"tr",align:"center"},"antd")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"wrapClassName")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field and sourroundings wrap className. ",(0,r.kt)("em",{parentName:"td"},"Some description would be great, huh?")),(0,r.kt)("td",{parentName:"tr",align:"center"},"bootstrap3, bootstrap4, bootstrap5")))),(0,r.kt)("h5",{id:"props-usage-17"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { TextField } from 'uniforms-unstyled';\nimport { useRef } from 'react'\n\nconst inputRef = useRef();\n\n<TextField\n extra=\"Extra Feedback or Help\"\n grid=\"4\" // 'col-4-sm' on label, 'col-8-sm' on input\n grid=\"col-6-xl\" // 'col-6-xl' on label, 'col-6-xl' on input\n grid={3} // 'col-3-sm' on label, 'col-9-sm' on input\n grid={{md: 5}} // 'col-5-md' on label, 'col-7-md' on input\n help=\"Need help?\"\n helpClassName=\"a b c\"\n icon=\"user\"\n iconLeft=\"user\"\n iconProps={{onClick() {}}}\n inputClassName=\"a b c\"\n inputRef={inputRef}\n labelClassName=\"a b c\" // You can either specify them as a single string\n labelClassName=[ 'a', 'b', 'c' ] // or as an array of strings\n labelCol={{offset: 2}} // 'ant-col-offset-2' on label\n labelCol={{span: 4}} // 'ant-col-4' on label\n showInlineError\n type=\"password\" // Input type. HTML compatible input type like password. Default is text.\n wrapClassName=\"a b c\"\n wrapperCol={{offset: 2}} // 'ant-col-offset-2' on field\n wrapperCol={{span: 4}} // 'ant-col-4' on field\n/>;\n")),(0,r.kt)("h2",{id:"common-props"},"Common props"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Default"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"disabled")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"false")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field disabled state. It's passed directly to the field, but it propagates same as the label.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"label")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"true")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field label. This prop has three modes. If you pass a string, then it will be used as a label. If you pass a null, then it won't have a label, but nested fields will have default labels. If you pass a non-null falsy value, it won't have a label and nested fields won't have labels too.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"name")),(0,r.kt)("td",{parentName:"tr",align:"center"},"-"),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field name. Used for identification. It should match your schema - if not, it will throw an error.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"placeholder")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"false")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field placeholder. If set to true, then a label will be used. Otherwise, it's handled like a label (including propagation).")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"readOnly")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"false")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field read-only state. It's passed directly to the field, but it propagates same as the label.")))),(0,r.kt)("h5",{id:"props-usage-18"},"Props usage:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},'<SomeField disabled={false} label name="field" placeholder={false} />\n')),(0,r.kt)("h2",{id:"props-propagation"},"Props propagation"),(0,r.kt)("p",null,"Few props propagate in a very special way. These are ",(0,r.kt)("inlineCode",{parentName:"p"},"disabled"),", ",(0,r.kt)("inlineCode",{parentName:"p"},"label"),", ",(0,r.kt)("inlineCode",{parentName:"p"},"placeholder"),", and ",(0,r.kt)("inlineCode",{parentName:"p"},"readOnly"),"."),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Example:")),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},'<TextField /> // default label | no placeholder\n<TextField label="Text" /> // custom label | no placeholder\n<TextField label={false} /> // no label | no placeholder\n<TextField placeholder /> // default label | default placeholder\n<TextField placeholder="Text" /> // default label | custom placeholder\n\n<NestField label={null}> // null = no label but the children have their labels\n <TextField />\n</NestField>\n\n<NestField label={false}> // false = no label and the children have no labels\n <TextField />\n</NestField>\n\n<ListField name="authors" disabled> // Additions are disabled...\n <ListItemField name="$" disabled> // ...deletion too\n <NestField disabled={false} name=""> // ...but editing is not.\n <TextField name="name" />\n <NumField name="age" />\n </NestField>\n </ListItemField>\n</ListField>\n')),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Note:")," ",(0,r.kt)("inlineCode",{parentName:"p"},"disabled"),", ",(0,r.kt)("inlineCode",{parentName:"p"},"label"),", ",(0,r.kt)("inlineCode",{parentName:"p"},"placeholder"),", and ",(0,r.kt)("inlineCode",{parentName:"p"},"readOnly")," are casted to ",(0,r.kt)("inlineCode",{parentName:"p"},"Boolean")," before being passed to nested fields."))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/ceaf42d5.b0a668c5.js b/assets/js/ceaf42d5.b0a668c5.js new file mode 100644 index 000000000..d7b588849 --- /dev/null +++ b/assets/js/ceaf42d5.b0a668c5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[146],{35318:function(e,t,n){n.d(t,{Zo:function(){return d},kt:function(){return c}});var i=n(27378);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n,i,a={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var m=i.createContext({}),s=function(e){var t=i.useContext(m),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},d=function(e){var t=s(e.components);return i.createElement(m.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return i.createElement(i.Fragment,{},t)}},u=i.forwardRef((function(e,t){var n=e.components,a=e.mdxType,r=e.originalType,m=e.parentName,d=l(e,["components","mdxType","originalType","parentName"]),u=s(n),c=a,k=u["".concat(m,".").concat(c)]||u[c]||p[c]||r;return n?i.createElement(k,o(o({ref:t},d),{},{components:n})):i.createElement(k,o({ref:t},d))}));function c(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var r=n.length,o=new Array(r);o[0]=u;var l={};for(var m in t)hasOwnProperty.call(t,m)&&(l[m]=t[m]);l.originalType=e,l.mdxType="string"==typeof e?e:a,o[1]=l;for(var s=2;s<r;s++)o[s]=n[s];return i.createElement.apply(null,o)}return i.createElement.apply(null,n)}u.displayName="MDXCreateElement"},75507:function(e,t,n){n.r(t),n.d(t,{assets:function(){return m},contentTitle:function(){return o},default:function(){return p},frontMatter:function(){return r},metadata:function(){return l},toc:function(){return s}});var i=n(25773),a=(n(27378),n(35318));const r={id:"migrating-2-to-3",title:"Migrating v2 to v3"},o=void 0,l={unversionedId:"migrating-2-to-3",id:"migrating-2-to-3",title:"Migrating v2 to v3",description:"This guide is designed to help you through the migration. If you went through it and encountered any problems - do let us know. For more information on why certain changes were made, see the CHANGELOG.md. When migrating to v3, use the newest version. Gradual updates will take more time and won't ease this process.",source:"@site/../docs/migrating-2-to-3.md",sourceDirName:".",slug:"/migrating-2-to-3",permalink:"/docs/migrating-2-to-3",draft:!1,tags:[],version:"current",frontMatter:{id:"migrating-2-to-3",title:"Migrating v2 to v3"},sidebar:"docs",previous:{title:"Migrating v3 to v4",permalink:"/docs/migrating-3-to-4"},next:{title:"Basic uniforms usage",permalink:"/docs/tutorials-basic-uniforms-usage"}},m={},s=[{value:"Breaking API changes",id:"breaking-api-changes",level:2},{value:"Validation flow changes",id:"validation-flow-changes",level:2},{value:"React Context API",id:"react-context-api",level:2},{value:"TypeScript",id:"typescript",level:2},{value:"Miscellaneous",id:"miscellaneous",level:2}],d={toc:s};function p(e){let{components:t,...n}=e;return(0,a.kt)("wrapper",(0,i.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"This guide is designed to help you through the migration. If you went through it and encountered any problems - do let us know. For more information on ",(0,a.kt)("em",{parentName:"p"},"why")," certain changes were made, see the ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/blob/master/CHANGELOG.md"},(0,a.kt)("inlineCode",{parentName:"a"},"CHANGELOG.md")),". When migrating to v3, use the newest version. Gradual updates will take more time and won't ease this process."),(0,a.kt)("h2",{id:"breaking-api-changes"},"Breaking API changes"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"Context data shape has changed: ",(0,a.kt)("inlineCode",{parentName:"li"},"changed"),", ",(0,a.kt)("inlineCode",{parentName:"li"},"changedMap"),", ",(0,a.kt)("inlineCode",{parentName:"li"},"submitting"),", and ",(0,a.kt)("inlineCode",{parentName:"li"},"validating")," were lifted from the ",(0,a.kt)("inlineCode",{parentName:"li"},"state")," property to the root."),(0,a.kt)("li",{parentName:"ul"},"Removed ",(0,a.kt)("inlineCode",{parentName:"li"},"AutoForm.state.modelSync"),". Use ",(0,a.kt)("inlineCode",{parentName:"li"},"AutoForm.state.model")," instead."),(0,a.kt)("li",{parentName:"ul"},"Removed ",(0,a.kt)("inlineCode",{parentName:"li"},"BaseField"),". Use ",(0,a.kt)("inlineCode",{parentName:"li"},"connectField")," or ",(0,a.kt)("inlineCode",{parentName:"li"},"useField")," instead."),(0,a.kt)("li",{parentName:"ul"},"Removed ",(0,a.kt)("inlineCode",{parentName:"li"},"BaseForm.getChangedKeys"),". Use ",(0,a.kt)("inlineCode",{parentName:"li"},"changedKeys")," directly."),(0,a.kt)("li",{parentName:"ul"},"Removed ",(0,a.kt)("inlineCode",{parentName:"li"},"BaseForm.state.bridge"),". Use ",(0,a.kt)("inlineCode",{parentName:"li"},"BaseForm.props.schema")," instead."),(0,a.kt)("li",{parentName:"ul"},"Removed ",(0,a.kt)("inlineCode",{parentName:"li"},"Bridge.check"),". Without ",(0,a.kt)("inlineCode",{parentName:"li"},"createSchemaBridge")," it's no longer needed."),(0,a.kt)("li",{parentName:"ul"},"Removed ",(0,a.kt)("inlineCode",{parentName:"li"},"baseField")," from ",(0,a.kt)("inlineCode",{parentName:"li"},"connectField")," options. There's no one solution here and it may require additional changes, depending on the usage."),(0,a.kt)("li",{parentName:"ul"},"Removed ",(0,a.kt)("inlineCode",{parentName:"li"},"createSchemaBridge"),". Now all ",(0,a.kt)("inlineCode",{parentName:"li"},"*Bridge")," instances have to be created manually.",(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-diff"}," import { SimpleSchema } from 'simpl-schema';\n+ import { SimpleSchema2Bridge } from 'uniforms-bridge-simple-schema-2';\n const schema = new SimpleSchema({ /* ... */ });\n- <AutoForm schema={schema} />\n+ const bridge = new SimpleSchema2Bridge(schema);\n+ <AutoForm schema={bridge} />\n"))),(0,a.kt)("li",{parentName:"ul"},"Removed ",(0,a.kt)("inlineCode",{parentName:"li"},"ensureValue")," from ",(0,a.kt)("inlineCode",{parentName:"li"},"connectField")," options. That means ",(0,a.kt)("inlineCode",{parentName:"li"},"undefined")," will no longer be automatically passed to the field as ",(0,a.kt)("inlineCode",{parentName:"li"},"''"),". Use ",(0,a.kt)("inlineCode",{parentName:"li"},"value ?? ''")," instead. ",(0,a.kt)("strong",{parentName:"li"},"This option was enabled by default, therefore it will impact all your custom fields"),"."),(0,a.kt)("li",{parentName:"ul"},"Removed ",(0,a.kt)("inlineCode",{parentName:"li"},"includeParent")," from ",(0,a.kt)("inlineCode",{parentName:"li"},"connectField")," options. Use ",(0,a.kt)("inlineCode",{parentName:"li"},"useField")," as many times as needed instead.",(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-tsx"},"const parentName = joinName(joinName(null, props.name).slice(0, -1));\nconst parentField = useField(parentName, {}, { absoluteName: true })[0];\n"))),(0,a.kt)("li",{parentName:"ul"},"Removed ",(0,a.kt)("inlineCode",{parentName:"li"},"injectName"),". In most cases, it can be safely omitted."),(0,a.kt)("li",{parentName:"ul"},"Removed ",(0,a.kt)("inlineCode",{parentName:"li"},"includeInChain")," parameter from ",(0,a.kt)("inlineCode",{parentName:"li"},"connectField")," options. It was used only in the ",(0,a.kt)("inlineCode",{parentName:"li"},"NestField")," and ",(0,a.kt)("inlineCode",{parentName:"li"},"ListField")," family, and mostly because of the way how the old context API worked. In most cases, if you've used ",(0,a.kt)("inlineCode",{parentName:"li"},"includeInChain: false"),", the migration is to use ",(0,a.kt)("inlineCode",{parentName:"li"},'name=""')," for the nested fields. See ",(0,a.kt)("a",{parentName:"li",href:"https://github.com/vazco/uniforms/pull/738"},"#738"),", ",(0,a.kt)("a",{parentName:"li",href:"https://github.com/vazco/uniforms/pull/720"},"#720"),", ",(0,a.kt)("a",{parentName:"li",href:"https://github.com/vazco/uniforms/pull/721"},"#721")," for more information."),(0,a.kt)("li",{parentName:"ul"},"Removed ",(0,a.kt)("inlineCode",{parentName:"li"},"mapProps")," from ",(0,a.kt)("inlineCode",{parentName:"li"},"connectField")," options. Map props directly in the component."),(0,a.kt)("li",{parentName:"ul"},"Removed ",(0,a.kt)("inlineCode",{parentName:"li"},"nothing"),". Use ",(0,a.kt)("inlineCode",{parentName:"li"},"null")," instead."),(0,a.kt)("li",{parentName:"ul"},"Removed all ",(0,a.kt)("inlineCode",{parentName:"li"},"propTypes")," in favor of TypeScript types."),(0,a.kt)("li",{parentName:"ul"},"Renamed or removed deprecated lifecycle methods. If you were using them, e.g. ",(0,a.kt)("inlineCode",{parentName:"li"},"super.componentWillReceiveProps"),", check whether it's still there and use the correct name if needed."),(0,a.kt)("li",{parentName:"ul"},"Renamed ",(0,a.kt)("inlineCode",{parentName:"li"},"getChildContext*")," methods to ",(0,a.kt)("inlineCode",{parentName:"li"},"getContext*"),", e.g. ",(0,a.kt)("inlineCode",{parentName:"li"},"getChildContextName")," -> ",(0,a.kt)("inlineCode",{parentName:"li"},"getContextName"),"."),(0,a.kt)("li",{parentName:"ul"},"Synchronous return and throw in ",(0,a.kt)("inlineCode",{parentName:"li"},"onSubmit")," are no longer allowed. To return an error or some result, return a ",(0,a.kt)("inlineCode",{parentName:"li"},"Promise")," instead."),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"filterDOMProps.registered")," is now read-only.")),(0,a.kt)("h2",{id:"validation-flow-changes"},"Validation flow changes"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"Bridge validators have to return errors instead of throwing them.",(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-diff"}," // GraphQL Schema\n function validator(model) {\n if (errors.length) {\n- throw { details: validator.errors };\n+ return { details: validator.errors };\n }\n }\n")),(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-diff"}," // JSON Schema\n function createValidator(schema) {\n const validator = ajv.compile(schema);\n return (model) => {\n validator(model);\n if (validator.errors && validator.errors.length) {\n- throw { details: validator.errors };\n+ return { details: validator.errors };\n }\n };\n }\n"))),(0,a.kt)("li",{parentName:"ul"},"Removed ",(0,a.kt)("inlineCode",{parentName:"li"},"onSubmitSuccess")," and ",(0,a.kt)("inlineCode",{parentName:"li"},"onSubmitFailure"),". Perform all needed operations directly in the ",(0,a.kt)("inlineCode",{parentName:"li"},"onSubmit"),":",(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-diff"},"- onSubmit={onSubmit}\n- onSubmitSuccess={onSubmitSuccess}\n- onSubmitFailure={onSubmitFailure}\n+ onSubmit={model => {\n+ const result = onSubmit(model);\n+ result.then(onSubmitSuccess, onSubmitFailure);\n+ return result;\n+ }}`\n"))),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"onValidate")," is no longer using callbacks. The error (or the lack of it) has to be returned either synchronously or asynchronously (i.e. wrapped in a promise).",(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-diff"},"- onValidate={(model, error, done) => done(error)}\n+ onValidate={async (model, error) => error}\n")))),(0,a.kt)("h2",{id:"react-context-api"},"React Context API"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"If you were ",(0,a.kt)("strong",{parentName:"li"},"not")," using ",(0,a.kt)("inlineCode",{parentName:"li"},"context"),", ",(0,a.kt)("inlineCode",{parentName:"li"},"contextTypes"),", ",(0,a.kt)("inlineCode",{parentName:"li"},"childContextTypes"),", or ",(0,a.kt)("inlineCode",{parentName:"li"},"getChildContext*")," methods directly, there's nothing to do."),(0,a.kt)("li",{parentName:"ul"},"For direct context access, use ",(0,a.kt)("inlineCode",{parentName:"li"},"useForm")," hook (functional components), ",(0,a.kt)("inlineCode",{parentName:"li"},"contextType")," static property (class components), or ",(0,a.kt)("inlineCode",{parentName:"li"},"<context.Consumer />")," (both).",(0,a.kt)("ul",{parentName:"li"},(0,a.kt)("li",{parentName:"ul"},"The React context object, ",(0,a.kt)("inlineCode",{parentName:"li"},"context"),", is exported from the ",(0,a.kt)("inlineCode",{parentName:"li"},"uniforms")," package.")))),(0,a.kt)("h2",{id:"typescript"},"TypeScript"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"A lot of types were added or changed. If you are using TypeScript, you may expect some type errors, as all components are no longer full of ",(0,a.kt)("inlineCode",{parentName:"li"},"any"),"."),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"filterDOMProps.register")," is now type safe and requires ",(0,a.kt)("inlineCode",{parentName:"li"},"FilterDOMProps")," interface extension.")),(0,a.kt)("h2",{id:"miscellaneous"},"Miscellaneous"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"For performance reasons ",(0,a.kt)("inlineCode",{parentName:"li"},"getField"),", ",(0,a.kt)("inlineCode",{parentName:"li"},"getSubfields"),", and ",(0,a.kt)("inlineCode",{parentName:"li"},"getType")," of all bridges are now memoized. If possible, do the same for custom bridges for a potential performance gain."),(0,a.kt)("li",{parentName:"ul"},"Simplified ",(0,a.kt)("inlineCode",{parentName:"li"},"NumField")," in most themes as it works as expected in React 16 and later. If you have a custom ",(0,a.kt)("inlineCode",{parentName:"li"},"NumField")," in your project, do revise its implementation for a potential performance gain."),(0,a.kt)("li",{parentName:"ul"},"Stop using direct imports and use named ones instead. It'll let your bundler decide, which version it'll need.",(0,a.kt)("pre",{parentName:"li"},(0,a.kt)("code",{parentName:"pre",className:"language-diff"},"-import BaseForm from 'uniforms/BaseForm';\n+import { BaseForm } from 'uniforms';\n")))))}p.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/d040a628.b2ee69f1.js b/assets/js/d040a628.b2ee69f1.js new file mode 100644 index 000000000..b679e393d --- /dev/null +++ b/assets/js/d040a628.b2ee69f1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[154],{35318:function(t,e,n){n.d(e,{Zo:function(){return c},kt:function(){return d}});var a=n(27378);function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e){if(null==t)return{};var n,a,r=function(t,e){if(null==t)return{};var n,a,r={},i=Object.keys(t);for(a=0;a<i.length;a++)n=i[a],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var m=a.createContext({}),p=function(t){var e=a.useContext(m),n=e;return t&&(n="function"==typeof t?t(e):o(o({},e),t)),n},c=function(t){var e=p(t.components);return a.createElement(m.Provider,{value:e},t.children)},u={inlineCode:"code",wrapper:function(t){var e=t.children;return a.createElement(a.Fragment,{},e)}},g=a.forwardRef((function(t,e){var n=t.components,r=t.mdxType,i=t.originalType,m=t.parentName,c=s(t,["components","mdxType","originalType","parentName"]),g=p(n),d=r,l=g["".concat(m,".").concat(d)]||g[d]||u[d]||i;return n?a.createElement(l,o(o({ref:e},c),{},{components:n})):a.createElement(l,o({ref:e},c))}));function d(t,e){var n=arguments,r=e&&e.mdxType;if("string"==typeof t||r){var i=n.length,o=new Array(i);o[0]=g;var s={};for(var m in e)hasOwnProperty.call(e,m)&&(s[m]=e[m]);s.originalType=t,s.mdxType="string"==typeof t?t:r,o[1]=s;for(var p=2;p<i;p++)o[p]=n[p];return a.createElement.apply(null,o)}return a.createElement.apply(null,n)}g.displayName="MDXCreateElement"},86163:function(t,e,n){n.r(e),n.d(e,{assets:function(){return m},contentTitle:function(){return o},default:function(){return u},frontMatter:function(){return i},metadata:function(){return s},toc:function(){return p}});var a=n(25773),r=(n(27378),n(35318));const i={},o=void 0,s={unversionedId:"compare-matrix-landing",id:"compare-matrix-landing",title:"compare-matrix-landing",description:"| Feature | uniforms | Formik | redux-form | React Final Form | react-hook-form |",source:"@site/../docs/compare-matrix-landing.md",sourceDirName:".",slug:"/compare-matrix-landing",permalink:"/docs/compare-matrix-landing",draft:!1,tags:[],version:"current",frontMatter:{}},m={},p=[],c={toc:p};function u(t){let{components:e,...n}=t;return(0,r.kt)("wrapper",(0,a.Z)({},c,n,{components:e,mdxType:"MDXLayout"}),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"left"},"Feature"),(0,r.kt)("th",{parentName:"tr",align:"center"},(0,r.kt)("a",{parentName:"th",href:"https://github.com/vazco/uniforms"},"uniforms")),(0,r.kt)("th",{parentName:"tr",align:"center"},(0,r.kt)("a",{parentName:"th",href:"https://github.com/jaredpalmer/formik"},"Formik")),(0,r.kt)("th",{parentName:"tr",align:"center"},(0,r.kt)("a",{parentName:"th",href:"https://github.com/erikras/redux-form"},"redux-form")),(0,r.kt)("th",{parentName:"tr",align:"center"},(0,r.kt)("a",{parentName:"th",href:"https://github.com/final-form/react-final-form"},"React Final Form")),(0,r.kt)("th",{parentName:"tr",align:null},(0,r.kt)("a",{parentName:"th",href:"https://github.com/react-hook-form/react-hook-form"},"react-hook-form")))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},"Automatic form layout"),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"}))),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},"Manual state management"),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"}))),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},"Manually trigger validation"),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"}))),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},"AntD, Bootstrap 3, Bootstrap 4, Bootstrap 5, Material, MUI, Semantic UI themes"),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"}))),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},"JSON, GraphQL, SimpleSchema, Zod and custom schema support"),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"}))),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"left"},"Field level validation"),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2716.png",alt:"unsupported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"})),(0,r.kt)("td",{parentName:"tr",align:null},(0,r.kt)("img",{parentName:"td",src:"https://github.githubassets.com/images/icons/emoji/unicode/2714.png",alt:"supported"}))))))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/d076814b.4e0fbc20.js b/assets/js/d076814b.4e0fbc20.js new file mode 100644 index 000000000..e1b41ccb8 --- /dev/null +++ b/assets/js/d076814b.4e0fbc20.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[609],{35318:function(e,n,t){t.d(n,{Zo:function(){return d},kt:function(){return u}});var r=t(27378);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function l(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var s=r.createContext({}),m=function(e){var n=r.useContext(s),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},d=function(e){var n=m(e.components);return r.createElement(s.Provider,{value:n},e.children)},p={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},c=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,s=e.parentName,d=l(e,["components","mdxType","originalType","parentName"]),c=m(t),u=a,h=c["".concat(s,".").concat(u)]||c[u]||p[u]||i;return t?r.createElement(h,o(o({ref:n},d),{},{components:t})):r.createElement(h,o({ref:n},d))}));function u(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,o=new Array(i);o[0]=c;var l={};for(var s in n)hasOwnProperty.call(n,s)&&(l[s]=n[s]);l.originalType=e,l.mdxType="string"==typeof e?e:a,o[1]=l;for(var m=2;m<i;m++)o[m]=t[m];return r.createElement.apply(null,o)}return r.createElement.apply(null,t)}c.displayName="MDXCreateElement"},22303:function(e,n,t){t.r(n),t.d(n,{assets:function(){return s},contentTitle:function(){return o},default:function(){return p},frontMatter:function(){return i},metadata:function(){return l},toc:function(){return m}});var r=t(25773),a=(t(27378),t(35318));const i={id:"api-bridges",title:"Bridges"},o=void 0,l={unversionedId:"api-bridges",id:"api-bridges",title:"Bridges",description:"To make use of any schema, uniforms have to create a bridge of it - a unified schema mapper.",source:"@site/../docs/api-bridges.md",sourceDirName:".",slug:"/api-bridges",permalink:"/docs/api-bridges",draft:!1,tags:[],version:"current",frontMatter:{id:"api-bridges",title:"Bridges"},sidebar:"docs",previous:{title:"Fields",permalink:"/docs/api-fields"},next:{title:"Context data",permalink:"/docs/api-context-data"}},s={},m=[{value:"<code>JSONSchemaBridge</code>",id:"jsonschemabridge",level:2},{value:"Note on <code>allOf</code>/<code>anyOf</code>/<code>oneOf</code>",id:"note-on-allofanyofoneof",level:3},{value:"Note on Bluebird",id:"note-on-bluebird",level:3},{value:"<code>SimpleSchema2Bridge</code>",id:"simpleschema2bridge",level:2},{value:"<code>ZodBridge</code>",id:"zodbridge",level:2},{value:"<code>SimpleSchemaBridge</code>",id:"simpleschemabridge",level:2},{value:"<code>ZodBridge</code>",id:"zodbridge-1",level:2},{value:"<code>GraphQLBridge</code>",id:"graphqlbridge",level:2},{value:"Code example",id:"code-example",level:3}],d={toc:m};function p(e){let{components:n,...t}=e;return(0,a.kt)("wrapper",(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"To make use of any schema, uniforms have to create a ",(0,a.kt)("em",{parentName:"p"},"bridge")," of it - a unified schema mapper."),(0,a.kt)("p",{align:"center"},(0,a.kt)("img",{src:"/img/bridge-concept.svg",alt:""})),(0,a.kt)("p",null,"Currently available bridges:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"JSONSchemaBridge")," in ",(0,a.kt)("inlineCode",{parentName:"li"},"uniforms-bridge-json-schema")," (",(0,a.kt)("a",{parentName:"li",href:"https://json-schema.org/"},"schema documentation"),")"),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"SimpleSchema2Bridge")," in ",(0,a.kt)("inlineCode",{parentName:"li"},"uniforms-bridge-simple-schema-2")," (",(0,a.kt)("a",{parentName:"li",href:"https://github.com/longshotlabs/simpl-schema#readme"},"schema documentation"),")"),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"ZodBridge")," in ",(0,a.kt)("inlineCode",{parentName:"li"},"uniforms-bridge-zod")," (",(0,a.kt)("a",{parentName:"li",href:"https://zod.dev/"},"schema documentation"),")")),(0,a.kt)("p",null,"Deprecated bridges:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"SimpleSchemaBridge")," in ",(0,a.kt)("inlineCode",{parentName:"li"},"uniforms-bridge-simple-schema")," (",(0,a.kt)("a",{parentName:"li",href:"https://github.com/Meteor-Community-Packages/meteor-simple-schema/blob/master/DOCS.md"},"schema documentation"),")"),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"GraphQLBridge")," in ",(0,a.kt)("inlineCode",{parentName:"li"},"uniforms-bridge-graphql")," (",(0,a.kt)("a",{parentName:"li",href:"https://graphql.org/"},"schema documentation"),")")),(0,a.kt)("p",null,"If you see a lot of ",(0,a.kt)("a",{parentName:"p",href:"https://fb.me/react-unknown-prop"},(0,a.kt)("inlineCode",{parentName:"a"},"Warning: Unknown props..."))," logs, check if your schema or theme doesn't provide extra props. If so, consider ",(0,a.kt)("a",{parentName:"p",href:"/docs/api-helpers#filterdomprops"},"registering it with ",(0,a.kt)("inlineCode",{parentName:"a"},"filterDOMProps")),"."),(0,a.kt)("h2",{id:"jsonschemabridge"},(0,a.kt)("inlineCode",{parentName:"h2"},"JSONSchemaBridge")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-tsx"},"import Ajv from 'ajv';\nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\n\nconst ajv = new Ajv({ allErrors: true, useDefaults: true });\n\nconst schema = {\n title: 'Person',\n type: 'object',\n properties: {\n firstName: { type: 'string' },\n lastName: { type: 'string' },\n age: {\n description: 'Age in years',\n type: 'integer',\n minimum: 0,\n },\n },\n required: ['firstName', 'lastName'],\n};\n\nfunction createValidator(schema: object) {\n const validator = ajv.compile(schema);\n\n return (model: object) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst validator = createValidator(schema);\n\nconst bridge = new JSONSchemaBridge({ schema, validator });\n")),(0,a.kt)("h3",{id:"note-on-allofanyofoneof"},"Note on ",(0,a.kt)("inlineCode",{parentName:"h3"},"allOf"),"/",(0,a.kt)("inlineCode",{parentName:"h3"},"anyOf"),"/",(0,a.kt)("inlineCode",{parentName:"h3"},"oneOf")),(0,a.kt)("p",null,"The current handling of ",(0,a.kt)("inlineCode",{parentName:"p"},"allOf"),"/",(0,a.kt)("inlineCode",{parentName:"p"},"anyOf"),"/",(0,a.kt)("inlineCode",{parentName:"p"},"oneOf")," is not complete and does not work with all possible cases. For an in-detail discussion, see ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/issues/863"},"#","863"),". How it works, is that only a few properties are being used:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"properties"),", where all subfields are merged (last definition wins),"),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"required"),", where all properties are accumulated, and"),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"type"),", where the first one is being used.")),(0,a.kt)("p",null,"Below is an example of these implications:"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},'{\n "type": "object",\n "properties": {\n // This will render `NumField` WITHOUT `min` nor `max` properties.\n // It will be properly validated, but without any UI guidelines.\n "foo": {\n "type": "number",\n "allOf": [{ "minimum": 0 }, { "maximum": 10 }]\n },\n // This will render as `TextField`.\n "bar": {\n "oneOf": [{ "type": "string" }, { "type": "number" }]\n }\n }\n}\n')),(0,a.kt)("h3",{id:"note-on-bluebird"},"Note on Bluebird"),(0,a.kt)("p",null,"If you're using the ",(0,a.kt)("a",{parentName:"p",href:"https://www.npmjs.com/package/bluebird"},(0,a.kt)("inlineCode",{parentName:"a"},"bluebird"))," package, you may have seen the following warning (",(0,a.kt)("a",{parentName:"p",href:"http://bluebirdjs.com/docs/warning-explanations.html#warning-a-promise-was-rejected-with-a-non-error"},"docs"),"):"),(0,a.kt)("blockquote",null,(0,a.kt)("p",{parentName:"blockquote"},"Warning: a promise was rejected with a non-error ","[object Object]")),(0,a.kt)("p",null,"There could be multiple causes of this error. One of it is not returning a proper error object."),(0,a.kt)("p",null,"In order to fix it, your ",(0,a.kt)("inlineCode",{parentName:"p"},"validator")," function should return a ",(0,a.kt)("inlineCode",{parentName:"p"},"Error"),"-like object instead of an object with a single ",(0,a.kt)("inlineCode",{parentName:"p"},"details")," property. The cleanest would be to create a custom ",(0,a.kt)("inlineCode",{parentName:"p"},"ValidationError")," class:"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-ts"},"import { ErrorObject } from 'ajv';\n\nclass ValidationError extends Error {\n name = 'ValidationError';\n\n constructor(public details: ErrorObject[]) {\n super('ValidationError');\n }\n}\n\n// Usage.\nreturn validator.errors?.length ? new ValidationError(validator.errors) : null;\n")),(0,a.kt)("p",null,"Another cause of this error may be two different implementations of the ",(0,a.kt)("inlineCode",{parentName:"p"},"Promise")," object when using an asynchronous validate function.\nEnsure that you are returning the same ",(0,a.kt)("inlineCode",{parentName:"p"},"Promise")," object implementation that Bluebird is expecting.\nThe simplest way to do that should be to avoid using the ",(0,a.kt)("inlineCode",{parentName:"p"},"async")," keyword and instead make the function return a ",(0,a.kt)("inlineCode",{parentName:"p"},"Promise")," instead."),(0,a.kt)("p",null,"See ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/discussions/1047"},"#1047")," for more details."),(0,a.kt)("h2",{id:"simpleschema2bridge"},(0,a.kt)("inlineCode",{parentName:"h2"},"SimpleSchema2Bridge")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-tsx"},"import SimpleSchema from 'simpl-schema';\nimport SimpleSchema2Bridge from 'uniforms-bridge-simple-schema-2';\n\nconst schema = new SimpleSchema({\n // ...\n\n aboutMe: {\n type: String,\n uniforms: MyText, // Component...\n uniforms: {\n // ...or object...\n component: MyText, // ...with component...\n propA: 1, // ...and/or extra props.\n },\n },\n});\n\nconst bridge = new SimpleSchema2Bridge({ schema });\n")),(0,a.kt)("h2",{id:"zodbridge"},(0,a.kt)("inlineCode",{parentName:"h2"},"ZodBridge")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-tsx"},"import ZodBridge from 'uniforms-bridge-zod';\nimport z from 'zod';\n\nconst schema = z.object({ aboutMe: z.string() });\n\nconst bridge = new ZodBridge({ schema });\n")),(0,a.kt)("h2",{id:"simpleschemabridge"},(0,a.kt)("inlineCode",{parentName:"h2"},"SimpleSchemaBridge")),(0,a.kt)("admonition",{type:"caution"},(0,a.kt)("p",{parentName:"admonition"},"SimpleSchemaBridge is deprecated since uniforms v4.")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-tsx"},"import SimpleSchemaBridge from 'uniforms-bridge-simple-schema';\nimport { SimpleSchema } from 'aldeed:simple-schema';\n\nconst schema = new SimpleSchema({\n // ...\n\n aboutMe: {\n type: String,\n uniforms: MyText, // Component...\n uniforms: {\n // ...or object...\n component: MyText, // ...with component...\n propA: 1, // ...and/or extra props.\n },\n },\n});\n\nconst bridge = new SimpleSchemaBridge({ schema });\n")),(0,a.kt)("h2",{id:"zodbridge-1"},(0,a.kt)("inlineCode",{parentName:"h2"},"ZodBridge")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-tsx"},"import ZodBridge from 'uniforms-bridge-zod';\nimport z from 'zod';\n\nconst schema = z.object({ aboutMe: z.string() });\n\nconst bridge = new ZodBridge({ schema });\n")),(0,a.kt)("h2",{id:"graphqlbridge"},(0,a.kt)("inlineCode",{parentName:"h2"},"GraphQLBridge")),(0,a.kt)("admonition",{type:"caution"},(0,a.kt)("p",{parentName:"admonition"},"GraphQLBridge is deprecated since uniforms v4.")),(0,a.kt)("p",null,"This bridge enables using GraphQL schema types as uniforms forms.\nThis saves you from not having to rewrite the form schema in your code.\nAs a trade-off, you have to write the validator from scratch. In some cases, it might be easier to rewrite the schema and use, for example, ",(0,a.kt)("a",{parentName:"p",href:"/docs/api-bridges#jsonschemabridge"},(0,a.kt)("inlineCode",{parentName:"a"},"JSONSchemaBridge")," with ",(0,a.kt)("inlineCode",{parentName:"a"},"ajv")),".\nIf only a simple or no validation is needed, this bridge is perfectly suited to work with GraphQL schemas."),(0,a.kt)("p",null,"The constructor accepts these arguments:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"schema: GraphQLType")," can be any type parsed and extracted from a GraphQL schema."),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"validator: (model: Record<string, unknown>) => any")," a custom validator function that should return a falsy value if no errors are present or information about errors in the model as described in the ",(0,a.kt)("a",{parentName:"li",href:"/docs/examples-custom-bridge#validator-definition"},"custom bridge section"),"."),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"extras: Record<string, unknown> = {}")," used to extend the schema generated from GraphQL type with extra field configuration."),(0,a.kt)("li",{parentName:"ul"},(0,a.kt)("inlineCode",{parentName:"li"},"provideDefaultLabelFromFieldName = true")," if set to ",(0,a.kt)("inlineCode",{parentName:"li"},"true"),", the bridge will use the field name as a label if no label is provided in the schema.")),(0,a.kt)("h3",{id:"code-example"},"Code example"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-tsx"},"import { GraphQLBridge } from 'uniforms-bridge-graphql';\nimport { buildASTSchema, parse } from 'graphql';\n\nconst schema = `\n type Author {\n id: String!\n firstName: String\n lastName: String\n }\n\n type Post {\n id: Int!\n author: Author!\n title: String\n votes: Int\n }\n\n # This is required by buildASTSchema\n type Query { anything: ID }\n`;\n\nconst schemaType = buildASTSchema(parse(schema)).getType('Post');\nconst schemaExtras = {\n id: {\n options: [\n { label: 1, value: 1 },\n { label: 2, value: 2 },\n { label: 3, value: 3 },\n ],\n },\n title: {\n options: [\n { label: 1, value: 'a' },\n { label: 2, value: 'b' },\n ],\n },\n 'author.firstName': {\n placeholder: 'John',\n },\n};\n\nconst schemaValidator = (model: object) => {\n const details = [];\n\n if (!model.id) {\n details.push({ name: 'id', message: 'ID is required!' });\n }\n\n if (!model.author.id) {\n details.push({ name: 'author.id', message: 'Author ID is required!' });\n }\n\n if (model.votes < 0) {\n details.push({\n name: 'votes',\n message: 'Votes must be a non-negative number!',\n });\n }\n\n // ...\n\n return details.length ? { details } : null;\n};\n\nconst bridge = new GraphQLBridge({\n schema: schemaType,\n validator: schemaValidator,\n extras: schemaExtras,\n});\n")))}p.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/df3a1a49.e7d066d5.js b/assets/js/df3a1a49.e7d066d5.js new file mode 100644 index 000000000..7e25ef464 --- /dev/null +++ b/assets/js/df3a1a49.e7d066d5.js @@ -0,0 +1,128 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[243],{73633:function(e,n,t){"use strict";t.d(n,{j:function(){return N}}),t(11561).z.register("minCount","maxCount");var a=t(59312),r=t(3996),l=t.n(r),i=t(30454),o=t.n(i),s=t(99729),u=t.n(s),d=t(90104),c=t.n(d),m=t(1883),p=t.n(m),f=t(16651),h=t.n(f),v=t(76744),g=t.n(v),_=t(98949),b=t(65507);function E(e,n){l()(n,'Field not found in schema: "%s"',e)}function y(e,n){if(!("$ref"in e))return e;const{$ref:t}=e,r=(0,a._T)(e,["$ref"]);return y(Object.assign({},r,function(e,n){l()(e.startsWith("#"),'Reference is not an internal reference, and only such are allowed: "%s"',e);const t=e.split("/").filter((e=>e&&"#"!==e)).reduce(((e,n)=>e[n]),n);return l()(t,'Reference not found in schema: "%s"',e),t}(t,n)),n)}const O=["allOf","anyOf","oneOf"],k=["default","enum","format","isRequired","title","uniforms"],C=[["maxItems","maxCount"],["maximum","max"],["minItems","minCount"],["minimum","min"],["multipleOf","step"]];function x(e){return"object"==typeof e&&null!==e&&Array.isArray(e.details)}class N extends _.k{constructor(e){let{provideDefaultLabelFromFieldName:n=!0,schema:t,validator:a}=e;super(),this.provideDefaultLabelFromFieldName=n,this.schema=y(t,t),this._compiledSchema={"":this.schema},this.validator=a,this.getField=h()(this.getField.bind(this)),this.getInitialValue=h()(this.getInitialValue.bind(this)),this.getSubfields=h()(this.getSubfields.bind(this)),this.getType=h()(this.getType.bind(this))}getError(e,n){const t=x(n)&&n.details;if(!t)return null;const a=(0,b.m)(null,e).map(b.m.unescape),r=(0,b.m)(a),l=(0,b.m)(a.slice(0,-1)),i=a[a.length-1],o=t.find((e=>{var n;const t=null!==(n=e.instancePath)&&void 0!==n?n:e.dataPath,a=t?function(e){return(e=e.startsWith("/")?e.replace(/\//g,".").replace(/~0/g,"~").replace(/~1/g,"/"):e.replace(/\[('|")(.+?)\1\]/g,".$2").replace(/\[(.+?)\]/g,".$1").replace(/\\'/g,"'")).slice(1)}(t):"";return r===a||l===a&&e.params&&i===e.params.missingProperty}));return o||null}getErrorMessage(e,n){const t=this.getError(e,n);return(null==t?void 0:t.message)||""}getErrorMessages(e){if(!e)return[];if(x(e)){const{details:n}=e;return n.map((e=>e.message||""))}return e instanceof Error?[e.message]:"object"==typeof e?[]:[String(e)]}getField(e){return(0,b.m)(null,e).reduce(((n,t,a,r)=>{var l,i,o,s;const u=(0,b.m)(r.slice(0,a)),d=(0,b.m)(u,t),m=null!==(l=(s=this._compiledSchema)[d])&&void 0!==l?l:s[d]={};if(m.isRequired=!(!(null===(i=n.required)||void 0===i?void 0:i.includes(t))&&!(null===(o=this._compiledSchema[u].required)||void 0===o?void 0:o.includes(t))),"$"===t||t===""+parseInt(t,10))E(e,"array"===n.type),n=Array.isArray(n.items)?n.items[parseInt(t,10)]:n.items,E(e,!!n);else if("object"===n.type)E(e,!!n.properties),n=n.properties[b.m.unescape(t)],E(e,!!n);else{let a=!1;O.forEach((e=>{var r;null===(r=n[e])||void 0===r||r.forEach((e=>{a||(e=y(e,this.schema),t in e.properties&&(n=e.properties[t],a=!0))}))})),E(e,a)}const p=(n=y(n,this.schema)).required?n.required.slice():[],f=n.properties?Object.assign({},n.properties):{};return O.forEach((e=>{var t;null===(t=n[e])||void 0===t||t.forEach((e=>{(e=y(e,this.schema)).required&&p.push(...e.required),Object.assign(f,e.properties),!m.type&&e.type&&(m.type=e.type)}))})),p.length>0&&(m.required=p),c()(f)||(m.properties=f),n}),this.schema)}getInitialValue(e){var n;const t=this.getField(e),{default:a=(null!==(n=t.default)&&void 0!==n?n:u()(this.schema.default,e)),type:r=t.type}=this._compiledSchema[e];if(void 0!==a)return o()(a);if("array"===r){const n=this.getInitialValue((0,b.m)(e,"$"));if(void 0===n)return[];const a=t.minItems||0;return Array.from({length:a},(()=>n))}if("object"===r){const n={};return this.getSubfields(e).forEach((t=>{const a=this.getInitialValue((0,b.m)(e,t));void 0!==a&&(n[t]=a)})),n}}getProps(e){var n,t;const a=this.getField(e),r=Object.assign({},a,a.uniforms,this._compiledSchema[e]);null!==(n=r.label)&&void 0!==n||(r.label=r.title),this.provideDefaultLabelFromFieldName&&void 0===r.label&&(r.label=g()(p()((0,b.m)(null,e).slice(-1)[0]))),"number"===a.type&&(r.decimal=!0),void 0!==(null===(t=a.uniforms)||void 0===t?void 0:t.type)&&(r.type=a.uniforms.type),void 0===r.required&&(r.required=r.isRequired),r.type===a.type&&delete r.type;let l=r.options;return l?Array.isArray(l)||(l=Object.entries(l).map((e=>{let[n,t]=e;return{key:n,label:n,value:t}}))):r.enum&&(l=Object.values(r.enum).map((e=>({value:e})))),C.forEach((e=>{let[n,t]=e;n in r&&(r[t]=r[n],delete r[n])})),k.forEach((e=>{e in r&&delete r[e]})),Object.assign(r,{options:l})}getSubfields(e){void 0===e&&(e="");const n=this.getField(e),{properties:t=n.properties,type:a=n.type}=this._compiledSchema[e];return"object"===a&&t?Object.keys(t).map(b.m.escape):[]}getType(e){const{type:n,format:t}=this.getField(e),{type:a=n}=this._compiledSchema[e];return"date-time"===t?Date:"string"===a?String:"number"===a||"integer"===a?Number:"object"===a?Object:"array"===a?Array:"boolean"===a?Boolean:(l()("null"!==a,'Field "%s" can not be represented as a type null',e),a)}getValidator(){return this.validator}}},12005:function(e,n,t){"use strict";t.d(n,{V:function(){return v}});var a=t(13762),r=t.n(a),l=t(11561);r().extendOptions(["uniforms"]),l.z.register("autoValue","blackbox","custom","decimal","defaultValue","exclusiveMax","exclusiveMin","max","maxCount","min","minCount","optional","regEx","trim","type");var i=t(59312),o=t(3996),s=t.n(o),u=t(30454),d=t.n(u),c=t(16651),m=t.n(c),p=t(98949),f=t(65507);const h=["optional","uniforms","allowedValues"];class v extends p.k{constructor(e){let{schema:n}=e;super(),this.schema=n,this.getField=m()(this.getField.bind(this)),this.getInitialValue=m()(this.getInitialValue.bind(this)),this.getProps=m()(this.getProps.bind(this)),this.getSubfields=m()(this.getSubfields.bind(this)),this.getType=m()(this.getType.bind(this))}getError(e,n){const t=null==n?void 0:n.details;return Array.isArray(t)&&t.find((n=>n.name===e))||null}getErrorMessage(e,n){const t=this.getError(e,n);return t?this.schema.messageForError(t):""}getErrorMessages(e){if(!e)return[];const{details:n}=e;return Array.isArray(n)?n.map((e=>this.schema.messageForError(e))):[e.message||e]}getField(e){const n=this.schema.getDefinition(e);s()(n,'Field not found in schema: "%s"',e);const t=Object.assign(Object.assign({},n),n.type[0]);if(t.autoValue&&("defaultAutoValueFunction"===t.autoValue.name||-1!==t.autoValue.toString().indexOf("$setOnInsert:")))try{t.defaultValue=t.autoValue.call({operator:null})}catch(a){}return t}getInitialValue(e){const n=this.getField(e),t=n.defaultValue;if(void 0!==t)return d()(t);if(n.type===Array){const t=this.getInitialValue((0,f.m)(e,"$"));if(void 0===t)return[];const a=n.minCount||0;return Array.from({length:a},(()=>t))}if(n.type===Object||n.type instanceof r()){const n={};return this.getSubfields(e).forEach((t=>{const a=this.getInitialValue((0,f.m)(e,t));void 0!==a&&(n[t]=a)})),n}}getProps(e){const n=this.getField(e),{type:t}=n,a=(0,i._T)(n,["type"]);a.required=!a.optional,"function"==typeof a.uniforms||"string"==typeof a.uniforms?a.component=a.uniforms:Object.assign(a,a.uniforms),t===Number&&(a.decimal=!0);let r=a.options,l=a.allowedValues;if("function"==typeof r&&(r=r()),r||"function"!=typeof l||(l=l()),!r&&Array.isArray(l))r=l.map((e=>({value:e})));else if(t===Array)try{const n=this.getProps(`${e}.$`);n.options&&(r=n.options)}catch(o){}return h.forEach((e=>{e in a&&delete a[e]})),Object.assign(a,{options:r})}getSubfields(e){return this.schema.objectKeys(function(e){return null==e?void 0:e.replace(/\.\d+(\.|$)/g,".$$$1")}(e))}getType(e){const n=this.getField(e).type;return n===r().Integer?Number:n instanceof r()?Object:n}getValidator(e){void 0===e&&(e={clean:!0,mutate:!0});const n=this.schema.validator(e);return t=>{try{return n(e.clean?d()(Object.assign({},t)):t),null}catch(a){return a}}}}},48616:function(e,n,t){"use strict";t.d(n,{K:function(){return b}});var a=t(11561),r=t(84200);a.z.register("minCount","maxCount"),r.z.ZodType.prototype.uniforms=function(e){return this._uniforms=e,this};var l=t(3996),i=t.n(l),o=t(1883),s=t.n(o),u=t(16651),d=t.n(u),c=t(76744),m=t.n(c),p=t(65507),f=t(98949);function h(e,n){i()(n,'Field not found in schema: "%s"',e)}function v(e){return"string"!=typeof e}function g(e){return m()(s()((0,p.m)(null,e).slice(-1)[0]))}function _(e,n){void 0===n&&(n=[]);const t=e[e.length-1];if("number"==typeof t){return _(e.slice(0,e.length-1),[t,...n])}return n.length>0?`${g(e)} (${n.join(", ")})`:g(e)}class b extends f.k{constructor(e){let{schema:n,provideDefaultLabelFromFieldName:t=!0}=e;super(),this.schema=n,this.provideDefaultLabelFromFieldName=t,this.getField=d()(this.getField.bind(this)),this.getInitialValue=d()(this.getInitialValue.bind(this)),this.getProps=d()(this.getProps.bind(this)),this.getSubfields=d()(this.getSubfields.bind(this)),this.getType=d()(this.getType.bind(this))}getError(e,n){return n instanceof r.jm&&n.issues.find((n=>e===(0,p.m)(n.path)))||null}getErrorMessage(e,n){var t;return(null===(t=this.getError(e,n))||void 0===t?void 0:t.message)||""}getErrorMessages(e){return e instanceof r.jm?e.issues.map((e=>`${_(e.path)}: ${e.message}`)):e instanceof Error?[e.message]:[]}getField(e){let n=this.schema;this.schema instanceof r.Xc&&(n=this.schema._def.schema);for(const t of(0,p.m)(null,e))n instanceof r.uE?n=n.removeDefault():n instanceof r.ak&&(n=n.unwrap()),"$"===t||t===""+parseInt(t,10)?(h(e,n instanceof r.p5),n=n.element):(h(e,n instanceof r.CQ),n=n.shape[p.m.unescape(t)]);return n}getInitialValue(e){var n,t;const a=this.getField(e);if(a instanceof r.p5){const t=this.getInitialValue((0,p.m)(e,"$"));if(void 0===t)return[];const r=(null===(n=a._def.minLength)||void 0===n?void 0:n.value)||0;return Array.from({length:r},(()=>t))}if(a instanceof r.uE)return a._def.defaultValue();if(a instanceof r.K7)return a.options[0];if(a instanceof r.Zl){const e=Object.values(a.enum);return null!==(t=e.find(v))&&void 0!==t?t:e[0]}if(a instanceof r.CQ){const n={};return this.getSubfields(e).forEach((t=>{const a=this.getInitialValue((0,p.m)(e,t));void 0!==a&&(n[t]=a)})),n}}getProps(e){const n=Object.assign(Object.assign({},this.provideDefaultLabelFromFieldName&&{label:g(e)}),{required:!0});let t=this.getField(e);const a=t._uniforms;if("function"==typeof a?n.component=a:Object.assign(n,a),t instanceof r.uE?(t=t.removeDefault(),n.required=!1):t instanceof r.ak&&(t=t.unwrap(),n.required=!1),t instanceof r.p5)t._def.maxLength&&(n.maxCount=t._def.maxLength.value),t._def.minLength&&(n.minCount=t._def.minLength.value);else if(t instanceof r.K7)n.options=t.options.map((e=>({value:e})));else if(t instanceof r.Zl){const e=Object.values(t.enum),a=e.filter(v);n.options=(a.length?a:e).map((e=>({value:e})))}else if(t instanceof r.IV){t.isInt||(n.decimal=!0);const e=t.maxValue;null!==e&&(n.max=e);const a=t.minValue;null!==a&&(n.min=a);const r=t._def.checks.find((e=>"multipleOf"===e.kind));r&&(n.step=r.value)}return n}getSubfields(e){void 0===e&&(e="");let n=this.getField(e);return n instanceof r.uE?n=n.removeDefault():n instanceof r.ak&&(n=n.unwrap()),n instanceof r.p5?["$"]:n instanceof r.CQ?Object.keys(n.shape):[]}getType(e){let n=this.getField(e);if(n instanceof r.uE?n=n.removeDefault():n instanceof r.ak&&(n=n.unwrap()),n instanceof r.p5)return Array;if(n instanceof r.pZ)return Boolean;if(n instanceof r.$s)return Date;if(n instanceof r.K7||n instanceof r.$T)return String;if(n instanceof r.Zl){return"number"==typeof Object.values(n.enum).find(v)?Number:String}return n instanceof r.IV?Number:n instanceof r.CQ?Object:void i()(!1,'Field "%s" has an unknown type',e)}getValidator(){return e=>{const n=this.schema.safeParse(e);return n.success?null:n.error}}}},68599:function(e,n,t){"use strict";var a=t(3996),r=t.n(a),l=t(6846),i=t(12138),o=t(14449),s=t(64694),u=t(80661),d=t(59492),c=t(44591),m=t(47822),p=t(99086);const f=(0,l.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?c.Z:m.Z;switch(e.fieldType){case Array:return s.Z;case Boolean:return i.Z;case Date:return o.Z;case Number:return d.Z;case Object:return u.Z;case String:return p.Z}return r()(!1,"Unsupported field type: %s",e.fieldType)}));n.Z=f},2310:function(e,n,t){"use strict";var a=t(39850),r=t(79904);n.Z=function e(n){class t extends(a.N.Auto(n)){}return t.Auto=e,t}(r.Z)},99574:function(e,n,t){"use strict";var a=t(60042),r=t.n(a),l=t(6820);n.Z=function e(n){class t extends n{getNativeFormProps(){const e=super.getNativeFormProps(),n=this.getContextError();return Object.assign(Object.assign({},e),{className:r()("ui",e.className,{error:n},"form")})}}return t.Semantic=e,t.displayName=`Semantic${n.displayName}`,t}(l.I)},12138:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),o=t(11561),s=t(76424);n.Z=(0,s.e)((function(e){var{className:n,disabled:t,error:r,errorMessage:s,id:u,inputRef:d,label:c,name:m,onChange:p,readOnly:f,required:h,showInlineError:v,value:g,wrapClassName:_}=e,b=(0,a._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","readOnly","required","showInlineError","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:t,error:r,required:h},"field")},(0,o.z)(b)),i.createElement("div",{className:l()("ui",_,!c&&"fitted","checkbox")},i.createElement("input",{checked:g||!1,className:"hidden",disabled:t,id:u,name:m,onChange:()=>{f||p(!g)},ref:d,type:"checkbox"}),i.createElement("label",{htmlFor:u},c||null)),!(!r||!v)&&i.createElement("div",null,i.createElement("div",{className:"ui red basic pointing label"},s)))}),{kind:"leaf"})},14449:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),o=t(11561),s=t(76424);const u=("object"==typeof t.g?t.g:window).Date,d=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};n.Z=(0,s.e)((function(e){var n,{className:t,disabled:r,error:s,errorMessage:c,icon:m,iconLeft:p,iconProps:f,id:h,inputRef:v,label:g,max:_,min:b,name:E,onChange:y,placeholder:O,readOnly:k,required:C,showInlineError:x,value:N,wrapClassName:j,type:F="datetime-local"}=e,P=(0,a._T)(e,["className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","value","wrapClassName","type"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:r,error:s,required:C},"field")},(0,o.z)(P)),g&&i.createElement("label",{htmlFor:h},g),i.createElement("div",{className:l()("ui",j,{left:p,icon:m||p},"input")},i.createElement("input",{disabled:r,id:h,max:d(_),min:d(b),name:E,onChange:e=>{const n=new u(e.target.valueAsNumber);n.getFullYear()<1e4?y(n):isNaN(e.target.valueAsNumber)&&y(void 0)},placeholder:O,readOnly:k,ref:v,type:F,value:null!==(n=d(N,F))&&void 0!==n?n:""}),(m||p)&&i.createElement("i",Object.assign({className:`${m||p} icon`},f))),!(!s||!x)&&i.createElement("div",{className:"ui red basic pointing label"},c))}),{kind:"leaf"})},43351:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),o=t(55201),s=t(11561);n.Z=function(e){var{children:n,className:t}=e,r=(0,a._T)(e,["children","className"]);const{error:u,schema:d}=(0,o.c)();return u||n?i.createElement("div",Object.assign({className:l()("ui",t,"error message")},(0,s.z)(r)),n,i.createElement("ul",{className:"list"},d.getErrorMessages(u).map(((e,n)=>i.createElement("li",{key:n},e))))):null}},77900:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(30454),o=t.n(i),s=t(27378),u=t(65507),d=t(68591),c=t(11561),m=t(76424);n.Z=(0,m.e)((function(e){var{disabled:n,name:t,readOnly:r,value:i}=e,m=(0,a._T)(e,["disabled","name","readOnly","value"]);const p=(0,u.m)(null,t),f=(0,u.m)(p.slice(0,-1)),h=(0,d.U)(f,{},{absoluteName:!0})[0],v=!(n||h.maxCount<=h.value.length);function g(e){!v||r||"key"in e&&"Enter"!==e.key||h.onChange(h.value.concat([o()(i)]))}return s.createElement("i",Object.assign({},(0,c.z)(m),{className:l()("ui",m.className,v?"link":"disabled","fitted add icon"),onClick:g,onKeyDown:g,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},960:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),o=t(65507),s=t(68591),u=t(11561),d=t(76424);n.Z=(0,d.e)((function(e){var{disabled:n,name:t,readOnly:r}=e,d=(0,a._T)(e,["disabled","name","readOnly"]);const c=(0,o.m)(null,t),m=+c[c.length-1],p=(0,o.m)(c.slice(0,-1)),f=(0,s.U)(p,{},{absoluteName:!0})[0];function h(e){if(!(n||"key"in e&&"Enter"!==e.key)){const e=f.value.slice();e.splice(m,1),f.onChange(e)}}return n||(n=r||f.minCount>=f.value.length),i.createElement("i",Object.assign({},(0,u.z)(d),{className:l()("ui",d.className,n?"link":"disabled","fitted close icon"),onClick:h,onKeyDown:h,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},64694:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),o=t(11561),s=t(76424),u=t(77900),d=t(18747);n.Z=(0,s.e)((function(e){var{children:n=i.createElement(d.Z,{name:"$"}),className:t,disabled:r,error:s,errorMessage:c,itemProps:m,label:p,required:f,showInlineError:h,value:v}=e,g=(0,a._T)(e,["children","className","disabled","error","errorMessage","itemProps","label","required","showInlineError","value"]);return i.createElement("div",Object.assign({className:l()("ui",t,{disabled:r},"grouped fitted fields list")},(0,o.z)(g)),p&&i.createElement("div",{className:l()({error:s,required:f},"field item")},i.createElement("label",{className:"left floated"},p),i.createElement(u.Z,{className:"right floated",name:"$"})),p&&i.createElement("div",{className:"ui fitted hidden clearing horizontal divider"}),!(!s||!h)&&i.createElement("div",{className:"ui red basic label"},c),null==v?void 0:v.map(((e,t)=>i.Children.map(n,((e,n)=>{var a;return(0,i.isValidElement)(e)?(0,i.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+t)},m)):e})))))}))},18747:function(e,n,t){"use strict";var a=t(27378),r=t(76424),l=t(68599),i=t(960);n.Z=(0,r.e)((function(e){let{children:n=a.createElement(l.Z,{label:null,name:""})}=e;return a.createElement("div",{className:"item"},a.createElement(i.Z,{className:"top aligned",name:""}),a.createElement("div",{className:"middle aligned content",style:{width:"100%"}},n))}),{initialValue:!1})},80661:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),o=t(11561),s=t(76424),u=t(68599);function d(e){var{children:n,className:t,disabled:r,error:s,errorMessage:d,fields:c,grouped:m,itemProps:p,label:f,showInlineError:h}=e,v=(0,a._T)(e,["children","className","disabled","error","errorMessage","fields","grouped","itemProps","label","showInlineError"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:r,error:s,grouped:m},"fields")},(0,o.z)(v)),f&&i.createElement("div",{className:"field"},i.createElement("label",null,f)),!(!s||!h)&&i.createElement("div",{className:"ui red basic label"},d),n||c.map((e=>i.createElement(u.Z,Object.assign({key:e,name:e},p)))))}d.defaultProps={grouped:!0},n.Z=(0,s.e)(d)},59492:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),o=t(11561),s=t(76424);n.Z=(0,s.e)((function(e){var{className:n,decimal:t,disabled:r,error:s,errorMessage:u,icon:d,iconLeft:c,iconProps:m,id:p,inputRef:f,label:h,max:v,min:g,name:_,onChange:b,placeholder:E,readOnly:y,required:O,showInlineError:k,step:C,value:x,wrapClassName:N}=e,j=(0,a._T)(e,["className","decimal","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","step","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:r,error:s,required:O},"field")},(0,o.z)(j)),h&&i.createElement("label",{htmlFor:p},h),i.createElement("div",{className:l()("ui",N,{left:c,icon:d||c},"input")},i.createElement("input",{disabled:r,id:p,max:v,min:g,name:_,onChange:e=>{const n=(t?parseFloat:parseInt)(e.target.value);b(isNaN(n)?void 0:n)},placeholder:E,readOnly:y,ref:f,step:C||(t?.01:1),type:"number",value:null!=x?x:""}),(d||c)&&i.createElement("i",Object.assign({className:`${d||c} icon`},m))),!(!s||!k)&&i.createElement("div",{className:"ui red basic pointing label"},u))}),{kind:"leaf"})},52559:function(e,n,t){"use strict";var a=t(51674),r=t(68599),l=t(99574),i=t(43351),o=t(82986);n.Z=function e(n){class t extends(a.X.Quick(n)){getAutoField(){return r.Z}getErrorsField(){return i.Z}getSubmitField(){return o.Z}}return t.Quick=e,t}(l.Z)},44591:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(48159),o=t.n(i),s=t(27378),u=t(11561),d=t(76424);const c="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>c(encodeURIComponent(e)).replace(/=+$/,"");n.Z=(0,d.e)((function(e){var{options:n,className:t,disabled:r,error:i,errorMessage:d,id:c,label:p,name:f,onChange:h,readOnly:v,required:g,showInlineError:_,value:b}=e,E=(0,a._T)(e,["options","className","disabled","error","errorMessage","id","label","name","onChange","readOnly","required","showInlineError","value"]);return s.createElement("div",Object.assign({className:l()(t,{disabled:r,error:i},"grouped fields")},o()((0,u.z)(E),["checkboxes"])),p&&s.createElement("div",{className:l()({required:g},"field")},s.createElement("label",null,p)),null==n?void 0:n.map((e=>{var n,t,a,l;return s.createElement("div",{className:"field",key:null!==(n=e.key)&&void 0!==n?n:e.value},s.createElement("div",{className:"ui radio checkbox"},s.createElement("input",{checked:e.value===b,disabled:e.disabled||r,id:`${c}-${null!==(t=e.key)&&void 0!==t?t:m(e.value)}`,name:f,onChange:()=>{v||h(e.value)},type:"radio"}),s.createElement("label",{htmlFor:`${c}-${null!==(a=e.key)&&void 0!==a?a:m(e.value)}`},null!==(l=e.label)&&void 0!==l?l:e.value)))})),!(!i||!_)&&s.createElement("div",{className:"ui red basic pointing label"},d))}),{kind:"leaf"})},47822:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(20098),o=t.n(i),s=t(27378),u=t(11561),d=t(76424);const c="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>c(encodeURIComponent(e)).replace(/=+$/,""),p={paddingBottom:0,paddingTop:0};n.Z=(0,d.e)((function(e){var{options:n,checkboxes:t,className:r,disabled:i,error:d,errorMessage:c,fieldType:f,id:h,inputRef:v,label:g,name:_,onChange:b,placeholder:E,readOnly:y,required:O,showInlineError:k,value:C}=e,x=(0,a._T)(e,["options","checkboxes","className","disabled","error","errorMessage","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);const N=f===Array;return s.createElement("div",Object.assign({className:l()({disabled:i,error:d,required:O},r,"field")},(0,u.z)(x)),g&&s.createElement("label",{htmlFor:h},g),t?null==n?void 0:n.map((e=>{var n,t,a,r;return s.createElement("div",{className:"field",key:null!==(n=e.key)&&void 0!==n?n:e.value},s.createElement("div",{className:"ui checkbox"},s.createElement("input",{checked:N?null==C?void 0:C.includes(e.value):C===e.value,disabled:e.disabled||i,id:`${h}-${null!==(t=e.key)&&void 0!==t?t:m(e.value)}`,name:_,onChange:()=>{y||b(N?o()([e.value],C):e.value)},type:"checkbox"}),s.createElement("label",{htmlFor:`${h}-${null!==(a=e.key)&&void 0!==a?a:m(e.value)}`},null!==(r=e.label)&&void 0!==r?r:e.value)))})):s.createElement("select",{className:"ui selection dropdown",disabled:i,id:h,multiple:N,name:_,onChange:e=>{if(!y){const n=e.target.value;if(N){const t=-1===e.target.selectedIndex;b(t?[]:o()([n],C))}else b(""!==n?n:void 0)}},ref:v,style:p,value:null!=C?C:""},(!!E||!O||void 0===C)&&!N&&s.createElement("option",{value:"",disabled:O,hidden:O},E||g),null==n?void 0:n.map((e=>{var n,t;return s.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))),!(!d||!k)&&s.createElement("div",{className:"ui red basic pointing label"},c))}),{kind:"leaf"})},82986:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),o=t(55201),s=t(11561);function u(e){var{className:n,disabled:t,inputRef:r,readOnly:u,value:d}=e,c=(0,a._T)(e,["className","disabled","inputRef","readOnly","value"]);const{error:m,state:p}=(0,o.c)();return i.createElement("input",Object.assign({className:l()("ui",n,"button"),disabled:void 0===t?!(!m&&!p.disabled):t,readOnly:u,ref:r,type:"submit"},d?{value:d}:{},(0,s.z)(c)))}},99086:function(e,n,t){"use strict";var a=t(59312),r=t(60042),l=t.n(r),i=t(27378),o=t(11561),s=t(76424);function u(e){var{autoComplete:n,className:t,disabled:r,error:s,errorMessage:u,icon:d,iconLeft:c,iconProps:m,id:p,inputRef:f,label:h,name:v,onChange:g,placeholder:_,readOnly:b,required:E,showInlineError:y,type:O,value:k,wrapClassName:C}=e,x=(0,a._T)(e,["autoComplete","className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","type","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:r,error:s,required:E},"field")},(0,o.z)(x)),h&&i.createElement("label",{htmlFor:p},h),i.createElement("div",{className:l()("ui",C,{left:c,icon:d||c},"input")},i.createElement("input",{autoComplete:n,disabled:r,id:p,name:v,onChange:e=>g(e.target.value),placeholder:_,readOnly:b,ref:f,type:O,value:null!=k?k:""}),(d||c)&&i.createElement("i",Object.assign({className:`${d||c} icon`},m))),!(!s||!y)&&i.createElement("div",{className:"ui red basic pointing label"},u))}u.defaultProps={type:"text"},n.Z=(0,s.e)(u,{kind:"leaf"})},3684:function(e,n,t){"use strict";var a=t(23674),r=t(99574);n.Z=function e(n){class t extends(a.O.Validated(n)){}return t.Validated=e,t}(r.Z)},79904:function(e,n,t){"use strict";var a=t(99574),r=t(52559),l=t(3684);n.Z=l.Z.Validated(r.Z.Quick(a.Z))},96614:function(e,n,t){"use strict";var a=t(59312),r=t(27378),l=t(11561),i=t(76424);n.Z=(0,i.e)((function(e){var{disabled:n,id:t,inputRef:i,label:o,name:s,onChange:u,placeholder:d,readOnly:c,value:m}=e,p=(0,a._T)(e,["disabled","id","inputRef","label","name","onChange","placeholder","readOnly","value"]);return r.createElement("div",Object.assign({},(0,l.z)(p)),o&&r.createElement("label",{htmlFor:t},o),r.createElement("textarea",{disabled:n,id:t,name:s,onChange:e=>u(e.target.value),placeholder:d,readOnly:c,ref:i,value:null!=m?m:""}))}),{kind:"leaf"})},39850:function(e,n,t){"use strict";t.d(n,{N:function(){return p}});var a=t(13784),r=t.n(a),l=t(56141),i=t.n(l),o=t(48159),s=t.n(o),u=t(96498),d=t.n(u),c=t(6820),m=t(51674);const p=function e(n){class t extends n{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{model:this.mergeSchemaAndPropsModel(this.props.schema,this.props.model)})}mergeSchemaAndPropsModel(e,n){const t=e.getInitialModel();return Object.assign(t,n)}componentDidUpdate(e,n,t){const{model:a,schema:r}=this.props;i()(a,e.model)||this.setState({model:this.mergeSchemaAndPropsModel(r,a)}),super.componentDidUpdate(e,n,t)}getNativeFormProps(){const e=super.getNativeFormProps();return s()(e,["onChangeModel"])}getModel(e){return this.state.model}onChange(e,n){super.onChange(e,n),this.setState((t=>({model:d()(r()(t.model),e,n,r())})),(()=>{this.props.onChangeModel&&this.props.onChangeModel(this.state.model)}))}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{model:this.props.model})}}return t.Auto=e,t.displayName=`Auto${n.displayName}`,t}((0,t(23674).u)((0,m.s)(c.I)))},6820:function(e,n,t){"use strict";t.d(n,{I:function(){return b}});var a=t(13784),r=t.n(a),l=t(99729),i=t.n(l),o=t(48159),s=t.n(o),u=t(96498),d=t.n(u),c=t(27378),m=t(56141),p=t.n(m),f=t(65507);function h(e){return!(!e||e!==Object(e)||e instanceof Date)}var v=t(34361);function g(e){let n=0;return()=>`${e}-${("000"+(n++).toString(36)).slice(-4)}`}const _=g("uniforms");class b extends c.Component{constructor(e){var n,t;super(e),n=this,this.state={changed:!1,changedMap:Object.create(null),resetCount:0,submitted:!1,submitting:!1},this.mounted=!1,this.randomId=(void 0===(t=this.props.id)&&(t=_()),g(t)),this.onReset=this.reset=this.onReset.bind(this),this.onChange=this.change=this.onChange.bind(this),this.onSubmit=this.submit=this.onSubmit.bind(this);const a=this.getModel.bind(this);this.getModel=function(e,t){return void 0===t&&(t=a(e)),void 0!==e&&n.props.modelTransform?n.props.modelTransform(e,t):t}}componentDidMount(){this.mounted=!0}componentDidUpdate(e,n,t){}componentWillUnmount(){this.mounted=!1,this.delayId&&clearTimeout(this.delayId)}getContext(){return{changed:this.state.changed,changedMap:this.state.changedMap,error:this.getContextError(),formRef:this,model:this.getContextModel(),name:this.getContextName(),onChange:this.getContextOnChange(),onSubmit:this.getContextOnSubmit(),randomId:this.randomId,schema:this.getContextSchema(),state:this.getContextState(),submitted:this.state.submitted,submitting:this.state.submitting,validating:!1}}getContextName(){return[]}getContextError(){return this.props.error}getContextModel(){return this.getModel("form")}getContextState(){return{disabled:!!this.props.disabled,readOnly:!!this.props.readOnly,showInlineError:!!this.props.showInlineError}}getContextSchema(){return this.props.schema}getContextOnChange(){return this.onChange}getContextOnSubmit(){return this.onSubmit}getModel(e,n){return void 0===n&&(n=this.props.model),n}getNativeFormProps(){const e=s()(this.props,["autosave","autosaveDelay","disabled","error","model","modelTransform","onChange","onSubmit","readOnly","schema","showInlineError"]);return Object.assign(Object.assign({},e),{onSubmit:this.onSubmit,key:`reset-${this.state.resetCount}`})}onChange(e,n){if(this.mounted){const t=function(e,n,t){if(!h(n)||t&&typeof n!=typeof t)return p()(n,t)?[]:[e];const a=[e];if(h(t)){for(const r in n)r in t&&p()(n[r],t[r])||a.push((0,f.m)(e,r));for(const r in t)r in n||a.push((0,f.m)(e,r));1===a.length&&a.pop()}else for(const r in n)a.push((0,f.m)(e,r));return a}(e,n,i()(this.getModel(),e));0!==t.length&&this.setState((e=>e.changed&&t.every((n=>!!i()(e.changedMap,n)))?null:{changed:!0,changedMap:t.reduce(((e,n)=>d()(e,n,{},r())),r()(e.changedMap))}))}this.props.onChange&&this.props.onChange(e,n),this.mounted&&this.props.autosave&&(this.delayId&&clearTimeout(this.delayId),this.delayId=setTimeout((()=>{this.mounted&&this.setState((()=>null),(()=>{this.onSubmit()}))}),this.props.autosaveDelay))}__reset(e){return{changed:!1,changedMap:Object.create(null),resetCount:e.resetCount+1,submitted:!1,submitting:!1}}onReset(){this.mounted&&this.setState(this.__reset)}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.mounted&&this.setState((e=>e.submitted?null:{submitted:!0}));const n=this.props.onSubmit(this.getModel("submit"));return n instanceof Promise?(this.mounted&&this.setState({submitting:!0}),n.finally((()=>{this.mounted&&this.setState({submitting:!1})}))):Promise.resolve()}render(){return c.createElement(v.D.Provider,{value:this.getContext()},c.createElement("form",Object.assign({},this.getNativeFormProps())))}}b.displayName="Form",b.defaultProps={autosave:!1,autosaveDelay:0,error:null,model:Object.create(null),noValidate:!0,onSubmit(){}}},98949:function(e,n,t){"use strict";t.d(n,{k:function(){return o}});var a=t(3996),r=t.n(a),l=t(47215),i=t.n(l);class o{constructor(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];r()(this.constructor!==o,"Bridge cannot be instantiated (args=%o).",{args:n})}getError(e,n){return r()(!1,"%s have not implemented `getError` method (args=%o).",this.constructor.name,{name:e,error:n})}getErrorMessage(e,n){return r()(!1,"%s have not implemented `getErrorMessage` method (args=%o).",this.constructor.name,{name:e,error:n})}getErrorMessages(e){return r()(!1,"%s have not implemented `getErrorMessages` method (args=%o).",this.constructor.name,{error:e})}getField(e){return r()(!1,"%s have not implemented `getField` method (args=%o).",this.constructor.name,{name:e})}getInitialValue(e){return r()(!1,"%s have not implemented `getInitialValue` method (args=%o).",this.constructor.name,{name:e})}getInitialModel(){const e={},n=this.getSubfields();for(const t of n){const n=this.getInitialValue(t);i()(e,t,n)}return e}getProps(e){return r()(!1,"%s have not implemented `getProps` method (args=%o).",this.constructor.name,{name:e})}getSubfields(e){return r()(!1,"%s have not implemented `getSubfields` method (args=%o).",this.constructor.name,{name:e})}getType(e){return r()(!1,"%s have not implemented `getType` method (args=%o).",this.constructor.name,{name:e})}getValidator(e){return r()(!1,"%s have not implemented `getValidator` method (args=%o).",this.constructor.name,{options:e})}}},51674:function(e,n,t){"use strict";t.d(n,{X:function(){return i},s:function(){return l}});var a=t(59312),r=t(27378);function l(e){class n extends e{getNativeFormProps(){const e=super.getNativeFormProps(),{errorsField:n=this.getErrorsField(),submitField:t=this.getSubmitField()}=e,l=(0,a._T)(e,["errorsField","submitField"]),i=this.getAutoField();return l.children||(l.children=this.getContextSchema().getSubfields().map((e=>r.createElement(i,{key:e,name:e}))).concat([r.createElement(n,{key:"$ErrorsField"}),r.createElement(t,{key:"$SubmitField"})])),l}getAutoField(){return()=>null}getErrorsField(){return()=>null}getSubmitField(){return()=>null}}return n.Quick=l,n.displayName=`Quick${e.displayName}`,n}const i=l(t(6820).I)},23674:function(e,n,t){"use strict";t.d(n,{O:function(){return g},u:function(){return h}});var a=t(13784),r=t.n(a),l=t(30454),i=t.n(l),o=t(56141),s=t.n(o),u=t(50344),d=t.n(u),c=t(48159),m=t.n(c),p=t(96498),f=t.n(p);function h(e){class n extends e{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{error:null,validate:!1,validating:!1,validator:this.getContextSchema().getValidator(e.validator)}),this.onValidate=this.validate=this.onValidate.bind(this),this.onValidateModel=this.validateModel=this.onValidateModel.bind(this)}getContextError(){var e;return null!==(e=super.getContextError())&&void 0!==e?e:this.state.error}getContext(){return Object.assign(Object.assign({},super.getContext()),{validating:this.state.validating})}getNativeFormProps(){const e=super.getNativeFormProps();return m()(e,["onValidate","validate","validator"])}componentDidUpdate(e,n,t){super.componentDidUpdate(e,n,t);const{model:a,schema:r,validate:l,validator:i}=this.props;r!==e.schema||i!==e.validator?this.setState({validator:r.getValidator(i)},(()=>{v(l,this.state.validate)&&this.onValidate()})):!s()(a,e.model)&&v(l,this.state.validate)&&this.onValidateModel(a)}onChange(e,n){v(this.props.validate,this.state.validate)&&this.onValidate(e,n),super.onChange(e,n)}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{error:null,validate:!1,validating:!1})}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.setState({submitted:!0,validate:!0});const n=this.onValidate().then((e=>null!==e?Promise.reject(e):super.onSubmit().catch((e=>{throw this.setState({error:e}),e}))));return n.catch(d()),n}onValidate(e,n){let t=this.getContextModel();return t&&e&&(t=f()(r()(t),e,i()(n),r())),this.onValidateModel(t)}onValidateModel(e){var n=this;const t=this.getModel("validate",e),a=function(e){function n(n,t){return n instanceof Promise?(e(),n.then(t)):t(n)}return n}((()=>{this.setState({validating:!0})}));return a(this.state.validator(t),(function(e){return void 0===e&&(e=null),a(n.props.onValidate(t,e),(function(e){var t;return void 0===e&&(e=null),e=n.props.error===e?null:e,n.setState((n=>n.error!==e||n.validating?{error:e,validating:!1}:null)),Promise.resolve(null!==(t=n.props.error)&&void 0!==t?t:e)}))}))}}return n.Validated=h,n.displayName=`Validated${e.displayName}`,n.defaultProps=Object.assign(Object.assign({},e.defaultProps),{onValidate(e,n){return n},validate:"onChangeAfterSubmit"}),n}function v(e,n){return"onChange"===e||"onChangeAfterSubmit"===e&&n}const g=h(t(6820).I)},76424:function(e,n,t){"use strict";t.d(n,{e:function(){return s}});var a=t(25389),r=t.n(a),l=t(27378),i=t(34361),o=t(68591);function s(e,n){function t(t){const[a,s]=(0,o.U)(t.name,t,n),u=function(e,n,t){if("leaf"===(null==t?void 0:t.kind))return e;const a=""!==n.name,l=Object.keys(e.state).some((e=>null!=n[e]));if(!a&&!l)return e;const i=Object.assign({},e);return a&&(i.name=i.name.concat(n.name)),l&&(i.state=r()(i.state,((e,t)=>{const a=n[t];return null!=a?!!a:e}))),i}(s,t,n),d=l.createElement(e,Object.assign({},t,a));return s===u?d:l.createElement(i.D.Provider,{children:d,value:u})}return t.displayName=`${e.displayName||e.name}Field`,Object.assign(t,{Component:e,options:n})}},34361:function(e,n,t){"use strict";t.d(n,{D:function(){return a}});const a=(0,t(27378).createContext)(null)},6846:function(e,n,t){"use strict";t.d(n,{a:function(){return s}});var a=t(59312),r=t(3996),l=t.n(r),i=t(27378),o=t(68591);function s(e){const n=(0,i.createContext)(e);return Object.assign((function(e){var t,{experimental_absoluteName:r}=e,s=(0,a._T)(e,["experimental_absoluteName"]);const u={absoluteName:r},[d,c]=(0,o.U)(s.name,s,u),m=(0,i.useContext)(n)(d,c);return l()(m,"AutoField received no component for: %s",d.name),"options"in m&&"leaf"===(null===(t=m.options)||void 0===t?void 0:t.kind)?(0,i.createElement)(m.Component,d):(0,i.createElement)(m,s)}),{componentDetectorContext:n,defaultComponentDetector:e})}},11561:function(e,n,t){"use strict";t.d(n,{z:function(){return l}});const a=[],r=new Set,l=Object.assign((function(e){const n=Object.assign({},e);for(const t in e)r.has(t)&&delete n[t];return n}),{register(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];n.forEach((e=>{r.has(e)||(a.push(e),r.add(e))})),a.sort()},registered:a});l.register("changed","error","errorMessage","field","fieldType","fields","name","onChange","value","disabled","showInlineError","component")},65507:function(e,n,t){"use strict";t.d(n,{m:function(){return c}});const a=/[.[\]]/,r=/"/g;function l(e){return""===e||a.test(e)?`["${e.replace(r,'\\"')}"]`:e}function i(e,n){const t=l(e);return t===e?n?`.${e}`:e:t}const o=/^\["(.*)"]$/,s=/\\"/g;function u(e){const n=o.exec(e);return n?n[1].replace(s,'"'):e}const d=/^([^.[\]]*(?:\.[^.[\]]+)*)(?:\.?(\["(?:(?:[^"]|\\")*?[^\\])?"])\.?(.*))?$/;const c=Object.assign((function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];const a=null===n[0],r=[];for(let l=0;l!==n.length;++l){const e=n[l];if(e||0===e)if("string"==typeof e){const t=d.exec(e);if(t){const[,e,a,i]=t;e&&(e.includes(".")?r.push(...e.split(".")):r.push(e)),a&&(r.push(u(a)),i&&(n[l--]=i))}else r.push(e)}else if(Array.isArray(e)){if(e.length){const t=Math.min(l+1,e.length);l-=t,n.splice(l+1,t,...e)}}else r.push(""+e)}return a?r.map(l):r.map(i).join("")}),{escape:l,unescape:u})},68591:function(e,n,t){"use strict";t.d(n,{U:function(){return d}});var a=t(99729),r=t.n(a),l=t(25389),i=t.n(l),o=t(27378),s=t(65507),u=t(55201);function d(e,n,t){var a,l,d;const c=(0,u.c)(),m=(0,s.m)((null==t?void 0:t.absoluteName)?"":c.name,e),p=c.schema.getField(m),f=!1!==(null==t?void 0:t.initialValue),h=f?(0,o.useRef)(!1):{current:!1},v=i()(c.state,((e,t)=>{const a=n[t];return null!=a?!!a:e})),g=!!r()(c.changedMap,m),_=c.schema.getError(m,c.error),b=c.schema.getErrorMessage(m,c.error),E=c.schema.getType(m),y=c.schema.getSubfields(m),O=c.schema.getProps(m),k=null!==(l=null!==(a=n.label)&&void 0!==a?a:O.label)&&void 0!==l?l:"",C=(0,o.useMemo)((()=>c.randomId()),[]),x=(0,o.useCallback)((function(e,n){void 0===n&&(n=m),h.current=!0,c.onChange(n,e)}),[c.onChange,m]),N=r()(c.model,m);let j,F=null!==(d=n.value)&&void 0!==d?d:N;f&&(h.current||(void 0===F?(F=c.schema.getInitialValue(m),j=F):void 0!==n.value&&n.value!==N&&(j=n.value)),(0,o.useEffect)((()=>{void 0!==j&&x(j)}),[]));return[Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:C},v),{changed:g,error:_,errorMessage:b,field:p,fieldType:E,fields:y,onChange:x,value:F}),O),n),{label:k,name:m}),c]}},55201:function(e,n,t){"use strict";t.d(n,{c:function(){return o}});var a=t(3996),r=t.n(a),l=t(27378),i=t(34361);function o(){const e=(0,l.useContext)(i.D);return r()(null!==e,"useForm must be used within a form.\n\nTwo most common reasons for this error are:\n1. Component calling this function doesn't have a parent Form component in the tree.\n2. A duplicate uniforms dependency is installed in node_modules.\n\nFor more info check FAQ: https://uniforms.tools/docs/faq/#useform-must-be-used-within-a-form\n "),e}},57292:function(e,n,t){"use strict";t.d(n,{f:function(){return l}});var a=t(95256),r=t(27378);function l(e){let{language:n,replace:t,section:l,source:i}=e;if("object"==typeof i&&"default"in i&&(i=i.default),l){const e=new RegExp(`// <${l}>\\s([\\s\\S]*?)\\s// </${l}>\\s`,"g");i=i.split(e).reduce(((e,n,t)=>t%2==0?e:`${e}\n\n${n}`),"")}if(i=i.replace(/\/\/ <.*?\n/g,""),t)for(const[a,r]of Object.entries(t))i=i.replace(new RegExp(a,"gs"),r);return i=i.trim(),i.includes("\n")||(i+="\n"),r.createElement(a.Z.pre,null,r.createElement(a.Z.code,{children:i,className:`language-${n}`,mdxType:"code",originalType:"code",parentName:"pre"}))}},633:function(e,n,t){"use strict";t.d(n,{n:function(){return c}});var a=t(25773),r=t(27378),l=t(4940),i=t(99729),o=t.n(i);function s(e){const[n,t]=(0,r.useState)(300),a=(0,r.useRef)(),l=(0,r.useCallback)((()=>function(e,n){const t=o()(e.current,"node.contentDocument.body.scrollHeight",0);0!==t&&n(t)}(a,t)),[a,t]);return(0,r.useEffect)((()=>{const e=setInterval(l,1e3);return()=>clearInterval(e)}),[l,...e]),{onLoad:l,ref:a,style:{height:n}}}var u=t(80912),d=t(37126);function c(e){const n=(0,r.useContext)(u.nN),t=s([e.children]);return r.createElement("div",{className:l.Z["form-wrapper"]},r.createElement(d.d,(0,a.Z)({frameProps:t,theme:n},e)))}},37126:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return Playground},d:function(){return PlaygroundWrap}});var _home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(25773),antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(64222),classnames__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(60042),classnames__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__),lodash_omit__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(48159),lodash_omit__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(27378),react_frame_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5766),uniforms__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23674),uniforms__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(34361),uniforms__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(55201),uniforms__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(76424),_index_module_css__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4940),_lib_presets__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5037),_lib_schema__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5413),_lib_styles__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(27611),_lib_universal__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(80912),_lib_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(37309);class Playground extends react__WEBPACK_IMPORTED_MODULE_2__.Component{static getDerivedStateFromError(e){return{error:e}}constructor(){super(...arguments);const e=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.clean((0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.mB)());try{_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.validate(e)}catch(n){n.details.forEach((n=>{let{name:t}=n;e[t]=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.getDefinition(t).defaultValue}))}this.state=e,this.onChange=this.onChange.bind(this)}componentDidMount(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}componentDidUpdate(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}onChange(e,n){"preset"===e&&this.setState((e=>({props:{...e.props,schema:_lib_presets__WEBPACK_IMPORTED_MODULE_5__.Z[n]}}))),this.setState({error:void 0,[e]:n})}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundForm,{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z.playground,model:this.state,onChange:this.onChange,schema:_lib_schema__WEBPACK_IMPORTED_MODULE_6__.J},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-column"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement("nav",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-toolbar"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"preset"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"theme"})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPropsField,{name:"props",spellCheck:!1})),this.state.error?react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",{children:""+this.state.error}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPreviewField,{name:"props",nameTheme:"theme"}))}}class PlaygroundForm extends uniforms__WEBPACK_IMPORTED_MODULE_10__.O{getContextState(){return{...super.getContextState(),theme:this.props.model.theme}}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(uniforms__WEBPACK_IMPORTED_MODULE_11__.D.Provider,{value:this.getContext()},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",lodash_omit__WEBPACK_IMPORTED_MODULE_1___default()(this.getNativeFormProps(),["onSubmit"])))}}const PlaygroundModelDebug=()=>{const{model:e}=(0,uniforms__WEBPACK_IMPORTED_MODULE_12__.c)();return react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("code",null,`const model = ${JSON.stringify(e,null,2)};`)))};class PlaygroundPreview extends react__WEBPACK_IMPORTED_MODULE_2__.Component{constructor(){super(...arguments),this._schema=eval(`(${this.props.value.schema})`)}UNSAFE_componentWillReceiveProps(props){this.props.value.schema!==props.value.schema&&(this._schema=eval(`(${props.value.schema})`))}render(){const{AutoFields:e,AutoForm:n,ErrorsField:t,SubmitField:a}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[this.props.theme||"unstyled"],{asyncOnSubmit:r,asyncOnValidate:l,schema:i,...o}=this.props.value;return o.schema=this._schema,r&&(o.onSubmit=()=>new Promise((e=>{setTimeout(e,1e3)}))),l&&(o.onValidate=(e,n)=>new Promise((e=>{setTimeout((()=>{e(n)}),1e3)}))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:this.props.theme},this.props.errorMessage?react__WEBPACK_IMPORTED_MODULE_2__.createElement("span",{children:this.props.errorMessage}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(n,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({key:(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.nN)(i)},o),react__WEBPACK_IMPORTED_MODULE_2__.createElement(e,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(t,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(a,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundModelDebug,null)))}}const PlaygroundPreviewField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundPreview);class PlaygroundProps extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{onChange:e,schema:n,theme:t,value:a}=this.props,r="antd"===t,l="bootstrap4"===t,i="material"===t,o="semantic"===t,{AutoForm:s,BoolField:u,ErrorsField:d,LongTextField:c,NumField:m}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[t||"unstyled"];return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:t},react__WEBPACK_IMPORTED_MODULE_2__.createElement(s,{autosave:!0,autosaveDelay:100,model:a,onSubmit:e,schema:n},react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"autosave"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(m,{name:"autosaveDelay",disabled:!a.autosave}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"disabled"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"readOnly"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"label"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"placeholder"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"showInlineError",disabled:!(r||l||i||o)}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"asyncOnSubmit"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,{name:"asyncOnValidate"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({name:"schema"},i&&{fullWidth:!0,rowsMax:20})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(d,null)))}}const PlaygroundPropsField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundProps);class PlaygroundSelect extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{options:e,onChange:n,value:t}=this.props;return react__WEBPACK_IMPORTED_MODULE_2__.createElement("select",{onChange:e=>n(e.target.value),value:t},e.map((e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement("option",{key:e.key??e.value,value:e.value},e.label??e.value))))}}const PlaygroundSelectField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundSelect);class PlaygroundWrap extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{children:e,frameProps:n,theme:t}=this.props,a=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,e,_lib_styles__WEBPACK_IMPORTED_MODULE_7__.Z[t]);if("material"===t||"mui"===t)return react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{children:a,className:classnames__WEBPACK_IMPORTED_MODULE_0___default()("frame-root",_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"])});let r=a;return"antd"===t&&(r=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.Kr,null,(e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__.default,{getPopupContainer:()=>e.document.body},a)))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.ZP,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({children:r,className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"]},n))}}},46867:function(e,n,t){"use strict";t.d(n,{TX:function(){return s},mQ:function(){return d}});var a=t(60042),r=t.n(a),l=t(27378),i=t(4940),o=t(59150);function s(e){let{activeTab:n,items:t,onTab:a}=e;return l.createElement("div",{className:i.Z.tabs},t.map(((e,t)=>{let{name:r}=e;return l.createElement(u,{active:n===t,key:t,onClick:()=>a(t)},r)})))}function u(e){let{active:n,children:t,onClick:a}=e;return l.createElement("span",{className:r()(i.Z.item,n&&i.Z.active),onClick:a,onKeyDown:e=>"Enter"===e.key&&a(),role:"button",tabIndex:0},t)}function d(e){let{children:n,group:t,tabs:a}=e;const{activeTab:r,onTab:i}=(0,o.Y)(t);return l.createElement(l.Fragment,null,l.createElement(s,{activeTab:r,items:a,onTab:i}),n(a[r]))}},53009:function(e,n,t){"use strict";t.d(n,{R:function(){return s}});var a=t(27378),r=t(80912),l=t(633),i=t(46867);const o=[{name:"Semantic",value:"semantic"},{name:"Material",value:"material"},{name:"MUI",value:"mui"},{name:"Bootstrap4",value:"bootstrap4"},{name:"Bootstrap5",value:"bootstrap5"},{name:"AntD",value:"antd"},{name:"Unstyled",value:"unstyled"}];function s(e){let{children:n}=e;return a.createElement(i.mQ,{group:"tutorial",tabs:o},(e=>{let{value:t}=e;return a.createElement(r.nN.Provider,{value:t},a.createElement(l.n,null,n))}))}},5037:function(e,n){"use strict";const t=e=>e[0].slice(5,-3).replace(/([\r\n]+) {4}/g,"$1"),a={"Welcome!":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + date: { type: Date, defaultValue: new Date() }, + adult: Boolean, + size: { + type: String, + defaultValue: 'm', + allowedValues: ['xs', 's', 'm', 'l', 'xl'], + }, + rating: { + type: Number, + allowedValues: [1, 2, 3, 4, 5], + uniforms: { checkboxes: true }, + }, + friends: { type: Array, minCount: 1 }, + 'friends.$': Object, + 'friends.$.name': { type: String, min: 3 }, + 'friends.$.age': { type: Number, min: 0, max: 150 }, + }) + }) + `,"Address (JSONSchema)":t` + (() => { + const ajv = new Ajv({ allErrors: true, useDefaults: true, keywords: ["uniforms"] }); + const schema = { + title: 'Address', + type: 'object', + properties: { + city: { type: 'string' }, + state: { type: 'string' }, + street: { type: 'string' }, + zip: { type: 'string', pattern: '[0-9]{5}' }, + }, + required: ['street', 'zip', 'state'], + }; + + function createValidator(schema) { + const validator = ajv.compile(schema); + + return (model) => { + validator(model); + + if (validator.errors && validator.errors.length) { + return { details: validator.errors }; + } + }; + } + + const validator = createValidator(schema); + + return new JSONSchemaBridge({ schema, validator }); + })() + `,"Address (SimpleSchema)":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + city: { + type: String, + optional: true, + max: 50, + }, + state: String, + street: { type: String, max: 100 }, + zip: { + type: String, + regEx: /^[0-9]{5}$/, + }, + }) + }) + `,"Address (Zod)":t` + new ZodBridge({ + schema: z.object({ + city: z.string().max(50).optional(), + state: z.string(), + street: z.string().max(100), + zip: z.string().regex(/^[0-9]{5}$/), + }) + }) + `,"All Fields (SimpleSchema)":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + text: { type: String }, + num: { type: Number }, + bool: { type: Boolean }, + nested: { type: Object }, + 'nested.text': { type: String }, + date: { type: Date }, + list: { type: Array }, + 'list.$': { + type: String, + uniforms: { label: 'List Text', placeholder: 'List Text Placeholder' }, + }, + select: { + type: String, + uniforms: { + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + radio: { + type: String, + uniforms: { + checkboxes: true, + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + }) + }) + `,"All Fields (Zod)":t` + new ZodBridge({ + schema: z.object({ + text: z.string(), + num: z.number(), + bool: z.boolean(), + nested: z.object({ text: z.string() }), + date: z.date(), + // TODO: Custom label and placeholder. + list: z.array(z.string()), + select: z.enum(['a', 'b']), + // TODO: Enums with custom props. + radio: z.enum(['a', 'b']), + }) + }) + `};n.Z=a},5413:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return bridge},f:function(){return schema}});var ajv__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(86236),ajv__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(ajv__WEBPACK_IMPORTED_MODULE_0__),message_box__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(28622),simpl_schema__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(13762),simpl_schema__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(simpl_schema__WEBPACK_IMPORTED_MODULE_2__),uniforms__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(11561),uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(73633),uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(12005),uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(48616),zod__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(84200),_presets__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5037),_universal__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(80912);uniforms__WEBPACK_IMPORTED_MODULE_8__.z.register("const");const scope="undefined"==typeof window?__webpack_require__.g:window;simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().extendOptions(["uniforms"]),scope.Ajv=ajv__WEBPACK_IMPORTED_MODULE_0___default(),scope.JSONSchemaBridge=uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__.j,scope.SimpleSchema=simpl_schema__WEBPACK_IMPORTED_MODULE_2___default(),scope.SimpleSchema2Bridge=uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V,scope.ZodBridge=uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__.K,scope.z=zod__WEBPACK_IMPORTED_MODULE_9__.z,message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:""}}});const propsSchema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({autosave:{optional:!0,type:Boolean},autosaveDelay:{optional:!0,type:simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().Integer},disabled:{optional:!0,type:Boolean},label:{optional:!0,type:Boolean},placeholder:{optional:!0,type:Boolean},readOnly:{optional:!0,type:Boolean},showInlineError:{optional:!0,type:Boolean},asyncOnSubmit:{optional:!0,type:Boolean,label:"Async onSubmit (1 sec)"},asyncOnValidate:{optional:!0,type:Boolean,label:"Async onValidate (1 sec)"},schema:{optional:!0,type:String,custom(){try{return void eval(`(${this.value??""})`)}catch(error){const e=error instanceof Error?error.message:String(error);return message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:e}}}),"syntax"}}}}),propsBridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:propsSchema}),schema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({preset:{type:String,defaultValue:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0],allowedValues:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)},props:{type:Object,blackbox:!0,defaultValue:{autosave:!1,autosaveDelay:100,disabled:!1,label:!0,placeholder:!1,readOnly:!1,schema:_presets__WEBPACK_IMPORTED_MODULE_6__.Z[Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0]],showInlineError:!1,asyncOnSubmit:!1,asyncOnValidate:!1},uniforms:{schema:propsBridge}},theme:{type:String,uniforms:{transform:e=>`uniforms-${e}`},defaultValue:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)[0],allowedValues:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)}}),bridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:schema})},27611:function(e,n,t){"use strict";var a=t(27378);const r=a.createElement("style",{children:'\n body {\n margin: 0;\n }\n\n textarea[name="schema"] {\n font-family: monospace !important;\n min-height: 20em !important;\n }\n\n .frame-root {\n padding: 1rem !important;\n }\n',key:"common"}),l=e=>e.map(((e,n)=>a.createElement("link",{key:n,rel:"stylesheet",href:e}))).concat(r),i={antd:l(["https://cdnjs.cloudflare.com/ajax/libs/antd/4.4.0/antd.min.css"]),bootstrap4:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css"]),bootstrap5:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css"]),material:l([]),mui:l([]),semantic:l(["https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.7/semantic.min.css"]),unstyled:l([])};n.Z=i},59150:function(e,n,t){"use strict";t.d(n,{Y:function(){return i}});var a=t(27378);const r=Object.create(null),l=Object.create(null);function i(e){const[n,t]=(0,a.useState)(r[e]||0),i=(0,a.useCallback)((n=>function(e,n){r[e]=n,l[e].forEach((e=>{e(n)}))}(e,n)),[e]);return(0,a.useEffect)((()=>function(e,n){return void 0===l[e]&&(r[e]=0,l[e]=[]),l[e].push(n),()=>{l[e].splice(l[e].indexOf(n),1)}}(e,t)),[e]),{activeTab:n,onTab:i}}},80912:function(e,n,t){"use strict";t.d(n,{Pt:function(){return Gr},UE:function(){return Qr},NE:function(){return Yr},ME:function(){return Jr},yc:function(){return Hr},hI:function(){return Xr},mg:function(){return el},hl:function(){return nl},nv:function(){return tl},nN:function(){return rl},np:function(){return al}});var a={};t.r(a),t.d(a,{AutoField:function(){return ge},AutoFields:function(){return be},AutoForm:function(){return Te},BaseForm:function(){return Oe},BoolField:function(){return w},DateField:function(){return A},ErrorField:function(){return Ae},ErrorsField:function(){return Ne},HiddenField:function(){return Re},ListAddField:function(){return K},ListDelField:function(){return G},ListField:function(){return ae},ListItemField:function(){return ee},LongTextField:function(){return Le},NestField:function(){return re},NumField:function(){return ie},QuickForm:function(){return Fe},RadioField:function(){return de},SelectField:function(){return fe},SubmitField:function(){return je},TextField:function(){return ve},ValidatedForm:function(){return we},ValidatedQuickForm:function(){return Me},wrapField:function(){return P}});var r={};t.r(r),t.d(r,{AutoField:function(){return fn},AutoFields:function(){return hn},AutoForm:function(){return kn},BaseForm:function(){return vn},BoolField:function(){return Ke},DateField:function(){return Ge},ErrorField:function(){return Cn},ErrorsField:function(){return gn},HiddenField:function(){return xn},ListAddField:function(){return Je},ListDelField:function(){return Xe},ListField:function(){return nn},ListItemField:function(){return en},LongTextField:function(){return Nn},NestField:function(){return tn},NumField:function(){return an},QuickForm:function(){return En},RadioField:function(){return on},SelectField:function(){return mn},SubmitField:function(){return bn},TextField:function(){return pn},ValidatedForm:function(){return yn},ValidatedQuickForm:function(){return On},gridClassName:function(){return $e},wrapField:function(){return ze}});var l={};t.r(l),t.d(l,{AutoField:function(){return Jn},AutoFields:function(){return Hn},AutoForm:function(){return it},BaseForm:function(){return Xn},BoolField:function(){return Tn},DateField:function(){return An},ErrorField:function(){return ot},ErrorsField:function(){return et},HiddenField:function(){return st},ListAddField:function(){return Sn},ListDelField:function(){return Bn},ListField:function(){return Zn},ListItemField:function(){return Wn},LongTextField:function(){return ut},NestField:function(){return Un},NumField:function(){return Vn},QuickForm:function(){return at},RadioField:function(){return Kn},SelectField:function(){return Gn},SubmitField:function(){return tt},TextField:function(){return Yn},ValidatedForm:function(){return rt},ValidatedQuickForm:function(){return lt},gridClassName:function(){return wn},wrapField:function(){return Mn}});var i={};t.r(i),t.d(i,{AutoField:function(){return $t},AutoFields:function(){return zt},AutoForm:function(){return Xt},BaseForm:function(){return Kt},BoolField:function(){return bt},DateField:function(){return kt},ErrorField:function(){return ea},ErrorsField:function(){return qt},HiddenField:function(){return na},ListAddField:function(){return jt},ListDelField:function(){return Pt},ListField:function(){return Mt},ListItemField:function(){return wt},LongTextField:function(){return ta},NestField:function(){return Tt},NumField:function(){return It},QuickForm:function(){return Yt},RadioField:function(){return Lt},SelectField:function(){return Ut},SubmitField:function(){return Gt},TextField:function(){return Vt},ValidatedForm:function(){return Jt},ValidatedQuickForm:function(){return Ht},wrapField:function(){return _t}});var o={};t.r(o),t.d(o,{AutoField:function(){return Sa},AutoFields:function(){return La},AutoForm:function(){return za},BaseForm:function(){return Ba},BoolField:function(){return ca},DateField:function(){return ha},ErrorField:function(){return Ka},ErrorsField:function(){return Wa},HiddenField:function(){return qa},ListAddField:function(){return ba},ListDelField:function(){return Oa},ListField:function(){return Ca},ListItemField:function(){return ka},LongTextField:function(){return Qa},NestField:function(){return xa},NumField:function(){return Na},QuickForm:function(){return Ua},RadioField:function(){return Ma},SelectField:function(){return Aa},SubmitField:function(){return Za},TextField:function(){return Ra},ValidatedForm:function(){return Va},ValidatedQuickForm:function(){return $a},wrapField:function(){return da}});var s={};t.r(s),t.d(s,{AutoField:function(){return Ga.Z},AutoFields:function(){return Ya},AutoForm:function(){return Ja.Z},BaseForm:function(){return Ha.Z},BoolField:function(){return Xa.Z},DateField:function(){return er.Z},ErrorField:function(){return nr},ErrorsField:function(){return tr.Z},HiddenField:function(){return ar},ListAddField:function(){return rr.Z},ListDelField:function(){return lr.Z},ListField:function(){return ir.Z},ListItemField:function(){return or.Z},LongTextField:function(){return sr},NestField:function(){return ur.Z},NumField:function(){return dr.Z},QuickForm:function(){return cr.Z},RadioField:function(){return mr.Z},SelectField:function(){return pr.Z},SubmitField:function(){return fr.Z},TextField:function(){return hr.Z},ValidatedForm:function(){return vr.Z},ValidatedQuickForm:function(){return gr.Z}});var u={};t.r(u),t.d(u,{AutoField:function(){return Rr},AutoFields:function(){return Sr},AutoForm:function(){return $r},BaseForm:function(){return Lr},BoolField:function(){return _r},DateField:function(){return yr},ErrorField:function(){return zr},ErrorsField:function(){return Br},HiddenField:function(){return Kr},ListAddField:function(){return Or},ListDelField:function(){return kr},ListField:function(){return xr},ListItemField:function(){return Cr},LongTextField:function(){return qr.Z},NestField:function(){return Nr},NumField:function(){return jr},QuickForm:function(){return Zr},RadioField:function(){return wr},SelectField:function(){return Ir},SubmitField:function(){return Wr},TextField:function(){return Ar},ValidatedForm:function(){return Ur},ValidatedQuickForm:function(){return Vr}});var d=t(25773),c=t(27378),m=t(3996),p=t.n(m),f=t(6846),h=t(59312),v=t(30219),g=t.n(v),_=t(21473),b=t.n(_),E=t(98591),y=t(56369),O=t(11561),k=t(76424),C=t(31115),x=t.n(C),N=t(5041),j=t(62004);const F={marginBottom:"12px"};function P(e,n){let{colon:t,error:a,errorMessage:r,extra:l,help:i,id:o,info:s,label:u,labelCol:d,required:m,showInlineError:p,validateStatus:f,wrapperCol:h,wrapperStyle:v=F}=e;const g=!!u&&c.createElement("span",null,u,!!s&&c.createElement("span",null,"\xa0",c.createElement(j.default,{title:s},c.createElement(x(),null))));return c.createElement(N.Z.Item,{colon:t,hasFeedback:!0,help:i||p&&!!a&&r,extra:l,htmlFor:o,label:g,labelCol:d,required:m,style:v,validateStatus:a?"error":f,wrapperCol:h},n)}O.z.register("checkboxes","colon","disableItem","labelCol","validateStatus","wrapperCol","wrapperStyle");var w=(0,k.e)((function(e){var{checkbox:n=!1,checkedChildren:t=c.createElement(g(),null),disabled:a,inputRef:r,name:l,onChange:i,readOnly:o,unCheckedChildren:s=c.createElement(b(),null),value:u}=e,d=(0,h._T)(e,["checkbox","checkedChildren","disabled","inputRef","name","onChange","readOnly","unCheckedChildren","value"]);const m=n?E.Z:y.Z;return P(d,c.createElement(m,Object.assign({checked:u||!1,checkedChildren:t,disabled:a,name:l,onChange:()=>o?void 0:i(!u),ref:r,unCheckedChildren:s},(0,O.z)(d))))}),{kind:"leaf"}),M=t(82290),T=t(61320),I=t.n(T);const D={width:"100%"};var A=(0,k.e)((function(e){var{showTime:n=!0,style:t=D}=e,a=(0,h._T)(e,["showTime","style"]);return P(a,c.createElement(M.Z,Object.assign({disabled:a.disabled,inputReadOnly:a.readOnly,name:a.name,onChange:e=>{a.readOnly||a.onChange(e?e.toDate():void 0)},placeholder:a.placeholder,ref:a.inputRef,showTime:n,style:t,value:a.value&&I()(a.value)},(0,O.z)(a))))}),{kind:"leaf"}),R=t(60042),S=t.n(R),L=t(94037),B=t.n(L),W=t(76676),Z=t(30454),U=t.n(Z),V=t(65507),$=t(68591);const z={width:"100%"};var K=(0,k.e)((function(e){var{disabled:n,icon:t=c.createElement(B(),null),name:a,readOnly:r,size:l="small",style:i=z,type:o="dashed",value:s}=e,u=(0,h._T)(e,["disabled","icon","name","readOnly","size","style","type","value"]);const d=(0,V.m)(null,a),m=(0,V.m)(d.slice(0,-1)),p=(0,$.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return c.createElement(W.default,Object.assign({},(0,O.z)(u),{disabled:!f,icon:t,onClick:()=>{r||p.onChange(p.value.concat([U()(s)]))},size:l,style:i,type:o}))}),{initialValue:!1,kind:"leaf"}),q=t(85221),Q=t.n(q);var G=(0,k.e)((function(e){var{disabled:n,icon:t=c.createElement(Q(),null),name:a,readOnly:r,shape:l="circle",size:i="small",type:o="ghost"}=e,s=(0,h._T)(e,["disabled","icon","name","readOnly","shape","size","type"]);const u=(0,V.m)(null,a),d=+u[u.length-1],m=(0,V.m)(u.slice(0,-1)),p=(0,$.U)(m,{},{absoluteName:!0})[0];return n||(n=r||p.minCount>=p.value.length),c.createElement(W.default,Object.assign({},(0,O.z)(s),{disabled:n,icon:t,onClick:()=>{const e=p.value.slice();e.splice(d,1),p.onChange(e)},shape:l,size:i,type:o}))}),{initialValue:!1,kind:"leaf"});const Y={float:"right",marginBottom:"10px",marginLeft:"10px",marginRight:"6px",width:"20px"},J={marginBottom:"24px",overflow:"hidden"},H={borderBottom:"1px solid #DDD",height:"20px",marginTop:"-8px"},X={width:"100%"};var ee=(0,k.e)((function(e){let{children:n=c.createElement(ge,{label:null,name:""})}=e;return c.createElement("div",null,c.createElement("div",{style:Y},c.createElement(G,{className:"top aligned",name:""})),c.createElement("div",{style:J},c.createElement("div",{style:H})),c.createElement("div",{style:X},n))}));const ne={marginBottom:"5px",marginTop:"5px",padding:"10px"},te={borderColor:"rgb(255, 85, 0)"};var ae=(0,k.e)((function(e){var{children:n=c.createElement(ee,{name:"$"}),className:t,error:a,errorMessage:r,info:l,itemProps:i,label:o,labelCol:s,showInlineError:u,style:d=ne,value:m,wrapperCol:p}=e,f=(0,h._T)(e,["children","className","error","errorMessage","info","itemProps","label","labelCol","showInlineError","style","value","wrapperCol"]);const v=a?d?Object.assign(Object.assign({},te),d):te:d;return c.createElement("div",Object.assign({},(0,O.z)(f),{style:v,className:S()([t,"ant-list","ant-list-bordered"])}),!!o&&c.createElement("div",null,o,!!l&&c.createElement("span",null,"\xa0",c.createElement(j.default,{title:l},c.createElement(x(),null)))),!(!a||!u)&&c.createElement("div",null,r),null==m?void 0:m.map(((e,t)=>c.Children.map(n,((e,n)=>{var a;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+t),labelCol:s,wrapperCol:p},i)):e})))),c.createElement(K,{name:"$"}))}));var re=(0,k.e)((function(e){var{children:n,error:t,errorMessage:a,fields:r,itemProps:l,label:i,showInlineError:o}=e,s=(0,h._T)(e,["children","error","errorMessage","fields","itemProps","label","showInlineError"]);return c.createElement("div",Object.assign({},(0,O.z)(s)),i&&c.createElement("label",null,i),!(!t||!o)&&c.createElement("div",null,a),n||r.map((e=>c.createElement(ge,Object.assign({key:e,name:e},l)))))})),le=t(15425);var ie=(0,k.e)((function(e){return P(e,c.createElement(le.Z,Object.assign({disabled:e.disabled,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(""+n);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),style:{width:"100%"},value:e.value},(0,O.z)(e))))}),{kind:"leaf"}),oe=t(58946);const se="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,ue={display:"block"};var de=(0,k.e)((function(e){var n,t,a;return P(e,c.createElement(oe.ZP.Group,Object.assign({},(0,O.z)(e),{disabled:e.disabled,name:e.name,onChange:n=>{e.readOnly||e.onChange(n.target.value)},value:null!==(n=e.value)&&void 0!==n?n:"",options:null===(t=e.options)||void 0===t?void 0:t.map((e=>{var n;return Object.assign(Object.assign({},e),{label:null!==(n=e.label)&&void 0!==n?n:e.value})}))}),null===(a=e.options)||void 0===a?void 0:a.map((n=>{var t,a,r;return c.createElement(oe.ZP,{id:`${e.id}-${r=n.value,se(encodeURIComponent(r)).replace(/=+$/,"")}`,key:null!==(t=n.key)&&void 0!==t?t:n.value,style:ue,value:n.value,disabled:n.disabled},null!==(a=n.label)&&void 0!==a?a:n.value)}))))}),{kind:"leaf"}),ce=t(99388),me=t(69601),pe=t(92049);var fe=(0,k.e)((function(e){var n,t;const a=e.fieldType===Array?ce.default:me.default,r=(0,O.z)(e);return P(e,e.checkboxes?c.createElement("span",Object.assign({},r),c.createElement(a,Object.assign({},r,{disabled:e.disabled,name:e.name,onChange:n=>{e.readOnly||e.onChange(e.fieldType===Array?n:n.target.value)},options:null===(n=e.options)||void 0===n?void 0:n.map((e=>{var n;return Object.assign(Object.assign({},e),{label:null!==(n=e.label)&&void 0!==n?n:e.value})})),value:e.value}))):c.createElement(pe.Z,Object.assign({allowClear:!e.required,disabled:e.disabled,mode:e.fieldType===Array?"multiple":void 0,name:e.name,onChange:n=>{e.readOnly||e.onChange(n)},placeholder:e.placeholder,ref:e.inputRef,value:e.fieldType===Array?Array.isArray(e.value)?e.value.filter((e=>void 0!==e)):[]:e.value},r),null===(t=e.options)||void 0===t?void 0:t.map((n=>{var t,a,r;return c.createElement(pe.Z.Option,{disabled:n.disabled,key:null!==(t=n.key)&&void 0!==t?t:n.value,value:n.value,id:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:escape(n.value)}`},null!==(r=n.label)&&void 0!==r?r:n.value)}))))}),{kind:"leaf"}),he=t(74105);var ve=(0,k.e)((function(e){var n,t;return P(e,c.createElement(he.Z,Object.assign({disabled:e.disabled,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""},(0,O.z)(e))))}),{kind:"leaf"});var ge=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?de:fe;switch(e.fieldType){case Array:return ae;case Boolean:return w;case Date:return A;case Number:return ie;case Object:return re;case String:return ve}return p()(!1,"Unsupported field type: %s",e.fieldType)})),_e=t(55201);function be(e){var{element:n=c.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,_e.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,c.createElement)(ge,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Ee=t(39850),ye=t(6820);var Oe=function e(n){class t extends n{getNativeFormProps(){const e=super.getNativeFormProps(),{className:n,layout:t="vertical"}=e,a=(0,h._T)(e,["className","layout"]);return Object.assign(Object.assign({},a),{className:S()("ant-form","ant-form-"+t,n)})}}return t.AntD=e,t.displayName=`AntD${n.displayName}`,t}(ye.I),ke=t(51674);const Ce={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},xe={margin:"3px"};var Ne=function(e){var{children:n,style:t=Ce}=e,a=(0,h._T)(e,["children","style"]);const{error:r,schema:l}=(0,_e.c)();return r||n?c.createElement("div",Object.assign({style:t},(0,O.z)(a)),n,c.createElement("ul",null,l.getErrorMessages(r).map(((e,n)=>c.createElement("li",{key:n,style:xe},e))))):null};var je=function(e){var{disabled:n,inputRef:t,value:a="Submit"}=e,r=(0,h._T)(e,["disabled","inputRef","value"]);const{error:l,state:i}=(0,_e.c)();return c.createElement(W.default,Object.assign({disabled:void 0===n?!(!l&&!i.disabled):n,htmlType:"submit",ref:t,type:"primary"},r),a)};var Fe=function e(n){class t extends(ke.X.Quick(n)){getAutoField(){return ge}getErrorsField(){return Ne}getSubmitField(){return je}}return t.Quick=e,t}(Oe),Pe=t(23674);var we=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(Oe),Me=we.Validated(Fe.Quick(Oe));var Te=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Me);const Ie={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},De={margin:"3px"};var Ae=(0,k.e)((function(e){var{children:n,error:t,errorMessage:a,style:r=Ie}=e,l=(0,h._T)(e,["children","error","errorMessage","style"]);return t?c.createElement("div",Object.assign({style:r},(0,O.z)(l)),n||c.createElement("div",{style:De},a)):null}),{initialValue:!1,kind:"leaf"});function Re(e){var n,{value:t}=e,a=(0,h._T)(e,["value"]);const r=(0,$.U)(a.name,a,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:c.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var Se=t(10777);var Le=(0,k.e)((function(e){var n,{rows:t=5}=e,a=(0,h._T)(e,["rows"]);return P(a,c.createElement(Se.default,Object.assign({disabled:a.disabled,name:a.name,onChange:e=>a.onChange(e.target.value),placeholder:a.placeholder,readOnly:a.readOnly,ref:a.inputRef,rows:t,value:null!==(n=a.value)&&void 0!==n?n:""},(0,O.z)(a))))}),{kind:"leaf"}),Be=t(48159),We=t.n(Be);function Ze(e,n,t){const a="xs"===e?"":`${e}-`;return"label"===t?`col-${a}${n}`:`col-${a}${12-n}`}const Ue={xs:1,sm:2,md:3,lg:4,xl:5};function Ve(e,n){return Ue[e]-Ue[n]}function $e(e,n){return"number"==typeof e?Ze("xs",e,n):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl},e)),Object.keys(e).sort(Ve).map((t=>Ze(t,e[t],n))).join(" ")):"":Ze("xs",parseInt(e),n)}function ze(e,n){var{changed:t,className:a,disabled:r,error:l,errorMessage:i,grid:o,help:s,helpClassName:u,id:d,label:m,labelClassName:p,required:f,showInlineError:v,wrapClassName:g}=e,_=(0,h._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const b=!(!o&&!g),E=!(!l||!v)&&c.createElement("span",{className:"form-text text-danger"},i),y=!!s&&c.createElement("span",{className:S()("form-text",u||"text-muted")},s),k=!l&&t;return c.createElement("div",Object.assign({className:S()(a,"form-group",{"is-invalid":l,"is-valid":k,disabled:r,required:f,row:o})},We()((0,O.z)(_),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&c.createElement("label",{htmlFor:d,className:S()({"col-form-label":o,"text-danger":l,"text-success":k},$e(o,"label"),p)},m),b&&c.createElement("div",{className:S()(g,$e(o,"input"))},n,y,E),!b&&n,!b&&y,!b&&E)}var Ke=(0,k.e)((function(e){var{onChange:n}=e,t=(0,h._T)(e,["onChange"]);const{disabled:a,error:r,inline:l,inputClassName:i,inputRef:o,label:s,labelBefore:u,name:d,readOnly:m,value:p}=t;return ze(Object.assign(Object.assign({},t),{label:u,value:t.value}),c.createElement("div",{className:S()(i,"form-check","checkbox",{"custom-control-inline":l,"text-danger":r,"text-success":!r&&t.changed})},c.createElement("label",{htmlFor:t.id,className:"form-check-label"},c.createElement("input",{checked:p||!1,className:"form-check-input",disabled:a,id:t.id,name:d,onChange:()=>{m||n(!p)},ref:o,type:"checkbox"}),"\xa0",s)))}),{kind:"leaf"});const qe=("object"==typeof t.g?t.g:window).Date,Qe=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var Ge=(0,k.e)((function(e){var n,{disabled:t,error:a,id:r,inputClassName:l,inputRef:i,max:o,min:s,name:u,onChange:d,placeholder:m,readOnly:p,value:f,type:v="datetime-local"}=e,g=(0,h._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return ze(Object.assign(Object.assign({},g),{id:r}),c.createElement("input",{className:S()(l,"form-control",{"is-invalid":a,"is-valid":!a&&g.changed}),disabled:t,id:r,max:Qe(o),min:Qe(s),name:u,onChange:e=>{const n=new qe(e.target.valueAsNumber);n.getFullYear()<1e4?d(n):isNaN(e.target.valueAsNumber)&&d(void 0)},placeholder:m,readOnly:p,ref:i,type:v,value:null!==(n=Qe(f,v))&&void 0!==n?n:""}))}),{kind:"leaf"});function Ye(e){var{addIcon:n,className:t,disabled:a,name:r,readOnly:l,value:i}=e,o=(0,h._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const s=(0,V.m)(null,r),u=(0,V.m)(s.slice(0,-1)),d=(0,$.U)(u,{},{absoluteName:!0})[0],m=!(a||d.maxCount<=d.value.length);function p(e){!m||l||"key"in e&&"Enter"!==e.key||d.onChange(d.value.concat([U()(i)]))}return c.createElement("div",Object.assign({},(0,O.z)(o),{className:S()("badge badge-pill float-right",t),onClick:p,onKeyDown:p,role:"button",tabIndex:0}),n)}Ye.defaultProps={addIcon:c.createElement("i",{className:"octicon octicon-plus"})};var Je=(0,k.e)(Ye,{initialValue:!1,kind:"leaf"});function He(e){var{className:n,disabled:t,name:a,readOnly:r,removeIcon:l}=e,i=(0,h._T)(e,["className","disabled","name","readOnly","removeIcon"]);const o=(0,V.m)(null,a),s=+o[o.length-1],u=(0,V.m)(o.slice(0,-1)),d=(0,$.U)(u,{},{absoluteName:!0})[0];function m(e){if(!(t||"key"in e&&"Enter"!==e.key)){const e=d.value.slice();e.splice(s,1),d.onChange(e)}}return t||(t=r||d.minCount>=d.value.length),c.createElement("span",Object.assign({},(0,O.z)(i),{className:S()("badge badge-pill",n),onClick:m,onKeyDown:m,role:"button",tabIndex:0}),l)}He.defaultProps={removeIcon:c.createElement("i",{className:"octicon octicon-dash"})};var Xe=(0,k.e)(He,{initialValue:!1,kind:"leaf"});var en=(0,k.e)((function(e){let{children:n=c.createElement(fn,{className:"col-11",label:null,name:""}),removeIcon:t}=e;return c.createElement("div",{className:"row"},c.createElement("div",{className:"col-1"},c.createElement(Xe,{name:"",removeIcon:t})),n)}),{initialValue:!1});var nn=(0,k.e)((function(e){var{addIcon:n,children:t=c.createElement(en,{name:"$"}),className:a,error:r,errorMessage:l,itemProps:i,label:o,removeIcon:s,showInlineError:u,value:d}=e,m=(0,h._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return c.createElement("div",Object.assign({className:S()("card mb-3",a)},(0,O.z)(m)),c.createElement("div",{className:"card-body"},o&&c.createElement("div",{className:"card-title"},c.createElement("label",{className:"col-form-label"},o,"\xa0"),c.createElement(Je,{addIcon:n,name:"$"}),!(!r||!u)&&c.createElement("span",{className:"text-danger"},l)),null==d?void 0:d.map(((e,n)=>c.Children.map(t,((e,t)=>{var a;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign(Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n)},i),{removeIcon:s})):e}))))))}));var tn=(0,k.e)((function(e){var{children:n,className:t,error:a,errorMessage:r,fields:l,itemProps:i,label:o,showInlineError:s}=e,u=(0,h._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return c.createElement("div",Object.assign({className:S()(t,{"has-error":a})},(0,O.z)(u)),o&&c.createElement("label",null,o),!(!a||!s)&&c.createElement("span",{className:"text-danger"},r),n||l.map((e=>c.createElement(fn,Object.assign({key:e,name:e},i)))))}));var an=(0,k.e)((function(e){var n;return ze(e,c.createElement("input",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(n.target.value);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});const rn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,ln=e=>rn(encodeURIComponent(e)).replace(/=+$/,"");var on=(0,k.e)((function(e){var n;return ze(e,null===(n=e.options)||void 0===n?void 0:n.map((n=>{var t,a,r,l;return c.createElement("div",{key:null!==(t=n.key)&&void 0!==t?t:n.value,className:S()(e.inputClassName,"form-check","radio",{"custom-control-inline":e.inline,"text-danger":e.error,"text-success":!e.error&&e.changed})},c.createElement("label",{htmlFor:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:ln(n.value)}`,className:"form-check-label"},c.createElement("input",{checked:n.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:ln(n.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(n.value)},type:"radio"})," ",null!==(l=n.label)&&void 0!==l?l:n.value))})))}),{kind:"leaf"}),sn=t(20098),un=t.n(sn);const dn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,cn=e=>dn(encodeURIComponent(e)).replace(/=+$/,"");var mn=(0,k.e)((function(e){var{options:n,checkboxes:t,disabled:a,error:r,fieldType:l,id:i,inline:o,inputClassName:s,inputRef:u,label:d,name:m,onChange:p,placeholder:f,readOnly:v,required:g,value:_}=e,b=(0,h._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return ze(Object.assign(Object.assign({},b),{disabled:a,error:r,id:i,label:d,required:g}),t?null==n?void 0:n.map((e=>{var n,t,r,l;return c.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value,className:S()(s,"checkbox"+(o?"-inline":""))},c.createElement("label",{htmlFor:`${i}-${null!==(t=e.key)&&void 0!==t?t:cn(e.value)}`},c.createElement("input",{checked:E?null==_?void 0:_.includes(e.value):_===e.value,disabled:e.disabled||a,id:`${i}-${null!==(r=e.key)&&void 0!==r?r:cn(e.value)}`,name:m,onChange:()=>{v||p(E?un()([e.value],_):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):c.createElement("select",{className:S()(s,"c-select form-control",{"is-invalid":r,"is-valid":!r&&b.changed}),disabled:a,id:i,multiple:E,name:m,onChange:e=>{if(!v){const n=e.target.value;if(E){const t=-1===e.target.selectedIndex;p(t?[]:un()([n],_))}else p(""!==n?n:void 0)}},ref:u,value:null!=_?_:""},(!!f||!g||void 0===_)&&!E&&c.createElement("option",{value:"",disabled:g,hidden:g},f||d),null==n?void 0:n.map((e=>{var n,t;return c.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});var pn=(0,k.e)((function(e){var n,t;return ze(We()(e,["autoComplete"]),c.createElement("input",{autoComplete:e.autoComplete,className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});var fn=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?on:mn;switch(e.fieldType){case Array:return nn;case Boolean:return Ke;case Date:return Ge;case Number:return an;case Object:return tn;case String:return pn}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function hn(e){var{element:n=c.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,_e.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,c.createElement)(fn,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var vn=function e(n){class t extends n{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),n=super.getNativeFormProps();return Object.assign(Object.assign({},We()(n,["grid"])),{className:S()("form",{error:e},n.className)})}}return t.Bootstrap4=e,t.displayName=`Bootstrap4${n.displayName}`,t}(ye.I);var gn=function(e){var{children:n,className:t}=e,a=(0,h._T)(e,["children","className"]);const{error:r,schema:l}=(0,_e.c)();return r||n?c.createElement("div",Object.assign({className:S()("card border-danger mb-3 text-danger",t)},(0,O.z)(a)),c.createElement("div",{className:"card-body"},n,l.getErrorMessages(r).map(((e,n)=>c.createElement("div",{key:n,className:"disabled"},e))))):null};function _n(e){var{className:n,disabled:t,inputClassName:a,inputRef:r,readOnly:l,value:i,wrapClassName:o}=e,s=(0,h._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:u,state:d}=(0,_e.c)(),m=d,p=!(!m.grid&&!o),f=c.createElement("input",Object.assign({className:a,disabled:void 0===t?!(!u&&!m.disabled):t,readOnly:l,ref:r,type:"submit"},i?{value:i}:{}));return c.createElement("div",Object.assign({className:S()(n,{"is-invalid":u,row:m.grid})},(0,O.z)(s)),p&&c.createElement("span",{className:S()("col-form-label",$e(m.grid,"label"))},"\xa0"),p&&c.createElement("div",{className:S()(o,$e(m.grid,"input"))},f),!p&&f)}_n.defaultProps={inputClassName:"btn btn-primary"};var bn=_n;var En=function e(n){class t extends(ke.X.Quick(n)){getAutoField(){return fn}getErrorsField(){return gn}getSubmitField(){return bn}}return t.Quick=e,t}(vn);var yn=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(vn),On=yn.Validated(En.Quick(vn));var kn=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(On);var Cn=(0,k.e)((function(e){var{children:n,className:t,error:a,errorMessage:r}=e,l=(0,h._T)(e,["children","className","error","errorMessage"]);return a?c.createElement("div",Object.assign({className:S()("card","mb-3",t)},(0,O.z)(l)),c.createElement("div",{className:"card-body"},n||c.createElement("h4",{className:"card-title"},r))):null}),{initialValue:!1,kind:"leaf"});function xn(e){var n,{value:t}=e,a=(0,h._T)(e,["value"]);const r=(0,$.U)(a.name,a,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:c.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var Nn=(0,k.e)((function(e){var n;return ze(e,c.createElement("textarea",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});function jn(e,n,t){const a="xs"===e?"":`${e}-`;return"label"===t?`col-${a}${n}`:`col-${a}${12-n}`}const Fn={xs:1,sm:2,md:3,lg:4,xl:5,xxl:6};function Pn(e,n){return Fn[e]-Fn[n]}function wn(e,n){return"number"==typeof e?jn("xs",e,n):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl||e.xxl},e)),Object.keys(e).sort(Pn).map((t=>jn(t,e[t],n))).join(" ")):"":jn("xs",parseInt(e),n)}function Mn(e,n){var{changed:t,className:a,disabled:r,error:l,errorMessage:i,grid:o,help:s,helpClassName:u,id:d,label:m,labelClassName:p,required:f,showInlineError:v,wrapClassName:g}=e,_=(0,h._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const b=!(!o&&!g),E=!(!l||!v)&&c.createElement("span",{className:"form-text text-danger"},i),y=!!s&&c.createElement("span",{className:S()("form-text",u||"text-muted")},s);return c.createElement("div",Object.assign({className:S()(a,"mb-3",{"is-invalid":l,disabled:r,required:f,row:o})},We()((0,O.z)(_),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&c.createElement("label",{htmlFor:d,className:S()({"col-form-label":o,"text-danger":l,"text-success":!l&&t},wn(o,"label"),p)},m),b&&c.createElement("div",{className:S()(g,wn(o,"input"))},n,y,E),!b&&n,!b&&y,!b&&E)}var Tn=(0,k.e)((function(e){var{onChange:n}=e,t=(0,h._T)(e,["onChange"]);const{disabled:a,error:r,inline:l,inputClassName:i,inputRef:o,label:s,labelBefore:u,name:d,readOnly:m,value:p}=t;return Mn(Object.assign(Object.assign({},t),{label:u,value:t.value}),c.createElement("div",{className:S()(i,"form-check",{"text-danger":r,"text-success":!r&&t.changed,"form-check-inline":l})},c.createElement("input",{checked:p||!1,className:"form-check-input",disabled:a,id:t.id,name:d,onChange:()=>{m||n(!p)},ref:o,type:"checkbox"}),c.createElement("label",{htmlFor:t.id,className:"form-check-label"},s)))}),{kind:"leaf"});const In=("object"==typeof t.g?t.g:window).Date,Dn=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var An=(0,k.e)((function(e){var n,{disabled:t,error:a,id:r,inputClassName:l,inputRef:i,max:o,min:s,name:u,onChange:d,placeholder:m,readOnly:p,value:f,type:v="datetime-local"}=e,g=(0,h._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return Mn(Object.assign(Object.assign({},g),{id:r}),c.createElement("input",{className:S()(l,"form-control",{"is-invalid":a,"is-valid":!a&&g.changed}),disabled:t,id:r,max:Dn(o),min:Dn(s),name:u,onChange:e=>{const n=new In(e.target.valueAsNumber);n.getFullYear()<1e4?d(n):isNaN(e.target.valueAsNumber)&&d(void 0)},placeholder:m,readOnly:p,ref:i,type:v,value:null!==(n=Dn(f,v))&&void 0!==n?n:""}))}),{kind:"leaf"});function Rn(e){var{addIcon:n,className:t,disabled:a,name:r,readOnly:l,value:i}=e,o=(0,h._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const s=(0,V.m)(null,r),u=(0,V.m)(s.slice(0,-1)),d=(0,$.U)(u,{},{absoluteName:!0})[0];return a||(a=l||d.maxCount<=d.value.length),c.createElement("button",Object.assign({},(0,O.z)(o),{className:S()("btn btn-secondary btn-sm float-end",t),disabled:a,onClick:function(){a||d.onChange(d.value.concat([U()(i)]))},tabIndex:0,type:"button"}),n)}Rn.defaultProps={addIcon:c.createElement("i",{className:"octicon octicon-plus"})};var Sn=(0,k.e)(Rn,{initialValue:!1,kind:"leaf"});function Ln(e){var{className:n,disabled:t,name:a,readOnly:r,removeIcon:l}=e,i=(0,h._T)(e,["className","disabled","name","readOnly","removeIcon"]);const o=(0,V.m)(null,a),s=+o[o.length-1],u=(0,V.m)(o.slice(0,-1)),d=(0,$.U)(u,{},{absoluteName:!0})[0];return t||(t=r||d.minCount>=d.value.length),c.createElement("button",Object.assign({},(0,O.z)(i),{className:S()("btn btn-secondary btn-sm",n),disabled:t,onClick:()=>{const e=d.value.slice();e.splice(s,1),d.onChange(e)},tabIndex:0,type:"button"}),l)}Ln.defaultProps={removeIcon:c.createElement("i",{className:"octicon octicon-dash"})};var Bn=(0,k.e)(Ln,{initialValue:!1,kind:"leaf"});var Wn=(0,k.e)((function(e){let{children:n=c.createElement(Jn,{className:"col",label:null,name:""}),removeIcon:t}=e;return c.createElement("div",{className:"row"},c.createElement("div",{className:"col-auto"},c.createElement(Bn,{name:"",removeIcon:t})),n)}),{initialValue:!1});var Zn=(0,k.e)((function(e){var{addIcon:n,children:t=c.createElement(Wn,{name:"$"}),className:a,error:r,errorMessage:l,itemProps:i,label:o,removeIcon:s,showInlineError:u,value:d}=e,m=(0,h._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return c.createElement("div",Object.assign({className:S()("card mb-3",a)},(0,O.z)(m)),c.createElement("div",{className:"card-body"},o&&c.createElement("div",{className:"card-title"},c.createElement("label",{className:"col-form-label"},o,"\xa0"),c.createElement(Sn,{addIcon:n,name:"$"}),!(!r||!u)&&c.createElement("span",{className:"text-danger"},l)),null==d?void 0:d.map(((e,n)=>c.Children.map(t,((e,t)=>{var a;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign(Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n)},i),{removeIcon:s})):e}))))))}));var Un=(0,k.e)((function(e){var{children:n,className:t,error:a,errorMessage:r,fields:l,itemProps:i,label:o,showInlineError:s}=e,u=(0,h._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return c.createElement("div",Object.assign({className:S()(t,{"has-error":a})},(0,O.z)(u)),o&&c.createElement("label",null,o),!(!a||!s)&&c.createElement("span",{className:"text-danger"},r),n||l.map((e=>c.createElement(Jn,Object.assign({key:e,name:e},i)))))}));var Vn=(0,k.e)((function(e){var n;return Mn(e,c.createElement("input",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(n.target.value);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});const $n="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,zn=e=>$n(encodeURIComponent(e)).replace(/=+$/,"");var Kn=(0,k.e)((function(e){var n;return Mn(e,null===(n=e.options)||void 0===n?void 0:n.map((n=>{var t,a,r,l;return c.createElement("div",{key:null!==(t=n.key)&&void 0!==t?t:n.value,className:S()(e.inputClassName,"form-check",{"text-danger":e.error,"text-success":!e.error&&e.changed,"form-check-inline":e.inline})},c.createElement("label",{htmlFor:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:zn(n.value)}`,className:"form-check-label"},c.createElement("input",{checked:n.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:zn(n.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(n.value)},type:"radio"})," ",null!==(l=n.label)&&void 0!==l?l:n.value))})))}),{kind:"leaf"});const qn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Qn=e=>qn(encodeURIComponent(e)).replace(/=+$/,"");var Gn=(0,k.e)((function(e){var{options:n,checkboxes:t,disabled:a,error:r,fieldType:l,id:i,inline:o,inputClassName:s,inputRef:u,label:d,name:m,onChange:p,placeholder:f,readOnly:v,required:g,value:_}=e,b=(0,h._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return Mn(Object.assign(Object.assign({},b),{disabled:a,error:r,id:i,label:d,required:g}),t?null==n?void 0:n.map((e=>{var n,t,r,l;return c.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value,className:S()(s,"form-check"+(o?" form-check-inline":""))},c.createElement("label",{htmlFor:`${i}-${null!==(t=e.key)&&void 0!==t?t:Qn(e.value)}`},c.createElement("input",{checked:E?null==_?void 0:_.includes(e.value):_===e.value,disabled:e.disabled||a,id:`${i}-${null!==(r=e.key)&&void 0!==r?r:Qn(e.value)}`,name:m,onChange:()=>{v||p(E?un()([e.value],_):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):c.createElement("select",{className:S()(s,"form-control",{"is-invalid":r,"is-valid":!r&&b.changed}),disabled:a,id:i,multiple:E,name:m,onChange:e=>{if(!v){const n=e.target.value;if(E){const t=-1===e.target.selectedIndex;p(t?[]:un()([n],_))}else p(""!==n?n:void 0)}},ref:u,value:null!=_?_:""},(!!f||!g||void 0===_)&&!E&&c.createElement("option",{value:"",disabled:g,hidden:g},f||d),null==n?void 0:n.map((e=>{var n,t;return c.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});var Yn=(0,k.e)((function(e){var n,t;return Mn(We()(e,["autoComplete","minLength","maxLength"]),c.createElement("input",{autoComplete:e.autoComplete,className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});var Jn=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Kn:Gn;switch(e.fieldType){case Array:return Zn;case Boolean:return Tn;case Date:return An;case Number:return Vn;case Object:return Un;case String:return Yn}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Hn(e){var{element:n=c.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,_e.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,c.createElement)(Jn,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Xn=function e(n){class t extends n{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),n=super.getNativeFormProps();return Object.assign(Object.assign({},We()(n,["grid"])),{className:S()({error:e},n.className)})}}return t.Bootstrap5=e,t.displayName=`Bootstrap5${n.displayName}`,t}(ye.I);var et=function(e){var{children:n,className:t}=e,a=(0,h._T)(e,["children","className"]);const{error:r,schema:l}=(0,_e.c)();return r||n?c.createElement("div",Object.assign({className:S()("card border-danger mb-3 text-danger",t)},(0,O.z)(a)),c.createElement("div",{className:"card-body"},n,l.getErrorMessages(r).map(((e,n)=>c.createElement("div",{key:n,className:"disabled"},e))))):null};function nt(e){var{className:n,disabled:t,inputClassName:a,inputRef:r,readOnly:l,value:i,wrapClassName:o}=e,s=(0,h._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:u,state:d}=(0,_e.c)(),m=d,p=!(!m.grid&&!o),f=c.createElement("input",Object.assign({className:a,disabled:void 0===t?!(!u&&!m.disabled):t,readOnly:l,ref:r,type:"submit"},i?{value:i}:{}));return c.createElement("div",Object.assign({className:S()(n,{"is-invalid":u,row:m.grid})},(0,O.z)(s)),p&&c.createElement("span",{className:S()("col-form-label",wn(m.grid,"label"))},"\xa0"),p&&c.createElement("div",{className:S()(o,wn(m.grid,"input"))},f),!p&&f)}nt.defaultProps={inputClassName:"btn btn-primary"};var tt=nt;var at=function e(n){class t extends(ke.X.Quick(n)){getAutoField(){return Jn}getErrorsField(){return et}getSubmitField(){return tt}}return t.Quick=e,t}(Xn);var rt=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(Xn),lt=rt.Validated(at.Quick(Xn));var it=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(lt);var ot=(0,k.e)((function(e){var{children:n,className:t,error:a,errorMessage:r}=e,l=(0,h._T)(e,["children","className","error","errorMessage"]);return a?c.createElement("div",Object.assign({className:S()("card","mb-3",t)},(0,O.z)(l)),c.createElement("div",{className:"card-body"},n||c.createElement("h4",{className:"card-title"},r))):null}),{initialValue:!1,kind:"leaf"});function st(e){var n,{value:t}=e,a=(0,h._T)(e,["value"]);const r=(0,$.U)(a.name,a,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:c.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var ut=(0,k.e)((function(e){var n;return Mn(We()(e,["autoComplete","minLength","maxLength"]),c.createElement("textarea",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"}),dt=t(80342),ct=t(21807),mt=t(61247),pt=t(35311),ft=t(82693),ht=t(82956),vt=t(54139),gt=t(74533);function _t(e){let{component:n,disabled:t,error:a,errorMessage:r,fullWidth:l,helperText:i,margin:o,readOnly:s,required:u,showInlineError:d,variant:m}=e;const p=d&&a?r:i,f={component:n,disabled:!!t,error:!!a,fullWidth:!!l,margin:o,readOnly:s,required:u,variant:m};for(var h=arguments.length,v=new Array(h>1?h-1:0),g=1;g<h;g++)v[g-1]=arguments[g];return(0,c.createElement)(vt.Z,f,...v,!!p&&c.createElement(gt.Z,null,p))}var bt=(0,k.e)((function(e){var n;const{appearance:t,disabled:a,inputRef:r,label:l,legend:i,name:o,onChange:s,readOnly:u,value:d}=e,m=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiFormControl,p="checkbox"===t||void 0===t?dt.Z:ft.Z;return _t(Object.assign(Object.assign(Object.assign(Object.assign({},void 0===(null==m?void 0:m.fullWidth)&&{fullWidth:!0}),void 0===(null==m?void 0:m.margin)&&{margin:"dense"}),e),{component:"fieldset"}),i&&c.createElement(pt.Z,{component:"legend",htmlFor:o},i),c.createElement(mt.Z,null,c.createElement(ct.Z,{control:c.createElement(p,Object.assign({checked:!!d,name:o,onChange:e=>!a&&!u&&s&&s(e.target.checked),ref:r,value:o},We()((0,O.z)(e),["helperText","fullWidth"]))),label:l})))}),{kind:"leaf"}),Et=t(38725);const yt=("object"==typeof t.g?t.g:window).Date,Ot=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var kt=(0,k.e)((function(e){var n,t,a,r,{disabled:l,error:i,errorMessage:o,helperText:s,InputLabelProps:u,inputRef:d,label:m,labelProps:p,max:f,min:v,name:g,onChange:_,placeholder:b,readOnly:E,showInlineError:y,value:k,type:C="datetime-local"}=e,x=(0,h._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);const N=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiTextField;return c.createElement(Et.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(t=null==N?void 0:N.fullWidth)||void 0===t||t,helperText:!!i&&y&&o||s,label:m,InputLabelProps:Object.assign(Object.assign({shrink:!0},p),u),inputProps:Object.assign({max:Ot(f),min:Ot(v),readOnly:E},x.inputProps),margin:null!==(a=null==N?void 0:N.margin)&&void 0!==a?a:"dense",name:g,onChange:e=>l||((e,n)=>{const t=new yt(e);t.getFullYear()<1e4?n(t):isNaN(e)&&n(void 0)})(e.target.valueAsNumber,_),placeholder:b,ref:d,type:C,value:null!==(r=Ot(k,C))&&void 0!==r?r:""},(0,O.z)(x)))}),{kind:"leaf"}),Ct=t(50755),xt=t(44920),Nt=t(90547);var jt=(0,k.e)((function(e){var{disabled:n,fullWidth:t=!0,icon:a="+",margin:r="dense",name:l,readOnly:i,value:o,variant:s}=e,u=(0,h._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const d=(0,V.m)(null,l),m=(0,V.m)(d.slice(0,-1)),p=(0,$.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return c.createElement(vt.Z,{fullWidth:t,margin:r,variant:s},c.createElement(Nt.Z,Object.assign({},(0,O.z)(u),{disabled:!f,onClick:()=>{i||p.onChange(p.value.concat([U()(o)]))}}),a))}),{initialValue:!1,kind:"leaf"}),Ft=t(53332);var Pt=(0,k.e)((function(e){var{disabled:n,icon:t="-",name:a,readOnly:r}=e,l=(0,h._T)(e,["disabled","icon","name","readOnly"]);const i=(0,V.m)(null,a),o=+i[i.length-1],s=(0,V.m)(i.slice(0,-1)),u=(0,$.U)(s,{},{absoluteName:!0})[0];return n||(n=r||u.minCount>=u.value.length),c.createElement(Nt.Z,Object.assign({},(0,O.z)(l),{disabled:n,onClick:()=>{const e=u.value.slice();e.splice(o,1),u.onChange(e)}}),t)}),{initialValue:!1,kind:"leaf"});var wt=(0,k.e)((function(e){let{children:n=c.createElement($t,{label:null,name:""}),dense:t=!0,disableGutters:a,divider:r,removeIcon:l}=e;return c.createElement(Ft.Z,{dense:t,disableGutters:a,divider:r},n,c.createElement(Pt,{name:"",icon:l}))}),{initialValue:!1});var Mt=(0,k.e)((function(e){var{addIcon:n,children:t=c.createElement(wt,{name:"$"}),itemProps:a,label:r,value:l}=e,i=(0,h._T)(e,["addIcon","children","itemProps","label","value"]);return c.createElement(c.Fragment,null,c.createElement(Ct.Z,Object.assign({dense:!0,subheader:r?c.createElement(xt.Z,{disableSticky:!0},r):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,n)=>c.Children.map(t,((e,t)=>{var r;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+n)},a)):e}))))),c.createElement(jt,{icon:n,name:"$"}))}));var Tt=(0,k.e)((function(e){var n,t,a,{children:r,fields:l,itemProps:i,label:o}=e,s=(0,h._T)(e,["children","fields","itemProps","label"]);const u=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiFormControl;return _t(Object.assign(Object.assign({fullWidth:null===(t=null==u?void 0:u.fullWidth)||void 0===t||t,margin:null!==(a=null==u?void 0:u.margin)&&void 0!==a?a:"dense"},s),{component:void 0}),o&&c.createElement(pt.Z,{component:"legend"},o),r||l.map((e=>c.createElement($t,Object.assign({key:e,name:e},i)))))}));var It=(0,k.e)((function(e){var n,t,a,r,{decimal:l,disabled:i,error:o,errorMessage:s,helperText:u,inputProps:d,inputRef:m,label:p,max:f,min:v,name:g,onChange:_,readOnly:b,placeholder:E,showInlineError:y,step:k=(l?.01:1),value:C}=e,x=(0,h._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);const N=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiTextField;return c.createElement(Et.Z,Object.assign({disabled:i,error:!!o,fullWidth:null===(t=null==N?void 0:N.fullWidth)||void 0===t||t,helperText:!!o&&y&&s||u,inputProps:Object.assign(Object.assign(Object.assign({},null!==(a=null==N?void 0:N.inputProps)&&void 0!==a?a:{}),{min:v,max:f,readOnly:b,step:k}),d),label:p,margin:null!==(r=null==N?void 0:N.margin)&&void 0!==r?r:"dense",name:g,onChange:e=>{const n=(l?parseFloat:parseInt)(e.target.value);_(isNaN(n)?void 0:n)},placeholder:E,ref:m,type:"number",value:null!=C?C:""},(0,O.z)(x)))}),{kind:"leaf"}),Dt=t(76709),At=t(70043);const Rt="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,St=e=>Rt(encodeURIComponent(e)).replace(/=+$/,"");var Lt=(0,k.e)((function(e){var n,t,a,{options:r,disabled:l,id:i,inputRef:o,label:s,name:u,onChange:d,readOnly:m,row:p,value:f}=e,v=(0,h._T)(e,["options","disabled","id","inputRef","label","name","onChange","readOnly","row","value"]);const g=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiFormControl;return _t(Object.assign(Object.assign({fullWidth:null===(t=null==g?void 0:g.fullWidth)||void 0===t||t,margin:null!==(a=null==g?void 0:g.margin)&&void 0!==a?a:"dense"},v),{component:"fieldset",disabled:l}),s&&c.createElement(pt.Z,{component:"legend",htmlFor:u},s),c.createElement(At.Z,{id:i,name:u,onChange:e=>l||m||d(e.target.value),ref:o,row:p,value:null!=f?f:""},null==r?void 0:r.map((e=>{var n,t;return c.createElement(ct.Z,{control:c.createElement(Dt.Z,Object.assign({id:`${i}-${St(e.value)}`},We()((0,O.z)(v),["checkboxes","helperText"]))),htmlFor:`${i}-${St(e.value)}`,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(t=e.label)&&void 0!==t?t:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),Bt=t(5633);const Wt="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Zt=e=>Wt(encodeURIComponent(e)).replace(/=+$/,"");var Ut=(0,k.e)((function(e){var n,t,a,r,l,i;const o=(0,ht.Z)(),s=null===(n=o.props)||void 0===n?void 0:n.MuiFormControl,u=null!==(t=e.value)&&void 0!==t?t:"";if(e.checkboxes){const{options:n,disabled:t,fieldType:r,id:l,inputRef:i,label:o,legend:d,name:m,onChange:p,readOnly:f}=e,h="checkbox"===(null!==(a=e.appearance)&&void 0!==a?a:"checkbox")?dt.Z:ft.Z,v=We()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),g=r!==Array?c.createElement(At.Z,{id:l,name:m,onChange:e=>t||f||p(e.target.value),ref:i,value:null!=u?u:""},null==n?void 0:n.map((e=>{var n,a,r;return c.createElement(ct.Z,{control:c.createElement(Dt.Z,Object.assign({id:`${l}-${null!==(n=e.key)&&void 0!==n?n:Zt(e.value)}`},v)),disabled:e.disabled||t,key:null!==(a=e.key)&&void 0!==a?a:e.value,label:null!==(r=e.label)&&void 0!==r?r:e.value,value:e.value})}))):c.createElement(mt.Z,{id:l},null==n?void 0:n.map((e=>{var n,a,r;return c.createElement(ct.Z,{control:c.createElement(h,Object.assign({checked:u.includes(e.value),id:`${l}-${null!==(n=e.key)&&void 0!==n?n:Zt(e.value)}`,name:m,onChange:()=>t||f||p(un()([e.value],u)),ref:i,value:m},v)),disabled:e.disabled||t,key:null!==(a=e.key)&&void 0!==a?a:e.value,label:null!==(r=e.label)&&void 0!==r?r:e.value})})));return _t(Object.assign(Object.assign(Object.assign({},s),e),{component:"fieldset"}),(d||o)&&c.createElement(pt.Z,{component:"legend"},d||o),g)}const d=null===(r=o.props)||void 0===r?void 0:r.MuiTextField,{options:m,disabled:p,error:f,errorMessage:h,fieldType:v,fullWidth:g=null===(l=null==d?void 0:d.fullWidth)||void 0===l||l,helperText:_,id:b,InputLabelProps:E,inputProps:y,label:k,labelProps:C,margin:x=(null!==(i=null==d?void 0:d.margin)&&void 0!==i?i:"dense"),name:N,native:j,onChange:F,placeholder:P,readOnly:w,required:M,showInlineError:T,variant:I,textFieldProps:D}=e,A=j?"option":Bt.Z,R=!!P,S=""!==u&&void 0!==u,L=We()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return c.createElement(Et.Z,Object.assign({disabled:p,error:!!f,fullWidth:g,helperText:!!f&&T&&h||_,InputLabelProps:Object.assign(Object.assign({shrink:!!k&&(R||S)},C),E),label:k,margin:x,onChange:e=>p||w||F(""!==e.target.value?e.target.value:void 0),required:M,select:!0,SelectProps:Object.assign({displayEmpty:R,inputProps:Object.assign({name:N,id:b},y),multiple:v===Array||void 0,native:j},L),value:j&&!u?"":u,variant:I},D),(R||!M||!S)&&c.createElement(A,{value:"",disabled:!!M},P||k),null==m?void 0:m.map((e=>{var n,t;return c.createElement(A,{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)})))}),{kind:"leaf"});var Vt=(0,k.e)((function(e){var n,t,a,r,{disabled:l,error:i,errorMessage:o,helperText:s,inputRef:u,label:d,name:m,onChange:p,placeholder:f,readOnly:v,showInlineError:g,type:_="text",value:b=""}=e,E=(0,h._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const y=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiTextField;return c.createElement(Et.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(t=null==y?void 0:y.fullWidth)||void 0===t||t,helperText:!!i&&g&&o||s,inputProps:Object.assign({readOnly:v},null!==(a=null==y?void 0:y.inputProps)&&void 0!==a?a:{}),label:d,margin:null!==(r=null==y?void 0:y.margin)&&void 0!==r?r:"dense",name:m,onChange:e=>l||p(e.target.value),placeholder:f,ref:u,type:_,value:b},(0,O.z)(E)))}),{kind:"leaf"});var $t=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Lt:Ut;switch(e.fieldType){case Array:return Mt;case Boolean:return bt;case Date:return kt;case Number:return It;case Object:return Tt;case String:return Vt}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function zt(e){var{element:n=c.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,_e.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,c.createElement)($t,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Kt=function e(n){class t extends n{}return t.Material=e,t.displayName=`Material${n.displayName}`,t}(ye.I);var qt=function(e){var n,t,a,{children:r,fullWidth:l,margin:i,variant:o}=e,s=(0,h._T)(e,["children","fullWidth","margin","variant"]);const u=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiFormControl,{error:d,schema:m}=(0,_e.c)();return d||r?c.createElement(vt.Z,{error:!!d,fullWidth:null===(t=null!=l?l:null==u?void 0:u.fullWidth)||void 0===t||t,margin:null!==(a=null!=i?i:null==u?void 0:u.margin)&&void 0!==a?a:"dense",variant:null!=o?o:null==u?void 0:u.variant},!!r&&c.createElement(gt.Z,Object.assign({},(0,O.z)(s)),r),m.getErrorMessages(d).map(((e,n)=>c.createElement(gt.Z,Object.assign({key:n},(0,O.z)(s)),e)))):null},Qt=t(9334);var Gt=function(e){var n,t,{children:a,disabled:r,inputRef:l,label:i="Submit",value:o}=e,s=(0,h._T)(e,["children","disabled","inputRef","label","value"]);const{error:u,state:d}=(0,_e.c)(),m=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiButton;return c.createElement(Qt.Z,Object.assign({disabled:void 0===r?!(!u&&!d.disabled):r,ref:l,type:"submit",value:o,variant:null!==(t=null==m?void 0:m.variant)&&void 0!==t?t:"contained"},(0,O.z)(s)),a||i)};var Yt=function e(n){class t extends(ke.X.Quick(n)){getAutoField(){return $t}getErrorsField(){return qt}getSubmitField(){return Gt}}return t.Quick=e,t}(Kt);var Jt=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(Kt),Ht=Jt.Validated(Yt.Quick(Kt));var Xt=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Ht);var ea=(0,k.e)((function(e){var n,t,a,{children:r,error:l,errorMessage:i,fullWidth:o,margin:s,variant:u}=e,d=(0,h._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);const m=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiFormControl;return l?c.createElement(vt.Z,{error:!!l,fullWidth:null===(t=null!=o?o:null==m?void 0:m.fullWidth)||void 0===t||t,margin:null!==(a=null!=s?s:null==m?void 0:m.margin)&&void 0!==a?a:"dense",variant:null!=u?u:null==m?void 0:m.variant},c.createElement(gt.Z,Object.assign({},(0,O.z)(d)),r||i)):null}),{initialValue:!1,kind:"leaf"});function na(e){var n,{value:t}=e,a=(0,h._T)(e,["value"]);const r=(0,$.U)(a.name,a,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:c.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var ta=(0,k.e)((e=>{var n,t,a,{disabled:r,error:l,errorMessage:i,helperText:o,inputRef:s,label:u,name:d,onChange:m,placeholder:p,readOnly:f,showInlineError:v,type:g="text",value:_}=e,b=(0,h._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const E=null===(n=(0,ht.Z)().props)||void 0===n?void 0:n.MuiTextField;return c.createElement(Et.Z,Object.assign({disabled:r,error:!!l,fullWidth:null===(t=null==E?void 0:E.fullWidth)||void 0===t||t,helperText:!!l&&v&&i||o,inputProps:Object.assign(Object.assign({},null==E?void 0:E.inputProps),{readOnly:f}),label:u,margin:null!==(a=null==E?void 0:E.margin)&&void 0!==a?a:"dense",multiline:!0,name:d,onChange:e=>r||m(e.target.value),placeholder:p,ref:s,type:g,value:null!=_?_:""},(0,O.z)(b)))}),{kind:"leaf"}),aa=t(56213),ra=t(64251),la=t(64281),ia=t(23626),oa=t(22013),sa=t(61230),ua=t(56274);function da(e){let{component:n,disabled:t,error:a,errorMessage:r,fullWidth:l,helperText:i,margin:o,readOnly:s,required:u,showInlineError:d,variant:m}=e;const p=d&&a?r:i,f={component:n,disabled:!!t,error:!!a,fullWidth:!!l,margin:o,readOnly:s,required:u,variant:m};for(var h=arguments.length,v=new Array(h>1?h-1:0),g=1;g<h;g++)v[g-1]=arguments[g];return(0,c.createElement)(sa.Z,f,...v,!!p&&c.createElement(ua.Z,null,p))}var ca=(0,k.e)((function(e){const{appearance:n,disabled:t,inputRef:a,label:r,legend:l,name:i,onChange:o,readOnly:s,value:u}=e,d="checkbox"===n||void 0===n?aa.Z:oa.Z;return da(Object.assign({fullWidth:!0},e),l&&c.createElement(ia.Z,{component:"legend",htmlFor:i},l),c.createElement(la.Z,null,c.createElement(ra.Z,{control:c.createElement(d,Object.assign({checked:!!u,name:i,onChange:e=>!t&&!s&&o&&o(e.target.checked),ref:a,value:i},We()((0,O.z)(e),["helperText","fullWidth"]))),label:r})))}),{kind:"leaf"}),ma=t(60929);const pa=("object"==typeof t.g?t.g:window).Date,fa=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var ha=(0,k.e)((function(e){var n,{disabled:t,error:a,errorMessage:r,helperText:l,InputLabelProps:i,inputRef:o,label:s,labelProps:u,max:d,min:m,name:p,onChange:f,placeholder:v,readOnly:g,showInlineError:_,value:b,type:E="datetime-local"}=e,y=(0,h._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);return c.createElement(ma.Z,Object.assign({disabled:t,error:!!a,fullWidth:!0,helperText:!!a&&_&&r||l,label:s,InputLabelProps:Object.assign(Object.assign({shrink:!0},u),i),inputProps:Object.assign({max:fa(d),min:fa(m),readOnly:g},y.inputProps),margin:"dense",name:p,onChange:e=>t||((e,n)=>{const t=new pa(e);t.getFullYear()<1e4?n(t):isNaN(e)&&n(void 0)})(e.target.valueAsNumber,f),placeholder:v,ref:o,type:E,value:null!==(n=fa(b,E))&&void 0!==n?n:""},(0,O.z)(y)))}),{kind:"leaf"}),va=t(10872),ga=t(5420),_a=t(68666);var ba=(0,k.e)((function(e){var{disabled:n,fullWidth:t=!0,icon:a="+",margin:r="dense",name:l,readOnly:i,value:o,variant:s}=e,u=(0,h._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const d=(0,V.m)(null,l),m=(0,V.m)(d.slice(0,-1)),p=(0,$.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return c.createElement(sa.Z,{fullWidth:t,margin:r,variant:s},c.createElement(_a.Z,Object.assign({size:"large",variant:"outlined"},(0,O.z)(u),{disabled:!f,onClick:()=>{i||p.onChange(p.value.concat([U()(o)]))}}),a))}),{initialValue:!1,kind:"leaf"}),Ea=t(88483),ya=t(92133);var Oa=(0,k.e)((function(e){var{disabled:n,icon:t="-",name:a,readOnly:r}=e,l=(0,h._T)(e,["disabled","icon","name","readOnly"]);const i=(0,V.m)(null,a),o=+i[i.length-1],s=(0,V.m)(i.slice(0,-1)),u=(0,$.U)(s,{},{absoluteName:!0})[0];return n||(n=r||u.minCount>=u.value.length),c.createElement(ya.Z,Object.assign({},(0,O.z)(l),{disabled:n,onClick:()=>{const e=u.value.slice();e.splice(o,1),u.onChange(e)},size:"large"}),t)}),{initialValue:!1,kind:"leaf"});var ka=(0,k.e)((function(e){let{children:n=c.createElement(Sa,{label:null,name:""}),dense:t=!0,disableGutters:a,divider:r,removeIcon:l}=e;return c.createElement(Ea.ZP,{dense:t,disableGutters:a,divider:r},n,c.createElement(Oa,{name:"",icon:l}))}),{initialValue:!1});var Ca=(0,k.e)((function(e){var{addIcon:n,children:t=c.createElement(ka,{name:"$"}),itemProps:a,label:r,value:l}=e,i=(0,h._T)(e,["addIcon","children","itemProps","label","value"]);return c.createElement(c.Fragment,null,c.createElement(va.Z,Object.assign({dense:!0,subheader:r?c.createElement(ga.Z,{disableSticky:!0},r):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,n)=>c.Children.map(t,((e,t)=>{var r;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+n)},a)):e}))))),c.createElement(ba,{icon:n,name:"$"}))}));var xa=(0,k.e)((function(e){var{children:n,fields:t,fullWidth:a=!0,itemProps:r,label:l,margin:i="dense"}=e,o=(0,h._T)(e,["children","fields","fullWidth","itemProps","label","margin"]);return da(Object.assign(Object.assign({fullWidth:a,margin:i},o),{component:void 0}),l&&c.createElement(ia.Z,{component:"legend"},l),n||t.map((e=>c.createElement(Sa,Object.assign({key:e,name:e},r)))))}));var Na=(0,k.e)((function(e){var{decimal:n,disabled:t,error:a,errorMessage:r,helperText:l,inputProps:i,inputRef:o,label:s,max:u,min:d,name:m,onChange:p,readOnly:f,placeholder:v,showInlineError:g,step:_=(n?.01:1),value:b}=e,E=(0,h._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);return c.createElement(ma.Z,Object.assign({disabled:t,error:!!a,fullWidth:!0,helperText:!!a&&g&&r||l,inputProps:Object.assign({min:d,max:u,readOnly:f,step:_},i),label:s,margin:"dense",name:m,onChange:e=>{const t=(n?parseFloat:parseInt)(e.target.value);p(isNaN(t)?void 0:t)},placeholder:v,ref:o,type:"number",value:null!=b?b:""},(0,O.z)(E)))}),{kind:"leaf"}),ja=t(8993),Fa=t(20750);const Pa="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,wa=e=>Pa(encodeURIComponent(e)).replace(/=+$/,"");var Ma=(0,k.e)((function(e){var{options:n,disabled:t,fullWidth:a=!0,id:r,inputRef:l,label:i,margin:o="dense",name:s,onChange:u,readOnly:d,row:m,value:p}=e,f=(0,h._T)(e,["options","disabled","fullWidth","id","inputRef","label","margin","name","onChange","readOnly","row","value"]);return da(Object.assign(Object.assign({},f),{component:"fieldset",disabled:t,fullWidth:a,margin:o}),i&&c.createElement(ia.Z,{component:"legend",htmlFor:s},i),c.createElement(Fa.Z,{id:r,name:s,onChange:e=>t||d||u(e.target.value),ref:l,row:m,value:null!=p?p:""},null==n?void 0:n.map((e=>{var n,t;return c.createElement(ra.Z,{control:c.createElement(ja.Z,Object.assign({id:`${r}-${wa(e.value)}`},We()((0,O.z)(f),["checkboxes","helperText"]))),htmlFor:`${r}-${wa(e.value)}`,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(t=e.label)&&void 0!==t?t:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),Ta=t(13455);const Ia="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Da=e=>Ia(encodeURIComponent(e)).replace(/=+$/,"");var Aa=(0,k.e)((function(e){var n,t;const a=null!==(n=e.value)&&void 0!==n?n:"";if(e.checkboxes){const{options:n,disabled:r,fieldType:l,id:i,inputRef:o,label:s,legend:u,name:d,onChange:m,readOnly:p}=e,f="checkbox"===(null!==(t=e.appearance)&&void 0!==t?t:"checkbox")?aa.Z:oa.Z,h=We()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),v=l!==Array?c.createElement(Fa.Z,{id:i,name:d,onChange:e=>r||p||m(e.target.value),ref:o,value:null!=a?a:""},n.map((e=>{var n,t,a;return c.createElement(ra.Z,{control:c.createElement(ja.Z,Object.assign({id:`${i}-${null!==(n=e.key)&&void 0!==n?n:Da(e.value)}`},h)),disabled:e.disabled||r,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(a=e.label)&&void 0!==a?a:e.value,value:e.value})}))):c.createElement(la.Z,{id:i},n.map((e=>{var n,t,l;return c.createElement(ra.Z,{control:c.createElement(f,Object.assign({checked:a.includes(e.value),id:`${i}-${null!==(n=e.key)&&void 0!==n?n:Da(e.value)}`,name:d,onChange:()=>r||p||m(un()([e.value],a)),ref:o,value:d},h)),disabled:e.disabled||r,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(l=e.label)&&void 0!==l?l:e.value})})));return da(Object.assign(Object.assign({},e),{component:"fieldset"}),(u||s)&&c.createElement(ia.Z,{component:"legend"},u||s),v)}const{options:r,disabled:l,error:i,errorMessage:o,fieldType:s,fullWidth:u=!0,helperText:d,id:m,InputLabelProps:p,inputProps:f,label:h,labelProps:v,margin:g="dense",name:_,native:b,onChange:E,placeholder:y,readOnly:k,required:C,showInlineError:x,variant:N,textFieldProps:j}=e,F=b?"option":Ta.Z,P=!!y,w=""!==a&&void 0!==a,M=We()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return c.createElement(ma.Z,Object.assign({disabled:l,error:!!i,fullWidth:u,helperText:!!i&&x&&o||d,InputLabelProps:Object.assign(Object.assign({shrink:!!h&&(P||w)},v),p),label:h,margin:g,onChange:e=>l||k||E(""!==e.target.value?e.target.value:void 0),required:C,select:!0,SelectProps:Object.assign({displayEmpty:P,inputProps:Object.assign({name:_,id:m},f),multiple:s===Array||void 0,native:b},M),value:b&&!a?"":a,variant:N},j),(P||!C||!w)&&c.createElement(F,{value:"",disabled:!!C},y||h),r.map((e=>{var n,t;return c.createElement(F,{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)})))}),{kind:"leaf"});var Ra=(0,k.e)((function(e){var{disabled:n,error:t,errorMessage:a,helperText:r,inputRef:l,label:i,name:o,onChange:s,placeholder:u,readOnly:d,showInlineError:m,type:p="text",value:f=""}=e,v=(0,h._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return c.createElement(ma.Z,Object.assign({disabled:n,error:!!t,fullWidth:!0,helperText:!!t&&m&&a||r,inputProps:{readOnly:d},label:i,margin:"dense",name:o,onChange:e=>n||s(e.target.value),placeholder:u,ref:l,type:p,value:f},(0,O.z)(v)))}),{kind:"leaf"});var Sa=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Ma:Aa;switch(e.fieldType){case Array:return Ca;case Boolean:return ca;case Date:return ha;case Number:return Na;case Object:return xa;case String:return Ra}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function La(e){var{element:n=c.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,_e.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,c.createElement)(Sa,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Ba=function e(n){class t extends n{}return t.Material=e,t.displayName=`Material${n.displayName}`,t}(ye.I);var Wa=function(e){var{children:n,fullWidth:t=!0,margin:a,variant:r}=e,l=(0,h._T)(e,["children","fullWidth","margin","variant"]);const{error:i,schema:o}=(0,_e.c)();return i||n?c.createElement(sa.Z,{error:!!i,fullWidth:!!t,margin:a,variant:r},!!n&&c.createElement(ua.Z,Object.assign({},(0,O.z)(l)),n),o.getErrorMessages(i).map(((e,n)=>c.createElement(ua.Z,Object.assign({key:n},(0,O.z)(l)),e)))):null};var Za=function(e){var{children:n,disabled:t,inputRef:a,label:r="Submit",value:l}=e,i=(0,h._T)(e,["children","disabled","inputRef","label","value"]);const{error:o,state:s}=(0,_e.c)();return c.createElement(_a.Z,Object.assign({disabled:void 0===t?!(!o&&!s.disabled):t,ref:a,type:"submit",value:l,variant:"contained"},(0,O.z)(i)),n||r)};var Ua=function e(n){class t extends(ke.X.Quick(n)){getAutoField(){return Sa}getErrorsField(){return Wa}getSubmitField(){return Za}}return t.Quick=e,t}(Ba);var Va=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(Ba),$a=Va.Validated(Ua.Quick(Ba));var za=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}($a);var Ka=(0,k.e)((function(e){var{children:n,error:t,errorMessage:a,fullWidth:r,margin:l,variant:i}=e,o=(0,h._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);return t?c.createElement(sa.Z,{error:!!t,fullWidth:!!r,margin:"dense"===l?l:void 0,variant:i},c.createElement(ua.Z,Object.assign({},(0,O.z)(o)),n||a)):null}),{initialValue:!1,kind:"leaf"});function qa(e){var n,{value:t}=e,a=(0,h._T)(e,["value"]);const r=(0,$.U)(a.name,a,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:c.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var Qa=(0,k.e)((e=>{var{disabled:n,error:t,errorMessage:a,helperText:r,inputRef:l,label:i,name:o,onChange:s,placeholder:u,readOnly:d,showInlineError:m,type:p="text",value:f}=e,v=(0,h._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return c.createElement(ma.Z,Object.assign({disabled:n,error:!!t,fullWidth:!0,helperText:!!t&&m&&a||r,inputProps:{readOnly:d},label:i,margin:"dense",multiline:!0,name:o,onChange:e=>n||s(e.target.value),placeholder:u,ref:l,type:p,value:null!=f?f:""},(0,O.z)(v)))}),{kind:"leaf"}),Ga=t(68599);function Ya(e){var{element:n=c.Fragment,fields:t,omitFields:a=[],showInlineError:r}=e,l=(0,h._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,_e.c)();return(0,c.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,c.createElement)(Ga.Z,Object.assign({key:e,name:e},void 0===r?null:{showInlineError:r})))))}var Ja=t(2310),Ha=t(99574),Xa=t(12138),er=t(14449);var nr=(0,k.e)((function(e){var{children:n,className:t,error:a,errorMessage:r}=e,l=(0,h._T)(e,["children","className","error","errorMessage"]);return a?c.createElement("div",Object.assign({className:S()("ui",t,"error message")},(0,O.z)(l)),n||c.createElement("div",{className:"header"},r)):null}),{initialValue:!1,kind:"leaf"}),tr=t(43351);function ar(e){var n,{value:t}=e,a=(0,h._T)(e,["value"]);const r=(0,$.U)(a.name,a,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:c.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var rr=t(77900),lr=t(960),ir=t(64694),or=t(18747);var sr=(0,k.e)((function(e){var{className:n,disabled:t,error:a,errorMessage:r,id:l,inputRef:i,label:o,name:s,onChange:u,placeholder:d,readOnly:m,required:p,showInlineError:f,value:v}=e,g=(0,h._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);return c.createElement("div",Object.assign({className:S()(n,{disabled:t,error:a,required:p},"field")},(0,O.z)(g)),o&&c.createElement("label",{htmlFor:l},o),c.createElement("textarea",{disabled:t,id:l,name:s,onChange:e=>u(e.target.value),placeholder:d,readOnly:m,ref:i,value:null!=v?v:""}),!(!a||!f)&&c.createElement("div",{className:"ui red basic pointing label"},r))}),{kind:"leaf"}),ur=t(80661),dr=t(59492),cr=t(52559),mr=t(44591),pr=t(47822),fr=t(82986),hr=t(99086),vr=t(3684),gr=t(79904);var _r=(0,k.e)((function(e){var{disabled:n,id:t,inputRef:a,label:r,name:l,onChange:i,readOnly:o,value:s}=e,u=(0,h._T)(e,["disabled","id","inputRef","label","name","onChange","readOnly","value"]);return c.createElement("div",Object.assign({},(0,O.z)(u)),c.createElement("input",{checked:s||!1,disabled:n,id:t,name:l,onChange:()=>!n&&!o&&i(!s),ref:a,type:"checkbox"}),r&&c.createElement("label",{htmlFor:t},r))}),{kind:"leaf"});const br=("object"==typeof t.g?t.g:window).Date,Er=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var yr=(0,k.e)((function(e){var n,{disabled:t,id:a,inputRef:r,label:l,max:i,min:o,name:s,onChange:u,placeholder:d,readOnly:m,value:p,type:f="datetime-local"}=e,v=(0,h._T)(e,["disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","value","type"]);return c.createElement("div",Object.assign({},(0,O.z)(v)),l&&c.createElement("label",{htmlFor:a},l),c.createElement("input",{disabled:t,id:a,max:Er(i),min:Er(o),name:s,onChange:e=>{const n=new br(e.target.valueAsNumber);n.getFullYear()<1e4?u(n):isNaN(e.target.valueAsNumber)&&u(void 0)},placeholder:d,readOnly:m,ref:r,type:f,value:null!==(n=Er(p,f))&&void 0!==n?n:""}))}),{kind:"leaf"});var Or=(0,k.e)((function(e){var{disabled:n,name:t,readOnly:a,value:r}=e,l=(0,h._T)(e,["disabled","name","readOnly","value"]);const i=(0,V.m)(null,t),o=(0,V.m)(i.slice(0,-1)),s=(0,$.U)(o,{},{absoluteName:!0})[0],u=!(n||s.maxCount<=s.value.length);function d(e){!u||a||"key"in e&&"Enter"!==e.key||s.onChange(s.value.concat([U()(r)]))}return c.createElement("span",Object.assign({},(0,O.z)(l),{onClick:d,onKeyDown:d,role:"button",tabIndex:0}),"+")}),{initialValue:!1,kind:"leaf"});var kr=(0,k.e)((function(e){var{disabled:n,name:t,readOnly:a}=e,r=(0,h._T)(e,["disabled","name","readOnly"]);const l=(0,V.m)(null,t),i=+l[l.length-1],o=(0,V.m)(l.slice(0,-1)),s=(0,$.U)(o,{},{absoluteName:!0})[0];function u(e){if(!(n||"key"in e&&"Enter"!==e.key)){const e=s.value.slice();e.splice(i,1),s.onChange(e)}}return n||(n=a||s.minCount>=s.value.length),c.createElement("span",Object.assign({},(0,O.z)(r),{onClick:u,onKeyDown:u,role:"button",tabIndex:0}),"-")}),{initialValue:!1,kind:"leaf"});var Cr=(0,k.e)((function(e){let{children:n=c.createElement(Rr,{label:null,name:""})}=e;return c.createElement("div",null,c.createElement(kr,{name:""}),n)}),{initialValue:!1});var xr=(0,k.e)((function(e){var{children:n=c.createElement(Cr,{name:"$"}),itemProps:t,label:a,value:r}=e,l=(0,h._T)(e,["children","itemProps","label","value"]);return c.createElement("ul",Object.assign({},(0,O.z)(l)),a&&c.createElement("label",null,a,c.createElement(Or,{name:"$"})),null==r?void 0:r.map(((e,a)=>c.Children.map(n,((e,n)=>{var r;return(0,c.isValidElement)(e)?(0,c.cloneElement)(e,Object.assign({key:`${a}-${n}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+a)},t)):e})))))}));var Nr=(0,k.e)((function(e){var{children:n,fields:t,itemProps:a,label:r}=e,l=(0,h._T)(e,["children","fields","itemProps","label"]);return c.createElement("div",Object.assign({},(0,O.z)(l)),r&&c.createElement("label",null,r),n||t.map((e=>c.createElement(Rr,Object.assign({key:e,name:e},a)))))}));var jr=(0,k.e)((function(e){var{decimal:n,disabled:t,id:a,inputRef:r,label:l,max:i,min:o,name:s,onChange:u,placeholder:d,readOnly:m,step:p,value:f}=e,v=(0,h._T)(e,["decimal","disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","step","value"]);return c.createElement("div",Object.assign({},(0,O.z)(v)),l&&c.createElement("label",{htmlFor:a},l),c.createElement("input",{disabled:t,id:a,max:i,min:o,name:s,onChange:e=>{const t=(n?parseFloat:parseInt)(e.target.value);u(isNaN(t)?void 0:t)},placeholder:d,readOnly:m,ref:r,step:p||(n?.01:1),type:"number",value:null!=f?f:""}))}),{kind:"leaf"});const Fr="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Pr=e=>Fr(encodeURIComponent(e)).replace(/=+$/,"");var wr=(0,k.e)((function(e){var{options:n,disabled:t,id:a,label:r,name:l,onChange:i,readOnly:o,value:s}=e,u=(0,h._T)(e,["options","disabled","id","label","name","onChange","readOnly","value"]);return c.createElement("div",Object.assign({},We()((0,O.z)(u),["checkboxes"])),r&&c.createElement("label",null,r),null==n?void 0:n.map((e=>{var n,r,u,d;return c.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value},c.createElement("input",{checked:e.value===s,disabled:e.disabled||t,id:`${a}-${null!==(r=e.key)&&void 0!==r?r:Pr(e.value)}`,name:l,onChange:()=>{o||i(e.value)},type:"radio"}),c.createElement("label",{htmlFor:`${a}-${null!==(u=e.key)&&void 0!==u?u:Pr(e.value)}`},null!==(d=e.label)&&void 0!==d?d:e.value))})))}),{kind:"leaf"});const Mr="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Tr=e=>Mr(encodeURIComponent(e)).replace(/=+$/,"");var Ir=(0,k.e)((function(e){var{checkboxes:n,disabled:t,fieldType:a,id:r,inputRef:l,label:i,name:o,onChange:s,placeholder:u,readOnly:d,required:m,value:p,options:f}=e,v=(0,h._T)(e,["checkboxes","disabled","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","value","options"]);const g=a===Array;return c.createElement("div",Object.assign({},(0,O.z)(v)),i&&c.createElement("label",{htmlFor:r},i),n?null==f?void 0:f.map((e=>{var n,l,i,u,m;return c.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value},c.createElement("input",{checked:a===Array?null==p?void 0:p.includes(e.value):p===e.value,disabled:null!==(l=e.disabled)&&void 0!==l?l:t,id:`${r}-${null!==(i=e.key)&&void 0!==i?i:Tr(e.value)}`,name:o,onChange:()=>{d||s(a===Array?un()([e.value],p):e.value)},type:"checkbox"}),c.createElement("label",{htmlFor:`${r}-${null!==(u=e.key)&&void 0!==u?u:Tr(e.value)}`},null!==(m=e.label)&&void 0!==m?m:e.value))})):c.createElement("select",{disabled:t,id:r,multiple:g,name:o,onChange:e=>{if(!d){const n=e.target.value;if(g){const t=-1===e.target.selectedIndex;s(t?[]:un()([n],p))}else s(""!==n?n:void 0)}},ref:l,value:null!=p?p:""},(!!u||!m||void 0===p)&&!g&&c.createElement("option",{value:"",disabled:m,hidden:m},u||i),null==f?void 0:f.map((e=>{var n,t;return c.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});function Dr(e){var{autoComplete:n,disabled:t,id:a,inputRef:r,label:l,name:i,onChange:o,placeholder:s,readOnly:u,type:d,value:m}=e,p=(0,h._T)(e,["autoComplete","disabled","id","inputRef","label","name","onChange","placeholder","readOnly","type","value"]);return c.createElement("div",Object.assign({},(0,O.z)(p)),l&&c.createElement("label",{htmlFor:a},l),c.createElement("input",{autoComplete:n,disabled:t,id:a,name:i,onChange:e=>o(e.target.value),placeholder:s,readOnly:u,ref:r,type:d,value:null!=m?m:""}))}Dr.defaultProps={type:"text"};var Ar=(0,k.e)(Dr,{kind:"leaf"});var Rr=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?wr:Ir;switch(e.fieldType){case Array:return xr;case Boolean:return _r;case Date:return yr;case Number:return jr;case Object:return Nr;case String:return Ar}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Sr(e){var{element:n=c.Fragment,fields:t,omitFields:a=[]}=e,r=(0,h._T)(e,["element","fields","omitFields"]);const{schema:l}=(0,_e.c)();return(0,c.createElement)(n,r,(null!=t?t:l.getSubfields()).filter((e=>!a.includes(e))).map((e=>(0,c.createElement)(Rr,{key:e,name:e}))))}var Lr=function e(n){class t extends n{}return t.Unstyled=e,t.displayName=`Unstyled${n.displayName}`,t}(ye.I);function Br(e){const{error:n,schema:t}=(0,_e.c)();return n||e.children?c.createElement("div",Object.assign({},(0,O.z)(e)),e.children,c.createElement("ul",null,t.getErrorMessages(n).map(((e,n)=>c.createElement("li",{key:n},e))))):null}function Wr(e){var{disabled:n,inputRef:t,readOnly:a,value:r}=e,l=(0,h._T)(e,["disabled","inputRef","readOnly","value"]);const{error:i,state:o}=(0,_e.c)();return c.createElement("input",Object.assign({disabled:void 0===n?!(!i&&!o.disabled):n,readOnly:a,ref:t,type:"submit"},r?{value:r}:{},(0,O.z)(l)))}var Zr=function e(n){class t extends(ke.X.Quick(n)){getAutoField(){return Rr}getErrorsField(){return Br}getSubmitField(){return Wr}}return t.Quick=e,t}(Lr);var Ur=function e(n){class t extends(Pe.O.Validated(n)){}return t.Validated=e,t}(Lr),Vr=Ur.Validated(Zr.Quick(Lr));var $r=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Vr);var zr=(0,k.e)((function(e){var{children:n,error:t,errorMessage:a}=e,r=(0,h._T)(e,["children","error","errorMessage"]);return t?c.createElement("div",Object.assign({},(0,O.z)(r)),n||a):null}),{initialValue:!1,kind:"leaf"});function Kr(e){var n,{value:t}=e,a=(0,h._T)(e,["value"]);const r=(0,$.U)(a.name,a,{initialValue:!1})[0];return(0,c.useEffect)((()=>{void 0!==t&&t!==r.value&&r.onChange(t)})),r.noDOM?null:c.createElement("input",Object.assign({disabled:r.disabled,name:r.name,readOnly:r.readOnly,ref:r.inputRef,type:"hidden",value:null!==(n=null!=t?t:r.value)&&void 0!==n?n:""},(0,O.z)(r)))}var qr=t(96614);const Qr=ll("AutoFields"),Gr=ll("AutoField"),Yr=ll("AutoForm"),Jr=(ll("BaseForm"),ll("BoolField"),ll("DateField"),ll("ErrorField")),Hr=ll("ErrorsField"),Xr=(ll("HiddenField"),ll("ListAddField"),ll("ListDelField"),ll("ListField"),ll("ListItemField"),ll("LongTextField")),el=(ll("NestField"),ll("NumField"),ll("QuickForm"),ll("RadioField"),ll("SelectField")),nl=ll("SubmitField"),tl=ll("TextField"),al=(ll("ValidatedForm"),ll("ValidatedQuickForm"),{antd:a,bootstrap4:r,bootstrap5:l,material:i,mui:o,semantic:s,unstyled:u}),rl=(0,c.createContext)("unstyled");function ll(e){return function(n){const t=(0,c.useContext)(rl),a=al[t][e];return c.createElement(a,(0,d.Z)({key:t},n))}}},37309:function(e,n,t){"use strict";t.d(n,{mB:function(){return d},nN:function(){return s},rh:function(){return u}});var a=t(14648),r=t.n(a),l=t(17728),i=t.n(l);const o=["preset","props","theme"],s=e=>i().compressToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");function u(e){try{const n=r()(e,o),t=JSON.stringify(n),a=s(t),l="?"+encodeURIComponent(a);window.location.hash=l}catch(n){}}function d(){try{const n=document.location.hash.replace(/^#\?/,""),t=decodeURIComponent(n),a=(e=t,i().decompressFromBase64(e.replace(/-/g,"+").replace(/_/g,"/"))),l=JSON.parse(a??"");return r()(l,o)}catch(n){return{}}var e}},27286:function(e,n,t){"use strict";t.r(n),t.d(n,{assets:function(){return F},contentTitle:function(){return N},default:function(){return M},frontMatter:function(){return x},metadata:function(){return j},toc:function(){return P}});var a=t(25773),r=t(27378),l=t(35318),i=t(57292),o=t(80912),s=t(86236),u=t.n(s),d=t(73633);const c=new(u())({allErrors:!0,useDefaults:!0,keywords:["uniforms"]}),m={title:"Guest",type:"object",properties:{firstName:{type:"string"},lastName:{type:"string"},workExperience:{description:"Work experience in years",type:"integer",minimum:0,maximum:100},profession:{type:"string"},additionalInfo:{type:"string"}},required:["firstName","lastName"]};const p=function(e){const n=c.compile(e);return e=>{var t;return n(e),null!=(t=n.errors)&&t.length?{details:n.errors}:null}}(m),f=new d.j({schema:m,validator:p}),h=[{label:"Developer",value:"developer"},{label:"Tester",value:"tester"},{label:"Product owner",value:"product-owner"},{label:"Project manager",value:"project-manager"},{label:"Businessman",value:"businessman"}];function v(){return r.createElement(o.NE,{schema:f,onSubmit:console.log},r.createElement("h4",null,"IT meeting guest questionnaire"),r.createElement(o.Pt,{name:"lastName"}),r.createElement(o.ME,{name:"lastName"},r.createElement("span",null,"You have to provide your last name!")),r.createElement(o.Pt,{name:"firstName"}),r.createElement(o.ME,{name:"firstName",errorMessage:"You have to provide your first name!"}),r.createElement("span",null,"Do you want to share your work experience with us?"),r.createElement(o.Pt,{name:"workExperience"}),r.createElement(o.ME,{name:"workExperience",errorMessage:"Your work experience cannot be lesser than 0 or greater than 100 years!"}),r.createElement(o.mg,{name:"profession",options:h}),r.createElement(o.hI,{name:"additionalInfo"}),r.createElement(o.hl,null))}function g(){return r.createElement(o.NE,{schema:f,onSubmit:console.log},r.createElement("h4",null,"IT meeting guest questionnaire"),r.createElement(o.Pt,{name:"lastName"}),r.createElement(o.ME,{name:"lastName"},r.createElement("span",null,"You have to provide your last name!")),r.createElement(o.Pt,{name:"firstName"}),r.createElement(o.ME,{name:"firstName",errorMessage:"You have to provide your first name!"}),r.createElement("span",null,"Do you want to share your work experience with us?"),r.createElement(o.Pt,{name:"workExperience"}),r.createElement(o.ME,{name:"workExperience",errorMessage:"Your work experience cannot be lesser than 0 or greater than 100 years!"}),r.createElement(o.Pt,{name:"profession"}),r.createElement(o.Pt,{name:"additionalInfo"}),r.createElement(o.hl,null))}var _=t(96614);const b=new(u())({allErrors:!0,useDefaults:!0});b.addVocabulary(["options","uniforms"]);const E={title:"Guest",type:"object",properties:{firstName:{type:"string"},lastName:{type:"string"},workExperience:{description:"Work experience in years",type:"integer",minimum:0,maximum:100},profession:{type:"string",options:[{label:"Developer",value:"developer"},{label:"Tester",value:"tester"},{label:"Product owner",value:"product-owner"},{label:"Project manager",value:"project-manager"},{label:"Businessman",value:"businessman"}]},additionalInfo:{type:"string",uniforms:{component:_.Z}}},required:["firstName","lastName"]};const y=function(e){const n=b.compile(e);return e=>{var t;return n(e),null!=(t=n.errors)&&t.length?{details:n.errors}:null}}(E),O=new d.j({schema:E,validator:y});function k(){return r.createElement(o.NE,{schema:O,onSubmit:console.log},r.createElement("h4",null,"IT meeting guest questionnaire"),r.createElement(o.Pt,{name:"lastName"}),r.createElement(o.ME,{name:"lastName"},r.createElement("span",null,"You have to provide your last name!")),r.createElement(o.Pt,{name:"firstName"}),r.createElement(o.ME,{name:"firstName",errorMessage:"You have to provide your first name!"}),r.createElement("span",null,"Do you want to share your work experience with us?"),r.createElement(o.Pt,{name:"workExperience"}),r.createElement(o.ME,{name:"workExperience",errorMessage:"Your work experience cannot be lesser than 0 or greater than 100 years!"}),r.createElement(o.Pt,{name:"profession"}),r.createElement(o.Pt,{name:"additionalInfo"}),r.createElement(o.hl,null))}var C=t(53009);const x={id:"tutorials-using-predefined-fields",title:"Using predefined fields"},N=void 0,j={unversionedId:"tutorials-using-predefined-fields",id:"tutorials-using-predefined-fields",title:"Using predefined fields",description:"Now that we know how to ask our guests for their name, let's ask them a few more things!",source:"@site/../docs/tutorials-using-predefined-fields.mdx",sourceDirName:".",slug:"/tutorials-using-predefined-fields",permalink:"/docs/tutorials-using-predefined-fields",draft:!1,tags:[],version:"current",frontMatter:{id:"tutorials-using-predefined-fields",title:"Using predefined fields"},sidebar:"docs",previous:{title:"Customizing your form layout",permalink:"/docs/tutorials-customizing-your-form-layout"},next:{title:"Creating a custom field",permalink:"/docs/tutorials-creating-custom-field"}},F={},P=[{value:"1. Replacing the <code>AutoField</code>",id:"1-replacing-the-autofield",level:3},{value:"2. Manipulating the schema",id:"2-manipulating-the-schema",level:3}],w={toc:P};function M(e){let{components:n,...r}=e;return(0,l.kt)("wrapper",(0,a.Z)({},w,r,{components:n,mdxType:"MDXLayout"}),(0,l.kt)("p",null,"Now that we know how to ask our guests for their name, let's ask them a few more things!\nWe can expect a lot of different people coming to our IT conference - they could be developers, testers, product owners, project managers, businessmen and so on.\nPerhaps we want to calculate how many representatives of various professions will visit us?\nOr maybe (if there are enough people) we want to prepare special, personalized events?\nIt would be also a decent idea to somehow gather their visions and expectations about the conference or any additional valuable information for the organizer."),(0,l.kt)("p",null,"Let's modify our schema by adding two new properties: ",(0,l.kt)("inlineCode",{parentName:"p"},"profession")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"additionalInfo")," in order to have the additional fields rendered:"),(0,l.kt)(i.f,{language:"tsx",section:"schema",source:t(18930),mdxType:"CodeSection"}),(0,l.kt)("p",null,"After the schema change, we must not forget to add the fields to our form.\nWe will add the ",(0,l.kt)("inlineCode",{parentName:"p"},"profession")," field above the ",(0,l.kt)("inlineCode",{parentName:"p"},"workExperience")," field and the ",(0,l.kt)("inlineCode",{parentName:"p"},"additionalInfo")," at the bottom:"),(0,l.kt)(i.f,{language:"tsx",replace:{"'[^']*?/universal'":"'uniforms-semantic'","./GuestSchema\\d":"./GuestSchema"},source:t(20176),mdxType:"CodeSection"}),(0,l.kt)(C.R,{mdxType:"TutorialForm"},(0,l.kt)(g,{mdxType:"GuestFormProfessionAdditionalInfo"})),(0,l.kt)("p",null,"Let's stop for a while and think of what we have. Obviously, we there is a form generated, but it's not quite what we've expected:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"The ",(0,l.kt)("inlineCode",{parentName:"li"},"profession")," field is rendered a an ordinary text input, where anyone can type literally anything.\nIt would be far better if it would be displayed as a selectable list of options."),(0,l.kt)("li",{parentName:"ul"},"The ",(0,l.kt)("inlineCode",{parentName:"li"},"additionalInfo")," property is supposed to store lots of text, so it's preffered to be displayed as a text area.")),(0,l.kt)("p",null,(0,l.kt)("strong",{parentName:"p"},"We can handle it in two ways:")),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"By replacing the ",(0,l.kt)("inlineCode",{parentName:"li"},"AutoField")," inside the ",(0,l.kt)("inlineCode",{parentName:"li"},"AutoForm")," with a desired field."),(0,l.kt)("li",{parentName:"ol"},"By manipulating the schema using the ",(0,l.kt)("inlineCode",{parentName:"li"},"uniforms")," key.")),(0,l.kt)("h3",{id:"1-replacing-the-autofield"},"1. Replacing the ",(0,l.kt)("inlineCode",{parentName:"h3"},"AutoField")),(0,l.kt)("p",null,"uniforms provide a set of predefined out-of-the-box ",(0,l.kt)("a",{parentName:"p",href:"/docs/api-fields"},"fields")," that we can use instead of the ",(0,l.kt)("inlineCode",{parentName:"p"},"AutoField"),".\nThe perfect one for a ",(0,l.kt)("inlineCode",{parentName:"p"},"profession")," property is a ",(0,l.kt)("inlineCode",{parentName:"p"},"SelectField"),". All we have to do to have it rendered is to provide the list of available options.\nThe same thing applies to the ",(0,l.kt)("inlineCode",{parentName:"p"},"additionalInfo")," - in order to see it as a text area we can use the ",(0,l.kt)("inlineCode",{parentName:"p"},"LongTextField")," component.\nLet's see our changes in action:"),(0,l.kt)(i.f,{language:"tsx",replace:{"'[^']*?/universal'":"'uniforms-semantic'","./GuestSchema\\d":"./GuestSchema"},source:t(41707),mdxType:"CodeSection"}),(0,l.kt)(C.R,{mdxType:"TutorialForm"},(0,l.kt)(v,{mdxType:"GuestFormPredefinedFields"})),(0,l.kt)("p",null,"As you can see, now we have a beautiful select field and a text area!"),(0,l.kt)("h3",{id:"2-manipulating-the-schema"},"2. Manipulating the schema"),(0,l.kt)("p",null,"Now that we know how to use predefined fields within the ",(0,l.kt)("inlineCode",{parentName:"p"},"AutoForm"),", let's see how to do it in a more fancy way,\nwithout the necessity to replace the ",(0,l.kt)("inlineCode",{parentName:"p"},"AutoField"),". That means modifying our schema and shows true magic of the uniforms."),(0,l.kt)("p",null,"Before touching the schema, let's have a look at the React form first:"),(0,l.kt)(i.f,{language:"tsx",replace:{"'[^']*?/universal'":"'uniforms-semantic'","./GuestSchema\\d":"./GuestSchema"},source:t(86105),mdxType:"CodeSection"}),(0,l.kt)("p",null,"As you can see, both ",(0,l.kt)("inlineCode",{parentName:"p"},"SelectField")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"LongTextField")," have been removed in favor of the ",(0,l.kt)("inlineCode",{parentName:"p"},"AutoField"),"."),(0,l.kt)("p",null,"Now we can focus on modifying the schema.\nInstead of having to type the React component by ourselves inside our form, we can declare it inside the schema, thanks to the ",(0,l.kt)("inlineCode",{parentName:"p"},"uniforms")," property, as it's demonstrated below:"),(0,l.kt)(i.f,{language:"tsx",section:"schema",source:t(36180),mdxType:"CodeSection"}),(0,l.kt)("p",null,"What's changed is that now we've included the available ",(0,l.kt)("inlineCode",{parentName:"p"},"options")," inside the ",(0,l.kt)("inlineCode",{parentName:"p"},"profession")," property definition -\nuniforms are smart enough to deduce result field type, thanks to the ",(0,l.kt)("a",{parentName:"p",href:"/docs/uth-autofield-algorithm"},(0,l.kt)("inlineCode",{parentName:"a"},"AutoField")," algorithm"),"."),(0,l.kt)("admonition",{type:"caution"},(0,l.kt)("p",{parentName:"admonition"},"Remember to register the ",(0,l.kt)("inlineCode",{parentName:"p"},"uniforms")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"options")," keyword (see ",(0,l.kt)("a",{parentName:"p",href:"https://ajv.js.org/strict-mode.html#unknown-keywords"},"Unknown keywords")," for more details)."),(0,l.kt)(i.f,{language:"tsx",section:"keywords",source:t(36180),mdxType:"CodeSection"})),(0,l.kt)("p",null,"When it comes to the ",(0,l.kt)("inlineCode",{parentName:"p"},"additionalInfo"),", there is a slightly different approach applied - we can explicitly tell the ",(0,l.kt)("inlineCode",{parentName:"p"},"AutoForm")," what field should be rendered.\nJust don't forget to import the desired one!"),(0,l.kt)("p",null,"The resulting form remains very the same:"),(0,l.kt)(C.R,{mdxType:"TutorialForm"},(0,l.kt)(k,{mdxType:"GuestFormWithFieldsInSchema"})))}M.isMDXComponent=!0},4940:function(e,n){"use strict";n.Z={"center-if-sm":"center-if-sm_fQBP",padding:"padding_u3oQ",landing:"landing_JSVC","overflow-hidden":"overflow-hidden_pgKL","section-content":"section-content_dsyA",discussions:"discussions_nna8","floating-example":"floating-example_NeZB","system-window":"system-window_utQO","system-top-bar":"system-top-bar_ZKOK","system-top-bar-circle":"system-top-bar-circle_TDqe","showcase-card":"showcase-card_hJCa",footer:"footer_V71b",bullets:"bullets_YLT6","offset-column":"offset-column_Fx18","simple-yet-powerful-text":"simple-yet-powerful-text__cJc","fully-customizable-text":"fully-customizable-text_ka9o","reverse-wrap":"reverse-wrap_wEMw",example:"example_fVIp","preview-border":"preview-border_OFQs",preview:"preview_Ea2L","no-padding":"no-padding_WjVH","solid-border-box":"solid-border-box_A28F","green-accent":"green-accent_H4ZV","blue-accent":"blue-accent_R2MP",grid3x3:"grid3x3_yu8a",item3x3:"item3x3_dug1",company:"company_dMmf","border-dashed":"border-dashed_OHF8","border-gradient":"border-gradient_gHdq","border-disable-top-right":"border-disable-top-right_GH8c","border-disable-bottom-left":"border-disable-bottom-left_uiZP","arrow-button":"arrow-button_hF_x","left-arrow-button":"left-arrow-button_Zn9b","right-arrow-button":"right-arrow-button_J0NN",arrow:"arrow_d93H","carousel-container":"carousel-container_uFWT",carousel:"carousel_vfTV",testimonials:"testimonials__H4G","testimonials-pair-active":"testimonials-pair-active_W4Qz","testimonials-pair-inactive":"testimonials-pair-inactive_OeWi",testimonial:"testimonial_JqOm","testimonial-content":"testimonial-content_yyK0","testimonial-links-wrapper":"testimonial-links-wrapper_aCzC","testimonial-description":"testimonial-description_HpGg","testimonial-avatar":"testimonial-avatar_OiX2","section-heading":"section-heading_Wwdu","section-bgwhite":"section-bgwhite_xc3Y","section-bgwhite-block":"section-bgwhite-block_wuyP","section-bgwhite-block-left":"section-bgwhite-block-left_R077","section-bgwhite-block-right":"section-bgwhite-block-right_XL2o",logos:"logos_slhi",fluid:"fluid_k_Hd",whyus:"whyus_bBI7",oval:"oval_S291","link-icon-container":"link-icon-container_Iy8Z",white:"white_k7iJ","top-right-corner":"top-right-corner_hrD6",badges:"badges_sK0n","badge-number":"badge-number_FlCf",badge:"badge_Cv7E","badge-image":"badge-image_V8QJ","badge-centered":"badge-centered_Cl70","call-to-action":"call-to-action_fHoz","theme-icon":"theme-icon_VaE8",section:"section_SnfD","flex-center":"flex-center_VHPe","top-margin":"top-margin_xVhu","long-button":"long-button_efAi",text:"text_U9e4","text-big":"text-big_oDLV","text-huge":"text-huge_zgdY","heading-helper":"heading-helper_fnxq",heading:"heading_Tyjn","heading-white":"heading-white_SkAD",emphasis:"emphasis_T58q",paragraph:"paragraph_pxCb","section-subtitle":"section-subtitle_etM3","footer-heading":"footer-heading_wvTE",supported:"supported_k5lB",title:"title_L62U",description:"description_aTRG","commercial-bullets":"commercial-bullets_o7pP","commercial-box":"commercial-box_wLXy",vazco:"vazco_f6cf","form-wrapper":"form-wrapper_kccZ",playground:"playground_p2wD","playground-wrap":"playground-wrap_FoP6","playground-column":"playground-column_btgY","playground-toolbar":"playground-toolbar_jwg0",tabs:"tabs_DJzW",item:"item_Lknm",active:"active_R6La",toggler:"toggler_LMZW",header:"header_kKxo",tooltip:"tooltip_OOD_","tooltip-text":"tooltip-text_GGXA","toggler-tabs":"toggler-tabs_UzN0"}},95126:function(e,n,t){var a={"./af":1009,"./af.js":1009,"./ar":88769,"./ar-dz":23739,"./ar-dz.js":23739,"./ar-kw":93745,"./ar-kw.js":93745,"./ar-ly":99576,"./ar-ly.js":99576,"./ar-ma":67408,"./ar-ma.js":67408,"./ar-sa":48781,"./ar-sa.js":48781,"./ar-tn":87856,"./ar-tn.js":87856,"./ar.js":88769,"./az":2030,"./az.js":2030,"./be":56476,"./be.js":56476,"./bg":25304,"./bg.js":25304,"./bm":48125,"./bm.js":48125,"./bn":34,"./bn-bd":29835,"./bn-bd.js":29835,"./bn.js":34,"./bo":64082,"./bo.js":64082,"./br":8317,"./br.js":8317,"./bs":93107,"./bs.js":93107,"./ca":68272,"./ca.js":68272,"./cs":98567,"./cs.js":98567,"./cv":61583,"./cv.js":61583,"./cy":10076,"./cy.js":10076,"./da":31760,"./da.js":31760,"./de":8973,"./de-at":63214,"./de-at.js":63214,"./de-ch":74728,"./de-ch.js":74728,"./de.js":8973,"./dv":54053,"./dv.js":54053,"./el":7499,"./el.js":7499,"./en-au":67876,"./en-au.js":67876,"./en-ca":47010,"./en-ca.js":47010,"./en-gb":34239,"./en-gb.js":34239,"./en-ie":99830,"./en-ie.js":99830,"./en-il":28438,"./en-il.js":28438,"./en-in":25322,"./en-in.js":25322,"./en-nz":43264,"./en-nz.js":43264,"./en-sg":55449,"./en-sg.js":55449,"./eo":39486,"./eo.js":39486,"./es":32430,"./es-do":16310,"./es-do.js":16310,"./es-mx":27038,"./es-mx.js":27038,"./es-us":73099,"./es-us.js":73099,"./es.js":32430,"./et":34975,"./et.js":34975,"./eu":87063,"./eu.js":87063,"./fa":68073,"./fa.js":68073,"./fi":50957,"./fi.js":50957,"./fil":8764,"./fil.js":8764,"./fo":81775,"./fo.js":81775,"./fr":74179,"./fr-ca":14306,"./fr-ca.js":14306,"./fr-ch":73791,"./fr-ch.js":73791,"./fr.js":74179,"./fy":47014,"./fy.js":47014,"./ga":46911,"./ga.js":46911,"./gd":62958,"./gd.js":62958,"./gl":87344,"./gl.js":87344,"./gom-deva":33161,"./gom-deva.js":33161,"./gom-latn":35798,"./gom-latn.js":35798,"./gu":68485,"./gu.js":68485,"./he":27917,"./he.js":27917,"./hi":52159,"./hi.js":52159,"./hr":95842,"./hr.js":95842,"./hu":30005,"./hu.js":30005,"./hy-am":51312,"./hy-am.js":51312,"./id":60781,"./id.js":60781,"./is":64101,"./is.js":64101,"./it":43467,"./it-ch":4759,"./it-ch.js":4759,"./it.js":43467,"./ja":44164,"./ja.js":44164,"./jv":70079,"./jv.js":70079,"./ka":57036,"./ka.js":57036,"./kk":92022,"./kk.js":92022,"./km":63418,"./km.js":63418,"./kn":43655,"./kn.js":43655,"./ko":30986,"./ko.js":30986,"./ku":91902,"./ku.js":91902,"./ky":4604,"./ky.js":4604,"./lb":99026,"./lb.js":99026,"./lo":20537,"./lo.js":20537,"./lt":22288,"./lt.js":22288,"./lv":1495,"./lv.js":1495,"./me":60690,"./me.js":60690,"./mi":2571,"./mi.js":2571,"./mk":93959,"./mk.js":93959,"./ml":97225,"./ml.js":97225,"./mn":88,"./mn.js":88,"./mr":46622,"./mr.js":46622,"./ms":11070,"./ms-my":48899,"./ms-my.js":48899,"./ms.js":11070,"./mt":63931,"./mt.js":63931,"./my":95393,"./my.js":95393,"./nb":4274,"./nb.js":4274,"./ne":8914,"./ne.js":8914,"./nl":33114,"./nl-be":68479,"./nl-be.js":68479,"./nl.js":33114,"./nn":4513,"./nn.js":4513,"./oc-lnc":46549,"./oc-lnc.js":46549,"./pa-in":28264,"./pa-in.js":28264,"./pl":32848,"./pl.js":32848,"./pt":90899,"./pt-br":55077,"./pt-br.js":55077,"./pt.js":90899,"./ro":92512,"./ro.js":92512,"./ru":21753,"./ru.js":21753,"./sd":16840,"./sd.js":16840,"./se":78362,"./se.js":78362,"./si":50464,"./si.js":50464,"./sk":66324,"./sk.js":66324,"./sl":41963,"./sl.js":41963,"./sq":53039,"./sq.js":53039,"./sr":93454,"./sr-cyrl":10466,"./sr-cyrl.js":10466,"./sr.js":93454,"./ss":95158,"./ss.js":95158,"./sv":28859,"./sv.js":28859,"./sw":57594,"./sw.js":57594,"./ta":26915,"./ta.js":26915,"./te":15677,"./te.js":15677,"./tet":92154,"./tet.js":92154,"./tg":74098,"./tg.js":74098,"./th":89071,"./th.js":89071,"./tk":49381,"./tk.js":49381,"./tl-ph":1869,"./tl-ph.js":1869,"./tlh":92346,"./tlh.js":92346,"./tr":71483,"./tr.js":71483,"./tzl":30266,"./tzl.js":30266,"./tzm":33138,"./tzm-latn":32960,"./tzm-latn.js":32960,"./tzm.js":33138,"./ug-cn":29456,"./ug-cn.js":29456,"./uk":50805,"./uk.js":50805,"./ur":61127,"./ur.js":61127,"./uz":29628,"./uz-latn":80840,"./uz-latn.js":80840,"./uz.js":29628,"./vi":56962,"./vi.js":56962,"./x-pseudo":49257,"./x-pseudo.js":49257,"./yo":62423,"./yo.js":62423,"./zh-cn":61002,"./zh-cn.js":61002,"./zh-hk":6046,"./zh-hk.js":6046,"./zh-mo":36903,"./zh-mo.js":36903,"./zh-tw":24710,"./zh-tw.js":24710};function r(e){var n=l(e);return t(n)}function l(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=l,e.exports=r,r.id=95126},41707:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport {\n AutoForm,\n AutoField,\n ErrorField,\n LongTextField,\n SelectField,\n SubmitField,\n} from '../../lib/universal';\n\nimport { bridge as schema } from './GuestSchema2';\n\nconst professions = [\n {\n label: 'Developer',\n value: 'developer',\n },\n {\n label: 'Tester',\n value: 'tester',\n },\n {\n label: 'Product owner',\n value: 'product-owner',\n },\n {\n label: 'Project manager',\n value: 'project-manager',\n },\n {\n label: 'Businessman',\n value: 'businessman',\n },\n];\n\nexport function GuestFormPredefinedFields() {\n return (\n <AutoForm schema={schema} onSubmit={console.log}>\n <h4>IT meeting guest questionnaire</h4>\n <AutoField name=\"lastName\" />\n <ErrorField name=\"lastName\">\n <span>You have to provide your last name!</span>\n </ErrorField>\n <AutoField name=\"firstName\" />\n <ErrorField\n name=\"firstName\"\n errorMessage=\"You have to provide your first name!\"\n />\n <span>Do you want to share your work experience with us?</span>\n <AutoField name=\"workExperience\" />\n <ErrorField\n name=\"workExperience\"\n errorMessage=\"Your work experience cannot be lesser than 0 or greater than 100 years!\"\n />\n <SelectField name=\"profession\" options={professions} />\n <LongTextField name=\"additionalInfo\" />\n <SubmitField />\n </AutoForm>\n );\n}\n"},20176:function(e,n,t){"use strict";t.r(n),n.default='import React from \'react\';\nimport {\n AutoField,\n AutoForm,\n ErrorField,\n SubmitField,\n} from \'../../lib/universal\';\n\nimport { bridge as schema } from \'./GuestSchema2\';\n\nexport function GuestFormProfessionAdditionalInfo() {\n return (\n <AutoForm schema={schema} onSubmit={console.log}>\n <h4>IT meeting guest questionnaire</h4>\n <AutoField name="lastName" />\n <ErrorField name="lastName">\n <span>You have to provide your last name!</span>\n </ErrorField>\n <AutoField name="firstName" />\n <ErrorField\n name="firstName"\n errorMessage="You have to provide your first name!"\n />\n <span>Do you want to share your work experience with us?</span>\n <AutoField name="workExperience" />\n <ErrorField\n name="workExperience"\n errorMessage="Your work experience cannot be lesser than 0 or greater than 100 years!"\n />\n <AutoField name="profession" />\n <AutoField name="additionalInfo" />\n <SubmitField />\n </AutoForm>\n );\n}\n'},86105:function(e,n,t){"use strict";t.r(n),n.default='import React from \'react\';\nimport {\n AutoForm,\n AutoField,\n ErrorField,\n SubmitField,\n} from \'../../lib/universal\';\n\nimport { bridge as schema } from \'./GuestSchema3\';\n\nexport function GuestFormWithFieldsInSchema() {\n return (\n <AutoForm schema={schema} onSubmit={console.log}>\n <h4>IT meeting guest questionnaire</h4>\n <AutoField name="lastName" />\n <ErrorField name="lastName">\n <span>You have to provide your last name!</span>\n </ErrorField>\n <AutoField name="firstName" />\n <ErrorField\n name="firstName"\n errorMessage="You have to provide your first name!"\n />\n <span>Do you want to share your work experience with us?</span>\n <AutoField name="workExperience" />\n <ErrorField\n name="workExperience"\n errorMessage="Your work experience cannot be lesser than 0 or greater than 100 years!"\n />\n <AutoField name="profession" />\n <AutoField name="additionalInfo" />\n <SubmitField />\n </AutoForm>\n );\n}\n'},18930:function(e,n,t){"use strict";t.r(n),n.default="// <schema>\nimport Ajv, { JSONSchemaType } from 'ajv';\n// </schema>\nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\n\nconst ajv = new Ajv({\n allErrors: true,\n useDefaults: true,\n keywords: ['uniforms'],\n});\n\n// <schema>\ntype FormData = {\n firstName: string;\n lastName: string;\n workExperience: number;\n profession: string;\n additionalInfo: string;\n};\n\nconst schema: JSONSchemaType<FormData> = {\n title: 'Guest',\n type: 'object',\n properties: {\n firstName: { type: 'string' },\n lastName: { type: 'string' },\n workExperience: {\n description: 'Work experience in years',\n type: 'integer',\n minimum: 0,\n maximum: 100,\n },\n profession: { type: 'string' },\n additionalInfo: { type: 'string' },\n },\n required: ['firstName', 'lastName'],\n};\n// </schema>\n\nfunction createValidator<T>(schema: JSONSchemaType<T>) {\n const validator = ajv.compile(schema);\n\n return (model: Record<string, unknown>) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst validator = createValidator(schema);\n\nexport const bridge = new JSONSchemaBridge({ schema, validator });\n"},36180:function(e,n,t){"use strict";t.r(n),n.default="// <schema>\nimport Ajv, { JSONSchemaType } from 'ajv';\n// </schema>\nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\nimport { LongTextField } from 'uniforms-unstyled';\n\nconst ajv = new Ajv({ allErrors: true, useDefaults: true });\n// <keywords>\n// Required by Ajv strict mode\najv.addVocabulary(['options', 'uniforms']);\n// </keywords>\n\n// <schema>\ntype FormData = {\n firstName: string;\n lastName: string;\n workExperience: number;\n profession: string;\n additionalInfo: string;\n};\n\nconst schema: JSONSchemaType<FormData> = {\n title: 'Guest',\n type: 'object',\n properties: {\n firstName: { type: 'string' },\n lastName: { type: 'string' },\n workExperience: {\n description: 'Work experience in years',\n type: 'integer',\n minimum: 0,\n maximum: 100,\n },\n profession: {\n type: 'string',\n options: [\n {\n label: 'Developer',\n value: 'developer',\n },\n {\n label: 'Tester',\n value: 'tester',\n },\n {\n label: 'Product owner',\n value: 'product-owner',\n },\n {\n label: 'Project manager',\n value: 'project-manager',\n },\n {\n label: 'Businessman',\n value: 'businessman',\n },\n ],\n },\n additionalInfo: {\n type: 'string',\n uniforms: { component: LongTextField },\n },\n },\n required: ['firstName', 'lastName'],\n};\n// </schema>\n\nfunction createValidator<T>(schema: JSONSchemaType<T>) {\n const validator = ajv.compile(schema);\n\n return (model: Record<string, unknown>) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst validator = createValidator(schema);\n\nexport const bridge = new JSONSchemaBridge({ schema, validator });\n"}}]); \ No newline at end of file diff --git a/assets/js/e882b3e5.443362a3.js b/assets/js/e882b3e5.443362a3.js new file mode 100644 index 000000000..6fe97201c --- /dev/null +++ b/assets/js/e882b3e5.443362a3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[903],{35318:function(e,t,n){n.d(t,{Zo:function(){return c},kt:function(){return m}});var r=n(27378);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),p=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},c=function(e){var t=p(e.components);return r.createElement(u.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},s=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),s=p(n),m=o,f=s["".concat(u,".").concat(m)]||s[m]||d[m]||i;return n?r.createElement(f,a(a({ref:t},c),{},{components:n})):r.createElement(f,a({ref:t},c))}));function m(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,a=new Array(i);a[0]=s;var l={};for(var u in t)hasOwnProperty.call(t,u)&&(l[u]=t[u]);l.originalType=e,l.mdxType="string"==typeof e?e:o,a[1]=l;for(var p=2;p<i;p++)a[p]=n[p];return r.createElement.apply(null,a)}return r.createElement.apply(null,n)}s.displayName="MDXCreateElement"},3806:function(e,t,n){n.r(t),n.d(t,{assets:function(){return u},contentTitle:function(){return a},default:function(){return d},frontMatter:function(){return i},metadata:function(){return l},toc:function(){return p}});var r=n(25773),o=(n(27378),n(35318));const i={id:"uth-autofield-algorithm",title:"AutoField algorithm"},a=void 0,l={unversionedId:"uth-autofield-algorithm",id:"uth-autofield-algorithm",title:"AutoField algorithm",description:"Background",source:"@site/../docs/uth-autofield-algorithm.md",sourceDirName:".",slug:"/uth-autofield-algorithm",permalink:"/docs/uth-autofield-algorithm",draft:!1,tags:[],version:"current",frontMatter:{id:"uth-autofield-algorithm",title:"AutoField algorithm"},sidebar:"docs",previous:{title:"Helpers",permalink:"/docs/api-helpers"},next:{title:"Bridge concept",permalink:"/docs/uth-bridge-concept"}},u={},p=[{value:"Background",id:"background",level:2},{value:"Default <code>AutoField</code> implementation",id:"default-autofield-implementation",level:2},{value:"Overriding <code>AutoField</code>",id:"overriding-autofield",level:2}],c={toc:p};function d(e){let{components:t,...n}=e;return(0,o.kt)("wrapper",(0,r.Z)({},c,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h2",{id:"background"},"Background"),(0,o.kt)("p",null,"Since the beginning, ",(0,o.kt)("inlineCode",{parentName:"p"},"AutoField")," was an ordinary React component. Then, in ",(0,o.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/issues/741"},"#","741"),", the ",(0,o.kt)("inlineCode",{parentName:"p"},"kind")," parameter of ",(0,o.kt)("inlineCode",{parentName:"p"},"connectField")," was introduced to make certain optimizations possible. To be exact, this parameter made it possible to reduce the overhead of ",(0,o.kt)("inlineCode",{parentName:"p"},"AutoField")," to minimum. The problem is that it increased the complexity of custom themes (or at least keeping them performant)."),(0,o.kt)("p",null,"In ",(0,o.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/issues/800"},"#","800"),", a new way of creating ",(0,o.kt)("inlineCode",{parentName:"p"},"AutoField")," was introduced. Now, instead of a React component, you only specify the component based on its props - the rest is handled in ",(0,o.kt)("inlineCode",{parentName:"p"},"createAutoField"),"."),(0,o.kt)("h2",{id:"default-autofield-implementation"},"Default ",(0,o.kt)("inlineCode",{parentName:"h2"},"AutoField")," implementation"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"import { createAutoField } from 'uniforms';\n\nconst AutoField = createAutoField(props => {\n if (props.component) {\n return props.component;\n }\n\n if (props.options) {\n return props.checkboxes && props.fieldType !== Array\n ? RadioField\n : SelectField;\n }\n\n switch (props.fieldType) {\n case Array:\n return ListField;\n case Boolean:\n return BoolField;\n case Date:\n return DateField;\n case Number:\n return NumField;\n case Object:\n return NestField;\n case String:\n return TextField;\n }\n\n return invariant(false, 'Unsupported field type: %s', props.fieldType);\n});\n")),(0,o.kt)("h2",{id:"overriding-autofield"},"Overriding ",(0,o.kt)("inlineCode",{parentName:"h2"},"AutoField")),(0,o.kt)("p",null,"If you want to alter the default behavior of ",(0,o.kt)("inlineCode",{parentName:"p"},"AutoField")," and render a different component based on the props, you can do it using the React context available in ",(0,o.kt)("inlineCode",{parentName:"p"},"AutoField.componentDetectorContext"),". You can use it as often as needed - once will be enough in most apps. Example:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"<AutoField.componentDetectorContext.Provider value={(props, uniforms) => /* ... */}>\n <Application />\n</AutoField.componentDetectorContext.Provider>\n")),(0,o.kt)("p",null,"If you want to change the detector only partially, i.e., to render one additional field, and in other cases, use the default algorithm as a fallback, return ",(0,o.kt)("inlineCode",{parentName:"p"},"AutoField.defaultComponentDetector"),". Example:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-tsx"},"<AutoField.componentDetectorContext.Provider\n value={(props, uniforms) => {\n if (props.useSpecialField) {\n return SpecialField;\n }\n\n return AutoField.defaultComponentDetector(props, uniforms);\n }}\n>\n <Application />\n</AutoField.componentDetectorContext.Provider>\n")))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/e98b3e1d.b63536fd.js b/assets/js/e98b3e1d.b63536fd.js new file mode 100644 index 000000000..4ba147cff --- /dev/null +++ b/assets/js/e98b3e1d.b63536fd.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[857],{83769:function(e){e.exports=JSON.parse('{"name":"docusaurus-plugin-content-docs","id":"default"}')}}]); \ No newline at end of file diff --git a/assets/js/f2d00bc8.d78fee1f.js b/assets/js/f2d00bc8.d78fee1f.js new file mode 100644 index 000000000..33a9f2486 --- /dev/null +++ b/assets/js/f2d00bc8.d78fee1f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[98],{35318:function(e,t,r){r.d(t,{Zo:function(){return m},kt:function(){return f}});var n=r(27378);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var a=n.createContext({}),c=function(e){var t=n.useContext(a),r=t;return e&&(r="function"==typeof e?e(t):i(i({},t),e)),r},m=function(e){var t=c(e.components);return n.createElement(a.Provider,{value:t},e.children)},l={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},p=n.forwardRef((function(e,t){var r=e.components,o=e.mdxType,s=e.originalType,a=e.parentName,m=u(e,["components","mdxType","originalType","parentName"]),p=c(r),f=o,d=p["".concat(a,".").concat(f)]||p[f]||l[f]||s;return r?n.createElement(d,i(i({ref:t},m),{},{components:r})):n.createElement(d,i({ref:t},m))}));function f(e,t){var r=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var s=r.length,i=new Array(s);i[0]=p;var u={};for(var a in t)hasOwnProperty.call(t,a)&&(u[a]=t[a]);u.originalType=e,u.mdxType="string"==typeof e?e:o,i[1]=u;for(var c=2;c<s;c++)i[c]=r[c];return n.createElement.apply(null,i)}return n.createElement.apply(null,r)}p.displayName="MDXCreateElement"},267:function(e,t,r){r.r(t),r.d(t,{assets:function(){return a},contentTitle:function(){return i},default:function(){return l},frontMatter:function(){return s},metadata:function(){return u},toc:function(){return c}});var n=r(25773),o=(r(27378),r(35318));const s={id:"tutorials-creating-custom-theme",title:"Creating a custom theme"},i=void 0,u={unversionedId:"tutorials-creating-custom-theme",id:"tutorials-creating-custom-theme",title:"Creating a custom theme",description:"We've made hundreds of custom components across dozens of projects, including complete custom themes.",source:"@site/../docs/tutorials-creating-custom-theme.md",sourceDirName:".",slug:"/tutorials-creating-custom-theme",permalink:"/docs/tutorials-creating-custom-theme",draft:!1,tags:[],version:"current",frontMatter:{id:"tutorials-creating-custom-theme",title:"Creating a custom theme"},sidebar:"docs",previous:{title:"Creating a custom field",permalink:"/docs/tutorials-creating-custom-field"},next:{title:"Common forms",permalink:"/docs/examples-common-forms"}},a={},c=[{value:"Copy theme source",id:"copy-theme-source",level:3},{value:"Import newly created theme",id:"import-newly-created-theme",level:3},{value:"Referenced issues and pull requests",id:"referenced-issues-and-pull-requests",level:3}],m={toc:c};function l(e){let{components:t,...r}=e;return(0,o.kt)("wrapper",(0,n.Z)({},m,r,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("p",null,"We've made hundreds of custom components across dozens of projects, including complete custom themes.\nMost of them began as source forks of ",(0,o.kt)("inlineCode",{parentName:"p"},"uniforms-unstyled")," - one simply copies the source\nand imports ",(0,o.kt)("inlineCode",{parentName:"p"},"./some/project/path/uniforms-custom-theme-with-a-cool-name"),"."),(0,o.kt)("p",null,"For the purposes of this tutorial we will be using ",(0,o.kt)("inlineCode",{parentName:"p"},"uniforms-custom-theme")," as our custom theme name."),(0,o.kt)("h3",{id:"copy-theme-source"},"Copy theme source"),(0,o.kt)("p",null,"Copy source of ",(0,o.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/tree/master/packages/uniforms-unstyled"},"uniforms-unstyled")," package from uniforms repository, or any other provided theme that you would like to extend, and put it somewhere inside your project, e.g. ",(0,o.kt)("inlineCode",{parentName:"p"},"./uniforms-custom-theme"),"."),(0,o.kt)("p",null,"Now you can start making changes to your own custom theme!"),(0,o.kt)("h3",{id:"import-newly-created-theme"},"Import newly created theme"),(0,o.kt)("p",null,"Instead of importing themes from ",(0,o.kt)("inlineCode",{parentName:"p"},"node_modules")," (original uniforms theme packages), simply import theme from your local path."),(0,o.kt)("p",null,"That's all!"),(0,o.kt)("h3",{id:"referenced-issues-and-pull-requests"},"Referenced issues and pull requests"),(0,o.kt)("p",null,(0,o.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/issues/433"},"#433"),"\n",(0,o.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/issues/609#issuecomment-545079686"},"#609"),"\n",(0,o.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/pull/612#issuecomment-545643935"},"#612")))}l.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/f5d1468c.995eef4e.js b/assets/js/f5d1468c.995eef4e.js new file mode 100644 index 000000000..fe22bb1dd --- /dev/null +++ b/assets/js/f5d1468c.995eef4e.js @@ -0,0 +1,128 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[841],{73633:function(e,n,t){"use strict";t.d(n,{j:function(){return x}}),t(11561).z.register("minCount","maxCount");var r=t(59312),a=t(3996),l=t.n(a),i=t(30454),s=t.n(i),o=t(99729),c=t.n(o),u=t(90104),d=t.n(u),m=t(1883),p=t.n(m),f=t(16651),v=t.n(f),_=t(76744),h=t.n(_),b=t(98949),g=t(65507);function E(e,n){l()(n,'Field not found in schema: "%s"',e)}function y(e,n){if(!("$ref"in e))return e;const{$ref:t}=e,a=(0,r._T)(e,["$ref"]);return y(Object.assign({},a,function(e,n){l()(e.startsWith("#"),'Reference is not an internal reference, and only such are allowed: "%s"',e);const t=e.split("/").filter((e=>e&&"#"!==e)).reduce(((e,n)=>e[n]),n);return l()(t,'Reference not found in schema: "%s"',e),t}(t,n)),n)}const O=["allOf","anyOf","oneOf"],C=["default","enum","format","isRequired","title","uniforms"],j=[["maxItems","maxCount"],["maximum","max"],["minItems","minCount"],["minimum","min"],["multipleOf","step"]];function k(e){return"object"==typeof e&&null!==e&&Array.isArray(e.details)}class x extends b.k{constructor(e){let{provideDefaultLabelFromFieldName:n=!0,schema:t,validator:r}=e;super(),this.provideDefaultLabelFromFieldName=n,this.schema=y(t,t),this._compiledSchema={"":this.schema},this.validator=r,this.getField=v()(this.getField.bind(this)),this.getInitialValue=v()(this.getInitialValue.bind(this)),this.getSubfields=v()(this.getSubfields.bind(this)),this.getType=v()(this.getType.bind(this))}getError(e,n){const t=k(n)&&n.details;if(!t)return null;const r=(0,g.m)(null,e).map(g.m.unescape),a=(0,g.m)(r),l=(0,g.m)(r.slice(0,-1)),i=r[r.length-1],s=t.find((e=>{var n;const t=null!==(n=e.instancePath)&&void 0!==n?n:e.dataPath,r=t?function(e){return(e=e.startsWith("/")?e.replace(/\//g,".").replace(/~0/g,"~").replace(/~1/g,"/"):e.replace(/\[('|")(.+?)\1\]/g,".$2").replace(/\[(.+?)\]/g,".$1").replace(/\\'/g,"'")).slice(1)}(t):"";return a===r||l===r&&e.params&&i===e.params.missingProperty}));return s||null}getErrorMessage(e,n){const t=this.getError(e,n);return(null==t?void 0:t.message)||""}getErrorMessages(e){if(!e)return[];if(k(e)){const{details:n}=e;return n.map((e=>e.message||""))}return e instanceof Error?[e.message]:"object"==typeof e?[]:[String(e)]}getField(e){return(0,g.m)(null,e).reduce(((n,t,r,a)=>{var l,i,s,o;const c=(0,g.m)(a.slice(0,r)),u=(0,g.m)(c,t),m=null!==(l=(o=this._compiledSchema)[u])&&void 0!==l?l:o[u]={};if(m.isRequired=!(!(null===(i=n.required)||void 0===i?void 0:i.includes(t))&&!(null===(s=this._compiledSchema[c].required)||void 0===s?void 0:s.includes(t))),"$"===t||t===""+parseInt(t,10))E(e,"array"===n.type),n=Array.isArray(n.items)?n.items[parseInt(t,10)]:n.items,E(e,!!n);else if("object"===n.type)E(e,!!n.properties),n=n.properties[g.m.unescape(t)],E(e,!!n);else{let r=!1;O.forEach((e=>{var a;null===(a=n[e])||void 0===a||a.forEach((e=>{r||(e=y(e,this.schema),t in e.properties&&(n=e.properties[t],r=!0))}))})),E(e,r)}const p=(n=y(n,this.schema)).required?n.required.slice():[],f=n.properties?Object.assign({},n.properties):{};return O.forEach((e=>{var t;null===(t=n[e])||void 0===t||t.forEach((e=>{(e=y(e,this.schema)).required&&p.push(...e.required),Object.assign(f,e.properties),!m.type&&e.type&&(m.type=e.type)}))})),p.length>0&&(m.required=p),d()(f)||(m.properties=f),n}),this.schema)}getInitialValue(e){var n;const t=this.getField(e),{default:r=(null!==(n=t.default)&&void 0!==n?n:c()(this.schema.default,e)),type:a=t.type}=this._compiledSchema[e];if(void 0!==r)return s()(r);if("array"===a){const n=this.getInitialValue((0,g.m)(e,"$"));if(void 0===n)return[];const r=t.minItems||0;return Array.from({length:r},(()=>n))}if("object"===a){const n={};return this.getSubfields(e).forEach((t=>{const r=this.getInitialValue((0,g.m)(e,t));void 0!==r&&(n[t]=r)})),n}}getProps(e){var n,t;const r=this.getField(e),a=Object.assign({},r,r.uniforms,this._compiledSchema[e]);null!==(n=a.label)&&void 0!==n||(a.label=a.title),this.provideDefaultLabelFromFieldName&&void 0===a.label&&(a.label=h()(p()((0,g.m)(null,e).slice(-1)[0]))),"number"===r.type&&(a.decimal=!0),void 0!==(null===(t=r.uniforms)||void 0===t?void 0:t.type)&&(a.type=r.uniforms.type),void 0===a.required&&(a.required=a.isRequired),a.type===r.type&&delete a.type;let l=a.options;return l?Array.isArray(l)||(l=Object.entries(l).map((e=>{let[n,t]=e;return{key:n,label:n,value:t}}))):a.enum&&(l=Object.values(a.enum).map((e=>({value:e})))),j.forEach((e=>{let[n,t]=e;n in a&&(a[t]=a[n],delete a[n])})),C.forEach((e=>{e in a&&delete a[e]})),Object.assign(a,{options:l})}getSubfields(e){void 0===e&&(e="");const n=this.getField(e),{properties:t=n.properties,type:r=n.type}=this._compiledSchema[e];return"object"===r&&t?Object.keys(t).map(g.m.escape):[]}getType(e){const{type:n,format:t}=this.getField(e),{type:r=n}=this._compiledSchema[e];return"date-time"===t?Date:"string"===r?String:"number"===r||"integer"===r?Number:"object"===r?Object:"array"===r?Array:"boolean"===r?Boolean:(l()("null"!==r,'Field "%s" can not be represented as a type null',e),r)}getValidator(){return this.validator}}},12005:function(e,n,t){"use strict";t.d(n,{V:function(){return _}});var r=t(13762),a=t.n(r),l=t(11561);a().extendOptions(["uniforms"]),l.z.register("autoValue","blackbox","custom","decimal","defaultValue","exclusiveMax","exclusiveMin","max","maxCount","min","minCount","optional","regEx","trim","type");var i=t(59312),s=t(3996),o=t.n(s),c=t(30454),u=t.n(c),d=t(16651),m=t.n(d),p=t(98949),f=t(65507);const v=["optional","uniforms","allowedValues"];class _ extends p.k{constructor(e){let{schema:n}=e;super(),this.schema=n,this.getField=m()(this.getField.bind(this)),this.getInitialValue=m()(this.getInitialValue.bind(this)),this.getProps=m()(this.getProps.bind(this)),this.getSubfields=m()(this.getSubfields.bind(this)),this.getType=m()(this.getType.bind(this))}getError(e,n){const t=null==n?void 0:n.details;return Array.isArray(t)&&t.find((n=>n.name===e))||null}getErrorMessage(e,n){const t=this.getError(e,n);return t?this.schema.messageForError(t):""}getErrorMessages(e){if(!e)return[];const{details:n}=e;return Array.isArray(n)?n.map((e=>this.schema.messageForError(e))):[e.message||e]}getField(e){const n=this.schema.getDefinition(e);o()(n,'Field not found in schema: "%s"',e);const t=Object.assign(Object.assign({},n),n.type[0]);if(t.autoValue&&("defaultAutoValueFunction"===t.autoValue.name||-1!==t.autoValue.toString().indexOf("$setOnInsert:")))try{t.defaultValue=t.autoValue.call({operator:null})}catch(r){}return t}getInitialValue(e){const n=this.getField(e),t=n.defaultValue;if(void 0!==t)return u()(t);if(n.type===Array){const t=this.getInitialValue((0,f.m)(e,"$"));if(void 0===t)return[];const r=n.minCount||0;return Array.from({length:r},(()=>t))}if(n.type===Object||n.type instanceof a()){const n={};return this.getSubfields(e).forEach((t=>{const r=this.getInitialValue((0,f.m)(e,t));void 0!==r&&(n[t]=r)})),n}}getProps(e){const n=this.getField(e),{type:t}=n,r=(0,i._T)(n,["type"]);r.required=!r.optional,"function"==typeof r.uniforms||"string"==typeof r.uniforms?r.component=r.uniforms:Object.assign(r,r.uniforms),t===Number&&(r.decimal=!0);let a=r.options,l=r.allowedValues;if("function"==typeof a&&(a=a()),a||"function"!=typeof l||(l=l()),!a&&Array.isArray(l))a=l.map((e=>({value:e})));else if(t===Array)try{const n=this.getProps(`${e}.$`);n.options&&(a=n.options)}catch(s){}return v.forEach((e=>{e in r&&delete r[e]})),Object.assign(r,{options:a})}getSubfields(e){return this.schema.objectKeys(function(e){return null==e?void 0:e.replace(/\.\d+(\.|$)/g,".$$$1")}(e))}getType(e){const n=this.getField(e).type;return n===a().Integer?Number:n instanceof a()?Object:n}getValidator(e){void 0===e&&(e={clean:!0,mutate:!0});const n=this.schema.validator(e);return t=>{try{return n(e.clean?u()(Object.assign({},t)):t),null}catch(r){return r}}}}},48616:function(e,n,t){"use strict";t.d(n,{K:function(){return g}});var r=t(11561),a=t(84200);r.z.register("minCount","maxCount"),a.z.ZodType.prototype.uniforms=function(e){return this._uniforms=e,this};var l=t(3996),i=t.n(l),s=t(1883),o=t.n(s),c=t(16651),u=t.n(c),d=t(76744),m=t.n(d),p=t(65507),f=t(98949);function v(e,n){i()(n,'Field not found in schema: "%s"',e)}function _(e){return"string"!=typeof e}function h(e){return m()(o()((0,p.m)(null,e).slice(-1)[0]))}function b(e,n){void 0===n&&(n=[]);const t=e[e.length-1];if("number"==typeof t){return b(e.slice(0,e.length-1),[t,...n])}return n.length>0?`${h(e)} (${n.join(", ")})`:h(e)}class g extends f.k{constructor(e){let{schema:n,provideDefaultLabelFromFieldName:t=!0}=e;super(),this.schema=n,this.provideDefaultLabelFromFieldName=t,this.getField=u()(this.getField.bind(this)),this.getInitialValue=u()(this.getInitialValue.bind(this)),this.getProps=u()(this.getProps.bind(this)),this.getSubfields=u()(this.getSubfields.bind(this)),this.getType=u()(this.getType.bind(this))}getError(e,n){return n instanceof a.jm&&n.issues.find((n=>e===(0,p.m)(n.path)))||null}getErrorMessage(e,n){var t;return(null===(t=this.getError(e,n))||void 0===t?void 0:t.message)||""}getErrorMessages(e){return e instanceof a.jm?e.issues.map((e=>`${b(e.path)}: ${e.message}`)):e instanceof Error?[e.message]:[]}getField(e){let n=this.schema;this.schema instanceof a.Xc&&(n=this.schema._def.schema);for(const t of(0,p.m)(null,e))n instanceof a.uE?n=n.removeDefault():n instanceof a.ak&&(n=n.unwrap()),"$"===t||t===""+parseInt(t,10)?(v(e,n instanceof a.p5),n=n.element):(v(e,n instanceof a.CQ),n=n.shape[p.m.unescape(t)]);return n}getInitialValue(e){var n,t;const r=this.getField(e);if(r instanceof a.p5){const t=this.getInitialValue((0,p.m)(e,"$"));if(void 0===t)return[];const a=(null===(n=r._def.minLength)||void 0===n?void 0:n.value)||0;return Array.from({length:a},(()=>t))}if(r instanceof a.uE)return r._def.defaultValue();if(r instanceof a.K7)return r.options[0];if(r instanceof a.Zl){const e=Object.values(r.enum);return null!==(t=e.find(_))&&void 0!==t?t:e[0]}if(r instanceof a.CQ){const n={};return this.getSubfields(e).forEach((t=>{const r=this.getInitialValue((0,p.m)(e,t));void 0!==r&&(n[t]=r)})),n}}getProps(e){const n=Object.assign(Object.assign({},this.provideDefaultLabelFromFieldName&&{label:h(e)}),{required:!0});let t=this.getField(e);const r=t._uniforms;if("function"==typeof r?n.component=r:Object.assign(n,r),t instanceof a.uE?(t=t.removeDefault(),n.required=!1):t instanceof a.ak&&(t=t.unwrap(),n.required=!1),t instanceof a.p5)t._def.maxLength&&(n.maxCount=t._def.maxLength.value),t._def.minLength&&(n.minCount=t._def.minLength.value);else if(t instanceof a.K7)n.options=t.options.map((e=>({value:e})));else if(t instanceof a.Zl){const e=Object.values(t.enum),r=e.filter(_);n.options=(r.length?r:e).map((e=>({value:e})))}else if(t instanceof a.IV){t.isInt||(n.decimal=!0);const e=t.maxValue;null!==e&&(n.max=e);const r=t.minValue;null!==r&&(n.min=r);const a=t._def.checks.find((e=>"multipleOf"===e.kind));a&&(n.step=a.value)}return n}getSubfields(e){void 0===e&&(e="");let n=this.getField(e);return n instanceof a.uE?n=n.removeDefault():n instanceof a.ak&&(n=n.unwrap()),n instanceof a.p5?["$"]:n instanceof a.CQ?Object.keys(n.shape):[]}getType(e){let n=this.getField(e);if(n instanceof a.uE?n=n.removeDefault():n instanceof a.ak&&(n=n.unwrap()),n instanceof a.p5)return Array;if(n instanceof a.pZ)return Boolean;if(n instanceof a.$s)return Date;if(n instanceof a.K7||n instanceof a.$T)return String;if(n instanceof a.Zl){return"number"==typeof Object.values(n.enum).find(_)?Number:String}return n instanceof a.IV?Number:n instanceof a.CQ?Object:void i()(!1,'Field "%s" has an unknown type',e)}getValidator(){return e=>{const n=this.schema.safeParse(e);return n.success?null:n.error}}}},68599:function(e,n,t){"use strict";var r=t(3996),a=t.n(r),l=t(6846),i=t(12138),s=t(14449),o=t(64694),c=t(80661),u=t(59492),d=t(44591),m=t(47822),p=t(99086);const f=(0,l.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?d.Z:m.Z;switch(e.fieldType){case Array:return o.Z;case Boolean:return i.Z;case Date:return s.Z;case Number:return u.Z;case Object:return c.Z;case String:return p.Z}return a()(!1,"Unsupported field type: %s",e.fieldType)}));n.Z=f},2310:function(e,n,t){"use strict";var r=t(39850),a=t(79904);n.Z=function e(n){class t extends(r.N.Auto(n)){}return t.Auto=e,t}(a.Z)},99574:function(e,n,t){"use strict";var r=t(60042),a=t.n(r),l=t(6820);n.Z=function e(n){class t extends n{getNativeFormProps(){const e=super.getNativeFormProps(),n=this.getContextError();return Object.assign(Object.assign({},e),{className:a()("ui",e.className,{error:n},"form")})}}return t.Semantic=e,t.displayName=`Semantic${n.displayName}`,t}(l.I)},12138:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),s=t(11561),o=t(76424);n.Z=(0,o.e)((function(e){var{className:n,disabled:t,error:a,errorMessage:o,id:c,inputRef:u,label:d,name:m,onChange:p,readOnly:f,required:v,showInlineError:_,value:h,wrapClassName:b}=e,g=(0,r._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","readOnly","required","showInlineError","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:t,error:a,required:v},"field")},(0,s.z)(g)),i.createElement("div",{className:l()("ui",b,!d&&"fitted","checkbox")},i.createElement("input",{checked:h||!1,className:"hidden",disabled:t,id:c,name:m,onChange:()=>{f||p(!h)},ref:u,type:"checkbox"}),i.createElement("label",{htmlFor:c},d||null)),!(!a||!_)&&i.createElement("div",null,i.createElement("div",{className:"ui red basic pointing label"},o)))}),{kind:"leaf"})},14449:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),s=t(11561),o=t(76424);const c=("object"==typeof t.g?t.g:window).Date,u=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};n.Z=(0,o.e)((function(e){var n,{className:t,disabled:a,error:o,errorMessage:d,icon:m,iconLeft:p,iconProps:f,id:v,inputRef:_,label:h,max:b,min:g,name:E,onChange:y,placeholder:O,readOnly:C,required:j,showInlineError:k,value:x,wrapClassName:P,type:M="datetime-local"}=e,N=(0,r._T)(e,["className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","value","wrapClassName","type"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:a,error:o,required:j},"field")},(0,s.z)(N)),h&&i.createElement("label",{htmlFor:v},h),i.createElement("div",{className:l()("ui",P,{left:p,icon:m||p},"input")},i.createElement("input",{disabled:a,id:v,max:u(b),min:u(g),name:E,onChange:e=>{const n=new c(e.target.valueAsNumber);n.getFullYear()<1e4?y(n):isNaN(e.target.valueAsNumber)&&y(void 0)},placeholder:O,readOnly:C,ref:_,type:M,value:null!==(n=u(x,M))&&void 0!==n?n:""}),(m||p)&&i.createElement("i",Object.assign({className:`${m||p} icon`},f))),!(!o||!k)&&i.createElement("div",{className:"ui red basic pointing label"},d))}),{kind:"leaf"})},43351:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),s=t(55201),o=t(11561);n.Z=function(e){var{children:n,className:t}=e,a=(0,r._T)(e,["children","className"]);const{error:c,schema:u}=(0,s.c)();return c||n?i.createElement("div",Object.assign({className:l()("ui",t,"error message")},(0,o.z)(a)),n,i.createElement("ul",{className:"list"},u.getErrorMessages(c).map(((e,n)=>i.createElement("li",{key:n},e))))):null}},77900:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(30454),s=t.n(i),o=t(27378),c=t(65507),u=t(68591),d=t(11561),m=t(76424);n.Z=(0,m.e)((function(e){var{disabled:n,name:t,readOnly:a,value:i}=e,m=(0,r._T)(e,["disabled","name","readOnly","value"]);const p=(0,c.m)(null,t),f=(0,c.m)(p.slice(0,-1)),v=(0,u.U)(f,{},{absoluteName:!0})[0],_=!(n||v.maxCount<=v.value.length);function h(e){!_||a||"key"in e&&"Enter"!==e.key||v.onChange(v.value.concat([s()(i)]))}return o.createElement("i",Object.assign({},(0,d.z)(m),{className:l()("ui",m.className,_?"link":"disabled","fitted add icon"),onClick:h,onKeyDown:h,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},960:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),s=t(65507),o=t(68591),c=t(11561),u=t(76424);n.Z=(0,u.e)((function(e){var{disabled:n,name:t,readOnly:a}=e,u=(0,r._T)(e,["disabled","name","readOnly"]);const d=(0,s.m)(null,t),m=+d[d.length-1],p=(0,s.m)(d.slice(0,-1)),f=(0,o.U)(p,{},{absoluteName:!0})[0];function v(e){if(!(n||"key"in e&&"Enter"!==e.key)){const e=f.value.slice();e.splice(m,1),f.onChange(e)}}return n||(n=a||f.minCount>=f.value.length),i.createElement("i",Object.assign({},(0,c.z)(u),{className:l()("ui",u.className,n?"link":"disabled","fitted close icon"),onClick:v,onKeyDown:v,role:"button",tabIndex:0}))}),{initialValue:!1,kind:"leaf"})},64694:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),s=t(11561),o=t(76424),c=t(77900),u=t(18747);n.Z=(0,o.e)((function(e){var{children:n=i.createElement(u.Z,{name:"$"}),className:t,disabled:a,error:o,errorMessage:d,itemProps:m,label:p,required:f,showInlineError:v,value:_}=e,h=(0,r._T)(e,["children","className","disabled","error","errorMessage","itemProps","label","required","showInlineError","value"]);return i.createElement("div",Object.assign({className:l()("ui",t,{disabled:a},"grouped fitted fields list")},(0,s.z)(h)),p&&i.createElement("div",{className:l()({error:o,required:f},"field item")},i.createElement("label",{className:"left floated"},p),i.createElement(c.Z,{className:"right floated",name:"$"})),p&&i.createElement("div",{className:"ui fitted hidden clearing horizontal divider"}),!(!o||!v)&&i.createElement("div",{className:"ui red basic label"},d),null==_?void 0:_.map(((e,t)=>i.Children.map(n,((e,n)=>{var r;return(0,i.isValidElement)(e)?(0,i.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+t)},m)):e})))))}))},18747:function(e,n,t){"use strict";var r=t(27378),a=t(76424),l=t(68599),i=t(960);n.Z=(0,a.e)((function(e){let{children:n=r.createElement(l.Z,{label:null,name:""})}=e;return r.createElement("div",{className:"item"},r.createElement(i.Z,{className:"top aligned",name:""}),r.createElement("div",{className:"middle aligned content",style:{width:"100%"}},n))}),{initialValue:!1})},80661:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),s=t(11561),o=t(76424),c=t(68599);function u(e){var{children:n,className:t,disabled:a,error:o,errorMessage:u,fields:d,grouped:m,itemProps:p,label:f,showInlineError:v}=e,_=(0,r._T)(e,["children","className","disabled","error","errorMessage","fields","grouped","itemProps","label","showInlineError"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:a,error:o,grouped:m},"fields")},(0,s.z)(_)),f&&i.createElement("div",{className:"field"},i.createElement("label",null,f)),!(!o||!v)&&i.createElement("div",{className:"ui red basic label"},u),n||d.map((e=>i.createElement(c.Z,Object.assign({key:e,name:e},p)))))}u.defaultProps={grouped:!0},n.Z=(0,o.e)(u)},59492:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),s=t(11561),o=t(76424);n.Z=(0,o.e)((function(e){var{className:n,decimal:t,disabled:a,error:o,errorMessage:c,icon:u,iconLeft:d,iconProps:m,id:p,inputRef:f,label:v,max:_,min:h,name:b,onChange:g,placeholder:E,readOnly:y,required:O,showInlineError:C,step:j,value:k,wrapClassName:x}=e,P=(0,r._T)(e,["className","decimal","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","required","showInlineError","step","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(n,{disabled:a,error:o,required:O},"field")},(0,s.z)(P)),v&&i.createElement("label",{htmlFor:p},v),i.createElement("div",{className:l()("ui",x,{left:d,icon:u||d},"input")},i.createElement("input",{disabled:a,id:p,max:_,min:h,name:b,onChange:e=>{const n=(t?parseFloat:parseInt)(e.target.value);g(isNaN(n)?void 0:n)},placeholder:E,readOnly:y,ref:f,step:j||(t?.01:1),type:"number",value:null!=k?k:""}),(u||d)&&i.createElement("i",Object.assign({className:`${u||d} icon`},m))),!(!o||!C)&&i.createElement("div",{className:"ui red basic pointing label"},c))}),{kind:"leaf"})},52559:function(e,n,t){"use strict";var r=t(51674),a=t(68599),l=t(99574),i=t(43351),s=t(82986);n.Z=function e(n){class t extends(r.X.Quick(n)){getAutoField(){return a.Z}getErrorsField(){return i.Z}getSubmitField(){return s.Z}}return t.Quick=e,t}(l.Z)},44591:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(48159),s=t.n(i),o=t(27378),c=t(11561),u=t(76424);const d="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>d(encodeURIComponent(e)).replace(/=+$/,"");n.Z=(0,u.e)((function(e){var{options:n,className:t,disabled:a,error:i,errorMessage:u,id:d,label:p,name:f,onChange:v,readOnly:_,required:h,showInlineError:b,value:g}=e,E=(0,r._T)(e,["options","className","disabled","error","errorMessage","id","label","name","onChange","readOnly","required","showInlineError","value"]);return o.createElement("div",Object.assign({className:l()(t,{disabled:a,error:i},"grouped fields")},s()((0,c.z)(E),["checkboxes"])),p&&o.createElement("div",{className:l()({required:h},"field")},o.createElement("label",null,p)),null==n?void 0:n.map((e=>{var n,t,r,l;return o.createElement("div",{className:"field",key:null!==(n=e.key)&&void 0!==n?n:e.value},o.createElement("div",{className:"ui radio checkbox"},o.createElement("input",{checked:e.value===g,disabled:e.disabled||a,id:`${d}-${null!==(t=e.key)&&void 0!==t?t:m(e.value)}`,name:f,onChange:()=>{_||v(e.value)},type:"radio"}),o.createElement("label",{htmlFor:`${d}-${null!==(r=e.key)&&void 0!==r?r:m(e.value)}`},null!==(l=e.label)&&void 0!==l?l:e.value)))})),!(!i||!b)&&o.createElement("div",{className:"ui red basic pointing label"},u))}),{kind:"leaf"})},47822:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(20098),s=t.n(i),o=t(27378),c=t(11561),u=t(76424);const d="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,m=e=>d(encodeURIComponent(e)).replace(/=+$/,""),p={paddingBottom:0,paddingTop:0};n.Z=(0,u.e)((function(e){var{options:n,checkboxes:t,className:a,disabled:i,error:u,errorMessage:d,fieldType:f,id:v,inputRef:_,label:h,name:b,onChange:g,placeholder:E,readOnly:y,required:O,showInlineError:C,value:j}=e,k=(0,r._T)(e,["options","checkboxes","className","disabled","error","errorMessage","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);const x=f===Array;return o.createElement("div",Object.assign({className:l()({disabled:i,error:u,required:O},a,"field")},(0,c.z)(k)),h&&o.createElement("label",{htmlFor:v},h),t?null==n?void 0:n.map((e=>{var n,t,r,a;return o.createElement("div",{className:"field",key:null!==(n=e.key)&&void 0!==n?n:e.value},o.createElement("div",{className:"ui checkbox"},o.createElement("input",{checked:x?null==j?void 0:j.includes(e.value):j===e.value,disabled:e.disabled||i,id:`${v}-${null!==(t=e.key)&&void 0!==t?t:m(e.value)}`,name:b,onChange:()=>{y||g(x?s()([e.value],j):e.value)},type:"checkbox"}),o.createElement("label",{htmlFor:`${v}-${null!==(r=e.key)&&void 0!==r?r:m(e.value)}`},null!==(a=e.label)&&void 0!==a?a:e.value)))})):o.createElement("select",{className:"ui selection dropdown",disabled:i,id:v,multiple:x,name:b,onChange:e=>{if(!y){const n=e.target.value;if(x){const t=-1===e.target.selectedIndex;g(t?[]:s()([n],j))}else g(""!==n?n:void 0)}},ref:_,style:p,value:null!=j?j:""},(!!E||!O||void 0===j)&&!x&&o.createElement("option",{value:"",disabled:O,hidden:O},E||h),null==n?void 0:n.map((e=>{var n,t;return o.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))),!(!u||!C)&&o.createElement("div",{className:"ui red basic pointing label"},d))}),{kind:"leaf"})},82986:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),s=t(55201),o=t(11561);function c(e){var{className:n,disabled:t,inputRef:a,readOnly:c,value:u}=e,d=(0,r._T)(e,["className","disabled","inputRef","readOnly","value"]);const{error:m,state:p}=(0,s.c)();return i.createElement("input",Object.assign({className:l()("ui",n,"button"),disabled:void 0===t?!(!m&&!p.disabled):t,readOnly:c,ref:a,type:"submit"},u?{value:u}:{},(0,o.z)(d)))}},99086:function(e,n,t){"use strict";var r=t(59312),a=t(60042),l=t.n(a),i=t(27378),s=t(11561),o=t(76424);function c(e){var{autoComplete:n,className:t,disabled:a,error:o,errorMessage:c,icon:u,iconLeft:d,iconProps:m,id:p,inputRef:f,label:v,name:_,onChange:h,placeholder:b,readOnly:g,required:E,showInlineError:y,type:O,value:C,wrapClassName:j}=e,k=(0,r._T)(e,["autoComplete","className","disabled","error","errorMessage","icon","iconLeft","iconProps","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","type","value","wrapClassName"]);return i.createElement("div",Object.assign({className:l()(t,{disabled:a,error:o,required:E},"field")},(0,s.z)(k)),v&&i.createElement("label",{htmlFor:p},v),i.createElement("div",{className:l()("ui",j,{left:d,icon:u||d},"input")},i.createElement("input",{autoComplete:n,disabled:a,id:p,name:_,onChange:e=>h(e.target.value),placeholder:b,readOnly:g,ref:f,type:O,value:null!=C?C:""}),(u||d)&&i.createElement("i",Object.assign({className:`${u||d} icon`},m))),!(!o||!y)&&i.createElement("div",{className:"ui red basic pointing label"},c))}c.defaultProps={type:"text"},n.Z=(0,o.e)(c,{kind:"leaf"})},3684:function(e,n,t){"use strict";var r=t(23674),a=t(99574);n.Z=function e(n){class t extends(r.O.Validated(n)){}return t.Validated=e,t}(a.Z)},79904:function(e,n,t){"use strict";var r=t(99574),a=t(52559),l=t(3684);n.Z=l.Z.Validated(a.Z.Quick(r.Z))},96614:function(e,n,t){"use strict";var r=t(59312),a=t(27378),l=t(11561),i=t(76424);n.Z=(0,i.e)((function(e){var{disabled:n,id:t,inputRef:i,label:s,name:o,onChange:c,placeholder:u,readOnly:d,value:m}=e,p=(0,r._T)(e,["disabled","id","inputRef","label","name","onChange","placeholder","readOnly","value"]);return a.createElement("div",Object.assign({},(0,l.z)(p)),s&&a.createElement("label",{htmlFor:t},s),a.createElement("textarea",{disabled:n,id:t,name:o,onChange:e=>c(e.target.value),placeholder:u,readOnly:d,ref:i,value:null!=m?m:""}))}),{kind:"leaf"})},39850:function(e,n,t){"use strict";t.d(n,{N:function(){return p}});var r=t(13784),a=t.n(r),l=t(56141),i=t.n(l),s=t(48159),o=t.n(s),c=t(96498),u=t.n(c),d=t(6820),m=t(51674);const p=function e(n){class t extends n{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{model:this.mergeSchemaAndPropsModel(this.props.schema,this.props.model)})}mergeSchemaAndPropsModel(e,n){const t=e.getInitialModel();return Object.assign(t,n)}componentDidUpdate(e,n,t){const{model:r,schema:a}=this.props;i()(r,e.model)||this.setState({model:this.mergeSchemaAndPropsModel(a,r)}),super.componentDidUpdate(e,n,t)}getNativeFormProps(){const e=super.getNativeFormProps();return o()(e,["onChangeModel"])}getModel(e){return this.state.model}onChange(e,n){super.onChange(e,n),this.setState((t=>({model:u()(a()(t.model),e,n,a())})),(()=>{this.props.onChangeModel&&this.props.onChangeModel(this.state.model)}))}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{model:this.props.model})}}return t.Auto=e,t.displayName=`Auto${n.displayName}`,t}((0,t(23674).u)((0,m.s)(d.I)))},6820:function(e,n,t){"use strict";t.d(n,{I:function(){return g}});var r=t(13784),a=t.n(r),l=t(99729),i=t.n(l),s=t(48159),o=t.n(s),c=t(96498),u=t.n(c),d=t(27378),m=t(56141),p=t.n(m),f=t(65507);function v(e){return!(!e||e!==Object(e)||e instanceof Date)}var _=t(34361);function h(e){let n=0;return()=>`${e}-${("000"+(n++).toString(36)).slice(-4)}`}const b=h("uniforms");class g extends d.Component{constructor(e){var n,t;super(e),n=this,this.state={changed:!1,changedMap:Object.create(null),resetCount:0,submitted:!1,submitting:!1},this.mounted=!1,this.randomId=(void 0===(t=this.props.id)&&(t=b()),h(t)),this.onReset=this.reset=this.onReset.bind(this),this.onChange=this.change=this.onChange.bind(this),this.onSubmit=this.submit=this.onSubmit.bind(this);const r=this.getModel.bind(this);this.getModel=function(e,t){return void 0===t&&(t=r(e)),void 0!==e&&n.props.modelTransform?n.props.modelTransform(e,t):t}}componentDidMount(){this.mounted=!0}componentDidUpdate(e,n,t){}componentWillUnmount(){this.mounted=!1,this.delayId&&clearTimeout(this.delayId)}getContext(){return{changed:this.state.changed,changedMap:this.state.changedMap,error:this.getContextError(),formRef:this,model:this.getContextModel(),name:this.getContextName(),onChange:this.getContextOnChange(),onSubmit:this.getContextOnSubmit(),randomId:this.randomId,schema:this.getContextSchema(),state:this.getContextState(),submitted:this.state.submitted,submitting:this.state.submitting,validating:!1}}getContextName(){return[]}getContextError(){return this.props.error}getContextModel(){return this.getModel("form")}getContextState(){return{disabled:!!this.props.disabled,readOnly:!!this.props.readOnly,showInlineError:!!this.props.showInlineError}}getContextSchema(){return this.props.schema}getContextOnChange(){return this.onChange}getContextOnSubmit(){return this.onSubmit}getModel(e,n){return void 0===n&&(n=this.props.model),n}getNativeFormProps(){const e=o()(this.props,["autosave","autosaveDelay","disabled","error","model","modelTransform","onChange","onSubmit","readOnly","schema","showInlineError"]);return Object.assign(Object.assign({},e),{onSubmit:this.onSubmit,key:`reset-${this.state.resetCount}`})}onChange(e,n){if(this.mounted){const t=function(e,n,t){if(!v(n)||t&&typeof n!=typeof t)return p()(n,t)?[]:[e];const r=[e];if(v(t)){for(const a in n)a in t&&p()(n[a],t[a])||r.push((0,f.m)(e,a));for(const a in t)a in n||r.push((0,f.m)(e,a));1===r.length&&r.pop()}else for(const a in n)r.push((0,f.m)(e,a));return r}(e,n,i()(this.getModel(),e));0!==t.length&&this.setState((e=>e.changed&&t.every((n=>!!i()(e.changedMap,n)))?null:{changed:!0,changedMap:t.reduce(((e,n)=>u()(e,n,{},a())),a()(e.changedMap))}))}this.props.onChange&&this.props.onChange(e,n),this.mounted&&this.props.autosave&&(this.delayId&&clearTimeout(this.delayId),this.delayId=setTimeout((()=>{this.mounted&&this.setState((()=>null),(()=>{this.onSubmit()}))}),this.props.autosaveDelay))}__reset(e){return{changed:!1,changedMap:Object.create(null),resetCount:e.resetCount+1,submitted:!1,submitting:!1}}onReset(){this.mounted&&this.setState(this.__reset)}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.mounted&&this.setState((e=>e.submitted?null:{submitted:!0}));const n=this.props.onSubmit(this.getModel("submit"));return n instanceof Promise?(this.mounted&&this.setState({submitting:!0}),n.finally((()=>{this.mounted&&this.setState({submitting:!1})}))):Promise.resolve()}render(){return d.createElement(_.D.Provider,{value:this.getContext()},d.createElement("form",Object.assign({},this.getNativeFormProps())))}}g.displayName="Form",g.defaultProps={autosave:!1,autosaveDelay:0,error:null,model:Object.create(null),noValidate:!0,onSubmit(){}}},98949:function(e,n,t){"use strict";t.d(n,{k:function(){return s}});var r=t(3996),a=t.n(r),l=t(47215),i=t.n(l);class s{constructor(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];a()(this.constructor!==s,"Bridge cannot be instantiated (args=%o).",{args:n})}getError(e,n){return a()(!1,"%s have not implemented `getError` method (args=%o).",this.constructor.name,{name:e,error:n})}getErrorMessage(e,n){return a()(!1,"%s have not implemented `getErrorMessage` method (args=%o).",this.constructor.name,{name:e,error:n})}getErrorMessages(e){return a()(!1,"%s have not implemented `getErrorMessages` method (args=%o).",this.constructor.name,{error:e})}getField(e){return a()(!1,"%s have not implemented `getField` method (args=%o).",this.constructor.name,{name:e})}getInitialValue(e){return a()(!1,"%s have not implemented `getInitialValue` method (args=%o).",this.constructor.name,{name:e})}getInitialModel(){const e={},n=this.getSubfields();for(const t of n){const n=this.getInitialValue(t);i()(e,t,n)}return e}getProps(e){return a()(!1,"%s have not implemented `getProps` method (args=%o).",this.constructor.name,{name:e})}getSubfields(e){return a()(!1,"%s have not implemented `getSubfields` method (args=%o).",this.constructor.name,{name:e})}getType(e){return a()(!1,"%s have not implemented `getType` method (args=%o).",this.constructor.name,{name:e})}getValidator(e){return a()(!1,"%s have not implemented `getValidator` method (args=%o).",this.constructor.name,{options:e})}}},51674:function(e,n,t){"use strict";t.d(n,{X:function(){return i},s:function(){return l}});var r=t(59312),a=t(27378);function l(e){class n extends e{getNativeFormProps(){const e=super.getNativeFormProps(),{errorsField:n=this.getErrorsField(),submitField:t=this.getSubmitField()}=e,l=(0,r._T)(e,["errorsField","submitField"]),i=this.getAutoField();return l.children||(l.children=this.getContextSchema().getSubfields().map((e=>a.createElement(i,{key:e,name:e}))).concat([a.createElement(n,{key:"$ErrorsField"}),a.createElement(t,{key:"$SubmitField"})])),l}getAutoField(){return()=>null}getErrorsField(){return()=>null}getSubmitField(){return()=>null}}return n.Quick=l,n.displayName=`Quick${e.displayName}`,n}const i=l(t(6820).I)},23674:function(e,n,t){"use strict";t.d(n,{O:function(){return h},u:function(){return v}});var r=t(13784),a=t.n(r),l=t(30454),i=t.n(l),s=t(56141),o=t.n(s),c=t(50344),u=t.n(c),d=t(48159),m=t.n(d),p=t(96498),f=t.n(p);function v(e){class n extends e{constructor(e){super(e),this.state=Object.assign(Object.assign({},this.state),{error:null,validate:!1,validating:!1,validator:this.getContextSchema().getValidator(e.validator)}),this.onValidate=this.validate=this.onValidate.bind(this),this.onValidateModel=this.validateModel=this.onValidateModel.bind(this)}getContextError(){var e;return null!==(e=super.getContextError())&&void 0!==e?e:this.state.error}getContext(){return Object.assign(Object.assign({},super.getContext()),{validating:this.state.validating})}getNativeFormProps(){const e=super.getNativeFormProps();return m()(e,["onValidate","validate","validator"])}componentDidUpdate(e,n,t){super.componentDidUpdate(e,n,t);const{model:r,schema:a,validate:l,validator:i}=this.props;a!==e.schema||i!==e.validator?this.setState({validator:a.getValidator(i)},(()=>{_(l,this.state.validate)&&this.onValidate()})):!o()(r,e.model)&&_(l,this.state.validate)&&this.onValidateModel(r)}onChange(e,n){_(this.props.validate,this.state.validate)&&this.onValidate(e,n),super.onChange(e,n)}__reset(e){return Object.assign(Object.assign({},super.__reset(e)),{error:null,validate:!1,validating:!1})}onSubmit(e){e&&(e.preventDefault(),e.stopPropagation()),this.setState({submitted:!0,validate:!0});const n=this.onValidate().then((e=>null!==e?Promise.reject(e):super.onSubmit().catch((e=>{throw this.setState({error:e}),e}))));return n.catch(u()),n}onValidate(e,n){let t=this.getContextModel();return t&&e&&(t=f()(a()(t),e,i()(n),a())),this.onValidateModel(t)}onValidateModel(e){var n=this;const t=this.getModel("validate",e),r=function(e){function n(n,t){return n instanceof Promise?(e(),n.then(t)):t(n)}return n}((()=>{this.setState({validating:!0})}));return r(this.state.validator(t),(function(e){return void 0===e&&(e=null),r(n.props.onValidate(t,e),(function(e){var t;return void 0===e&&(e=null),e=n.props.error===e?null:e,n.setState((n=>n.error!==e||n.validating?{error:e,validating:!1}:null)),Promise.resolve(null!==(t=n.props.error)&&void 0!==t?t:e)}))}))}}return n.Validated=v,n.displayName=`Validated${e.displayName}`,n.defaultProps=Object.assign(Object.assign({},e.defaultProps),{onValidate(e,n){return n},validate:"onChangeAfterSubmit"}),n}function _(e,n){return"onChange"===e||"onChangeAfterSubmit"===e&&n}const h=v(t(6820).I)},76424:function(e,n,t){"use strict";t.d(n,{e:function(){return o}});var r=t(25389),a=t.n(r),l=t(27378),i=t(34361),s=t(68591);function o(e,n){function t(t){const[r,o]=(0,s.U)(t.name,t,n),c=function(e,n,t){if("leaf"===(null==t?void 0:t.kind))return e;const r=""!==n.name,l=Object.keys(e.state).some((e=>null!=n[e]));if(!r&&!l)return e;const i=Object.assign({},e);return r&&(i.name=i.name.concat(n.name)),l&&(i.state=a()(i.state,((e,t)=>{const r=n[t];return null!=r?!!r:e}))),i}(o,t,n),u=l.createElement(e,Object.assign({},t,r));return o===c?u:l.createElement(i.D.Provider,{children:u,value:c})}return t.displayName=`${e.displayName||e.name}Field`,Object.assign(t,{Component:e,options:n})}},34361:function(e,n,t){"use strict";t.d(n,{D:function(){return r}});const r=(0,t(27378).createContext)(null)},6846:function(e,n,t){"use strict";t.d(n,{a:function(){return o}});var r=t(59312),a=t(3996),l=t.n(a),i=t(27378),s=t(68591);function o(e){const n=(0,i.createContext)(e);return Object.assign((function(e){var t,{experimental_absoluteName:a}=e,o=(0,r._T)(e,["experimental_absoluteName"]);const c={absoluteName:a},[u,d]=(0,s.U)(o.name,o,c),m=(0,i.useContext)(n)(u,d);return l()(m,"AutoField received no component for: %s",u.name),"options"in m&&"leaf"===(null===(t=m.options)||void 0===t?void 0:t.kind)?(0,i.createElement)(m.Component,u):(0,i.createElement)(m,o)}),{componentDetectorContext:n,defaultComponentDetector:e})}},11561:function(e,n,t){"use strict";t.d(n,{z:function(){return l}});const r=[],a=new Set,l=Object.assign((function(e){const n=Object.assign({},e);for(const t in e)a.has(t)&&delete n[t];return n}),{register(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];n.forEach((e=>{a.has(e)||(r.push(e),a.add(e))})),r.sort()},registered:r});l.register("changed","error","errorMessage","field","fieldType","fields","name","onChange","value","disabled","showInlineError","component")},65507:function(e,n,t){"use strict";t.d(n,{m:function(){return d}});const r=/[.[\]]/,a=/"/g;function l(e){return""===e||r.test(e)?`["${e.replace(a,'\\"')}"]`:e}function i(e,n){const t=l(e);return t===e?n?`.${e}`:e:t}const s=/^\["(.*)"]$/,o=/\\"/g;function c(e){const n=s.exec(e);return n?n[1].replace(o,'"'):e}const u=/^([^.[\]]*(?:\.[^.[\]]+)*)(?:\.?(\["(?:(?:[^"]|\\")*?[^\\])?"])\.?(.*))?$/;const d=Object.assign((function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];const r=null===n[0],a=[];for(let l=0;l!==n.length;++l){const e=n[l];if(e||0===e)if("string"==typeof e){const t=u.exec(e);if(t){const[,e,r,i]=t;e&&(e.includes(".")?a.push(...e.split(".")):a.push(e)),r&&(a.push(c(r)),i&&(n[l--]=i))}else a.push(e)}else if(Array.isArray(e)){if(e.length){const t=Math.min(l+1,e.length);l-=t,n.splice(l+1,t,...e)}}else a.push(""+e)}return r?a.map(l):a.map(i).join("")}),{escape:l,unescape:c})},68591:function(e,n,t){"use strict";t.d(n,{U:function(){return u}});var r=t(99729),a=t.n(r),l=t(25389),i=t.n(l),s=t(27378),o=t(65507),c=t(55201);function u(e,n,t){var r,l,u;const d=(0,c.c)(),m=(0,o.m)((null==t?void 0:t.absoluteName)?"":d.name,e),p=d.schema.getField(m),f=!1!==(null==t?void 0:t.initialValue),v=f?(0,s.useRef)(!1):{current:!1},_=i()(d.state,((e,t)=>{const r=n[t];return null!=r?!!r:e})),h=!!a()(d.changedMap,m),b=d.schema.getError(m,d.error),g=d.schema.getErrorMessage(m,d.error),E=d.schema.getType(m),y=d.schema.getSubfields(m),O=d.schema.getProps(m),C=null!==(l=null!==(r=n.label)&&void 0!==r?r:O.label)&&void 0!==l?l:"",j=(0,s.useMemo)((()=>d.randomId()),[]),k=(0,s.useCallback)((function(e,n){void 0===n&&(n=m),v.current=!0,d.onChange(n,e)}),[d.onChange,m]),x=a()(d.model,m);let P,M=null!==(u=n.value)&&void 0!==u?u:x;f&&(v.current||(void 0===M?(M=d.schema.getInitialValue(m),P=M):void 0!==n.value&&n.value!==x&&(P=n.value)),(0,s.useEffect)((()=>{void 0!==P&&k(P)}),[]));return[Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({id:j},_),{changed:h,error:b,errorMessage:g,field:p,fieldType:E,fields:y,onChange:k,value:M}),O),n),{label:C,name:m}),d]}},55201:function(e,n,t){"use strict";t.d(n,{c:function(){return s}});var r=t(3996),a=t.n(r),l=t(27378),i=t(34361);function s(){const e=(0,l.useContext)(i.D);return a()(null!==e,"useForm must be used within a form.\n\nTwo most common reasons for this error are:\n1. Component calling this function doesn't have a parent Form component in the tree.\n2. A duplicate uniforms dependency is installed in node_modules.\n\nFor more info check FAQ: https://uniforms.tools/docs/faq/#useform-must-be-used-within-a-form\n "),e}},57292:function(e,n,t){"use strict";t.d(n,{f:function(){return l}});var r=t(95256),a=t(27378);function l(e){let{language:n,replace:t,section:l,source:i}=e;if("object"==typeof i&&"default"in i&&(i=i.default),l){const e=new RegExp(`// <${l}>\\s([\\s\\S]*?)\\s// </${l}>\\s`,"g");i=i.split(e).reduce(((e,n,t)=>t%2==0?e:`${e}\n\n${n}`),"")}if(i=i.replace(/\/\/ <.*?\n/g,""),t)for(const[r,a]of Object.entries(t))i=i.replace(new RegExp(r,"gs"),a);return i=i.trim(),i.includes("\n")||(i+="\n"),a.createElement(r.Z.pre,null,a.createElement(r.Z.code,{children:i,className:`language-${n}`,mdxType:"code",originalType:"code",parentName:"pre"}))}},23197:function(e,n,t){"use strict";t.d(n,{T:function(){return w}});var r=t(27378),a=t(23615),l=t.n(a);function i(){return i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},i.apply(this,arguments)}function s(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var o=(0,r.forwardRef)((function(e,n){var t=e.color,a=void 0===t?"currentColor":t,l=e.size,o=void 0===l?24:l,c=s(e,["color","size"]);return r.createElement("svg",i({ref:n,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},c),r.createElement("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),r.createElement("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),r.createElement("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"}))}));o.propTypes={color:l().string,size:l().oneOfType([l().string,l().number])},o.displayName="Box";var c=o;function u(){return u=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},u.apply(this,arguments)}function d(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var m=(0,r.forwardRef)((function(e,n){var t=e.color,a=void 0===t?"currentColor":t,l=e.size,i=void 0===l?24:l,s=d(e,["color","size"]);return r.createElement("svg",u({ref:n,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("polyline",{points:"16 18 22 12 16 6"}),r.createElement("polyline",{points:"8 6 2 12 8 18"}))}));m.propTypes={color:l().string,size:l().oneOfType([l().string,l().number])},m.displayName="Code";var p=m;function f(){return f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},f.apply(this,arguments)}function v(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var _=(0,r.forwardRef)((function(e,n){var t=e.color,a=void 0===t?"currentColor":t,l=e.size,i=void 0===l?24:l,s=v(e,["color","size"]);return r.createElement("svg",f({ref:n,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),r.createElement("ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}),r.createElement("path",{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"}),r.createElement("path",{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"}))}));_.propTypes={color:l().string,size:l().oneOfType([l().string,l().number])},_.displayName="Database";var h=_,b=t(80912),g=t(57292),E=t(633),y=t(4940),O=t(59150),C=t(46867),j=t(25773),k=t(60042),x=t.n(k);function P(e){let{active:n,icon:t,tooltipText:a,...l}=e;return r.createElement("span",(0,j.Z)({},l,{className:x()(y.Z.tooltip,y.Z.item,n&&y.Z.active)}),a&&r.createElement("span",{className:y.Z["tooltip-text"]},a),t)}function M(e){let{activeToggle:n,items:t,onClick:a}=e;return r.createElement("section",{className:x()(y.Z.toggler,y.Z.header)},t.map(((e,t)=>r.createElement(P,(0,j.Z)({active:n===t,key:t,onClick:a(t)},e)))))}function N(e){let{children:n,group:t,tabsItems:a,togglerItems:l}=e;const{activeTab:i,onTab:s}=(0,O.Y)(t),[o,c]=(0,r.useState)(0);return r.createElement("section",{className:y.Z["toggler-tabs"]},r.createElement("section",{className:y.Z.header},r.createElement(C.TX,{items:a,onTab:s,activeTab:i}),r.createElement(M,{items:l,onClick:e=>()=>{c(e)},activeToggle:o})),n({tab:a[i],toggle:l[o]}))}const T=[{name:"Semantic",value:"semantic"},{name:"Material",value:"material"},{name:"MUI",value:"mui"},{name:"Bootstrap4",value:"bootstrap4"},{name:"Bootstrap5",value:"bootstrap5"},{name:"AntD",value:"antd"},{name:"Unstyled",value:"unstyled"}],F=[{icon:r.createElement(c,null),name:"Example",tooltipText:"Show example"},{icon:r.createElement(p,null),name:"Code",tooltipText:"Show source code"},{icon:r.createElement(h,null),name:"Schema",tooltipText:"Show schema"}];function w(e){let{code:{default:n},example:t,schema:{default:a}}=e;return r.createElement(N,{group:"examples",tabsItems:T,togglerItems:F},(e=>{let{tab:{value:l},toggle:{name:i}}=e;switch(i){case"Code":return r.createElement(g.f,{language:"tsx",replace:{"'[^']*?/universal'":`'uniforms-${l}'`},source:n});case"Example":return r.createElement(b.nN.Provider,{value:l},r.createElement(E.n,null,r.createElement(t,null)));case"Schema":return r.createElement(g.f,{language:"tsx",source:a});default:return null}}))}},633:function(e,n,t){"use strict";t.d(n,{n:function(){return d}});var r=t(25773),a=t(27378),l=t(4940),i=t(99729),s=t.n(i);function o(e){const[n,t]=(0,a.useState)(300),r=(0,a.useRef)(),l=(0,a.useCallback)((()=>function(e,n){const t=s()(e.current,"node.contentDocument.body.scrollHeight",0);0!==t&&n(t)}(r,t)),[r,t]);return(0,a.useEffect)((()=>{const e=setInterval(l,1e3);return()=>clearInterval(e)}),[l,...e]),{onLoad:l,ref:r,style:{height:n}}}var c=t(80912),u=t(37126);function d(e){const n=(0,a.useContext)(c.nN),t=o([e.children]);return a.createElement("div",{className:l.Z["form-wrapper"]},a.createElement(u.d,(0,r.Z)({frameProps:t,theme:n},e)))}},37126:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return Playground},d:function(){return PlaygroundWrap}});var _home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(25773),antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(64222),classnames__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(60042),classnames__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__),lodash_omit__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(48159),lodash_omit__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_1__),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(27378),react_frame_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5766),uniforms__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23674),uniforms__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(34361),uniforms__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(55201),uniforms__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(76424),_index_module_css__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4940),_lib_presets__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5037),_lib_schema__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5413),_lib_styles__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(27611),_lib_universal__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(80912),_lib_utils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(37309);class Playground extends react__WEBPACK_IMPORTED_MODULE_2__.Component{static getDerivedStateFromError(e){return{error:e}}constructor(){super(...arguments);const e=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.clean((0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.mB)());try{_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.validate(e)}catch(n){n.details.forEach((n=>{let{name:t}=n;e[t]=_lib_schema__WEBPACK_IMPORTED_MODULE_6__.f.getDefinition(t).defaultValue}))}this.state=e,this.onChange=this.onChange.bind(this)}componentDidMount(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}componentDidUpdate(){(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.rh)(this.state)}onChange(e,n){"preset"===e&&this.setState((e=>({props:{...e.props,schema:_lib_presets__WEBPACK_IMPORTED_MODULE_5__.Z[n]}}))),this.setState({error:void 0,[e]:n})}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundForm,{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z.playground,model:this.state,onChange:this.onChange,schema:_lib_schema__WEBPACK_IMPORTED_MODULE_6__.J},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-column"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement("nav",{className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-toolbar"]},react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"preset"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundSelectField,{name:"theme"})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPropsField,{name:"props",spellCheck:!1})),this.state.error?react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",{children:""+this.state.error}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundPreviewField,{name:"props",nameTheme:"theme"}))}}class PlaygroundForm extends uniforms__WEBPACK_IMPORTED_MODULE_10__.O{getContextState(){return{...super.getContextState(),theme:this.props.model.theme}}render(){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(uniforms__WEBPACK_IMPORTED_MODULE_11__.D.Provider,{value:this.getContext()},react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",lodash_omit__WEBPACK_IMPORTED_MODULE_1___default()(this.getNativeFormProps(),["onSubmit"])))}}const PlaygroundModelDebug=()=>{const{model:e}=(0,uniforms__WEBPACK_IMPORTED_MODULE_12__.c)();return react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("br",null),react__WEBPACK_IMPORTED_MODULE_2__.createElement("pre",null,react__WEBPACK_IMPORTED_MODULE_2__.createElement("code",null,`const model = ${JSON.stringify(e,null,2)};`)))};class PlaygroundPreview extends react__WEBPACK_IMPORTED_MODULE_2__.Component{constructor(){super(...arguments),this._schema=eval(`(${this.props.value.schema})`)}UNSAFE_componentWillReceiveProps(props){this.props.value.schema!==props.value.schema&&(this._schema=eval(`(${props.value.schema})`))}render(){const{AutoFields:e,AutoForm:n,ErrorsField:t,SubmitField:r}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[this.props.theme||"unstyled"],{asyncOnSubmit:a,asyncOnValidate:l,schema:i,...s}=this.props.value;return s.schema=this._schema,a&&(s.onSubmit=()=>new Promise((e=>{setTimeout(e,1e3)}))),l&&(s.onValidate=(e,n)=>new Promise((e=>{setTimeout((()=>{e(n)}),1e3)}))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:this.props.theme},this.props.errorMessage?react__WEBPACK_IMPORTED_MODULE_2__.createElement("span",{children:this.props.errorMessage}):react__WEBPACK_IMPORTED_MODULE_2__.createElement(n,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({key:(0,_lib_utils__WEBPACK_IMPORTED_MODULE_9__.nN)(i)},s),react__WEBPACK_IMPORTED_MODULE_2__.createElement(e,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(t,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(r,null),react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundModelDebug,null)))}}const PlaygroundPreviewField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundPreview);class PlaygroundProps extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{onChange:e,schema:n,theme:t,value:r}=this.props,a="antd"===t,l="bootstrap4"===t,i="material"===t,s="semantic"===t,{AutoForm:o,BoolField:c,ErrorsField:u,LongTextField:d,NumField:m}=_lib_universal__WEBPACK_IMPORTED_MODULE_8__.np[t||"unstyled"];return react__WEBPACK_IMPORTED_MODULE_2__.createElement(PlaygroundWrap,{theme:t},react__WEBPACK_IMPORTED_MODULE_2__.createElement(o,{autosave:!0,autosaveDelay:100,model:r,onSubmit:e,schema:n},react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"autosave"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(m,{name:"autosaveDelay",disabled:!r.autosave}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"disabled"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"readOnly"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"label"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"placeholder"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"showInlineError",disabled:!(a||l||i||s)}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"asyncOnSubmit"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(c,{name:"asyncOnValidate"}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(d,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({name:"schema"},i&&{fullWidth:!0,rowsMax:20})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(u,null)))}}const PlaygroundPropsField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundProps);class PlaygroundSelect extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{options:e,onChange:n,value:t}=this.props;return react__WEBPACK_IMPORTED_MODULE_2__.createElement("select",{onChange:e=>n(e.target.value),value:t},e.map((e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement("option",{key:e.key??e.value,value:e.value},e.label??e.value))))}}const PlaygroundSelectField=(0,uniforms__WEBPACK_IMPORTED_MODULE_14__.e)(PlaygroundSelect);class PlaygroundWrap extends react__WEBPACK_IMPORTED_MODULE_2__.Component{render(){const{children:e,frameProps:n,theme:t}=this.props,r=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment,null,e,_lib_styles__WEBPACK_IMPORTED_MODULE_7__.Z[t]);if("material"===t||"mui"===t)return react__WEBPACK_IMPORTED_MODULE_2__.createElement("section",{children:r,className:classnames__WEBPACK_IMPORTED_MODULE_0___default()("frame-root",_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"])});let a=r;return"antd"===t&&(a=react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.Kr,null,(e=>react__WEBPACK_IMPORTED_MODULE_2__.createElement(antd_lib_config_provider__WEBPACK_IMPORTED_MODULE_15__.default,{getPopupContainer:()=>e.document.body},r)))),react__WEBPACK_IMPORTED_MODULE_2__.createElement(react_frame_component__WEBPACK_IMPORTED_MODULE_3__.ZP,(0,_home_runner_work_uniforms_uniforms_node_modules_babel_runtime_helpers_esm_extends_js__WEBPACK_IMPORTED_MODULE_13__.Z)({children:a,className:_index_module_css__WEBPACK_IMPORTED_MODULE_4__.Z["playground-wrap"]},n))}}},46867:function(e,n,t){"use strict";t.d(n,{TX:function(){return o},mQ:function(){return u}});var r=t(60042),a=t.n(r),l=t(27378),i=t(4940),s=t(59150);function o(e){let{activeTab:n,items:t,onTab:r}=e;return l.createElement("div",{className:i.Z.tabs},t.map(((e,t)=>{let{name:a}=e;return l.createElement(c,{active:n===t,key:t,onClick:()=>r(t)},a)})))}function c(e){let{active:n,children:t,onClick:r}=e;return l.createElement("span",{className:a()(i.Z.item,n&&i.Z.active),onClick:r,onKeyDown:e=>"Enter"===e.key&&r(),role:"button",tabIndex:0},t)}function u(e){let{children:n,group:t,tabs:r}=e;const{activeTab:a,onTab:i}=(0,s.Y)(t);return l.createElement(l.Fragment,null,l.createElement(o,{activeTab:a,items:r,onTab:i}),n(r[a]))}},5037:function(e,n){"use strict";const t=e=>e[0].slice(5,-3).replace(/([\r\n]+) {4}/g,"$1"),r={"Welcome!":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + date: { type: Date, defaultValue: new Date() }, + adult: Boolean, + size: { + type: String, + defaultValue: 'm', + allowedValues: ['xs', 's', 'm', 'l', 'xl'], + }, + rating: { + type: Number, + allowedValues: [1, 2, 3, 4, 5], + uniforms: { checkboxes: true }, + }, + friends: { type: Array, minCount: 1 }, + 'friends.$': Object, + 'friends.$.name': { type: String, min: 3 }, + 'friends.$.age': { type: Number, min: 0, max: 150 }, + }) + }) + `,"Address (JSONSchema)":t` + (() => { + const ajv = new Ajv({ allErrors: true, useDefaults: true, keywords: ["uniforms"] }); + const schema = { + title: 'Address', + type: 'object', + properties: { + city: { type: 'string' }, + state: { type: 'string' }, + street: { type: 'string' }, + zip: { type: 'string', pattern: '[0-9]{5}' }, + }, + required: ['street', 'zip', 'state'], + }; + + function createValidator(schema) { + const validator = ajv.compile(schema); + + return (model) => { + validator(model); + + if (validator.errors && validator.errors.length) { + return { details: validator.errors }; + } + }; + } + + const validator = createValidator(schema); + + return new JSONSchemaBridge({ schema, validator }); + })() + `,"Address (SimpleSchema)":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + city: { + type: String, + optional: true, + max: 50, + }, + state: String, + street: { type: String, max: 100 }, + zip: { + type: String, + regEx: /^[0-9]{5}$/, + }, + }) + }) + `,"Address (Zod)":t` + new ZodBridge({ + schema: z.object({ + city: z.string().max(50).optional(), + state: z.string(), + street: z.string().max(100), + zip: z.string().regex(/^[0-9]{5}$/), + }) + }) + `,"All Fields (SimpleSchema)":t` + new SimpleSchema2Bridge({ + schema: new SimpleSchema({ + text: { type: String }, + num: { type: Number }, + bool: { type: Boolean }, + nested: { type: Object }, + 'nested.text': { type: String }, + date: { type: Date }, + list: { type: Array }, + 'list.$': { + type: String, + uniforms: { label: 'List Text', placeholder: 'List Text Placeholder' }, + }, + select: { + type: String, + uniforms: { + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + radio: { + type: String, + uniforms: { + checkboxes: true, + options: [ + { label: 'Option A', value: 'a' }, + { label: 'Option B', value: 'b' }, + ], + }, + }, + }) + }) + `,"All Fields (Zod)":t` + new ZodBridge({ + schema: z.object({ + text: z.string(), + num: z.number(), + bool: z.boolean(), + nested: z.object({ text: z.string() }), + date: z.date(), + // TODO: Custom label and placeholder. + list: z.array(z.string()), + select: z.enum(['a', 'b']), + // TODO: Enums with custom props. + radio: z.enum(['a', 'b']), + }) + }) + `};n.Z=r},5413:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return bridge},f:function(){return schema}});var ajv__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(86236),ajv__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(ajv__WEBPACK_IMPORTED_MODULE_0__),message_box__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(28622),simpl_schema__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(13762),simpl_schema__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(simpl_schema__WEBPACK_IMPORTED_MODULE_2__),uniforms__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(11561),uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(73633),uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(12005),uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(48616),zod__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(84200),_presets__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5037),_universal__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(80912);uniforms__WEBPACK_IMPORTED_MODULE_8__.z.register("const");const scope="undefined"==typeof window?__webpack_require__.g:window;simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().extendOptions(["uniforms"]),scope.Ajv=ajv__WEBPACK_IMPORTED_MODULE_0___default(),scope.JSONSchemaBridge=uniforms_bridge_json_schema__WEBPACK_IMPORTED_MODULE_3__.j,scope.SimpleSchema=simpl_schema__WEBPACK_IMPORTED_MODULE_2___default(),scope.SimpleSchema2Bridge=uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V,scope.ZodBridge=uniforms_bridge_zod__WEBPACK_IMPORTED_MODULE_5__.K,scope.z=zod__WEBPACK_IMPORTED_MODULE_9__.z,message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:""}}});const propsSchema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({autosave:{optional:!0,type:Boolean},autosaveDelay:{optional:!0,type:simpl_schema__WEBPACK_IMPORTED_MODULE_2___default().Integer},disabled:{optional:!0,type:Boolean},label:{optional:!0,type:Boolean},placeholder:{optional:!0,type:Boolean},readOnly:{optional:!0,type:Boolean},showInlineError:{optional:!0,type:Boolean},asyncOnSubmit:{optional:!0,type:Boolean,label:"Async onSubmit (1 sec)"},asyncOnValidate:{optional:!0,type:Boolean,label:"Async onValidate (1 sec)"},schema:{optional:!0,type:String,custom(){try{return void eval(`(${this.value??""})`)}catch(error){const e=error instanceof Error?error.message:String(error);return message_box__WEBPACK_IMPORTED_MODULE_1__.default.defaults({messages:{en:{syntax:e}}}),"syntax"}}}}),propsBridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:propsSchema}),schema=new(simpl_schema__WEBPACK_IMPORTED_MODULE_2___default())({preset:{type:String,defaultValue:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0],allowedValues:Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)},props:{type:Object,blackbox:!0,defaultValue:{autosave:!1,autosaveDelay:100,disabled:!1,label:!0,placeholder:!1,readOnly:!1,schema:_presets__WEBPACK_IMPORTED_MODULE_6__.Z[Object.keys(_presets__WEBPACK_IMPORTED_MODULE_6__.Z)[0]],showInlineError:!1,asyncOnSubmit:!1,asyncOnValidate:!1},uniforms:{schema:propsBridge}},theme:{type:String,uniforms:{transform:e=>`uniforms-${e}`},defaultValue:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)[0],allowedValues:Object.keys(_universal__WEBPACK_IMPORTED_MODULE_7__.np)}}),bridge=new uniforms_bridge_simple_schema_2__WEBPACK_IMPORTED_MODULE_4__.V({schema:schema})},27611:function(e,n,t){"use strict";var r=t(27378);const a=r.createElement("style",{children:'\n body {\n margin: 0;\n }\n\n textarea[name="schema"] {\n font-family: monospace !important;\n min-height: 20em !important;\n }\n\n .frame-root {\n padding: 1rem !important;\n }\n',key:"common"}),l=e=>e.map(((e,n)=>r.createElement("link",{key:n,rel:"stylesheet",href:e}))).concat(a),i={antd:l(["https://cdnjs.cloudflare.com/ajax/libs/antd/4.4.0/antd.min.css"]),bootstrap4:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.min.css"]),bootstrap5:l(["https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css","https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css"]),material:l([]),mui:l([]),semantic:l(["https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.7/semantic.min.css"]),unstyled:l([])};n.Z=i},59150:function(e,n,t){"use strict";t.d(n,{Y:function(){return i}});var r=t(27378);const a=Object.create(null),l=Object.create(null);function i(e){const[n,t]=(0,r.useState)(a[e]||0),i=(0,r.useCallback)((n=>function(e,n){a[e]=n,l[e].forEach((e=>{e(n)}))}(e,n)),[e]);return(0,r.useEffect)((()=>function(e,n){return void 0===l[e]&&(a[e]=0,l[e]=[]),l[e].push(n),()=>{l[e].splice(l[e].indexOf(n),1)}}(e,t)),[e]),{activeTab:n,onTab:i}}},80912:function(e,n,t){"use strict";t.d(n,{Pt:function(){return Ha},UE:function(){return Qa},NE:function(){return Ja},ME:function(){return Xa},yc:function(){return Ga},hI:function(){return Ya},mg:function(){return el},hl:function(){return nl},nv:function(){return tl},nN:function(){return al},np:function(){return rl}});var r={};t.r(r),t.d(r,{AutoField:function(){return he},AutoFields:function(){return ge},AutoForm:function(){return we},BaseForm:function(){return Oe},BoolField:function(){return T},DateField:function(){return A},ErrorField:function(){return Ae},ErrorsField:function(){return xe},HiddenField:function(){return Re},ListAddField:function(){return K},ListDelField:function(){return H},ListField:function(){return re},ListItemField:function(){return ee},LongTextField:function(){return Le},NestField:function(){return ae},NumField:function(){return ie},QuickForm:function(){return Me},RadioField:function(){return ue},SelectField:function(){return fe},SubmitField:function(){return Pe},TextField:function(){return _e},ValidatedForm:function(){return Te},ValidatedQuickForm:function(){return Fe},wrapField:function(){return N}});var a={};t.r(a),t.d(a,{AutoField:function(){return fn},AutoFields:function(){return vn},AutoForm:function(){return Cn},BaseForm:function(){return _n},BoolField:function(){return Ke},DateField:function(){return He},ErrorField:function(){return jn},ErrorsField:function(){return hn},HiddenField:function(){return kn},ListAddField:function(){return Xe},ListDelField:function(){return Ye},ListField:function(){return nn},ListItemField:function(){return en},LongTextField:function(){return xn},NestField:function(){return tn},NumField:function(){return rn},QuickForm:function(){return En},RadioField:function(){return sn},SelectField:function(){return mn},SubmitField:function(){return gn},TextField:function(){return pn},ValidatedForm:function(){return yn},ValidatedQuickForm:function(){return On},gridClassName:function(){return ze},wrapField:function(){return Ve}});var l={};t.r(l),t.d(l,{AutoField:function(){return Xn},AutoFields:function(){return Gn},AutoForm:function(){return it},BaseForm:function(){return Yn},BoolField:function(){return wn},DateField:function(){return An},ErrorField:function(){return st},ErrorsField:function(){return et},HiddenField:function(){return ot},ListAddField:function(){return Sn},ListDelField:function(){return Bn},ListField:function(){return Wn},ListItemField:function(){return Zn},LongTextField:function(){return ct},NestField:function(){return Un},NumField:function(){return $n},QuickForm:function(){return rt},RadioField:function(){return Kn},SelectField:function(){return Hn},SubmitField:function(){return tt},TextField:function(){return Jn},ValidatedForm:function(){return at},ValidatedQuickForm:function(){return lt},gridClassName:function(){return Tn},wrapField:function(){return Fn}});var i={};t.r(i),t.d(i,{AutoField:function(){return zt},AutoFields:function(){return Vt},AutoForm:function(){return Yt},BaseForm:function(){return Kt},BoolField:function(){return gt},DateField:function(){return Ct},ErrorField:function(){return er},ErrorsField:function(){return qt},HiddenField:function(){return nr},ListAddField:function(){return Pt},ListDelField:function(){return Nt},ListField:function(){return Ft},ListItemField:function(){return Tt},LongTextField:function(){return tr},NestField:function(){return wt},NumField:function(){return It},QuickForm:function(){return Jt},RadioField:function(){return Lt},SelectField:function(){return Ut},SubmitField:function(){return Ht},TextField:function(){return $t},ValidatedForm:function(){return Xt},ValidatedQuickForm:function(){return Gt},wrapField:function(){return bt}});var s={};t.r(s),t.d(s,{AutoField:function(){return Sr},AutoFields:function(){return Lr},AutoForm:function(){return Vr},BaseForm:function(){return Br},BoolField:function(){return dr},DateField:function(){return vr},ErrorField:function(){return Kr},ErrorsField:function(){return Zr},HiddenField:function(){return qr},ListAddField:function(){return gr},ListDelField:function(){return Or},ListField:function(){return jr},ListItemField:function(){return Cr},LongTextField:function(){return Qr},NestField:function(){return kr},NumField:function(){return xr},QuickForm:function(){return Ur},RadioField:function(){return Fr},SelectField:function(){return Ar},SubmitField:function(){return Wr},TextField:function(){return Rr},ValidatedForm:function(){return $r},ValidatedQuickForm:function(){return zr},wrapField:function(){return ur}});var o={};t.r(o),t.d(o,{AutoField:function(){return Hr.Z},AutoFields:function(){return Jr},AutoForm:function(){return Xr.Z},BaseForm:function(){return Gr.Z},BoolField:function(){return Yr.Z},DateField:function(){return ea.Z},ErrorField:function(){return na},ErrorsField:function(){return ta.Z},HiddenField:function(){return ra},ListAddField:function(){return aa.Z},ListDelField:function(){return la.Z},ListField:function(){return ia.Z},ListItemField:function(){return sa.Z},LongTextField:function(){return oa},NestField:function(){return ca.Z},NumField:function(){return ua.Z},QuickForm:function(){return da.Z},RadioField:function(){return ma.Z},SelectField:function(){return pa.Z},SubmitField:function(){return fa.Z},TextField:function(){return va.Z},ValidatedForm:function(){return _a.Z},ValidatedQuickForm:function(){return ha.Z}});var c={};t.r(c),t.d(c,{AutoField:function(){return Ra},AutoFields:function(){return Sa},AutoForm:function(){return za},BaseForm:function(){return La},BoolField:function(){return ba},DateField:function(){return ya},ErrorField:function(){return Va},ErrorsField:function(){return Ba},HiddenField:function(){return Ka},ListAddField:function(){return Oa},ListDelField:function(){return Ca},ListField:function(){return ka},ListItemField:function(){return ja},LongTextField:function(){return qa.Z},NestField:function(){return xa},NumField:function(){return Pa},QuickForm:function(){return Wa},RadioField:function(){return Ta},SelectField:function(){return Ia},SubmitField:function(){return Za},TextField:function(){return Aa},ValidatedForm:function(){return Ua},ValidatedQuickForm:function(){return $a}});var u=t(25773),d=t(27378),m=t(3996),p=t.n(m),f=t(6846),v=t(59312),_=t(30219),h=t.n(_),b=t(21473),g=t.n(b),E=t(98591),y=t(56369),O=t(11561),C=t(76424),j=t(31115),k=t.n(j),x=t(5041),P=t(62004);const M={marginBottom:"12px"};function N(e,n){let{colon:t,error:r,errorMessage:a,extra:l,help:i,id:s,info:o,label:c,labelCol:u,required:m,showInlineError:p,validateStatus:f,wrapperCol:v,wrapperStyle:_=M}=e;const h=!!c&&d.createElement("span",null,c,!!o&&d.createElement("span",null,"\xa0",d.createElement(P.default,{title:o},d.createElement(k(),null))));return d.createElement(x.Z.Item,{colon:t,hasFeedback:!0,help:i||p&&!!r&&a,extra:l,htmlFor:s,label:h,labelCol:u,required:m,style:_,validateStatus:r?"error":f,wrapperCol:v},n)}O.z.register("checkboxes","colon","disableItem","labelCol","validateStatus","wrapperCol","wrapperStyle");var T=(0,C.e)((function(e){var{checkbox:n=!1,checkedChildren:t=d.createElement(h(),null),disabled:r,inputRef:a,name:l,onChange:i,readOnly:s,unCheckedChildren:o=d.createElement(g(),null),value:c}=e,u=(0,v._T)(e,["checkbox","checkedChildren","disabled","inputRef","name","onChange","readOnly","unCheckedChildren","value"]);const m=n?E.Z:y.Z;return N(u,d.createElement(m,Object.assign({checked:c||!1,checkedChildren:t,disabled:r,name:l,onChange:()=>s?void 0:i(!c),ref:a,unCheckedChildren:o},(0,O.z)(u))))}),{kind:"leaf"}),F=t(82290),w=t(61320),I=t.n(w);const D={width:"100%"};var A=(0,C.e)((function(e){var{showTime:n=!0,style:t=D}=e,r=(0,v._T)(e,["showTime","style"]);return N(r,d.createElement(F.Z,Object.assign({disabled:r.disabled,inputReadOnly:r.readOnly,name:r.name,onChange:e=>{r.readOnly||r.onChange(e?e.toDate():void 0)},placeholder:r.placeholder,ref:r.inputRef,showTime:n,style:t,value:r.value&&I()(r.value)},(0,O.z)(r))))}),{kind:"leaf"}),R=t(60042),S=t.n(R),L=t(94037),B=t.n(L),Z=t(76676),W=t(30454),U=t.n(W),$=t(65507),z=t(68591);const V={width:"100%"};var K=(0,C.e)((function(e){var{disabled:n,icon:t=d.createElement(B(),null),name:r,readOnly:a,size:l="small",style:i=V,type:s="dashed",value:o}=e,c=(0,v._T)(e,["disabled","icon","name","readOnly","size","style","type","value"]);const u=(0,$.m)(null,r),m=(0,$.m)(u.slice(0,-1)),p=(0,z.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return d.createElement(Z.default,Object.assign({},(0,O.z)(c),{disabled:!f,icon:t,onClick:()=>{a||p.onChange(p.value.concat([U()(o)]))},size:l,style:i,type:s}))}),{initialValue:!1,kind:"leaf"}),q=t(85221),Q=t.n(q);var H=(0,C.e)((function(e){var{disabled:n,icon:t=d.createElement(Q(),null),name:r,readOnly:a,shape:l="circle",size:i="small",type:s="ghost"}=e,o=(0,v._T)(e,["disabled","icon","name","readOnly","shape","size","type"]);const c=(0,$.m)(null,r),u=+c[c.length-1],m=(0,$.m)(c.slice(0,-1)),p=(0,z.U)(m,{},{absoluteName:!0})[0];return n||(n=a||p.minCount>=p.value.length),d.createElement(Z.default,Object.assign({},(0,O.z)(o),{disabled:n,icon:t,onClick:()=>{const e=p.value.slice();e.splice(u,1),p.onChange(e)},shape:l,size:i,type:s}))}),{initialValue:!1,kind:"leaf"});const J={float:"right",marginBottom:"10px",marginLeft:"10px",marginRight:"6px",width:"20px"},X={marginBottom:"24px",overflow:"hidden"},G={borderBottom:"1px solid #DDD",height:"20px",marginTop:"-8px"},Y={width:"100%"};var ee=(0,C.e)((function(e){let{children:n=d.createElement(he,{label:null,name:""})}=e;return d.createElement("div",null,d.createElement("div",{style:J},d.createElement(H,{className:"top aligned",name:""})),d.createElement("div",{style:X},d.createElement("div",{style:G})),d.createElement("div",{style:Y},n))}));const ne={marginBottom:"5px",marginTop:"5px",padding:"10px"},te={borderColor:"rgb(255, 85, 0)"};var re=(0,C.e)((function(e){var{children:n=d.createElement(ee,{name:"$"}),className:t,error:r,errorMessage:a,info:l,itemProps:i,label:s,labelCol:o,showInlineError:c,style:u=ne,value:m,wrapperCol:p}=e,f=(0,v._T)(e,["children","className","error","errorMessage","info","itemProps","label","labelCol","showInlineError","style","value","wrapperCol"]);const _=r?u?Object.assign(Object.assign({},te),u):te:u;return d.createElement("div",Object.assign({},(0,O.z)(f),{style:_,className:S()([t,"ant-list","ant-list-bordered"])}),!!s&&d.createElement("div",null,s,!!l&&d.createElement("span",null,"\xa0",d.createElement(P.default,{title:l},d.createElement(k(),null)))),!(!r||!c)&&d.createElement("div",null,a),null==m?void 0:m.map(((e,t)=>d.Children.map(n,((e,n)=>{var r;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${t}-${n}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+t),labelCol:o,wrapperCol:p},i)):e})))),d.createElement(K,{name:"$"}))}));var ae=(0,C.e)((function(e){var{children:n,error:t,errorMessage:r,fields:a,itemProps:l,label:i,showInlineError:s}=e,o=(0,v._T)(e,["children","error","errorMessage","fields","itemProps","label","showInlineError"]);return d.createElement("div",Object.assign({},(0,O.z)(o)),i&&d.createElement("label",null,i),!(!t||!s)&&d.createElement("div",null,r),n||a.map((e=>d.createElement(he,Object.assign({key:e,name:e},l)))))})),le=t(15425);var ie=(0,C.e)((function(e){return N(e,d.createElement(le.Z,Object.assign({disabled:e.disabled,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(""+n);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),style:{width:"100%"},value:e.value},(0,O.z)(e))))}),{kind:"leaf"}),se=t(58946);const oe="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,ce={display:"block"};var ue=(0,C.e)((function(e){var n,t,r;return N(e,d.createElement(se.ZP.Group,Object.assign({},(0,O.z)(e),{disabled:e.disabled,name:e.name,onChange:n=>{e.readOnly||e.onChange(n.target.value)},value:null!==(n=e.value)&&void 0!==n?n:"",options:null===(t=e.options)||void 0===t?void 0:t.map((e=>{var n;return Object.assign(Object.assign({},e),{label:null!==(n=e.label)&&void 0!==n?n:e.value})}))}),null===(r=e.options)||void 0===r?void 0:r.map((n=>{var t,r,a;return d.createElement(se.ZP,{id:`${e.id}-${a=n.value,oe(encodeURIComponent(a)).replace(/=+$/,"")}`,key:null!==(t=n.key)&&void 0!==t?t:n.value,style:ce,value:n.value,disabled:n.disabled},null!==(r=n.label)&&void 0!==r?r:n.value)}))))}),{kind:"leaf"}),de=t(99388),me=t(69601),pe=t(92049);var fe=(0,C.e)((function(e){var n,t;const r=e.fieldType===Array?de.default:me.default,a=(0,O.z)(e);return N(e,e.checkboxes?d.createElement("span",Object.assign({},a),d.createElement(r,Object.assign({},a,{disabled:e.disabled,name:e.name,onChange:n=>{e.readOnly||e.onChange(e.fieldType===Array?n:n.target.value)},options:null===(n=e.options)||void 0===n?void 0:n.map((e=>{var n;return Object.assign(Object.assign({},e),{label:null!==(n=e.label)&&void 0!==n?n:e.value})})),value:e.value}))):d.createElement(pe.Z,Object.assign({allowClear:!e.required,disabled:e.disabled,mode:e.fieldType===Array?"multiple":void 0,name:e.name,onChange:n=>{e.readOnly||e.onChange(n)},placeholder:e.placeholder,ref:e.inputRef,value:e.fieldType===Array?Array.isArray(e.value)?e.value.filter((e=>void 0!==e)):[]:e.value},a),null===(t=e.options)||void 0===t?void 0:t.map((n=>{var t,r,a;return d.createElement(pe.Z.Option,{disabled:n.disabled,key:null!==(t=n.key)&&void 0!==t?t:n.value,value:n.value,id:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:escape(n.value)}`},null!==(a=n.label)&&void 0!==a?a:n.value)}))))}),{kind:"leaf"}),ve=t(74105);var _e=(0,C.e)((function(e){var n,t;return N(e,d.createElement(ve.Z,Object.assign({disabled:e.disabled,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""},(0,O.z)(e))))}),{kind:"leaf"});var he=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?ue:fe;switch(e.fieldType){case Array:return re;case Boolean:return T;case Date:return A;case Number:return ie;case Object:return ae;case String:return _e}return p()(!1,"Unsupported field type: %s",e.fieldType)})),be=t(55201);function ge(e){var{element:n=d.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,d.createElement)(he,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var Ee=t(39850),ye=t(6820);var Oe=function e(n){class t extends n{getNativeFormProps(){const e=super.getNativeFormProps(),{className:n,layout:t="vertical"}=e,r=(0,v._T)(e,["className","layout"]);return Object.assign(Object.assign({},r),{className:S()("ant-form","ant-form-"+t,n)})}}return t.AntD=e,t.displayName=`AntD${n.displayName}`,t}(ye.I),Ce=t(51674);const je={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},ke={margin:"3px"};var xe=function(e){var{children:n,style:t=je}=e,r=(0,v._T)(e,["children","style"]);const{error:a,schema:l}=(0,be.c)();return a||n?d.createElement("div",Object.assign({style:t},(0,O.z)(r)),n,d.createElement("ul",null,l.getErrorMessages(a).map(((e,n)=>d.createElement("li",{key:n,style:ke},e))))):null};var Pe=function(e){var{disabled:n,inputRef:t,value:r="Submit"}=e,a=(0,v._T)(e,["disabled","inputRef","value"]);const{error:l,state:i}=(0,be.c)();return d.createElement(Z.default,Object.assign({disabled:void 0===n?!(!l&&!i.disabled):n,htmlType:"submit",ref:t,type:"primary"},a),r)};var Me=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return he}getErrorsField(){return xe}getSubmitField(){return Pe}}return t.Quick=e,t}(Oe),Ne=t(23674);var Te=function e(n){class t extends(Ne.O.Validated(n)){}return t.Validated=e,t}(Oe),Fe=Te.Validated(Me.Quick(Oe));var we=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Fe);const Ie={backgroundColor:"rgba(255, 85, 0, 0.2)",border:"1px solid rgb(255, 85, 0)",borderRadius:"2px",margin:"20px 0px",padding:"10px"},De={margin:"3px"};var Ae=(0,C.e)((function(e){var{children:n,error:t,errorMessage:r,style:a=Ie}=e,l=(0,v._T)(e,["children","error","errorMessage","style"]);return t?d.createElement("div",Object.assign({style:a},(0,O.z)(l)),n||d.createElement("div",{style:De},r)):null}),{initialValue:!1,kind:"leaf"});function Re(e){var n,{value:t}=e,r=(0,v._T)(e,["value"]);const a=(0,z.U)(r.name,r,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:d.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var Se=t(10777);var Le=(0,C.e)((function(e){var n,{rows:t=5}=e,r=(0,v._T)(e,["rows"]);return N(r,d.createElement(Se.default,Object.assign({disabled:r.disabled,name:r.name,onChange:e=>r.onChange(e.target.value),placeholder:r.placeholder,readOnly:r.readOnly,ref:r.inputRef,rows:t,value:null!==(n=r.value)&&void 0!==n?n:""},(0,O.z)(r))))}),{kind:"leaf"}),Be=t(48159),Ze=t.n(Be);function We(e,n,t){const r="xs"===e?"":`${e}-`;return"label"===t?`col-${r}${n}`:`col-${r}${12-n}`}const Ue={xs:1,sm:2,md:3,lg:4,xl:5};function $e(e,n){return Ue[e]-Ue[n]}function ze(e,n){return"number"==typeof e?We("xs",e,n):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl},e)),Object.keys(e).sort($e).map((t=>We(t,e[t],n))).join(" ")):"":We("xs",parseInt(e),n)}function Ve(e,n){var{changed:t,className:r,disabled:a,error:l,errorMessage:i,grid:s,help:o,helpClassName:c,id:u,label:m,labelClassName:p,required:f,showInlineError:_,wrapClassName:h}=e,b=(0,v._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const g=!(!s&&!h),E=!(!l||!_)&&d.createElement("span",{className:"form-text text-danger"},i),y=!!o&&d.createElement("span",{className:S()("form-text",c||"text-muted")},o),C=!l&&t;return d.createElement("div",Object.assign({className:S()(r,"form-group",{"is-invalid":l,"is-valid":C,disabled:a,required:f,row:s})},Ze()((0,O.z)(b),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&d.createElement("label",{htmlFor:u,className:S()({"col-form-label":s,"text-danger":l,"text-success":C},ze(s,"label"),p)},m),g&&d.createElement("div",{className:S()(h,ze(s,"input"))},n,y,E),!g&&n,!g&&y,!g&&E)}var Ke=(0,C.e)((function(e){var{onChange:n}=e,t=(0,v._T)(e,["onChange"]);const{disabled:r,error:a,inline:l,inputClassName:i,inputRef:s,label:o,labelBefore:c,name:u,readOnly:m,value:p}=t;return Ve(Object.assign(Object.assign({},t),{label:c,value:t.value}),d.createElement("div",{className:S()(i,"form-check","checkbox",{"custom-control-inline":l,"text-danger":a,"text-success":!a&&t.changed})},d.createElement("label",{htmlFor:t.id,className:"form-check-label"},d.createElement("input",{checked:p||!1,className:"form-check-input",disabled:r,id:t.id,name:u,onChange:()=>{m||n(!p)},ref:s,type:"checkbox"}),"\xa0",o)))}),{kind:"leaf"});const qe=("object"==typeof t.g?t.g:window).Date,Qe=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var He=(0,C.e)((function(e){var n,{disabled:t,error:r,id:a,inputClassName:l,inputRef:i,max:s,min:o,name:c,onChange:u,placeholder:m,readOnly:p,value:f,type:_="datetime-local"}=e,h=(0,v._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return Ve(Object.assign(Object.assign({},h),{id:a}),d.createElement("input",{className:S()(l,"form-control",{"is-invalid":r,"is-valid":!r&&h.changed}),disabled:t,id:a,max:Qe(s),min:Qe(o),name:c,onChange:e=>{const n=new qe(e.target.valueAsNumber);n.getFullYear()<1e4?u(n):isNaN(e.target.valueAsNumber)&&u(void 0)},placeholder:m,readOnly:p,ref:i,type:_,value:null!==(n=Qe(f,_))&&void 0!==n?n:""}))}),{kind:"leaf"});function Je(e){var{addIcon:n,className:t,disabled:r,name:a,readOnly:l,value:i}=e,s=(0,v._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const o=(0,$.m)(null,a),c=(0,$.m)(o.slice(0,-1)),u=(0,z.U)(c,{},{absoluteName:!0})[0],m=!(r||u.maxCount<=u.value.length);function p(e){!m||l||"key"in e&&"Enter"!==e.key||u.onChange(u.value.concat([U()(i)]))}return d.createElement("div",Object.assign({},(0,O.z)(s),{className:S()("badge badge-pill float-right",t),onClick:p,onKeyDown:p,role:"button",tabIndex:0}),n)}Je.defaultProps={addIcon:d.createElement("i",{className:"octicon octicon-plus"})};var Xe=(0,C.e)(Je,{initialValue:!1,kind:"leaf"});function Ge(e){var{className:n,disabled:t,name:r,readOnly:a,removeIcon:l}=e,i=(0,v._T)(e,["className","disabled","name","readOnly","removeIcon"]);const s=(0,$.m)(null,r),o=+s[s.length-1],c=(0,$.m)(s.slice(0,-1)),u=(0,z.U)(c,{},{absoluteName:!0})[0];function m(e){if(!(t||"key"in e&&"Enter"!==e.key)){const e=u.value.slice();e.splice(o,1),u.onChange(e)}}return t||(t=a||u.minCount>=u.value.length),d.createElement("span",Object.assign({},(0,O.z)(i),{className:S()("badge badge-pill",n),onClick:m,onKeyDown:m,role:"button",tabIndex:0}),l)}Ge.defaultProps={removeIcon:d.createElement("i",{className:"octicon octicon-dash"})};var Ye=(0,C.e)(Ge,{initialValue:!1,kind:"leaf"});var en=(0,C.e)((function(e){let{children:n=d.createElement(fn,{className:"col-11",label:null,name:""}),removeIcon:t}=e;return d.createElement("div",{className:"row"},d.createElement("div",{className:"col-1"},d.createElement(Ye,{name:"",removeIcon:t})),n)}),{initialValue:!1});var nn=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(en,{name:"$"}),className:r,error:a,errorMessage:l,itemProps:i,label:s,removeIcon:o,showInlineError:c,value:u}=e,m=(0,v._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return d.createElement("div",Object.assign({className:S()("card mb-3",r)},(0,O.z)(m)),d.createElement("div",{className:"card-body"},s&&d.createElement("div",{className:"card-title"},d.createElement("label",{className:"col-form-label"},s,"\xa0"),d.createElement(Xe,{addIcon:n,name:"$"}),!(!a||!c)&&d.createElement("span",{className:"text-danger"},l)),null==u?void 0:u.map(((e,n)=>d.Children.map(t,((e,t)=>{var r;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign(Object.assign({key:`${n}-${t}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+n)},i),{removeIcon:o})):e}))))))}));var tn=(0,C.e)((function(e){var{children:n,className:t,error:r,errorMessage:a,fields:l,itemProps:i,label:s,showInlineError:o}=e,c=(0,v._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return d.createElement("div",Object.assign({className:S()(t,{"has-error":r})},(0,O.z)(c)),s&&d.createElement("label",null,s),!(!r||!o)&&d.createElement("span",{className:"text-danger"},a),n||l.map((e=>d.createElement(fn,Object.assign({key:e,name:e},i)))))}));var rn=(0,C.e)((function(e){var n;return Ve(e,d.createElement("input",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(n.target.value);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});const an="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,ln=e=>an(encodeURIComponent(e)).replace(/=+$/,"");var sn=(0,C.e)((function(e){var n;return Ve(e,null===(n=e.options)||void 0===n?void 0:n.map((n=>{var t,r,a,l;return d.createElement("div",{key:null!==(t=n.key)&&void 0!==t?t:n.value,className:S()(e.inputClassName,"form-check","radio",{"custom-control-inline":e.inline,"text-danger":e.error,"text-success":!e.error&&e.changed})},d.createElement("label",{htmlFor:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:ln(n.value)}`,className:"form-check-label"},d.createElement("input",{checked:n.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:ln(n.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(n.value)},type:"radio"})," ",null!==(l=n.label)&&void 0!==l?l:n.value))})))}),{kind:"leaf"}),on=t(20098),cn=t.n(on);const un="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,dn=e=>un(encodeURIComponent(e)).replace(/=+$/,"");var mn=(0,C.e)((function(e){var{options:n,checkboxes:t,disabled:r,error:a,fieldType:l,id:i,inline:s,inputClassName:o,inputRef:c,label:u,name:m,onChange:p,placeholder:f,readOnly:_,required:h,value:b}=e,g=(0,v._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return Ve(Object.assign(Object.assign({},g),{disabled:r,error:a,id:i,label:u,required:h}),t?null==n?void 0:n.map((e=>{var n,t,a,l;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value,className:S()(o,"checkbox"+(s?"-inline":""))},d.createElement("label",{htmlFor:`${i}-${null!==(t=e.key)&&void 0!==t?t:dn(e.value)}`},d.createElement("input",{checked:E?null==b?void 0:b.includes(e.value):b===e.value,disabled:e.disabled||r,id:`${i}-${null!==(a=e.key)&&void 0!==a?a:dn(e.value)}`,name:m,onChange:()=>{_||p(E?cn()([e.value],b):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):d.createElement("select",{className:S()(o,"c-select form-control",{"is-invalid":a,"is-valid":!a&&g.changed}),disabled:r,id:i,multiple:E,name:m,onChange:e=>{if(!_){const n=e.target.value;if(E){const t=-1===e.target.selectedIndex;p(t?[]:cn()([n],b))}else p(""!==n?n:void 0)}},ref:c,value:null!=b?b:""},(!!f||!h||void 0===b)&&!E&&d.createElement("option",{value:"",disabled:h,hidden:h},f||u),null==n?void 0:n.map((e=>{var n,t;return d.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});var pn=(0,C.e)((function(e){var n,t;return Ve(Ze()(e,["autoComplete"]),d.createElement("input",{autoComplete:e.autoComplete,className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});var fn=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?sn:mn;switch(e.fieldType){case Array:return nn;case Boolean:return Ke;case Date:return He;case Number:return rn;case Object:return tn;case String:return pn}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function vn(e){var{element:n=d.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,d.createElement)(fn,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var _n=function e(n){class t extends n{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),n=super.getNativeFormProps();return Object.assign(Object.assign({},Ze()(n,["grid"])),{className:S()("form",{error:e},n.className)})}}return t.Bootstrap4=e,t.displayName=`Bootstrap4${n.displayName}`,t}(ye.I);var hn=function(e){var{children:n,className:t}=e,r=(0,v._T)(e,["children","className"]);const{error:a,schema:l}=(0,be.c)();return a||n?d.createElement("div",Object.assign({className:S()("card border-danger mb-3 text-danger",t)},(0,O.z)(r)),d.createElement("div",{className:"card-body"},n,l.getErrorMessages(a).map(((e,n)=>d.createElement("div",{key:n,className:"disabled"},e))))):null};function bn(e){var{className:n,disabled:t,inputClassName:r,inputRef:a,readOnly:l,value:i,wrapClassName:s}=e,o=(0,v._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:c,state:u}=(0,be.c)(),m=u,p=!(!m.grid&&!s),f=d.createElement("input",Object.assign({className:r,disabled:void 0===t?!(!c&&!m.disabled):t,readOnly:l,ref:a,type:"submit"},i?{value:i}:{}));return d.createElement("div",Object.assign({className:S()(n,{"is-invalid":c,row:m.grid})},(0,O.z)(o)),p&&d.createElement("span",{className:S()("col-form-label",ze(m.grid,"label"))},"\xa0"),p&&d.createElement("div",{className:S()(s,ze(m.grid,"input"))},f),!p&&f)}bn.defaultProps={inputClassName:"btn btn-primary"};var gn=bn;var En=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return fn}getErrorsField(){return hn}getSubmitField(){return gn}}return t.Quick=e,t}(_n);var yn=function e(n){class t extends(Ne.O.Validated(n)){}return t.Validated=e,t}(_n),On=yn.Validated(En.Quick(_n));var Cn=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(On);var jn=(0,C.e)((function(e){var{children:n,className:t,error:r,errorMessage:a}=e,l=(0,v._T)(e,["children","className","error","errorMessage"]);return r?d.createElement("div",Object.assign({className:S()("card","mb-3",t)},(0,O.z)(l)),d.createElement("div",{className:"card-body"},n||d.createElement("h4",{className:"card-title"},a))):null}),{initialValue:!1,kind:"leaf"});function kn(e){var n,{value:t}=e,r=(0,v._T)(e,["value"]);const a=(0,z.U)(r.name,r,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:d.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var xn=(0,C.e)((function(e){var n;return Ve(e,d.createElement("textarea",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});function Pn(e,n,t){const r="xs"===e?"":`${e}-`;return"label"===t?`col-${r}${n}`:`col-${r}${12-n}`}const Mn={xs:1,sm:2,md:3,lg:4,xl:5,xxl:6};function Nn(e,n){return Mn[e]-Mn[n]}function Tn(e,n){return"number"==typeof e?Pn("xs",e,n):"string"!=typeof e||isNaN(parseInt(e))?"string"==typeof e?e:"object"==typeof e?(e.xs||(e=Object.assign({xs:e.sm||e.md||e.lg||e.xl||e.xxl},e)),Object.keys(e).sort(Nn).map((t=>Pn(t,e[t],n))).join(" ")):"":Pn("xs",parseInt(e),n)}function Fn(e,n){var{changed:t,className:r,disabled:a,error:l,errorMessage:i,grid:s,help:o,helpClassName:c,id:u,label:m,labelClassName:p,required:f,showInlineError:_,wrapClassName:h}=e,b=(0,v._T)(e,["changed","className","disabled","error","errorMessage","grid","help","helpClassName","id","label","labelClassName","required","showInlineError","wrapClassName"]);const g=!(!s&&!h),E=!(!l||!_)&&d.createElement("span",{className:"form-text text-danger"},i),y=!!o&&d.createElement("span",{className:S()("form-text",c||"text-muted")},o);return d.createElement("div",Object.assign({className:S()(r,"mb-3",{"is-invalid":l,disabled:a,required:f,row:s})},Ze()((0,O.z)(b),["checkboxes","inline","inputClassName","inputRef","rows"])),m&&d.createElement("label",{htmlFor:u,className:S()({"col-form-label":s,"text-danger":l,"text-success":!l&&t},Tn(s,"label"),p)},m),g&&d.createElement("div",{className:S()(h,Tn(s,"input"))},n,y,E),!g&&n,!g&&y,!g&&E)}var wn=(0,C.e)((function(e){var{onChange:n}=e,t=(0,v._T)(e,["onChange"]);const{disabled:r,error:a,inline:l,inputClassName:i,inputRef:s,label:o,labelBefore:c,name:u,readOnly:m,value:p}=t;return Fn(Object.assign(Object.assign({},t),{label:c,value:t.value}),d.createElement("div",{className:S()(i,"form-check",{"text-danger":a,"text-success":!a&&t.changed,"form-check-inline":l})},d.createElement("input",{checked:p||!1,className:"form-check-input",disabled:r,id:t.id,name:u,onChange:()=>{m||n(!p)},ref:s,type:"checkbox"}),d.createElement("label",{htmlFor:t.id,className:"form-check-label"},o)))}),{kind:"leaf"});const In=("object"==typeof t.g?t.g:window).Date,Dn=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var An=(0,C.e)((function(e){var n,{disabled:t,error:r,id:a,inputClassName:l,inputRef:i,max:s,min:o,name:c,onChange:u,placeholder:m,readOnly:p,value:f,type:_="datetime-local"}=e,h=(0,v._T)(e,["disabled","error","id","inputClassName","inputRef","max","min","name","onChange","placeholder","readOnly","value","type"]);return Fn(Object.assign(Object.assign({},h),{id:a}),d.createElement("input",{className:S()(l,"form-control",{"is-invalid":r,"is-valid":!r&&h.changed}),disabled:t,id:a,max:Dn(s),min:Dn(o),name:c,onChange:e=>{const n=new In(e.target.valueAsNumber);n.getFullYear()<1e4?u(n):isNaN(e.target.valueAsNumber)&&u(void 0)},placeholder:m,readOnly:p,ref:i,type:_,value:null!==(n=Dn(f,_))&&void 0!==n?n:""}))}),{kind:"leaf"});function Rn(e){var{addIcon:n,className:t,disabled:r,name:a,readOnly:l,value:i}=e,s=(0,v._T)(e,["addIcon","className","disabled","name","readOnly","value"]);const o=(0,$.m)(null,a),c=(0,$.m)(o.slice(0,-1)),u=(0,z.U)(c,{},{absoluteName:!0})[0];return r||(r=l||u.maxCount<=u.value.length),d.createElement("button",Object.assign({},(0,O.z)(s),{className:S()("btn btn-secondary btn-sm float-end",t),disabled:r,onClick:function(){r||u.onChange(u.value.concat([U()(i)]))},tabIndex:0,type:"button"}),n)}Rn.defaultProps={addIcon:d.createElement("i",{className:"octicon octicon-plus"})};var Sn=(0,C.e)(Rn,{initialValue:!1,kind:"leaf"});function Ln(e){var{className:n,disabled:t,name:r,readOnly:a,removeIcon:l}=e,i=(0,v._T)(e,["className","disabled","name","readOnly","removeIcon"]);const s=(0,$.m)(null,r),o=+s[s.length-1],c=(0,$.m)(s.slice(0,-1)),u=(0,z.U)(c,{},{absoluteName:!0})[0];return t||(t=a||u.minCount>=u.value.length),d.createElement("button",Object.assign({},(0,O.z)(i),{className:S()("btn btn-secondary btn-sm",n),disabled:t,onClick:()=>{const e=u.value.slice();e.splice(o,1),u.onChange(e)},tabIndex:0,type:"button"}),l)}Ln.defaultProps={removeIcon:d.createElement("i",{className:"octicon octicon-dash"})};var Bn=(0,C.e)(Ln,{initialValue:!1,kind:"leaf"});var Zn=(0,C.e)((function(e){let{children:n=d.createElement(Xn,{className:"col",label:null,name:""}),removeIcon:t}=e;return d.createElement("div",{className:"row"},d.createElement("div",{className:"col-auto"},d.createElement(Bn,{name:"",removeIcon:t})),n)}),{initialValue:!1});var Wn=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(Zn,{name:"$"}),className:r,error:a,errorMessage:l,itemProps:i,label:s,removeIcon:o,showInlineError:c,value:u}=e,m=(0,v._T)(e,["addIcon","children","className","error","errorMessage","itemProps","label","removeIcon","showInlineError","value"]);return d.createElement("div",Object.assign({className:S()("card mb-3",r)},(0,O.z)(m)),d.createElement("div",{className:"card-body"},s&&d.createElement("div",{className:"card-title"},d.createElement("label",{className:"col-form-label"},s,"\xa0"),d.createElement(Sn,{addIcon:n,name:"$"}),!(!a||!c)&&d.createElement("span",{className:"text-danger"},l)),null==u?void 0:u.map(((e,n)=>d.Children.map(t,((e,t)=>{var r;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign(Object.assign({key:`${n}-${t}`,name:null===(r=e.props.name)||void 0===r?void 0:r.replace("$",""+n)},i),{removeIcon:o})):e}))))))}));var Un=(0,C.e)((function(e){var{children:n,className:t,error:r,errorMessage:a,fields:l,itemProps:i,label:s,showInlineError:o}=e,c=(0,v._T)(e,["children","className","error","errorMessage","fields","itemProps","label","showInlineError"]);return d.createElement("div",Object.assign({className:S()(t,{"has-error":r})},(0,O.z)(c)),s&&d.createElement("label",null,s),!(!r||!o)&&d.createElement("span",{className:"text-danger"},a),n||l.map((e=>d.createElement(Xn,Object.assign({key:e,name:e},i)))))}));var $n=(0,C.e)((function(e){var n;return Fn(e,d.createElement("input",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,max:e.max,min:e.min,name:e.name,onChange:n=>{const t=(e.decimal?parseFloat:parseInt)(n.target.value);e.onChange(isNaN(t)?void 0:t)},placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,step:e.step||(e.decimal?.01:1),type:"number",value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"});const zn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Vn=e=>zn(encodeURIComponent(e)).replace(/=+$/,"");var Kn=(0,C.e)((function(e){var n;return Fn(e,null===(n=e.options)||void 0===n?void 0:n.map((n=>{var t,r,a,l;return d.createElement("div",{key:null!==(t=n.key)&&void 0!==t?t:n.value,className:S()(e.inputClassName,"form-check",{"text-danger":e.error,"text-success":!e.error&&e.changed,"form-check-inline":e.inline})},d.createElement("label",{htmlFor:`${e.id}-${null!==(r=n.key)&&void 0!==r?r:Vn(n.value)}`,className:"form-check-label"},d.createElement("input",{checked:n.value===e.value,className:"form-check-input",disabled:e.disabled,id:`${e.id}-${null!==(a=n.key)&&void 0!==a?a:Vn(n.value)}`,name:e.name,onChange:()=>{e.readOnly||e.onChange(n.value)},type:"radio"})," ",null!==(l=n.label)&&void 0!==l?l:n.value))})))}),{kind:"leaf"});const qn="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Qn=e=>qn(encodeURIComponent(e)).replace(/=+$/,"");var Hn=(0,C.e)((function(e){var{options:n,checkboxes:t,disabled:r,error:a,fieldType:l,id:i,inline:s,inputClassName:o,inputRef:c,label:u,name:m,onChange:p,placeholder:f,readOnly:_,required:h,value:b}=e,g=(0,v._T)(e,["options","checkboxes","disabled","error","fieldType","id","inline","inputClassName","inputRef","label","name","onChange","placeholder","readOnly","required","value"]);const E=l===Array;return Fn(Object.assign(Object.assign({},g),{disabled:r,error:a,id:i,label:u,required:h}),t?null==n?void 0:n.map((e=>{var n,t,a,l;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value,className:S()(o,"form-check"+(s?" form-check-inline":""))},d.createElement("label",{htmlFor:`${i}-${null!==(t=e.key)&&void 0!==t?t:Qn(e.value)}`},d.createElement("input",{checked:E?null==b?void 0:b.includes(e.value):b===e.value,disabled:e.disabled||r,id:`${i}-${null!==(a=e.key)&&void 0!==a?a:Qn(e.value)}`,name:m,onChange:()=>{_||p(E?cn()([e.value],b):e.value)},type:"checkbox"}),null!==(l=e.label)&&void 0!==l?l:e.value))})):d.createElement("select",{className:S()(o,"form-control",{"is-invalid":a,"is-valid":!a&&g.changed}),disabled:r,id:i,multiple:E,name:m,onChange:e=>{if(!_){const n=e.target.value;if(E){const t=-1===e.target.selectedIndex;p(t?[]:cn()([n],b))}else p(""!==n?n:void 0)}},ref:c,value:null!=b?b:""},(!!f||!h||void 0===b)&&!E&&d.createElement("option",{value:"",disabled:h,hidden:h},f||u),null==n?void 0:n.map((e=>{var n,t;return d.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});var Jn=(0,C.e)((function(e){var n,t;return Fn(Ze()(e,["autoComplete","minLength","maxLength"]),d.createElement("input",{autoComplete:e.autoComplete,className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,type:null!==(n=e.type)&&void 0!==n?n:"text",value:null!==(t=e.value)&&void 0!==t?t:""}))}),{kind:"leaf"});var Xn=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Kn:Hn;switch(e.fieldType){case Array:return Wn;case Boolean:return wn;case Date:return An;case Number:return $n;case Object:return Un;case String:return Jn}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Gn(e){var{element:n=d.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,d.createElement)(Xn,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var Yn=function e(n){class t extends n{getContextState(){return Object.assign(Object.assign({},super.getContextState()),{grid:this.props.grid})}getNativeFormProps(){const e=this.getContextError(),n=super.getNativeFormProps();return Object.assign(Object.assign({},Ze()(n,["grid"])),{className:S()({error:e},n.className)})}}return t.Bootstrap5=e,t.displayName=`Bootstrap5${n.displayName}`,t}(ye.I);var et=function(e){var{children:n,className:t}=e,r=(0,v._T)(e,["children","className"]);const{error:a,schema:l}=(0,be.c)();return a||n?d.createElement("div",Object.assign({className:S()("card border-danger mb-3 text-danger",t)},(0,O.z)(r)),d.createElement("div",{className:"card-body"},n,l.getErrorMessages(a).map(((e,n)=>d.createElement("div",{key:n,className:"disabled"},e))))):null};function nt(e){var{className:n,disabled:t,inputClassName:r,inputRef:a,readOnly:l,value:i,wrapClassName:s}=e,o=(0,v._T)(e,["className","disabled","inputClassName","inputRef","readOnly","value","wrapClassName"]);const{error:c,state:u}=(0,be.c)(),m=u,p=!(!m.grid&&!s),f=d.createElement("input",Object.assign({className:r,disabled:void 0===t?!(!c&&!m.disabled):t,readOnly:l,ref:a,type:"submit"},i?{value:i}:{}));return d.createElement("div",Object.assign({className:S()(n,{"is-invalid":c,row:m.grid})},(0,O.z)(o)),p&&d.createElement("span",{className:S()("col-form-label",Tn(m.grid,"label"))},"\xa0"),p&&d.createElement("div",{className:S()(s,Tn(m.grid,"input"))},f),!p&&f)}nt.defaultProps={inputClassName:"btn btn-primary"};var tt=nt;var rt=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Xn}getErrorsField(){return et}getSubmitField(){return tt}}return t.Quick=e,t}(Yn);var at=function e(n){class t extends(Ne.O.Validated(n)){}return t.Validated=e,t}(Yn),lt=at.Validated(rt.Quick(Yn));var it=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(lt);var st=(0,C.e)((function(e){var{children:n,className:t,error:r,errorMessage:a}=e,l=(0,v._T)(e,["children","className","error","errorMessage"]);return r?d.createElement("div",Object.assign({className:S()("card","mb-3",t)},(0,O.z)(l)),d.createElement("div",{className:"card-body"},n||d.createElement("h4",{className:"card-title"},a))):null}),{initialValue:!1,kind:"leaf"});function ot(e){var n,{value:t}=e,r=(0,v._T)(e,["value"]);const a=(0,z.U)(r.name,r,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:d.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var ct=(0,C.e)((function(e){var n;return Fn(Ze()(e,["autoComplete","minLength","maxLength"]),d.createElement("textarea",{className:S()(e.inputClassName,"form-control",{"is-invalid":e.error,"is-valid":!e.error&&e.changed}),disabled:e.disabled,id:e.id,name:e.name,onChange:n=>e.onChange(n.target.value),placeholder:e.placeholder,minLength:e.minLength,maxLength:e.maxLength,readOnly:e.readOnly,ref:e.inputRef,rows:e.rows,value:null!==(n=e.value)&&void 0!==n?n:""}))}),{kind:"leaf"}),ut=t(80342),dt=t(21807),mt=t(61247),pt=t(35311),ft=t(82693),vt=t(82956),_t=t(54139),ht=t(74533);function bt(e){let{component:n,disabled:t,error:r,errorMessage:a,fullWidth:l,helperText:i,margin:s,readOnly:o,required:c,showInlineError:u,variant:m}=e;const p=u&&r?a:i,f={component:n,disabled:!!t,error:!!r,fullWidth:!!l,margin:s,readOnly:o,required:c,variant:m};for(var v=arguments.length,_=new Array(v>1?v-1:0),h=1;h<v;h++)_[h-1]=arguments[h];return(0,d.createElement)(_t.Z,f,..._,!!p&&d.createElement(ht.Z,null,p))}var gt=(0,C.e)((function(e){var n;const{appearance:t,disabled:r,inputRef:a,label:l,legend:i,name:s,onChange:o,readOnly:c,value:u}=e,m=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl,p="checkbox"===t||void 0===t?ut.Z:ft.Z;return bt(Object.assign(Object.assign(Object.assign(Object.assign({},void 0===(null==m?void 0:m.fullWidth)&&{fullWidth:!0}),void 0===(null==m?void 0:m.margin)&&{margin:"dense"}),e),{component:"fieldset"}),i&&d.createElement(pt.Z,{component:"legend",htmlFor:s},i),d.createElement(mt.Z,null,d.createElement(dt.Z,{control:d.createElement(p,Object.assign({checked:!!u,name:s,onChange:e=>!r&&!c&&o&&o(e.target.checked),ref:a,value:s},Ze()((0,O.z)(e),["helperText","fullWidth"]))),label:l})))}),{kind:"leaf"}),Et=t(38725);const yt=("object"==typeof t.g?t.g:window).Date,Ot=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var Ct=(0,C.e)((function(e){var n,t,r,a,{disabled:l,error:i,errorMessage:s,helperText:o,InputLabelProps:c,inputRef:u,label:m,labelProps:p,max:f,min:_,name:h,onChange:b,placeholder:g,readOnly:E,showInlineError:y,value:C,type:j="datetime-local"}=e,k=(0,v._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);const x=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(t=null==x?void 0:x.fullWidth)||void 0===t||t,helperText:!!i&&y&&s||o,label:m,InputLabelProps:Object.assign(Object.assign({shrink:!0},p),c),inputProps:Object.assign({max:Ot(f),min:Ot(_),readOnly:E},k.inputProps),margin:null!==(r=null==x?void 0:x.margin)&&void 0!==r?r:"dense",name:h,onChange:e=>l||((e,n)=>{const t=new yt(e);t.getFullYear()<1e4?n(t):isNaN(e)&&n(void 0)})(e.target.valueAsNumber,b),placeholder:g,ref:u,type:j,value:null!==(a=Ot(C,j))&&void 0!==a?a:""},(0,O.z)(k)))}),{kind:"leaf"}),jt=t(50755),kt=t(44920),xt=t(90547);var Pt=(0,C.e)((function(e){var{disabled:n,fullWidth:t=!0,icon:r="+",margin:a="dense",name:l,readOnly:i,value:s,variant:o}=e,c=(0,v._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const u=(0,$.m)(null,l),m=(0,$.m)(u.slice(0,-1)),p=(0,z.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return d.createElement(_t.Z,{fullWidth:t,margin:a,variant:o},d.createElement(xt.Z,Object.assign({},(0,O.z)(c),{disabled:!f,onClick:()=>{i||p.onChange(p.value.concat([U()(s)]))}}),r))}),{initialValue:!1,kind:"leaf"}),Mt=t(53332);var Nt=(0,C.e)((function(e){var{disabled:n,icon:t="-",name:r,readOnly:a}=e,l=(0,v._T)(e,["disabled","icon","name","readOnly"]);const i=(0,$.m)(null,r),s=+i[i.length-1],o=(0,$.m)(i.slice(0,-1)),c=(0,z.U)(o,{},{absoluteName:!0})[0];return n||(n=a||c.minCount>=c.value.length),d.createElement(xt.Z,Object.assign({},(0,O.z)(l),{disabled:n,onClick:()=>{const e=c.value.slice();e.splice(s,1),c.onChange(e)}}),t)}),{initialValue:!1,kind:"leaf"});var Tt=(0,C.e)((function(e){let{children:n=d.createElement(zt,{label:null,name:""}),dense:t=!0,disableGutters:r,divider:a,removeIcon:l}=e;return d.createElement(Mt.Z,{dense:t,disableGutters:r,divider:a},n,d.createElement(Nt,{name:"",icon:l}))}),{initialValue:!1});var Ft=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(Tt,{name:"$"}),itemProps:r,label:a,value:l}=e,i=(0,v._T)(e,["addIcon","children","itemProps","label","value"]);return d.createElement(d.Fragment,null,d.createElement(jt.Z,Object.assign({dense:!0,subheader:a?d.createElement(kt.Z,{disableSticky:!0},a):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,n)=>d.Children.map(t,((e,t)=>{var a;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n)},r)):e}))))),d.createElement(Pt,{icon:n,name:"$"}))}));var wt=(0,C.e)((function(e){var n,t,r,{children:a,fields:l,itemProps:i,label:s}=e,o=(0,v._T)(e,["children","fields","itemProps","label"]);const c=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl;return bt(Object.assign(Object.assign({fullWidth:null===(t=null==c?void 0:c.fullWidth)||void 0===t||t,margin:null!==(r=null==c?void 0:c.margin)&&void 0!==r?r:"dense"},o),{component:void 0}),s&&d.createElement(pt.Z,{component:"legend"},s),a||l.map((e=>d.createElement(zt,Object.assign({key:e,name:e},i)))))}));var It=(0,C.e)((function(e){var n,t,r,a,{decimal:l,disabled:i,error:s,errorMessage:o,helperText:c,inputProps:u,inputRef:m,label:p,max:f,min:_,name:h,onChange:b,readOnly:g,placeholder:E,showInlineError:y,step:C=(l?.01:1),value:j}=e,k=(0,v._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);const x=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:i,error:!!s,fullWidth:null===(t=null==x?void 0:x.fullWidth)||void 0===t||t,helperText:!!s&&y&&o||c,inputProps:Object.assign(Object.assign(Object.assign({},null!==(r=null==x?void 0:x.inputProps)&&void 0!==r?r:{}),{min:_,max:f,readOnly:g,step:C}),u),label:p,margin:null!==(a=null==x?void 0:x.margin)&&void 0!==a?a:"dense",name:h,onChange:e=>{const n=(l?parseFloat:parseInt)(e.target.value);b(isNaN(n)?void 0:n)},placeholder:E,ref:m,type:"number",value:null!=j?j:""},(0,O.z)(k)))}),{kind:"leaf"}),Dt=t(76709),At=t(70043);const Rt="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,St=e=>Rt(encodeURIComponent(e)).replace(/=+$/,"");var Lt=(0,C.e)((function(e){var n,t,r,{options:a,disabled:l,id:i,inputRef:s,label:o,name:c,onChange:u,readOnly:m,row:p,value:f}=e,_=(0,v._T)(e,["options","disabled","id","inputRef","label","name","onChange","readOnly","row","value"]);const h=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl;return bt(Object.assign(Object.assign({fullWidth:null===(t=null==h?void 0:h.fullWidth)||void 0===t||t,margin:null!==(r=null==h?void 0:h.margin)&&void 0!==r?r:"dense"},_),{component:"fieldset",disabled:l}),o&&d.createElement(pt.Z,{component:"legend",htmlFor:c},o),d.createElement(At.Z,{id:i,name:c,onChange:e=>l||m||u(e.target.value),ref:s,row:p,value:null!=f?f:""},null==a?void 0:a.map((e=>{var n,t;return d.createElement(dt.Z,{control:d.createElement(Dt.Z,Object.assign({id:`${i}-${St(e.value)}`},Ze()((0,O.z)(_),["checkboxes","helperText"]))),htmlFor:`${i}-${St(e.value)}`,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(t=e.label)&&void 0!==t?t:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),Bt=t(5633);const Zt="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Wt=e=>Zt(encodeURIComponent(e)).replace(/=+$/,"");var Ut=(0,C.e)((function(e){var n,t,r,a,l,i;const s=(0,vt.Z)(),o=null===(n=s.props)||void 0===n?void 0:n.MuiFormControl,c=null!==(t=e.value)&&void 0!==t?t:"";if(e.checkboxes){const{options:n,disabled:t,fieldType:a,id:l,inputRef:i,label:s,legend:u,name:m,onChange:p,readOnly:f}=e,v="checkbox"===(null!==(r=e.appearance)&&void 0!==r?r:"checkbox")?ut.Z:ft.Z,_=Ze()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),h=a!==Array?d.createElement(At.Z,{id:l,name:m,onChange:e=>t||f||p(e.target.value),ref:i,value:null!=c?c:""},null==n?void 0:n.map((e=>{var n,r,a;return d.createElement(dt.Z,{control:d.createElement(Dt.Z,Object.assign({id:`${l}-${null!==(n=e.key)&&void 0!==n?n:Wt(e.value)}`},_)),disabled:e.disabled||t,key:null!==(r=e.key)&&void 0!==r?r:e.value,label:null!==(a=e.label)&&void 0!==a?a:e.value,value:e.value})}))):d.createElement(mt.Z,{id:l},null==n?void 0:n.map((e=>{var n,r,a;return d.createElement(dt.Z,{control:d.createElement(v,Object.assign({checked:c.includes(e.value),id:`${l}-${null!==(n=e.key)&&void 0!==n?n:Wt(e.value)}`,name:m,onChange:()=>t||f||p(cn()([e.value],c)),ref:i,value:m},_)),disabled:e.disabled||t,key:null!==(r=e.key)&&void 0!==r?r:e.value,label:null!==(a=e.label)&&void 0!==a?a:e.value})})));return bt(Object.assign(Object.assign(Object.assign({},o),e),{component:"fieldset"}),(u||s)&&d.createElement(pt.Z,{component:"legend"},u||s),h)}const u=null===(a=s.props)||void 0===a?void 0:a.MuiTextField,{options:m,disabled:p,error:f,errorMessage:v,fieldType:_,fullWidth:h=null===(l=null==u?void 0:u.fullWidth)||void 0===l||l,helperText:b,id:g,InputLabelProps:E,inputProps:y,label:C,labelProps:j,margin:k=(null!==(i=null==u?void 0:u.margin)&&void 0!==i?i:"dense"),name:x,native:P,onChange:M,placeholder:N,readOnly:T,required:F,showInlineError:w,variant:I,textFieldProps:D}=e,A=P?"option":Bt.Z,R=!!N,S=""!==c&&void 0!==c,L=Ze()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return d.createElement(Et.Z,Object.assign({disabled:p,error:!!f,fullWidth:h,helperText:!!f&&w&&v||b,InputLabelProps:Object.assign(Object.assign({shrink:!!C&&(R||S)},j),E),label:C,margin:k,onChange:e=>p||T||M(""!==e.target.value?e.target.value:void 0),required:F,select:!0,SelectProps:Object.assign({displayEmpty:R,inputProps:Object.assign({name:x,id:g},y),multiple:_===Array||void 0,native:P},L),value:P&&!c?"":c,variant:I},D),(R||!F||!S)&&d.createElement(A,{value:"",disabled:!!F},N||C),null==m?void 0:m.map((e=>{var n,t;return d.createElement(A,{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)})))}),{kind:"leaf"});var $t=(0,C.e)((function(e){var n,t,r,a,{disabled:l,error:i,errorMessage:s,helperText:o,inputRef:c,label:u,name:m,onChange:p,placeholder:f,readOnly:_,showInlineError:h,type:b="text",value:g=""}=e,E=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const y=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:l,error:!!i,fullWidth:null===(t=null==y?void 0:y.fullWidth)||void 0===t||t,helperText:!!i&&h&&s||o,inputProps:Object.assign({readOnly:_},null!==(r=null==y?void 0:y.inputProps)&&void 0!==r?r:{}),label:u,margin:null!==(a=null==y?void 0:y.margin)&&void 0!==a?a:"dense",name:m,onChange:e=>l||p(e.target.value),placeholder:f,ref:c,type:b,value:g},(0,O.z)(E)))}),{kind:"leaf"});var zt=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Lt:Ut;switch(e.fieldType){case Array:return Ft;case Boolean:return gt;case Date:return Ct;case Number:return It;case Object:return wt;case String:return $t}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Vt(e){var{element:n=d.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,d.createElement)(zt,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var Kt=function e(n){class t extends n{}return t.Material=e,t.displayName=`Material${n.displayName}`,t}(ye.I);var qt=function(e){var n,t,r,{children:a,fullWidth:l,margin:i,variant:s}=e,o=(0,v._T)(e,["children","fullWidth","margin","variant"]);const c=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl,{error:u,schema:m}=(0,be.c)();return u||a?d.createElement(_t.Z,{error:!!u,fullWidth:null===(t=null!=l?l:null==c?void 0:c.fullWidth)||void 0===t||t,margin:null!==(r=null!=i?i:null==c?void 0:c.margin)&&void 0!==r?r:"dense",variant:null!=s?s:null==c?void 0:c.variant},!!a&&d.createElement(ht.Z,Object.assign({},(0,O.z)(o)),a),m.getErrorMessages(u).map(((e,n)=>d.createElement(ht.Z,Object.assign({key:n},(0,O.z)(o)),e)))):null},Qt=t(9334);var Ht=function(e){var n,t,{children:r,disabled:a,inputRef:l,label:i="Submit",value:s}=e,o=(0,v._T)(e,["children","disabled","inputRef","label","value"]);const{error:c,state:u}=(0,be.c)(),m=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiButton;return d.createElement(Qt.Z,Object.assign({disabled:void 0===a?!(!c&&!u.disabled):a,ref:l,type:"submit",value:s,variant:null!==(t=null==m?void 0:m.variant)&&void 0!==t?t:"contained"},(0,O.z)(o)),r||i)};var Jt=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return zt}getErrorsField(){return qt}getSubmitField(){return Ht}}return t.Quick=e,t}(Kt);var Xt=function e(n){class t extends(Ne.O.Validated(n)){}return t.Validated=e,t}(Kt),Gt=Xt.Validated(Jt.Quick(Kt));var Yt=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(Gt);var er=(0,C.e)((function(e){var n,t,r,{children:a,error:l,errorMessage:i,fullWidth:s,margin:o,variant:c}=e,u=(0,v._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);const m=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiFormControl;return l?d.createElement(_t.Z,{error:!!l,fullWidth:null===(t=null!=s?s:null==m?void 0:m.fullWidth)||void 0===t||t,margin:null!==(r=null!=o?o:null==m?void 0:m.margin)&&void 0!==r?r:"dense",variant:null!=c?c:null==m?void 0:m.variant},d.createElement(ht.Z,Object.assign({},(0,O.z)(u)),a||i)):null}),{initialValue:!1,kind:"leaf"});function nr(e){var n,{value:t}=e,r=(0,v._T)(e,["value"]);const a=(0,z.U)(r.name,r,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:d.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var tr=(0,C.e)((e=>{var n,t,r,{disabled:a,error:l,errorMessage:i,helperText:s,inputRef:o,label:c,name:u,onChange:m,placeholder:p,readOnly:f,showInlineError:_,type:h="text",value:b}=e,g=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);const E=null===(n=(0,vt.Z)().props)||void 0===n?void 0:n.MuiTextField;return d.createElement(Et.Z,Object.assign({disabled:a,error:!!l,fullWidth:null===(t=null==E?void 0:E.fullWidth)||void 0===t||t,helperText:!!l&&_&&i||s,inputProps:Object.assign(Object.assign({},null==E?void 0:E.inputProps),{readOnly:f}),label:c,margin:null!==(r=null==E?void 0:E.margin)&&void 0!==r?r:"dense",multiline:!0,name:u,onChange:e=>a||m(e.target.value),placeholder:p,ref:o,type:h,value:null!=b?b:""},(0,O.z)(g)))}),{kind:"leaf"}),rr=t(56213),ar=t(64251),lr=t(64281),ir=t(23626),sr=t(22013),or=t(61230),cr=t(56274);function ur(e){let{component:n,disabled:t,error:r,errorMessage:a,fullWidth:l,helperText:i,margin:s,readOnly:o,required:c,showInlineError:u,variant:m}=e;const p=u&&r?a:i,f={component:n,disabled:!!t,error:!!r,fullWidth:!!l,margin:s,readOnly:o,required:c,variant:m};for(var v=arguments.length,_=new Array(v>1?v-1:0),h=1;h<v;h++)_[h-1]=arguments[h];return(0,d.createElement)(or.Z,f,..._,!!p&&d.createElement(cr.Z,null,p))}var dr=(0,C.e)((function(e){const{appearance:n,disabled:t,inputRef:r,label:a,legend:l,name:i,onChange:s,readOnly:o,value:c}=e,u="checkbox"===n||void 0===n?rr.Z:sr.Z;return ur(Object.assign({fullWidth:!0},e),l&&d.createElement(ir.Z,{component:"legend",htmlFor:i},l),d.createElement(lr.Z,null,d.createElement(ar.Z,{control:d.createElement(u,Object.assign({checked:!!c,name:i,onChange:e=>!t&&!o&&s&&s(e.target.checked),ref:r,value:i},Ze()((0,O.z)(e),["helperText","fullWidth"]))),label:a})))}),{kind:"leaf"}),mr=t(60929);const pr=("object"==typeof t.g?t.g:window).Date,fr=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var vr=(0,C.e)((function(e){var n,{disabled:t,error:r,errorMessage:a,helperText:l,InputLabelProps:i,inputRef:s,label:o,labelProps:c,max:u,min:m,name:p,onChange:f,placeholder:_,readOnly:h,showInlineError:b,value:g,type:E="datetime-local"}=e,y=(0,v._T)(e,["disabled","error","errorMessage","helperText","InputLabelProps","inputRef","label","labelProps","max","min","name","onChange","placeholder","readOnly","showInlineError","value","type"]);return d.createElement(mr.Z,Object.assign({disabled:t,error:!!r,fullWidth:!0,helperText:!!r&&b&&a||l,label:o,InputLabelProps:Object.assign(Object.assign({shrink:!0},c),i),inputProps:Object.assign({max:fr(u),min:fr(m),readOnly:h},y.inputProps),margin:"dense",name:p,onChange:e=>t||((e,n)=>{const t=new pr(e);t.getFullYear()<1e4?n(t):isNaN(e)&&n(void 0)})(e.target.valueAsNumber,f),placeholder:_,ref:s,type:E,value:null!==(n=fr(g,E))&&void 0!==n?n:""},(0,O.z)(y)))}),{kind:"leaf"}),_r=t(10872),hr=t(5420),br=t(68666);var gr=(0,C.e)((function(e){var{disabled:n,fullWidth:t=!0,icon:r="+",margin:a="dense",name:l,readOnly:i,value:s,variant:o}=e,c=(0,v._T)(e,["disabled","fullWidth","icon","margin","name","readOnly","value","variant"]);const u=(0,$.m)(null,l),m=(0,$.m)(u.slice(0,-1)),p=(0,z.U)(m,{},{absoluteName:!0})[0],f=!(n||p.maxCount<=p.value.length);return d.createElement(or.Z,{fullWidth:t,margin:a,variant:o},d.createElement(br.Z,Object.assign({size:"large",variant:"outlined"},(0,O.z)(c),{disabled:!f,onClick:()=>{i||p.onChange(p.value.concat([U()(s)]))}}),r))}),{initialValue:!1,kind:"leaf"}),Er=t(88483),yr=t(92133);var Or=(0,C.e)((function(e){var{disabled:n,icon:t="-",name:r,readOnly:a}=e,l=(0,v._T)(e,["disabled","icon","name","readOnly"]);const i=(0,$.m)(null,r),s=+i[i.length-1],o=(0,$.m)(i.slice(0,-1)),c=(0,z.U)(o,{},{absoluteName:!0})[0];return n||(n=a||c.minCount>=c.value.length),d.createElement(yr.Z,Object.assign({},(0,O.z)(l),{disabled:n,onClick:()=>{const e=c.value.slice();e.splice(s,1),c.onChange(e)},size:"large"}),t)}),{initialValue:!1,kind:"leaf"});var Cr=(0,C.e)((function(e){let{children:n=d.createElement(Sr,{label:null,name:""}),dense:t=!0,disableGutters:r,divider:a,removeIcon:l}=e;return d.createElement(Er.ZP,{dense:t,disableGutters:r,divider:a},n,d.createElement(Or,{name:"",icon:l}))}),{initialValue:!1});var jr=(0,C.e)((function(e){var{addIcon:n,children:t=d.createElement(Cr,{name:"$"}),itemProps:r,label:a,value:l}=e,i=(0,v._T)(e,["addIcon","children","itemProps","label","value"]);return d.createElement(d.Fragment,null,d.createElement(_r.Z,Object.assign({dense:!0,subheader:a?d.createElement(hr.Z,{disableSticky:!0},a):void 0},(0,O.z)(i)),null==l?void 0:l.map(((e,n)=>d.Children.map(t,((e,t)=>{var a;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${n}-${t}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+n)},r)):e}))))),d.createElement(gr,{icon:n,name:"$"}))}));var kr=(0,C.e)((function(e){var{children:n,fields:t,fullWidth:r=!0,itemProps:a,label:l,margin:i="dense"}=e,s=(0,v._T)(e,["children","fields","fullWidth","itemProps","label","margin"]);return ur(Object.assign(Object.assign({fullWidth:r,margin:i},s),{component:void 0}),l&&d.createElement(ir.Z,{component:"legend"},l),n||t.map((e=>d.createElement(Sr,Object.assign({key:e,name:e},a)))))}));var xr=(0,C.e)((function(e){var{decimal:n,disabled:t,error:r,errorMessage:a,helperText:l,inputProps:i,inputRef:s,label:o,max:c,min:u,name:m,onChange:p,readOnly:f,placeholder:_,showInlineError:h,step:b=(n?.01:1),value:g}=e,E=(0,v._T)(e,["decimal","disabled","error","errorMessage","helperText","inputProps","inputRef","label","max","min","name","onChange","readOnly","placeholder","showInlineError","step","value"]);return d.createElement(mr.Z,Object.assign({disabled:t,error:!!r,fullWidth:!0,helperText:!!r&&h&&a||l,inputProps:Object.assign({min:u,max:c,readOnly:f,step:b},i),label:o,margin:"dense",name:m,onChange:e=>{const t=(n?parseFloat:parseInt)(e.target.value);p(isNaN(t)?void 0:t)},placeholder:_,ref:s,type:"number",value:null!=g?g:""},(0,O.z)(E)))}),{kind:"leaf"}),Pr=t(8993),Mr=t(20750);const Nr="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Tr=e=>Nr(encodeURIComponent(e)).replace(/=+$/,"");var Fr=(0,C.e)((function(e){var{options:n,disabled:t,fullWidth:r=!0,id:a,inputRef:l,label:i,margin:s="dense",name:o,onChange:c,readOnly:u,row:m,value:p}=e,f=(0,v._T)(e,["options","disabled","fullWidth","id","inputRef","label","margin","name","onChange","readOnly","row","value"]);return ur(Object.assign(Object.assign({},f),{component:"fieldset",disabled:t,fullWidth:r,margin:s}),i&&d.createElement(ir.Z,{component:"legend",htmlFor:o},i),d.createElement(Mr.Z,{id:a,name:o,onChange:e=>t||u||c(e.target.value),ref:l,row:m,value:null!=p?p:""},null==n?void 0:n.map((e=>{var n,t;return d.createElement(ar.Z,{control:d.createElement(Pr.Z,Object.assign({id:`${a}-${Tr(e.value)}`},Ze()((0,O.z)(f),["checkboxes","helperText"]))),htmlFor:`${a}-${Tr(e.value)}`,key:null!==(n=e.key)&&void 0!==n?n:e.value,label:null!==(t=e.label)&&void 0!==t?t:e.value,value:`${e.value}`})}))))}),{kind:"leaf"}),wr=t(13455);const Ir="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Dr=e=>Ir(encodeURIComponent(e)).replace(/=+$/,"");var Ar=(0,C.e)((function(e){var n,t;const r=null!==(n=e.value)&&void 0!==n?n:"";if(e.checkboxes){const{options:n,disabled:a,fieldType:l,id:i,inputRef:s,label:o,legend:c,name:u,onChange:m,readOnly:p}=e,f="checkbox"===(null!==(t=e.appearance)&&void 0!==t?t:"checkbox")?rr.Z:sr.Z,v=Ze()((0,O.z)(e),["checkboxes","disableItem","id","inputRef"]),_=l!==Array?d.createElement(Mr.Z,{id:i,name:u,onChange:e=>a||p||m(e.target.value),ref:s,value:null!=r?r:""},n.map((e=>{var n,t,r;return d.createElement(ar.Z,{control:d.createElement(Pr.Z,Object.assign({id:`${i}-${null!==(n=e.key)&&void 0!==n?n:Dr(e.value)}`},v)),disabled:e.disabled||a,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(r=e.label)&&void 0!==r?r:e.value,value:e.value})}))):d.createElement(lr.Z,{id:i},n.map((e=>{var n,t,l;return d.createElement(ar.Z,{control:d.createElement(f,Object.assign({checked:r.includes(e.value),id:`${i}-${null!==(n=e.key)&&void 0!==n?n:Dr(e.value)}`,name:u,onChange:()=>a||p||m(cn()([e.value],r)),ref:s,value:u},v)),disabled:e.disabled||a,key:null!==(t=e.key)&&void 0!==t?t:e.value,label:null!==(l=e.label)&&void 0!==l?l:e.value})})));return ur(Object.assign(Object.assign({},e),{component:"fieldset"}),(c||o)&&d.createElement(ir.Z,{component:"legend"},c||o),_)}const{options:a,disabled:l,error:i,errorMessage:s,fieldType:o,fullWidth:c=!0,helperText:u,id:m,InputLabelProps:p,inputProps:f,label:v,labelProps:_,margin:h="dense",name:b,native:g,onChange:E,placeholder:y,readOnly:C,required:j,showInlineError:k,variant:x,textFieldProps:P}=e,M=g?"option":wr.Z,N=!!y,T=""!==r&&void 0!==r,F=Ze()((0,O.z)(e),["checkboxes","disableItem","fullWidth","helperText","margin","textFieldProps","variant"]);return d.createElement(mr.Z,Object.assign({disabled:l,error:!!i,fullWidth:c,helperText:!!i&&k&&s||u,InputLabelProps:Object.assign(Object.assign({shrink:!!v&&(N||T)},_),p),label:v,margin:h,onChange:e=>l||C||E(""!==e.target.value?e.target.value:void 0),required:j,select:!0,SelectProps:Object.assign({displayEmpty:N,inputProps:Object.assign({name:b,id:m},f),multiple:o===Array||void 0,native:g},F),value:g&&!r?"":r,variant:x},P),(N||!j||!T)&&d.createElement(M,{value:"",disabled:!!j},y||v),a.map((e=>{var n,t;return d.createElement(M,{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)})))}),{kind:"leaf"});var Rr=(0,C.e)((function(e){var{disabled:n,error:t,errorMessage:r,helperText:a,inputRef:l,label:i,name:s,onChange:o,placeholder:c,readOnly:u,showInlineError:m,type:p="text",value:f=""}=e,_=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return d.createElement(mr.Z,Object.assign({disabled:n,error:!!t,fullWidth:!0,helperText:!!t&&m&&r||a,inputProps:{readOnly:u},label:i,margin:"dense",name:s,onChange:e=>n||o(e.target.value),placeholder:c,ref:l,type:p,value:f},(0,O.z)(_)))}),{kind:"leaf"});var Sr=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Fr:Ar;switch(e.fieldType){case Array:return jr;case Boolean:return dr;case Date:return vr;case Number:return xr;case Object:return kr;case String:return Rr}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Lr(e){var{element:n=d.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,d.createElement)(Sr,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var Br=function e(n){class t extends n{}return t.Material=e,t.displayName=`Material${n.displayName}`,t}(ye.I);var Zr=function(e){var{children:n,fullWidth:t=!0,margin:r,variant:a}=e,l=(0,v._T)(e,["children","fullWidth","margin","variant"]);const{error:i,schema:s}=(0,be.c)();return i||n?d.createElement(or.Z,{error:!!i,fullWidth:!!t,margin:r,variant:a},!!n&&d.createElement(cr.Z,Object.assign({},(0,O.z)(l)),n),s.getErrorMessages(i).map(((e,n)=>d.createElement(cr.Z,Object.assign({key:n},(0,O.z)(l)),e)))):null};var Wr=function(e){var{children:n,disabled:t,inputRef:r,label:a="Submit",value:l}=e,i=(0,v._T)(e,["children","disabled","inputRef","label","value"]);const{error:s,state:o}=(0,be.c)();return d.createElement(br.Z,Object.assign({disabled:void 0===t?!(!s&&!o.disabled):t,ref:r,type:"submit",value:l,variant:"contained"},(0,O.z)(i)),n||a)};var Ur=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Sr}getErrorsField(){return Zr}getSubmitField(){return Wr}}return t.Quick=e,t}(Br);var $r=function e(n){class t extends(Ne.O.Validated(n)){}return t.Validated=e,t}(Br),zr=$r.Validated(Ur.Quick(Br));var Vr=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}(zr);var Kr=(0,C.e)((function(e){var{children:n,error:t,errorMessage:r,fullWidth:a,margin:l,variant:i}=e,s=(0,v._T)(e,["children","error","errorMessage","fullWidth","margin","variant"]);return t?d.createElement(or.Z,{error:!!t,fullWidth:!!a,margin:"dense"===l?l:void 0,variant:i},d.createElement(cr.Z,Object.assign({},(0,O.z)(s)),n||r)):null}),{initialValue:!1,kind:"leaf"});function qr(e){var n,{value:t}=e,r=(0,v._T)(e,["value"]);const a=(0,z.U)(r.name,r,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:d.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var Qr=(0,C.e)((e=>{var{disabled:n,error:t,errorMessage:r,helperText:a,inputRef:l,label:i,name:s,onChange:o,placeholder:c,readOnly:u,showInlineError:m,type:p="text",value:f}=e,_=(0,v._T)(e,["disabled","error","errorMessage","helperText","inputRef","label","name","onChange","placeholder","readOnly","showInlineError","type","value"]);return d.createElement(mr.Z,Object.assign({disabled:n,error:!!t,fullWidth:!0,helperText:!!t&&m&&r||a,inputProps:{readOnly:u},label:i,margin:"dense",multiline:!0,name:s,onChange:e=>n||o(e.target.value),placeholder:c,ref:l,type:p,value:null!=f?f:""},(0,O.z)(_)))}),{kind:"leaf"}),Hr=t(68599);function Jr(e){var{element:n=d.Fragment,fields:t,omitFields:r=[],showInlineError:a}=e,l=(0,v._T)(e,["element","fields","omitFields","showInlineError"]);const{schema:i}=(0,be.c)();return(0,d.createElement)(n,l,(null!=t?t:i.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,d.createElement)(Hr.Z,Object.assign({key:e,name:e},void 0===a?null:{showInlineError:a})))))}var Xr=t(2310),Gr=t(99574),Yr=t(12138),ea=t(14449);var na=(0,C.e)((function(e){var{children:n,className:t,error:r,errorMessage:a}=e,l=(0,v._T)(e,["children","className","error","errorMessage"]);return r?d.createElement("div",Object.assign({className:S()("ui",t,"error message")},(0,O.z)(l)),n||d.createElement("div",{className:"header"},a)):null}),{initialValue:!1,kind:"leaf"}),ta=t(43351);function ra(e){var n,{value:t}=e,r=(0,v._T)(e,["value"]);const a=(0,z.U)(r.name,r,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:d.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var aa=t(77900),la=t(960),ia=t(64694),sa=t(18747);var oa=(0,C.e)((function(e){var{className:n,disabled:t,error:r,errorMessage:a,id:l,inputRef:i,label:s,name:o,onChange:c,placeholder:u,readOnly:m,required:p,showInlineError:f,value:_}=e,h=(0,v._T)(e,["className","disabled","error","errorMessage","id","inputRef","label","name","onChange","placeholder","readOnly","required","showInlineError","value"]);return d.createElement("div",Object.assign({className:S()(n,{disabled:t,error:r,required:p},"field")},(0,O.z)(h)),s&&d.createElement("label",{htmlFor:l},s),d.createElement("textarea",{disabled:t,id:l,name:o,onChange:e=>c(e.target.value),placeholder:u,readOnly:m,ref:i,value:null!=_?_:""}),!(!r||!f)&&d.createElement("div",{className:"ui red basic pointing label"},a))}),{kind:"leaf"}),ca=t(80661),ua=t(59492),da=t(52559),ma=t(44591),pa=t(47822),fa=t(82986),va=t(99086),_a=t(3684),ha=t(79904);var ba=(0,C.e)((function(e){var{disabled:n,id:t,inputRef:r,label:a,name:l,onChange:i,readOnly:s,value:o}=e,c=(0,v._T)(e,["disabled","id","inputRef","label","name","onChange","readOnly","value"]);return d.createElement("div",Object.assign({},(0,O.z)(c)),d.createElement("input",{checked:o||!1,disabled:n,id:t,name:l,onChange:()=>!n&&!s&&i(!o),ref:r,type:"checkbox"}),a&&d.createElement("label",{htmlFor:t},a))}),{kind:"leaf"});const ga=("object"==typeof t.g?t.g:window).Date,Ea=function(e,n){return void 0===n&&(n="datetime-local"),null==e?void 0:e.toISOString().slice(0,"datetime-local"===n?-8:-14)};var ya=(0,C.e)((function(e){var n,{disabled:t,id:r,inputRef:a,label:l,max:i,min:s,name:o,onChange:c,placeholder:u,readOnly:m,value:p,type:f="datetime-local"}=e,_=(0,v._T)(e,["disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","value","type"]);return d.createElement("div",Object.assign({},(0,O.z)(_)),l&&d.createElement("label",{htmlFor:r},l),d.createElement("input",{disabled:t,id:r,max:Ea(i),min:Ea(s),name:o,onChange:e=>{const n=new ga(e.target.valueAsNumber);n.getFullYear()<1e4?c(n):isNaN(e.target.valueAsNumber)&&c(void 0)},placeholder:u,readOnly:m,ref:a,type:f,value:null!==(n=Ea(p,f))&&void 0!==n?n:""}))}),{kind:"leaf"});var Oa=(0,C.e)((function(e){var{disabled:n,name:t,readOnly:r,value:a}=e,l=(0,v._T)(e,["disabled","name","readOnly","value"]);const i=(0,$.m)(null,t),s=(0,$.m)(i.slice(0,-1)),o=(0,z.U)(s,{},{absoluteName:!0})[0],c=!(n||o.maxCount<=o.value.length);function u(e){!c||r||"key"in e&&"Enter"!==e.key||o.onChange(o.value.concat([U()(a)]))}return d.createElement("span",Object.assign({},(0,O.z)(l),{onClick:u,onKeyDown:u,role:"button",tabIndex:0}),"+")}),{initialValue:!1,kind:"leaf"});var Ca=(0,C.e)((function(e){var{disabled:n,name:t,readOnly:r}=e,a=(0,v._T)(e,["disabled","name","readOnly"]);const l=(0,$.m)(null,t),i=+l[l.length-1],s=(0,$.m)(l.slice(0,-1)),o=(0,z.U)(s,{},{absoluteName:!0})[0];function c(e){if(!(n||"key"in e&&"Enter"!==e.key)){const e=o.value.slice();e.splice(i,1),o.onChange(e)}}return n||(n=r||o.minCount>=o.value.length),d.createElement("span",Object.assign({},(0,O.z)(a),{onClick:c,onKeyDown:c,role:"button",tabIndex:0}),"-")}),{initialValue:!1,kind:"leaf"});var ja=(0,C.e)((function(e){let{children:n=d.createElement(Ra,{label:null,name:""})}=e;return d.createElement("div",null,d.createElement(Ca,{name:""}),n)}),{initialValue:!1});var ka=(0,C.e)((function(e){var{children:n=d.createElement(ja,{name:"$"}),itemProps:t,label:r,value:a}=e,l=(0,v._T)(e,["children","itemProps","label","value"]);return d.createElement("ul",Object.assign({},(0,O.z)(l)),r&&d.createElement("label",null,r,d.createElement(Oa,{name:"$"})),null==a?void 0:a.map(((e,r)=>d.Children.map(n,((e,n)=>{var a;return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,Object.assign({key:`${r}-${n}`,name:null===(a=e.props.name)||void 0===a?void 0:a.replace("$",""+r)},t)):e})))))}));var xa=(0,C.e)((function(e){var{children:n,fields:t,itemProps:r,label:a}=e,l=(0,v._T)(e,["children","fields","itemProps","label"]);return d.createElement("div",Object.assign({},(0,O.z)(l)),a&&d.createElement("label",null,a),n||t.map((e=>d.createElement(Ra,Object.assign({key:e,name:e},r)))))}));var Pa=(0,C.e)((function(e){var{decimal:n,disabled:t,id:r,inputRef:a,label:l,max:i,min:s,name:o,onChange:c,placeholder:u,readOnly:m,step:p,value:f}=e,_=(0,v._T)(e,["decimal","disabled","id","inputRef","label","max","min","name","onChange","placeholder","readOnly","step","value"]);return d.createElement("div",Object.assign({},(0,O.z)(_)),l&&d.createElement("label",{htmlFor:r},l),d.createElement("input",{disabled:t,id:r,max:i,min:s,name:o,onChange:e=>{const t=(n?parseFloat:parseInt)(e.target.value);c(isNaN(t)?void 0:t)},placeholder:u,readOnly:m,ref:a,step:p||(n?.01:1),type:"number",value:null!=f?f:""}))}),{kind:"leaf"});const Ma="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,Na=e=>Ma(encodeURIComponent(e)).replace(/=+$/,"");var Ta=(0,C.e)((function(e){var{options:n,disabled:t,id:r,label:a,name:l,onChange:i,readOnly:s,value:o}=e,c=(0,v._T)(e,["options","disabled","id","label","name","onChange","readOnly","value"]);return d.createElement("div",Object.assign({},Ze()((0,O.z)(c),["checkboxes"])),a&&d.createElement("label",null,a),null==n?void 0:n.map((e=>{var n,a,c,u;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value},d.createElement("input",{checked:e.value===o,disabled:e.disabled||t,id:`${r}-${null!==(a=e.key)&&void 0!==a?a:Na(e.value)}`,name:l,onChange:()=>{s||i(e.value)},type:"radio"}),d.createElement("label",{htmlFor:`${r}-${null!==(c=e.key)&&void 0!==c?c:Na(e.value)}`},null!==(u=e.label)&&void 0!==u?u:e.value))})))}),{kind:"leaf"});const Fa="undefined"==typeof btoa?e=>Buffer.from(e).toString("base64"):btoa,wa=e=>Fa(encodeURIComponent(e)).replace(/=+$/,"");var Ia=(0,C.e)((function(e){var{checkboxes:n,disabled:t,fieldType:r,id:a,inputRef:l,label:i,name:s,onChange:o,placeholder:c,readOnly:u,required:m,value:p,options:f}=e,_=(0,v._T)(e,["checkboxes","disabled","fieldType","id","inputRef","label","name","onChange","placeholder","readOnly","required","value","options"]);const h=r===Array;return d.createElement("div",Object.assign({},(0,O.z)(_)),i&&d.createElement("label",{htmlFor:a},i),n?null==f?void 0:f.map((e=>{var n,l,i,c,m;return d.createElement("div",{key:null!==(n=e.key)&&void 0!==n?n:e.value},d.createElement("input",{checked:r===Array?null==p?void 0:p.includes(e.value):p===e.value,disabled:null!==(l=e.disabled)&&void 0!==l?l:t,id:`${a}-${null!==(i=e.key)&&void 0!==i?i:wa(e.value)}`,name:s,onChange:()=>{u||o(r===Array?cn()([e.value],p):e.value)},type:"checkbox"}),d.createElement("label",{htmlFor:`${a}-${null!==(c=e.key)&&void 0!==c?c:wa(e.value)}`},null!==(m=e.label)&&void 0!==m?m:e.value))})):d.createElement("select",{disabled:t,id:a,multiple:h,name:s,onChange:e=>{if(!u){const n=e.target.value;if(h){const t=-1===e.target.selectedIndex;o(t?[]:cn()([n],p))}else o(""!==n?n:void 0)}},ref:l,value:null!=p?p:""},(!!c||!m||void 0===p)&&!h&&d.createElement("option",{value:"",disabled:m,hidden:m},c||i),null==f?void 0:f.map((e=>{var n,t;return d.createElement("option",{disabled:e.disabled,key:null!==(n=e.key)&&void 0!==n?n:e.value,value:e.value},null!==(t=e.label)&&void 0!==t?t:e.value)}))))}),{kind:"leaf"});function Da(e){var{autoComplete:n,disabled:t,id:r,inputRef:a,label:l,name:i,onChange:s,placeholder:o,readOnly:c,type:u,value:m}=e,p=(0,v._T)(e,["autoComplete","disabled","id","inputRef","label","name","onChange","placeholder","readOnly","type","value"]);return d.createElement("div",Object.assign({},(0,O.z)(p)),l&&d.createElement("label",{htmlFor:r},l),d.createElement("input",{autoComplete:n,disabled:t,id:r,name:i,onChange:e=>s(e.target.value),placeholder:o,readOnly:c,ref:a,type:u,value:null!=m?m:""}))}Da.defaultProps={type:"text"};var Aa=(0,C.e)(Da,{kind:"leaf"});var Ra=(0,f.a)((e=>{if(e.component)return e.component;if(e.options)return e.checkboxes&&e.fieldType!==Array?Ta:Ia;switch(e.fieldType){case Array:return ka;case Boolean:return ba;case Date:return ya;case Number:return Pa;case Object:return xa;case String:return Aa}return p()(!1,"Unsupported field type: %s",e.fieldType)}));function Sa(e){var{element:n=d.Fragment,fields:t,omitFields:r=[]}=e,a=(0,v._T)(e,["element","fields","omitFields"]);const{schema:l}=(0,be.c)();return(0,d.createElement)(n,a,(null!=t?t:l.getSubfields()).filter((e=>!r.includes(e))).map((e=>(0,d.createElement)(Ra,{key:e,name:e}))))}var La=function e(n){class t extends n{}return t.Unstyled=e,t.displayName=`Unstyled${n.displayName}`,t}(ye.I);function Ba(e){const{error:n,schema:t}=(0,be.c)();return n||e.children?d.createElement("div",Object.assign({},(0,O.z)(e)),e.children,d.createElement("ul",null,t.getErrorMessages(n).map(((e,n)=>d.createElement("li",{key:n},e))))):null}function Za(e){var{disabled:n,inputRef:t,readOnly:r,value:a}=e,l=(0,v._T)(e,["disabled","inputRef","readOnly","value"]);const{error:i,state:s}=(0,be.c)();return d.createElement("input",Object.assign({disabled:void 0===n?!(!i&&!s.disabled):n,readOnly:r,ref:t,type:"submit"},a?{value:a}:{},(0,O.z)(l)))}var Wa=function e(n){class t extends(Ce.X.Quick(n)){getAutoField(){return Ra}getErrorsField(){return Ba}getSubmitField(){return Za}}return t.Quick=e,t}(La);var Ua=function e(n){class t extends(Ne.O.Validated(n)){}return t.Validated=e,t}(La),$a=Ua.Validated(Wa.Quick(La));var za=function e(n){class t extends(Ee.N.Auto(n)){}return t.Auto=e,t}($a);var Va=(0,C.e)((function(e){var{children:n,error:t,errorMessage:r}=e,a=(0,v._T)(e,["children","error","errorMessage"]);return t?d.createElement("div",Object.assign({},(0,O.z)(a)),n||r):null}),{initialValue:!1,kind:"leaf"});function Ka(e){var n,{value:t}=e,r=(0,v._T)(e,["value"]);const a=(0,z.U)(r.name,r,{initialValue:!1})[0];return(0,d.useEffect)((()=>{void 0!==t&&t!==a.value&&a.onChange(t)})),a.noDOM?null:d.createElement("input",Object.assign({disabled:a.disabled,name:a.name,readOnly:a.readOnly,ref:a.inputRef,type:"hidden",value:null!==(n=null!=t?t:a.value)&&void 0!==n?n:""},(0,O.z)(a)))}var qa=t(96614);const Qa=ll("AutoFields"),Ha=ll("AutoField"),Ja=ll("AutoForm"),Xa=(ll("BaseForm"),ll("BoolField"),ll("DateField"),ll("ErrorField")),Ga=ll("ErrorsField"),Ya=(ll("HiddenField"),ll("ListAddField"),ll("ListDelField"),ll("ListField"),ll("ListItemField"),ll("LongTextField")),el=(ll("NestField"),ll("NumField"),ll("QuickForm"),ll("RadioField"),ll("SelectField")),nl=ll("SubmitField"),tl=ll("TextField"),rl=(ll("ValidatedForm"),ll("ValidatedQuickForm"),{antd:r,bootstrap4:a,bootstrap5:l,material:i,mui:s,semantic:o,unstyled:c}),al=(0,d.createContext)("unstyled");function ll(e){return function(n){const t=(0,d.useContext)(al),r=rl[t][e];return d.createElement(r,(0,u.Z)({key:t},n))}}},37309:function(e,n,t){"use strict";t.d(n,{mB:function(){return u},nN:function(){return o},rh:function(){return c}});var r=t(14648),a=t.n(r),l=t(17728),i=t.n(l);const s=["preset","props","theme"],o=e=>i().compressToBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");function c(e){try{const n=a()(e,s),t=JSON.stringify(n),r=o(t),l="?"+encodeURIComponent(r);window.location.hash=l}catch(n){}}function u(){try{const n=document.location.hash.replace(/^#\?/,""),t=decodeURIComponent(n),r=(e=t,i().decompressFromBase64(e.replace(/-/g,"+").replace(/_/g,"/"))),l=JSON.parse(r??"");return a()(l,s)}catch(n){return{}}var e}},69403:function(e,n,t){"use strict";t.d(n,{M:function(){return m}});var r=t(27378),a=t(80912),l=t(86236),i=t.n(l),s=t(73633);const o=new(i())({allErrors:!0,useDefaults:!0,$data:!0});o.addKeyword("uniforms");const c={title:"Guest",type:"object",properties:{fullname:{type:"string"},email:{type:"string"},confirmEmail:{type:"string",const:{$data:"1/email"}},password:{type:"string",uniforms:{type:"password"}},confirmPassword:{type:"string",const:{$data:"1/password"},uniforms:{type:"password"}},acceptTermsOfUse:{type:"boolean",const:!0}},required:["fullname","email","confirmEmail","password","confirmPassword","acceptTermsOfUse"]};const u=function(e){const n=o.compile(e);return e=>{var t;return n(e),null!=(t=n.errors)&&t.length?{details:n.errors}:null}}(c),d=new s.j({schema:c,validator:u});function m(){return r.createElement(a.NE,{schema:d,onSubmit:e=>alert(JSON.stringify(e,null,2))})}},46264:function(e,n,t){"use strict";t.r(n),t.d(n,{assets:function(){return c},contentTitle:function(){return s},default:function(){return m},frontMatter:function(){return i},metadata:function(){return o},toc:function(){return u}});var r=t(25773),a=(t(27378),t(35318)),l=t(23197);const i={id:"examples-common-forms",title:"Common forms"},s=void 0,o={unversionedId:"examples-common-forms",id:"examples-common-forms",title:"Common forms",description:"Sign up",source:"@site/../docs/examples-common-forms.mdx",sourceDirName:".",slug:"/examples-common-forms",permalink:"/docs/examples-common-forms",draft:!1,tags:[],version:"current",frontMatter:{id:"examples-common-forms",title:"Common forms"},sidebar:"docs",previous:{title:"Creating a custom theme",permalink:"/docs/tutorials-creating-custom-theme"},next:{title:"Custom fields",permalink:"/docs/examples-custom-fields"}},c={},u=[{value:"<code>Sign up</code>",id:"sign-up",level:3}],d={toc:u};function m(e){let{components:n,...i}=e;return(0,a.kt)("wrapper",(0,r.Z)({},d,i,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("h3",{id:"sign-up"},(0,a.kt)("inlineCode",{parentName:"h3"},"Sign up")),(0,a.kt)(l.T,{code:t(26569),example:t(69403).M,schema:t(77066),mdxType:"ExampleCustomizer"}))}m.isMDXComponent=!0},4940:function(e,n){"use strict";n.Z={"center-if-sm":"center-if-sm_fQBP",padding:"padding_u3oQ",landing:"landing_JSVC","overflow-hidden":"overflow-hidden_pgKL","section-content":"section-content_dsyA",discussions:"discussions_nna8","floating-example":"floating-example_NeZB","system-window":"system-window_utQO","system-top-bar":"system-top-bar_ZKOK","system-top-bar-circle":"system-top-bar-circle_TDqe","showcase-card":"showcase-card_hJCa",footer:"footer_V71b",bullets:"bullets_YLT6","offset-column":"offset-column_Fx18","simple-yet-powerful-text":"simple-yet-powerful-text__cJc","fully-customizable-text":"fully-customizable-text_ka9o","reverse-wrap":"reverse-wrap_wEMw",example:"example_fVIp","preview-border":"preview-border_OFQs",preview:"preview_Ea2L","no-padding":"no-padding_WjVH","solid-border-box":"solid-border-box_A28F","green-accent":"green-accent_H4ZV","blue-accent":"blue-accent_R2MP",grid3x3:"grid3x3_yu8a",item3x3:"item3x3_dug1",company:"company_dMmf","border-dashed":"border-dashed_OHF8","border-gradient":"border-gradient_gHdq","border-disable-top-right":"border-disable-top-right_GH8c","border-disable-bottom-left":"border-disable-bottom-left_uiZP","arrow-button":"arrow-button_hF_x","left-arrow-button":"left-arrow-button_Zn9b","right-arrow-button":"right-arrow-button_J0NN",arrow:"arrow_d93H","carousel-container":"carousel-container_uFWT",carousel:"carousel_vfTV",testimonials:"testimonials__H4G","testimonials-pair-active":"testimonials-pair-active_W4Qz","testimonials-pair-inactive":"testimonials-pair-inactive_OeWi",testimonial:"testimonial_JqOm","testimonial-content":"testimonial-content_yyK0","testimonial-links-wrapper":"testimonial-links-wrapper_aCzC","testimonial-description":"testimonial-description_HpGg","testimonial-avatar":"testimonial-avatar_OiX2","section-heading":"section-heading_Wwdu","section-bgwhite":"section-bgwhite_xc3Y","section-bgwhite-block":"section-bgwhite-block_wuyP","section-bgwhite-block-left":"section-bgwhite-block-left_R077","section-bgwhite-block-right":"section-bgwhite-block-right_XL2o",logos:"logos_slhi",fluid:"fluid_k_Hd",whyus:"whyus_bBI7",oval:"oval_S291","link-icon-container":"link-icon-container_Iy8Z",white:"white_k7iJ","top-right-corner":"top-right-corner_hrD6",badges:"badges_sK0n","badge-number":"badge-number_FlCf",badge:"badge_Cv7E","badge-image":"badge-image_V8QJ","badge-centered":"badge-centered_Cl70","call-to-action":"call-to-action_fHoz","theme-icon":"theme-icon_VaE8",section:"section_SnfD","flex-center":"flex-center_VHPe","top-margin":"top-margin_xVhu","long-button":"long-button_efAi",text:"text_U9e4","text-big":"text-big_oDLV","text-huge":"text-huge_zgdY","heading-helper":"heading-helper_fnxq",heading:"heading_Tyjn","heading-white":"heading-white_SkAD",emphasis:"emphasis_T58q",paragraph:"paragraph_pxCb","section-subtitle":"section-subtitle_etM3","footer-heading":"footer-heading_wvTE",supported:"supported_k5lB",title:"title_L62U",description:"description_aTRG","commercial-bullets":"commercial-bullets_o7pP","commercial-box":"commercial-box_wLXy",vazco:"vazco_f6cf","form-wrapper":"form-wrapper_kccZ",playground:"playground_p2wD","playground-wrap":"playground-wrap_FoP6","playground-column":"playground-column_btgY","playground-toolbar":"playground-toolbar_jwg0",tabs:"tabs_DJzW",item:"item_Lknm",active:"active_R6La",toggler:"toggler_LMZW",header:"header_kKxo",tooltip:"tooltip_OOD_","tooltip-text":"tooltip-text_GGXA","toggler-tabs":"toggler-tabs_UzN0"}},95126:function(e,n,t){var r={"./af":1009,"./af.js":1009,"./ar":88769,"./ar-dz":23739,"./ar-dz.js":23739,"./ar-kw":93745,"./ar-kw.js":93745,"./ar-ly":99576,"./ar-ly.js":99576,"./ar-ma":67408,"./ar-ma.js":67408,"./ar-sa":48781,"./ar-sa.js":48781,"./ar-tn":87856,"./ar-tn.js":87856,"./ar.js":88769,"./az":2030,"./az.js":2030,"./be":56476,"./be.js":56476,"./bg":25304,"./bg.js":25304,"./bm":48125,"./bm.js":48125,"./bn":34,"./bn-bd":29835,"./bn-bd.js":29835,"./bn.js":34,"./bo":64082,"./bo.js":64082,"./br":8317,"./br.js":8317,"./bs":93107,"./bs.js":93107,"./ca":68272,"./ca.js":68272,"./cs":98567,"./cs.js":98567,"./cv":61583,"./cv.js":61583,"./cy":10076,"./cy.js":10076,"./da":31760,"./da.js":31760,"./de":8973,"./de-at":63214,"./de-at.js":63214,"./de-ch":74728,"./de-ch.js":74728,"./de.js":8973,"./dv":54053,"./dv.js":54053,"./el":7499,"./el.js":7499,"./en-au":67876,"./en-au.js":67876,"./en-ca":47010,"./en-ca.js":47010,"./en-gb":34239,"./en-gb.js":34239,"./en-ie":99830,"./en-ie.js":99830,"./en-il":28438,"./en-il.js":28438,"./en-in":25322,"./en-in.js":25322,"./en-nz":43264,"./en-nz.js":43264,"./en-sg":55449,"./en-sg.js":55449,"./eo":39486,"./eo.js":39486,"./es":32430,"./es-do":16310,"./es-do.js":16310,"./es-mx":27038,"./es-mx.js":27038,"./es-us":73099,"./es-us.js":73099,"./es.js":32430,"./et":34975,"./et.js":34975,"./eu":87063,"./eu.js":87063,"./fa":68073,"./fa.js":68073,"./fi":50957,"./fi.js":50957,"./fil":8764,"./fil.js":8764,"./fo":81775,"./fo.js":81775,"./fr":74179,"./fr-ca":14306,"./fr-ca.js":14306,"./fr-ch":73791,"./fr-ch.js":73791,"./fr.js":74179,"./fy":47014,"./fy.js":47014,"./ga":46911,"./ga.js":46911,"./gd":62958,"./gd.js":62958,"./gl":87344,"./gl.js":87344,"./gom-deva":33161,"./gom-deva.js":33161,"./gom-latn":35798,"./gom-latn.js":35798,"./gu":68485,"./gu.js":68485,"./he":27917,"./he.js":27917,"./hi":52159,"./hi.js":52159,"./hr":95842,"./hr.js":95842,"./hu":30005,"./hu.js":30005,"./hy-am":51312,"./hy-am.js":51312,"./id":60781,"./id.js":60781,"./is":64101,"./is.js":64101,"./it":43467,"./it-ch":4759,"./it-ch.js":4759,"./it.js":43467,"./ja":44164,"./ja.js":44164,"./jv":70079,"./jv.js":70079,"./ka":57036,"./ka.js":57036,"./kk":92022,"./kk.js":92022,"./km":63418,"./km.js":63418,"./kn":43655,"./kn.js":43655,"./ko":30986,"./ko.js":30986,"./ku":91902,"./ku.js":91902,"./ky":4604,"./ky.js":4604,"./lb":99026,"./lb.js":99026,"./lo":20537,"./lo.js":20537,"./lt":22288,"./lt.js":22288,"./lv":1495,"./lv.js":1495,"./me":60690,"./me.js":60690,"./mi":2571,"./mi.js":2571,"./mk":93959,"./mk.js":93959,"./ml":97225,"./ml.js":97225,"./mn":88,"./mn.js":88,"./mr":46622,"./mr.js":46622,"./ms":11070,"./ms-my":48899,"./ms-my.js":48899,"./ms.js":11070,"./mt":63931,"./mt.js":63931,"./my":95393,"./my.js":95393,"./nb":4274,"./nb.js":4274,"./ne":8914,"./ne.js":8914,"./nl":33114,"./nl-be":68479,"./nl-be.js":68479,"./nl.js":33114,"./nn":4513,"./nn.js":4513,"./oc-lnc":46549,"./oc-lnc.js":46549,"./pa-in":28264,"./pa-in.js":28264,"./pl":32848,"./pl.js":32848,"./pt":90899,"./pt-br":55077,"./pt-br.js":55077,"./pt.js":90899,"./ro":92512,"./ro.js":92512,"./ru":21753,"./ru.js":21753,"./sd":16840,"./sd.js":16840,"./se":78362,"./se.js":78362,"./si":50464,"./si.js":50464,"./sk":66324,"./sk.js":66324,"./sl":41963,"./sl.js":41963,"./sq":53039,"./sq.js":53039,"./sr":93454,"./sr-cyrl":10466,"./sr-cyrl.js":10466,"./sr.js":93454,"./ss":95158,"./ss.js":95158,"./sv":28859,"./sv.js":28859,"./sw":57594,"./sw.js":57594,"./ta":26915,"./ta.js":26915,"./te":15677,"./te.js":15677,"./tet":92154,"./tet.js":92154,"./tg":74098,"./tg.js":74098,"./th":89071,"./th.js":89071,"./tk":49381,"./tk.js":49381,"./tl-ph":1869,"./tl-ph.js":1869,"./tlh":92346,"./tlh.js":92346,"./tr":71483,"./tr.js":71483,"./tzl":30266,"./tzl.js":30266,"./tzm":33138,"./tzm-latn":32960,"./tzm-latn.js":32960,"./tzm.js":33138,"./ug-cn":29456,"./ug-cn.js":29456,"./uk":50805,"./uk.js":50805,"./ur":61127,"./ur.js":61127,"./uz":29628,"./uz-latn":80840,"./uz-latn.js":80840,"./uz.js":29628,"./vi":56962,"./vi.js":56962,"./x-pseudo":49257,"./x-pseudo.js":49257,"./yo":62423,"./yo.js":62423,"./zh-cn":61002,"./zh-cn.js":61002,"./zh-hk":6046,"./zh-hk.js":6046,"./zh-mo":36903,"./zh-mo.js":36903,"./zh-tw":24710,"./zh-tw.js":24710};function a(e){var n=l(e);return t(n)}function l(e){if(!t.o(r,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=l,e.exports=a,a.id=95126},26569:function(e,n,t){"use strict";t.r(n),n.default="import React from 'react';\nimport { AutoForm } from '../../lib/universal';\n\nimport { bridge as schema } from './SignUpSchema';\n\nexport function SignUp() {\n return (\n <AutoForm\n schema={schema}\n onSubmit={(model: any) => alert(JSON.stringify(model, null, 2))}\n />\n );\n}\n"},77066:function(e,n,t){"use strict";t.r(n),n.default="import Ajv from 'ajv';\nimport { JSONSchemaBridge } from 'uniforms-bridge-json-schema';\n\nconst ajv = new Ajv({ allErrors: true, useDefaults: true, $data: true });\najv.addKeyword('uniforms');\n\nconst schema = {\n title: 'Guest',\n type: 'object',\n properties: {\n fullname: { type: 'string' },\n email: { type: 'string' },\n confirmEmail: { type: 'string', const: { $data: '1/email' } },\n password: {\n type: 'string',\n uniforms: { type: 'password' },\n },\n confirmPassword: {\n type: 'string',\n const: { $data: '1/password' },\n uniforms: { type: 'password' },\n },\n acceptTermsOfUse: { type: 'boolean', const: true },\n },\n required: [\n 'fullname',\n 'email',\n 'confirmEmail',\n 'password',\n 'confirmPassword',\n 'acceptTermsOfUse',\n ],\n};\n\nfunction createValidator(schema: object) {\n const validator = ajv.compile(schema);\n\n return (model: object) => {\n validator(model);\n return validator.errors?.length ? { details: validator.errors } : null;\n };\n}\n\nconst validator = createValidator(schema);\n\nexport const bridge = new JSONSchemaBridge({ schema, validator });\n"}}]); \ No newline at end of file diff --git a/assets/js/f8759e1b.60422fe5.js b/assets/js/f8759e1b.60422fe5.js new file mode 100644 index 000000000..271950f0c --- /dev/null +++ b/assets/js/f8759e1b.60422fe5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[269],{35318:function(e,t,n){n.d(t,{Zo:function(){return s},kt:function(){return k}});var a=n(27378);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=a.createContext({}),d=function(e){var t=a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},s=function(e){var t=d(e.components);return a.createElement(p.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},c=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,i=e.originalType,p=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),c=d(n),k=r,u=c["".concat(p,".").concat(k)]||c[k]||m[k]||i;return n?a.createElement(u,l(l({ref:t},s),{},{components:n})):a.createElement(u,l({ref:t},s))}));function k(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var i=n.length,l=new Array(i);l[0]=c;var o={};for(var p in t)hasOwnProperty.call(t,p)&&(o[p]=t[p]);o.originalType=e,o.mdxType="string"==typeof e?e:r,l[1]=o;for(var d=2;d<i;d++)l[d]=n[d];return a.createElement.apply(null,l)}return a.createElement.apply(null,n)}c.displayName="MDXCreateElement"},15890:function(e,t,n){n.r(t),n.d(t,{assets:function(){return p},contentTitle:function(){return l},default:function(){return m},frontMatter:function(){return i},metadata:function(){return o},toc:function(){return d}});var a=n(25773),r=(n(27378),n(35318));const i={id:"api-helpers",title:"Helpers"},l=void 0,o={unversionedId:"api-helpers",id:"api-helpers",title:"Helpers",description:"connectField",source:"@site/../docs/api-helpers.md",sourceDirName:".",slug:"/api-helpers",permalink:"/docs/api-helpers",draft:!1,tags:[],version:"current",frontMatter:{id:"api-helpers",title:"Helpers"},sidebar:"docs",previous:{title:"Context data",permalink:"/docs/api-context-data"},next:{title:"AutoField algorithm",permalink:"/docs/uth-autofield-algorithm"}},p={},d=[{value:"<code>connectField</code>",id:"connectfield",level:2},{value:"Field kinds",id:"field-kinds",level:3},{value:"Props merging order",id:"props-merging-order",level:3},{value:"<code>changedKeys</code>",id:"changedkeys",level:2},{value:"<code>filterDOMProps</code>",id:"filterdomprops",level:2},{value:"Custom props registration",id:"custom-props-registration",level:3},{value:"<code>joinName</code>",id:"joinname",level:2},{value:"<code>randomIds</code>",id:"randomids",level:2},{value:"<code>useForm</code>",id:"useform",level:2},{value:"<code>useField</code>",id:"usefield",level:2}],s={toc:d};function m(e){let{components:t,...n}=e;return(0,r.kt)("wrapper",(0,a.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h2",{id:"connectfield"},(0,r.kt)("inlineCode",{parentName:"h2"},"connectField")),(0,r.kt)("p",null,"Provides form management related props. The ",(0,r.kt)("inlineCode",{parentName:"p"},"connectField")," helper is a component wrapper (higher order component, HOC), that provides various props related to the form management. It also adds the ",(0,r.kt)("inlineCode",{parentName:"p"},"Field")," suffix to the name of the wrapped component."),(0,r.kt)("p",null,"The table below lists all of the ",(0,r.kt)("strong",{parentName:"p"},"guaranteed")," props that will be passed to the wrapped component:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Type"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"changed")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"boolean")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Has field changed?")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"disabled")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"boolean")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Is field disabled?")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"error")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"object")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field scoped part of validation error.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"errorMessage")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"string")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field scoped validation error message.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"field")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"object")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field definition from schema.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"fields")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"arrayOf(string)")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Subfields names.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"fieldType")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"func")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field type.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"id")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"string")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field id - given or random.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"label")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"string")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field label.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"name")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"string")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field name.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"onChange")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"func(value, [name])")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Change field value.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"placeholder")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"string")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field placeholder.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"readOnly")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"boolean")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Is field read-only?")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"showInlineError")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"boolean")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Show inline error?")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"value")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"any")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Field value.")))),(0,r.kt)("p",null,"The ",(0,r.kt)("inlineCode",{parentName:"p"},"connectField")," function accepts two arguments: the first one is a component and the second one is an ",(0,r.kt)("inlineCode",{parentName:"p"},"options")," object."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"function Example(props) {\n /* ... */\n}\n\nconst ExampleField = connectField(Example, options);\n")),(0,r.kt)("p",null,"The table below lists all available options:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Type"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"initialValue")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"boolean")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Initial value check. If ",(0,r.kt)("inlineCode",{parentName:"td"},"true"),", then after the first render the default value is set as value if no value is provided (",(0,r.kt)("inlineCode",{parentName:"td"},"undefined"),").")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"kind")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"'leaf'")," or ",(0,r.kt)("inlineCode",{parentName:"td"},"'node'")),(0,r.kt)("td",{parentName:"tr",align:"center"},"See ",(0,r.kt)("a",{parentName:"td",href:"#field-kinds"},"Field kinds"),".")))),(0,r.kt)("h3",{id:"field-kinds"},"Field kinds"),(0,r.kt)("p",null,"Every field is either a ",(0,r.kt)("em",{parentName:"p"},"leaf")," or ",(0,r.kt)("em",{parentName:"p"},"node")," field. In the future, we could introduce new kinds to enable even more optimizations."),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("em",{parentName:"li"},"Leaf")," fields cannot have subfields. This allows us to perform some optimizations, like skipping the extra ",(0,r.kt)("inlineCode",{parentName:"li"},"Provider")," from ",(0,r.kt)("inlineCode",{parentName:"li"},"connectField"),", effectively reducing the overhead down to a single ",(0,r.kt)("inlineCode",{parentName:"li"},"useField")," call.",(0,r.kt)("ul",{parentName:"li"},(0,r.kt)("li",{parentName:"ul"},"It includes all input fields, like ",(0,r.kt)("inlineCode",{parentName:"li"},"NumField"),", ",(0,r.kt)("inlineCode",{parentName:"li"},"SelectField")," or ",(0,r.kt)("inlineCode",{parentName:"li"},"TextField"),"."))),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("em",{parentName:"li"},"Node")," fields can have subfields. Fields of the ",(0,r.kt)("em",{parentName:"li"},"leaf")," kind cannot have subfields.",(0,r.kt)("ul",{parentName:"li"},(0,r.kt)("li",{parentName:"ul"},"It includes all combined and layout fields, like ",(0,r.kt)("inlineCode",{parentName:"li"},"ListField")," or ",(0,r.kt)("inlineCode",{parentName:"li"},"NestField"),".")))),(0,r.kt)("p",null,"If you are not sure which one to use, do not use the ",(0,r.kt)("inlineCode",{parentName:"p"},"kind")," option at all - it'll default to the safest option (right now it's ",(0,r.kt)("inlineCode",{parentName:"p"},"node"),")."),(0,r.kt)("h3",{id:"props-merging-order"},"Props merging order"),(0,r.kt)("p",null,"The resulting props of a field are a merge of the props that uniforms provide, the ones coming from the bridge (schema) and finally the actual field props. For the exact ordering, please refer to the ",(0,r.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/blob/master/packages/uniforms/src/useField.tsx"},"source of ",(0,r.kt)("inlineCode",{parentName:"a"},"useField")," hook"),". Overall, it looks as follows:"),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},"uniforms props (e.g., ",(0,r.kt)("inlineCode",{parentName:"li"},"changed"),", ",(0,r.kt)("inlineCode",{parentName:"li"},"onChange"),", ",(0,r.kt)("inlineCode",{parentName:"li"},"value"),")."),(0,r.kt)("li",{parentName:"ol"},"uniforms state (as defined in ",(0,r.kt)("a",{parentName:"li",href:"/docs/api-context-data/#state"},"context data"),")."),(0,r.kt)("li",{parentName:"ol"},"bridge props (depending on the schema)"),(0,r.kt)("li",{parentName:"ol"},"field props (only when rendered directly)")),(0,r.kt)("p",null,"That's important, as using empty values in the schema or field props, like ",(0,r.kt)("inlineCode",{parentName:"p"},"undefined"),", will be merged as well. See ",(0,r.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/issues/1094"},"#1094")," for more context as well as an example of a potential pitfall."),(0,r.kt)("h2",{id:"changedkeys"},(0,r.kt)("inlineCode",{parentName:"h2"},"changedKeys")),(0,r.kt)("p",null,"Returns an array of changed keys between ",(0,r.kt)("inlineCode",{parentName:"p"},"valueA")," and ",(0,r.kt)("inlineCode",{parentName:"p"},"valueB"),", where ",(0,r.kt)("inlineCode",{parentName:"p"},"root")," is the root key. For examples see ",(0,r.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/blob/master/packages/uniforms/__tests__/changedKeys.ts"},(0,r.kt)("inlineCode",{parentName:"a"},"changedKeys")," tests"),"."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { changedKeys } from 'uniforms';\n\nchangedKeys('a', { b: 1, c: 2 }, { b: 1 }); // ['a', 'a.c']\n")),(0,r.kt)("h2",{id:"filterdomprops"},(0,r.kt)("inlineCode",{parentName:"h2"},"filterDOMProps")),(0,r.kt)("p",null,"Removes all uniforms-related props, registered with ",(0,r.kt)("inlineCode",{parentName:"p"},"filterDOMProps.register"),". Use it in all places where you'd like to pass all unrelated props down and ",(0,r.kt)("inlineCode",{parentName:"p"},"useField")," or ",(0,r.kt)("inlineCode",{parentName:"p"},"connectField")," provide you with the props."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { filterDOMProps } from 'uniforms';\n\nconst filteredProps = filterDOMProps(props);\n")),(0,r.kt)("h3",{id:"custom-props-registration"},"Custom props registration"),(0,r.kt)("p",null,"It's often the case that your custom components will have a bunch of known properties, like ",(0,r.kt)("inlineCode",{parentName:"p"},"locale")," or ",(0,r.kt)("inlineCode",{parentName:"p"},"userType"),". To ease the process of using them across the project, you can register them to make ",(0,r.kt)("inlineCode",{parentName:"p"},"filterDOMProps")," remove them as well. For example, ",(0,r.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/blob/master/packages/uniforms-bridge-simple-schema/src/register.ts"},(0,r.kt)("inlineCode",{parentName:"a"},"SimpleSchemaBridge"))," registers all of the SimpleSchema-specific options."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { filterDOMProps } from 'uniforms';\n\nfilterDOMProps({ example: 42 }); // { example: 42 }\nfilterDOMProps.registered.includes('example'); // false\nfilterDOMProps.register('example');\nfilterDOMProps.registered.includes('example'); // true\nfilterDOMProps({ example: 42 }); // {}\n")),(0,r.kt)("p",null,"As ",(0,r.kt)("inlineCode",{parentName:"p"},"filterDOMProps")," is fully typed, if you'd like to make it work with TypeScript, you have to extend the ",(0,r.kt)("inlineCode",{parentName:"p"},"FilterDOMProps")," interface as well."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"declare module 'uniforms' {\n interface FilterDOMProps {\n propA: never;\n propB: never;\n }\n}\n\nfilterDOMProps.register('propA', 'propB');\n")),(0,r.kt)("h2",{id:"joinname"},(0,r.kt)("inlineCode",{parentName:"h2"},"joinName")),(0,r.kt)("p",null,"Safely joins partial field names.\nIf you create a custom field with subfields, do use ",(0,r.kt)("inlineCode",{parentName:"p"},"joinName")," instead of manually concatenating them.\nIt ensures that the name will be correctly escaped if needed."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { joinName } from 'uniforms';\n\njoinName('array', 1, 'field'); // 'array.1.field'\njoinName('object', 'nested.property'); // 'object.nested.property'\n")),(0,r.kt)("p",null,"If the first argument is ",(0,r.kt)("inlineCode",{parentName:"p"},"null"),", then it returns an array of escaped parts."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { joinName } from 'uniforms';\n\njoinName(null, 'array', 1, 'field'); // ['array', '1', 'field']\njoinName(null, 'object', 'nested.property'); // ['object', 'nested', 'property']\n")),(0,r.kt)("p",null,"If the field name contains a dot (",(0,r.kt)("inlineCode",{parentName:"p"},"."),") or a bracket (",(0,r.kt)("inlineCode",{parentName:"p"},"[")," or ",(0,r.kt)("inlineCode",{parentName:"p"},"]"),"), it has to be escaped with ",(0,r.kt)("inlineCode",{parentName:"p"},'["..."]'),".\nIf any of these characters is not escaped, ",(0,r.kt)("inlineCode",{parentName:"p"},"joinName")," will ",(0,r.kt)("strong",{parentName:"p"},"not")," throw an error but its behavior is not specified.\nThe escape of any other name part will be stripped."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"joinName(null, 'object[\"with.dot\"].field'); // ['object', '[\"with.dot\"]', 'field']\njoinName('object[\"with.dot\"].field'); // 'object[\"with.dot\"].field'\n\njoinName(null, 'this[\"is\"].safe'); // ['this', 'is', 'safe']\njoinName('this[\"is\"].safe'); // 'this.is.safe'\n")),(0,r.kt)("p",null,"For more examples check ",(0,r.kt)("a",{parentName:"p",href:"https://github.com/vazco/uniforms/blob/master/packages/uniforms/__tests__/joinName.ts"},(0,r.kt)("inlineCode",{parentName:"a"},"joinName")," tests"),"."),(0,r.kt)("h2",{id:"randomids"},(0,r.kt)("inlineCode",{parentName:"h2"},"randomIds")),(0,r.kt)("p",null,"Generates random ID, based on given prefix. Use it, if you want to have random but deterministic strings. If no prefix is provided, a unique ",(0,r.kt)("inlineCode",{parentName:"p"},"uniforms-X")," prefix will be used generated."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { randomIds } from 'uniforms';\n\nconst randomId1 = randomIds();\nrandomId1(); // uniforms-0000-0000\nrandomId1(); // uniforms-0000-0001\nrandomId1(); // uniforms-0000-0002\n\nconst randomId2 = randomIds();\nrandomId2(); // uniforms-0001-0000\nrandomId2(); // uniforms-0001-0001\nrandomId2(); // uniforms-0001-0002\n\nconst randomId3 = randomIds('prefix');\nrandomId3(); // prefix-0000\nrandomId3(); // prefix-0001\nrandomId3(); // prefix-0002\n")),(0,r.kt)("h2",{id:"useform"},(0,r.kt)("inlineCode",{parentName:"h2"},"useForm")),(0,r.kt)("p",null,"A direct way of accessing the ",(0,r.kt)("a",{parentName:"p",href:"/docs/api-context-data/#state"},"context data"),":"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { useForm } from 'uniforms';\n\nfunction Example() {\n const context = useForm();\n}\n")),(0,r.kt)("h2",{id:"usefield"},(0,r.kt)("inlineCode",{parentName:"h2"},"useField")),(0,r.kt)("p",null,"A hook version of ",(0,r.kt)("a",{parentName:"p",href:"#connectfield"},(0,r.kt)("inlineCode",{parentName:"a"},"connectField")),". It receives three arguments: field name (",(0,r.kt)("inlineCode",{parentName:"p"},"string"),"), field props (",(0,r.kt)("inlineCode",{parentName:"p"},"object"),"), and optional options."),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"function Example(props) {\n const [fieldProps, context] = useField(props.name, props, options);\n return <input {...filterDOMProps(fieldProps)} />;\n}\n")),(0,r.kt)("p",null,"The table below lists all available options:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:"center"},"Name"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Type"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Default"),(0,r.kt)("th",{parentName:"tr",align:"center"},"Description"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"absoluteName")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"boolean")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"false")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Whether the field name should be treated as a top-level one, ignoring parent fields.")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"initialValue")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"boolean")),(0,r.kt)("td",{parentName:"tr",align:"center"},(0,r.kt)("inlineCode",{parentName:"td"},"true")),(0,r.kt)("td",{parentName:"tr",align:"center"},"Initial value check. If ",(0,r.kt)("inlineCode",{parentName:"td"},"true"),", then after the first render the default value is set as value if no value is provided (",(0,r.kt)("inlineCode",{parentName:"td"},"undefined"),").")))),(0,r.kt)("p",null,"Using ",(0,r.kt)("inlineCode",{parentName:"p"},"useField")," allows you to create components that combine values of multiple fields:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-tsx"},"import { useField } from 'uniforms';\n\nfunction ArePasswordsEqual() {\n const [{ value: passwordA }] = useField('passwordA', {});\n const [{ value: passwordB }] = useField('passwordB', {});\n const areEqual = passwordA === passwordB;\n return <div>{`Passwords are ${areEqual ? 'equal' : 'not equal'}`}</div>;\n}\n")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/main.7dd9665c.js b/assets/js/main.7dd9665c.js new file mode 100644 index 000000000..c7b1e7161 --- /dev/null +++ b/assets/js/main.7dd9665c.js @@ -0,0 +1,2 @@ +/*! For license information please see main.7dd9665c.js.LICENSE.txt */ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[179],{56573:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(27378);function a(){return r.createElement("svg",{width:"20",height:"20",className:"DocSearch-Search-Icon",viewBox:"0 0 20 20"},r.createElement("path",{d:"M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z",stroke:"currentColor",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}))}},67909:function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var l=n(27378),s=n(23615),u=[],c=[];function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function f(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(r){var a=d(e[r]);a.loading?t.loading=!0:(t.loaded[r]=a.loaded,t.error=a.error),n.push(a.promise),a.promise.then((function(e){t.loaded[r]=e})).catch((function(e){t.error=e}))}))}catch(r){t.error=r}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function p(e,t){return l.createElement((n=e)&&n.__esModule?n.default:n,t);var n}function m(e,t){var d,f;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var m=i({loader:null,loading:null,delay:200,timeout:null,render:p,webpack:null,modules:null},t),h=null;function g(){return h||(h=e(m.loader)),h.promise}return u.push(g),"function"==typeof m.webpack&&c.push((function(){if((0,m.webpack)().every((function(e){return void 0!==e&&void 0!==n.m[e]})))return g()})),f=d=function(t){function n(n){var r;return o(a(a(r=t.call(this,n)||this)),"retry",(function(){r.setState({error:null,loading:!0,timedOut:!1}),h=e(m.loader),r._loadModule()})),g(),r.state={error:h.error,pastDelay:!1,timedOut:!1,loading:h.loading,loaded:h.loaded},r}r(n,t),n.preload=function(){return g()};var i=n.prototype;return i.UNSAFE_componentWillMount=function(){this._loadModule()},i.componentDidMount=function(){this._mounted=!0},i._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(m.modules)&&m.modules.forEach((function(t){e.context.loadable.report(t)})),h.loading){var t=function(t){e._mounted&&e.setState(t)};"number"==typeof m.delay&&(0===m.delay?this.setState({pastDelay:!0}):this._delay=setTimeout((function(){t({pastDelay:!0})}),m.delay)),"number"==typeof m.timeout&&(this._timeout=setTimeout((function(){t({timedOut:!0})}),m.timeout));var n=function(){t({error:h.error,loaded:h.loaded,loading:h.loading}),e._clearTimeouts()};h.promise.then((function(){return n(),null})).catch((function(e){return n(),null}))}},i.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},i._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},i.render=function(){return this.state.loading||this.state.error?l.createElement(m.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?m.render(this.state.loaded,this.props):null},n}(l.Component),o(d,"contextTypes",{loadable:s.shape({report:s.func.isRequired})}),f}function h(e){return m(d,e)}h.Map=function(e){if("function"!=typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return m(f,e)};var g=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getChildContext=function(){return{loadable:{report:this.props.report}}},n.render=function(){return l.Children.only(this.props.children)},t}(l.Component);function v(e){for(var t=[];e.length;){var n=e.pop();t.push(n())}return Promise.all(t).then((function(){if(e.length)return v(e)}))}o(g,"propTypes",{report:s.func.isRequired}),o(g,"childContextTypes",{loadable:s.shape({report:s.func.isRequired}).isRequired}),h.Capture=g,h.preloadAll=function(){return new Promise((function(e,t){v(u).then(e,t)}))},h.preloadReady=function(){return new Promise((function(e,t){v(c).then(e,e)}))},e.exports=h},23427:function(e,t,n){"use strict";n.d(t,{_:function(){return a},t:function(){return o}});var r=n(27378);const a=r.createContext(!1);function o(e){let{children:t}=e;const[n,o]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{o(!0)}),[]),r.createElement(a.Provider,{value:n},t)}},93375:function(e,t,n){"use strict";var r=n(27378),a=n(31542),o=n(4289),i=n(92883),l=n(161),s=[n(89883),n(86945),n(70142),n(23815),n(54374),n(41111),n(5321)],u=n(76623),c=n(3620),d=n(95473);function f(e){let{children:t}=e;return r.createElement(r.Fragment,null,t)}var p=n(25773),m=n(7092),h=n(50353),g=n(98948),v=n(20624),b=n(98831),y=n(43714),w=n(70174),k=n(13149),E=n(60505);function S(){const{i18n:{defaultLocale:e,localeConfigs:t}}=(0,h.Z)(),n=(0,y.l)();return r.createElement(m.Z,null,Object.entries(t).map((e=>{let[t,{htmlLang:a}]=e;return r.createElement("link",{key:t,rel:"alternate",href:n.createUrl({locale:t,fullyQualified:!0}),hrefLang:a})})),r.createElement("link",{rel:"alternate",href:n.createUrl({locale:e,fullyQualified:!0}),hrefLang:"x-default"}))}function x(e){let{permalink:t}=e;const{siteConfig:{url:n}}=(0,h.Z)(),a=function(){const{siteConfig:{url:e}}=(0,h.Z)(),{pathname:t}=(0,c.TH)();return e+(0,g.Z)(t)}(),o=t?`${n}${t}`:a;return r.createElement(m.Z,null,r.createElement("meta",{property:"og:url",content:o}),r.createElement("link",{rel:"canonical",href:o}))}function C(){const{i18n:{currentLocale:e}}=(0,h.Z)(),{metadata:t,image:n}=(0,v.L)();return r.createElement(r.Fragment,null,r.createElement(m.Z,null,r.createElement("meta",{name:"twitter:card",content:"summary_large_image"}),r.createElement("body",{className:w.h})),n&&r.createElement(b.d,{image:n}),r.createElement(x,null),r.createElement(S,null),r.createElement(E.Z,{tag:k.HX,locale:e}),r.createElement(m.Z,null,t.map(((e,t)=>r.createElement("meta",(0,p.Z)({key:t},e))))))}const T=new Map;function _(e){if(T.has(e.pathname))return{...e,pathname:T.get(e.pathname)};if((0,d.f)(u.Z,e.pathname).some((e=>{let{route:t}=e;return!0===t.exact})))return T.set(e.pathname,e.pathname),e;const t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return T.set(e.pathname,t),{...e,pathname:t}}var A=n(23427),R=n(83340);function L(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const a=s.map((t=>{var r;const a=(null==(r=t.default)?void 0:r[e])??t[e];return null==a?void 0:a(...n)}));return()=>a.forEach((e=>null==e?void 0:e()))}var P=function(e){let{children:t,location:n,previousLocation:a}=e;return(0,r.useLayoutEffect)((()=>{a!==n&&(a&&function(e){const{hash:t}=e;if(t){const e=decodeURIComponent(t.substring(1)),n=document.getElementById(e);null==n||n.scrollIntoView()}else window.scrollTo(0,0)}(n),L("onRouteDidUpdate",{previousLocation:a,location:n}))}),[a,n]),t};function O(e){const t=Array.from(new Set([e,decodeURI(e)])).map((e=>(0,d.f)(u.Z,e))).flat();return Promise.all(t.map((e=>null==e.route.component.preload?void 0:e.route.component.preload())))}class N extends r.Component{constructor(e){super(e),this.previousLocation=void 0,this.routeUpdateCleanupCb=void 0,this.previousLocation=null,this.routeUpdateCleanupCb=l.Z.canUseDOM?L("onRouteUpdate",{previousLocation:null,location:this.props.location}):()=>{},this.state={nextRouteHasLoaded:!0}}shouldComponentUpdate(e,t){if(e.location===this.props.location)return t.nextRouteHasLoaded;const n=e.location;return this.previousLocation=this.props.location,this.setState({nextRouteHasLoaded:!1}),this.routeUpdateCleanupCb=L("onRouteUpdate",{previousLocation:this.previousLocation,location:n}),O(n.pathname).then((()=>{this.routeUpdateCleanupCb(),this.setState({nextRouteHasLoaded:!0})})).catch((e=>{console.warn(e),window.location.reload()})),!1}render(){const{children:e,location:t}=this.props;return r.createElement(P,{previousLocation:this.previousLocation,location:t},r.createElement(c.AW,{location:t,render:()=>e}))}}var I=N;const D="docusaurus-base-url-issue-banner-container",M="docusaurus-base-url-issue-banner-suggestion-container",F="__DOCUSAURUS_INSERT_BASEURL_BANNER";function B(e){return`\nwindow['${F}'] = true;\n\ndocument.addEventListener('DOMContentLoaded', maybeInsertBanner);\n\nfunction maybeInsertBanner() {\n var shouldInsert = window['${F}'];\n shouldInsert && insertBanner();\n}\n\nfunction insertBanner() {\n var bannerContainer = document.getElementById('${D}');\n if (!bannerContainer) {\n return;\n }\n var bannerHtml = ${JSON.stringify(function(e){return`\n<div id="docusaurus-base-url-issue-banner" style="border: thick solid red; background-color: rgb(255, 230, 179); margin: 20px; padding: 20px; font-size: 20px;">\n <p style="font-weight: bold; font-size: 30px;">Your Docusaurus site did not load properly.</p>\n <p>A very common reason is a wrong site <a href="https://docusaurus.io/docs/docusaurus.config.js/#baseurl" style="font-weight: bold;">baseUrl configuration</a>.</p>\n <p>Current configured baseUrl = <span style="font-weight: bold; color: red;">${e}</span> ${"/"===e?" (default value)":""}</p>\n <p>We suggest trying baseUrl = <span id="${M}" style="font-weight: bold; color: green;"></span></p>\n</div>\n`}(e)).replace(/</g,"\\<")};\n bannerContainer.innerHTML = bannerHtml;\n var suggestionContainer = document.getElementById('${M}');\n var actualHomePagePath = window.location.pathname;\n var suggestedBaseUrl = actualHomePagePath.substr(-1) === '/'\n ? actualHomePagePath\n : actualHomePagePath + '/';\n suggestionContainer.innerHTML = suggestedBaseUrl;\n}\n`}function j(){const{siteConfig:{baseUrl:e}}=(0,h.Z)();return(0,r.useLayoutEffect)((()=>{window[F]=!1}),[]),r.createElement(r.Fragment,null,!l.Z.canUseDOM&&r.createElement(m.Z,null,r.createElement("script",null,B(e))),r.createElement("div",{id:D}))}function z(){const{siteConfig:{baseUrl:e,baseUrlIssueBanner:t}}=(0,h.Z)(),{pathname:n}=(0,c.TH)();return t&&n===e?r.createElement(j,null):null}function U(){const{siteConfig:{favicon:e,title:t,noIndex:n},i18n:{currentLocale:a,localeConfigs:o}}=(0,h.Z)(),i=(0,g.Z)(e),{htmlLang:l,direction:s}=o[a];return r.createElement(m.Z,null,r.createElement("html",{lang:l,dir:s}),r.createElement("title",null,t),r.createElement("meta",{property:"og:title",content:t}),r.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),n&&r.createElement("meta",{name:"robots",content:"noindex, nofollow"}),e&&r.createElement("link",{rel:"icon",href:i}))}var $=n(46293);function q(){const e=(0,d.H)(u.Z),t=(0,c.TH)();return r.createElement($.Z,null,r.createElement(R.M,null,r.createElement(A.t,null,r.createElement(f,null,r.createElement(U,null),r.createElement(C,null),r.createElement(z,null),r.createElement(I,{location:_(t)},e)))))}var G=n(16887);const H=function(e){try{return document.createElement("link").relList.supports(e)}catch{return!1}}("prefetch")?function(e){return new Promise(((t,n)=>{var r;if("undefined"==typeof document)return void n();const a=document.createElement("link");a.setAttribute("rel","prefetch"),a.setAttribute("href",e),a.onload=()=>t(),a.onerror=()=>n();const o=document.getElementsByTagName("head")[0]??(null==(r=document.getElementsByName("script")[0])?void 0:r.parentNode);null==o||o.appendChild(a)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=()=>{200===r.status?t():n()},r.send(null)}))};var Z=n(13361);const V=new Set,W=new Set,K=()=>{var e,t;return(null==(e=navigator.connection)?void 0:e.effectiveType.includes("2g"))||(null==(t=navigator.connection)?void 0:t.saveData)},Y={prefetch(e){if(!(e=>!K()&&!W.has(e)&&!V.has(e))(e))return!1;V.add(e);const t=(0,d.f)(u.Z,e).flatMap((e=>{return t=e.route.path,Object.entries(G).filter((e=>{let[n]=e;return n.replace(/-[^-]+$/,"")===t})).flatMap((e=>{let[,t]=e;return Object.values((0,Z.Z)(t))}));var t}));return Promise.all(t.map((e=>{const t=n.gca(e);return t&&!t.includes("undefined")?H(t).catch((()=>{})):Promise.resolve()})))},preload(e){return!!(e=>!K()&&!W.has(e))(e)&&(W.add(e),O(e))}};var Q=Object.freeze(Y);if(l.Z.canUseDOM){window.docusaurus=Q;const e=a.hydrate;O(window.location.pathname).then((()=>{e(r.createElement(i.B6,null,r.createElement(o.VK,null,r.createElement(q,null))),document.getElementById("__docusaurus"))}))}},83340:function(e,t,n){"use strict";n.d(t,{_:function(){return c},M:function(){return d}});var r=n(27378),a=n(36809),o=JSON.parse('{"docusaurus-plugin-google-gtag":{"default":{"trackingID":"GTM-5RFDRMB","anonymizeIP":false,"id":"default"}},"docusaurus-plugin-content-docs":{"default":{"path":"/docs","versions":[{"name":"current","label":"Next","isLast":true,"path":"/docs","mainDocId":"what-are-uniforms","docs":[{"id":"api-bridges","path":"/docs/api-bridges","sidebar":"docs"},{"id":"api-context-data","path":"/docs/api-context-data","sidebar":"docs"},{"id":"api-fields","path":"/docs/api-fields","sidebar":"docs"},{"id":"api-forms","path":"/docs/api-forms","sidebar":"docs"},{"id":"api-helpers","path":"/docs/api-helpers","sidebar":"docs"},{"id":"compare-matrix","path":"/docs/compare-matrix","sidebar":"docs"},{"id":"compare-matrix-landing","path":"/docs/compare-matrix-landing"},{"id":"examples-common-forms","path":"/docs/examples-common-forms","sidebar":"docs"},{"id":"examples-custom-bridge","path":"/docs/examples-custom-bridge","sidebar":"docs"},{"id":"examples-custom-fields","path":"/docs/examples-custom-fields","sidebar":"docs"},{"id":"examples-custom-form","path":"/docs/examples-custom-form","sidebar":"docs"},{"id":"faq","path":"/docs/faq","sidebar":"docs"},{"id":"installation","path":"/docs/installation","sidebar":"docs"},{"id":"migrating-2-to-3","path":"/docs/migrating-2-to-3","sidebar":"docs"},{"id":"migrating-3-to-4","path":"/docs/migrating-3-to-4","sidebar":"docs"},{"id":"motivation","path":"/docs/motivation","sidebar":"docs"},{"id":"tutorials-basic-uniforms-usage","path":"/docs/tutorials-basic-uniforms-usage","sidebar":"docs"},{"id":"tutorials-creating-custom-field","path":"/docs/tutorials-creating-custom-field","sidebar":"docs"},{"id":"tutorials-creating-custom-theme","path":"/docs/tutorials-creating-custom-theme","sidebar":"docs"},{"id":"tutorials-customizing-your-form-layout","path":"/docs/tutorials-customizing-your-form-layout","sidebar":"docs"},{"id":"tutorials-using-predefined-fields","path":"/docs/tutorials-using-predefined-fields","sidebar":"docs"},{"id":"uth-autofield-algorithm","path":"/docs/uth-autofield-algorithm","sidebar":"docs"},{"id":"uth-bridge-concept","path":"/docs/uth-bridge-concept","sidebar":"docs"},{"id":"what-are-uniforms","path":"/docs/what-are-uniforms","sidebar":"docs"},{"id":"why-are-uniforms","path":"/docs/why-are-uniforms"}],"draftIds":[],"sidebars":{"docs":{"link":{"path":"/docs/what-are-uniforms","label":"what-are-uniforms"}}}}],"breadcrumbs":true}}}'),i=JSON.parse('{"defaultLocale":"en","locales":["en"],"path":"i18n","currentLocale":"en","localeConfigs":{"en":{"label":"English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"}}}'),l=n(57529),s=JSON.parse('{"docusaurusVersion":"2.1.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"2.1.0"},"docusaurus-plugin-content-blog":{"type":"package","name":"@docusaurus/plugin-content-blog","version":"2.1.0"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"2.1.0"},"docusaurus-plugin-google-analytics":{"type":"package","name":"@docusaurus/plugin-google-analytics","version":"2.1.0"},"docusaurus-plugin-google-gtag":{"type":"package","name":"@docusaurus/plugin-google-gtag","version":"2.1.0"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"2.1.0"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"2.1.0"},"docusaurus-theme-search-algolia":{"type":"package","name":"@docusaurus/theme-search-algolia","version":"2.1.0"},"docusaurus-plugin-hotjar":{"type":"package","name":"@docusaurus/plugin-hotjar","version":"2.1.0"}}}');const u={siteConfig:a.default,siteMetadata:s,globalData:o,i18n:i,codeTranslations:l},c=r.createContext(u);function d(e){let{children:t}=e;return r.createElement(c.Provider,{value:u},t)}},46293:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(27378),a=n(161),o=n(7092),i=n(38703);function l(e){let{error:t,tryAgain:n}=e;return r.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"50vh",width:"100%",fontSize:"20px"}},r.createElement("h1",null,"This page crashed."),r.createElement("p",null,t.message),r.createElement("button",{type:"button",onClick:n},"Try again"))}function s(e){let{error:t,tryAgain:n}=e;return r.createElement(c,{fallback:()=>r.createElement(l,{error:t,tryAgain:n})},r.createElement(o.Z,null,r.createElement("title",null,"Page Error")),r.createElement(i.Z,null,r.createElement(l,{error:t,tryAgain:n})))}const u=e=>r.createElement(s,e);class c extends r.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){a.Z.canUseDOM&&this.setState({error:e})}render(){const{children:e}=this.props,{error:t}=this.state;if(t){const e={error:t,tryAgain:()=>this.setState({error:null})};return(this.props.fallback??u)(e)}return e??null}}},161:function(e,t){"use strict";const n="undefined"!=typeof window&&"document"in window&&"createElement"in window.document,r={canUseDOM:n,canUseEventListeners:n&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:n&&"IntersectionObserver"in window,canUseViewport:n&&"screen"in window};t.Z=r},7092:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(27378),a=n(92883);function o(e){return r.createElement(a.ql,e)}},81884:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(25773),a=n(27378),o=n(4289),i=n(51721),l=n(50353),s=n(45626),u=n(161);const c=a.createContext({collectLink:()=>{}});var d=n(98948);function f(e,t){var n;let{isNavLink:f,to:p,href:m,activeClassName:h,isActive:g,"data-noBrokenLinkCheck":v,autoAddBaseUrl:b=!0,...y}=e;const{siteConfig:{trailingSlash:w,baseUrl:k}}=(0,l.Z)(),{withBaseUrl:E}=(0,d.C)(),S=(0,a.useContext)(c),x=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,(()=>x.current));const C=p||m;const T=(0,s.Z)(C),_=null==C?void 0:C.replace("pathname://","");let A=void 0!==_?(R=_,b&&(e=>e.startsWith("/"))(R)?E(R):R):void 0;var R;A&&T&&(A=(0,i.applyTrailingSlash)(A,{trailingSlash:w,baseUrl:k}));const L=(0,a.useRef)(!1),P=f?o.OL:o.rU,O=u.Z.canUseIntersectionObserver,N=(0,a.useRef)();(0,a.useEffect)((()=>(!O&&T&&null!=A&&window.docusaurus.prefetch(A),()=>{O&&N.current&&N.current.disconnect()})),[N,A,O,T]);const I=(null==(n=A)?void 0:n.startsWith("#"))??!1,D=!A||!T||I;return D||v||S.collectLink(A),D?a.createElement("a",(0,r.Z)({ref:x,href:A},C&&!T&&{target:"_blank",rel:"noopener noreferrer"},y)):a.createElement(P,(0,r.Z)({},y,{onMouseEnter:()=>{L.current||null==A||(window.docusaurus.preload(A),L.current=!0)},innerRef:e=>{x.current=e,O&&e&&T&&(N.current=new window.IntersectionObserver((t=>{t.forEach((t=>{e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(N.current.unobserve(e),N.current.disconnect(),null!=A&&window.docusaurus.prefetch(A))}))})),N.current.observe(e))},to:A},f&&{isActive:g,activeClassName:h}))}var p=a.forwardRef(f)},99213:function(e,t,n){"use strict";n.d(t,{Z:function(){return s},I:function(){return l}});var r=n(27378);function a(e,t){const n=e.split(/(\{\w+\})/).map(((e,n)=>{if(n%2==1){const n=null==t?void 0:t[e.slice(1,-1)];if(void 0!==n)return n}return e}));return n.some((e=>(0,r.isValidElement)(e)))?n.map(((e,t)=>(0,r.isValidElement)(e)?r.cloneElement(e,{key:t}):e)).filter((e=>""!==e)):n.join("")}var o=n(57529);function i(e){let{id:t,message:n}=e;if(void 0===t&&void 0===n)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return o[t??n]??n??t}function l(e,t){let{message:n,id:r}=e;return a(i({message:n,id:r}),t)}function s(e){let{children:t,id:n,values:o}=e;if(t&&"string"!=typeof t)throw console.warn("Illegal <Translate> children",t),new Error("The Docusaurus <Translate> component only accept simple string values");const l=i({message:t,id:n});return r.createElement(r.Fragment,null,a(l,o))}},45688:function(e,t,n){"use strict";n.d(t,{m:function(){return r}});const r="default"},45626:function(e,t,n){"use strict";function r(e){return/^(?:\w*:|\/\/)/.test(e)}function a(e){return void 0!==e&&!r(e)}n.d(t,{Z:function(){return a},b:function(){return r}})},98948:function(e,t,n){"use strict";n.d(t,{C:function(){return o},Z:function(){return i}});var r=n(50353),a=n(45626);function o(){const{siteConfig:{baseUrl:e,url:t}}=(0,r.Z)();return{withBaseUrl:(n,r)=>function(e,t,n,r){let{forcePrependBaseUrl:o=!1,absolute:i=!1}=void 0===r?{}:r;if(!n||n.startsWith("#")||(0,a.b)(n))return n;if(o)return t+n.replace(/^\//,"");if(n===t.replace(/\/$/,""))return t;const l=n.startsWith(t)?n:t+n.replace(/^\//,"");return i?e+l:l}(t,e,n,r)}}function i(e,t){void 0===t&&(t={});const{withBaseUrl:n}=o();return n(e,t)}},50353:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(27378),a=n(83340);function o(){return(0,r.useContext)(a._)}},76457:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(27378),a=n(23427);function o(){return(0,r.useContext)(a._)}},13361:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e){const t={};return function e(n,r){Object.entries(n).forEach((n=>{let[a,o]=n;const i=r?`${r}.${a}`:a;var l;"object"==typeof(l=o)&&l&&Object.keys(l).length>0?e(o,i):t[i]=o}))}(e),t}},66881:function(e,t,n){"use strict";n.d(t,{_:function(){return a},z:function(){return o}});var r=n(27378);const a=r.createContext(null);function o(e){let{children:t,value:n}=e;const o=r.useContext(a),i=(0,r.useMemo)((()=>function(e){let{parent:t,value:n}=e;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}const r={...t.data,...null==n?void 0:n.data};return{plugin:t.plugin,data:r}}({parent:o,value:n})),[o,n]);return r.createElement(a.Provider,{value:i},t)}},62935:function(e,t,n){"use strict";n.d(t,{Iw:function(){return v},gA:function(){return p},WS:function(){return m},_r:function(){return d},Jo:function(){return b},zh:function(){return f},yW:function(){return g},gB:function(){return h}});var r=n(3620),a=n(50353),o=n(45688);function i(e,t){void 0===t&&(t={});const n=function(){const{globalData:e}=(0,a.Z)();return e}()[e];if(!n&&t.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin.`);return n}const l=e=>e.versions.find((e=>e.isLast));function s(e,t){const n=l(e);return[...e.versions.filter((e=>e!==n)),n].find((e=>!!(0,r.LX)(t,{path:e.path,exact:!1,strict:!1})))}function u(e,t){const n=s(e,t),a=null==n?void 0:n.docs.find((e=>!!(0,r.LX)(t,{path:e.path,exact:!0,strict:!1})));return{activeVersion:n,activeDoc:a,alternateDocVersions:a?function(t){const n={};return e.versions.forEach((e=>{e.docs.forEach((r=>{r.id===t&&(n[e.name]=r)}))})),n}(a.id):{}}}const c={},d=()=>i("docusaurus-plugin-content-docs")??c,f=e=>function(e,t,n){void 0===t&&(t=o.m),void 0===n&&(n={});const r=i(e),a=null==r?void 0:r[t];if(!a&&n.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin with id "${t}".`);return a}("docusaurus-plugin-content-docs",e,{failfast:!0});function p(e){void 0===e&&(e={});const t=d(),{pathname:n}=(0,r.TH)();return function(e,t,n){void 0===n&&(n={});const a=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,r.LX)(t,{path:n.path,exact:!1,strict:!1})})),o=a?{pluginId:a[0],pluginData:a[1]}:void 0;if(!o&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return o}(t,n,e)}function m(e){void 0===e&&(e={});const t=p(e),{pathname:n}=(0,r.TH)();if(!t)return;return{activePlugin:t,activeVersion:s(t.pluginData,n)}}function h(e){return f(e).versions}function g(e){const t=f(e);return l(t)}function v(e){const t=f(e),{pathname:n}=(0,r.TH)();return u(t,n)}function b(e){const t=f(e),{pathname:n}=(0,r.TH)();return function(e,t){const n=l(e);return{latestDocSuggestion:u(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(t,n)}},89883:function(e,t,n){"use strict";n.r(t);const r={onRouteDidUpdate(e){let{location:t,previousLocation:n}=e;!n||t.pathname===n.pathname&&t.search===n.search&&t.hash===n.hash||(window.ga("set","page",t.pathname+t.search+t.hash),window.ga("send","pageview"))}};t.default=r},86945:function(e,t,n){"use strict";n.r(t);const r={onRouteDidUpdate(e){let{location:t,previousLocation:n}=e;!n||t.pathname===n.pathname&&t.search===n.search&&t.hash===n.hash||setTimeout((()=>{window.gtag("event","page_view",{page_title:document.title,page_location:window.location.href,page_path:t.pathname+t.search+t.hash})}))}};t.default=r},54374:function(e,t,n){"use strict";n.r(t);var r=n(8504),a=n.n(r);a().configure({showSpinner:!1});const o={onRouteUpdate(e){let{location:t,previousLocation:n}=e;if(n&&t.pathname!==n.pathname){const e=window.setTimeout((()=>{a().start()}),200);return()=>window.clearTimeout(e)}},onRouteDidUpdate(){a().done()}};t.default=o},23815:function(e,t,n){"use strict";n.r(t);var r=n(52349),a=n(36809);!function(e){const{themeConfig:{prism:t}}=a.default,{additionalLanguages:r}=t;globalThis.Prism=e,r.forEach((e=>{n(3392)(`./prism-${e}`)})),delete globalThis.Prism}(r.Z)},6125:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(27378),a="iconExternalLink_nPrP";function o(e){let{width:t=13.5,height:n=13.5}=e;return r.createElement("svg",{width:t,height:n,"aria-hidden":"true",viewBox:"0 0 24 24",className:a},r.createElement("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"}))}},38703:function(e,t,n){"use strict";n.d(t,{Z:function(){return ct}});var r=n(27378),a=n(38944),o=n(46293),i=n(98831),l=n(75484),s=n(70174),u=n(99213),c=n(3620),d=n(24993);function f(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}var p="skipToContent_oPtH";function m(){const{containerRef:e,handleSkip:t}=function(){const e=(0,r.useRef)(null),{action:t}=(0,c.k6)(),n=(0,r.useCallback)((e=>{e.preventDefault();const t=document.querySelector("main:first-of-type")??document.querySelector(`.${l.k.wrapper.main}`);t&&f(t)}),[]);return(0,d.S)((n=>{let{location:r}=n;e.current&&!r.hash&&"PUSH"===t&&f(e.current)})),{containerRef:e,handleSkip:n}}();return r.createElement("div",{ref:e,role:"region","aria-label":(0,u.I)({id:"theme.common.skipToMainContent"})},r.createElement("a",{href:"#",className:p,onClick:t},r.createElement(u.Z,{id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"},"Skip to main content")))}var h=n(20624),g=n(10),v=n(25773);function b(e){let{width:t=21,height:n=21,color:a="currentColor",strokeWidth:o=1.2,className:i,...l}=e;return r.createElement("svg",(0,v.Z)({viewBox:"0 0 15 15",width:t,height:n},l),r.createElement("g",{stroke:a,strokeWidth:o},r.createElement("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})))}var y="closeButton_J5rP";function w(e){return r.createElement("button",(0,v.Z)({type:"button","aria-label":(0,u.I)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"})},e,{className:(0,a.Z)("clean-btn close",y,e.className)}),r.createElement(b,{width:14,height:14,strokeWidth:3.1}))}var k="content_bSb_";function E(e){const{announcementBar:t}=(0,h.L)(),{content:n}=t;return r.createElement("div",(0,v.Z)({},e,{className:(0,a.Z)(k,e.className),dangerouslySetInnerHTML:{__html:n}}))}var S="announcementBar_zJRd",x="announcementBarPlaceholder_NpUd",C="announcementBarClose_Jjdj",T="announcementBarContent_t7IR";function _(){const{announcementBar:e}=(0,h.L)(),{isActive:t,close:n}=(0,g.nT)();if(!t)return null;const{backgroundColor:a,textColor:o,isCloseable:i}=e;return r.createElement("div",{className:S,style:{backgroundColor:a,color:o},role:"banner"},i&&r.createElement("div",{className:x}),r.createElement(E,{className:T}),i&&r.createElement(w,{onClick:n,className:C}))}var A=n(52335),R=n(83457);var L=n(41763),P=n(63471);const O=r.createContext(null);function N(e){let{children:t}=e;const n=function(){const e=(0,A.e)(),t=(0,P.HY)(),[n,a]=(0,r.useState)(!1),o=null!==t.component,i=(0,L.D9)(o);return(0,r.useEffect)((()=>{o&&!i&&a(!0)}),[o,i]),(0,r.useEffect)((()=>{o?e.shown||a(!0):a(!1)}),[e.shown,o]),(0,r.useMemo)((()=>[n,a]),[n])}();return r.createElement(O.Provider,{value:n},t)}function I(e){if(e.component){const t=e.component;return r.createElement(t,e.props)}}function D(){const e=(0,r.useContext)(O);if(!e)throw new L.i6("NavbarSecondaryMenuDisplayProvider");const[t,n]=e,a=(0,r.useCallback)((()=>n(!1)),[n]),o=(0,P.HY)();return(0,r.useMemo)((()=>({shown:t,hide:a,content:I(o)})),[a,o,t])}function M(e){let{header:t,primaryMenu:n,secondaryMenu:o}=e;const{shown:i}=D();return r.createElement("div",{className:"navbar-sidebar"},t,r.createElement("div",{className:(0,a.Z)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":i})},r.createElement("div",{className:"navbar-sidebar__item menu"},n),r.createElement("div",{className:"navbar-sidebar__item menu"},o)))}var F=n(55421),B=n(76457);function j(e){return r.createElement("svg",(0,v.Z)({viewBox:"0 0 24 24",width:24,height:24},e),r.createElement("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"}))}function z(e){return r.createElement("svg",(0,v.Z)({viewBox:"0 0 24 24",width:24,height:24},e),r.createElement("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"}))}var U={toggle:"toggle_ki11",toggleButton:"toggleButton_MMFG",darkToggleIcon:"darkToggleIcon_U96C",lightToggleIcon:"lightToggleIcon_lgto",toggleButtonDisabled:"toggleButtonDisabled_Uw7m"};function $(e){let{className:t,value:n,onChange:o}=e;const i=(0,B.Z)(),l=(0,u.I)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===n?(0,u.I)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,u.I)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return r.createElement("div",{className:(0,a.Z)(U.toggle,t)},r.createElement("button",{className:(0,a.Z)("clean-btn",U.toggleButton,!i&&U.toggleButtonDisabled),type:"button",onClick:()=>o("dark"===n?"light":"dark"),disabled:!i,title:l,"aria-label":l},r.createElement(j,{className:(0,a.Z)(U.toggleIcon,U.lightToggleIcon)}),r.createElement(z,{className:(0,a.Z)(U.toggleIcon,U.darkToggleIcon)})))}var q=r.memo($);function G(e){let{className:t}=e;const n=(0,h.L)().colorMode.disableSwitch,{colorMode:a,setColorMode:o}=(0,F.I)();return n?null:r.createElement(q,{className:t,value:a,onChange:o})}var H=n(8585);function Z(){return r.createElement(H.Z,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function V(){const e=(0,A.e)();return r.createElement("button",{type:"button",className:"clean-btn navbar-sidebar__close",onClick:()=>e.toggle()},r.createElement(b,{color:"var(--ifm-color-emphasis-600)"}))}function W(){return r.createElement("div",{className:"navbar-sidebar__brand"},r.createElement(Z,null),r.createElement(G,{className:"margin-right--md"}),r.createElement(V,null))}var K=n(81884),Y=n(98948),Q=n(45626);function X(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}var J=n(6125);function ee(e){let{activeBasePath:t,activeBaseRegex:n,to:a,href:o,label:i,html:l,isDropdownLink:s,prependBaseUrlToHref:u,...c}=e;const d=(0,Y.Z)(a),f=(0,Y.Z)(t),p=(0,Y.Z)(o,{forcePrependBaseUrl:!0}),m=i&&o&&!(0,Q.Z)(o),h=l?{dangerouslySetInnerHTML:{__html:l}}:{children:r.createElement(r.Fragment,null,i,m&&r.createElement(J.Z,s&&{width:12,height:12}))};return o?r.createElement(K.Z,(0,v.Z)({href:u?p:o},c,h)):r.createElement(K.Z,(0,v.Z)({to:d,isNavLink:!0},(t||n)&&{isActive:(e,t)=>n?X(n,t.pathname):t.pathname.startsWith(f)},c,h))}function te(e){let{className:t,isDropdownItem:n=!1,...o}=e;const i=r.createElement(ee,(0,v.Z)({className:(0,a.Z)(n?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:n},o));return n?r.createElement("li",null,i):i}function ne(e){let{className:t,isDropdownItem:n,...o}=e;return r.createElement("li",{className:"menu__list-item"},r.createElement(ee,(0,v.Z)({className:(0,a.Z)("menu__link",t)},o)))}function re(e){let{mobile:t=!1,position:n,...a}=e;const o=t?ne:te;return r.createElement(o,(0,v.Z)({},a,{activeClassName:a.activeClassName??(t?"menu__link--active":"navbar__link--active")}))}var ae=n(80376),oe=n(8862),ie=n(50353);function le(e,t){return e.some((e=>function(e,t){return!!(0,oe.Mg)(e.to,t)||!!X(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)))}function se(e){let{items:t,position:n,className:o,onClick:i,...l}=e;const s=(0,r.useRef)(null),[u,c]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=e=>{s.current&&!s.current.contains(e.target)&&c(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}}),[s]),r.createElement("div",{ref:s,className:(0,a.Z)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===n,"dropdown--show":u})},r.createElement(ee,(0,v.Z)({"aria-haspopup":"true","aria-expanded":u,role:"button",href:l.to?void 0:"#",className:(0,a.Z)("navbar__link",o)},l,{onClick:l.to?void 0:e=>e.preventDefault(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),c(!u))}}),l.children??l.label),r.createElement("ul",{className:"dropdown__menu"},t.map(((e,n)=>r.createElement(ze,(0,v.Z)({isDropdownItem:!0,onKeyDown:e=>{if(n===t.length-1&&"Tab"===e.key){e.preventDefault(),c(!1);const t=s.current.nextElementSibling;if(t){(t instanceof HTMLAnchorElement?t:t.querySelector("a")).focus()}}},activeClassName:"dropdown__link--active"},e,{key:n}))))))}function ue(e){let{items:t,className:n,position:o,onClick:i,...l}=e;const s=function(){const{siteConfig:{baseUrl:e}}=(0,ie.Z)(),{pathname:t}=(0,c.TH)();return t.replace(e,"/")}(),u=le(t,s),{collapsed:d,toggleCollapsed:f,setCollapsed:p}=(0,ae.u)({initialState:()=>!u});return(0,r.useEffect)((()=>{u&&p(!u)}),[s,u,p]),r.createElement("li",{className:(0,a.Z)("menu__list-item",{"menu__list-item--collapsed":d})},r.createElement(ee,(0,v.Z)({role:"button",className:(0,a.Z)("menu__link menu__link--sublist menu__link--sublist-caret",n)},l,{onClick:e=>{e.preventDefault(),f()}}),l.children??l.label),r.createElement(ae.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:d},t.map(((e,t)=>r.createElement(ze,(0,v.Z)({mobile:!0,isDropdownItem:!0,onClick:i,activeClassName:"menu__link--active"},e,{key:t}))))))}function ce(e){let{mobile:t=!1,...n}=e;const a=t?ue:se;return r.createElement(a,n)}var de=n(43714);function fe(e){let{width:t=20,height:n=20,...a}=e;return r.createElement("svg",(0,v.Z)({viewBox:"0 0 24 24",width:t,height:n,"aria-hidden":!0},a),r.createElement("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"}))}var pe="iconLanguage_kvP7";var me=n(31542),he=n(7092);const ge="q";function ve(){return r.createElement("svg",{width:"15",height:"15",className:"DocSearch-Control-Key-Icon"},r.createElement("path",{d:"M4.505 4.496h2M5.505 5.496v5M8.216 4.496l.055 5.993M10 7.5c.333.333.5.667.5 1v2M12.326 4.5v5.996M8.384 4.496c1.674 0 2.116 0 2.116 1.5s-.442 1.5-2.116 1.5M3.205 9.303c-.09.448-.277 1.21-1.241 1.203C1 10.5.5 9.513.5 8V7c0-1.57.5-2.5 1.464-2.494.964.006 1.134.598 1.24 1.342M12.553 10.5h1.953",strokeWidth:"1.2",stroke:"currentColor",fill:"none",strokeLinecap:"square"}))}var be=n(56573),ye=["translations"];function we(){return we=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},we.apply(this,arguments)}function ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(s){l=!0,a=s}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ee(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Se(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var xe="Ctrl";var Ce=r.forwardRef((function(e,t){var n=e.translations,a=void 0===n?{}:n,o=Se(e,ye),i=a.buttonText,l=void 0===i?"Search":i,s=a.buttonAriaLabel,u=void 0===s?"Search":s,c=ke((0,r.useState)(null),2),d=c[0],f=c[1];return(0,r.useEffect)((function(){"undefined"!=typeof navigator&&(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?f("\u2318"):f(xe))}),[]),r.createElement("button",we({type:"button",className:"DocSearch DocSearch-Button","aria-label":u},o,{ref:t}),r.createElement("span",{className:"DocSearch-Button-Container"},r.createElement(be.W,null),r.createElement("span",{className:"DocSearch-Button-Placeholder"},l)),r.createElement("span",{className:"DocSearch-Button-Keys"},null!==d&&r.createElement(r.Fragment,null,r.createElement("kbd",{className:"DocSearch-Button-Key"},d===xe?r.createElement(ve,null):d),r.createElement("kbd",{className:"DocSearch-Button-Key"},"K"))))})),Te=n(13149);var _e={button:{buttonText:(0,u.I)({id:"theme.SearchBar.label",message:"Search",description:"The ARIA label and placeholder for search button"}),buttonAriaLabel:(0,u.I)({id:"theme.SearchBar.label",message:"Search",description:"The ARIA label and placeholder for search button"})},modal:{searchBox:{resetButtonTitle:(0,u.I)({id:"theme.SearchModal.searchBox.resetButtonTitle",message:"Clear the query",description:"The label and ARIA label for search box reset button"}),resetButtonAriaLabel:(0,u.I)({id:"theme.SearchModal.searchBox.resetButtonTitle",message:"Clear the query",description:"The label and ARIA label for search box reset button"}),cancelButtonText:(0,u.I)({id:"theme.SearchModal.searchBox.cancelButtonText",message:"Cancel",description:"The label and ARIA label for search box cancel button"}),cancelButtonAriaLabel:(0,u.I)({id:"theme.SearchModal.searchBox.cancelButtonText",message:"Cancel",description:"The label and ARIA label for search box cancel button"})},startScreen:{recentSearchesTitle:(0,u.I)({id:"theme.SearchModal.startScreen.recentSearchesTitle",message:"Recent",description:"The title for recent searches"}),noRecentSearchesText:(0,u.I)({id:"theme.SearchModal.startScreen.noRecentSearchesText",message:"No recent searches",description:"The text when no recent searches"}),saveRecentSearchButtonTitle:(0,u.I)({id:"theme.SearchModal.startScreen.saveRecentSearchButtonTitle",message:"Save this search",description:"The label for save recent search button"}),removeRecentSearchButtonTitle:(0,u.I)({id:"theme.SearchModal.startScreen.removeRecentSearchButtonTitle",message:"Remove this search from history",description:"The label for remove recent search button"}),favoriteSearchesTitle:(0,u.I)({id:"theme.SearchModal.startScreen.favoriteSearchesTitle",message:"Favorite",description:"The title for favorite searches"}),removeFavoriteSearchButtonTitle:(0,u.I)({id:"theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle",message:"Remove this search from favorites",description:"The label for remove favorite search button"})},errorScreen:{titleText:(0,u.I)({id:"theme.SearchModal.errorScreen.titleText",message:"Unable to fetch results",description:"The title for error screen of search modal"}),helpText:(0,u.I)({id:"theme.SearchModal.errorScreen.helpText",message:"You might want to check your network connection.",description:"The help text for error screen of search modal"})},footer:{selectText:(0,u.I)({id:"theme.SearchModal.footer.selectText",message:"to select",description:"The explanatory text of the action for the enter key"}),selectKeyAriaLabel:(0,u.I)({id:"theme.SearchModal.footer.selectKeyAriaLabel",message:"Enter key",description:"The ARIA label for the Enter key button that makes the selection"}),navigateText:(0,u.I)({id:"theme.SearchModal.footer.navigateText",message:"to navigate",description:"The explanatory text of the action for the Arrow up and Arrow down key"}),navigateUpKeyAriaLabel:(0,u.I)({id:"theme.SearchModal.footer.navigateUpKeyAriaLabel",message:"Arrow up",description:"The ARIA label for the Arrow up key button that makes the navigation"}),navigateDownKeyAriaLabel:(0,u.I)({id:"theme.SearchModal.footer.navigateDownKeyAriaLabel",message:"Arrow down",description:"The ARIA label for the Arrow down key button that makes the navigation"}),closeText:(0,u.I)({id:"theme.SearchModal.footer.closeText",message:"to close",description:"The explanatory text of the action for Escape key"}),closeKeyAriaLabel:(0,u.I)({id:"theme.SearchModal.footer.closeKeyAriaLabel",message:"Escape key",description:"The ARIA label for the Escape key button that close the modal"}),searchByText:(0,u.I)({id:"theme.SearchModal.footer.searchByText",message:"Search by",description:"The text explain that the search is making by Algolia"})},noResultsScreen:{noResultsText:(0,u.I)({id:"theme.SearchModal.noResultsScreen.noResultsText",message:"No results for",description:"The text explains that there are no results for the following search"}),suggestedQueryText:(0,u.I)({id:"theme.SearchModal.noResultsScreen.suggestedQueryText",message:"Try searching for",description:"The text for the suggested query when no results are found for the following search"}),reportMissingResultsText:(0,u.I)({id:"theme.SearchModal.noResultsScreen.reportMissingResultsText",message:"Believe this query should return results?",description:"The text for the question where the user thinks there are missing results"}),reportMissingResultsLinkText:(0,u.I)({id:"theme.SearchModal.noResultsScreen.reportMissingResultsLinkText",message:"Let us know.",description:"The text for the link to report missing results"})}},placeholder:(0,u.I)({id:"theme.SearchModal.placeholder",message:"Search docs",description:"The placeholder of the input of the DocSearch pop-up modal"})};let Ae=null;function Re(e){let{hit:t,children:n}=e;return r.createElement(K.Z,{to:t.url},n)}function Le(e){let{state:t,onClose:n}=e;const{generateSearchPageLink:a}=function(){const e=(0,c.k6)(),{siteConfig:{baseUrl:t}}=(0,ie.Z)(),[n,a]=(0,r.useState)("");return(0,r.useEffect)((()=>{const e=new URLSearchParams(window.location.search).get(ge)??"";a(e)}),[]),{searchQuery:n,setSearchQuery:(0,r.useCallback)((t=>{const n=new URLSearchParams(window.location.search);t?n.set(ge,t):n.delete(ge),e.replace({search:n.toString()}),a(t)}),[e]),generateSearchPageLink:(0,r.useCallback)((e=>`${t}search?q=${encodeURIComponent(e)}`),[t])}}();return r.createElement(K.Z,{to:a(t.query),onClick:n},r.createElement(u.Z,{id:"theme.SearchBar.seeAll",values:{count:t.context.nbHits}},"See all {count} results"))}function Pe(e){var t;let{contextualSearch:a,externalUrlRegex:o,...i}=e;const{siteMetadata:l}=(0,ie.Z)(),s=function(){const{locale:e,tags:t}=(0,Te._q)();return[`language:${e}`,t.map((e=>`docusaurus_tag:${e}`))]}(),u=(null==(t=i.searchParameters)?void 0:t.facetFilters)??[],d=a?function(e,t){const n=e=>"string"==typeof e?[e]:e;return[...n(e),...n(t)]}(s,u):u,f={...i.searchParameters,facetFilters:d},{withBaseUrl:p}=(0,Y.C)(),m=(0,c.k6)(),h=(0,r.useRef)(null),g=(0,r.useRef)(null),[b,y]=(0,r.useState)(!1),[w,k]=(0,r.useState)(void 0),E=(0,r.useCallback)((()=>Ae?Promise.resolve():Promise.all([n.e(777).then(n.bind(n,88777)),Promise.all([n.e(532),n.e(127)]).then(n.bind(n,89127)),Promise.all([n.e(532),n.e(670)]).then(n.bind(n,34670))]).then((e=>{let[{DocSearchModal:t}]=e;Ae=t}))),[]),S=(0,r.useCallback)((()=>{E().then((()=>{h.current=document.createElement("div"),document.body.insertBefore(h.current,document.body.firstChild),y(!0)}))}),[E,y]),x=(0,r.useCallback)((()=>{var e;y(!1),null==(e=h.current)||e.remove()}),[y]),C=(0,r.useCallback)((e=>{E().then((()=>{y(!0),k(e.key)}))}),[E,y,k]),T=(0,r.useRef)({navigate(e){let{itemUrl:t}=e;X(o,t)?window.location.href=t:m.push(t)}}).current,_=(0,r.useRef)((e=>e.map((e=>{if(X(o,e.url))return e;const t=new URL(e.url);return{...e,url:p(`${t.pathname}${t.hash}`)}})))).current,A=(0,r.useMemo)((()=>e=>r.createElement(Le,(0,v.Z)({},e,{onClose:x}))),[x]),R=(0,r.useCallback)((e=>(e.addAlgoliaAgent("docusaurus",l.docusaurusVersion),e)),[l.docusaurusVersion]);return function(e){var t=e.isOpen,n=e.onOpen,a=e.onClose,o=e.onInput,i=e.searchButtonRef;r.useEffect((function(){function e(e){(27===e.keyCode&&t||"k"===e.key&&(e.metaKey||e.ctrlKey)||!function(e){var t=e.target,n=t.tagName;return t.isContentEditable||"INPUT"===n||"SELECT"===n||"TEXTAREA"===n}(e)&&"/"===e.key&&!t)&&(e.preventDefault(),t?a():document.body.classList.contains("DocSearch--active")||document.body.classList.contains("DocSearch--active")||n()),i&&i.current===document.activeElement&&o&&/[a-zA-Z0-9]/.test(String.fromCharCode(e.keyCode))&&o(e)}return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t,n,a,o,i])}({isOpen:b,onOpen:S,onClose:x,onInput:C,searchButtonRef:g}),r.createElement(r.Fragment,null,r.createElement(he.Z,null,r.createElement("link",{rel:"preconnect",href:`https://${i.appId}-dsn.algolia.net`,crossOrigin:"anonymous"})),r.createElement(Ce,{onTouchStart:E,onFocus:E,onMouseOver:E,onClick:S,ref:g,translations:_e.button}),b&&Ae&&h.current&&(0,me.createPortal)(r.createElement(Ae,(0,v.Z)({onClose:x,initialScrollY:window.scrollY,initialQuery:w,navigator:T,transformItems:_,hitComponent:Re,transformSearchClient:R},i.searchPagePath&&{resultsFooterComponent:A},i,{searchParameters:f,placeholder:_e.placeholder,translations:_e.modal})),h.current))}function Oe(){const{siteConfig:e}=(0,ie.Z)();return r.createElement(Pe,e.themeConfig.algolia)}var Ne="searchBox_WqAV";function Ie(e){let{children:t,className:n}=e;return r.createElement("div",{className:(0,a.Z)(n,Ne)},t)}var De=n(62935),Me=n(76100);var Fe=n(24453);const Be=e=>e.docs.find((t=>t.id===e.mainDocId));var je={default:re,localeDropdown:function(e){let{mobile:t,dropdownItemsBefore:n,dropdownItemsAfter:a,...o}=e;const{i18n:{currentLocale:i,locales:l,localeConfigs:s}}=(0,ie.Z)(),c=(0,de.l)(),d=[...n,...l.map((e=>{const n=`pathname://${c.createUrl({locale:e,fullyQualified:!1})}`;return{label:s[e].label,lang:s[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===i?t?"menu__link--active":"dropdown__link--active":""}})),...a],f=t?(0,u.I)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):s[i].label;return r.createElement(ce,(0,v.Z)({},o,{mobile:t,label:r.createElement(r.Fragment,null,r.createElement(fe,{className:pe}),f),items:d}))},search:function(e){let{mobile:t,className:n}=e;return t?null:r.createElement(Ie,{className:n},r.createElement(Oe,null))},dropdown:ce,html:function(e){let{value:t,className:n,mobile:o=!1,isDropdownItem:i=!1}=e;const l=i?"li":"div";return r.createElement(l,{className:(0,a.Z)({navbar__item:!o&&!i,"menu__list-item":o},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){let{docId:t,label:n,docsPluginId:a,...o}=e;const{activeDoc:i}=(0,De.Iw)(a),l=(0,Me.vY)(t,a);return null===l?null:r.createElement(re,(0,v.Z)({exact:!0},o,{isActive:()=>(null==i?void 0:i.path)===l.path||!(null==i||!i.sidebar)&&i.sidebar===l.sidebar,label:n??l.id,to:l.path}))},docSidebar:function(e){let{sidebarId:t,label:n,docsPluginId:a,...o}=e;const{activeDoc:i}=(0,De.Iw)(a),l=(0,Me.oz)(t,a).link;if(!l)throw new Error(`DocSidebarNavbarItem: Sidebar with ID "${t}" doesn't have anything to be linked to.`);return r.createElement(re,(0,v.Z)({exact:!0},o,{isActive:()=>(null==i?void 0:i.sidebar)===t,label:n??l.label,to:l.path}))},docsVersion:function(e){let{label:t,to:n,docsPluginId:a,...o}=e;const i=(0,Me.lO)(a)[0],l=t??i.label,s=n??(e=>e.docs.find((t=>t.id===e.mainDocId)))(i).path;return r.createElement(re,(0,v.Z)({},o,{label:l,to:s}))},docsVersionDropdown:function(e){let{mobile:t,docsPluginId:n,dropdownActiveClassDisabled:a,dropdownItemsBefore:o,dropdownItemsAfter:i,...l}=e;const s=(0,De.Iw)(n),c=(0,De.gB)(n),{savePreferredVersionName:d}=(0,Fe.J)(n),f=[...o,...c.map((e=>{const t=s.alternateDocVersions[e.name]??Be(e);return{label:e.label,to:t.path,isActive:()=>e===s.activeVersion,onClick:()=>d(e.name)}})),...i],p=(0,Me.lO)(n)[0],m=t&&f.length>1?(0,u.I)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):p.label,h=t&&f.length>1?void 0:Be(p).path;return f.length<=1?r.createElement(re,(0,v.Z)({},l,{mobile:t,label:m,to:h,isActive:a?()=>!1:void 0})):r.createElement(ce,(0,v.Z)({},l,{mobile:t,label:m,to:h,items:f,isActive:a?()=>!1:void 0}))}};function ze(e){let{type:t,...n}=e;const a=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),o=je[a];if(!o)throw new Error(`No NavbarItem component found for type "${t}".`);return r.createElement(o,n)}function Ue(){const e=(0,A.e)(),t=(0,h.L)().navbar.items;return r.createElement("ul",{className:"menu__list"},t.map(((t,n)=>r.createElement(ze,(0,v.Z)({mobile:!0},t,{onClick:()=>e.toggle(),key:n})))))}function $e(e){return r.createElement("button",(0,v.Z)({},e,{type:"button",className:"clean-btn navbar-sidebar__back"}),r.createElement(u.Z,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"},"\u2190 Back to main menu"))}function qe(){const e=0===(0,h.L)().navbar.items.length,t=D();return r.createElement(r.Fragment,null,!e&&r.createElement($e,{onClick:()=>t.hide()}),t.content)}function Ge(){const e=(0,A.e)();var t;return void 0===(t=e.shown)&&(t=!0),(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"visible",()=>{document.body.style.overflow="visible"})),[t]),e.shouldRender?r.createElement(M,{header:r.createElement(W,null),primaryMenu:r.createElement(Ue,null),secondaryMenu:r.createElement(qe,null)}):null}var He="navbarHideable_hhpl",Ze="navbarHidden_nmcs";function Ve(e){return r.createElement("div",(0,v.Z)({role:"presentation"},e,{className:(0,a.Z)("navbar-sidebar__backdrop",e.className)}))}function We(e){let{children:t}=e;const{navbar:{hideOnScroll:n,style:o}}=(0,h.L)(),i=(0,A.e)(),{navbarRef:l,isNavbarVisible:s}=function(e){const[t,n]=(0,r.useState)(e),a=(0,r.useRef)(!1),o=(0,r.useRef)(0),i=(0,r.useCallback)((e=>{null!==e&&(o.current=e.getBoundingClientRect().height)}),[]);return(0,R.RF)(((t,r)=>{let{scrollY:i}=t;if(!e)return;if(i<o.current)return void n(!0);if(a.current)return void(a.current=!1);const l=null==r?void 0:r.scrollY,s=document.documentElement.scrollHeight-o.current,u=window.innerHeight;l&&i>=l?n(!1):i+u<s&&n(!0)})),(0,d.S)((t=>{if(e)return t.location.hash?(a.current=!0,void n(!1)):void n(!0)})),{navbarRef:i,isNavbarVisible:t}}(n);return r.createElement("nav",{ref:l,className:(0,a.Z)("navbar","navbar--fixed-top",n&&[He,!s&&Ze],{"navbar--dark":"dark"===o,"navbar--primary":"primary"===o,"navbar-sidebar--show":i.shown})},t,r.createElement(Ve,{onClick:i.toggle}),r.createElement(Ge,null))}function Ke(e){let{width:t=30,height:n=30,className:a,...o}=e;return r.createElement("svg",(0,v.Z)({className:a,width:t,height:n,viewBox:"0 0 30 30","aria-hidden":"true"},o),r.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"}))}function Ye(){const e=(0,A.e)();return r.createElement("button",{onClick:e.toggle,onKeyDown:e.toggle,"aria-label":"Navigation bar toggle",className:"navbar__toggle clean-btn",type:"button",tabIndex:0},r.createElement(Ke,null))}var Qe="colorModeToggle_Hewu";function Xe(e){let{items:t}=e;return r.createElement(r.Fragment,null,t.map(((e,t)=>r.createElement(ze,(0,v.Z)({},e,{key:t})))))}function Je(e){let{left:t,right:n}=e;return r.createElement("div",{className:"navbar__inner"},r.createElement("div",{className:"navbar__items"},t),r.createElement("div",{className:"navbar__items navbar__items--right"},n))}function et(){const e=(0,A.e)(),t=(0,h.L)().navbar.items,[n,a]=function(e){function t(e){return"left"===(e.position??"right")}return[e.filter(t),e.filter((e=>!t(e)))]}(t),o=t.find((e=>"search"===e.type));return r.createElement(Je,{left:r.createElement(r.Fragment,null,!e.disabled&&r.createElement(Ye,null),r.createElement(Z,null),r.createElement(Xe,{items:n})),right:r.createElement(r.Fragment,null,r.createElement(Xe,{items:a}),r.createElement(G,{className:Qe}),!o&&r.createElement(Ie,null,r.createElement(Oe,null)))})}function tt(){return r.createElement(We,null,r.createElement(et,null))}function nt(){return null}var rt=n(71819);const at="docusaurus.tab.",ot=r.createContext(void 0);const it=(0,L.Qc)([F.S,g.pl,function(e){let{children:t}=e;const n=function(){const[e,t]=(0,r.useState)({}),n=(0,r.useCallback)(((e,t)=>{(0,rt.W)(`docusaurus.tab.${e}`).set(t)}),[]);(0,r.useEffect)((()=>{try{const e={};(0,rt._)().forEach((t=>{if(t.startsWith(at)){const n=t.substring(at.length);e[n]=(0,rt.W)(t).get()}})),t(e)}catch(e){console.error(e)}}),[]);const a=(0,r.useCallback)(((e,r)=>{t((t=>({...t,[e]:r}))),n(e,r)}),[n]);return(0,r.useMemo)((()=>({tabGroupChoices:e,setTabGroupChoices:a})),[e,a])}();return r.createElement(ot.Provider,{value:n},t)},R.OC,Fe.L5,i.VC,function(e){let{children:t}=e;return r.createElement(P.n2,null,r.createElement(A.M,null,r.createElement(N,null,t)))}]);function lt(e){let{children:t}=e;return r.createElement(it,null,t)}function st(e){let{error:t,tryAgain:n}=e;return r.createElement("main",{className:"container margin-vert--xl"},r.createElement("div",{className:"row"},r.createElement("div",{className:"col col--6 col--offset-3"},r.createElement("h1",{className:"hero__title"},r.createElement(u.Z,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed"},"This page crashed.")),r.createElement("p",null,t.message),r.createElement("div",null,r.createElement("button",{type:"button",onClick:n},r.createElement(u.Z,{id:"theme.ErrorPageContent.tryAgain",description:"The label of the button to try again when the page crashed"},"Try again"))))))}var ut="mainWrapper_MB5r";function ct(e){const{children:t,noFooter:n,wrapperClassName:u,title:c,description:d}=e;return(0,s.t)(),r.createElement(lt,null,r.createElement(i.d,{title:c,description:d}),r.createElement(m,null),r.createElement(_,null),r.createElement(tt,null),r.createElement("div",{className:(0,a.Z)(l.k.wrapper.main,ut,u)},r.createElement(o.Z,{fallback:e=>r.createElement(st,e)},t)),!n&&r.createElement(nt,null))}},8585:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(25773),a=n(27378),o=n(81884),i=n(98948),l=n(50353),s=n(20624),u=n(38944),c=n(76457),d=n(55421),f={themedImage:"themedImage_BQGR","themedImage--light":"themedImage--light_HAxW","themedImage--dark":"themedImage--dark_bGx0"};function p(e){const t=(0,c.Z)(),{colorMode:n}=(0,d.I)(),{sources:o,className:i,alt:l,...s}=e,p=t?"dark"===n?["dark"]:["light"]:["light","dark"];return a.createElement(a.Fragment,null,p.map((e=>a.createElement("img",(0,r.Z)({key:e,src:o[e],alt:l,className:(0,u.Z)(f.themedImage,f[`themedImage--${e}`],i)},s)))))}function m(e){let{logo:t,alt:n,imageClassName:r}=e;const o={light:(0,i.Z)(t.src),dark:(0,i.Z)(t.srcDark||t.src)},l=a.createElement(p,{className:t.className,sources:o,height:t.height,width:t.width,alt:n,style:t.style});return r?a.createElement("div",{className:r},l):l}function h(e){const{siteConfig:{title:t}}=(0,l.Z)(),{navbar:{title:n,logo:u}}=(0,s.L)(),{imageClassName:c,titleClassName:d,...f}=e,p=(0,i.Z)((null==u?void 0:u.href)||"/"),h=n?"":t,g=(null==u?void 0:u.alt)??h;return a.createElement(o.Z,(0,r.Z)({to:p},f,(null==u?void 0:u.target)&&{target:u.target}),u&&a.createElement(m,{logo:u,alt:g,imageClassName:c}),null!=n&&a.createElement("b",{className:d},n))}},60505:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(27378),a=n(7092);function o(e){let{locale:t,version:n,tag:o}=e;const i=t;return r.createElement(a.Z,null,t&&r.createElement("meta",{name:"docusaurus_locale",content:t}),n&&r.createElement("meta",{name:"docusaurus_version",content:n}),o&&r.createElement("meta",{name:"docusaurus_tag",content:o}),i&&r.createElement("meta",{name:"docsearch:language",content:i}),n&&r.createElement("meta",{name:"docsearch:version",content:n}),o&&r.createElement("meta",{name:"docsearch:docusaurus_tag",content:o}))}},80376:function(e,t,n){"use strict";n.d(t,{u:function(){return i},z:function(){return m}});var r=n(25773),a=n(27378),o=n(161);function i(e){let{initialState:t}=e;const[n,r]=(0,a.useState)(t??!1),o=(0,a.useCallback)((()=>{r((e=>!e))}),[]);return{collapsed:n,setCollapsed:r,toggleCollapsed:o}}const l={display:"none",overflow:"hidden",height:"0px"},s={display:"block",overflow:"visible",height:"auto"};function u(e,t){const n=t?l:s;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function c(e){let{collapsibleRef:t,collapsed:n,animation:r}=e;const o=(0,a.useRef)(!1);(0,a.useEffect)((()=>{const e=t.current;function a(){const t=e.scrollHeight,n=(null==r?void 0:r.duration)??function(e){const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(t);return{transition:`height ${n}ms ${(null==r?void 0:r.easing)??"ease-in-out"}`,height:`${t}px`}}function i(){const t=a();e.style.transition=t.transition,e.style.height=t.height}if(!o.current)return u(e,n),void(o.current=!0);return e.style.willChange="height",function(){const t=requestAnimationFrame((()=>{n?(i(),requestAnimationFrame((()=>{e.style.height=l.height,e.style.overflow=l.overflow}))):(e.style.display="block",requestAnimationFrame((()=>{i()})))}));return()=>cancelAnimationFrame(t)}()}),[t,n,r])}function d(e){if(!o.Z.canUseDOM)return e?l:s}function f(e){let{as:t="div",collapsed:n,children:r,animation:o,onCollapseTransitionEnd:i,className:l,disableSSRStyle:s}=e;const f=(0,a.useRef)(null);return c({collapsibleRef:f,collapsed:n,animation:o}),a.createElement(t,{ref:f,style:s?void 0:d(n),onTransitionEnd:e=>{"height"===e.propertyName&&(u(f.current,n),null==i||i(n))},className:l},r)}function p(e){let{collapsed:t,...n}=e;const[o,i]=(0,a.useState)(!t),[l,s]=(0,a.useState)(t);return(0,a.useLayoutEffect)((()=>{t||i(!0)}),[t]),(0,a.useLayoutEffect)((()=>{o&&s(t)}),[o,t]),o?a.createElement(f,(0,r.Z)({},n,{collapsed:l})):null}function m(e){let{lazy:t,...n}=e;const r=t?p:f;return a.createElement(r,n)}},10:function(e,t,n){"use strict";n.d(t,{nT:function(){return m},pl:function(){return p}});var r=n(27378),a=n(76457),o=n(71819),i=n(41763),l=n(20624);const s=(0,o.W)("docusaurus.announcement.dismiss"),u=(0,o.W)("docusaurus.announcement.id"),c=()=>"true"===s.get(),d=e=>s.set(String(e)),f=r.createContext(null);function p(e){let{children:t}=e;const n=function(){const{announcementBar:e}=(0,l.L)(),t=(0,a.Z)(),[n,o]=(0,r.useState)((()=>!!t&&c()));(0,r.useEffect)((()=>{o(c())}),[]);const i=(0,r.useCallback)((()=>{d(!0),o(!0)}),[]);return(0,r.useEffect)((()=>{if(!e)return;const{id:t}=e;let n=u.get();"annoucement-bar"===n&&(n="announcement-bar");const r=t!==n;u.set(t),r&&d(!1),!r&&c()||o(!1)}),[e]),(0,r.useMemo)((()=>({isActive:!!e&&!n,close:i})),[e,n,i])}();return r.createElement(f.Provider,{value:n},t)}function m(){const e=(0,r.useContext)(f);if(!e)throw new i.i6("AnnouncementBarProvider");return e}},55421:function(e,t,n){"use strict";n.d(t,{I:function(){return g},S:function(){return h}});var r=n(27378),a=n(161),o=n(41763),i=n(71819),l=n(20624);const s=r.createContext(void 0),u="theme",c=(0,i.W)(u),d="light",f="dark",p=e=>e===f?f:d;function m(){const{colorMode:{defaultMode:e,disableSwitch:t,respectPrefersColorScheme:n}}=(0,l.L)(),[o,i]=(0,r.useState)((e=>a.Z.canUseDOM?p(document.documentElement.getAttribute("data-theme")):p(e))(e));(0,r.useEffect)((()=>{t&&c.del()}),[t]);const s=(0,r.useCallback)((function(t,r){void 0===r&&(r={});const{persist:a=!0}=r;t?(i(t),a&&(e=>{c.set(p(e))})(t)):(i(n?window.matchMedia("(prefers-color-scheme: dark)").matches?f:d:e),c.del())}),[n,e]);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-theme",p(o))}),[o]),(0,r.useEffect)((()=>{if(t)return;const e=e=>{if(e.key!==u)return;const t=c.get();null!==t&&s(p(t))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t,s]);const m=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t&&!n)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{window.matchMedia("print").matches||m.current?m.current=window.matchMedia("print").matches:s(null)};return e.addListener(r),()=>e.removeListener(r)}),[s,t,n]),(0,r.useMemo)((()=>({colorMode:o,setColorMode:s,get isDarkTheme(){return o===f},setLightTheme(){s(d)},setDarkTheme(){s(f)}})),[o,s])}function h(e){let{children:t}=e;const n=m();return r.createElement(s.Provider,{value:n},t)}function g(){const e=(0,r.useContext)(s);if(null==e)throw new o.i6("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},24453:function(e,t,n){"use strict";n.d(t,{J:function(){return y},L5:function(){return v},Oh:function(){return w}});var r=n(27378),a=n(62935),o=n(45688),i=n(20624),l=n(76100),s=n(41763),u=n(71819);const c=e=>`docs-preferred-version-${e}`,d=(e,t,n)=>{(0,u.W)(c(e),{persistence:t}).set(n)},f=(e,t)=>(0,u.W)(c(e),{persistence:t}).get(),p=(e,t)=>{(0,u.W)(c(e),{persistence:t}).del()};const m=r.createContext(null);function h(){const e=(0,a._r)(),t=(0,i.L)().docs.versionPersistence,n=(0,r.useMemo)((()=>Object.keys(e)),[e]),[o,l]=(0,r.useState)((()=>(e=>Object.fromEntries(e.map((e=>[e,{preferredVersionName:null}]))))(n)));(0,r.useEffect)((()=>{l(function(e){let{pluginIds:t,versionPersistence:n,allDocsData:r}=e;function a(e){const t=f(e,n);return r[e].versions.some((e=>e.name===t))?{preferredVersionName:t}:(p(e,n),{preferredVersionName:null})}return Object.fromEntries(t.map((e=>[e,a(e)])))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]);return[o,(0,r.useMemo)((()=>({savePreferredVersion:function(e,n){d(e,t,n),l((t=>({...t,[e]:{preferredVersionName:n}})))}})),[t])]}function g(e){let{children:t}=e;const n=h();return r.createElement(m.Provider,{value:n},t)}function v(e){let{children:t}=e;return l.cE?r.createElement(g,null,t):r.createElement(r.Fragment,null,t)}function b(){const e=(0,r.useContext)(m);if(!e)throw new s.i6("DocsPreferredVersionContextProvider");return e}function y(e){void 0===e&&(e=o.m);const t=(0,a.zh)(e),[n,i]=b(),{preferredVersionName:l}=n[e];return{preferredVersion:t.versions.find((e=>e.name===l))??null,savePreferredVersionName:(0,r.useCallback)((t=>{i.savePreferredVersion(e,t)}),[i,e])}}function w(){const e=(0,a._r)(),[t]=b();function n(n){const r=e[n],{preferredVersionName:a}=t[n];return r.versions.find((e=>e.name===a))??null}const r=Object.keys(e);return Object.fromEntries(r.map((e=>[e,n(e)])))}},52095:function(e,t,n){"use strict";n.d(t,{V:function(){return s},b:function(){return l}});var r=n(27378),a=n(41763);const o=Symbol("EmptyContext"),i=r.createContext(o);function l(e){let{children:t,name:n,items:a}=e;const o=(0,r.useMemo)((()=>n&&a?{name:n,items:a}:null),[n,a]);return r.createElement(i.Provider,{value:o},t)}function s(){const e=(0,r.useContext)(i);if(e===o)throw new a.i6("DocsSidebarProvider");return e}},52335:function(e,t,n){"use strict";n.d(t,{M:function(){return f},e:function(){return p}});var r=n(27378),a=n(63471),o=n(58357),i=n(3620),l=n(41763);function s(e){!function(e){const t=(0,i.k6)(),n=(0,l.zX)(e);(0,r.useEffect)((()=>t.block(((e,t)=>n(e,t)))),[t,n])}(((t,n)=>{if("POP"===n)return e(t,n)}))}var u=n(20624);const c=r.createContext(void 0);function d(){const e=function(){const e=(0,a.HY)(),{items:t}=(0,u.L)().navbar;return 0===t.length&&!e.component}(),t=(0,o.i)(),n=!e&&"mobile"===t,[i,l]=(0,r.useState)(!1);s((()=>{if(i)return l(!1),!1}));const c=(0,r.useCallback)((()=>{l((e=>!e))}),[]);return(0,r.useEffect)((()=>{"desktop"===t&&l(!1)}),[t]),(0,r.useMemo)((()=>({disabled:e,shouldRender:n,toggle:c,shown:i})),[e,n,c,i])}function f(e){let{children:t}=e;const n=d();return r.createElement(c.Provider,{value:n},t)}function p(){const e=r.useContext(c);if(void 0===e)throw new l.i6("NavbarMobileSidebarProvider");return e}},63471:function(e,t,n){"use strict";n.d(t,{HY:function(){return l},Zo:function(){return s},n2:function(){return i}});var r=n(27378),a=n(41763);const o=r.createContext(null);function i(e){let{children:t}=e;const n=(0,r.useState)({component:null,props:null});return r.createElement(o.Provider,{value:n},t)}function l(){const e=(0,r.useContext)(o);if(!e)throw new a.i6("NavbarSecondaryMenuContentProvider");return e[0]}function s(e){let{component:t,props:n}=e;const i=(0,r.useContext)(o);if(!i)throw new a.i6("NavbarSecondaryMenuContentProvider");const[,l]=i,s=(0,a.Ql)(n);return(0,r.useEffect)((()=>{l({component:t,props:s})}),[l,t,s]),(0,r.useEffect)((()=>()=>l({component:null,props:null})),[l]),null}},70174:function(e,t,n){"use strict";n.d(t,{h:function(){return a},t:function(){return o}});var r=n(27378);const a="navigation-with-keyboard";function o(){(0,r.useEffect)((()=>{function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(a),"mousedown"===e.type&&document.body.classList.remove(a)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),()=>{document.body.classList.remove(a),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},58357:function(e,t,n){"use strict";n.d(t,{i:function(){return u}});var r=n(27378),a=n(161);const o="desktop",i="mobile",l="ssr";function s(){return a.Z.canUseDOM?window.innerWidth>996?o:i:l}function u(){const[e,t]=(0,r.useState)((()=>s()));return(0,r.useEffect)((()=>{function e(){t(s())}return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e),clearTimeout(undefined)}}),[]),e}},75484:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});const r={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",admonitionType:e=>`theme-admonition-${e}`},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:e=>`theme-doc-sidebar-item-category-level-${e}`,docSidebarItemLinkLevel:e=>`theme-doc-sidebar-item-link-level-${e}`},blog:{}}},76100:function(e,t,n){"use strict";n.d(t,{Wl:function(){return f},_F:function(){return m},cE:function(){return d},hI:function(){return w},lO:function(){return v},vY:function(){return y},oz:function(){return b},s1:function(){return g}});var r=n(27378),a=n(3620),o=n(95473),i=n(62935),l=n(24453),s=n(52095);function u(e){return Array.from(new Set(e))}var c=n(8862);const d=!!i._r;function f(e){if(e.href)return e.href;for(const t of e.items){if("link"===t.type)return t.href;if("category"===t.type){const e=f(t);if(e)return e}}}const p=(e,t)=>void 0!==e&&(0,c.Mg)(e,t);function m(e,t){return"link"===e.type?p(e.href,t):"category"===e.type&&(p(e.href,t)||((e,t)=>e.some((e=>m(e,t))))(e.items,t))}function h(e){let{sidebarItems:t,pathname:n,onlyCategories:r=!1}=e;const a=[];return function e(t){for(const o of t)if("category"===o.type&&((0,c.Mg)(o.href,n)||e(o.items))||"link"===o.type&&(0,c.Mg)(o.href,n)){return r&&"category"!==o.type||a.unshift(o),!0}return!1}(t),a}function g(){var e;const t=(0,s.V)(),{pathname:n}=(0,a.TH)();return!1!==(null==(e=(0,i.gA)())?void 0:e.pluginData.breadcrumbs)&&t?h({sidebarItems:t.items,pathname:n}):null}function v(e){const{activeVersion:t}=(0,i.Iw)(e),{preferredVersion:n}=(0,l.J)(e),a=(0,i.yW)(e);return(0,r.useMemo)((()=>u([t,n,a].filter(Boolean))),[t,n,a])}function b(e,t){const n=v(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.sidebars?Object.entries(e.sidebars):[])),r=t.find((t=>t[0]===e));if(!r)throw new Error(`Can't find any sidebar with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\n Available sidebar ids are:\n - ${Object.keys(t).join("\n- ")}`);return r[1]}),[e,n])}function y(e,t){const n=v(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.docs)),r=t.find((t=>t.id===e));if(!r){if(n.flatMap((e=>e.draftIds)).includes(e))return null;throw new Error(`DocNavbarItem: couldn't find any doc with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\nAvailable doc ids are:\n- ${u(t.map((e=>e.id))).join("\n- ")}`)}return r}),[e,n])}function w(e){let{route:t,versionMetadata:n}=e;const r=(0,a.TH)(),i=t.routes,l=i.find((e=>(0,a.LX)(r.pathname,e)));if(!l)return null;const s=l.sidebar,u=s?n.docsSidebars[s]:void 0;return{docElement:(0,o.H)(i),sidebarName:s,sidebarItems:u}}},98831:function(e,t,n){"use strict";n.d(t,{FG:function(){return f},d:function(){return c},VC:function(){return p}});var r=n(27378),a=n(38944),o=n(7092),i=n(66881);function l(){const e=r.useContext(i._);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}var s=n(98948),u=n(50353);function c(e){let{title:t,description:n,keywords:a,image:i,children:l}=e;const c=function(e){const{siteConfig:t}=(0,u.Z)(),{title:n,titleDelimiter:r}=t;return null!=e&&e.trim().length?`${e.trim()} ${r} ${n}`:n}(t),{withBaseUrl:d}=(0,s.C)(),f=i?d(i,{absolute:!0}):void 0;return r.createElement(o.Z,null,t&&r.createElement("title",null,c),t&&r.createElement("meta",{property:"og:title",content:c}),n&&r.createElement("meta",{name:"description",content:n}),n&&r.createElement("meta",{property:"og:description",content:n}),a&&r.createElement("meta",{name:"keywords",content:Array.isArray(a)?a.join(","):a}),f&&r.createElement("meta",{property:"og:image",content:f}),f&&r.createElement("meta",{name:"twitter:image",content:f}),l)}const d=r.createContext(void 0);function f(e){let{className:t,children:n}=e;const i=r.useContext(d),l=(0,a.Z)(i,t);return r.createElement(d.Provider,{value:l},r.createElement(o.Z,null,r.createElement("html",{className:l})),n)}function p(e){let{children:t}=e;const n=l(),o=`plugin-${n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,"")}`;const i=`plugin-id-${n.plugin.id}`;return r.createElement(f,{className:(0,a.Z)(o,i)},t)}},41763:function(e,t,n){"use strict";n.d(t,{D9:function(){return i},Qc:function(){return u},Ql:function(){return s},i6:function(){return l},zX:function(){return o}});var r=n(27378);const a=n(161).Z.canUseDOM?r.useLayoutEffect:r.useEffect;function o(e){const t=(0,r.useRef)(e);return a((()=>{t.current=e}),[e]),(0,r.useCallback)((function(){return t.current(...arguments)}),[])}function i(e){const t=(0,r.useRef)();return a((()=>{t.current=e})),t.current}class l extends Error{constructor(e,t){var n,r,a;super(),this.name="ReactContextError",this.message=`Hook ${(null==(n=this.stack)||null==(r=n.split("\n")[1])||null==(a=r.match(/at (?:\w+\.)?(?<name>\w+)/))?void 0:a.groups.name)??""} is called outside the <${e}>. ${t??""}`}}function s(e){const t=Object.entries(e);return t.sort(((e,t)=>e[0].localeCompare(t[0]))),(0,r.useMemo)((()=>e),t.flat())}function u(e){return t=>{let{children:n}=t;return r.createElement(r.Fragment,null,e.reduceRight(((e,t)=>r.createElement(t,null,e)),n))}}},8862:function(e,t,n){"use strict";n.d(t,{Mg:function(){return i},Ns:function(){return l}});var r=n(27378),a=n(76623),o=n(50353);function i(e,t){const n=e=>{var t;return null==(t=!e||e.endsWith("/")?e:`${e}/`)?void 0:t.toLowerCase()};return n(e)===n(t)}function l(){const{baseUrl:e}=(0,o.Z)().siteConfig;return(0,r.useMemo)((()=>function(e){let{baseUrl:t,routes:n}=e;function r(e){return e.path===t&&!0===e.exact}function a(e){return e.path===t&&!e.exact}return function e(t){if(0===t.length)return;return t.find(r)||e(t.filter(a).flatMap((e=>e.routes??[])))}(n)}({routes:a.Z,baseUrl:e})),[e])}},83457:function(e,t,n){"use strict";n.d(t,{Ct:function(){return f},OC:function(){return s},RF:function(){return d}});var r=n(27378),a=n(161),o=n(76457),i=n(41763);const l=r.createContext(void 0);function s(e){let{children:t}=e;const n=function(){const e=(0,r.useRef)(!0);return(0,r.useMemo)((()=>({scrollEventsEnabledRef:e,enableScrollEvents:()=>{e.current=!0},disableScrollEvents:()=>{e.current=!1}})),[])}();return r.createElement(l.Provider,{value:n},t)}function u(){const e=(0,r.useContext)(l);if(null==e)throw new i.i6("ScrollControllerProvider");return e}const c=()=>a.Z.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;function d(e,t){void 0===t&&(t=[]);const{scrollEventsEnabledRef:n}=u(),a=(0,r.useRef)(c()),o=(0,i.zX)(e);(0,r.useEffect)((()=>{const e=()=>{if(!n.current)return;const e=c();o(e,a.current),a.current=e},t={passive:!0};return e(),window.addEventListener("scroll",e,t),()=>window.removeEventListener("scroll",e,t)}),[o,n,...t])}function f(){const e=(0,r.useRef)(null),t=(0,o.Z)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:n=>{e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),()=>{}}(n):function(e){let t=null;const n=document.documentElement.scrollTop>e;return function r(){const a=document.documentElement.scrollTop;(n&&a>e||!n&&a<e)&&(t=requestAnimationFrame(r),window.scrollTo(0,Math.floor(.85*(a-e))+e))}(),()=>t&&cancelAnimationFrame(t)}(n)},cancelScroll:()=>null==e.current?void 0:e.current()}}},13149:function(e,t,n){"use strict";n.d(t,{HX:function(){return i},_q:function(){return s},os:function(){return l}});var r=n(62935),a=n(50353),o=n(24453);const i="default";function l(e,t){return`docs-${e}-${t}`}function s(){const{i18n:e}=(0,a.Z)(),t=(0,r._r)(),n=(0,r.WS)(),s=(0,o.Oh)();const u=[i,...Object.keys(t).map((function(e){const r=(null==n?void 0:n.activePlugin.pluginId)===e?n.activeVersion:void 0,a=s[e],o=t[e].versions.find((e=>e.isLast));return l(e,(r??a??o).name)}))];return{locale:e.currentLocale,tags:u}}},71819:function(e,t,n){"use strict";n.d(t,{W:function(){return l},_:function(){return s}});const r="localStorage";function a(e){if(void 0===e&&(e=r),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,o||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),o=!0),null}var t}let o=!1;const i={get:()=>null,set:()=>{},del:()=>{}};function l(e,t){if("undefined"==typeof window)return function(e){function t(){throw new Error(`Illegal storage API usage for storage key "${e}".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.`)}return{get:t,set:t,del:t}}(e);const n=a(null==t?void 0:t.persistence);return null===n?i:{get:()=>{try{return n.getItem(e)}catch(t){return console.error(`Docusaurus storage error, can't get key=${e}`,t),null}},set:t=>{try{n.setItem(e,t)}catch(r){console.error(`Docusaurus storage error, can't set ${e}=${t}`,r)}},del:()=>{try{n.removeItem(e)}catch(t){console.error(`Docusaurus storage error, can't delete key=${e}`,t)}}}}function s(e){void 0===e&&(e=r);const t=a(e);if(!t)return[];const n=[];for(let r=0;r<t.length;r+=1){const e=t.key(r);null!==e&&n.push(e)}return n}},43714:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(50353),a=n(3620);function o(){const{siteConfig:{baseUrl:e,url:t},i18n:{defaultLocale:n,currentLocale:o}}=(0,r.Z)(),{pathname:i}=(0,a.TH)(),l=o===n?e:e.replace(`/${o}/`,"/"),s=i.replace(e,"");return{createUrl:function(e){let{locale:r,fullyQualified:a}=e;return`${a?t:""}${function(e){return e===n?`${l}`:`${l}${e}/`}(r)}${s}`}}}},24993:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var r=n(27378),a=n(3620),o=n(41763);function i(e){const t=(0,a.TH)(),n=(0,o.D9)(t),i=(0,o.zX)(e);(0,r.useEffect)((()=>{n&&t!==n&&i({location:t,previousLocation:n})}),[i,t,n])}},20624:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(50353);function a(){return(0,r.Z)().siteConfig.themeConfig}},42520:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[a]=e.split(/[#?]/),o="/"===a||a===r?a:(i=a,n?function(e){return e.endsWith("/")?e:`${e}/`}(i):function(e){return e.endsWith("/")?e.slice(0,-1):e}(i));var i;return e.replace(a,o)}},51721:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.applyTrailingSlash=t.blogPostContainerID=void 0,t.blogPostContainerID="post-content";var a=n(42520);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return r(a).default}})},76623:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(27378),a=n(25773),o=n(67909),i=n.n(o),l=n(16887),s={"0ba16cac":[()=>Promise.all([n.e(532),n.e(290),n.e(829),n.e(784)]).then(n.bind(n,82974)),"@site/../docs/tutorials-creating-custom-field.mdx",82974],"0ec54675":[()=>n.e(773).then(n.bind(n,46512)),"@site/../docs/examples-custom-form.md",46512],17896441:[()=>Promise.all([n.e(532),n.e(290),n.e(918)]).then(n.bind(n,20586)),"@theme/DocItem",20586],"1be78505":[()=>Promise.all([n.e(532),n.e(514)]).then(n.bind(n,65553)),"@theme/DocPage",65553],"1f7065eb":[()=>n.e(566).then(n.bind(n,89885)),"@site/../docs/api-context-data.md",89885],"3d70cde6":[()=>n.e(529).then(n.bind(n,20679)),"@site/../docs/faq.md",20679],"4fd05c72":[()=>Promise.all([n.e(532),n.e(290),n.e(829),n.e(316)]).then(n.bind(n,24942)),"@site/pages/index.tsx",24942],"58c1b389":[()=>n.e(48).then(n.bind(n,66486)),"@site/../docs/api-forms.md",66486],"5e9f5e1a":[()=>Promise.resolve().then(n.bind(n,36809)),"@generated/docusaurus.config",36809],"60b54014":[()=>n.e(21).then(n.bind(n,69296)),"@site/../docs/compare-matrix.md",69296],"6f53493e":[()=>Promise.all([n.e(532),n.e(290),n.e(829),n.e(50)]).then(n.bind(n,21359)),"@site/../docs/tutorials-customizing-your-form-layout.mdx",21359],"724b70da":[()=>Promise.all([n.e(532),n.e(829),n.e(332)]).then(n.bind(n,44726)),"@site/pages/playground.tsx",44726],"7289a944":[()=>n.e(487).then(n.bind(n,31127)),"@site/../docs/examples-custom-bridge.md",31127],"76d37bd5":[()=>Promise.all([n.e(532),n.e(290),n.e(829),n.e(152)]).then(n.bind(n,20461)),"@site/../docs/tutorials-basic-uniforms-usage.mdx",20461],"775024fc":[()=>n.e(908).then(n.bind(n,30135)),"@site/../docs/what-are-uniforms.md",30135],"7f45ca10":[()=>Promise.all([n.e(532),n.e(290),n.e(829),n.e(556)]).then(n.bind(n,6208)),"@site/../docs/examples-custom-fields.mdx",6208],"858af898":[()=>n.e(785).then(n.bind(n,64148)),"@site/../docs/migrating-3-to-4.md",64148],"935f2afb":[()=>n.e(53).then(n.t.bind(n,1109,19)),"~docs/default/version-current-metadata-prop-751.json",1109],"95d13d39":[()=>Promise.all([n.e(532),n.e(290),n.e(37)]).then(n.bind(n,14588)),"@site/../docs/installation.mdx",14588],ab644ad6:[()=>n.e(581).then(n.bind(n,29323)),"@site/../docs/motivation.md",29323],bd337b44:[()=>Promise.all([n.e(532),n.e(290),n.e(442)]).then(n.bind(n,10177)),"@site/../docs/uth-bridge-concept.mdx",10177],be10ca45:[()=>n.e(789).then(n.bind(n,2881)),"@site/../docs/why-are-uniforms.md",2881],be85e8a7:[()=>n.e(943).then(n.t.bind(n,15745,19)),"/home/runner/work/uniforms/uniforms/website/.docusaurus/docusaurus-plugin-content-pages/default/plugin-route-context-module-100.json",15745],c0b88abe:[()=>n.e(517).then(n.bind(n,64574)),"@site/../docs/api-fields.md",64574],ceaf42d5:[()=>n.e(146).then(n.bind(n,75507)),"@site/../docs/migrating-2-to-3.md",75507],d040a628:[()=>n.e(154).then(n.bind(n,86163)),"@site/../docs/compare-matrix-landing.md",86163],d076814b:[()=>n.e(609).then(n.bind(n,22303)),"@site/../docs/api-bridges.md",22303],df3a1a49:[()=>Promise.all([n.e(532),n.e(290),n.e(829),n.e(243)]).then(n.bind(n,27286)),"@site/../docs/tutorials-using-predefined-fields.mdx",27286],e882b3e5:[()=>n.e(903).then(n.bind(n,3806)),"@site/../docs/uth-autofield-algorithm.md",3806],e98b3e1d:[()=>n.e(857).then(n.t.bind(n,83769,19)),"/home/runner/work/uniforms/uniforms/website/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json",83769],f2d00bc8:[()=>n.e(98).then(n.bind(n,267)),"@site/../docs/tutorials-creating-custom-theme.md",267],f5d1468c:[()=>Promise.all([n.e(532),n.e(290),n.e(829),n.e(841)]).then(n.bind(n,46264)),"@site/../docs/examples-common-forms.mdx",46264],f8759e1b:[()=>n.e(269).then(n.bind(n,15890)),"@site/../docs/api-helpers.md",15890]};function u(e){let{error:t,retry:n,pastDelay:a}=e;return t?r.createElement("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"}},r.createElement("p",null,String(t)),r.createElement("div",null,r.createElement("button",{type:"button",onClick:n},"Retry"))):a?r.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"}},r.createElement("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb"},r.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2"},r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("circle",{cx:"22",cy:"22",r:"8"},r.createElement("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"}))))):null}var c=n(13361),d=n(66881);function f(e,t){if("*"===e)return i()({loading:u,loader:()=>n.e(893).then(n.bind(n,53893)),modules:["@theme/NotFound"],webpack:()=>[53893],render(e,t){const n=e.default;return r.createElement(d.z,{value:{plugin:{name:"native",id:"default"}}},r.createElement(n,t))}});const o=l[`${e}-${t}`],f={},p=[],m=[],h=(0,c.Z)(o);return Object.entries(h).forEach((e=>{let[t,n]=e;const r=s[n];r&&(f[t]=r[0],p.push(r[1]),m.push(r[2]))})),i().Map({loading:u,loader:f,modules:p,webpack:()=>m,render(t,n){const i=JSON.parse(JSON.stringify(o));Object.entries(t).forEach((t=>{let[n,r]=t;const a=r.default;if(!a)throw new Error(`The page component at ${e} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);"object"!=typeof a&&"function"!=typeof a||Object.keys(r).filter((e=>"default"!==e)).forEach((e=>{a[e]=r[e]}));let o=i;const l=n.split(".");l.slice(0,-1).forEach((e=>{o=o[e]})),o[l[l.length-1]]=a}));const l=i.__comp;delete i.__comp;const s=i.__context;return delete i.__context,r.createElement(d.z,{value:s},r.createElement(l,(0,a.Z)({},i,n)))}})}var p=[{path:"/playground/",component:f("/playground/","9cd"),exact:!0},{path:"/docs/",component:f("/docs/","180"),routes:[{path:"/docs/api-bridges/",component:f("/docs/api-bridges/","e65"),exact:!0,sidebar:"docs"},{path:"/docs/api-context-data/",component:f("/docs/api-context-data/","237"),exact:!0,sidebar:"docs"},{path:"/docs/api-fields/",component:f("/docs/api-fields/","668"),exact:!0,sidebar:"docs"},{path:"/docs/api-forms/",component:f("/docs/api-forms/","071"),exact:!0,sidebar:"docs"},{path:"/docs/api-helpers/",component:f("/docs/api-helpers/","b84"),exact:!0,sidebar:"docs"},{path:"/docs/compare-matrix-landing/",component:f("/docs/compare-matrix-landing/","d55"),exact:!0},{path:"/docs/compare-matrix/",component:f("/docs/compare-matrix/","45d"),exact:!0,sidebar:"docs"},{path:"/docs/examples-common-forms/",component:f("/docs/examples-common-forms/","ad5"),exact:!0,sidebar:"docs"},{path:"/docs/examples-custom-bridge/",component:f("/docs/examples-custom-bridge/","d91"),exact:!0,sidebar:"docs"},{path:"/docs/examples-custom-fields/",component:f("/docs/examples-custom-fields/","f4a"),exact:!0,sidebar:"docs"},{path:"/docs/examples-custom-form/",component:f("/docs/examples-custom-form/","f40"),exact:!0,sidebar:"docs"},{path:"/docs/faq/",component:f("/docs/faq/","e60"),exact:!0,sidebar:"docs"},{path:"/docs/installation/",component:f("/docs/installation/","ae9"),exact:!0,sidebar:"docs"},{path:"/docs/migrating-2-to-3/",component:f("/docs/migrating-2-to-3/","7b1"),exact:!0,sidebar:"docs"},{path:"/docs/migrating-3-to-4/",component:f("/docs/migrating-3-to-4/","574"),exact:!0,sidebar:"docs"},{path:"/docs/motivation/",component:f("/docs/motivation/","24d"),exact:!0,sidebar:"docs"},{path:"/docs/tutorials-basic-uniforms-usage/",component:f("/docs/tutorials-basic-uniforms-usage/","743"),exact:!0,sidebar:"docs"},{path:"/docs/tutorials-creating-custom-field/",component:f("/docs/tutorials-creating-custom-field/","60f"),exact:!0,sidebar:"docs"},{path:"/docs/tutorials-creating-custom-theme/",component:f("/docs/tutorials-creating-custom-theme/","231"),exact:!0,sidebar:"docs"},{path:"/docs/tutorials-customizing-your-form-layout/",component:f("/docs/tutorials-customizing-your-form-layout/","9a2"),exact:!0,sidebar:"docs"},{path:"/docs/tutorials-using-predefined-fields/",component:f("/docs/tutorials-using-predefined-fields/","35f"),exact:!0,sidebar:"docs"},{path:"/docs/uth-autofield-algorithm/",component:f("/docs/uth-autofield-algorithm/","858"),exact:!0,sidebar:"docs"},{path:"/docs/uth-bridge-concept/",component:f("/docs/uth-bridge-concept/","17b"),exact:!0,sidebar:"docs"},{path:"/docs/what-are-uniforms/",component:f("/docs/what-are-uniforms/","b8f"),exact:!0,sidebar:"docs"},{path:"/docs/why-are-uniforms/",component:f("/docs/why-are-uniforms/","a20"),exact:!0}]},{path:"/",component:f("/","eea"),exact:!0},{path:"*",component:f("*")}]},5321:function(e,t,n){"use strict";n.r(t);var r=n(36809);const{themeConfig:a}=r.default;t.default=function(){if(!a.hotjar)return null;const{hjid:e,manual:t}=a.hotjar;return e&&"undefined"!=typeof window?(n=window,r=document,n.hj=n.hj||function(){(n.hj.q=n.hj.q||[]).push(arguments)},n._hjSettings={hjid:e,hjsv:6},o=r.getElementsByTagName("head")[0],(i=r.createElement("script")).async=1,i.src="https://static.hotjar.com/c/hotjar-"+n._hjSettings.hjid+".js?sv="+n._hjSettings.hjsv,o.appendChild(i),!0===t?{onRouteUpdate(e){let{location:t}=e;window.hj("stateChange",t.pathname)}}:{}):null;var n,r,o,i}()},38944:function(e,t,n){"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}t.Z=function(){for(var e,t,n=0,a="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}},15036:function(e,t,n){"use strict";n.d(t,{lX:function(){return w},q_:function(){return T},ob:function(){return p},PP:function(){return A},Ep:function(){return f}});var r=n(25773);function a(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}var i=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],l=e&&a(e),s=t&&a(t),u=l||s;if(e&&a(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var c=i[i.length-1];n="."===c||".."===c||""===c}else n=!1;for(var d=0,f=i.length;f>=0;f--){var p=i[f];"."===p?o(i,f):".."===p?(o(i,f),d++):d&&(o(i,f),d--)}if(!u)for(;d--;d)i.unshift("..");!u||""===i[0]||i[0]&&a(i[0])||i.unshift("");var m=i.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m},l=n(1115);function s(e){return"/"===e.charAt(0)?e:"/"+e}function u(e){return"/"===e.charAt(0)?e.substr(1):e}function c(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function f(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function p(e,t,n,a){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(l){throw l instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):l}return n&&(o.key=n),a?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=i(o.pathname,a.pathname)):o.pathname=a.pathname:o.pathname||(o.pathname="/"),o}function m(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,a):a(!0):a(!1!==o)}else a(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var h=!("undefined"==typeof window||!window.document||!window.document.createElement);function g(e,t){t(window.confirm(e))}var v="popstate",b="hashchange";function y(){try{return window.history.state||{}}catch(e){return{}}}function w(e){void 0===e&&(e={}),h||(0,l.Z)(!1);var t,n=window.history,a=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,u=i.forceRefresh,w=void 0!==u&&u,k=i.getUserConfirmation,E=void 0===k?g:k,S=i.keyLength,x=void 0===S?6:S,C=e.basename?d(s(e.basename)):"";function T(e){var t=e||{},n=t.key,r=t.state,a=window.location,o=a.pathname+a.search+a.hash;return C&&(o=c(o,C)),p(o,r,n)}function _(){return Math.random().toString(36).substr(2,x)}var A=m();function R(e){(0,r.Z)(U,e),U.length=n.length,A.notifyListeners(U.location,U.action)}function L(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||N(T(e.state))}function P(){N(T(y()))}var O=!1;function N(e){if(O)O=!1,R();else{A.confirmTransitionTo(e,"POP",E,(function(t){t?R({action:"POP",location:e}):function(e){var t=U.location,n=D.indexOf(t.key);-1===n&&(n=0);var r=D.indexOf(e.key);-1===r&&(r=0);var a=n-r;a&&(O=!0,F(a))}(e)}))}}var I=T(y()),D=[I.key];function M(e){return C+f(e)}function F(e){n.go(e)}var B=0;function j(e){1===(B+=e)&&1===e?(window.addEventListener(v,L),o&&window.addEventListener(b,P)):0===B&&(window.removeEventListener(v,L),o&&window.removeEventListener(b,P))}var z=!1;var U={length:n.length,action:"POP",location:I,createHref:M,push:function(e,t){var r="PUSH",o=p(e,t,_(),U.location);A.confirmTransitionTo(o,r,E,(function(e){if(e){var t=M(o),i=o.key,l=o.state;if(a)if(n.pushState({key:i,state:l},null,t),w)window.location.href=t;else{var s=D.indexOf(U.location.key),u=D.slice(0,s+1);u.push(o.key),D=u,R({action:r,location:o})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",o=p(e,t,_(),U.location);A.confirmTransitionTo(o,r,E,(function(e){if(e){var t=M(o),i=o.key,l=o.state;if(a)if(n.replaceState({key:i,state:l},null,t),w)window.location.replace(t);else{var s=D.indexOf(U.location.key);-1!==s&&(D[s]=o.key),R({action:r,location:o})}else window.location.replace(t)}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=A.setPrompt(e);return z||(j(1),z=!0),function(){return z&&(z=!1,j(-1)),t()}},listen:function(e){var t=A.appendListener(e);return j(1),function(){j(-1),t()}}};return U}var k="hashchange",E={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+u(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:u,decodePath:s},slash:{encodePath:s,decodePath:s}};function S(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function x(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function C(e){window.location.replace(S(window.location.href)+"#"+e)}function T(e){void 0===e&&(e={}),h||(0,l.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),a=n.getUserConfirmation,o=void 0===a?g:a,i=n.hashType,u=void 0===i?"slash":i,v=e.basename?d(s(e.basename)):"",b=E[u],y=b.encodePath,w=b.decodePath;function T(){var e=w(x());return v&&(e=c(e,v)),p(e)}var _=m();function A(e){(0,r.Z)(z,e),z.length=t.length,_.notifyListeners(z.location,z.action)}var R=!1,L=null;function P(){var e,t,n=x(),r=y(n);if(n!==r)C(r);else{var a=T(),i=z.location;if(!R&&(t=a,(e=i).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(L===f(a))return;L=null,function(e){if(R)R=!1,A();else{var t="POP";_.confirmTransitionTo(e,t,o,(function(n){n?A({action:t,location:e}):function(e){var t=z.location,n=D.lastIndexOf(f(t));-1===n&&(n=0);var r=D.lastIndexOf(f(e));-1===r&&(r=0);var a=n-r;a&&(R=!0,M(a))}(e)}))}}(a)}}var O=x(),N=y(O);O!==N&&C(N);var I=T(),D=[f(I)];function M(e){t.go(e)}var F=0;function B(e){1===(F+=e)&&1===e?window.addEventListener(k,P):0===F&&window.removeEventListener(k,P)}var j=!1;var z={length:t.length,action:"POP",location:I,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=S(window.location.href)),n+"#"+y(v+f(e))},push:function(e,t){var n="PUSH",r=p(e,void 0,void 0,z.location);_.confirmTransitionTo(r,n,o,(function(e){if(e){var t=f(r),a=y(v+t);if(x()!==a){L=t,function(e){window.location.hash=e}(a);var o=D.lastIndexOf(f(z.location)),i=D.slice(0,o+1);i.push(t),D=i,A({action:n,location:r})}else A()}}))},replace:function(e,t){var n="REPLACE",r=p(e,void 0,void 0,z.location);_.confirmTransitionTo(r,n,o,(function(e){if(e){var t=f(r),a=y(v+t);x()!==a&&(L=t,C(a));var o=D.indexOf(f(z.location));-1!==o&&(D[o]=t),A({action:n,location:r})}}))},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(e){void 0===e&&(e=!1);var t=_.setPrompt(e);return j||(B(1),j=!0),function(){return j&&(j=!1,B(-1)),t()}},listen:function(e){var t=_.appendListener(e);return B(1),function(){B(-1),t()}}};return z}function _(e,t,n){return Math.min(Math.max(e,t),n)}function A(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,a=t.initialEntries,o=void 0===a?["/"]:a,i=t.initialIndex,l=void 0===i?0:i,s=t.keyLength,u=void 0===s?6:s,c=m();function d(e){(0,r.Z)(w,e),w.length=w.entries.length,c.notifyListeners(w.location,w.action)}function h(){return Math.random().toString(36).substr(2,u)}var g=_(l,0,o.length-1),v=o.map((function(e){return p(e,void 0,"string"==typeof e?h():e.key||h())})),b=f;function y(e){var t=_(w.index+e,0,w.entries.length-1),r=w.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?d({action:"POP",location:r,index:t}):d()}))}var w={length:v.length,action:"POP",location:v[g],index:g,entries:v,createHref:b,push:function(e,t){var r="PUSH",a=p(e,t,h(),w.location);c.confirmTransitionTo(a,r,n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,a):n.push(a),d({action:r,location:a,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",a=p(e,t,h(),w.location);c.confirmTransitionTo(a,r,n,(function(e){e&&(w.entries[w.index]=a,d({action:r,location:a}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return w}},55839:function(e,t,n){"use strict";var r=n(12097),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?i:l[e.$$typeof]||a}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var a=p(n);a&&a!==m&&e(t,a,r)}var i=c(n);d&&(i=i.concat(d(n)));for(var l=s(t),h=s(n),g=0;g<i.length;++g){var v=i[g];if(!(o[v]||r&&r[v]||h&&h[v]||l&&l[v])){var b=f(n,v);try{u(t,v,b)}catch(y){}}}}return t}},14173:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case l:case i:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case h:case s:return e;default:return t}}case a:return t}}}function E(e){return k(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=h,t.Portal=a,t.Profiler=l,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||k(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===f},t.isFragment=function(e){return k(e)===o},t.isLazy=function(e){return k(e)===g},t.isMemo=function(e){return k(e)===h},t.isPortal=function(e){return k(e)===a},t.isProfiler=function(e){return k(e)===l},t.isStrictMode=function(e){return k(e)===i},t.isSuspense=function(e){return k(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===l||e===i||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===u||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=k},12097:function(e,t,n){"use strict";e.exports=n(14173)},3996:function(e){"use strict";e.exports=function(e,t,n,r,a,o,i,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,a,o,i,l],c=0;(s=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},70142:function(e,t,n){"use strict";n.r(t)},41111:function(e,t,n){"use strict";n.r(t)},8504:function(e,t,n){var r,a;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function a(e,t,n){return e<t?t:e>n?n:e}function o(e){return 100*(-1+e)}function i(e,t,n){var a;return(a="translate3d"===r.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+t+"ms "+n,a}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,r.minimum,1),n.status=1===e?null:e;var o=n.render(!t),u=o.querySelector(r.barSelector),c=r.speed,d=r.easing;return o.offsetWidth,l((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),s(u,i(e,c,d)),1===e?(s(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout((function(){s(o,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),c)}),c)):setTimeout(t,c)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var a,i=t.querySelector(r.barSelector),l=e?"-100":o(n.status||0),u=document.querySelector(r.parent);return s(i,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),r.showSpinner||(a=t.querySelector(r.spinnerSelector))&&p(a),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var l=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),s=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,a=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);a--;)if((r=e[a]+o)in n)return r;return t}function a(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=a(t),e.style[t]=n}return function(e,t){var n,r,a=arguments;if(2==a.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,a[1],a[2])}}();function u(e,t){return("string"==typeof e?e:f(e)).indexOf(" "+t+" ")>=0}function c(e,t){var n=f(e),r=n+t;u(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=f(e);u(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function f(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(a="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=a)},62525:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(a){return!1}}()?Object.assign:function(e,o){for(var i,l,s=a(e),u=1;u<arguments.length;u++){for(var c in i=Object(arguments[u]))n.call(i,c)&&(s[c]=i[c]);if(t){l=t(i);for(var d=0;d<l.length;d++)r.call(i,l[d])&&(s[l[d]]=i[l[d]])}}return s}},52349:function(e,t){"use strict";var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var a,o;switch(n=n||{},r.util.type(t)){case"Object":if(o=r.util.objId(t),n[o])return n[o];for(var i in a={},n[o]=a,t)t.hasOwnProperty(i)&&(a[i]=e(t[i],n));return a;case"Array":return o=r.util.objId(t),n[o]?n[o]:(a=[],n[o]=a,t.forEach((function(t,r){a[r]=e(t,n)})),a);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(e,t,n,a){var o=(a=a||r.languages)[e],i={};for(var l in o)if(o.hasOwnProperty(l)){if(l==t)for(var s in n)n.hasOwnProperty(s)&&(i[s]=n[s]);n.hasOwnProperty(l)||(i[l]=o[l])}var u=a[e];return a[e]=i,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=i)})),i},DFS:function e(t,n,a,o){o=o||{};var i=r.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],a||l);var s=t[l],u=r.util.type(s);"Object"!==u||o[i(s)]?"Array"!==u||o[i(s)]||(o[i(s)]=!0,e(s,n,l,o)):(o[i(s)]=!0,e(s,n,null,o))}}},plugins:{},highlight:function(e,t,n){var o={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",o),o.tokens=r.tokenize(o.code,o.grammar),r.hooks.run("after-tokenize",o),a.stringify(r.util.encode(o.tokens),o.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new l;return s(a,a.head,e),i(e,a,t,a.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,o=0;a=n[o++];)a(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var o=a[1].length;a.index+=o,a[0]=a[0].slice(o)}return a}function i(e,t,n,l,c,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+","+m)return;var h=p[m],g=h.inside,v=!!h.lookbehind,b=!!h.greedy,y=h.alias;if(b&&!h.pattern.global){var w=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,w+"g")}for(var k=h.pattern||h,E=l.next,S=c;E!==t.tail&&!(d&&S>=d.reach);S+=E.value.length,E=E.next){var x=E.value;if(t.length>e.length)return;if(!(x instanceof a)){var C,T=1;if(b){if(!(C=o(k,S,e,v))||C.index>=e.length)break;var _=C.index,A=C.index+C[0].length,R=S;for(R+=E.value.length;_>=R;)R+=(E=E.next).value.length;if(S=R-=E.value.length,E.value instanceof a)continue;for(var L=E;L!==t.tail&&(R<A||"string"==typeof L.value);L=L.next)T++,R+=L.value.length;T--,x=e.slice(S,R),C.index-=S}else if(!(C=o(k,0,x,v)))continue;_=C.index;var P=C[0],O=x.slice(0,_),N=x.slice(_+P.length),I=S+x.length;d&&I>d.reach&&(d.reach=I);var D=E.prev;if(O&&(D=s(t,D,O),S+=O.length),u(t,D,T),E=s(t,D,new a(f,g?r.tokenize(P,g):P,y,P)),N&&s(t,E,N),T>1){var M={cause:f+","+m,reach:I};i(e,t,n,E.prev,S,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function u(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}return a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach((function(t){a+=e(t,n)})),a}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},i=t.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(o.classes,i):o.classes.push(i)),r.hooks.run("wrap",o);var l="";for(var s in o.attributes)l+=" "+s+'="'+(o.attributes[s]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+l+">"+o.content+"</"+o.tag+">"},r}(),r=n;n.default=n,r.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};a["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:a},r.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=r.variable[1].inside,i=0;i<a.length;i++)o[a[i]]=e.languages.bash[a[i]];e.languages.shell=e.languages.bash}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.c=r.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),r.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),r.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},r.languages.c.string],char:r.languages.c.char,comment:r.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:r.languages.c}}}}),r.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete r.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(r),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:a})}(r),r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(r),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function i(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+a+"|"+o+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:i(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:i(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:i(o),lookbehind:!0,greedy:!0},number:{pattern:i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(r),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var a=t[n];if("code"===a.type){var o=a.content[1],i=a.content[3];if(o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content){var l=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(l=(/[a-z][\w-]*/i.exec(l)||[""])[0].toLowerCase());i.alias?"string"==typeof i.alias?i.alias=[i.alias,s]:i.alias.push(s):i.alias=[s]}}else e(a.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,a=t.classes.length;r<a;r++){var o=t.classes[r],u=/language-(.+)/.exec(o);if(u){n=u[1];break}}var c,d=e.languages[n];if(d)t.content=e.highlight((c=t.content,c.replace(i,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n);var r=l[t];return r||e}))),d,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var i=RegExp(e.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(r),r.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:r.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},r.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var a=[];if(d(["definition-mutation","punctuation"])&&"("===c(1).content){n+=2;var o=f(/^\($/,/^\)$/);if(-1===o)continue;for(;n<o;n++){var i=c(0);"variable"===i.type&&(p(i,"variable-input"),a.push(i.content))}n=o+1}if(d(["punctuation","property-query"])&&"{"===c(0).content&&(n++,p(c(0),"property-mutation"),a.length>0)){var l=f(/^\{$/,/^\}$/);if(-1===l)continue;for(var s=n;s<l;s++){var u=t[s];"variable"===u.type&&a.indexOf(u.content)>=0&&p(u,"variable-input")}}}}function c(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=c(n+t);if(!r||r.type!==e[n])return!1}return!0}function f(e,r){for(var a=1,o=n;o<t.length;o++){var i=t[o],l=i.content;if("punctuation"===i.type&&"string"==typeof l)if(e.test(l))a++;else if(r.test(l)&&0===--a)return o}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),r.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],o=r.pattern.source;function i(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function l(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function s(t,n,r){var a={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(a.code,a.grammar),e.hooks.run("after-tokenize",a),a.tokens}function u(t){var n={};n["interpolation-punctuation"]=a;var o=e.tokenize(t,n);if(3===o.length){var i=[1,1];i.push.apply(i,s(o[1],e.languages.javascript,"javascript")),o.splice.apply(o,i)}return new e.Token("interpolation",o,r.alias,t)}function c(t,n,r){var a=e.tokenize(t,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),i=0,c={},d=s(a.map((function(e){if("string"==typeof e)return e;for(var n,a=e.content;-1!==t.indexOf(n=l(i++,r)););return c[n]=a,n})).join(""),n,r),f=Object.keys(c);return i=0,function e(t){for(var n=0;n<t.length;n++){if(i>=f.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var a=f[i],o="string"==typeof r?r:r.content,l=o.indexOf(a);if(-1!==l){++i;var s=o.substring(0,l),d=u(c[a]),p=o.substring(l+a.length),m=[];if(s&&m.push(s),m.push(d),p){var h=[p];e(h),m.push.apply(m,h)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(m)),n+=m.length-1):r.content=m}}else{var g=r.content;Array.isArray(g)?e(g):e([g])}}}(d),new e.Token(r,d,"language-"+r,t)}e.languages.javascript["template-string"]=[i("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),i("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),i("svg",/\bsvg/.source),i("markdown",/\b(?:markdown|md)/.source),i("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),i("sql",/\bsql/.source),t].filter(Boolean);var d={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function f(e){return"string"==typeof e?e:Array.isArray(e)?e.map(f).join(""):f(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in d&&function t(n){for(var r=0,a=n.length;r<a;r++){var o=n[r];if("string"!=typeof o){var i=o.content;if(Array.isArray(i))if("template-string"===o.type){var l=i[1];if(3===i.length&&"string"!=typeof l&&"embedded-code"===l.type){var s=f(l),u=l.alias,d=Array.isArray(u)?u[0]:u,p=e.languages[d];if(!p)continue;i[1]=c(s,p,d)}}else t(i);else"string"!=typeof i&&t([i])}}}(t.tokens)}))}(r),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(r),function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var a=n[r],o=e.languages.javascript[a];"RegExp"===e.util.type(o)&&(o=e.languages.javascript[a]={pattern:o});var i=o.inside||{};o.inside=i,i["maybe-class-name"]=/^[A-Z][\s\S]*/}}(r),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return a})),RegExp(e,t)}a=o(a).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var i=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(i).join(""):""},l=function(t){for(var n=[],r=0;r<t.length;r++){var a=t[r],o=!1;if("string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===i(a.content[0].content[1])&&n.pop():"/>"===a.content[a.content.length-1].content||n.push({tagName:i(a.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:o=!0),(o||"string"==typeof a)&&n.length>0&&0===n[n.length-1].openedBraces){var s=i(a);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=i(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=i(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}a.content&&"string"!=typeof a.content&&l(a.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||l(e.tokens)}))}(r),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],a=[];/^\w+$/.test(n)||a.push(/\w+/.exec(n)[0]),"diff"===n&&a.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(r),r.languages.git={comment:/^#.*/m,deleted:/^[-\u2013].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},r.languages.go=r.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),r.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete r.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,o){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,l=i.length;-1!==n.code.indexOf(a=t(r,l));)++l;return i[l]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,o=Object.keys(n.tokenStack);!function i(l){for(var s=0;s<l.length&&!(a>=o.length);s++){var u=l[s];if("string"==typeof u||u.content&&"string"==typeof u.content){var c=o[a],d=n.tokenStack[c],f="string"==typeof u?u:u.content,p=t(r,c),m=f.indexOf(p);if(m>-1){++a;var h=f.substring(0,m),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),v=f.substring(m+p.length),b=[];h&&b.push.apply(b,i([h])),b.push(g),v&&b.push.apply(b,i([v])),"string"==typeof u?l.splice.apply(l,[s,1].concat(b)):u.content=b}}else u.content&&i(u.content)}return l}(n.tokens)}}}})}(r),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(r),r.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},r.languages.webmanifest=r.languages.json,r.languages.less=r.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),r.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),r.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},r.languages.objectivec=r.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete r.languages.objectivec["class-name"],r.languages.objc=r.languages.objectivec,r.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},r.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},r.languages.python["string-interpolation"].inside.interpolation.inside.rest=r.languages.python,r.languages.py=r.languages.python,r.languages.reason=r.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),r.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete r.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(r),r.languages.scss=r.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),r.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),r.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),r.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),r.languages.scss.atrule.inside.rest=r.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(r),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(r),r.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/},t.Z=r},29911:function(e){e.exports&&(e.exports={core:{meta:{path:"components/prism-core.js",option:"mandatory"},core:"Core"},themes:{meta:{path:"themes/{id}.css",link:"index.html?theme={id}",exclusive:!0},prism:{title:"Default",option:"default"},"prism-dark":"Dark","prism-funky":"Funky","prism-okaidia":{title:"Okaidia",owner:"ocodia"},"prism-twilight":{title:"Twilight",owner:"remybach"},"prism-coy":{title:"Coy",owner:"tshedor"},"prism-solarizedlight":{title:"Solarized Light",owner:"hectormatos2011 "},"prism-tomorrow":{title:"Tomorrow Night",owner:"Rosey"}},languages:{meta:{path:"components/prism-{id}",noCSS:!0,examplesPath:"examples/prism-{id}",addCheckAll:!0},markup:{title:"Markup",alias:["html","xml","svg","mathml","ssml","atom","rss"],aliasTitles:{html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",ssml:"SSML",atom:"Atom",rss:"RSS"},option:"default"},css:{title:"CSS",option:"default",modify:"markup"},clike:{title:"C-like",option:"default"},javascript:{title:"JavaScript",require:"clike",modify:"markup",optional:"regex",alias:"js",option:"default"},abap:{title:"ABAP",owner:"dellagustin"},abnf:{title:"ABNF",owner:"RunDevelopment"},actionscript:{title:"ActionScript",require:"javascript",modify:"markup",owner:"Golmote"},ada:{title:"Ada",owner:"Lucretia"},agda:{title:"Agda",owner:"xy-ren"},al:{title:"AL",owner:"RunDevelopment"},antlr4:{title:"ANTLR4",alias:"g4",owner:"RunDevelopment"},apacheconf:{title:"Apache Configuration",owner:"GuiTeK"},apex:{title:"Apex",require:["clike","sql"],owner:"RunDevelopment"},apl:{title:"APL",owner:"ngn"},applescript:{title:"AppleScript",owner:"Golmote"},aql:{title:"AQL",owner:"RunDevelopment"},arduino:{title:"Arduino",require:"cpp",alias:"ino",owner:"dkern"},arff:{title:"ARFF",owner:"Golmote"},armasm:{title:"ARM Assembly",alias:"arm-asm",owner:"RunDevelopment"},arturo:{title:"Arturo",alias:"art",optional:["bash","css","javascript","markup","markdown","sql"],owner:"drkameleon"},asciidoc:{alias:"adoc",title:"AsciiDoc",owner:"Golmote"},aspnet:{title:"ASP.NET (C#)",require:["markup","csharp"],owner:"nauzilus"},asm6502:{title:"6502 Assembly",owner:"kzurawel"},asmatmel:{title:"Atmel AVR Assembly",owner:"cerkit"},autohotkey:{title:"AutoHotkey",owner:"aviaryan"},autoit:{title:"AutoIt",owner:"Golmote"},avisynth:{title:"AviSynth",alias:"avs",owner:"Zinfidel"},"avro-idl":{title:"Avro IDL",alias:"avdl",owner:"RunDevelopment"},awk:{title:"AWK",alias:"gawk",aliasTitles:{gawk:"GAWK"},owner:"RunDevelopment"},bash:{title:"Bash",alias:["sh","shell"],aliasTitles:{sh:"Shell",shell:"Shell"},owner:"zeitgeist87"},basic:{title:"BASIC",owner:"Golmote"},batch:{title:"Batch",owner:"Golmote"},bbcode:{title:"BBcode",alias:"shortcode",aliasTitles:{shortcode:"Shortcode"},owner:"RunDevelopment"},bbj:{title:"BBj",owner:"hyyan"},bicep:{title:"Bicep",owner:"johnnyreilly"},birb:{title:"Birb",require:"clike",owner:"Calamity210"},bison:{title:"Bison",require:"c",owner:"Golmote"},bnf:{title:"BNF",alias:"rbnf",aliasTitles:{rbnf:"RBNF"},owner:"RunDevelopment"},bqn:{title:"BQN",owner:"yewscion"},brainfuck:{title:"Brainfuck",owner:"Golmote"},brightscript:{title:"BrightScript",owner:"RunDevelopment"},bro:{title:"Bro",owner:"wayward710"},bsl:{title:"BSL (1C:Enterprise)",alias:"oscript",aliasTitles:{oscript:"OneScript"},owner:"Diversus23"},c:{title:"C",require:"clike",owner:"zeitgeist87"},csharp:{title:"C#",require:"clike",alias:["cs","dotnet"],owner:"mvalipour"},cpp:{title:"C++",require:"c",owner:"zeitgeist87"},cfscript:{title:"CFScript",require:"clike",alias:"cfc",owner:"mjclemente"},chaiscript:{title:"ChaiScript",require:["clike","cpp"],owner:"RunDevelopment"},cil:{title:"CIL",owner:"sbrl"},cilkc:{title:"Cilk/C",require:"c",alias:"cilk-c",owner:"OpenCilk"},cilkcpp:{title:"Cilk/C++",require:"cpp",alias:["cilk-cpp","cilk"],owner:"OpenCilk"},clojure:{title:"Clojure",owner:"troglotit"},cmake:{title:"CMake",owner:"mjrogozinski"},cobol:{title:"COBOL",owner:"RunDevelopment"},coffeescript:{title:"CoffeeScript",require:"javascript",alias:"coffee",owner:"R-osey"},concurnas:{title:"Concurnas",alias:"conc",owner:"jasontatton"},csp:{title:"Content-Security-Policy",owner:"ScottHelme"},cooklang:{title:"Cooklang",owner:"ahue"},coq:{title:"Coq",owner:"RunDevelopment"},crystal:{title:"Crystal",require:"ruby",owner:"MakeNowJust"},"css-extras":{title:"CSS Extras",require:"css",modify:"css",owner:"milesj"},csv:{title:"CSV",owner:"RunDevelopment"},cue:{title:"CUE",owner:"RunDevelopment"},cypher:{title:"Cypher",owner:"RunDevelopment"},d:{title:"D",require:"clike",owner:"Golmote"},dart:{title:"Dart",require:"clike",owner:"Golmote"},dataweave:{title:"DataWeave",owner:"machaval"},dax:{title:"DAX",owner:"peterbud"},dhall:{title:"Dhall",owner:"RunDevelopment"},diff:{title:"Diff",owner:"uranusjr"},django:{title:"Django/Jinja2",require:"markup-templating",alias:"jinja2",owner:"romanvm"},"dns-zone-file":{title:"DNS zone file",owner:"RunDevelopment",alias:"dns-zone"},docker:{title:"Docker",alias:"dockerfile",owner:"JustinBeckwith"},dot:{title:"DOT (Graphviz)",alias:"gv",optional:"markup",owner:"RunDevelopment"},ebnf:{title:"EBNF",owner:"RunDevelopment"},editorconfig:{title:"EditorConfig",owner:"osipxd"},eiffel:{title:"Eiffel",owner:"Conaclos"},ejs:{title:"EJS",require:["javascript","markup-templating"],owner:"RunDevelopment",alias:"eta",aliasTitles:{eta:"Eta"}},elixir:{title:"Elixir",owner:"Golmote"},elm:{title:"Elm",owner:"zwilias"},etlua:{title:"Embedded Lua templating",require:["lua","markup-templating"],owner:"RunDevelopment"},erb:{title:"ERB",require:["ruby","markup-templating"],owner:"Golmote"},erlang:{title:"Erlang",owner:"Golmote"},"excel-formula":{title:"Excel Formula",alias:["xlsx","xls"],owner:"RunDevelopment"},fsharp:{title:"F#",require:"clike",owner:"simonreynolds7"},factor:{title:"Factor",owner:"catb0t"},false:{title:"False",owner:"edukisto"},"firestore-security-rules":{title:"Firestore security rules",require:"clike",owner:"RunDevelopment"},flow:{title:"Flow",require:"javascript",owner:"Golmote"},fortran:{title:"Fortran",owner:"Golmote"},ftl:{title:"FreeMarker Template Language",require:"markup-templating",owner:"RunDevelopment"},gml:{title:"GameMaker Language",alias:"gamemakerlanguage",require:"clike",owner:"LiarOnce"},gap:{title:"GAP (CAS)",owner:"RunDevelopment"},gcode:{title:"G-code",owner:"RunDevelopment"},gdscript:{title:"GDScript",owner:"RunDevelopment"},gedcom:{title:"GEDCOM",owner:"Golmote"},gettext:{title:"gettext",alias:"po",owner:"RunDevelopment"},gherkin:{title:"Gherkin",owner:"hason"},git:{title:"Git",owner:"lgiraudel"},glsl:{title:"GLSL",require:"c",owner:"Golmote"},gn:{title:"GN",alias:"gni",owner:"RunDevelopment"},"linker-script":{title:"GNU Linker Script",alias:"ld",owner:"RunDevelopment"},go:{title:"Go",require:"clike",owner:"arnehormann"},"go-module":{title:"Go module",alias:"go-mod",owner:"RunDevelopment"},gradle:{title:"Gradle",require:"clike",owner:"zeabdelkhalek-badido18"},graphql:{title:"GraphQL",optional:"markdown",owner:"Golmote"},groovy:{title:"Groovy",require:"clike",owner:"robfletcher"},haml:{title:"Haml",require:"ruby",optional:["css","css-extras","coffeescript","erb","javascript","less","markdown","scss","textile"],owner:"Golmote"},handlebars:{title:"Handlebars",require:"markup-templating",alias:["hbs","mustache"],aliasTitles:{mustache:"Mustache"},owner:"Golmote"},haskell:{title:"Haskell",alias:"hs",owner:"bholst"},haxe:{title:"Haxe",require:"clike",optional:"regex",owner:"Golmote"},hcl:{title:"HCL",owner:"outsideris"},hlsl:{title:"HLSL",require:"c",owner:"RunDevelopment"},hoon:{title:"Hoon",owner:"matildepark"},http:{title:"HTTP",optional:["csp","css","hpkp","hsts","javascript","json","markup","uri"],owner:"danielgtaylor"},hpkp:{title:"HTTP Public-Key-Pins",owner:"ScottHelme"},hsts:{title:"HTTP Strict-Transport-Security",owner:"ScottHelme"},ichigojam:{title:"IchigoJam",owner:"BlueCocoa"},icon:{title:"Icon",owner:"Golmote"},"icu-message-format":{title:"ICU Message Format",owner:"RunDevelopment"},idris:{title:"Idris",alias:"idr",owner:"KeenS",require:"haskell"},ignore:{title:".ignore",owner:"osipxd",alias:["gitignore","hgignore","npmignore"],aliasTitles:{gitignore:".gitignore",hgignore:".hgignore",npmignore:".npmignore"}},inform7:{title:"Inform 7",owner:"Golmote"},ini:{title:"Ini",owner:"aviaryan"},io:{title:"Io",owner:"AlesTsurko"},j:{title:"J",owner:"Golmote"},java:{title:"Java",require:"clike",owner:"sherblot"},javadoc:{title:"JavaDoc",require:["markup","java","javadoclike"],modify:"java",optional:"scala",owner:"RunDevelopment"},javadoclike:{title:"JavaDoc-like",modify:["java","javascript","php"],owner:"RunDevelopment"},javastacktrace:{title:"Java stack trace",owner:"RunDevelopment"},jexl:{title:"Jexl",owner:"czosel"},jolie:{title:"Jolie",require:"clike",owner:"thesave"},jq:{title:"JQ",owner:"RunDevelopment"},jsdoc:{title:"JSDoc",require:["javascript","javadoclike","typescript"],modify:"javascript",optional:["actionscript","coffeescript"],owner:"RunDevelopment"},"js-extras":{title:"JS Extras",require:"javascript",modify:"javascript",optional:["actionscript","coffeescript","flow","n4js","typescript"],owner:"RunDevelopment"},json:{title:"JSON",alias:"webmanifest",aliasTitles:{webmanifest:"Web App Manifest"},owner:"CupOfTea696"},json5:{title:"JSON5",require:"json",owner:"RunDevelopment"},jsonp:{title:"JSONP",require:"json",owner:"RunDevelopment"},jsstacktrace:{title:"JS stack trace",owner:"sbrl"},"js-templates":{title:"JS Templates",require:"javascript",modify:"javascript",optional:["css","css-extras","graphql","markdown","markup","sql"],owner:"RunDevelopment"},julia:{title:"Julia",owner:"cdagnino"},keepalived:{title:"Keepalived Configure",owner:"dev-itsheng"},keyman:{title:"Keyman",owner:"mcdurdin"},kotlin:{title:"Kotlin",alias:["kt","kts"],aliasTitles:{kts:"Kotlin Script"},require:"clike",owner:"Golmote"},kumir:{title:"KuMir (\u041a\u0443\u041c\u0438\u0440)",alias:"kum",owner:"edukisto"},kusto:{title:"Kusto",owner:"RunDevelopment"},latex:{title:"LaTeX",alias:["tex","context"],aliasTitles:{tex:"TeX",context:"ConTeXt"},owner:"japborst"},latte:{title:"Latte",require:["clike","markup-templating","php"],owner:"nette"},less:{title:"Less",require:"css",optional:"css-extras",owner:"Golmote"},lilypond:{title:"LilyPond",require:"scheme",alias:"ly",owner:"RunDevelopment"},liquid:{title:"Liquid",require:"markup-templating",owner:"cinhtau"},lisp:{title:"Lisp",alias:["emacs","elisp","emacs-lisp"],owner:"JuanCaicedo"},livescript:{title:"LiveScript",owner:"Golmote"},llvm:{title:"LLVM IR",owner:"porglezomp"},log:{title:"Log file",optional:"javastacktrace",owner:"RunDevelopment"},lolcode:{title:"LOLCODE",owner:"Golmote"},lua:{title:"Lua",owner:"Golmote"},magma:{title:"Magma (CAS)",owner:"RunDevelopment"},makefile:{title:"Makefile",owner:"Golmote"},markdown:{title:"Markdown",require:"markup",optional:"yaml",alias:"md",owner:"Golmote"},"markup-templating":{title:"Markup templating",require:"markup",owner:"Golmote"},mata:{title:"Mata",owner:"RunDevelopment"},matlab:{title:"MATLAB",owner:"Golmote"},maxscript:{title:"MAXScript",owner:"RunDevelopment"},mel:{title:"MEL",owner:"Golmote"},mermaid:{title:"Mermaid",owner:"RunDevelopment"},metafont:{title:"METAFONT",owner:"LaeriExNihilo"},mizar:{title:"Mizar",owner:"Golmote"},mongodb:{title:"MongoDB",owner:"airs0urce",require:"javascript"},monkey:{title:"Monkey",owner:"Golmote"},moonscript:{title:"MoonScript",alias:"moon",owner:"RunDevelopment"},n1ql:{title:"N1QL",owner:"TMWilds"},n4js:{title:"N4JS",require:"javascript",optional:"jsdoc",alias:"n4jsd",owner:"bsmith-n4"},"nand2tetris-hdl":{title:"Nand To Tetris HDL",owner:"stephanmax"},naniscript:{title:"Naninovel Script",owner:"Elringus",alias:"nani"},nasm:{title:"NASM",owner:"rbmj"},neon:{title:"NEON",owner:"nette"},nevod:{title:"Nevod",owner:"nezaboodka"},nginx:{title:"nginx",owner:"volado"},nim:{title:"Nim",owner:"Golmote"},nix:{title:"Nix",owner:"Golmote"},nsis:{title:"NSIS",owner:"idleberg"},objectivec:{title:"Objective-C",require:"c",alias:"objc",owner:"uranusjr"},ocaml:{title:"OCaml",owner:"Golmote"},odin:{title:"Odin",owner:"edukisto"},opencl:{title:"OpenCL",require:"c",modify:["c","cpp"],owner:"Milania1"},openqasm:{title:"OpenQasm",alias:"qasm",owner:"RunDevelopment"},oz:{title:"Oz",owner:"Golmote"},parigp:{title:"PARI/GP",owner:"Golmote"},parser:{title:"Parser",require:"markup",owner:"Golmote"},pascal:{title:"Pascal",alias:"objectpascal",aliasTitles:{objectpascal:"Object Pascal"},owner:"Golmote"},pascaligo:{title:"Pascaligo",owner:"DefinitelyNotAGoat"},psl:{title:"PATROL Scripting Language",owner:"bertysentry"},pcaxis:{title:"PC-Axis",alias:"px",owner:"RunDevelopment"},peoplecode:{title:"PeopleCode",alias:"pcode",owner:"RunDevelopment"},perl:{title:"Perl",owner:"Golmote"},php:{title:"PHP",require:"markup-templating",owner:"milesj"},phpdoc:{title:"PHPDoc",require:["php","javadoclike"],modify:"php",owner:"RunDevelopment"},"php-extras":{title:"PHP Extras",require:"php",modify:"php",owner:"milesj"},"plant-uml":{title:"PlantUML",alias:"plantuml",owner:"RunDevelopment"},plsql:{title:"PL/SQL",require:"sql",owner:"Golmote"},powerquery:{title:"PowerQuery",alias:["pq","mscript"],owner:"peterbud"},powershell:{title:"PowerShell",owner:"nauzilus"},processing:{title:"Processing",require:"clike",owner:"Golmote"},prolog:{title:"Prolog",owner:"Golmote"},promql:{title:"PromQL",owner:"arendjr"},properties:{title:".properties",owner:"Golmote"},protobuf:{title:"Protocol Buffers",require:"clike",owner:"just-boris"},pug:{title:"Pug",require:["markup","javascript"],optional:["coffeescript","ejs","handlebars","less","livescript","markdown","scss","stylus","twig"],owner:"Golmote"},puppet:{title:"Puppet",owner:"Golmote"},pure:{title:"Pure",optional:["c","cpp","fortran"],owner:"Golmote"},purebasic:{title:"PureBasic",require:"clike",alias:"pbfasm",owner:"HeX0R101"},purescript:{title:"PureScript",require:"haskell",alias:"purs",owner:"sriharshachilakapati"},python:{title:"Python",alias:"py",owner:"multipetros"},qsharp:{title:"Q#",require:"clike",alias:"qs",owner:"fedonman"},q:{title:"Q (kdb+ database)",owner:"Golmote"},qml:{title:"QML",require:"javascript",owner:"RunDevelopment"},qore:{title:"Qore",require:"clike",owner:"temnroegg"},r:{title:"R",owner:"Golmote"},racket:{title:"Racket",require:"scheme",alias:"rkt",owner:"RunDevelopment"},cshtml:{title:"Razor C#",alias:"razor",require:["markup","csharp"],optional:["css","css-extras","javascript","js-extras"],owner:"RunDevelopment"},jsx:{title:"React JSX",require:["markup","javascript"],optional:["jsdoc","js-extras","js-templates"],owner:"vkbansal"},tsx:{title:"React TSX",require:["jsx","typescript"]},reason:{title:"Reason",require:"clike",owner:"Golmote"},regex:{title:"Regex",owner:"RunDevelopment"},rego:{title:"Rego",owner:"JordanSh"},renpy:{title:"Ren'py",alias:"rpy",owner:"HyuchiaDiego"},rescript:{title:"ReScript",alias:"res",owner:"vmarcosp"},rest:{title:"reST (reStructuredText)",owner:"Golmote"},rip:{title:"Rip",owner:"ravinggenius"},roboconf:{title:"Roboconf",owner:"Golmote"},robotframework:{title:"Robot Framework",alias:"robot",owner:"RunDevelopment"},ruby:{title:"Ruby",require:"clike",alias:"rb",owner:"samflores"},rust:{title:"Rust",owner:"Golmote"},sas:{title:"SAS",optional:["groovy","lua","sql"],owner:"Golmote"},sass:{title:"Sass (Sass)",require:"css",optional:"css-extras",owner:"Golmote"},scss:{title:"Sass (SCSS)",require:"css",optional:"css-extras",owner:"MoOx"},scala:{title:"Scala",require:"java",owner:"jozic"},scheme:{title:"Scheme",owner:"bacchus123"},"shell-session":{title:"Shell session",require:"bash",alias:["sh-session","shellsession"],owner:"RunDevelopment"},smali:{title:"Smali",owner:"RunDevelopment"},smalltalk:{title:"Smalltalk",owner:"Golmote"},smarty:{title:"Smarty",require:"markup-templating",optional:"php",owner:"Golmote"},sml:{title:"SML",alias:"smlnj",aliasTitles:{smlnj:"SML/NJ"},owner:"RunDevelopment"},solidity:{title:"Solidity (Ethereum)",alias:"sol",require:"clike",owner:"glachaud"},"solution-file":{title:"Solution file",alias:"sln",owner:"RunDevelopment"},soy:{title:"Soy (Closure Template)",require:"markup-templating",owner:"Golmote"},sparql:{title:"SPARQL",require:"turtle",owner:"Triply-Dev",alias:"rq"},"splunk-spl":{title:"Splunk SPL",owner:"RunDevelopment"},sqf:{title:"SQF: Status Quo Function (Arma 3)",require:"clike",owner:"RunDevelopment"},sql:{title:"SQL",owner:"multipetros"},squirrel:{title:"Squirrel",require:"clike",owner:"RunDevelopment"},stan:{title:"Stan",owner:"RunDevelopment"},stata:{title:"Stata Ado",require:["mata","java","python"],owner:"RunDevelopment"},iecst:{title:"Structured Text (IEC 61131-3)",owner:"serhioromano"},stylus:{title:"Stylus",owner:"vkbansal"},supercollider:{title:"SuperCollider",alias:"sclang",owner:"RunDevelopment"},swift:{title:"Swift",owner:"chrischares"},systemd:{title:"Systemd configuration file",owner:"RunDevelopment"},"t4-templating":{title:"T4 templating",owner:"RunDevelopment"},"t4-cs":{title:"T4 Text Templates (C#)",require:["t4-templating","csharp"],alias:"t4",owner:"RunDevelopment"},"t4-vb":{title:"T4 Text Templates (VB)",require:["t4-templating","vbnet"],owner:"RunDevelopment"},tap:{title:"TAP",owner:"isaacs",require:"yaml"},tcl:{title:"Tcl",owner:"PeterChaplin"},tt2:{title:"Template Toolkit 2",require:["clike","markup-templating"],owner:"gflohr"},textile:{title:"Textile",require:"markup",optional:"css",owner:"Golmote"},toml:{title:"TOML",owner:"RunDevelopment"},tremor:{title:"Tremor",alias:["trickle","troy"],owner:"darach",aliasTitles:{trickle:"trickle",troy:"troy"}},turtle:{title:"Turtle",alias:"trig",aliasTitles:{trig:"TriG"},owner:"jakubklimek"},twig:{title:"Twig",require:"markup-templating",owner:"brandonkelly"},typescript:{title:"TypeScript",require:"javascript",optional:"js-templates",alias:"ts",owner:"vkbansal"},typoscript:{title:"TypoScript",alias:"tsconfig",aliasTitles:{tsconfig:"TSConfig"},owner:"dkern"},unrealscript:{title:"UnrealScript",alias:["uscript","uc"],owner:"RunDevelopment"},uorazor:{title:"UO Razor Script",owner:"jaseowns"},uri:{title:"URI",alias:"url",aliasTitles:{url:"URL"},owner:"RunDevelopment"},v:{title:"V",require:"clike",owner:"taggon"},vala:{title:"Vala",require:"clike",optional:"regex",owner:"TemplarVolk"},vbnet:{title:"VB.Net",require:"basic",owner:"Bigsby"},velocity:{title:"Velocity",require:"markup",owner:"Golmote"},verilog:{title:"Verilog",owner:"a-rey"},vhdl:{title:"VHDL",owner:"a-rey"},vim:{title:"vim",owner:"westonganger"},"visual-basic":{title:"Visual Basic",alias:["vb","vba"],aliasTitles:{vba:"VBA"},owner:"Golmote"},warpscript:{title:"WarpScript",owner:"RunDevelopment"},wasm:{title:"WebAssembly",owner:"Golmote"},"web-idl":{title:"Web IDL",alias:"webidl",owner:"RunDevelopment"},wgsl:{title:"WGSL",owner:"Dr4gonthree"},wiki:{title:"Wiki markup",require:"markup",owner:"Golmote"},wolfram:{title:"Wolfram language",alias:["mathematica","nb","wl"],aliasTitles:{mathematica:"Mathematica",nb:"Mathematica Notebook"},owner:"msollami"},wren:{title:"Wren",owner:"clsource"},xeora:{title:"Xeora",require:"markup",alias:"xeoracube",aliasTitles:{xeoracube:"XeoraCube"},owner:"freakmaxi"},"xml-doc":{title:"XML doc (.net)",require:"markup",modify:["csharp","fsharp","vbnet"],owner:"RunDevelopment"},xojo:{title:"Xojo (REALbasic)",owner:"Golmote"},xquery:{title:"XQuery",require:"markup",owner:"Golmote"},yaml:{title:"YAML",alias:"yml",owner:"hason"},yang:{title:"YANG",owner:"RunDevelopment"},zig:{title:"Zig",owner:"RunDevelopment"}},plugins:{meta:{path:"plugins/{id}/prism-{id}",link:"plugins/{id}/"},"line-highlight":{title:"Line Highlight",description:"Highlights specific lines and/or line ranges."},"line-numbers":{title:"Line Numbers",description:"Line number at the beginning of code lines.",owner:"kuba-kubula"},"show-invisibles":{title:"Show Invisibles",description:"Show hidden characters such as tabs and line breaks.",optional:["autolinker","data-uri-highlight"]},autolinker:{title:"Autolinker",description:"Converts URLs and emails in code to clickable links. Parses Markdown links in comments."},wpd:{title:"WebPlatform Docs",description:'Makes tokens link to <a href="https://webplatform.github.io/docs/">WebPlatform.org documentation</a>. The links open in a new tab.'},"custom-class":{title:"Custom Class",description:"This plugin allows you to prefix Prism's default classes (<code>.comment</code> can become <code>.namespace--comment</code>) or replace them with your defined ones (like <code>.editor__comment</code>). You can even add new classes.",owner:"dvkndn",noCSS:!0},"file-highlight":{title:"File Highlight",description:"Fetch external files and highlight them with Prism. Used on the Prism website itself.",noCSS:!0},"show-language":{title:"Show Language",description:"Display the highlighted language in code blocks (inline code does not show the label).",owner:"nauzilus",noCSS:!0,require:"toolbar"},"jsonp-highlight":{title:"JSONP Highlight",description:"Fetch content with JSONP and highlight some interesting content (e.g. GitHub/Gists or Bitbucket API).",noCSS:!0,owner:"nauzilus"},"highlight-keywords":{title:"Highlight Keywords",description:"Adds special CSS classes for each keyword for fine-grained highlighting.",owner:"vkbansal",noCSS:!0},"remove-initial-line-feed":{title:"Remove initial line feed",description:"Removes the initial line feed in code blocks.",owner:"Golmote",noCSS:!0},"inline-color":{title:"Inline color",description:"Adds a small inline preview for colors in style sheets.",require:"css-extras",owner:"RunDevelopment"},previewers:{title:"Previewers",description:"Previewers for angles, colors, gradients, easing and time.",require:"css-extras",owner:"Golmote"},autoloader:{title:"Autoloader",description:"Automatically loads the needed languages to highlight the code blocks.",owner:"Golmote",noCSS:!0},"keep-markup":{title:"Keep Markup",description:"Prevents custom markup from being dropped out during highlighting.",owner:"Golmote",optional:"normalize-whitespace",noCSS:!0},"command-line":{title:"Command Line",description:"Display a command line with a prompt and, optionally, the output/response from the commands.",owner:"chriswells0"},"unescaped-markup":{title:"Unescaped Markup",description:"Write markup without having to escape anything."},"normalize-whitespace":{title:"Normalize Whitespace",description:"Supports multiple operations to normalize whitespace in code blocks.",owner:"zeitgeist87",optional:"unescaped-markup",noCSS:!0},"data-uri-highlight":{title:"Data-URI Highlight",description:"Highlights data-URI contents.",owner:"Golmote",noCSS:!0},toolbar:{title:"Toolbar",description:"Attach a toolbar for plugins to easily register buttons on the top of a code block.",owner:"mAAdhaTTah"},"copy-to-clipboard":{title:"Copy to Clipboard Button",description:"Add a button that copies the code block to the clipboard when clicked.",owner:"mAAdhaTTah",require:"toolbar",noCSS:!0},"download-button":{title:"Download Button",description:"A button in the toolbar of a code block adding a convenient way to download a code file.",owner:"Golmote",require:"toolbar",noCSS:!0},"match-braces":{title:"Match braces",description:"Highlights matching braces.",owner:"RunDevelopment"},"diff-highlight":{title:"Diff Highlight",description:"Highlights the code inside diff blocks.",owner:"RunDevelopment",require:"diff"},"filter-highlight-all":{title:"Filter highlightAll",description:"Filters the elements the <code>highlightAll</code> and <code>highlightAllUnder</code> methods actually highlight.",owner:"RunDevelopment",noCSS:!0},treeview:{title:"Treeview",description:"A language with special styles to highlight file system tree structures.",owner:"Golmote"}}})},73916:function(e,t,n){const r=n(29911),a=n(54587),o=new Set;function i(e){void 0===e?e=Object.keys(r.languages).filter((e=>"meta"!=e)):Array.isArray(e)||(e=[e]);const t=[...o,...Object.keys(Prism.languages)];a(r,e,t).load((e=>{if(!(e in r.languages))return void(i.silent||console.warn("Language does not exist: "+e));const t="./prism-"+e;delete n.c[n(3392).resolve(t)],delete Prism.languages[e],n(3392)(t),o.add(e)}))}i.silent=!1,e.exports=i},3392:function(e,t,n){var r={"./":73916};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=3392},54587:function(e){"use strict";var t=function(){var e=function(){};function t(e,t){Array.isArray(e)?e.forEach(t):null!=e&&t(e,0)}function n(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n]]=!0;return t}function r(e){var n={},r=[];function a(r,o){if(!(r in n)){o.push(r);var i=o.indexOf(r);if(i<o.length-1)throw new Error("Circular dependency: "+o.slice(i).join(" -> "));var l={},s=e[r];if(s){function u(t){if(!(t in e))throw new Error(r+" depends on an unknown component "+t);if(!(t in l))for(var i in a(t,o),l[t]=!0,n[t])l[i]=!0}t(s.require,u),t(s.optional,u),t(s.modify,u)}n[r]=l,o.pop()}}return function(e){var t=n[e];return t||(a(e,r),t=n[e]),t}}function a(e){for(var t in e)return!0;return!1}return function(o,i,l){var s=function(e){var t={};for(var n in e){var r=e[n];for(var a in r)if("meta"!=a){var o=r[a];t[a]="string"==typeof o?{title:o}:o}}return t}(o),u=function(e){var n;return function(r){if(r in e)return r;if(!n)for(var a in n={},e){var o=e[a];t(o&&o.alias,(function(t){if(t in n)throw new Error(t+" cannot be alias for both "+a+" and "+n[t]);if(t in e)throw new Error(t+" cannot be alias of "+a+" because it is a component.");n[t]=a}))}return n[r]||r}}(s);i=i.map(u),l=(l||[]).map(u);var c=n(i),d=n(l);i.forEach((function e(n){var r=s[n];t(r&&r.require,(function(t){t in d||(c[t]=!0,e(t))}))}));for(var f,p=r(s),m=c;a(m);){for(var h in f={},m){var g=s[h];t(g&&g.modify,(function(e){e in d&&(f[e]=!0)}))}for(var v in d)if(!(v in c))for(var b in p(v))if(b in c){f[v]=!0;break}for(var y in m=f)c[y]=!0}var w={getIds:function(){var e=[];return w.load((function(t){e.push(t)})),e},load:function(t,n){return function(t,n,r,a){var o=a?a.series:void 0,i=a?a.parallel:e,l={},s={};function u(e){if(e in l)return l[e];s[e]=!0;var a,c=[];for(var d in t(e))d in n&&c.push(d);if(0===c.length)a=r(e);else{var f=i(c.map((function(e){var t=u(e);return delete s[e],t})));o?a=o(f,(function(){return r(e)})):r(e)}return l[e]=a}for(var c in n)u(c);var d=[];for(var f in s)d.push(l[f]);return i(d)}(p,c,t,n)}};return w}}();e.exports=t},58772:function(e,t,n){"use strict";var r=n(90331);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},23615:function(e,t,n){e.exports=n(58772)()},90331:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},43577:function(e,t,n){"use strict";var r=n(27378),a=n(62525),o=n(91102);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(i(227));var l=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)l.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,m={},h={};function g(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function w(e,t,n,r){var a=v.hasOwnProperty(t)?v[t]:null;(null!==a?0===a.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!p.call(h,e)||!p.call(m,e)&&(f.test(e)?h[e]=!0:(m[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,y);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,y);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,y);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,S=60106,x=60107,C=60108,T=60114,_=60109,A=60110,R=60112,L=60113,P=60120,O=60115,N=60116,I=60121,D=60128,M=60129,F=60130,B=60131;if("function"==typeof Symbol&&Symbol.for){var j=Symbol.for;E=j("react.element"),S=j("react.portal"),x=j("react.fragment"),C=j("react.strict_mode"),T=j("react.profiler"),_=j("react.provider"),A=j("react.context"),R=j("react.forward_ref"),L=j("react.suspense"),P=j("react.suspense_list"),O=j("react.memo"),N=j("react.lazy"),I=j("react.block"),j("react.scope"),D=j("react.opaque.id"),M=j("react.debug_trace_mode"),F=j("react.offscreen"),B=j("react.legacy_hidden")}var z,U="function"==typeof Symbol&&Symbol.iterator;function $(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=U&&e[U]||e["@@iterator"])?e:null}function q(e){if(void 0===z)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var G=!1;function H(e,t){if(!e||G)return"";G=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"==typeof s.stack){for(var a=s.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,l=o.length-1;1<=i&&0<=l&&a[i]!==o[l];)l--;for(;1<=i&&0<=l;i--,l--)if(a[i]!==o[l]){if(1!==i||1!==l)do{if(i--,0>--l||a[i]!==o[l])return"\n"+a[i].replace(" at new "," at ")}while(1<=i&&0<=l);break}}}finally{G=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?q(e):""}function Z(e){switch(e.tag){case 5:return q(e.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 22:return e=H(e.type._render,!1);case 1:return e=H(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case T:return"Profiler";case C:return"StrictMode";case L:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case A:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case O:return V(e.type);case I:return V(e._render);case N:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}return null}function W(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ae(e,t.type,n):t.hasOwnProperty("defaultValue")&&ae(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ae(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ie(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ue(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",fe="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function me(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,ge,ve=(ge=function(e,t){if(e.namespaceURI!==fe||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ge(e,t)}))}:ge);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function ke(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=ke(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(ye).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var Se=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xe(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function Ce(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Te(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,Ae=null,Re=null;function Le(e){if(e=ra(e)){if("function"!=typeof _e)throw Error(i(280));var t=e.stateNode;t&&(t=oa(t),_e(e.stateNode,e.type,t))}}function Pe(e){Ae?Re?Re.push(e):Re=[e]:Ae=e}function Oe(){if(Ae){var e=Ae,t=Re;if(Re=Ae=null,Le(e),t)for(e=0;e<t.length;e++)Le(t[e])}}function Ne(e,t){return e(t)}function Ie(e,t,n,r,a){return e(t,n,r,a)}function De(){}var Me=Ne,Fe=!1,Be=!1;function je(){null===Ae&&null===Re||(De(),Oe())}function ze(e,t){var n=e.stateNode;if(null===n)return null;var r=oa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Ue=!1;if(d)try{var $e={};Object.defineProperty($e,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",$e,$e),window.removeEventListener("test",$e,$e)}catch(ge){Ue=!1}function qe(e,t,n,r,a,o,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ge=!1,He=null,Ze=!1,Ve=null,We={onError:function(e){Ge=!0,He=e}};function Ke(e,t,n,r,a,o,i,l,s){Ge=!1,He=null,qe.apply(We,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Ye(e)!==e)throw Error(i(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return Xe(a),e;if(o===r)return Xe(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var l=!1,s=a.child;s;){if(s===n){l=!0,n=a,r=o;break}if(s===r){l=!0,r=a,n=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===n){l=!0,n=o,r=a;break}if(s===r){l=!0,r=o,n=a;break}s=s.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,at,ot=!1,it=[],lt=null,st=null,ut=null,ct=new Map,dt=new Map,ft=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mt(e,t,n,r,a){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:a,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":lt=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function gt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e=mt(t,n,r,a,o),null!==t&&(null!==(t=ra(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function vt(e){var t=na(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void at(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ra(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){bt(e)&&n.delete(t)}function wt(){for(ot=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=ra(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==lt&&bt(lt)&&(lt=null),null!==st&&bt(st)&&(st=null),null!==ut&&bt(ut)&&(ut=null),ct.forEach(yt),dt.forEach(yt)}function kt(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,wt)))}function Et(e){function t(t){return kt(t,e)}if(0<it.length){kt(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==lt&&kt(lt,e),null!==st&&kt(st,e),null!==ut&&kt(ut,e),ct.forEach(t),dt.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xt={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},Ct={},Tt={};function _t(e){if(Ct[e])return Ct[e];if(!xt[e])return e;var t,n=xt[e];for(t in n)if(n.hasOwnProperty(t)&&t in Tt)return Ct[e]=n[t];return e}d&&(Tt=document.createElement("div").style,"AnimationEvent"in window||(delete xt.animationend.animation,delete xt.animationiteration.animation,delete xt.animationstart.animation),"TransitionEvent"in window||delete xt.transitionend.transition);var At=_t("animationend"),Rt=_t("animationiteration"),Lt=_t("animationstart"),Pt=_t("transitionend"),Ot=new Map,Nt=new Map,It=["abort","abort",At,"animationEnd",Rt,"animationIteration",Lt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Pt,"transitionEnd","waiting","waiting"];function Dt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1];a="on"+(a[0].toUpperCase()+a.slice(1)),Nt.set(r,t),Ot.set(r,a),u(a,[r])}}(0,o.unstable_now)();var Mt=8;function Ft(e){if(0!=(1&e))return Mt=15,1;if(0!=(2&e))return Mt=14,2;if(0!=(4&e))return Mt=13,4;var t=24&e;return 0!==t?(Mt=12,t):0!=(32&e)?(Mt=11,32):0!==(t=192&e)?(Mt=10,t):0!=(256&e)?(Mt=9,256):0!==(t=3584&e)?(Mt=8,t):0!=(4096&e)?(Mt=7,4096):0!==(t=4186112&e)?(Mt=6,t):0!==(t=62914560&e)?(Mt=5,t):67108864&e?(Mt=4,67108864):0!=(134217728&e)?(Mt=3,134217728):0!==(t=805306368&e)?(Mt=2,t):0!=(1073741824&e)?(Mt=1,1073741824):(Mt=8,e)}function Bt(e,t){var n=e.pendingLanes;if(0===n)return Mt=0;var r=0,a=0,o=e.expiredLanes,i=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,a=Mt=15;else if(0!==(o=134217727&n)){var s=o&~i;0!==s?(r=Ft(s),a=Mt):0!==(l&=o)&&(r=Ft(l),a=Mt)}else 0!==(o=n&~i)?(r=Ft(o),a=Mt):0!==l&&(r=Ft(l),a=Mt);if(0===r)return 0;if(r=n&((0>(r=31-Gt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&i)){if(Ft(t),a<=Mt)return t;Mt=a}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-Gt(t)),r|=e[n],t&=~a;return r}function jt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function zt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?zt(10,t):e;case 10:return 0===(e=Ut(192&~t))?zt(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(i(358,e))}function Ut(e){return e&-e}function $t(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Gt(t)]=n}var Gt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Zt|0)|0},Ht=Math.log,Zt=Math.LN2;var Vt=o.unstable_UserBlockingPriority,Wt=o.unstable_runWithPriority,Kt=!0;function Yt(e,t,n,r){Fe||De();var a=Xt,o=Fe;Fe=!0;try{Ie(a,e,t,n,r)}finally{(Fe=o)||je()}}function Qt(e,t,n,r){Wt(Vt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var a;if(Kt)if((a=0==(4&t))&&0<it.length&&-1<pt.indexOf(e))e=mt(null,e,t,n,r),it.push(e);else{var o=Jt(e,t,n,r);if(null===o)a&&ht(e,r);else{if(a){if(-1<pt.indexOf(e))return e=mt(o,e,t,n,r),void it.push(e);if(function(e,t,n,r,a){switch(t){case"focusin":return lt=gt(lt,e,t,n,r,a),!0;case"dragenter":return st=gt(st,e,t,n,r,a),!0;case"mouseover":return ut=gt(ut,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return ct.set(o,gt(ct.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,dt.set(o,gt(dt.get(o)||null,e,t,n,r,a)),!0}return!1}(o,e,t,n,r))return;ht(e,r)}Dr(e,t,r,null,n)}}}function Jt(e,t,n,r){var a=Te(r);if(null!==(a=na(a))){var o=Ye(a);if(null===o)a=null;else{var i=o.tag;if(13===i){if(null!==(a=Qe(o)))return a;a=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return Dr(e,t,r,a,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,a="value"in en?en.value:en.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return nn=a.slice(e,1<t?1-t:void 0)}function an(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function ln(){return!1}function sn(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?on:ln,this.isPropagationStopped=ln,this}return a(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var un,cn,dn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=sn(fn),mn=a({},fn,{view:0,detail:0}),hn=sn(mn),gn=a({},mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dn&&(dn&&"mousemove"===e.type?(un=e.screenX-dn.screenX,cn=e.screenY-dn.screenY):cn=un=0,dn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),vn=sn(gn),bn=sn(a({},gn,{dataTransfer:0})),yn=sn(a({},mn,{relatedTarget:0})),wn=sn(a({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),kn=a({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),En=sn(kn),Sn=sn(a({},fn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Tn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Tn[e])&&!!t[e]}function An(){return _n}var Rn=a({},mn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=an(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return"keypress"===e.type?an(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?an(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ln=sn(Rn),Pn=sn(a({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=sn(a({},mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),Nn=sn(a({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=a({},gn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Dn=sn(In),Mn=[9,13,27,32],Fn=d&&"CompositionEvent"in window,Bn=null;d&&"documentMode"in document&&(Bn=document.documentMode);var jn=d&&"TextEvent"in window&&!Bn,zn=d&&(!Fn||Bn&&8<Bn&&11>=Bn),Un=String.fromCharCode(32),$n=!1;function qn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Zn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Zn[e.type]:"textarea"===t}function Wn(e,t,n,r){Pe(r),0<(t=Fr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Yn=null;function Qn(e){Rr(e,0)}function Xn(e){if(Q(aa(e)))return e}function Jn(e,t){if("change"===e)return t}var er=!1;if(d){var tr;if(d){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"==typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function ar(){Kn&&(Kn.detachEvent("onpropertychange",or),Yn=Kn=null)}function or(e){if("value"===e.propertyName&&Xn(Yn)){var t=[];if(Wn(t,Yn,e,Te(e)),e=Qn,Fe)e(t);else{Fe=!0;try{Ne(e,t)}finally{Fe=!1,je()}}}}function ir(e,t,n){"focusin"===e?(ar(),Yn=n,(Kn=t).attachEvent("onpropertychange",or)):"focusout"===e&&ar()}function lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Yn)}function sr(e,t){if("click"===e)return Xn(t)}function ur(e,t){if("input"===e||"change"===e)return Xn(t)}var cr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},dr=Object.prototype.hasOwnProperty;function fr(e,t){if(cr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!dr.call(t,n[r])||!cr(e[n[r]],t[n[r]]))return!1;return!0}function pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mr(e,t){var n,r=pr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var br=d&&"documentMode"in document&&11>=document.documentMode,yr=null,wr=null,kr=null,Er=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Er||null==yr||yr!==X(r)||("selectionStart"in(r=yr)&&vr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},kr&&fr(kr,r)||(kr=r,0<(r=Fr(wr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}Dt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Dt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Dt(It,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Cr=0;Cr<xr.length;Cr++)Nt.set(xr[Cr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_r=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tr));function Ar(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,o,l,s,u){if(Ke.apply(this,arguments),Ge){if(!Ge)throw Error(i(198));var c=He;Ge=!1,He=null,Ze||(Ze=!0,Ve=c)}}(r,t,void 0,e),e.currentTarget=null}function Rr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&a.isPropagationStopped())break e;Ar(a,l,u),o=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,u=l.currentTarget,l=l.listener,s!==o&&a.isPropagationStopped())break e;Ar(a,l,u),o=s}}}if(Ze)throw e=Ve,Ze=!1,Ve=null,e}function Lr(e,t){var n=ia(t),r=e+"__bubble";n.has(r)||(Ir(t,e,2,!1),n.add(r))}var Pr="_reactListening"+Math.random().toString(36).slice(2);function Or(e){e[Pr]||(e[Pr]=!0,l.forEach((function(t){_r.has(t)||Nr(t,!1,e,null),Nr(t,!0,e,null)})))}function Nr(e,t,n,r){var a=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&_r.has(e)){if("scroll"!==e)return;a|=2,o=r}var i=ia(o),l=e+"__"+(t?"capture":"bubble");i.has(l)||(t&&(a|=4),Ir(o,e,a,t),i.add(l))}function Ir(e,t,n,r){var a=Nt.get(t);switch(void 0===a?2:a){case 0:a=Yt;break;case 1:a=Qt;break;default:a=Xt}n=a.bind(null,t,n,e),a=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Dr(e,t,n,r,a){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===a||8===l.nodeType&&l.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===a||8===s.nodeType&&s.parentNode===a))return;i=i.return}for(;null!==l;){if(null===(i=na(l)))return;if(5===(s=i.tag)||6===s){r=o=i;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Be)return e(t,n);Be=!0;try{Me(e,t,n)}finally{Be=!1,je()}}((function(){var r=o,a=Te(n),i=[];e:{var l=Ot.get(e);if(void 0!==l){var s=pn,u=e;switch(e){case"keypress":if(0===an(n))break e;case"keydown":case"keyup":s=Ln;break;case"focusin":u="focus",s=yn;break;case"focusout":u="blur",s=yn;break;case"beforeblur":case"afterblur":s=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=On;break;case At:case Rt:case Lt:s=wn;break;case Pt:s=Nn;break;case"scroll":s=hn;break;case"wheel":s=Dn;break;case"copy":case"cut":case"paste":s=En;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Pn}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==l?l+"Capture":null:l;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==f&&(null!=(h=ze(m,f))&&c.push(Mr(m,h,p)))),d)break;m=m.return}0<c.length&&(l=new s(l,u,null,n,a),i.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!na(u)&&!u[ea])&&(s||l)&&(l=a.window===a?a:(l=a.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?na(u):null)&&(u!==(d=Ye(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=vn,h="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,h="onPointerLeave",f="onPointerEnter",m="pointer"),d=null==s?l:aa(s),p=null==u?l:aa(u),(l=new c(h,m+"leave",s,n,a)).target=d,l.relatedTarget=p,h=null,na(a)===r&&((c=new c(f,m+"enter",u,n,a)).target=p,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(f=u,m=0,p=c=s;p;p=Br(p))m++;for(p=0,h=f;h;h=Br(h))p++;for(;0<m-p;)c=Br(c),m--;for(;0<p-m;)f=Br(f),p--;for(;m--;){if(c===f||null!==f&&c===f.alternate)break e;c=Br(c),f=Br(f)}c=null}else c=null;null!==s&&jr(i,l,s,c,!1),null!==u&&null!==d&&jr(i,d,u,c,!0)}if("select"===(s=(l=r?aa(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Jn;else if(Vn(l))if(er)g=ur;else{g=lr;var v=ir}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=sr);switch(g&&(g=g(e,r))?Wn(i,g,n,a):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&ae(l,"number",l.value)),v=r?aa(r):window,e){case"focusin":(Vn(v)||"true"===v.contentEditable)&&(yr=v,wr=r,kr=null);break;case"focusout":kr=wr=yr=null;break;case"mousedown":Er=!0;break;case"contextmenu":case"mouseup":case"dragend":Er=!1,Sr(i,n,a);break;case"selectionchange":if(br)break;case"keydown":case"keyup":Sr(i,n,a)}var b;if(Fn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Hn?qn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(zn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Hn&&(b=rn()):(tn="value"in(en=a)?en.value:en.textContent,Hn=!0)),0<(v=Fr(r,y)).length&&(y=new Sn(y,e,null,n,a),i.push({event:y,listeners:v}),b?y.data=b:null!==(b=Gn(n))&&(y.data=b))),(b=jn?function(e,t){switch(e){case"compositionend":return Gn(t);case"keypress":return 32!==t.which?null:($n=!0,Un);case"textInput":return(e=t.data)===Un&&$n?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Fn&&qn(e,t)?(e=rn(),nn=tn=en=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Fr(r,"onBeforeInput")).length&&(a=new Sn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=b))}Rr(i,t)}))}function Mr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=ze(e,n))&&r.unshift(Mr(e,o,a)),null!=(o=ze(e,t))&&r.push(Mr(e,o,a))),e=e.return}return r}function Br(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function jr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,a?null!=(s=ze(n,o))&&i.unshift(Mr(n,s,l)):a||null!=(s=ze(n,o))&&i.push(Mr(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function zr(){}var Ur=null,$r=null;function qr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Gr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Hr="function"==typeof setTimeout?setTimeout:void 0,Zr="function"==typeof clearTimeout?clearTimeout:void 0;function Vr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Kr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Yr=0;var Qr=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Qr,Jr="__reactProps$"+Qr,ea="__reactContainer$"+Qr,ta="__reactEvents$"+Qr;function na(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ea]||n[Xr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Kr(e);null!==e;){if(n=e[Xr])return n;e=Kr(e)}return t}n=(e=n).parentNode}return null}function ra(e){return!(e=e[Xr]||e[ea])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function aa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function oa(e){return e[Jr]||null}function ia(e){var t=e[ta];return void 0===t&&(t=e[ta]=new Set),t}var la=[],sa=-1;function ua(e){return{current:e}}function ca(e){0>sa||(e.current=la[sa],la[sa]=null,sa--)}function da(e,t){sa++,la[sa]=e.current,e.current=t}var fa={},pa=ua(fa),ma=ua(!1),ha=fa;function ga(e,t){var n=e.type.contextTypes;if(!n)return fa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function va(e){return null!=(e=e.childContextTypes)}function ba(){ca(ma),ca(pa)}function ya(e,t,n){if(pa.current!==fa)throw Error(i(168));da(pa,t),da(ma,n)}function wa(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(i(108,V(t)||"Unknown",o));return a({},n,r)}function ka(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fa,ha=pa.current,da(pa,e),da(ma,ma.current),!0}function Ea(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=wa(e,t,ha),r.__reactInternalMemoizedMergedChildContext=e,ca(ma),ca(pa),da(pa,e)):ca(ma),da(ma,n)}var Sa=null,xa=null,Ca=o.unstable_runWithPriority,Ta=o.unstable_scheduleCallback,_a=o.unstable_cancelCallback,Aa=o.unstable_shouldYield,Ra=o.unstable_requestPaint,La=o.unstable_now,Pa=o.unstable_getCurrentPriorityLevel,Oa=o.unstable_ImmediatePriority,Na=o.unstable_UserBlockingPriority,Ia=o.unstable_NormalPriority,Da=o.unstable_LowPriority,Ma=o.unstable_IdlePriority,Fa={},Ba=void 0!==Ra?Ra:function(){},ja=null,za=null,Ua=!1,$a=La(),qa=1e4>$a?La:function(){return La()-$a};function Ga(){switch(Pa()){case Oa:return 99;case Na:return 98;case Ia:return 97;case Da:return 96;case Ma:return 95;default:throw Error(i(332))}}function Ha(e){switch(e){case 99:return Oa;case 98:return Na;case 97:return Ia;case 96:return Da;case 95:return Ma;default:throw Error(i(332))}}function Za(e,t){return e=Ha(e),Ca(e,t)}function Va(e,t,n){return e=Ha(e),Ta(e,t,n)}function Wa(){if(null!==za){var e=za;za=null,_a(e)}Ka()}function Ka(){if(!Ua&&null!==ja){Ua=!0;var e=0;try{var t=ja;Za(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),ja=null}catch(n){throw null!==ja&&(ja=ja.slice(e+1)),Ta(Oa,Wa),n}finally{Ua=!1}}}var Ya=k.ReactCurrentBatchConfig;function Qa(e,t){if(e&&e.defaultProps){for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Xa=ua(null),Ja=null,eo=null,to=null;function no(){to=eo=Ja=null}function ro(e){var t=Xa.current;ca(Xa),e.type._context._currentValue=t}function ao(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function oo(e,t){Ja=e,to=eo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Fi=!0),e.firstContext=null)}function io(e,t){if(to!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(to=e,t=1073741823),t={context:e,observedBits:t,next:null},null===eo){if(null===Ja)throw Error(i(308));eo=t,Ja.dependencies={lanes:0,firstContext:t,responders:null}}else eo=eo.next=t;return e._currentValue}var lo=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function uo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function co(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function po(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function mo(e,t,n,r){var o=e.updateQueue;lo=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var u=s,c=u.next;u.next=null,null===l?i=c:l.next=c,l=u;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==l&&(null===f?d.firstBaseUpdate=c:f.next=c,d.lastBaseUpdate=u)}}if(null!==i){for(f=o.baseState,l=0,d=c=u=null;;){s=i.lane;var p=i.eventTime;if((r&s)===s){null!==d&&(d=d.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var m=e,h=i;switch(s=t,p=n,h.tag){case 1:if("function"==typeof(m=h.payload)){f=m.call(p,f,s);break e}f=m;break e;case 3:m.flags=-4097&m.flags|64;case 0:if(null==(s="function"==typeof(m=h.payload)?m.call(p,f,s):m))break e;f=a({},f,s);break e;case 2:lo=!0}}null!==i.callback&&(e.flags|=32,null===(s=o.effects)?o.effects=[i]:s.push(i))}else p={eventTime:p,lane:s,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===d?(c=d=p,u=f):d=d.next=p,l|=s;if(null===(i=i.next)){if(null===(s=o.shared.pending))break;i=s.next,s.next=null,o.lastBaseUpdate=s,o.shared.pending=null}}null===d&&(u=f),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=d,Ul|=l,e.lanes=l,e.memoizedState=f}}function ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!=typeof a)throw Error(i(191,a));a.call(r)}}}var go=(new r.Component).refs;function vo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var bo={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fs(),a=ps(e),o=co(r,a);o.payload=t,null!=n&&(o.callback=n),fo(e,o),ms(e,a,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fs(),a=ps(e),o=co(r,a);o.tag=1,o.payload=t,null!=n&&(o.callback=n),fo(e,o),ms(e,a,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fs(),r=ps(e),a=co(n,r);a.tag=2,null!=t&&(a.callback=t),fo(e,a),ms(e,r,n)}};function yo(e,t,n,r,a,o,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!fr(n,r)||!fr(a,o))}function wo(e,t,n){var r=!1,a=fa,o=t.contextType;return"object"==typeof o&&null!==o?o=io(o):(a=va(t)?ha:pa.current,o=(r=null!=(r=t.contextTypes))?ga(e,a):fa),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=bo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function ko(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bo.enqueueReplaceState(t,t.state,null)}function Eo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=go,so(e);var o=t.contextType;"object"==typeof o&&null!==o?a.context=io(o):(o=va(t)?ha:pa.current,a.context=ga(e,o)),mo(e,n,a,r),a.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(vo(e,t,o,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&bo.enqueueReplaceState(a,a.state,null),mo(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4)}var So=Array.isArray;function xo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===go&&(t=r.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Co(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function To(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Zs(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Ys(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=xo(e,t,n),r.return=e,r):((r=Vs(n.type,n.key,n.props,null,e.mode,r)).ref=xo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Qs(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Ws(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ys(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Vs(t.type,t.key,t.props,null,e.mode,n)).ref=xo(e,null,t),n.return=e,n;case S:return(t=Qs(t,e.mode,n)).return=e,t}if(So(t)||$(t))return(t=Ws(t,e.mode,n,null)).return=e,t;Co(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===a?n.type===x?d(e,t,n.props.children,r,a):u(e,t,n,r):null;case S:return n.key===a?c(e,t,n,r):null}if(So(n)||$(n))return null!==a?null:d(e,t,n,r,null);Co(e,n)}return null}function m(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return e=e.get(null===r.key?n:r.key)||null,r.type===x?d(t,e,r.props.children,a,r.key):u(t,e,r,a);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(So(r)||$(r))return d(t,e=e.get(n)||null,r,a,null);Co(t,r)}return null}function h(a,i,l,s){for(var u=null,c=null,d=i,h=i=0,g=null;null!==d&&h<l.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var v=p(a,d,l[h],s);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(a,d),i=o(v,i,h),null===c?u=v:c.sibling=v,c=v,d=g}if(h===l.length)return n(a,d),u;if(null===d){for(;h<l.length;h++)null!==(d=f(a,l[h],s))&&(i=o(d,i,h),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(a,d);h<l.length;h++)null!==(g=m(d,a,h,l[h],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?h:g.key),i=o(g,i,h),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(a,e)})),u}function g(a,l,s,u){var c=$(s);if("function"!=typeof c)throw Error(i(150));if(null==(s=c.call(s)))throw Error(i(151));for(var d=c=null,h=l,g=l=0,v=null,b=s.next();null!==h&&!b.done;g++,b=s.next()){h.index>g?(v=h,h=null):v=h.sibling;var y=p(a,h,b.value,u);if(null===y){null===h&&(h=v);break}e&&h&&null===y.alternate&&t(a,h),l=o(y,l,g),null===d?c=y:d.sibling=y,d=y,h=v}if(b.done)return n(a,h),c;if(null===h){for(;!b.done;g++,b=s.next())null!==(b=f(a,b.value,u))&&(l=o(b,l,g),null===d?c=b:d.sibling=b,d=b);return c}for(h=r(a,h);!b.done;g++,b=s.next())null!==(b=m(h,a,g,b.value,u))&&(e&&null!==b.alternate&&h.delete(null===b.key?g:b.key),l=o(b,l,g),null===d?c=b:d.sibling=b,d=b);return e&&h.forEach((function(e){return t(a,e)})),c}return function(e,r,o,s){var u="object"==typeof o&&null!==o&&o.type===x&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case E:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(o.type===x){n(e,u.sibling),(r=a(u,o.props.children)).return=e,e=r;break e}}else if(u.elementType===o.type){n(e,u.sibling),(r=a(u,o.props)).ref=xo(e,u,o),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}o.type===x?((r=Ws(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=Vs(o.type,o.key,o.props,null,e.mode,s)).ref=xo(e,r,o),s.return=e,e=s)}return l(e);case S:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=a(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Qs(o,e.mode,s)).return=e,e=r}return l(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,o)).return=e,e=r):(n(e,r),(r=Ys(o,e.mode,s)).return=e,e=r),l(e);if(So(o))return h(e,r,o,s);if($(o))return g(e,r,o,s);if(c&&Co(e,o),void 0===o&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,V(e.type)||"Component"))}return n(e,r)}}var _o=To(!0),Ao=To(!1),Ro={},Lo=ua(Ro),Po=ua(Ro),Oo=ua(Ro);function No(e){if(e===Ro)throw Error(i(174));return e}function Io(e,t){switch(da(Oo,t),da(Po,e),da(Lo,Ro),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:me(null,"");break;default:t=me(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ca(Lo),da(Lo,t)}function Do(){ca(Lo),ca(Po),ca(Oo)}function Mo(e){No(Oo.current);var t=No(Lo.current),n=me(t,e.type);t!==n&&(da(Po,e),da(Lo,n))}function Fo(e){Po.current===e&&(ca(Lo),ca(Po))}var Bo=ua(0);function jo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zo=null,Uo=null,$o=!1;function qo(e,t){var n=Gs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Go(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ho(e){if($o){var t=Uo;if(t){var n=t;if(!Go(e,t)){if(!(t=Wr(n.nextSibling))||!Go(e,t))return e.flags=-1025&e.flags|2,$o=!1,void(zo=e);qo(zo,n)}zo=e,Uo=Wr(t.firstChild)}else e.flags=-1025&e.flags|2,$o=!1,zo=e}}function Zo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;zo=e}function Vo(e){if(e!==zo)return!1;if(!$o)return Zo(e),$o=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Gr(t,e.memoizedProps))for(t=Uo;t;)qo(e,t),t=Wr(t.nextSibling);if(Zo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Uo=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Uo=null}}else Uo=zo?Wr(e.stateNode.nextSibling):null;return!0}function Wo(){Uo=zo=null,$o=!1}var Ko=[];function Yo(){for(var e=0;e<Ko.length;e++)Ko[e]._workInProgressVersionPrimary=null;Ko.length=0}var Qo=k.ReactCurrentDispatcher,Xo=k.ReactCurrentBatchConfig,Jo=0,ei=null,ti=null,ni=null,ri=!1,ai=!1;function oi(){throw Error(i(321))}function ii(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function li(e,t,n,r,a,o){if(Jo=o,ei=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qo.current=null===e||null===e.memoizedState?Ni:Ii,e=n(r,a),ai){o=0;do{if(ai=!1,!(25>o))throw Error(i(301));o+=1,ni=ti=null,t.updateQueue=null,Qo.current=Di,e=n(r,a)}while(ai)}if(Qo.current=Oi,t=null!==ti&&null!==ti.next,Jo=0,ni=ti=ei=null,ri=!1,t)throw Error(i(300));return e}function si(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ni?ei.memoizedState=ni=e:ni=ni.next=e,ni}function ui(){if(null===ti){var e=ei.alternate;e=null!==e?e.memoizedState:null}else e=ti.next;var t=null===ni?ei.memoizedState:ni.next;if(null!==t)ni=t,ti=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ti=e).memoizedState,baseState:ti.baseState,baseQueue:ti.baseQueue,queue:ti.queue,next:null},null===ni?ei.memoizedState=ni=e:ni=ni.next=e}return ni}function ci(e,t){return"function"==typeof t?t(e):t}function di(e){var t=ui(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ti,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var l=a.next;a.next=o.next,o.next=l}r.baseQueue=a=o,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var s=l=o=null,u=a;do{var c=u.lane;if((Jo&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=d,o=r):s=s.next=d,ei.lanes|=c,Ul|=c}u=u.next}while(null!==u&&u!==a);null===s?o=r:s.next=l,cr(r,t.memoizedState)||(Fi=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function fi(e){var t=ui(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var l=a=a.next;do{o=e(o,l.action),l=l.next}while(l!==a);cr(o,t.memoizedState)||(Fi=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function pi(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(null!==a?e=a===r:(e=e.mutableReadLanes,(e=(Jo&e)===e)&&(t._workInProgressVersionPrimary=r,Ko.push(t))),e)return n(t._source);throw Ko.push(t),Error(i(350))}function mi(e,t,n,r){var a=Nl;if(null===a)throw Error(i(349));var o=t._getVersion,l=o(t._source),s=Qo.current,u=s.useState((function(){return pi(a,t,n)})),c=u[1],d=u[0];u=ni;var f=e.memoizedState,p=f.refs,m=p.getSnapshot,h=f.source;f=f.subscribe;var g=ei;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!cr(l,e)){e=n(t._source),cr(d,e)||(c(e),e=ps(g),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,i=e;0<i;){var s=31-Gt(i),u=1<<s;r[s]|=e,i&=~u}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=ps(g);a.mutableReadLanes|=r&a.pendingLanes}catch(o){n((function(){throw o}))}}))}),[t,r]),cr(m,n)&&cr(h,t)&&cr(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ci,lastRenderedState:d}).dispatch=c=Pi.bind(null,ei,e),u.queue=e,u.baseQueue=null,d=pi(a,t,n),u.memoizedState=u.baseState=d),d}function hi(e,t,n){return mi(ui(),e,t,n)}function gi(e){var t=si();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ci,lastRenderedState:e}).dispatch=Pi.bind(null,ei,e),[t.memoizedState,e]}function vi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ei.updateQueue)?(t={lastEffect:null},ei.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function bi(e){return e={current:e},si().memoizedState=e}function yi(){return ui().memoizedState}function wi(e,t,n,r){var a=si();ei.flags|=e,a.memoizedState=vi(1|t,n,void 0,void 0===r?null:r)}function ki(e,t,n,r){var a=ui();r=void 0===r?null:r;var o=void 0;if(null!==ti){var i=ti.memoizedState;if(o=i.destroy,null!==r&&ii(r,i.deps))return void vi(t,n,o,r)}ei.flags|=e,a.memoizedState=vi(1|t,n,o,r)}function Ei(e,t){return wi(516,4,e,t)}function Si(e,t){return ki(516,4,e,t)}function xi(e,t){return ki(4,2,e,t)}function Ci(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ti(e,t,n){return n=null!=n?n.concat([e]):null,ki(4,2,Ci.bind(null,t,e),n)}function _i(){}function Ai(e,t){var n=ui();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ii(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ri(e,t){var n=ui();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ii(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Li(e,t){var n=Ga();Za(98>n?98:n,(function(){e(!0)})),Za(97<n?97:n,(function(){var n=Xo.transition;Xo.transition=1;try{e(!1),t()}finally{Xo.transition=n}}))}function Pi(e,t,n){var r=fs(),a=ps(e),o={lane:a,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===ei||null!==i&&i===ei)ai=ri=!0;else{if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=i(l,n);if(o.eagerReducer=i,o.eagerState=s,cr(s,l))return}catch(u){}ms(e,a,r)}}var Oi={readContext:io,useCallback:oi,useContext:oi,useEffect:oi,useImperativeHandle:oi,useLayoutEffect:oi,useMemo:oi,useReducer:oi,useRef:oi,useState:oi,useDebugValue:oi,useDeferredValue:oi,useTransition:oi,useMutableSource:oi,useOpaqueIdentifier:oi,unstable_isNewReconciler:!1},Ni={readContext:io,useCallback:function(e,t){return si().memoizedState=[e,void 0===t?null:t],e},useContext:io,useEffect:Ei,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,wi(4,2,Ci.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wi(4,2,e,t)},useMemo:function(e,t){var n=si();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=si();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Pi.bind(null,ei,e),[r.memoizedState,e]},useRef:bi,useState:gi,useDebugValue:_i,useDeferredValue:function(e){var t=gi(e),n=t[0],r=t[1];return Ei((function(){var t=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=t}}),[e]),n},useTransition:function(){var e=gi(!1),t=e[0];return bi(e=Li.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=si();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},mi(r,e,t,n)},useOpaqueIdentifier:function(){if($o){var e=!1,t=function(e){return{$$typeof:D,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Yr++).toString(36))),Error(i(355))})),n=gi(t)[1];return 0==(2&ei.mode)&&(ei.flags|=516,vi(5,(function(){n("r:"+(Yr++).toString(36))}),void 0,null)),t}return gi(t="r:"+(Yr++).toString(36)),t},unstable_isNewReconciler:!1},Ii={readContext:io,useCallback:Ai,useContext:io,useEffect:Si,useImperativeHandle:Ti,useLayoutEffect:xi,useMemo:Ri,useReducer:di,useRef:yi,useState:function(){return di(ci)},useDebugValue:_i,useDeferredValue:function(e){var t=di(ci),n=t[0],r=t[1];return Si((function(){var t=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=t}}),[e]),n},useTransition:function(){var e=di(ci)[0];return[yi().current,e]},useMutableSource:hi,useOpaqueIdentifier:function(){return di(ci)[0]},unstable_isNewReconciler:!1},Di={readContext:io,useCallback:Ai,useContext:io,useEffect:Si,useImperativeHandle:Ti,useLayoutEffect:xi,useMemo:Ri,useReducer:fi,useRef:yi,useState:function(){return fi(ci)},useDebugValue:_i,useDeferredValue:function(e){var t=fi(ci),n=t[0],r=t[1];return Si((function(){var t=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=t}}),[e]),n},useTransition:function(){var e=fi(ci)[0];return[yi().current,e]},useMutableSource:hi,useOpaqueIdentifier:function(){return fi(ci)[0]},unstable_isNewReconciler:!1},Mi=k.ReactCurrentOwner,Fi=!1;function Bi(e,t,n,r){t.child=null===e?Ao(t,null,n,r):_o(t,e.child,n,r)}function ji(e,t,n,r,a){n=n.render;var o=t.ref;return oo(t,a),r=li(e,t,n,r,o,a),null===e||Fi?(t.flags|=1,Bi(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,ol(e,t,a))}function zi(e,t,n,r,a,o){if(null===e){var i=n.type;return"function"!=typeof i||Hs(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Vs(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ui(e,t,i,r,a,o))}return i=e.child,0==(a&o)&&(a=i.memoizedProps,(n=null!==(n=n.compare)?n:fr)(a,r)&&e.ref===t.ref)?ol(e,t,o):(t.flags|=1,(e=Zs(i,r)).ref=t.ref,e.return=t,t.child=e)}function Ui(e,t,n,r,a,o){if(null!==e&&fr(e.memoizedProps,r)&&e.ref===t.ref){if(Fi=!1,0==(o&a))return t.lanes=e.lanes,ol(e,t,o);0!=(16384&e.flags)&&(Fi=!0)}return Gi(e,t,n,r,o)}function $i(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},Es(t,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Es(t,e),null;t.memoizedState={baseLanes:0},Es(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Es(t,r);return Bi(e,t,a,n),t.child}function qi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Gi(e,t,n,r,a){var o=va(n)?ha:pa.current;return o=ga(t,o),oo(t,a),n=li(e,t,n,r,o,a),null===e||Fi?(t.flags|=1,Bi(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~a,ol(e,t,a))}function Hi(e,t,n,r,a){if(va(n)){var o=!0;ka(t)}else o=!1;if(oo(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),wo(t,n,r),Eo(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,u=n.contextType;"object"==typeof u&&null!==u?u=io(u):u=ga(t,u=va(n)?ha:pa.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==u)&&ko(t,i,r,u),lo=!1;var f=t.memoizedState;i.state=f,mo(t,r,i,a),s=t.memoizedState,l!==r||f!==s||ma.current||lo?("function"==typeof c&&(vo(t,n,c,r),s=t.memoizedState),(l=lo||yo(t,n,l,r,f,s,u))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4)):("function"==typeof i.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4),r=!1)}else{i=t.stateNode,uo(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Qa(t.type,l),i.props=u,d=t.pendingProps,f=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=io(s):s=ga(t,s=va(n)?ha:pa.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||f!==s)&&ko(t,i,r,s),lo=!1,f=t.memoizedState,i.state=f,mo(t,r,i,a);var m=t.memoizedState;l!==d||f!==m||ma.current||lo?("function"==typeof p&&(vo(t,n,p,r),m=t.memoizedState),(u=lo||yo(t,n,u,r,f,m,s))?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=s,r=u):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Zi(e,t,n,r,o,a)}function Zi(e,t,n,r,a,o){qi(e,t);var i=0!=(64&t.flags);if(!r&&!i)return a&&Ea(t,n,!1),ol(e,t,o);r=t.stateNode,Mi.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=_o(t,e.child,null,o),t.child=_o(t,null,l,o)):Bi(e,t,l,o),t.memoizedState=r.state,a&&Ea(t,n,!0),t.child}function Vi(e){var t=e.stateNode;t.pendingContext?ya(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ya(0,t.context,!1),Io(e,t.containerInfo)}var Wi,Ki,Yi,Qi={dehydrated:null,retryLane:0};function Xi(e,t,n){var r,a=t.pendingProps,o=Bo.current,i=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(i=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(o|=1),da(Bo,1&o),null===e?(void 0!==a.fallback&&Ho(t),e=a.children,o=a.fallback,i?(e=Ji(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qi,e):"number"==typeof a.unstable_expectedLoadTime?(e=Ji(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qi,t.lanes=33554432,e):((n=Ks({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,i?(a=tl(e,t,a.children,a.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=Qi,a):(n=el(e,t,a.children,n),t.memoizedState=null,n))}function Ji(e,t,n,r){var a=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&a)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Ks(t,a,0,null),n=Ws(n,a,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function el(e,t,n,r){var a=e.child;return e=a.sibling,n=Zs(a,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function tl(e,t,n,r,a){var o=t.mode,i=e.child;e=i.sibling;var l={mode:"hidden",children:n};return 0==(2&o)&&t.child!==i?((n=t.child).childLanes=0,n.pendingProps=l,null!==(i=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Zs(i,l),null!==e?r=Zs(e,r):(r=Ws(r,o,a,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function nl(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ao(e.return,t)}function rl(e,t,n,r,a,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a,i.lastEffect=o)}function al(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Bi(e,t,r.children,n),0!=(2&(r=Bo.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&nl(e,n);else if(19===e.tag)nl(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(da(Bo,r),0==(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===jo(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),rl(t,!1,a,n,o,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===jo(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}rl(t,!0,n,null,o,t.lastEffect);break;case"together":rl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ol(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ul|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Zs(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Zs(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function il(e,t){if(!$o)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ll(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return va(t.type)&&ba(),null;case 3:return Do(),ca(ma),ca(pa),Yo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Vo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Fo(t);var o=No(Oo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ki(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(i(166));return null}if(e=No(Lo.current),Vo(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Xr]=t,r[Jr]=l,n){case"dialog":Lr("cancel",r),Lr("close",r);break;case"iframe":case"object":case"embed":Lr("load",r);break;case"video":case"audio":for(e=0;e<Tr.length;e++)Lr(Tr[e],r);break;case"source":Lr("error",r);break;case"img":case"image":case"link":Lr("error",r),Lr("load",r);break;case"details":Lr("toggle",r);break;case"input":ee(r,l),Lr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Lr("invalid",r);break;case"textarea":se(r,l),Lr("invalid",r)}for(var u in xe(n,l),e=null,l)l.hasOwnProperty(u)&&(o=l[u],"children"===u?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):s.hasOwnProperty(u)&&null!=o&&"onScroll"===u&&Lr("scroll",r));switch(n){case"input":Y(r),re(r,l,!0);break;case"textarea":Y(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=zr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===o.nodeType?o:o.ownerDocument,e===de&&(e=pe(n)),e===de?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Xr]=t,e[Jr]=r,Wi(e,t),t.stateNode=e,u=Ce(n,r),n){case"dialog":Lr("cancel",e),Lr("close",e),o=r;break;case"iframe":case"object":case"embed":Lr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Tr.length;o++)Lr(Tr[o],e);o=r;break;case"source":Lr("error",e),o=r;break;case"img":case"image":case"link":Lr("error",e),Lr("load",e),o=r;break;case"details":Lr("toggle",e),o=r;break;case"input":ee(e,r),o=J(e,r),Lr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=a({},r,{value:void 0}),Lr("invalid",e);break;case"textarea":se(e,r),o=le(e,r),Lr("invalid",e);break;default:o=r}xe(n,o);var c=o;for(l in c)if(c.hasOwnProperty(l)){var d=c[l];"style"===l?Ee(e,d):"dangerouslySetInnerHTML"===l?null!=(d=d?d.__html:void 0)&&ve(e,d):"children"===l?"string"==typeof d?("textarea"!==n||""!==d)&&be(e,d):"number"==typeof d&&be(e,""+d):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=d&&"onScroll"===l&&Lr("scroll",e):null!=d&&w(e,l,d,u))}switch(n){case"input":Y(e),re(e,r,!1);break;case"textarea":Y(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ie(e,!!r.multiple,l,!1):null!=r.defaultValue&&ie(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=zr)}qr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Yi(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));n=No(Oo.current),No(Lo.current),Vo(t)?(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Xr]=t,t.stateNode=r)}return null;case 13:return ca(Bo),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Vo(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Bo.current)?0===Bl&&(Bl=3):(0!==Bl&&3!==Bl||(Bl=4),null===Nl||0==(134217727&Ul)&&0==(134217727&$l)||bs(Nl,Dl))),(r||n)&&(t.flags|=4),null);case 4:return Do(),null===e&&Or(t.stateNode.containerInfo),null;case 10:return ro(t),null;case 19:if(ca(Bo),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(u=r.rendering))if(l)il(r,!1);else{if(0!==Bl||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=jo(e))){for(t.flags|=64,il(r,!1),null!==(l=u.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(u=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return da(Bo,1&Bo.current|2),t.child}e=e.sibling}null!==r.tail&&qa()>Zl&&(t.flags|=64,l=!0,il(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=jo(u))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),il(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!$o)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*qa()-r.renderingStartTime>Zl&&1073741824!==n&&(t.flags|=64,l=!0,il(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=qa(),n.sibling=null,t=Bo.current,da(Bo,l?1&t|2:1&t),n):null;case 23:case 24:return Ss(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(i(156,t.tag))}function sl(e){switch(e.tag){case 1:va(e.type)&&ba();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Do(),ca(ma),ca(pa),Yo(),0!=(64&(t=e.flags)))throw Error(i(285));return e.flags=-4097&t|64,e;case 5:return Fo(e),null;case 13:return ca(Bo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ca(Bo),null;case 4:return Do(),null;case 10:return ro(e),null;case 23:case 24:return Ss(),null;default:return null}}function ul(e,t){try{var n="",r=t;do{n+=Z(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a}}function cl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Wi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ki=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,No(Lo.current);var i,l=null;switch(n){case"input":o=J(e,o),r=J(e,r),l=[];break;case"option":o=oe(e,o),r=oe(e,r),l=[];break;case"select":o=a({},o,{value:void 0}),r=a({},r,{value:void 0}),l=[];break;case"textarea":o=le(e,o),r=le(e,r),l=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=zr)}for(d in xe(n,r),n=null,o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&null!=o[d])if("style"===d){var u=o[d];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(s.hasOwnProperty(d)?l||(l=[]):(l=l||[]).push(d,null));for(d in r){var c=r[d];if(u=null!=o?o[d]:void 0,r.hasOwnProperty(d)&&c!==u&&(null!=c||null!=u))if("style"===d)if(u){for(i in u)!u.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&u[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(l||(l=[]),l.push(d,n)),n=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(d,c)):"children"===d?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(s.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Lr("scroll",e),l||u===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===D?c.toString():(l=l||[]).push(d,c))}n&&(l=l||[]).push("style",n);var d=l;(t.updateQueue=d)&&(t.flags|=4)}},Yi=function(e,t,n,r){n!==r&&(t.flags|=4)};var dl="function"==typeof WeakMap?WeakMap:Map;function fl(e,t,n){(n=co(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Yl||(Yl=!0,Ql=r),cl(0,t)},n}function pl(e,t,n){(n=co(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return cl(0,t),r(a)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Xl?Xl=new Set([this]):Xl.add(this),cl(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ml="function"==typeof WeakSet?WeakSet:Set;function hl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(n){zs(e,n)}else t.current=null}function gl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qa(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Vr(t.stateNode.containerInfo))}throw Error(i(163))}function vl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var a=e;r=a.next,0!=(4&(a=a.tag))&&0!=(1&a)&&(Fs(n,e),Ms(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qa(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ho(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ho(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&qr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))))}throw Error(i(163))}function bl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var a=n.memoizedProps.style;a=null!=a&&a.hasOwnProperty("display")?a.display:null,r.style.display=ke("display",a)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function yl(e,t){if(xa&&"function"==typeof xa.onCommitFiberUnmount)try{xa.onCommitFiberUnmount(Sa,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,a=r.destroy;if(r=r.tag,void 0!==a)if(0!=(4&r))Fs(t,n);else{r=t;try{a()}catch(o){zs(r,o)}}n=n.next}while(n!==e)}break;case 1:if(hl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){zs(t,o)}break;case 5:hl(t);break;case 4:Cl(e,t)}}function wl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function kl(e){return 5===e.tag||3===e.tag||4===e.tag}function El(e){e:{for(var t=e.return;null!==t;){if(kl(t))break e;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}16&n.flags&&(be(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||kl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Sl(e,n,t):xl(e,n,t)}function Sl(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=zr));else if(4!==r&&null!==(e=e.child))for(Sl(e,t,n),e=e.sibling;null!==e;)Sl(e,t,n),e=e.sibling}function xl(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(xl(e,t,n),e=e.sibling;null!==e;)xl(e,t,n),e=e.sibling}function Cl(e,t){for(var n,r,a=t,o=!1;;){if(!o){o=a.return;e:for(;;){if(null===o)throw Error(i(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===a.tag||6===a.tag){e:for(var l=e,s=a,u=s;;)if(yl(l,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===s)break e;for(;null===u.sibling;){if(null===u.return||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=n,s=a.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):n.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){n=a.stateNode.containerInfo,r=!0,a.child.return=a,a=a.child;continue}}else if(yl(e,a),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(o=!1)}a.sibling.return=a.return,a=a.sibling}}function Tl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var a=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ce(e,a),t=Ce(e,r),a=0;a<o.length;a+=2){var l=o[a],s=o[a+1];"style"===l?Ee(n,s):"dangerouslySetInnerHTML"===l?ve(n,s):"children"===l?be(n,s):w(n,l,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ie(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ie(n,!!r.multiple,r.defaultValue,!0):ie(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 13:return null!==t.memoizedState&&(Hl=qa(),bl(t.child,!0)),void _l(t);case 19:return void _l(t);case 23:case 24:return void bl(t,null!==t.memoizedState)}throw Error(i(163))}function _l(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ml),t.forEach((function(t){var r=$s.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Al(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Rl=Math.ceil,Ll=k.ReactCurrentDispatcher,Pl=k.ReactCurrentOwner,Ol=0,Nl=null,Il=null,Dl=0,Ml=0,Fl=ua(0),Bl=0,jl=null,zl=0,Ul=0,$l=0,ql=0,Gl=null,Hl=0,Zl=1/0;function Vl(){Zl=qa()+500}var Wl,Kl=null,Yl=!1,Ql=null,Xl=null,Jl=!1,es=null,ts=90,ns=[],rs=[],as=null,os=0,is=null,ls=-1,ss=0,us=0,cs=null,ds=!1;function fs(){return 0!=(48&Ol)?qa():-1!==ls?ls:ls=qa()}function ps(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Ga()?1:2;if(0===ss&&(ss=zl),0!==Ya.transition){0!==us&&(us=null!==Gl?Gl.pendingLanes:0),e=ss;var t=4186112&~us;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Ga(),0!=(4&Ol)&&98===e?e=zt(12,ss):e=zt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ss),e}function ms(e,t,n){if(50<os)throw os=0,is=null,Error(i(185));if(null===(e=hs(e,t)))return null;qt(e,t,n),e===Nl&&($l|=t,4===Bl&&bs(e,Dl));var r=Ga();1===t?0!=(8&Ol)&&0==(48&Ol)?ys(e):(gs(e,n),0===Ol&&(Vl(),Wa())):(0==(4&Ol)||98!==r&&99!==r||(null===as?as=new Set([e]):as.add(e)),gs(e,n)),Gl=e}function hs(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function gs(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Gt(l),u=1<<s,c=o[s];if(-1===c){if(0==(u&r)||0!=(u&a)){c=t,Ft(u);var d=Mt;o[s]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);l&=~u}if(r=Bt(e,e===Nl?Dl:0),t=Mt,0===r)null!==n&&(n!==Fa&&_a(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Fa&&_a(n)}15===t?(n=ys.bind(null,e),null===ja?(ja=[n],za=Ta(Oa,Ka)):ja.push(n),n=Fa):14===t?n=Va(99,ys.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}(t),n=Va(n,vs.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function vs(e){if(ls=-1,us=ss=0,0!=(48&Ol))throw Error(i(327));var t=e.callbackNode;if(Ds()&&e.callbackNode!==t)return null;var n=Bt(e,e===Nl?Dl:0);if(0===n)return null;var r=n,a=Ol;Ol|=16;var o=Ts();for(Nl===e&&Dl===r||(Vl(),xs(e,r));;)try{Rs();break}catch(s){Cs(e,s)}if(no(),Ll.current=o,Ol=a,null!==Il?r=0:(Nl=null,Dl=0,r=Bl),0!=(zl&$l))xs(e,0);else if(0!==r){if(2===r&&(Ol|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(n=jt(e))&&(r=_s(e,n))),1===r)throw t=jl,xs(e,0),bs(e,n),gs(e,qa()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(i(345));case 2:case 5:Os(e);break;case 3:if(bs(e,n),(62914560&n)===n&&10<(r=Hl+500-qa())){if(0!==Bt(e,0))break;if(((a=e.suspendedLanes)&n)!==n){fs(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Hr(Os.bind(null,e),r);break}Os(e);break;case 4:if(bs(e,n),(4186112&n)===n)break;for(r=e.eventTimes,a=-1;0<n;){var l=31-Gt(n);o=1<<l,(l=r[l])>a&&(a=l),n&=~o}if(n=a,10<(n=(120>(n=qa()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Rl(n/1960))-n)){e.timeoutHandle=Hr(Os.bind(null,e),n);break}Os(e);break;default:throw Error(i(329))}}return gs(e,qa()),e.callbackNode===t?vs.bind(null,e):null}function bs(e,t){for(t&=~ql,t&=~$l,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Gt(t),r=1<<n;e[n]=-1,t&=~r}}function ys(e){if(0!=(48&Ol))throw Error(i(327));if(Ds(),e===Nl&&0!=(e.expiredLanes&Dl)){var t=Dl,n=_s(e,t);0!=(zl&$l)&&(n=_s(e,t=Bt(e,t)))}else n=_s(e,t=Bt(e,0));if(0!==e.tag&&2===n&&(Ol|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(t=jt(e))&&(n=_s(e,t))),1===n)throw n=jl,xs(e,0),bs(e,t),gs(e,qa()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Os(e),gs(e,qa()),null}function ws(e,t){var n=Ol;Ol|=1;try{return e(t)}finally{0===(Ol=n)&&(Vl(),Wa())}}function ks(e,t){var n=Ol;Ol&=-2,Ol|=8;try{return e(t)}finally{0===(Ol=n)&&(Vl(),Wa())}}function Es(e,t){da(Fl,Ml),Ml|=t,zl|=t}function Ss(){Ml=Fl.current,ca(Fl)}function xs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Zr(n)),null!==Il)for(n=Il.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&ba();break;case 3:Do(),ca(ma),ca(pa),Yo();break;case 5:Fo(r);break;case 4:Do();break;case 13:case 19:ca(Bo);break;case 10:ro(r);break;case 23:case 24:Ss()}n=n.return}Nl=e,Il=Zs(e.current,null),Dl=Ml=zl=t,Bl=0,jl=null,ql=$l=Ul=0}function Cs(e,t){for(;;){var n=Il;try{if(no(),Qo.current=Oi,ri){for(var r=ei.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}ri=!1}if(Jo=0,ni=ti=ei=null,ai=!1,Pl.current=null,null===n||null===n.return){Bl=1,jl=t,Il=null;break}e:{var o=e,i=n.return,l=n,s=t;if(t=Dl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var d=0!=(1&Bo.current),f=i;do{var p;if(p=13===f.tag){var m=f.memoizedState;if(null!==m)p=null!==m.dehydrated;else{var h=f.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!d)}}if(p){var g=f.updateQueue;if(null===g){var v=new Set;v.add(u),f.updateQueue=v}else g.add(u);if(0==(2&f.mode)){if(f.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var b=co(-1,1);b.tag=2,fo(l,b)}l.lanes|=1;break e}s=void 0,l=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new dl,s=new Set,y.set(u,s)):void 0===(s=y.get(u))&&(s=new Set,y.set(u,s)),!s.has(l)){s.add(l);var w=Us.bind(null,o,u,l);u.then(w,w)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);s=Error((V(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Bl&&(Bl=2),s=ul(s,l),f=i;do{switch(f.tag){case 3:o=s,f.flags|=4096,t&=-t,f.lanes|=t,po(f,fl(0,o,t));break e;case 1:o=s;var k=f.type,E=f.stateNode;if(0==(64&f.flags)&&("function"==typeof k.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===Xl||!Xl.has(E)))){f.flags|=4096,t&=-t,f.lanes|=t,po(f,pl(f,o,t));break e}}f=f.return}while(null!==f)}Ps(n)}catch(S){t=S,Il===n&&null!==n&&(Il=n=n.return);continue}break}}function Ts(){var e=Ll.current;return Ll.current=Oi,null===e?Oi:e}function _s(e,t){var n=Ol;Ol|=16;var r=Ts();for(Nl===e&&Dl===t||xs(e,t);;)try{As();break}catch(a){Cs(e,a)}if(no(),Ol=n,Ll.current=r,null!==Il)throw Error(i(261));return Nl=null,Dl=0,Bl}function As(){for(;null!==Il;)Ls(Il)}function Rs(){for(;null!==Il&&!Aa();)Ls(Il)}function Ls(e){var t=Wl(e.alternate,e,Ml);e.memoizedProps=e.pendingProps,null===t?Ps(e):Il=t,Pl.current=null}function Ps(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ll(n,t,Ml)))return void(Il=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ml)||0==(4&n.mode)){for(var r=0,a=n.child;null!==a;)r|=a.lanes|a.childLanes,a=a.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=sl(t)))return n.flags&=2047,void(Il=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===Bl&&(Bl=5)}function Os(e){var t=Ga();return Za(99,Ns.bind(null,e,t)),null}function Ns(e,t){do{Ds()}while(null!==es);if(0!=(48&Ol))throw Error(i(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,o=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<o;){var u=31-Gt(o),c=1<<u;a[u]=0,l[u]=-1,s[u]=-1,o&=~c}if(null!==as&&0==(24&r)&&as.has(e)&&as.delete(e),e===Nl&&(Il=Nl=null,Dl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(a=Ol,Ol|=32,Pl.current=null,Ur=Kt,vr(l=gr())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,o=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{s.nodeType,u.nodeType}catch(T){s=null;break e}var d=0,f=-1,p=-1,m=0,h=0,g=l,v=null;t:for(;;){for(var b;g!==s||0!==o&&3!==g.nodeType||(f=d+o),g!==u||0!==c&&3!==g.nodeType||(p=d+c),3===g.nodeType&&(d+=g.nodeValue.length),null!==(b=g.firstChild);)v=g,g=b;for(;;){if(g===l)break t;if(v===s&&++m===o&&(f=d),v===u&&++h===c&&(p=d),null!==(b=g.nextSibling))break;v=(g=v).parentNode}g=b}s=-1===f||-1===p?null:{start:f,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;$r={focusedElem:l,selectionRange:s},Kt=!1,cs=null,ds=!1,Kl=r;do{try{Is()}catch(T){if(null===Kl)throw Error(i(330));zs(Kl,T),Kl=Kl.nextEffect}}while(null!==Kl);cs=null,Kl=r;do{try{for(l=e;null!==Kl;){var y=Kl.flags;if(16&y&&be(Kl.stateNode,""),128&y){var w=Kl.alternate;if(null!==w){var k=w.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(1038&y){case 2:El(Kl),Kl.flags&=-3;break;case 6:El(Kl),Kl.flags&=-3,Tl(Kl.alternate,Kl);break;case 1024:Kl.flags&=-1025;break;case 1028:Kl.flags&=-1025,Tl(Kl.alternate,Kl);break;case 4:Tl(Kl.alternate,Kl);break;case 8:Cl(l,s=Kl);var E=s.alternate;wl(s),null!==E&&wl(E)}Kl=Kl.nextEffect}}catch(T){if(null===Kl)throw Error(i(330));zs(Kl,T),Kl=Kl.nextEffect}}while(null!==Kl);if(k=$r,w=gr(),y=k.focusedElem,l=k.selectionRange,w!==y&&y&&y.ownerDocument&&hr(y.ownerDocument.documentElement,y)){null!==l&&vr(y)&&(w=l.start,void 0===(k=l.end)&&(k=w),"selectionStart"in y?(y.selectionStart=w,y.selectionEnd=Math.min(k,y.value.length)):(k=(w=y.ownerDocument||document)&&w.defaultView||window).getSelection&&(k=k.getSelection(),s=y.textContent.length,E=Math.min(l.start,s),l=void 0===l.end?E:Math.min(l.end,s),!k.extend&&E>l&&(s=l,l=E,E=s),s=mr(y,E),o=mr(y,l),s&&o&&(1!==k.rangeCount||k.anchorNode!==s.node||k.anchorOffset!==s.offset||k.focusNode!==o.node||k.focusOffset!==o.offset)&&((w=w.createRange()).setStart(s.node,s.offset),k.removeAllRanges(),E>l?(k.addRange(w),k.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),k.addRange(w))))),w=[];for(k=y;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof y.focus&&y.focus(),y=0;y<w.length;y++)(k=w[y]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Kt=!!Ur,$r=Ur=null,e.current=n,Kl=r;do{try{for(y=e;null!==Kl;){var S=Kl.flags;if(36&S&&vl(y,Kl.alternate,Kl),128&S){w=void 0;var x=Kl.ref;if(null!==x){var C=Kl.stateNode;Kl.tag,w=C,"function"==typeof x?x(w):x.current=w}}Kl=Kl.nextEffect}}catch(T){if(null===Kl)throw Error(i(330));zs(Kl,T),Kl=Kl.nextEffect}}while(null!==Kl);Kl=null,Ba(),Ol=a}else e.current=n;if(Jl)Jl=!1,es=e,ts=t;else for(Kl=r;null!==Kl;)t=Kl.nextEffect,Kl.nextEffect=null,8&Kl.flags&&((S=Kl).sibling=null,S.stateNode=null),Kl=t;if(0===(r=e.pendingLanes)&&(Xl=null),1===r?e===is?os++:(os=0,is=e):os=0,n=n.stateNode,xa&&"function"==typeof xa.onCommitFiberRoot)try{xa.onCommitFiberRoot(Sa,n,void 0,64==(64&n.current.flags))}catch(T){}if(gs(e,qa()),Yl)throw Yl=!1,e=Ql,Ql=null,e;return 0!=(8&Ol)||Wa(),null}function Is(){for(;null!==Kl;){var e=Kl.alternate;ds||null===cs||(0!=(8&Kl.flags)?et(Kl,cs)&&(ds=!0):13===Kl.tag&&Al(e,Kl)&&et(Kl,cs)&&(ds=!0));var t=Kl.flags;0!=(256&t)&&gl(e,Kl),0==(512&t)||Jl||(Jl=!0,Va(97,(function(){return Ds(),null}))),Kl=Kl.nextEffect}}function Ds(){if(90!==ts){var e=97<ts?97:ts;return ts=90,Za(e,Bs)}return!1}function Ms(e,t){ns.push(t,e),Jl||(Jl=!0,Va(97,(function(){return Ds(),null})))}function Fs(e,t){rs.push(t,e),Jl||(Jl=!0,Va(97,(function(){return Ds(),null})))}function Bs(){if(null===es)return!1;var e=es;if(es=null,0!=(48&Ol))throw Error(i(331));var t=Ol;Ol|=32;var n=rs;rs=[];for(var r=0;r<n.length;r+=2){var a=n[r],o=n[r+1],l=a.destroy;if(a.destroy=void 0,"function"==typeof l)try{l()}catch(u){if(null===o)throw Error(i(330));zs(o,u)}}for(n=ns,ns=[],r=0;r<n.length;r+=2){a=n[r],o=n[r+1];try{var s=a.create;a.destroy=s()}catch(u){if(null===o)throw Error(i(330));zs(o,u)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Ol=t,Wa(),!0}function js(e,t,n){fo(e,t=fl(0,t=ul(n,t),1)),t=fs(),null!==(e=hs(e,1))&&(qt(e,1,t),gs(e,t))}function zs(e,t){if(3===e.tag)js(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){js(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Xl||!Xl.has(r))){var a=pl(n,e=ul(t,e),1);if(fo(n,a),a=fs(),null!==(n=hs(n,1)))qt(n,1,a),gs(n,a);else if("function"==typeof r.componentDidCatch&&(null===Xl||!Xl.has(r)))try{r.componentDidCatch(t,e)}catch(o){}break}}n=n.return}}function Us(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=fs(),e.pingedLanes|=e.suspendedLanes&n,Nl===e&&(Dl&n)===n&&(4===Bl||3===Bl&&(62914560&Dl)===Dl&&500>qa()-Hl?xs(e,0):ql|=n),gs(e,t)}function $s(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Ga()?1:2:(0===ss&&(ss=zl),0===(t=Ut(62914560&~ss))&&(t=4194304))),n=fs(),null!==(e=hs(e,t))&&(qt(e,t,n),gs(e,n))}function qs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Gs(e,t,n,r){return new qs(e,t,n,r)}function Hs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Zs(e,t){var n=e.alternate;return null===n?((n=Gs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Vs(e,t,n,r,a,o){var l=2;if(r=e,"function"==typeof e)Hs(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case x:return Ws(n.children,a,o,t);case M:l=8,a|=16;break;case C:l=8,a|=1;break;case T:return(e=Gs(12,n,t,8|a)).elementType=T,e.type=T,e.lanes=o,e;case L:return(e=Gs(13,n,t,a)).type=L,e.elementType=L,e.lanes=o,e;case P:return(e=Gs(19,n,t,a)).elementType=P,e.lanes=o,e;case F:return Ks(n,a,o,t);case B:return(e=Gs(24,n,t,a)).elementType=B,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:l=10;break e;case A:l=9;break e;case R:l=11;break e;case O:l=14;break e;case N:l=16,r=null;break e;case I:l=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Gs(l,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Ws(e,t,n,r){return(e=Gs(7,e,r,t)).lanes=n,e}function Ks(e,t,n,r){return(e=Gs(23,e,r,t)).elementType=F,e.lanes=n,e}function Ys(e,t,n){return(e=Gs(6,e,null,t)).lanes=n,e}function Qs(e,t,n){return(t=Gs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xs(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=$t(0),this.expirationTimes=$t(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$t(0),this.mutableSourceEagerHydrationData=null}function Js(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function eu(e,t,n,r){var a=t.current,o=fs(),l=ps(a);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(i(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(va(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(i(171))}if(1===n.tag){var u=n.type;if(va(u)){n=wa(n,u,s);break e}}n=s}else n=fa;return null===t.context?t.context=n:t.pendingContext=n,(t=co(o,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fo(a,t),ms(a,l,o),l}function tu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ru(e,t){nu(e,t),(e=e.alternate)&&nu(e,t)}function au(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Xs(e,t,null!=n&&!0===n.hydrate),t=Gs(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,so(t),e[ea]=n.current,Or(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var a=(t=r[e])._getVersion;a=a(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,a]:n.mutableSourceEagerHydrationData.push(t,a)}this._internalRoot=n}function ou(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function iu(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o._internalRoot;if("function"==typeof a){var l=a;a=function(){var e=tu(i);l.call(e)}}eu(t,i,e,a)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new au(e,0,t?{hydrate:!0}:void 0)}(n,r),i=o._internalRoot,"function"==typeof a){var s=a;a=function(){var e=tu(i);s.call(e)}}ks((function(){eu(t,i,e,a)}))}return tu(i)}function lu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ou(t))throw Error(i(200));return Js(e,t,null,n)}Wl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ma.current)Fi=!0;else{if(0==(n&r)){switch(Fi=!1,t.tag){case 3:Vi(t),Wo();break;case 5:Mo(t);break;case 1:va(t.type)&&ka(t);break;case 4:Io(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;da(Xa,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Xi(e,t,n):(da(Bo,1&Bo.current),null!==(t=ol(e,t,n))?t.sibling:null);da(Bo,1&Bo.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return al(e,t,n);t.flags|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),da(Bo,Bo.current),r)break;return null;case 23:case 24:return t.lanes=0,$i(e,t,n)}return ol(e,t,n)}Fi=0!=(16384&e.flags)}else Fi=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=ga(t,pa.current),oo(t,n),a=li(null,t,r,e,a,n),t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,va(r)){var o=!0;ka(t)}else o=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,so(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&vo(t,r,l,e),a.updater=bo,t.stateNode=a,a._reactInternals=t,Eo(t,r,e,n),t=Zi(null,t,r,!0,o,n)}else t.tag=0,Bi(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=(o=a._init)(a._payload),t.type=a,o=t.tag=function(e){if("function"==typeof e)return Hs(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===O)return 14}return 2}(a),e=Qa(a,e),o){case 0:t=Gi(null,t,a,e,n);break e;case 1:t=Hi(null,t,a,e,n);break e;case 11:t=ji(null,t,a,e,n);break e;case 14:t=zi(null,t,a,Qa(a.type,e),r,n);break e}throw Error(i(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Gi(e,t,r,a=t.elementType===r?a:Qa(r,a),n);case 1:return r=t.type,a=t.pendingProps,Hi(e,t,r,a=t.elementType===r?a:Qa(r,a),n);case 3:if(Vi(t),r=t.updateQueue,null===e||null===r)throw Error(i(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,uo(e,t),mo(t,r,null,n),(r=t.memoizedState.element)===a)Wo(),t=ol(e,t,n);else{if((o=(a=t.stateNode).hydrate)&&(Uo=Wr(t.stateNode.containerInfo.firstChild),zo=t,o=$o=!0),o){if(null!=(e=a.mutableSourceEagerHydrationData))for(a=0;a<e.length;a+=2)(o=e[a])._workInProgressVersionPrimary=e[a+1],Ko.push(o);for(n=Ao(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Bi(e,t,r,n),Wo();t=t.child}return t;case 5:return Mo(t),null===e&&Ho(t),r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,l=a.children,Gr(r,a)?l=null:null!==o&&Gr(r,o)&&(t.flags|=16),qi(e,t),Bi(e,t,l,n),t.child;case 6:return null===e&&Ho(t),null;case 13:return Xi(e,t,n);case 4:return Io(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_o(t,null,r,n):Bi(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,ji(e,t,r,a=t.elementType===r?a:Qa(r,a),n);case 7:return Bi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Bi(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,l=t.memoizedProps,o=a.value;var s=t.type._context;if(da(Xa,s._currentValue),s._currentValue=o,null!==l)if(s=l.value,0===(o=cr(s,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(l.children===a.children&&!ma.current){t=ol(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===s.tag&&((c=co(-1,n&-n)).tag=2,fo(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),ao(s.return,n),u.lanes|=n;break}c=c.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Bi(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(o=t.pendingProps).children,oo(t,n),r=r(a=io(a,o.unstable_observedBits)),t.flags|=1,Bi(e,t,r,n),t.child;case 14:return o=Qa(a=t.type,t.pendingProps),zi(e,t,a,o=Qa(a.type,o),r,n);case 15:return Ui(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Qa(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,va(r)?(e=!0,ka(t)):e=!1,oo(t,n),wo(t,r,a),Eo(t,r,a,n),Zi(null,t,r,!0,e,n);case 19:return al(e,t,n);case 23:case 24:return $i(e,t,n)}throw Error(i(156,t.tag))},au.prototype.render=function(e){eu(e,this._internalRoot,null,null)},au.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;eu(null,e,null,(function(){t[ea]=null}))},tt=function(e){13===e.tag&&(ms(e,4,fs()),ru(e,4))},nt=function(e){13===e.tag&&(ms(e,67108864,fs()),ru(e,67108864))},rt=function(e){if(13===e.tag){var t=fs(),n=ps(e);ms(e,n,t),ru(e,n)}},at=function(e,t){return t()},_e=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=oa(r);if(!a)throw Error(i(90));Q(r),ne(r,a)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ie(e,!!n.multiple,t,!1)}},Ne=ws,Ie=function(e,t,n,r,a){var o=Ol;Ol|=4;try{return Za(98,e.bind(null,t,n,r,a))}finally{0===(Ol=o)&&(Vl(),Wa())}},De=function(){0==(49&Ol)&&(function(){if(null!==as){var e=as;as=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,gs(e,qa())}))}Wa()}(),Ds())},Me=function(e,t){var n=Ol;Ol|=2;try{return e(t)}finally{0===(Ol=n)&&(Vl(),Wa())}};var su={Events:[ra,aa,oa,Pe,Oe,Ds,{current:!1}]},uu={findFiberByHostInstance:na,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},cu={bundleType:uu.bundleType,version:uu.version,rendererPackageName:uu.rendererPackageName,rendererConfig:uu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:uu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var du=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!du.isDisabled&&du.supportsFiber)try{Sa=du.inject(cu),xa=du}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=su,t.createPortal=lu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw Error(i(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ol;if(0!=(48&n))return e(t);Ol|=1;try{if(e)return Za(99,e.bind(null,t))}finally{Ol=n,Wa()}},t.hydrate=function(e,t,n){if(!ou(t))throw Error(i(200));return iu(null,e,t,!0,n)},t.render=function(e,t,n){if(!ou(t))throw Error(i(200));return iu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ou(e))throw Error(i(40));return!!e._reactRootContainer&&(ks((function(){iu(null,null,e,!1,(function(){e._reactRootContainer=null,e[ea]=null}))})),!0)},t.unstable_batchedUpdates=ws,t.unstable_createPortal=function(e,t){return lu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ou(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return iu(e,t,n,!1,r)},t.version="17.0.2"},31542:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(43577)},54335:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var l,s,u,c;if(Array.isArray(e)){if((l=e.length)!=i.length)return!1;for(s=l;0!=s--;)if(!o(e[s],i[s]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(c=e.entries();!(s=c.next()).done;)if(!i.has(s.value[0]))return!1;for(c=e.entries();!(s=c.next()).done;)if(!o(s.value[1],i.get(s.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(c=e.entries();!(s=c.next()).done;)if(!i.has(s.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((l=e.length)!=i.length)return!1;for(s=l;0!=s--;)if(e[s]!==i[s])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===i.toString();if((l=(u=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(s=l;0!=s--;)if(!Object.prototype.hasOwnProperty.call(i,u[s]))return!1;if(t&&e instanceof Element)return!1;for(s=l;0!=s--;)if(("_owner"!==u[s]&&"__v"!==u[s]&&"__o"!==u[s]||!e.$$typeof)&&!o(e[u[s]],i[u[s]]))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return o(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},92883:function(e,t,n){"use strict";n.d(t,{B6:function(){return H},ql:function(){return J}});var r=n(27378),a=n(23615),o=n.n(a),i=n(54335),l=n.n(i),s=n(3996),u=n.n(s),c=n(74445),d=n.n(c);function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function p(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function h(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(a[n]=e[n]);return a}var g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},v={rel:["amphtml","canonical","alternate"]},b={type:["application/ld+json"]},y={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},w=Object.keys(g).map((function(e){return g[e]})),k={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},E=Object.keys(k).reduce((function(e,t){return e[k[t]]=t,e}),{}),S=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},x=function(e){var t=S(e,g.TITLE),n=S(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=S(e,"defaultTitle");return t||r||void 0},C=function(e){return S(e,"onChangeClientState")||function(){}},T=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return f({},e,t)}),{})},_=function(e,t){return t.filter((function(e){return void 0!==e[g.BASE]})).map((function(e){return e[g.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a<r.length;a+=1){var o=r[a].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},A=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var a={};n.filter((function(e){for(var n,o=Object.keys(e),i=0;i<o.length;i+=1){var l=o[i],s=l.toLowerCase();-1===t.indexOf(s)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===s&&"stylesheet"===e[s].toLowerCase()||(n=s),-1===t.indexOf(l)||"innerHTML"!==l&&"cssText"!==l&&"itemprop"!==l||(n=l)}if(!n||!e[n])return!1;var u=e[n].toLowerCase();return r[n]||(r[n]={}),a[n]||(a[n]={}),!r[n][u]&&(a[n][u]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(a),i=0;i<o.length;i+=1){var l=o[i],s=f({},r[l],a[l]);r[l]=s}return e}),[]).reverse()},R=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},L=function(e){return Array.isArray(e)?e.join(""):e},P=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},O=function(e,t){var n;return f({},e,((n={})[t]=void 0,n))},N=[g.NOSCRIPT,g.SCRIPT,g.STYLE],I=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},D=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},M=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[k[n]||n]=e[n],t}),t)},F=function(e,t){return t.map((function(t,n){var a,o=((a={key:n})["data-rh"]=!0,a);return Object.keys(t).forEach((function(e){var n=k[e]||e;"innerHTML"===n||"cssText"===n?o.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:o[n]=t[e]})),r.createElement(e,o)}))},B=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){return n=t.titleAttributes,(a={key:e=t.title})["data-rh"]=!0,o=M(n,a),[r.createElement(g.TITLE,o,e)];var e,n,a,o},toString:function(){return function(e,t,n,r){var a=D(n),o=L(t);return a?"<"+e+' data-rh="true" '+a+">"+I(o,r)+"</"+e+">":"<"+e+' data-rh="true">'+I(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return M(t)},toString:function(){return D(t)}};default:return{toComponent:function(){return F(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+I(r[t],n)+'"';return e?e+" "+a:a}),""),o=r.innerHTML||r.cssText||"",i=-1===N.indexOf(e);return t+"<"+e+' data-rh="true" '+a+(i?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},j=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,o=e.noscriptTags,i=e.styleTags,l=e.title,s=void 0===l?"":l,u=e.titleAttributes,c=e.linkTags,d=e.metaTags,f=e.scriptTags,p={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var m=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,a=P(e.metaTags,y),o=P(t,v),i=P(n,b);return{priorityMethods:{toComponent:function(){return[].concat(F(g.META,a.priority),F(g.LINK,o.priority),F(g.SCRIPT,i.priority))},toString:function(){return B(g.META,a.priority,r)+" "+B(g.LINK,o.priority,r)+" "+B(g.SCRIPT,i.priority,r)}},metaTags:a.default,linkTags:o.default,scriptTags:i.default}}(e);p=m.priorityMethods,c=m.linkTags,d=m.metaTags,f=m.scriptTags}return{priority:p,base:B(g.BASE,t,r),bodyAttributes:B("bodyAttributes",n,r),htmlAttributes:B("htmlAttributes",a,r),link:B(g.LINK,c,r),meta:B(g.META,d,r),noscript:B(g.NOSCRIPT,o,r),script:B(g.SCRIPT,f,r),style:B(g.STYLE,i,r),title:B(g.TITLE,{title:s,titleAttributes:u},r)}},z=[],U=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?z:n.instances},add:function(e){(n.canUseDOM?z:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?z:n.instances).indexOf(e);(n.canUseDOM?z:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=j({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},$=r.createContext({}),q=o().shape({setHelmet:o().func,helmetInstances:o().shape({get:o().func,add:o().func,remove:o().func})}),G="undefined"!=typeof document,H=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new U(r.props.context,t.canUseDOM),r}return p(t,e),t.prototype.render=function(){return r.createElement($.Provider,{value:this.helmetData.value},this.props.children)},t}(r.Component);H.canUseDOM=G,H.propTypes={context:o().shape({helmet:o().shape()}),children:o().node.isRequired},H.defaultProps={context:{}},H.displayName="HelmetProvider";var Z=function(e,t){var n,r=document.head||document.querySelector(g.HEAD),a=r.querySelectorAll(e+"[data-rh]"),o=[].slice.call(a),i=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&("innerHTML"===a?r.innerHTML=t.innerHTML:"cssText"===a?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(a,void 0===t[a]?"":t[a]));r.setAttribute("data-rh","true"),o.some((function(e,t){return n=t,r.isEqualNode(e)}))?o.splice(n,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:i}},V=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),a=r?r.split(","):[],o=[].concat(a),i=Object.keys(t),l=0;l<i.length;l+=1){var s=i[l],u=t[s]||"";n.getAttribute(s)!==u&&n.setAttribute(s,u),-1===a.indexOf(s)&&a.push(s);var c=o.indexOf(s);-1!==c&&o.splice(c,1)}for(var d=o.length-1;d>=0;d-=1)n.removeAttribute(o[d]);a.length===o.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==i.join(",")&&n.setAttribute("data-rh",i.join(","))}},W=function(e,t){var n=e.baseTag,r=e.htmlAttributes,a=e.linkTags,o=e.metaTags,i=e.noscriptTags,l=e.onChangeClientState,s=e.scriptTags,u=e.styleTags,c=e.title,d=e.titleAttributes;V(g.BODY,e.bodyAttributes),V(g.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=L(e)),V(g.TITLE,t)}(c,d);var f={baseTag:Z(g.BASE,n),linkTags:Z(g.LINK,a),metaTags:Z(g.META,o),noscriptTags:Z(g.NOSCRIPT,i),scriptTags:Z(g.SCRIPT,s),styleTags:Z(g.STYLE,u)},p={},m={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(m[e]=f[e].oldTags)})),t&&t(),l(e,p,m)},K=null,Y=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}p(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!d()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,a=null,o=(e=n.helmetInstances.get().map((function(e){var t=f({},e.props);return delete t.context,t})),{baseTag:_(["href"],e),bodyAttributes:T("bodyAttributes",e),defer:S(e,"defer"),encode:S(e,"encodeSpecialCharacters"),htmlAttributes:T("htmlAttributes",e),linkTags:A(g.LINK,["rel","href"],e),metaTags:A(g.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:A(g.NOSCRIPT,["innerHTML"],e),onChangeClientState:C(e),scriptTags:A(g.SCRIPT,["src","innerHTML"],e),styleTags:A(g.STYLE,["cssText"],e),title:x(e),titleAttributes:T("titleAttributes",e),prioritizeSeoTags:R(e,"prioritizeSeoTags")});H.canUseDOM?(t=o,K&&cancelAnimationFrame(K),t.defer?K=requestAnimationFrame((function(){W(t,(function(){K=null}))})):(W(t),K=null)):j&&(a=j(o)),r(a)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(r.Component);Y.propTypes={context:q.isRequired},Y.displayName="HelmetDispatcher";var Q=["children"],X=["children"],J=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!l()(O(this.props,"helmetData"),O(e,"helmetData"))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:t};case g.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return f({},r,((t={})[n.type]=[].concat(r[n.type]||[],[f({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,o=e.newChildProps,i=e.nestedChildren;switch(r.type){case g.TITLE:return f({},a,((t={})[r.type]=i,t.titleAttributes=f({},o),t));case g.BODY:return f({},a,{bodyAttributes:f({},o)});case g.HTML:return f({},a,{htmlAttributes:f({},o)});default:return f({},a,((n={})[r.type]=f({},o),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=f({},t);return Object.keys(e).forEach((function(t){var r;n=f({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return u()(w.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+w.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),u()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,a={};return r.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,o=r.children,i=h(r,Q),l=Object.keys(i).reduce((function(e,t){return e[E[t]||t]=i[t],e}),{}),s=e.type;switch("symbol"==typeof s?s=s.toString():n.warnOnInvalidChildren(e,o),s){case g.FRAGMENT:t=n.mapChildrenToProps(o,t);break;case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:a=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:a,newChildProps:l,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:l,nestedChildren:o})}}})),this.mapArrayTypeChildrenToProps(a,t)},n.render=function(){var e=this.props,t=e.children,n=h(e,X),a=f({},n),o=n.helmetData;return t&&(a=this.mapChildrenToProps(t,a)),!o||o instanceof U||(o=new U(o.context,o.instances)),o?r.createElement(Y,f({},a,{context:o.value,helmetData:void 0})):r.createElement($.Consumer,null,(function(e){return r.createElement(Y,f({},a,{context:e}))}))},t}(r.Component);J.propTypes={base:o().object,bodyAttributes:o().object,children:o().oneOfType([o().arrayOf(o().node),o().node]),defaultTitle:o().string,defer:o().bool,encodeSpecialCharacters:o().bool,htmlAttributes:o().object,link:o().arrayOf(o().object),meta:o().arrayOf(o().object),noscript:o().arrayOf(o().object),onChangeClientState:o().func,script:o().arrayOf(o().object),style:o().arrayOf(o().object),title:o().string,titleAttributes:o().object,titleTemplate:o().string,prioritizeSeoTags:o().bool,helmetData:o().object},J.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},J.displayName="Helmet"},95473:function(e,t,n){"use strict";n.d(t,{H:function(){return l},f:function(){return i}});var r=n(3620),a=n(25773),o=n(27378);function i(e,t,n){return void 0===n&&(n=[]),e.some((function(e){var a=e.path?(0,r.LX)(t,e):n.length?n[n.length-1].match:r.F0.computeRootMatch(t);return a&&(n.push({route:e,match:a}),e.routes&&i(e.routes,t,n)),a})),n}function l(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),e?o.createElement(r.rs,n,e.map((function(e,n){return o.createElement(r.AW,{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,render:function(n){return e.render?e.render((0,a.Z)({},n,{},t,{route:e})):o.createElement(e.component,(0,a.Z)({},n,t,{route:e}))}})}))):null}},4289:function(e,t,n){"use strict";n.d(t,{OL:function(){return y},VK:function(){return c},rU:function(){return g}});var r=n(3620),a=n(93219),o=n(27378),i=n(15036),l=(n(23615),n(25773)),s=n(30808),u=n(1115),c=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,i.lX)(t.props),t}return(0,a.Z)(t,e),t.prototype.render=function(){return o.createElement(r.F0,{history:this.history,children:this.props.children})},t}(o.Component);o.Component;var d=function(e,t){return"function"==typeof e?e(t):e},f=function(e,t){return"string"==typeof e?(0,i.ob)(e,null,null,t):e},p=function(e){return e},m=o.forwardRef;void 0===m&&(m=p);var h=m((function(e,t){var n=e.innerRef,r=e.navigate,a=e.onClick,i=(0,s.Z)(e,["innerRef","navigate","onClick"]),u=i.target,c=(0,l.Z)({},i,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||u&&"_self"!==u||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=p!==m&&t||n,o.createElement("a",c)}));var g=m((function(e,t){var n=e.component,a=void 0===n?h:n,c=e.replace,g=e.to,v=e.innerRef,b=(0,s.Z)(e,["component","replace","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=e.history,r=f(d(g,e.location),e.location),s=r?n.createHref(r):"",h=(0,l.Z)({},b,{href:s,navigate:function(){var t=d(g,e.location),r=(0,i.Ep)(e.location)===(0,i.Ep)(f(t));(c||r?n.replace:n.push)(t)}});return p!==m?h.ref=t||v:h.innerRef=v,o.createElement(a,h)}))})),v=function(e){return e},b=o.forwardRef;void 0===b&&(b=v);var y=b((function(e,t){var n=e["aria-current"],a=void 0===n?"page":n,i=e.activeClassName,c=void 0===i?"active":i,p=e.activeStyle,m=e.className,h=e.exact,y=e.isActive,w=e.location,k=e.sensitive,E=e.strict,S=e.style,x=e.to,C=e.innerRef,T=(0,s.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(r.s6.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=w||e.location,i=f(d(x,n),n),s=i.pathname,_=s&&s.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),A=_?(0,r.LX)(n.pathname,{path:_,exact:h,sensitive:k,strict:E}):null,R=!!(y?y(A,n):A),L="function"==typeof m?m(R):m,P="function"==typeof S?S(R):S;R&&(L=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(L,c),P=(0,l.Z)({},P,p));var O=(0,l.Z)({"aria-current":R&&a||null,className:L,style:P,to:i},T);return v!==b?O.ref=t||C:O.innerRef=C,o.createElement(g,O)}))}))},3620:function(e,t,n){"use strict";n.d(t,{AW:function(){return x},F0:function(){return w},LX:function(){return S},TH:function(){return N},k6:function(){return O},rs:function(){return L},s6:function(){return y}});var r=n(93219),a=n(27378),o=n(23615),i=n.n(o),l=n(15036),s=n(1115),u=n(25773),c=n(54039),d=n.n(c),f=(n(58262),n(30808)),p=(n(55839),1073741823),m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:{};function h(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var g=a.createContext||function(e,t){var n,o,l="__create-react-context-"+function(){var e="__global_unique_id__";return m[e]=(m[e]||0)+1}()+"__",s=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).emitter=h(t.props.value),t}(0,r.Z)(n,e);var a=n.prototype;return a.getChildContext=function(){var e;return(e={})[l]=this.emitter,e},a.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,a=e.value;((o=r)===(i=a)?0!==o||1/o==1/i:o!=o&&i!=i)?n=0:(n="function"==typeof t?t(r,a):p,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,i},a.render=function(){return this.props.children},n}(a.Component);s.childContextTypes=((n={})[l]=i().object.isRequired,n);var u=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,r.Z)(n,t);var a=n.prototype;return a.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?p:t},a.componentDidMount=function(){this.context[l]&&this.context[l].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?p:e},a.componentWillUnmount=function(){this.context[l]&&this.context[l].off(this.onUpdate)},a.getValue=function(){return this.context[l]?this.context[l].get():e},a.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(a.Component);return u.contextTypes=((o={})[l]=i().object,o),{Provider:s,Consumer:u}},v=function(e){var t=g();return t.displayName=e,t},b=v("Router-History"),y=v("Router"),w=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.createElement(b.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.Component);a.Component;a.Component;var k={},E=0;function S(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,a=n.exact,o=void 0!==a&&a,i=n.strict,l=void 0!==i&&i,s=n.sensitive,u=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=k[n]||(k[n]={});if(r[e])return r[e];var a=[],o={regexp:d()(e,a,t),keys:a};return E<1e4&&(r[e]=o,E++),o}(n,{end:o,strict:l,sensitive:u}),a=r.regexp,i=r.keys,s=a.exec(e);if(!s)return null;var c=s[0],f=s.slice(1),p=e===c;return o&&!p?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:p,params:i.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var x=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(y.Consumer,null,(function(t){t||(0,s.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?S(n.pathname,e.props):t.match,o=(0,u.Z)({},t,{location:n,match:r}),i=e.props,l=i.children,c=i.component,d=i.render;return Array.isArray(l)&&function(e){return 0===a.Children.count(e)}(l)&&(l=null),a.createElement(y.Provider,{value:o},o.match?l?"function"==typeof l?l(o):l:c?a.createElement(c,o):d?d(o):null:"function"==typeof l?l(o):null)}))},t}(a.Component);function C(e){return"/"===e.charAt(0)?e:"/"+e}function T(e,t){if(!e)return t;var n=C(e);return 0!==t.pathname.indexOf(n)?t:(0,u.Z)({},t,{pathname:t.pathname.substr(n.length)})}function _(e){return"string"==typeof e?e:(0,l.Ep)(e)}function A(e){return function(){(0,s.Z)(!1)}}function R(){}a.Component;var L=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return a.createElement(y.Consumer,null,(function(t){t||(0,s.Z)(!1);var n,r,o=e.props.location||t.location;return a.Children.forEach(e.props.children,(function(e){if(null==r&&a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?S(o.pathname,(0,u.Z)({},e.props,{path:i})):t.match}})),r?a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(a.Component);var P=a.useContext;function O(){return P(b)}function N(){return P(y).location}},5243:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},54039:function(e,t,n){var r=n(5243);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return l(o(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=f;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,i=0,l="",c=t&&t.delimiter||"/";null!=(n=a.exec(e));){var d=n[0],f=n[1],p=n.index;if(l+=e.slice(i,p),i=p+d.length,f)l+=f[1];else{var m=e[i],h=n[2],g=n[3],v=n[4],b=n[5],y=n[6],w=n[7];l&&(r.push(l),l="");var k=null!=h&&null!=m&&m!==h,E="+"===y||"*"===y,S="?"===y||"*"===y,x=n[2]||c,C=v||b;r.push({name:g||o++,prefix:h||"",delimiter:x,optional:S,repeat:E,partial:k,asterisk:!!w,pattern:C?u(C):w?".*":"[^"+s(x)+"]+?"})}}return i<e.length&&(l+=e.substr(i)),l&&r.push(l),r}function i(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",d(t)));return function(t,a){for(var o="",l=t||{},s=(a||{}).pretty?i:encodeURIComponent,u=0;u<e.length;u++){var c=e[u];if("string"!=typeof c){var d,f=l[c.name];if(null==f){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=s(f[p]),!n[u].test(d))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===p?c.prefix:c.delimiter)+d}}else{if(d=c.asterisk?encodeURI(f).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):s(f),!n[u].test(d))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+d+'"');o+=c.prefix+d}}else o+=c}return o}}function s(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function c(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var a=(n=n||{}).strict,o=!1!==n.end,i="",l=0;l<e.length;l++){var u=e[l];if("string"==typeof u)i+=s(u);else{var f=s(u.prefix),p="(?:"+u.pattern+")";t.push(u),u.repeat&&(p+="(?:"+f+p+")*"),i+=p=u.optional?u.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var m=s(n.delimiter||"/"),h=i.slice(-m.length)===m;return a||(i=(h?i.slice(0,-m.length):i)+"(?:"+m+"(?=$))?"),i+=o?"$":a&&h?"":"(?="+m+"|$)",c(new RegExp("^"+i,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(p(e[a],t,n).source);return c(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(o(e,n),t,n)}(e,t,n)}},18395:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case l:case i:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case h:case s:return e;default:return t}}case a:return t}}}function E(e){return k(e)===d}},58262:function(e,t,n){"use strict";n(18395)},41535:function(e,t,n){"use strict";var r=n(62525),a=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;a=d("react.element"),o=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),i=d("react.provider"),l=d("react.context"),s=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var y=b.prototype=new v;y.constructor=b,r(y,g.prototype),y.isPureReactComponent=!0;var w={current:null},k=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,o={},i=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)k.call(t,r)&&!E.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:a,type:e,key:i,ref:l,props:o,_owner:w.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var C=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function _(e,t,n,r,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case o:s=!0}}if(s)return i=i(s=e),e=""===r?"."+T(s,0):r,Array.isArray(i)?(n="",null!=e&&(n=e.replace(C,"$&/")+"/"),_(i,t,n,"",(function(e){return e}))):null!=i&&(x(i)&&(i=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(C,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+T(l=e[u],u);s+=_(l,t,n,c,i)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(l=e.next()).done;)s+=_(l=l.value,t,n,c=r+T(l,u++),i);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function A(e,t,n){if(null==e)return e;var r=[],a=0;return _(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function R(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var L={current:null};function P(){var e=L.current;if(null===e)throw Error(p(321));return e}var O={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(p(143));return e}},t.Component=g,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var o=r({},e.props),i=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=w.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)k.call(t,c)&&!E.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];o.children=u}return{$$typeof:a,type:e.type,key:i,ref:l,props:o,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return P().useCallback(e,t)},t.useContext=function(e,t){return P().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return P().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return P().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},t.useMemo=function(e,t){return P().useMemo(e,t)},t.useReducer=function(e,t,n){return P().useReducer(e,t,n)},t.useRef=function(e){return P().useRef(e)},t.useState=function(e){return P().useState(e)},t.version="17.0.2"},27378:function(e,t,n){"use strict";e.exports=n(41535)},73323:function(e,t){"use strict";var n,r,a,o;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,d=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(n){throw setTimeout(d,0),n}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(d,0))},r=function(e,t){c=setTimeout(e,t)},a=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var h=!1,g=null,v=-1,b=5,y=0;t.unstable_shouldYield=function(){return t.unstable_now()>=y},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();y=e+b;try{g(!0,e)?k.postMessage(null):(h=!1,g=null)}catch(n){throw k.postMessage(null),n}}else h=!1},n=function(e){g=e,h||(h=!0,k.postMessage(null))},r=function(e,n){v=f((function(){e(t.unstable_now())}),n)},a=function(){p(v),v=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<C(a,t)))break e;e[r]=t,e[n]=a,n=r}}function S(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var o=2*(r+1)-1,i=e[o],l=o+1,s=e[l];if(void 0!==i&&0>C(i,n))void 0!==s&&0>C(s,i)?(e[r]=s,e[l]=n,r=l):(e[r]=i,e[o]=n,r=o);else{if(!(void 0!==s&&0>C(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],_=[],A=1,R=null,L=3,P=!1,O=!1,N=!1;function I(e){for(var t=S(_);null!==t;){if(null===t.callback)x(_);else{if(!(t.startTime<=e))break;x(_),t.sortIndex=t.expirationTime,E(T,t)}t=S(_)}}function D(e){if(N=!1,I(e),!O)if(null!==S(T))O=!0,n(M);else{var t=S(_);null!==t&&r(D,t.startTime-e)}}function M(e,n){O=!1,N&&(N=!1,a()),P=!0;var o=L;try{for(I(n),R=S(T);null!==R&&(!(R.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=R.callback;if("function"==typeof i){R.callback=null,L=R.priorityLevel;var l=i(R.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?R.callback=l:R===S(T)&&x(T),I(n)}else x(T);R=S(T)}if(null!==R)var s=!0;else{var u=S(_);null!==u&&r(D,u.startTime-n),s=!1}return s}finally{R=null,L=o,P=!1}}var F=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){O||P||(O=!0,n(M))},t.unstable_getCurrentPriorityLevel=function(){return L},t.unstable_getFirstCallbackNode=function(){return S(T)},t.unstable_next=function(e){switch(L){case 1:case 2:case 3:var t=3;break;default:t=L}var n=L;L=t;try{return e()}finally{L=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=L;L=e;try{return t()}finally{L=n}},t.unstable_scheduleCallback=function(e,o,i){var l=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?l+i:l:i=l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:A++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>l?(e.sortIndex=i,E(_,e),null===S(T)&&e===S(_)&&(N?a():N=!0,r(D,i-l))):(e.sortIndex=s,E(T,e),O||P||(O=!0,n(M))),e},t.unstable_wrapCallback=function(e){var t=L;return function(){var n=L;L=t;try{return e.apply(this,arguments)}finally{L=n}}}},91102:function(e,t,n){"use strict";e.exports=n(73323)},74445:function(e){e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<o.length;s++){var u=o[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(a=n?n.call(r,c,d,u):void 0)||void 0===a&&c!==d)return!1}return!0}},1115:function(e,t){"use strict";var n="Invariant failed";t.Z=function(e,t){if(!e)throw new Error(n)}},25773:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},93219:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(6983);function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},30808:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}n.d(t,{Z:function(){return r}})},6983:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},36809:function(e,t,n){"use strict";n.r(t),t.default={title:"uniforms | React form library for building forms from any schema",tagline:"When it comes to using build forms in React, it's always good to choose a trusted React form library. Build forms and enjoy peace of mind on your project.",organizationName:"vazco",projectName:"uniforms",baseUrl:"/",url:"https://uniforms.tools",trailingSlash:!0,customFields:{companies:[{url:"https://www.deskpro.com/",image:"deskpro.png",alt:"Deskpro"},{url:"https://www.nokia.com/",image:"nokia.png",alt:"Nokia"},{url:"https://github.com/react-page/react-page/tree/master/packages/plugins/createPluginMaterialUi",image:"react-page.png",alt:"React Page"},{url:"https://graphback.dev",image:"graphback.png",alt:"Graphback"},{url:"https://www.onyx-one.com/",image:"onyx-one.png",alt:"Onyx one"},{url:"https://aerogear.org",image:"aerogear.png",alt:"Aerogear"},{url:"https://cleverbeagle.com/together",image:"cleverbeagle.png",alt:"Clever Beagle"},{url:"http://www.orionjs.org",image:"orionjs.png",alt:"Orion.js"},{url:"https://boulder.care",image:"boulder.svg",alt:"Boulder Care"}],email:"hello@uniforms.tools",keywords:["forms","react","schema"]},themeConfig:{algolia:{apiKey:"9bab87682792c2bd77ec707a56669e29",appId:"WWWW16GKXU",contextualSearch:!1,indexName:"uniforms",searchPagePath:!1,searchParameters:{}},footer:{links:[],style:"light"},docs:{sidebar:{hideable:!0,autoCollapseCategories:!1},versionPersistence:"localStorage"},hotjar:{hjid:1434110},navbar:{items:[{label:"Docs",to:"/docs/what-are-uniforms",position:"left"},{label:"Tutorial",to:"/docs/tutorials-basic-uniforms-usage",position:"left"},{label:"Playground",to:"/playground",position:"left"},{label:"GitHub",href:"https://github.com/vazco/uniforms",position:"left"},{label:"Enterprise",href:"https://forminer.com/?utm_source=uniforms&utm_medium=Menu_CTA&utm_campaign=Forminer_uniforms_menu_CTA&utm_id=Forminer_uniforms_menu",position:"left"},{label:"Custom solutions",href:"https://www.vazco.eu/",position:"left"}],logo:{alt:"uniforms logo",src:"img/uniforms.svg"},hideOnScroll:!1},prism:{theme:{plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},additionalLanguages:[],magicComments:[{className:"theme-code-block-highlighted-line",line:"highlight-next-line",block:{start:"highlight-start",end:"highlight-end"}}]},colorMode:{defaultMode:"light",disableSwitch:!1,respectPrefersColorScheme:!1},metadata:[],tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3}},favicon:"favicon.ico",plugins:["/home/runner/work/uniforms/uniforms/website/plugins/docusaurus-plugin-hotjar"],presets:[["@docusaurus/preset-classic",{docs:{path:"../docs",sidebarCollapsible:!1,sidebarPath:"/home/runner/work/uniforms/uniforms/website/sidebars.json"},googleAnalytics:{trackingID:"UA-136559762-4"},gtag:{trackingID:"GTM-5RFDRMB"},pages:{path:"./pages"},theme:{customCss:"/home/runner/work/uniforms/uniforms/website/src/theme/index.css"}}]],onBrokenLinks:"throw",onBrokenMarkdownLinks:"throw",onDuplicateRoutes:"throw",baseUrlIssueBanner:!0,i18n:{defaultLocale:"en",path:"i18n",locales:["en"],localeConfigs:{}},staticDirectories:["static"],themes:[],scripts:[],stylesheets:[],clientModules:[],titleDelimiter:"|",noIndex:!1}},57529:function(e){"use strict";e.exports={}},16887:function(e){"use strict";e.exports=JSON.parse('{"/playground/-9cd":{"__comp":"724b70da","__context":{"plugin":"be85e8a7"},"config":"5e9f5e1a"},"/docs/-180":{"__comp":"1be78505","__context":{"plugin":"e98b3e1d"},"versionMetadata":"935f2afb"},"/docs/api-bridges/-e65":{"__comp":"17896441","content":"d076814b"},"/docs/api-context-data/-237":{"__comp":"17896441","content":"1f7065eb"},"/docs/api-fields/-668":{"__comp":"17896441","content":"c0b88abe"},"/docs/api-forms/-071":{"__comp":"17896441","content":"58c1b389"},"/docs/api-helpers/-b84":{"__comp":"17896441","content":"f8759e1b"},"/docs/compare-matrix-landing/-d55":{"__comp":"17896441","content":"d040a628"},"/docs/compare-matrix/-45d":{"__comp":"17896441","content":"60b54014"},"/docs/examples-common-forms/-ad5":{"__comp":"17896441","content":"f5d1468c"},"/docs/examples-custom-bridge/-d91":{"__comp":"17896441","content":"7289a944"},"/docs/examples-custom-fields/-f4a":{"__comp":"17896441","content":"7f45ca10"},"/docs/examples-custom-form/-f40":{"__comp":"17896441","content":"0ec54675"},"/docs/faq/-e60":{"__comp":"17896441","content":"3d70cde6"},"/docs/installation/-ae9":{"__comp":"17896441","content":"95d13d39"},"/docs/migrating-2-to-3/-7b1":{"__comp":"17896441","content":"ceaf42d5"},"/docs/migrating-3-to-4/-574":{"__comp":"17896441","content":"858af898"},"/docs/motivation/-24d":{"__comp":"17896441","content":"ab644ad6"},"/docs/tutorials-basic-uniforms-usage/-743":{"__comp":"17896441","content":"76d37bd5"},"/docs/tutorials-creating-custom-field/-60f":{"__comp":"17896441","content":"0ba16cac"},"/docs/tutorials-creating-custom-theme/-231":{"__comp":"17896441","content":"f2d00bc8"},"/docs/tutorials-customizing-your-form-layout/-9a2":{"__comp":"17896441","content":"6f53493e"},"/docs/tutorials-using-predefined-fields/-35f":{"__comp":"17896441","content":"df3a1a49"},"/docs/uth-autofield-algorithm/-858":{"__comp":"17896441","content":"e882b3e5"},"/docs/uth-bridge-concept/-17b":{"__comp":"17896441","content":"bd337b44"},"/docs/what-are-uniforms/-b8f":{"__comp":"17896441","content":"775024fc"},"/docs/why-are-uniforms/-a20":{"__comp":"17896441","content":"be10ca45"},"/-eea":{"__comp":"4fd05c72","__context":{"plugin":"be85e8a7"},"config":"5e9f5e1a"}}')}},function(e){e.O(0,[532],(function(){return t=93375,e(e.s=t);var t}));e.O()}]); \ No newline at end of file diff --git a/assets/js/main.7dd9665c.js.LICENSE.txt b/assets/js/main.7dd9665c.js.LICENSE.txt new file mode 100644 index 000000000..6e08db297 --- /dev/null +++ b/assets/js/main.7dd9665c.js.LICENSE.txt @@ -0,0 +1,53 @@ +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ + +/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */ + +/** + * Prism: Lightweight, robust, elegant syntax highlighting + * + * @license MIT <https://opensource.org/licenses/MIT> + * @author Lea Verou <https://lea.verou.me> + * @namespace + * @public + */ + +/** @license React v0.20.2 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v17.0.2 + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** @license React v17.0.2 + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ diff --git a/assets/js/runtime~main.df787003.js b/assets/js/runtime~main.df787003.js new file mode 100644 index 000000000..b01f59a98 --- /dev/null +++ b/assets/js/runtime~main.df787003.js @@ -0,0 +1 @@ +!function(){"use strict";var e,t,n,r,o,a={},c={};function f(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,f),n.loaded=!0,n.exports}f.m=a,f.c=c,e=[],f.O=function(t,n,r,o){if(!n){var a=1/0;for(d=0;d<e.length;d++){n=e[d][0],r=e[d][1],o=e[d][2];for(var c=!0,i=0;i<n.length;i++)(!1&o||a>=o)&&Object.keys(f.O).every((function(e){return f.O[e](n[i])}))?n.splice(i--,1):(c=!1,o<a&&(a=o));if(c){e.splice(d--,1);var u=r();void 0!==u&&(t=u)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[n,r,o]},f.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},f.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);f.r(o);var a={};t=t||[null,n({}),n([]),n(n)];for(var c=2&r&&e;"object"==typeof c&&!~t.indexOf(c);c=n(c))Object.getOwnPropertyNames(c).forEach((function(t){a[t]=function(){return e[t]}}));return a.default=function(){return e},f.d(o,a),o},f.d=function(e,t){for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.f={},f.e=function(e){return Promise.all(Object.keys(f.f).reduce((function(t,n){return f.f[n](e,t),t}),[]))},f.u=function(e){return"assets/js/"+({21:"60b54014",37:"95d13d39",48:"58c1b389",50:"6f53493e",53:"935f2afb",98:"f2d00bc8",146:"ceaf42d5",152:"76d37bd5",154:"d040a628",243:"df3a1a49",269:"f8759e1b",316:"4fd05c72",332:"724b70da",442:"bd337b44",487:"7289a944",514:"1be78505",517:"c0b88abe",529:"3d70cde6",556:"7f45ca10",566:"1f7065eb",581:"ab644ad6",609:"d076814b",773:"0ec54675",784:"0ba16cac",785:"858af898",789:"be10ca45",841:"f5d1468c",857:"e98b3e1d",903:"e882b3e5",908:"775024fc",918:"17896441",943:"be85e8a7"}[e]||e)+"."+{21:"1b55a4bd",37:"b926d92a",48:"221f45ea",50:"4130b5ba",53:"02ecf9fe",98:"d78fee1f",127:"68612a8b",146:"b0a668c5",152:"5886f2f2",154:"b2ee69f1",243:"e7d066d5",269:"60422fe5",290:"f467e503",316:"253a55ad",332:"69a1f3fa",442:"6e689903",487:"b9a35331",514:"3b63d0a6",517:"b1c00272",529:"9b18a802",556:"1199b3a7",566:"5d950a7d",581:"da1aa602",609:"4e0fbc20",670:"a380bf04",773:"cd112745",777:"88e19c8c",784:"d541e51a",785:"7df79c5e",789:"1e022c2a",829:"be73e92d",841:"995eef4e",857:"b63536fd",893:"cdbd5851",903:"443362a3",908:"a7c5ee0c",918:"42ccf507",943:"8a55419c"}[e]+".js"},f.miniCssF=function(e){},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o="website:",f.l=function(e,t,n,a){if(r[e])r[e].push(t);else{var c,i;if(void 0!==n)for(var u=document.getElementsByTagName("script"),d=0;d<u.length;d++){var b=u[d];if(b.getAttribute("src")==e||b.getAttribute("data-webpack")==o+n){c=b;break}}c||(i=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,f.nc&&c.setAttribute("nonce",f.nc),c.setAttribute("data-webpack",o+n),c.src=e),r[e]=[t];var l=function(t,n){c.onerror=c.onload=null,clearTimeout(s);var o=r[e];if(delete r[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((function(e){return e(n)})),t)return t(n)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=l.bind(null,c.onerror),c.onload=l.bind(null,c.onload),i&&document.head.appendChild(c)}},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},f.p="/",f.gca=function(e){return e={17896441:"918","60b54014":"21","95d13d39":"37","58c1b389":"48","6f53493e":"50","935f2afb":"53",f2d00bc8:"98",ceaf42d5:"146","76d37bd5":"152",d040a628:"154",df3a1a49:"243",f8759e1b:"269","4fd05c72":"316","724b70da":"332",bd337b44:"442","7289a944":"487","1be78505":"514",c0b88abe:"517","3d70cde6":"529","7f45ca10":"556","1f7065eb":"566",ab644ad6:"581",d076814b:"609","0ec54675":"773","0ba16cac":"784","858af898":"785",be10ca45:"789",f5d1468c:"841",e98b3e1d:"857",e882b3e5:"903","775024fc":"908",be85e8a7:"943"}[e]||e,f.p+f.u(e)},function(){var e={303:0,532:0};f.f.j=function(t,n){var r=f.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(/^(303|532)$/.test(t))e[t]=0;else{var o=new Promise((function(n,o){r=e[t]=[n,o]}));n.push(r[2]=o);var a=f.p+f.u(t),c=new Error;f.l(a,(function(n){if(f.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}},f.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,o,a=n[0],c=n[1],i=n[2],u=0;if(a.some((function(t){return 0!==e[t]}))){for(r in c)f.o(c,r)&&(f.m[r]=c[r]);if(i)var d=i(f)}for(t&&t(n);u<a.length;u++)o=a[u],f.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return f.O(d)},n=self.webpackChunkwebsite=self.webpackChunkwebsite||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}()}(); \ No newline at end of file diff --git a/assets/themes/antd.png b/assets/themes/antd.png new file mode 100644 index 000000000..004cb9940 Binary files /dev/null and b/assets/themes/antd.png differ diff --git a/assets/themes/bootstrap.svg b/assets/themes/bootstrap.svg new file mode 100644 index 000000000..91ded9e3e --- /dev/null +++ b/assets/themes/bootstrap.svg @@ -0,0 +1,6 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="39" height="39" viewBox="0 0 39 39"> + <g fill="none" fill-rule="evenodd"> + <path fill="#563D7C" d="M0 33.867a5.013 5.013 0 0 0 5.013 5.013h28.854a5.013 5.013 0 0 0 5.013-5.013V5.013A5.013 5.013 0 0 0 33.867 0H5.013A5.013 5.013 0 0 0 0 5.013v28.854z"/> + <path fill="#FFF" d="M16.123 27.188v-6.462h5.638c1.12 0 2.022.258 2.703.775.682.516 1.022 1.379 1.022 2.588 0 .615-.104 1.12-.313 1.516a2.488 2.488 0 0 1-.84.94 3.56 3.56 0 0 1-1.22.494 6.9 6.9 0 0 1-1.451.149h-5.54zM10.946 7.67v23.54h11.408c1.055 0 2.083-.132 3.083-.395 1-.264 1.89-.67 2.67-1.22a6.008 6.008 0 0 0 1.863-2.127c.462-.868.692-1.896.692-3.083 0-1.472-.357-2.73-1.071-3.775-.714-1.044-1.797-1.775-3.248-2.192 1.056-.506 1.852-1.154 2.39-1.945.54-.792.808-1.78.808-2.968 0-1.099-.18-2.022-.544-2.77a4.523 4.523 0 0 0-1.533-1.796c-.659-.45-1.45-.775-2.374-.973-.923-.197-1.945-.296-3.066-.296H10.946zm5.177 9.528v-5.506h4.846c.462 0 .907.038 1.336.115.428.077.807.215 1.137.413.33.197.594.472.791.824.198.351.297.802.297 1.352 0 .989-.297 1.703-.89 2.143-.594.44-1.352.659-2.275.659h-5.242z"/> + </g> +</svg> diff --git a/assets/themes/mui.png b/assets/themes/mui.png new file mode 100644 index 000000000..56526f097 Binary files /dev/null and b/assets/themes/mui.png differ diff --git a/assets/themes/semantic.svg b/assets/themes/semantic.svg new file mode 100644 index 000000000..de73ced34 --- /dev/null +++ b/assets/themes/semantic.svg @@ -0,0 +1,6 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="39" height="39" viewBox="0 0 39 39"> + <g fill="none" fill-rule="evenodd"> + <path fill="#34BDB2" d="M0 38.88h38.88V0H0z"/> + <path fill="#FFF" d="M25.585 13.22c-2.053-1.192-3.875-2.128-6.259-2.087-1.364.024-2.535.765-2.78 2.122-.23 1.262.892 1.962 2.06 2.392 1.935.713 3.62 1.466 5.523 2.258 3.458 1.441 5.231 3.775 5.022 6.77-.267 3.81-2.56 6.542-6.204 7.443-4.762 1.178-9.386-.616-13.293-3.12.986-1.501 2.13-2.527 3.11-4.02 2.257.96 4.03 2.26 6.392 2.462 1.665.142 3.551.063 3.926-1.893.337-1.763-1.198-2.709-2.695-3.237-1.782-.628-3.561-1.397-5.31-2.111-3.23-1.32-4.545-3.901-4.323-6.942 0-1.783 1.479-5.386 5.106-6.507 5.572-1.722 8.643.041 12.684 2.638-1.074 1.42-1.899 2.429-2.959 3.831"/> + </g> +</svg> diff --git a/assets/vazco.svg b/assets/vazco.svg new file mode 100644 index 000000000..aa5d98223 --- /dev/null +++ b/assets/vazco.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="640" height="119" fill="none"><path fill="#00D5B0" d="M156.235 93.364h49.469l-37.262-66.717c-3.436.331-7.07 1.239-10.637 6.273-5.727 8.08-42.053 59.436-47.95 67.789-6.639 9.404-14.639 13.597-21.275 15.582-5.868 1.82-10.8 1.82-13.272 1.82h-14.64L0 0h107.836L90.31 24.78H40.82l37.256 66.731c3.436-.33 7.068-1.251 10.635-6.284 5.727-8.081 42.053-59.438 47.95-67.792 6.639-9.404 14.641-13.595 21.277-15.58C163.824.093 168.736 0 171.208 0h14.637l60.665 118.115-107.821.029 17.546-24.78Z"/><path fill="#fff" d="M255.165 19.953h18.712l20.876 43.076 20.873-43.076h18.715l-39.588 76.75-39.588-76.75ZM333.245 57.666c0-22.063 15.93-39.277 36.432-39.277 9.621 0 17.822 3.756 23.185 9.858v-8.292h17.349v75.112h-17.349V86.93c-5.363 6.101-13.564 9.7-23.185 9.7-20.502 0-36.432-17.056-36.432-38.964Zm60.72-.155c0-13.458-8.673-22.847-21.447-22.847-12.621 0-21.45 9.39-21.45 22.847s8.829 22.846 21.45 22.846c12.774 0 21.447-9.389 21.447-22.846ZM420.11 95.065l38.84-59.464H424.6V19.953h64.029l-38.741 59.464h33.811v15.648H420.11ZM488.629 57.51c0-22.064 17.191-39.121 39.745-39.121 11.67 0 22.395 4.694 29.492 12.988l-11.353 11.424c-4.417-5.165-10.725-7.825-18.139-7.825-12.933 0-21.923 9.232-21.923 22.535 0 13.3 8.99 22.534 21.923 22.534 7.414 0 13.722-2.661 18.139-7.825l11.353 11.422c-7.097 8.294-17.822 12.989-29.492 12.989-22.554 0-39.745-17.057-39.745-39.12ZM560.669 57.354c0-21.752 17.349-38.965 39.586-38.965 22.24 0 39.745 17.057 39.745 38.965 0 22.065-17.347 39.277-39.745 39.277-22.081 0-39.586-17.369-39.586-39.277Zm61.509 0c0-13.146-9.146-22.378-21.923-22.378-12.774 0-21.764 9.39-21.764 22.378 0 13.3 8.99 22.691 21.764 22.691 12.935 0 21.923-9.39 21.923-22.691Z"/></svg> \ No newline at end of file diff --git a/docs/api-bridges/index.html b/docs/api-bridges/index.html new file mode 100644 index 000000000..00de3cdb1 --- /dev/null +++ b/docs/api-bridges/index.html @@ -0,0 +1,27 @@ +<!doctype html> +<html lang="en" dir="ltr" class="docs-wrapper docs-doc-page docs-version-current plugin-docs plugin-id-default docs-doc-id-api-bridges"> +<head> +<meta charset="UTF-8"> +<meta name="generator" content="Docusaurus v2.1.0"> +<title data-rh="true">Bridges | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Bridges

To make use of any schema, uniforms have to create a bridge of it - a unified schema mapper.

Currently available bridges:

Deprecated bridges:

If you see a lot of Warning: Unknown props... logs, check if your schema or theme doesn't provide extra props. If so, consider registering it with filterDOMProps.

JSONSchemaBridge

import Ajv from 'ajv';
import { JSONSchemaBridge } from 'uniforms-bridge-json-schema';

const ajv = new Ajv({ allErrors: true, useDefaults: true });

const schema = {
title: 'Person',
type: 'object',
properties: {
firstName: { type: 'string' },
lastName: { type: 'string' },
age: {
description: 'Age in years',
type: 'integer',
minimum: 0,
},
},
required: ['firstName', 'lastName'],
};

function createValidator(schema: object) {
const validator = ajv.compile(schema);

return (model: object) => {
validator(model);
return validator.errors?.length ? { details: validator.errors } : null;
};
}

const validator = createValidator(schema);

const bridge = new JSONSchemaBridge({ schema, validator });

Note on allOf/anyOf/oneOf

The current handling of allOf/anyOf/oneOf is not complete and does not work with all possible cases. For an in-detail discussion, see #863. How it works, is that only a few properties are being used:

  • properties, where all subfields are merged (last definition wins),
  • required, where all properties are accumulated, and
  • type, where the first one is being used.

Below is an example of these implications:

{
"type": "object",
"properties": {
// This will render `NumField` WITHOUT `min` nor `max` properties.
// It will be properly validated, but without any UI guidelines.
"foo": {
"type": "number",
"allOf": [{ "minimum": 0 }, { "maximum": 10 }]
},
// This will render as `TextField`.
"bar": {
"oneOf": [{ "type": "string" }, { "type": "number" }]
}
}
}

Note on Bluebird

If you're using the bluebird package, you may have seen the following warning (docs):

Warning: a promise was rejected with a non-error [object Object]

There could be multiple causes of this error. One of it is not returning a proper error object.

In order to fix it, your validator function should return a Error-like object instead of an object with a single details property. The cleanest would be to create a custom ValidationError class:

import { ErrorObject } from 'ajv';

class ValidationError extends Error {
name = 'ValidationError';

constructor(public details: ErrorObject[]) {
super('ValidationError');
}
}

// Usage.
return validator.errors?.length ? new ValidationError(validator.errors) : null;

Another cause of this error may be two different implementations of the Promise object when using an asynchronous validate function. +Ensure that you are returning the same Promise object implementation that Bluebird is expecting. +The simplest way to do that should be to avoid using the async keyword and instead make the function return a Promise instead.

See #1047 for more details.

SimpleSchema2Bridge

import SimpleSchema from 'simpl-schema';
import SimpleSchema2Bridge from 'uniforms-bridge-simple-schema-2';

const schema = new SimpleSchema({
// ...

aboutMe: {
type: String,
uniforms: MyText, // Component...
uniforms: {
// ...or object...
component: MyText, // ...with component...
propA: 1, // ...and/or extra props.
},
},
});

const bridge = new SimpleSchema2Bridge({ schema });

ZodBridge

import ZodBridge from 'uniforms-bridge-zod';
import z from 'zod';

const schema = z.object({ aboutMe: z.string() });

const bridge = new ZodBridge({ schema });

SimpleSchemaBridge

caution

SimpleSchemaBridge is deprecated since uniforms v4.

import SimpleSchemaBridge from 'uniforms-bridge-simple-schema';
import { SimpleSchema } from 'aldeed:simple-schema';

const schema = new SimpleSchema({
// ...

aboutMe: {
type: String,
uniforms: MyText, // Component...
uniforms: {
// ...or object...
component: MyText, // ...with component...
propA: 1, // ...and/or extra props.
},
},
});

const bridge = new SimpleSchemaBridge({ schema });

ZodBridge

import ZodBridge from 'uniforms-bridge-zod';
import z from 'zod';

const schema = z.object({ aboutMe: z.string() });

const bridge = new ZodBridge({ schema });

GraphQLBridge

caution

GraphQLBridge is deprecated since uniforms v4.

This bridge enables using GraphQL schema types as uniforms forms. +This saves you from not having to rewrite the form schema in your code. +As a trade-off, you have to write the validator from scratch. In some cases, it might be easier to rewrite the schema and use, for example, JSONSchemaBridge with ajv. +If only a simple or no validation is needed, this bridge is perfectly suited to work with GraphQL schemas.

The constructor accepts these arguments:

  • schema: GraphQLType can be any type parsed and extracted from a GraphQL schema.
  • validator: (model: Record<string, unknown>) => any a custom validator function that should return a falsy value if no errors are present or information about errors in the model as described in the custom bridge section.
  • extras: Record<string, unknown> = {} used to extend the schema generated from GraphQL type with extra field configuration.
  • provideDefaultLabelFromFieldName = true if set to true, the bridge will use the field name as a label if no label is provided in the schema.

Code example

import { GraphQLBridge } from 'uniforms-bridge-graphql';
import { buildASTSchema, parse } from 'graphql';

const schema = `
type Author {
id: String!
firstName: String
lastName: String
}

type Post {
id: Int!
author: Author!
title: String
votes: Int
}

# This is required by buildASTSchema
type Query { anything: ID }
`;

const schemaType = buildASTSchema(parse(schema)).getType('Post');
const schemaExtras = {
id: {
options: [
{ label: 1, value: 1 },
{ label: 2, value: 2 },
{ label: 3, value: 3 },
],
},
title: {
options: [
{ label: 1, value: 'a' },
{ label: 2, value: 'b' },
],
},
'author.firstName': {
placeholder: 'John',
},
};

const schemaValidator = (model: object) => {
const details = [];

if (!model.id) {
details.push({ name: 'id', message: 'ID is required!' });
}

if (!model.author.id) {
details.push({ name: 'author.id', message: 'Author ID is required!' });
}

if (model.votes < 0) {
details.push({
name: 'votes',
message: 'Votes must be a non-negative number!',
});
}

// ...

return details.length ? { details } : null;
};

const bridge = new GraphQLBridge({
schema: schemaType,
validator: schemaValidator,
extras: schemaExtras,
});
+ + + + \ No newline at end of file diff --git a/docs/api-context-data/index.html b/docs/api-context-data/index.html new file mode 100644 index 000000000..a01d03dcc --- /dev/null +++ b/docs/api-context-data/index.html @@ -0,0 +1,25 @@ + + + + + +Context data | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Context data

Some components might need to know a current form state, which is passed as React context. +Properties stored in the context relates either to the form values or the form instance itself. +That means, besides current form state, you can access form methods or encounter some metadata, e.g. about the used schema. +Some of them were designed for internal use, but you can still take advantage of them.

Accessing context data

A direct way of accessing the context data is to use the useForm hook:

import { useForm } from 'uniforms';

function Example() {
const context = useForm();
}

For convenience, it's also accessible through the useField hook:

import { useField } from 'uniforms';

function Example(rawProps) {
const [props, context] = useField(rawProps.name, rawProps);
}

Available context data

changed

Indicates whether there was a change on form.

changedMap

A map of changed fields. Rather internal one, used for checking if other fields has changed.

error

An object with a details field, which is an array of any validation errors.

formRef

Contains reference to the form component that gives access to the form methods.

model

An object with current form fields values structured {field: value}.

name

It is an array of the parent fields names:

<Field name="x">
// name = []
<Field name="y.z">
// name = ['x']
<Field name="a" /> // name = ['x', 'y', 'z']
</Field>
</Field>

For example if we define a CompositeField:

const Composite = () => (
<section>
<AutoField name="firstName" />
<AutoField name="lastName" />
</section>
);

And use it like that:

<AutoForm schema={schema}>
<CompositeField name="personA" />
<SubmitField />
</AutoForm>

The name array of the nested AutoFields will store a personA value.

onChange

You can directly access to the onChange method. E.g. onChange(field, value).

onSubmit

Access to onSubmit method.

randomId

Access to randomId method, created using the randomIds() helper.

schema

A bridge class instance with schema and validator properties.

The schema is simply your schema object and validator is your validating function.

state

The state is an object representing your current form status.

The state properties are:

NameDescription
disabledIndicates whether the form is disabled.
readOnlyIndicates whether the form is read-only.
showInlineErrorIndicates whether the inline errors should be shown.

submitted

Indicates whether the form was submitted.

submitting

Indicates whether the form is in the submitting state. Helpful when handling asynchronous submission.

validating

Indicates whether the form is in the validating state. Helpful when handling asynchronous validation.

+ + + + \ No newline at end of file diff --git a/docs/api-fields/index.html b/docs/api-fields/index.html new file mode 100644 index 000000000..7b5ee2962 --- /dev/null +++ b/docs/api-fields/index.html @@ -0,0 +1,28 @@ + + + + + +Fields | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Fields

uniforms provide a set of predefined components that can be used as form fields.

The list below contains a guaranteed set of fields, implemented in every theme package:

ComponentDescription
AutoFieldAutomatically renders a given field.
AutoFieldsAutomatically renders given fields.
BoolFieldCheckbox.
DateFieldHTML5 date or datetime-local input.
ErrorFieldError message for a given field.
ErrorsFieldError message with a list of validation errors.
HiddenFieldHidden field (with a possibility to omit in DOM).
ListAddFieldAn icon with action to add a list item.
ListDelFieldAn icon with action to remove a list item.
ListFieldList of nested fields.
ListItemFieldSingle list item wrapper.
LongTextFieldTextarea.
NestFieldBlock of nested fields.
NumFieldNumeric input.
RadioFieldRadio checkbox.
SelectFieldSelect (or set of radio checkboxes).
SubmitFieldSubmit button.
TextFieldText (or any HTML5 compatible) input.

Fields

AutoField

AutoField is basically a field renderer - it will render a field of a type adequate to the one defined in the schema, +according to the AutoField algorithm. +You can also directly pass a component to it (by a component prop). +All additional props will be passed to the result field component.

Props:
NameDefaultDescription
componentField according to the AutoField algorithmComponent to render
name-Name of the field in the schema
Props usage:
import { AutoField } from 'uniforms-unstyled';

<AutoField component={MyComponent} />;

AutoFields

AutoFields is basically a set of rendered AutoFields. +By default, the rendered fields will be AutoField in a chosen theme. +However, you can replace the standard AutoField with AutoField.componentDetectorContext.

The element property defines a wrapping component. +E.g. you want to group your fields inside a section, just do element="section". The default one is div.

Props:
NameDefaultDescription
elementdivFields wrapper
fieldsAll schema fieldsList of fields to render
omitFields[]List of fields to omit
Props usage:
import { AutoFields } from 'uniforms-unstyled';

<AutoFields
element="section"
fields={['fieldA', 'fieldB']}
omitFields={['fieldA', 'fieldB']}
/>;

BoolField

A checkbox.

Props:
NameDescriptionAvailable in
appearanceField appearance. Set to "toggle" to appear as a Material Toggle or to "checkbox" (or leave it undefined) to use a Checkbox appearance.material, mui
extraExtra feedback text. In the antd theme, this renders addtional help text below any validation messages.antd
feedbackableField feedback state. Some description would be great, huh?bootstrap3
gridField layout. Bootstrap grid layout style. Number is an equivalent of {sm: n}. Object is a {mode: size} object. Complete string is simply passed through.bootstrap3, bootstrap4, bootstrap5
helpHelp text. Some description would be great, huh?antd, bootstrap3, bootstrap4, bootstrap5
helpClassNameHelp block className. Some description would be great, huh?bootstrap3, bootstrap4, bootstrap5
inlineCheckbox inline state. In bootstrap themes, a label is rendered as a text but in inline mode, it's treated as a field label.bootstrap3, bootstrap4, bootstrap5
inputClassNameInput wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper.bootstrap3, bootstrap4, bootstrap5
inputRefSetting ref prop to a field won't work as desired, because you'll receive a field component rather than an HTML input. If you need an input ref, use this prop instead.All
labelBeforeLeft label. In bootstrap themes, label is rendered on the right side of a checkbox. This label is rendered above the field.bootstrap3, bootstrap4, bootstrap5
labelClassNameLabel className. A custom className for the field's label.bootstrap3, bootstrap4, bootstrap5
labelColField layout. The layout of label. You can set span and/or offset.antd
showInlineErrorField inline error. Some description would be great, huh?antd, bootstrap3, bootstrap4, bootstrap5, semantic
wrapClassNameField and sourroundings wrap className. Some description would be great, huh?bootstrap3, bootstrap4, bootstrap5
wrapperColField layout. The layout for input controls. Same as labelCol.antd
Props usage:
import { BoolField } from 'uniforms-unstyled';
import { useRef } from 'react'

const inputRef = useRef();

<BoolField
appearance="checkbox" // Renders a material-ui Checkbox
appearance="toggle" // Renders a material-ui Toggle
extra="Extra Feedback or Help"
feedbackable
grid="4" // 'col-4-sm' on label, 'col-8-sm' on input
grid="col-6-xl" // 'col-6-xl' on label, 'col-6-xl' on input
grid={3} // 'col-3-sm' on label, 'col-9-sm' on input
grid={{md: 5}} // 'col-5-md' on label, 'col-7-md' on input
help="Need help?"
helpClassName="a b c"
inline
inputClassName="a b c"
inputRef={inputRef}
labelBefore="Label"
labelClassName="a b c" // You can either specify them as a single string
labelClassName=[ 'a', 'b', 'c' ] // or as an array of strings
labelCol={{offset: 2}} // 'ant-col-offset-2' on label
labelCol={{span: 4}} // 'ant-col-4' on label
showInlineError
wrapClassName="a b c"
wrapperCol={{offset: 2}} // 'ant-col-offset-2' on field
wrapperCol={{span: 4}} // 'ant-col-4' on field
/>;

DateField

Props:
NameDescriptionAvailable in
extraExtra feedback text. In the antd theme, this renders addtional help text below any validation messages.antd
feedbackableField feedback state. Some description would be great, huh?bootstrap3
gridField layout. Bootstrap grid layout style. Number is an equivalent of {sm: n}. Object is a {mode: size} object. Complete string is simply passed through.bootstrap3, bootstrap4, bootstrap5
helpHelp text. Some description would be great, huh?antd, bootstrap3, bootstrap4, bootstrap5
helpClassNameHelp block className. Some description would be great, huh?bootstrap3, bootstrap4, bootstrap5
iconInput icon. Semantic inputs can have an icon. By default, it's placed on the right side - to place it on the left, use iconLeft prop instead.semantic
iconLeftSemantic inputs can have an icon. With this prop, it's placed on the left side - to place it on the right, use icon prop instead.semantic
iconPropsInput icon props. Semantic inputs can have an icon. These props are passed directly to the icon element.semantic
inputClassNameInput wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper.bootstrap3, bootstrap4, bootstrap5
inputRefSetting ref prop to a field won't work as desired, because you'll receive a field component rather than an HTML input. If you need an input ref, use this prop instead.All
labelClassNameLabel className. A custom className for the field's label.bootstrap3, bootstrap4, bootstrap5
labelColField layout. The layout of label. You can set span and/or offset.antd
labelPropsProps for the InputLabelmaterial, mui
maxMaximum value. Date object.All
minMinimal value. Date object.All
showInlineErrorField inline error. Some description would be great, huh?antd, bootstrap3, bootstrap4, bootstrap5, semantic
timeFormatDisplay time picker in ampm (12hr) format or 24hr format.material, mui
typeDisplay date and time or date only picker. Format value according to its typeAll except antd
wrapClassNameField and sourroundings wrap className. In SemanticUI theme, this class name is used on ui input wrapper, so you can pass classes like small, huge, inverted, transparent etc.bootstrap3, bootstrap4, bootstrap5, semantic
wrapperColField layout. The layout for input controls. Same as labelCol.antd
Props usage:
import { DateField } from 'uniforms-unstyled';
import { useRef } from 'react'

const inputRef = useRef();

<DateField
extra="Extra Feedback or Help"
feedbackable
grid="4" // 'col-4-sm' on label, 'col-8-sm' on input
grid="col-6-xl" // 'col-6-xl' on label, 'col-6-xl' on input
grid={3} // 'col-3-sm' on label, 'col-9-sm' on input
grid={{md: 5}} // 'col-5-md' on label, 'col-7-md' on input
help="Need help?"
helpClassName="a b c"
icon="user"
iconLeft="user"
iconProps={{onClick() {}}}
inputClassName="a b c"
inputRef={inputRef}
labelClassName="a b c" // You can either specify them as a single string
labelClassName=[ 'a', 'b', 'c' ] // or as an array of strings
labelCol={{offset: 2}} // 'ant-col-offset-2' on label
labelCol={{span: 4}} // 'ant-col-4' on label
labelProps={{shrink: true, disableAnimation: true}}
max={new Date(2100, 1, 1)}
min={new Date(2000, 1, 1)}
showInlineError
timeFormat="ampm"
wrapClassName="a b c"
wrapperCol={{offset: 2}} // 'ant-col-offset-2' on field
wrapperCol={{span: 4}} // 'ant-col-4' on field
/>;

ErrorField

Error message renderer.

Props:
NameDescription
childrenCustom content. By default, it will render a block with the error message (if any), but you can customize the content.
nameTarget field. This field error should be used.
Props usage:
import { ErrorField } from 'uniforms-unstyled';

<ErrorField children={children} name="field" />;

ErrorsField

Error messages renderer.

Props:
NameDescription
childrenCustom content. By default, it will render a block with the error messages (if any), but you can customize the content.
Props usage:
import { ErrorsField } from 'uniforms-unstyled';

<ErrorsField children={children} />;

HiddenField

Props:
NameDescription
nameField name. Used for identification. It should match your schema - if not, it will throw an error.
valueField value. This field has completely different semantics. When a value is set, then it's updating a current model instead of being passed to the field.
Props usage:
import { HiddenField } from 'uniforms-unstyled';

<HiddenField name="field" value={value} />;

ListAddField

Props:
NameDescriptionAvailable in
addIconIcon. By default, glyphicon is used.bootstrap3, bootstrap4, bootstrap5

Note: This is one of internal components of ListField.

Props usage:
import { ListAddField } from 'uniforms-unstyled';

<ListAddField addIcon={<MyAddIcon />} />;

ListDelField

Props:
NameDescriptionAvailable in
removeIconIcon. By default, glyphicon is used.bootstrap3, bootstrap4, bootstrap5

Note: This is one of internal components of ListField.

Props usage:
import { ListDelField } from 'uniforms-unstyled';

<ListDelField removeIcon={<MyRemoveIcon />} />;

ListField

Props:
NameDefaultDescriptionAvailable in
addIconglyphiconIcon. It's passed to the ListAddField.bootstrap3, bootstrap4, bootstrap5
initialCount-Initial items count. At least this amount of fields will be rendered at the beginning.All
itemProps-ListItemField props. These props are passed to the ListItemField.All
removeIconglyphiconIcon. It's passed to the ListDelField.bootstrap3, bootstrap4, bootstrap5
showInlineErrorField inline error. Some description would be great, huh?bootstrap3, bootstrap4, bootstrap5, semantic
Props usage:
import { ListField } from 'uniforms-unstyled';

<ListField
addIcon={<MyAddIcon />}
initialCount={5}
itemProps={
{
/* ... */
}
}
removeIcon={<MyRemoveIcon />}
showInlineError
/>;

ListItemField

NameDefaultDescriptionAvailable in
removeIconglyphiconIcon. It's passed to the ListDelField.bootstrap3, bootstrap4, bootstrap5

Note: This is one of internal components of ListField.

Props usage:
import { ListItemField } from 'uniforms-unstyled';

<ListItemField removeIcon={<MyRemoveIcon />} />;

LongTextField

A textarea.

Props:
NameDescriptionAvailable in
extraExtra feedback text. In the antd theme, this renders addtional help text below any validation messages.antd
gridField layout. Bootstrap grid layout style. Number is an equivalent of {sm: n}. Object is a {mode: size} object. Complete string is simply passed through.bootstrap3, bootstrap4, bootstrap5
helpHelp text. Some description would be great, huh?antd, bootstrap3, bootstrap4, bootstrap5
helpClassNameHelp block className. Some description would be great, huh?bootstrap3, bootstrap4, bootstrap5
iconInput icon. Semantic inputs can have an icon. By default, it's placed on the right side - to place it on the left, use iconLeft prop instead.semantic
iconLeftSemantic inputs can have an icon. With this prop, it's placed on the left side - to place it on the right, use icon prop instead.semantic
iconPropsInput icon props. Semantic inputs can have an icon. These props are passed directly to the icon element.semantic
inputClassNameInput wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper.bootstrap3, bootstrap4, bootstrap5
inlineCheckbox inline state. In bootstrap themes, a label is rendered as a text but in inline mode, it's treated as a field label.bootstrap3, bootstrap4
inputRefSetting ref prop to a field won't work as desired, because you'll receive a field component rather than an HTML input. If you need an input ref, use this prop instead.All
labelBeforeLeft label. In bootstrap themes, label is rendered on the right side of a checkbox. This label is rendered above the field.bootstrap3, bootstrap4, bootstrap5
labelClassNameLabel className. A custom className for the field's label.bootstrap3, bootstrap4, bootstrap5
labelColField layout. The layout of label. You can set span and/or offset.antd
showInlineErrorField inline error. Some description would be great, huh?antd, bootstrap3, bootstrap4, bootstrap5, semantic
wrapperColField layout. The layout for input controls. Same as labelCol.antd
wrapClassNameField and sourroundings wrap className. Some description would be great, huh?bootstrap3, bootstrap4, bootstrap5
Props usage:
import { LongTextField } from 'uniforms-unstyled';
import { useRef } from 'react'

const inputRef = useRef();

<LongTextField
extra="Extra Feedback or Help"
grid="4" // 'col-4-sm' on label, 'col-8-sm' on input
grid="col-6-xl" // 'col-6-xl' on label, 'col-6-xl' on input
grid={3} // 'col-3-sm' on label, 'col-9-sm' on input
grid={{md: 5}} // 'col-5-md' on label, 'col-7-md' on input
help="Need help?"
helpClassName="a b c"
icon="user"
iconLeft="user"
iconProps={{onClick() {}}}
inputClassName="a b c"
inputRef={inputRef}
labelClassName="a b c" // You can either specify them as a single string
labelClassName=[ 'a', 'b', 'c' ] // or as an array of strings
labelCol={{offset: 2}} // 'ant-col-offset-2' on label
labelCol={{span: 4}} // 'ant-col-4' on label
showInlineError
wrapClassName="a b c"
wrapperCol={{offset: 2}} // 'ant-col-offset-2' on field
wrapperCol={{span: 4}} // 'ant-col-4' on field
/>;

NestField

Props:
NameDescriptionAvailable in
fieldsArray of rendered fields. If no custom content provided, only those fields are rendered. By default, All of nested fields are rendered.All
groupedAdd / remove "grouped" class from the field. In Semantic, fields can be grouped using this class. By default, this class is added to the NestField.semantic
showInlineErrorField inline error. Some description would be great, huh?antd, bootstrap3, bootstrap4, bootstrap5, semantic
Props usage:
import { NestField } from 'uniforms-unstyled';

<NestField fields={['fieldA', 'fieldB' /* ... */]} grouped showInlineError />;

NumField

A numeric input field.

Props:
NameDescriptionAvailable in
decimalDecimal mode. This will change value step from 1 to 0.01.All
extraExtra feedback text. In the antd theme, this renders addtional help text below any validation messages.antd
gridField layout. Bootstrap grid layout style. Number is an equivalent of {sm: n}. Object is a {mode: size} object. Complete string is simply passed through.bootstrap3, bootstrap4, bootstrap5
helpHelp text. Some description would be great, huh?antd, bootstrap3, bootstrap4, bootstrap5
helpClassNameHelp block className. Some description would be great, huh?bootstrap3, bootstrap4, bootstrap5
iconInput icon. Semantic inputs can have an icon. By default, it's placed on the right side - to place it on the left, use iconLeft prop instead.semantic
iconLeftSemantic inputs can have an icon. With this prop, it's placed on the left side - to place it on the right, use icon prop instead.semantic
iconPropsInput icon props. Semantic inputs can have an icon. These props are passed directly to the icon element.semantic
inputClassNameInput wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper.bootstrap3, bootstrap4, bootstrap5
inlineCheckbox inline state. In bootstrap themes, a label is rendered as a text but in inline mode, it's treated as a field label.bootstrap3, bootstrap4
inputRefSetting ref prop to a field won't work as desired, because you'll receive a field component rather than an HTML input. If you need an input ref, use this prop instead.All
labelBeforeLeft label. In bootstrap themes, label is rendered on the right side of a checkbox. This label is rendered above the field.bootstrap3, bootstrap4
labelClassNameLabel className. A custom className for the field's label.bootstrap3, bootstrap4, bootstrap5
labelColField layout. The layout of label. You can set span and/or offset.antd
maxMaximum value. Date object.All
minMinimal value. Date object.All
showInlineErrorField inline error. Some description would be great, huh?antd, bootstrap3, bootstrap4, bootstrap5, semantic
stepInput step.All
wrapperColField layout. The layout for input controls. Same as labelCol.antd
wrapClassNameField and sourroundings wrap className. Some description would be great, huh?bootstrap3, bootstrap4, bootstrap5
Props usage:
import { NumField } from 'uniforms-unstyled';
import { useRef } from 'react'

const inputRef = useRef();

<NumField
decimal
extra="Extra Feedback or Help"
grid="4" // 'col-4-sm' on label, 'col-8-sm' on input
grid="col-6-xl" // 'col-6-xl' on label, 'col-6-xl' on input
grid={3} // 'col-3-sm' on label, 'col-9-sm' on input
grid={{md: 5}} // 'col-5-md' on label, 'col-7-md' on input
help="Need help?"
helpClassName="a b c"
icon="user"
iconLeft="user"
iconProps={{onClick() {}}}
inputClassName="a b c"
inputRef={inputRef}
labelClassName="a b c" // You can either specify them as a single string
labelClassName=[ 'a', 'b', 'c' ] // or as an array of strings
labelCol={{offset: 2}} // 'ant-col-offset-2' on label
labelCol={{span: 4}} // 'ant-col-4' on label
max={100}
min={10}
showInlineError
step={5}
wrapClassName="a b c"
wrapperCol={{offset: 2}} // 'ant-col-offset-2' on field
wrapperCol={{span: 4}} // 'ant-col-4' on field
/>;

RadioField

Props:
NameDescriptionAvailable in
inlineCheckbox inline state. In bootstrap themes, a label is rendered as a text but in inline mode, it's treated as a field label.bootstrap3, bootstrap4, bootstrap5
optionsOptions. It can be either an object or an array (or a function, that returns it).All
labelColField layout. The layout of label. You can set span and/or offset.antd
wrapperColField layout. The layout for input controls. Same as labelCol.antd
inputClassNameInput wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper.bootstrap3, bootstrap4, bootstrap5
labelClassNameLabel className. A custom className for the field's label.bootstrap3, bootstrap4, bootstrap5
showInlineErrorField inline error. Some description would be great, huh?antd, bootstrap3, bootstrap4, bootstrap5, semantic
Props usage:
import { RadioField } from 'uniforms-unstyled';

<RadioField
inline
inputClassName="a b c"
labelClassName="a b c" // You can either specify them as a single string
labelClassName=[ 'a', 'b', 'c' ] // or as an array of strings
labelCol={{offset: 2}} // 'ant-col-offset-2' on label
labelCol={{span: 4}} // 'ant-col-4' on label
options={[{ label: 'A', value: 'a' }, { label: 'B', value: 'b' }, /* ... */]}
showInlineError
wrapperCol={{offset: 2}} // 'ant-col-offset-2' on field
wrapperCol={{span: 4}} // 'ant-col-4' on field
/>;

SelectField

Props:
NameDescriptionAvailable in
appearanceField appearance. Set to "toggle" to appear as a Material Toggle or to "checkbox" (or leave it undefined) to use a Checkbox appearance.material, mui
checkboxesTurn on checkbox/radio mode. It's always true in multiple (i.e. fieldType === Array) mode.All
disableItemDisable items (options) based on a given predicate.All
extraExtra feedback text. In the antd theme, this renders additional help text below any validation messages.antd
helpHelp text. Some description would be great, huh?antd, bootstrap3, bootstrap4, bootstrap5
helpClassNameHelp block className. Some description would be great, huh?bootstrap3, bootstrap4, bootstrap5
inlineCheckbox inline state. In bootstrap themes, a label is rendered as a text but in inline mode, it's treated as a field label.bootstrap3, bootstrap4, bootstrap5
inputClassNameInput wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper.bootstrap3, bootstrap4, bootstrap5
inputRefSetting ref prop to a field won't work as desired, because you'll receive a field component rather than an HTML input. If you need an input ref, use this prop instead.All
labelClassNameLabel className. A custom className for the field's label.bootstrap3, bootstrap4, bootstrap5
labelColField layout. The layout of label. You can set span and/or offset.antd
labelPropsProps for the InputLabelmaterial, mui
optionsOptions. It can be either an object or an array (or a function, that returns it).All
showInlineErrorField inline error. Some description would be great, huh?antd, bootstrap3, bootstrap4, bootstrap5, semantic
wrapperColField layout. The layout for input controls. Same as labelCol.antd
wrapClassNameField and surroundings wrap className. Some description would be great, huh?bootstrap3, bootstrap4, bootstrap5
textFieldPropsProps injected directly to TextField ( valid only for non-checkbox SelectField ).material, mui
Props usage:
import { SelectField } from 'uniforms-unstyled';
import { useRef } from 'react'

const inputRef = useRef();

<SelectField
checkboxes
disableItem={value => value % 2}
extra="Extra Feedback or Help"
help="Need help?"
helpClassName="a b c"
inline
inputClassName="a b c"
inputRef={inputRef}
labelClassName="a b c" // You can either specify them as a single string
labelClassName=[ 'a', 'b', 'c' ] // or as an array of strings
labelCol={{offset: 2}} // 'ant-col-offset-2' on label
labelCol={{span: 4}} // 'ant-col-4' on label
labelProps={{shrink: true, disableAnimation: true}}
options={[{ label: 'A', value: 'a' }, { label: 'B', value: 'b' }, /* ... */]}
showInlineError
wrapperCol={{offset: 2}} // 'ant-col-offset-2' on field
wrapperCol={{span: 4}} // 'ant-col-4' on field
/>;

SubmitField

Props:
NameDescriptionAvailable in
inputClassNameInput wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper.bootstrap3, bootstrap4, bootstrap5
inputRefSetting ref prop to a field won't work as desired, because you'll receive a field component rather than an HTML input. If you need an input ref, use this prop instead.All
Props usage:
import { SubmitField } from 'uniforms-unstyled';
import { useRef } from 'react';

const inputRef = useRef();

<SubmitField inputClassName="a b c" inputRef={inputRef} />;

TextField

Props:
NameDescriptionAvailable in
extraExtra feedback text. In the antd theme, this renders addtional help text below any validation messages.antd
gridField layout. Bootstrap grid layout style. Number is an equivalent of {sm: n}. Object is a {mode: size} object. Complete string is simply passed through.bootstrap3, bootstrap4, bootstrap5
helpHelp text. Some description would be great, huh?antd, bootstrap3, bootstrap4, bootstrap5
helpClassNameHelp block className. Some description would be great, huh?bootstrap3, bootstrap4, bootstrap5
iconInput icon. Semantic inputs can have an icon. By default, it's placed on the right side - to place it on the left, use iconLeft prop instead.semantic
iconLeftSemantic inputs can have an icon. With this prop, it's placed on the left side - to place it on the right, use icon prop instead.semantic
iconPropsInput icon props. Semantic inputs can have an icon. These props are passed directly to the icon element.semantic
inputClassNameInput wrapper class name. In bootstrap themes, passed className is used on field block. This is used on direct field wrapper.bootstrap3, bootstrap4, bootstrap5
inputRefSetting ref prop to a field won't work as desired, because you'll receive a field component rather than an HTML input. If you need an input ref, use this prop instead.All
labelClassNameLabel className. A custom className for the field's label.bootstrap3, bootstrap4, bootstrap5
labelColField layout. The layout of label. You can set span and/or offset.antd
showInlineErrorField inline error. Some description would be great, huh?antd, bootstrap3, bootstrap4, bootstrap5, semantic
typeInput type. HTML compatible input type like password. Default is text.All
wrapperColField layout. The layout for input controls. Same as labelCol.antd
wrapClassNameField and sourroundings wrap className. Some description would be great, huh?bootstrap3, bootstrap4, bootstrap5
Props usage:
import { TextField } from 'uniforms-unstyled';
import { useRef } from 'react'

const inputRef = useRef();

<TextField
extra="Extra Feedback or Help"
grid="4" // 'col-4-sm' on label, 'col-8-sm' on input
grid="col-6-xl" // 'col-6-xl' on label, 'col-6-xl' on input
grid={3} // 'col-3-sm' on label, 'col-9-sm' on input
grid={{md: 5}} // 'col-5-md' on label, 'col-7-md' on input
help="Need help?"
helpClassName="a b c"
icon="user"
iconLeft="user"
iconProps={{onClick() {}}}
inputClassName="a b c"
inputRef={inputRef}
labelClassName="a b c" // You can either specify them as a single string
labelClassName=[ 'a', 'b', 'c' ] // or as an array of strings
labelCol={{offset: 2}} // 'ant-col-offset-2' on label
labelCol={{span: 4}} // 'ant-col-4' on label
showInlineError
type="password" // Input type. HTML compatible input type like password. Default is text.
wrapClassName="a b c"
wrapperCol={{offset: 2}} // 'ant-col-offset-2' on field
wrapperCol={{span: 4}} // 'ant-col-4' on field
/>;

Common props

NameDefaultDescription
disabledfalseField disabled state. It's passed directly to the field, but it propagates same as the label.
labeltrueField label. This prop has three modes. If you pass a string, then it will be used as a label. If you pass a null, then it won't have a label, but nested fields will have default labels. If you pass a non-null falsy value, it won't have a label and nested fields won't have labels too.
name-Field name. Used for identification. It should match your schema - if not, it will throw an error.
placeholderfalseField placeholder. If set to true, then a label will be used. Otherwise, it's handled like a label (including propagation).
readOnlyfalseField read-only state. It's passed directly to the field, but it propagates same as the label.
Props usage:
<SomeField disabled={false} label name="field" placeholder={false} />

Props propagation

Few props propagate in a very special way. These are disabled, label, placeholder, and readOnly.

Example:

<TextField />                    // default label | no      placeholder
<TextField label="Text" /> // custom label | no placeholder
<TextField label={false} /> // no label | no placeholder
<TextField placeholder /> // default label | default placeholder
<TextField placeholder="Text" /> // default label | custom placeholder

<NestField label={null}> // null = no label but the children have their labels
<TextField />
</NestField>

<NestField label={false}> // false = no label and the children have no labels
<TextField />
</NestField>

<ListField name="authors" disabled> // Additions are disabled...
<ListItemField name="$" disabled> // ...deletion too
<NestField disabled={false} name=""> // ...but editing is not.
<TextField name="name" />
<NumField name="age" />
</NestField>
</ListItemField>
</ListField>

Note: disabled, label, placeholder, and readOnly are casted to Boolean before being passed to nested fields.

+ + + + \ No newline at end of file diff --git a/docs/api-forms/index.html b/docs/api-forms/index.html new file mode 100644 index 000000000..5508128da --- /dev/null +++ b/docs/api-forms/index.html @@ -0,0 +1,41 @@ + + + + + +Forms | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Forms

Forms components

Most of the time you'll be using either AutoForm or ValidatedForm, but there are also other form components (rather low-level ones) with different capabilities.

ComponentSelf-generated?Self-managed?Self-validated?
AutoForm✔️✔️✔️
ValidatedQuickForm✔️✖️✔️
ValidatedForm✖️✖️✔️
QuickForm✔️✖️✖️
BaseForm✖️✖️✖️

AutoForm

AutoForm extends ValidatedQuickForm with state management. +It is the most user-friendly and commonly used form. +It's self-generated so if you provide a schema, the fields will be automatically rendered. +These fields will be also validated. +By default, the validation will take place onSubmit, and onChange after the first submission.

Props:
NameDescription
onChangeModelLike onChange but for the whole model. Triggered just after onChange but with the next model instead of (key, value) pair.

Note: All ValidatedQuickForm props are also accepted and all methods are available. +In other words, that means that AutoForm receives all props listed on this page.

Props usage:
import { AutoForm } from 'uniforms'; // Or from the theme package.

<AutoForm onChangeModel={model => console.log(model)} />;

ValidatedQuickForm

This form combines both QuickForm and ValidatedForm features. +It is not self-managed, however, it will automatically generate fields based on the provided schema and validate them.

Note: All QuickForm props are also accepted and all methods are available.
+Note: All ValidatedForm props are also accepted and all methods are available.

ValidatedForm

(It's rather an internal form, but it's still exported.)

It's based on BaseForm and extends its functionality by enabling automatic form validation. +Its purpose is providing validation functions. +It's not autogenerated, so if you want to see any fields rendered, you have to manually add them. +ValidatedForm is not self-managed, so you won't be able to type anything until there is no onChange handler, +however, there will be validation checks.

Props:
NameDescription
onValidateAdditional asynchronous validation. Schema validation has to be sync, so this is the only way to achieve async validation.
validateValidation mode. By default, the form will start to validate from the time of the first submit and then revalidate on every change. It's onChangeAfterSubmit. There are also onChange and onSubmit modes, but those are quite self-explanatory.
validatorValidator options. It's passed to getValidator of your schema bridge. It really depends on your schema.

Note: All BaseForm props are also accepted and all methods are available.

Props usage:
import { ValidatedForm } from 'uniforms'; // Or from the theme package.
import { useRef } from 'react';

const formRef = useRef();

const formAction = () => {
// Reset form.
// It will reset changed state, model state in AutoForm, validation
// state in ValidatedForm and rerender.
formRef.reset();

// Trigger form change.
// It's a programmatic equivalent of a change event.
formRef.change(key, value);

// Submit form.
// It's a programmatic equivalent of a submit event. Returns a promise,
// which will either resolve with submitted form or reject with
// validation error in ValidatedForm.
formRef.submit();
};

<ValidatedForm
onValidate={async (model, error) => {
// You can either ignore validation error...
if (omitValidation(model)) {
return null;
}

// ...or any additional validation if an error is already there...
if (isSomeSpecialCase(error)) {
return MyAPI.checkOtherCondition(model);
}

// ...or feed it with another error.
return MyAPI.validate(model);
}}
validate="onChangeAfterSubmit"
validator={{ clean: true }}
ref={formRef}
/>;

QuickForm

(It's rather an internal form, but it's still exported.)

It's based on BaseForm and extends its functionality by enabling automatic form generation. +If you provide a schema, the fields will be automatically rendered. +However, QuickForm is not self-managed, so you won't be able to type anything until there is no onChange handler. +You can customize which AutoField should be used with AutoField.componentDetectorContext.

Props:
NameDescription
errorsFieldCustom ErrorsField. It should be anything that will pass through React.createElement.
submitFieldCustom SubmitField. It should be anything that will pass through React.createElement.

Note: All BaseForm props are also accepted and all methods are available.

Props usage:
import { QuickForm } from 'uniforms'; // Or from the theme package.

<QuickForm errorsField={CustomErrorsField} submitField={CustomSubmitField} />;

BaseForm

(It's rather an internal form, but it's still exported.)

It's the very basic form & foundation for the other forms. +It's not autogenerated, so if you want to see any fields rendered, you have to manually add them. +However, BaseForm is not self-managed, so you won't be able to type anything until there is no onChange handler.

Props:
NameDescription
autosaveDelayAutosave delay. Set 0 for an instant autosave.
autosaveEnable autosave. Every change triggers onSubmit.
disabledDefault disabled prop for all fields. By default it's false - set it to true to disable the whole form.
errorValidation error. Current validation state. It should be either compatible with your schema or an Error object.
gridBootstrap grid layout style. Passing a number is an equivalent of {sm: n}. Object is a {mode: size} object. Complete string is simply passed through. Available in: bootstrap3, bootstrap4.
modelForm model. An object with {field: value} structure. It doesn't matter if it has a prototype or not, but keep in mind that in onSubmit or in onChangeModel you'll receive a plain object. If you treat form as an input, then this is a value.
modelTransformModel transform. Function transforming one model into another. It's used in a few situations (modes) described below. Do not mutate a given model!
onChangeField change action. It receives two arguments: key and value, where the key is a dot-separated path to the changed field and value is a requested value.
onSubmitSubmit action. When the form is submitted manually or by an HTML5 event, then it's called with the current model. Note: use Promise to return values and errors - synchronous return and throw are disallowed.
readOnlyDefault readOnly prop for all fields. By default it's false - set it to true to make the whole form read-only.
schemaForm schema. It's used for form generation in QuickForm and validation in ValidatedForm.
showInlineErrorDefault showInlineError prop for all fields. By default it's false - set it to true to enable inline errors for the whole form. Available in: antd, bootstrap3, bootstrap4, semantic.
Props usage:
import { BaseForm } from 'uniforms'; // Or from the theme package.
import { useRef } from 'react';

const formRef = useRef();

const formAction = () => {
// Reset form.
// It will reset changed state, model state in AutoForm, validation
// state in ValidatedForm and rerender.
formRef.reset();

// Trigger form change.
// It's a programmatic equivalent of a change event.
formRef.change(key, value);

// Submit form.
// It's a programmatic equivalent of a submit event. Returns a promise,
// which will either resolve with submitted form or reject with
// validation error in ValidatedForm.
formRef.submit();
};

<BaseForm
autosaveDelay={0}
autosave={false}
disabled={false}
error={new Error('Nope.')}
grid={3} // 'col-3-sm' on label, 'col-9-sm' on input
grid="4" // 'col-4-sm' on label, 'col-8-sm' on input
grid={{ md: 5 }} // 'col-5-md' on label, 'col-7-md' on input
grid="col-6-xl" // 'col-6-xl' on label, 'col-6-xl' on input
model={{ fieldA: 1 }}
modelTransform={(mode, model) => {
// This model will be passed to the fields.
if (mode === 'form') {
/* ... */
}

// This model will be submitted.
if (mode === 'submit') {
/* ... */
}

// This model will be validated.
if (mode === 'validate') {
/* ... */
}

// Otherwise, return unaltered model.
return model;
}}
onChange={(key, value) => console.log(key, value)}
onSubmit={model => db.saveThatReturnsPromiseOrNothing(model)}
readOnly={false}
schema={myFormSchema}
showInlineError
ref={formRef}
/>;

Form features

Asynchronous validation

AutoForm and ValidatedForm both accept an onValidate prop. It can be used to create an asynchronous validation:

The onValidate should return null if the model is valid, otherwise return any error value. The error can be either Promise for asynchronous validation or any other value for synchronous validation (https://github.com/vazco/uniforms/blob/d557f90e6807e34c1ebb9803d44fd799174175f8/packages/uniforms/src/ValidatedForm.tsx#L118-L142).

const MyAPI = {
checkOtherCondition(model): Error | null {
if (model.age < 18) {
return new Error('Too young')
}
return null
}

async validate(model): Error | null {
const result = await fetch('...', { body: JSON.stringify(model) })
const { error } = await result.json()
return error
}
}

const onValidate = async (model, error) => {
// You can either ignore validation error...
if (omitValidation(model)) {
return null;
}

// ...or any additional validation if an error is already there...
if (isSomeSpecialCase(error)) {
return MyAPI.checkOtherCondition(model);
}

// ...or feed it with another error.
return MyAPI.validate(model);
};

// Later...

<ValidatedForm {...props} onValidate={onValidate} />;

Autosave

Every form has autosave functionality. If you set an autosave prop, then every change will trigger a submit. There's also an autosaveDelay prop - a minimum time between saves in milliseconds (default: 0).

Example:

<AutoForm
autosave
autosaveDelay={5000} // 5 seconds
schema={schema}
onSubmit={onSubmit}
/>

Methods

You can use React ref prop to manually access form methods. Example usage:

import { useRef } from 'react';

const MyForm = ({ schema, onSubmit }) => {
const formRef = useRef();

return (
<section>
<AutoForm ref={formRef} schema={schema} onSubmit={onSubmit} />
<small onClick={() => formRef.reset()}>Reset</small>
<small onClick={() => formRef.submit()}>Submit</small>
</section>
);
};

You can do the same by using the useForm hook and the formRef property.

function FormControls() {
const { formRef } = useForm();

return (
<>
<button onClick={() => formRef.reset()}>Reset</button>
<button onClick={() => formRef.submit()}>Submit</button>
</>
);
}

function App() {
return (
<AutoForm>
<FormControls />
</AutoForm>
);
}

All available methods:

change(key, value)

Triggers a form change. It's a programmatic equivalent of a change event.

reset()

Resets a form. It will also reset changed state, model state (only in AutoForm), validation state (only in ValidatedForm) and trigger a rerender.

submit()

Submits a form. It's a programmatic equivalent of a submit event. Returns a promise, which will either resolve with a submitted model or reject with validation error in ValidatedForm.

validate()

(added in ValidatedForm)

Validates a form with the current model. Returns a Promise, which rejects with a validation error or resolves without any value. Note, that it resolves/rejects after the component is rerendered.

validate(key, value)

(added in ValidatedForm)

Validates a form with key set to value. You can use it to check, if a given value will pass the validation or not. Returns validation Promise, as described above.

validateModel(model)

(added in ValidatedForm)

Validates a form with the given model. Returns validation Promise, as described above.

Change reactions

If you want to make one field to influence others, simply extend AutoForm and override onChange method.

Example:

class ChainForm extends AutoForm {
onChange(key, value) {
if (key === 'key_to_intercept') return;
if (key === 'key_to_translate') return super.onChange('another_key', value);
if (key === 'key_to_mutate') {
super.onChange('another_key1', value * 2);
super.onChange('another_key2', value / 2);
return;
}

super.onChange(key, value);
}
}

It can be easily applied multiple times to make your forms even more reusable.

Example:

const withMultipliedField = (fieldA, fieldB, Form) =>
class withMultipliedFieldForm extends Form {
onChange(key, value) {
// Multiply fieldA
if (key === fieldA) super.onChange(fieldB, value + value);

// Pass every change
super.onChange(key, value);
}
};

Model transformations

If you need to transform model before it will be validated, submitted or passed down to the fields, there's a modelTransform prop, which should be used in those use cases.

Example:

<AutoForm
// Do not mutate given model!
modelTransform={(mode, model) => {
// This model will be passed to the fields.
if (mode === 'form') {
/* ... */
}

// This model will be submitted.
if (mode === 'submit') {
/* ... */
}

// This model will be validated.
if (mode === 'validate') {
/* ... */
}

// Otherwise, return unaltered model.
return model;
}}
onSubmit={onSubmit}
schema={schema}
/>

Validation options and modes

Any form can be validated in one those three styles:

  • onChange +Validate on every change.

  • onChangeAfterSubmit (default) +Validate on every change, but only after first submit.

  • onSubmit +Validate on every submit.

If your schema validator accepts any options, those can be passed in validator prop.

Example:

<AutoForm
validate="onChange"
validator={validatorOptions}
schema={schema}
onSubmit={onSubmit}
/>
+ + + + \ No newline at end of file diff --git a/docs/api-helpers/index.html b/docs/api-helpers/index.html new file mode 100644 index 000000000..2cd7c2caa --- /dev/null +++ b/docs/api-helpers/index.html @@ -0,0 +1,26 @@ + + + + + +Helpers | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Helpers

connectField

Provides form management related props. The connectField helper is a component wrapper (higher order component, HOC), that provides various props related to the form management. It also adds the Field suffix to the name of the wrapped component.

The table below lists all of the guaranteed props that will be passed to the wrapped component:

NameTypeDescription
changedbooleanHas field changed?
disabledbooleanIs field disabled?
errorobjectField scoped part of validation error.
errorMessagestringField scoped validation error message.
fieldobjectField definition from schema.
fieldsarrayOf(string)Subfields names.
fieldTypefuncField type.
idstringField id - given or random.
labelstringField label.
namestringField name.
onChangefunc(value, [name])Change field value.
placeholderstringField placeholder.
readOnlybooleanIs field read-only?
showInlineErrorbooleanShow inline error?
valueanyField value.

The connectField function accepts two arguments: the first one is a component and the second one is an options object.

function Example(props) {
/* ... */
}

const ExampleField = connectField(Example, options);

The table below lists all available options:

NameTypeDescription
initialValuebooleanInitial value check. If true, then after the first render the default value is set as value if no value is provided (undefined).
kind'leaf' or 'node'See Field kinds.

Field kinds

Every field is either a leaf or node field. In the future, we could introduce new kinds to enable even more optimizations.

  • Leaf fields cannot have subfields. This allows us to perform some optimizations, like skipping the extra Provider from connectField, effectively reducing the overhead down to a single useField call.
    • It includes all input fields, like NumField, SelectField or TextField.
  • Node fields can have subfields. Fields of the leaf kind cannot have subfields.
    • It includes all combined and layout fields, like ListField or NestField.

If you are not sure which one to use, do not use the kind option at all - it'll default to the safest option (right now it's node).

Props merging order

The resulting props of a field are a merge of the props that uniforms provide, the ones coming from the bridge (schema) and finally the actual field props. For the exact ordering, please refer to the source of useField hook. Overall, it looks as follows:

  1. uniforms props (e.g., changed, onChange, value).
  2. uniforms state (as defined in context data).
  3. bridge props (depending on the schema)
  4. field props (only when rendered directly)

That's important, as using empty values in the schema or field props, like undefined, will be merged as well. See #1094 for more context as well as an example of a potential pitfall.

changedKeys

Returns an array of changed keys between valueA and valueB, where root is the root key. For examples see changedKeys tests.

import { changedKeys } from 'uniforms';

changedKeys('a', { b: 1, c: 2 }, { b: 1 }); // ['a', 'a.c']

filterDOMProps

Removes all uniforms-related props, registered with filterDOMProps.register. Use it in all places where you'd like to pass all unrelated props down and useField or connectField provide you with the props.

import { filterDOMProps } from 'uniforms';

const filteredProps = filterDOMProps(props);

Custom props registration

It's often the case that your custom components will have a bunch of known properties, like locale or userType. To ease the process of using them across the project, you can register them to make filterDOMProps remove them as well. For example, SimpleSchemaBridge registers all of the SimpleSchema-specific options.

import { filterDOMProps } from 'uniforms';

filterDOMProps({ example: 42 }); // { example: 42 }
filterDOMProps.registered.includes('example'); // false
filterDOMProps.register('example');
filterDOMProps.registered.includes('example'); // true
filterDOMProps({ example: 42 }); // {}

As filterDOMProps is fully typed, if you'd like to make it work with TypeScript, you have to extend the FilterDOMProps interface as well.

declare module 'uniforms' {
interface FilterDOMProps {
propA: never;
propB: never;
}
}

filterDOMProps.register('propA', 'propB');

joinName

Safely joins partial field names. +If you create a custom field with subfields, do use joinName instead of manually concatenating them. +It ensures that the name will be correctly escaped if needed.

import { joinName } from 'uniforms';

joinName('array', 1, 'field'); // 'array.1.field'
joinName('object', 'nested.property'); // 'object.nested.property'

If the first argument is null, then it returns an array of escaped parts.

import { joinName } from 'uniforms';

joinName(null, 'array', 1, 'field'); // ['array', '1', 'field']
joinName(null, 'object', 'nested.property'); // ['object', 'nested', 'property']

If the field name contains a dot (.) or a bracket ([ or ]), it has to be escaped with ["..."]. +If any of these characters is not escaped, joinName will not throw an error but its behavior is not specified. +The escape of any other name part will be stripped.

joinName(null, 'object["with.dot"].field'); // ['object', '["with.dot"]', 'field']
joinName('object["with.dot"].field'); // 'object["with.dot"].field'

joinName(null, 'this["is"].safe'); // ['this', 'is', 'safe']
joinName('this["is"].safe'); // 'this.is.safe'

For more examples check joinName tests.

randomIds

Generates random ID, based on given prefix. Use it, if you want to have random but deterministic strings. If no prefix is provided, a unique uniforms-X prefix will be used generated.

import { randomIds } from 'uniforms';

const randomId1 = randomIds();
randomId1(); // uniforms-0000-0000
randomId1(); // uniforms-0000-0001
randomId1(); // uniforms-0000-0002

const randomId2 = randomIds();
randomId2(); // uniforms-0001-0000
randomId2(); // uniforms-0001-0001
randomId2(); // uniforms-0001-0002

const randomId3 = randomIds('prefix');
randomId3(); // prefix-0000
randomId3(); // prefix-0001
randomId3(); // prefix-0002

useForm

A direct way of accessing the context data:

import { useForm } from 'uniforms';

function Example() {
const context = useForm();
}

useField

A hook version of connectField. It receives three arguments: field name (string), field props (object), and optional options.

function Example(props) {
const [fieldProps, context] = useField(props.name, props, options);
return <input {...filterDOMProps(fieldProps)} />;
}

The table below lists all available options:

NameTypeDefaultDescription
absoluteNamebooleanfalseWhether the field name should be treated as a top-level one, ignoring parent fields.
initialValuebooleantrueInitial value check. If true, then after the first render the default value is set as value if no value is provided (undefined).

Using useField allows you to create components that combine values of multiple fields:

import { useField } from 'uniforms';

function ArePasswordsEqual() {
const [{ value: passwordA }] = useField('passwordA', {});
const [{ value: passwordB }] = useField('passwordB', {});
const areEqual = passwordA === passwordB;
return <div>{`Passwords are ${areEqual ? 'equal' : 'not equal'}`}</div>;
}
+ + + + \ No newline at end of file diff --git a/docs/compare-matrix-landing/index.html b/docs/compare-matrix-landing/index.html new file mode 100644 index 000000000..b5f831e51 --- /dev/null +++ b/docs/compare-matrix-landing/index.html @@ -0,0 +1,22 @@ + + + + + +compare-matrix-landing | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

compare-matrix-landing

FeatureuniformsFormikredux-formReact Final Formreact-hook-form
Automatic form layoutsupportedunsupportedunsupportedunsupportedunsupported
Manual state managementsupportedunsupportedsupportedunsupportedsupported
Manually trigger validationsupportedsupportedunsupportedunsupportedsupported
AntD, Bootstrap 3, Bootstrap 4, Bootstrap 5, Material, MUI, Semantic UI themessupportedunsupportedunsupportedunsupportedunsupported
JSON, GraphQL, SimpleSchema, Zod and custom schema supportsupportedunsupportedunsupportedunsupportedunsupported
Field level validationunsupportedsupportedsupportedsupportedsupported
+ + + + \ No newline at end of file diff --git a/docs/compare-matrix/index.html b/docs/compare-matrix/index.html new file mode 100644 index 000000000..8bc5cda65 --- /dev/null +++ b/docs/compare-matrix/index.html @@ -0,0 +1,22 @@ + + + + + +Comparison matrix | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Comparison matrix

FeatureuniformsFormikredux-formReact Final Formreact-hook-formreact-jsonschema-form
Synchronous validation✔️✔️✔️✔️✔️✔️
Asynchronous validation✔️✔️✔️✔️✔️✔️1
Field level validation✖️✔️✔️✔️✔️✖️
Manual form layout✔️✔️✔️✔️✔️✖️
Automatic form layout✔️✖️✖️✖️✖️✔️
Manual state management mode✔️✖️✔️✖️✔️✔️
Automatic state management mode✔️✔️✔️✔️✔️✔️
Manually trigger change✔️✔️✔️✔️✔️✔️
Manually trigger reset✔️✔️✔️✖️✔️✔️
Manually trigger validation✔️✔️✖️✖️✔️✔️
Built in focus state management✖️✔️✔️✔️✔️✔️
Ant Design theme✔️✖️✖️✖️✖️✔️
Bootstrap 3 theme✔️✖️✖️✖️✖️✔️
Bootstrap 4 theme✔️✖️✖️✖️✖️✔️
Bootstrap 5 theme✔️✖️✖️✖️✖️✖️
Chakra UI theme✖️✔️✔️✔️✖️✔️
Fluent UI theme✖️✔️✔️✔️✖️✔️
Semantic UI theme✔️✖️✖️✖️✖️✔️
Material theme✔️✖️✖️✖️✖️✔️
MUI theme✔️✖️✖️✖️✖️✔️
Your custom theme✔️✔️✔️✔️✖️✔️
JSON Schema support✔️✖️✖️✖️✖️✔️
GraphQL schema support✔️✖️✖️✖️✖️✖️
SimpleSchema support✔️✖️✖️✖️✖️✖️
Zod schema support✔️✖️✖️✖️✖️✖️
Your custom schema support✔️✔️✔️✔️✖️✖️

Feature descriptions

Synchronous validation

This type of validation checks user input immediately as it is entered in a form field.

Asynchronous validation

This type of validation checks user input after it has been submitted.

Field-level validation

Refers to the process of validating individual form fields against predefined rules or requirements.

Manual form layout

Allows the structure of form elements to be defined manually.

Automatic form layout

Allows autogenerating the structure of form elements depending on a provided schema.

Manual state management mode

The ability to manually control and update the state or values of form elements (such as input fields, checkboxes, or radio buttons).

Automatic state management mode

Automatically manage the state or values of form elements (such as input fields, checkboxes, or radio buttons) without requiring explicit manual updates by developers.

Manually trigger change

Allows to initiate changes of form values manually.

Manually trigger reset

Allows to reset form values manually.

Manually trigger validation

Allows to validate form values manually.

Built in focus state management

Automatically manage the visual state of form elements when they are focused or blurred (i.e., when the user clicks on or navigates away from an element).


  1. There's no built-in flow for that, but you can handle it yourself and pass it to the display.
+ + + + \ No newline at end of file diff --git a/docs/examples-common-forms/index.html b/docs/examples-common-forms/index.html new file mode 100644 index 000000000..d69c27916 --- /dev/null +++ b/docs/examples-common-forms/index.html @@ -0,0 +1,22 @@ + + + + + +Common forms | uniforms | React form library for building forms from any schema + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/examples-custom-bridge/index.html b/docs/examples-custom-bridge/index.html new file mode 100644 index 000000000..7d8912583 --- /dev/null +++ b/docs/examples-custom-bridge/index.html @@ -0,0 +1,29 @@ + + + + + +Custom bridge & validator | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Custom bridge & validator

In this example, we will create an ordinary login form, with login, password, and password confirmation fields.

Schema definition

We'll start with defining a schema. +It's an object with three keys, representing our fields. +Each of them has the following self-explanatory properties:

  • __type__
  • required
  • initialValue
  • label
const UserLoginSchema = {
login: {
__type__: String,
required: true,
initialValue: '',
label: 'Login',
},
password1: {
__type__: String,
required: true,
initialValue: '',
label: 'Password',
},
password2: {
__type__: String,
required: true,
initialValue: '',
label: 'Password (again)',
},
};

export default UserLoginSchema;

Validator definition

When the schema is ready, our next step is to provide a way to check if the values received from our form are correct. +In order to do so, we prepare a validation function. +That function, called validator, takes a model (the submitted object) as input and throws an error whether any value doesn't meet given criteria.

In our case we say 'form is invalid' when there's no login or password at all, +login has less then 5 characters, password has lass then 10 characters or given passwords mismatch:

const UserLoginSchemaValidator = model => {
const error = {};

if (!model.login) {
error.login = 'Login is required!';
} else if (model.login.length < 5) {
error.login = 'Login has to be at least 5 characters long!';
}

if (!model.password1) {
error.password1 = 'Password is required!';
} else if (model.password1.length < 10) {
error.login = 'Password has to be at least 10 characters long!';
}

if (model.password1 !== model.password2) {
error.password1 = 'Passwords mismatch!';
}

if (Object.keys(error).length) {
return error;
}
};

export default UserLoginSchemaValidator;

The Bridge!

Now that both have the schema and the validator, we can define our bridge, which will be a binder between the form and the data itself. +All we have to do is to extend Bridge class and implement its methods according to the Bridge concept:

import { Bridge } from 'uniforms';

export default class UserLoginSchemaBridge extends Bridge {
constructor(schema, validator) {
super();

this.schema = schema;
this.validator = validator;
}

getError(name, error) {
return error && error[name];
}

getErrorMessage(name, error) {
return (error && error[name]) || '';
}

getErrorMessages(error) {
return error ? Object.keys(this.schema).map(field => error[field]) : [];
}

getField(name) {
return this.schema[name.replace(/\.\d+/g, '.$')];
}

getType(name) {
return this.schema[name.replace(/\.\d+/g, '.$')].__type__;
}

getProps(name) {
return this.schema[name.replace(/\.\d+/g, '.$')];
}

getInitialValue(name) {
return this.schema[name.replace(/\.\d+/g, '.$')].initialValue;
}

getSubfields(name) {
return name
? this.schema[name.replace(/\.\d+/g, '.$')].subfields || []
: Object.keys(this.schema).filter(field => field.indexOf('.') === -1);
}

getValidator() {
return this.validator;
}
}

Usage

After our custom bridge is created, we can use in the very same way as we would use predefined one - +we have to supply the schema and validator and then we can take an advantage of it in the AutoForm:

import UserLoginSchema from './UserLoginSchema';
import UserLoginSchemaBridge from './UserLoginSchemaBridge';
import UserLoginSchemaValidator from './UserLoginSchemaValidator';

const bridge = new UserLoginSchemaBridge({
schema: UserLoginSchema,
validator: UserLoginSchemaValidator,
});

<AutoForm schema={bridge} />;
+ + + + \ No newline at end of file diff --git a/docs/examples-custom-fields/index.html b/docs/examples-custom-fields/index.html new file mode 100644 index 000000000..dbc9972f7 --- /dev/null +++ b/docs/examples-custom-fields/index.html @@ -0,0 +1,29 @@ + + + + + +Custom fields | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Custom fields

CompositeField

This field is a kind of a shortcut for few fields. You can also access all +field props here, like value or onChange for some extra logic.

SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled
Show exampleShow source codeShow schema

CustomAutoField

Note: Since v3.1, the preferred way is to create an AutoField component is to use the createAutoField helper. Also, it's often the case that using the AutoField.componentDetectorContext is enough.

These are two standard options to define a custom AutoField: either using connectField or simply taking the code from the original one (theme doesn't matter) and simply apply own components and/or rules to render components. Below an example with connectField.

// Remember to choose a correct theme package
import { AutoField } from 'uniforms-unstyled';

const CustomAuto = props => {
// This way we don't care about unhandled cases - we use default
// AutoField as a fallback component.
const Component = determineComponentFromProps(props) || AutoField;

return <Component {...props} name="" />;
};

const CustomAutoField = connectField(CustomAuto, {
initialValue: false,
});

const CustomAutoFieldDetector = () => {
return CustomAutoField;
};

<AutoField.componentDetectorContext.Provider value={CustomAutoFieldDetector}>
<Application />
</AutoField.componentDetectorContext.Provider>;

CycleField

This field works as follows: iterate all allowed values and optionally no-value +state if the field is not required. This one uses Semantic-UI.

SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled
Show exampleShow source codeShow schema

DisplayIf

This simple field component conditionally displays other fields based on input.

SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled
Show exampleShow source codeShow schema

ImageField

SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled
Show exampleShow source codeShow schema

RangeField

This field works as follows: two datepickers are bound to each other. +Value is a {start, stop} object.

SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled
Show exampleShow source codeShow schema

RatingField

This field works as follows: render stars for each rating and mark them as +filled, if rating (value) is greater.

SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled
Show exampleShow source codeShow schema

SubmitButton

This field works as follows: render standard submit field and disable it, when +the form is invalid. It's a simplified version of a default SubmitField from +uniforms-unstyled. We use schema from previous examples as a template for validation.

SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled
Show exampleShow source codeShow schema

SwapField

This field works as follows: on click of its child (refresh icon) it swaps values of fieldA +and fieldB. It's that simple.

SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled
Show exampleShow source codeShow schema
+ + + + \ No newline at end of file diff --git a/docs/examples-custom-form/index.html b/docs/examples-custom-form/index.html new file mode 100644 index 000000000..f81cce59e --- /dev/null +++ b/docs/examples-custom-form/index.html @@ -0,0 +1,24 @@ + + + + + +Custom form | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Custom form

In uniforms, every form is just an injectable set of functionalities. +Thus, we can live without many higher order components, using composed ones instead. +If you want to get a deeper dive into it, we encourage you to read the source of AutoForm or QuickForm in the core package.

ModifierForm

import { BaseForm } from 'uniforms';

const Modifier = parent =>
class extends parent {
// Expose injector.
// It's not required, but recommended.
static Modifier = Modifier;

// Alter component display name.
// It's not required, but recommended.
static displayName = `Modifier${parent.displayName}`;

// Here you can override any form methods or create additional ones.
getModel(mode) {
if (mode === 'submit') {
const doc = super.getModel('submit');
const keys = this.getContextSchema().getSubfields();

const update = keys.filter(key => doc[key] !== undefined);
const remove = keys.filter(key => doc[key] === undefined);

// It's a good idea to omit empty modifiers.
const $set = update.reduce(
(acc, key) => ({ ...acc, [key]: doc[key] }),
{},
);
const $unset = remove.reduce((acc, key) => ({ ...acc, [key]: '' }), {});

return { $set, $unset };
}

return super.getModel(mode);
}
};

// Now we have to inject our functionality. This one is a ModifierForm. Use any
// form component you want.
const ModifierForm = Modifier(BaseForm);
+ + + + \ No newline at end of file diff --git a/docs/faq/index.html b/docs/faq/index.html new file mode 100644 index 000000000..aabd4ebaa --- /dev/null +++ b/docs/faq/index.html @@ -0,0 +1,30 @@ + + + + + +FAQ | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

FAQ

Can I use React v18?

Yes, but be cautious about it.

Our test suite is incompatible with it (we're using Enzyme; see enzymejs/enzyme#2429 and enzymejs/enzyme#2524), therefore we are not certain that everything works as it should. Based on the official upgrade guide, there's nothing you should worry about. A few people (including some of our projects) are already doing that (see #1109).

If you'll encounter any issues, do file an issue.

How can I customize/style my form fields?

You can style your form fields simply by passing a className property.

How can I create custom fields?

You can create a custom field by wrapping your component inside the connectField.

The connectField will pass various props related to the form management, such as onChange() function, current field's value, errors and so on, to your component.

Please visit the Tutorials > Creating a custom field tutorial to see how to create your own fields.

How can I use a custom field in my form?

You can tell your schema to use your custom field by adding the uniforms property.

Example in JSONSchema:

const schema = {
/*...*/
firstName: {
type: 'string',
uniforms: MyCustomFirstNameField,
},
/*...*/
};

We say that the component used for the firstName property will be the MyCustomFirstNameField.

You can also leave the schema untouched and pass your custom field directly to the AutoField in a component property instead:

<AutoForm schema={schema} onSubmit={onSubmit}>
/*...*/
<AutoField component={MyCustomFirstNameField} name="firstName" />
/*...*/
</AutoForm>

How can I pass additional props to the custom field?

You can pass any additional props to your custom field, by converting the uniforms property to the type of object, with the component key. Any other keys will be treated as props.

E.g. in JSONSchema:

const schema = {
/*...*/
firstName: {
type: 'string',
uniforms: {
component: MyCustomFirstNameField,
propA: 1,
propB: 2,
},
},
/*...*/
};

We say that the component used for the firstName property will be the MyCustomFirstNameField and it will receive 2 additonal props: propA and propB.

You can also leave the schema untouched and pass your custom field with props directly to the AutoField instead:

<AutoForm schema={schema} onSubmit={onSubmit}>
/*...*/
<AutoField
component={MyCustomFirstNameField}
name="firstName"
propA={1}
propB={2}
/>
/*...*/
</AutoForm>

How can I have a dynamic label? (e.g. handling i18n)

There are few ways to handle that, depending on the level of abstraction you want to do it - schema, field or AutoField component.

On the schema level, you can use uniforms: {...} object property to pass extra props to the field. +A function returning it (uniforms: () => ({...})) is also accepted. With it, dynamic labels can be fetched from any source.

On the field level, you can prepare your own component set, where you will use <Translate>{label}</Translate> instead of {label}.

While the first one is schema-dependent and the second is theme-dependent, there's an additional option, somewhere in between. You can create a custom AutoField component, based on a builtin one, where you provide some additional props and label might be one of them (based on other props, like name or some schema field).

How can I change the way my form validates?

Any form can be validated in one of those three styles:

  • onChange +Validate on every change.

  • onChangeAfterSubmit (default) +Validate on every change, but only after first submit.

  • onSubmit +Validate on every submit.

You change the way your form validates by setting validate prop:

<AutoForm validate="onChange" schema={schema} onSubmit={onSubmit} />

Note: If your schema validator accepts any options, those can be passed in validator prop:

<AutoForm validator={validatorOptions} />

How can I reset my form state?

You can use React ref prop or formRef to manually access form methods.

These methods are:

  • change(key, value)
  • reset()
  • submit()
  • validate() (added in ValidatedForm)
import { useRef } from 'react';

const MyForm = ({ schema, onSubmit }) => {
const formRef = useRef();

return (
<section>
<AutoForm ref={formRef} schema={schema} onSubmit={onSubmit} />
<small onClick={() => formRef.reset()}>Reset</small>
<small onClick={() => formRef.submit()}>Submit</small>
</section>
);
};

or the hook way:

function FormControls() {
const { formRef } = useForm();

return (
<>
<button onClick={() => formRef.reset()}>Reset</button>
<button onClick={() => formRef.submit()}>Submit</button>
</>
);
}

function App() {
return (
<AutoForm>
<FormControls />
</AutoForm>
);
}

You can find more about form methods here.

I want my form to be prefilled with data. How can I do that?

You can pass the initial data to the form by using the model prop.

The model is an object with {field: value} structure. It doesn't matter if it has a prototype or not, but keep in mind that in onSubmit or in onChangeModel you'll receive a plain object. If you treat form as an input, then this is a value.

How can I transform my model?

You should modelTransform. It is a function transforming one model into another. It's used in a few situations (called 'modes') described below.

Remember not to mutate a given model!

function transform(mode, model) {
// This model will be passed to the fields.
if (mode === 'form') {
/* ... */
}

// This model will be submitted.
if (mode === 'submit') {
/* ... */
}

// This model will be validated.
if (mode === 'validate') {
/* ... */
}

// Otherwise, return unaltered model.
return model;
}

<AutoForm modelTransform={transform} schema={schema} onSubmit={onSubmit} />;

How can I make my form autofocused?

You can take a reference to the field and manually trigger .focus():

import { useRef } from 'react';

const inputRef = useRef();

<AutoField name="firstName" inputRef={inputRef} />;

How can I create a multi-step form?

What is a multi-step form? Well, one can imagine at least two completely separate definitions:

  1. A set of independent forms with a shared state. That's the easier one as it's always possible. Each step renders a separate form, with a different schema/validator/style and moves to the next one when submitted, accumulating submitted data.

    This handles not only multi-step forms but also forms wizards with a tree-like structure (i.e. next step bases on the answers). Optional steps (skip step 2 if age < 40) and contextual validation (field Y in step 2 has to be greater than the value of X in step 1) is also possible.

    But it gets even better - each step may use a different forms library! It makes no sense but is definitely possible - each form is independent, and the orchestration happens in the application.

  2. A single form displayed in parts. It is, of course, possible to implement it, but the number of all configurations and options is massive. But let's skip that and see where a bigger problem is: the validation. In 1. each step is validated separately (i.e. can have a separate schema). Here, we have only one schema, and the schema itself has to know that some fields were not yet visible.

    Let's make an example. The schema is very basic: { a: string, b: string } (TypeScript notation). Now, as both a and b are required, a valid model has to have both. If the first step will render only the a field (b is on the next page), it's impossible to validate the form. This leads to a situation where the schema (logic) depends on the steps (UI). On the other hand, the form could be validated only at the end. The UX of this solution is terrible though - imagine a there's an error ten pages back error!

We are not planning to provide any out-of-the-box support for multi-step forms as option 1. is most of the time the best. It's not only the cleanest but also less complicated as well as doesn't rely on any library.

How can I know a current form state?

A current form state is available in React context, accessible through useForm and useField(name) hooks.

The context data consists of various properties which can be found in here.

Example usage:
function SubmittingState() {
const uniforms = useForm();
return uniforms.submitting ? 'Submitting...' : null;
}

<AutoForm>
<SubmittingState />
</AutoForm>;

I want to disable a submit button until there is a difference between the current form state and my model. How can I do it?

Basically, you have to find out whether there is a difference between a current form state and your model, e.g. by calling lodash's isEqual function. +Current form state can be accessed through the context (see How can I know a current form state?) and form model can be passed as an ordinary prop:

function DifferentSubmitField({ initialModel }) {
const { model } = useForm();
return <SubmitField disabled={isEqual(uniforms.model, initialModel)} />;
}

const ChangedForm = ({ model }) => (
<AutoForm model={model}>
<DifferentSubmitField initialModel={model} />
</AutoForm>
);

Why am I suddenly getting type errors in my form components?

After introduction of TypeScript in uniforms@3.0.0, in the initial versions all form components in theme packages were typed as any. +Natural strict typing is not possible due to TypeScript constraints. In one of the versions we have decided to change this approach and explicitly cast all of the form types. +If you experience any errors regarding form types, please file us a bug report and use one of the following workarounds for the time being in your project.

const AnyAutoForm: any = AutoForm;
<AnyAutoForm untypedProp={1} />;

// or

const anyProps: any = {
untypedProp: 1
}
<AutoForm {...anyProps} />

"useForm must be used within a form"

uniforms uses a React.Context in order to keep the state of the whole form. +The provider for this context is rendered by BaseForm, and in turn all the other form components inheriting it.

There are two most common issues causing this problem:

  1. The component calling this function does not have a Form component above it anywhere in the component tree.

    To fix this, wrap this component within a parent Form component (does not have to be direct).

  2. There are multiple versions of uniforms installed in your node_modules.

    This usually happens when you have installed more than one version of the core uniforms package. It can happen when you have a mismatch of versions between any of your uniforms related dependencies.

    Ensure all your uniforms packages versions, clean any node_modules directories and reinstall dependencies to resolve this error.

+ + + + \ No newline at end of file diff --git a/docs/installation/index.html b/docs/installation/index.html new file mode 100644 index 000000000..797a5c45f --- /dev/null +++ b/docs/installation/index.html @@ -0,0 +1,22 @@ + + + + + +Installation | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Installation

Core package first.

npm install uniforms

Now the schema package.

GraphQLJSON-SchemaSimple-SchemaSimple-Schema-2Zod
npm install uniforms-bridge-graphql

Finally, pick your theme.

SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled
npm install uniforms-semantic

TL;DR; Just let me copy it!

npm install uniforms uniforms-bridge-graphql uniforms-semantic

Note: If you are going to use a themed package - remember to include correct styles!

+ + + + \ No newline at end of file diff --git a/docs/migrating-2-to-3/index.html b/docs/migrating-2-to-3/index.html new file mode 100644 index 000000000..ae3e619d1 --- /dev/null +++ b/docs/migrating-2-to-3/index.html @@ -0,0 +1,22 @@ + + + + + +Migrating v2 to v3 | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Migrating v2 to v3

This guide is designed to help you through the migration. If you went through it and encountered any problems - do let us know. For more information on why certain changes were made, see the CHANGELOG.md. When migrating to v3, use the newest version. Gradual updates will take more time and won't ease this process.

Breaking API changes

  • Context data shape has changed: changed, changedMap, submitting, and validating were lifted from the state property to the root.
  • Removed AutoForm.state.modelSync. Use AutoForm.state.model instead.
  • Removed BaseField. Use connectField or useField instead.
  • Removed BaseForm.getChangedKeys. Use changedKeys directly.
  • Removed BaseForm.state.bridge. Use BaseForm.props.schema instead.
  • Removed Bridge.check. Without createSchemaBridge it's no longer needed.
  • Removed baseField from connectField options. There's no one solution here and it may require additional changes, depending on the usage.
  • Removed createSchemaBridge. Now all *Bridge instances have to be created manually.
      import { SimpleSchema } from 'simpl-schema';
    + import { SimpleSchema2Bridge } from 'uniforms-bridge-simple-schema-2';
    const schema = new SimpleSchema({ /* ... */ });
    - <AutoForm schema={schema} />
    + const bridge = new SimpleSchema2Bridge(schema);
    + <AutoForm schema={bridge} />
  • Removed ensureValue from connectField options. That means undefined will no longer be automatically passed to the field as ''. Use value ?? '' instead. This option was enabled by default, therefore it will impact all your custom fields.
  • Removed includeParent from connectField options. Use useField as many times as needed instead.
    const parentName = joinName(joinName(null, props.name).slice(0, -1));
    const parentField = useField(parentName, {}, { absoluteName: true })[0];
  • Removed injectName. In most cases, it can be safely omitted.
  • Removed includeInChain parameter from connectField options. It was used only in the NestField and ListField family, and mostly because of the way how the old context API worked. In most cases, if you've used includeInChain: false, the migration is to use name="" for the nested fields. See #738, #720, #721 for more information.
  • Removed mapProps from connectField options. Map props directly in the component.
  • Removed nothing. Use null instead.
  • Removed all propTypes in favor of TypeScript types.
  • Renamed or removed deprecated lifecycle methods. If you were using them, e.g. super.componentWillReceiveProps, check whether it's still there and use the correct name if needed.
  • Renamed getChildContext* methods to getContext*, e.g. getChildContextName -> getContextName.
  • Synchronous return and throw in onSubmit are no longer allowed. To return an error or some result, return a Promise instead.
  • filterDOMProps.registered is now read-only.

Validation flow changes

  • Bridge validators have to return errors instead of throwing them.
      // GraphQL Schema
    function validator(model) {
    if (errors.length) {
    - throw { details: validator.errors };
    + return { details: validator.errors };
    }
    }
      // JSON Schema
    function createValidator(schema) {
    const validator = ajv.compile(schema);
    return (model) => {
    validator(model);
    if (validator.errors && validator.errors.length) {
    - throw { details: validator.errors };
    + return { details: validator.errors };
    }
    };
    }
  • Removed onSubmitSuccess and onSubmitFailure. Perform all needed operations directly in the onSubmit:
    - onSubmit={onSubmit}
    - onSubmitSuccess={onSubmitSuccess}
    - onSubmitFailure={onSubmitFailure}
    + onSubmit={model => {
    + const result = onSubmit(model);
    + result.then(onSubmitSuccess, onSubmitFailure);
    + return result;
    + }}`
  • onValidate is no longer using callbacks. The error (or the lack of it) has to be returned either synchronously or asynchronously (i.e. wrapped in a promise).
    - onValidate={(model, error, done) => done(error)}
    + onValidate={async (model, error) => error}

React Context API

  • If you were not using context, contextTypes, childContextTypes, or getChildContext* methods directly, there's nothing to do.
  • For direct context access, use useForm hook (functional components), contextType static property (class components), or <context.Consumer /> (both).
    • The React context object, context, is exported from the uniforms package.

TypeScript

  • A lot of types were added or changed. If you are using TypeScript, you may expect some type errors, as all components are no longer full of any.
  • filterDOMProps.register is now type safe and requires FilterDOMProps interface extension.

Miscellaneous

  • For performance reasons getField, getSubfields, and getType of all bridges are now memoized. If possible, do the same for custom bridges for a potential performance gain.
  • Simplified NumField in most themes as it works as expected in React 16 and later. If you have a custom NumField in your project, do revise its implementation for a potential performance gain.
  • Stop using direct imports and use named ones instead. It'll let your bundler decide, which version it'll need.
    -import BaseForm from 'uniforms/BaseForm';
    +import { BaseForm } from 'uniforms';
+ + + + \ No newline at end of file diff --git a/docs/migrating-3-to-4/index.html b/docs/migrating-3-to-4/index.html new file mode 100644 index 000000000..1e6a623b7 --- /dev/null +++ b/docs/migrating-3-to-4/index.html @@ -0,0 +1,22 @@ + + + + + +Migrating v3 to v4 | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Migrating v3 to v4

This guide is designed to help you through the migration. If you went through it and encountered any problems - do let us know. For more information on why certain changes were made, see the CHANGELOG.md. When migrating to v4, use the newest version. Gradual updates will take more time and won't ease this process.

Breaking API changes

  • componentDetector in AutoFields now always takes precedence over component property on a schema. This may make your AutoField render a different component when you were using both previously. If that's the case, move your schema's component definition to a AutoField.componentDetectorContext.Provider instead.
  • Dropped support for initialCount in bridges and ListFields. Pass a model object to the form with the appropriate amount of initial items instead.
  • AutoFields component in all themes now renders a React.Fragment instead of a div. Explicitly render a wrapper component around if you need one.
  • Removed the autoField prop from QuickForm, AutoForm, and AutoFields components in all themes. Use AutoField.componentDetectorContext.Provider instead.
+ + + + \ No newline at end of file diff --git a/docs/motivation/index.html b/docs/motivation/index.html new file mode 100644 index 000000000..f4d364638 --- /dev/null +++ b/docs/motivation/index.html @@ -0,0 +1,25 @@ + + + + + +Motivation | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Motivation

Forms concept

There’s a very interesting class-based inheritance concept for forms. +Basically, there are a few types of forms with different capabilities. +Most of the time you’ll be using either AutoForm or ValidatedForm, but there are quite a few more to choose from:

AutoForm class inheritance from ValidatedQuickForm which subsequently inherits from QuickForm and ValidatedForm.

If you are not familiar with concept of HOC, read one of many posts about them first. +I’m sure you’ve read at least one of Why ES6 classes are bad or class considered harmful posts. I’ve read them too, so why is uniforms using classes? Well, it’s all about the complexity.

-- Radosław Miernik

React DevTools when lots of HOC’s are applied to a component.

I wanted to achieve the same functionality as with multiple HOCs, but within one component. To be honest, readability is more important than performance. In short, I’ve reached (more or less) traits with ES6 classes. The result?

-- Radosław Miernik

import BaseForm from './BaseForm';
import QuickForm from './QuickForm';
import ValidatedForm from './ValidatedForm';

const ValidatedQuickForm = ValidatedForm.Validated(QuickForm.Quick(BaseForm));

Single AutoValidatedQuickSemanticForm component (using 5 "traits") viewed in React DevTools.

While it’s not a universal approach that will work in every situation, using it in uniforms allows us to deliver clean-looking components while keeping extensibility and separation of concerns.


Based on Managing forms in a Meteor/React project with the uniforms package written by Maciej Stasiełuk.

+ + + + \ No newline at end of file diff --git a/docs/tutorials-basic-uniforms-usage/index.html b/docs/tutorials-basic-uniforms-usage/index.html new file mode 100644 index 000000000..92dd5c957 --- /dev/null +++ b/docs/tutorials-basic-uniforms-usage/index.html @@ -0,0 +1,33 @@ + + + + + +Basic uniforms usage | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Basic uniforms usage

tip

You can also follow the tutorial and explore uniforms in our sample CodeSandbox repository.

Imagine that we host an IT conference and want to make a list of guests. +Obviously, we want to collect their first name and last name. +Additionally, we can ask for their work experience, but that information is not required. +Let's prepare a form for the guests, so they can sign up for our event, by using uniforms!

1. Install the required packages

To start using uniforms, we have to install three independent packages:

  1. Core
  2. Bridge
  3. Theme

In this example, we will use the JSONSchema to describe our desired data format and style our form using Semantic UI theme.

npm install uniforms
npm install uniforms-bridge-json-schema
npm install uniforms-semantic

Note: When using a themed package, remember to include correct styles! If you are willing to run this example by yourself, +have a read on Semantic UI React's theme usage.

2. Start by defining a schema

After we've installed required packages, it's time to define our Guest schema. We can do it in a plain JSON, which is a valid JSONSchema instance:

import Ajv, { JSONSchemaType } from 'ajv';

type FormData = {
firstName: string;
lastName: string;
workExperience: number;
};

const schema: JSONSchemaType<FormData> = {
title: 'Guest',
type: 'object',
properties: {
firstName: { type: 'string' },
lastName: { type: 'string' },
workExperience: {
description: 'Work experience in years',
type: 'integer',
minimum: 0,
maximum: 100,
},
},
required: ['firstName', 'lastName'],
};

As you can see, we've defined three properties - firstName and lastName, that are of string type, and workExperience, +which is an integer, with a value between 0 and 100.

3. Then create the bridge

Now that we have the schema, we can create the uniforms bridge of it, by using the corresponding uniforms schema-to-bridge package. +Creating the bridge instance is necessary - without it, uniforms would not be able to process form generation and validation. +As we are using the JSONSchema, we have to import the uniforms-bridge-json-schema package.

import { JSONSchemaBridge } from 'uniforms-bridge-json-schema';

Now you may think that we can simply do:

// Wrong usage of the JSONSchemaBridge!
// You have to pass a validator!
const bridge = new JSONSchemaBridge({ schema });

However, there's small caveat with using the JSONSchemaBridge. +Because of its simplicity, JSONSchema doesn't provide any validation checkers, so in order to properly validate our submitted data, +we need to manually define a validator, and that is required by the uniforms JSONSchemaBrigde constructor.

To manually create the validator, we will use the Ajv package:

caution

Ajv executes in strict mode by default since version 7. To avoid errors at schema compilation phase, we have to register the uniforms keyword (see Unknown keywords for more details).

import Ajv, { JSONSchemaType } from 'ajv';

const ajv = new Ajv({
allErrors: true,
useDefaults: true,
keywords: ['uniforms'],
});

function createValidator<T>(schema: JSONSchemaType<T>) {
const validator = ajv.compile(schema);

return (model: Record<string, unknown>) => {
validator(model);
return validator.errors?.length ? { details: validator.errors } : null;
};
}

const schemaValidator = createValidator(schema);

Now that we have both the schema and the validator, we can create the uniforms bridge:

// Correct usage of the JSONSchemaBridge.
export const bridge = new JSONSchemaBridge({
schema,
validator: schemaValidator,
});

Just to recap, the whole GuestSchema.js file looks like this:

import Ajv, { JSONSchemaType } from 'ajv';
import { JSONSchemaBridge } from 'uniforms-bridge-json-schema';

type FormData = {
firstName: string;
lastName: string;
workExperience: number;
};

const schema: JSONSchemaType<FormData> = {
title: 'Guest',
type: 'object',
properties: {
firstName: { type: 'string' },
lastName: { type: 'string' },
workExperience: {
description: 'Work experience in years',
type: 'integer',
minimum: 0,
maximum: 100,
},
},
required: ['firstName', 'lastName'],
};

const ajv = new Ajv({
allErrors: true,
useDefaults: true,
keywords: ['uniforms'],
});

function createValidator<T>(schema: JSONSchemaType<T>) {
const validator = ajv.compile(schema);

return (model: Record<string, unknown>) => {
validator(model);
return validator.errors?.length ? { details: validator.errors } : null;
};
}

const schemaValidator = createValidator(schema);

export const bridge = new JSONSchemaBridge({
schema,
validator: schemaValidator,
});

4. Finally, use it in a form!

uniforms theme packages provide the AutoForm component, which is able to generate the form based on the given schema. +All we have to do now is to pass the previously created GuestSchema to the AutoForm:

import React from 'react';
import { AutoForm } from 'uniforms-semantic';

import { bridge as schema } from './GuestSchema';

export function GuestFormBasic() {
return <AutoForm schema={schema} onSubmit={console.log} />;
}

And that's it! AutoForm will generate a complete form with labeled fields, errors list (if any) and a submit button. +Also, it will take care of validation and handle model changes.

SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled
+ + + + \ No newline at end of file diff --git a/docs/tutorials-creating-custom-field/index.html b/docs/tutorials-creating-custom-field/index.html new file mode 100644 index 000000000..7cdfb6dad --- /dev/null +++ b/docs/tutorials-creating-custom-field/index.html @@ -0,0 +1,34 @@ + + + + + +Creating a custom field | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Creating a custom field

Great! We have a perfect form designed for collecting the data about our guests! +In the previous chapters, we've learned how to use the AutoForm and redesign its layout, by changing the order of the fields and error messages (if any). +We've also found out how to change the fields' types, by using predefined ones, such as SelectField or LongTextField.

Now we're going to learn how to define a custom field.

Let's assume that our conference has a limited number of attendees. +What we need is to prepare special passes, with the first name, last name and the photo of the person. +Therefore, we need to add one more field to our form - an image field, which should enable our guests to choose a photo. +As there isn't such field provided, we have to create it ourselves.

Let's add a new property to our schema - pictureUrl, which will store an URL string containing guest's picture, +and declare that it will be managed by our newly created custom ImageField component:

import Ajv, { JSONSchemaType } from 'ajv';

type FormData = {
firstName: string;
lastName: string;
workExperience: number;
profession: string;
additionalInfo: string;
pictureUrl: string;
};

const schema: JSONSchemaType<FormData> = {
title: 'Guest',
type: 'object',
properties: {
firstName: { type: 'string' },
lastName: { type: 'string' },
workExperience: {
description: 'Work experience in years',
type: 'integer',
minimum: 0,
maximum: 100,
},
profession: {
type: 'string',
options: [
{
label: 'Developer',
value: 'developer',
},
{
label: 'Tester',
value: 'tester',
},
{
label: 'Product owner',
value: 'product-owner',
},
{
label: 'Project manager',
value: 'project-manager',
},
{
label: 'Businessman',
value: 'businessman',
},
],
},
additionalInfo: {
type: 'string',
uniforms: { component: LongTextField },
},
pictureUrl: {
type: 'string',
uniforms: { component: ImageField },
},
},
required: ['firstName', 'lastName'],
};

We can prepare the custom field by creating a React component and wrapping it in a connectField helper. +connectField will pass various props related to the form management, such as onChange() function, current field's value, errors an so on. +You can find the whole list of guaranteed props inside the helpers section. +It's worth noting, that it will also add the Field suffix to the name of our component.

Our newly created ImageField looks like this:

import React from 'react';
import { HTMLFieldProps, connectField } from 'uniforms';

export type ImageFieldProps = HTMLFieldProps<string, HTMLDivElement>;

function Image({ onChange, value }: ImageFieldProps) {
return (
<div className="ImageField">
<label htmlFor="file-input">
<div>Choose your photo</div>
<img
alt=""
style={{ cursor: 'pointer', width: '150px', height: '150px' }}
src={value || 'https://picsum.photos/150?grayscale'}
/>
</label>
<input
accept="image/*"
id="file-input"
onChange={({ target: { files } }) => {
if (files && files[0]) {
onChange(URL.createObjectURL(files[0]));
}
}}
style={{ display: 'none' }}
type="file"
/>
</div>
);
}

export default connectField<ImageFieldProps>(Image);

The component itself is a file input that accepts only images. +After the file is selected, it is converted to the DOMString that contains a URL representing the user's picture. +Please pay attention to what props the Image component uses: onChange and value are provided by a connectField helper. +By using these, we don't have to worry about managing the field's state.

Take a look at the form code:

import React from 'react';
import {
AutoField,
AutoForm,
ErrorField,
SubmitField,
} from 'uniforms-semantic';

import { bridge as schema } from './GuestSchema';

export function GuestFormFinal() {
return (
<AutoForm schema={schema} onSubmit={console.log}>
<h4>IT meeting guest questionnaire</h4>
<AutoField name="lastName" />
<ErrorField name="lastName">
<span>You have to provide your last name!</span>
</ErrorField>
<AutoField name="firstName" />
<ErrorField
name="firstName"
errorMessage="You have to provide your first name!"
/>
<span>Do you want to share your work experience with us?</span>
<AutoField name="workExperience" />
<ErrorField
name="workExperience"
errorMessage="Your work experience cannot be \
lesser than 0 or greater than 100 years!"
/>
<AutoField name="profession" />
<AutoField name="additionalInfo" />
<AutoField name="pictureUrl" />
<SubmitField />
</AutoForm>
);
}

and the form itself:

SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled
+ + + + \ No newline at end of file diff --git a/docs/tutorials-creating-custom-theme/index.html b/docs/tutorials-creating-custom-theme/index.html new file mode 100644 index 000000000..d15df63bf --- /dev/null +++ b/docs/tutorials-creating-custom-theme/index.html @@ -0,0 +1,26 @@ + + + + + +Creating a custom theme | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Creating a custom theme

We've made hundreds of custom components across dozens of projects, including complete custom themes. +Most of them began as source forks of uniforms-unstyled - one simply copies the source +and imports ./some/project/path/uniforms-custom-theme-with-a-cool-name.

For the purposes of this tutorial we will be using uniforms-custom-theme as our custom theme name.

Copy theme source

Copy source of uniforms-unstyled package from uniforms repository, or any other provided theme that you would like to extend, and put it somewhere inside your project, e.g. ./uniforms-custom-theme.

Now you can start making changes to your own custom theme!

Import newly created theme

Instead of importing themes from node_modules (original uniforms theme packages), simply import theme from your local path.

That's all!

Referenced issues and pull requests

#433 +#609 +#612

+ + + + \ No newline at end of file diff --git a/docs/tutorials-customizing-your-form-layout/index.html b/docs/tutorials-customizing-your-form-layout/index.html new file mode 100644 index 000000000..804d5fedc --- /dev/null +++ b/docs/tutorials-customizing-your-form-layout/index.html @@ -0,0 +1,31 @@ + + + + + +Customizing your form layout | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Customizing your form layout

Great! Now that we have our form up and running, it's time to think about how we can customize it and adjust to our needs.

Let's say we would like to add a heading "IT meeting guest questionnaire" and change the order of the fields - the field asking for a guest's last name should come first. +We also want to ask for their work experience more politely.

How can we do it? That's where Autofield and AutoFields components come into action.

Note: Both AutoFields and AutoField components generate, no more and no less, only form fields. +That means we have to manually add the submit button (SubmitField) and the error messages (ErrorsField).

Adding a heading to the form

If you need to add heading to your form, using AutoFields seems to be a perfect solution. +AutoFields will automatically render form fields based on the schema within the AutoForm.

import React from 'react';
import {
AutoForm,
AutoFields,
ErrorsField,
SubmitField,
} from 'uniforms-semantic';

import { bridge as schema } from './GuestSchema';

export function GuestFormWithHeading() {
return (
<AutoForm schema={schema} onSubmit={console.log}>
<h4>IT meeting guest questionnaire</h4>
<AutoFields />
<ErrorsField />
<SubmitField />
</AutoForm>
);
}
SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled

Changing the order of the fields

If you need to reorder your fields, AutoField is your best friend. +AutoField will automatically render any field based on the field name provided in the schema. +Using AutoFields allows you to freely manipulate your form's layout.

Here we've changed the order of the lastName and firstName field and added a polite question, +asking whether the people filling the form would like to share with us their work experience.

import React from 'react';
import {
AutoField,
AutoForm,
ErrorsField,
SubmitField,
} from 'uniforms-semantic';

import { bridge as schema } from './GuestSchema';

export function GuestFormWithAutoFields() {
return (
<AutoForm schema={schema} onSubmit={console.log}>
<h4>IT meeting guest questionnaire</h4>
<AutoField name="lastName" />
<AutoField name="firstName" />
<span>Do you want to share your work experience with us?</span>
<AutoField name="workExperience" />
<ErrorsField />
<SubmitField />
</AutoForm>
);
}
SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled

Changing the order of the error messages

Similarly to the fields, we can also change the order of the displayed errors. +Instead of using the ErrorsField component, which renders one stack block of errors, +we can use the ErrorField and just place it directly where want in our form.

import React from 'react';
import {
AutoForm,
AutoField,
ErrorField,
SubmitField,
} from 'uniforms-semantic';

import { bridge as schema } from './GuestSchema';

export function GuestFormWithErrorFields() {
return (
<AutoForm schema={schema} onSubmit={console.log}>
<h4>IT meeting guest questionnaire</h4>
<AutoField name="lastName" />
<ErrorField name="lastName" />
<AutoField name="firstName" />
<ErrorField name="firstName" />
<span>Do you want to share your work experience with us?</span>
<AutoField name="workExperience" />
<ErrorField name="workExperience" />
<SubmitField />
</AutoForm>
);
}
SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled

Changing the error message

The default error messages are rather unfriendly. Hopefully, we can easily modify them, +either by passing the children to the ErrorField or by using the errorMessage prop:

import React from 'react';
import {
AutoField,
AutoForm,
ErrorField,
SubmitField,
} from 'uniforms-semantic';

import { bridge as schema } from './GuestSchema';

export function GuestFormWithChangedErrors() {
return (
<AutoForm schema={schema} onSubmit={console.log}>
<h4>IT meeting guest questionnaire</h4>
<AutoField name="lastName" />
<ErrorField name="lastName">
<span>You have to provide your last name!</span>
</ErrorField>
<AutoField name="firstName" />
<ErrorField
name="firstName"
errorMessage="You have to provide your first name!"
/>
<span>Do you want to share your work experience with us?</span>
<AutoField name="workExperience" />
<ErrorField
name="workExperience"
errorMessage="Your work experience cannot be lesser than 0 or greater than 100 years!"
/>
<SubmitField />
</AutoForm>
);
}
SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled
+ + + + \ No newline at end of file diff --git a/docs/tutorials-using-predefined-fields/index.html b/docs/tutorials-using-predefined-fields/index.html new file mode 100644 index 000000000..c8cee593e --- /dev/null +++ b/docs/tutorials-using-predefined-fields/index.html @@ -0,0 +1,35 @@ + + + + + +Using predefined fields | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Using predefined fields

Now that we know how to ask our guests for their name, let's ask them a few more things! +We can expect a lot of different people coming to our IT conference - they could be developers, testers, product owners, project managers, businessmen and so on. +Perhaps we want to calculate how many representatives of various professions will visit us? +Or maybe (if there are enough people) we want to prepare special, personalized events? +It would be also a decent idea to somehow gather their visions and expectations about the conference or any additional valuable information for the organizer.

Let's modify our schema by adding two new properties: profession and additionalInfo in order to have the additional fields rendered:

import Ajv, { JSONSchemaType } from 'ajv';

type FormData = {
firstName: string;
lastName: string;
workExperience: number;
profession: string;
additionalInfo: string;
};

const schema: JSONSchemaType<FormData> = {
title: 'Guest',
type: 'object',
properties: {
firstName: { type: 'string' },
lastName: { type: 'string' },
workExperience: {
description: 'Work experience in years',
type: 'integer',
minimum: 0,
maximum: 100,
},
profession: { type: 'string' },
additionalInfo: { type: 'string' },
},
required: ['firstName', 'lastName'],
};

After the schema change, we must not forget to add the fields to our form. +We will add the profession field above the workExperience field and the additionalInfo at the bottom:

import React from 'react';
import {
AutoField,
AutoForm,
ErrorField,
SubmitField,
} from 'uniforms-semantic';

import { bridge as schema } from './GuestSchema';

export function GuestFormProfessionAdditionalInfo() {
return (
<AutoForm schema={schema} onSubmit={console.log}>
<h4>IT meeting guest questionnaire</h4>
<AutoField name="lastName" />
<ErrorField name="lastName">
<span>You have to provide your last name!</span>
</ErrorField>
<AutoField name="firstName" />
<ErrorField
name="firstName"
errorMessage="You have to provide your first name!"
/>
<span>Do you want to share your work experience with us?</span>
<AutoField name="workExperience" />
<ErrorField
name="workExperience"
errorMessage="Your work experience cannot be lesser than 0 or greater than 100 years!"
/>
<AutoField name="profession" />
<AutoField name="additionalInfo" />
<SubmitField />
</AutoForm>
);
}
SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled

Let's stop for a while and think of what we have. Obviously, we there is a form generated, but it's not quite what we've expected:

  • The profession field is rendered a an ordinary text input, where anyone can type literally anything. +It would be far better if it would be displayed as a selectable list of options.
  • The additionalInfo property is supposed to store lots of text, so it's preffered to be displayed as a text area.

We can handle it in two ways:

  1. By replacing the AutoField inside the AutoForm with a desired field.
  2. By manipulating the schema using the uniforms key.

1. Replacing the AutoField

uniforms provide a set of predefined out-of-the-box fields that we can use instead of the AutoField. +The perfect one for a profession property is a SelectField. All we have to do to have it rendered is to provide the list of available options. +The same thing applies to the additionalInfo - in order to see it as a text area we can use the LongTextField component. +Let's see our changes in action:

import React from 'react';
import {
AutoForm,
AutoField,
ErrorField,
LongTextField,
SelectField,
SubmitField,
} from 'uniforms-semantic';

import { bridge as schema } from './GuestSchema';

const professions = [
{
label: 'Developer',
value: 'developer',
},
{
label: 'Tester',
value: 'tester',
},
{
label: 'Product owner',
value: 'product-owner',
},
{
label: 'Project manager',
value: 'project-manager',
},
{
label: 'Businessman',
value: 'businessman',
},
];

export function GuestFormPredefinedFields() {
return (
<AutoForm schema={schema} onSubmit={console.log}>
<h4>IT meeting guest questionnaire</h4>
<AutoField name="lastName" />
<ErrorField name="lastName">
<span>You have to provide your last name!</span>
</ErrorField>
<AutoField name="firstName" />
<ErrorField
name="firstName"
errorMessage="You have to provide your first name!"
/>
<span>Do you want to share your work experience with us?</span>
<AutoField name="workExperience" />
<ErrorField
name="workExperience"
errorMessage="Your work experience cannot be lesser than 0 or greater than 100 years!"
/>
<SelectField name="profession" options={professions} />
<LongTextField name="additionalInfo" />
<SubmitField />
</AutoForm>
);
}
SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled

As you can see, now we have a beautiful select field and a text area!

2. Manipulating the schema

Now that we know how to use predefined fields within the AutoForm, let's see how to do it in a more fancy way, +without the necessity to replace the AutoField. That means modifying our schema and shows true magic of the uniforms.

Before touching the schema, let's have a look at the React form first:

import React from 'react';
import {
AutoForm,
AutoField,
ErrorField,
SubmitField,
} from 'uniforms-semantic';

import { bridge as schema } from './GuestSchema';

export function GuestFormWithFieldsInSchema() {
return (
<AutoForm schema={schema} onSubmit={console.log}>
<h4>IT meeting guest questionnaire</h4>
<AutoField name="lastName" />
<ErrorField name="lastName">
<span>You have to provide your last name!</span>
</ErrorField>
<AutoField name="firstName" />
<ErrorField
name="firstName"
errorMessage="You have to provide your first name!"
/>
<span>Do you want to share your work experience with us?</span>
<AutoField name="workExperience" />
<ErrorField
name="workExperience"
errorMessage="Your work experience cannot be lesser than 0 or greater than 100 years!"
/>
<AutoField name="profession" />
<AutoField name="additionalInfo" />
<SubmitField />
</AutoForm>
);
}

As you can see, both SelectField and LongTextField have been removed in favor of the AutoField.

Now we can focus on modifying the schema. +Instead of having to type the React component by ourselves inside our form, we can declare it inside the schema, thanks to the uniforms property, as it's demonstrated below:

import Ajv, { JSONSchemaType } from 'ajv';

type FormData = {
firstName: string;
lastName: string;
workExperience: number;
profession: string;
additionalInfo: string;
};

const schema: JSONSchemaType<FormData> = {
title: 'Guest',
type: 'object',
properties: {
firstName: { type: 'string' },
lastName: { type: 'string' },
workExperience: {
description: 'Work experience in years',
type: 'integer',
minimum: 0,
maximum: 100,
},
profession: {
type: 'string',
options: [
{
label: 'Developer',
value: 'developer',
},
{
label: 'Tester',
value: 'tester',
},
{
label: 'Product owner',
value: 'product-owner',
},
{
label: 'Project manager',
value: 'project-manager',
},
{
label: 'Businessman',
value: 'businessman',
},
],
},
additionalInfo: {
type: 'string',
uniforms: { component: LongTextField },
},
},
required: ['firstName', 'lastName'],
};

What's changed is that now we've included the available options inside the profession property definition - +uniforms are smart enough to deduce result field type, thanks to the AutoField algorithm.

caution

Remember to register the uniforms and options keyword (see Unknown keywords for more details).

// Required by Ajv strict mode
ajv.addVocabulary(['options', 'uniforms']);

When it comes to the additionalInfo, there is a slightly different approach applied - we can explicitly tell the AutoForm what field should be rendered. +Just don't forget to import the desired one!

The resulting form remains very the same:

SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled
+ + + + \ No newline at end of file diff --git a/docs/uth-autofield-algorithm/index.html b/docs/uth-autofield-algorithm/index.html new file mode 100644 index 000000000..1111f42e8 --- /dev/null +++ b/docs/uth-autofield-algorithm/index.html @@ -0,0 +1,22 @@ + + + + + +AutoField algorithm | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

AutoField algorithm

Background

Since the beginning, AutoField was an ordinary React component. Then, in #741, the kind parameter of connectField was introduced to make certain optimizations possible. To be exact, this parameter made it possible to reduce the overhead of AutoField to minimum. The problem is that it increased the complexity of custom themes (or at least keeping them performant).

In #800, a new way of creating AutoField was introduced. Now, instead of a React component, you only specify the component based on its props - the rest is handled in createAutoField.

Default AutoField implementation

import { createAutoField } from 'uniforms';

const AutoField = createAutoField(props => {
if (props.component) {
return props.component;
}

if (props.options) {
return props.checkboxes && props.fieldType !== Array
? RadioField
: SelectField;
}

switch (props.fieldType) {
case Array:
return ListField;
case Boolean:
return BoolField;
case Date:
return DateField;
case Number:
return NumField;
case Object:
return NestField;
case String:
return TextField;
}

return invariant(false, 'Unsupported field type: %s', props.fieldType);
});

Overriding AutoField

If you want to alter the default behavior of AutoField and render a different component based on the props, you can do it using the React context available in AutoField.componentDetectorContext. You can use it as often as needed - once will be enough in most apps. Example:

<AutoField.componentDetectorContext.Provider value={(props, uniforms) => /* ... */}>
<Application />
</AutoField.componentDetectorContext.Provider>

If you want to change the detector only partially, i.e., to render one additional field, and in other cases, use the default algorithm as a fallback, return AutoField.defaultComponentDetector. Example:

<AutoField.componentDetectorContext.Provider
value={(props, uniforms) => {
if (props.useSpecialField) {
return SpecialField;
}

return AutoField.defaultComponentDetector(props, uniforms);
}}
>
<Application />
</AutoField.componentDetectorContext.Provider>
+ + + + \ No newline at end of file diff --git a/docs/uth-bridge-concept/index.html b/docs/uth-bridge-concept/index.html new file mode 100644 index 000000000..05fdd6470 --- /dev/null +++ b/docs/uth-bridge-concept/index.html @@ -0,0 +1,22 @@ + + + + + +Bridge concept | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Bridge concept

To make use of any schema, uniforms have to create a bridge of it - a unified schema mapper. The Bridge class is an abstract class, which should be extended to create custom bridges. It implements all of the required methods and throws an error with meaningful "method not implemented" error.

export abstract class Bridge {
// Each bridge can have a different set of parameters.
constructor(...args: any[]);

/**
* Get an error for field `name` out of `error`. There is no standarized
* format, but fields treat truthy values as a sign of being invalid. Fields
* receive this as a `error` guaranteed prop.
*/
getError(name: string, error: unknown): unknown;

/**
* Get an error message for field `name` out of `error`. If there is no error,
* return an empty string. Fields receive this as a `errorMessage` guaranteed
* prop.
*/
getErrorMessage(name: string, error: unknown): string;

/**
* Get all error messages from `error`. Only `ErrorsField` make use of that
* (in builtin themes).
*/
getErrorMessages(error: unknown): string[];

/**
* Get internal field definition for field `name`. Fields receive this as a
* `field` guaranteed prop. There is no standarized field format. Most bridges
* use it as a common object, used in calculation of initial values, props,
* and types.
*/
getField(name: string): unknown;

/**
* Get initial value of field `name`. It is used as a default when no value is
* set (e.g. the form is rendered with an empty `model`). Additionally,
* `props` are this field instance props. If a field is rendered multiple
* times, this function will be called multiple times, possibly with different
* `props`.
*/
getInitialValue(name: string): unknown;

/**
* Get initial model value recursively.
*/
getInitialModel(): UnknownObject;
return initialModel;
}

/**
* Get props defined in schema for a field `name`. There are no required nor
* banned fields, however properties like `required` are often available.
*/
getProps(name: string): UnknownObject;

/**
* Get a list of subfields of field `name` or top-level fields, if no `name`
* is passed.
*/
getSubfields(name?: string): string[];

/**
* There is no standarized field type format. However, `AutoField` component
* will work correctly only with standard JavaScript constructors, like
* `String` or `Number`.
*/
getType(name: string): unknown;

/**
* Get a validator function. The `options` here are from the `validator` prop
* of the form. A validator function receives a model and returns an error or
* a promise that will resolve (not reject!) with an error. If there is no
* error, return (or resolve with) a `null` value instead.
*/
getValidator(options?: unknown): (model: UnknownObject) => unknown;
}
+ + + + \ No newline at end of file diff --git a/docs/what-are-uniforms/index.html b/docs/what-are-uniforms/index.html new file mode 100644 index 000000000..f4dae9c29 --- /dev/null +++ b/docs/what-are-uniforms/index.html @@ -0,0 +1,26 @@ + + + + + +What are uniforms? | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

What are uniforms?

Generally speaking, uniforms are a set of React libraries for building forms from every schema.

Core features

  • Automatic forms generation
  • Fields capable of rendering every schema
  • Helper for creating custom fields with one line
  • Inline and asynchronous form validation
  • Various schemas integration
  • Wide range of themes support

Similarly to other form packages, uniforms can help you with rendering a form, by taking care of its state management, validation, and submission. +What makes it unique though, is the ability to completely generate the form for you, without having to manually provide its fields.

In order to do so, uniforms require you to do two things:

  1. Provide the schema of your data. You can approach the schema as a formal description of the data, where you define its types, allowed values, default values, required ones and so on.
  2. Select desired theme. The theme is basically a package containing pre-styled form components in one of the popular styles (AntD, Bootstrap 3, Bootstrap 4, Bootstrap 5, Material, MUI, Semantic) or raw, unstyled HTML.

To operate on the schema, uniforms will need to receive a bridge of it. +A bridge is a unified schema mapper that is used by uniforms internals in order to be able to operate on the schema data, validate it and generate errors. +To create one, you have to use one of the predefined schema-to-bridge mappers or create one by yourself. +To learn more about the bridge concept, please visit the Under The Hood > Bridge concept section.

+ + + + \ No newline at end of file diff --git a/docs/why-are-uniforms/index.html b/docs/why-are-uniforms/index.html new file mode 100644 index 000000000..621433e4c --- /dev/null +++ b/docs/why-are-uniforms/index.html @@ -0,0 +1,25 @@ + + + + + +Why are uniforms? | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+

Why are uniforms?

Forms concept

There’s a very interesting class-based inheritance concept for forms. +Basically, there are a few types of forms with different capabilities. +Most of the time you’ll be using either AutoForm or ValidatedForm, but there are quite a few more to choose from:

AutoForm class inheritance from ValidatedQuickForm which subsequently inherits from QuickForm and ValidatedForm.

If you are not familiar with concept of HOC, read one of many posts about them first. +I’m sure you’ve read at least one of Why ES6 classes are bad or class considered harmful posts. I’ve read them too, so why is uniforms using classes? Well, it’s all about the complexity.

-- Radosław Miernik

React DevTools when lots of HOC’s are applied to a component.

I wanted to achieve the same functionality as with multiple HOCs, but within one component. To be honest, readability is more important than performance. In short, I’ve reached (more or less) traits with ES6 classes. The result?

-- Radosław Miernik

import BaseForm from './BaseForm';
import QuickForm from './QuickForm';
import ValidatedForm from './ValidatedForm';

const ValidatedQuickForm = ValidatedForm.Validated(QuickForm.Quick(BaseForm));

Single AutoValidatedQuickSemanticForm component (using 5 "traits") viewed in React DevTools.

While it’s not a universal approach that will work in every situation, using it in uniforms allows us to deliver clean-looking components while keeping extensibility and separation of concerns.


Based on Managing forms in a Meteor/React project with the uniforms package written by Maciej Stasiełuk.

+ + + + \ No newline at end of file diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 000000000..8dcd3246e Binary files /dev/null and b/favicon.ico differ diff --git a/img/avatar/florian-bienefelt.jpg b/img/avatar/florian-bienefelt.jpg new file mode 100644 index 000000000..14ec01748 Binary files /dev/null and b/img/avatar/florian-bienefelt.jpg differ diff --git a/img/avatar/kheang-hok-chin.jpg b/img/avatar/kheang-hok-chin.jpg new file mode 100644 index 000000000..4d4e2f1b4 Binary files /dev/null and b/img/avatar/kheang-hok-chin.jpg differ diff --git a/img/avatar/lorant-vajda.jpg b/img/avatar/lorant-vajda.jpg new file mode 100644 index 000000000..db41f8160 Binary files /dev/null and b/img/avatar/lorant-vajda.jpg differ diff --git a/img/avatar/serkan-durusoy.jpg b/img/avatar/serkan-durusoy.jpg new file mode 100644 index 000000000..32677002e Binary files /dev/null and b/img/avatar/serkan-durusoy.jpg differ diff --git a/img/avatar/viktor-bezdek.jpg b/img/avatar/viktor-bezdek.jpg new file mode 100644 index 000000000..5036eb4e0 Binary files /dev/null and b/img/avatar/viktor-bezdek.jpg differ diff --git a/img/avatar/wojciech-trocki.jpg b/img/avatar/wojciech-trocki.jpg new file mode 100644 index 000000000..6fec622e1 Binary files /dev/null and b/img/avatar/wojciech-trocki.jpg differ diff --git a/img/bridge-concept.svg b/img/bridge-concept.svg new file mode 100644 index 000000000..8fde510a6 --- /dev/null +++ b/img/bridge-concept.svg @@ -0,0 +1,280 @@ + + bridge-concept + #edgeMargin: 5 + #fill: transparent + #font: monospace + #fontSize: 14 + #padding: 20 + #spacing: 35 + #stroke: #333 + #title: bridge-concept + [GraphQL]->[GraphQLBridge]->[uniforms] + [SimpleSchema]->[SimpleSchemaBridge]->[uniforms] + [JSONSchema]->[JSONSchemaBridge]->[uniforms] + [SimpleSchema2 (npm)]->[SimpleSchema2Bridge]->[uniforms] + [Zod]->[ZodBridge]->[uniforms] + [uniforms]->[Ant Design] + [uniforms]->[Bootstrap 3] + [uniforms]->[Bootstrap 4] + [uniforms]->[Bootstrap 5] + [uniforms]->[Material] + [uniforms]->[MUI] + [uniforms]->[Semantic UI] + [uniforms]->[unstyled] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + GraphQL + + + + + + + + + + + GraphQLBridge + + + + + + + + + + + uniforms + + + + + + + + + + + SimpleSchema + + + + + + + + + + + SimpleSchemaBridge + + + + + + + + + + + JSONSchema + + + + + + + + + + + JSONSchemaBridge + + + + + + + + + + + SimpleSchema2 (npm) + + + + + + + + + + + SimpleSchema2Bridge + + + + + + + + + + + Zod + + + + + + + + + + + ZodBridge + + + + + + + + + + + Ant Design + + + + + + + + + + + Bootstrap 3 + + + + + + + + + + + Bootstrap 4 + + + + + + + + + + + Bootstrap 5 + + + + + + + + + + + Material + + + + + + + + + + + MUI + + + + + + + + + + + Semantic UI + + + + + + + + + + + unstyled + + + + + + + + + diff --git a/img/form-builder.png b/img/form-builder.png new file mode 100644 index 000000000..01cc6103e Binary files /dev/null and b/img/form-builder.png differ diff --git a/img/hoc-hell.png b/img/hoc-hell.png new file mode 100644 index 000000000..fc9f7c8c8 Binary files /dev/null and b/img/hoc-hell.png differ diff --git a/img/uniforms-graph.svg b/img/uniforms-graph.svg new file mode 100644 index 000000000..de2ab75ae --- /dev/null +++ b/img/uniforms-graph.svg @@ -0,0 +1,38 @@ + + uniforms-graph + #edgeMargin: 5 +#fill: transparent +#font: monospace +#fontSize: 14 +#padding: 20 +#spacing: 35 +#stroke: #333 +#title: uniforms-graph + +[BaseForm] -> [QuickForm] +[BaseForm] -> [ValidatedForm] +[QuickForm] -> [ValidatedQuickForm] +[ValidatedForm] -> [ValidatedQuickForm] +[ValidatedQuickForm] -> [AutoForm] + + + + + + + + + + + + + BaseForm + + QuickForm + + ValidatedForm + + ValidatedQuickForm + + AutoForm + diff --git a/img/uniforms-traits.png b/img/uniforms-traits.png new file mode 100644 index 000000000..3aad4296d Binary files /dev/null and b/img/uniforms-traits.png differ diff --git a/img/uniforms.svg b/img/uniforms.svg new file mode 100644 index 000000000..120d39c7a --- /dev/null +++ b/img/uniforms.svg @@ -0,0 +1 @@ + diff --git a/index.html b/index.html new file mode 100644 index 000000000..5cdc83857 --- /dev/null +++ b/index.html @@ -0,0 +1,22 @@ + + + + + +uniforms | React form library for building forms from any schema + + + + + + + + + + +
+
uniforms

A React library for building forms from any schema

  • support of all schemas and themes
  • instant prototyping
  • simplifies separation of concerns

Supported design libraries:

Semantic UIAnt DesignMUIBootstrap
const schema = new SimpleSchema({
firstName: { type: String },
lastName: { type: String },
country: {
type: String,
allowedValues: ['Poland', 'England'],
defaultValue: 'Poland',
},
state: {
type: String,
optional: true,
},
useThisAddressForPaymentDetails: {
type: Boolean,
defaultValue: false,
},
addressLine: { type: String },
city: { type: String },
zip: { type: String },
});

export const bridge = new SimpleSchema2Bridge({ schema });

Always Open Source.

React form library
trusted by GitHub community

They speak about us

Testimonials

Why choose us

Easy and ready
to implement solution

A set of open-source libraries capable of instantly generating any given form in React.

Carried out by the global community of 50+ developers.

Focused on providing a ready-to-implement solution, and effortless development experience. Keeps your code simple.

Integrations with various schemas:

  • JSON Schema
  • GraphQL
  • SimpleSchema
  • SimpleSchema2
  • Zod
  • And any other - only a small wrapper is needed!

Wide range of themes:

  • AntD theme
  • Bootstrap4
  • Bootstrap5
  • Material-UI
  • MUI
  • Semantic UI
  • Plain HTML
SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled
Show exampleShow source codeShow schema

Simple,
yet powerful

  • Abbreviates form code by 51%
  • Out-of-the box built-in fields capable of rendering every schema
  • Automatic state management
  • Inline and asynchronous form validation
  • Clean-looking components while keeping extensibility and separation of concerns

Fully
customizable

  • One-line helper for creating custom fields
  • Supports all types of objects
  • Freedom of choice when defining custom fields depending on the abstraction level-schema or theme dependent approach
SemanticMaterialMUIBootstrap4Bootstrap5AntDUnstyled
Show exampleShow source codeShow schema

If You want to know more – join us at GitHub Discussions!

DeskproNokiaReact PageGraphbackOnyx oneAerogearClever BeagleOrion.jsBoulder Care

References

Who uses uniforms

Our package has been used in several projects worldwide. From small to the corporate business solutions and well-known enterprises. Companies trusted us in the development of both simple forms and sophisticated management systems.

Comparison
with similar libraries

FeatureuniformsFormikredux-formReact Final Formreact-hook-form
Automatic form layoutsupportedunsupportedunsupportedunsupportedunsupported
Manual state managementsupportedunsupportedsupportedunsupportedsupported
Manually trigger validationsupportedsupportedunsupportedunsupportedsupported
AntD, Bootstrap 3, Bootstrap 4, Bootstrap 5, Material, MUI, Semantic UI themessupportedunsupportedunsupportedunsupportedunsupported
JSON, GraphQL, SimpleSchema, Zod and custom schema supportsupportedunsupportedunsupportedunsupportedunsupported
Field level validationunsupportedsupportedsupportedsupportedsupported
Forminer UI

Commercial support

Forminer

A commercial implementation of uniforms, which can save you up to 1500 hours of work.

  • Ideal for building no-code tools - thanks to a schema-first approach
  • Package - easy to integrate with your project and design system
  • Powerful solution - custom fields, full state machine
  • Good level of support - based on our popular OS solution, uniforms
+ + + + \ No newline at end of file diff --git a/playground/index.html b/playground/index.html new file mode 100644 index 000000000..1899054cd --- /dev/null +++ b/playground/index.html @@ -0,0 +1,22 @@ + + + + + +Check how it works | uniforms | uniforms | React form library for building forms from any schema + + + + + + + + + + +
+
+ + + + \ No newline at end of file diff --git a/robots.txt b/robots.txt new file mode 100644 index 000000000..c2a49f4fb --- /dev/null +++ b/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Allow: / diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 000000000..1302c9790 --- /dev/null +++ b/sitemap.xml @@ -0,0 +1 @@ +https://uniforms.tools/playground/weekly0.5https://uniforms.tools/docs/api-bridges/weekly0.5https://uniforms.tools/docs/api-context-data/weekly0.5https://uniforms.tools/docs/api-fields/weekly0.5https://uniforms.tools/docs/api-forms/weekly0.5https://uniforms.tools/docs/api-helpers/weekly0.5https://uniforms.tools/docs/compare-matrix-landing/weekly0.5https://uniforms.tools/docs/compare-matrix/weekly0.5https://uniforms.tools/docs/examples-common-forms/weekly0.5https://uniforms.tools/docs/examples-custom-bridge/weekly0.5https://uniforms.tools/docs/examples-custom-fields/weekly0.5https://uniforms.tools/docs/examples-custom-form/weekly0.5https://uniforms.tools/docs/faq/weekly0.5https://uniforms.tools/docs/installation/weekly0.5https://uniforms.tools/docs/migrating-2-to-3/weekly0.5https://uniforms.tools/docs/migrating-3-to-4/weekly0.5https://uniforms.tools/docs/motivation/weekly0.5https://uniforms.tools/docs/tutorials-basic-uniforms-usage/weekly0.5https://uniforms.tools/docs/tutorials-creating-custom-field/weekly0.5https://uniforms.tools/docs/tutorials-creating-custom-theme/weekly0.5https://uniforms.tools/docs/tutorials-customizing-your-form-layout/weekly0.5https://uniforms.tools/docs/tutorials-using-predefined-fields/weekly0.5https://uniforms.tools/docs/uth-autofield-algorithm/weekly0.5https://uniforms.tools/docs/uth-bridge-concept/weekly0.5https://uniforms.tools/docs/what-are-uniforms/weekly0.5https://uniforms.tools/docs/why-are-uniforms/weekly0.5https://uniforms.tools/weekly0.5 \ No newline at end of file